* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f7faff;
  --bg-soft: #eef4ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-strong: #f0f5ff;
  --text: #0d1438;
  --muted: #526078;
  --line: rgba(32, 58, 126, 0.13);
  --primary: #08096f;
  --primary-2: #4e6ee8;
  --accent: #72c9ff;
  --shadow: 0 22px 60px rgba(8, 9, 111, 0.13);
  --radius: 24px;
  --radius-sm: 16px;
  --header-bg: rgba(247, 250, 255, 0.78);
  --input-bg: #ffffff;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a16;
  --bg-soft: #0d1228;
  --surface: rgba(14, 19, 43, 0.78);
  --surface-solid: #0f1530;
  --surface-strong: #121a3a;
  --text: #eff5ff;
  --muted: #aeb9d6;
  --line: rgba(151, 201, 249, 0.17);
  --primary: #a7ddff;
  --primary-2: #8398ff;
  --accent: #4fdcff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(7, 10, 22, 0.76);
  --input-bg: #0b1024;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 220, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(78, 110, 232, 0.14), transparent 32rem),
    var(--bg);
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--primary);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: min(280px, 46vw);
}

.brand-logo {
  width: 100%;
  height: auto;
}

.brand-logo-light,
html[data-theme="dark"] .brand-logo-dark {
  display: none;
}

html[data-theme="dark"] .brand-logo-light {
  display: block;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: var(--surface-strong);
}

