@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/bigshoulders-400.woff2) format('woff2');}
@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/bigshoulders-700.woff2) format('woff2');}
@font-face{font-family:'Mulish';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/mulish-300.woff2) format('woff2');}
@font-face{font-family:'Mulish';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/mulish-400.woff2) format('woff2');}
@font-face{font-family:'Mulish';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/mulish-600.woff2) format('woff2');}
@font-face{font-family:'Mulish';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/mulish-700.woff2) format('woff2');}

/* ============================================================
   IN ONE ACCORD — Design System
   Built from IOA_Logo-Style Guide.pdf
   Blue 634c #005F7F · Green 327c #00998A · Cool Gray 7c #98999B · Gold 872c #85754E
   Display: Abraham (logo only, vectorized) → Big Shoulders Display
   Support: Avenir Next → Mulish
   ============================================================ */

@layer tokens, base, layout, components, pages, utilities;

@layer tokens {
  :root {
    /* --- Brand core --- */
    --blue-634:   #005F7F;
    --green-327:  #00998A;
    --gray-7c:    #98999B;
    --gold-872:   #85754E;

    /* --- Extended ramp (derived, brand-true) --- */
    --ink-900:    #021620;
    --ink-850:    #04222E;
    --ink-800:    #062C3A;
    --ink-700:    #0A3B4B;
    --ink-600:    #0E4C5E;

    --teal-500:   #00998A;
    --teal-deep:  #007D6E;   /* AA-safe with white text */
    --teal-400:   #17B3A2;
    --teal-300:   #4ACFBE;
    --teal-200:   #9AE7DC;

    --gold-500:   #85754E;
    --gold-400:   #B79A62;
    --gold-300:   #D9BC80;
    --gold-200:   #EBD9AE;

    /* --- Semantic --- */
    --bg:            var(--ink-850);
    --bg-elev:       #072935;
    --surface:       color-mix(in oklab, #FFFFFF 5%, transparent);
    --surface-hi:    color-mix(in oklab, #FFFFFF 8%, transparent);
    --line:          color-mix(in oklab, #FFFFFF 13%, transparent);
    --line-soft:     color-mix(in oklab, #FFFFFF 8%, transparent);
    --text:          #EAF4F5;
    --text-muted:    #A9C3C9;
    --text-dim:      #7F9DA6;
    --accent:        var(--teal-300);
    --accent-warm:   var(--gold-300);

    /* light sections */
    --paper:         #F5F7F7;
    --paper-2:       #E7EDEE;
    --paper-text:    #082430;
    --paper-muted:   #47646E;
    --paper-line:    #CBD8DA;

    /* --- Type scale (fluid) --- */
    --font-display: "Big Shoulders Display", "Oswald", "Haettenschweiler", "Arial Narrow", sans-serif;
    --font-body: "Avenir Next", "Avenir", "Mulish", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --fs-display: clamp(2.85rem, 1.4rem + 5.6vw, 6.25rem);
    --fs-h1:      clamp(2.4rem, 1.5rem + 3.6vw, 4.75rem);
    --fs-h2:      clamp(2rem, 1.3rem + 2.9vw, 3.75rem);
    --fs-h3:      clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
    --fs-lead:    clamp(1.075rem, 0.98rem + 0.5vw, 1.375rem);
    --fs-body:    clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
    --fs-sm:      0.9375rem;
    --fs-xs:      0.8125rem;

    /* --- Space --- */
    --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
    --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
    --sp-9: 6rem;    --sp-10: 8rem;
    --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
    --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
    --measure: 68ch;
    --maxw: 1280px;

    /* --- Shape & depth --- */
    --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .28), 0 6px 18px -8px rgb(0 0 0 / .5);
    --shadow-2: 0 24px 60px -24px rgb(0 0 0 / .65), 0 2px 6px rgb(0 0 0 / .3);
    --ring: 0 0 0 2px var(--ink-850), 0 0 0 4.5px var(--teal-300);

    --ease: cubic-bezier(.22,.61,.36,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
    --dur: 320ms;
    --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  }
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-block-start: 6.5rem;
    tab-size: 4;
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: .01ms !important; animation-iteration-count: 1 !important;
      transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
  }

  body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100svh;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: .92;
    letter-spacing: .005em;
    text-wrap: balance;
    text-transform: uppercase;
  }
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); line-height: 1; }

  p { text-wrap: pretty; }
  p + p { margin-block-start: 1em; }

  a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: .22em; }
  a:hover { text-decoration-color: currentColor; }

  img, svg { display: block; max-width: 100%; }
  svg { fill: currentColor; }

  button, input, textarea, select { font: inherit; color: inherit; }

  :focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
  #main:focus, #main:focus-visible { box-shadow: none; outline: none; }

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

  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--ink-900); }
  ::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 99px; border: 3px solid var(--ink-900); }
  ::-webkit-scrollbar-thumb:hover { background: var(--blue-634); }
}

