/* ═══════════════════════════════════════════════════════════════════════
   AIREVIN — aos-ui.css (site v2, Phases 2a + 2b)
   The portal's design language on airevin.com. Tokens keep the portal's
   --os-* names (docs/design/portal-tokens.css, extracted from airevin-ops
   lib/os-theme.ts); components follow docs/design/portal-components.md.

   One theme: dark, navy end-to-end (the portal's values on :root). Every
   section sits on the fixed navy ground. Light-surface values were explored
   and are documented, unused, in docs/design/theme-variants.md.

   Loaded by every page except the setup guide (index.html in 2a; the
   interior and unlisted pages in 2b). site.css is retired.
   Self-hosted /fonts only. Breakpoints: 1100 / 900 / 600. No build step.
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══ FONTS (SIL OFL 1.1, see /fonts/OFL.txt) ═══ */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-condensed-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-mono-500.woff2') format('woff2'); }

/* ═══ TOKENS ═══
   Theme-independent: type, radii, spacing, motion. */
:root {
  --os-sans: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --os-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --os-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --os-ease: cubic-bezier(.2,.7,.2,1);
  --os-motion: 1400ms;
  --os-chrome-h: 46px;
  --os-glass-radius: 10px;
  --os-glass-blur: blur(14px) saturate(1.3);
  --os-chart-main-width: 2.2px;
  --os-chart-secondary-width: 1.4px;
  --os-chart-secondary-dash: 4 4;
  /* site layout (not portal tokens; identical in both themes) */
  --os-gutter: clamp(20px, 5vw, 48px);
  --os-section-y: clamp(88px, 11vw, 168px);
  --os-card-radius: 14px;
  /* the wordmark's REV blue, for text that names the brand (lockups) */
  --os-rev: #3e7ad2;
  --os-rev-from: #4f8ae3;
  --os-rev-to: #255fb4;
  /* REV inside a text lockup ("Powered by AI REV IN"): the flat REV blue in
     both themes. A brand name, so WCAG 1.4.3's logotype exception applies;
     measured 4.6:1 on --os-page (dark) and 3.8:1 on cream. */
  --os-rev-text: var(--os-rev);
}

/* Dark: the portal's values, unchanged. */
:root {
  color-scheme: dark;
  --os-page: #020b18;
  --os-deep: #020b18;
  --os-surface-top: #0d1b33;
  --os-surface-bottom: #0a1528;
  --os-surface-border: rgba(240,244,255,.12);
  --os-surface-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.08) inset, 0 60px 120px -40px rgba(0,0,0,.7), 0 30px 80px -30px rgba(26,92,240,.35);
  --os-floating: #0f1f3a;
  --os-raised: #15284a;
  --os-drawer-shadow: 0 30px 80px rgba(0,0,0,.55);
  --os-ground-grid: rgba(90,160,255,.045);
  --os-ground-bloom-1: #0c2c62;
  --os-ground-bloom-2: #061838;
  --os-ground-edge: #000000;

  --os-text: #f0f4ff;
  --os-text-2: rgba(240,244,255,.68);
  --os-text-3: rgba(240,244,255,.58);
  --os-line: rgba(240,244,255,.10);
  --os-line-strong: rgba(240,244,255,.18);
  --os-fill: rgba(240,244,255,.05);
  --os-fill-hover: rgba(240,244,255,.08);

  --os-active: #4f8dff;
  --os-active-bg: rgba(79,141,255,.14);
  --os-glow: #5b9bff;
  --os-glow-text: #7eb0ff;
  --os-brand: #1a5cf0;
  --os-brand-hover: #0f49d2;
  --os-on-brand: #ffffff;
  --os-focus: #38bdf8;

  --os-google: #4f8dff;
  --os-meta: #38bdf8;
  --os-lsa: #a5b9ff;
  --os-ga4: #7c8aa5;
  --os-secondary: rgba(240,244,255,.68);

  --os-glass-border: rgba(240,244,255,.10);
  --os-glass-top: rgba(240,244,255,.035);
  --os-glass-bottom: rgba(240,244,255,.01);
  --os-focus-border: rgba(170,205,255,.24);
  --os-focus-top: rgba(205,228,255,.8);
  --os-focus-fill-top: rgba(240,244,255,.05);
  --os-focus-fill-bottom: rgba(240,244,255,.012);
  --os-focus-shadow: 0 -2px 12px -5px rgba(91,155,255,.6), inset 0 1px 0 rgba(220,235,255,.4), inset 0 12px 16px -14px rgba(91,155,255,.6);
  --os-focus-pool: rgba(205,228,255,.5);
  --os-gold-border: rgba(255,214,130,.18);
  --os-gold-top: rgba(255,214,130,.7);
  --os-gold-shadow: inset 0 1px 0 rgba(255,230,170,.3), inset 0 12px 16px -14px rgba(255,194,61,.45);
  --os-gold-pool: rgba(255,224,150,.35);

  --os-side-bg: rgba(2,11,24,.78);
  --os-side-border: rgba(240,244,255,.10);
  --os-side-selected: linear-gradient(90deg, rgba(26,92,240,.55) 0%, rgba(79,141,255,.16) 60%, rgba(79,141,255,.04) 100%);
  --os-side-selected-shadow: inset 2px 0 0 #f0f4ff, inset 5px 0 12px -4px rgba(91,155,255,.9);
  --os-side-hover: rgba(79,141,255,.08);

  --os-chart-main: #5b9bff;
  --os-chart-area-top: .42;
  --os-chart-secondary: rgba(240,244,255,.55);
  --os-chart-grid: rgba(240,244,255,.06);
  --os-chart-latest: #ffffff;
  --os-bar-top: #8fbaff;
  --os-bar-mid: #4f8dff;
  --os-bar-bottom: #1a5cf0;
  --os-bar-glow: drop-shadow(0 0 8px rgba(91,155,255,.8));
  --os-load-light: #e1eeff;

  --os-wait: #ffd58a;    --os-wait-bg: rgba(255,190,80,.10);    --os-wait-border: rgba(255,190,80,.26);
  --os-ok: #4ee08a;      --os-ok-bg: rgba(78,224,138,.10);      --os-ok-border: rgba(78,224,138,.26);
  --os-call: #ffc23d;    --os-call-bg: rgba(255,194,61,.10);    --os-call-border: rgba(255,194,61,.26);
  --os-err: #ffb3ad;     --os-err-bg: rgba(255,110,100,.10);    --os-err-border: rgba(255,110,100,.28);
  --os-info: #b9d0ff;    --os-info-bg: rgba(79,141,255,.12);    --os-info-border: rgba(79,141,255,.30);
  --os-neutral: rgba(240,244,255,.68); --os-neutral-bg: rgba(240,244,255,.05); --os-neutral-border: rgba(240,244,255,.14);

  --os-header-bg: rgba(2,11,24,.78);
  --os-media-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}

/* ═══ BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--os-page); }
body {
  position: relative; isolation: isolate;
  font-family: var(--os-sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.6;
  color: var(--os-text-2);
  background: var(--os-page);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* The ground: 32px blueprint grid + a radial bloom right of centre. A fixed
   layer (not background-attachment: fixed) so it composites cheaply. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--os-page);
  background-image:
    linear-gradient(var(--os-ground-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--os-ground-grid) 1px, transparent 1px),
    radial-gradient(ellipse 62% 70% at 58% 46%, var(--os-ground-bloom-1) 0%, var(--os-ground-bloom-2) 34%, var(--os-page) 66%, var(--os-ground-edge) 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--os-focus); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden, .os-vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--os-brand); color: var(--os-on-brand); padding: 10px 16px; border-radius: 8px; font-size: .875rem;
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1288px; margin-inline: auto; padding-inline: var(--os-gutter); }

/* Theme-paired images: one asset per surface; the other is not displayed. */

/* ═══ TYPE ═══ */
h1, h2, h3 { font-weight: 500; color: var(--os-text); text-wrap: balance; }
h1 { font-size: clamp(2.875rem, 7.4vw, 6.5rem); line-height: .97; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.125rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.accent { color: var(--os-glow-text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--os-mono); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--os-glow-text);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; box-shadow: 0 0 6px var(--os-glow); }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--os-text-2); max-width: 34em; text-wrap: pretty; }

/* ═══ GLASS + FOCUS LIGHTING ═══
   .os-glass is quiet: no glow. .is-focus lights the ONE surface answering
   the section's question; .is-gold is "needs your call" only. */
.os-glass {
  position: relative;
  border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius);
  background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom));
}
.is-focus {
  border-color: var(--os-focus-border) !important; border-top-color: var(--os-focus-top) !important;
  background: linear-gradient(180deg, var(--os-focus-fill-top), var(--os-focus-fill-bottom) 40%);
  box-shadow: var(--os-focus-shadow);
  --pool: var(--os-focus-pool);
}
.is-gold {
  border-color: var(--os-gold-border) !important; border-top-color: var(--os-gold-top) !important;
  box-shadow: var(--os-gold-shadow);
  --pool: var(--os-gold-pool);
}
.is-focus::before, .is-gold::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(28px 22px at 0 0, var(--pool), transparent 70%),
    radial-gradient(28px 22px at 100% 0, var(--pool), transparent 70%);
}

