@font-face{font-family:'Montserrat';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/montserrat-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Montserrat';font-style:italic;font-weight:100 900;font-display:swap;src:url('../fonts/montserrat-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Montserrat Fallback';src:local('Arial');size-adjust:112%;ascent-override:86%;descent-override:22%;line-gap-override:0%;}

/* ============================================================
   DAIDRA FOUNDATION — the quality floor every build starts from
   v1.0 · 2026-08-06 · sources: live-verified extractions in
   knowledge/websites-enterprise.md (Stripe et al.) + DESIGN.md

   HOW TO USE (per project):
   1. Copy this file into the project as the base of site.css.
   2. Skin ONLY the "BRAND SLOTS" block — fonts, hues, radius,
      heading weight. Everything below the slots is the standard;
      it should survive the skin untouched.
   3. The specimen page (index.html beside this file) shows every
      token and primitive in every state — rebuild it mentally
      against your skin before building pages.

   Rules encoded here (don't fight them):
   - Spacing lives on an 8px grid. Type lives on the clamp() scale.
   - Two easings, four durations. Nothing animates off-system.
   - Never `transition: all`. Hover moves ≥2 properties.
   - :focus-visible is a designed brand element, not a default.
   - Content never touches the viewport edge (--px gutter).
   - .section uses LONG-HAND padding (shorthand resets .wrap).
   - prefers-reduced-motion gets designed static states, not
     frozen half-animations.
   ============================================================ */

/* ----------------------------------------------------------
   1. BRAND SLOTS — the only block a project should edit
   ---------------------------------------------------------- */
:root {
  /* Type: one display face, one text face (or one variable font
     for both — preload it, font-display: block if <80KB). */
  --font-display: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
  --font-body: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
  --font-mono: "Montserrat", "Montserrat Fallback", Arial, sans-serif;

  /* Enterprise voice = light-weight large type. 300–400 display
     weight reads expensive; 700 reads template. */
  --weight-display: 380;
  --weight-body: 400;
  --weight-medium: 500;   /* the heaviest weight most UIs need */

  /* Brand hues. --brand-h drives the neutral tint below — the
     single cheapest "expensive" trick: neutrals tinted toward the
     brand hue instead of pure gray. */
  --brand-h: 235;                       /* hue 0-360 */
  --accent: oklch(0.55 0.19 var(--brand-h));
  --accent-strong: oklch(0.45 0.21 var(--brand-h));

  /* Geometry personality: 4px = precise/enterprise (Stripe),
     8-12px = friendly SaaS, 999px pills = consumer. Pick ONE. */
  --radius: 4px;
  --radius-lg: 12px;
}

/* ----------------------------------------------------------
   2. NEUTRALS — brand-tinted ramp (never pure gray)
   ---------------------------------------------------------- */
:root {
  --n-50:  oklch(0.985 0.004 var(--brand-h));
  --n-100: oklch(0.96  0.006 var(--brand-h));
  --n-200: oklch(0.91  0.008 var(--brand-h));
  --n-300: oklch(0.83  0.010 var(--brand-h));
  --n-500: oklch(0.60  0.020 var(--brand-h));
  --n-700: oklch(0.40  0.028 var(--brand-h));
  --n-900: oklch(0.25  0.030 var(--brand-h));
  --n-950: oklch(0.17  0.025 var(--brand-h));
}

/* ----------------------------------------------------------
   3. SEMANTIC COLOR + SECTION MODES
   Components consume ONLY these slots. Sections switch skin by
   mode class — components are never restyled per section.
   ---------------------------------------------------------- */
:root, .mode-light {
  --surface: #fff;
  --surface-2: var(--n-50);
  --text: var(--n-900);
  --text-2: var(--n-500);
  --line: var(--n-200);
  --link: var(--accent-strong);
}
.mode-tint {
  --surface: var(--n-50);
  --surface-2: #fff;
}
.mode-dark {
  --surface: var(--n-950);
  --surface-2: var(--n-900);
  --text: var(--n-50);
  --text-2: var(--n-300);
  --line: oklch(0.32 0.03 var(--brand-h));
  --link: oklch(0.75 0.12 var(--brand-h));
}

/* ----------------------------------------------------------
   4. SPACE — 8px grid + the edge gutter
   ---------------------------------------------------------- */
:root {
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px; --s-20: 160px;
  --px: clamp(24px, 5vw, 96px);        /* viewport edge gutter */
  --measure: 68ch;                      /* body copy max width */
  --wrap: 1200px;
}

/* ----------------------------------------------------------
   5. TYPE SCALE — clamp()-fluid, tracking tightens as size grows
   ---------------------------------------------------------- */
:root {
  --text-xs: 0.75rem;                               /* 12 — labels */
  --text-sm: 0.875rem;                              /* 14 — UI */
  --text-md: 1rem;                                  /* 16 — body */
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-hero: clamp(2.5rem, 1.75rem + 3.5vw, 4.5rem);
}

/* ----------------------------------------------------------
   6. MOTION — the closed system. Two easings, four durations.
   ---------------------------------------------------------- */
:root {
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);        /* easeOutQuart — default */
  --ease-inout: cubic-bezier(0.45, 0.05, 0.55, 0.95); /* panels, nav */
  --dur-1: 150ms;   /* feedback: press, toggle */
  --dur-2: 240ms;   /* hover, small reveals */
  --dur-3: 450ms;   /* panels, section transitions */
  --dur-4: 800ms;   /* card lifts, entrances */
  --stagger: 70ms;  /* sibling choreography interval */
}

/* ----------------------------------------------------------
   7. ELEVATION + FOCUS — designed, tokenized
   ---------------------------------------------------------- */
:root {
  --shadow-soft: 0 20px 40px -20px rgb(0 0 0 / 0.12);
  --shadow-lift: 0 32px 64px -24px rgb(0 0 0 / 0.18);
  --focus-ring: 0 0 0 3px oklch(0.55 0.19 var(--brand-h) / 0.18);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

/* ----------------------------------------------------------
   8. BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.1;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); letter-spacing: -0.022em; line-height: 1.05; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.018em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.012em; }
h4 { font-size: var(--text-lg); letter-spacing: -0.008em; font-weight: var(--weight-medium); }
p { margin: 0 0 var(--s-2); max-width: var(--measure); text-wrap: pretty; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }

/* Eyebrow / utility label — mono, tracked wide, the "instrument" voice */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ----------------------------------------------------------
   9. LAYOUT — section + wrap (long-hand padding, always)
   ---------------------------------------------------------- */
.section {
  /* LONG-HAND on purpose: `padding: X 0` here silently resets
     .wrap's gutters when combined (documented failure). */
  padding-top: var(--s-12);
  padding-bottom: var(--s-12);
  background: var(--surface);
  color: var(--text);
}
.section--hero {
  min-height: 72vh;              /* never 100vh — next section peeks */
  display: flex;
  align-items: center;
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

/* ----------------------------------------------------------
   10. PRIMITIVES — one spec each, reused verbatim on every page
   ---------------------------------------------------------- */

/* Button — asymmetric vertical padding (optical balance),
   transitions name their properties, hover moves ≥2. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 13px 24px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: var(--weight-medium) var(--text-md) / 1 var(--font-body);
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.btn:hover, .btn:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn:active { transform: translateY(0); transition-duration: var(--dur-1); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--surface-2);
  border-color: var(--text-2);
  transform: translateY(-1px);
  box-shadow: none;
}
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* The one-variable hover engine — parent flips --hover, children
   consume it. Focus replays the full hover choreography for free. */
.hoverable { --hover: 0; }
.hoverable:hover, .hoverable:focus-visible, .hoverable:focus-within { --hover: 1; }

/* Link-arrow — title + arrow whose shaft draws in on hover */
.link-arrow {
  --hover: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--weight-medium);
  color: var(--link);
  text-decoration: none;
}
.link-arrow:hover, .link-arrow:focus-visible { --hover: 1; }
.link-arrow .arrow { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow .arrow .shaft {
  opacity: var(--hover);
  transition: opacity var(--dur-2) var(--ease-out);
}
.link-arrow:hover .arrow, .link-arrow:focus-visible .arrow { transform: translateX(3px); }

/* Card — soft negative-spread shadow, lift on hover */
.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  transition:
    transform var(--dur-4) var(--ease-out),
    box-shadow var(--dur-4) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--n-300);
}
.card > :last-child { margin-bottom: 0; }

/* Stat — big number, smaller unit, mono label underneath */
.stat { display: grid; gap: 4px; }
.stat b {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-display);
  letter-spacing: -0.018em;
  line-height: 1;
}
.stat b small { font-size: 0.55em; font-weight: var(--weight-medium); }
.stat .eyebrow { margin-top: 2px; }

/* Dom-graphic scaffold — product UI as scaled live HTML.
   Design the mock at a fixed px width, scale the block. */
