/* Atenea concept site — v2 */
:root {
  --bg: #050b18;
  --bg-2: #07112a;
  --bg-3: #0a1633;
  --panel: rgba(148, 170, 255, .045);
  --panel-2: rgba(148, 170, 255, .075);
  --line: rgba(160, 182, 255, .12);
  --line-2: rgba(160, 182, 255, .22);
  --text: #eef2ff;
  --text-2: #c5cde6;
  --muted: #8d98b8;
  --blue: #5d7eff;
  --blue-2: #8aa2ff;
  --violet: #9a84ff;
  --gold: #e7c985;
  --gold-2: #f4dca6;
  --teal: #4fd1b5;
  --red: #ff6b7a;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: rgba(93, 126, 255, .45); color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

/* grain + progress */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--violet), var(--gold)); }

/* shared type */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.illustrative { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: .75; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 22, 51, .55); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(231, 201, 133, .6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(231, 201, 133, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(231, 201, 133, 0); } }

/* buttons */
.button {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--text); color: #071020; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 40px -10px rgba(138, 162, 255, .55), inset 0 -2px 0 rgba(7, 16, 32, .08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(154, 132, 255, .35) 45%, rgba(231, 201, 133, .45) 55%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(138, 162, 255, .7); }
.button:hover::before { transform: translateX(120%); }
.button span { transition: transform .4s var(--ease); }
.button:hover span { transform: translate(2px, -2px); }
.button-small { padding: 10px 16px; font-size: 13.5px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); position: relative; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(.3); transform-origin: 0 50%; opacity: .5; transition: transform .5s var(--ease), opacity .5s; }
.text-link:hover::after { transform: scaleX(1); opacity: 1; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* split headline */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + .1s); }
[data-split].is-split .w > span { transform: none; opacity: 1; }

/* HEADER */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 18px 0; transition: padding .4s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(5, 11, 24, .6); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
.site-header.is-scrolled { padding: 10px 0; }
.site-header.is-scrolled::before { opacity: 1; }
.nav-shell { position: relative; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .28em; font-size: 14px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 22, 51, .4); backdrop-filter: blur(10px); }
.site-nav a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color .3s, background .3s; }
.site-nav a:hover { color: var(--text); background: var(--panel-2); }
.menu-toggle { display: none; }

/* HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .55; animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2%, -1.5%, 0); } }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; mix-blend-mode: screen; }
.aurora.a1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(93, 126, 255, .55), transparent 65%); animation: float1 18s ease-in-out infinite alternate; }
.aurora.a2 { width: 38vw; height: 38vw; right: -8vw; top: 12vh; background: radial-gradient(circle, rgba(154, 132, 255, .45), transparent 65%); animation: float2 22s ease-in-out infinite alternate; }
.aurora.a3 { width: 30vw; height: 30vw; left: 38vw; bottom: -14vw; background: radial-gradient(circle, rgba(231, 201, 133, .22), transparent 65%); animation: float1 26s ease-in-out infinite alternate-reverse; }
@keyframes float1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.1); } }
@keyframes float2 { to { transform: translate3d(-6vw, 10vh, 0) scale(.9); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .35; mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 11, 24, .92) 0%, rgba(5, 11, 24, .55) 45%, rgba(5, 11, 24, .15) 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%); }

.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .pill { margin-bottom: 28px; }
.hero h1 { font-size: clamp(42px, 5.8vw, 84px); font-weight: 500; letter-spacing: -.05em; line-height: .98; }
.hero h1 em { background: linear-gradient(100deg, #b7c4ff 0%, var(--violet) 45%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero-lede { max-width: 560px; margin-top: 28px; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.hero-credentials { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-credentials span { display: inline-flex; align-items: center; gap: 8px; }
.hero-credentials span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* hero signal card */
.hero-signal {
  position: relative; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 34, 72, .72), rgba(8, 16, 36, .82));
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.signal-border { position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), rgba(138, 162, 255, .1), rgba(138, 162, 255, .6), rgba(231, 201, 133, .7), rgba(138, 162, 255, .1) 40%, rgba(138, 162, 255, .1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-ang 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }
.signal-head { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--text-2); }
.signal-time { margin-left: auto; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(79, 209, 181, .6); animation: ping-teal 2s infinite; }
@keyframes ping-teal { 0% { box-shadow: 0 0 0 0 rgba(79, 209, 181, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(79, 209, 181, 0); } }
.signal-steps { list-style: none; margin: 18px 0 0; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 999px; background: rgba(5, 11, 24, .5); border: 1px solid var(--line); position: relative; }
.signal-steps li { position: relative; z-index: 1; text-align: center; padding: 5px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-radius: 999px; transition: color .5s, background .5s; }
.signal-steps li.is-on { color: #071020; background: var(--text); }
.signal-main { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; }
.signal-swap { position: relative; height: 72px; flex: 1; }
.signal-swap > div { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s; }
.swap-b { opacity: 0; transform: translateY(14px); filter: blur(6px); }
[data-phase="2"] .swap-a { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
[data-phase="2"] .swap-b { opacity: 1; transform: none; filter: none; }
.signal-label { font-size: 13px; color: var(--muted); }
.signal-main strong { font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.signal-main strong.gold { color: var(--gold-2); }
.risk-badge { padding: 5px 11px; border-radius: 999px; font-family: var(--mono); font-size: 11px; color: var(--red); border: 1px solid rgba(255, 107, 122, .4); background: rgba(255, 107, 122, .08); transition: all .6s var(--ease); }
[data-phase="2"] .risk-badge { color: var(--teal); border-color: rgba(79, 209, 181, .4); background: rgba(79, 209, 181, .08); }
.micro-chart { width: 100%; height: auto; margin: 14px 0 6px; overflow: visible; }
.micro-chart .threshold { stroke: rgba(255, 107, 122, .5); stroke-dasharray: 4 5; stroke-width: 1; }
.micro-chart .threshold-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; fill: rgba(255, 107, 122, .7); }
.micro-chart .chart-area { fill: url(#heroArea); opacity: 0; transition: opacity 1s; }
.micro-chart .chart-line { fill: none; stroke: var(--blue-2); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-io), opacity .8s; }
.micro-chart .chart-action { fill: none; stroke: url(#heroGold); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-io); filter: drop-shadow(0 0 6px rgba(231, 201, 133, .5)); }
.gap-marker { opacity: 0; transform-origin: 230px 112px; transform: scale(.4); transition: opacity .5s, transform .6s var(--ease); }
.gap-marker circle { fill: var(--red); }
.gap-marker .gap-ring { fill: none; stroke: var(--red); stroke-width: 1.5; transform-origin: 230px 112px; animation: ring 1.8s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
[data-phase="0"] .chart-line, [data-phase="1"] .chart-line, [data-phase="2"] .chart-line { stroke-dashoffset: 0; }
[data-phase="0"] .chart-area, [data-phase="1"] .chart-area { opacity: 1; }
[data-phase="0"] .gap-marker, [data-phase="1"] .gap-marker { opacity: 1; transform: none; }
[data-phase="2"] .chart-line { opacity: .35; }
[data-phase="2"] .chart-action { stroke-dashoffset: 0; }
.signal-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; }
.signal-options .opt { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 11, 24, .4); font-size: 11px; color: var(--muted); opacity: .35; transform: translateY(6px); transition: all .6s var(--ease); }
.signal-options .opt b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--text-2); }
[data-phase="1"] .opt, [data-phase="2"] .opt { opacity: 1; transform: none; }
[data-phase="1"] .opt:nth-child(2) { transition-delay: .15s; }
[data-phase="1"] .opt:nth-child(3) { transition-delay: .3s; }
[data-phase="1"] .opt.best, [data-phase="2"] .opt.best { border-color: rgba(231, 201, 133, .55); background: rgba(231, 201, 133, .08); box-shadow: 0 0 24px -6px rgba(231, 201, 133, .45); }
[data-phase="1"] .opt.best b, [data-phase="2"] .opt.best b { color: var(--gold-2); }
[data-phase="2"] .opt:not(.best) { opacity: .4; }
.signal-recommendation { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 11, 24, .45); opacity: .45; transition: all .6s var(--ease); }
[data-phase="2"] .signal-recommendation { opacity: 1; border-color: rgba(231, 201, 133, .35); }
.recommendation-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(93, 126, 255, .16); border: 1px solid rgba(93, 126, 255, .35); }
.signal-recommendation strong { display: block; font-size: 13px; font-weight: 600; }
.signal-recommendation span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.hero-signal .illustrative { margin-top: 12px; text-align: right; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border-radius: 14px; border: 1px solid var(--line-2); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--text-2); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* MARQUEE */
.system-ribbon { border-block: 1px solid var(--line); background: rgba(7, 17, 42, .5); overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 22px 0; animation: marquee 38s linear infinite; }
.system-ribbon:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .2em; color: var(--muted); white-space: nowrap; }
.marquee-track span.hl { color: var(--gold); }
.marquee-track i { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); position: relative; }
.marquee-track i::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 8px var(--blue-2); animation: pkt 2.4s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pkt { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 100%; opacity: 0; } }