.theme-toggle,
.nav-toggle,
.modal-close {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: linear-gradient(180deg, transparent, var(--bg-soft), transparent);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 760;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  max-width: 940px;
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p {
  margin: 0;
}

.hero-text,
.section-heading p,
.rich-text p,
.card p,
.feature-card p,
.section-cta p,
.final-cta p,
.founder-card p,
.model-card li,
.formats p {
  color: var(--muted);
}

.hero-text {
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 760px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.centered-actions {
  justify-content: center;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #08096f, #4867db 62%, #41a9fa);
  box-shadow: 0 16px 32px rgba(72, 103, 219, 0.25);
}

html[data-theme="dark"] .btn-primary {
  color: #06101d;
  background: linear-gradient(135deg, #a7ddff, #8398ff 62%, #4fdcff);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}

.full-width {
  width: 100%;
}

.hero-panel,
.feature-card,
.card,
.model-card,
.founder-card,
.section-cta,
.formats,
.final-cta-inner {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 470px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.hero-panel::before,
.feature-card::before,
.section-cta::before,
.final-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(79, 220, 255, 0.12), transparent 42%, rgba(78, 110, 232, 0.09));
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.9;
}

.orb-one {
  width: 180px;
  height: 180px;
  top: 56px;
  right: 38px;
  background: radial-gradient(circle, rgba(79, 220, 255, 0.42), transparent 68%);
}

.orb-two {
  width: 240px;
  height: 240px;
  left: -80px;
  top: 112px;
  background: radial-gradient(circle, rgba(8, 9, 111, 0.28), transparent 70%);
}

.panel-kicker {
  position: relative;
  z-index: 1;
  color: var(--muted);
  margin-bottom: 18px;
}

.pathway-flow {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.pathway-flow span,
.pathway-grid span {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
  font-weight: 720;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.rich-text {
  display: grid;
  gap: 18px;
}

.section-heading {
  max-width: 720px;
}

.section-heading.centered {
  text-align: center;
  margin: 0 auto 42px;
}

.section-heading.centered p {
  max-width: 780px;
  margin: 16px auto 0;
}

.two-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-card,
.card,
.model-card,
.founder-card,
.section-cta,
.formats,
.final-cta-inner {
  padding: 28px;
}

.feature-card h3,
.card h3,
.model-card h3,
.founder-card h2,
.section-cta h3,
.formats h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.feature-card p,
.card p,
.section-cta p,
.formats p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.services-grid .card:nth-child(7),
.values-grid .card:nth-child(5) {
  grid-column: span 2;
}

.card {
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary-2) 46%, var(--line));
}

.card.compact p {
  margin-top: 10px;
}

.section-cta {
  margin-top: 34px;
  text-align: center;
}

.section-cta p {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta .btn {
  margin-top: 24px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.format-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.final-cta {
  padding-top: 80px;
}

.final-cta-inner {
  text-align: center;
  padding: clamp(36px, 7vw, 70px);
}

.final-cta-inner p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-inner h2 + p {
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-inner a {
  color: var(--text);
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  padding: 22px;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-intro {
  color: var(--muted);
  margin: 10px 0 22px;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-2) 18%, transparent);
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  color: var(--muted);
  font-weight: 700;
}

.form-status.success {
  color: #177245;
}

.form-status.error {
  color: #b42318;
}

html[data-theme="dark"] .form-status.success {
  color: #70e5a4;
}

html[data-theme="dark"] .form-status.error {
  color: #ff9a92;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 68px;
  }

  .brand {
    width: min(230px, 58vw);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    margin-left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
  }

  .theme-label {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-grid,
  .split,
  .two-cards,
  .format-list {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 360px;
  }

  .cards-grid,
  .pathway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid .card:nth-child(7),
  .values-grid .card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 72px 0;
  }

  .hero-actions,
  .footer-inner,
  .form-row {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .cards-grid,
  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .card,
  .model-card,
  .founder-card,
  .section-cta,
  .formats,
  .final-cta-inner {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .modal {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ---- Targeted visual corrections v4 ---- */
/* Keep the original visual language, but remove the heavy boxed look where it made the page feel crowded. */

.hero-panel::before {
  background:
    radial-gradient(ellipse at 18% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 56%),
    radial-gradient(ellipse at 86% 82%, color-mix(in srgb, var(--primary-2) 13%, transparent), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-solid) 62%, transparent), transparent 68%);
}

.orb {
  display: none;
}

/* STEM fields: no card/window, more organic cloud, center-weighted. */
.pathway-grid {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 20px) clamp(16px, 3.2vw, 38px);
  max-width: 1050px;
  margin: 2px auto 0;
  padding: clamp(18px, 3vw, 34px) 0;
}

.pathway-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6% 8% 2%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 42% 42%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 54%),
    radial-gradient(ellipse at 70% 64%, color-mix(in srgb, var(--primary-2) 10%, transparent), transparent 58%);
  filter: blur(18px);
  opacity: 0.9;
}

.pathway-grid span {
  display: inline-block;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: normal;
  max-width: 360px;
  text-wrap: balance;
}

.pathway-grid span:nth-child(1)  { order: 6;  font-size: clamp(1.9rem, 3.1vw, 3rem);  font-weight: 850; flex-basis: 36%; }
.pathway-grid span:nth-child(2)  { order: 5;  font-size: clamp(1.45rem, 2.25vw, 2.15rem); font-weight: 820; flex-basis: 25%; }
.pathway-grid span:nth-child(3)  { order: 7;  font-size: clamp(1.34rem, 2vw, 1.95rem);   font-weight: 800; flex-basis: 27%; }
.pathway-grid span:nth-child(4)  { order: 4;  font-size: clamp(1.14rem, 1.55vw, 1.45rem); font-weight: 770; flex-basis: 20%; transform: translateY(4px); }
.pathway-grid span:nth-child(5)  { order: 8;  font-size: clamp(1.22rem, 1.75vw, 1.65rem); font-weight: 790; flex-basis: 28%; }
.pathway-grid span:nth-child(6)  { order: 3;  font-size: clamp(1.12rem, 1.45vw, 1.36rem); font-weight: 760; flex-basis: 23%; transform: translateY(-2px); }
.pathway-grid span:nth-child(7)  { order: 10; font-size: clamp(1.16rem, 1.55vw, 1.46rem); font-weight: 780; flex-basis: 31%; }
.pathway-grid span:nth-child(8)  { order: 9;  font-size: clamp(1.16rem, 1.55vw, 1.46rem); font-weight: 780; flex-basis: 31%; transform: translateY(5px); }
.pathway-grid span:nth-child(9)  { order: 2;  font-size: clamp(1rem, 1.28vw, 1.22rem);    font-weight: 730; flex-basis: 22%; }
.pathway-grid span:nth-child(10) { order: 11; font-size: clamp(1.1rem, 1.46vw, 1.36rem);  font-weight: 760; flex-basis: 30%; }
.pathway-grid span:nth-child(11) { order: 1;  font-size: clamp(0.98rem, 1.22vw, 1.16rem);  font-weight: 730; flex-basis: 22%; }

/* Partnerships: make the four partner descriptions editorial blocks, not another pile of boxes. */
.partner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 58px;
  margin-top: 8px;
  margin-bottom: 48px;
}

.partner-grid .card {
  overflow: visible;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 24px 0 0;
}

.partner-grid .card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--primary-2) 34%, var(--line));
  background: transparent;
}

