/* cue/ctrl: the presentation's design system (the CueCTRL brand kit, as app/Source/Theme.h and UI/Brand.h draw it).
   Ground black, Ink words, Signal Orange for what's picked or live (words, never a fill or a border), square corners,
   JetBrains Mono for titles, labels and numbers, Geist for sentences. A mode not to forget is framed in red (INTERNAL). */

@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMonoNL-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMonoNL-Medium.ttf") format("truetype"); font-weight: 500; font-display: block; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMonoNL-Bold.ttf") format("truetype"); font-weight: 700; font-display: block; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: block; }

:root {
  --ground: #0a0a0b; --raised: #141417; --wave: #050506; --line: #222226; --line-hi: #3e3e44; --picked-row: #1b1b20;
  --ink: #f2f2ee; --muted: #a3a39c; --prompt: #6e6e68; --signal: #ff5a1f; --signal-deep: #ff4a12;
  --synced: #3ddcff; --ready: #5bd38a; --warn: #ffb000; --bad: #ff3366; --playback: #a78bfa; --side-b: #f76b15;
  --f-i: #ffd43b; --f-p: #4dabf7; --f-c: #f06595; --f-g: #69db7c; --f-b: #3bc9db; --f-f: #b197fc; --f-s: #ff922b; --f-x: #adb5bd;
  --accent: var(--signal);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: var(--ground); color: var(--ink); overflow: hidden; }
body { font-family: var(--sans); font-size: 22px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--synced); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--signal); color: #fff; }

/* ---------------------------------------------------------------- the stage: 1920 x 1080, scaled to the window */
#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
#stage { position: relative; width: 1920px; height: 1080px; flex: none; transform-origin: 50% 50%; background: var(--ground); overflow: hidden; }
#stage::before { /* the floor grid the app draws under its views, very faint */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px; opacity: .16; mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
}

.slide { position: absolute; inset: 0; padding: 92px 120px 124px; display: none; z-index: 1; background: var(--ground); }
.slide.active, .slide.incoming, .slide.outgoing { display: block; }
.slide.incoming { z-index: 3; }
.slide.outgoing { z-index: 2; }
.slide > .bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.slide > .abs { z-index: 1; }

