/* ═══════════════════════════════════════════════════════════════════════
   ASCENDED IQ — PRODUCT PAGE
   Ground-up cinematic redesign · floating Studio Display · dark mode
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg-0: #05070F;
  --bg-1: #0A0F1E;
  --bg-2: #101628;
  --surface: #0E1424;
  --surface-2: #141B30;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --ink: #F5F7FB;
  --ink-mute: #AAB3C7;
  --ink-dim: #6C7490;
  --brand-blue: #0080FF;
  --brand-blue-2: #3B9EFF;
  --brand-teal: #00E5A0;
  --brand-teal-2: #4DE3D6;
  --brand-gold: #FFD60A;
  --brand-red: #FF6B83;
  --brand-orange: #FF9F0A;
  --brand-purple: #C9B2FF;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --e-out: cubic-bezier(.22,.8,.26,1);
  --e-ease: cubic-bezier(.4,0,.2,1);
  --e-quint: cubic-bezier(.83,0,.17,1);
}

body.product-page {
  background: var(--bg-0) !important;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow must stay visible so position:sticky in .stage tracks the window scroll */
  overflow: visible !important;
  padding-top: 0 !important;
}
html { overflow-x: clip; overflow-y: auto; }

/* Kill the site-wide light gradient mesh & body::before light overlay on product page */
body.product-page::before,
body.product-page::after { display: none !important; }
body.product-page .gradient-mesh,
body.product-page .mesh-orb { display: none !important; }

/* Site header on dark background — force readable colors */
body.product-page #header .header-brand-text,
body.product-page #header .nav-link {
  color: var(--ink) !important;
}
body.product-page #header .nav-link:hover { color: #fff !important; }
body.product-page #header .btn-glass-secondary {
  color: var(--ink) !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
body.product-page #header.scrolled,
body.product-page #header {
  background: rgba(10,15,30,.55) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.08);
}

/* Ensure journey sits above body::before (if any) */
body.product-page .sky { z-index: 0; }
body.product-page main { position: relative; z-index: 1; }
body.product-page #footer-placeholder {
  position: relative;
  z-index: 2;
  background: var(--bg-0);
}
body.product-page #footer-placeholder footer {
  background: rgba(4,9,20,.96) !important;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { display: block; }
img { display: block; max-width: 100%; }

.grad-text {
  background: linear-gradient(110deg,
    #3B9EFF 0%, #4DE3D6 25%, #7CFFD2 50%, #4DE3D6 75%, #3B9EFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: grad-flow 4s linear infinite;
}
.grad-text--teal {
  background: linear-gradient(110deg,
    #00B8A9 0%, #4DE3D6 25%, #7CFFD2 50%, #4DE3D6 75%, #00B8A9 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: grad-flow 4s linear infinite;
}
.grad-text--green {
  background: linear-gradient(110deg,
    #00E5A0 0%, #7CFFD2 25%, #57FF92 50%, #7CFFD2 75%, #00E5A0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: grad-flow 4s linear infinite;
}
.grad-text--purple {
  background: linear-gradient(110deg,
    #9370DB 0%, #C9B2FF 25%, #E0CCFF 50%, #C9B2FF 75%, #9370DB 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: grad-flow 4s linear infinite;
}
@keyframes grad-flow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ─── NAV ────────────────────────────────────────────────────────────── */
.aei-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(to bottom, rgba(5,7,15,.85), rgba(5,7,15,.4) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.aei-nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink);
}
.aei-nav__brand b { font-weight: 700; color: var(--brand-blue-2); }
.aei-nav__brand img { filter: drop-shadow(0 0 8px rgba(59,158,255,.5)); }

.aei-nav__links { display: flex; gap: 32px; }
.aei-nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-mute);
  transition: color .2s;
  position: relative;
}
.aei-nav__links a:hover { color: var(--ink); }
.aei-nav__links a.is-active { color: var(--ink); }
.aei-nav__links a.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue-2), var(--brand-teal-2));
  border-radius: 2px;
}

.aei-nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 20px;
  font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #3B9EFF, #0080FF);
  color: #fff;
  border-radius: 100px;
  box-shadow: 0 10px 30px -8px rgba(59,158,255,.6), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: transform .2s var(--e-out), box-shadow .2s;
}
.aei-nav__cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(59,158,255,.75), 0 0 0 1px rgba(255,255,255,.14) inset; }
.aei-nav__cta svg { width: 15px; height: 15px; }