/* ═══ PILLS ═══ */
.os-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--os-mono); font-size: .625rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid;
}
.os-pill--wait { color: var(--os-wait); background: var(--os-wait-bg); border-color: var(--os-wait-border); }
.os-pill--ok { color: var(--os-ok); background: var(--os-ok-bg); border-color: var(--os-ok-border); }
.os-pill--err { color: var(--os-err); background: var(--os-err-bg); border-color: var(--os-err-border); }
.os-pill--info { color: var(--os-info); background: var(--os-info-bg); border-color: var(--os-info-border); }
.os-pill--neutral { color: var(--os-neutral); background: var(--os-neutral-bg); border-color: var(--os-neutral-border); }
/* Gold: needs your call, and the DEMO DATA flag on every mock. */
.os-pill--call { color: var(--os-call); background: var(--os-call-bg); border-color: var(--os-call-border); }
.os-pill--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
/* ID badge (MCC id on /google-ads; v2 pages): a live dot + a mono id that
   never breaks inside the id. Shrinks a step on phones instead of wrapping. */
.pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border-radius: 999px;
  font-family: var(--os-mono); font-size: .75rem; letter-spacing: .06em; line-height: 1.3; white-space: nowrap;
  color: var(--os-text); background: var(--os-fill); border: 1px solid var(--os-line-strong);
}
.pill::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--os-ok); box-shadow: 0 0 0 3px var(--os-ok-bg); }

/* ═══ NOTICE BANNER ═══ */
.os-notice {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px; margin-bottom: 12px;
  border: 1px solid var(--os-glass-border); border-radius: var(--os-glass-radius);
  background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom));
}
.os-notice-body { flex: 1; min-width: 0; }
.os-notice-title { display: block; font-size: .8125rem; font-weight: 500; color: var(--os-text); }
.os-notice-desc { display: block; margin-top: 2px; font-size: .75rem; color: var(--os-text-2); }
.os-notice-arrow { flex: none; font-family: var(--os-mono); font-size: 14px; }
.os-notice--wait { border-color: var(--os-wait-border); }
.os-notice--wait .os-notice-arrow { color: var(--os-wait); }
.os-notice--call { border-color: var(--os-gold-border); border-top-color: var(--os-gold-top); box-shadow: var(--os-gold-shadow); }
.os-notice--call .os-notice-arrow { color: var(--os-call); }

/* ═══ SEGMENTED CONTROL (static) ═══ */
.os-seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--os-fill); border: 1px solid var(--os-line); }
.os-seg > span { padding: 5px 11px; border-radius: 6px; font-size: .75rem; color: var(--os-text-2); white-space: nowrap; }
.os-seg > [aria-checked="true"], .os-seg > .is-on { background: color-mix(in srgb, var(--os-text) 10%, transparent); color: var(--os-text); }

/* ═══ LEGEND + SERIES SWATCHES ═══ */
.os-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: .6875rem; color: var(--os-text-3); }
.os-lg { display: inline-block; width: 12px; height: 2px; border-radius: 2px; margin-left: 8px; background: var(--os-chart-main); }
.os-lg:first-child { margin-left: 0; }
.os-lg--secondary { background: repeating-linear-gradient(90deg, var(--os-chart-secondary) 0 3px, transparent 3px 6px); height: 1.5px; }
.os-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.os-sq { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.c-google { background: var(--os-google); } .c-meta { background: var(--os-meta); }
.c-lsa { background: var(--os-lsa); } .c-ga4 { background: var(--os-ga4); }
.c-organic { background: var(--os-lsa); }
.os-dot.c-organic { background: transparent; box-shadow: inset 0 0 0 1.5px var(--os-meta); }

/* ═══ FOOTER LOCKUP ═══ */
.os-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--os-line);
  font-family: var(--os-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--os-text-3);
}
.os-foot b { font-family: var(--os-cond); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; color: var(--os-text-2); }
.os-foot b span { color: var(--os-rev-text); }

/* ═══ BUTTONS / LINKS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  font-family: var(--os-sans); font-size: 1rem; font-weight: 500; letter-spacing: -0.005em;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--os-ease), border-color .2s var(--os-ease), color .2s var(--os-ease), box-shadow .2s var(--os-ease), transform .2s var(--os-ease);
}
.btn .arrow, .text-link .arrow { display: inline-block; transition: transform .25s var(--os-ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--os-brand); color: var(--os-on-brand);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px -8px color-mix(in srgb, var(--os-glow) 70%, transparent);
}
.btn-primary:hover { background: var(--os-brand-hover); }
/* Ink + outline buttons read as glass on the v2 ground. */
.btn-ink, .btn-outline {
  color: var(--os-text); border-color: var(--os-line-strong);
  background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom));
}
.btn-ink:hover, .btn-outline:hover { background: var(--os-fill-hover); border-color: var(--os-focus-border); }
.btn-quiet { padding-inline: 12px; color: var(--os-text); }
.btn-quiet:hover { color: var(--os-glow-text); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; border-radius: 10px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 40px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; color: var(--os-glow-text); }
.text-link:hover { color: var(--os-text); }

/* ═══ HEADER ═══ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--os-ease), border-color .3s var(--os-ease);
}
.site-header.is-scrolled, .site-header.is-open {
  background: var(--os-header-bg);
  -webkit-backdrop-filter: var(--os-glass-blur); backdrop-filter: var(--os-glass-blur);
  border-bottom-color: var(--os-side-border);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo-link { display: block; flex: none; }
.logo { display: block; width: 156px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: block; padding: 8px 12px; border-radius: 8px; font-size: .9375rem; color: var(--os-text-2);
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.primary-nav a:hover { color: var(--os-text); background: var(--os-side-hover); }
/* Current page: the portal sidebar's selected-tab light, laid along the bottom edge. */
.primary-nav a[aria-current="page"] { color: var(--os-text); font-weight: 500; box-shadow: inset 0 -2px 0 var(--os-glow), 0 8px 12px -10px var(--os-glow); border-radius: 8px 8px 0 0; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--os-text); transition: transform .25s var(--os-ease), top .25s var(--os-ease); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--os-side-border); background: var(--os-floating); }
.mobile-menu nav { padding: 12px var(--os-gutter) 28px; max-height: calc(100dvh - 72px); overflow-y: auto; }
.mobile-menu li a { display: block; padding: 14px 0 14px 12px; border-bottom: 1px solid var(--os-line); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; color: var(--os-text); }
.mobile-menu li a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--os-text), inset 5px 0 12px -4px var(--os-glow); }
.mobile-menu .btn { width: 100%; margin-top: 24px; }

/* ═══ SECTIONS ═══ */
.section { position: relative; padding: var(--os-section-y) 0; }
/* Sections share one ground; a hairline with a faint lit centre separates them. */
.section + .section::before {
  content: ''; position: absolute; top: 0; left: var(--os-gutter); right: var(--os-gutter);
  max-width: calc(1288px - 2 * var(--os-gutter)); margin-inline: auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--os-line-strong) 20%, var(--os-line-strong) 80%, transparent);
}
.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.section-intro { font-size: 1.125rem; line-height: 1.55; color: var(--os-text-2); max-width: 30em; text-wrap: pretty; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--os-ease), transform .8s var(--os-ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ═══ HERO ═══ */
.hero { position: relative; padding: clamp(136px, 17vw, 208px) 0 clamp(72px, 8vw, 120px); overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero h1 { max-width: 9.5em; }
.hero .lead { margin-top: 32px; }
.hero-visual { justify-self: end; width: 100%; max-width: 540px; }

/* Hero ▸ Enter the experience: outlined pill linking to experience.airevin.com.
   Default = normal flow under the CTA row (touch, narrow, short viewports).
   Wide + tall desktops pin it, centred, near the bottom of the first screen:
   the containing block is .hero-grid, so subtract the hero's top padding. */
.hero-enter { flex: 0 0 100%; margin-top: 8px; } /* lives in .btn-row; own line by default */
.hero-enter-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px 0 14px;
  font-size: .9375rem; font-weight: 500; color: var(--os-text);
  border: 1px solid var(--os-active); border-radius: 999px; background: transparent;
  transition: background-color .2s var(--os-ease), border-color .2s var(--os-ease), color .2s var(--os-ease), transform .2s var(--os-ease);
}
.hero-enter-link:hover { background: var(--os-active-bg); border-color: var(--os-glow); color: var(--os-glow-text); }
.hero-enter-link:active { transform: translateY(1px); }
.hero-enter-dot { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--os-active); box-shadow: 0 0 10px var(--os-glow); }
.hero-enter-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--os-glow); opacity: 0; }
.hero-enter-note { display: none; margin-top: 10px; font-family: var(--os-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--os-text-3); }
@media (hover: hover) and (pointer: fine) and (min-width: 601px) { .hero-enter-note { display: block; } }
/* Sub-line must sit fully inside the first screen: hide it on short viewports. */
@media (max-height: 739px) { .hero-enter-note { display: none; } }
/* Desktop width, short viewport: same line as the CTAs, after "See results". */
@media (min-width: 901px) and (max-height: 699px) {
  .hero-enter { flex: 0 0 auto; margin-top: 0; }
  .hero { padding-top: 136px; } /* tighter top so the CTA row (and pill) land in the first screen */
}
@media (min-width: 901px) and (min-height: 700px) {
  .hero-enter {
    position: absolute; left: 50%; margin-top: 0; text-align: center; transform: translateX(-50%);
    /* Aim for the bottom of the first screen, but stay 16-36px below the hero
       content so it can never overlap the CTA row or the diagram. */
    top: clamp(calc(100% + 16px), calc(100svh - clamp(136px, 17vw, 208px) - 112px), calc(100% + 36px));
  }
  .hero:has(.hero-enter) { padding-bottom: clamp(120px, 11vw, 150px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-enter-dot::after { animation: os-pulse 2.8s ease-out infinite; }
}
.wiring { width: 100%; height: auto; overflow: visible; }
.wiring .wires-base path { stroke: var(--os-line-strong); stroke-width: 1.5; }
.wiring .wires-live path { stroke: var(--os-chart-main); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 3px var(--os-glow)); }
.wiring .node > rect:first-child { fill: var(--os-surface-bottom); fill-opacity: .72; stroke: var(--os-glass-border); }
.wiring .out rect { fill: var(--os-surface-top); stroke: var(--os-focus-border); filter: drop-shadow(0 -2px 8px color-mix(in srgb, var(--os-glow) 45%, transparent)); }
.wiring .node-ico { fill: var(--os-active-bg); }
.wiring .glyph { fill: none; stroke: var(--os-glow-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wiring .node-title, .wiring .out-title { font-family: var(--os-sans); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; fill: var(--os-text); }
.wiring .node-sub, .wiring .out-sub { font-family: var(--os-mono); font-size: 9.5px; letter-spacing: .1em; fill: var(--os-text-3); }
.wiring .port { fill: var(--os-page); stroke: var(--os-glow); stroke-width: 1.75; }
.wiring .hub { fill: var(--os-raised); stroke: var(--os-focus-border); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--os-glow) 40%, transparent)); }
.wiring .hub-ring { stroke: var(--os-glow); stroke-opacity: .4; stroke-width: 1; stroke-dasharray: 3 5; }
.wiring .hub-text { font-family: var(--os-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; fill: var(--os-text); }
.wiring .out-title { fill: var(--os-glow-text); }
.js .wiring .wires-live path { stroke-dashoffset: 1; animation: draw 1.1s var(--os-ease) .35s forwards; }
.js .wiring .wires-live path:nth-child(2) { animation-delay: .45s; }
.js .wiring .wires-live path:nth-child(3) { animation-delay: .55s; }
.js .wiring .wires-live path:nth-child(4) { animation-delay: .65s; }
.js .wiring .wires-live .wire-out { animation-delay: 1.5s; animation-duration: .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ═══ PLATFORMS ═══ */
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.platform-card {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px;
  border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius);
  background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom));
  transition: border-color .35s var(--os-ease), box-shadow .35s var(--os-ease), transform .35s var(--os-ease), opacity .8s var(--os-ease);
}
.platform-card:hover { border-color: var(--os-focus-border); border-top-color: var(--os-focus-top); box-shadow: var(--os-focus-shadow); }
.js .platform-card.reveal.is-in:hover { transform: translateY(-3px); }
.platform-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 56px; }
.platform-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--os-active-bg); color: var(--os-glow-text); border: 1px solid var(--os-glass-border); }
.platform-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.platform-role { font-family: var(--os-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--os-text-3); text-align: right; }
.platform-card h3 { font-size: 1.625rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.platform-card .text-link { margin-top: auto; }
/* GA4 bus: four drops into one lit measurement line. */
.bus { position: relative; }
.bus-drops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; height: 36px; }
.bus-drops span { position: relative; justify-self: center; width: 1px; background: linear-gradient(var(--os-line), var(--os-glow)); }
.bus-drops span::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--os-page); border: 1.75px solid var(--os-glow); z-index: 1; }
.bus-bar {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 26px;
  border: 1px solid var(--os-focus-border); border-top-color: var(--os-focus-top); border-radius: var(--os-card-radius);
  background: linear-gradient(180deg, var(--os-focus-fill-top), var(--os-focus-fill-bottom) 60%);
  box-shadow: var(--os-focus-shadow);
}
.bus-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--os-ga4); box-shadow: 0 0 0 4px color-mix(in srgb, var(--os-ga4) 22%, transparent); }
.bus-bar p { font-size: 1rem; color: var(--os-text-2); }
.bus-bar strong { font-weight: 500; color: var(--os-text); }