/* the concept surface (08): channel strips, each a screen, two buttons and a motor fader whose cap moves */
.wing-ch { position: relative; outline: 1px solid var(--line);
  background: linear-gradient(var(--b1, #ff5a1f), var(--b1, #ff5a1f)) 10px 54px / calc(50% - 14px) 20px no-repeat,
              linear-gradient(#1b1b20, #1b1b20) calc(100% - 10px) 54px / calc(50% - 14px) 20px no-repeat,
              linear-gradient(#3e3e44, #3e3e44) center 92px / 4px calc(100% - 112px) no-repeat, #0a0a0b; }
.wing-ch::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 34px; background: #050506; outline: 1px solid var(--line-hi);
  box-shadow: inset 0 -6px 0 0 var(--scr, #3ddcff); }
.wing-ch::after { content: ""; position: absolute; left: 50%; width: 46px; height: 24px; margin-left: -23px; background: #f2f2ee; box-shadow: inset 0 -4px 0 0 var(--scr, #3ddcff);
  top: 60%; animation: wingcap 5.5s ease-in-out infinite alternate; }
.wing-ch:nth-child(1) { --scr: #3ddcff; --b1: #3ddcff; } .wing-ch:nth-child(1)::after { animation-delay: -1s; }
.wing-ch:nth-child(2) { --scr: #ff922b; --b1: #ff922b; } .wing-ch:nth-child(2)::after { animation-delay: -2.4s; animation-duration: 4.2s; }
.wing-ch:nth-child(3) { --scr: #a78bfa; --b1: #1b1b20; } .wing-ch:nth-child(3)::after { animation-delay: -3s; }
.wing-ch:nth-child(4) { --scr: #f06595; --b1: #f06595; } .wing-ch:nth-child(4)::after { animation-delay: -.5s; animation-duration: 6.4s; }
.wing-ch:nth-child(5) { --scr: #ffd43b; --b1: #ffd43b; } .wing-ch:nth-child(5)::after { animation-delay: -4s; }
.wing-ch:nth-child(6) { --scr: #8e4ec6; --b1: #1b1b20; } .wing-ch:nth-child(6)::after { animation-delay: -1.7s; animation-duration: 4.8s; }
.wing-ch:nth-child(7) { --scr: #69db7c; --b1: #69db7c; } .wing-ch:nth-child(7)::after { animation-delay: -2.9s; }
.wing-ch:nth-child(8) { --scr: #4dabf7; --b1: #4dabf7; } .wing-ch:nth-child(8)::after { animation-delay: -3.6s; animation-duration: 5s; }
.wing-ch:nth-child(9) { --scr: #ff5a1f; --b1: #ff5a1f; } .wing-ch:nth-child(9)::after { animation-delay: -.2s; }
.wing-ch:nth-child(10) { --scr: #f2f2ee; --b1: #1b1b20; } .wing-ch:nth-child(10)::after { animation-delay: -5s; animation-duration: 7s; }
@keyframes wingcap { from { top: 78%; } to { top: 34%; } }
.slide > canvas.bg, .slide canvas.engine { display: block; }
.slide.bleed { padding: 0; }
/* a page of words: its content in the middle of the page, not hanging from the top */
.slide.mid.active, .slide.mid.incoming, .slide.mid.outgoing { display: flex; flex-direction: column; justify-content: center; padding-bottom: 150px; }
.roomy p.small, .roomy .small { font-size: 20.5px; line-height: 1.5; }

/* the playhead that crosses the stage between pages */
#playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--ink); z-index: 9; pointer-events: none; opacity: 0;
  box-shadow: 0 0 22px rgba(255, 90, 31, .55), 0 0 2px #fff; }
#playhead::before { content: ""; position: absolute; top: 0; left: -9px; border: 10px solid transparent; border-top: 14px solid var(--signal); border-bottom: 0; }
#playhead .tag { position: absolute; top: 18px; left: 10px; font: 700 15px var(--mono); color: var(--ink); background: var(--ground); padding: 3px 8px; white-space: nowrap; letter-spacing: .06em; }
#playhead .tag b { color: var(--signal); font-weight: 700; }
#playhead.chapter .tag { font-size: 26px; top: 46%; padding: 8px 14px; }

/* ---------------------------------------------------------------- the chrome (outside the stage, over the window) */
#chrome-top, #chrome-bottom { position: fixed; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 0 22px; pointer-events: none;
  font: 500 13px var(--mono); letter-spacing: .08em; color: var(--prompt); text-transform: uppercase; transition: opacity .4s; }
#chrome-top { top: 0; height: 46px; background: linear-gradient(#0a0a0bf0, #0a0a0b00); }
#chrome-bottom { bottom: 0; height: 58px; background: linear-gradient(#0a0a0b00, #0a0a0bf2 40%); }
#chrome-top > *, #chrome-bottom > * { pointer-events: auto; }
body.idle #chrome-top, body.idle #chrome-bottom { opacity: 0; }
.mark { display: flex; align-items: center; gap: 0; font: 700 17px var(--mono); letter-spacing: -.02em; color: var(--ink); text-transform: none; }
.mark .p { color: var(--prompt); font-weight: 500; margin-right: .35em; }
.mark .s { color: var(--signal); }
.mark .c { display: inline-block; width: .55em; height: .82em; background: var(--signal); margin-left: .12em; animation: blink 1.06s steps(1) infinite; }
a.mark:hover { text-decoration: none; }
.crumb { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.crumb b { color: var(--accent, var(--signal)); font-weight: 500; }
.spacer { flex: 1; }
.seg { display: flex; align-items: center; gap: 2px; }
.seg button { padding: 7px 10px; color: var(--prompt); letter-spacing: .1em; text-transform: uppercase; font: 500 12.5px var(--mono); }
.seg button:hover { color: var(--ink); }
.seg button.on { color: var(--signal); font-weight: 700; }
.seg .sep { color: var(--line-hi); }
#internal-b.on { color: var(--bad); }
#count { color: var(--muted); min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
#ruler { position: relative; flex: 1; height: 34px; cursor: pointer; }
#ruler .track { position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--line-hi); }
#ruler .fill { position: absolute; left: 0; top: 20px; height: 3px; background: var(--signal); width: 0; transition: width .6s var(--ease); }
#ruler .tick { position: absolute; top: 17px; width: 1px; height: 9px; background: var(--line-hi); }
#ruler .tick.ch { top: 9px; height: 17px; background: var(--prompt); }
#ruler .lab { position: absolute; top: 0; font: 500 10.5px var(--mono); letter-spacing: .08em; color: var(--prompt); white-space: nowrap; transform: translateX(4px); }
#ruler .lab.on { color: var(--signal); }
#ruler .head { position: absolute; top: 12px; width: 2px; height: 20px; background: var(--ink); transition: left .6s var(--ease); }
#ruler .head::before { content: ""; position: absolute; top: -6px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--signal); border-bottom: 0; }
#ruler .hover { position: absolute; bottom: 36px; transform: translateX(-50%); background: var(--raised); color: var(--ink); padding: 6px 10px; font: 500 12px var(--mono);
  white-space: nowrap; letter-spacing: .04em; text-transform: none; display: none; }
#ruler:hover .hover { display: block; }
body.internal #frame-red { display: block; }
#frame-red { display: none; position: fixed; inset: 0; border: 2px solid var(--bad); z-index: 30; pointer-events: none; }
#frame-red span { position: absolute; top: 50px; right: 22px; font: 700 12px var(--mono); letter-spacing: .14em; color: var(--bad); }

/* the index (G) and the keys (?) */
.overlay { position: fixed; inset: 0; z-index: 40; background: #0a0a0bf5; display: none; overflow: auto; padding: 70px 8vw 90px; }
.overlay.open { display: block; animation: fadein .25s var(--ease); }
.overlay h3 { font: 700 15px var(--mono); letter-spacing: .14em; color: var(--prompt); text-transform: uppercase; margin: 28px 0 10px; }
.overlay h3:first-child { margin-top: 0; }
#index .chap { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 2px 22px; }
#index button { text-align: left; padding: 7px 0; color: var(--muted); font: 400 16px var(--sans); display: flex; gap: 12px; align-items: baseline; }
#index button:hover { color: var(--ink); }
#index button.on { color: var(--signal); }
#index button i { font: 500 11px var(--mono); color: var(--prompt); font-style: normal; min-width: 28px; }
#index button em { font: 500 10px var(--mono); font-style: normal; color: var(--prompt); letter-spacing: .08em; margin-left: auto; }
#keys table { border-collapse: collapse; font: 400 17px var(--sans); color: var(--muted); }
#keys td { padding: 6px 28px 6px 0; }
#keys td:first-child { font: 700 15px var(--mono); color: var(--ink); white-space: nowrap; }
.closer { position: fixed; top: 18px; right: 26px; font: 700 13px var(--mono); letter-spacing: .12em; color: var(--muted); z-index: 41; }

/* ---------------------------------------------------------------- type */
.kicker { font: 500 18px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--prompt); margin-bottom: 26px; display: flex; align-items: center; gap: 14px; }
.kicker b { color: var(--accent); font-weight: 700; }
.kicker .n { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; }
.display { font-size: 132px; line-height: .98; }
.title { font-size: 70px; max-width: 1560px; }
.title.md { font-size: 58px; }
.title.sm { font-size: 48px; }
.title .p, .prompt { color: var(--prompt); font-weight: 500; margin-right: .3em; }
.title em, .display em, .accent { font-style: normal; color: var(--accent); }
.title .dim { color: var(--muted); }
.lead { font: 400 31px/1.42 var(--sans); color: var(--muted); max-width: 1240px; margin-top: 26px; }
.lead b, p b, li b { color: var(--ink); font-weight: 500; }
.lead2 { font: 400 21px/1.45 var(--sans); color: var(--muted); }   /* (1.09: a page's three plain statements) */
.lead.ink { color: var(--ink); }
p { color: var(--muted); }
h3 { font-size: 30px; margin-bottom: 12px; }
h4 { font-size: 20px; letter-spacing: .02em; margin-bottom: 8px; }
.label { font: 500 14px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--prompt); }
.mono { font-family: var(--mono); }
.small { font-size: 18px; }
.tiny { font-size: 15px; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.orange { color: var(--signal); }
.cyan { color: var(--synced); }
.green { color: var(--ready); }
.amber { color: var(--warn); }
.red { color: var(--bad); }
.violet { color: var(--playback); }
.source { position: absolute; left: 120px; bottom: 74px; right: 120px; font: 400 13px/1.4 var(--mono); color: var(--prompt); letter-spacing: .02em; }
.source a { color: var(--prompt); text-decoration: underline; text-decoration-color: var(--line-hi); }
.cursor { display: inline-block; width: .55em; height: .82em; background: var(--signal); margin-left: .12em; vertical-align: -.06em; }
.cursor.blink { animation: blink 1.06s steps(1) infinite; }

/* ---------------------------------------------------------------- layout */
.row { display: flex; gap: 48px; }
.col { flex: 1; min-width: 0; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 46px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 36px; }
.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 28px; }
.split { display: grid; grid-template-columns: 560px 1fr; gap: 64px; height: 100%; align-items: start; }
.split.wide { grid-template-columns: 480px 1fr; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.media-left { grid-template-columns: 1fr 560px; }
.stack > * + * { margin-top: 18px; }
.mt { margin-top: 40px; }
.mt-s { margin-top: 20px; }
.mt-l { margin-top: 64px; }
.center { text-align: center; }
.abs { position: absolute; }
.fill { position: absolute; inset: 0; }
.hide { display: none !important; }

/* panels: black, a line round them only when they're a place (the app: sections black, Raised for tiles) */
.card { background: var(--raised); padding: 26px 28px; position: relative; }
.card.line { background: transparent; outline: 1px solid var(--line); }
.card h4 { color: var(--ink); }
.card p { font-size: 19px; }
.card .label + * { margin-top: 10px; }
.card.hot h4 { color: var(--accent); }
.edge { border-left: 3px solid var(--accent); padding-left: 22px; }

/* stats */
.stat .v { font: 700 92px/1 var(--mono); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .42em; color: var(--muted); letter-spacing: 0; margin-left: .15em; }
.stat .v.o { color: var(--accent); }
.stat .k { font: 500 15px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--prompt); margin-top: 12px; }
.stat .d { font-size: 18px; color: var(--muted); margin-top: 8px; max-width: 420px; }
.stat.sm .v { font-size: 64px; }

/* lists with the app's lettered family squares (I P C G B F S X) */
.list { list-style: none; }
.list li { position: relative; padding: 9px 0 9px 46px; color: var(--muted); font-size: 22px; line-height: 1.38; }
.list li::before { content: attr(data-f); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; font: 700 14px/26px var(--mono); text-align: center; color: #0a0a0b;
  background: var(--fc, var(--accent)); }
.list li:not([data-f])::before { content: ""; width: 10px; height: 10px; top: 19px; left: 8px; background: var(--fc, var(--accent)); }
.list li b { color: var(--ink); font-weight: 500; }
.list.tight li { padding-top: 5px; padding-bottom: 5px; font-size: 19px; }
.list.tight li::before { top: 8px; }
.list.tight li:not([data-f])::before { top: 14px; }
.list.cols2 { columns: 2; column-gap: 56px; }
.list.cols3 { columns: 3; column-gap: 44px; }
.list li { break-inside: avoid; }
[data-f="I"] { --fc: var(--f-i); } [data-f="P"] { --fc: var(--f-p); } [data-f="C"] { --fc: var(--f-c); } [data-f="G"] { --fc: var(--f-g); }
[data-f="B"] { --fc: var(--f-b); } [data-f="F"] { --fc: var(--f-f); } [data-f="S"] { --fc: var(--f-s); } [data-f="X"] { --fc: var(--f-x); }
.fam { display: inline-block; width: 22px; height: 22px; font: 700 12px/22px var(--mono); text-align: center; color: #0a0a0b; background: var(--fc); vertical-align: 2px; margin-right: 2px; }

/* chips: words in a line; picked = orange words (never a fill) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 14px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--raised); padding: 8px 12px; }
.chip.on { color: var(--signal); font-weight: 700; background: var(--ground); outline: 1px solid var(--line); }
.chip.g { color: var(--ready); } .chip.c { color: var(--synced); } .chip.a { color: var(--warn); } .chip.r { color: var(--bad); } .chip.v { color: var(--playback); }
.badge { display: inline-block; font: 700 12px var(--mono); letter-spacing: .1em; padding: 3px 7px; background: var(--raised); color: var(--muted); vertical-align: 3px; }
.badge.g { color: var(--ready); } .badge.o { color: var(--signal); } .badge.c { color: var(--synced); } .badge.r { color: var(--bad); }

/* tables */
table.t { border-collapse: collapse; width: 100%; font-size: 19px; }
table.t th { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--prompt); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-hi); }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
table.t td b { color: var(--ink); font-weight: 500; }
table.t tr.us td { color: var(--ink); }
table.t tr.us td:first-child { color: var(--signal); font-family: var(--mono); font-weight: 700; }
table.t td.n, table.t th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.t.compact td { padding: 7px 12px; font-size: 17px; }
table.t.big td { padding: 11px 14px; font-size: 19.5px; }
table.t.big th { font-size: 14px; }
table.t td.red { color: var(--bad); font-weight: 500; } table.t td.green { color: var(--ready); font-weight: 500; } table.t td.amber { color: var(--warn); font-weight: 500; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.vs > div { padding: 22px 30px; border-bottom: 1px solid var(--line); font-size: 21px; }
.vs .old { color: var(--prompt); }
.vs .new { color: var(--ink); background: linear-gradient(90deg, #ff5a1f0d, transparent); }
.vs .new::before { content: "> "; color: var(--signal); font-family: var(--mono); font-weight: 700; }
.vs .h { font: 500 14px var(--mono); letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--line-hi); padding-top: 0; }
.vs .h.new { color: var(--signal); background: none; }
.vs .h.new::before { content: ""; }

/* ---------------------------------------------------------------- the app's screens: spotlights, lenses */
.shot { position: relative; background: #000; overflow: hidden; outline: 1px solid var(--line); }
.shot img { display: block; width: 100%; height: auto; transform-origin: 0 0; transition: transform 1.1s var(--ease-io); }
.shot .spot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  pointer-events: auto; cursor: zoom-in; transition: box-shadow .5s var(--ease), opacity .4s; z-index: 2; }
.shot .spot::before, .shot .spot::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid var(--signal); opacity: .95; }
.shot .spot::before { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.shot .spot::after { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.shot .spot .n { position: absolute; left: -3px; top: -34px; font: 700 15px/1 var(--mono); color: #0a0a0b; background: var(--signal); padding: 7px 9px 6px; letter-spacing: .04em; white-space: nowrap; }
.shot .spot.low .n { top: auto; bottom: 4px; left: 4px; }   /* (a spot reaching the screen's foot: its number inside it) */
.shot .spot.side .n { top: 50%; left: calc(100% + 12px); transform: translateY(-50%); }   /* (a thin spot: its label beside it) */
.shot .spot.lowright .n { top: auto; left: auto; bottom: 4px; right: 4px; }   /* (a wide spot: its label inside at its bottom right) */
.shot.touring .spot { opacity: .0; }
.shot.touring .spot.cur { opacity: 1; box-shadow: 0 0 0 4000px rgba(5, 5, 6, .62); }
.shot.zoomed .spot { opacity: 0; pointer-events: none; }
.shot .unzoom { position: absolute; right: 12px; top: 12px; z-index: 4; font: 700 13px var(--mono); letter-spacing: .12em; color: var(--ink); background: #0a0a0bd0; padding: 8px 12px; display: none; }
.shot.zoomed .unzoom { display: block; }
.shot.zoomed img { cursor: zoom-out; }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, #000d); font: 500 14px var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; z-index: 3; }
.legend { list-style: none; counter-reset: s; }
.legend li { position: relative; padding: 10px 0 10px 44px; color: var(--muted); font-size: 20px; line-height: 1.36; cursor: pointer; transition: color .3s; border-bottom: 1px solid var(--line); }
.legend li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 11px; width: 28px; height: 26px; font: 700 14px/26px var(--mono); text-align: center;
  color: var(--signal); background: var(--raised); }
.legend li b { color: var(--ink); font-weight: 500; display: block; font-family: var(--mono); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.legend li.cur { color: var(--ink); }
.legend li.cur::before { color: #0a0a0b; background: var(--signal); }
.lens { position: relative; outline: 1px solid var(--line); background: #000; overflow: hidden; }
.lens img { display: block; width: 100%; height: auto; }
.lens.tall img { height: 100%; width: auto; }
.lens.fit img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.lens .cap { position: absolute; left: 0; top: 0; font: 700 13px var(--mono); letter-spacing: .14em; color: #0a0a0b; background: var(--signal); padding: 6px 9px; text-transform: uppercase; }

/* canvases inside a slide */
.engine-box { position: relative; background: #000; outline: 1px solid var(--line); }
.engine-box canvas { width: 100%; height: 100%; display: block; }
.engine-box .over { position: absolute; left: 18px; top: 14px; font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--prompt); pointer-events: none; }
.engine-box .over b { color: var(--accent); }
.controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.controls button { font: 500 14px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--raised); padding: 10px 14px; }
.controls button:hover { color: var(--ink); }
.controls button.on { color: var(--signal); font-weight: 700; background: var(--ground); outline: 1px solid var(--line); }
.controls .label { align-self: center; margin-right: 8px; }

/* bars (charts) */
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 340px 1fr var(--vw, 170px); align-items: center; gap: 18px; font-size: 18px; }
.bar .k { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .k b { color: var(--ink); font-weight: 500; }
.bar .t { position: relative; height: 26px; background: var(--raised); }
.bar .t i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--fc, var(--line-hi)); transition: width 1.2s var(--ease); }
.bar.us .t i { background: var(--signal); }
.bar .v { font: 700 18px var(--mono); text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar.us .k { color: var(--signal); font-family: var(--mono); font-weight: 700; }

/* the FAQ */
.faq { display: grid; grid-template-columns: 560px 1fr; gap: 56px; height: 760px; }
.faq .qs { display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.faq .qs button { text-align: left; padding: 15px 18px; font: 500 19px/1.3 var(--mono); color: var(--muted); background: var(--raised); letter-spacing: -.005em; }
.faq .qs button:hover { color: var(--ink); }
.faq .qs button.on { color: var(--signal); background: var(--ground); outline: 1px solid var(--line); }
.faq .a { font: 400 27px/1.5 var(--sans); color: var(--ink); }
.faq .a .q { font: 700 40px/1.12 var(--mono); color: var(--ink); margin-bottom: 28px; letter-spacing: -.02em; }
.faq .a p { color: var(--muted); margin-top: 18px; font-size: 24px; }

/* documents (the beta program's) */
.doc { height: 742px; overflow: auto; padding: 34px 44px; background: var(--raised); font-size: 17px; line-height: 1.55; color: var(--muted); }
.doc h1 { font-size: 30px; color: var(--ink); margin-bottom: 8px; }
.doc h2 { font-size: 20px; color: var(--ink); margin: 26px 0 8px; letter-spacing: 0; }
.doc h3 { font-size: 17px; color: var(--ink); margin: 18px 0 6px; letter-spacing: 0; }
.doc p, .doc li { margin: 8px 0; }
.doc ul, .doc ol { padding-left: 26px; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc .note { color: var(--warn); }
.doc::-webkit-scrollbar, .faq .qs::-webkit-scrollbar { width: 8px; }
.doc::-webkit-scrollbar-thumb, .faq .qs::-webkit-scrollbar-thumb { background: var(--line-hi); }

/* timeline (the roadmap) */
.road { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin-top: 30px; }
.road > div { position: relative; padding: 46px 22px 0 0; border-top: 1px solid var(--line-hi); }
.road > div::before { content: ""; position: absolute; top: -7px; left: 0; width: 13px; height: 13px; background: var(--fc, var(--prompt)); }
.road .when { font: 700 16px var(--mono); color: var(--fc, var(--ink)); letter-spacing: .06em; }
.road h4 { margin-top: 10px; font-size: 22px; }
.road p { font-size: 18px; margin-top: 8px; }
.road .now::before { background: var(--signal); box-shadow: 0 0 18px var(--signal); }

/* price cards */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.tier { background: var(--raised); padding: 30px 28px 34px; position: relative; }
.tier.pick { background: var(--ground); outline: 1px solid var(--line-hi); }
.tier.pick .name { color: var(--signal); }
.tier .name { font: 700 22px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.tier .price { font: 700 66px/1 var(--mono); margin-top: 18px; letter-spacing: -.03em; }
.tier .price small { font-size: 18px; color: var(--muted); letter-spacing: 0; }
.tier .who { color: var(--muted); font-size: 18px; margin-top: 12px; min-height: 56px; }
.tier ul { list-style: none; margin-top: 18px; }
.tier li { font-size: 17px; color: var(--muted); padding: 5px 0 5px 22px; position: relative; }
.tier li::before { content: ">"; position: absolute; left: 0; color: var(--signal); font-family: var(--mono); font-weight: 700; }

/* ---------------------------------------------------------------- the FADERS page (05): the app's page as a canvas, its tour's caption */
.slide.fp { padding: 58px 64px 70px; }
.fp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.fp-top .kicker { margin-bottom: 8px; }
.fp-sub { max-width: 820px; color: var(--muted); line-height: 1.4; margin-bottom: 6px; }
.fp-sub b { color: var(--ink); font-weight: 500; }
.fp-box { height: 700px; margin-top: 12px; }
.fp-cap { display: grid; grid-template-columns: 1fr auto; gap: 36px; margin-top: 12px; align-items: start; }
.fp-say .n { font: 700 13px var(--mono); letter-spacing: .16em; color: var(--accent); }
.fp-say .h { font: 700 25px/1.2 var(--mono); color: var(--ink); margin-top: 2px; }
.fp-say .d { font-size: 18.5px; line-height: 1.42; color: var(--muted); margin-top: 4px; max-width: 1180px; min-height: 54px; }
.fp-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fp-ctl .controls { margin-top: 0; }
.rail { display: flex; gap: 3px; }
.rail button { font: 500 12px var(--mono); color: var(--muted); background: var(--raised); width: 30px; height: 26px; }
.rail button:hover { color: var(--ink); }
.rail button.on { color: var(--signal); font-weight: 700; background: var(--ground); outline: 1px solid var(--line); }
#eng-fp { touch-action: none; cursor: pointer; }

/* ---------------------------------------------------------------- INTERNAL: the platforms as tiles, each opening its dossier */
.dz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.dz-tile { text-align: left; background: var(--raised); padding: 16px 18px 15px; border-left: 3px solid var(--fc, var(--line-hi)); position: relative; transition: background .2s; }
.dz-tile:hover { background: #1b1b20; }
.dz-tile:hover .go { color: var(--signal); }
.dz-tile .who { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--prompt); }
.dz-tile .nm { font: 700 23px/1.15 var(--mono); color: var(--ink); margin-top: 5px; }
.dz-tile .rng { font: 700 17px var(--mono); color: var(--ink); margin-top: 7px; font-variant-numeric: tabular-nums; }
.dz-tile .how { font-size: 15.5px; line-height: 1.35; color: var(--muted); margin-top: 5px; }
.dz-tile .go { position: absolute; right: 14px; top: 14px; font: 700 11px var(--mono); letter-spacing: .14em; color: var(--prompt); }
.dz-tile.us { background: var(--ground); outline: 1px solid var(--line-hi); border-left-color: var(--signal); }
.dz-tile.us .nm { color: var(--signal); }

.dossier { position: absolute; inset: 0; z-index: 30; background: var(--ground); display: none; padding: 64px 96px 82px; }
.dossier.open { display: flex; flex-direction: column; animation: fadein .25s var(--ease); }
.dz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; border-bottom: 1px solid var(--line-hi); padding-bottom: 14px; }
.dz-kick { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--prompt); }
.dz-kick b { color: var(--fc, var(--signal)); font-weight: 700; }
.dz-title { font: 700 44px/1.1 var(--mono); color: var(--ink); margin-top: 6px; letter-spacing: -.01em; }
.dz-title span { color: var(--muted); font-weight: 500; font-size: .55em; letter-spacing: 0; }
.dz-close { font: 700 13px var(--mono); letter-spacing: .14em; color: var(--muted); background: var(--raised); padding: 11px 16px; }
.dz-close:hover { color: var(--ink); }
.dz-tabs { display: flex; gap: 4px; margin-top: 14px; flex-wrap: wrap; }
.dz-tabs button { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--raised); padding: 10px 14px; }
.dz-tabs button:hover { color: var(--ink); }
.dz-tabs button.on { color: var(--signal); font-weight: 700; background: var(--ground); outline: 1px solid var(--line); }
.dz-body { flex: 1; overflow: auto; margin-top: 16px; padding-right: 10px; }
.dz-body::-webkit-scrollbar { width: 8px; } .dz-body::-webkit-scrollbar-thumb { background: var(--line-hi); }
.dz-pane { display: none; }
.dz-pane.on { display: block; animation: fadein .2s var(--ease); }
.dz-pane .lead2 { font-size: 20px; color: var(--muted); line-height: 1.45; max-width: 1500px; margin-bottom: 14px; }
.dz-pane .lead2 b { color: var(--ink); font-weight: 500; }
.dz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 56px; }
.dz-list { list-style: none; }
.dz-list li { position: relative; padding: 7px 0 7px 28px; font-size: 18.5px; line-height: 1.42; color: var(--muted); border-bottom: 1px solid var(--line); }
.dz-list li b { color: var(--ink); font-weight: 500; }
.dz-list li::before { content: "+"; position: absolute; left: 4px; top: 7px; font: 700 17px var(--mono); color: var(--fc, var(--signal)); }
.dz-list.they li::before { content: "\2212"; color: var(--muted); }
.dz-list.say li::before { content: "\201C"; font-size: 24px; top: 4px; color: var(--bad); }
.dz-src { font: 400 12.5px/1.45 var(--mono); color: var(--prompt); margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.dz-src a { color: var(--prompt); text-decoration: underline; text-decoration-color: var(--line-hi); }
table.t td.v, table.t th.v { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }

/* ---------------------------------------------------------------- INTERNAL: matrices (feature by feature; complaints by platform) */
table.mx { border-collapse: collapse; width: 100%; font-size: 16.5px; }
table.mx th { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--prompt); padding: 8px 6px; border-bottom: 1px solid var(--line-hi); text-align: center; vertical-align: bottom; }
table.mx th:first-child { text-align: left; }
table.mx th.us { color: var(--signal); }
table.mx td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); vertical-align: middle; }
table.mx td:first-child { text-align: left; color: var(--ink); }
table.mx td.us { background: #ff5a1f12; }
table.mx td .m { font: 700 19px var(--mono); }
table.mx td .m.y { color: var(--ink); } table.mx td .m.p { color: var(--muted); } table.mx td .m.n { color: #3e3e44; }
table.mx td .m.c { color: var(--bad); }
table.mx td.ans { text-align: left; font-size: 15.5px; color: var(--muted); }
.mx-key { font: 500 13px var(--mono); color: var(--prompt); margin-top: 10px; letter-spacing: .04em; }
.mx-key b { color: var(--ink); }
/* (2026-10-18) the matrices longer: a section's name across its rows, a tighter table */
table.mx tr.sec td { font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); padding: 12px 6px 4px; text-align: left; border-bottom: 1px solid var(--line-hi); background: none; }
table.mx.tight { font-size: 14.5px; }
table.mx.tight td { padding: 4px 6px; }
table.mx.tight td .m { font-size: 16px; }
table.mx.tight td.ans { font-size: 13.5px; }

/* ---------------------------------------------------------------- INTERNAL: what users say (fifty, by platform, down four columns) */
.qwall { column-count: 4; column-gap: 30px; }
.qwall .qg { break-inside: avoid-column; margin: 0 0 12px; }
.qwall h4 { font: 700 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fc, var(--signal)); border-top: 2px solid var(--fc, var(--signal)); padding-top: 5px; margin: 0 0 5px; }
.qwall h4 span { color: var(--prompt); font-weight: 500; letter-spacing: .06em; }
.qwall p { font-size: 13.5px; line-height: 1.36; color: var(--ink); margin: 0 0 5px; }
.qwall p a { font: 400 10.5px var(--mono); color: var(--prompt); text-decoration: none; white-space: nowrap; }
.qwall p a:hover { color: var(--signal); }
/* the platforms' lists, fifteen each */
.dz-list.c15 li { font-size: 13.2px; line-height: 1.28; padding: 2px 0 2px 18px; border-bottom: 0; }
.dz-list.c15 li::before { top: 1px; left: 2px; font-size: 13px; }

/* ---------------------------------------------------------------- INTERNAL: stat groups, range bars, the money flow */
.sg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 30px; }
.sg > div { border-top: 2px solid var(--fc, var(--line-hi)); padding-top: 12px; }
.sg h4 { font: 700 14px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fc, var(--prompt)); margin-bottom: 10px; }
.sg .v { font: 700 40px/1.05 var(--mono); color: var(--ink); letter-spacing: -.02em; }
.sg .k { font-size: 16px; color: var(--muted); line-height: 1.35; margin: 2px 0 12px; }
.rb { display: grid; gap: 9px; }
.rb .r { display: grid; grid-template-columns: 300px 1fr 150px; gap: 16px; align-items: center; font-size: 17.5px; }
.rb .r .k { color: var(--muted); } .rb .r .k b { color: var(--ink); font-weight: 500; }
.rb .r .t { position: relative; height: 22px; background: var(--raised); }
.rb .r .t i { position: absolute; top: 0; bottom: 0; background: var(--fc, #6e6e68); }
.rb .r .t i.lo { opacity: .45; }
.rb .r .v { font: 700 16px var(--mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.rb .r.us .k { color: var(--signal); font-family: var(--mono); font-weight: 700; }
.rb .r.us .t i { background: var(--signal); }
.flow { width: 100%; height: auto; display: block; }
.flow text { font-family: var(--mono); }
.note { font-size: 16.5px; color: var(--muted); line-height: 1.45; }
.note b { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- cues (each element's own entrance, timed like a fan of delays) */
.js .slide [data-cue] { opacity: 0; }
.js .slide [data-cue].cue-on { opacity: 1; }
.js .slide [data-cue="rise"], .js .slide [data-cue=""] { transform: translateY(26px); filter: blur(8px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.js .slide [data-cue="rise"].cue-on, .js .slide [data-cue=""].cue-on { transform: none; filter: none; }
.js .slide [data-cue="fade"] { transition: opacity 1.1s var(--ease); }
.js .slide [data-cue="left"] { transform: translateX(-46px); filter: blur(6px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .8s; }
.js .slide [data-cue="left"].cue-on { transform: none; filter: none; }
.js .slide [data-cue="right"] { transform: translateX(46px); filter: blur(6px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .8s; }
.js .slide [data-cue="right"].cue-on { transform: none; filter: none; }
.js .slide [data-cue="scale"] { transform: scale(.94); filter: blur(10px); transition: opacity .9s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease); }
.js .slide [data-cue="scale"].cue-on { transform: none; filter: none; }
.js .slide [data-cue="wipe"] { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-io), opacity .2s; }
.js .slide [data-cue="wipe"].cue-on { clip-path: inset(0 0 0 0); }
.js .slide [data-cue="type"], .js .slide [data-cue="count"] { transition: opacity .15s; }
.js .slide [data-cue="stagger"] { opacity: 1; }
.js .slide [data-cue="stagger"] > * { opacity: 0; transform: translateY(20px); filter: blur(6px); transition: opacity .6s var(--ease), transform .8s var(--ease), filter .7s; }
.js .slide [data-cue="stagger"].cue-on > *.cue-on { opacity: 1; transform: none; filter: none; }
.typing .tc { opacity: 0; }
.typing .tc.v { opacity: 1; }
.still .slide [data-cue], .still .slide [data-cue="stagger"] > * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }

/* levels and audiences: a page or a block shown only from its level (1 OVERVIEW, 2 DETAIL, 3 DEEP DIVE) */
body.lv1 .l2, body.lv1 .l3, body.lv2 .l3 { display: none !important; }
body.lv1 .only2, body.lv1 .only3, body.lv2 .only3, body.lv2 .only1, body.lv3 .only1, body.lv3 .only2 { display: none !important; }
body:not(.internal) .internal-only { display: none !important; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.breathe { animation: pulse 2.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .js .slide [data-cue] { transition: opacity .3s !important; transform: none !important; filter: none !important; clip-path: none !important; }
  #playhead { display: none; }
}

/* printing (or ?still): every page, one after another, finished */
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { overflow: visible; height: auto; background: var(--ground); }
  #viewport { position: static; display: block; }
  #stage { transform: none !important; height: auto; overflow: visible; }
  .slide { position: relative; display: block !important; height: 1080px; page-break-after: always; break-after: page; overflow: hidden; }
  .slide.skip { display: none !important; }
  #chrome-top, #chrome-bottom, #playhead, .overlay, #frame-red { display: none !important; }
  .js .slide [data-cue], .js .slide [data-cue="stagger"] > * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}