.partner-grid .card h3 {
  max-width: 560px;
}

.partner-grid .card p {
  max-width: 620px;
}

.formats {
  clear: both;
  margin-top: 8px;
  box-shadow: none;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-solid) 88%, transparent), color-mix(in srgb, var(--bg-soft) 44%, transparent));
}

.format-list {
  align-items: start;
  gap: 28px 54px;
}

/* Our Model: keep it boxed, but avoid the crude dot-list look. */
.check-list {
  counter-reset: model-step;
  gap: 12px;
}

.check-list li {
  min-height: 34px;
  padding-left: 46px;
}

.check-list li::before {
  counter-increment: model-step;
  content: counter(model-step);
  top: -2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary-2);
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-2) 32%, var(--line));
  font-size: 0.82rem;
  font-weight: 840;
}

/* Section cards should not all feel equally loud. Keep service/value cards, simplify support text blocks. */
#work-with .rich-text,
#about .rich-text {
  padding-top: 4px;
}

@media (max-width: 980px) {
  .pathway-grid {
    gap: 14px 24px;
  }

  .pathway-grid span,
  .pathway-grid span:nth-child(n) {
    flex-basis: auto;
    max-width: 44%;
    transform: none;
  }

  .partner-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 38px;
  }
}

@media (max-width: 640px) {
  .pathway-grid {
    padding: 8px 0 4px;
    gap: 12px 16px;
  }

  .pathway-grid::before {
    inset: 0;
    filter: blur(12px);
  }

  .pathway-grid span,
  .pathway-grid span:nth-child(n) {
    max-width: 100%;
    flex-basis: 100%;
    font-size: clamp(1.05rem, 6vw, 1.45rem);
  }

  .pathway-grid span:nth-child(1) {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .partner-grid .card {
    padding-top: 20px;
  }
}


/* ---- Targeted corrections v5: only the requested areas ---- */
/* 1) Remove the invented hero-side "Connected pathway" card and keep the original hero content clean. */
.hero-grid {
  grid-template-columns: minmax(0, 960px);
  justify-content: start;
}

.hero-copy {
  max-width: 960px;
}

.hero {
  min-height: auto;
  padding-top: clamp(96px, 12vw, 150px);
  padding-bottom: clamp(90px, 11vw, 140px);
}

/* 2) STEM fields cloud: no box, no row-template; intentionally positioned, center-weighted, but not extreme. */
#pathways .container {
  position: relative;
}

.pathway-grid {
  position: relative;
  display: block;
  width: min(1080px, 100%);
  height: clamp(340px, 34vw, 430px);
  margin: 14px auto 0;
  padding: 0;
  isolation: isolate;
}

.pathway-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10%;
  right: 10%;
  top: 9%;
  bottom: 7%;
  border-radius: 48% 52% 54% 46% / 42% 48% 52% 58%;
  background:
    radial-gradient(ellipse at 48% 46%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 60%),
    radial-gradient(ellipse at 66% 58%, color-mix(in srgb, var(--primary-2) 10%, transparent), transparent 64%);
  filter: blur(20px);
  opacity: 0.9;
}

.pathway-grid span {
  position: absolute;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  max-width: 300px;
  text-shadow: 0 10px 28px color-mix(in srgb, var(--bg) 70%, transparent);
}