/* ─── SKY BACKDROP ───────────────────────────────────────────────────── */
.sky {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(59,158,255,.15), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(77,227,214,.1), transparent 55%),
    var(--bg-0);
}
.sky__mesh { position: absolute; inset: 0; filter: blur(80px); opacity: .7; }
.sky__orb { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.sky__orb--a { top: -10%; left: 15%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(59,158,255,.5), transparent 65%); animation: drift 28s ease-in-out infinite; }
.sky__orb--b { bottom: -15%; right: 10%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(77,227,214,.4), transparent 65%); animation: drift 34s ease-in-out infinite reverse; }
.sky__orb--c { top: 40%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,178,255,.35), transparent 65%); animation: drift 40s ease-in-out infinite; }
.sky__orb--d { top: 60%; right: 30%; width: 450px; height: 450px; background: radial-gradient(circle, rgba(0,128,255,.3), transparent 65%); animation: drift 46s ease-in-out infinite reverse; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(60px,-40px) scale(1.08); }
  66%     { transform: translate(-40px,50px) scale(.95); }
}
.sky__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.sky__stars { position: absolute; inset: 0; }
.sky__stars span {
  position: absolute; width: 2px; height: 2px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,255,255,.8);
  opacity: var(--o,.5);
  animation: twinkle var(--t,4s) ease-in-out infinite;
  animation-delay: var(--d,0s);
}
@keyframes twinkle {
  0%,100% { opacity: var(--o,.5); transform: scale(1); }
  50%     { opacity: .15; transform: scale(.6); }
}
.sky__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .06; mix-blend-mode: overlay;
}

body.no-stars .sky__stars,
body.no-orbs .sky__mesh { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   JOURNEY STAGE — sticky display that scales to fullscreen
   ═══════════════════════════════════════════════════════════════════════ */
.journey {
  position: relative; z-index: 1;
  height: calc(var(--scroll-length, 850) * 1vh);
}
.stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* ─── HERO (behind display, fades as zoom begins) ─────────────────────── */
.hero {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  /* top padding = header clearance (~128px for fixed site header) + breathing room */
  padding: clamp(128px, 16vh, 200px) 40px 0;
  text-align: center;
  opacity: var(--hero-o, 1);
  transform: translateY(var(--hero-y, 0px)) scale(var(--hero-s, 1));
  transition: opacity .05s linear, transform .05s linear;
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-mute);
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-blue-2);
  box-shadow: 0 0 12px var(--brand-blue-2);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.4); opacity: .6; }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 28px;
  max-width: 780px;
  text-wrap: balance;
}
.hero__word {
  display: inline-block;
  margin: 0 .05em;
  opacity: 0; transform: translateY(24px);
  animation: wordIn .8s var(--e-out) forwards;
  animation-delay: calc(var(--d,0) * .08s + .15s);
}
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }
.hero__sub {
  font-size: 20px;
  color: var(--ink-mute);
  max-width: 680px;
  margin: 0 auto 48px;
  text-wrap: pretty;
  line-height: 1.5;
}
.hero__cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-dim);
  animation: cueIn 1s var(--e-out) 1s both;
}
@keyframes cueIn { from { opacity: 0; transform: translateY(-10px); } }
.hero__cue svg {
  width: 18px; height: 18px;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ═══════════════════════════════════════════════════════════════════════
   THE FLOATING DISPLAY — Studio Display style
   No hinge. Scales smoothly from small → fullscreen.
   ═══════════════════════════════════════════════════════════════════════ */
.display {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--d-y, 0px));
  width: 60vw; max-width: 1000px;
  aspect-ratio: 16 / 10;
  transform:
    translate(-50%, -50%)
    scale(var(--d-scale, .65))
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transform-origin: center center;
  transition: transform .05s linear;
  transform-style: preserve-3d;
  will-change: transform;
  perspective: 1600px;
}
.display::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -20%;
  height: 26%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.58), transparent 72%);
  filter: blur(26px);
  opacity: calc(.35 + (var(--stand-o, 1) * .35));
  z-index: -2;
  pointer-events: none;
}

/* halo glow behind */
.display__halo {
  position: absolute;
  inset: -18% -12% -12% -12%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59,158,255,.35), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(77,227,214,.3), transparent 60%);
  filter: blur(60px);
  opacity: var(--halo-o, .8);
  z-index: -1;
}
body.no-halo .display__halo { display: none; }

/* Bezel — thin uniform frame, brushed-aluminum specular edge (Pro Display XDR inspired) */
.display__bezel {
  position: relative;
  width: 100%; height: 100%;
  /* Aluminum chassis: cool silver gradient with hairline edge highlights */
  background:
    linear-gradient(180deg, #2a2f3d 0%, #161a26 50%, #0c0f17 100%);
  border-radius: 18px;
  /* Slim 9–10px uniform bezel — chin matches sides for symmetry */
  padding: 10px;
  box-shadow:
    0 80px 160px -30px rgba(0,0,0,.85),
    0 40px 80px -20px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.10),                /* outer hairline */
    inset 0 1px 0 rgba(255,255,255,.18),            /* top edge polish */
    inset 0 -1px 0 rgba(0,0,0,.5);                  /* bottom edge shadow */
}
/* Top edge polish + faint vertical gradient — gives the frame depth */
.display__bezel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 14%, rgba(255,255,255,0) 86%, rgba(255,255,255,.04) 100%),
    linear-gradient(90deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 6%, rgba(255,255,255,0) 94%, rgba(255,255,255,.06) 100%);
  pointer-events: none;
}
/* Specular sweep — thin diagonal highlight that flashes when the display locks at full scale */
.display__bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,.18) 47%,
    rgba(255,255,255,.32) 50%,
    rgba(255,255,255,.18) 53%,
    transparent 70%);
  background-size: 220% 220%;
  background-position: 200% -200%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
}
.display.is-locked .display__bezel::after {
  animation: specSweep 1.4s var(--e-out) .15s 1 forwards;
}
@keyframes specSweep {
  0%   { opacity: 0; background-position: 200% -200%; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; background-position: -120% 220%; }
}