/* SECTIONS */
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
.section-heading { margin-bottom: clamp(44px, 6vw, 72px); }
.section-heading h2, .converge h2 { font-size: clamp(36px, 4.8vw, 66px); }
.section-heading em, .converge h2 em, .bento h3 em { color: var(--blue-2); }
.section-heading.narrow { max-width: 760px; }
.section-heading.narrow p { margin-top: 22px; max-width: 580px; color: var(--text-2); font-size: 17px; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.split-heading > p { color: var(--text-2); font-size: 17px; max-width: 440px; justify-self: end; }

/* CONVERGENCE */
.converge { position: relative; }
.converge-sticky { padding: clamp(80px, 10vw, 128px) 0; overflow: hidden; }
.converge-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.converge-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 4px; }
.converge-steps li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); transition: color .5s; position: relative; }
.converge-steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--gold); transition: width .8s var(--ease); }
.converge-steps li b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.converge-steps li.is-on { color: var(--text); }
.converge-steps li.is-on::before { width: 100%; }
.converge-steps li.is-on b { color: var(--gold); }
.converge-stage { --p: 0; position: relative; height: min(72vh, 620px); container-type: size; }
.stage-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-rings span { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.stage-rings span:nth-child(1) { width: 30cqmin; height: 30cqmin; transform: scale(calc(.8 + var(--p) * .3)); border-color: rgba(231, 201, 133, calc(.1 + var(--p) * .35)); }
.stage-rings span:nth-child(2) { width: 60cqmin; height: 60cqmin; animation: spin 40s linear infinite; border-style: dashed; }
.stage-rings span:nth-child(3) { width: 92cqmin; height: 92cqmin; opacity: calc(1 - var(--p)); }
@keyframes spin { to { transform: rotate(360deg); } }
.chip {
  --q: clamp(0, calc(var(--p) * 1.75), 1);
  position: absolute; left: 50%; top: 50%; width: 168px; padding: 12px 14px; border-radius: 14px;
  background: rgba(12, 24, 54, .82); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  transform: translate(-50%, -50%) translate(calc(var(--dx) * (1 - var(--q))), calc(var(--dy) * (1 - var(--q)))) rotate(calc(var(--r) * (1 - var(--q)))) scale(calc(1 - var(--q) * .45));
  opacity: clamp(0, calc((.6 - var(--p)) * 3.2), 1);
  will-change: transform, opacity;
}
.chip b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--blue-2); font-weight: 500; }
.chip span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.chip strong { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.chip:nth-of-type(odd) { animation: bob 5s ease-in-out infinite; }
.chip:nth-of-type(even) { animation: bob 6s ease-in-out infinite reverse; }
@keyframes bob { 50% { margin-top: -6px; } }
.truth-card {
  --t: clamp(0, calc((var(--p) - .48) * 3.2), 1);
  position: absolute; left: 50%; top: 50%; width: min(420px, 94%); padding: 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 38, 82, .92), rgba(8, 16, 36, .95)); border: 1px solid rgba(231, 201, 133, .35);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(231, 201, 133, calc(var(--t) * .35));
  opacity: var(--t); transform: translate(-50%, -50%) scale(calc(.85 + var(--t) * .15));
}
.truth-head { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--text-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.core-status { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--teal); border: 1px solid rgba(79, 209, 181, .35); background: rgba(79, 209, 181, .08); }
.truth-card dl { margin: 6px 0 12px; }
.truth-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.truth-card dt { color: var(--text-2); font-size: 14px; }
.truth-card dd { margin: 0; font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.truth-card .warn dd { color: var(--red); }
.truth-card .good dd { color: var(--teal); }

/* BENTO */
.bento-section { padding-top: 40px; }
.bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; }
.bento-card { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(20, 34, 72, .5), rgba(8, 16, 36, .5)); overflow: hidden; }
.bento-card h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 14px; }
.bento-card > p { color: var(--text-2); max-width: 460px; }
.card-number { position: absolute; top: 26px; right: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.window-viz { margin-top: 34px; }
.window-track { position: relative; height: 34px; margin: 0 26px; border-top: 1px dashed var(--line-2); top: 10px; }
.wlabel { position: absolute; top: -26px; left: var(--x); transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wlabel.danger { color: var(--red); }
.wdot { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 12px var(--blue-2); animation: travel 5s var(--ease-io) infinite; }
@keyframes travel { 0% { left: 0; background: var(--teal); box-shadow: 0 0 12px var(--teal); } 50% { background: var(--blue-2); box-shadow: 0 0 12px var(--blue-2); } 90%, 100% { left: 100%; background: var(--red); box-shadow: 0 0 14px var(--red); } }
.cost-curve { width: 100%; height: 90px; overflow: visible; }
.cc-area { fill: rgba(255, 107, 122, .08); }
.cc-line { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io) .3s; }
.is-visible .cc-line { stroke-dashoffset: 0; }
.window-legend { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.window-legend .cheap { color: var(--teal); }
.orbit-card { padding-right: clamp(26px, 34%, 300px); min-height: 380px; }
.orbit-card h3 { font-size: clamp(30px, 3.2vw, 44px); }
.orbit-card > p { margin-bottom: 26px; }
.truth-orbit { position: absolute; right: -40px; top: 50%; width: 340px; height: 340px; transform: translateY(-50%); display: grid; place-items: center; }
.truth-orbit > span { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); animation: spin linear infinite; }
.truth-orbit > span i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; }
.truth-orbit .o1 { width: 130px; height: 130px; animation-duration: 9s; }
.truth-orbit .o1 i { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.truth-orbit .o2 { width: 220px; height: 220px; animation-duration: 16s; animation-direction: reverse; }
.truth-orbit .o2 i { background: var(--blue-2); box-shadow: 0 0 14px var(--blue-2); }
.truth-orbit .o3 { width: 320px; height: 320px; animation-duration: 26s; border-style: dashed; }
.truth-orbit .o3 i { background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.truth-orbit img { filter: drop-shadow(0 0 24px rgba(231, 201, 133, .5)); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }

/* spotlight cards */
.spot { --mx: 50%; --my: 0%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(138, 162, 255, .12), transparent 45%); opacity: 0; transition: opacity .4s; }
.spot:hover::after { opacity: 1; }

/* LEVERS */
.levers-section { background: radial-gradient(ellipse 80% 60% at 30% 40%, rgba(93, 126, 255, .08), transparent 70%); }
.levers-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-width: 0; gap: 20px; align-items: stretch; }
.levers-panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(20, 34, 72, .55), rgba(8, 16, 36, .6)); }
.levers-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.levers-meta span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.levers-meta b { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(5, 11, 24, .6); border: 1px solid var(--line-2); }
.toggle button { position: relative; z-index: 1; padding: 8px 16px; border: 0; background: none; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .4s; white-space: nowrap; }
.toggle button[aria-checked="true"] { color: #071020; }
.toggle-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--text); transition: transform .6s var(--ease), background .6s; }
[data-mode="true"] .toggle-thumb { transform: translateX(100%); background: var(--gold-2); }
.lever-list { position: relative; }
.lever {
  position: absolute; left: 0; right: 0; top: 0; height: 72px;
  display: grid; grid-template-columns: 280px minmax(0, 1fr) 72px; grid-template-rows: auto auto; column-gap: 18px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line);
  transform: translateY(calc(var(--row, 0) * 72px)); transition: transform 1s var(--ease);
}
.lever-label strong { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.lever-label span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lever-bar { position: relative; height: 12px; border-radius: 999px; background: rgba(148, 170, 255, .06); display: flex; overflow: hidden; }
.lever-bar i { display: block; height: 100%; width: 0; transition: width 1.1s var(--ease); }
.lever-bar .vis { background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 999px 0 0 999px; }
.lever-bar .hid { background: repeating-linear-gradient(-45deg, var(--red) 0 6px, rgba(255, 107, 122, .55) 6px 12px); }
.lever-value { font-family: var(--mono); font-weight: 500; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.lever-note { grid-column: 2 / 4; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--red); height: 0; opacity: 0; overflow: hidden; transition: opacity .6s .3s; }
[data-mode="true"] .lever-note { opacity: 1; height: auto; }
.lever.is-best .lever-value { color: var(--gold-2); }
.lever.is-best .lever-label strong::after { content: "cheapest"; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(231, 201, 133, .4); vertical-align: 2px; }
.lever.is-worst .lever-value { color: var(--red); }
.lever[data-key="collections"] .lever-label strong { color: var(--text); }
[data-mode="true"] .lever.is-worst { background: linear-gradient(90deg, rgba(255, 107, 122, .07), transparent 70%); }
.levers-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.levers-foot span { display: inline-flex; align-items: center; gap: 8px; }
.levers-foot i { width: 18px; height: 8px; border-radius: 4px; }
.k-vis { background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.k-hid { background: repeating-linear-gradient(-45deg, var(--red) 0 4px, rgba(255, 107, 122, .5) 4px 8px); }
.levers-foot .formula { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-2); padding: 5px 10px; border-radius: 8px; background: rgba(5, 11, 24, .5); border: 1px solid var(--line); }
.mix-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid rgba(231, 201, 133, .35); background: radial-gradient(circle at 80% 0%, rgba(231, 201, 133, .16), transparent 55%), linear-gradient(170deg, rgba(26, 38, 78, .8), rgba(8, 16, 36, .9)); }
.mix-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--gold); }
.mix-value { font-size: 64px; font-weight: 500; letter-spacing: -.05em; line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.mix-delta { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; color: var(--teal); background: rgba(79, 209, 181, .1); border: 1px solid rgba(79, 209, 181, .3); }
.mix-stack { display: flex; gap: 3px; height: 10px; margin: 26px 0 16px; }
.mix-stack i { width: 0; height: 100%; border-radius: 3px; background: var(--c); transition: width 1.2s var(--ease); }
.is-visible .mix-stack i { width: var(--w); }
.is-visible .mix-stack i:nth-child(2) { transition-delay: .15s; }
.is-visible .mix-stack i:nth-child(3) { transition-delay: .3s; }
.mix-legend { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.mix-legend li { display: flex; align-items: center; gap: 10px; }
.mix-legend li i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.mix-legend b { margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: 12.5px; }
.mix-card > p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.mix-card .illustrative { margin-top: auto; padding-top: 18px; }

/* CONSOLE */
.console-section { background: linear-gradient(180deg, transparent, rgba(10, 22, 51, .6) 30%, rgba(10, 22, 51, .6) 70%, transparent); }
.intelligence-console { border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(8, 16, 36, .75); backdrop-filter: blur(14px); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; }
.console-topbar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo-label { margin-left: auto; color: var(--gold); }
.console-tabs { position: relative; display: flex; gap: 4px; padding: 12px 20px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.console-tabs button { padding: 12px 16px 14px; border: 0; background: none; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .3s; }
.console-tabs button[aria-selected="true"] { color: var(--text); }
.tab-indicator { position: absolute; bottom: -1px; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--gold)); transition: transform .6s var(--ease), width .6s var(--ease); }
.console-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); min-height: 440px; }
.console-panel[hidden] { display: none; }
.metric-column { padding: clamp(24px, 3.5vw, 44px); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.metric-label { font-size: 13.5px; color: var(--muted); }
.metric-value { font-size: clamp(56px, 6vw, 84px); font-weight: 500; letter-spacing: -.05em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.metric-delta { font-size: 14px; font-weight: 500; }
.metric-delta.negative { color: var(--red); }
.metric-delta.positive { color: var(--teal); }
.decision-note { margin-top: auto; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(93, 126, 255, .3); background: linear-gradient(135deg, rgba(93, 126, 255, .12), rgba(93, 126, 255, .03)); position: relative; overflow: hidden; }
.decision-note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--blue), var(--gold)); }
.decision-note span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--blue-2); }
.decision-note p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }
.chart-column { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.chart-key { display: flex; gap: 20px; justify-content: flex-end; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.chart-key span { display: inline-flex; align-items: center; gap: 8px; }
.chart-key i { width: 18px; height: 2px; }
.line-blue { background: var(--blue-2); }
.line-gold { background: var(--gold); }
.forecast-chart { width: 100%; height: auto; overflow: visible; }
.grid-lines path { stroke: var(--line); stroke-width: 1; fill: none; }
.floor-line { stroke: rgba(255, 107, 122, .55); stroke-dasharray: 5 6; }
.forecast-chart text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; fill: var(--muted); }
.forecast-chart > text { fill: rgba(255, 107, 122, .75); }
.forecast-base { fill: none; stroke: var(--blue-2); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.forecast-action { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 8px rgba(231, 201, 133, .45)); }
.forecast-fill { fill: url(#fcArea); opacity: 0; }
.gap-point { fill: var(--red); opacity: 0; transform-origin: 410px 244px; }
.console-panel.is-active .forecast-base { animation: draw 1.8s var(--ease-io) .2s forwards; }
.console-panel.is-active .gap-point { animation: pop .6s var(--ease) 1.5s forwards; }
.console-panel.is-active .forecast-action { animation: draw 1.6s var(--ease-io) 1.9s forwards; }
.console-panel.is-active .forecast-fill { animation: fade 1s ease 3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }
.matrix-column { position: relative; padding: 48px 36px 36px 64px; }
.matrix-label { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.matrix-label.top { top: 20px; left: 64px; }
.matrix-label.side { left: 22px; bottom: 36px; transform-origin: 0 0; transform: rotate(-90deg) translateX(-100%); left: 30px; top: auto; bottom: auto; top: 50%; }
.risk-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 100%; min-height: 330px; }
.risk-matrix > div { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(148, 170, 255, .03); }
.risk-matrix small { font-size: 12.5px; color: var(--muted); }
.risk-matrix .focus-cell { border-color: rgba(231, 201, 133, .45); background: radial-gradient(circle, rgba(231, 201, 133, .12), transparent 70%); }
.risk-matrix .focus-cell small { color: var(--gold); }
.bubble { display: grid; place-items: center; border-radius: 50%; font-family: var(--mono); font-weight: 500; transform: scale(0); }
.console-panel.is-active .bubble { animation: bubble .9s var(--ease) forwards; }
.b1 { width: 64px; height: 64px; background: rgba(93, 126, 255, .2); border: 1px solid rgba(93, 126, 255, .5); animation-delay: .1s !important; }
.b2 { width: 92px; height: 92px; font-size: 22px; background: rgba(231, 201, 133, .18); border: 1px solid rgba(231, 201, 133, .6); color: var(--gold-2); box-shadow: 0 0 40px -6px rgba(231, 201, 133, .5); animation-delay: .25s !important; }
.b3 { width: 56px; height: 56px; background: rgba(255, 107, 122, .15); border: 1px solid rgba(255, 107, 122, .45); animation-delay: .4s !important; }
.b4 { width: 104px; height: 104px; background: rgba(79, 209, 181, .1); border: 1px solid rgba(79, 209, 181, .35); animation-delay: .55s !important; }
@keyframes bubble { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.waterfall { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.waterfall-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 80px; gap: 16px; align-items: center; font-size: 14px; color: var(--text-2); }
.waterfall-row i { height: 28px; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.waterfall-row.cost i { background: linear-gradient(90deg, rgba(255, 107, 122, .6), var(--red)); }
.waterfall-row.gain i { background: linear-gradient(90deg, rgba(231, 201, 133, .6), var(--gold)); }
.waterfall-row b { font-family: var(--mono); font-weight: 500; text-align: right; }
.console-panel.is-active .waterfall-row i { animation: grow 1.1s var(--ease) forwards; }
.console-panel.is-active .waterfall-row:nth-child(2) i { animation-delay: .15s; }
.console-panel.is-active .waterfall-row:nth-child(3) i { animation-delay: .3s; }
.console-panel.is-active .waterfall-row:nth-child(4) i { animation-delay: .45s; }
@keyframes grow { to { width: var(--w); } }
.waterfall-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); font-weight: 500; }
.waterfall-total b { font-size: 26px; letter-spacing: -.03em; color: var(--gold-2); font-weight: 500; }

/* ARCHITECTURE */
.architecture-map { padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(20, 34, 72, .4), rgba(8, 16, 36, .5)); }
.source-row, .layer-row, .domain-row, .flow-connector { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.source-row span { padding: 14px 8px; text-align: center; border-radius: 12px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; color: var(--text-2); background: rgba(5, 11, 24, .5); }
.flow-connector { height: 44px; }
.flow-connector.short { height: 30px; }
.flow-connector i { position: relative; justify-self: center; width: 1px; height: 100%; background: linear-gradient(var(--line-2), var(--blue)); overflow: visible; }
.flow-connector i::after { content: ""; position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: drop 2.2s var(--ease-io) infinite; }
.flow-connector i:nth-child(2)::after { animation-delay: .4s; }
.flow-connector i:nth-child(3)::after { animation-delay: .8s; }
.flow-connector i:nth-child(4)::after { animation-delay: 1.2s; }
.flow-connector i:nth-child(5)::after { animation-delay: 1.6s; }
@keyframes drop { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.layer-row article { position: relative; padding: 18px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 24, 54, .6); overflow: hidden; animation: layer-pulse 7.5s var(--ease-io) infinite; }
.layer-row article::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; animation: layer-bar 7.5s var(--ease-io) infinite; }
.layer-row article:nth-child(2), .layer-row article:nth-child(2)::before { animation-delay: 1.5s; }
.layer-row article:nth-child(3), .layer-row article:nth-child(3)::before { animation-delay: 3s; }
.layer-row article:nth-child(4), .layer-row article:nth-child(4)::before { animation-delay: 4.5s; }
.layer-row article:nth-child(5), .layer-row article:nth-child(5)::before { animation-delay: 6s; }
@keyframes layer-pulse { 0%, 22%, 100% { border-color: var(--line); background: rgba(12, 24, 54, .6); } 8%, 16% { border-color: rgba(138, 162, 255, .45); background: rgba(40, 60, 130, .45); } }
@keyframes layer-bar { 0% { transform: scaleX(0); } 12% { transform: scaleX(1); } 22%, 100% { transform: scaleX(1); opacity: 0; } }
.layer-row b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.layer-row strong { display: block; margin-top: 12px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.layer-row span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.atenea-core { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(rgba(14, 26, 60, .95), rgba(14, 26, 60, .95)) padding-box, conic-gradient(from var(--ang), var(--blue), var(--violet), var(--gold), var(--blue)) border-box; animation: spin-ang 8s linear infinite; overflow: hidden; }
.core-glow { position: absolute; left: 0; top: 50%; width: 220px; height: 220px; margin-top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(231, 201, 133, .25), transparent 60%); animation: sweep 6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes sweep { to { transform: translateX(calc(min(1100px, 80vw) - 220px)); } }
.atenea-core strong { display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; font-weight: 500; }
.atenea-core div span { font-size: 13px; color: var(--muted); }
.atenea-core .core-status { margin-left: auto; }
.domain-row { margin-top: 12px; }
.domain-row span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; border-radius: 10px; background: rgba(5, 11, 24, .5); font-size: 12.5px; color: var(--text-2); }
.domain-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* OUTCOMES */
.outcomes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.outcome-card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(20, 34, 72, .45), rgba(8, 16, 36, .5)); overflow: hidden; transition: transform .6s var(--ease), border-color .6s; }
.outcome-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.outcome-card.featured { background: radial-gradient(circle at 70% 0%, rgba(93, 126, 255, .22), transparent 60%), linear-gradient(170deg, rgba(24, 40, 88, .7), rgba(8, 16, 36, .6)); border-color: rgba(138, 162, 255, .3); }
.outcome-index { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--gold); }
.outcome-card h3 { margin-top: 44px; font-size: 27px; letter-spacing: -.03em; line-height: 1.12; }
.outcome-card p { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.outcome-card ul { list-style: none; margin: auto 0 0; padding: 26px 0 0; }
.outcome-card li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); display: flex; gap: 10px; }
.outcome-card li::before { content: "↳"; color: var(--blue-2); }

