/* Delta Medical Monitoring — site styles
   Layout concept: Apple-style alternating "stage" (always-dark, monitor-lit) bands and quiet
   light bands; one bold moment per page (live evoked-potential traces), everything else restrained. */
:root {
  /* light surfaces */
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --surface: #ffffff;
  --fg: #0a1326;
  --muted: #59647a;
  --line: #e0e6ee;
  --accent: #0a6cc2;
  --accent-ink: #ffffff;
  --accent-soft: #e6f1fb;
  --ok: #138a5e;
  /* stage: deliberately always dark, like an OR monitor */
  --stage: #050b1a;
  --stage-2: #0a1428;
  --stage-fg: #f2f5fa;
  --stage-muted: #8e9bb4;
  --stage-line: #1b2944;
  --trace: #5cb8ff;
  --trace-2: #b9dcff;
  --navy: #011040;
  /* type */
  --font-display: "Geist", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);
  --step-5: clamp(3rem, 1.6rem + 6.4vw, 6.75rem);
  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --logo-light: block;
  --logo-dark: none;
  --map-land: #e9eef5;
  --map-stroke: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b14; --bg-alt: #0c1220; --surface: #0f1626; --fg: #edf1f8; --muted: #98a3b6;
    --line: #1d2638; --accent: #4fb3ff; --accent-ink: #04122a; --accent-soft: #0f2340; --ok: #3fcf96;
    --logo-light: none; --logo-dark: block; --map-land: #162034; --map-stroke: #070b14; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070b14; --bg-alt: #0c1220; --surface: #0f1626; --fg: #edf1f8; --muted: #98a3b6;
  --line: #1d2638; --accent: #4fb3ff; --accent-ink: #04122a; --accent-soft: #0f2340; --ok: #3fcf96;
  --logo-light: none; --logo-dark: block; --map-land: #162034; --map-stroke: #070b14; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; letter-spacing: -0.025em; margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 760px; }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.lede .mono { white-space: nowrap; font-size: .92em; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; max-width: 62ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand .logo-light { display: var(--logo-light); }
.brand .logo-dark { display: var(--logo-dark); }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--fg); font-size: 0.9rem; opacity: 0.82; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--fg); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 980px) {
  .nav-links, .nav-phone { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-cta { margin-left: 0; }
  .nav-cta .btn { display: none; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); padding-block: 12px 22px; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-menu a { display: block; padding: 13px 0; font-size: 1.35rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--fg); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; width: 100%; justify-content: center; }
@media (min-width: 981px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 22px;
  font: 500 0.95rem/1 var(--font-body); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--fg)); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.link-arrow { font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
:is(.stage, .hero, .page-hero, .cta-band) .btn-primary { background: var(--trace); color: var(--stage); }
:is(.stage, .hero, .page-hero, .cta-band) .btn-primary:hover { background: #8fd0ff; }
:is(.stage, .hero, .page-hero, .cta-band) .btn-ghost { color: var(--stage-fg); border-color: #2a3a5a; }
:is(.stage, .hero, .page-hero, .cta-band) .btn-ghost:hover { border-color: var(--stage-fg); }
:is(.stage, .cta-band) .link-arrow { color: var(--trace); }

/* ---------- Bands ---------- */
.band { padding-block: clamp(72px, 10vw, 140px); }
.band-tight { padding-block: clamp(56px, 7vw, 96px); }
.band-alt { background: var(--bg-alt); }
.stage { background: var(--stage); color: var(--stage-fg); color-scheme: dark; }
.stage .eyebrow { color: var(--trace); }
.stage .lede, .stage .muted { color: var(--stage-muted); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--step-4); }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--stage); color: var(--stage-fg); isolation: isolate; }
.hero-monitor { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,11,26,.96) 0%, rgba(5,11,26,.85) 38%, rgba(5,11,26,0) 62%),
    linear-gradient(180deg, rgba(5,11,26,0) 60%, var(--stage) 100%); }