.pathway-grid span:nth-child(1)  { left: 50%; top: 47%; width: 360px; font-size: clamp(2.35rem, 4.35vw, 3.75rem); font-weight: 860; transform: translate(-50%, -50%); }
.pathway-grid span:nth-child(2)  { left: 18%; top: 46%; width: 260px; font-size: clamp(1.75rem, 2.75vw, 2.5rem); font-weight: 820; transform: translate(-50%, -50%) rotate(-1deg); }
.pathway-grid span:nth-child(3)  { left: 78%; top: 45%; width: 290px; font-size: clamp(1.55rem, 2.35vw, 2.1rem); font-weight: 810; transform: translate(-50%, -50%) rotate(0.4deg); }
.pathway-grid span:nth-child(4)  { left: 91%; top: 19%; width: 220px; font-size: clamp(1.12rem, 1.55vw, 1.42rem); font-weight: 780; transform: translate(-50%, -50%) rotate(-0.5deg); }
.pathway-grid span:nth-child(5)  { left: 19%; top: 73%; width: 280px; font-size: clamp(1.35rem, 2.05vw, 1.9rem); font-weight: 805; transform: translate(-50%, -50%) rotate(0.5deg); }
.pathway-grid span:nth-child(6)  { left: 57%; top: 21%; width: 300px; font-size: clamp(1.22rem, 1.85vw, 1.62rem); font-weight: 790; transform: translate(-50%, -50%) rotate(-0.4deg); }
.pathway-grid span:nth-child(7)  { left: 80%; top: 72%; width: 300px; font-size: clamp(1.18rem, 1.8vw, 1.56rem); font-weight: 785; transform: translate(-50%, -50%) rotate(0.6deg); }
.pathway-grid span:nth-child(8)  { left: 50%; top: 72%; width: 330px; font-size: clamp(1.22rem, 1.95vw, 1.68rem); font-weight: 790; transform: translate(-50%, -50%); }
.pathway-grid span:nth-child(9)  { left: 34%; top: 18%; width: 250px; font-size: clamp(1.08rem, 1.58vw, 1.42rem); font-weight: 770; transform: translate(-50%, -50%) rotate(0.8deg); }
.pathway-grid span:nth-child(10) { left: 50%; top: 90%; width: 310px; font-size: clamp(1.12rem, 1.62vw, 1.46rem); font-weight: 775; transform: translate(-50%, -50%) rotate(-0.3deg); }
.pathway-grid span:nth-child(11) { left: 11%; top: 20%; width: 245px; font-size: clamp(1.05rem, 1.52vw, 1.36rem); font-weight: 765; transform: translate(-50%, -50%) rotate(-0.4deg); }

/* 3) Services grid: keep the cards, but fix the empty-right imbalance on the last service. */
.services-grid .card:nth-child(7) {
  grid-column: 1 / -1;
  max-width: none;
}

