/* ═══════════════════════════════════════════════════════════════════════
   AIREVIN — site stylesheet
   Used by every page except privacy.html and the standalone aos.html /
   setup guide, which keep styles.css / their own embedded styles.
   Self-hosted /fonts only. Breakpoints: 1100 / 900 / 600.
   ═══════════════════════════════════════════════════════════════════════ */

@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'); }

:root {
  /* light surfaces */
  --paper:      #ffffff;
  --warm:       #f8f6f1;
  --mist:       #f2f4f7;
  /* ink */
  --ink:        #0a1628;
  --ink-2:      #364152;
  --ink-3:      #667085;
  --line:       rgba(10, 22, 40, 0.10);
  --line-soft:  rgba(10, 22, 40, 0.06);
  /* dark surfaces */
  --navy:       #071224;
  --navy-deep:  #020b18;
  --charcoal:   #11161e;
  --on-dark:    #f0f4ff;
  --on-dark-2:  rgba(240, 244, 255, 0.68);
  --on-dark-3:  rgba(240, 244, 255, 0.46);
  --line-dark:  rgba(240, 244, 255, 0.10);
  /* accent */
  --blue:       #1a5cf0;
  --blue-hover: #0f49d2;
  --blue-tint:  #eaf1ff;
  --blue-glow:  #5b9bff;
  --cyan:       #38bdf8;

  --sans: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
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(--blue); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--cyan); }

.visually-hidden {
  position: absolute; 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(--ink); color: #fff; 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(--gutter); }

/* ═══ TYPE ═══ */
h1, h2, h3 { font-weight: 500; color: var(--ink); 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(--blue); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

/* ═══ BUTTONS / LINKS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  font-family: var(--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(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn .arrow, .text-link .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 1px 2px rgba(10,22,40,.18), 0 8px 24px -8px rgba(26,92,240,.55);
}
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 1px 2px rgba(10,22,40,.2), 0 12px 28px -8px rgba(26,92,240,.7); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #16253d; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: rgba(10,22,40,.28); }
.btn-quiet { padding-inline: 12px; color: var(--ink); }
.btn-quiet:hover { color: var(--blue); }
.dark .btn-quiet { color: var(--on-dark); }
.dark .btn-quiet:hover { color: var(--cyan); }
.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(--blue);
}
.text-link:hover { color: var(--blue-hover); }

/* ═══ HEADER ═══ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo-link { display: block; flex: none; }
/* Light-surface wordmark: dark letterforms, brand-blue REV
   (assets/airevin_logo-on-light.png, recolored from airevin_logo.png). */
.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(--ink-2);
  transition: color .2s, background-color .2s;
}
.primary-nav a:hover { color: var(--ink); background: rgba(10,22,40,.05); }
.primary-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.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(--ink);
  transition: transform .25s var(--ease), top .25s var(--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(--line-soft); background: rgba(255,255,255,.98); }
.mobile-menu nav { padding: 12px var(--gutter) 28px; max-height: calc(100dvh - 72px); overflow-y: auto; }
.mobile-menu li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.mobile-menu .btn { width: 100%; margin-top: 24px; }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  padding: clamp(136px, 17vw, 208px) 0 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(26,92,240,.08), transparent 70%),
    linear-gradient(180deg, var(--warm) 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero::before {
  /* faint engineering grid, fading out toward the copy */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 0%, transparent 70%);
}
.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; }