/* TRUST */
.trust-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.trust-copy h2 { font-size: clamp(34px, 4.2vw, 58px); }
.trust-copy h2 em { color: var(--blue-2); }
.trust-copy > p:not(.kicker) { margin-top: 22px; color: var(--text-2); font-size: 16.5px; }
.trust-list { display: grid; gap: 0; margin-top: 30px; }
.trust-list > span { display: flex; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.trust-list i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--gold); padding-top: 2px; }
.model-gateway { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(170deg, rgba(20, 34, 72, .7), rgba(8, 16, 36, .8)); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); display: grid; gap: 12px; }
.gateway-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.gateway-head small { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-size: 10.5px; }
.gateway-head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: ping-teal 2s infinite; }
.gateway-input, .gateway-output { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 11, 24, .5); }
.gateway-input span, .gateway-output span { display: block; font-size: 12px; color: var(--muted); }
.gateway-input b { display: block; margin-top: 4px; font-weight: 500; min-height: 1.6em; }
.gateway-input b.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--gold); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.gateway-policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gateway-policy span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); background: rgba(5, 11, 24, .35); transition: all .5s var(--ease); }
.gateway-policy i { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: all .4s; }
.gateway-policy span.is-ok { color: var(--text); border-color: rgba(79, 209, 181, .35); background: rgba(79, 209, 181, .07); }
.gateway-policy span.is-ok i { background: var(--teal); border-color: var(--teal); }
.gateway-policy span.is-ok i::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px; border: solid #071020; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.gateway-router { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gateway-router div { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 11, 24, .35); transition: all .6s var(--ease); }
.gateway-router small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--muted); }
.gateway-router strong { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.25; }
.gateway-router span { display: block; font-size: 11.5px; color: var(--muted); }
[data-gstate="4"] .gateway-router .route-active, [data-gstate="5"] .gateway-router .route-active, .model-gateway.static .route-active { border-color: rgba(138, 162, 255, .6); background: rgba(93, 126, 255, .14); box-shadow: 0 0 30px -8px rgba(93, 126, 255, .6); }
.gateway-output { transition: all .6s var(--ease); opacity: .4; }
.gateway-output b { display: block; margin-top: 4px; font-weight: 500; }
[data-gstate="5"] .gateway-output, .model-gateway.static .gateway-output { opacity: 1; border-color: rgba(231, 201, 133, .4); background: rgba(231, 201, 133, .06); }

