/* ==========================================================================
   MRI Scan Dehradun — Design System
   Style: Dimensional Layering + Gradient Mesh on a Trust & Authority base
   All colours are tokens. Components never use raw hex.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand ramp — clinical teal-cyan */
  --brand-50:  #ECFEFF;
  --brand-100: #CFFAFE;
  --brand-300: #67E8F9;
  --brand-400: #38BDF8;
  --brand-500: #0EA5B7;
  --brand-600: #0891A6;
  --brand-700: #0E7490;
  --brand-900: #134E5E;

  /* Ink ramp — dark surfaces */
  --ink-950: #04121D;
  --ink-900: #061826;
  --ink-800: #0B2436;
  --ink-700: #123245;
  --ink-600: #1D4257;

  /* Light surfaces */
  --surface:      #FFFFFF;
  --surface-alt:  #F5F9FB;
  --surface-sunk: #EAF2F6;
  --line:         #D8E4EA;
  --line-dark:    rgb(255 255 255 / 0.12);

  /* Text */
  --text:               #0C2231;
  --text-muted:         #4A6273;
  --text-on-dark:       #EAF4F8;
  --text-on-dark-muted: #9DB6C4;

  /* CTA — amber, reserved for booking actions only */
  --cta:     #FFB020;
  --cta-600: #E89A0C;
  --cta-ink: #2B1A00;

  /* Semantic */
  --success: #0F9D58; --success-ink: #054228; --success-bg: #E7F6EE;
  --warning: #D97706; --warning-ink: #3A1D00; --warning-bg: #FEF3E2;
  --danger:  #DC2626; --danger-ink:  #450A0A; --danger-bg:  #FDECEC;
  --info:    #0E7490; --info-ink:    #052F3B; --info-bg:    #E6F5F9;

  /* Type */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --fs-xs:      0.8125rem;
  --fs-sm:      0.9375rem;
  --fs-base:    1.0625rem;
  --fs-lg:      clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --fs-h3:      clamp(1.35rem, 1vw + 1.1rem, 1.6rem);
  --fs-h2:      clamp(1.75rem, 2.4vw + 1.1rem, 2.75rem);
  --fs-h1:      clamp(2.25rem, 4vw + 1.1rem, 4.25rem);
  --fs-display: clamp(2.75rem, 6vw + 1rem, 5.5rem);

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px;
  --sp-24: 96px; --sp-32: 128px;
  /* Tightened: the previous 8rem cap left visibly dead bands between sections. */
  --sp-section: clamp(3rem, 5.5vw, 5.5rem);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-pill: 999px;

  /* Elevation — one scale, four steps */
  --e-1: 0 1px 2px rgb(12 34 49 / 0.06);
  --e-2: 0 4px 16px rgb(12 34 49 / 0.08);
  --e-3: 0 12px 32px rgb(12 34 49 / 0.12);
  --e-glow: 0 0 0 1px rgb(56 189 248 / 0.25), 0 0 40px rgb(14 165 183 / 0.25);

  /* Motion */
  --dur-fast: 150ms; --dur-base: 240ms; --dur-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* z-index scale */
  --z-rail: 10; --z-nav: 20; --z-drawer: 40; --z-modal: 100; --z-toast: 1000;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--surface-alt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 72px; /* clears the sticky mobile call bar */
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--surface-sunk); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.35em; }
li { margin-bottom: var(--sp-2); }

strong { font-weight: 600; color: var(--text); }

/* Focus ring. brand-400 is only 2.1:1 against white, which fails WCAG 2.4.11
   non-text contrast, so light surfaces use brand-700 (5.4:1) and dark surfaces
   use brand-300 (12.4:1). A halo ring guarantees separation either way. */
:focus-visible {
  outline: 3px solid var(--brand-700);
  outline-offset: 3px;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 6px rgb(255 255 255 / 0.85);
}
.hero :focus-visible,
.nav :focus-visible,
.drawer :focus-visible,
.footer :focus-visible,
.marquee :focus-visible,
.section--dark :focus-visible {
  outline-color: var(--brand-300);
  box-shadow: 0 0 0 6px rgb(4 18 29 / 0.85);
}

::selection { background: var(--brand-300); color: var(--ink-900); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  z-index: var(--z-toast);
  background: var(--cta); color: var(--cta-ink);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md); font-weight: 600;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--prose { max-width: 78ch; }
.prose { max-width: 68ch; }

.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }

/* Dark sections */
.section--dark {
  background: var(--ink-900);
  color: var(--text-on-dark);
  isolation: isolate;
  overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-on-dark); }
.section--dark p, .section--dark li { color: var(--text-on-dark-muted); }
.section--dark a { color: var(--brand-300); }
.section--dark a:hover { color: var(--brand-100); }
.section--dark strong { color: var(--text-on-dark); }

.section--sunk { background: var(--surface-sunk); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- 4. Typographic helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: var(--sp-4);
}
.section--dark .eyebrow { color: var(--brand-300); }
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: 0.6;
}

.lead { font-size: var(--fs-lg); color: var(--text-muted); line-height: 1.65; }
.section--dark .lead { color: var(--text-on-dark-muted); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.text-gradient {
  background: linear-gradient(100deg, var(--brand-300) 0%, var(--brand-400) 45%, #A5F3FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: 52px; padding: 0 var(--sp-8);
  border: 0; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--cta); color: var(--cta-ink); box-shadow: var(--e-2); }
.btn--primary:hover { background: var(--cta-600); color: var(--cta-ink); box-shadow: var(--e-3); }

.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { background: var(--surface); color: var(--brand-700); box-shadow: inset 0 0 0 1.5px var(--brand-500); }

.section--dark .btn--ghost,
.btn--ghost-dark {
  color: var(--text-on-dark);
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1.5px var(--line-dark);
  backdrop-filter: blur(10px);
}
.section--dark .btn--ghost:hover,
.btn--ghost-dark:hover {
  color: var(--ink-900); background: var(--brand-300);
  box-shadow: inset 0 0 0 1.5px var(--brand-300);
}

.btn--sm { min-height: 44px; padding: 0 var(--sp-6); font-size: var(--fs-xs); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- 6. Cards & surfaces ---------- */
.card {
  position: relative;
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  /* Gradient hairline. A flat 1px grey border is the generic-template tell;
     padding-box/border-box clipping gives a real gradient edge. */
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--brand-300) 0%, var(--line) 42%, var(--line) 100%) border-box;
  box-shadow: var(--e-1);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
/* Radial tint, sits under the content */
.card::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 0% 0%, var(--brand-50) 0%, transparent 52%);
}
/* Sheen that sweeps across on hover */
.card::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.5) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 900ms var(--ease-out);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--e-3); }
.card:hover::after { transform: translateX(130%); }
.card > * { position: relative; z-index: 1; }
.card h3 { margin-bottom: var(--sp-2); }
.card p:last-child { margin-bottom: 0; }

.card--glass {
  background: rgb(255 255 255 / 0.055);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
}
.card--glass::before { display: none; }
.card--glass:hover {
  background: rgb(255 255 255 / 0.09);
  border-color: rgb(103 232 249 / 0.4);
  box-shadow: var(--e-glow);
}

.card--link { display: block; text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; }
.card--link .card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--brand-700);
  margin-top: var(--sp-4);
}
.card--link .card-cta svg {
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
  padding: 4px; border-radius: var(--r-pill);
  background: var(--brand-50); box-sizing: content-box;
}
.card--link:hover .card-cta svg { transform: translateX(4px); background: var(--brand-100); }