.dom-graphic {
  --gw: 320px;        /* design width */
  --gs: 1;            /* scale (set per placement / media query) */
  width: calc(var(--gw) * var(--gs));
  pointer-events: none;
  user-select: none;
}
.dom-graphic > .dg-frame {
  width: var(--gw);
  transform: scale(var(--gs));
  transform-origin: top left;
}

/* ----------------------------------------------------------
   11. REVEAL CHOREOGRAPHY — IO adds .in; siblings stagger.
   JS contract (site.js):
     const io = new IntersectionObserver(es => es.forEach(e => {
       if (e.isIntersecting) { e.target.classList.add('in'); io.unobserve(e.target); }
     }), { threshold: 0.15, rootMargin: '0px 0px -8% 0px' });
     document.querySelectorAll('.reveal').forEach(el => io.observe(el));
   Fail-safe: .reveal without JS must still be readable — the
   `no-js` class (set in <head>, removed by JS) keeps opacity 1.
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-4) var(--ease-out),
    transform var(--dur-4) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ----------------------------------------------------------
   12. REDUCED MOTION — designed static states, not freezes
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn--ghost, .card, .link-arrow .arrow, .link-arrow .arrow .shaft {
    transition: none;
  }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
  /* Per-project: every animated signature block MUST add its own
     designed fallback here (static frame, final state, or swap-in
     element) — never leave it half-animated. */
}

/* ============================================================
   ALL ABOUT AUDIOLOGY — brand skin over foundation.css
   (foundation "BRAND SLOTS" re-declared here; everything below the
   slots in foundation ships intact). Values measured 2026-09-17 from
   the client's own site CSS (#246185 primary, #1a4760 navy, #8ae5d0
   mint, #02a6f7 sky) and logo.png pixels (wordmark #236084, bars
   #06abef → #1cd9ba). Personality lanes (DESIGN.md Part 2): 20px
   page-panels + pill buttons (Caliora lane), display weight 500,
   headline anatomy = bars-eyebrow + two-tone h2 (Klaas lane), dark-band
   CTA = white pill, spectacle = one canvas waveform + CSS light.
   ============================================================ */
:root {
  --font-display: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
  --font-body: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
  --font-mono: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
  --weight-display: 500;
  --weight-body: 400;
  --weight-medium: 600;

  --brand-h: 215;                 /* neutrals tint toward the steel blue */

  /* the machine: white ground · navy ink · steel primary · ONE aqua gradient identity */
  --navy: #12324a;                /* heritage #1a4760 deepened — ink + dark bands */
  --navy-deep: #0b2033;           /* mode-dark ladder base */
  --navy-2: #163b56;              /* mode-dark surface-2 */
  --steel: #246185;               /* the site's primary fill (measured) */
  --steel-ink: #1d5473;           /* steel as TEXT on white (6.4:1) */
  --sky: #06abef;                 /* logo bar start — FILL only */
  --aqua: #1cd9ba;                /* logo bar end — FILL only */
  --accent-ink: #0b6f83;          /* aqua/sky as TEXT on white (4.9:1) */
  --mint: #8ae5d0;                /* heritage mint — tints, chips */
  --ice: #eaf4f9;                 /* tint surface */
  --grad: linear-gradient(90deg, var(--sky), var(--aqua));   /* the one gradient identity */
  --grad-soft: linear-gradient(135deg, rgb(6 171 239 / .18), rgb(28 217 186 / .18));

  --accent: var(--steel);
  --accent-strong: var(--steel-ink);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

:root, .mode-light {
  --surface: #fff;
  --surface-2: var(--ice);
  --text: var(--navy);
  --text-2: #5b6b7a;
  --line: #d9e3ea;
  --link: var(--steel-ink);
  --el-ink: var(--navy);
  --el-paper: #fff;
  --el-green: var(--aqua);
  --el-navy: var(--navy-deep);
}
.mode-tint {
  --surface: var(--ice);
  --surface-2: #fff;
  --line: #cfdde6;
}
.mode-dark {
  --surface: var(--navy-deep);
  --surface-2: var(--navy-2);
  --text: #f2f7fa;
  --text-2: #b7c9d6;
  --line: rgb(255 255 255 / 0.12);
  --link: var(--aqua);
  --accent-ink: var(--aqua);
  --steel-ink: #9fd3ee;
}
.mode-steel {
  --surface: var(--steel);
  --surface-2: var(--navy);
  --text: #f4f9fc;
  --text-2: #cfe3ee;
  --line: rgb(255 255 255 / 0.18);
  --link: #fff;
  --accent-ink: var(--aqua);
  --steel-ink: #fff;
}

:root {
  --wrap: 1264px;
  --measure: 64ch;
  --px: clamp(20px, 5vw, 96px);
  --text-hero: clamp(2.5rem, 1.5rem + 3.8vw, 5rem);
  --text-2xl: clamp(1.9rem, 1.3rem + 2.2vw, 3.4rem);
  --text-xl: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  --text-lg: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);

  /* motion: behaviour-named easings */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-glide: cubic-bezier(0.075, 0.82, 0.165, 1);   /* the references' shared curve — draws, chapter slides, wave settle */
  --ease-inout: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --focus-ring: 0 0 0 4px rgb(6 171 239 / 0.22);
  --shadow-soft: 0 6px 12px -2px rgb(18 50 74 / 0.10), 0 3px 7px -3px rgb(0 0 0 / 0.05);
  --shadow-lift: 0 30px 60px -12px rgb(18 50 74 / 0.22), 0 18px 36px -18px rgb(0 0 0 / 0.20);
}
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; box-shadow: var(--focus-ring); border-radius: 8px; }
.mode-dark :focus-visible, .mode-steel :focus-visible { outline-color: var(--aqua); }

/* ============================================================
   DAIDRA ELEMENTS — the reusable section/element library.
   Elementor-style reuse, engineered: include AFTER foundation.css
   and the project's brand-slot skin. Every element consumes only
   foundation tokens (--accent, --green, --paper, --navy, --s-*,
   --dur-*, easings) so one skin restyles the whole library.
   Behaviors attach from elements.js by class contract (README.md).
   Advanced-CSS register: masks, conic gradients, blend modes,
   clip-path chrome, pointer-var lighting. 2026-08-07.
   ============================================================ */

/* Library-local slots with safe fallbacks (projects override) */
:root {
  --el-ink: var(--ink, #16181d);
  --el-navy: var(--navy, #0b1826);
  --el-green: var(--green, #58b765);
  --el-paper: var(--paper, #fbfaf7);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout-hard: cubic-bezier(0.83, 0, 0.17, 1);
}

/* ============ el-aurora — canvas mesh field ============ */
.el-aurora {
  position: absolute; inset: 0; width: 100%; height: 100%;
  --el-aurora-1: var(--accent); --el-aurora-2: var(--el-green);
  --el-aurora-3: #2a6fb8;
  filter: blur(60px) saturate(1.15);
  opacity: 0.85;
  pointer-events: none;
}

/* ============ el-marquee — infinite ticker ============ */
.el-marquee { overflow: hidden; position: relative; }
.el-marquee-track {
  display: flex; align-items: center; gap: var(--s-8);
  width: max-content;
  animation: el-mq var(--el-mq-dur, 30s) linear infinite;
}
.el-marquee:hover .el-marquee-track { animation-play-state: paused; }
@keyframes el-mq { to { transform: translateX(-50%); } }
.el-marquee--fade {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* photo strip variant */
.el-marquee--photos .el-marquee-track { gap: var(--s-2); }
.el-marquee--photos img {
  height: clamp(160px, 22vw, 260px); width: auto; border-radius: var(--radius-lg);
  object-fit: cover; aspect-ratio: 3/2;
}

/* ============ el-orbit — rotating arc ring (SVG) ============ */
.el-orbit { animation: el-spin 60s linear infinite; transform-origin: center; }
.el-orbit--rev { animation-direction: reverse; animation-duration: 90s; }
@keyframes el-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .el-orbit, .el-marquee-track { animation: none !important; }
}

/* ============ el-shine — pointer-lit card ============ */
.el-shine { position: relative; --mx: 50%; --my: 50%; }
.el-shine::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx) var(--my),
    rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.06) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
.el-shine:hover::before, .el-shine:focus-within::before { opacity: 1; }
.el-shine::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx) var(--my),
    rgb(255 255 255 / 0.08), transparent 60%);
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
.el-shine:hover::after, .el-shine:focus-within::after { opacity: 1; }

/* ============ el-glow — cursor glow for dark sections ============ */
.el-glow { position: relative; --gx: 50%; --gy: 40%; }
.el-glow > .el-glow-layer {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px circle at var(--gx) var(--gy),
    rgb(88 183 101 / 0.10), rgb(1 90 163 / 0.07) 45%, transparent 70%);
  transition: opacity var(--dur-3) var(--ease-out);
}
@media (hover: none) { .el-glow > .el-glow-layer { display: none; } }

/* ============ el-magnetic — cursor-lean CTA ============ */
.el-magnetic { transition: transform var(--dur-2) var(--ease-out); will-change: transform; }