@layer layout {
  .wrap { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
  .wrap-narrow { width: min(100% - (var(--gutter) * 2), 900px); margin-inline: auto; }
  .section { padding-block: var(--section-y); position: relative; }
  .stack > * + * { margin-block-start: var(--sp-5); }
  .grid { display: grid; gap: var(--sp-5); }
  @media (min-width: 720px)  { .g-2 { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 900px)  { .g-3 { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 900px)  { .g-4 { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1120px) { .g-4 { grid-template-columns: repeat(4, 1fr); } }
  .skip {
    position: absolute; inset-inline-start: var(--sp-4); inset-block-start: var(--sp-4);
    transform: translateY(-160%); z-index: 200;
    background: var(--teal-300); color: var(--ink-900); font-weight: 700;
    padding: .7rem 1.1rem; border-radius: var(--r-sm); transition: transform var(--dur) var(--ease);
  }
  .skip:focus { transform: translateY(0); }
}

/* ===================== COMPONENTS ===================== */
@layer components {

  /* --- Wave field background --- */
  /* Wave field: rendered at a fixed intrinsic size and centre-cropped, so line
     weight and rhythm stay identical in every container regardless of its shape. */
  .waves {
    --wave-w: 1900px; --wave-h: 1070px;
    position: absolute; inset: 0; overflow: hidden;
    pointer-events: none; color: var(--teal-200);
    opacity: .34; mask-image: linear-gradient(to bottom, #000 0 58%, transparent 100%);
  }
  .waves svg {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%;
    width: max(var(--wave-w), 105%);
    height: max(var(--wave-h), 105%);
    /* CSS beats presentation attributes, so restate stroke-only rendering here */
    fill: none; stroke: currentColor; stroke-width: 1px; vector-effect: non-scaling-stroke;
  }
  .waves svg * { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; }
  .waves--soft { opacity: .16; }
  .waves--footer { opacity: .22; mask-image: linear-gradient(to top, #000 0 55%, transparent 100%); }
  .waves--sm { --wave-w: 900px; --wave-h: 506px; }

  .grain {
    position: absolute; inset: 0; pointer-events: none; opacity: .30; mix-blend-mode: overlay;
    background-image: var(--grain-url); background-size: 240px;
  }

  /* --- Logos --- */
  .logo-mark { width: auto; }
  .logo-lockup { display: inline-flex; align-items: center; gap: .58em; color: currentColor; }
  .logo-lockup .m { height: 1em; width: auto; }
  .logo-lockup .w { height: .255em; width: auto; }
  .logo-vert { display: inline-flex; flex-direction: column; align-items: center; gap: .30em; }
  .logo-vert .m { height: 1em; }
  .logo-vert .w { height: .265em; }

  /* --- Header --- */
  .site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in oklab, var(--ink-900) 72%, transparent);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-block-end: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .site-header[data-stuck="true"] { border-block-end-color: var(--line-soft); background: color-mix(in oklab, var(--ink-900) 90%, transparent); }
  .header-inner { display: flex; align-items: center; gap: var(--sp-5); min-height: 76px; }
  .brand { font-size: 44px; flex: 0 0 auto; text-decoration: none; }
  .brand:hover { color: var(--teal-200); }

  .nav { margin-inline-start: auto; display: none; align-items: center; gap: .15rem; }
  @media (min-width: 1040px) { .nav { display: flex; } .nav-toggle { display: none; } }
  .nav a {
    position: relative; text-decoration: none; padding: .55rem .85rem; border-radius: var(--r-sm);
    font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em; color: var(--text-muted);
    transition: color 200ms var(--ease), background 200ms var(--ease);
    white-space: nowrap;
  }
  .nav a:hover { color: var(--text); background: var(--surface); }
  .nav a[aria-current="page"] { color: var(--text); }
  .nav a[aria-current="page"]::after {
    content: ""; position: absolute; inset-inline: .85rem; bottom: .18rem; height: 2px;
    background: linear-gradient(90deg, var(--teal-300), var(--gold-300)); border-radius: 2px;
  }

  .nav-toggle {
    margin-inline-start: auto; display: grid; place-items: center; width: 46px; height: 46px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform var(--dur) var(--ease), opacity 160ms; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur) var(--ease); }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(-90deg); }
  .nav-toggle[aria-expanded="true"] span::after { opacity: 0; }

  @media (min-width: 1040px) { .nav-toggle { display: none; } }

  .mobile-nav {
    display: grid; gap: .25rem; padding: var(--sp-4) 0 var(--sp-6);
    border-block-start: 1px solid var(--line-soft);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a {
    text-decoration: none; padding: .85rem .25rem; font-family: var(--font-display);
    text-transform: uppercase; font-size: 1.6rem; letter-spacing: .02em; color: var(--text-muted);
    border-block-end: 1px solid var(--line-soft);
  }
  .mobile-nav a[aria-current="page"] { color: var(--teal-300); }
  @media (min-width: 1040px) { .mobile-nav { display: none !important; } }

  /* --- Buttons --- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    font-weight: 700; font-size: var(--fs-sm); letter-spacing: .02em;
    padding: .95rem 1.6rem; border-radius: var(--r-pill); border: 1px solid transparent;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .btn svg { width: 1em; height: 1em; flex: 0 0 auto; transition: transform 250ms var(--ease-out); }
  .btn:hover svg { transform: translateX(3px); }

  .btn--primary { background: linear-gradient(135deg, var(--teal-deep), var(--blue-634) 92%); color: #fff; box-shadow: var(--shadow-1); }
  .btn--primary:hover { box-shadow: 0 12px 32px -10px color-mix(in oklab, var(--teal-400) 70%, transparent); }
  .btn--gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-400)); color: #1B1608; }
  .btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
  .btn--ghost:hover { border-color: var(--teal-300); color: var(--teal-200); }
  .btn--outline-gold { border-color: color-mix(in oklab, var(--gold-300) 55%, transparent); color: var(--gold-300); }
  .btn--outline-gold:hover { background: color-mix(in oklab, var(--gold-300) 12%, transparent); border-color: var(--gold-300); }
  .btn--sm { padding: .6rem 1.1rem; font-size: var(--fs-xs); }
  .btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

  /* --- Eyebrow / rules --- */
  .eyebrow {
    display: inline-flex; align-items: flex-start; gap: .7em;
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent-warm); margin-block-end: var(--sp-4);
  }
  .eyebrow::before { content: ""; flex: 0 0 2rem; height: 1px; margin-block-start: .82em; background: currentColor; opacity: .7; }
  .eyebrow--center::after { content: ""; flex: 0 0 2rem; height: 1px; margin-block-start: .82em; background: currentColor; opacity: .7; }

  .lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); max-width: var(--measure); font-weight: 300; }
  .paper .lead { color: var(--paper-muted); }

  /* --- Cards --- */
  .card {
    position: relative; padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    overflow: hidden; container-type: inline-size;
  }
  .card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 100% at 0% 0%, color-mix(in oklab, var(--teal-300) 14%, transparent), transparent 55%);
    opacity: 0; transition: opacity var(--dur) var(--ease);
  }
  .card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--teal-300) 38%, transparent); }
  .card:hover::after { opacity: 1; }
  .card > * { position: relative; z-index: 1; }
  .card h3 { margin-block-end: .6rem; }
  .card p { color: var(--text-muted); font-size: var(--fs-sm); }

  .card-num {
    font-family: var(--font-display); font-size: 2.5rem; line-height: 1; margin-block-end: .35rem;
    color: transparent; -webkit-background-clip: text; background-clip: text;
    background-image: linear-gradient(160deg, var(--teal-300), var(--gold-300));
  }
  .card-icon {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-md);
    background: linear-gradient(140deg, color-mix(in oklab, var(--teal-400) 26%, transparent), color-mix(in oklab, var(--blue-634) 40%, transparent));
    border: 1px solid color-mix(in oklab, var(--teal-300) 30%, transparent);
    color: var(--teal-200); margin-block-end: var(--sp-4);
  }
  .card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

  /* --- Stat band --- */
  .stats { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
  .stat { background: var(--bg-elev); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); text-align: center; }
  .stat dt { font-family: var(--font-display); font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1; color: var(--teal-300); text-transform: uppercase; }
  .stat dd { margin: .5rem 0 0; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }

  /* --- Split feature --- */
  .split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
  @media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.15fr .85fr; } }
  .split--flip > :first-child { order: 2; }
  @media (max-width: 939px) { .split--flip > :first-child { order: 0; } }

  /* --- Device / offline visual --- */
  .device {
    position: relative; aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden;
    background: radial-gradient(120% 120% at 20% 0%, var(--ink-600), var(--ink-900));
    border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; place-items: center;
  }
  .device .waves { opacity: .42; mask-image: none; --wave-w: 820px; --wave-h: 462px; }
  .device .device-mark { position: relative; z-index: 2; width: 46%; color: #fff; opacity: .96; filter: drop-shadow(0 10px 30px rgb(0 0 0 / .5)); }
  .device .orbit {
    position: absolute; inset: 8%; border: 1px dashed color-mix(in oklab, var(--teal-200) 30%, transparent);
    border-radius: 50%; animation: spin 60s linear infinite;
  }
  .device .orbit:nth-of-type(2) { inset: 18%; animation-duration: 42s; animation-direction: reverse; border-style: solid; border-color: color-mix(in oklab, var(--gold-300) 22%, transparent); }
  @keyframes spin { to { transform: rotate(360deg); } }
  .pill-float {
    position: absolute; z-index: 3; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .5rem .9rem; border-radius: var(--r-pill);
    background: color-mix(in oklab, var(--ink-900) 78%, transparent); border: 1px solid var(--line);
    backdrop-filter: blur(8px); color: var(--teal-200); box-shadow: var(--shadow-1);
  }

  /* --- Timeline --- */
  .timeline { position: relative; display: grid; gap: var(--sp-6); padding-inline-start: 2.25rem; }
  .timeline::before { content: ""; position: absolute; inset-block: .6rem; inset-inline-start: .48rem; width: 2px; background: linear-gradient(180deg, var(--teal-300), var(--blue-634) 60%, transparent); border-radius: 2px; }
  .tl-item { position: relative; }
  .tl-item::before {
    content: ""; position: absolute; inset-inline-start: -2.25rem; top: .55rem; width: 13px; height: 13px;
    border-radius: 50%; background: var(--ink-850); border: 2px solid var(--teal-300); box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal-300) 14%, transparent);
  }
  .tl-item[data-accent="gold"]::before { border-color: var(--gold-300); box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold-300) 16%, transparent); }
  .tl-year { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--gold-300); text-transform: uppercase; line-height: 1; margin-block-end: .3rem; letter-spacing: .03em; }
  .tl-item h3 { font-size: 1.35rem; margin-block-end: .4rem; }
  .tl-item p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 62ch; }

  /* --- Paper (light) sections --- */
  .paper { background: var(--paper); color: var(--paper-text); }
  .paper h1, .paper h2, .paper h3 { color: var(--ink-900); }
  .paper .eyebrow { color: var(--blue-634); }
  .paper .card { background: #fff; border-color: var(--paper-line); backdrop-filter: none; }
  .paper .card p { color: var(--paper-muted); }
  .paper .card:hover { border-color: var(--green-327); }
  .paper .card-icon { background: linear-gradient(140deg, color-mix(in oklab, var(--green-327) 16%, #fff), color-mix(in oklab, var(--blue-634) 12%, #fff)); border-color: color-mix(in oklab, var(--blue-634) 22%, transparent); color: var(--blue-634); }
  .paper .card-num { background-image: linear-gradient(160deg, var(--green-327), var(--blue-634)); }

  /* --- Accordion --- */
  .faq { border-block-start: 1px solid var(--line-soft); }
  .paper .faq { border-color: var(--paper-line); }
  .faq details { border-block-end: 1px solid var(--line-soft); }
  .paper .faq details { border-color: var(--paper-line); }
  .faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
    padding: 1.25rem 0; cursor: pointer; list-style: none;
    font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; line-height: 1.1;
    transition: color 200ms var(--ease);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary:hover { color: var(--green-327); }
  .faq summary .chev { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; transition: transform var(--dur) var(--ease); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .faq details[open] summary .chev { transform: rotate(180deg); }
  .faq details > div { padding-block-end: 1.35rem; max-width: var(--measure); color: var(--paper-muted); }
  .faq details[open] > div { animation: reveal 380ms var(--ease-out) both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }

  /* --- Partner strip --- */
  .partners { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); align-items: center; justify-content: center; }
  .partner {
    font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1rem, .85rem + .55vw, 1.45rem);
    letter-spacing: .04em; color: var(--text-dim); padding: .55rem 1.15rem; border: 1px solid var(--line-soft);
    border-radius: var(--r-pill); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .partner:hover { color: var(--teal-200); border-color: color-mix(in oklab, var(--teal-300) 40%, transparent); }

  /* --- Forms --- */
  .field { display: grid; gap: .45rem; }
  .field label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
  .field .req { color: var(--gold-300); }
  .field input, .field textarea, .field select {
    width: 100%; padding: .9rem 1.05rem; border-radius: var(--r-md);
    background: color-mix(in oklab, var(--ink-900) 55%, transparent);
    border: 1px solid var(--line); color: var(--text);
    transition: border-color 200ms var(--ease), background 200ms var(--ease);
  }
  .field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--text-dim) 80%, transparent); }
  .field input:hover, .field textarea:hover, .field select:hover { border-color: color-mix(in oklab, var(--teal-300) 35%, transparent); }
  .field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--teal-300); }
  .field textarea { min-height: 9rem; resize: vertical; }
  .form-note { font-size: var(--fs-xs); color: var(--text-dim); }
  .paper .field label, .paper .form-note { color: var(--paper-muted); }
  .paper .form-status { color: var(--paper-text); border-color: color-mix(in oklab, var(--green-327) 45%, transparent); background: color-mix(in oklab, var(--green-327) 10%, #fff); }
  .form-status { padding: 1rem 1.15rem; border-radius: var(--r-md); border: 1px solid color-mix(in oklab, var(--teal-300) 40%, transparent); background: color-mix(in oklab, var(--teal-400) 12%, transparent); font-size: var(--fs-sm); }
  .form-status[hidden] { display: none; }

  /* --- Event & media cards --- */
  .item {
    display: grid; gap: var(--sp-4); align-items: start;
    padding: clamp(1.25rem, 1rem + 1.2vw, 1.85rem); border: 1px solid var(--line-soft);
    border-radius: var(--r-lg); background: var(--surface);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .item:hover { border-color: color-mix(in oklab, var(--teal-300) 34%, transparent); transform: translateY(-3px); }
  @media (min-width: 760px) { .item { grid-template-columns: 7.5rem 1fr auto; align-items: center; } }
  .datechip {
    display: grid; place-items: center; padding: .75rem; border-radius: var(--r-md); text-align: center;
    background: linear-gradient(150deg, color-mix(in oklab, var(--blue-634) 60%, transparent), color-mix(in oklab, var(--teal-deep) 34%, transparent));
    border: 1px solid var(--line);
  }
  .datechip .m { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-200); font-weight: 700; }
  .datechip .d { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: #fff; }
  .datechip .y { font-size: var(--fs-xs); color: var(--text-dim); letter-spacing: .08em; }
  .item h3 { font-size: 1.4rem; margin-block-end: .3rem; }
  .item p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 60ch; }
  .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-block-start: .55rem; font-size: var(--fs-xs); color: var(--text-dim); letter-spacing: .04em; }
  .meta span { display: inline-flex; align-items: center; gap: .4em; }
  .meta svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; }

  .tag {
    display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: var(--r-pill); border: 1px solid color-mix(in oklab, var(--teal-300) 32%, transparent);
    color: var(--teal-200); background: color-mix(in oklab, var(--teal-400) 10%, transparent);
  }
  .tag--gold { border-color: color-mix(in oklab, var(--gold-300) 42%, transparent); color: var(--gold-300); background: color-mix(in oklab, var(--gold-400) 10%, transparent); }
  .tag--muted { border-color: var(--line); color: var(--text-dim); background: transparent; }

  .media-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
  .media-thumb {
    aspect-ratio: 16/9; position: relative; overflow: hidden;
    background: radial-gradient(110% 120% at 15% 0%, var(--ink-600), var(--ink-900));
    display: grid; place-items: center;
  }
  .media-thumb .waves { opacity: .34; mask-image: none; --wave-w: 700px; --wave-h: 394px; }
  .media-thumb .device-mark { width: 26%; color: #fff; opacity: .34; position: relative; z-index: 2; }
  .media-thumb .play {
    position: absolute; z-index: 3; width: 62px; height: 62px; border-radius: 50%;
    background: color-mix(in oklab, var(--ink-900) 62%, transparent); border: 1px solid var(--line);
    display: grid; place-items: center; backdrop-filter: blur(6px); color: #fff;
  }
  .media-thumb .play svg { width: 20px; height: 20px; margin-inline-start: 3px; }
  .media-body { padding: var(--sp-5); }

  /* --- Placeholder marker --- */
  .placeholder {
    border: 1px dashed color-mix(in oklab, var(--gold-300) 50%, transparent);
    background: color-mix(in oklab, var(--gold-400) 7%, transparent);
    border-radius: var(--r-md); padding: 1rem 1.15rem; font-size: var(--fs-xs);
    color: var(--gold-200); letter-spacing: .01em;
  }
  .paper .placeholder { color: #6B5723; background: color-mix(in oklab, var(--gold-400) 12%, #fff); }

  /* --- CTA band --- */
  .cta-band {
    position: relative; overflow: hidden; border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--blue-634), var(--teal-deep) 128%);
    padding: clamp(2.5rem, 1.5rem + 5vw, 5rem); text-align: center;
    border: 1px solid color-mix(in oklab, #fff 14%, transparent);
  }
  .cta-band > * { position: relative; z-index: 2; }
  .cta-band .waves { opacity: .40; mask-image: none; color: #fff; --wave-w: 1500px; --wave-h: 844px; }

  /* --- Footer --- */
  .site-footer { position: relative; background: var(--ink-900); overflow: hidden; }
  .footer-grid { display: grid; gap: var(--sp-7); padding-block: var(--sp-8) var(--sp-6); position: relative; z-index: 2; }
  @media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
  .site-footer h4 { font-size: 1.05rem; letter-spacing: .12em; color: var(--text-dim); margin-block-end: var(--sp-4); }
  .site-footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
  .site-footer a { text-decoration: none; color: var(--text-muted); font-size: var(--fs-sm); transition: color 200ms var(--ease); }
  .site-footer a:hover { color: var(--teal-200); }
  .footer-bottom {
    position: relative; z-index: 2; border-block-start: 1px solid var(--line-soft);
    padding-block: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
    justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--text-dim);
  }

  /* --- Reveal on scroll --- */
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
}