/* Icon plate — squircle with a gradient fill and an inner ring */
.icon-plate {
  position: relative;
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--brand-50), #DFF6FB);
  color: var(--brand-700);
  box-shadow: inset 0 0 0 1px var(--brand-100), 0 4px 12px rgb(14 116 144 / 0.10);
  margin-bottom: var(--sp-5, 20px);
  transition: transform var(--dur-base) var(--ease-spring),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.icon-plate svg { width: 24px; height: 24px; stroke-width: 1.75; }
.card:hover .icon-plate {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(145deg, var(--brand-700), #0B5E75);
  color: #fff;
}
.section--dark .icon-plate,
.icon-plate--dark {
  background: rgb(56 189 248 / 0.12); color: var(--brand-300);
  box-shadow: inset 0 0 0 1px rgb(103 232 249 / 0.25);
}
.section--dark .card:hover .icon-plate,
.card--glass:hover .icon-plate { background: rgb(56 189 248 / 0.22); color: #fff; }

/* ==========================================================================
   7. NOTICE CARDS  (was: coloured box with a 4px left border)

   The left-border-plus-tinted-fill callout is the most recognisable
   generic-template pattern there is. Rebuilt on Dimensional Layering:
   a white surface, a hairline border, a gradient rail along the TOP edge,
   and a floating icon badge that overlaps and breaks the card's corner.
   Colour now lives in the badge and the rail, not in a flat background wash.
   ========================================================================== */
.gbox {
  --gb: var(--brand-700);   /* brand-500 is only 2.96:1 behind white icons */
  --gb-ink: var(--info-ink);
  --gb-tint: var(--brand-50);
  position: relative;
  margin: calc(var(--sp-8) + 10px) 0 var(--sp-8);
  padding: var(--sp-8) var(--sp-8) var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 0% 0%, var(--gb-tint) 0%, transparent 58%),
    var(--surface);
  box-shadow: var(--e-1);
  overflow: visible;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.gbox:hover { transform: translateY(-3px); box-shadow: var(--e-2); border-color: color-mix(in srgb, var(--gb) 35%, var(--line)); }
.gbox > :last-child { margin-bottom: 0; }

/* Top rail — draws in on reveal instead of sitting there as a static bar */
.gbox::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(90deg, var(--gb), color-mix(in srgb, var(--gb) 25%, transparent) 70%, transparent);
  transform: scaleX(1); transform-origin: 0 50%;
  transition: transform 900ms var(--ease-out) 120ms;
}
/* Only boxes that actually participate in the reveal start collapsed —
   otherwise a gbox without [data-reveal] would keep an invisible rail. */
html[data-motion="on"] .gbox[data-reveal]::before { transform: scaleX(0); }
html[data-motion="on"] .gbox[data-reveal][data-revealed="true"]::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .gbox::before { transform: scaleX(1) !important; } }

/* Floating badge that breaks the top-left corner */
.gbox-title {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.0625rem; line-height: 1.35;
  color: var(--gb-ink);
  margin: 0 0 var(--sp-4);
  padding-left: 62px;
  min-height: 44px;
  display: flex; align-items: center;
}
.gbox-title svg {
  position: absolute; top: -18px; left: var(--sp-6);
  width: 46px; height: 46px; padding: 11px;
  border-radius: 14px;
  background: var(--gb); color: #fff;
  stroke-width: 2;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--gb) 38%, transparent),
              0 0 0 5px var(--surface);
  transition: transform var(--dur-base) var(--ease-spring);
}
.gbox:hover .gbox-title svg { transform: rotate(-6deg) scale(1.06); }
@media (max-width: 520px) {
  .gbox-title { padding-left: 0; padding-top: 26px; }
  .gbox-title svg { left: var(--sp-6); top: -20px; width: 42px; height: 42px; }
}

.gbox--warn  { --gb: #B45309; --gb-ink: var(--warning-ink); --gb-tint: #FEF6EA; }
.gbox--ok    { --gb: #0B8043; --gb-ink: var(--success-ink); --gb-tint: #ECF8F1; }
.gbox--alert { --gb: var(--danger);  --gb-ink: var(--danger-ink);  --gb-tint: #FDEFEF; }

/* ==========================================================================
   KEY FACTS — divided spec grid rather than a plain definition list
   ========================================================================== */
.keyfacts {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--e-2);
  margin: var(--sp-8) 0;
  overflow: hidden;
}
.keyfacts::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300) 45%, transparent);
}
.keyfacts h2 {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--sp-6);
}
.keyfacts dl { display: grid; gap: 0; margin: 0; }
@media (min-width: 640px)  { .keyfacts dl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .keyfacts dl { grid-template-columns: repeat(3, 1fr); } }
.keyfacts dl > div {
  padding: var(--sp-4) var(--sp-5, 20px);
  border-top: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease-out);
}
.keyfacts dl > div:hover { background: var(--brand-50); }
@media (min-width: 640px) {
  .keyfacts dl > div:nth-child(-n+2) { border-top: 0; }
  .keyfacts dl > div:nth-child(2n) { border-left: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .keyfacts dl > div:nth-child(-n+3) { border-top: 0; }
  .keyfacts dl > div:nth-child(2n) { border-left: 0; }
  .keyfacts dl > div:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
}
.keyfacts dt {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.keyfacts dd {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 1.0625rem; line-height: 1.35; color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Stat tiles */
.stat {
  position: relative; text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border-radius: var(--r-lg);
  transition: background var(--dur-base) var(--ease-out);
}
.stat:hover { background: var(--surface); }
.stat::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; border-radius: 3px;
  /* brand-500 was only 2.62:1 against the sunk surface */
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
}
.stat-value {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--brand-300), var(--brand-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  display: block; margin-top: var(--sp-3);
  font-size: var(--fs-sm); color: var(--text-on-dark-muted);
}

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.checklist li {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  margin: 0; line-height: 1.6;
}
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px;
  border-radius: var(--r-pill); background: var(--success-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F9D58' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.section--dark .checklist li::before { background-color: rgb(15 157 88 / 0.18); }

/* ==========================================================================
   TABLES — sticky header, row hover with an accent rail, edge fade to signal
   horizontal scroll. Was flat zebra striping.
   ========================================================================== */
.table-wrap {
  position: relative;
  overflow-x: auto; overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  margin: var(--sp-8) 0;
  box-shadow: var(--e-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--brand-300); }

table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); min-width: 560px; }
caption {
  caption-side: top; text-align: left;
  padding: var(--sp-5, 20px) var(--sp-6) var(--sp-3);
  font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5;
}
th, td { padding: var(--sp-4) var(--sp-6); text-align: left; vertical-align: top; }

thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--ink-800); color: var(--text-on-dark);
  font-family: var(--font-display); font-weight: 600; font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  padding-block: var(--sp-3);
}
thead th:first-child { border-top-left-radius: 0; }
thead tr th { box-shadow: inset 0 -1px 0 var(--ink-600); }

tbody tr { transition: background var(--dur-fast) var(--ease-out); }
tbody tr + tr th, tbody tr + tr td { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-alt) 60%, transparent); }
tbody tr:hover { background: var(--brand-50); }

/* Accent rail on the hovered row's first cell */
tbody th:first-child, tbody td:first-child { position: relative; }
tbody tr:hover th:first-child::before,
tbody tr:hover td:first-child::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--brand-500);
}