.wiring { width: 100%; height: auto; overflow: visible; }
.wiring .wires-base path { stroke: rgba(10,22,40,.14); stroke-width: 1.5; }
.wiring .wires-live path { stroke: var(--blue); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wiring .node > rect:first-child, .wiring .out rect {
  fill: var(--paper); stroke: var(--line);
  filter: drop-shadow(0 1px 1px rgba(10,22,40,.04)) drop-shadow(0 12px 24px rgba(10,22,40,.06));
}
.wiring .node-ico { fill: var(--blue-tint); }
.wiring .glyph { stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wiring .node-title, .wiring .out-title { font-family: var(--sans); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; fill: var(--ink); }
.wiring .node-sub, .wiring .out-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; fill: var(--ink-3); }
.wiring .port { fill: var(--paper); stroke: var(--blue); stroke-width: 1.75; }
.wiring .hub { fill: var(--ink); }
.wiring .hub-ring { stroke: rgba(26,92,240,.22); stroke-width: 1; stroke-dasharray: 3 5; }
.wiring .hub-text { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; fill: #fff; }
.wiring .out-title { fill: var(--blue); }

.js .wiring .wires-live path { stroke-dashoffset: 1; animation: draw 1.1s var(--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; } }

.platform-strip {
  position: relative;
  display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap;
  margin-top: clamp(64px, 8vw, 112px);
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.strip-label {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.platform-strip ul { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-left: auto; }
.platform-strip li {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 500; color: var(--ink); letter-spacing: -0.005em;
}
.platform-strip svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ SECTIONS ═══ */
.section { padding: var(--section) 0; position: relative; }
.tint { background: var(--mist); }
.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(--ink-2); max-width: 30em; text-wrap: pretty; }

.dark { background: var(--navy); color: var(--on-dark-2); }
.dark h2, .dark h3 { color: var(--on-dark); }
.dark .eyebrow { color: var(--cyan); }
.dark .section-intro, .dark .lead { color: var(--on-dark-2); }
.dark--charcoal { background: var(--charcoal); }
.dark--deep { background: var(--navy-deep); }

/* reveal — only armed when JS is present; content is visible without it */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ═══ PLATFORMS ═══ */
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.platform-card {
  display: flex; flex-direction: column;
  padding: 28px 26px 26px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10,22,40,.03);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), opacity .8s var(--ease);
}
.platform-card:hover { border-color: rgba(26,92,240,.35); box-shadow: 0 1px 2px rgba(10,22,40,.04), 0 24px 48px -24px rgba(10,22,40,.22); }
.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(--blue-tint); color: var(--blue);
  transition: background-color .3s, color .3s;
}
.platform-card:hover .platform-ico { background: var(--blue); color: #fff; }
.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(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.platform-card h3 { font-size: 1.625rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.platform-card p { font-size: 1rem; line-height: 1.5; margin-bottom: 28px; }
.platform-card .text-link { margin-top: auto; }

.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(--line), var(--blue)); }
.bus-drops span::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--paper); border: 1.75px solid var(--blue); z-index: 1;
}
.bus-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 26px;
  border: 1px solid rgba(26,92,240,.28); border-radius: var(--radius);
  background: linear-gradient(90deg, var(--blue-tint), #f6f9ff);
}
.bus-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(26,92,240,.16); }
.bus-bar p { font-size: 1rem; color: var(--ink-2); }
.bus-bar strong { font-weight: 500; color: var(--ink); }

/* ═══ AIREVIN OS ═══ */
.os-section {
  background:
    radial-gradient(ellipse 60% 40% at 50% 38%, rgba(26,92,240,.20), transparent 70%),
    var(--navy);
  overflow: hidden;
}
.os-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
  mask-image: linear-gradient(180deg, #000, transparent 55%);
}
.os-section .container { position: relative; }
.os-rules { margin-top: 22px; border-top: 1px solid var(--line-dark); }
.os-rules li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line-dark);
  font-size: 1rem; color: var(--on-dark);
}
.os-rules span { flex: none; width: 64px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }

.os-figure figcaption {
  margin-top: 20px; text-align: center;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--on-dark-3);
}
.os {
  --g: #4f8dff; --m: #38bdf8; --l: #a5b9ff; --a: #7c8aa5;
  border-radius: 18px;
  background: linear-gradient(180deg, #0d1b33, #0a1528);
  border: 1px solid rgba(240,244,255,.12);
  box-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);
  overflow: hidden;
  font-size: .8125rem; line-height: 1.4; color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}
.os .c-g { background: var(--g); } .os .c-m { background: var(--m); } .os .c-l { background: var(--l); } .os .c-a { background: var(--a); }