/* ═══ AIREVIN OS BAND ═══ */
.os-band { overflow: hidden; }
.os-band .container { position: relative; }
.os-rules { margin-top: 22px; border-top: 1px solid var(--os-line); }
.os-rules li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--os-line); font-size: 1rem; color: var(--os-text); }
.os-rules span { flex: none; width: 84px; font-family: var(--os-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--os-glow-text); }
.os-figure figcaption { margin-top: 20px; text-align: center; font-family: var(--os-mono); font-size: .75rem; letter-spacing: .04em; color: var(--os-text-3); }

/* ── The portal mock: built from the portal components ── */
.os-mock {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--os-surface-border); box-shadow: var(--os-surface-shadow);
  background: linear-gradient(180deg, var(--os-surface-top), var(--os-surface-bottom));
  font-size: .8125rem; line-height: 1.45; color: var(--os-text-2); font-variant-numeric: tabular-nums;
}
/* the portal ground, inside the frame */
.os-mock::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--os-ground-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--os-ground-grid) 1px, transparent 1px),
    radial-gradient(ellipse 70% 80% at 60% 40%, color-mix(in srgb, var(--os-ground-bloom-1) 70%, transparent), transparent 70%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}
.os-mock > * { position: relative; }
.os-mock .os-chrome {
  display: flex; align-items: center; gap: 14px; min-height: var(--os-chrome-h); padding: 0 18px;
  border-bottom: 1px solid var(--os-side-border); background: var(--os-side-bg);
}
.os-dots { display: flex; gap: 7px; flex: none; }
.os-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--os-line-strong); }
.os-crumb { flex: 1 1 auto; min-width: 0; font-family: var(--os-mono); font-size: .75rem; letter-spacing: .06em; color: var(--os-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-crumb em { font-style: normal; color: var(--os-text-3); }
.os-mock .os-body { display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.os-side { padding: 22px 14px; border-right: 1px solid var(--os-side-border); background: var(--os-side-bg); }
.os-side-label { padding: 0 10px; margin-bottom: 8px; font-family: var(--os-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--os-text-3); }
.os-side ul { margin-bottom: 26px; }
.os-side ul:last-child { margin-bottom: 0; }
.os-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 0 8px 8px 0; color: var(--os-text-2); font-size: .8125rem; }
.os-nav-item.is-current { background: var(--os-side-selected); box-shadow: var(--os-side-selected-shadow); color: var(--os-text); font-weight: 500; }
.os-nav-item svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.os-nav-badge { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--os-wait-bg); border: 1px solid var(--os-wait-border); color: var(--os-wait); font-size: .6875rem; font-weight: 500; line-height: 1.35; text-align: center; }
.os-sources li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--os-text-2); }

.os-main { padding: 24px clamp(16px, 2.4vw, 28px) 22px; min-width: 0; }
.os-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.os-h { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; color: var(--os-text); }
.os-sub { margin-top: 3px; font-size: .75rem; color: var(--os-text-3); }

.os-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.os-kpi, .os-panel {
  position: relative; min-width: 0;
  border: 1px solid var(--os-glass-border); border-radius: var(--os-glass-radius);
  background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom));
}
.os-kpi { display: flex; flex-direction: column; padding: 16px 16px 14px; container-type: inline-size; }
.os-kpi-label { font-family: var(--os-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--os-text-3); line-height: 1.35; margin-bottom: 6px; }
.os-kpi-value { font-family: var(--os-cond); font-weight: 600; font-size: clamp(1.75rem, 2.6vw, 2.375rem); line-height: 1; letter-spacing: -0.005em; color: var(--os-text); white-space: nowrap; }
@supports (container-type: inline-size) { .os-kpi-value { font-size: clamp(1.25rem, 21cqi, 2.375rem); } }
/* Provenance: every figure carries a DM Mono source line. */
.os-source { margin-top: 7px; font-family: var(--os-mono); font-size: 10.5px; letter-spacing: .02em; color: var(--os-text-3); line-height: 1.4; }
.os-spark-wrap { position: relative; display: block; margin-top: 12px; }
.os-spark { display: block; width: 100%; height: 28px; overflow: visible; }
.os-spark path { fill: none; stroke: var(--os-chart-main); stroke-width: var(--os-chart-main-width); vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--os-glow) 75%, transparent)); }
.os-spark-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--os-chart-latest); box-shadow: 0 0 6px var(--os-glow); }

.os-panels { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; }
.os-panels > .panel-rev { grid-row: span 2; display: flex; flex-direction: column; }
.os-panels > .panel-rev .os-chart { flex: 1 1 auto; min-height: 230px; }
.os-panel { padding: 16px 18px 18px; }
.os-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.os-panel-title { font-size: .8125rem; font-weight: 500; color: var(--os-text); }
.os-panel-note { font-size: .6875rem; color: var(--os-text-3); }
.os-panel-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--os-line); font-size: .6875rem; color: var(--os-text-3); }

/* Chart: main series (glow + area), dashed secondary, mono axis, pulsing end dot. */
.os-chart { position: relative; height: 230px; }
.os-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.os-chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.os-chart-grid span { height: 1px; background: var(--os-chart-grid); }
.os-chart .area { stop-color: var(--os-chart-main); }
.os-chart .area-top { stop-opacity: var(--os-chart-area-top); }
.os-chart .main { fill: none; stroke: var(--os-chart-main); stroke-width: var(--os-chart-main-width); stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px var(--os-glow)); }
.os-chart .secondary { fill: none; stroke: var(--os-chart-secondary); stroke-width: var(--os-chart-secondary-width); stroke-dasharray: var(--os-chart-secondary-dash); }
.os-chart-end { position: absolute; right: 0; width: 9px; height: 9px; margin: -4.5px -4.5px 0 0; border-radius: 50%; background: var(--os-chart-latest); box-shadow: 0 0 10px var(--os-glow); }
.os-chart-end::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--os-chart-main); opacity: 0; }
.os-axis { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--os-mono); font-size: 10px; letter-spacing: .04em; color: var(--os-text-3); }

/* Reach by source: stacked share bar + rows. */
.os-attr-stack { display: flex; gap: 3px; height: 10px; margin-bottom: 16px; }
.os-attr-stack span { width: var(--w); border-radius: 3px; transform-origin: left; }
.os-attr-rows li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; padding: 10px 0; border-top: 1px solid var(--os-line); }
.os-attr-rows span { color: var(--os-text); min-width: 0; }
.os-attr-rows b { font-weight: 500; color: var(--os-text); text-align: right; }
.os-attr-rows em { font-style: normal; font-size: .6875rem; color: var(--os-text-3); min-width: 48px; text-align: right; }