tbody th { font-weight: 600; color: var(--text); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody td.num { font-weight: 600; color: var(--text); }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.chip svg { width: 14px; height: 14px; stroke-width: 2; }
.chip--dark {
  background: rgb(255 255 255 / 0.07); color: var(--text-on-dark);
  border-color: var(--line-dark); backdrop-filter: blur(8px);
}

/* ---------- 8. Navigation ---------- */
.scroll-rail {
  position: fixed; inset: 0 0 auto 0; height: 3px;
  z-index: var(--z-rail); background: transparent; pointer-events: none;
}
.scroll-rail__bar {
  height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300), var(--cta));
}

.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgb(6 24 38 / 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
  transition: background var(--dur-base) var(--ease-out);
}
.nav__inner {
  display: flex; align-items: center; gap: var(--sp-6);
  min-height: 72px;
}
.nav__brand {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; color: var(--text-on-dark);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1.1;
  margin-right: auto;
}
.nav__brand:hover { color: var(--text-on-dark); }
.nav__brand svg { width: 36px; height: 36px; flex: none; }
.nav__brand span small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-300);
}
.nav__links { display: none; align-items: center; gap: var(--sp-1); }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--sp-4); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-on-dark-muted); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--text-on-dark); background: rgb(255 255 255 / 0.07); }
.nav__links a[aria-current="page"] { color: var(--brand-300); background: rgb(56 189 248 / 0.12); }

.nav__cta { display: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.07); border: 1px solid var(--line-dark);
  color: var(--text-on-dark); cursor: pointer;
}
@media (min-width: 1024px) { .nav__toggle { display: none; } }
.nav__toggle svg { width: 22px; height: 22px; stroke-width: 2; }

.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgb(4 18 29 / 0.55); backdrop-filter: blur(4px);
  display: grid; place-items: start center; padding: var(--sp-4);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer__panel {
  width: min(100%, 480px); margin-top: 80px;
  background: var(--ink-800); border: 1px solid var(--line-dark);
  border-radius: var(--r-xl); padding: var(--sp-6);
  transform: translateY(-12px);
  transition: transform var(--dur-base) var(--ease-out);
}
.drawer[data-open="true"] .drawer__panel { transform: translateY(0); }
.drawer__panel a {
  display: flex; align-items: center; min-height: 52px;
  padding: 0 var(--sp-4); border-radius: var(--r-md);
  color: var(--text-on-dark); text-decoration: none; font-weight: 500;
}
.drawer__panel a:hover { background: rgb(255 255 255 / 0.07); color: var(--brand-300); }
.drawer__panel hr { border: 0; border-top: 1px solid var(--line-dark); margin: var(--sp-4) 0; }

/* Sticky mobile call bar */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-nav);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) { .callbar { display: none; } }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 60px; text-decoration: none;
  font-size: var(--fs-sm); font-weight: 600;
}
.callbar a svg { width: 18px; height: 18px; stroke-width: 2; }
.callbar__call { background: var(--ink-800); color: var(--text-on-dark); }
.callbar__book { background: var(--cta); color: var(--cta-ink); }

/* ---------- 9. Aurora / mesh background ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.aurora__blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  will-change: transform;
}
.aurora__blob--1 {
  width: 46vw; height: 46vw; min-width: 340px; min-height: 340px;
  top: -12%; left: -8%;
  background: radial-gradient(circle at 30% 30%, var(--brand-500), transparent 68%);
  animation: drift-a 24s ease-in-out infinite alternate;
}
.aurora__blob--2 {
  width: 40vw; height: 40vw; min-width: 300px; min-height: 300px;
  top: 18%; right: -10%;
  background: radial-gradient(circle at 60% 40%, #3B82F6, transparent 68%);
  opacity: 0.4;
  animation: drift-b 30s ease-in-out infinite alternate;
}
.aurora__blob--3 {
  width: 34vw; height: 34vw; min-width: 260px; min-height: 260px;
  bottom: -14%; left: 32%;
  background: radial-gradient(circle at 50% 50%, #14B8A6, transparent 68%);
  opacity: 0.32;
  animation: drift-c 26s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(9%, 7%, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(-11%, 9%, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(7%, -9%, 0) scale(1.18); } }

/* Grid overlay for dark sections */
.gridlines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
}

/* ==========================================================================
   10. HERO — full-bleed photograph
   The photo is the background of the whole section, edge to edge, with a
   scrim that keeps text at AA contrast over any part of the image.
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-900); color: var(--text-on-dark);
  min-height: min(88vh, 820px);
  display: grid; align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
}

.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 42% 50%;
  transform: scale(1.06);
}
/* Scrim: strong on the left where the copy sits, clearing to the right so the
   scanner and the radiographer stay visible. */
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgb(4 18 29 / 0.96) 0%,
      rgb(4 18 29 / 0.90) 34%,
      rgb(4 18 29 / 0.62) 58%,
      rgb(4 18 29 / 0.38) 100%),
    linear-gradient(180deg, rgb(4 18 29 / 0.55) 0%, transparent 30%, rgb(4 18 29 / 0.5) 100%);
}
@media (max-width: 1023px) {
  .hero__bg img { object-position: 46% 50%; }
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgb(4 18 29 / 0.86) 0%, rgb(4 18 29 / 0.80) 45%, rgb(4 18 29 / 0.94) 100%);
  }
}

/* Inner pages: shorter hero, same full-bleed treatment */
.hero--page {
  min-height: min(56vh, 520px);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
}

.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 62ch) 1fr; } }

.hero h1 { font-size: var(--fs-display); margin-bottom: var(--sp-5, 20px); }
.hero .lead { max-width: 54ch; margin-bottom: var(--sp-8); color: #C7DBE6; }

.hero__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }

/* Proof strip: a glass rail rather than three bare columns */
.hero__proof {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding: var(--sp-5, 20px) var(--sp-6);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
@media (max-width: 520px) {
  .hero__proof { grid-template-columns: 1fr; gap: var(--sp-3); text-align: left; }
}
.hero__proof div strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem); color: var(--text-on-dark);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.hero__proof div span { font-size: var(--fs-xs); color: #A9C3D1; }

/* Scroll cue */
.hero__cue {
  position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgb(234 244 248 / 0.65);
}
.hero__cue svg { width: 18px; height: 18px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: .55 } 50% { transform: translateY(6px); opacity: 1 } }
@media (max-width: 1023px) { .hero__cue { display: none; } }

/* Kinetic headline words */
.kinetic { display: inline-block; overflow: hidden; vertical-align: bottom; }
.kinetic > span { display: inline-block; will-change: transform; }

/* Scanner visual frame */
.scanner {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  max-width: 520px; margin-inline: auto;
}
.scanner svg { width: 100%; height: 100%; }
.scanner__ring { transform-origin: 50% 50%; }

/* ---------- 11. Marquee trust strip ---------- */
.marquee {
  overflow: hidden; padding-block: var(--sp-6);
  background: var(--ink-800); border-block: 1px solid var(--line-dark);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: var(--sp-12); width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-on-dark-muted);
  white-space: nowrap;
}
.marquee__item svg { width: 20px; height: 20px; color: var(--brand-300); stroke-width: 1.75; flex: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 12. Bento grid ---------- */
.bento { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.bento > * { grid-column: span 1; }
@media (min-width: 768px) {
  .bento__lg { grid-column: span 2; }
  .bento__md { grid-column: span 1; }
}
@media (min-width: 1024px) {
  .bento__lg { grid-column: span 3; }
  .bento__md { grid-column: span 2; }
  .bento__sm { grid-column: span 2; }
}

/* ---------- 13. Pinned journey ---------- */
.journey { position: relative; }
.journey__track {
  display: grid; gap: var(--sp-6); grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .journey__track {
    display: flex; gap: var(--sp-8); width: max-content; flex-wrap: nowrap;
    padding-inline: var(--gutter);
  }
  .journey__step { width: 78vw; max-width: 620px; flex: none; }
}
.journey__step { position: relative; }
.journey__num {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  background: var(--brand-500); color: var(--ink-950);
  margin-bottom: var(--sp-6); font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   14. ACCORDION — morphing plus/minus, accent rail that scales in when open,
   and an animated body reveal. Was a plain bordered list with a chevron.
   ========================================================================== */
.acc {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--e-1);
}
.acc details { position: relative; }
.acc details + details { border-top: 1px solid var(--line); }

/* Accent rail down the left of the open row */
.acc details::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--brand-500);
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform var(--dur-base) var(--ease-out);
}
.acc details[open]::before { transform: scaleY(1); }