/* ============ el-notch-panel — Terminal tab-notch media panel ==== */
.el-notch { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.el-notch::before {
  content: ""; position: absolute; top: 0; right: 48px; z-index: 3;
  width: 120px; height: 14px; background: var(--el-notch-bg, var(--el-paper));
  border-radius: 0 0 12px 12px;
}

/* ============ el-knockout — photo etched through display type ==== */
.el-knockout {
  background-image: var(--el-knockout-img);
  background-size: cover; background-position: center;
  -webkit-background-clip: text; background-clip: text;
  color: rgb(255 255 255 / 0.14);
  filter: drop-shadow(0 2px 24px rgb(0 0 0 / 0.35));
}
@supports not (background-clip: text) { .el-knockout { color: #fff; } }

/* ============ el-grain — feTurbulence paper/film grain ============ */
.el-grain { position: relative; }
.el-grain::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0 0.13 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ el-ghost-mark — viewport-scale watermark ============ */
.el-ghost-mark {
  position: absolute; left: 50%; bottom: -0.24em; transform: translateX(-50%);
  z-index: 1; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 12.2vw; line-height: 1; letter-spacing: -0.01em;
  color: var(--el-ghost-color, rgb(143 193 234 / 0.07)); white-space: nowrap;
}

/* ============ el-dive — split whole-panel CTA pair ============ */
.el-dive { display: grid; grid-template-columns: 1fr 1fr; }
.el-dive a {
  display: flex; align-items: center; gap: var(--s-3);
  padding: clamp(48px, 7vw, 96px) var(--px);
  text-decoration: none; color: #fff;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  transition: background-color var(--dur-3) var(--ease-out);
}
.el-dive a:first-child { background: var(--accent); }
.el-dive a:first-child:hover, .el-dive a:first-child:focus-visible { background: var(--accent-strong); }
.el-dive a:last-child { background: var(--el-ink); }
.el-dive a:last-child:hover, .el-dive a:last-child:focus-visible { background: #000; }
.el-dive .darr { flex: none; transition: transform var(--dur-3) var(--ease-out); }
.el-dive a:hover .darr, .el-dive a:focus-visible .darr { transform: translate(6px, 6px); }
@media (max-width: 860px) { .el-dive { grid-template-columns: 1fr; } }

/* ============ el-chip-pill — mono chip (nav/filters) ============ */
.el-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--el-ink);
  background: #fff; border: 1px solid rgb(0 0 0 / 0.14);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.el-chip:hover, .el-chip:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.el-chip--green { background: var(--el-green); border-color: var(--el-green); color: #06250c; }
.el-chip[aria-pressed="true"] { background: var(--el-green); border-color: var(--el-green); color: #06250c; }

/* ============ el-metric-chip — floating stat chip ============ */
.el-metric {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 14px 20px; border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff;
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.5);
}
.el-metric b {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; letter-spacing: -0.02em;
}
.el-metric b sup { font-size: 0.55em; font-weight: 500; }
.el-metric .micro { color: rgb(255 255 255 / 0.65); }

/* ============ el-ring-conic — conic progress ring ============ */
.el-ring-conic {
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--el-rc-hole, var(--el-navy)) 79%, transparent 80% 100%),
    conic-gradient(var(--el-green) calc(var(--p, 0) * 1%), rgb(255 255 255 / 0.12) 0);
}

/* ============ el-mosaic — two-row photo marquee band ============ */
.el-mosaic { display: grid; gap: var(--s-2); }

/* ============ el-quote-ghost — testimonial w/ giant glyph ======== */
.el-quote-ghost { position: relative; }
.el-quote-ghost::before {
  content: "\201C"; position: absolute; top: -0.18em; left: -0.06em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(8rem, 18vw, 16rem); line-height: 1;
  color: var(--accent); opacity: 0.08; pointer-events: none;
}

/* ============ Scene stepping visuals (used with [data-el-scene]) == */
.el-scene .svc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity 700ms var(--ease-out-expo), transform 900ms var(--ease-out-expo);
}
.el-scene .svc-media img.active { opacity: 1; transform: scale(1); }
.el-scene .svc-desc { position: relative; }
.el-scene .svc-desc p {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity 500ms var(--ease-out-expo), transform 500ms var(--ease-out-expo);
}
.el-scene .svc-desc p.active { opacity: 1; transform: none; }
.el-scene .scene-bar { height: 2px; overflow: hidden; }
.el-scene .scene-bar i { display: block; height: 100%; background: var(--el-green); transform-origin: left; transform: scaleX(0); }

/* ============ Reduced motion: designed static states ============ */
@media (prefers-reduced-motion: reduce) {
  .el-shine::before, .el-shine::after, .el-glow > .el-glow-layer { display: none; }
  .el-magnetic { transition: none; }
  .el-scene .svc-media img, .el-scene .svc-desc p { transition: none; }
}

/* ============ el-field — branded form controls (input/select/textarea) ==== */
/* Contract: <div class="el-field"><label for=X>…</label><input|select|textarea id=X>
   <span class="el-field-err">message</span></div>. Add .err on the wrapper to show
   the error state. Selects get a token-colored SVG chevron (appearance:none);
   labels tint to --accent on focus-within. Never ship native-chrome fields. */