/* Reach by week: capsule bars, the latest one lit. */
.os-bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; }
.os-bars span { flex: 1; height: var(--h); border-radius: 999px; background: linear-gradient(180deg, var(--os-bar-top), color-mix(in srgb, var(--os-bar-mid) 85%, transparent) 50%, color-mix(in srgb, var(--os-bar-bottom) 35%, transparent)); transform-origin: bottom; }
.os-bars span:last-child { filter: var(--os-bar-glow); }

/* Mock motion: plays once when the figure scrolls in (site.js adds .is-in). */
.js .os-figure .os-chart .main, .js .os-figure .os-spark path { clip-path: inset(-6px 100% -6px 0); transition: clip-path var(--os-motion) var(--os-ease) .3s; }
.js .os-figure .os-chart .fill, .js .os-figure .os-chart-end, .js .os-figure .os-spark-dot { opacity: 0; transition: opacity .9s ease 1.3s; }
.js .os-figure .os-bars span { transform: scaleY(0); transition: transform .8s var(--os-ease); transition-delay: calc(.3s + var(--i, 0) * 40ms); }
.js .os-figure .os-attr-stack span { transform: scaleX(0); transition: transform .9s var(--os-ease) .4s; }
.js .os-figure.is-in .os-chart .main, .js .os-figure.is-in .os-spark path { clip-path: inset(-6px 0 -6px 0); }
.js .os-figure.is-in .os-chart .fill, .js .os-figure.is-in .os-chart-end, .js .os-figure.is-in .os-spark-dot { opacity: 1; }
.js .os-figure.is-in .os-bars span, .js .os-figure.is-in .os-attr-stack span { transform: none; }

/* ═══ PROCESS ═══ */
.layers { border-top: 1px solid var(--os-line); }
.layer { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 440px); gap: 24px clamp(24px, 4vw, 64px); align-items: center; padding: clamp(36px, 4.5vw, 64px) 0; border-bottom: 1px solid var(--os-line); }
.layer-num { align-self: start; font-family: var(--os-cond); font-weight: 500; font-size: clamp(3rem, 5vw, 4.5rem); line-height: .9; color: var(--os-glow-text); text-shadow: 0 0 24px color-mix(in srgb, var(--os-glow) 40%, transparent); }
.layer-copy { align-self: start; }
.layer-copy h3 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 14px; }
.layer-copy > p { font-size: 1.125rem; line-height: 1.5; max-width: 26em; margin-bottom: 20px; }
.layer-copy .layer-meta { display: inline-block; font-family: var(--os-mono); font-size: .75rem; letter-spacing: .02em; color: var(--os-text); padding: 8px 12px; border-radius: 8px; background: var(--os-fill); border: 1px solid var(--os-line); max-width: none; }
.layer-copy .text-link { display: flex; width: fit-content; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.layer-media { margin: 0; }
.layer-media img { width: 100%; border-radius: var(--os-card-radius); border: 1px solid var(--os-glass-border); box-shadow: var(--os-media-shadow); transition: transform .5s var(--os-ease), border-color .5s var(--os-ease); }
.layer:hover .layer-media img { transform: translateY(-4px); border-color: var(--os-focus-border); }
.layer-media figcaption { margin-top: 12px; font-family: var(--os-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--os-text-3); }

/* ═══ WHO ═══ */
.who { padding-bottom: clamp(56px, 7vw, 96px); }
.who-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.who .section-head { margin-bottom: 0; }
.who-lists { display: grid; gap: 16px; }
.who-group { position: relative; padding: 30px 32px 32px; border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius); background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); }
.who-group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-family: var(--os-mono); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--os-text-3); }
.who-group h3::after { content: ''; flex: 1; height: 1px; background: var(--os-line); }
.who-group ul { display: flex; flex-wrap: wrap; gap: 6px 0; }
.who-group li { font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; color: var(--os-text); }
.who-group li:not(:last-child)::after { content: '/'; margin: 0 .5em; color: var(--os-glow); font-weight: 400; opacity: .6; }

/* ═══ RESULTS (case copy is frozen; only the surface changes) ═══ */
.results { padding-top: clamp(56px, 7vw, 96px); }
.case { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 64px); align-items: start; padding: clamp(36px, 4.5vw, 60px) 0; border-top: 1px solid var(--os-line-strong); }
.case + .case { border-top-color: var(--os-line); }
.case-index { margin-bottom: 14px; font-family: var(--os-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--os-glow-text); }
.case-meta h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.15; }
.case-place { margin-top: 8px; font-size: .9375rem; color: var(--os-text-3); }
.case-num { font-family: var(--os-cond); font-weight: 600; color: var(--os-text); font-size: clamp(4.5rem, 10vw, 9rem); line-height: .84; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.case-num--range { display: flex; flex-wrap: wrap; align-items: baseline; gap: .04em .16em; font-size: clamp(2.75rem, 4.8vw, 4.75rem); line-height: .9; }
.case-num--range .from { color: var(--os-text-3); }
.case-num--range .to-arrow { font-family: var(--os-sans); font-weight: 400; font-size: .5em; color: var(--os-glow-text); align-self: center; }
.case-num--range .to { color: var(--os-glow-text); }
.case-num-label { margin-top: 18px; font-family: var(--os-mono); font-size: .75rem; letter-spacing: .04em; color: var(--os-text-3); }
.case-body > p { font-size: 1.0625rem; line-height: 1.55; margin-bottom: 22px; }
.case-body dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--os-line); }
.case-body dt { font-size: .9375rem; color: var(--os-text-3); }
.case-body dd { font-family: var(--os-cond); font-weight: 600; font-size: 1.625rem; line-height: 1; color: var(--os-text); white-space: nowrap; }
.case-body dd span { font-family: var(--os-sans); font-weight: 400; font-size: .875rem; color: var(--os-text-3); margin-left: 4px; }
.case-chart { grid-column: 1 / -1; margin-top: 12px; padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius); background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); }
.case-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cc-grid { stroke: var(--os-chart-grid); }
.cc-base { stroke: var(--os-line-strong); }
.cc-axis { font-family: var(--os-mono); font-size: 13px; fill: var(--os-text-3); }
.cc-area { fill: var(--os-chart-main); fill-opacity: .12; }
.cc-rev { fill: none; stroke: var(--os-chart-main); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; filter: drop-shadow(0 0 4px var(--os-glow)); }
.cc-spend { fill: none; stroke: var(--os-chart-secondary); stroke-width: 2; stroke-dasharray: 1; }
.cc-mark { stroke: var(--os-line-strong); stroke-dasharray: 2 4; }
.cc-dot { fill: var(--os-chart-latest); stroke: var(--os-chart-main); stroke-width: 3; }
.cc-note { font-family: var(--os-sans); font-size: 15px; fill: var(--os-text-2); }
.cc-end { font-family: var(--os-cond); font-weight: 600; font-size: 22px; }
.cc-end--rev { fill: var(--os-glow-text); }
.cc-end--spend { fill: var(--os-text-3); font-size: 18px; }
.case-chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; font-size: .875rem; color: var(--os-text-3); }
.cc-key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--os-chart-main); }
.cc-key--spend { background: var(--os-chart-secondary); margin-left: 12px; }
.cc-src { margin-left: auto; font-family: var(--os-mono); font-size: .75rem; }
.js .case-chart .cc-rev, .js .case-chart .cc-spend { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--os-ease) .2s; }
.js .case-chart .cc-spend { transition-duration: 1.4s; }
.js .case-chart .cc-area, .js .case-chart .cc-dot, .js .case-chart .cc-note, .js .case-chart .cc-mark, .js .case-chart .cc-end { opacity: 0; transition: opacity .6s ease 1.6s; }
.js .case-chart.is-in .cc-rev, .js .case-chart.is-in .cc-spend { stroke-dashoffset: 0; }
.js .case-chart.is-in .cc-area, .js .case-chart.is-in .cc-dot, .js .case-chart.is-in .cc-note, .js .case-chart.is-in .cc-mark, .js .case-chart.is-in .cc-end { opacity: 1; }
.results-foot { padding-top: 32px; border-top: 1px solid var(--os-line); }

/* ═══ FOUNDER ═══ */
.founder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder-photo { position: sticky; top: 104px; margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--os-surface-bottom); border: 1px solid var(--os-glass-border); box-shadow: var(--os-media-shadow); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.founder-copy h2 { margin-top: 18px; }
.founder-role { margin-top: 12px; font-size: 1rem; color: var(--os-text-3); }
.founder-bio { margin-top: 24px; max-width: 34em; font-size: 1.125rem; line-height: 1.65; color: var(--os-text-2); text-wrap: pretty; }
.founder-bio + .founder-bio { margin-top: 16px; }
/* Career timeline (main's layout: year · role · note per row). A lit rail on
   the left with a node per year; the current row (Founded AIREVIN) is the
   one lit node. */
.career { position: relative; margin-top: 48px; border-top: 1px solid var(--os-line-strong); }
.career li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr); gap: 4px 24px; align-items: baseline; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--os-line); }
.career li::before { content: ''; position: absolute; left: 3px; top: 0; bottom: -1px; width: 1px; background: linear-gradient(var(--os-line-strong), var(--os-line)); }
.career li::after { content: ''; position: absolute; left: 0; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--os-page); border: 1.5px solid var(--os-line-strong); }
.career li:last-child::after { background: var(--os-chart-latest); border-color: var(--os-glow); box-shadow: 0 0 8px var(--os-glow); }
.career-year { font-family: var(--os-cond); font-weight: 600; font-size: 1.375rem; line-height: 1; color: var(--os-glow-text); font-variant-numeric: tabular-nums; }
.career-role { font-weight: 500; color: var(--os-text); }
.career-note { font-size: .9375rem; line-height: 1.5; color: var(--os-text-3); }
.career li:last-child .career-role { color: var(--os-glow-text); }