.acc summary {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 64px; padding: var(--sp-4) var(--sp-6);
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
  color: var(--text);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              padding-left var(--dur-base) var(--ease-out);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--brand-50); color: var(--brand-700); padding-left: calc(var(--sp-6) + 6px); }
.acc details[open] summary { color: var(--brand-700); padding-left: calc(var(--sp-6) + 6px); }

/* Plus that morphs into a minus — no icon swap, just a rotating bar */
.acc__icon {
  position: relative; flex: none;
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: var(--brand-50);
  transition: background var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-spring);
}
.acc summary:hover .acc__icon,
.acc details[open] .acc__icon { background: var(--brand-700); }
.acc details[open] .acc__icon { transform: rotate(180deg); }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 2px; border-radius: 2px;
  background: var(--brand-700);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc summary:hover .acc__icon::before, .acc summary:hover .acc__icon::after,
.acc details[open] .acc__icon::before, .acc details[open] .acc__icon::after { background: #fff; }
.acc details[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc__body {
  padding: 0 var(--sp-6) var(--sp-6) calc(var(--sp-6) + 6px);
  color: var(--text-muted);
}
.acc__body > :last-child { margin-bottom: 0; }

/* Content eases in rather than snapping. Animating opacity/transform only. */
html[data-motion="on"] .acc details[open] .acc__body {
  animation: accIn 380ms var(--ease-out) both;
}
@keyframes accIn {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 15. Forms ---------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label {
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}
.field .req { color: var(--danger); }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); }
.field input, .field select, .field textarea {
  min-height: 52px; padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 110px; padding-top: var(--sp-3); resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgb(14 165 183 / 0.15);
}
.field .err {
  display: none; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 500; color: var(--danger-ink);
}
.field .err svg { width: 14px; height: 14px; flex: none; stroke-width: 2.5; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select { border-color: var(--danger); }
.field[data-invalid="true"] .err { display: flex; }

.form__note {
  font-size: var(--fs-xs); color: var(--text-muted);
  display: flex; align-items: flex-start; gap: var(--sp-2);
}
.form__note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke-width: 2; }

.form-status {
  display: none; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4); border-radius: var(--r-md);
  background: var(--success-bg); color: var(--success-ink);
  font-size: var(--fs-sm); font-weight: 500;
}
.form-status[data-visible="true"] { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; stroke-width: 2.5; }

/* ---------- 16. Testimonials ---------- */
.tcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-8);
  display: grid; gap: var(--sp-4); align-content: start;
}
.tcard__stars { display: flex; gap: 2px; color: var(--cta-600); }
.tcard__stars svg { width: 18px; height: 18px; }
.tcard blockquote { margin: 0; font-size: var(--fs-base); line-height: 1.65; color: var(--text); }
.tcard cite {
  font-style: normal; font-weight: 600; font-size: var(--fs-sm); color: var(--text);
  display: flex; align-items: center; gap: var(--sp-3);
}
.tcard cite span {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-700);
  font-family: var(--font-display); font-weight: 700;
}
.tcard cite small { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--fs-xs); }

/* ---------- 17. Breadcrumbs ---------- */
.crumbs { font-size: var(--fs-xs); color: var(--text-on-dark-muted); margin-bottom: var(--sp-6); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.crumbs li + li::before { content: "/"; opacity: 0.45; }
.crumbs a { color: var(--brand-300); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--text-on-dark); }

/* ---------- 18. Article ---------- */
.article { padding-block: var(--sp-section); background: var(--surface); }
.article h2 { margin-top: var(--sp-12); scroll-margin-top: 96px; }
.article h2:first-of-type { margin-top: 0; }
.article h3 { margin-top: var(--sp-8); scroll-margin-top: 96px; }
.article ul, .article ol { max-width: 68ch; }
.article figure { margin: var(--sp-8) 0; }
.article figcaption {
  font-size: var(--fs-xs); color: var(--text-muted);
  margin-top: var(--sp-3); text-align: center;
}

/* ==========================================================================
   TABLE OF CONTENTS — counter-numbered rows with a live scroll-spy state.
   Was a grey box with a default <ol>.
   ========================================================================== */
.toc {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--sp-6) var(--sp-8) var(--sp-5, 20px);
  margin-bottom: var(--sp-12);
  box-shadow: var(--e-1);
  overflow: hidden;
}
.toc::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300) 50%, transparent);
}
.toc h2 {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  margin: 0 0 var(--sp-3);
}
.toc ol {
  margin: 0; padding: 0; list-style: none;
  counter-reset: toc;
  columns: 1;
}
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: var(--sp-8); } }
.toc li { break-inside: avoid; margin: 0; }
.toc a {
  counter-increment: toc;
  position: relative;
  display: flex; align-items: baseline; gap: var(--sp-3);
  min-height: 44px; padding: 9px 10px 9px 0;
  font-size: var(--fs-sm); line-height: 1.45;
  color: var(--text); text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              padding-left var(--dur-base) var(--ease-out);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.6875rem; letter-spacing: 0.04em;
  color: var(--text-muted);   /* brand-400 is only 2.14:1 on white */
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-fast) var(--ease-out);
}
.toc a:hover { background: var(--brand-50); color: var(--brand-700); padding-left: 8px; }
.toc a:hover::before { color: var(--brand-700); }
/* Live position, set by the scroll-spy in site.js */
.toc a[data-active="true"] {
  background: var(--brand-50); color: var(--brand-700); font-weight: 600;
  padding-left: 8px;
}
.toc a[data-active="true"]::before { color: var(--brand-700); }
.toc a[data-active="true"]::after {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 3px; background: var(--brand-500);
}