/* Camera removed — Pro Display XDR has no notch. Keep markup hidden if present. */
.display__camera { display: none; }

/* Stand — slim cantilever silhouette via SVG */
.display__stand {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 240px;
  pointer-events: none;
  opacity: var(--stand-o, 1);
  transition: opacity .2s;
  /* lift slightly so stand kisses the bezel's bottom edge */
  margin-top: -2px;
}
.display__stand-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.55));
}
/* Soft ground shadow ellipse */
.display__stand::after {
  content: "";
  display: block;
  width: 70%;
  height: 14px;
  margin: 4px auto 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%);
  filter: blur(6px);
}
/* Legacy neck/foot blocks — keep for backward compat but hidden if SVG stand present */
.display__stand-svg ~ .display__neck,
.display__stand-svg ~ .display__neck ~ .display__foot { display: none; }
.display__neck {
  width: 52px; height: 36px;
  background: linear-gradient(180deg, #232836, #0e1117);
  border-radius: 0 0 3px 3px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.12);
  position: relative;
  margin: 0 auto;
}
.display__neck::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  width: 3px; height: 44px;
  background: linear-gradient(180deg, #1a1e2a, #0a0d14);
}
.display__foot {
  width: 200px; height: 6px;
  border-radius: 50% / 100%;
  background: linear-gradient(180deg, #232836, #0a0d14);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 14px 36px -10px rgba(0,0,0,.7);
  margin: 44px auto 0;
}

/* ─── THE SCREEN ──────────────────────────────────────────────────────── */
.screen {
  position: relative;
  width: 100%; height: 100%;
  background: #05070d;
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 0 40px rgba(0,0,0,.4);
}
/* subtle screen reflection */
.screen::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  opacity: var(--refl-o, 1);
}
body.no-reflection .screen::before { display: none; }

/* Title bar */
.screen__chrome {
  flex-shrink: 0;
  display: flex; align-items: center;
  height: 32px;
  padding: 0 14px;
  background: linear-gradient(180deg, #0c121f, #080c16);
  border-bottom: 1px solid rgba(255,255,255,.05);
  gap: 12px;
  position: relative;
  z-index: 5;
}
.screen__dots { display: flex; gap: 6px; }
.screen__dots span {
  width: 11px; height: 11px; border-radius: 50%;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2);
}
.screen__title {
  flex: 1;
  text-align: center;
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: .02em;
}
.screen__actions { display: flex; align-items: center; gap: 8px; }
.screen__chip {
  font-size: 10px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(59,158,255,.15);
  color: var(--brand-blue-2);
  border: 1px solid rgba(59,158,255,.3);
  letter-spacing: .04em; text-transform: uppercase;
  transition: all .3s;
}
.screen__icon {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: rgba(255,255,255,.08);
}

/* ambient glow layer that shifts per slide */
.screen__glow {
  position: absolute;
  inset: 32px 0 0 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 100%, var(--glow-color, rgba(59,158,255,.25)), transparent 70%),
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 35%), rgba(255,255,255,.08), transparent 34%);
  opacity: .7;
  transition: background 1s var(--e-out);
}

/* Chapter label overlay — pinned to screen chrome, never intrudes on slide content */
.screen__label {
  position: absolute;
  top: 6px; right: 14px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.42);
  padding: 0;
  background: none;
  border: 0;
  backdrop-filter: none;
  opacity: var(--label-o, 0);
  transition: opacity .4s;
  z-index: 11;
  pointer-events: none;
  display: none; /* hide — the chrome title bar already carries the slide name */
}

/* Screen body — where slides live */
.screen__body {
  position: relative;
  flex: 1;
  overflow: hidden;
  isolation: isolate;
}

/* Boot fade */
.boot {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #05070d;
  z-index: 100;
  opacity: var(--boot-o, 0);
  transition: opacity .3s;
  pointer-events: none;
}
.boot__logo {
  width: 48px; height: 48px;
  filter: drop-shadow(0 0 20px rgba(59,158,255,.6));
  animation: bootPulse 2s ease-in-out infinite;
}
@keyframes bootPulse {
  0%,100% { opacity: .7; transform: scale(1); }
  50%     { opacity: 1; transform: scale(1.1); }
}

