@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --sky-0: #8fb2e3;
  --sky-1: #aac7ec;
  --sky-2: #d3e1ef;
  --dawn: #eee8d6;
  --cream: #f6f1e5;
  --paper: #fbf8f1;
  --ink: #1d2430;
  --ink-2: #4b5565;
  --muted: #7a8494;
  --faint: #a9b1bd;
  --line: #e4ddcd;
  --soft: #f1ebde;
  --turbo: #c8502f;
  --flash: #3459b0;
  --mint: #2f8f6e;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --text: "EB Garamond", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; font: 15px/1.55 var(--sans); }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--flash) 45%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--flash); }
:focus-visible { outline: 3px solid var(--flash); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 6px 10px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* hero: a sky from pale blue to warm cream, a white serif title, a mountain range drawn in ASCII along the bottom */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 860px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 26%, var(--sky-2) 52%, var(--dawn) 76%, var(--cream) 100%); color: #fff; }
.range { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.range.on { opacity: 1; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: -1; background: linear-gradient(transparent, var(--cream)); pointer-events: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px 0; font: 500 13px/1.2 var(--sans); letter-spacing: .02em; }
.embedded .topbar { padding-right: 360px; } /* the Hub's floating mini header sits top right */
@media (max-width: 860px) { .embedded .topbar { padding-right: 28px; padding-top: 56px; } }
.brand { text-decoration: none; color: #fff; text-shadow: 0 1px 10px rgba(40, 70, 120, .25); }
.brand:hover { color: #fff; opacity: .85; }
.brand img { display: block; height: 34px; width: auto; filter: drop-shadow(0 1px 6px rgba(40, 70, 120, .3)); }
@media (max-width: 560px) { .brand img { height: 28px; } }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; color: #fff;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.status.live .dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
.status.soon .dot { background: #f3c66b; }
.status.replay .dot { background: #e9eef7; box-shadow: inset 0 0 0 2px var(--sky-0); }
.hero-copy { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(70px, 15vh, 150px) 24px 34vh; }
.title { font: 500 clamp(64px, 11vw, 140px)/.95 var(--serif); letter-spacing: -.01em; margin: 0; text-shadow: 0 2px 30px rgba(52, 88, 140, .22); }
.tagline { font: 500 clamp(21px, 2.7vw, 32px)/1.2 var(--serif); margin: 14px 0 0; text-shadow: 0 1px 18px rgba(52, 88, 140, .22); }
.notice { font: 14px/1.5 var(--text); color: var(--ink); margin: 22px 0 0; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .72); max-width: 560px; }
.notice .ghost { padding: 5px 10px; font-size: 12.5px; margin-left: 6px; }
.links-hero { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font: 500 14px/1 var(--sans); letter-spacing: .02em;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill:hover { color: #fff; background: rgba(255, 255, 255, .28); }
.pill::after { content: "↗"; font-size: 12px; opacity: .8; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 22px; font: 500 15px/1 var(--serif); letter-spacing: .04em; }
.jump a { text-decoration: none; padding: 6px 0; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.jump a:hover { color: #fff; border-bottom-color: #fff; }

/* sections: the page continues the palette and the serif */
main.wrap { position: relative; }
.demo { padding: 54px 0 12px; }
.rule { font: 11.5px/1 var(--mono); color: #cbc2ae; white-space: pre; overflow: hidden; margin: 0 0 18px; height: 12px; }
.rule b { color: var(--flash); font-weight: 600; }
.demo h2 { font: 500 clamp(30px, 3.6vw, 42px)/1.05 var(--serif); letter-spacing: -.005em; margin: 0 0 6px; color: var(--ink); }
.cap { margin: 0; color: var(--ink-2); font: 17px/1.4 var(--text); }
.stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 22px; }
@media (max-width: 860px) { .stage { grid-template-columns: 1fr; gap: 18px; } }
.media { margin: 0; min-width: 0; }
.media figcaption { font: 12.5px/1.4 var(--text); color: var(--muted); margin-top: 8px; }
.media figcaption a { color: inherit; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 30px -22px rgba(60, 70, 90, .35); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.picks button { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px 4px 4px; font: 500 15px/1 var(--serif); color: var(--ink); }
.picks button img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.picks button[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* media frames and what is drawn on them */
.frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft); line-height: 0; box-shadow: 0 14px 34px -24px rgba(40, 50, 70, .55); }
.frame img, .frame video { display: block; width: 100%; height: auto; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.reading::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--scan, var(--turbo));
  box-shadow: 0 0 14px 2px var(--scan, var(--turbo)); animation: scan 1.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(var(--h, 400px)); } }
.box { position: absolute; border: 2px solid var(--c); border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .8), 0 2px 10px rgba(0, 0, 0, .22);
  transition: top .7s cubic-bezier(.2, .8, .2, 1), left .7s cubic-bezier(.2, .8, .2, 1), width .7s cubic-bezier(.2, .8, .2, 1), height .7s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.box.live { transition: opacity .2s; }
.box.dim { border-style: dashed; opacity: .6; }
.box .tag { position: absolute; left: -2px; bottom: calc(100% + 3px); background: var(--c); color: #fff; font: 600 12px/1 var(--sans); padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.box[data-tag="r"] .tag { left: auto; right: -2px; }
.box[data-tag="b"] .tag { bottom: auto; top: calc(100% + 3px); }
.box[data-tag="in"] .tag { bottom: auto; top: 3px; left: 3px; }
.box[data-tag="inb"] .tag { bottom: 3px; left: 3px; }

/* controls */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
button, select, input { font: inherit; }
.go, .ghost, .seg button, .tabs button, .chips button { cursor: pointer; border-radius: 999px; font: 600 13.5px/1 var(--sans); padding: 11px 18px; }
.go { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.go:hover { background: var(--flash); border-color: var(--flash); }
.go:disabled, .ghost:disabled { opacity: .45; cursor: not-allowed; }
.go:disabled:hover { background: var(--ink); border-color: var(--ink); }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.ghost:hover { border-color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; background: #fff; }
.seg button { border: 0; background: transparent; padding: 8px 13px; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }

/* the race */
.lanes { display: grid; gap: 14px; margin: 4px 0 14px; }
.lane { --c: var(--ink); display: grid; grid-template-columns: 78px minmax(0, 1fr) 86px; align-items: center; gap: 5px 12px; font: 13px/1.2 var(--sans); }
.lane[data-model$="turbo"] { --c: var(--turbo); }
.lane[data-model$="flash"] { --c: var(--flash); }
.lane .name { font: 600 18px/1 var(--serif); color: var(--c); }
.lane .track { position: relative; height: 14px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.lane .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--c); border-radius: 999px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.lane .tick { position: absolute; inset: 0; padding-left: 6px; font: 11px/14px var(--mono); color: var(--c); white-space: pre; overflow: hidden; }
.lane .t { text-align: right; font: 600 22px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.lane .t.running { color: var(--faint); }
.lane .meta { grid-column: 2 / 4; font-size: 12px; color: var(--muted); min-height: 14px; }
.lane.first .t::before { content: "✓ "; color: var(--mint); font: 600 14px/1 var(--sans); }
.lane.soon .meta { color: #a8701b; }
.runs { border-collapse: collapse; font: 12px/1.4 var(--sans); margin-top: 4px; }
.runs th, .runs td { text-align: right; padding: 3px 10px 3px 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.runs th { color: var(--faint); font-weight: 600; }
.runs th:first-child, .runs td:first-child { text-align: left; color: var(--muted); }
.runs td.tb { color: var(--turbo); font-weight: 700; }
.runs td.fb { color: var(--flash); font-weight: 700; }

/* answers */
.answers { margin-top: 24px; }
.tabs { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; align-items: center; }
.tabs button { border: 1px solid var(--line); background: var(--paper); padding: 6px 12px; font-size: 12.5px; color: var(--muted); }
.tabs button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }
.tabs button:disabled { opacity: .4; cursor: default; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--tcols, 8), minmax(0, 1fr)); gap: 6px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(var(--tcols-s, 4), minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(var(--tcols-xs, 2), minmax(0, 1fr)); } }
.tile { --c: var(--turbo); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 60px; font: 12px/1.25 var(--sans); background: var(--paper);
  cursor: pointer; text-align: left; width: 100%; color: var(--ink); display: block; }
.tile[data-model$="flash"] { --c: var(--flash); }
.tile:hover { border-color: #cfc5b1; }
.tile .lbl { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .ans { display: block; font: 600 16px/1.15 var(--serif); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .pb { display: block; height: 3px; border-radius: 2px; background: var(--soft); margin-top: 6px; overflow: hidden; }
.tile .pb i { display: block; height: 100%; width: var(--p, 0); background: var(--c); }
.tile.yes .ans { color: var(--mint); }
.tile.no .ans { color: #8d939c; }
.tile.err .ans { color: var(--faint); font-weight: 500; }
.tile.blank .ans { color: #d9d1c0; }
.tile.in { animation: tile-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tiles.dense { gap: 4px; }
.tiles.dense .tile { min-height: 48px; padding: 6px 8px; }
.tiles.dense .tile .ans { font-size: 14px; }
.detail { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 13px/1.45 var(--sans); background: var(--paper); }
.detail .q { font: 600 17px/1.3 var(--serif); margin: 0 0 8px; }
.detail .row { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr) 44px; gap: 10px; align-items: center; margin: 3px 0; }
.detail .row .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail .row .b { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.detail .row .b i { display: block; height: 100%; background: var(--c, var(--turbo)); }
.detail .row .v { text-align: right; color: var(--muted); }

/* pictures as options */
.question { font: 600 21px/1.25 var(--serif); margin: 0 0 12px; }
.options { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.options li { border: 1px solid var(--line); border-radius: 12px; padding: 6px; position: relative; background: #fff; transition: border-color .2s, box-shadow .2s; }
.options .pic { aspect-ratio: 4 / 3; background: var(--soft); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.options img { display: block; width: 100%; height: 100%; object-fit: cover; }
.options .key { font: 600 15px/1 var(--serif); margin: 8px 3px 5px; display: flex; justify-content: space-between; gap: 6px; }
.options .key .pc { color: var(--muted); font: 500 12px/1 var(--sans); }
.options .pb { display: block; height: 3px; border-radius: 2px; background: var(--soft); overflow: hidden; margin: 0 3px 3px; }
.options .pb i { display: block; height: 100%; width: var(--p, 0); background: var(--turbo); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.options li.pick { border-color: var(--turbo); box-shadow: 0 0 0 2px color-mix(in srgb, var(--turbo) 22%, transparent); }
.options li.right .key span:first-child::after { content: " ✓"; color: var(--mint); }
.verdict { font: 14px/1.5 var(--sans); min-height: 21px; margin: 4px 0 0; }
.verdict b { font: 600 19px/1 var(--serif); }
.verdict .m { color: var(--muted); }

/* boxes */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips button { border: 1px solid var(--line); background: #fff; font: 500 15px/1 var(--serif); padding: 8px 13px; }
.chips button:hover { border-color: var(--ink); }
.chips button.absent { border-style: dashed; color: var(--ink-2); }
.ask { display: flex; gap: 8px; margin: 0 0 12px; }
.ask input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: 14px/1 var(--sans); background: #fff; }
.pickmodel select { border: 1px solid var(--line); border-radius: 999px; padding: 10px 12px; font: 600 13px/1 var(--sans); background: #fff; color: var(--ink); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font: 13px/1.4 var(--sans); }
.results li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.results li .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.results li .what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results li .val { font: 600 19px/1 var(--serif); text-align: right; white-space: nowrap; }
.results li .how { grid-column: 2 / 4; color: var(--muted); font-size: 12px; }
.results li.bad .val { color: var(--muted); font-weight: 500; }

/* tracks */
.timeline { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 10px; cursor: pointer; }
.timeline i { flex: 1; background: var(--soft); border-radius: 2px 2px 0 0; height: 100%; }
.timeline i.on { background: color-mix(in srgb, var(--turbo) calc(var(--v) * 100%), var(--line)); height: calc(20% + var(--v) * 80%); }
.timeline .head { position: absolute; top: -2px; bottom: 0; width: 2px; background: var(--ink); border-radius: 1px; left: 0; }

/* text */
.letter { position: relative; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; background: var(--paper); font: 18px/1.6 var(--text); color: #2a2f38;
  box-shadow: 0 14px 34px -26px rgba(40, 50, 70, .5); }
.letter p { margin: 0 0 10px; }
.letter p:last-child { margin: 0; font-style: italic; color: var(--muted); }

/* 00: the scene reel, one scene at a time, a filter by type and a rail of thumbnails */
.reel { margin-top: 22px; }
.reel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; }
.kinds { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.kinds.over { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.kinds::-webkit-scrollbar { display: none; }
.kinds button { white-space: nowrap; }
.reel-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.reel-nav .ghost { padding: 9px 14px; min-width: 66px; }
.round { cursor: pointer; width: 38px; height: 38px; padding: 0 0 3px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 500 24px/1 var(--serif); display: inline-flex; align-items: center; justify-content: center; }
.round:hover { border-color: var(--ink); }
.count { min-width: 60px; text-align: center; font: 500 12.5px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.reel-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: min(60vh, 560px); touch-action: pan-y; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.slide { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.slide.on { opacity: 1; }
.slide picture { display: contents; }
.slide img, .slide video { display: block; max-width: 100%; max-height: 100%; object-fit: cover; padding: 6px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; box-shadow: 0 14px 34px -24px rgba(40, 50, 70, .55); }
.reel-cap { margin-top: 16px; min-height: 78px; text-align: center; }
.reel-cap .ttl { margin: 0; font: 500 clamp(20px, 2.2vw, 25px)/1.25 var(--serif); color: var(--ink); }
.reel-cap .kind { display: inline-block; margin-right: 12px; vertical-align: .25em; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--flash); }
.reel-cap .meta { margin: 5px auto 0; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; font: 12.5px/1.5 var(--sans); color: var(--muted); }
.reel-cap .nums { font-variant-numeric: tabular-nums; }
.reel-cap .src a { color: inherit; }
.reel-cap .open { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: zoom-in; text-align: inherit;
  text-decoration: underline 1px transparent; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.reel-cap .open:hover { text-decoration-color: color-mix(in srgb, var(--flash) 55%, transparent); }
.rail { position: relative; display: flex; gap: 6px; margin-top: 18px; padding: 3px 3px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail button { position: relative; flex: none; width: 64px; height: 40px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; cursor: pointer; background: var(--soft);
  opacity: .5; transition: opacity .25s; scroll-snap-align: center; }
.rail button:hover { opacity: .85; }
.rail button[aria-selected="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--ink); }
.rail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rail button[data-clip]::after { content: ""; position: absolute; right: 5px; bottom: 7px; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.rail .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--turbo); transform: scaleX(0); transform-origin: left center; }
@media (max-width: 860px) { .reel-stage { aspect-ratio: 4 / 3; } }

/* the reel's lightbox: the scene large beside its questions and answers, as on the showcase page */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.lb[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(23, 29, 40, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lb-fade .25s ease both; }
.lb-panel { position: relative; width: min(1320px, 100%); max-height: calc(100svh - 48px); display: grid; grid-template-columns: minmax(0, 1fr) 360px; background: var(--paper);
  border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); animation: lb-rise .35s cubic-bezier(.2, .8, .2, 1) both; }
.lb-media { background: #12161e; display: flex; align-items: center; justify-content: center; min-height: 260px; max-height: calc(100svh - 48px); touch-action: pan-y; }
.lb-media picture { display: contents; }
.lb-media img, .lb-media video { display: block; max-width: 100%; max-height: calc(100svh - 48px); width: auto; height: auto; object-fit: contain; }
.lb-side { padding: 22px 22px 18px; overflow-y: auto; max-height: calc(100svh - 48px); text-align: left; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 46px; }
.lb-side .tag { --c: var(--ink); display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.lb-side .tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.lb-side .tag[data-t="box"] { --c: var(--flash); }
.lb-side .tag[data-t="track"] { --c: var(--turbo); }
.lb-side .tag[data-t="choice"] { --c: var(--mint); }
.lb-side .tag[data-t="options"] { --c: #6b5ca5; }
.lb-side .tag[data-t="yesno"] { --c: #a8701b; }
.lb-side .idx { font: 500 11px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.lb-side h3 { font: 600 27px/1.12 var(--serif); margin: 10px 40px 8px 0; color: var(--ink); }
.lb-side .nums { margin: 0 0 14px; font: 13px/1.45 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.qa { list-style: none; margin: 0 0 14px; padding: 0; font: 13px/1.35 var(--sans); }
.qa li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.qa .q { color: var(--ink-2); overflow-wrap: anywhere; }
.qa .a { font: 600 16px/1.2 var(--serif); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qa .a.no, .qa .a.miss { color: var(--muted); font-weight: 500; }
.qa .a.yes { color: var(--mint); }
.qa .a .n { margin-left: .3em; }
.qa li.sub { padding: 3px 0 3px 14px; border-bottom: 0; }
.qa li.sub .q { color: var(--muted); }
.qa li.sub .a { font: 500 13px/1.2 var(--mono); }
.qa li.sub .a.yes { font-weight: 600; }
.qa li.sub .bar { height: 2px; }
.qa li:has(+ li.sub) { border-bottom: 0; }
.qa li.sub:not(:has(+ li.sub)) { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.qa .bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.qa .bar i { display: block; height: 100%; width: var(--p, 0); background: var(--c, var(--flash)); }
.qa.dense { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.qa.dense li { padding: 5px 0; }
.qa.dense .q { font-size: 12px; }
.qa.dense .a { font-size: 14px; }
.lb-side .files { font: 12.5px/1.6 var(--sans); color: var(--muted); margin: 0 0 8px; }
.lb-side .files b { color: var(--ink-2); font-weight: 600; }
.lb-side .credit { font: 12px/1.5 var(--sans); color: var(--muted); margin: 0; }
.lb-side .credit a { color: var(--ink-2); }
.lb-btn { position: absolute; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); cursor: pointer; padding: 0 0 2px;
  background: rgba(23, 29, 40, .45); color: #fff; font: 400 24px/1 var(--sans); display: grid; place-items: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lb-btn:hover { background: rgba(23, 29, 40, .7); }
.lb-close { top: 12px; right: 12px; background: var(--ink); border-color: var(--ink); font-size: 22px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 372px; top: 50%; transform: translateY(-50%); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 920px) {
  .lb { padding: 0; place-items: stretch; }
  .lb-panel { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: 100svh; height: 100svh; border-radius: 0; }
  .lb-media { max-height: 52svh; min-height: 200px; padding-top: 58px; }
  .lb-media img, .lb-media video { max-height: calc(52svh - 58px); }
  .lb-side { max-height: none; padding: 18px 16px 24px; }
  .lb-head { padding-right: 0; }
  .lb-prev, .lb-next { top: 10px; transform: none; width: 38px; height: 38px; font-size: 22px; }
  .lb-prev { left: 10px; }
  .lb-next { left: 56px; right: auto; }
  .lb-close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .lb-side h3 { font-size: 24px; margin-right: 0; }
}

/* footer */
.foot { margin-top: 64px; padding-bottom: 44px; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 24px; align-items: start; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr; } }
.foot p { margin: 0 0 10px; font: 15px/1.5 var(--text); color: var(--ink-2); }
.foot .small { font: 12.5px/1.6 var(--sans); color: var(--muted); }
.foot .ask { margin: 0; }
.foot #key-note { grid-column: 1 / -1; }
.links { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 20px; font: 500 16px/1.8 var(--serif); }

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .topbar { padding: 16px 16px 0; }
  .hero { min-height: 92svh; }
  .hero-copy { padding-bottom: 30vh; }
  .panel { padding: 14px 12px 12px; }
  .lane { grid-template-columns: 66px minmax(0, 1fr) 78px; gap: 5px 8px; }
  .options { gap: 6px; }
  .letter { padding: 16px 18px; font-size: 16.5px; }
  .embedded .topbar { flex-wrap: wrap; }
  .kinds button { padding: 8px 10px; font-size: 12.5px; }
  .reel-cap { min-height: 100px; }
  .reel.moving .reel-cap .nums { flex: 0 1 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail button { width: 56px; height: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile.in, .reading::after { animation: none; }
  .box, .lane .fill, .options .pb i, .range, .slide, .rail button, .reel-cap .open { transition: none; }
  .lb-backdrop, .lb-panel { animation: none; }
}