/* ---------- 19. Footer ---------- */
.footer { background: var(--ink-950); color: var(--text-on-dark-muted); padding-block: var(--sp-16) var(--sp-8); }
.footer h3 {
  font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-on-dark); margin-bottom: var(--sp-4);
}
.footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--brand-300); text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.footer__grid { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__bottom {
  margin-top: var(--sp-12); padding-top: var(--sp-6);
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between; font-size: var(--fs-xs);
}

.placeholder-note {
  position: relative; color: var(--warning-ink);
  background:
    repeating-linear-gradient(135deg, rgb(180 83 9 / 0.06) 0 8px, transparent 8px 16px),
    var(--surface);
  border: 1px dashed #B45309; border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-6) var(--sp-4) 52px;
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.6;
}
.placeholder-note::before {
  content: "!"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: #B45309; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}

/* ==========================================================================
   20. REVEAL SYSTEM
   Elements hide only when JS has set html[data-motion="on"]. Without JS,
   or under reduced motion, everything is visible immediately.
   `data-revealed="true"` is set by IntersectionObserver in site.js.
   ========================================================================== */
html[data-motion="on"] [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 46px, 0);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 900ms var(--ease-out),
    clip-path 1100ms var(--ease-out);
  will-change: transform, opacity;
}
/* Reveal variants — these must be declared BEFORE the revealed state, because
   they share its specificity and would otherwise win the cascade and pin
   elements in their hidden position forever. */
html[data-motion="on"] [data-reveal="left"]  { transform: translate3d(-56px, 0, 0); }
html[data-motion="on"] [data-reveal="right"] { transform: translate3d(56px, 0, 0); }
html[data-motion="on"] [data-reveal="scale"] { transform: scale(0.9); }
html[data-motion="on"] [data-reveal="blur"]  { filter: blur(14px); transform: translate3d(0, 30px, 0); }
html[data-motion="on"] [data-reveal="wipe"]  {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
}
html[data-motion="on"] [data-reveal="wipe-x"] {
  opacity: 1; transform: none;
  clip-path: inset(0 100% 0 0);
}
/* Image frames: wipe up while the photo un-zooms and un-blurs */
html[data-motion="on"] [data-reveal="frame"] {
  opacity: 1; transform: none;
  clip-path: inset(100% 0 0 0);
}
html[data-motion="on"] [data-reveal="frame"] img {
  transform: scale(1.28);
  filter: saturate(0.55) brightness(0.82);
  transition: transform 1500ms var(--ease-out), filter 1200ms var(--ease-out);
}
html[data-motion="on"] [data-reveal="frame"][data-revealed="true"] img {
  transform: scale(1);
  filter: none;
}

/* ---- Revealed state. Declared last and with an extra attribute so it beats
        every variant above it regardless of source order. ---- */
html[data-motion="on"] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

/* Kinetic headline words */
html[data-motion="on"] .kinetic > span {
  transform: translate3d(0, 115%, 0) rotate(3deg);
  transition: transform 1100ms var(--ease-out);
}
html[data-motion="on"] .kinetic > span[data-revealed="true"] { transform: none; }

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  [data-reveal] img { transform: none !important; filter: none !important; }
  .aurora__blob { animation: none !important; }
  .marquee__track { animation: none !important; }
  .scanline, .pulse-ring { display: none !important; }
}

/* ==========================================================================
   22. PHOTOGRAPHY & PREMIUM DEPTH LAYER
   ========================================================================== */

/* ---- Film grain over dark sections: kills banding, adds tactility ---- */
.section--dark::after,
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}
.section--dark > .container,
.hero > .container { position: relative; z-index: 1; }

/* ---- Cursor spotlight on dark sections ---- */
[data-spotlight] { --mx: 50%; --my: 40%; }
[data-spotlight]::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(
    520px circle at var(--mx) var(--my),
    rgb(56 189 248 / 0.13),
    transparent 62%);
  transition: opacity var(--dur-slow) var(--ease-out);
}

/* ---- Figure: the standard framed photo ---- */
.figure {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-800);
  box-shadow: var(--e-3);
  isolation: isolate;
}
.figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.figure--dark img { filter: saturate(0.92) contrast(1.04); }

/* Teal wash so photography sits inside the palette rather than beside it */
.figure--tint::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(6 24 38 / 0) 40%, rgb(4 18 29 / 0.72) 100%),
    linear-gradient(120deg, rgb(14 165 183 / 0.22), rgb(56 189 248 / 0.06) 55%, transparent);
}

/* Hairline inner border for the glass edge */
.figure--edge {
  box-shadow: var(--e-3), inset 0 0 0 1px rgb(255 255 255 / 0.14);
}

/* Aspect helpers — declared so images never shift layout */
.ar-16-9  { aspect-ratio: 16 / 9; }
.ar-4-3   { aspect-ratio: 4 / 3; }
.ar-3-4   { aspect-ratio: 3 / 4; }
.ar-1-1   { aspect-ratio: 1 / 1; }
.ar-21-9  { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .ar-21-9 { aspect-ratio: 16 / 10; } }

/* ---- Hero photo composition ---- */
.hero__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: visible;
}
.hero__media .figure { aspect-ratio: 4 / 3.35; }
@media (max-width: 1023px) { .hero__media .figure { aspect-ratio: 4 / 3; } }

/* Scan-line sweep across the hero photo */
.scanline {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none; overflow: hidden;
  border-radius: inherit;
}
/* In the full-bleed hero the sweep sits behind the copy, not over it. */
.hero > .scanline { z-index: 0; }
.scanline::before {
  content: "";
  position: absolute; left: 0; right: 0; height: 28%;
  top: -30%;
  background: linear-gradient(180deg,
    transparent,
    rgb(103 232 249 / 0.10) 35%,
    rgb(103 232 249 / 0.42) 50%,
    rgb(103 232 249 / 0.10) 65%,
    transparent);
  filter: blur(1px);
  animation: sweep 5.5s cubic-bezier(.45,0,.25,1) infinite;
}
@keyframes sweep {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translateY(460%); opacity: 0; }
}

/* Pulsing field ring behind the hero photo */
.pulse-ring {
  position: absolute; z-index: -1;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  top: -8%; right: -12%;
  border: 1px solid rgb(103 232 249 / 0.28);
  animation: pulse 6s ease-out infinite;
}
.pulse-ring--2 { animation-delay: 2s; }
.pulse-ring--3 { animation-delay: 4s; }
@keyframes pulse {
  0%   { transform: scale(0.72); opacity: 0; }
  22%  { opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---- Floating stat cards over the hero photo ---- */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5, 20px);
  border-radius: var(--r-lg);
  background: rgb(4 18 29 / 0.78);
  border: 1px solid rgb(255 255 255 / 0.16);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px rgb(2 10 18 / 0.55);
  animation: bob 7s ease-in-out infinite;
}
.float-card svg { width: 22px; height: 22px; flex: none; color: var(--brand-300); stroke-width: 1.75; }
.float-card strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.0625rem; color: var(--text-on-dark); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.float-card span { font-size: var(--fs-xs); color: var(--text-on-dark-muted); }
.float-card--tl { top: 7%;  left: -7%; }
.float-card--br { bottom: 9%; right: -6%; animation-delay: 1.6s; }
.float-card--bl { bottom: 26%; left: -9%; animation-delay: 3.1s; }
@media (max-width: 1200px) {
  .float-card--tl { left: 2%; }
  .float-card--br { right: 2%; }
  .float-card--bl { display: none; }
}
@media (max-width: 640px) {
  .float-card { padding: var(--sp-3) var(--sp-4); }
  .float-card--tl { top: 4%; left: 3%; }
  .float-card--br { bottom: 5%; right: 3%; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* ---- Full-bleed parallax image band ---- */
.band {
  position: relative;
  min-height: clamp(320px, 46vw, 560px);
  overflow: hidden;
  display: grid; align-items: center;
  isolation: isolate;
  background: var(--ink-900);
}
.band__media {
  position: absolute; inset: -12% 0;
  z-index: -2;
  will-change: transform;
}
.band__media img { width: 100%; height: 100%; object-fit: cover; }
/* Light clinical treatment: a bright wash so the band reads as part of the
   light page rather than another dark slab. */
.band { background: var(--surface-alt); }
.band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,
      rgb(245 249 251 / 0.98) 0%,
      rgb(245 249 251 / 0.94) 40%,
      rgb(245 249 251 / 0.66) 68%,
      rgb(245 249 251 / 0.34) 100%),
    linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(234 242 246 / 0.5));
}
@media (max-width: 767px) {
  .band::before {
    background: linear-gradient(180deg, rgb(245 249 251 / 0.94), rgb(245 249 251 / 0.97));
  }
}
.band__inner { color: var(--text); padding-block: var(--sp-16); }
.band h2 { color: var(--text); max-width: 18ch; }
.band p  { color: var(--text-muted); max-width: 52ch; }
.band .eyebrow { color: var(--brand-700); }
.band .btn--ghost-dark {
  color: var(--text); background: rgb(255 255 255 / 0.7);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.band .btn--ghost-dark:hover { color: var(--brand-700); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand-500); }

