/* Nebula Longevity — site styles (v4)
   Brand: Deep Navy #0B1D3A · Teal #00B4C4 · Silver Blue #A7B8D6 · Soft White #F6F8FA
   System: light pages and header, dark image-led bands, dark footer. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F7F9FB;
  --white: #FFFFFF;
  --mist: #EDF2F6;
  --ink: #0B1D3A;
  --ink-2: #2E3F59;
  --muted: #5A6A81;
  --teal: #00B4C4;
  --teal-ink: #00808C;
  --teal-hi: #4FD8E2;
  --silver: #A7B8D6;
  --night: #061226;
  --night-2: #0B1D3A;
  --on-dark: #E6ECF5;
  --on-dark-2: #C3CEDF;
  --on-dark-muted: #94A4BD;
  --rule: rgba(11, 29, 58, .12);
  --rule-d: rgba(167, 184, 214, .16);

  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--teal); color: var(--night); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 500; color: inherit; }
h1 { font-size: clamp(42px, 6.2vw, 86px); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.2; letter-spacing: -.015em; }
h1 .accent, h2 .accent { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--teal-ink); font-size: 1.06em; line-height: 1.02; }
.dark h1 .accent, .dark h2 .accent { color: var(--teal-hi); }
h1 .line, h2 .line { display: block; }
p { margin: 0; }
.eyebrow { display: block; font-size: 12.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 22px; }
.dark .eyebrow { color: var(--teal-hi); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.dark .lede { color: var(--on-dark-2); }
.body { color: var(--muted); max-width: 36em; }
.dark .body { color: var(--on-dark-muted); }
.stack > * + * { margin-top: 18px; }
.note { font-size: 14.5px; color: var(--muted); }
.dark .note { color: var(--on-dark-muted); }

/* ---------- Header (light) ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.is-solid { border-bottom-color: var(--rule); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.wordmark { display: grid; line-height: 1; }
.wordmark b { font-weight: 500; font-size: 20px; letter-spacing: .3em; }
.wordmark b svg { display: inline-block; width: .78em; height: .74em; vertical-align: -.02em; margin-left: .02em; }
.wordmark span { font-size: 11px; font-weight: 650; letter-spacing: .52em; color: var(--teal-ink); margin-top: 6px; }
.footer .wordmark b { color: var(--on-dark); }
.footer .wordmark span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: block; text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--ink-2); padding: 10px 16px; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(.4); }
.nav-links a[aria-current="page"] { color: var(--teal-ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); background: #fff; border-radius: 12px; color: var(--ink); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .25s, opacity .2s; }
.nav.is-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.is-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: block; margin-left: auto; order: 2; }
  .brand img { width: 42px; height: 42px; }
  .wordmark b { font-size: 18px; }
  .wordmark span { font-size: 10px; }
  .nav .wrap > nav { order: 3; width: 0; }
  .nav.is-open { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--rule); }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100dvh - var(--nav-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 12px var(--gutter) 40px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s, transform .22s, visibility 0s .22s; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .22s; }
  .nav-links li { display: block; }
  .nav-links a { font-size: 28px; font-weight: 500; letter-spacing: -.02em; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .nav-links a::after { display: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 14px; height: 14px; transition: transform .2s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-primary { background: var(--teal); color: var(--night); }
.btn-primary:hover { background: var(--teal-hi); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #142c52; }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost { border-color: rgba(167, 184, 214, .4); color: var(--on-dark); }
.dark .btn-ghost:hover { border-color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--teal-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }
.dark .text-link { color: var(--teal-hi); }

/* ---------- Sections ---------- */
main { padding-top: var(--nav-h); }
.section { position: relative; padding-block: clamp(80px, 10vw, 136px); }
.section.tight-top { padding-top: 0; }
.bg-white { background: var(--white); }
.bg-mist { background: var(--mist); }
.dark { background: var(--night); color: var(--on-dark); }
.dark.navy { background: var(--night-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.text-wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.split.top { align-items: start; }
@media (max-width: 960px) { .split, .split.text-wide { grid-template-columns: 1fr; } }

/* framed imagery (all illustrations are dark, so they sit in a navy frame) */
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--night-2); border: 1px solid rgba(11, 29, 58, .18); }
.frame img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.frame figcaption { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 22px 28px; border-top: 1px solid var(--rule-d); color: var(--on-dark); font-size: 15px; }
.frame figcaption b { display: block; font-weight: 600; margin-bottom: 2px; }
.frame figcaption span { color: var(--on-dark-muted); }
@media (max-width: 760px) { .frame figcaption { grid-template-columns: 1fr; gap: 14px; } .frame { border-radius: 16px; } }