.el-field { display: grid; gap: 6px; }
.el-field label {
  font-size: var(--text-sm); font-weight: 700; color: var(--el-ink, var(--ink, #232830));
  transition: color var(--dur-2) var(--ease-out);
}
.el-field:focus-within label { color: var(--accent); }
.el-field input, .el-field select, .el-field textarea {
  border: 1px solid var(--n-300, #C5CAD3); border-radius: var(--radius);
  padding: 12px 14px; font: 400 var(--text-md) var(--font-body);
  color: var(--el-ink, var(--ink, #232830));
  background: #fff; width: 100%; min-height: 48px;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.el-field input:hover, .el-field select:hover, .el-field textarea:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, #fff);
}
.el-field input::placeholder, .el-field textarea::placeholder { color: #7A8398; }
.el-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  /* chevron inherits --accent via mask so it always matches the skin */
  background-image: none; padding-right: 40px; position: relative;
}
.el-field .el-field-sel { position: relative; }
.el-field .el-field-sel::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 12px; height: 8px; transform: translateY(-50%);
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
  pointer-events: none;
}
.el-field textarea { resize: vertical; min-height: 120px; }
.el-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #fff inset;
  -webkit-text-fill-color: var(--el-ink, var(--ink, #232830));
}
.el-field input:focus, .el-field select:focus, .el-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--focus-ring);
}
.el-field.err input, .el-field.err select { border-color: var(--el-red, #D33); }
.el-field.err input:focus, .el-field.err select:focus {
  border-color: var(--el-red, #D33);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--el-red, #D33) 15%, transparent);
}
.el-field .el-field-err { display: none; font-size: var(--text-xs); color: var(--el-red, #D33); }
.el-field.err .el-field-err { display: block; }

/* ── el-device: scrolling site-in-frame mockups (desktop browser + phone) ──
   Origin: sharkdig.com case studies 2026-08-11. Feed each viewport a full-page
   capture (desktop ~1200w, mobile 390w@2x). Frames are user-scrollable. */
.el-device-pair { display: grid; grid-template-columns: minmax(0,1fr) 292px; gap: clamp(18px,2.5vw,28px); align-items: stretch; }
.el-browser { border: 1px solid var(--rule, #dde4ee); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(6,27,49,.4); }
.el-browser .bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: var(--card, #fff); border-bottom: 1px solid var(--rule, #dde4ee); }
.el-browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3dce8; }
.el-browser .view { height: clamp(420px,62vh,640px); overflow-y: auto; overflow-x: hidden; background: var(--card, #fff); -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.el-browser .view img { display: block; width: 100%; height: auto; }
.el-phone { position: relative; display: flex; flex-direction: column; height: calc(clamp(420px,62vh,640px) + 40px); border: 10px solid #10151d; border-radius: 44px; background: #10151d; box-shadow: 0 24px 60px -30px rgba(6,27,49,.5), inset 0 0 0 2px rgba(255,255,255,.06); }
.el-phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; border-radius: 12px; background: #10151d; z-index: 3; }
.el-phone .view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; background: var(--card, #fff); border-radius: 34px; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; scrollbar-width: none; }
.el-phone .view::-webkit-scrollbar { display: none; }
.el-phone .view img { display: block; width: 100%; height: auto; }
@media (max-width: 880px) {
  .el-device-pair { grid-template-columns: 1fr; }
  .el-phone { width: min(320px,82vw); height: 560px; margin: 0 auto; }
}

/* ============ el-menu — mobile navigation drawer, done right (2026-09-16) ============
   Born from Beach Bookshop: a fixed #menu INSIDE a header with backdrop-filter was
   positioned against the header (filters create containing blocks), so it opened
   40px low, then rendered with negative height and "didn't work" on X's phone.
   Contract (markup lives OUTSIDE <header>):
     <button class="chrome-burger" aria-expanded="false" aria-controls="menu" aria-label="Open menu"><span></span></button>
     <dialog id="menu" class="el-menu" aria-label="Menu">
       <div class="el-menu-bar"><a class="brand" href="/">…</a><button class="el-menu-close" aria-label="Close menu"></button></div>
       <nav class="el-menu-nav"><ol><li><a href>…</a></li>…</ol></nav>
       <div class="el-menu-foot">…hours / address / CTAs / socials…</div>
     </dialog>
   Engine (elements.js): showModal() → top layer (immune to z-index, overflow, filter
   containing blocks); iOS-proof scroll lock; Esc/backdrop/link/resize close; focus in
   and back to the burger; staggered link rise via --i. Slots: --el-menu-bg, --el-menu-fg,
   --el-menu-accent, --el-menu-bp (px, close when the viewport grows past it). */
.el-menu { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--el-menu-bg, var(--el-navy)); color: var(--el-menu-fg, #fff); overflow: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; transition: opacity var(--dur-3, 450ms) var(--ease-out, ease); }
.el-menu[open] { display: grid; grid-template-rows: auto 1fr auto; }
.el-menu.in { opacity: 1; }
.el-menu::backdrop { background: transparent; }
html.el-menu-lock { overflow: hidden; }
html.el-menu-lock body { position: fixed; width: 100%; overflow: hidden; }
.el-menu-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; padding: 0 var(--px, 20px); }
.el-menu-bar .brand { min-height: 48px; display: inline-flex; align-items: center; }
.el-menu-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.22); background: rgb(255 255 255 / 0.06); color: inherit; cursor: pointer; position: relative; flex: none; }
.el-menu-close::before, .el-menu-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.el-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.el-menu-nav { padding: 8px var(--px, 20px) 24px; align-self: center; }
.el-menu-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.el-menu-nav li { counter-increment: m; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.el-menu-nav a { display: grid; grid-template-columns: 2.4ch minmax(0, 1fr) auto; align-items: baseline; gap: 12px; min-height: 60px; padding: 14px 0; color: inherit; text-decoration: none;
  font-family: var(--font-display); font-weight: var(--weight-display, 500); font-size: clamp(1.75rem, 7.5vw, 2.6rem); line-height: 1; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(14px); transition: opacity var(--dur-3, 450ms) var(--ease-out, ease), transform var(--dur-3, 450ms) var(--ease-out, ease); transition-delay: calc(80ms + var(--i, 0) * 55ms); }
.el-menu-nav a::before { content: counter(m, decimal-leading-zero); font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; color: var(--el-menu-accent, var(--accent)); align-self: center; }
.el-menu-nav a::after { content: "\2192"; font-family: var(--font-body); font-size: 1.1rem; color: var(--el-menu-accent, var(--accent)); opacity: 0.7; align-self: center; }
.el-menu-nav a[aria-current="page"] { color: var(--el-menu-accent, var(--accent)); }
.el-menu.in .el-menu-nav a { opacity: 1; transform: none; }
.el-menu-foot { padding: 20px var(--px, 20px) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / 0.12); display: grid; gap: 16px; font-size: 0.9375rem;
  opacity: 0; transform: translateY(10px); transition: opacity var(--dur-3, 450ms) var(--ease-out, ease) 420ms, transform var(--dur-3, 450ms) var(--ease-out, ease) 420ms; }
.el-menu.in .el-menu-foot { opacity: 1; transform: none; }
.el-menu-foot .el-menu-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.el-menu-foot .el-menu-ctas .btn { justify-content: center; }
.el-menu-foot .el-menu-meta { display: grid; gap: 4px; color: rgb(255 255 255 / 0.78); }
.el-menu-foot .el-menu-meta b { color: var(--el-menu-accent, var(--accent)); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-body); }
.el-menu-foot a { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .el-menu, .el-menu-nav a, .el-menu-foot { transition: none; }
  .el-menu[open] { opacity: 1; } .el-menu[open] .el-menu-nav a, .el-menu[open] .el-menu-foot { opacity: 1; transform: none; }
}

/* ============ el-summon — hover-intent card (2026-09-16) ============
   `.summon-host` > `[data-summon]` + `.summon`. The card is hidden by transform/opacity/
   visibility, becomes interactive when `.on`, and carries an invisible bridge above it
   so the pointer can cross the gap from the trigger without "leaving". Engine: elements.js. */
.summon { --el-summon-grace: 420; position: absolute; z-index: 30; opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform var(--dur-3, 450ms) var(--ease-out, ease), opacity var(--dur-3, 450ms) var(--ease-out, ease), visibility 0s linear var(--dur-3, 450ms); }
.summon.on { opacity: 1; visibility: visible; pointer-events: auto; transition: transform var(--dur-3, 450ms) var(--ease-out, ease), opacity var(--dur-3, 450ms) var(--ease-out, ease); }
.summon::before { content: ""; position: absolute; left: -24px; right: -24px; top: -28px; height: 28px; }
@media (hover: none), (pointer: coarse) { .summon { display: none; } }
@media (prefers-reduced-motion: reduce) { .summon { transition: none; } }

/* ============================================================
   ALL ABOUT AUDIOLOGY — page components (after foundation + skin + elements)
   Section grammar = inset rounded page-panels (Caliora); micro-gesture =
   .bars eyebrow + two-tone heading + gradient hairline; signature = canvas
   .wave (project.js). Hover rules live behind @media (hover: hover).
   ============================================================ */
html { scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill); }
.skip:focus { top: 12px; }
p.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: var(--text-sm); }
.center { text-align: center; }
.center p, .center h2, .center .head { margin-inline: auto; }
b, strong { font-weight: var(--weight-medium); }
h1, h2, h3 { hyphens: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- panels: every band is an inset rounded card ---------- */
.panel { margin: 8px; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.panel + .panel { margin-top: 0; }
.section--tight { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.section--hero { min-height: 0; }

/* ---------- the micro-gesture: bars + eyebrow + two-tone + hairline ---------- */
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; margin-right: 10px; vertical-align: -3px; }
.bars i { display: block; width: 3px; border-radius: 2px; background: var(--grad); transform-origin: bottom; transform: scaleY(0.2); transition: transform 600ms var(--ease-glide); }
.bars i:nth-child(1) { height: 8px; transition-delay: 0ms; } .bars i:nth-child(2) { height: 14px; transition-delay: 60ms; }
.bars i:nth-child(3) { height: 16px; transition-delay: 120ms; } .bars i:nth-child(4) { height: 11px; transition-delay: 180ms; } .bars i:nth-child(5) { height: 6px; transition-delay: 240ms; }
.drawn .bars i, .bars.drawn i, .no-js .bars i { transform: scaleY(1); }
.eyebrow { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; font-weight: var(--weight-medium); color: var(--steel-ink); display: inline-flex; align-items: center; margin-bottom: 14px; }
.mode-dark .eyebrow, .mode-steel .eyebrow { color: var(--aqua); }
.head { max-width: 52ch; margin-bottom: var(--s-6); }
.head h2, .head h1 { margin-bottom: 14px; }
.head .rule { display: block; width: 72px; height: 3px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-glide) 200ms; margin-bottom: var(--s-3); }
.drawn .rule, .no-js .rule { transform: scaleX(1); }
.head p.lede { margin-bottom: 0; }
.tone { color: var(--accent-ink); }
h2 .tone, h1 .tone { font-weight: var(--weight-display); }
.center .head .rule { margin-inline: auto; }

/* ---------- buttons: gradient pan on the references' curve ---------- */
.btn { border-radius: var(--radius-pill); padding: 15px 26px 16px; font-size: 0.95rem; letter-spacing: 0.01em; background: var(--navy); background-image: linear-gradient(90deg, var(--navy), var(--steel), var(--navy)); background-size: 220% 100%; background-position: 0% 50%; transition: background-position var(--dur-3) var(--ease-glide), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.btn .arrow { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.btn--grad { background: var(--aqua); background-image: linear-gradient(90deg, var(--sky), var(--aqua), var(--sky)); background-size: 220% 100%; color: var(--navy-deep); }
.btn--white { background: #fff; background-image: linear-gradient(90deg, #fff, var(--ice), #fff); background-size: 220% 100%; color: var(--navy); }
.btn--ghost { background: transparent; background-image: none; color: var(--text); border-color: var(--line); }
.mode-dark .btn--ghost, .mode-steel .btn--ghost, .hero .btn--ghost { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.btn--sm { padding: 10px 18px 11px; font-size: 0.85rem; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }
@media (hover: hover) {
  .btn:hover, .btn:focus-visible { background-position: 100% 50%; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
  .btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(3px); }
  .btn--ghost:hover, .btn--ghost:focus-visible { background: var(--surface-2); border-color: var(--text-2); box-shadow: none; }
  .mode-dark .btn--ghost:hover, .hero .btn--ghost:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; }
}
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- chrome ---------- */
.chrome { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), padding var(--dur-3) var(--ease-out); padding-top: 12px; padding-bottom: 12px; }
.chrome .bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3); }
.chrome .brand { display: inline-flex; align-items: center; }
.chrome .brand img { height: 52px; width: auto; transition: opacity var(--dur-2) var(--ease-out); }
.chrome .brand .dark { display: none; }
.chrome.scrolled, .chrome.solid { background: rgb(255 255 255 / 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); padding-top: 8px; padding-bottom: 8px; }
.chrome.scrolled .brand .light, .chrome.solid .brand .light { display: none; }
.chrome.scrolled .brand .dark, .chrome.solid .brand .dark { display: block; }
.chrome.scrolled .brand img, .chrome.solid .brand img { height: 44px; }
.nav { display: flex; justify-content: center; gap: 4px; align-items: center; }
.nav > a, .nav .has-sub > button, .chrome .ctas .tel, .chrome .ctas .btn { white-space: nowrap; }
.nav > a, .nav .has-sub > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius-pill); color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: var(--weight-medium); background: rgb(18 50 74 / 0.32); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgb(255 255 255 / 0.14); font-family: inherit; cursor: pointer; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.nav > a[aria-current="page"], .nav .has-sub.current > button { border-color: var(--aqua); }
.chrome.scrolled .nav > a, .chrome.scrolled .nav .has-sub > button, .chrome.solid .nav > a, .chrome.solid .nav .has-sub > button { color: var(--navy); background: transparent; backdrop-filter: none; border-color: transparent; }
.chrome.scrolled .nav > a[aria-current="page"], .chrome.solid .nav > a[aria-current="page"], .chrome.scrolled .nav .has-sub.current > button, .chrome.solid .nav .has-sub.current > button { background: var(--ice); }
@media (hover: hover) {
  .nav > a:hover, .nav .has-sub > button:hover { background: rgb(18 50 74 / 0.55); border-color: rgb(255 255 255 / 0.4); }
  .chrome.scrolled .nav > a:hover, .chrome.scrolled .nav .has-sub > button:hover, .chrome.solid .nav > a:hover, .chrome.solid .nav .has-sub > button:hover { background: var(--ice); color: var(--steel-ink); }
}
.nav .has-sub { position: relative; }
.nav .has-sub > button svg { width: 12px; height: 12px; transition: transform var(--dur-2) var(--ease-out); }
.nav .has-sub.open > button svg { transform: rotate(180deg); }
.nav .sub { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); min-width: 280px; background: #fff; color: var(--navy); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2); }
.nav .has-sub.open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* bridge */
.nav .sub a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--navy); font-size: 0.92rem; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.nav .sub a small { display: block; color: var(--text-2); font-size: 0.78rem; font-weight: 400; }
.nav .sub a .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--ice); display: grid; place-items: center; color: var(--steel-ink); }
.nav .sub a .ic svg { width: 18px; height: 18px; }
.nav .sub a[aria-current="page"], .nav .sub a:hover, .nav .sub a:focus-visible { background: var(--ice); color: var(--steel-ink); }
.chrome .ctas { display: flex; gap: 8px; align-items: center; justify-self: end; }
.chrome .ctas .tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: var(--weight-medium); font-size: 0.9rem; padding: 10px 14px; border-radius: var(--radius-pill); border: 1px solid rgb(255 255 255 / 0.3); backdrop-filter: blur(12px); background: rgb(18 50 74 / 0.32); transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.chrome .ctas .tel svg { width: 16px; height: 16px; }
.chrome.scrolled .ctas .tel, .chrome.solid .ctas .tel { color: var(--navy); background: transparent; border-color: var(--line); backdrop-filter: none; }
.chrome .ctas .btn { padding: 11px 18px 12px; font-size: 0.88rem; }
.chrome-burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(18 50 74 / 0.32); backdrop-filter: blur(12px); position: relative; cursor: pointer; }
.chrome-burger span, .chrome-burger::before, .chrome-burger::after { content: ""; position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: background-color var(--dur-2) var(--ease-out); }
.chrome-burger::before { top: 17px; } .chrome-burger span { top: 23px; } .chrome-burger::after { top: 29px; }
.chrome.scrolled .chrome-burger, .chrome.solid .chrome-burger { background: var(--ice); border-color: var(--line); }
.chrome.scrolled .chrome-burger span, .chrome.scrolled .chrome-burger::before, .chrome.scrolled .chrome-burger::after, .chrome.solid .chrome-burger span, .chrome.solid .chrome-burger::before, .chrome.solid .chrome-burger::after { background: var(--navy); }
.el-menu { --el-menu-bg: var(--navy-deep); --el-menu-fg: #fff; --el-menu-accent: var(--aqua); background-image: radial-gradient(60% 50% at 80% 0%, rgb(6 171 239 / 0.22), transparent 60%), radial-gradient(50% 40% at 10% 100%, rgb(28 217 186 / 0.16), transparent 60%); }
.section--hero { background-image: linear-gradient(180deg, var(--navy-deep), var(--navy)); }
.el-menu .brand img { height: 44px; width: auto; }
.el-menu-nav ol a { font-family: var(--font-display); font-weight: var(--weight-display); letter-spacing: -0.01em; }
.el-menu-nav ol li.sub a { font-size: 1.05rem; min-height: 48px; padding-left: 28px; opacity: 0.85; }
.el-menu-foot .soc { display: flex; gap: 12px; }
.soc a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: inherit; transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.soc a svg { width: 18px; height: 18px; }
@media (hover: hover) { .soc a:hover { border-color: var(--aqua); background: rgb(28 217 186 / 0.12); transform: translateY(-2px); } }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: min(86vh, 900px); display: flex; align-items: flex-end; color: #fff; background: var(--navy-deep); isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 32 51 / 0.45) 0%, rgb(11 32 51 / 0.05) 30%, rgb(11 32 51 / 0.2) 55%, rgb(11 32 51 / 0.86) 100%); }
.hero .wrap { width: 100%; padding-top: 160px; padding-bottom: var(--s-8); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: var(--s-6); align-items: end; }
.hero h1 { font-size: var(--text-hero); margin-bottom: var(--s-3); max-width: 14ch; text-shadow: 0 2px 24px rgb(0 0 0 / 0.25); }
.hero h1 small { display: block; font-size: 0.42em; font-weight: 400; letter-spacing: 0.02em; opacity: 0.9; margin-bottom: 10px; }
.hero .right { justify-self: end; max-width: 42ch; }
.hero .right p.lede { color: rgb(255 255 255 / 0.92); font-weight: var(--weight-medium); font-size: var(--text-lg); margin-bottom: var(--s-3); }
.trust { display: flex; align-items: center; gap: 14px; }
.trust .avatars { display: flex; }
.trust .avatars img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -12px; }
.trust .avatars img:first-child { margin-left: 0; }
.trust p { margin: 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: var(--weight-medium); line-height: 1.4; }
.trust p b { display: block; letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.hero .wave-host { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 0; pointer-events: auto; }
.hero .wave-host::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: var(--grad); opacity: 0.35; } /* static fallback line under the canvas */
canvas.wave { display: block; width: 100%; height: 100%; }
/* load choreography */
.hero.load .rise { opacity: 0; transform: translateY(24px); }
.hero .rise { transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger) + 120ms); }
.hero.ready .rise { opacity: 1; transform: none; }

/* ---------- inner hero (six layers: photo · scrim · grid · ghost numeral · rail · copy) ---------- */
.ihero { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: #fff; background: var(--navy-deep); isolation: isolate; }
.ihero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.ihero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgb(11 32 51 / 0.55) 0%, rgb(11 32 51 / 0.15) 35%, rgb(11 32 51 / 0.82) 100%); }
.ihero .lines { position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.06) 0 1px, transparent 1px calc(100% / 12)); pointer-events: none; }
.ihero .ghost { position: absolute; right: -0.05em; bottom: -0.18em; font-size: clamp(8rem, 24vw, 22rem); font-weight: 600; letter-spacing: -0.04em; color: rgb(255 255 255 / 0.07); line-height: 1; z-index: -1; pointer-events: none; user-select: none; }
.ihero .wrap { width: 100%; padding-top: 180px; padding-bottom: var(--s-8); }
.ihero .rail { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: var(--weight-medium); margin-bottom: 18px; color: rgb(255 255 255 / 0.9); }
.ihero .rail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgb(28 217 186 / 0.6); animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(28 217 186 / 0.6); } 70% { box-shadow: 0 0 0 10px rgb(28 217 186 / 0); } 100% { box-shadow: 0 0 0 0 rgb(28 217 186 / 0); } }
.ihero .rail a { color: inherit; text-decoration: none; }
.ihero h1 { max-width: 16ch; text-shadow: 0 2px 24px rgb(0 0 0 / 0.3); }
.ihero p.lede { color: rgb(255 255 255 / 0.9); max-width: 58ch; }
.ihero .btn-row { margin-top: var(--s-3); }
.ihero.load .rise { opacity: 0; transform: translateY(24px); }
.ihero .rise { transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger) + 120ms); }
.ihero.ready .rise { opacity: 1; transform: none; }
.ihero--short { min-height: 380px; }