/* ---- Image-backed service card ---- */
.mcard {
  position: relative; display: block;
  border-radius: var(--r-lg); overflow: hidden;
  min-height: 340px;
  text-decoration: none; color: var(--text-on-dark);
  background: var(--ink-800);
  isolation: isolate;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.mcard:hover { transform: translateY(-6px); box-shadow: var(--e-3); color: var(--text-on-dark); }
.mcard img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms var(--ease-out), filter 600ms var(--ease-out);
  filter: saturate(0.8);
}
.mcard:hover img { transform: scale(1.1); filter: saturate(1.05); }
.mcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgb(4 18 29 / 0.30) 0%,
    rgb(4 18 29 / 0.72) 52%,
    rgb(4 18 29 / 0.94) 100%);
  transition: background var(--dur-base) var(--ease-out);
}
.mcard:hover::before {
  background: linear-gradient(180deg,
    rgb(14 165 183 / 0.28) 0%,
    rgb(4 18 29 / 0.74) 52%,
    rgb(4 18 29 / 0.96) 100%);
}
.mcard__body {
  position: absolute; inset: auto 0 0 0;
  padding: var(--sp-8);
}
.mcard__body h3 { color: var(--text-on-dark); margin-bottom: var(--sp-2); }
.mcard__body p  { color: var(--text-on-dark-muted); font-size: var(--fs-sm); margin: 0; }
.mcard__go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--sp-4);
  font-size: var(--fs-sm); font-weight: 600; color: var(--brand-300);
}
.mcard__go svg { transition: transform var(--dur-base) var(--ease-out); }
.mcard:hover .mcard__go svg { transform: translateX(5px); }

/* ---- Split feature: sticky photo beside scrolling copy ---- */
.sticky-media { position: relative; }
@media (min-width: 1024px) {
  .sticky-media { position: sticky; top: 104px; }
}

/* ---- Section number watermark, adds editorial weight ---- */
.watermark {
  position: absolute; top: -0.35em; right: var(--gutter);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(7rem, 18vw, 16rem); line-height: 1;
  color: rgb(255 255 255 / 0.035);
  pointer-events: none; user-select: none; z-index: 0;
  font-variant-numeric: tabular-nums;
}
.section:not(.section--dark) .watermark { color: rgb(12 34 49 / 0.04); }

/* ==========================================================================
   PATIENT JOURNEY — vertical stepped timeline

   This was a pinned horizontal scroller. It never worked: position:sticky is
   inert inside an ancestor with overflow:hidden, so the sticky wrapper stayed
   put while JS still stretched the section to 100vh + track width. The result
   was one enormous empty band mid-page. A vertical timeline is also simply
   better here — it reads in one glance and works identically on mobile.
   ========================================================================== */
.timeline {
  position: relative;
  display: grid; gap: var(--sp-6);
  max-width: 900px; margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute; left: 27px; top: 12px; bottom: 12px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-500) 45%, transparent);
  opacity: 0.4;
}
@media (max-width: 640px) { .timeline::before { left: 22px; } }

.tstep {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 640px) { .tstep { grid-template-columns: 44px 1fr; gap: var(--sp-4); } }

.tstep__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  background: var(--brand-500); color: #04121D;
  box-shadow: 0 0 0 6px var(--surface-alt);
}
@media (max-width: 640px) { .tstep__num { width: 44px; height: 44px; font-size: 1.05rem; } }

.tstep__body {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--brand-300), var(--line) 48%) border-box;
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  box-shadow: var(--e-1);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.tstep__body:hover { transform: translateY(-3px); box-shadow: var(--e-2); }
.tstep__body h3 { margin-bottom: var(--sp-2); }
.tstep__body p:last-child { margin-bottom: 0; }
.tstep__meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 4px 12px; border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
}
.tstep__meta svg { width: 13px; height: 13px; stroke-width: 2; }

/* ==========================================================================
   GOOGLE-STYLE REVIEW CARDS
   ========================================================================== */
/* ---- Slider: 3 visible on desktop, 1 on mobile, rest on the track.
        CSS scroll-snap does the scrolling; JS only drives the controls,
        so it degrades to a normal swipeable strip without JS. ---- */
.greviews-wrap { position: relative; }

.greviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: var(--sp-5, 20px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px var(--sp-4);
  margin-inline: -2px;
  scrollbar-width: none;
}
.greviews::-webkit-scrollbar { display: none; }
@media (min-width: 768px)  { .greviews { grid-auto-columns: calc((100% - var(--sp-5, 20px)) / 2); } }
@media (min-width: 1100px) { .greviews { grid-auto-columns: calc((100% - 2 * var(--sp-5, 20px)) / 3); } }
.greviews > * { scroll-snap-align: start; }

/* Controls */
.gnav {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-5, 20px);
}
.gnav__btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.gnav__btn svg { width: 20px; height: 20px; stroke-width: 2; }
.gnav__btn:hover:not(:disabled) { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.gnav__btn:active:not(:disabled) { transform: scale(0.94); }
.gnav__btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Progress dots double as a position readout */
.gnav__dots { display: flex; gap: 6px; margin-left: auto; }
.gnav__dot {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: var(--r-pill);
  background: var(--line); cursor: pointer;
  transition: width var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.gnav__dot[data-active="true"] { width: 26px; background: var(--brand-700); }
/* Dots are small on purpose, so give them a real 44px hit area. */
.gnav__dot::after { content: ""; position: absolute; inset: -18px -6px; }
.gnav__dot { position: relative; }

.gnav__count {
  font-size: var(--fs-sm); color: var(--text-muted);
  font-variant-numeric: tabular-nums; margin-left: var(--sp-2);
}

/* Edge fade so the cut-off card reads as "more this way" */
.greviews-wrap::after {
  content: ""; position: absolute; top: 0; bottom: var(--sp-4); right: -2px;
  width: 64px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--surface-alt));
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.greviews-wrap[data-overflow="true"]::after { opacity: 1; }
.greviews-wrap[data-end="true"]::after { opacity: 0; }

.greview {
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--e-1);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.greview:hover { transform: translateY(-4px); box-shadow: var(--e-2); border-color: var(--brand-300); }

.greview__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.greview__avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  object-fit: cover; background: var(--surface-sunk);
}
.greview__who { min-width: 0; flex: 1; }
.greview__name {
  display: block;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
  color: var(--text); line-height: 1.3;
  /* No truncation — long names wrap rather than clip. */
  overflow-wrap: anywhere;
}
.greview__sub { display: block; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.4; }
.greview__g { width: 20px; height: 20px; flex: none; }