/* ---------- Network canvas ---------- */
canvas.network { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Home hero (dark, image-led) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(560px, 45vw, 760px); display: flex; align-items: center; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; z-index: -3; }
.hero .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(6, 18, 38, .55) 0%, rgba(6, 18, 38, .35) 40%, rgba(6, 18, 38, 0) 62%); }
.hero canvas.network { z-index: -1; }
.hero-body { padding-block: clamp(72px, 10vw, 120px); }
.hero h1 { font-size: clamp(40px, 5.4vw, 78px); max-width: none; }
.hero .lede { margin-top: 28px; max-width: 28em; }
.hero .btn-row { margin-top: 40px; }
@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero { min-height: calc(100svh - var(--nav-h)); }
  .hero .hero-img { object-position: 84% 20%; }
  .hero::before { background: linear-gradient(0deg, rgba(6, 18, 38, .96) 30%, rgba(6, 18, 38, .55) 70%, rgba(6, 18, 38, .2) 100%); }
}

/* one orchestrated entrance, hero only */
.js .reveal-line > * { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .1, 1); }
.js.loaded .reveal-line > * { opacity: 1; transform: none; }
.js.loaded .reveal-line > :nth-child(2) { transition-delay: .08s; }
.js.loaded .reveal-line > :nth-child(3) { transition-delay: .2s; }
.js.loaded .reveal-line > :nth-child(4) { transition-delay: .32s; }

/* ---------- Page hero (light) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--paper); padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--rule); }
.page-hero canvas.network { z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 70%); mask-image: linear-gradient(90deg, transparent 15%, #000 70%); }
.page-hero h1 { max-width: 13em; }
.page-hero .lede { margin-top: 28px; }

/* ---------- Disease areas ---------- */
.areas { display: grid; grid-template-columns: 1.35fr 1fr 1fr; border-top: 1px solid var(--rule); }
.area { padding: 34px 32px 38px 0; display: flex; flex-direction: column; gap: 14px; }
.area + .area { padding-left: 32px; border-left: 1px solid var(--rule); }
.area .status { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.area .status i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.area.lead .status { color: var(--teal-ink); }
.area.lead .status i { background: currentColor; }
.area p { color: var(--muted); }
.tissues { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: auto 0 0; padding: 14px 0 0; }
.tissues li { font-size: 14px; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); background: var(--white); }
.area.lead .tissues li { border-color: rgba(0, 128, 140, .35); color: var(--teal-ink); }
.areas-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 24px; }
@media (max-width: 960px) {
  .areas { grid-template-columns: 1fr; }
  .area, .area + .area { padding: 30px 0; border-left: 0; }
  .area + .area { border-top: 1px solid var(--rule); }
}

/* ---------- Approach tabs ---------- */
.tabs { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.tablist { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.tab { font: inherit; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 24px 20px; color: var(--muted); font-size: 17px; font-weight: 600; position: relative; display: flex; align-items: baseline; gap: 12px; transition: color .2s, background .2s; }
.tab + .tab { border-left: 1px solid var(--rule); }
.tab small { font-size: 12.5px; font-weight: 600; color: var(--silver); font-variant-numeric: tabular-nums; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--paper); }
.tab[aria-selected="true"] small { color: var(--teal-ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); padding: clamp(20px, 3vw, 36px); align-items: center; }
.tabpanel[hidden] { display: none; }
.tabpanel img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 14px; background: var(--night-2); }
.tabpanel h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 16px; }
.tabpanel h3 .accent { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--teal-ink); }
.tabpanel .kicker { font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; display: block; }
.tabpanel p { color: var(--muted); max-width: 30em; }
.tabpanel .text-link { display: inline-block; margin-top: 24px; }
.js .tabpanel:not([hidden]) > * { animation: tabIn .45s ease both; }
.js .tabpanel:not([hidden]) > :nth-child(2) { animation-delay: .05s; }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cycle-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.cycle-note svg { width: 18px; height: 18px; color: var(--teal-ink); flex: none; }
@media (max-width: 760px) {
  .tablist { grid-template-columns: repeat(2, 1fr); }
  .tab:nth-child(3) { border-left: 0; }
  .tab:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .tabpanel { grid-template-columns: 1fr; }
}

/* ---------- Science: focus cards ---------- */
.focus { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted); }
.card p + p { margin-top: 12px; }
.card.tint { background: transparent; border-style: dashed; border-color: rgba(0, 128, 140, .4); }
.card .eyebrow { margin-bottom: 14px; font-size: 12px; }
@media (max-width: 860px) { .focus { grid-template-columns: 1fr; } }
.statement { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -.018em; font-weight: 500; max-width: 26em; }

/* ---------- Dark list ---------- */
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { padding: 28px 0; border-top: 1px solid var(--rule-d); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px 48px; }
.reasons li:last-child { border-bottom: 1px solid var(--rule-d); }
.reasons h3 { font-size: 26px; }
.reasons p { color: var(--on-dark-2); }
@media (max-width: 760px) { .reasons li { grid-template-columns: 1fr; } }