/* ═══════════════════════════════════════════════════════════════════════
   SLIDES
   Editorial layout: [ headline | big viz ]
   Transitions: fade + scale + subtle translateY
   ═══════════════════════════════════════════════════════════════════════ */
.slide {
  position: absolute;
  inset: 0;
  padding: 16px 34px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: scale(.96) translateY(20px);
  transition: opacity .6s var(--e-out), transform .8s var(--e-out);
  pointer-events: none;
  overflow: hidden;
}
.slide.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Headline column */
.slide__headline {
  display: flex; flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.slide__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 4px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  width: fit-content;
}
.slide__kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.slide__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.slide__lede {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0;
  max-width: 440px;
  line-height: 1.5;
  text-wrap: pretty;
}

.slide__viz {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex; align-items: stretch; justify-content: center;
}

/* ─── OVERVIEW SLIDE ──────────────────────────────────────────────────── */
.slide--overview {
  gap: 16px;
  padding: 28px 44px 22px;
  text-align: center;
  justify-content: center;
}
.slide--overview .slide__headline {
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.slide--overview .slide__title { font-size: 40px; }
.slide--overview .slide__lede { max-width: 600px; text-align: center; }
.slide--overview .slide__viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  flex: 0 1 auto;
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.lens {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 18px 15px 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: lensIn .7s var(--e-out) var(--a) both;
}
@keyframes lensIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lens::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, var(--c), transparent 70%);
  opacity: .08;
  pointer-events: none;
}
.lens__ring {
  position: relative;
  width: 62px; height: 62px;
  margin: 0 auto 10px;
}
.lens__ring svg { width: 100%; height: 100%; }
.lens__arc {
  animation: arcIn 1.2s var(--e-out) calc(var(--a) + .3s) both;
  stroke-dashoffset: 0;
}
@keyframes arcIn { from { stroke-dasharray: 0 264; } }
.lens__center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.lens__num {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  color: var(--c);
  letter-spacing: .05em;
}
.lens h3 {
  font-size: 18px; font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.lens p {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.5;
  text-wrap: pretty;
}

.overview__trust {
  display: flex; gap: 24px; justify-content: center; align-items: center;
  margin-top: 0;
  color: var(--ink-dim);
  font-size: 12px; font-weight: 500;
}
.overview__trust span {
  display: inline-flex; align-items: center; gap: 8px;
}
.overview__trust svg { width: 14px; height: 14px; opacity: .6; }

/* ─── EDITORIAL LAYOUT (student/classroom/school/district) ────────────── */
.slide:not(.slide--overview) .slide__headline {
  text-align: left;
  gap: 4px;
  flex-shrink: 0;
  align-items: flex-start;
  /* Constrain headline so lede never crowds the chart panels below */
  max-width: 720px;
}
.slide:not(.slide--overview) .slide__title { font-size: 22px; line-height: 1.08; }
.slide:not(.slide--overview) .slide__lede { font-size: 11.5px; max-width: 560px; line-height: 1.4; }

.editorial {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.slide--classroom .editorial { grid-template-columns: 1.3fr 1fr; }
.slide--classroom .editorial { grid-template-columns: 1.35fr 1fr; }
.editorial__left, .editorial__right {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0; min-height: 0;
}
.editorial__right { justify-content: center; }

/* Profile row (Student) */
.profile {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(59,158,255,.08), rgba(59,158,255,.02));
  border: 1px solid rgba(59,158,255,.2);
  border-radius: 12px;
}
.profile__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #3B9EFF, #0080FF);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px -2px rgba(59,158,255,.6);
}
.profile__meta { flex: 1; min-width: 0; }
.profile__name { font-size: 15px; font-weight: 700; color: var(--ink); }
.profile__sub { font-size: 11px; color: var(--ink-mute); }
.profile__tier {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(0,229,160,.15);
  color: var(--brand-teal);
  border: 1px solid rgba(0,229,160,.3);
  border-radius: 100px;
}

.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi {
  padding: 8px 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.kpi--hero { grid-column: span 2; }
.kpi__label {
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.kpi__val {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 6px;
}
.kpi__val em { font-style: normal; font-size: 14px; color: var(--ink-mute); font-weight: 500; }
.kpi__ok { font-size: 11px; font-weight: 600; color: var(--brand-teal); margin-left: 4px; }
.kpi__foot { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.kpi__bar {
  margin-top: 8px;
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.kpi__bar i {
  display: block;
  width: var(--w, 60%); height: 100%;
  background: var(--c, var(--brand-blue-2));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--c, var(--brand-blue-2));
}

/* AI note card */
.ai-note {
  display: flex; gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,158,255,.1), rgba(59,158,255,.02));
  border: 1px solid rgba(59,158,255,.2);
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.4;
  min-height: 0;
}
.ai-note > div {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-note--teal  { background: linear-gradient(135deg, rgba(77,227,214,.1), rgba(77,227,214,.02)); border-color: rgba(77,227,214,.2); }
.ai-note--green { background: linear-gradient(135deg, rgba(0,229,160,.1), rgba(0,229,160,.02)); border-color: rgba(0,229,160,.2); }
.ai-note b { color: var(--brand-blue-2); font-weight: 700; }
.ai-note--teal b { color: var(--brand-teal-2); }
.ai-note--green b { color: var(--brand-teal); }
.ai-note__star {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-teal-2));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 0 12px rgba(59,158,255,.5);
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px; font-weight: 600;
  padding: 5px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 100px;
  color: var(--ink-mute);
}