/* ═══ FINAL CTA: the one lit panel at the end of the page ═══ */
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px clamp(32px, 6vw, 96px); align-items: center; padding: clamp(32px, 5vw, 72px); border-radius: 22px; }
.cta h2 { font-size: clamp(2.75rem, 7vw, 6rem); line-height: .97; letter-spacing: -0.045em; }
.cta .lead { margin-top: 28px; max-width: 28em; }
.cta-points { border-top: 1px solid var(--os-line); }
.cta-points li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--os-line); }
.cta-points strong { font-weight: 500; color: var(--os-text); }
.cta-points span { color: var(--os-text-2); }

/* ═══ FOOTER ═══ */
.site-footer { position: relative; padding: 48px 0 40px; font-size: .9375rem; border-top: 1px solid var(--os-side-border); background: var(--os-side-bg); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; }
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 12px; color: var(--os-text-3); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 28px; }
.footer-links a, .footer-legal a { color: var(--os-text-2); transition: color .2s; }
.footer-links a:hover, .footer-legal a:hover { color: var(--os-text); }
.footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--os-line); color: var(--os-text-3); font-size: .8125rem; }
.footer-legal a { text-decoration: underline; text-decoration-color: var(--os-line-strong); text-underline-offset: 3px; }

/* ═══ RESPONSIVE (site breakpoints) ═══ */
@media (max-width: 1100px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bus-drops { display: none; }
  .bus-bar { margin-top: 16px; }
  .platform-top { margin-bottom: 36px; }
  .os-mock .os-body { grid-template-columns: minmax(0, 1fr); }
  .os-mock .os-side { display: none; }
  .layer { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 360px); }
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .case-meta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: start; max-width: 560px; margin-top: 16px; }
  .section-head.split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .os-panels { grid-template-columns: minmax(0, 1fr); }
  .os-panels > .panel-rev { grid-row: auto; }
  .layer { grid-template-columns: 64px minmax(0, 1fr); }
  .layer-media { grid-column: 2; max-width: 520px; }
  .who-grid, .cta-grid, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .hero-visual { display: none; }
  .btn-row .btn-primary { flex: 1 1 auto; }
  .platform-grid { grid-template-columns: minmax(0, 1fr); }
  .bus-bar { align-items: flex-start; padding: 18px 20px; }
  .bus-dot { margin-top: 9px; }
  .os-mock { border-radius: 14px; }
  .os-mock .os-chrome { padding: 0 12px; gap: 10px; }
  .os-crumb em { display: none; }
  .os-main { padding: 18px 14px 18px; }
  .os-seg > span:not(.is-on) { display: none; }
  .os-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .os-kpi { padding: 14px 12px 12px; }
  .os-kpi-value { font-size: 1.75rem; }
  .os-panels { gap: 8px; }
  .os-panel { padding: 14px 14px 16px; }
  .os-chart, .os-panels > .panel-rev .os-chart { height: 160px; min-height: 0; }
  .os-attr-rows li { grid-template-columns: 8px minmax(0, 1fr) auto; }
  .os-attr-rows em { display: none; }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .layer-media { grid-column: 1; }
  .who-group { padding: 24px 22px 26px; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-chart { padding: 12px 10px; margin-inline: calc(-1 * var(--os-gutter) / 2); }
  .cc-axis { font-size: 22px; }
  .cc-note { font-size: 24px; }
  .cc-end { font-size: 32px; }
  .cc-end--spend { font-size: 26px; }
  .cc-src { margin-left: 0; flex-basis: 100%; }
  .cta-grid { padding: 28px 20px; border-radius: 18px; }
  .cta-points li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .results-foot .btn { width: 100%; }
  .founder-grid { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { position: static; aspect-ratio: 1 / 1; max-width: 480px; }
  .career li { grid-template-columns: 56px minmax(0, 1fr); padding-left: 20px; }
  .career-note { grid-column: 2; }
  .pill { gap: 6px; padding: 5px 10px; font-size: .6875rem; letter-spacing: .02em; }
  .stat dd .pill { gap: 5px; padding: 5px 8px; font-size: clamp(.5625rem, 2.9vw, .6875rem); letter-spacing: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════
   INTERIOR PAGES (Phase 2b) — the homepage system on every page.
   Same ground, same glass, one lit surface per section. Class names follow
   the retired site.css components so page markup only loses its band
   classes (tint / dark); the copy inside is untouched.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── page hero ── */
.page-hero { position: relative; padding: clamp(128px, 15vw, 184px) 0 clamp(64px, 8vw, 112px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px clamp(32px, 6vw, 96px); align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1; letter-spacing: -0.042em; max-width: 12em; }
.page-hero .lead { margin-top: 28px; }
.page-hero--tight { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero + .section::before { display: none; }

/* ── framed figure: the one lit surface in a hero ── */
.frame { position: relative; margin: 0; }
.frame img, .frame video {
  display: block; width: 100%; height: auto; border-radius: 18px;
  background: var(--os-surface-bottom); border: 1px solid var(--os-glass-border); box-shadow: var(--os-media-shadow);
}
.page-hero .frame img, .page-hero .frame video { border-color: var(--os-focus-border); border-top-color: var(--os-focus-top); box-shadow: var(--os-focus-shadow), var(--os-media-shadow); }
.frame figcaption { margin-top: 14px; font-family: var(--os-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--os-text-3); }
.frame + .frame { margin-top: 16px; }

/* ── cards: quiet glass; the edge lights on hover ── */
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px;
  border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius);
  background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom));
  transition: border-color .35s var(--os-ease), box-shadow .35s var(--os-ease), opacity .8s var(--os-ease), transform .8s var(--os-ease);
}
.card:hover { border-color: var(--os-focus-border); border-top-color: var(--os-focus-top); box-shadow: var(--os-focus-shadow); }
.card-tag { font-family: var(--os-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--os-glow-text); margin-bottom: 40px; }
.card h3 { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.card p { font-size: 1rem; line-height: 1.55; }
.fine { margin-top: 20px; font-size: .9375rem; color: var(--os-text-3); max-width: 46em; }

/* ── component checklist: rows with a lit node ── */
.check-list { columns: 2; column-gap: 28px; }
.check-list li {
  break-inside: avoid; display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--os-line);
  font-size: .9844rem; font-weight: 500; color: var(--os-text); letter-spacing: -0.005em;
}
.check-list li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--os-glow); box-shadow: 0 0 0 3px var(--os-active-bg), 0 0 8px var(--os-glow); }
/* Strip variant: the components as pills (the signature shape). */
.check-list--strip { columns: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.check-list--strip li {
  padding: 10px 18px 10px 14px; border: 1px solid var(--os-glass-border); border-radius: 999px;
  background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); font-size: .9375rem;
}

/* ── ledger (audit): two glass columns ── */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ledger-col { position: relative; padding: 32px 32px 28px; border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius); background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); }
.ledger-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--os-line-strong); }
.ledger-head h3 { font-size: 1.625rem; letter-spacing: -0.025em; }
.ledger-count { font-family: var(--os-cond); font-weight: 600; font-size: 2.75rem; line-height: .9; color: var(--os-glow-text); text-shadow: 0 0 24px color-mix(in srgb, var(--os-glow) 40%, transparent); white-space: nowrap; }
.ledger-count small { font-family: var(--os-mono); font-size: .6875rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--os-text-3); margin-left: 6px; text-shadow: none; }
.ledger-sub { margin: 16px 0 8px; font-size: .9375rem; color: var(--os-text-3); }

/* ── deliverable: the section's lit panel ── */
.deliverable {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center;
  margin-top: 16px; padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--os-focus-border); border-top-color: var(--os-focus-top); border-radius: 22px;
  background: linear-gradient(180deg, var(--os-focus-fill-top), var(--os-focus-fill-bottom) 40%); box-shadow: var(--os-focus-shadow);
}
.deliverable h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.deliverable p { font-size: 1.0625rem; line-height: 1.55; max-width: 30em; }
.deliverable .card-tag { margin-bottom: 18px; }
.deliverable img { width: 100%; border-radius: 12px; border: 1px solid var(--os-glass-border); }

/* ── numbered steps ── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--os-line-strong); }
.step-item { padding: 32px 28px 8px 0; }
.step-item + .step-item { padding-left: 28px; border-left: 1px solid var(--os-line); }
.step-num { display: block; font-family: var(--os-cond); font-weight: 500; font-size: clamp(2.75rem, 4.4vw, 4rem); line-height: .9; color: var(--os-glow-text); text-shadow: 0 0 24px color-mix(in srgb, var(--os-glow) 40%, transparent); }
.step-tag { display: inline-block; margin: 24px 0 12px; font-family: var(--os-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--os-text-3); }
.step-item h3 { font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.step-item p { font-size: 1rem; line-height: 1.55; }

/* ── price-style figure ("Included") ── */
.price {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px clamp(28px, 4vw, 56px); align-items: center;
  margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--os-line-strong); border-bottom: 1px solid var(--os-line);
}
.price-amt { font-family: var(--os-cond); font-weight: 600; font-size: clamp(4.5rem, 10vw, 8rem); line-height: .84; letter-spacing: -0.02em; color: var(--os-text); }
.price-copy strong { display: block; font-weight: 500; font-size: 1.25rem; color: var(--os-text); letter-spacing: -0.015em; margin-bottom: 6px; }
.price-copy p { font-size: 1.0625rem; max-width: 32em; }
.price-copy .btn-row { margin-top: 20px; }

