@font-face { font-family: 'Space Grotesk'; src: url(fonts/space-grotesk-latin.woff2) format('woff2'); font-weight: 300 700; font-display: block; }
@font-face { font-family: 'Inter'; src: url(fonts/inter-variable-latin.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 400 600; font-display: block; }
@font-face { font-family: 'Kalam'; src: url(fonts/kalam-400.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Kalam'; src: url(fonts/kalam-700.woff2) format('woff2'); font-weight: 700; font-display: block; }

/* Tokens follow the web dashboard (web/src/styles/dashboard.css). */
:root {
  --void: #050507;
  --fg: #f3f3f5;
  --muted: #b6b6bd;
  --label: #9a9aa2;
  --sub: #8a8a93;
  --quiet: #78787f;
  --axis: #5d5a66;
  --unit: #a6a6ae;
  --accent: linear-gradient(135deg, #bba9d5 0%, #c0c3e0 55%, #e9f2f3 100%);
  --lav: #c9bde6;
  --ice: #e9f2f3;
  --cool: #7fb8c4;
  --peach: #e8b07c;
  --peach-2: #f7d2a8;
  --danger: #f87171;
  --danger-2: #fca5a5;
  --ok: #6ee7b7;
  --pen: #f4efe6;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--void); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#world { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }

.stage { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; }
.frame {
  position: relative;
  width: min(100vw, 177.78vh);
  height: min(56.25vw, 100vh);
  container-type: size;
}
/* Narration column scrim, so copy stays legible over the film. */
.frame::before {
  content: ''; position: absolute; inset: 0 auto 0 -30%; width: 78%; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.82) 48%, rgba(5, 5, 7, 0) 100%);
  opacity: var(--scrim, 1);
  transition: opacity 0.8s ease;
}
.layer { position: absolute; inset: 0; display: none; z-index: 2; transform-origin: 50% 50%; will-change: opacity, transform; }
.layer > svg { display: none; }
.txt { position: absolute; inset: 0; }

/* ------------------------------------------------------------ film */

.film { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.world { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.cam, .hud { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.cam > svg, .hud > svg { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; overflow: visible; pointer-events: none; }
.f { position: absolute; }

/* Dashboard card: graphite, lavender corner wash, top-left lit hairline. */
.card {
  position: absolute;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(205, 190, 240, 0.1), rgba(205, 190, 240, 0.04) 32%, transparent 74%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006) 55%) padding-box,
    linear-gradient(#0f0f12, #0f0f12) padding-box,
    linear-gradient(155deg, rgba(205, 190, 240, 0.42), rgba(255, 255, 255, 0.07) 26%, rgba(255, 255, 255, 0.035) 62%, rgba(205, 190, 240, 0.09)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px -32px rgba(0, 0, 0, 0.55), 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}
.card.tint {
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(205, 190, 240, 0.13), rgba(205, 190, 240, 0.05) 32%, transparent 74%) padding-box,
    radial-gradient(80% 110% at 100% 100%, rgba(120, 178, 196, 0.06), transparent 60%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 55%) padding-box,
    linear-gradient(#121215, #121215) padding-box,
    linear-gradient(155deg, rgba(205, 190, 240, 0.55), rgba(255, 255, 255, 0.08) 26%, rgba(255, 255, 255, 0.04) 62%, rgba(120, 178, 196, 0.16)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 28px 60px -40px rgba(0, 0, 0, 0.6), 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}
/* Edge glow overlay, driven per frame through --edge / --edge-a. */
.card > .edge {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(var(--edge, 248, 113, 113), var(--edge-a, 0));
  box-shadow: 0 0 34px -6px rgba(var(--edge, 248, 113, 113), calc(var(--edge-a, 0) * 0.7));
}

.lbl {
  font: 500 13px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
  white-space: nowrap;
}
.num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  white-space: nowrap;
}
.num .u { font-size: 0.62em; color: var(--unit); letter-spacing: -0.02em; margin-left: 0.08em; }
.num .u.pre { margin: 0 0.04em 0 0; }
.num.grad, .grad {
  background: var(--accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.num.grad .u { -webkit-text-fill-color: var(--unit); }
.sub { font: 400 13px/1.4 'Inter', sans-serif; color: var(--sub); white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px; border-radius: 7px;
  font: 500 11.5px/1 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  color: #c9c6cf; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
}
.pill.ok { color: var(--ok); background: rgba(16, 185, 129, 0.08); border-color: rgba(52, 211, 153, 0.22); }
.pill.warn { color: #fcd34d; background: rgba(245, 158, 11, 0.08); border-color: rgba(251, 191, 36, 0.22); }
.pill.danger { color: var(--danger-2); background: rgba(239, 68, 68, 0.1); border-color: rgba(248, 113, 113, 0.3); }
.pill.peach { color: var(--peach-2); background: rgba(232, 176, 124, 0.08); border-color: rgba(232, 176, 124, 0.26); }
.pill.lav { color: #ddd3f3; background: rgba(187, 169, 213, 0.1); border-color: rgba(205, 190, 240, 0.3); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* Terminal. */
.term { overflow: hidden; }
.term .bar { position: absolute; left: 0; right: 0; top: 0; height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); }
.term .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.term .bar span { margin-left: auto; margin-right: auto; transform: translateX(-16px); font: 400 12px/1 var(--mono); color: var(--quiet); }
.term .screen { position: absolute; left: 0; right: 0; top: 38px; bottom: 0; background: rgba(5, 5, 7, 0.6); border-radius: 0 0 17px 17px; padding: 16px 18px; font: 400 14px/1.75 var(--mono); color: #8b8b93; white-space: pre; overflow: hidden; }
.term .screen b { font-weight: 400; color: var(--ice); }
.term .screen b::before { content: '› '; color: #bba9d5; }
.term .screen .s { color: #c9bde6; }
.term .screen .ok { color: var(--ok); }
.term .screen .err { color: var(--danger-2); }
.term .cur { display: inline-block; width: 8px; height: 17px; margin-left: 2px; vertical-align: -3px; background: #c9bde6; box-shadow: 0 0 10px rgba(201, 189, 230, 0.8); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Model / dashboard card internals. */
.mhead { position: absolute; left: 24px; right: 22px; top: 22px; display: flex; align-items: center; justify-content: space-between; }
.mhead .name { display: flex; align-items: center; gap: 10px; font: 500 15px/1 'Inter', sans-serif; color: var(--fg); letter-spacing: -0.01em; }
.mhead .name svg { width: 18px; height: 18px; }
.kpi { position: absolute; left: 24px; }
.kpi .num { margin-top: 12px; }

/* Message rows (the opened request). */
.panel { overflow: hidden; }
.rows { position: absolute; left: 24px; right: 24px; }
.row {
  position: absolute; left: 0; right: 0; height: 44px;
  display: grid; grid-template-columns: 66px 1fr 210px 92px; align-items: center; gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  transform-origin: 50% 50%;
}
.row .k { font: 500 10.5px/1 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }
.row .t { font: 500 15px/1.15 'Inter', sans-serif; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { display: block; margin-top: 3px; font: 400 12.5px/1 'Inter', sans-serif; color: var(--sub); }
.row .b { height: 10px; border-radius: 3px; position: relative; }
.row.sig .b { background: linear-gradient(90deg, #bba9d5, #c0c3e0 55%, #e9f2f3); box-shadow: 0 0 14px rgba(192, 180, 224, 0.35); }
.row.noise .b { background: repeating-linear-gradient(135deg, rgba(166, 160, 190, 0.5) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px rgba(166, 160, 190, 0.28); }
.row.sum .b { background: radial-gradient(circle at 16% 0%, rgba(137, 220, 255, 0.5), transparent 50%), radial-gradient(circle at 92% 115%, rgba(255, 154, 218, 0.45), transparent 54%), linear-gradient(135deg, #7a64e0, #4a3fa8); box-shadow: 0 0 16px rgba(116, 106, 255, 0.45); }
.row .tag { justify-self: end; }
.row .tag .pill { opacity: 0; transform: translateY(4px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.row .tag .pill.on { opacity: 1; transform: none; }
.row.sum .t { color: #e4dcfb; }

/* Gateway node. */
.gate { position: absolute; border-radius: 50%; display: grid; place-items: center; }
.gate .ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid transparent;
  background:
    radial-gradient(circle at 30% 20%, rgba(205, 190, 240, 0.16), transparent 60%) padding-box,
    linear-gradient(#0f0f14, #0c0c10) padding-box,
    conic-gradient(from 200deg, rgba(205, 190, 240, 0.7), rgba(137, 220, 255, 0.35), rgba(255, 255, 255, 0.06), rgba(205, 190, 240, 0.7)) border-box;
  box-shadow: 0 0 calc(30px + var(--pulse, 0) * 50px) rgba(116, 106, 255, calc(0.25 + var(--pulse, 0) * 0.45)), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.gate img { position: relative; width: 62%; height: 62%; filter: drop-shadow(0 0 calc(6px + var(--pulse, 0) * 12px) rgba(143, 189, 252, 0.6)); }
.gate .cap { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); }

/* Invoice cards. */
.inv { padding: 26px 26px 22px; }
.inv .lbl { display: flex; justify-content: space-between; align-items: center; }
.inv h4 { margin: 14px 0 2px; font: 500 26px/1.1 'Space Grotesk', sans-serif; letter-spacing: -0.035em; color: var(--fg); }
.inv .meta { font: 400 13px/1.4 'Inter', sans-serif; color: var(--sub); }
.inv dl { margin: 22px 0 0; display: grid; grid-template-columns: 1fr auto; row-gap: 0; }
.inv dt, .inv dd { margin: 0; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font: 400 14px/1 'Inter', sans-serif; color: var(--muted); }
.inv dd { text-align: right; color: var(--fg); font-variant-numeric: tabular-nums; }
.inv dd.same { color: var(--quiet); }
.inv .tot { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); display: flex; align-items: flex-end; justify-content: space-between; }
.inv .tot .num { font-size: 48px; position: relative; }
.inv .redact { position: absolute; right: 0; bottom: 0; height: 46px; border-radius: 9px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.inv .redact::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(205, 190, 240, 0.16) 45%, rgba(233, 242, 243, 0.12) 55%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* KPI tiles and meters. */
.meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; }
.meter i.base { background: linear-gradient(90deg, #e8b07c, #f7d2a8); box-shadow: 0 0 12px rgba(232, 176, 124, 0.4); }
.meter i.sl { background: var(--accent); box-shadow: 0 0 12px rgba(192, 180, 224, 0.45); }

/* Odometer digits. */
.odo { display: inline-flex; align-items: baseline; }
.odo .col { display: inline-block; height: 1em; overflow: hidden; position: relative; width: 0.62em; }
.odo .col > span { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; text-align: center; }
.odo .col > span > i { font-style: normal; height: 1em; line-height: 1em; }
.odo .sep { display: inline-block; }

/* ------------------------------------------------------------ type */

.beat {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.beat > *, .beat li {
  transform: translateY(0.7cqw);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s ease;
}
.beat.on { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.beat.on > * { transform: none; opacity: 1; transition: transform 0.9s var(--ease), opacity 0.7s ease; }
.beat.on > *:nth-child(2) { transition-delay: 0.08s; }
.beat.on > *:nth-child(3) { transition-delay: 0.18s; }
.beat.on > *:nth-child(4) { transition-delay: 0.28s; }
.beat.on > *:nth-child(5) { transition-delay: 0.38s; }
.beat.gone > * { transform: translateY(-0.5cqw); }

.kicker {
  margin: 0 0 1.25cqw;
  font: 500 0.8cqw/1 'Inter', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  display: flex;
  align-items: center;
  gap: 0.7cqw;
}
.kicker::before { content: ''; width: 0.16cqw; height: 1cqw; border-radius: 1px; background: linear-gradient(180deg, #bba9d5, #e9f2f3); box-shadow: 0 0 0.6cqw rgba(203, 188, 232, 0.8); }
.kicker.logo::before { display: none; }
.kick-logo { width: 1.25cqw; height: 1.25cqw; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; color: var(--fg); text-wrap: balance; font-weight: 500; }
h1 { font-size: 6.2cqw; line-height: 0.98; letter-spacing: -0.055em; }
h2 { font-size: 2.75cqw; line-height: 1.08; letter-spacing: -0.04em; }
h3 { font-size: 1.85cqw; line-height: 1.18; letter-spacing: -0.03em; }
.beat p { margin: 1.3cqw 0 0; font-size: 1.15cqw; line-height: 1.62; color: var(--muted); text-wrap: pretty; }
.beat p.lede { font-size: 1.38cqw; max-width: 40cqw; margin-top: 1.9cqw; }
em { font-style: normal; color: var(--fg); font-weight: 500; }
sup { font-size: 0.6em; color: var(--lav); margin-left: 0.1em; }
.peach { color: var(--peach-2); }
.danger { color: var(--danger-2); }
.lav { color: #d9cdf2; }
.big { display: block; font: 400 4.6cqw/1 'Space Grotesk', sans-serif; letter-spacing: -0.045em; margin: 0.6cqw 0 0.4cqw; font-variant-numeric: tabular-nums; }
.big .u { font-size: 0.42em; color: var(--unit); letter-spacing: 0; margin-left: 0.25em; }

/* The narrator's pen: a few hand-drawn marks, injected by the engine. */
.mk { position: relative; display: inline-block; white-space: nowrap; }
.mk > svg { position: absolute; pointer-events: none; overflow: visible; clip-path: inset(-20% 100% -20% -5%); transition: clip-path 0.3s ease; }
.mk[data-mk='under'] > svg { left: -3%; width: 106%; bottom: -0.3em; height: 0.4em; }
.mk[data-mk='circle'] { margin: 0 0.2em; }
.mk[data-mk='circle'] > svg { left: -16%; width: 132%; top: -18%; height: 136%; }
.mk[data-mk='strike'] > svg { left: -3%; width: 106%; top: 36%; height: 0.38em; }
.beat.on .mk > svg { clip-path: inset(-20% -5% -20% -5%); transition: clip-path 0.8s cubic-bezier(0.6, 0.05, 0.3, 1) var(--mk-delay, 0.9s); }

.at-title { left: 5%; top: 13%; width: 52%; }
.at-center { left: 10%; right: 10%; top: 36%; text-align: center; }
.question { font-size: 4.1cqw; line-height: 1.04; letter-spacing: -0.05em; }

/* Numbered steps that accumulate. */
.steps ol { list-style: none; margin: 0.4cqw 0 0; padding: 0; display: grid; gap: 1.15cqw; }
.steps li { display: grid; grid-template-columns: 2.2cqw 1fr; gap: 1.1cqw; align-items: start; font: 400 1.32cqw/1.42 'Inter', sans-serif; color: var(--muted); }
.steps li b {
  display: grid; place-items: center; width: 2.2cqw; height: 2.2cqw; border-radius: 0.6cqw;
  font: 500 1cqw/1 'Space Grotesk', sans-serif; color: var(--label);
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.09);
  transition: color 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.steps li.on { opacity: 1; transform: none; transition: transform 0.9s var(--ease), opacity 0.7s ease; }
.steps li.on b { color: var(--fg); border-color: rgba(209, 201, 255, 0.4); box-shadow: 0 0 1.1cqw rgba(116, 106, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15); background: linear-gradient(135deg, rgba(93, 75, 194, 0.45), rgba(44, 37, 93, 0.35)); }
.steps li.past { opacity: 0.4; transform: none; }
.steps li.past b { box-shadow: none; background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.09); color: var(--label); }

/* Finale. */
.at-finale { left: 0; right: 0; top: 9%; text-align: center; }
.at-finale .old { font-size: 2.1cqw; color: var(--quiet); font-weight: 400; letter-spacing: -0.03em; }
.at-finale .new { font-size: 5.4cqw; margin-top: 1.5cqw; }
.beat.on .new { transition-delay: 1.9s; }
.at-cta { left: 0; right: 0; top: 52%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand { display: flex; align-items: center; gap: 0.75cqw; font: 500 2.2cqw/1 'Space Grotesk', sans-serif; letter-spacing: -0.04em; }
.brand img { width: 2.6cqw; height: 2.6cqw; }
.tag { margin-top: 0.8cqw !important; font-size: 1.12cqw !important; }
.install {
  margin-top: 1.8cqw; width: 36cqw; text-align: left; pointer-events: auto;
  border-radius: 1cqw; border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), #0b0b0e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}
.install .tabs { display: flex; gap: 1.4cqw; padding: 0 1.2cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.065); }
.install .tabs span { position: relative; padding: 0.85cqw 0 0.75cqw; font: 500 0.8cqw/1 'Inter', sans-serif; color: var(--sub); }
.install .tabs span.on { color: var(--fg); }
.install .tabs span.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(187, 169, 213, 0.55); }
.install code { display: flex; align-items: center; gap: 0.7cqw; padding: 1.05cqw 1.2cqw; font: 400 0.98cqw/1 var(--mono); color: var(--fg); user-select: all; }
.install code .p { color: #bba9d5; user-select: none; }
.install code svg { margin-left: auto; width: 1.05cqw; height: 1.05cqw; color: var(--quiet); }
.cta-row { display: flex; align-items: center; gap: 1.6cqw; margin-top: 1.6cqw; }
.aurora {
  display: inline-flex; align-items: center; gap: 0.6cqw; height: 2.7cqw; padding: 0 1.5cqw; border-radius: 0.8cqw;
  font: 500 1cqw/1 'Inter', sans-serif; color: #fff; pointer-events: auto; text-decoration: none;
  background:
    radial-gradient(circle at 16% 0%, rgba(137, 220, 255, 0.22), transparent 40%),
    radial-gradient(circle at 92% 115%, rgba(255, 154, 218, 0.2), transparent 44%),
    linear-gradient(135deg, rgba(93, 75, 194, 0.5), rgba(44, 37, 93, 0.38));
  border: 1px solid rgba(209, 201, 255, 0.3);
  box-shadow: 0 0 18px rgba(116, 106, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.url { font: 500 0.95cqw/1 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.at-notes { left: 4%; right: 4%; bottom: 2.2%; }
.at-notes p { font-size: 0.64cqw !important; line-height: 1.5 !important; color: var(--quiet) !important; margin: 0.3cqw 0 0 !important; }

/* Scroll cue. */
.cue { position: absolute; left: 50%; bottom: 3%; z-index: 3; transform: translateX(-50%); display: grid; justify-items: center; gap: 0.5cqw; font: 500 0.7cqw/1 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--quiet); transition: opacity 0.6s; }
.cue i { width: 1px; height: 2.6cqw; background: linear-gradient(180deg, transparent, #c9bde6); position: relative; overflow: hidden; }
.cue i::after { content: ''; position: absolute; left: -1px; width: 3px; height: 0.8cqw; border-radius: 2px; background: #e9f2f3; box-shadow: 0 0 8px #c9bde6; animation: drip 2s var(--ease) infinite; }
@keyframes drip { from { top: -0.8cqw; } to { top: 2.6cqw; } }

/* ------------------------------------------------------------ chrome */


.grain {
  position: fixed; inset: -50px; pointer-events: none; z-index: 4; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse 80% 75% at 50% 46%, transparent 58%, rgba(3, 3, 5, 0.6) 100%);
}
.veil { position: fixed; inset: 0; background: var(--void); z-index: 6; pointer-events: none; transition: opacity 1.4s ease 0.2s; }
.veil.off { opacity: 0; }

.track { position: relative; z-index: 0; }
.scene { display: block; }

@media (prefers-reduced-motion: reduce) {
  .beat, .beat > *, .beat li, .mk > svg { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .cue i::after, .term .cur, .inv .redact::after { animation: none; }
}

/* ---------------------------------------------------------------- film v2 */
.cards, .ov { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; pointer-events: none; }
.cards > *, .ov > * { position: absolute; left: 0; top: 0; }
.card { transition: none; }
.cam { will-change: transform; }

.term .screen .v { color: #b7a6f4; background: rgba(143, 127, 240, 0.12); border-radius: 4px; padding: 1px 4px; margin-left: -4px; }

.model .kpi { top: 0; left: 0; }
.model .kpi .sub { margin-top: 10px; }
.model .kpi.r { left: auto; right: 24px; top: 70px; text-align: right; }
.model .kpi.c { left: 384px; top: 82px; display: flex; align-items: center; gap: 14px; }
.model .kpi.c .num { margin-top: 6px; }
.model .kpi.c .sub { margin-top: 6px; }
.kpi .ring { width: 66px; height: 66px; transform: rotate(-90deg); flex: none; }
.kpi .ring circle { fill: none; stroke-width: 8; }
.kpi .ring .trk { stroke: rgba(255, 255, 255, 0.07); }
.kpi .ring .val { stroke: #c9bde6; stroke-linecap: round; stroke-dasharray: 0 100; filter: drop-shadow(0 0 4px rgba(192, 180, 224, 0.4)); }
.model .kpi.race .slot .odo { font-size: 28px; margin-top: 4px; }
.model .kpi.race .sub { margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.model .kpi.race .sub .pill { height: 18px; font-size: 10px; padding: 0 6px; }
.model .kpi .sub .pill { margin-right: 6px; }

.panel .pin { position: absolute; inset: 0; }
.phead { position: absolute; left: 24px; right: 24px; top: 22px; display: flex; align-items: center; justify-content: space-between; }
.rows { top: 0; height: 0; }
.row .bw { display: flex; align-items: center; }
.row .b { display: block; }
.row.glow .b { box-shadow: 0 0 18px rgba(201, 189, 230, 0.75); }
.row.glow .t { color: #fff; }
.pfoot { position: absolute; left: 24px; right: 24px; display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.pfoot .num { font-size: 34px; }
.pfoot .num .u { margin-left: 0.3em; }

.wk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wk .lbl { width: 100%; margin-bottom: 4px; font-size: 11px; }
.wk.keys { justify-content: center; }

.chart .chead { position: absolute; left: 24px; right: 24px; top: 22px; display: flex; align-items: flex-start; justify-content: space-between; }
.legend { display: flex; gap: 18px; margin-top: 12px; font: 400 13px/1 'Inter', sans-serif; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 3px; border-radius: 2px; }
.legend i.acc { background: var(--accent); }
.turnk { text-align: right; }
.turnk .num { font-size: 44px; margin-top: 8px; min-width: 2.2em; }
.ratio { height: 26px; font-size: 13px; background: #16141d; box-shadow: 0 0 0 6px #121117; }
.flag { height: 22px; }

.tile { padding: 26px; }
.tile > .sub { margin-top: 6px; }
.tile .num.big { font-size: 76px; margin: 26px 0 8px; }
.tile .num.big .u { -webkit-text-fill-color: var(--unit); }
.tile .mrow { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; font: 400 13px/1 'Inter', sans-serif; color: var(--muted); }
.tile .mrow .num { font-size: 20px; }
.tile .meter i { width: 0; }

.inv { width: 340px; transform-origin: 0 0; }
.inv .tot .num { min-width: 150px; min-height: 48px; text-align: right; display: inline-flex; justify-content: flex-end; }
.inv .redact { left: 0; }
.inv .rel { margin-top: 16px; }
.inv .rel .meter i { width: 0; }

/* In-chart readouts. */
.svl { font: 500 11px 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--label); }
.svn { font: 400 30px 'Space Grotesk', sans-serif; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* Finale bridge line between the two invoices. */
.beat.bridge { top: 56%; text-align: center; left: 0; right: 0; width: auto; }
.beat.bridge .lede { margin: 0 auto; max-width: none; }

/* Compaction vs compression illustration. */
.cmp .chead { position: absolute; left: 24px; right: 24px; top: 22px; display: flex; justify-content: space-between; align-items: center; }
.cmp .cbody { position: absolute; left: 24px; top: 78px; }
.cmp .cbody svg { display: block; overflow: visible; }
.cmp .ct { font: 500 21px 'Space Grotesk', sans-serif; letter-spacing: -0.03em; }
.cmp .cs { font: 400 12.5px 'Inter', sans-serif; fill: var(--sub); }
.cmp .lim { stroke: rgba(248, 113, 113, 0.45); stroke-dasharray: 4 5; }
.cmp .base { stroke: rgba(255, 255, 255, 0.1); }
.cmp .cliff { stroke: rgba(247, 210, 168, 0.35); stroke-dasharray: 2 4; }
.cmp .p { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease); }
.cmp .p1 { stroke: #e8b07c; filter: drop-shadow(0 0 5px rgba(232, 176, 124, 0.45)); }
.cmp .p2 { stroke: #c9bde6; filter: drop-shadow(0 0 5px rgba(201, 189, 230, 0.5)); transition-delay: 0.6s; }
.cmp .fx { opacity: 0; transition: opacity 0.6s ease 1.3s; }
.cmp .fx2 { transition-delay: 2.1s; }
.cmp .fx2 circle { fill: #f2eefa; stroke: #050507; stroke-width: 1.5; }
.cmp.on .p { stroke-dashoffset: 0; }
.cmp.on .fx { opacity: 1; }

/* Progress bar: where you are, always. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.bar {
  z-index: 7 !important;
  position: fixed; top: 0; left: 0; right: 0; z-index: 6; height: 46px; padding: 0 22px;
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.72), rgba(5, 5, 7, 0));
  transition: opacity 0.6s var(--ease);
}
.bar.idle { opacity: 0.38; }
.bar .chap { min-width: 150px; font: 500 12px/1 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.bar .chap b { font: 400 12px/1 'Space Grotesk', sans-serif; color: var(--quiet); margin-right: 9px; letter-spacing: 0; }
.bar .segs { flex: 1; display: flex; gap: 6px; align-items: center; height: 100%; }
.bar .segs button { position: relative; flex-basis: 0; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.bar .segs i { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.09); overflow: hidden; transition: background 0.2s; }
.bar .segs u { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(201, 189, 230, 0.45); }
.bar .segs .on u { background: linear-gradient(90deg, #bba9d5, #e9f2f3); box-shadow: 0 0 10px rgba(203, 188, 232, 0.8); }
.bar .segs button:hover i { background: rgba(255, 255, 255, 0.2); }
.bar .segs span {
  position: absolute; left: 50%; top: 34px; transform: translate(-50%, -4px); white-space: nowrap; pointer-events: none;
  font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label);
  padding: 6px 9px; border-radius: 8px; background: rgba(14, 13, 19, 0.96); border: 1px solid rgba(212, 200, 227, 0.16);
  opacity: 0; transition: opacity 0.16s, transform 0.16s;
}
.bar .segs button:hover span { opacity: 1; transform: translate(-50%, 0); }
.bar .count { min-width: 54px; text-align: right; font: 400 14px/1 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; color: var(--muted); }
.bar .hint { font: 400 12px/1 'Inter', sans-serif; color: var(--quiet); white-space: nowrap; }
.bar > button {
  width: 30px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03); color: #c9c6cf; font: 500 13px 'Inter', sans-serif; cursor: pointer;
}
.bar > button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
@media (max-width: 900px) { .bar .hint { display: none; } .bar .chap { min-width: 0; } }
