/* OncoX V2 — additive stylesheet.
   Extends the base theme (styles.css). Never overrides brand tokens.
   Everything here uses the same vars: --violet, --ink, --bg-dark, etc. */

/* ---------- page-level header for interior pages ----------
   Video-backed banner (BillionToOne-style). layout.js injects the video +
   overlay into every .pagehead on load; this stylesheet just needs to
   position them and keep text legible on top. */
.pagehead {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 88px) 32px 96px;
  min-height: 420px;
  background: var(--bg-dark);
  color: #fff;
  isolation: isolate; /* keeps overlay/video below content without z-index war */
}
.pagehead__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(1.05);
}
.pagehead__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,8,48,0.55) 0%, rgba(21,16,62,0.85) 100%),
    radial-gradient(1200px 500px at 20% 0%, rgba(124,92,255,0.25), transparent 70%);
}
.pagehead__inner { max-width: var(--max); margin: 0 auto; position: relative; }
.pagehead .eyebrow { color: var(--lavender); }
.pagehead .eyebrow .dot { background: var(--lavender); }
.pagehead h1.display {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 18px 0 22px;
  color: #fff;
}
.pagehead h1.display .script-accent { color: var(--lavender); }
.pagehead .lede {
  font-size: 20px;
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  line-height: 1.55;
  margin: 0;
}
.pagehead .lede strong { color: #fff; }

/* ---------- home: product blocks ---------- */
.prodblocks { padding: var(--sec-pad) 32px; }
.prodblocks__inner { max-width: var(--max); margin: 0 auto; }
.prodblocks__head { max-width: 760px; margin-bottom: 44px; }
.prodblocks__head .lede { color: var(--ink-2); margin: 12px 0 0; }
.prodblocks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}

.prodcard {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 220px;
}
.prodcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(21, 16, 62, 0.10);
  border-color: var(--violet);
}
.prodcard--live {
  background: linear-gradient(160deg, #15103e 0%, #221a68 100%);
  color: #fff;
  border-color: transparent;
}
.prodcard--live .prodcard__sub { color: rgba(255,255,255,0.75); }
.prodcard__badge {
  align-self: flex-start;
  font-family: var(--font);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
}
.prodcard__badge--soon {
  background: rgba(124, 92, 255, 0.12);
  color: var(--violet);
}
.prodcard--live .prodcard__badge {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.prodcard__body h3 {
  font-family: var(--display);
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 18px 0 10px;
  line-height: 1.2;
}
.prodcard__body p {
  color: var(--ink-2);
  margin: 0; font-size: 14px;
  line-height: 1.55;
}
.prodcard--live .prodcard__body p { color: rgba(255,255,255,0.8); }
.prodcard__sub {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.prodcard__sub svg { width: 20px; height: 20px; }

@media (max-width: 1100px) { .prodblocks__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .prodblocks__grid { grid-template-columns: 1fr; } }

/* ---------- home: team teaser ---------- */
.teamteaser { padding: var(--sec-pad) 32px; background: var(--bg-2); }
.teamteaser__inner { max-width: var(--max); margin: 0 auto; }
.teamteaser__copy { max-width: 820px; }
.teamteaser .lede { color: var(--ink-2); margin: 18px 0 32px; }

/* ---------- home: news teaser ---------- */
.newsteaser { padding: var(--sec-pad) 32px; }
.newsteaser__inner { max-width: var(--max); margin: 0 auto; }
.newsteaser__head { max-width: 720px; margin-bottom: 40px; }
.newsteaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.newscard {
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 240px;
}
.newscard:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(21, 16, 62, 0.08);
  border-color: var(--violet);
}
.newscard__tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--violet);
  background: rgba(124,92,255,0.10);
  border-radius: 999px;
  padding: 5px 12px;
}
.newscard h3 {
  font-family: var(--display);
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  margin: 18px 0 10px;
  line-height: 1.2;
}
.newscard p { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; flex: 1; }
.newscard__link { color: var(--violet); font-weight: 500; }
.newscard--inactive { cursor: default; }
.newscard--inactive:hover { transform: none; box-shadow: none; border-color: var(--line); }

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