/* THESIS */
.thesis-section { background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(154, 132, 255, .08), transparent 70%); }
.thesis-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.thesis-statement { position: sticky; top: 120px; }
.thesis-statement blockquote { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.015em; }
[data-light] .lw { opacity: .18; transition: opacity .4s, color .4s; }
[data-light] .lw.on { opacity: 1; }
[data-light] .lw.hi { color: var(--gold-2); }
.thesis-points article { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 28px 0; border-top: 1px solid var(--line); }
.thesis-points span { font-family: var(--mono); font-size: 12px; color: var(--gold); padding-top: 6px; }
.thesis-points h3 { font-size: 24px; letter-spacing: -.02em; }
.thesis-points p { margin-top: 8px; color: var(--text-2); }

/* CONTACT */
.contact-section { position: relative; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; border-top: 1px solid var(--line); }
.contact-glow { position: absolute; left: 50%; top: 0; width: 900px; height: 500px; margin-left: -450px; background: radial-gradient(ellipse, rgba(93, 126, 255, .22), transparent 65%); filter: blur(30px); pointer-events: none; }
.contact-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact-copy h2 { margin-top: 26px; font-size: clamp(36px, 4.4vw, 60px); }
.contact-copy h2 em { color: var(--blue-2); }
.contact-copy > p:not(.pill) { margin-top: 22px; color: var(--text-2); font-size: 16.5px; max-width: 480px; }
.contact-note { display: grid; gap: 6px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.contact-note span::before { content: "— "; color: var(--gold); }
.contact-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(170deg, rgba(20, 34, 72, .65), rgba(8, 16, 36, .8)); backdrop-filter: blur(14px); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; color: var(--text-2); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 11, 24, .6); font-size: 15px; transition: border-color .3s, box-shadow .3s, background .3s; }
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(141, 152, 184, .6); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: rgba(138, 162, 255, .7); background: rgba(10, 22, 51, .8); box-shadow: 0 0 0 4px rgba(93, 126, 255, .15); }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form option { background: var(--bg-2); }
.hidden-field { display: none; }
.form-button { justify-content: center; margin-top: 4px; }
.form-privacy { text-align: center; font-size: 12px; color: var(--muted); }

