/* Manga: black ink on paper, halftone, one vermilion. Speed lines and streaks are drawn on canvas (src/manga.js);
   panels (koma) slam in, sound effects pop. */
:root {
  --paper: #f7f3e8;
  --ink: #111;
  --red: #d4372c;
  --yellow: #fff7c2;
  --muted: #4c4a45;
  --line: rgba(17, 17, 17, .18);
  --sans: var(--display), "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "PingFang SC", Helvetica, Arial, sans-serif;
  --sfx: "Dela Gothic One", var(--sans);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1180px;
  --skew: -8deg;
  color-scheme: light;
}
[dir="rtl"] { --skew: 8deg; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.eyebrow { display: inline-block; margin: 0 0 16px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; transform: skewX(var(--skew)); }
h1, .h2, .col h2 { font-family: var(--sans); font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 5vw, 62px); line-height: 1.08; margin: 0; }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; margin: 18px 0 0; font-weight: 500; }
.red { color: var(--red); }
sup a { color: var(--muted); text-decoration: none; font-size: .55em; margin-inline-start: 3px; }

.btn { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; font-weight: 900; text-decoration: none; white-space: nowrap; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: skewX(var(--skew)); transition: translate .12s, box-shadow .12s; }
.btn-ink { background: var(--red); color: #fff; }
.btn-line { background: #fff; }
.btn:hover { translate: 2px 2px; box-shadow: 3px 3px 0 var(--ink); }
.btn:active { translate: 5px 5px; box-shadow: 0 0 0 var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px; background: var(--paper); border-bottom: 3px solid var(--ink); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; text-decoration: none; }
.brand .wordmark { height: 34px; width: auto; }
.nav-links { display: flex; gap: 20px; margin-inline-start: auto; font-size: 14px; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--red); }
.nav .btn { height: 34px; padding: 0 14px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
.lang { position: relative; font-size: 13px; font-weight: 700; }
.lang summary { list-style: none; cursor: pointer; border: 2px solid var(--ink); background: #fff; padding: 5px 10px; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: "▾"; margin-inline-start: 6px; font-size: 11px; }
.lang-short { display: none; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60; width: min(340px, 86vw); max-height: 70vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 6px; }
.lang-menu a { text-decoration: none; padding: 7px 10px; }
.lang-menu a:hover { background: var(--yellow); }
.lang-menu a[aria-current] { color: var(--red); font-weight: 900; }
@media (max-width: 860px) { .nav-links { display: none; } .lang { margin-inline-start: auto; } .nav .wrap { gap: 12px; } .lang-full { display: none; } .lang-short { display: inline; } }

canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.halftone { position: absolute; inset: 0; z-index: -1; background: radial-gradient(var(--ink) 28%, transparent 30%) 0 0 / 9px 9px; opacity: .4; -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 130%); mask-image: linear-gradient(115deg, transparent 45%, #000 130%); }
.flip .halftone, [dir="rtl"] .page:not(.flip) .halftone { -webkit-mask-image: linear-gradient(245deg, transparent 45%, #000 130%); mask-image: linear-gradient(245deg, transparent 45%, #000 130%); }
.sfx { position: absolute; z-index: 2; font: 400 clamp(30px, 5vw, 72px)/1 var(--sfx); color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; white-space: nowrap; pointer-events: none; }

/* the book: one manga page per idea */
.page { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); border-bottom: 3px solid var(--ink); padding: 84px 0 44px; }
.p-warm, .p-agents { background: var(--yellow); }
.p-sim .art { animation-name: punch !important; animation-iteration-count: 1 !important; }
@media (min-width: 861px) { .p-sim .art { inset-inline-end: 7%; } .p-sim .sfx-a { inset-inline-end: 33%; top: 9%; } }
.page-copy { position: relative; z-index: 3; }
.col h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.1; margin: 0; }
.col > p:not(.eyebrow):not(.lede):not(.prompt-label) { color: var(--muted); margin: 16px 0 0; font-weight: 500; }
.points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; }
.points li { display: flex; gap: 10px; align-items: center; font-weight: 900; }
.points li::before { content: ""; width: 0; height: 0; border-block: 7px solid transparent; border-inline-start: 12px solid var(--red); flex: none; }
.hosts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 20px; font-size: 13px; color: var(--muted); font-weight: 700; }
.hosts span { flex-basis: 100%; }
.hosts b { color: var(--ink); display: inline-flex; align-items: center; gap: 7px; font-size: 15px; white-space: nowrap; }
.hi { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); flex: none; }
.hi svg { width: 58%; height: 58%; fill: #fff; }
.prompt-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.prompt-head .prompt-label { margin: 0; }
.stack { display: flex; }
.stack span { display: block; border-radius: 50%; box-shadow: 0 0 0 3px var(--paper); margin-inline-start: -9px; transition: transform .15s; }
.stack span:first-child { margin-inline-start: 0; }
.stack span:hover { transform: translateY(-4px); }
.stack .hi { width: 36px; height: 36px; }
.page:not(.p-hero) .col { background: #fff; border: 4px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); padding: clamp(22px, 3vw, 38px); }
.art { position: relative; z-index: 1; width: min(100%, 520px); margin: 0 auto 18px; }
.p-hero h1 { margin: 0; font-size: clamp(38px, min(6.4vw, 10.5vh), 92px); line-height: 1.06; transform: skewX(var(--skew)); transform-origin: left; paint-order: stroke fill; -webkit-text-stroke: 10px var(--paper); max-width: 12em; }
[dir="rtl"] .p-hero h1 { transform-origin: right; }
.p-hero h1 span { display: block; }
.p-hero .lede { max-width: 33em; background: #fff; border: 3px solid var(--ink); padding: 10px 14px; margin-top: 22px; color: var(--ink); font-size: clamp(15px, 1.3vw, 17px); }
[dir="rtl"] .p-hero .art { transform: scaleX(-1); }

/* the prompt: the thing to do on this page */
.prompt { margin-top: 22px; max-width: 660px; }
.prompt-label { display: inline-block; margin: 0 0 10px; font-weight: 900; font-size: 16px; background: var(--yellow); border: 3px solid var(--ink); padding: 3px 12px; transform: skewX(var(--skew)); }
.prompt-box { display: flex; align-items: stretch; background: var(--ink); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.prompt-box code { flex: 1; min-width: 0; padding: 14px 16px; color: #f2f2f2; font: 500 14px/1.55 var(--mono); overflow-wrap: anywhere; text-align: left; }
.prompt-box code b { color: #ffd84a; font-weight: 600; }
.copy { flex: none; border: 0; cursor: pointer; background: var(--red); color: #fff; width: 64px; display: grid; place-items: center; transition: background .15s; }
.copy svg { grid-area: 1 / 1; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: scale .2s cubic-bezier(.2, 2, .4, 1), opacity .15s; }
.copy .i-done { scale: 0; opacity: 0; stroke-width: 3; }
.copy.done .i-copy { scale: 0; opacity: 0; }
.copy.done .i-done { scale: 1; opacity: 1; }
.copy:hover { background: #b92a20; }
.copy.done { background: #1f9d55; }

/* story strip */
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 3; margin-top: 28px; }
.st { position: relative; background: #fff; border: 4px solid var(--ink); padding: 12px 16px; box-shadow: 7px 7px 0 var(--ink); min-height: 150px; transform: skewX(-4deg); transition: background .2s; }
.st.on { background: var(--yellow); }
.st b { display: block; font-size: 13px; letter-spacing: .04em; }
.st small { display: block; color: var(--muted); }
.st-num { font: 400 clamp(40px, 5vw, 64px)/1.05 var(--sfx); font-variant-numeric: tabular-nums; }
.code-type { font: 500 12.5px/1.5 var(--mono); white-space: pre; margin: 4px 0 0; min-height: 10.5em; overflow: hidden; text-align: left; }
.code-type i { font-style: normal; }
.code-type .kw { color: #b1127a; font-weight: 700; } .code-type .ty { color: #1c6ea4; } .code-type .at { color: #a0522d; } .code-type .fn { color: #2a7f3f; }
.pr { display: flex; align-items: center; gap: 8px; margin-top: 6px; font: 600 12px/1 var(--mono); scale: 0; opacity: 0; transform-origin: left center; transition: scale .3s cubic-bezier(.2, 2, .4, 1), opacity .15s; }
[data-ph="2"] .pr, [data-ph="3"] .pr, [data-ph="4"] .pr { scale: 1; opacity: 1; }
.pr-open { display: inline-flex; align-items: center; gap: 4px; background: #1a7f37; color: #fff; border-radius: 999px; padding: 4px 9px 4px 7px; font-family: var(--sans); font-weight: 700; }
.pr-open svg { width: 12px; height: 12px; fill: #fff; }
.pr-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pr-title i { font-style: normal; color: var(--muted); font-weight: 500; }
.pr-ck { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #d9a400; border-top-color: transparent; animation: spin .7s linear infinite; }
[data-ph="3"] .pr-ck, [data-ph="4"] .pr-ck { animation: none; border: 0; background: #1a7f37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center/100% no-repeat; }
@keyframes spin { to { rotate: 360deg; } }
.swap { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; max-width: 660px; margin-top: 22px; background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font: 500 13.5px/1.5 var(--mono); text-align: left; }
.swap-file { grid-row: span 2; align-self: stretch; display: grid; place-items: center; padding: 0 12px; background: var(--ink); color: #f2f2f2; font-size: 11.5px; }
.swap code { font: inherit; padding: 3px 12px 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap code i { font-style: normal; display: inline-block; width: 1.4em; font-weight: 700; }
.swap .del { color: #8a8780; text-decoration: line-through; text-decoration-color: var(--red); } .swap .del i { color: var(--red); text-decoration: none; }
.swap .add { background: var(--yellow); font-weight: 700; margin-inline-start: -14px; padding-inline-start: 14px; } .swap .add i { color: #1a7f37; } .swap .add b { color: var(--red); }
@media (max-width: 600px) { .swap { grid-template-columns: 1fr; } .swap-file { grid-row: auto; justify-items: start; padding: 4px 12px; } .swap code { padding-inline-start: 12px; } .swap .add { margin: 0; padding-inline-start: 12px; } }
.shot { aspect-ratio: 10 / 17; display: grid; place-items: center; container-type: size; }
.phone { position: relative; height: 92%; aspect-ratio: 9 / 18.5; background: var(--ink); border-radius: 12cqh / 12cqh; border-radius: 34px; padding: 10px; box-shadow: 12px 12px 0 var(--red); rotate: 4deg; }
.notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 30%; height: 14px; background: var(--ink); border-radius: 9px; z-index: 2; }
.scr { position: relative; height: 100%; background: #fff; border-radius: 25px; padding: 44px 14px 14px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; font: 700 13px/1.2 var(--sans); text-align: left; }
.scr-t { font-size: 24px; font-weight: 900; }
.row { display: flex; align-items: center; gap: 9px; border: 2px solid var(--ink); padding: 8px; }
.row i { flex: none; width: 30px; height: 30px; background: var(--ink); }
.row span { flex: 1; height: 8px; background: repeating-linear-gradient(90deg, #bbb 0 60%, transparent 60% 100%); background-size: 100% 100%; }
.row em { font-style: normal; font-family: var(--mono); }
.row.bad span { flex: 0 0 34%; } .row.bad em { white-space: nowrap; font-size: 17px; margin-inline-start: -34%; rotate: -3deg; }
.pay { margin-top: auto; background: var(--ink); color: #fff; text-align: center; padding: 10px; }
.flash { position: absolute; inset: 10px; border-radius: 25px; background: #fff; opacity: 0; pointer-events: none; }
.page.on .flash { animation: flash .5s .5s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.row.bad { position: relative; }
.ring { position: absolute; inset: -11px -7px; width: calc(100% + 14px); height: calc(100% + 22px); overflow: visible; z-index: 3; }
.ring path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; }
.page.on .ring path { animation: ring .5s 1s ease-out forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.shot-tag, .shot-log { position: absolute; font: 600 12px/1 var(--mono); border: 3px solid var(--ink); padding: 6px 9px; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); white-space: nowrap; }
.shot-tag { right: 0; bottom: 9%; rotate: -4deg; }
.shot-log { left: -4%; top: 6%; background: #fff; rotate: -6deg; z-index: 2; } .shot-log b { background: var(--ink); color: #fff; padding: 2px 5px; } .shot-log i { font-style: normal; color: var(--red); font-weight: 800; }
.still .ring path { stroke-dashoffset: 0; }
.up { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.up-track { position: relative; flex: 1; height: 12px; border: 2px solid var(--ink); background: #fff; }
.up-track i { display: block; height: 100%; width: calc(var(--up, 0) * 100%); background: repeating-linear-gradient(-45deg, var(--red) 0 6px, #e8665c 6px 12px); }
.up-pkg { position: absolute; top: 50%; inset-inline-start: calc(var(--up, 0) * (100% - 46px)); translate: 0 calc(-50% - 22px * sin(var(--up, 0) * 180deg)); rotate: calc(var(--up, 0) * 360deg); background: #fff; border: 2px solid var(--ink); font: 700 11px/1 var(--mono); padding: 5px 6px; box-shadow: 2px 2px 0 var(--ink); }
.up-dest { flex: none; font-weight: 900; font-size: 13px; border: 2px solid var(--ink); border-radius: 9px; padding: 6px 9px; background: #fff; transition: scale .2s cubic-bezier(.2, 2.4, .4, 1), background .2s, color .2s; }
.st.sealed .up-dest { background: var(--ink); color: #fff; scale: 1.08; }
.up-pct { display: block; text-align: left; margin-top: 8px; font: 400 26px/1 var(--sfx); font-variant-numeric: tabular-nums; }
.stamp { position: absolute; right: 14px; bottom: 10px; font: 400 36px/56px var(--sfx); color: var(--red); border: 5px solid var(--red); border-radius: 50%; width: 66px; height: 66px; text-align: center; rotate: -14deg; scale: 0; transition: scale .25s cubic-bezier(.2, 2.4, .4, 1); background: rgba(255, 255, 255, .7); }
.st.sealed .stamp { scale: 1; }
.pager { display: none; }

/* entrances, replayed each time a page is turned to */
@keyframes punch { from { scale: .5; opacity: 0; } 60% { opacity: 1; } to { scale: 1; opacity: 1; } }
@keyframes dash { from { translate: 0 0; } to { translate: -5px 4px; } }
@keyframes pop { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
@keyframes slam { from { opacity: 0; transform: translateX(-46vw) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes slam-r { from { opacity: 0; transform: translateX(46vw) rotate(4deg); } to { opacity: 1; transform: none; } }
.page.on .art { animation: punch .9s cubic-bezier(.2, 1.4, .3, 1) both, dash .4s .9s steps(2, jump-none) infinite; }
.page.on .sfx { animation: pop .45s .4s cubic-bezier(.2, 2, .4, 1) both; }
.page.on:not(.p-hero) .col { animation: slam .5s cubic-bezier(.1, 1.2, .3, 1) both; }
.page.on.flip .col { animation-name: slam-r; }
.page.on .st { animation: slam .5s cubic-bezier(.1, 1.2, .3, 1) both; }
.page.on .st:nth-child(2) { animation-delay: .1s; } .page.on .st:nth-child(3) { animation-delay: .2s; }

@media (min-width: 861px) {
  .page { min-height: 660px; display: flex; flex-direction: column; justify-content: center; }
  .art { position: absolute; margin: 0; inset-inline-end: 1%; top: 12%; height: 76%; width: auto; max-width: 50%; object-fit: contain; }
  .flip .art { inset-inline-end: auto; inset-inline-start: 1%; }
  .col { width: min(560px, 48%); }
  .flip .col { margin-inline-start: auto; }
  .p-hero { justify-content: flex-start; padding-top: clamp(76px, 10vh, 110px); }
  .p-hero .col { width: min(760px, 62%); }
  .p-hero h1 { margin-inline-end: -45%; max-width: none; font-size: clamp(38px, min(5.6vw, 10vh), 88px); }
  .p-hero .art { top: 7%; height: 70%; max-width: 56%; inset-inline-end: -2%; }
  .sfx-a { inset-inline-end: 5%; top: 11%; rotate: -8deg; }
  .flip .sfx-a { inset-inline-end: auto; inset-inline-start: 5%; rotate: 7deg; }
  .p-hero .sfx-a { inset-inline-end: 40%; top: 9%; rotate: -10deg; }
  .p-hero .sfx-b { inset-inline-end: 31%; top: 63%; rotate: 8deg; color: var(--yellow); font-size: clamp(26px, 3.6vw, 52px); }
}
@media (max-width: 860px) {
  .sfx { display: none; }
  .story { grid-template-columns: 1fr; }
  .st { min-height: 0; }
  .st:nth-child(3) { min-height: 150px; }
  .code-type { min-height: 0; }
  .prompt-box { flex-direction: column; }
  .copy { width: auto; padding: 10px; }
  .page:not(.p-hero) .art { width: min(78%, 380px); }
}

/* pinned: the pages share one screen and scrolling turns them */
.pinned .book { height: calc(var(--n) * 100vh); }
.pinned .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.pinned .page { position: absolute; inset: 0; min-height: 0; border-bottom: 0; visibility: hidden; padding-bottom: 0; }
.pinned .page.on { visibility: visible; z-index: 2; }
.pinned .page.out { visibility: visible; z-index: 1; }
.pinned .page.in { animation: wipe .55s cubic-bezier(.7, 0, .2, 1) both; }
.pinned .page.in.back { animation-name: wipe-back; }
@keyframes wipe { from { clip-path: polygon(125% 0, 125% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(-25% 0, 125% 0, 100% 100%, -50% 100%); } }
@keyframes wipe-back { from { clip-path: polygon(0 0, 0 0, -25% 100%, -25% 100%); } to { clip-path: polygon(0 0, 150% 0, 125% 100%, -25% 100%); } }
.pinned .page:not(.p-hero) { padding-top: 56px; }
.pinned .story { position: absolute; inset-inline: 0; bottom: 22px; margin: 0 auto; }
.pinned .pager { display: grid; gap: 10px; position: absolute; z-index: 5; inset-inline-end: 14px; top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; }
.pager button { display: block; width: 12px; height: 12px; padding: 0; border: 2px solid var(--ink); background: #fff; cursor: pointer; rotate: 45deg; transition: background .15s, scale .15s; }
.pager button.on { background: var(--red); scale: 1.35; }
@media (max-height: 860px) { .pinned .p-hero .lede { display: none; } }
@media (max-height: 700px) { .pinned .code-type { min-height: 0; max-height: 6em; } .pinned .st { min-height: 120px; } .pinned .p-hero { padding-top: 70px; } }

/* medians: three shouting panels */
.medians { position: relative; padding: clamp(80px, 10vw, 130px) 0; border-block: 3px solid var(--ink); background: var(--paper); }
.median-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); margin-top: 48px; }
.median-grid > * { min-width: 0; }
.median { position: relative; padding: 24px 24px 22px; border: 4px solid var(--ink); background: #fff; box-shadow: 9px 9px 0 var(--ink); }
.median:nth-child(odd) { rotate: -1.2deg; } .median:nth-child(even) { rotate: 1deg; }
.median-label { margin: 0; font-weight: 900; }
.median-value { display: block; white-space: nowrap; font: 400 clamp(64px, 7.6vw, 112px)/1 var(--sfx); letter-spacing: -.04em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.median-value.range { font-size: clamp(52px, 5.6vw, 84px); }
.median-value small { font-size: .3em; letter-spacing: 0; margin-inline-start: 6px; }
.median-value.pending { color: rgba(17, 17, 17, .22); font-family: var(--sans); font-weight: 900; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; color: #fff; background: var(--red); padding: 4px 12px; transform: skewX(var(--skew)); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1s steps(2) infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.vs { margin-top: 18px; padding-top: 16px; border-top: 3px solid var(--ink); display: grid; gap: 8px; font-size: 14px; font-weight: 900; }
.vs-row { display: grid; grid-template-columns: minmax(96px, auto) 1fr auto; align-items: center; gap: 12px; }
.vs-bar { height: 16px; display: none; }
.vs.has-bars .vs-bar { display: block; }
.vs-bar i { display: block; height: 100%; min-width: 4px; border: 2px solid var(--ink); transition: width .9s cubic-bezier(.2, .9, .2, 1); }
.vs-row.us .vs-bar i { background: var(--red); }
.vs-row.gh .vs-bar i { background: repeating-linear-gradient(-45deg, var(--ink) 0 3px, #fff 3px 7px); }
.vs-row.gh { color: var(--muted); }
.vs-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-x { position: absolute; inset-inline-end: 14px; top: 14px; font: 400 clamp(22px, 2.6vw, 34px)/1 var(--sfx); color: var(--red); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; background: var(--yellow); border: 3px solid var(--ink); padding: 6px 10px; rotate: 6deg; }
.live { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.live[hidden], .vs-x[hidden] { display: none; }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; animation: pulse 1.6s steps(2) infinite; }
.live.stale .dot { background: #c9a227; animation: none; }
.median-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; font-weight: 500; }
@media (max-width: 900px) { .median-grid { grid-template-columns: 1fr; } }

/* faq: the one black band */
.faq-wrap { background: var(--ink); color: var(--paper); padding: clamp(90px, 11vw, 140px) 0; }
.faq-wrap .h2 { text-align: center; }
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 2px solid rgba(247, 243, 232, .2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: clamp(18px, 2.1vw, 21px); font-weight: 900; position: relative; }
[dir="rtl"] .faq summary { padding: 22px 0 22px 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; translate: 0 -50%; font-size: 28px; color: var(--red); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 22px; color: #cfcbc0; }

footer { border-top: 3px solid var(--ink); padding: 36px 0 52px; color: var(--muted); font-size: 12px; }
.foot-row { border-top: 1px solid var(--line); padding-top: 18px; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .5s, transform .5s cubic-bezier(.1, 1.2, .3, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .page .art, .page .sfx, .page .col, .page .st, .pill::before, .live .dot { animation: none !important; }
}