/* ---------- generic content sections used across interior pages ---------- */
.section-tight { padding: var(--sec-pad) 32px; }
.section-tight--dark { padding: var(--sec-pad) 32px; background: var(--bg-dark); color: #fff; }
.section-tight--dark h2 { color: #fff; }
.section-tight__inner { max-width: var(--max); margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- products page: technology cards for Lung ---------- */
.techgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.techcard {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  color: var(--ink);
}
.techcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(21, 16, 62, 0.08);
  border-color: var(--violet);
}
.techcard__meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.techcard__meta span {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(124,92,255,0.10);
  color: var(--violet);
}
.techcard h3 {
  font-family: var(--display);
  font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.techcard p { color: var(--ink-2); font-size: 15px; margin: 0 0 22px; flex: 1; }
.techcard__cta {
  align-self: flex-start;
  color: var(--violet);
  font-weight: 500;
}
@media (max-width: 900px) { .techgrid { grid-template-columns: 1fr; } }

/* ---------- launching soon page ---------- */
.soonhero {
  padding: calc(var(--nav-h) + 96px) 32px 96px;
  background: linear-gradient(160deg, #15103e 0%, #221a68 100%);
  color: #fff;
  min-height: 60vh;
  display: flex; align-items: center;
}
.soonhero__inner { max-width: var(--max); margin: 0 auto; width: 100%; }
.soonhero .eyebrow { color: var(--lavender); }
.soonhero .eyebrow .dot { background: var(--lavender); }
.soonhero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 20px 0;
}
.soonhero .lede {
  font-size: 20px;
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  margin: 0 0 32px;
}
.soonhero__stamp {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 20px;
}

/* ---------- mission block (Company page) ----------
   Two-column editorial layout — heading anchors the left rail, body copy
   sits on the right in a comfortable measure. Uses the same proportions
   as other two-col sections so this reads at parity with the rest of the
   site instead of looking narrow. */
.mission {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.mission__head .eyebrow { margin-bottom: 14px; }
.mission__head .h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
}
.mission__head .h2 .script-accent { color: var(--violet); }
.mission__body p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.mission__body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .mission { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- founder / team page ---------- */
.founder {
  padding: var(--sec-pad) 32px;
}
/* Editorial two-column: portrait sized like a magazine profile shot,
   copy sitting in a comfortable 60ch measure. Ratio locked so wide viewports
   don't stretch either column past its ideal. */
.founder__inner {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 64px;
  align-items: start;
}
.founder__portrait {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(184,176,255,0.35), transparent 60%),
    linear-gradient(160deg, #221a68 0%, #15103e 100%);
  display: flex; align-items: flex-end; padding: 32px;
  color: #fff;
}
.founder__portrait h3 {
  font-family: var(--display); font-size: 28px; margin: 0; line-height: 1.15;
}
.founder__portrait span { display: block; color: var(--lavender); font-size: 14px; margin-top: 6px; }
/* Copy side — name → pull quote → editorial paragraphs.
   Sizes tuned against BillionToOne / Grail / Foundation Medicine founder blocks. */
.founder__body { max-width: 60ch; }
.founder__body .eyebrow { margin-bottom: 14px; }
.founder__name {
  font-family: var(--display);
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--ink);
}
.founder__quote {
  font-family: var(--display);
  font-size: clamp(19px, 1.55vw, 22px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  padding-left: 18px;
  border-left: 3px solid var(--violet);
  margin: 0 0 28px;
}
.founder__body p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.founder__cta { margin-top: 12px; }
@media (max-width: 900px) {
  .founder__inner { grid-template-columns: 1fr; gap: 32px; max-width: 640px; }
  .founder__portrait { max-width: 320px; }
}

/* ---------- news post ---------- */
.post {
  padding: calc(var(--nav-h) + 60px) 32px 72px;
  max-width: 820px;
  margin: 0 auto;
}
.post__meta {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.post h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
}
.post .lede {
  font-size: 20px;
  color: var(--ink-2);
  border-left: 3px solid var(--violet);
  padding-left: 20px;
  margin: 0 0 32px;
}
.post h2 {
  font-family: var(--display);
  font-size: 26px; margin: 40px 0 14px;
}
.post p { color: var(--ink-2); font-size: 17px; margin: 0 0 16px; line-height: 1.65; }
.post ul { color: var(--ink-2); font-size: 17px; padding-left: 22px; margin: 0 0 20px; }
.post li { margin: 0 0 8px; }

/* ---------- careers / investors — content page ----------
   Container width now matches the rest of the site (var(--max)). Each
   heading + its body renders as a two-column editorial block: h2 anchors
   a left rail, copy sits on the right in a comfortable 62ch measure so
   line lengths stay readable at the wider shell. */
.contentpage { padding: var(--sec-pad) 32px; }
.contentpage__inner { max-width: var(--max); margin: 0 auto; }
.contentpage__block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.contentpage__block:first-child { border-top: 0; padding-top: 12px; }
.contentpage__block h2 {
  font-family: var(--display);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.contentpage__body {
  max-width: 62ch;
}
.contentpage__body p,
.contentpage__body li {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
}
.contentpage__body p { margin: 0 0 16px; }
.contentpage__body p:last-child { margin-bottom: 0; }
.contentpage__body ul { padding-left: 22px; margin: 0 0 16px; }
.contentpage__body ul li { margin-bottom: 8px; }

/* Legacy fallback — old contentpage markup without __block wrappers */
.contentpage h2 {
  font-family: var(--display); font-size: 32px; margin: 40px 0 14px;
}
.contentpage p, .contentpage li { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.contentpage ul { padding-left: 22px; }

@media (max-width: 900px) {
  .contentpage__block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }
}

/* ---------- team grid ---------- */
.teamgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
}
/* Leadership row: 4 columns capped so each box matches the SAB box width. */
.teamgrid:not(.teamgrid--sab) {
  max-width: 1080px;
  margin-inline: auto;
}
.teammember {
  display: flex; flex-direction: column;
  text-align: center;
  min-width: 0; /* stop flex/grid children blowing out on narrow tracks */
}
/* Aspect-ratio-locked wrapper. Uses the classic padding trick as a
   bulletproof fallback so no ambient CSS can stretch the photo box. */
.teammember__photo-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 110%; /* nearly square — hugs the subject */
  border-radius: 14px;
  overflow: hidden;
  background: #E8E8ED; /* matches STUDIO_GREY in normalize_team_headshots.py */
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(21, 16, 62, 0.04), 0 8px 24px rgba(21, 16, 62, 0.05);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.teammember__photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.teammember:hover .teammember__photo-wrap {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(21, 16, 62, 0.06), 0 18px 36px rgba(21, 16, 62, 0.09);
}
/* Back-compat: if any page still has a bare <img class="teammember__photo">
   without the wrapper, lock its aspect explicitly. */
img.teammember__photo:not(.teammember__photo-wrap img) {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 10/11;
  border-radius: 14px;
  background: #E8E8ED;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(21, 16, 62, 0.04), 0 8px 24px rgba(21, 16, 62, 0.05);
}
.teammember__name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.25;
}
.teammember__role {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 900px) { .teamgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .teamgrid { grid-template-columns: 1fr; } }

.teamgrid--sab {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) { .teamgrid--sab { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .teamgrid--sab { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .teamgrid--sab { grid-template-columns: 1fr; } }

/* Founder page: real photo instead of gradient placeholder */
.founder__portrait--photo {
  padding: 0;
  background: none;
  overflow: hidden;
}
.founder__portrait--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-lg);
}

/* ---------- nav: 6 links accommodation ---------- */
.nav__links a[aria-current="page"] {
  color: var(--violet);
  font-weight: 600;
}
.nav.is-scrolled .nav__links a[aria-current="page"] { color: var(--violet-2); }

/* ---------- nav: Technology dropdown ---------- */
.nav__has-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav__menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav__caret {
  width: 10px; height: 10px;
  transition: transform .2s ease;
  opacity: .8;
}
.nav__has-menu:hover .nav__caret,
.nav__has-menu:focus-within .nav__caret {
  transform: rotate(180deg);
}
.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 340px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(12, 8, 40, 0.14), 0 2px 6px rgba(12, 8, 40, 0.06);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.nav__has-menu:hover .nav__menu,
.nav__has-menu:focus-within .nav__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* invisible bridge so cursor can travel from trigger to menu without a gap */
.nav__menu::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 14px;
}
.nav__menu-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav__menu-item:hover {
  background: var(--bg-2);
  color: var(--violet);
}
.nav__menu-item::after { display: none; }
.nav__menu-label {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.nav__menu-item:hover .nav__menu-label { color: var(--violet); }
.nav__menu-sub {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ============================================================
   HOME PAGE — extended sections (Panel, Impact, Team preview,
   Patient story, Physician story, Closing CTA)
   All shared tokens; nothing overrides base theme.
============================================================ */

/* Inline "learn more" arrow link — used at the bottom of every section */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--violet);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.link-arrow:hover { color: var(--violet-2); border-bottom-color: currentColor; }

/* ---------- Panel / coverage teaser ---------- */
.paneltease {
  padding: var(--sec-pad) 32px;
  background: var(--bg-2);
}
.paneltease__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.paneltease__copy .lede { color: var(--ink-2); margin: 12px 0 20px; }
.paneltease__counts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.paneltease__count {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-align: center;
}
.paneltease__count strong {
  display: block;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  color: var(--violet);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.paneltease__count span {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .paneltease__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .paneltease__counts { grid-template-columns: 1fr; }
  .paneltease__count strong { font-size: 40px; }
}

/* ---------- Impact stats section ---------- */
.impact { padding: var(--sec-pad) 32px; }
.impact__inner { max-width: var(--max); margin: 0 auto; }
.impact__head { max-width: 720px; margin-bottom: 44px; }
.impact__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.impact__stat {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.impact__stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(21, 16, 62, 0.08);
  border-color: var(--violet);
}
.impact__stat .big {
  display: block;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  color: var(--violet);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.impact__stat .big sup {
  font-size: 0.55em;
  font-weight: 600;
  margin-left: 2px;
  vertical-align: super;
}
.impact__stat .small {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.impact__stat .small em { color: var(--ink-3); font-style: normal; font-size: 12px; }
.impact__cta { margin-top: 32px; text-align: center; }
@media (max-width: 1000px) { .impact__stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  {
  .impact__stats { grid-template-columns: 1fr; }
  .impact__stat .big { font-size: 44px; }
}

/* ---------- Team preview on home ---------- */
.teampreview { padding: var(--sec-pad) 32px; background: var(--bg-2); }
.teampreview__inner { max-width: var(--max); margin: 0 auto; }
.teampreview__head { max-width: 820px; margin-bottom: 40px; }
.teampreview__head .lede { color: var(--ink-2); margin: 12px 0 0; }
.teampreview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.teampreview__cta { text-align: center; margin-top: 40px; }
@media (max-width: 900px) { .teampreview__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .teampreview__grid { grid-template-columns: 1fr; } }

/* ---------- Home: split team layout (BillionToOne-style) ---------- */
.teamsplit {
  padding: var(--sec-pad) 32px;
  background: var(--bg-2); /* soft lavender wash — matches photo backdrop */
}
.teamsplit__inner { max-width: var(--max); margin: 0 auto; }
.teamsplit__card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
}
.teamsplit__copy {
  padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--ink);
}
.teamsplit__eyebrow {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
  margin-bottom: 20px;
}
.teamsplit__h {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 22px;
  color: var(--ink);
}
.teamsplit__sub {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 460px;
}
.teamsplit__sub strong { color: var(--ink); font-weight: 600; }
.teamsplit__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.teamsplit__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.teamsplit__btn:hover {
  background: var(--ink);
  color: #fff;
}
.teamsplit__btn--primary {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}
.teamsplit__btn--primary:hover {
  background: var(--violet-2);
  border-color: var(--violet-2);
  color: #fff;
}

/* Themed frame around Aditi's photo — layered violet accent + photo card */
.teamsplit__frame {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  padding: 14px; /* mat around the photo */
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 4px 12px rgba(21, 16, 62, 0.06),
    0 24px 60px rgba(21, 16, 62, 0.10);
  isolation: isolate;
}
.teamsplit__photo {
  background-image: url("/assets/team/normalized/aditi-datta.webp?v=20260810f");
  background-size: cover;
  background-position: center 12%;
  background-repeat: no-repeat;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  display: block;
}

@media (max-width: 900px) {
  .teamsplit__card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .teamsplit__copy { padding: 44px 32px 16px; order: 1; }
  .teamsplit__frame { order: 2; margin: 0 auto 32px; max-width: 360px; }
}
@media (max-width: 500px) {
  .teamsplit { padding: var(--sec-pad) 20px; }
  .teamsplit__copy { padding: 36px 24px 20px; }
  .teamsplit__frame { max-width: 280px; padding: 10px; }
  .teamsplit__photo { min-height: 300px; }
}

/* ---------- Patient / physician story sections ---------- */
.story { padding: var(--sec-pad) 32px; }
.story--patient { }
.story--physician { background: var(--bg-2); }
.story__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.story--physician .story__inner { grid-template-columns: 1fr 1.2fr; }
.story__copy .lede { color: var(--ink-2); margin: 14px 0; font-size: 18px; }
.story__copy .link-arrow { margin-top: 6px; display: inline-flex; }

.story__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(21, 16, 62, 0.06);
}
.story__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--violet);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.story__dl { margin: 0; }
.story__dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.story__dl > div:last-child { border-bottom: none; }
.story__dl dt {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.story__dl dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.45;
}
.story__fine {
  font-size: 12px;
  color: var(--ink-3);
  margin: 16px 0 0;
  font-style: italic;
}

.story__quote {
  background: linear-gradient(160deg, #221a68 0%, #15103e 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(21, 16, 62, 0.12);
}
.story__quotemark {
  width: 42px;
  height: 42px;
  color: var(--lavender);
  opacity: 0.85;
  margin-bottom: 8px;
}
.story__quote p {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 24px;
  color: #fff;
}
.story__quote footer {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.5;
}
.story__quote footer strong { color: #fff; }

@media (max-width: 900px) {
  .story__inner,
  .story--physician .story__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .story__quote p { font-size: 17px; }
}
@media (max-width: 500px) {
  .story__dl > div { grid-template-columns: 1fr; gap: 2px; }
  .story__card { padding: 24px; }
  .story__quote { padding: 28px; }
}

/* ---------- News teaser CTA row ---------- */
.newsteaser__cta { text-align: center; margin-top: 40px; }

/* ---------- Closing big CTA ---------- */
.bigcta {
  padding: var(--sec-pad) 32px;
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bigcta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 20% 0%, rgba(124,92,255,0.25), transparent 70%),
    radial-gradient(500px 300px at 80% 100%, rgba(184,176,255,0.15), transparent 70%);
  pointer-events: none;
}
.bigcta__inner { max-width: 820px; margin: 0 auto; position: relative; }
.bigcta .eyebrow { color: var(--lavender); }
.bigcta .eyebrow .dot { background: var(--lavender); }
.bigcta__h {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 20px 0;
  color: #fff;
}
.bigcta__h .script-accent { color: var(--lavender); }
.bigcta__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.bigcta__btn { font-size: 16px; padding: 16px 32px; }

/* ============================================================
   MOBILE HAMBURGER + OFF-CANVAS NAV
   Injected by layout.js; hidden on >760px.
============================================================ */
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  margin-left: auto;
  cursor: pointer;
  color: inherit;
  z-index: 100;
}
.nav__toggle svg { width: 26px; height: 26px; display: block; }
.nav__toggle .icon-close { display: none; }
.nav.is-menu-open .nav__toggle .icon-open { display: none; }
.nav.is-menu-open .nav__toggle .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(21, 16, 62, 0.98);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  color: #fff;
  padding: calc(var(--nav-h) + 32px) 32px 48px;
  overflow-y: auto;
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu a[aria-current="page"] { color: var(--lavender); }
.mobile-menu a svg { width: 18px; height: 18px; opacity: 0.6; }
.mobile-menu__submenu {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  gap: 0;
  margin: -8px 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu__submenu a {
  font-size: 16px;
  padding: 10px 0;
  border-bottom-color: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-weight: 500;
}
.mobile-menu__submenu a small {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
  font-weight: 400;
}
.mobile-menu__cta {
  margin-top: 24px;
  display: inline-flex;
  justify-content: center;
  padding: 14px 24px;
  background: var(--violet);
  border-radius: 999px;
  color: #fff !important;
  border-bottom: none !important;
  font-family: var(--font) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* Lock body when menu open */
body.is-menu-locked { overflow: hidden; }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links, .nav__cta { display: none !important; }
  /* Keep frosted style permanent on mobile once open, else transparent-safe */
  .nav.is-menu-open {
    background: rgba(21, 16, 62, 0.98) !important;
    backdrop-filter: none;
  }
  .nav.is-menu-open .nav__logo--light { opacity: 1 !important; }
  .nav.is-menu-open .nav__logo--dark  { opacity: 0 !important; }
  .nav.is-menu-open .nav__toggle { color: #fff; }
}

/* ============================================================
   RESPONSIVE POLISH — home hero + generic
============================================================ */
@media (max-width: 900px) {
  .hero__copy { padding: 0 8px; }
  .hero .display { font-size: clamp(40px, 8vw, 60px) !important; }
  .hero .lede { font-size: 17px; }
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}
@media (max-width: 500px) {
  :root { --sec-pad: 56px; }
  .pagehead h1.display { font-size: clamp(34px, 8vw, 48px); }
  .pagehead .lede { font-size: 17px; }
  .prodblocks__head .lede,
  .impact__head .lede,
  .teampreview__head .lede { font-size: 16px; }
}