/* ── closing panel: the one lit panel at the end of every page ── */
.close-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; padding: clamp(32px, 5vw, 72px); border-radius: 22px; }
.close-band h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; letter-spacing: -0.042em; }
.close-band .lead { margin-top: 24px; max-width: 30em; }
.close-band .btn-row { margin-top: 0; justify-content: flex-end; }

/* ── proof figures (/google-ads MCC block; markup preserved verbatim) ── */
.numbers .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--os-line-strong); }
.stat-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 36px 28px 8px 0; min-width: 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--os-line); }
.stat dd {
  display: flex; align-items: flex-start;
  font-family: var(--os-cond); font-weight: 600; font-size: clamp(5rem, 11vw, 10rem); line-height: .86; letter-spacing: -0.02em;
  color: var(--os-text); font-variant-numeric: tabular-nums;
}
.stat sup { font-size: .5em; line-height: 1; color: var(--os-glow-text); margin: .06em 0 0 .04em; }
.stat dt { margin-top: 28px; font-size: 1rem; line-height: 1.4; color: var(--os-text-3); max-width: 15em; }
.stat dt strong { display: block; font-weight: 500; color: var(--os-text); font-size: 1.125rem; letter-spacing: -0.01em; }
/* the MCC id as a stat value: a lit pill, centred on the numeral's cap height */
.stat dd .pill { margin-top: .32em; font-size: .8125rem; border-color: var(--os-focus-border); border-top-color: var(--os-focus-top); box-shadow: var(--os-focus-shadow); }

/* ── process timeline: the homepage layer rows ── */
.timeline { border-top: 1px solid var(--os-line); }
.timeline-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 480px); gap: 24px clamp(24px, 4vw, 64px); align-items: start; padding: clamp(36px, 4.5vw, 64px) 0; border-bottom: 1px solid var(--os-line); }
.timeline-row h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 14px; }
.timeline-row p { font-size: 1.125rem; line-height: 1.55; max-width: 26em; }
.timeline-row .text-link { display: flex; width: fit-content; }
.timeline-row .frame img { transition: transform .5s var(--os-ease), border-color .5s var(--os-ease); }
.timeline-row:hover .frame img { transform: translateY(-4px); border-color: var(--os-focus-border); }
/* Reads automatic, writes operator-approved: the homepage os-rules grammar. */
.gate { margin-top: 20px; max-width: 30em; border-top: 1px solid var(--os-line); }
.gate li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--os-line); font-size: 1rem; color: var(--os-text); }
.gate span { flex: none; width: 84px; font-family: var(--os-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--os-glow-text); }

/* ── direct list (contact details; results jump links) ── */
.direct { margin-top: 40px; border-top: 1px solid var(--os-line); }
.direct li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--os-line); font-size: 1rem; }
.direct strong { font-weight: 500; color: var(--os-text); }
.direct a { color: var(--os-glow-text); transition: color .2s; }
.direct a:hover { color: var(--os-text); }
.page-hero .direct { margin-top: 0; }

/* ── forms: glass fields on the ground; the form panel is the lit surface ── */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form label { font-size: .9375rem; font-weight: 500; color: var(--os-text); }
.form .req { color: var(--os-glow-text); margin-left: 2px; }
.form .hint { font-weight: 400; color: var(--os-text-3); margin-left: 6px; font-size: .875rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--os-text);
  background: var(--os-fill); border: 1px solid var(--os-line-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form select {
  padding-right: 40px; cursor: pointer;
  background: var(--os-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237eb0ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.form select option { background: var(--os-floating); color: var(--os-text); }
.form input::placeholder { color: var(--os-text-3); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--os-focus-border); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--os-glow); background-color: var(--os-fill-hover); box-shadow: 0 0 0 4px var(--os-active-bg), 0 0 14px -4px var(--os-glow); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-actions p { font-size: .875rem; color: var(--os-text-3); max-width: 28em; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { flex-basis: 100%; font-size: .9375rem; color: var(--os-err); }
.form-panel {
  position: relative; padding: clamp(24px, 3.5vw, 40px); border-radius: 22px;
  border: 1px solid var(--os-focus-border); border-top-color: var(--os-focus-top);
  background: linear-gradient(180deg, var(--os-focus-fill-top), var(--os-focus-fill-bottom) 40%), var(--os-page);
  box-shadow: var(--os-focus-shadow), var(--os-media-shadow);
}
.form-panel::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(28px 22px at 0 0, var(--os-focus-pool), transparent 70%), radial-gradient(28px 22px at 100% 0, var(--os-focus-pool), transparent 70%);
}
.form-panel-head { margin-bottom: 24px; }
.form-panel-head h2 { font-size: 1.625rem; letter-spacing: -0.025em; line-height: 1.15; }
.form-panel-head p:not(.eyebrow) { margin-top: 6px; font-size: .9375rem; color: var(--os-text-3); }

/* ── contact layout ── */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.contact-aside { position: sticky; top: 112px; }
.contact-aside h1 { font-size: clamp(2.625rem, 5.6vw, 4.75rem); line-height: .98; letter-spacing: -0.042em; }
.contact-aside .lead { margin-top: 24px; }
.contact-aside .direct { margin-top: 40px; }

/* ── legal page (privacy): policy text on the ground, one quiet column ── */
.legal .page-section { padding: clamp(128px, 15vw, 184px) 0 var(--os-section-y); }
.legal .section-inner { width: 100%; max-width: calc(46rem + 2 * var(--os-gutter)); margin-inline: auto; padding-inline: var(--os-gutter); }
.legal .section-label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--os-mono); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--os-glow-text);
}
.legal .section-label::before { content: ''; width: 18px; height: 1px; background: currentColor; box-shadow: 0 0 6px var(--os-glow); }
.legal h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1; letter-spacing: -0.042em; }
.legal .sv2-privacy-updated { margin-top: 20px; padding-bottom: 36px; border-bottom: 1px solid var(--os-line-strong); font-family: var(--os-mono); font-size: .75rem; letter-spacing: .06em; color: var(--os-text-3); }
.legal h2 { margin: 44px 0 12px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; }
.legal .dual-text { font-size: 1.0625rem; line-height: 1.7; text-wrap: pretty; }
.legal .dual-text + .dual-text { margin-top: 14px; }
.legal .email-link { color: var(--os-glow-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--os-glow-text) 45%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .email-link:hover { color: var(--os-text); }
.legal .sv2-privacy-list { margin: 4px 0 16px; border-top: 1px solid var(--os-line); }
.legal .sv2-privacy-list li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--os-line); font-size: 1.0625rem; line-height: 1.55; }
.legal .sv2-privacy-list li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--os-glow); box-shadow: 0 0 0 3px var(--os-active-bg); }

/* ── /aos (unlisted): the overnight-audit page on the portal grammar ── */
.aos-page h1 em, .aos-page h2 em { font-style: normal; color: var(--os-glow-text); }
.aos-hero h1 { font-size: clamp(2.375rem, 4.4vw, 4rem); max-width: 14em; }
.aos-proof { margin-top: 24px; font-family: var(--os-mono); font-size: .75rem; letter-spacing: .06em; color: var(--os-text-3); }
.audit { padding: 18px; border-radius: 20px; font-size: .875rem; }
.audit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--os-line); }
.audit-head .t { display: inline-flex; align-items: center; gap: 10px; font-family: var(--os-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--os-text); }
.audit-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--os-ok); box-shadow: 0 0 0 3px var(--os-ok-bg); }
.audit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.audit-card { min-width: 0; padding: 8px 8px 10px; border: 1px solid var(--os-glass-border); border-radius: var(--os-glass-radius); background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); }
.audit-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--os-line); }
.audit-card p { margin-top: 8px; font-size: .75rem; line-height: 1.45; color: var(--os-text-2); }
.queue { position: relative; padding: 12px 14px 4px; border: 1px solid var(--os-glass-border); border-radius: var(--os-glass-radius); background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); }
.queue-label { margin-bottom: 4px; }
.rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--os-line); }
.queue-label + .rec { border-top: 0; }
.rec .what { min-width: 0; }
.rec .client { font-family: var(--os-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--os-text-3); }
.rec .desc { margin-top: 3px; font-size: .8125rem; line-height: 1.4; color: var(--os-text); }
.rec .act { display: flex; gap: 6px; flex: none; }
.chip-btn { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--os-line-strong); font-size: .75rem; font-weight: 500; color: var(--os-text-2); white-space: nowrap; }
.chip-btn.primary { background: var(--os-brand); border-color: var(--os-brand); color: var(--os-on-brand); }
.audit-foot { padding: 12px 4px 2px; font-family: var(--os-mono); font-size: .6875rem; letter-spacing: .04em; color: var(--os-text-3); }
.principle h2 { max-width: 16em; }
.principle h2 span { display: block; }
.principle p { margin-top: 28px; max-width: 40em; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.6; text-wrap: pretty; }
.principle strong { font-weight: 500; color: var(--os-text); }
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.channel { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; border: 1px solid var(--os-glass-border); border-radius: 999px; background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); font-size: .9375rem; font-weight: 500; color: var(--os-text); }
.channel::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--os-glow); box-shadow: 0 0 0 3px var(--os-active-bg), 0 0 8px var(--os-glow); }
.quote { max-width: 52rem; padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--os-focus-top); box-shadow: inset 6px 0 14px -10px var(--os-glow); }
.quote blockquote { font-size: clamp(1.375rem, 2.6vw, 2.125rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--os-text); text-wrap: pretty; }
.quote cite { display: block; margin-top: 20px; font-style: normal; font-family: var(--os-mono); font-size: .75rem; letter-spacing: .08em; color: var(--os-text-3); }
.metrics-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { padding: 28px 24px 8px 0; border-top: 1px solid var(--os-line-strong); }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--os-line); }
.metric .n { font-family: var(--os-cond); font-weight: 600; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -0.01em; color: var(--os-text); }
.metric .l { margin-top: 14px; font-size: 1rem; color: var(--os-text-3); max-width: 14em; }