.greview__rating { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.greview__score {
  font-weight: 600; font-size: var(--fs-xs); color: var(--text);
  font-variant-numeric: tabular-nums;
}
.greview__stars { display: flex; gap: 1px; }
.greview__stars svg { width: 16px; height: 16px; color: #B45309; }
.greview__date { font-size: var(--fs-xs); color: var(--text-muted); }

/* The review body must never be clipped. */
.greview__text {
  margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--text);
  overflow: visible; overflow-wrap: break-word; hyphens: auto;
}
.greview__scan {
  margin-top: auto; padding-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.greview__scan svg { width: 14px; height: 14px; stroke-width: 2; color: var(--brand-700); }

/* Aggregate rating header */
.grating {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--brand-300), var(--line) 55%) border-box;
  padding: var(--sp-6) var(--sp-8);
  box-shadow: var(--e-2); margin-bottom: var(--sp-8);
  overflow: hidden;
}
.grating::before {
  content: ""; position: absolute; inset: auto auto -45% -8%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-50), transparent 68%);
  pointer-events: none;
}
.grating > * { position: relative; }
.grating__score {
  font-family: var(--font-display); font-weight: 800;
  font-size: 3rem; line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.grating__stars { display: flex; gap: 2px; }
.grating__stars svg { width: 20px; height: 20px; color: #B45309; }
.grating__meta { font-size: var(--fs-sm); color: var(--text-muted); }
.grating__logo { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); }
.grating__logo svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .grating__logo { margin-left: 0; } }

/* ---- Pinned horizontal journey: retired. Kept as a no-op guard so any
        stale markup degrades to a normal stack rather than a giant gap. ---- */
.journey__sticky { position: static !important; height: auto !important; }
.journey[data-pinned] { height: auto !important; }

/* ---- Bigger, more confident display type ---- */
.hero h1 { letter-spacing: -0.045em; }
.section h2 { letter-spacing: -0.035em; }

/* ---- Divider glow between dark and light sections ---- */
.section--dark + .section::before,
.hero + .marquee::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-400), transparent);
  opacity: 0.5;
}

/* ==========================================================================
   24. GEO / AEO STRUCTURAL COMPONENTS  (seobuild-onpage)
   ========================================================================== */

/* ---- AI Summary Nugget: position-zero extraction target, above the H1 ---- */
.ai-summary {
  position: relative;
  display: block;
  max-width: 62ch;
  margin: 0 0 var(--sp-6);
  padding: var(--sp-5, 20px) var(--sp-6) var(--sp-4);
  /* No left border — a top status rail plus a corner tick instead. */
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: var(--fs-sm); line-height: 1.6;
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
}
.ai-summary::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--brand-300), transparent 72%);
}
.ai-summary::after {
  content: ""; position: absolute; top: 13px; right: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-300); box-shadow: 0 0 0 4px rgb(103 232 249 / 0.18);
}
.ai-summary b, .ai-summary strong { color: #FFFFFF; font-weight: 700; }
.article .ai-summary,
.section:not(.section--dark):not(.hero) .ai-summary {
  background: var(--surface-sunk);
  color: var(--text);
  backdrop-filter: none;
}
.article .ai-summary b, .article .ai-summary strong { color: var(--brand-900); }
.article .ai-summary::after { background: var(--brand-700); box-shadow: 0 0 0 4px rgb(14 116 144 / 0.14); }

/* ==========================================================================
   QUICK ANSWER — the Gate 2 extraction target.
   Not another left-border box: a raised card with its label chip sitting ON
   the top border, and a segmented dot-rail down the left instead of a solid bar.
   ========================================================================== */
.answer {
  position: relative;
  display: block;
  margin: var(--sp-6) 0 var(--sp-6);
  padding: var(--sp-6) var(--sp-8) var(--sp-6) calc(var(--sp-8) + 14px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 46%);
  box-shadow: var(--e-1);
  font-size: 1.0625rem; line-height: 1.68;
  color: var(--text);
}
.answer > :last-child { margin-bottom: 0; }
.answer strong { font-weight: 600; }

/* Label chip straddling the top border.
   Scoped to article bodies only: on the homepage these blocks are section
   intros, and fourteen identical "Quick answer" chips would read as noise. */
.article .answer { margin-top: calc(var(--sp-6) + 6px); }
.article .answer::before {
  content: "Quick answer";
  position: absolute; top: -10px; left: var(--sp-6);
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-700); color: #fff;
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0 0 4px var(--surface-alt);
}
.article .answer::before { box-shadow: 0 0 0 4px var(--surface); }

/* Segmented dot rail */
.answer::after {
  content: "";
  position: absolute; top: var(--sp-8); bottom: var(--sp-6); left: var(--sp-6);
  width: 3px; border-radius: 3px;
  background: repeating-linear-gradient(180deg,
    var(--brand-400) 0 8px, transparent 8px 14px);
  opacity: 0.75;
}
@media (max-width: 520px) {
  .answer { padding-left: var(--sp-6); }
  .answer::after { display: none; }
}

/* ==========================================================================
   NOT FOR YOU — deliberately reads as a caution panel, not a yellow box
   ========================================================================== */
.nfy {
  position: relative; display: block;
  margin: calc(var(--sp-8) + 10px) 0 var(--sp-8);
  padding: var(--sp-8);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    repeating-linear-gradient(135deg,
      rgb(180 83 9 / 0.045) 0 10px, transparent 10px 20px),
    var(--surface);
  box-shadow: var(--e-1);
  overflow: hidden;
}
.nfy::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: repeating-linear-gradient(90deg, #B45309 0 14px, transparent 14px 24px);
}
.nfy h3 {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 1.1875rem; color: var(--warning-ink);
  margin-bottom: var(--sp-5, 20px);
}
.nfy h3 svg {
  width: 40px; height: 40px; flex: none; padding: 9px;
  border-radius: 12px; background: #B45309; color: #fff; stroke-width: 2;
  box-shadow: 0 6px 16px rgb(180 83 9 / 0.3);
}
.nfy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.nfy li {
  position: relative; margin: 0; padding-left: 30px;
  color: var(--text); line-height: 1.6;
}
.nfy li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 2px; border-radius: 2px; background: #B45309;
}
.nfy > :last-child { margin-bottom: 0; }

/* ==========================================================================
   ORIGINAL RESEARCH — reads as a lab note, with a methodology footer
   ========================================================================== */
.research-block {
  position: relative;
  margin: var(--sp-8) 0;
  padding: var(--sp-8);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 70% at 100% 0%, var(--brand-50) 0%, transparent 55%),
    var(--surface);
  box-shadow: var(--e-2);
  overflow: hidden;
}
.research-block::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-400) 60%, transparent);
}
.research-block h3 {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-700);
  margin-bottom: var(--sp-5, 20px);
  padding: 6px 14px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.research-block h3 svg {
  width: 26px; height: 26px; flex: none; padding: 5px;
  border-radius: var(--r-pill);
  background: var(--brand-700); color: #fff; stroke-width: 2;
}
.research-block .method {
  position: relative;
  font-size: var(--fs-xs); color: var(--text-muted);
  padding: var(--sp-4) 0 0 26px; margin: var(--sp-6) 0 0;
  border-top: 1px dashed var(--line);
}
.research-block .method::before {
  content: ""; position: absolute; left: 0; top: calc(var(--sp-4) + 4px);
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A6273' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.research-block > :last-child { margin-bottom: 0; }

/* ---- {{VERIFY}} editor tags ---- */
.vt {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 1px 6px; border-radius: 4px;
  background: #FFF3CD; color: #5C4200;
  border: 1px dashed #C79A00;
  white-space: nowrap;
}
@media print { .vt { display: none; } }

/* ---- Recommended spoke pages ---- */
.spokes {
  border: 1px dashed var(--line);
  border-radius: var(--r-xl);
  background:
    repeating-linear-gradient(135deg, rgb(14 116 144 / 0.02) 0 12px, transparent 12px 24px),
    var(--surface);
  padding: var(--sp-6) var(--sp-8) var(--sp-8);
  margin: var(--sp-8) 0;
}
.spokes h3 {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--brand-700);
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  margin-bottom: var(--sp-3);
}
.spokes ul { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-2); }
@media (min-width: 720px) { .spokes ul { grid-template-columns: repeat(2, 1fr); } }
.spokes li {
  margin: 0; display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap;
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--surface-alt); border: 1px solid var(--line);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.spokes li:hover { border-color: var(--brand-300); background: var(--brand-50); }
.spokes code { font-size: 0.75rem; color: var(--brand-700); background: var(--surface); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line); }