/* ---------- service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc { display: flex; flex-direction: column; background: var(--surface-2); border-radius: var(--radius-lg); padding: 14px 14px 22px; text-decoration: none; color: var(--text); border: 1px solid transparent; transition: transform var(--dur-4) var(--ease-out), box-shadow var(--dur-4) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.svc img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform var(--dur-4) var(--ease-glide); }
.svc .body { padding: 18px 8px 0; }
.svc h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 14px; }
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.svc li .ic, .ic-sq { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.svc li .ic svg, .ic-sq svg { width: 16px; height: 16px; }
.svc .more { margin-top: auto; padding-top: 16px; display: inline-flex; gap: 6px; align-items: center; color: var(--steel-ink); font-weight: var(--weight-medium); font-size: 0.9rem; }
.svc .more svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) {
  .svc:hover, .svc:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line); }
  .svc:hover img { transform: scale(1.03); }
  .svc:hover .more svg { transform: translateX(4px); }
}
.svc-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- split bands + media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split.flip > :first-child { order: 2; }
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall img { aspect-ratio: 4 / 5; }
.media--wide img { aspect-ratio: 16 / 10; }
.media .cap { position: absolute; left: 14px; bottom: 14px; background: rgb(11 32 51 / 0.72); color: #fff; backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 10px; font-size: 0.8rem; font-weight: var(--weight-medium); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: -40px; position: relative; z-index: 1; padding-inline: 14px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 3px solid var(--surface); box-shadow: var(--shadow-soft); }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000' stroke='none'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3C/svg%3E") center/contain no-repeat; }
.checks li { position: relative; }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.mode-dark .checks li::after { border-color: var(--navy-deep); }

/* ---------- numbered accordion ---------- */
.acc { display: grid; gap: 10px; counter-reset: acc; }
.acc details { position: relative; padding-left: 52px; }
.acc details::before { content: counter(acc); counter-increment: acc; position: absolute; left: 0; top: 6px; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: var(--weight-medium); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 14px 20px; font-weight: var(--weight-medium); transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--steel-ink); transition: transform var(--dur-2) var(--ease-out); flex: none; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 10px 20px 6px; color: var(--text-2); }
.acc .acc-body p:last-child { margin-bottom: 0; }
.mode-dark .acc details::before { background: var(--aqua); color: var(--navy-deep); }
.mode-dark .acc summary { background: rgb(255 255 255 / 0.06); }
@media (hover: hover) { .acc summary:hover { background: var(--ice); border-color: var(--steel); } .mode-dark .acc summary:hover { background: rgb(255 255 255 / 0.12); border-color: var(--aqua); } }