/* FOOTER */
.site-footer { position: relative; padding: 40px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-main p { color: var(--muted); font-size: 14px; }
.footer-access { margin-left: auto; font-size: 13px; color: var(--text-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 20px 0; font-size: 12px; color: var(--muted); }
.footer-word { font-weight: 600; font-size: clamp(72px, 19vw, 280px); line-height: .75; letter-spacing: -.02em; text-align: center; margin-top: 10px; background: linear-gradient(180deg, rgba(138, 162, 255, .14), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* RESPONSIVE */
@media (max-width: 1040px) {
  .hero-veil { background: linear-gradient(180deg, rgba(5, 11, 24, .55) 0%, rgba(5, 11, 24, .82) 40%, rgba(5, 11, 24, .9) 75%, var(--bg) 100%); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-signal { max-width: 520px; }
  .converge-layout { grid-template-columns: 1fr; gap: 12px; }
  .converge-copy h2 { font-size: clamp(30px, 6vw, 48px); }
  .converge-steps { margin-top: 18px; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .converge-steps li { flex-direction: column; gap: 4px; padding: 10px 0; font-size: 13.5px; line-height: 1.35; }
  .converge-stage { height: 50svh; }
  .levers-shell { grid-template-columns: 1fr; }
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .split-heading > p { justify-self: start; }
  .console-panel { grid-template-columns: 1fr; }
  .metric-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .decision-note { margin-top: 24px; }
  .trust-layout, .thesis-layout, .contact-layout { grid-template-columns: 1fr; }
  .thesis-statement { position: static; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .outcome-card h3 { margin-top: 26px; }
  .bento { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-nav { position: absolute; top: calc(100% + 12px); left: 0; right: 0; flex-direction: column; padding: 8px; border-radius: 18px; background: rgba(7, 17, 42, .96); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: all .35s var(--ease); }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { padding: 12px 14px; font-size: 16px; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 22, 51, .5); cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-cta { display: none; }
  .architecture-map { overflow-x: auto; }
  .source-row, .layer-row, .domain-row, .flow-connector { min-width: 720px; }
  .lever { grid-template-columns: minmax(0, 1fr) 64px; grid-template-rows: auto 12px auto; height: 88px; row-gap: 6px; transform: translateY(calc(var(--row, 0) * 88px)); }
  .lever-label { grid-column: 1; }
  .lever-value { grid-column: 2; grid-row: 1; }
  .lever-bar { grid-column: 1 / 3; grid-row: 2; }
  .lever-note { grid-column: 1 / 3; grid-row: 3; }
  .levers-foot .formula { margin-left: 0; }
  .gateway-policy, .gateway-router { grid-template-columns: 1fr; }
  .orbit-card { padding-right: clamp(26px, 3vw, 40px); padding-top: 220px; }
  .truth-orbit { right: 50%; top: 20px; transform: translateX(50%) scale(.6); transform-origin: 50% 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: 110px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .signal-main strong { font-size: 36px; }
  .chip { width: 124px; padding: 9px 10px; }
  .chip strong { font-size: 17px; }
  .chip span { font-size: 10.5px; }
  .field-row { grid-template-columns: 1fr; }
  .waterfall-row { grid-template-columns: 100px minmax(0, 1fr) 64px; font-size: 12.5px; gap: 10px; }
  .matrix-column { padding: 44px 16px 20px 44px; }
  .matrix-label.top { left: 44px; }
  .matrix-label.side { left: 18px; }
  .footer-access { margin-left: 0; }
  .levers-foot { font-size: 11.5px; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  [data-split] .w > span { transform: none; opacity: 1; }
  .marquee-track { animation: none; }
  .converge-steps li { color: var(--text); }
  [data-light] .lw { opacity: 1; }
  .hero-bg img { animation: none; }
}

.hero h1.is-split em { background: none; color: inherit; }
.hero h1.is-split em .w > span { color: var(--wc, #b7c4ff); }

/* ===================== v3 additions ===================== */

/* language switch */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 22, 51, .4); backdrop-filter: blur(10px); }
.lang-switch button { padding: 6px 11px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted); transition: color .3s, background .3s; }
.lang-switch button[aria-pressed="true"] { color: #071020; background: var(--text); }
@media (max-width: 860px) { .lang-switch { margin-left: auto; } .menu-toggle { margin-left: 0; } }

/* ribbon caption */
.ribbon-caption { text-align: center; padding: 18px 16px 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.system-ribbon .marquee-track { padding-top: 14px; }

/* hero decision feed */
.decision-feed { padding: 20px; }
.gap-meter { margin-top: 16px; padding: 14px 14px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 11, 24, .45); }
.gap-meter-labels { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.gap-meter-labels b { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.gap-meter-labels small { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.gap-track { position: relative; height: 10px; margin: 10px 0; border-radius: 999px; background: rgba(148, 170, 255, .08); overflow: hidden; }
.gap-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--violet) 60%, var(--gold)); transition: width 1s var(--ease); box-shadow: 0 0 18px -2px rgba(138, 162, 255, .7); }
.is-closed .gap-track i { background: linear-gradient(90deg, var(--teal), var(--gold)); }
.gap-meter-foot { display: flex; align-items: baseline; gap: 10px; font-size: 11.5px; color: var(--muted); }
.gap-meter-foot b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.gap-vs { margin-left: auto; color: var(--red); opacity: .8; }
.feed-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; min-height: 172px; }
.feed-row { display: grid; grid-template-columns: minmax(0, 1.1fr) 14px minmax(0, 1fr) 62px 46px; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 11, 24, .35); font-size: 12px; opacity: 0; transform: translateY(-10px); transition: opacity .55s var(--ease), transform .55s var(--ease), background .5s; }
.feed-row.is-in { opacity: 1; transform: none; }
.feed-row .fr-who { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .fr-arrow { color: var(--muted); text-align: center; }
.feed-row .fr-lever { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .fr-amt, .feed-row .fr-cost { font-family: var(--mono); font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; }
.feed-row .fr-cost { color: var(--muted); }
.feed-row.k-none .fr-lever { color: var(--muted); }
.feed-row.k-offer .fr-lever { color: var(--blue-2); }
.feed-row.k-msi .fr-lever { color: var(--violet); }
.feed-row.k-plan .fr-lever { color: var(--teal); }
.feed-row.k-credit { border-color: rgba(231, 201, 133, .35); background: rgba(231, 201, 133, .06); }
.feed-row.k-credit .fr-lever { color: var(--gold-2); }
.feed-row:first-child { border-color: var(--line-2); background: rgba(20, 34, 72, .6); }
.decision-feed .signal-recommendation { opacity: 1; border-color: rgba(231, 201, 133, .25); }

/* collections story (sticky) */
.story { position: relative; }
.story-sticky { padding: clamp(80px, 10vw, 128px) 0; }
.story-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.story-copy h2 { font-size: clamp(34px, 4.4vw, 60px); }
.story-copy h2 em { color: var(--red); }
.story-steps { list-style: none; padding: 0; margin: 34px 0 0; }
.story-steps li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); position: relative; transition: color .5s; }
.story-steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--red); transition: width .8s var(--ease); }
.story-steps li b { font-family: var(--mono); font-size: 12px; font-weight: 500; padding-top: 3px; }
.story-steps li strong { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.3; color: inherit; }
.story-steps li span { display: block; font-size: 13px; line-height: 1.45; margin-top: 2px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .6s var(--ease), max-height .6s var(--ease); }
.story-steps li.is-on { color: var(--text); }
.story-steps li.is-on::before { width: 100%; }
.story-steps li.is-on b { color: var(--red); }
.story-steps li.is-on span { opacity: 1; max-height: 80px; color: var(--text-2); }
.story-stage { position: relative; }
.story-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(20, 34, 72, .75), rgba(8, 16, 36, .85)); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); }
.story-card-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.story-badge { padding: 4px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .12em; border: 1px solid rgba(255, 107, 122, .4); color: var(--red); background: rgba(255, 107, 122, .08); transition: all .5s; }
[data-state="1"] .story-badge { color: var(--blue-2); border-color: rgba(138, 162, 255, .4); background: rgba(93, 126, 255, .1); }
.story-chart { width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.story-chart .grid-lines path { stroke: var(--line); }
.story-chart .floor-line { stroke: rgba(255, 107, 122, .55); stroke-dasharray: 5 6; }
.story-chart text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; fill: var(--muted); }
.story-chart > text { fill: rgba(255, 107, 122, .75); }
.st-fill { fill: url(#stFill); transition: d .9s var(--ease); }
.st-line { fill: none; stroke: var(--blue-2); stroke-width: 2.6; stroke-linecap: round; transition: d .9s var(--ease), stroke .5s; }
[data-state="3"] .st-line { stroke: var(--red); }
[data-state="3"] .st-fill { fill: url(#stRed); }
.st-gap circle { fill: var(--red); }
.st-gap text { fill: var(--red); }
.st-gap { transition: opacity .4s, transform .9s var(--ease); }
[data-state="1"] .st-gap, [data-state="2"] .st-gap { opacity: 0; }
[data-state="3"] .st-gap { transform: translateY(14px); }
.st-students circle { fill: var(--teal); opacity: 0; transition: opacity .5s, fill .5s, transform .8s var(--ease); }
[data-state="1"] .st-students circle, [data-state="2"] .st-students circle, [data-state="3"] .st-students circle { opacity: 1; }
[data-state="2"] .st-students circle:nth-child(odd), [data-state="3"] .st-students circle:nth-child(odd) { fill: var(--red); opacity: .25; transform: translateY(-16px); }
[data-state="2"] .st-students circle:nth-child(3), [data-state="3"] .st-students circle:nth-child(3) { transition-delay: .1s; }
[data-state="2"] .st-students circle:nth-child(5), [data-state="3"] .st-students circle:nth-child(5) { transition-delay: .2s; }
[data-state="2"] .st-students circle:nth-child(7), [data-state="3"] .st-students circle:nth-child(7) { transition-delay: .3s; }
.story-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.story-stats div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 11, 24, .4); }
.story-stats span { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.story-stats b { display: block; margin-top: 4px; font-family: var(--mono); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.story-stats .warn b { color: var(--red); }
.story-card .illustrative { margin-top: 12px; text-align: right; }

/* engine */
.engine-section { background: radial-gradient(ellipse 70% 50% at 70% 30%, rgba(154, 132, 255, .09), transparent 70%); }
.engine-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.engine-inputs { position: relative; display: grid; gap: 10px; align-content: start; }
.input-node { position: relative; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(20, 34, 72, .5), rgba(8, 16, 36, .55)); }
.input-node b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--gold); }
.input-node strong { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.25; }
.input-node span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.input-node::after { content: ""; position: absolute; right: -21px; top: 50%; width: 20px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--blue)); }
.input-node::before { content: ""; position: absolute; right: -8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: slide-in 2.4s var(--ease-io) infinite; }
.input-node:nth-child(2)::before { animation-delay: .6s; } .input-node:nth-child(3)::before { animation-delay: 1.2s; } .input-node:nth-child(4)::before { animation-delay: 1.8s; }
@keyframes slide-in { 0% { right: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { right: -22px; opacity: 0; } }
.input-lines { display: none; }
.engine-core { display: grid; grid-template-columns: 210px minmax(0, 1fr); border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(8, 16, 36, .75); backdrop-filter: blur(14px); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.payer-picker { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-right: 1px solid var(--line); background: rgba(5, 11, 24, .35); }
.payer-picker button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; transition: all .4s var(--ease); }
.payer-picker button b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.25; color: var(--text-2); }
.payer-picker button span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.payer-picker button:hover { background: var(--panel-2); }
.payer-picker button[aria-selected="true"] { border-color: rgba(138, 162, 255, .35); background: rgba(93, 126, 255, .12); }
.payer-picker button[aria-selected="true"] b { color: var(--text); }
.decision-card { padding: 22px; display: flex; flex-direction: column; gap: 18px; transition: opacity .26s ease, transform .26s ease; }
.decision-card.is-out { opacity: 0; transform: translateY(8px); }
.decision-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.decision-head i { font-style: normal; color: var(--gold); }
.decision-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; }
.dc-label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dc-signals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dc-signals li { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 11, 24, .4); font-size: 13px; color: var(--text-2); line-height: 1.4; opacity: 0; transform: translateX(-8px); }
.is-in .dc-signals li { animation: sig-in .6s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes sig-in { to { opacity: 1; transform: none; } }
.dc-choice { padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(231, 201, 133, .35); background: radial-gradient(circle at 80% 0%, rgba(231, 201, 133, .14), transparent 55%), rgba(5, 11, 24, .4); }
.dc-choice strong { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: var(--gold-2); }
.dc-choice p { margin-top: 10px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.dc-cost { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.dc-cost b { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--text); }
.dc-alt { flex-basis: 100%; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.dc-rejected > div { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-rejected span { display: inline-flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 11, 24, .35); opacity: 0; }
.is-in .dc-rejected span { animation: sig-in .5s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + .4s); }
.dc-rejected s { font-size: 13px; color: var(--muted); text-decoration-color: rgba(255, 107, 122, .7); }
.dc-rejected small { font-size: 11px; color: var(--red); opacity: .85; }
.engine-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.engine-principles article { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 26px 0 0; border-top: 1px solid var(--line); }
.engine-principles span { font-family: var(--mono); font-size: 12px; color: var(--gold); padding-top: 5px; }
.engine-principles h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.engine-principles p { margin-top: 8px; font-size: 14px; color: var(--text-2); }

/* roadmap */
.roadmap-section { background: linear-gradient(180deg, transparent, rgba(10, 22, 51, .6) 30%, rgba(10, 22, 51, .6) 70%, transparent); }
.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.roadmap-line { position: absolute; left: 6%; right: 6%; top: 28px; height: 1px; background: var(--line-2); }
.roadmap-line i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pkt 5s linear infinite; }
.stage { position: relative; display: flex; flex-direction: column; padding: 0 26px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(20, 34, 72, .45), rgba(8, 16, 36, .5)); overflow: hidden; transition: transform .6s var(--ease), border-color .6s; }
.stage:hover { transform: translateY(-6px); border-color: var(--line-2); }
.stage.featured { background: radial-gradient(circle at 70% 0%, rgba(93, 126, 255, .22), transparent 60%), linear-gradient(170deg, rgba(24, 40, 88, .7), rgba(8, 16, 36, .6)); border-color: rgba(138, 162, 255, .3); }
.stage-index { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 16px 0 26px -6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }
.stage-index b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: #071020; font-size: 11px; font-weight: 600; }
.stage.featured .stage-index b { background: var(--gold-2); }
.stage h3 { font-size: 26px; letter-spacing: -.03em; }
.stage p { margin-top: 12px; color: var(--text-2); font-size: 14.5px; }
.stage ul { list-style: none; margin: auto 0 0; padding: 22px 0 0; }
.stage li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); display: flex; gap: 10px; }
.stage li::before { content: "↳"; color: var(--blue-2); }
.thesis-strip { margin-top: clamp(48px, 7vw, 90px); text-align: center; }
.thesis-strip blockquote { margin: 0 auto; max-width: 900px; font-family: var(--serif); font-size: clamp(30px, 4vw, 54px); line-height: 1.1; letter-spacing: -.015em; }