/* ---- Interactive cost estimator (AI Overview theft defense) ---- */
.calc {
  position: relative; border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--brand-300), var(--line) 45%) border-box;
  border-radius: var(--r-xl); padding: var(--sp-8);
  box-shadow: var(--e-2); margin: var(--sp-8) 0;
}
.calc .field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7490' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.calc h3 { margin-bottom: var(--sp-2); }
.calc__grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; margin-top: var(--sp-6); }
@media (min-width: 640px) { .calc__grid { grid-template-columns: repeat(3, 1fr); } }
.calc__out {
  margin-top: var(--sp-6); padding: var(--sp-6);
  border-radius: var(--r-md); background: var(--ink-900); color: var(--text-on-dark);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3);
}
.calc__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1;
  color: var(--brand-300); font-variant-numeric: tabular-nums;
}
.calc__note { font-size: var(--fs-xs); color: var(--text-on-dark-muted); width: 100%; margin: 0; }

/* ---- Service-area chip list (geographic click relevance) ---- */
.areas { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0; padding: 0; list-style: none; }
.areas li { margin: 0; }

/* ==========================================================================
   26. SCROLL-ACTIVATED SERVICE LIST

   Numbered rows on a brand-coloured band. Inactive rows render as outlined
   type; the row nearest the viewport focus line fills solid, slides its
   thumbnail in and swaps the ghosted backdrop.

   Layout never animates: the thumbnail is absolutely positioned in a reserved
   slot and the text block moves with translateX, so nothing reflows.
   ========================================================================== */

/* ---- Bold marquee ribbon that caps the section ---- */
.ribbon {
  overflow: hidden;
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: var(--sp-4);
}
.ribbon__track {
  display: flex; align-items: center; gap: var(--sp-12);
  width: max-content;
  animation: ribbon 26s linear infinite;
}
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__item {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
}
.ribbon__star { color: var(--brand-700); flex: none; }
.ribbon__star svg { width: 22px; height: 22px; display: block; }
@keyframes ribbon { to { transform: translate3d(-50%, 0, 0); } }

/* ---- The band ---- */
.svcscroll {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Deep enough that translucent white text still clears AA: at brand-700
     a 70%-opacity eyebrow was only 3.47:1. */
  background: linear-gradient(165deg, #0A4F63 0%, #083D4E 55%, #062E3B 100%);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.svcscroll__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.16;
}
.svcscroll__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 700ms var(--ease-out), transform 1200ms var(--ease-out);
  mask-image: linear-gradient(90deg, transparent 18%, #000 62%);
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 62%);
}
.svcscroll__bg img[data-active="true"] { opacity: 1; transform: scale(1); }

.svcscroll__head { margin-bottom: var(--sp-8); }
.svcscroll__head .eyebrow { color: #A5EBF7; }
.svcscroll__head h2 { color: #fff; max-width: 22ch; }
.svcscroll__head p { color: rgb(255 255 255 / 0.82); max-width: 58ch; }

/* ---- Rows ---- */
.svclist { list-style: none; margin: 0; padding: 0; }
.svcrow { margin: 0; border-top: 1px solid rgb(255 255 255 / 0.28); }
.svcrow:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.28); }

.svcrow__link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-5, 20px);
  min-height: 112px;
  padding: var(--sp-5, 20px) 0;
  text-decoration: none; color: inherit;
  transition: background var(--dur-base) var(--ease-out);
}
.svcrow__link:hover { color: inherit; background: rgb(255 255 255 / 0.05); }

.svcrow__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / 0.55);
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  min-width: 2.4ch;
}
.svcrow[data-active="true"] .svcrow__num { color: #fff; transform: translateY(-2px); }

/* Thumbnail sits in a reserved absolute slot — no layout animation */
.svcrow__thumb {
  position: absolute; left: 4.2ch; top: 50%;
  width: 190px; aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  transform: translateY(-50%) scale(0.86);
  opacity: 0;
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-spring);
  box-shadow: 0 14px 34px rgb(4 18 29 / 0.4);
  pointer-events: none;
}
.svcrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.svcrow[data-active="true"] .svcrow__thumb { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 900px) { .svcrow__thumb { display: none; } }

.svcrow__body {
  min-width: 0;
  transition: transform 520ms var(--ease-out);
}
@media (min-width: 901px) {
  .svcrow[data-active="true"] .svcrow__body { transform: translateX(214px); }
}

.svcrow__eyebrow {
  display: block;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
  margin-bottom: 6px;
  transition: color var(--dur-base) var(--ease-out);
}
.svcrow[data-active="true"] .svcrow__eyebrow { color: #A5EBF7; }

/* Outline type for inactive rows, solid fill when active */
.svcrow__title {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.75rem);
  line-height: 1.02; letter-spacing: -0.035em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgb(255 255 255 / 0.85);
  transition: color 380ms var(--ease-out), -webkit-text-stroke-color 380ms var(--ease-out);
}
.svcrow[data-active="true"] .svcrow__title,
.svcrow__link:hover .svcrow__title,
.svcrow__link:focus-visible .svcrow__title {
  color: #fff;
  -webkit-text-stroke-color: transparent;
}
/* Browsers without -webkit-text-stroke, and anyone asking for more contrast,
   get solid type rather than invisible type. */
@supports not (-webkit-text-stroke: 1px #000) {
  .svcrow__title { color: rgb(255 255 255 / 0.72); }
}
@media (prefers-contrast: more) {
  .svcrow__title { color: #fff; -webkit-text-stroke-color: transparent; }
}

.svcrow__go {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--r-pill);
  border: 1px solid rgb(255 255 255 / 0.45);
  color: #fff;
  transform: rotate(-45deg) scale(0.9);
  opacity: 0.5;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-spring),
              background var(--dur-base) var(--ease-out);
}
.svcrow__go svg { width: 20px; height: 20px; stroke-width: 2; }
.svcrow[data-active="true"] .svcrow__go,
.svcrow__link:hover .svcrow__go {
  opacity: 1; transform: rotate(0deg) scale(1);
  background: rgb(255 255 255 / 0.14);
}
@media (max-width: 560px) { .svcrow__go { width: 40px; height: 40px; } }

/* Reduced motion: everything solid and static, thumbnails hidden. */
@media (prefers-reduced-motion: reduce) {
  .ribbon__track { animation: none !important; }
  .svcrow__title { color: #fff !important; -webkit-text-stroke-color: transparent !important; }
  .svcrow__body { transform: none !important; }
  .svcrow__thumb { display: none !important; }
  .svcrow__go { opacity: 1 !important; transform: none !important; }
  .svcscroll__bg img[data-active="true"] { transform: none !important; }
}

/* ---------- 27. Print ---------- */
@media print {
  .nav, .callbar, .scroll-rail, .drawer, .aurora, .gridlines { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .section--dark { background: #fff !important; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