/* ===================== PAGES ===================== */
@layer pages {
  .page[hidden] { display: none; }

  .hero {
    position: relative; overflow: hidden; isolation: isolate;
    background:
      radial-gradient(120% 90% at 78% 8%, color-mix(in oklab, var(--green-327) 46%, transparent), transparent 62%),
      radial-gradient(110% 100% at 8% 100%, color-mix(in oklab, var(--blue-634) 62%, transparent), transparent 66%),
      linear-gradient(168deg, var(--ink-700), var(--ink-850) 58%, var(--ink-900));
    padding-block: clamp(4rem, 2rem + 9vw, 8.5rem) clamp(4rem, 2rem + 7vw, 7rem);
  }
  .hero::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 180px; z-index: 1;
    background: linear-gradient(to top, var(--bg), transparent); pointer-events: none;
  }
  .hero > .wrap { position: relative; z-index: 2; }

  .hero-home { min-height: min(88svh, 860px); display: grid; align-items: center; }
  /* legibility scrim so wave linework never fights the headline */
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, color-mix(in oklab, var(--ink-900) 62%, transparent), transparent 58%);
  }
  .hero-title { font-size: var(--fs-display); line-height: .86; }
  .hero-title .gr {
    background: linear-gradient(100deg, var(--teal-200) 5%, var(--gold-300) 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero-grid { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: center; }
  @media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.35fr .65fr; } }
  .hero-emblem { display: grid; place-items: center; }
  .hero-emblem .halo {
    position: relative; display: grid; place-items: center; width: min(100%, 380px); aspect-ratio: 1;
  }
  .hero-emblem .halo::before {
    content: ""; position: absolute; inset: -8%; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in oklab, var(--teal-300) 24%, transparent), transparent 62%);
    filter: blur(14px);
  }
  .hero-emblem svg { position: relative; z-index: 2; width: 78%; color: #fff; filter: drop-shadow(0 18px 44px rgb(0 0 0 / .45)); }
  .hero-emblem .ring { position: absolute; inset: 2%; border-radius: 50%; border: 1px solid color-mix(in oklab, #fff 16%, transparent); }
  .hero-emblem .ring:nth-of-type(2) { inset: 12%; border-style: dashed; border-color: color-mix(in oklab, var(--gold-300) 26%, transparent); animation: spin 90s linear infinite; }

  .hero-page { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
  .hero-page .lead { margin-block-start: var(--sp-5); }
  .crumbs { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-block-end: var(--sp-4); }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { color: var(--teal-200); }

  .values { display: grid; gap: var(--sp-5); }
  @media (min-width: 780px) { .values { grid-template-columns: repeat(2, 1fr); } }
  .value { padding-inline-start: 1.25rem; border-inline-start: 2px solid color-mix(in oklab, var(--teal-300) 45%, transparent); }
  .value h3 { font-size: 1.25rem; margin-block-end: .35rem; }
  .value p { font-size: var(--fs-sm); color: var(--text-muted); }
  .paper .value p { color: var(--paper-muted); }
  .paper .value { border-color: var(--green-327); }

  .quote { position: relative; padding-inline-start: clamp(1.5rem, 1rem + 2vw, 3rem); }
  .quote::before {
    content: "\201C"; position: absolute; inset-inline-start: -.1em; top: -.25em;
    font-family: var(--font-display); font-size: 7rem; line-height: 1; color: color-mix(in oklab, var(--gold-300) 42%, transparent);
  }
  .quote blockquote { font-size: var(--fs-lead); line-height: 1.5; font-weight: 300; font-style: italic; max-width: 56ch; }
  .quote figcaption { margin-block-start: var(--sp-4); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }

  .checklist { list-style: none; padding: 0; display: grid; gap: .85rem; }
  .checklist li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .8rem; align-items: start; font-size: var(--fs-sm); color: var(--text-muted); }
  .paper .checklist li { color: var(--paper-muted); }
  .checklist svg { width: 1.5rem; height: 1.5rem; margin-block-start: .1rem; fill: none; stroke: var(--green-327); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .paper .checklist svg { stroke: var(--blue-634); }
}

@layer utilities {
  .center { text-align: center; }
  .center .lead, .center .eyebrow, .lead.center, .eyebrow.center { margin-inline: auto; }
  .center .eyebrow::after { content: ""; flex: 0 0 2rem; height: 1px; margin-block-start: .82em; background: currentColor; opacity: .7; }
  .mt-4 { margin-block-start: var(--sp-4); }
  .mt-5 { margin-block-start: var(--sp-5); }
  .mt-6 { margin-block-start: var(--sp-6); }
  .mt-7 { margin-block-start: var(--sp-7); }
  .mt-8 { margin-block-start: var(--sp-8); }
  .vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .nowrap { white-space: nowrap; }
}

/* ============================================================
   SIGNAL DIAL — homepage hero demo
   Lets a visitor drag the connection from Wi-Fi down to offline
   and watch the same lesson keep working on a phone.
   ============================================================ */
@layer components {

  .signal {
    display: grid; position: relative; justify-content: center; align-items: stretch;
    grid-template-columns: minmax(200px, 270px) auto; grid-template-areas: "phone fader" "dial dial";
    gap: 1.25rem 1.5rem;
  }
  .signal .phone { grid-area: phone; }
  .signal .fader { grid-area: fader; }
  .signal .dial { grid-area: dial; justify-self: center; }
  .signal::before {
    content: ""; position: absolute; inset: 0 20% 30% 0; border-radius: 50%; z-index: -1;
    background: radial-gradient(circle, color-mix(in oklab, var(--teal-300) 22%, transparent), transparent 65%);
    filter: blur(18px);
  }

  /* --- phone --- */
  .phone {
    width: 100%; aspect-ratio: 9 / 17; border-radius: 42px; padding: 11px;
    background: linear-gradient(160deg, #1B3A46, #061820 60%);
    border: 1px solid color-mix(in oklab, #fff 18%, transparent);
    box-shadow: var(--shadow-2), inset 0 0 0 1px rgb(0 0 0 / .6);
    position: relative;
  }
  .phone-screen {
    height: 100%; border-radius: 32px; overflow: hidden; position: relative;
    background: linear-gradient(180deg, #0A3140, var(--ink-900));
    display: flex; flex-direction: column;
    font-size: 13px; line-height: 1.45;
  }
  .phone-bar {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: 12px 18px 6px; font-size: 11px; font-weight: 700; color: var(--text);
  }
  .phone-bar .net { display: inline-flex; align-items: center; gap: 6px; }
  .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
  .bars i { width: 3px; background: currentColor; border-radius: 1px; opacity: .25; transition: opacity 300ms var(--ease); }
  .bars i:nth-child(1) { height: 25%; } .bars i:nth-child(2) { height: 50%; }
  .bars i:nth-child(3) { height: 75%; } .bars i:nth-child(4) { height: 100%; }
  .bars i.on { opacity: 1; }
  .net-label { min-width: 2.6em; text-align: end; }

  .phone-app { flex: 1; overflow: hidden; padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
  .app-head { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
  .app-head svg { width: 18px; height: 17px; color: var(--teal-300); }
  .app-head .place { margin-inline-start: auto; color: var(--gold-300); letter-spacing: .04em; text-transform: none; font-weight: 600; }

  /* media stage: one slot, five possible renderings */
  .stage { flex: 0 0 auto; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-800); border: 1px solid var(--line-soft); }
  .stage > [data-mode] {
    position: absolute; inset: 0; display: grid; place-items: center;
    opacity: 0; transform: scale(.98); transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  }
  .stage > [data-mode].on { opacity: 1; transform: none; }

  .m-video { background:
      radial-gradient(90% 120% at 20% 10%, color-mix(in oklab, var(--green-327) 70%, transparent), transparent 60%),
      linear-gradient(140deg, var(--blue-634), var(--ink-900)); }
  .m-video .tri { width: 34%; color: #fff; opacity: .9; }
  .m-video .play { position: absolute; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .45); border: 1px solid rgb(255 255 255 / .35); }
  .m-video .play svg { width: 14px; height: 14px; margin-inline-start: 2px; fill: #fff; }
  .m-video .q { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: rgb(0 0 0 / .5); color: #fff; }
  .m-video .scrub { position: absolute; left: 10px; right: 10px; bottom: 9px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .25); overflow: hidden; }
  .m-video .scrub::after { content: ""; position: absolute; inset: 0 62% 0 0; background: var(--teal-300); }
  .m-video.sd { filter: saturate(.75) contrast(.95); }
  .m-video.sd .tri { image-rendering: pixelated; filter: blur(.6px); }

  .m-audio { background: linear-gradient(160deg, var(--ink-700), var(--ink-900)); gap: 6px; align-content: center; }
  .wave { display: flex; align-items: center; gap: 3px; height: 46px; }
  .wave i { width: 4px; border-radius: 3px; background: linear-gradient(var(--teal-300), var(--green-327)); animation: eq 1.1s var(--ease) infinite alternate; }
  .wave i:nth-child(odd) { animation-duration: .8s; } .wave i:nth-child(3n) { animation-duration: 1.4s; }
  @keyframes eq { from { height: 18%; } to { height: 100%; } }
  .m-audio small { font-size: 10px; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

  .m-text { background: #F3F1EA; color: #20302F; padding: 12px 14px; place-items: start; align-content: start; gap: 7px; display: grid; }
  .m-text .ln { height: 6px; border-radius: 3px; background: #C9CFCC; }
  .m-text .ln.s { width: 62%; } .m-text .ln.m { width: 84%; }
  .m-text .ln.h { height: 9px; width: 55%; background: var(--blue-634); margin-block-end: 3px; }
  .m-text .thumb { width: 38%; aspect-ratio: 4/3; border-radius: 4px; background: repeating-linear-gradient(45deg, #D7DEDC 0 4px, #E6EAE8 4px 8px); justify-self: end; margin-block-start: -38px; }
  .m-text.offline .thumb { display: none; }

  .lesson h4 { font-family: var(--font-body); text-transform: none; font-size: 14px; line-height: 1.25; font-weight: 700; color: var(--text); }
  .lesson p { color: var(--text-muted); font-size: 12px; margin-block-start: 3px; }

  .quiz { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px; background: var(--surface); display: grid; gap: 6px; }
  .quiz b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
  .quiz span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }
  .quiz span::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--text-dim); flex: 0 0 auto; }
  .quiz span.pick { color: var(--text); }
  .quiz span.pick::before { background: var(--teal-300); border-color: var(--teal-300); box-shadow: inset 0 0 0 2px var(--ink-900); }

  .sync {
    margin-block-start: auto; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700;
    padding: 8px 10px; border-radius: 10px; transition: background 300ms var(--ease), color 300ms var(--ease);
    background: color-mix(in oklab, var(--teal-400) 16%, transparent); color: var(--teal-200);
  }
  .sync .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
  .sync[data-state="queued"] { background: color-mix(in oklab, var(--gold-400) 18%, transparent); color: var(--gold-200); }
  .sync[data-state="queued"] .dot { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .25; } }

  /* --- vertical fader: drag the signal literally down --- */
  .fader { display: grid; grid-template-rows: auto 1fr; gap: .9rem; padding-block: .5rem; }
  .fader label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); max-width: 7.5em; line-height: 1.35; }
  .fader-track { display: grid; grid-template-columns: 34px auto; gap: .6rem; min-height: 280px; }
  .fader input[type="range"] {
    -webkit-appearance: none; appearance: none; writing-mode: vertical-lr; direction: ltr;
    width: 34px; height: 100%; background: transparent; cursor: pointer; margin: 0; --pct: 0%;
  }
  .fader input[type="range"]::-webkit-slider-runnable-track {
    width: 6px; border-radius: 6px;
    background: linear-gradient(180deg, var(--teal-300), var(--teal-300) var(--pct), var(--ink-600) var(--pct));
  }
  .fader input[type="range"]::-moz-range-track { width: 6px; border-radius: 6px; background: var(--ink-600); }
  .fader input[type="range"]::-moz-range-progress { width: 6px; border-radius: 6px; background: var(--teal-300); }
  .fader input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; margin-left: -10px;
    background: radial-gradient(circle, #fff 0 32%, var(--teal-300) 34%); border: 2px solid var(--ink-900);
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--teal-300) 25%, transparent), var(--shadow-1);
    transition: transform 160ms var(--ease);
  }
  .fader input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #fff 0 32%, var(--teal-300) 34%);
    border: 2px solid var(--ink-900); box-shadow: 0 0 0 6px color-mix(in oklab, var(--teal-300) 25%, transparent);
  }
  .fader input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
  .fader input[type="range"]:focus-visible { box-shadow: none; }
  .fader input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }

  .stops { display: flex; flex-direction: column; justify-content: space-between; list-style: none; padding: 4px 0; margin: 0; }
  .stops button {
    all: unset; cursor: pointer; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-dim); padding: .2rem .35rem; border-radius: 6px;
    transition: color 200ms var(--ease);
  }
  .stops button:hover { color: var(--text); }
  .stops button[aria-pressed="true"] { color: var(--teal-200); }
  .stops button[aria-pressed="true"]::before { content: "\25C2  "; color: var(--teal-300); }
  .stops button:focus-visible { box-shadow: var(--ring); }

  .dial { width: 100%; max-width: 460px; display: grid; gap: .6rem; }
  .readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
  .readout div { background: color-mix(in oklab, var(--ink-900) 70%, transparent); padding: .6rem .7rem; }
  .readout dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
  .readout dd { margin: .15rem 0 0; font-weight: 700; font-size: var(--fs-sm); color: var(--text); }
  .readout dd.ok { color: var(--teal-300); }
  .dial-note { font-size: 11px; color: var(--text-dim); text-align: center; }
  .dial-cta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: center; }
  .dial-cta p { font-size: var(--fs-sm); color: var(--text-muted); }

  .hint {
    display: inline-flex; align-items: center; gap: .5em; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--teal-200);
  }
  .hint svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  @media (max-width: 999px) { .hint .dir { transform: rotate(90deg); } }

  @media (prefers-reduced-motion: reduce) { .wave i { animation: none; height: 60%; } }
}