/* Big panel (chart) */
.panel-big {
  height: 100%;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.panel-big__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.panel-big__head h4 {
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.01em;
}
.panel-big__legend { display: flex; gap: 10px; font-size: 10px; color: var(--ink-mute); }
.panel-big__legend span { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.panel-big__legend i { width: 8px; height: 8px; border-radius: 2px; }
.panel-big__mini { font-size: 10px; color: var(--ink-dim); font-weight: 500; }

.chart-big { width: 100%; flex: 1; min-height: 0; }
.chart-big__line, .chart-big__fill {
  animation: lineDraw 1.5s var(--e-out) .3s both;
}
.chart-big__line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.chart-big__fill { opacity: 0; animation-name: fillIn; }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { opacity: 1; } }

/* Scatter */
.scatter {
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 0;
}
.scatter svg { flex: 1; min-height: 0; width: 100%; }
.scatter__cap {
  font-size: 10px; color: var(--ink-dim);
  text-align: center;
  font-weight: 500;
}
.sc-dot {
  opacity: 0; transform-origin: center;
  animation: dotIn .5s var(--e-out) var(--d, 0s) both;
}
@keyframes dotIn { from { opacity: 0; transform: scale(.3); } to { opacity: .95; transform: scale(1); } }

/* Stat hero (big number) */
.stat-hero {
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(77,227,214,.12), rgba(77,227,214,.02));
  border: 1px solid rgba(77,227,214,.25);
  position: relative;
  overflow: hidden;
}
.stat-hero::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--c, rgba(77,227,214,.2)), transparent 60%);
  border-radius: 50%;
}
.stat-hero__label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
  position: relative;
}
.stat-hero__val {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800;
  color: var(--c, var(--brand-teal-2));
  letter-spacing: -.04em;
  line-height: 1;
  position: relative;
  display: flex; align-items: baseline;
}
.stat-hero__val em { font-style: normal; font-size: 28px; margin-left: 4px; }
.stat-hero__foot { font-size: 12px; color: var(--ink-mute); margin-top: 6px; position: relative; }

/* School hero (letter grade) */
.school-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,159,10,.1), rgba(255,159,10,.02));
  border: 1px solid rgba(255,159,10,.25);
}
.school-hero__badge {
  width: 72px; height: 72px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 44px; font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #FF9F0A, #FF6B83);
  box-shadow: 0 10px 30px -6px rgba(255,159,10,.5);
  letter-spacing: -.04em;
  flex-shrink: 0;
}
.school-hero__label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 2px; }
.school-hero__name { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.school-hero__foot { font-size: 12px; color: var(--brand-red); margin-top: 2px; font-weight: 500; }

/* 6-metric grid (school slide) */
.grid6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 100%;
  max-height: 380px;
}
.metric {
  padding: 14px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; justify-content: center;
}
.metric--bad   { border-color: rgba(255,107,131,.25); background: linear-gradient(180deg, rgba(255,107,131,.06), rgba(255,107,131,.01)); }
.metric--primary { border-color: rgba(59,158,255,.35); background: linear-gradient(180deg, rgba(59,158,255,.1), rgba(59,158,255,.02)); }
.metric__label { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }
.metric__val {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: 2px;
  line-height: 1;
}
.metric__val em { font-style: normal; }
.metric__val span { font-size: 14px; color: var(--ink-mute); font-weight: 600; margin-left: 2px; }
.metric--bad .metric__val { color: #FFB4BE; }
.metric--primary .metric__val { color: var(--brand-blue-2); font-size: 30px; }
.metric__delta { font-size: 11px; color: var(--brand-red); margin-top: 4px; font-weight: 600; }
.metric__delta--muted { color: var(--ink-mute); }

/* District compass */
.compass { flex: 1; min-height: 0; }
.compass svg { width: 100%; height: 100%; min-height: 200px; }

/* ═══════════════════════════════════════════════════════════════════════
   NEW LENS COMPONENTS (ported from demo)
   ═══════════════════════════════════════════════════════════════════════ */

/* KPI 4-up grid (Student/Classroom/School use this) */
.kpi-row--4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kpi-row--4 .kpi { padding: 7px 9px; }
.kpi-row--4 .kpi__val { font-size: 17px; }
.kpi-row--4 .kpi__label { font-size: 9px; }

/* Reporting Categories — horizontal performance bars */
.cat-bars { display: flex; flex-direction: column; gap: 8px; }
.cat-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
}
.cat-bar__label {
  grid-column: 1;
  font-size: 11px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
}
.cat-bar__pct {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--ink);
  min-width: 38px;
  text-align: right;
}
.cat-bar__track {
  grid-column: 1 / -1;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.cat-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--bar-c, var(--brand-blue-2));
  box-shadow: 0 0 10px var(--bar-c, var(--brand-blue-2));
  width: 0;
  transition: width 1.2s var(--e-out);
}
.slide.is-active .cat-bar__fill { width: var(--bar-w, 0%); }
/* Color thresholds applied via inline --bar-c per bar */

