/* canAIfool.me
   One scrolling website for everyone. The interactive parts live inside it: a listening test, dot charts that sort
   themselves as you scroll, interview clips, a live counter and a label switch.
   Presenting is the same page with html.presenting: sound on, the clock, hands-up prompts, and the arrow keys
   jumping from one beat (a [data-beat] element) to the next.
   Brand carried over from the live site and teaser: Inter, near-black ink, brand red for the "AI". */

:root {
  --ink: #0d0d0d;
  --paper: #ffffff;
  --red: #921c12;       /* brand red on white */
  --hot: #e0362b;       /* the same red where it sits on black */
  --grey: #8a8a86;      /* quiet text on black */
  --mute: #545454;      /* quiet text on white */
  --soft: #f1f1ef;
  --line-d: #2c2c2a;    /* quiet strokes on black */
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --inout: cubic-bezier(0.76, 0, 0.24, 1);
  --bar: 0px;      /* no header, so nothing on the page makes room for one */
  --m: clamp(20px, 4vw, 72px);
  --maxw: 1440px;
  --gutter: max(var(--m), calc((100vw - var(--maxw)) / 2));
  --section: clamp(96px, 16vh, 200px);
  --h2: clamp(38px, 1.4rem + 3.2vw, 84px);
  --lead: clamp(19px, 0.9rem + 0.55vw, 26px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
body { margin: 0; padding-top: var(--bar); background: var(--ink); color: #fff; font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-kerning: normal; font-variant-numeric: lining-nums; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
kbd { font: inherit; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: #fff; color: var(--ink); font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }

html:not(.presenting) .only-present, html.presenting .only-site { display: none !important; }

/* ---------- Type ---------- */
h2 { font-size: var(--h2); font-weight: 900; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h3 { font-size: clamp(26px, 1rem + 1.4vw, 44px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
.lead { font-size: var(--lead); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
h2 + .lead { margin-top: 24px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.dark .kicker { color: var(--hot); }
.red { color: var(--red); }
.hot, .ai { color: var(--hot); }
.light .ai { color: var(--red); }
.src { font-size: 13px; color: var(--grey); margin-top: 14px; }
.light .src { color: var(--mute); }
.note { font-size: 16px; color: var(--grey); margin-top: 18px; max-width: 34em; }

/* ---------- Sections ---------- */
main > section { position: relative; padding: var(--section) 0; }
.dark { background: var(--ink); color: #fff; }
.light { background: var(--paper); color: var(--ink); }
.light .lead { color: #2b2b29; }
.dark .lead { color: #d9d9d4; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--m); }

/* things that rise into place as they scroll into view (only once the script is running, so nothing hides without it) */
html.js :where([data-beat]:not(.card-in, .hero-in, .wall), [data-reveal]) { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 900ms var(--out); }
html.js :where([data-beat]:not(.card-in, .hero-in, .wall), [data-reveal]).seen { opacity: 1; transform: none; }

/* ---------- Hero: the original site's wordmark, edge to edge, black on white ---------- */
main > .hero { padding: clamp(16px, 2.4vw, 36px) 0 clamp(18px, 2vw, 28px); }
.hero-in { padding: 0 var(--m); }
.monument { font-size: calc((100vw - 2 * var(--m)) / 6.2); font-weight: 900; line-height: 0.82; letter-spacing: -0.055em; white-space: nowrap; margin-left: -0.04em; color: var(--ink); }
.hero .ai { color: var(--red); }
.hero-foot { margin-top: clamp(16px, 2vw, 28px); display: flex; justify-content: flex-end; }
.hero-line { max-width: 30ch; text-align: right; font-size: clamp(17px, 0.9rem + 0.35vw, 21px); font-weight: 500; line-height: 1.35; color: var(--ink); text-wrap: balance; }

/* ---------- Teaser ---------- */
main > .teaser { padding: 0; }
.teaser-box { margin: 0; padding: 0; }
.teaser-frame { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--bar)); width: 100%; background: #000; overflow: hidden; }
.teaser-frame video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.teaser figcaption { margin-top: 14px; font-size: 15px; color: var(--grey); }
.bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 14px; height: clamp(52px, 4.6vw, 66px); padding: 0 clamp(20px, 2vw, 28px); border: 0; border-radius: 0; background: #fff; color: var(--ink); font-size: clamp(16px, 0.8rem + 0.5vw, 21px); font-weight: 700; letter-spacing: -0.01em; transition: transform 200ms var(--out), opacity 300ms ease; }
.bigplay svg { width: clamp(20px, 1.8vw, 28px); height: auto; }
.bigplay small { font-size: 0.7em; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.bigplay:hover { transform: translate(-50%, -50%) scale(1.03); }
.teaser.playing .bigplay { opacity: 0; pointer-events: none; }
.soundhint { position: absolute; right: 16px; top: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(13, 13, 13, 0.8); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; transition: opacity 240ms ease; pointer-events: none; }
.teaser-hint { cursor: pointer; }
.teaser.silent .teaser-hint { opacity: 1; pointer-events: auto; }
.player.silent .soundhint { opacity: 1; }

/* ---------- Scrollytelling: text cards scroll past a sticky graphic ---------- */
main > .scrolly { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 96px); padding: 0 var(--gutter); }
main > .scrolly.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.scrolly.flip .cards { grid-column: 2; grid-row: 1; }
.scrolly.flip .graphic { grid-column: 1; grid-row: 1; }
.scrolly .graphic { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.scrolly .cards { padding: 22vh 0 34vh; min-width: 0; }
.scrolly .card { min-height: 80vh; display: flex; align-items: center; }
.scrolly .card:first-child { min-height: 60vh; align-items: flex-start; }
.scrolly .card-in { max-width: 32em; opacity: 0.28; transition: opacity 400ms ease; }
.scrolly .card-in.on { opacity: 1; }

/* ---------- The test ---------- */
.test .decks { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 56px); }
.deck { --p: 0%; min-width: 0; }
.letter { padding: 0; border: 0; background: none; text-align: left; }
.glyph { position: relative; display: block; font-size: clamp(150px, 19vw, 360px); font-weight: 900; line-height: 0.84; letter-spacing: -0.04em; transition: transform 160ms var(--out); }
.letter:active .glyph { transform: scale(0.985); }
.glyph .base { display: block; color: var(--line-d); transition: color 200ms ease; }
.letter:hover .base { color: #3a3a37; }
.glyph .ink { position: absolute; inset: 0; color: #fff; clip-path: inset(calc(100% - var(--p)) 0 0 0); transition: color 500ms ease; }
.deck .state { margin-top: 22px; font-size: 15px; font-weight: 700; color: var(--grey); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.wave { position: relative; height: clamp(48px, 5vw, 80px); margin-top: 10px; }
.wave .bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.wave .bars i { flex: 1; min-height: 3px; border-radius: 2px; background: var(--line-d); }
.wave .bars.top { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.wave .bars.top i { background: #fff; transition: background-color 500ms ease; }
.credit { margin-top: 22px; opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 600ms var(--out); }
.credit b { display: block; font-size: clamp(28px, 2.6vw, 48px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.credit span { display: block; margin-top: 6px; font-size: 16px; color: #b9b9b4; }
.test.revealed .credit { opacity: 1; transform: none; }
.test.revealed .deck { --p: 100% !important; }
.test.revealed .deck[data-kind="ai"] .ink, .test.revealed .deck[data-kind="ai"] .credit b { color: var(--hot); }
.test.revealed .deck[data-kind="ai"] .bars.top i { background: var(--hot); }
.test.revealed .state { visibility: hidden; }
.picks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.picks button { height: 56px; padding: 0 26px; border: 2px solid #fff; border-radius: 999px; background: transparent; color: #fff; font-size: 18px; font-weight: 900; letter-spacing: -0.01em; transition: background 160ms ease, color 160ms ease; }
.picks button:hover, .picks button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.picks button[data-pick="u"] { border-color: #5a5a56; color: #b9b9b4; font-weight: 700; }
.picks button[data-pick="u"]:hover, .picks button[data-pick="u"][aria-pressed="true"] { background: #5a5a56; color: #fff; }
.hint { margin-top: 16px; font-size: 15px; color: var(--grey); }
#t-room b { color: #fff; }

/* ---------- How we asked ---------- */
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.facts { margin-top: clamp(40px, 6vh, 64px); display: grid; gap: 22px; }
.facts li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding-top: 18px; border-top: 1px solid #e0e0dc; font-size: 18px; color: #2b2b29; }
.facts b { font-size: 52px; font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; color: var(--ink); font-variant-numeric: tabular-nums; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collage > * { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.collage .c1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; object-position: 50% 40%; }
.collage .c2, .collage .c3 { aspect-ratio: 4 / 3; }

/* ---------- Scaled figures: drawn at a fixed size, scaled to the column ---------- */
.fig { position: relative; width: 100%; aspect-ratio: var(--ar, 4 / 3); }
.fig-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k, 1)); }

/* ---------- Results ---------- */
.results .graphic .readout { margin-top: 18px; min-height: 1.6em; font-size: 15px; color: var(--mute); }
.results .readout b { color: var(--ink); }
.dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #c9c9c5; transform-origin: 0 0; cursor: default;
  transition: transform 900ms var(--inout), background-color 500ms ease, opacity 500ms ease, box-shadow 300ms ease; transition-delay: var(--dl, 0ms); }
.dots-colored .dot.caught { background: var(--ink); }
.dots-colored .dot.fooled { background: var(--red); }
.dots-colored .dot.nocall { background: transparent; box-shadow: inset 0 0 0 4px var(--grey); }
.dots-fooled .dot:not(.fooled) { opacity: 0.14; }
.dots-asterisk .dot { opacity: 0.14; }
.dots-asterisk .dot.star { opacity: 1; box-shadow: 0 0 0 6px var(--paper), 0 0 0 10px var(--red); }
.dot:hover { box-shadow: 0 0 0 5px var(--paper), 0 0 0 8px var(--ink); opacity: 1 !important; }
.dlab { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 400ms ease; pointer-events: none; color: var(--ink); }
.dlab.on { opacity: 1; }
.dlab.blk b { display: block; font-size: 64px; font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.dlab.blk span { display: block; margin-top: 6px; font-size: 18px; color: var(--mute); }
.dlab.blk.red b { color: var(--red); }
.dlab.grp { width: 912px; display: flex; align-items: flex-end; justify-content: space-between; }
.dlab.grp b { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.dlab.grp em { font-style: normal; font-size: 54px; font-weight: 900; letter-spacing: -0.04em; line-height: 0.8; color: var(--red); }
.dlab.cap { font-size: 19px; color: #2b2b29; white-space: nowrap; }
.dlab.you { font-size: 22px; font-weight: 700; white-space: nowrap; }
.player.inline { margin: 26px 0 0; max-width: 460px; }
.pull { margin-top: 22px; font-size: clamp(24px, 1rem + 1vw, 34px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.12; }
.pull + p { margin-top: 14px; font-size: 17px; color: #2b2b29; }
.pull cite { display: block; margin-top: 8px; font-style: normal; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--mute); }

/* ---------- Clip players ---------- */
.player .frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 4px; cursor: pointer; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player .bar { position: absolute; left: 0; bottom: 0; height: 5px; width: var(--p, 0%); background: var(--hot); }
.clips { display: grid; gap: clamp(72px, 14vh, 160px); margin-top: clamp(72px, 14vh, 160px); }
.player.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.player.row.flip .frame { order: 2; }
.player .cap { display: flex; flex-direction: column; align-items: flex-start; }
.player .tag { font-size: 13px; font-weight: 700; letter-spacing: 0.01em; padding: 7px 13px; border-radius: 999px; background: var(--hot); color: #fff; }
.light .player .tag { background: var(--red); }
.player.row blockquote { margin: 22px 0 26px; font-size: clamp(28px, 0.8rem + 2.2vw, 52px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.player .cap > b { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.player .cap > span:last-child { margin-top: 4px; font-size: 15px; color: var(--grey); line-height: 1.35; }
.light .player .cap > span:last-child { color: var(--mute); }

/* ---------- Voices ---------- */
.v-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.v-intro .pic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }

/* ---------- Photo bands: a row of our own photos between sections ---------- */
.band { display: grid; gap: 10px; margin-top: clamp(72px, 12vh, 140px); padding: 0 10px; }
.wrap .band { padding: 0; }
.band.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.v-out { margin-top: clamp(96px, 18vh, 200px); max-width: 1200px; }
.v-out .words { display: flex; flex-wrap: wrap; gap: 0.6em 1em; font-size: clamp(30px, 1rem + 2.6vw, 64px); font-weight: 900; letter-spacing: -0.035em; color: #7d7d79; }
.v-out h2 { margin-top: 0.8em; font-size: clamp(40px, 1.4rem + 4vw, 104px); line-height: 0.98; }

/* ---------- How it feels ---------- */
.listen h2 { max-width: 18em; }
.l-row { margin-top: clamp(32px, 5vh, 56px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: end; }
.l-big { display: flex; align-items: baseline; gap: 24px; }
.l-big b { font-size: clamp(120px, 15vw, 280px); font-weight: 900; letter-spacing: -0.065em; line-height: 0.82; margin-left: -0.03em; font-variant-numeric: tabular-nums; }
.l-big > span { font-size: clamp(22px, 0.8rem + 1.2vw, 36px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.08; max-width: 9em; }
.l-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.l-dots i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); opacity: 0; transform: translateY(-20px); transition: opacity 400ms ease, transform 600ms var(--out); transition-delay: var(--dl, 0ms); }
.listen.seen .l-dots i { opacity: 1; transform: none; }
.l-dots i.depends, .l-key i.depends { background: transparent; box-shadow: inset 0 0 0 3px var(--ink); }
.l-dots i.yes, .l-key i.yes { background: var(--red); }
.l-dots i.unclear, .l-key i.unclear { background: #c9c9c5; }
.l-key { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: #2b2b29; }
.l-key li { display: flex; align-items: center; gap: 10px; }
.l-key li i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.l-key b { color: var(--ink); font-weight: 900; }
.c-chart { margin-top: clamp(96px, 18vh, 200px); }
.c-chart h2 { max-width: 16em; margin-bottom: clamp(24px, 4vh, 48px); }
.c-chart .readout { margin-top: 8px; font-size: 15px; color: var(--mute); min-height: 1.6em; }
.c-chart .readout b { color: var(--ink); }
.strip .axis { position: absolute; left: 60px; top: 440px; width: 1280px; height: 3px; background: var(--ink); }
.strip .tick { position: absolute; top: 458px; width: 80px; margin-left: -40px; text-align: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.strip .end { position: absolute; top: 504px; font-size: 21px; color: var(--mute); white-space: nowrap; }
.strip .cdot { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); opacity: 0; transform: translateY(-50px); transition: opacity 400ms ease, transform 700ms var(--out), box-shadow 200ms ease; transition-delay: var(--dl, 0ms); }
.c-chart.seen .cdot { opacity: 1; transform: none; }
.strip .cdot.hi { background: var(--red); }
.strip .cdot:hover { box-shadow: 0 0 0 5px var(--paper), 0 0 0 8px var(--ink); }
.strip .median { position: absolute; top: 30px; height: 410px; width: 0; border-left: 3px dashed var(--red); opacity: 0; transition: opacity 500ms ease 200ms; }
.strip .median span { position: absolute; left: 12px; top: 0; font-size: 20px; font-weight: 700; color: var(--red); white-space: nowrap; }
.comfort.median-on .strip .median { opacity: 1; }
.c-stats { margin-top: clamp(32px, 5vh, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.c-stats li { padding-top: 18px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.c-stats b { font-size: clamp(44px, 1rem + 4vw, 88px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.c-stats span { font-size: 17px; color: #2b2b29; }

/* ---------- The flood ---------- */
.flood .graphic { overflow: hidden; }
#flood-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.counter { position: relative; }
.count { font-size: clamp(110px, 14vw, 280px); font-weight: 900; letter-spacing: -0.06em; line-height: 0.88; font-variant-numeric: tabular-nums; color: var(--hot); margin-left: -0.03em; }
.count-cap { margin-top: 18px; max-width: 26em; font-size: clamp(17px, 0.9rem + 0.3vw, 21px); line-height: 1.35; color: #c9c9c5; }
.big { font-size: clamp(30px, 0.8rem + 2.6vw, 60px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.big b { color: var(--hot); font-weight: 900; }
.big.dim { color: var(--grey); margin-top: 14px; }
.half { position: relative; margin-top: 36px; height: 52px; background: #3a3a37; border-radius: 3px; }
.half i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--hot); border-radius: 3px 0 0 3px; transition: width 1400ms var(--out) 300ms; }
.card-in.played .half i { width: 52%; }
.half span { position: absolute; top: 64px; font-size: 15px; color: #b9b9b4; }
.half span:nth-of-type(1) { left: 0; color: var(--hot); font-weight: 700; }
.half span:nth-of-type(2) { right: 0; }
.half { margin-bottom: 44px; } /* room for the two labels hanging under the bar */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid #4a4a47; margin-bottom: 40px; }
.timeline li { position: relative; padding: 22px 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: -9px; width: 15px; height: 15px; border-radius: 50%; background: var(--grey); }
.timeline b { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.timeline span { font-size: 14px; line-height: 1.3; color: #b9b9b4; }
.timeline .now::before { background: var(--hot); }
.timeline .now b { color: var(--hot); }
.f-facts { display: grid; gap: 22px; }
.f-facts li { display: grid; gap: 4px; }
.f-facts b { font-size: clamp(30px, 0.8rem + 2vw, 52px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.f-facts span { font-size: 17px; color: #b9b9b4; }
.why-flood { margin-top: 32px; padding-top: 24px; border-top: 2px solid #4a4a47; font-size: 20px; line-height: 1.38; color: #d9d9d4; }
.why-flood b { color: var(--hot); }

/* ---------- Not the sound ---------- */
.l-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.l-open .pic { width: 100%; max-height: 72vh; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.lw { margin-top: clamp(72px, 12vh, 140px); padding: clamp(28px, 3.5vw, 56px); background: var(--soft); border-radius: 20px; }
.lw-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lw-toggle { display: flex; padding: 5px; border-radius: 999px; background: #fff; }
.lw-toggle button { height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent; font-size: 17px; font-weight: 700; color: #3d3d3a; transition: background 240ms ease, color 240ms ease; }
.lw-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lw[data-label="ai"] .lw-toggle button[aria-pressed="true"] { background: var(--red); }
.lw-wave { margin-top: 40px; height: clamp(90px, 10vw, 150px); display: flex; align-items: center; gap: 3px; }
.lw-wave i { flex: 1; min-height: 4px; border-radius: 3px; background: var(--ink); transition: background-color 500ms ease; }
.lw[data-label="ai"] .lw-wave i { background: var(--red); }
.lw-find { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.lw-find > div { grid-row: 1; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(14px); transition: opacity 300ms ease, transform 300ms ease; pointer-events: none; }
.lw-find > div:nth-child(1), .lw-find > div:nth-child(3) { grid-column: 1; }
.lw-find > div:nth-child(2), .lw-find > div:nth-child(4) { grid-column: 2; }
.lw[data-label="human"] .lw-find [data-for="human"], .lw[data-label="ai"] .lw-find [data-for="ai"] { opacity: 1; transform: none; transition: opacity 500ms ease 150ms, transform 600ms var(--out) 150ms; }
.lw-find b { font-size: clamp(24px, 0.9rem + 1.2vw, 36px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.lw-find span { font-size: 17px; line-height: 1.4; color: #3d3d3a; }
.lw-quote { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--ink); font-size: clamp(19px, 0.9rem + 0.5vw, 24px); font-weight: 500; }
.l-64 { margin-top: clamp(96px, 16vh, 180px); }
.l-64 .n { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); align-items: center; }
.l-64 .n b { font-size: clamp(140px, 19vw, 340px); font-weight: 900; letter-spacing: -0.065em; line-height: 0.86; color: var(--red); margin-left: -0.03em; }
.l-64 .n span { font-size: clamp(24px, 0.8rem + 1.8vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; max-width: 14em; text-wrap: balance; }
.l-64 .n em { display: block; margin-top: 16px; font-style: normal; font-weight: 500; color: var(--mute); }
.l-age { margin-top: clamp(96px, 16vh, 180px); }
.agechart { position: relative; margin-top: 36px; display: grid; gap: 14px; }
.agechart .row { position: relative; display: grid; grid-template-columns: 90px 1fr; align-items: center; height: 46px; }
.agechart .lab { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.agechart .track { position: relative; height: 100%; }
.agechart .barr { position: absolute; top: 6px; bottom: 6px; background: var(--ink); transform: scaleX(0); transition: transform 900ms var(--out); transition-delay: var(--dl, 0ms); }
.l-age.seen .agechart .barr { transform: scaleX(1); }
.agechart .barr.neg { transform-origin: right center; }
.agechart .barr.pos { transform-origin: left center; background: var(--red); }
.agechart .val { position: absolute; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.agechart .zero { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--ink); }
.agechart .us { position: absolute; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 700; color: var(--red); white-space: nowrap; }
.agechart .us-row .barr { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--red); }
.l-age-note { margin-top: 28px; max-width: 34em; font-size: clamp(20px, 0.9rem + 0.8vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* ---------- Who pays ---------- */
main > .stakes { padding-top: 0; }
.wall { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.wall-pics { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.wall-pics img { width: 100%; height: 100%; object-fit: cover; }
.wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,0) 30%, rgba(13,13,13,0.86) 70%, var(--ink) 100%); }
.wall-text { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--m) clamp(40px, 7vh, 80px); }
.wall-text h2 { max-width: 16em; }
.wall-text .cap { margin-top: 18px; font-size: 15px; color: #b9b9b4; }
.s-24 { margin-top: clamp(80px, 12vh, 140px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px clamp(24px, 3vw, 56px); align-items: center; }
.s-24 .huge { font-size: clamp(140px, 19vw, 340px); font-weight: 900; letter-spacing: -0.065em; line-height: 0.84; color: var(--hot); margin-left: -0.035em; grid-row: span 2; }
.s-24 .lead { font-size: clamp(24px, 0.8rem + 1.8vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; color: #fff; max-width: 14em; }
.pew { margin-top: clamp(80px, 12vh, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.pew b { display: block; font-size: clamp(100px, 13vw, 240px); font-weight: 900; letter-spacing: -0.06em; line-height: 0.86; margin-left: -0.03em; }
.pew div:first-child b { color: var(--hot); }
.pew span { display: block; margin-top: 18px; font-size: clamp(20px, 0.8rem + 1vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; max-width: 15em; }
.pew .src { grid-column: 1 / -1; }

/* ---------- The why ---------- */
.why .wrap > div + div { margin-top: clamp(120px, 26vh, 300px); }
.w-count .pre { font-size: clamp(22px, 0.8rem + 1.2vw, 36px); font-weight: 700; letter-spacing: -0.02em; color: #b9b9b4; }
.w-count .count { font-size: clamp(160px, 26vw, 460px); margin-top: 8px; }
.w-count .post { margin-top: 18px; font-size: clamp(22px, 0.8rem + 1.2vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.w-q h2 { font-size: clamp(64px, 1rem + 9vw, 200px); line-height: 0.88; letter-spacing: -0.05em; }
.w-q p { margin-top: 0.6em; font-size: clamp(30px, 1rem + 3vw, 72px); font-weight: 900; letter-spacing: -0.035em; color: var(--hot); }
.w-thesis p { font-size: clamp(42px, 1rem + 5vw, 120px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
.w-thesis .l1 { color: #7d7d79; }
.w-thesis .l2, .w-thesis .l3 { margin-top: 0.3em; }
.w-thesis .l3 { color: var(--hot); }
.w-thesis .l4 { margin-top: 1.4em; font-size: clamp(18px, 0.8rem + 0.6vw, 26px); font-weight: 500; letter-spacing: -0.01em; color: #b9b9b4; }
html.js .w-thesis p { opacity: 0; transform: translateY(30px); }
.w-thesis.played p { animation: rise 800ms var(--out) both; }
.w-thesis.played .l2 { animation-delay: 1100ms; }
.w-thesis.played .l3 { animation-delay: 2300ms; }
.w-thesis.played .l4 { animation-delay: 3100ms; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
main > .end { padding: clamp(96px, 18vh, 200px) 0; }
.end .mark { width: clamp(40px, 3.5vw, 64px); height: auto; margin-bottom: 28px; }
.end-name { font-size: clamp(64px, 1rem + 10vw, 200px); font-weight: 900; line-height: 0.86; letter-spacing: -0.055em; margin-left: -0.04em; white-space: nowrap; }
.end-line { margin-top: 28px; font-size: clamp(24px, 0.8rem + 1.6vw, 44px); font-weight: 700; letter-spacing: -0.025em; }
.credits { margin-top: clamp(48px, 8vh, 96px); font-size: 16px; line-height: 1.6; color: var(--mute); }

/* ---------- Footer ---------- */
#foot { position: relative; background: var(--ink); color: #fff; font-size: 17px; line-height: 1.55; padding: clamp(72px, 9vw, 140px) var(--m) 0; overflow: hidden; border-top: 1px solid #1f1f1d; }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); max-width: var(--maxw); margin: 0 auto; }
#foot h2 { font-size: clamp(26px, 1.4rem + 1vw, 36px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 22px; }
#foot p { color: #c9c9c5; max-width: 34em; margin-bottom: 16px; }
#foot .foot-team { color: var(--grey); }
#foot a { color: #fff; text-underline-offset: 0.2em; }
#foot a:hover { color: var(--hot); }
#foot ol { list-style: decimal; padding-left: 1.4em; color: var(--grey); font-size: 15px; line-height: 1.5; display: grid; gap: 10px; }
.foot-mark { margin: clamp(56px, 8vw, 120px) 0 -0.06em -0.04em; font-size: calc((100vw - 2 * var(--m)) / 6.2); font-weight: 900; line-height: 0.8; letter-spacing: -0.055em; white-space: nowrap; }

/* ---------- Always on: chapter rail, flood chip, clock, toast ---------- */
.rail { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: 18px; display: flex; gap: 2px; align-items: flex-end; pointer-events: none; }
.rail button { position: relative; flex: var(--w, 1); height: 4px; padding: 0; border: 0; background: rgba(140, 140, 136, 0.4); pointer-events: auto; transition: height 160ms ease; }
.rail:hover button { height: 10px; }
.rail { z-index: 36; } /* chapter names sit above the clock */
.rail button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; } /* an easier target than the 4px bar */
.clock { transition: opacity 200ms ease; }
.rail:hover ~ .clock { opacity: 0; pointer-events: none; } /* and it steps aside while you read the bar */
.rail button i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill, 0%); background: var(--hot); transition: width 300ms ease; }
.rail button span { position: absolute; left: 0; bottom: 16px; padding: 5px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 160ms ease; box-shadow: 0 0 0 1px #3a3a37; }
.rail button:hover span { opacity: 1; }
.rail button:last-child span { left: auto; right: 0; }
.clock { position: fixed; z-index: 35; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: rgba(13, 13, 13, 0.88); color: #c9c9c5; font-size: 13px; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1px #2c2c2a; }
.clock { right: 16px; font-weight: 700; color: #fff; }
.clock .of { font-weight: 400; color: var(--grey); }
.clock.behind #clock-t { color: var(--hot); }
.clock[hidden] { display: none; }
.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--bar) + 16px); max-width: min(720px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.35; opacity: 0; pointer-events: none; transform: translate(-50%, -12px); transition: opacity 300ms ease, transform 400ms var(--out); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  main > .scrolly, main > .scrolly.flip { grid-template-columns: 1fr; }
  .scrolly .graphic, .scrolly.flip .graphic { grid-column: 1; grid-row: 1; height: auto; min-height: 60vh; z-index: 0; }
  .scrolly .cards, .scrolly.flip .cards { grid-column: 1; grid-row: 2; padding-top: 8vh; }
  .two, .player.row, .foot-in, .pew, .lw-find, .c-stats, .l-row { grid-template-columns: 1fr; }
  .player.row.flip .frame { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; transition-delay: 0ms !important; }
}

/* ---------- Not the sound: same song, two labels ---------- */
.labels { margin-top: clamp(56px, 9vh, 110px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.lcard { padding: clamp(24px, 3vw, 44px); border-radius: 18px; background: var(--soft); }
.lcard.ai { background: var(--red); color: #fff; }
.lcard-tag { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.lcard.ai .lcard-tag { color: rgba(255, 255, 255, 0.8); }
.lcard-big { margin-top: 14px; font-size: clamp(30px, 1rem + 2.4vw, 56px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; }
.lcard-big + p { margin-top: 14px; font-size: clamp(17px, 0.9rem + 0.3vw, 20px); line-height: 1.4; }
.labels-sum { grid-column: 1 / -1; margin-top: 16px; font-size: clamp(26px, 1rem + 1.8vw, 44px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.labels-sum b { color: var(--red); }
.labels .src { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 900px) { .labels { grid-template-columns: 1fr; } }

/* the closing lines get the whole screen to themselves, all black, so the white end card can't creep in */
.w-thesis { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.why .wrap > .w-thesis { margin-top: clamp(40px, 10vh, 120px); }
main > .why { padding-bottom: 0; }

/* room under the big counters for the comma's tail once they pass 1,000 */
.count { padding-bottom: 0.17em; }
.w-count .post { margin-top: 0; }