/* ============================================================
   SITE-WIDE ADDITIONS (multi-page build)
   ============================================================ */
@layer components {
  /* offline banner — the site itself works offline, like the platform */
  .net-toast {
    position: fixed; z-index: 300; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
    translate: -50% 0; width: min(calc(100% - 2rem), 520px);
    display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem;
    border-radius: var(--r-md); background: color-mix(in oklab, var(--ink-900) 92%, transparent);
    border: 1px solid color-mix(in oklab, var(--gold-300) 45%, transparent); color: var(--text);
    box-shadow: var(--shadow-2); backdrop-filter: blur(10px); font-size: var(--fs-sm);
    transition: opacity 300ms var(--ease), translate 300ms var(--ease);
  }
  .net-toast[hidden] { display: flex; opacity: 0; translate: -50% 120%; pointer-events: none; }
  .net-toast .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-300); flex: 0 0 auto; }
  .net-toast.ok { border-color: color-mix(in oklab, var(--teal-300) 45%, transparent); }
  .net-toast.ok .dot { background: var(--teal-300); }

  .context-chip {
    display: inline-flex; align-items: center; gap: .5em; margin-block-start: var(--sp-4);
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em;
    padding: .4rem .8rem; border-radius: var(--r-pill);
    background: color-mix(in oklab, var(--teal-400) 14%, transparent); color: var(--teal-200);
    border: 1px solid color-mix(in oklab, var(--teal-300) 35%, transparent);
  }
  .context-chip[hidden] { display: none; }
  .hp { position: absolute; left: -9999px; }
}

/* Header logo: white at rest so it never sinks into the dark hero (style guide: white lockup on dark) */
@layer components {
  .site-header .brand, .site-header .brand .m, .site-header .brand .w { color: #FFFFFF; fill: #FFFFFF; }
  .site-header .brand:hover, .site-header .brand:hover .m, .site-header .brand:hover .w { color: var(--teal-200); fill: var(--teal-200); }
}
@layer components {
  .site-header .brand { font-size: 50px; }
  .site-header .brand .w { height: .3em; }
}

/* Home headline: pure white with a soft shadow and a deeper scrim, so the
   first two lines read clearly over the wave linework. */
@layer components {
  .hero-home .hero-title { color: #FFFFFF; text-shadow: 0 2px 24px rgb(2 22 32 / .55); }
  .hero-home .hero-title .gr { text-shadow: none; }
  .hero-home::before {
    background: linear-gradient(100deg, color-mix(in oklab, var(--ink-900) 78%, transparent) 0%, color-mix(in oklab, var(--ink-900) 40%, transparent) 45%, transparent 68%);
  }
}

@layer components {
  .media-thumb--video { padding: 0; background: #000; }
  .media-thumb--video video { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
}