.services-grid .card:nth-child(7) p {
  max-width: 880px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .pathway-grid {
    height: auto;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 24px;
    padding: 24px 0 8px;
  }

  .pathway-grid span,
  .pathway-grid span:nth-child(n) {
    position: static;
    width: auto;
    max-width: 46%;
    transform: none;
    text-align: center;
    font-size: clamp(1.1rem, 3vw, 1.7rem);
  }

  .pathway-grid span:nth-child(1) {
    flex-basis: 100%;
    max-width: 100%;
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .services-grid .card:nth-child(7) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .pathway-grid span,
  .pathway-grid span:nth-child(n) {
    flex-basis: 100%;
    max-width: 100%;
    font-size: clamp(1.08rem, 5.6vw, 1.42rem);
  }

  .pathway-grid span:nth-child(1) {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .services-grid .card:nth-child(7) {
    grid-column: auto;
  }
}

/* ---- Targeted corrections v6: word cloud and services balance only ---- */
/* STEM fields: closer to a classic word cloud, no rotation, no box, moderate size differences. */
.pathway-grid {
  position: relative;
  display: block;
  width: min(1040px, 100%);
  height: clamp(310px, 30vw, 370px);
  margin: 22px auto 0;
  padding: 0;
  isolation: isolate;
}

.pathway-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 14%;
  right: 12%;
  top: 10%;
  bottom: 12%;
  border-radius: 46% 54% 51% 49% / 49% 44% 56% 51%;
  background:
    radial-gradient(ellipse at 48% 46%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    radial-gradient(ellipse at 60% 58%, color-mix(in srgb, var(--primary-2) 9%, transparent), transparent 68%);
  filter: blur(24px);
  opacity: 0.82;
}

.pathway-grid span {
  position: absolute;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  max-width: 340px;
  transform: translate(-50%, -50%);
  text-shadow: 0 12px 30px color-mix(in srgb, var(--bg) 72%, transparent);
}

.pathway-grid span:nth-child(1)  { left: 50%; top: 49%; width: 350px; font-size: clamp(1.9rem, 3vw, 2.55rem); font-weight: 850; color: color-mix(in srgb, var(--text) 94%, var(--primary-2)); }
.pathway-grid span:nth-child(2)  { left: 28%; top: 39%; width: 300px; font-size: clamp(1.45rem, 2.1vw, 1.78rem); font-weight: 820; }
.pathway-grid span:nth-child(3)  { left: 73%; top: 41%; width: 300px; font-size: clamp(1.35rem, 2vw, 1.68rem); font-weight: 810; }
.pathway-grid span:nth-child(4)  { left: 22%; top: 61%; width: 230px; font-size: clamp(1.1rem, 1.45vw, 1.28rem); font-weight: 780; color: color-mix(in srgb, var(--text) 88%, var(--primary-2)); }
.pathway-grid span:nth-child(5)  { left: 32%; top: 75%; width: 300px; font-size: clamp(1.18rem, 1.6vw, 1.38rem); font-weight: 790; }
.pathway-grid span:nth-child(6)  { left: 66%; top: 24%; width: 320px; font-size: clamp(1.18rem, 1.65vw, 1.42rem); font-weight: 790; }
.pathway-grid span:nth-child(7)  { left: 75%; top: 67%; width: 340px; font-size: clamp(1.12rem, 1.55vw, 1.34rem); font-weight: 780; color: color-mix(in srgb, var(--text) 90%, var(--primary-2)); }
.pathway-grid span:nth-child(8)  { left: 48%; top: 22%; width: 340px; font-size: clamp(1.12rem, 1.55vw, 1.34rem); font-weight: 780; }
.pathway-grid span:nth-child(9)  { left: 24%; top: 22%; width: 270px; font-size: clamp(1.05rem, 1.42vw, 1.22rem); font-weight: 760; color: color-mix(in srgb, var(--text) 84%, var(--primary-2)); }
.pathway-grid span:nth-child(10) { left: 53%; top: 79%; width: 320px; font-size: clamp(1.08rem, 1.48vw, 1.26rem); font-weight: 770; }
.pathway-grid span:nth-child(11) { left: 81%; top: 25%; width: 260px; font-size: clamp(1.05rem, 1.42vw, 1.22rem); font-weight: 760; color: color-mix(in srgb, var(--text) 84%, var(--primary-2)); }

/* Services: keep the cards, but make the final service a balanced full-width band instead of a lonely leftover card. */
.services-grid .card:nth-child(7) {
  grid-column: 1 / -1 !important;
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding-block: 32px;
}

.services-grid .card:nth-child(7) h3,
.services-grid .card:nth-child(7) p {
  margin: 0;
}

.services-grid .card:nth-child(7) p {
  max-width: 760px;
}

@media (max-width: 980px) {
  .pathway-grid {
    height: auto;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 22px;
    padding: 18px 0 4px;
  }

  .pathway-grid span,
  .pathway-grid span:nth-child(n) {
    position: static;
    width: auto;
    max-width: 46%;
    transform: none;
    font-size: clamp(1.05rem, 3vw, 1.45rem);
  }

  .pathway-grid span:nth-child(1) {
    flex-basis: 100%;
    max-width: 100%;
    font-size: clamp(1.65rem, 5.4vw, 2.2rem);
  }

  .services-grid .card:nth-child(7) {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .pathway-grid {
    gap: 10px 14px;
  }

  .pathway-grid span,
  .pathway-grid span:nth-child(n) {
    flex-basis: 100%;
    max-width: 100%;
    font-size: clamp(1.04rem, 5.3vw, 1.32rem);
  }

  .pathway-grid span:nth-child(1) {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }
}

/* ---- v7 fix: controlled classic word cloud, no overlap, no rotation ---- */
.pathway-grid {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(7, minmax(34px, auto)) !important;
  width: min(1060px, 100%) !important;
  min-height: 330px !important;
  height: auto !important;
  margin: 26px auto 0 !important;
  padding: clamp(18px, 3vw, 34px) clamp(6px, 2vw, 18px) !important;
  gap: clamp(8px, 1.3vw, 16px) clamp(10px, 1.8vw, 24px) !important;
  align-items: center !important;
  justify-items: center !important;
  isolation: isolate !important;
}

.pathway-grid::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: 8% 4% 6% !important;
  border-radius: 999px !important;
  background:
    radial-gradient(ellipse at 50% 47%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
    radial-gradient(ellipse at 64% 58%, color-mix(in srgb, var(--primary-2) 9%, transparent), transparent 64%) !important;
  filter: blur(22px) !important;
  opacity: 0.84 !important;
}

.pathway-grid span,
.pathway-grid span:nth-child(n) {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: 310px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  text-align: center !important;
  text-wrap: balance !important;
  white-space: normal !important;
  line-height: 1.08 !important;
  letter-spacing: -0.032em !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  text-shadow: 0 10px 26px color-mix(in srgb, var(--bg) 72%, transparent) !important;
}

.pathway-grid span:nth-child(1)  { grid-column: 5 / 9 !important; grid-row: 3 / 5 !important; font-size: clamp(1.9rem, 3.15vw, 2.55rem) !important; font-weight: 860 !important; }
.pathway-grid span:nth-child(2)  { grid-column: 2 / 5 !important; grid-row: 3 / 4 !important; font-size: clamp(1.45rem, 2.15vw, 1.82rem) !important; justify-self: end !important; }
.pathway-grid span:nth-child(3)  { grid-column: 9 / 12 !important; grid-row: 3 / 4 !important; font-size: clamp(1.38rem, 2vw, 1.68rem) !important; justify-self: start !important; }
.pathway-grid span:nth-child(4)  { grid-column: 10 / 13 !important; grid-row: 1 / 2 !important; font-size: clamp(1.08rem, 1.35vw, 1.26rem) !important; justify-self: center !important; }
.pathway-grid span:nth-child(5)  { grid-column: 2 / 5 !important; grid-row: 5 / 6 !important; font-size: clamp(1.2rem, 1.62vw, 1.42rem) !important; justify-self: center !important; }
.pathway-grid span:nth-child(6)  { grid-column: 8 / 11 !important; grid-row: 2 / 3 !important; font-size: clamp(1.16rem, 1.55vw, 1.38rem) !important; justify-self: center !important; }
.pathway-grid span:nth-child(7)  { grid-column: 9 / 13 !important; grid-row: 5 / 6 !important; font-size: clamp(1.12rem, 1.5vw, 1.34rem) !important; justify-self: center !important; }
.pathway-grid span:nth-child(8)  { grid-column: 5 / 9 !important; grid-row: 2 / 3 !important; font-size: clamp(1.13rem, 1.52vw, 1.36rem) !important; }
.pathway-grid span:nth-child(9)  { grid-column: 3 / 6 !important; grid-row: 1 / 2 !important; font-size: clamp(1.05rem, 1.35vw, 1.24rem) !important; justify-self: start !important; }
.pathway-grid span:nth-child(10) { grid-column: 5 / 9 !important; grid-row: 6 / 7 !important; font-size: clamp(1.08rem, 1.42vw, 1.28rem) !important; }
.pathway-grid span:nth-child(11) { grid-column: 1 / 4 !important; grid-row: 2 / 3 !important; font-size: clamp(1.05rem, 1.35vw, 1.24rem) !important; justify-self: center !important; }

@media (max-width: 980px) {
  .pathway-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 0 !important;
    gap: 12px 24px !important;
    padding: 18px 0 8px !important;
  }

  .pathway-grid span,
  .pathway-grid span:nth-child(n) {
    flex: 0 1 auto !important;
    max-width: min(46%, 320px) !important;
    font-size: clamp(1.04rem, 3vw, 1.34rem) !important;
    justify-self: auto !important;
  }

  .pathway-grid span:nth-child(1) {
    flex-basis: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.55rem, 5vw, 2.05rem) !important;
  }
}

@media (max-width: 640px) {
  .pathway-grid span,
  .pathway-grid span:nth-child(n) {
    flex-basis: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1rem, 5vw, 1.24rem) !important;
  }

  .pathway-grid span:nth-child(1) {
    font-size: clamp(1.45rem, 7vw, 1.85rem) !important;
  }
}