.os-chrome {
  display: flex; align-items: center; gap: 16px;
  height: 46px; padding: 0 18px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255,255,255,.02);
}
.os-dots { display: flex; gap: 7px; }
.os-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(240,244,255,.14); }
.os-title { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--on-dark); }
.os-title em { font-style: normal; color: var(--on-dark-3); }
.os-badge {
  margin-left: auto;
  font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: #ffd58a; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,190,80,.10); border: 1px solid rgba(255,190,80,.28);
}
.os-body { display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.os-side { padding: 22px 14px; border-right: 1px solid var(--line-dark); }
.os-side-label { padding: 0 10px; margin-bottom: 8px; font-family: var(--mono); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); }
.os-side ul { margin-bottom: 26px; }
.os-side li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--on-dark-2); }
.os-side li.is-active { background: rgba(79,141,255,.14); color: var(--on-dark); }
.os-side svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.os-side b { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: rgba(255,190,80,.16); color: #ffd58a; font-size: .6875rem; font-weight: 500; text-align: center; }
.os-sources i { width: 7px; height: 7px; border-radius: 50%; margin: 0 4px; }

.os-main { padding: 24px clamp(16px, 2.4vw, 28px) 28px; min-width: 0; }
.os-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.os-h { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; color: var(--on-dark); }
.os-sub { font-size: .75rem; color: var(--on-dark-3); }
.os-filters { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: rgba(240,244,255,.05); border: 1px solid var(--line-dark); }
.os-chip { padding: 5px 11px; border-radius: 6px; font-size: .75rem; color: var(--on-dark-3); }
.os-chip.is-on { background: rgba(240,244,255,.10); color: var(--on-dark); }

.os-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi, .panel {
  border: 1px solid var(--line-dark); border-radius: 12px;
  background: linear-gradient(180deg, rgba(240,244,255,.045), rgba(240,244,255,.015));
}
.kpi { position: relative; padding: 16px 16px 14px; overflow: hidden; }
.kpi-label { font-size: .75rem; color: var(--on-dark-3); margin-bottom: 6px; }
.kpi-value { font-family: var(--cond); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.005em; color: var(--on-dark); }
.spark { width: 100%; height: 28px; margin-top: 12px; fill: none; }
.spark path { stroke: var(--g); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; }

.os-panels { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; }
.panel { padding: 16px 18px 18px; min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title { font-size: .8125rem; font-weight: 500; color: var(--on-dark); }
.panel-legend, .panel-note, .panel-foot { font-size: .6875rem; color: var(--on-dark-3); }
.panel-legend { display: flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 12px; height: 2px; border-radius: 2px; margin-left: 8px; }
.lg-cur { background: var(--g); }
.lg-prev { background: repeating-linear-gradient(90deg, var(--on-dark-3) 0 3px, transparent 3px 6px); }

.chart { position: relative; height: 200px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid span { height: 1px; background: var(--line-dark); }
.rev-line { fill: none; stroke: var(--g); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; }
.rev-prev { fill: none; stroke: rgba(240,244,255,.3); stroke-width: 1.25; stroke-dasharray: 3 4; }
.chart-end {
  position: absolute; right: -4px; top: calc(30.3 / 200 * 100% - 4px);
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(79,141,255,.45), 0 0 16px 2px rgba(79,141,255,.8);
}
.chart-x { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: .625rem; letter-spacing: .06em; color: var(--on-dark-3); }

.attr-stack { display: flex; gap: 3px; height: 10px; margin-bottom: 16px; }
.attr-stack span { width: var(--w); border-radius: 3px; transform-origin: left; }
.attr-rows li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-dark); }
.attr-rows i { width: 8px; height: 8px; border-radius: 2px; }
.attr-rows span { color: var(--on-dark); }
.attr-rows b { font-weight: 500; color: var(--on-dark); text-align: right; }
.attr-rows em { grid-column: 2 / -1; font-style: normal; font-size: .6875rem; color: var(--on-dark-3); display: none; }
.attr-rows li { grid-template-columns: 8px minmax(0, 1fr) auto auto; }
.attr-rows em { display: block; grid-column: auto; min-width: 62px; text-align: right; }
.panel-foot { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.panel-foot i { width: 8px; height: 8px; border-radius: 2px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.bars span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--g), rgba(79,141,255,.28)); transform-origin: bottom; }
.bars span:last-child { background: linear-gradient(180deg, #fff, var(--g)); }

.queue li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-dark); }
.queue li:last-child { padding-bottom: 0; }
.queue i { width: 8px; height: 8px; border-radius: 2px; }
.queue span { color: var(--on-dark); }
.st { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.st-wait { color: #ffd58a; background: rgba(255,190,80,.10); border: 1px solid rgba(255,190,80,.26); }
.st-ok { color: #8fe3b4; background: rgba(80,210,140,.10); border: 1px solid rgba(80,210,140,.26); }

/* chart motion — plays once when the dashboard scrolls into view */
.js .os-figure .rev-line, .js .os-figure .spark path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.js .os-figure .rev-area, .js .os-figure .chart-end { opacity: 0; transition: opacity .9s ease 1.3s; }
.js .os-figure .bars span { transform: scaleY(0); transition: transform .8s var(--ease); transition-delay: calc(.3s + var(--i, 0) * 40ms); }
.js .os-figure .attr-stack span { transform: scaleX(0); transition: transform .9s var(--ease) .4s; }
.js .os-figure.is-in .rev-line, .js .os-figure.is-in .spark path { stroke-dashoffset: 0; }
.js .os-figure.is-in .rev-area, .js .os-figure.is-in .chart-end { opacity: 1; }
.js .os-figure.is-in .bars span, .js .os-figure.is-in .attr-stack span { transform: none; }

/* ═══ BY THE NUMBERS ═══ */
.numbers { background: var(--warm); }
.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(--ink); }
.stat { padding: 36px 28px 8px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat dd {
  display: flex; align-items: flex-start;
  font-family: var(--cond); font-weight: 600;
  font-size: clamp(5rem, 11vw, 10rem); line-height: .86; letter-spacing: -0.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat sup { font-size: .5em; line-height: 1; color: var(--blue); margin: .06em 0 0 .04em; }
.stat dt { margin-top: 28px; font-size: 1rem; line-height: 1.4; color: var(--ink-3); max-width: 15em; }
.stat dt strong { display: block; font-weight: 500; color: var(--ink); font-size: 1.125rem; letter-spacing: -0.01em; }

/* ═══ PROCESS ═══ */
.layers { border-top: 1px solid var(--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(--line);
}
.layer-num { align-self: start; font-family: var(--cond); font-weight: 500; font-size: clamp(3rem, 5vw, 4.5rem); line-height: .9; color: var(--blue); }
.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(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-2);
  padding: 8px 12px; border-radius: 8px; background: var(--mist); max-width: none;
}
.layer-copy .text-link { display: flex; width: fit-content; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.layer-media img {
  width: 100%; border-radius: 14px;
  background: var(--navy); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(10,22,40,.4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.layer:hover .layer-media img { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(10,22,40,.5); }
.layer-media figcaption {
  margin-top: 12px;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-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 { padding: 30px 32px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.who-group h3 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 20px;
}
.who-group h3::after { content: ''; flex: 1; height: 1px; background: var(--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(--ink); }
.who-group li:not(:last-child)::after { content: '/'; margin: 0 .5em; color: var(--blue); font-weight: 400; opacity: .55; }

/* ═══ RESULTS ═══ */
.results { padding-top: clamp(56px, 7vw, 96px); }
.results::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); max-width: calc(1288px - 2 * var(--gutter)); margin-inline: auto; height: 1px; background: var(--line); }
.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(--ink);
}
.case + .case { border-top-color: var(--line); }
.case-index { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.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(--ink-3); }
.case-num {
  font-family: var(--cond); font-weight: 600; color: var(--ink);
  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(--ink-3); opacity: .7; }
.case-num--range .to-arrow { font-family: var(--sans); font-weight: 400; font-size: .5em; color: var(--blue); align-self: center; }
.case-num--range .to { color: var(--blue); }
.case-num-label { margin-top: 18px; font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--ink-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(--line); }
.case-body dt { font-size: .9375rem; color: var(--ink-3); }
.case-body dd { font-family: var(--cond); font-weight: 600; font-size: 1.625rem; line-height: 1; color: var(--ink); white-space: nowrap; }
/* Steel case: real cumulative revenue vs. spend — the one chart on the page */
.case-chart { grid-column: 1 / -1; margin-top: 12px; }
.case-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cc-grid { stroke: var(--line); }
.cc-base { stroke: var(--ink); stroke-opacity: .35; }
.cc-axis { font-family: var(--mono); font-size: 13px; fill: var(--ink-3); }
.cc-area { fill: var(--blue); fill-opacity: .07; }
.cc-rev { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.cc-spend { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 1; }
.cc-mark { stroke: var(--ink); stroke-opacity: .3; stroke-dasharray: 2 4; }
.cc-dot { fill: var(--paper); stroke: var(--blue); stroke-width: 3; }
.cc-note { font-family: var(--sans); font-size: 15px; fill: var(--ink-2); }
.cc-end { font-family: var(--cond); font-weight: 600; font-size: 22px; }
.cc-end--rev { fill: var(--blue); }
.cc-end--spend { fill: var(--ink-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(--ink-3); }
.cc-key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--blue); }
.cc-key--spend { background: var(--ink-3); margin-left: 12px; }
.cc-src { margin-left: auto; font-family: var(--mono); font-size: .75rem; }
.js .case-chart .cc-rev, .js .case-chart .cc-spend { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--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; }
.case-body dd span { font-family: var(--sans); font-weight: 400; font-size: .875rem; color: var(--ink-3); margin-left: 4px; }
.results-foot { padding-top: 32px; border-top: 1px solid var(--line); }

/* ═══ COMPARE ═══ */
.compare-wrap { border-top: 1px solid rgba(240,244,255,.28); }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 24px 28px 24px 0; border-bottom: 1px solid var(--line-dark); }
.compare-table thead th { padding-top: 22px; padding-bottom: 22px; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
.compare-table tbody th { width: 22%; font-size: 1.0625rem; font-weight: 500; color: var(--on-dark); letter-spacing: -0.01em; }
.compare-table td { font-size: 1rem; line-height: 1.45; color: var(--on-dark-2); }
.compare-table .col-us { padding-left: 28px; background: rgba(79,141,255,.09); color: var(--on-dark); border-bottom-color: rgba(79,141,255,.18); }
.compare-table thead .col-us { color: #fff; box-shadow: inset 0 2px 0 var(--blue-glow); }
.compare-table td.col-us + td, .compare-table th.col-us + th { padding-left: 28px; }
.compare-table tbody tr { transition: background-color .25s; }
.compare-table tbody tr:hover { background: rgba(240,244,255,.025); }

/* ═══ FINAL CTA ═══ */
.cta {
  background:
    radial-gradient(ellipse 50% 70% at 12% 100%, rgba(26,92,240,.30), transparent 70%),
    radial-gradient(ellipse 40% 50% at 95% 0%, rgba(56,189,248,.10), transparent 70%),
    var(--navy-deep);
  border-top: 1px solid var(--line-dark);
}
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px clamp(32px, 6vw, 96px); align-items: center; }
.cta h2 { font-size: clamp(2.75rem, 7vw, 6rem); line-height: .97; letter-spacing: -0.045em; }
.cta .lead { margin-top: 28px; max-width: 28em; }
/* ═══ 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(--navy); box-shadow: 0 30px 60px -30px rgba(10,22,40,.45); }
.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(--ink-3); }
.founder-bio { margin-top: 24px; max-width: 34em; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.founder-bio + .founder-bio { margin-top: 16px; }
.career { margin-top: 48px; border-top: 1px solid var(--ink); }
.career li { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr); gap: 4px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.career-year { font-family: var(--cond); font-weight: 600; font-size: 1.375rem; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.career-role { font-weight: 500; color: var(--ink); }
.career-note { font-size: .9375rem; color: var(--ink-3); }
.career li:last-child .career-role { color: var(--blue); }
.operator { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.operator-photo { flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(240,244,255,.22); }
.operator-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.1); transform-origin: 36% 24%; }
.operator strong { display: block; font-weight: 500; font-size: 1.125rem; color: var(--on-dark); letter-spacing: -0.01em; }
.operator span { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); }
.cta-points { border-top: 1px solid var(--line-dark); }
.cta-points li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.cta-points strong { font-weight: 500; color: var(--on-dark); }
.cta-points span { color: var(--on-dark-2); }

/* ═══ FOOTER ═══ */
.site-footer { border-top: 1px solid var(--line-dark); padding: 48px 0 40px; font-size: .9375rem; }
.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(--on-dark-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(--on-dark-2); transition: color .2s; }
.footer-links a:hover, .footer-legal a:hover { color: #fff; }
.footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--on-dark-3); font-size: .8125rem; }
.footer-legal a { text-decoration: underline; text-decoration-color: rgba(240,244,255,.25); text-underline-offset: 3px; }

/* ═══ RESPONSIVE ═══ */
@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-body { grid-template-columns: minmax(0, 1fr); }
  .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; }
  .platform-strip ul { margin-left: 0; }
  .os-panels { grid-template-columns: minmax(0, 1fr); }
  .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(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .layer { grid-template-columns: 64px minmax(0, 1fr); }
  .layer-media { grid-column: 2; max-width: 520px; }
  .who-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }

  /* comparison table → stacked rows */
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare-table tbody tr { padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
  .compare-table tbody tr:hover { background: none; }
  .compare-table tbody th { width: auto; padding: 0 0 16px; border: 0; font-size: 1.25rem; }
  .compare-table td, .compare-table td.col-us + td { padding: 12px 16px; border: 0; border-radius: 10px; }
  .compare-table td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3);
  }
  .compare-table td.col-us { margin-bottom: 4px; box-shadow: inset 2px 0 0 var(--blue-glow); }
  .compare-table td.col-us::before { color: var(--cyan); }
}

@media (max-width: 600px) {
  .hero-visual { display: none; }
  .btn-row .btn-primary { flex: 1 1 auto; }
  .platform-strip { flex-direction: column; align-items: flex-start; }
  .platform-strip ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; width: 100%; }
  .platform-strip li { font-size: .9375rem; }
  .platform-grid { grid-template-columns: minmax(0, 1fr); }
  .bus-bar { align-items: flex-start; padding: 18px 20px; }
  .bus-dot { margin-top: 9px; }
  .os { border-radius: 14px; }
  .os-title em, .os-filters .os-chip:not(.is-on) { display: none; }
  .os-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .os-panels { gap: 8px; }
  .chart { height: 150px; }
  .attr-rows li { grid-template-columns: 8px minmax(0, 1fr) auto; }
  .attr-rows em { display: none; }
  .queue li { grid-template-columns: 8px minmax(0, 1fr); }
  .queue .st { grid-column: 2; justify-self: start; }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .layer-media { grid-column: 1; }
  .stat dd { font-size: 3.75rem; }
  .stat { padding-right: 12px; }
  .stat:nth-child(even) { padding-left: 18px; }
  .who-group { padding: 24px 22px 26px; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .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); }
  .career-note { grid-column: 2; }
  .case-chart { margin-inline: calc(-1 * var(--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%; }
}

/* ═══ ARRIVING FROM THE EXPERIENCE ═══
   experience.airevin.com hands off with its logo flowed into the header
   logo's spot. index.html adds .from-xp on ?from=experience; the page opens
   under the same navy with the on-dark logo exactly over .logo, then fades.
   airevin_logo.png letters are 981 of its 1003px wide and start 21px down,
   so at 159.5px wide they match the 156px .logo, centred in the 72px header. */
.from-xp body::before,
.from-xp body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  animation: from-xp-reveal .8s .25s var(--ease) forwards;
}
.from-xp body::before { inset: 0; z-index: 1000; background: var(--navy-deep); }
.from-xp body::after {
  z-index: 1001;
  top: 23.5px;
  left: max(var(--gutter), calc((100% - 1288px) / 2 + var(--gutter)));
  width: 159.5px;
  height: 25px;
  background: url('/airevin_logo.png') center / contain no-repeat;
}
@keyframes from-xp-reveal { to { opacity: 0; visibility: hidden; } }

@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 .os-figure .rev-line, .js .os-figure .spark path { stroke-dashoffset: 0; }
  .js .os-figure .rev-area, .js .os-figure .chart-end { opacity: 1; }
  .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 .bars span, .js .os-figure .attr-stack span { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   INTERIOR PAGES — shared primitives (audit, ecosystems, process, results,
   contact, resources). Built from the same tokens as the homepage.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── page hero ── */
.page-hero {
  position: relative;
  padding: clamp(128px, 15vw, 184px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(ellipse 60% 60% at 90% 0%, rgba(26,92,240,.07), transparent 70%),
    linear-gradient(180deg, var(--warm) 0%, var(--paper) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 0%, transparent 70%);
}
.page-hero .container { position: relative; }
.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, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; max-width: 12em; }
.page-hero .lead { margin-top: 28px; }
.page-hero--solo h1 { max-width: 13em; }
.page-hero--tight { padding-bottom: clamp(40px, 5vw, 64px); }

/* ── framed figure (dark diagrams on light pages) ── */
.frame { margin: 0; }
.frame img, .frame video {
  display: block; width: 100%; height: auto; border-radius: 16px;
  background: var(--navy); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(10,22,40,.06), 0 40px 80px -40px rgba(10,22,40,.45);
}
.frame figcaption { margin-top: 12px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.frame + .frame { margin-top: 16px; }
.dark .frame img, .dark .frame video { border-color: var(--line-dark); }
.dark .frame figcaption { color: var(--on-dark-3); }

/* ── cards ── */
.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 {
  display: flex; flex-direction: column;
  padding: 30px 28px 28px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10,22,40,.03);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-color: rgba(26,92,240,.3); box-shadow: 0 1px 2px rgba(10,22,40,.04), 0 24px 48px -28px rgba(10,22,40,.22); }
.card-tag { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); 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; }
.card .text-link { margin-top: auto; padding-top: 24px; }
.tint .card { background: var(--paper); }

/* ── component checklist (audit depth) ── */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ledger-col { padding: 32px 32px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.ledger-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.ledger-head h3 { font-size: 1.625rem; letter-spacing: -0.025em; }
.ledger-count { font-family: var(--cond); font-weight: 600; font-size: 2.75rem; line-height: .9; color: var(--blue); font-variant-numeric: tabular-nums; }
.ledger-count small { font-family: var(--mono); font-size: .6875rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-left: 6px; }
.ledger-sub { margin: 16px 0 8px; font-size: .9375rem; color: var(--ink-3); }
.check-list { columns: 2; column-gap: 28px; }
.check-list li {
  break-inside: avoid; display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
  font-size: .9844rem; font-weight: 500; color: var(--ink); letter-spacing: -0.005em;
}
.check-list li::before {
  content: ''; flex: none; width: 16px; height: 16px; border-radius: 5px;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231a5cf0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list--strip { columns: 4; }
.fine { margin-top: 20px; font-size: .9375rem; color: var(--ink-3); max-width: 46em; }
.dark .fine { color: var(--on-dark-3); }

/* ── deliverable banner (full-width card) ── */
.deliverable {
  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);
  background: var(--navy); color: var(--on-dark-2); border-radius: var(--radius);
  background-image: radial-gradient(ellipse 60% 80% at 0% 100%, rgba(26,92,240,.28), transparent 70%);
}
.deliverable h3 { color: var(--on-dark); 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 { color: var(--cyan); margin-bottom: 18px; }
.deliverable img { width: 100%; border-radius: 12px; border: 1px solid var(--line-dark); }

/* ── numbered steps ── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); counter-reset: none; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-item { padding: 32px 28px 8px 0; }
.step-item + .step-item { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { display: block; font-family: var(--cond); font-weight: 500; font-size: clamp(2.75rem, 4.4vw, 4rem); line-height: .9; color: var(--blue); }
.step-tag { display: inline-block; margin: 24px 0 12px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-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; }
.dark .steps { border-top-color: rgba(240,244,255,.3); }
.dark .step-item + .step-item { border-left-color: var(--line-dark); }
.dark .step-num { color: var(--blue-glow); }
.dark .step-tag { color: var(--on-dark-3); }
.dark .step-item p { color: var(--on-dark-2); }

/* ── price block ── */
.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(--ink); border-bottom: 1px solid var(--line);
}
.price-amt { font-family: var(--cond); font-weight: 600; font-size: clamp(4.5rem, 10vw, 8rem); line-height: .84; letter-spacing: -0.02em; color: var(--ink); }
.price-copy strong { display: block; font-weight: 500; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 6px; }
.price-copy p { font-size: 1.0625rem; color: var(--ink-2); max-width: 32em; }
.price-copy .btn-row { margin-top: 20px; }

/* ── pill / id badge ── */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px rgba(34,160,107,.16); }

/* ── proof strip (two big figures + caveat) ── */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
.proof .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── closing band (interior pages) ── */
.close-band {
  background:
    radial-gradient(ellipse 50% 80% at 10% 100%, rgba(26,92,240,.30), transparent 70%),
    radial-gradient(ellipse 40% 50% at 95% 0%, rgba(56,189,248,.10), transparent 70%),
    var(--navy-deep);
  border-top: 1px solid var(--line-dark);
}
.close-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.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; }