.hero-inner { padding-block: clamp(84px, 13vw, 168px) clamp(72px, 10vw, 128px); display: grid; gap: 28px; }
.hero h1 { font-size: clamp(3rem, 1.5rem + 4.6vw, 5.6rem); letter-spacing: -0.045em; font-weight: 600; }
.hero-inner > * { max-width: 620px; }
@media (max-width: 999px) { .hero-monitor { opacity: .3; } }
.hero h1 .dim { color: var(--stage-muted); }
.hero .lede { color: #b7c3d9; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.hero-readout { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--stage-muted); letter-spacing: 0.04em; }
.hero-readout span { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fdc8f; box-shadow: 0 0 0 0 rgba(63,220,143,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,220,143,.55); } 70% { box-shadow: 0 0 0 10px rgba(63,220,143,0); } 100% { box-shadow: 0 0 0 0 rgba(63,220,143,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.page-hero { background: var(--stage); color: var(--stage-fg); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .wrap { padding-block: clamp(72px, 10vw, 128px) clamp(56px, 7vw, 96px); display: grid; gap: 22px; }
.page-hero h1 { font-size: var(--step-4); letter-spacing: -0.04em; max-width: 16ch; }
.page-hero .lede { color: #b2bfd6; }
.page-hero .trace-bg { position: absolute; right: 0; bottom: 8%; width: min(560px, 42%); height: 46%; z-index: -1; opacity: .45; color: var(--trace); }
.page-hero .trace-bg svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .page-hero .trace-bg { width: 70%; height: 30%; bottom: 0; opacity: .25; } }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { padding: 28px 22px; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.trust-item span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item { padding: 22px 16px; }
  .trust-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Big statement ---------- */
.statement { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; max-width: 22ch; text-wrap: balance; }
.statement em { font-style: normal; color: var(--muted); }
.stage .statement em { color: var(--stage-muted); }

/* ---------- Specialty tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 24px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-width: 0;
  transition: transform .3s ease, border-color .3s ease;
  color: var(--fg);
}
a.tile:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tile .tile-trace { height: 54px; color: var(--accent); margin-bottom: 6px; }
.tile .tile-trace svg { width: 100%; height: 100%; overflow: visible; }
.tile h3 { font-size: 1.42rem; letter-spacing: -0.02em; }
.tile p { color: var(--muted); font-size: 0.98rem; }
.tile .tile-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px; }
.band-alt .tile { background: var(--surface); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.process li { list-style: none; padding: 0 18px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.process li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--trace); letter-spacing: .08em;
  padding-bottom: 14px; border-bottom: 1px solid var(--stage-line); margin-bottom: 8px;
}
.process h3 { font-size: 1.18rem; letter-spacing: -0.015em; }
.process p { color: var(--stage-muted); font-size: 0.95rem; }
.process { padding: 0; margin: 0; }
@media (max-width: 960px) { .process { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 36px; } }
@media (max-width: 560px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.cell { border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; }
.cell h3 { font-size: var(--step-2); letter-spacing: -0.025em; }
.cell p { color: var(--muted); }
.cell.span-2 { grid-column: span 2; } .cell.span-3 { grid-column: span 3; } .cell.span-4 { grid-column: span 4; } .cell.span-6 { grid-column: span 6; }
.cell.dark { background: var(--stage); color: var(--stage-fg); border-color: var(--stage); }
.cell.dark p { color: var(--stage-muted); }
.cell .big { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 3rem + 5vw, 7.5rem); letter-spacing: -0.05em; line-height: .9; }
.cell .big sup { font-size: .4em; vertical-align: top; position: relative; top: .15em; color: var(--trace); margin-left: 2px; }
.cell .cell-trace { color: var(--trace); height: 70px; margin-top: 8px; }
.cell .cell-trace svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) { .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cell.span-2, .cell.span-3 { grid-column: span 1; } .cell.span-4, .cell.span-6 { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .cell.span-2, .cell.span-3, .cell.span-4, .cell.span-6 { grid-column: span 1; } }

/* ---------- Modality marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--stage-line); padding-block: 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.02em; color: var(--stage-fg); white-space: nowrap; display: inline-flex; align-items: center; gap: 46px; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--trace); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.split .copy { display: grid; gap: 20px; }
.split .copy h2 { font-size: var(--step-3); }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); } }

.checklist { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.checklist li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); background-image: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px); }
.stage .checklist li::before { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--trace); background-image: radial-gradient(circle, var(--trace) 0 3px, transparent 3.5px); }

/* ---------- Monitor panel (stage illustration) ---------- */
.monitor-panel { background: linear-gradient(180deg, var(--stage-2), var(--stage)); border: 1px solid var(--stage-line); border-radius: var(--radius); padding: 18px; color: var(--stage-fg); box-shadow: 0 40px 80px -40px rgba(10,108,194,.45); }
.monitor-top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--stage-muted); letter-spacing: 0.05em; padding: 2px 4px 12px; border-bottom: 1px solid var(--stage-line); flex-wrap: wrap; }
.monitor-rows { display: grid; }
.monitor-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 76px; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--stage-line); }
.monitor-row:last-child { border-bottom: 0; }
.monitor-row .ch { font-family: var(--font-mono); font-size: 0.72rem; color: var(--stage-muted); line-height: 1.35; }
.monitor-row .ch b { display: block; color: var(--stage-fg); font-weight: 500; }
.monitor-row svg { width: 100%; height: 44px; color: var(--trace); overflow: visible; }
.monitor-row .val { font-family: var(--font-mono); font-size: 0.74rem; text-align: right; color: var(--trace-2); font-variant-numeric: tabular-nums; }
.monitor-row .val small { display: block; color: var(--stage-muted); font-size: 0.66rem; }
@media (max-width: 480px) { .monitor-row { grid-template-columns: 84px minmax(0, 1fr); } .monitor-row .val { display: none; } }

/* ---------- CTA ---------- */
.cta-band { background: var(--stage); color: var(--stage-fg); position: relative; overflow: hidden; isolation: isolate; }
.cta-band .wrap { padding-block: clamp(80px, 11vw, 150px); display: grid; gap: 24px; justify-items: center; text-align: center; }
.cta-band h2 { font-size: var(--step-4); max-width: 16ch; }
.cta-band .lede { color: var(--stage-muted); }
.cta-band .trace-line { position: absolute; left: 0; right: 0; top: 50%; height: 160px; transform: translateY(-50%); z-index: -1; color: var(--trace); opacity: .16; }
.cta-band .trace-line svg { width: 100%; height: 100%; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--stage); color: var(--stage-muted); border-top: 1px solid var(--stage-line); font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 40px; }
.footer-grid > * { min-width: 0; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 38ch; }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stage-fg); font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--stage-muted); }
.site-footer a:hover { color: var(--stage-fg); }
.footer-legal { border-top: 1px solid var(--stage-line); padding-block: 22px 32px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.8rem; }
.footer-legal p { max-width: 80ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Services page ---------- */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; overflow-x: auto; list-style: none; margin: 0; padding-block: 10px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.subnav a:hover { background: var(--bg-alt); color: var(--fg); text-decoration: none; }
.specialty { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.specialty:first-of-type { border-top: 0; }
.specialty .spec-head { display: grid; gap: 14px; align-content: start; }
.specialty h2 { font-size: var(--step-3); }
.specialty .spec-trace { color: var(--accent); height: 64px; margin-top: 10px; }
.specialty .spec-trace svg { width: 100%; height: 100%; overflow: visible; }
.proc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.proc-list li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.proc-list li small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
@media (max-width: 880px) { .specialty { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .proc-list { grid-template-columns: minmax(0, 1fr); } }

.modalities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--stage-line); border: 1px solid var(--stage-line); border-radius: var(--radius); overflow: hidden; }
.modality { background: var(--stage); padding: 26px 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.modality .abbr { font-family: var(--font-mono); font-size: 0.78rem; color: var(--trace); letter-spacing: .08em; }
.modality h3 { font-size: 1.16rem; letter-spacing: -0.015em; color: var(--stage-fg); }
.modality p { color: var(--stage-muted); font-size: 0.93rem; }
.modality svg { width: 100%; height: 40px; color: var(--trace); overflow: visible; margin-bottom: 4px; }
@media (max-width: 960px) { .modalities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .modalities { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Schedule / forms ---------- */
.schedule-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.schedule-layout > * { min-width: 0; }
@media (max-width: 960px) { .schedule-layout { grid-template-columns: minmax(0, 1fr); } .schedule-aside { order: -1; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.4vw, 40px); box-shadow: 0 30px 60px -45px rgba(1,16,64,.35); }
.zx-frame { width: 100%; min-height: 1600px; border: 0; border-radius: var(--radius-sm); background: #fff; display: block; }
.segmented { display: inline-grid; grid-auto-flow: column; background: var(--bg-alt); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 26px; max-width: 100%; }
.segmented button { border: 0; background: transparent; color: var(--muted); font: 500 0.9rem var(--font-body); padding: 9px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(1,16,64,.14); }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 30px; list-style: none; padding: 0; }
.stepper li { display: grid; gap: 8px; font-size: 0.8rem; color: var(--muted); min-width: 0; }
.stepper li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line); }
.stepper li.done::before, .stepper li.current::before { background: var(--accent); }
.stepper li.current { color: var(--fg); font-weight: 500; }
.stepper li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h2 { font-size: var(--step-2); margin-bottom: 6px; }
.form-step > .muted { margin-bottom: 24px; font-size: 0.95rem; }
fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
legend { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
.f { display: grid; gap: 6px; grid-column: span 6; min-width: 0; }
.f.s3 { grid-column: span 3; } .f.s2 { grid-column: span 2; } .f.s4 { grid-column: span 4; }
@media (max-width: 640px) { .f.s3, .f.s2, .f.s4 { grid-column: span 6; } }
.f label, .f .label { font-size: 0.85rem; font-weight: 500; color: var(--fg); }
.f .req { color: var(--accent); margin-left: 2px; }
.f .hint { font-size: 0.78rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; font: 400 1rem var(--font-body); color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.invalid input, .invalid select, .invalid textarea { border-color: #d1364b; }
.err { font-size: 0.78rem; color: #d1364b; display: none; }
.invalid .err { display: block; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.9rem; cursor: pointer; transition: all .15s; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.time-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px; gap: 8px; }
.dropzone { border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); font-size: 0.92rem; cursor: pointer; transition: border-color .15s, background .15s; display: grid; gap: 4px; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone strong { color: var(--fg); font-weight: 500; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 0.85rem; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--bg-alt); border-radius: 10px; }
.file-list button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 0.85rem; }
.toggle-unknown { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); cursor: pointer; margin-bottom: 14px; }
.toggle-unknown input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap; }
.review { display: grid; gap: 18px; }
.review section { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.review h3 { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; }
.review h3 button { font: 500 0.8rem var(--font-body); color: var(--accent); background: none; border: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.review dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 16px; margin: 0; font-size: 0.92rem; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.notice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 0.88rem; color: var(--fg); }
.notice svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.success { text-align: center; padding: clamp(24px, 6vw, 64px) 0; display: grid; gap: 14px; justify-items: center; }
.success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.success h2 { font-size: var(--step-3); }
.success .ref { font-family: var(--font-mono); font-size: 0.9rem; padding: 8px 14px; border-radius: 10px; background: var(--bg-alt); }
.schedule-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
@media (max-width: 960px) { .schedule-aside { position: static; } }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; background: var(--surface); }
.aside-card h3 { font-size: 1.12rem; }
.aside-card .big-contact { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; user-select: all; }
.aside-card.dark { background: var(--stage); color: var(--stage-fg); border-color: var(--stage); }
.aside-card.dark p, .aside-card.dark li { color: var(--stage-muted); }
.copy-btn { font: 500 0.8rem var(--font-body); color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; justify-self: start; }

/* ---------- About / founder ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.value h3 { font-size: 1.3rem; }
.value p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } }
.team-card { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 800px) { .team-card { grid-template-columns: minmax(0, 1fr); } }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); background:
  radial-gradient(120% 80% at 50% 0%, #10264f 0%, var(--stage) 70%); position: relative; overflow: hidden; display: grid; place-items: center; }
.portrait img.mark { width: 46%; opacity: .9; }
.portrait .ph-label { position: absolute; bottom: 14px; left: 14px; right: 14px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .08em; color: var(--stage-muted); text-transform: uppercase; display: flex; justify-content: space-between; }
.cred { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.founder-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (max-width: 860px) { .founder-hero { grid-template-columns: minmax(0, 1fr); } }
.founder-hero .portrait { max-width: 420px; width: 100%; justify-self: end; }
@media (max-width: 860px) { .founder-hero .portrait { justify-self: start; max-width: 320px; } }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid #2a3a5a; color: var(--stage-fg); font-size: 0.88rem; }
.pill-link:hover { border-color: var(--stage-fg); text-decoration: none; }
.pill-link svg { width: 16px; height: 16px; }
.pill-link.pending { opacity: .62; }
.research-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.paper { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.paper .yr { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-top: 4px; }
.paper h3 { font-size: 1.36rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.paper p { color: var(--muted); font-size: 0.97rem; max-width: 68ch; }
.paper .paper-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.status { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.status.progress { color: #b26b00; border-color: color-mix(in srgb, #e39a1c 50%, var(--line)); background: color-mix(in srgb, #e39a1c 10%, transparent); }
@media (max-width: 720px) { .paper { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .focus-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Patients ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .timeline { grid-template-columns: minmax(0, 1fr); } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 0 24px; color: var(--muted); max-width: 72ch; display: grid; gap: 12px; }
.payer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .payer-grid { grid-template-columns: minmax(0, 1fr); } }
.legal-box { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; background: var(--surface); }
.legal-box h3 { font-size: 1.3rem; }
.legal-box p, .legal-box li { color: var(--muted); font-size: 0.97rem; }
.legal-box ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 8px; align-content: start; background: var(--surface); }
.contact-card .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card .v { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; overflow-wrap: anywhere; user-select: all; }
.contact-card p { color: var(--muted); font-size: 0.93rem; }
.region-map { width: 100%; max-width: 520px; color: var(--accent); }
.region-map svg { width: 100%; height: auto; }

/* ---------- Placeholder marker (remove before launch) ---------- */
.ph { background: color-mix(in srgb, #e39a1c 16%, transparent); border-radius: 4px; padding: 0 3px; }

/* ---------- Scroll reveal (progressive; content is visible without it) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { transform: translateY(32px) scale(.985); } to { transform: none; } }
  }
}

/* ---------- Founder photo ---------- */
figure.portrait { margin: 0; }
.portrait.photo { background: var(--bg-alt); border: 1px solid var(--line); box-shadow: 0 40px 80px -48px rgba(1,16,64,.55); }
.portrait.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; max-width: none; }
.portrait.photo .ph-light { display: var(--logo-light); }
.portrait.photo .ph-dark { display: var(--logo-dark); }
.portrait.photo.on-stage { background: var(--stage); border: 1px solid var(--stage-line); }
.portrait.photo .ph-label { z-index: 1; color: #fff; padding: 40px 18px 16px; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(5,11,26,0), rgba(5,11,26,.72)); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Hero readout (illustrative) ---------- */
.hero-readout .illus { padding-left: 14px; border-left: 1px solid var(--stage-line); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; opacity: .8; }

/* ---------- "Something else" tile ---------- */
.tile.tile-cta { background: transparent; border-style: dashed; }
.tile.tile-cta .tile-meta { color: var(--accent); }

/* ---------- Service-area map ---------- */
.region-map { max-width: 520px; justify-self: center; width: 100%; }
.region-map svg { width: 100%; height: auto; display: block; }
.region-map .st { fill: var(--map-land); stroke: var(--map-stroke); stroke-width: 1.2; stroke-linejoin: round; }
.region-map .st.nj { fill: var(--accent); }
.region-map .st.ny { fill: url(#ny-stripe); stroke: var(--accent); stroke-width: 1.4; }
.region-map .ny-bg { fill: var(--accent-soft); }
.region-map .ny-line { fill: var(--accent); fill-opacity: .55; }
.region-map text { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.region-map .lbl { fill: var(--fg); font-size: 12px; }
.region-map .sub { fill: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .02em; }
.region-map .lead { stroke: var(--accent); stroke-width: 1; }
.region-map .dot { fill: var(--fg); }
.map-legend { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; }
.map-legend li { display: inline-flex; align-items: center; gap: 10px; }
.map-legend .sw { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.sw-nj { background: var(--accent); }
.sw-ny { border: 1.5px solid var(--accent); background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 55%, transparent) 0 4px, var(--accent-soft) 4px 9px); }

/* ---------- Publications ---------- */
.paper h3 a { color: var(--fg); }
.paper h3 a:hover { color: var(--accent); text-decoration: none; }
.paper .authors { font-size: .9rem; color: var(--muted); margin-bottom: 2px; }
.paper .authors b { color: var(--fg); font-weight: 600; }
.paper .venue { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .02em; color: var(--accent); margin-bottom: 10px; }
.status.pub { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.btn svg { width: 16px; height: 16px; }

.contact-grid.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.contact-grid.five > * { grid-column: span 2; }
.contact-grid.five > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 860px) { .contact-grid.five { grid-template-columns: minmax(0, 1fr); } .contact-grid.five > :nth-child(n) { grid-column: auto; } }

.contact-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .contact-grid.two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Email hand-off ---------- */
.mail-panel { display: grid; gap: 14px; justify-items: center; width: 100%; max-width: 560px; }
.mail-fallback { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.mail-fallback summary { cursor: pointer; font-weight: 500; font-size: .92rem; }
.mail-fallback p { margin: 10px 0; font-size: .9rem; }
.mail-fallback pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .78rem/1.5 var(--font-mono); background: var(--bg-alt); border-radius: 10px; padding: 12px; max-height: 260px; overflow: auto; margin: 0; }