/* ── /operator-setup (unlisted): fit lists, prose, mockups, phases, modal ── */
.fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fit-col { position: relative; padding: 32px; border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius); background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); }
.fit-col h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 16px; }
.fit-col li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--os-line); font-size: 1.0625rem; line-height: 1.5; }
.fit-col li::before { content: ''; position: absolute; left: 3px; top: 21px; width: 8px; height: 8px; border-radius: 50%; }
.fit-col--yes li::before { background: var(--os-glow); box-shadow: 0 0 0 3px var(--os-active-bg), 0 0 8px var(--os-glow); }
.fit-col--no li::before { border: 1.5px solid var(--os-text-3); }
.prose { max-width: 40em; }
.prose p { font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.6; color: var(--os-text-2); text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose p:last-child { color: var(--os-text); font-weight: 500; }
.mockups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.mockups .frame img { aspect-ratio: 4 / 3.4; object-fit: contain; padding: 18px; }
.phase-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--os-line-strong); }
.phase { padding: 28px 20px 8px 0; }
.phase + .phase { padding-left: 20px; border-left: 1px solid var(--os-line); }
.phase .step-num { font-size: 2.5rem; }
.phase h3 { margin: 18px 0 8px; font-size: 1.125rem; letter-spacing: -0.015em; }
.phase p { font-size: .9375rem; line-height: 1.5; }
.free { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 28px; }
.free b { font-family: var(--os-cond); font-weight: 600; font-size: 3rem; line-height: .9; color: var(--os-text); }
.free span { font-family: var(--os-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--os-text-3); }
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2,11,24,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--os-text-3); font-size: 1.25rem; cursor: pointer; }
.modal-close:hover { background: var(--os-fill-hover); color: var(--os-text); }

/* ── /process Operate step: Google / Meta thesis, in HTML on the site fonts
   (the old SVG's text fell back to a wider font and ran past its cards).
   Two quiet cards bracket into one lit AIREVIN card. ── */
.thesis {
  display: grid; grid-template-columns: minmax(0, 1.4fr) 28px minmax(0, 1fr); align-items: center;
  padding: clamp(16px, 2.2vw, 24px); border-radius: 18px;
  border: 1px solid var(--os-glass-border); background: linear-gradient(180deg, var(--os-surface-top), var(--os-surface-bottom));
  box-shadow: var(--os-media-shadow);
}
.thesis-sides { display: grid; gap: 12px; min-width: 0; }
.thesis-card {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px 12px; align-items: center; min-width: 0;
  padding: 14px; border: 1px solid var(--os-glass-border); border-radius: var(--os-glass-radius);
  background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom));
}
.thesis-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--os-glow-text); background: var(--os-active-bg); border: 1px solid var(--os-focus-border); }
.thesis-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thesis .thesis-title { max-width: none; font-size: .9375rem; font-weight: 500; line-height: 1.25; color: var(--os-text); }
.thesis .thesis-sub { max-width: none; margin-top: 2px; font-size: .75rem; line-height: 1.35; color: var(--os-glow-text); }
.thesis .thesis-body { max-width: none; grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--os-line); font-size: .8125rem; line-height: 1.5; color: var(--os-text-2); }
/* the bracket: both cards wire into one line that runs to the AIREVIN card */
.thesis-join { position: relative; align-self: stretch; }
.thesis-join::before { content: ''; position: absolute; left: 0; width: 50%; top: 25%; bottom: 25%; border: 1.5px solid var(--os-glow); border-left: 0; border-radius: 0 6px 6px 0; opacity: .75; }
.thesis-join::after { content: ''; position: absolute; left: 50%; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--os-glow); box-shadow: 0 0 6px var(--os-glow); }
.thesis-us {
  position: relative; display: grid; gap: 12px; padding: 18px 16px; min-width: 0;
  border: 1px solid var(--os-focus-border); border-top-color: var(--os-focus-top); border-radius: var(--os-glass-radius);
  background: linear-gradient(180deg, var(--os-focus-fill-top), var(--os-focus-fill-bottom) 40%); box-shadow: var(--os-focus-shadow);
}
.thesis .thesis-us img { width: min(118px, 100%); border: 0; border-radius: 0; background: none; box-shadow: none; }
.thesis .thesis-us p { max-width: none; padding-top: 12px; border-top: 1px solid var(--os-line); font-size: .875rem; line-height: 1.45; color: var(--os-text); }

/* ── homepage portal mock: the current portal's chrome + grouped sidebar ── */
.os-wordmark { flex: none; width: 104px; height: auto; }
.os-chrome-end { display: flex; align-items: center; gap: 8px; flex: none; }
.os-side-group { margin-bottom: 26px; }
.os-mock .os-kpi.is-focus::before { display: none; }   /* edge light only, no corner glow */

/* ── single case rows on the ecosystem pages ── */
.case-solo { border-top: 1px solid var(--os-line-strong); }
.case-solo .case { border-top: 0; }
.case-solo .case + .case { border-top: 1px solid var(--os-line); }
/* long values ("16 → 45 same quarter"): the unit drops under the figure */
.case-solo .case-body dd { text-align: right; }
.case-solo .case-body dd span { display: block; margin: 6px 0 0; }

@media (max-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-row { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 380px); }
  .phase-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phase:nth-child(4) { padding-left: 0; border-left: 0; }
  .phase:nth-child(n+4) { border-top: 1px solid var(--os-line); }
}
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 28px 20px 28px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--os-line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--os-line); }
  .timeline-row { grid-template-columns: 64px minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; }
  .metrics-row { grid-template-columns: minmax(0, 1fr); }
  .fit { grid-template-columns: minmax(0, 1fr); }
  .mockups { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .metric + .metric { padding-left: 0; border-left: 0; }
  .timeline-row .frame { grid-column: 2; max-width: 520px; }
}
@media (max-width: 600px) {
  .stat dd { font-size: 3.75rem; }
  .stat { padding-right: 12px; }
  .stat:nth-child(even) { padding-left: 18px; }
  .timeline-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .direct li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .fit-col { padding: 24px 22px; }
  .phase-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .phase, .phase + .phase { padding: 22px 14px 14px 0; border-left: 0; }
  .phase:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--os-line); }
  .phase:nth-child(n+3) { border-top: 1px solid var(--os-line); }
  .thesis { grid-template-columns: minmax(0, 1fr); }
  .thesis-join { height: 20px; }
  .thesis-join::before { display: none; }
  .thesis-join::after { left: 50%; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; margin: 0; }
  .audit { padding: 14px; }
  .audit-cards { grid-template-columns: minmax(0, 1fr); }
  .audit-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
  .audit-card p { margin-top: 0; }
  .rec { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-actions .btn { width: 100%; }
  .timeline-row .frame { grid-column: 1; }
  .stat dd .pill { margin-top: .2em; gap: 5px; padding: 5px 8px; font-size: clamp(.5625rem, 2.9vw, .6875rem); letter-spacing: 0; }
}
@media (max-width: 900px) {
  .page-hero-grid, .close-grid, .deliverable { grid-template-columns: minmax(0, 1fr); }
  .page-hero-grid .frame { max-width: 560px; }
  .close-band .btn-row { justify-content: flex-start; }
  .card-grid, .card-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-item, .step-item + .step-item { padding: 24px 0; border-left: 0; }
  .step-item + .step-item { border-top: 1px solid var(--os-line); }
  .step-tag { margin-top: 14px; }
}
@media (max-width: 600px) {
  .card-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .check-list { columns: 1; }
  .check-list--strip { gap: 8px; }
  .check-list--strip li { padding: 8px 14px 8px 12px; font-size: .875rem; }
  .ledger-col { padding: 24px 22px; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .close-grid { padding: 28px 20px; border-radius: 18px; }
  .close-band .btn-row .btn-primary { flex: 1 1 auto; }
}

/* ═══ RESULTS — the case studies (copy and markup frozen; restyled in place) ═══ */
.results-room {
  /* the frozen charts reference these by name in inline SVG */
  --amber: #ffcf73; --cyan: #38bdf8; --blue-light: #5ba3e8; --blue-pale: #a8cdf5; --white: #f0f4ff;
  position: relative; color: var(--os-text-2);
  /* land the study's card (not its section padding) under the header */
  scroll-margin-top: calc(120px - var(--os-section-y));
}
/* one ground: a lit-centre hairline between studies, as between sections */
.results-room::after {
  content: ''; position: absolute; top: 0; left: var(--os-gutter); right: var(--os-gutter);
  max-width: calc(1288px - 2 * var(--os-gutter)); margin-inline: auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--os-line-strong) 20%, var(--os-line-strong) 80%, transparent);
}
.results-room .page-section { padding: var(--os-section-y) 0; }
.results-room .section-inner { width: 100%; max-width: 1288px; margin-inline: auto; padding-inline: var(--os-gutter); }
.results-room .sv2-case-card { position: relative; isolation: isolate; max-width: 1080px; }
.results-room .section-label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--os-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--os-glow-text);
}
.results-room .section-label::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.results-room h2 { font-size: clamp(2.125rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--os-text); max-width: 18em; }
.results-room h2 em { font-style: normal; color: var(--os-glow-text); }
.results-room h3 { color: var(--os-text); font-weight: 500; letter-spacing: -0.015em; }
.results-room .fit-h3 { margin: clamp(56px, 7vw, 88px) 0 14px; padding-top: 24px; border-top: 1px solid var(--os-line); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; }
.results-room .dual-text { margin-top: 18px; font-size: 1.125rem; line-height: 1.6; color: var(--os-text-2); max-width: 40em; text-wrap: pretty; }
.results-room .dual-text strong { color: var(--os-text); font-weight: 500; }
.results-room .intro-para { margin-top: 18px; font-family: var(--os-mono); font-size: .75rem; letter-spacing: .06em; color: var(--os-text-3); }
.results-room .stats-bar { margin-top: 32px; border-top: 1px solid var(--os-line-strong); }
.results-room .stats-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.results-room .stats-inner--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.results-room .stats-inner--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.results-room .stat-item { padding: 26px 20px 4px 0; }
.results-room .stats-inner .stat-item + .stat-item { padding-left: 20px; border-left: 1px solid var(--os-line); }
.results-room .stat-num { font-family: var(--os-cond); font-weight: 600; font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: .92; letter-spacing: -0.01em; color: var(--os-text); font-variant-numeric: tabular-nums; }
.results-room .stats-bar > .stat-item .stat-num { font-size: clamp(4rem, 9vw, 7.5rem); color: var(--os-glow-text); }
.results-room .stat-lbl { margin-top: 12px; font-size: .9375rem; line-height: 1.4; color: var(--os-text-2); }
.results-room .stats-bar > .stat-item .stat-lbl { font-size: 1.125rem; max-width: 26em; }
.results-room .stat-vs { margin-top: 6px; font-family: var(--os-mono); font-size: .75rem; letter-spacing: .04em; color: var(--os-glow-text); }
.results-room .results-chart { margin-top: 28px; padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius); background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); }
.results-room .results-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.results-room .results-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: .8125rem; color: var(--os-text-3); }
.results-room .results-chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.results-room .results-chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.results-room .cs-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
.results-room .cs-donuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.results-room .sv2-table-note, .results-room .section-caveat { margin-top: 14px; font-size: .875rem; line-height: 1.55; color: var(--os-text-3); max-width: 46em; }
.results-room .sv2-timeline { margin-top: 20px; border-top: 1px solid var(--os-line); }
.results-room .sv2-timeline-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--os-line); }
.results-room .step-num { display: block; font-family: var(--os-cond); font-weight: 500; font-size: 2.5rem; line-height: .9; color: var(--os-glow-text); }
.results-room .sv2-timeline-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.results-room .sv2-timeline-body p { font-size: 1rem; line-height: 1.55; color: var(--os-text-2); max-width: 36em; }
.results-room .service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.results-room .service-card { padding: 26px 24px; border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius); background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom)); }
.results-room .service-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.results-room .card-body { font-size: 1rem; line-height: 1.55; color: var(--os-text-2); }
.results-room .measure-details { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--os-line); border-bottom: 1px solid var(--os-line); }
.results-room .measure-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.125rem; color: var(--os-text);
}
.results-room .measure-details summary::-webkit-details-marker { display: none; }
.results-room .measure-details summary::after { content: '+'; font-family: var(--os-mono); font-size: 1.25rem; color: var(--os-glow-text); transition: transform .25s var(--os-ease); }
.results-room .measure-details[open] summary::after { transform: rotate(45deg); }
.results-room .measure-details-body { padding-bottom: 24px; }
.results-room .measure-details-body .dual-text:first-child { margin-top: 0; }
.results-room .card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; margin-right: 28px; font-size: .9375rem; font-weight: 500; color: var(--os-glow-text); }
.results-room .card-link:hover { color: var(--os-text); }
.results-room .viz-bar { transform-box: fill-box; }
.results-room .results-chart:not(.cs-scroll):not(.cs-donuts) { max-width: 720px; }