/* Next Steps panel (Student) */
.next-steps {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 11px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}
.next-steps__title {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 2px;
}
.next-step {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-mute);
}
.next-step__tag {
  flex-shrink: 0;
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
  border: 1px solid currentColor;
  margin-top: 1px;
}
.next-step--strengthen .next-step__tag { color: #FF9F0A; }
.next-step--reinforce  .next-step__tag { color: #FFD60A; }
.next-step--stretch    .next-step__tag { color: var(--brand-teal); }
.next-step b { color: var(--ink); font-weight: 700; font-family: var(--font-mono); font-size: 10.5px; }

/* FAST Distribution — stacked dot plots (ELA above, Math below) */
.fast-dist {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 4px;
  min-height: 0;
}
.fast-dist__row {
  flex: 1;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 6px;
  align-items: stretch;
  min-height: 0;
}
.fast-dist__label {
  display: flex; align-items: center; justify-content: flex-end;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim);
}
.fast-dist__plot {
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  overflow: hidden;
}
/* ELA bands: L1<23%, L2 23-42.3%, L3 42.3-57.7%, L4 57.7-77%, L5 77%+ */
.fast-dist__plot--ela {
  background: linear-gradient(90deg,
    rgba(239,68,68,.05) 0%, rgba(239,68,68,.05) 23%,
    rgba(249,115,22,.05) 23%, rgba(249,115,22,.05) 42.3%,
    rgba(234,179,8,.05) 42.3%, rgba(234,179,8,.05) 57.7%,
    rgba(34,197,94,.05) 57.7%, rgba(34,197,94,.05) 77%,
    rgba(99,102,241,.05) 77%, rgba(99,102,241,.05) 100%);
}
/* Math bands: L1<26.8%, L2 26.8-46%, L3 46-61.3%, L4 61.3-80.5%, L5 80.5%+ */
.fast-dist__plot--math {
  background: linear-gradient(90deg,
    rgba(239,68,68,.05) 0%, rgba(239,68,68,.05) 26.8%,
    rgba(249,115,22,.05) 26.8%, rgba(249,115,22,.05) 46%,
    rgba(234,179,8,.05) 46%, rgba(234,179,8,.05) 61.3%,
    rgba(34,197,94,.05) 61.3%, rgba(34,197,94,.05) 80.5%,
    rgba(99,102,241,.05) 80.5%, rgba(99,102,241,.05) 100%);
}
.fast-dist__plot svg {
  width: 100%; height: 100%;
  min-height: 80px;
  display: block;
}
.fast-dist__axis {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 6px;
  font-size: 9px; font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: .04em;
}
.fast-dist__axis-ticks {
  display: flex; justify-content: space-between;
  padding: 0 4px;
}

/* Suggested Actions (Classroom) */
.actions-list { display: flex; flex-direction: column; gap: 8px; }
.action-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 11px;
  background: linear-gradient(180deg, rgba(77,227,214,.06), rgba(77,227,214,.01));
  border: 1px solid rgba(77,227,214,.18);
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.action-step__num {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(77,227,214,.15);
  color: var(--brand-teal-2);
  border: 1px solid rgba(77,227,214,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.action-step b { color: var(--ink); font-weight: 700; }
.action-step code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brand-teal-2);
  background: rgba(77,227,214,.1);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Learning Gains by Grade — color-coded matrix table (School) */
.lg-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 11px;
}
.lg-table thead th {
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 4px 6px;
  text-align: center;
  font-weight: 700;
}
.lg-table thead th:first-child { text-align: left; }
.lg-table tbody td {
  padding: 8px 6px;
  text-align: center;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
}
.lg-table tbody td.lg-row__grade {
  font-family: var(--font);
  font-size: 11px;
  text-align: left;
  color: var(--ink);
  font-weight: 600;
  background: transparent !important;
}
.lg-cell--good { background: rgba(0,229,160,.18); color: #6BFFC2; }
.lg-cell--ok   { background: rgba(255,214,10,.16); color: #FFE066; }
.lg-cell--warn { background: rgba(255,159,10,.18); color: #FFC069; }
.lg-cell--bad  { background: rgba(255,107,131,.18); color: #FFB4BE; }

/* Compass schools — sized circles + label (District) */
.compass__school {
  cursor: pointer;
  transition: filter .2s;
}
.compass__school text {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 700;
  fill: rgba(255,255,255,.92);
  paint-order: stroke;
  stroke: rgba(0,0,0,.6);
  stroke-width: 2px;
  pointer-events: none;
}
.compass__school:hover { filter: brightness(1.2); }

/* District contribution table */
.contrib-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
  margin-top: 10px;
}
.contrib-table thead th {
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 8px;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.contrib-table thead th:first-child { text-align: left; }
.contrib-table tbody td {
  padding: 8px;
  text-align: right;
  font-family: var(--font-mono);
  color: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.contrib-table tbody td:first-child {
  font-family: var(--font);
  text-align: left;
  font-weight: 600;
}
.contrib-table tbody tr.is-best td { color: #6BFFC2; }
.contrib-table tbody tr.is-watch td { color: #FFE066; }
.contrib-table tbody tr.is-risk td { color: #FFB4BE; }
.contrib-table .dot-mark {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}

/* Shared chart line-draw helper */
.line-draw {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  transition: stroke-dashoffset 1.4s var(--e-out);
}
.slide.is-active .line-draw {
  stroke-dashoffset: 0;
}

/* Strategy brief */
.brief {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,178,255,.08), rgba(201,178,255,.02));
  border: 1px solid rgba(201,178,255,.25);
  display: flex; flex-direction: column; gap: 12px;
}
.brief__head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
  color: var(--brand-purple);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brief__head .ai-note__star {
  width: 22px; height: 22px; font-size: 12px;
  background: linear-gradient(135deg, #C9B2FF, #9370DB);
  box-shadow: 0 0 10px rgba(201,178,255,.5);
}
.brief__item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.45;
}
.brief__item b { color: var(--ink); font-weight: 700; font-size: 13px; }
.brief__num {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(201,178,255,.15);
  color: var(--brand-purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  border: 1px solid rgba(201,178,255,.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   PROGRESS RAIL
   ═══════════════════════════════════════════════════════════════════════ */
.rail {
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  z-index: 50;
  opacity: var(--rail-o, 0);
  transition: opacity .5s;
  pointer-events: var(--rail-e, none);
}
.rail__track {
  width: 2px; height: 120px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.rail__track span {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--p, 0%);
  background: linear-gradient(180deg, var(--brand-blue-2), var(--brand-teal-2));
  border-radius: 2px;
  transition: height .3s var(--e-out);
  box-shadow: 0 0 8px var(--brand-blue-2);
}
.rail__dots { display: flex; flex-direction: column; gap: 10px; }
.rail__dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  color: var(--ink-dim);
  transition: all .25s var(--e-out);
  pointer-events: auto;
}
.rail__dot:hover { transform: scale(1.15); color: var(--ink); border-color: rgba(255,255,255,.3); }
.rail__dot.is-active {
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-teal-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 0 12px rgba(59,158,255,.5);
  transform: scale(1.15);
}
.rail__meta {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-mute);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════════ */
.cta {
  position: relative;
  z-index: 2;
  padding: 140px 40px 100px;
  background: var(--bg-0);
  text-align: center;
  overflow: hidden;
}
.cta__fade {
  position: absolute;
  top: -80px; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-0) 60%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.cta__pill {
  display: inline-block;
  padding: 8px 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-blue-2);
  background: rgba(59,158,255,.1);
  border: 1px solid rgba(59,158,255,.25);
  border-radius: 100px;
  margin-bottom: 32px;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.02;
  margin: 0 0 24px;
  text-wrap: balance;
}
.cta__sub {
  font-size: 18px;
  color: var(--ink-mute);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
  text-wrap: pretty;
}
.cta__actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 48px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  font-size: 15px; font-weight: 600;
  border-radius: 100px;
  transition: transform .2s var(--e-out), box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: linear-gradient(135deg, #3B9EFF, #0080FF);
  color: #fff;
  box-shadow: 0 14px 36px -8px rgba(59,158,255,.6), inset 0 0 0 1px rgba(255,255,255,.1);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -8px rgba(59,158,255,.75), inset 0 0 0 1px rgba(255,255,255,.14); }
.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.12);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

.cta__trust {
  display: flex; gap: 32px; justify-content: center; align-items: center;
  color: var(--ink-dim);
  font-size: 13px; font-weight: 500;
  flex-wrap: wrap;
}
.cta__trust span { display: inline-flex; align-items: center; gap: 8px; }
.cta__trust svg { width: 16px; height: 16px; opacity: .6; }

/* ═══════════════════════════════════════════════════════════════════════
   TWEAKS PANEL (created by tweaks.js — matching dark aesthetic)
   ═══════════════════════════════════════════════════════════════════════ */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  width: 300px;
  background: rgba(14,20,36,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  font-size: 13px;
  color: var(--ink);
  display: none;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.tweaks.is-open { display: block; }
.tweaks h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
}
.tweaks__row { margin-bottom: 12px; }
.tweaks__row label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.tweaks__seg {
  display: flex; gap: 4px;
  background: rgba(0,0,0,.3);
  padding: 3px;
  border-radius: 8px;
}
.tweaks__seg button {
  flex: 1;
  padding: 7px 6px;
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-mute);
  border-radius: 6px;
  transition: all .2s;
}
.tweaks__seg button.is-active {
  background: linear-gradient(135deg, #3B9EFF, #0066CC);
  color: #fff;
}
.tweaks__slider { width: 100%; accent-color: var(--brand-blue-2); }
.tweaks__toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
  cursor: pointer;
}
.tweaks__toggle span { font-weight: 500; }
.tweaks__toggle input { accent-color: var(--brand-blue-2); }
.tweaks__val { font-family: var(--font-mono); font-size: 11px; color: var(--brand-blue-2); }

@media (max-height: 900px) and (min-width: 900px) {
  .slide--overview {
    gap: 12px;
    padding-top: 28px;
    padding-bottom: 22px;
  }
  .slide--overview .slide__title { font-size: 42px; }
  .slide--overview .slide__lede { font-size: 15px; }
  .lens {
    padding: 16px 14px 14px;
  }
  .lens__ring {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
  }
  .lens h3 { font-size: 16px; }
  .lens p { font-size: 11.5px; }
}

@media (max-width: 900px) {
  .display {
    width: 84vw;
  }
  .slide {
    padding: 30px 28px;
  }
  .slide--overview {
    padding: 30px 28px 26px;
  }
  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview__trust {
    gap: 12px;
    flex-wrap: wrap;
  }
  .rail {
    right: 18px;
  }
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .journey {
    height: auto;
    min-height: 0;
    padding: 118px 0 58px;
  }

  .stage {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
    display: block;
  }

  .hero {
    position: relative;
    padding: 0 22px 34px;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__eyebrow {
    margin-bottom: 22px;
  }

  .hero__title {
    font-size: clamp(34px, 10vw, 52px);
  }

  .hero__cue {
    display: none;
  }

  .display {
    position: relative;
    left: auto;
    top: auto;
    width: min(calc(100% - 24px), 920px);
    max-width: none;
    aspect-ratio: auto;
    margin: 0 auto;
    transform: none !important;
    perspective: none;
  }

  .display::after {
    display: none;
  }

  .display__halo {
    inset: -8% -6%;
    opacity: .55;
    filter: blur(42px);
  }

  .display__bezel {
    padding: 8px;
    border-radius: 16px;
  }

  .display__stand,
  .rail,
  .boot {
    display: none !important;
  }

  .screen {
    height: auto;
    min-height: 0;
    border-radius: 8px;
  }

  .screen::before {
    height: 160px;
  }

  .screen__body {
    overflow: visible;
    display: block;
  }

  .screen__glow {
    display: none;
  }

  .slide {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    min-height: auto;
    padding: 24px 18px 28px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .slide:first-child {
    border-top: 0;
  }

  .slide--overview {
    justify-content: flex-start;
    padding-top: 26px;
  }

  .slide--overview .slide__title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .slide:not(.slide--overview) .slide__headline {
    max-width: none;
  }

  .slide__viz {
    display: block;
    flex: 0 0 auto;
  }

  .overview {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .overview__trust {
    gap: 12px;
    flex-wrap: wrap;
  }

  .editorial,
  .slide--classroom .editorial {
    grid-template-columns: 1fr;
    height: auto;
  }

  .editorial__left,
  .editorial__right {
    min-height: 0;
  }

  .editorial__right {
    justify-content: flex-start;
  }

  .kpi-row--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-big {
    height: auto;
    min-height: 260px;
  }

  .chart-big {
    min-height: 220px;
  }

  .fast-dist {
    min-height: 280px;
  }

  .compass svg {
    min-height: 260px;
  }

  .contrib-table {
    min-width: 460px;
  }

  .panel-big--scroll {
    overflow-x: auto;
  }

  .cta {
    padding: 88px 22px 72px;
  }

  .cta__title {
    font-size: clamp(36px, 11vw, 56px);
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
}

@media (max-width: 460px) {
  .display {
    width: calc(100% - 14px);
  }

  .display__bezel {
    padding: 6px;
    border-radius: 14px;
  }

  .screen__chrome {
    padding: 0 10px;
    gap: 8px;
  }

  .screen__actions .screen__icon {
    display: none;
  }

  .slide {
    padding: 20px 14px 24px;
  }

  .slide:not(.slide--overview) .slide__title {
    font-size: 20px;
  }

  .slide__kicker {
    max-width: 100%;
    white-space: normal;
    border-radius: 12px;
  }

  .kpi-row--4 {
    grid-template-columns: 1fr;
  }

  .profile {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .next-step {
    flex-direction: column;
    gap: 4px;
  }

  .panel-big__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-big__legend {
    flex-wrap: wrap;
  }

  .action-step {
    grid-template-columns: 20px 1fr;
    gap: 8px;
    font-size: 11px;
  }

  .lg-table {
    font-size: 10px;
  }

  .lg-table tbody td {
    padding: 7px 4px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