/* ---------- team band ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { display: block; text-decoration: none; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; transition: transform var(--dur-4) var(--ease-out), box-shadow var(--dur-4) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.person .who { padding: 16px 8px 6px; }
.person h3 { font-size: 1.15rem; margin-bottom: 4px; }
.person .cred { color: var(--text-2); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: var(--weight-medium); }
.person .more { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; font-weight: var(--weight-medium); font-size: 0.9rem; color: var(--accent-ink); }
.person .more svg { width: 16px; height: 16px; }
@media (hover: hover) { .person:hover, .person:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--aqua); } }
.bio { display: grid; grid-template-columns: 320px 1fr; gap: var(--s-6); align-items: start; padding: var(--s-4); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bio img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; position: sticky; top: 110px; }
.bio h3 { margin-bottom: 4px; }
.bio .cred { margin-bottom: var(--s-3); }

/* ---------- chips + logo strip ---------- */
.chip-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: var(--weight-medium); transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.chip img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.chip .logo { width: auto; height: 34px; border-radius: 0; object-fit: contain; }
@media (hover: hover) { .chip:hover, .chip:focus-visible { transform: translateY(-2px); border-color: var(--steel); box-shadow: var(--shadow-soft); } }
.logo-strip { padding-block: var(--s-4); }
.logo-strip .el-marquee-track { gap: 64px; align-items: center; }
.logo-strip img { height: 44px; width: auto; object-fit: contain; }
.logo-strip .el-marquee { --fade: 80px; }
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: center; }
.logo-grid div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; place-items: center; min-height: 110px; }
.logo-grid img { max-height: 44px; width: auto; }

/* ---------- reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.quote { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); position: relative; }
.quote blockquote, .quote figure { margin: 0; }
.quote .stars { color: #f5b400; letter-spacing: 2px; font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.quote .stars img { height: 18px; width: auto; }
.quote p { font-size: 0.98rem; line-height: 1.6; }
.quote cite { display: block; font-style: normal; font-weight: var(--weight-medium); color: var(--steel-ink); margin-top: 10px; }
.quote::before { content: "“"; position: absolute; right: 22px; top: 6px; font-size: 5rem; line-height: 1; color: var(--sky); opacity: 0.18; font-weight: 600; }

/* ---------- overlay cards (duotone → colour) ---------- */
.res-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ocard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; padding: 22px; isolation: isolate; }
.ocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.04) brightness(0.95); transition: filter var(--dur-4) var(--ease-glide), transform var(--dur-4) var(--ease-glide); }
.ocard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); mix-blend-mode: color; transition: opacity var(--dur-4) var(--ease-glide); }
.ocard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 32 51 / 0.2) 0%, rgb(11 32 51 / 0.85) 100%); }
.ocard .eyebrow { color: var(--aqua); position: absolute; top: 20px; left: 22px; margin: 0; }
.ocard h3 { font-size: 1.25rem; margin: 0 0 6px; text-shadow: 0 2px 12px rgb(0 0 0 / 0.3); }
.ocard p { margin: 0; font-size: 0.9rem; color: rgb(255 255 255 / 0.82); }
.ocard time { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); margin-top: 10px; }
@media (hover: hover) {
  .ocard:hover img, .ocard:focus-visible img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.04); }
  .ocard:hover::before, .ocard:focus-visible::before { opacity: 0; }
}
.ocard--tall { min-height: 460px; }