/* ── forms ── */
.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(--ink); }
.form .req { color: var(--blue); margin-left: 2px; }
.form .hint { font-weight: 400; color: var(--ink-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(--ink);
  background: var(--paper); border: 1px solid rgba(10,22,40,.16); border-radius: 10px;
  transition: border-color .2s, box-shadow .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(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23667085' 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 input::placeholder { color: #98a2b3; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(10,22,40,.3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,92,240,.14); }
.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(--ink-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: #b42318; }
.form-panel {
  padding: clamp(24px, 3.5vw, 40px); background: var(--paper);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(10,22,40,.04), 0 40px 80px -48px rgba(10,22,40,.35);
}
.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 { margin-top: 6px; font-size: .9375rem; color: var(--ink-3); }

/* ── contact page 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; }
.direct { margin-top: 40px; border-top: 1px solid var(--line); }
.direct li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.direct strong { font-weight: 500; color: var(--ink); }
.direct a { color: var(--blue); }
.direct a:hover { color: var(--blue-hover); }

/* ── case row reused on ecosystem pages (light) ── */
.case-solo { border-top: 1px solid var(--ink); }
.case-solo .case { border-top: 0; }

/* ── video ── */
.video-wrap { position: relative; }
.video-wrap .btn { position: absolute; right: 16px; bottom: 16px; background: rgba(2,11,24,.72); color: var(--on-dark); border-color: var(--line-dark); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-wrap .btn:hover { color: #fff; border-color: rgba(240,244,255,.3); }

/* ── process timeline rows ── */
.timeline { border-top: 1px solid var(--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(--line);
}
.timeline-row .layer-num { align-self: start; }
.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 .gate { margin-top: 20px; }
.gate { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 30em; }
.gate li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
.gate span { flex: none; width: 72px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

/* ── resources: fit + origin + modal ── */
.fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fit-col { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.fit-col h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 16px; }
.fit-col li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line-soft); font-size: 1.0625rem; line-height: 1.5; }
.fit-col li::before { content: ''; position: absolute; left: 0; top: 16px; width: 16px; height: 16px; border-radius: 50%; }
.fit-col--yes li::before { background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231a5cf0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fit-col--no li::before { background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.prose { max-width: 40em; }
.prose p { font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose p:last-child { color: var(--ink); font-weight: 500; }
.dark .prose p { color: var(--on-dark-2); }
.dark .prose p:last-child { color: var(--on-dark); }
.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(--ink); }
.phase { padding: 28px 20px 8px 0; }
.phase + .phase { padding-left: 20px; border-left: 1px solid var(--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; color: var(--ink-2); }
.free { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 28px; }
.free b { font-family: var(--cond); font-weight: 600; font-size: 3rem; line-height: .9; color: var(--ink); }
.free span { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.dark .free b { color: var(--on-dark); }
.dark .free span { color: var(--on-dark-3); }

.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2,11,24,.56); -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; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font-size: 1.25rem; cursor: pointer; }
.modal-close:hover { background: var(--mist); color: var(--ink); }
.modal .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ═══ RESULTS — case studies on dark "data room" surfaces ═══
   The case-study markup is frozen (CLAUDE.md), so it keeps its original
   class names and its charts' hard-coded light-on-dark colors. These rules
   restyle it in place, scoped to .results-room. */
.results-room {
  --amber: #ffcf73; --blue-light: #5ba3e8; --blue-pale: #a8cdf5; --white: #f0f4ff;
  background: var(--navy); color: var(--on-dark-2);
  background-image: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(26,92,240,.16), transparent 70%);
}
.results-room + .results-room { border-top: 1px solid var(--line-dark); background-image: none; background-color: var(--charcoal); }
.results-room .page-section { padding: var(--section) 0; }
.results-room .section-inner { width: 100%; max-width: 1288px; margin-inline: auto; padding-inline: var(--gutter); }
.results-room .sv2-case-card { max-width: 1080px; }
.results-room .section-label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.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(--on-dark); max-width: 18em; }
.results-room h2 em { font-style: normal; color: var(--blue-glow); }
.results-room h3 { color: var(--on-dark); 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(--line-dark); 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(--on-dark-2); max-width: 40em; text-wrap: pretty; }
.results-room .dual-text strong { color: var(--on-dark); font-weight: 500; }
.results-room .intro-para { margin-top: 18px; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--on-dark-3); }
.results-room .stats-bar { margin-top: 32px; border-top: 1px solid rgba(240,244,255,.3); }
.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(--line-dark); }
.results-room .stat-num { font-family: var(--cond); font-weight: 600; font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: .92; letter-spacing: -0.01em; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.results-room .stats-bar > .stat-item .stat-num { font-size: clamp(4rem, 9vw, 7.5rem); color: var(--blue-glow); }
.results-room .stat-lbl { margin-top: 12px; font-size: .9375rem; line-height: 1.4; color: var(--on-dark-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(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--cyan); }
.results-room .results-chart { margin-top: 28px; padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(240,244,255,.025); }
.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(--on-dark-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(--on-dark-3); max-width: 46em; }
.results-room .sv2-timeline { margin-top: 20px; border-top: 1px solid var(--line-dark); }
.results-room .sv2-timeline-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.results-room .step-num { display: block; font-family: var(--cond); font-weight: 500; font-size: 2.5rem; line-height: .9; color: var(--blue-glow); }
.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(--on-dark-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(--line-dark); border-radius: 14px; background: linear-gradient(180deg, rgba(240,244,255,.045), rgba(240,244,255,.015)); }
.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(--on-dark-2); }
.results-room .measure-details { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.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(--on-dark);
}
.results-room .measure-details summary::-webkit-details-marker { display: none; }
.results-room .measure-details summary::after { content: '+'; font-family: var(--mono); font-size: 1.25rem; color: var(--cyan); transition: transform .25s var(--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(--cyan); }
.results-room .card-link:hover { color: #fff; }
.results-room .viz-bar { transform-box: fill-box; }

/* ═══ INTERIOR — responsive (site breakpoints) ═══ */
@media (max-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-list--strip { columns: 3; }
  .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(--line); }
}
@media (max-width: 900px) {
  .page-hero-grid, .contact-grid, .close-grid, .proof, .deliverable { grid-template-columns: minmax(0, 1fr); }
  .page-hero-grid .frame, .page-hero-grid .hero-figs { max-width: 560px; }
  .contact-aside { position: static; }
  .close-band .btn-row { justify-content: flex-start; }
  .card-grid, .card-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .ledger, .fit { grid-template-columns: minmax(0, 1fr); }
  .steps, .steps--4 { 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(--line); }
  .dark .step-item + .step-item { border-top-color: var(--line-dark); }
  .step-tag { margin-top: 14px; }
  .timeline-row { grid-template-columns: 64px minmax(0, 1fr); }
  .timeline-row .frame { grid-column: 2; max-width: 520px; }
  .mockups { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .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(--line-dark); }
  .results-room .stats-inner .stat-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); margin-top: 20px; }
  .results-room .cs-split { grid-template-columns: minmax(0, 1fr); }
  .results-room .service-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .check-list, .check-list--strip { columns: 1; }
  .check-list--strip { columns: 2; }
  .ledger-col, .fit-col { padding: 24px 22px; }
  .form, .modal .form { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .direct li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .timeline-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .timeline-row .frame { grid-column: 1; }
  .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(--line); }
  .phase:nth-child(n+3) { border-top: 1px solid var(--line); }
  .close-band .btn-row .btn-primary { flex: 1 1 auto; }
  .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; }
}
.stat-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.results-room .results-chart:not(.cs-scroll):not(.cs-donuts) { max-width: 720px; }
.page-hero .direct { margin-top: 0; }