/* Deep link (#case-golf …): the study's card lights with the focus grammar.
   :target works with JS off; site.js adds .is-target for filtered / aliased
   links. The ring sits outside the card, so nothing reflows. */
.results-room .sv2-case-card::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -32px calc(-1 * min(32px, var(--os-gutter) - 8px));
  border: 1px solid transparent; border-radius: 24px; opacity: 0;
  transition: opacity .6s var(--os-ease);
}
.results-room:target .sv2-case-card::before, .results-room.is-target .sv2-case-card::before, .results-room:has(> .case-alias:target) .sv2-case-card::before {
  opacity: 1; border-color: var(--os-focus-border); border-top-color: var(--os-focus-top);
  background:
    radial-gradient(28px 22px at 0 0, var(--os-focus-pool), transparent 70%),
    radial-gradient(28px 22px at 100% 0, var(--os-focus-pool), transparent 70%),
    linear-gradient(180deg, var(--os-focus-fill-top), var(--os-focus-fill-bottom) 30%);
  box-shadow: var(--os-focus-shadow);
}
/* old anchors (#case-parts, #case-home) keep working */
.case-alias { position: absolute; top: 0; scroll-margin-top: calc(120px - var(--os-section-y)); }
.results-room[hidden] { display: none; }

/* ── case-study picker (results hero): Trades / E-commerce filter cards ── */
.picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.picker-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 10px;
  border: 1px solid var(--os-glass-border); border-radius: var(--os-card-radius);
  background: linear-gradient(180deg, var(--os-glass-top), var(--os-glass-bottom));
  transition: border-color .35s var(--os-ease), box-shadow .35s var(--os-ease), opacity .8s var(--os-ease), transform .8s var(--os-ease);
}
.picker-label { font-family: var(--os-mono); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--os-glow-text); margin-bottom: 6px; }
/* JS turns the label into the filter toggle: a pill with a lamp. */
.picker-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 14px 6px 12px; margin: -6px 0 0 -12px;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  transition: background-color .2s, border-color .2s, color .2s;
}
.picker-toggle::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .2s, box-shadow .2s; }
.picker-toggle:hover { background: var(--os-side-hover); border-color: var(--os-line-strong); }
.picker-toggle[aria-pressed="true"] { color: var(--os-text); background: var(--os-active-bg); border-color: var(--os-focus-border); }
.picker-toggle[aria-pressed="true"]::before { background: var(--os-glow); border-color: var(--os-glow); box-shadow: 0 0 8px var(--os-glow); }
.picker-card.is-on { border-color: var(--os-focus-border); border-top-color: var(--os-focus-top); box-shadow: var(--os-focus-shadow); }
.picker .direct { margin-top: 8px; border-top: 0; }
.picker .direct li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 0; border-top: 1px solid var(--os-line); }
.picker .direct a { font-size: .9375rem; }

@media (max-width: 900px) {
  .results-room .stats-inner, .results-room .stats-inner--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-room .stats-inner .stat-item + .stat-item { padding-left: 0; border-left: 0; }
  .results-room .stats-inner .stat-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--os-line); }
  .results-room .stats-inner .stat-item:nth-child(n+3) { border-top: 1px solid var(--os-line); margin-top: 20px; }
  .results-room .cs-split { grid-template-columns: minmax(0, 1fr); }
  .results-room .service-grid { grid-template-columns: minmax(0, 1fr); }
  .picker { max-width: 640px; }
}
@media (max-width: 600px) {
  .results-room .stats-inner--2 { grid-template-columns: minmax(0, 1fr); }
  .results-room .cs-scroll--wide { overflow-x: auto; }
  .results-room .cs-scroll--wide svg { min-width: 640px; }
  .results-room .cs-donuts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .results-room .sv2-timeline-item { grid-template-columns: 56px minmax(0, 1fr); }
  .results-room .step-num { font-size: 2rem; }
  .picker { grid-template-columns: minmax(0, 1fr); }
}

/* ═══ ARRIVING FROM THE EXPERIENCE ═══
   ?from=experience (index.html adds .from-xp; skipped under reduced motion)
   opens on the experience's navy with the undotted dark wordmark sitting
   exactly on the header logo (same file, same 156px box, centred in the
   72px header), then the veil and the overlay fade together, so the navy
   dissolves into the dark site with nothing jumping. */
.from-xp body::after, .from-xp .site-header::before {
  content: ''; position: fixed; pointer-events: none;
  animation: from-xp-reveal .8s .25s var(--os-ease) forwards;
}
.from-xp .site-header::before { inset: 0 0 auto 0; height: 100vh; z-index: 1000; background: var(--os-page); }
.from-xp body::after {
  z-index: 1001; width: 156px; height: calc(156px * 66 / 486); top: calc((72px - 156px * 66 / 486) / 2);
  left: max(var(--os-gutter), calc((100% - 1288px) / 2 + var(--os-gutter)));
  background: url('/assets/logo/airevin-wordmark-dark.png') center / contain no-repeat;
}
@keyframes from-xp-reveal { to { opacity: 0; visibility: hidden; } }

/* ═══ MOTION GUARD ═══
   The pulse only runs when the visitor allows motion. Under reduce, every
   animation and transition is off and the final state shows. */
@media (prefers-reduced-motion: no-preference) {
  .os-chart-end::after { animation: os-pulse 2.4s ease-out infinite; }
  @keyframes os-pulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(2.6); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .wiring .wires-live path, .js .case-chart .cc-rev, .js .case-chart .cc-spend { stroke-dashoffset: 0; }
  .js .case-chart .cc-area, .js .case-chart .cc-dot, .js .case-chart .cc-note, .js .case-chart .cc-mark, .js .case-chart .cc-end { opacity: 1; }
  .js .os-figure .os-chart .main, .js .os-figure .os-spark path { clip-path: none; }
  .js .os-figure .os-chart .fill, .js .os-figure .os-chart-end, .js .os-figure .os-spark-dot { opacity: 1; }
  .js .os-figure .os-bars span, .js .os-figure .os-attr-stack span { transform: none; }
  .os-chart-end::after { display: none; }
}