/* ---------- blog module ---------- */
.blog-module { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.post-list { display: grid; gap: 6px; align-content: start; }
.post-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-decoration: none; color: inherit; padding: 8px; border-radius: 14px; transition: background-color var(--dur-2) var(--ease-out); }
.post-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; filter: grayscale(1); transition: filter var(--dur-3) var(--ease-glide); }
.post-row h3 { font-size: 1rem; margin: 0 0 4px; line-height: 1.35; }
.post-row .eyebrow { margin: 0; font-size: 0.68rem; }
@media (hover: hover) { .post-row:hover { background: var(--surface-2); } .post-row:hover img { filter: none; } }
.read-progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; z-index: 70; background: transparent; pointer-events: none; }
.read-progress::before { content: ""; display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-8); align-items: start; }
.article { max-width: 68ch; font-size: 1.06rem; line-height: 1.7; }
.article h2, .article h3, .article h4 { margin-top: var(--s-6); font-size: var(--text-xl); }
.article h4 { font-size: var(--text-lg); }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 8px; }
.article img { border-radius: var(--radius-lg); margin: var(--s-4) 0; }
.article a { color: var(--steel-ink); }
.sticky-aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.aside-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); }
.aside-card h4 { margin-bottom: 10px; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.aside-card li a { color: var(--steel-ink); text-decoration: none; font-weight: var(--weight-medium); font-size: 0.92rem; }
.aside-card li a:hover { text-decoration: underline; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: var(--weight-medium); color: var(--text-2); margin-bottom: var(--s-4); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.pager a, .pager span { flex: 1; text-decoration: none; color: inherit; }
.pager a small, .pager span small { display: block; color: var(--text-2); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.pager a:last-child { text-align: right; }
.pager a b { color: var(--steel-ink); }

/* ---------- glass visit card ---------- */
.visit { position: relative; min-height: 520px; display: grid; place-items: center; isolation: isolate; padding: var(--s-8) var(--px); }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: blur(6px) saturate(1.1); transform: scale(1.06); }
.visit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(18 50 74 / 0.32); }
.visit-card { width: min(560px, 100%); background: rgb(255 255 255 / 0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgb(255 255 255 / 0.7); border-radius: var(--radius-lg); padding: var(--s-4); color: var(--navy); box-shadow: var(--shadow-lift); }
.visit-card h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.visit-card h3 a { color: var(--steel-ink); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.visit-card h3 a svg { width: 18px; height: 18px; }
.visit-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; }
.visit-card dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: var(--weight-medium); color: var(--text-2); margin-bottom: 4px; }
.visit-card dd { margin: 0; font-weight: var(--weight-medium); line-height: 1.5; }
.visit-card dd a { color: var(--navy); text-decoration: none; }
.visit-card dd a:hover { text-decoration: underline; }
.visit-card .btn-row { margin-top: var(--s-3); }

/* ---------- CTA band + wizard promo ---------- */
.cta-band { position: relative; text-align: center; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band .glow { position: absolute; inset: -40% -10%; background: radial-gradient(60% 60% at 30% 40%, rgb(6 171 239 / 0.35), transparent 60%), radial-gradient(50% 50% at 75% 60%, rgb(28 217 186 / 0.3), transparent 60%); pointer-events: none; }
.promo { position: relative; overflow: hidden; }
.promo .wave-host { position: absolute; left: 0; right: 0; top: 0; height: 140px; opacity: 0.9; }
.promo .split { position: relative; z-index: 1; }
.promo .device { background: rgb(255 255 255 / 0.06); border: 1px solid var(--line); border-radius: 24px; padding: 14px; box-shadow: var(--shadow-lift); }
.promo .device .screen { border-radius: 14px; overflow: hidden; background: #fff; color: var(--navy); }
.promo .device .screen img { width: 100%; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); }
.stat-card b { font-size: var(--text-2xl); font-weight: var(--weight-display); letter-spacing: -0.02em; display: block; line-height: 1; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--text-2); font-size: 0.92rem; }

/* ---------- steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; line-height: 1; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 76ch; }
.faq details { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: var(--weight-medium); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--steel-ink); border-bottom: 2px solid var(--steel-ink); transform: rotate(45deg); transition: transform var(--dur-2) var(--ease-out); margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding: 0 0 16px; color: var(--text-2); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.contact-form { display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-status { min-height: 1.4em; font-weight: var(--weight-medium); }
.form-status.is-ok { color: #0d7a4f; } .form-status.is-err { color: #b3261e; }
.form-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); }
.el-field .el-field-err { display: none; color: #b3261e; font-size: 0.82rem; }
.el-field.err .el-field-err { display: block; }
.el-field.err input, .el-field.err textarea, .el-field.err select { border-color: #b3261e; }
.el-field input, .el-field select, .el-field textarea { font-family: inherit; font-size: 1rem; }
.pillset { display: flex; flex-wrap: wrap; gap: 8px; }
.pillset label { position: relative; }
.pillset input { position: absolute; inset: 0; opacity: 0; }
.pillset span { display: inline-block; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; font-size: 0.9rem; font-weight: var(--weight-medium); cursor: pointer; transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.pillset input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pillset input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: #e6eef4; position: relative; overflow: hidden; }
.foot .wrap { padding-top: var(--s-12); padding-bottom: var(--s-4); position: relative; z-index: 1; }
.foot .backdrop { position: absolute; inset: 0; opacity: 0.16; }
.foot .backdrop img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.foot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 32 51 / 0.6), rgb(11 32 51 / 0.98)); z-index: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); position: relative; }
.foot h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #e6eef4; text-decoration: none; }
.foot a:hover { color: var(--aqua); }
.foot p { color: #b7c9d6; font-size: 0.95rem; }
.foot .brand img { height: 56px; width: auto; margin-bottom: 16px; }
.foot .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgb(255 255 255 / 0.12); margin-top: var(--s-8); padding-top: var(--s-3); font-size: 0.82rem; color: #9fb3c2; }
.foot .legal a { color: #b7c9d6; }
.foot .soc { display: flex; gap: 10px; margin-top: 14px; }
.foot .soc a { border-color: rgb(255 255 255 / 0.2); }

/* ---------- misc ---------- */
.el-ghost-mark { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; }
.lenire-band { position: relative; }
.lenire-band .overlap { margin-top: -120px; position: relative; z-index: 2; }
.hours { display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding: 8px 0; }
.hours b { font-weight: var(--weight-medium); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--ice); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.oops { text-align: center; padding-top: 180px; }
.oops-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: var(--s-8); }
.oops-grid img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; }
.notice { border-left: 4px solid var(--aqua); background: var(--surface-2); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--text-2); font-size: 0.95rem; }
.two-col { columns: 2; column-gap: var(--s-6); }
.two-col p { break-inside: avoid; }
.portal-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 640px; background: #fff; }
.portal-frame iframe { width: 100%; height: 760px; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .chrome .bar { grid-template-columns: auto 1fr auto; }
  .chrome-burger { display: block; }
  .chrome .ctas .btn { display: none; }
  .svc-grid, .svc-grid--wide, .res-cards, .post-grid, .quotes, .team-grid, .steps, .steps--4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: 1fr; }
  .sticky-aside { position: static; }
}
@media (max-width: 860px) {
  .hero { min-height: 92svh; }
  .hero .wrap { padding-top: 120px; }
  .hero-grid, .split, .blog-module, .grid-2, .grid-3, .bio { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero .right { justify-self: start; }
  .hero h1 { max-width: none; }
  .ihero .wrap { padding-top: 140px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .visit-card dl { grid-template-columns: 1fr; }
  .two-col { columns: 1; }
  .lenire-band .overlap { margin-top: -48px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); margin-top: -24px; }
  .bio img { position: static; max-width: 320px; }
}
@media (max-width: 560px) {
  .panel { margin: 6px; border-radius: 16px; }
  .svc-grid, .svc-grid--wide, .res-cards, .post-grid, .quotes, .team-grid, .steps, .steps--4, .steps--2, .stats, .foot-grid, .oops-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: 1fr; }
  .chrome .brand img { height: 40px; }
  .chrome.scrolled .brand img, .chrome.solid .brand img { height: 36px; }
  .chrome .ctas .tel span { display: none; }
  .chrome .ctas .tel { padding: 12px; }
  .trust p { font-size: 0.7rem; }
  .btn { padding: 14px 22px 15px; }
  .ocard { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .bars i, .head .rule { transform: none; transition: none; }
  .hero.load .rise, .ihero.load .rise { opacity: 1; transform: none; }
  .ihero .rail .dot { animation: none; }
  .btn, .svc, .person, .ocard img, .ocard::before, .chip { transition: none; }
}
@media print {
  .chrome, .el-menu, .foot, .wave-host, .read-progress, .btn-row { display: none !important; }
  .panel { margin: 0; border-radius: 0; }
  body { color: #000; }
}

/* ============================================================
   YOUR TINNITUS VISIT — wizard surface (after site.css)
   Big type, one thing per screen, 65+ readable. Presenter mode
   flips the grid: education large, answers in a side panel.
   ============================================================ */
body { background: var(--ice); }
.wz-bar { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 12px var(--px); background: rgb(255 255 255 / 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.wz-bar .brand img { height: 40px; width: auto; }
.wz-rail { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; }
.wz-rail li { flex: 1; max-width: 42px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.wz-rail li i { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-glide); }
.wz-rail li.done i { transform: scaleX(1); }
.wz-rail li.on i { transform: scaleX(0.5); }
.wz-rail li.on { box-shadow: 0 0 0 2px rgb(6 171 239 / 0.35); }
.wz-bar-ctas { display: flex; gap: 14px; align-items: center; }
.wz-link { background: none; border: 0; padding: 4px 2px; color: var(--steel-ink); font: inherit; font-weight: var(--weight-medium); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wz-link[aria-pressed="true"] { color: var(--accent-ink); }
.wz { max-width: 1180px; margin: 0 auto; padding: 32px var(--px) 140px; }
.wz-step { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.wz-step.in-right { animation: wz-in-r 500ms var(--ease-glide); }
.wz-step.in-left { animation: wz-in-l 500ms var(--ease-glide); }
@keyframes wz-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes wz-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.wz-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.wz-copy { font-size: 1.12rem; line-height: 1.65; }
.wz-copy p { max-width: 64ch; }
.wz-copy h1, .wz-copy h2 { font-size: var(--text-2xl); margin-bottom: 18px; }
.wz-copy h3 { font-size: var(--text-xl); margin-top: 28px; }
.wz-copy h4 { font-size: var(--text-lg); margin-top: 20px; }
.wz-copy .lede { font-size: 1.25rem; color: var(--navy); font-weight: var(--weight-medium); }
.wz-quote { font-size: 1.3rem; font-weight: var(--weight-medium); color: var(--accent-ink); border-left: 4px solid var(--aqua); padding-left: 16px; }
.wz-callout { background: var(--ice); border-radius: 14px; padding: 16px 20px; font-weight: var(--weight-medium); color: var(--navy); }
.wz-side { display: grid; gap: 20px; position: sticky; top: 90px; }
.wz-fig { margin: 0; }
.wz-fig img { border-radius: 16px; width: 100%; height: auto; }
.wz-fig figcaption { font-size: 0.85rem; color: var(--text-2); margin-top: 8px; }
.wz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.wz-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1rem; }
.wz-steps li span { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: var(--weight-medium); }
.wz-ear { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.wz-ear button { font: inherit; font-weight: var(--weight-medium); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.wz-ear button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.wz-ear-panels p { min-height: 8em; }
.wz-lights { margin-top: 20px; }
.wz-lights .btn .off, .wz-room .off { display: none; }
.wz-lights .btn[aria-pressed="false"] .on { display: none; } .wz-lights .btn[aria-pressed="false"] .off { display: inline; }
.wz-room { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: radial-gradient(70% 60% at 50% 45%, #fff7dc, #f2e6c6 60%, #e9dcbf); transition: background-color 700ms var(--ease-glide); display: grid; align-items: end; padding: 16px; }
.wz-room::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(18 50 74 / 0.06)); transition: opacity 700ms var(--ease-glide); }
.wz-room.dark { background: radial-gradient(45% 40% at 50% 45%, #3a2a10, #0b0f16 70%); }
.wz-room .flame { position: absolute; left: 50%; top: 42%; width: 22px; height: 44px; margin-left: -11px; }
.wz-room .flame i { position: absolute; inset: 0; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; background: radial-gradient(50% 60% at 50% 70%, #fff3b0, #ffb347 55%, #ff7a1a 80%, transparent 82%); filter: blur(0.4px); animation: flicker 1.4s ease-in-out infinite alternate; box-shadow: 0 0 24px 6px rgb(255 179 71 / 0.35); }
.wz-room.dark .flame i { box-shadow: 0 0 60px 18px rgb(255 179 71 / 0.55), 0 0 140px 50px rgb(255 140 40 / 0.25); }
@keyframes flicker { from { transform: scaleY(1) skewX(-2deg); } to { transform: scaleY(1.08) skewX(3deg); } }
.wz-room .wave-host { position: absolute; left: 0; right: 0; bottom: 30px; height: 90px; }
.wz-room-label { position: relative; margin: 0; font-size: 0.85rem; font-weight: var(--weight-medium); color: var(--navy); }
.wz-room.dark .wz-room-label { color: #fff; }
.wz-room.dark .on { display: none; } .wz-room.dark .off { display: inline; }
.wz-copy .acc { margin: 16px 0 24px; }
.wz-copy .checks { font-size: 1.05rem; }
/* questions */
.wz-qhead { max-width: 64ch; margin-bottom: 28px; }
.wz-qhead h2 { font-size: var(--text-2xl); margin-bottom: 12px; }
.wz-qhead .lede { font-size: 1.15rem; }
.wz-fields { display: grid; gap: 22px; max-width: 760px; }
.wz-field { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.wz-field:focus-within { border-color: var(--sky); box-shadow: var(--focus-ring); }
.wz-field.err { border-color: #b3261e; }
.wz-field label, .wz-field legend { display: block; font-size: 1.15rem; font-weight: var(--weight-medium); color: var(--navy); margin-bottom: 12px; padding: 0; }
.wz-field fieldset { border: 0; padding: 0; margin: 0; }
.wz-field input[type=text], .wz-field input[type=tel], .wz-field input[type=email], .wz-field input[type=date], .wz-field textarea { width: 100%; font: inherit; font-size: 1.1rem; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ice); color: var(--navy); }
.wz-field textarea { min-height: 120px; resize: vertical; }
.wz-field .req { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); font-weight: var(--weight-medium); margin-left: 8px; vertical-align: middle; }
.wz-err { margin: 10px 0 0; color: #b3261e; font-weight: var(--weight-medium); font-size: 0.95rem; }
.wz-err:empty { display: none; }
.wz-opts { display: grid; gap: 10px; }
.wz-opts label { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 1.05rem; transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); min-height: 48px; }
.wz-opts input { width: 22px; height: 22px; margin: 0; accent-color: var(--steel); flex: none; }
.wz-opts label:has(input:checked) { background: var(--ice); border-color: var(--steel); }
.wz-opts label:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }
.wz-opts--ysn { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wz-opts--ysn label { justify-content: center; }
.wz-scale { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; }
.wz-scale input[type=range] { width: 100%; accent-color: var(--steel); height: 32px; }
.wz-scale output { min-width: 2.2em; text-align: center; font-size: 1.4rem; font-weight: var(--weight-medium); color: var(--navy); background: var(--ice); border-radius: 10px; padding: 4px 8px; }
.wz-scale.untouched output { color: var(--text-2); }
.wz-scale .lo, .wz-scale .hi { font-size: 0.8rem; color: var(--text-2); max-width: 9ch; }
.wz-consent { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; cursor: pointer; }
.wz-consent input { width: 24px; height: 24px; margin-top: 3px; accent-color: var(--steel); flex: none; }
.wz-field[data-q="consent"] label { margin: 0; font-weight: 400; }
/* nav */
.wz-nav { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; display: flex; gap: 12px; align-items: center; background: rgb(255 255 255 / 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 999px; padding: 10px; box-shadow: var(--shadow-lift); max-width: calc(100vw - 24px); }
.wz-nav .btn { padding: 13px 22px 14px; }
.wz-count { font-size: 0.85rem; color: var(--text-2); font-weight: var(--weight-medium); min-width: 4.5em; text-align: center; }
/* summary */
.wz-sum-top { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin-bottom: 28px; }
.wz-score { background: var(--navy-deep); color: #fff; border-radius: 16px; padding: 24px; display: grid; gap: 4px; align-content: center; text-align: center; }
.wz-score b { font-size: 3.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wz-score span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.wz-score em { font-style: normal; font-weight: var(--weight-medium); color: var(--aqua); }
.wz-flags { background: #fff7ed; border: 1px solid #fcd9b6; border-radius: 16px; padding: 20px 24px; }
.wz-flags h4 { margin: 0 0 8px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9a4a00; }
.wz-flags ul { margin: 0; padding-left: 1.2em; } .wz-flags li { margin: 4px 0; }
.wz-sum-group { border-top: 1px solid var(--line); padding: 20px 0; }
.wz-sum-group h4 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-size: 1.05rem; }
.wz-sum-group dl { display: grid; gap: 10px; margin: 0; }
.wz-sum-group dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.95rem; }
.wz-sum-group dt { color: var(--text-2); } .wz-sum-group dd { margin: 0; font-weight: var(--weight-medium); color: var(--navy); }
.wz-send { margin-top: 28px; display: grid; gap: 12px; }
.wz-done { margin-top: 20px; background: var(--ice); border-radius: 16px; padding: 28px; }
.wz-noscript { max-width: 60ch; margin: 40px auto; padding: 24px; background: #fff; border-radius: 16px; font-size: 1.1rem; }
/* presenter mode */
.wz-present-panel { position: fixed; right: 16px; top: 88px; bottom: 16px; width: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-lift); z-index: 40; font-size: 0.9rem; }
.wz-present-panel h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-ink); margin: 0 0 12px; }
.wz-present-panel h4 { font-size: 0.9rem; margin: 16px 0 6px; }
.wz-present-panel dl { margin: 0; display: grid; gap: 6px; } .wz-present-panel dt { color: var(--text-2); font-size: 0.8rem; } .wz-present-panel dd { margin: 0 0 4px; font-weight: var(--weight-medium); }
.wz-pres-score { background: var(--navy-deep); color: #fff; border-radius: 10px; padding: 10px 12px; }
.wz-pres-flags { background: #fff7ed; border-radius: 10px; padding: 10px 12px; color: #9a4a00; font-weight: var(--weight-medium); }
body.present .wz { max-width: none; padding-right: 360px; }
body.present .wz-copy { font-size: 1.35rem; }
body.present .wz-copy h1, body.present .wz-copy h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
body.present .wz-q .wz-fields { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.present .wz-field { font-size: 0.95rem; }
@media (max-width: 1100px) { body.present .wz { padding-right: var(--px); } .wz-present-panel { position: static; width: auto; margin: 0 0 20px; max-height: 40vh; } }
@media (max-width: 860px) {
  .wz-grid, .wz-sum-top, .wz-sum-group dl div { grid-template-columns: 1fr; }
  .wz-side { position: static; }
  .wz-bar { grid-template-columns: auto 1fr auto; gap: 12px; padding: 10px 16px; }
  .wz-rail li { max-width: none; }
  .wz-bar .brand img { height: 32px; }
  .wz { padding: 16px 12px 140px; }
  .wz-step { padding: 22px 18px; }
  .wz-copy { font-size: 1.05rem; }
  .wz-opts--ysn { grid-template-columns: 1fr; }
  .wz-scale { grid-template-columns: 1fr auto; } .wz-scale .lo, .wz-scale .hi { display: none; }
  body.present .wz-q .wz-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .wz-step.in-right, .wz-step.in-left { animation: none; } .wz-room .flame i { animation: none; } .wz-rail li i { transition: none; } }
@media print {
  body { background: #fff; }
  .wz-bar, .wz-nav, .wz-present-panel, .wz-send, .wz-noscript { display: none !important; }
  .wz { padding: 0; max-width: none; }
  .wz-step[hidden] { display: none; }
  .wz-step { box-shadow: none; border: 0; padding: 0; }
  .wz-sum-group { break-inside: avoid; }
}