/* ---------- Technology: capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-d); }
.cap { padding: 30px 28px 32px 0; border-bottom: 1px solid var(--rule-d); }
.cap:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--rule-d); }
.cap svg { width: 30px; height: 30px; color: var(--teal-hi); margin-bottom: 18px; }
.cap h3 { font-size: 22px; margin-bottom: 8px; }
.cap p { color: var(--on-dark-muted); font-size: 16px; }
.cap-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 28px; padding: 30px 0; border-bottom: 1px solid var(--rule-d); }
.cap-wide h3 { font-size: 22px; }
.cap-wide p { color: var(--on-dark-2); }
@media (max-width: 960px) {
  .caps { grid-template-columns: 1fr 1fr; }
  .cap, .cap:not(:nth-child(3n+1)) { padding: 28px 22px 28px 0; border-left: 0; }
  .cap:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--rule-d); }
}
@media (max-width: 600px) {
  .caps { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(2n), .cap:not(:nth-child(3n+1)) { padding: 26px 0; border-left: 0; }
  .cap-wide { grid-template-columns: 1fr; }
}

/* ---------- Pipeline chart (dark) ---------- */
.pipeline { --cols: 5; border-top: 1px solid var(--rule-d); }
.pl-head, .pl-row { display: grid; grid-template-columns: 112px minmax(0, 1.2fr) minmax(0, 3.4fr); gap: 0 24px; align-items: center; }
.pl-head { padding: 14px 0; font-size: 13.5px; font-weight: 600; color: var(--on-dark-muted); border-bottom: 1px solid var(--rule-d); }
.pl-stages { display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.pl-stages span { padding-left: 12px; border-left: 1px solid var(--rule-d); }
.pl-group { padding: 26px 0 8px; font-size: 14px; font-weight: 650; color: var(--teal-hi); display: flex; align-items: center; gap: 10px; }
.pl-group::after { content: ""; flex: 1; height: 1px; background: var(--rule-d); }
.pl-row { padding: 18px 0; border-bottom: 1px solid var(--rule-d); }
.pl-id { font-weight: 700; font-size: 17px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pl-ind b { display: block; font-weight: 600; font-size: 16.5px; }
.pl-ind span { display: block; font-size: 14.5px; color: var(--on-dark-muted); line-height: 1.45; margin-top: 2px; }
.pl-track { position: relative; height: 44px; display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.pl-track i { border-left: 1px solid var(--rule-d); }
.pl-bar { position: absolute; left: 0; top: 50%; height: 10px; margin-top: -5px; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, rgba(0, 180, 196, .25), var(--teal)); transform-origin: left center; }
.pl-bar::after { content: ""; position: absolute; right: -5px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--night); border: 3px solid var(--teal); }
.pl-row.is-lead .pl-bar::after { background: var(--teal-hi); box-shadow: 0 0 0 6px rgba(0, 180, 196, .16); }
.js .pipeline .pl-bar { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.2, .7, .1, 1); }
.js .pipeline.in-view .pl-bar { transform: scaleX(1); }
.pl-stage-label { display: none; }
.pl-note { margin-top: 22px; font-size: 14.5px; color: var(--on-dark-muted); max-width: 52em; }
@media (max-width: 860px) {
  .pl-head { display: none; }
  .pl-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .pl-id { font-size: 15px; color: var(--teal-hi); }
  .pl-track { height: 30px; margin-top: 10px; }
  .pl-stage-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--on-dark-muted); margin-top: 4px; }
  .pl-stage-label span:first-child { color: var(--on-dark); font-weight: 600; font-size: 14px; }
}

/* ---------- Healthy-aging path ---------- */
.wellness { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px 64px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--rule); }
.wellness .tag { display: inline-flex; font-size: 13.5px; font-weight: 600; color: #6A5A2E; background: #F3ECD9; border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
.wellness h2 { font-size: clamp(28px, 3vw, 40px); }
.wellness ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; color: var(--muted); }
.wellness .disclaimer { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 22px; }
@media (max-width: 860px) { .wellness { grid-template-columns: 1fr; } }

/* ---------- CTA (shared on every page that has one) ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--mist); border-top: 1px solid var(--rule); }
.cta canvas.network { z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%); mask-image: linear-gradient(90deg, transparent 30%, #000 85%); }
.cta .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 14em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.mail { display: inline-block; margin: 22px 0 26px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; color: var(--teal-ink); text-decoration: none; border-bottom: 1px solid currentColor; letter-spacing: -.01em; }
.mail:hover { color: var(--ink); }
.form { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--mist); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--rule); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-ink); background: #fff; box-shadow: 0 0 0 3px rgba(0, 180, 196, .18); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 14.5px; color: var(--muted); align-items: start; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal-ink); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* ---------- Prose ---------- */
.prose { max-width: 42em; }
.prose h2 { font-size: 28px; letter-spacing: -.02em; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 14px; }

/* ---------- Footer (dark) ---------- */
.footer { background: var(--night); color: var(--on-dark-muted); padding: 64px 0 36px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.footer .brand { color: var(--on-dark); }
.footer-tag { margin-top: 22px; font-size: 16px; line-height: 1.55; color: var(--on-dark-2); max-width: 22em; }
.footer h4 { margin: 0 0 14px; color: var(--on-dark); font-size: 15px; font-weight: 650; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-dark); }
.footer h4 a:hover { color: var(--teal-hi); }
.footer ul a[aria-current="page"], .footer h4 a[aria-current="page"] { color: var(--teal-hi); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; border-top: 1px solid var(--rule-d); font-size: 13.5px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal-line > * { opacity: 1; transform: none; }
  .js .pipeline .pl-bar { transform: none; }
}