/* v7.1: keep word-cloud size differences modest. */
.pathway-grid span:nth-child(1)  { font-size: clamp(1.65rem, 2.55vw, 2.2rem) !important; }
.pathway-grid span:nth-child(2)  { font-size: clamp(1.35rem, 1.85vw, 1.62rem) !important; }
.pathway-grid span:nth-child(3)  { font-size: clamp(1.3rem, 1.78vw, 1.56rem) !important; }
.pathway-grid span:nth-child(4),
.pathway-grid span:nth-child(9),
.pathway-grid span:nth-child(11) { font-size: clamp(1.05rem, 1.28vw, 1.18rem) !important; }
.pathway-grid span:nth-child(5),
.pathway-grid span:nth-child(6),
.pathway-grid span:nth-child(7),
.pathway-grid span:nth-child(8),
.pathway-grid span:nth-child(10) { font-size: clamp(1.1rem, 1.43vw, 1.3rem) !important; }

/* ---- v8 targeted form and spacing cleanup ---- */
.section {
  padding-top: 88px !important;
  padding-bottom: 88px !important;
}

@media (max-width: 640px) {
  .section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
}

.modal {
  align-items: flex-start !important;
  overflow-y: auto !important;
  padding: clamp(10px, 2vh, 18px) !important;
}