/* responsive for v3 */
@media (max-width: 1040px) {
  .story-layout { grid-template-columns: 1fr; gap: 16px; }
  .story-copy h2 { font-size: clamp(28px, 5.4vw, 44px); }
  .story-steps { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
  .story-steps li { padding: 9px 0; }
  .story-steps li strong { font-size: 13.5px; }
  .story-steps li span { display: none; }
  .story-card { padding: 16px; }
  .story-stats span { font-size: 10px; }
  .story-stats b { font-size: 13px; }
  .engine-shell { grid-template-columns: 1fr; }
  .engine-inputs { grid-template-columns: repeat(2, 1fr); }
  .input-node::after, .input-node::before { display: none; }
  .engine-core { grid-template-columns: 1fr; }
  .payer-picker { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .payer-picker button { flex: 0 0 auto; min-width: 180px; }
  .decision-grid { grid-template-columns: 1fr; }
  .engine-principles, .roadmap { grid-template-columns: 1fr; }
  .roadmap-line { display: none; }
}
@media (max-width: 560px) {
  .story-steps { grid-template-columns: 1fr; }
  .story-steps li { padding: 7px 0; }
  .story-stats { grid-template-columns: repeat(2, 1fr); }
  .engine-inputs { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 50px; font-size: 11px; }
  .feed-row .fr-cost { display: none; }
  .decision-feed { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-steps li { color: var(--text); }
  .story-steps li span { opacity: 1; max-height: none; }
  .dc-signals li, .dc-rejected span { opacity: 1; transform: none; }
  .feed-row { opacity: 1; transform: none; }
}

.converge h2 { font-size: clamp(32px, 4vw, 54px); }
.levers-panel { min-width: 0; overflow: hidden; }
@media (min-width: 861px) { .levers-foot .formula { white-space: nowrap; } }
@media (max-width: 560px) {
  .levers-top { flex-direction: column; align-items: stretch; }
  .toggle { display: grid; width: 100%; }
  .toggle button { padding: 9px 8px; font-size: 13px; }
}

/* auto-playing steppers (story + foundation) */
.story-steps li, .converge-steps li { cursor: pointer; }
.story-steps li::after, .converge-steps li::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--gold-2); opacity: 0; }
.story-steps li.is-playing::after, .converge-steps li.is-playing::after { opacity: 1; animation: step-progress var(--dur, 3600ms) linear forwards; }
.story-steps li.is-playing::before { background: rgba(255, 107, 122, .35); }
.converge-steps li.is-playing::before { background: rgba(231, 201, 133, .35); }
@keyframes step-progress { from { width: 0; } to { width: 100%; } }
.stepper-ctl { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(5, 11, 24, .4); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.stepper-ctl i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.stepper-ctl i::before { content: ""; width: 0; height: 0; border-left: 5px solid var(--text-2); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; margin-left: 1px; }
.stepper-ctl[data-playing="true"] i::before { width: 5px; height: 6px; border: 0; border-left: 2px solid var(--text-2); border-right: 2px solid var(--text-2); margin: 0; }
.converge-stage { transition: none; }
.converge-stage.is-animating { --p: 0; }
@media (max-width: 1040px) {
  .story-steps li span { display: block; }
  .story-steps { grid-template-columns: 1fr; }
  .story-steps li strong { font-size: 14.5px; }
  .story-layout, .converge-layout { gap: 28px; }
  .converge-stage { height: 46svh; min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-sticky, .converge-sticky { padding: 100px 0; }
  .story-steps li.is-playing::after, .converge-steps li.is-playing::after { animation: none; width: 100%; }
}

/* layout: heading / stage / steps, steps under heading on desktop, under stage on mobile */
.story-layout, .converge-layout { grid-template-areas: "copy stage" "nav stage"; grid-template-rows: auto 1fr; align-items: start; }
.story-copy, .converge-copy { grid-area: copy; }
.story-stage, .converge-stage { grid-area: stage; align-self: center; }
.story-nav, .converge-nav { grid-area: nav; }
.story-steps, .converge-steps { margin-top: 26px; }
@media (max-width: 1040px) {
  .story-layout, .converge-layout { grid-template-areas: "copy" "stage" "nav"; grid-template-columns: 1fr; grid-template-rows: auto; }
  .story-steps, .converge-steps { margin-top: 6px; }
  .converge-steps { grid-template-columns: 1fr; gap: 0; }
  .converge-steps li { flex-direction: row; gap: 14px; padding: 12px 0; }
}