.modal-panel {
  width: min(760px, 100%) !important;
  max-height: calc(100svh - 28px) !important;
  overflow-y: auto !important;
  padding: clamp(22px, 3vw, 34px) !important;
  scrollbar-gutter: stable;
}

@supports not (height: 100svh) {
  .modal-panel {
    max-height: calc(100vh - 28px) !important;
  }
}

.modal-panel h2 {
  font-size: clamp(2.35rem, 5.2vw, 4.15rem) !important;
  line-height: 0.98 !important;
  margin-right: 54px !important;
}

.modal-intro {
  margin: 8px 0 18px !important;
}

.lead-form {
  gap: 12px !important;
}

.form-row {
  gap: 12px !important;
}

label {
  gap: 6px !important;
}

input,
select,
textarea {
  min-height: 50px !important;
  padding: 11px 14px !important;
}

textarea {
  min-height: 110px !important;
}

.lead-form .btn.full-width {
  margin-top: 4px !important;
  min-height: 54px !important;
}

@media (max-width: 640px) {
  .modal-panel {
    max-height: calc(100svh - 20px) !important;
    padding: 22px !important;
  }

  .modal-panel h2 {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  input,
  select,
  textarea {
    min-height: 48px !important;
  }
}


/* ---- v9 final form and CTA placement refinements ---- */
/* Remove the empty status line from taking bottom space before a message exists. */
.form-status:empty {
  display: none !important;
}

.form-status {
  margin: 0 !important;
}

/* Slightly tighten the lower part of modal forms without changing their overall look. */
.modal-panel {
  padding-bottom: clamp(18px, 2.4vw, 26px) !important;
}

.lead-form .btn.full-width {
  margin-top: 2px !important;
}

/* Make the unchosen select state read like a placeholder, not like a real option. */
.lead-form select:required:invalid {
  color: var(--muted) !important;
}

.lead-form select option {
  color: var(--text);
}

/* The primary screening CTA now belongs in the screening section, not in the opening hero. */
#services .section-cta .btn {
  margin-top: 22px !important;
}


/* ---- v12 founder section content update ---- */
.founder-split {
  align-items: center !important;
}

.founder-profile {
  padding: 0 !important;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.founder-profile-copy {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.founder-profile-copy .eyebrow {
  margin-bottom: 12px;
}

.founder-profile-copy h2 {
  margin-bottom: 14px;
}

.founder-profile-copy p:last-child {
  color: var(--muted);
}

@media (max-width: 640px) {
  .founder-profile-copy {
    padding: 22px;
  }
}
