:root {
  --ink: #040509; --bone: #F3EBDD; --dim: #a8a197; --faint: #6d6a66; --line: rgba(243, 235, 221, .14);
  --amber: #F6B25E; --accent: #F6B25E; --glass: rgba(9, 11, 18, .62);
  --serif: "Instrument Serif", Georgia, serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --edge: 40px; --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
body[data-tone=heavy] { --accent: #EC8468; }
body[data-tone=light] { --accent: #BFD4FF; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); }
body { color: var(--bone); font: 15px/1.5 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.has-mouse #gl { cursor: none; }
[hidden] { display: none !important; }

/* Header */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 26px var(--edge); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; font: 500 13px var(--mono); letter-spacing: .28em; }
.mark { display: grid; place-items: center; width: 28px; height: 32px; border: 1px solid rgba(243, 235, 221, .55); font: 24px var(--serif); letter-spacing: 0; transform: skew(-8deg); }
.tools { display: flex; gap: 8px; align-items: center; }
.icon { height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 5, 9, .45); font: 500 11px var(--mono); letter-spacing: .08em; display: grid; place-items: center; transition: border-color .3s, background .3s; }
.icon:hover { border-color: rgba(243, 235, 221, .45); }
.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#sound .off, #sound.off .on { display: none; } #sound.off .off { display: block; }
#cc[aria-pressed=false] { color: var(--faint); text-decoration: line-through; }
.pill { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--bone); color: var(--ink); font: 600 13px var(--sans); letter-spacing: .01em; transition: transform .3s var(--ease), background .3s; }
.pill:hover { background: #fff; transform: translateY(-1px); }

/* Gate */
#gate { position: fixed; z-index: 10; left: 8vw; top: 50%; transform: translateY(-50%); max-width: 40rem; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.started #gate { opacity: 0; transform: translate(-40px, -50%); pointer-events: none; }
.eyebrow { font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #cfc4b2; display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
#gate h1 { font: 400 clamp(58px, 6.8vw, 116px)/.94 var(--serif); letter-spacing: -.025em; margin: 0; text-shadow: 0 4px 40px rgba(4, 5, 9, .8); }
h1 em, h2 em { font-style: italic; color: #F2CD96; }
.lede { font-size: 17px; line-height: 1.6; color: #c3bcb1; max-width: 31ch; margin: 26px 0 34px; text-shadow: 0 2px 20px rgba(4, 5, 9, .9); }
.cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 18px; border: 0; border-radius: 999px; padding: 18px 26px; background: var(--bone); color: var(--ink); font: 600 14px var(--sans); text-decoration: none; transition: transform .35s var(--ease), background .3s, box-shadow .4s; box-shadow: 0 0 0 0 rgba(246, 178, 94, 0); }
.btn span { font-size: 18px; line-height: 0; transition: transform .35s var(--ease); }
.btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(246, 178, 94, .45); }
.btn:hover span { transform: translateX(4px); }
.btn.ghost { background: none; color: var(--bone); padding: 18px 2px; box-shadow: none; border-bottom: 1px solid transparent; border-radius: 0; }
.btn.ghost:hover { border-bottom-color: var(--line); transform: none; }
.btn.small { padding: 12px 18px; font-size: 13px; }
.btn.wide { width: 100%; justify-content: space-between; margin-top: 22px; }
.meta { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.link { background: none; border: 0; padding: 0; color: var(--dim); font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.link:hover { color: var(--bone); }

/* Act label and film bar */
#act { position: fixed; z-index: 11; top: 92px; left: var(--edge); margin: 0; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); opacity: 0; }
#act span { color: var(--accent); margin-right: 12px; }
#act.on { animation: actIn 1.2s var(--ease) forwards; }
.panel #act { visibility: hidden; }
@keyframes actIn { from { opacity: 0; transform: translateY(8px); letter-spacing: .34em; } to { opacity: 1; transform: none; letter-spacing: .2em; } }
.bar { position: fixed; z-index: 14; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 0 var(--edge) calc(24px + var(--safe-b)); opacity: 0; transform: translateY(12px); transition: opacity 1s .6s, transform 1s .6s var(--ease); pointer-events: none; }
.started .bar { opacity: 1; transform: none; pointer-events: auto; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(4, 5, 9, .45); display: grid; place-items: center; transition: border-color .3s; }
.round:hover { border-color: rgba(243, 235, 221, .5); }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#pause .pl { display: none; } .paused #pause .p { display: none; } .paused #pause .pl { display: block; fill: currentColor; }
#segs { display: flex; gap: 6px; }
.seg { flex: 1; background: none; border: 0; padding: 14px 0 0; text-align: left; min-width: 0; }
.seg i { display: block; height: 2px; background: rgba(243, 235, 221, .14); overflow: hidden; border-radius: 2px; }
.seg b { display: block; height: 100%; background: var(--bone); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.seg span { display: block; margin-top: 10px; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .4s; }
.seg.here span, .seg:hover span { color: var(--bone); }
.seg.here b { background: var(--accent); }

/* Captions */
#caption { position: fixed; z-index: 12; left: 50%; bottom: calc(104px + var(--safe-b)); transform: translateX(-50%); width: min(54rem, calc(100% - 48px)); text-align: center; pointer-events: none; opacity: 0; transition: opacity .5s, left .8s var(--ease), width .8s var(--ease); }
#caption.on { opacity: 1; }
#caption .line { margin: 0; font: 400 clamp(27px, 1.9vw + 13px, 48px)/1.13 var(--serif); letter-spacing: -.012em; text-wrap: balance; text-shadow: 0 2px 22px rgba(4, 5, 9, .95), 0 0 2px rgba(4, 5, 9, .8); }
#caption span { opacity: .13; filter: blur(5px); transition: opacity .5s, filter .5s, color .8s, text-shadow .8s; }
#caption span.on { opacity: 1; filter: none; }
#caption span.now { color: #fff; text-shadow: 0 0 26px color-mix(in srgb, var(--accent) 60%, transparent), 0 2px 22px rgba(4, 5, 9, .95); }
.no-captions #caption, .choosing #caption, .acting #caption, .panel #caption { opacity: 0 !important; }
.card-on #caption { left: calc(50% + 200px); width: min(44rem, calc(100% - 500px)); }

/* Cursor and hints */
#cursor { position: fixed; z-index: 40; left: 0; top: 0; width: 0; height: 0; pointer-events: none; display: none; }
.has-mouse #cursor { display: block; }
#cursor::before { content: ''; position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(243, 235, 221, .6); transition: transform .35s var(--ease), background .35s, border-color .35s; }
#cursor::after { content: ''; position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--bone); }
#cursor.over::before { transform: scale(1.45); background: rgba(243, 235, 221, .08); }
#cursor.down::before { transform: scale(.72); border-color: var(--accent); }
#cursor span { position: absolute; left: 30px; top: -7px; white-space: nowrap; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .5s, transform .5s var(--ease); }
#cursor.hinting span { opacity: 1; transform: none; }
#hint { position: fixed; z-index: 13; left: 50%; top: 18%; transform: translate(-50%, 6px); margin: 0; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 5, 9, .55); font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s var(--ease); }
#hint.hinting { opacity: 1; transform: translate(-50%, 0); }

/* Choice */
#choices { position: fixed; z-index: 15; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%); width: min(1000px, calc(100% - 48px)); opacity: 0; transition: opacity .6s; }
#choices.on { opacity: 1; }
#choices:focus { outline: none; }
#choices .eyebrow { justify-content: center; color: var(--accent); margin-bottom: 16px; }
#choiceGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#choiceGrid button { text-align: left; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 10, 17, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 2px; opacity: 0; transform: translateY(14px); transition: border-color .3s, background .3s, transform .45s var(--ease); }
#choices.on #choiceGrid button { animation: rise .7s var(--ease) calc(var(--i) * 55ms) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
#choiceGrid button:hover, #choiceGrid button:focus-visible { border-color: var(--accent); background: rgba(246, 178, 94, .09); outline: none; }
#choiceGrid b { font: 500 16px var(--sans); }
#choiceGrid small { font-size: 12.5px; color: var(--dim); }
#other { margin-top: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--accent); background: rgba(8, 10, 17, .75); }
#other label, #contact label { display: block; font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
#other .row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
#other input { flex: 1; min-width: 0; font: 400 26px var(--serif); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0; outline: none; }
#other input:focus { border-color: var(--accent); }

/* Tap and hold */
#action { position: fixed; z-index: 15; left: 50%; bottom: calc(118px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transition: opacity .5s; }
#action.on { opacity: 1; }
#actionLabel { margin: 0; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
#actionBtn { --p: 0; position: relative; width: 112px; height: 112px; border-radius: 50%; border: 1px solid rgba(243, 235, 221, .35); background: rgba(8, 10, 17, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; font: 600 13px var(--sans); touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .3s var(--ease), background .3s; }
#action[data-mode=hold] #actionBtn { --p: inherit; }
#actionBtn::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 360deg), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
#actionBtn::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 1.8s var(--ease) infinite; pointer-events: none; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
#action.holding #actionBtn { transform: scale(.93); background: rgba(246, 178, 94, .16); }
#action.holding #actionBtn::after { animation-duration: .6s; }
#counter { position: fixed; z-index: 13; left: 50%; top: 17%; transform: translate(-50%, 10px); text-align: center; opacity: 0; transition: opacity .6s, transform .6s var(--ease); pointer-events: none; }
#counter.on { opacity: 1; transform: translate(-50%, 0); }
#counter strong { display: block; font: 400 clamp(64px, 8vw, 128px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 60px color-mix(in srgb, var(--accent) 40%, transparent), 0 4px 30px rgba(4, 5, 9, .9); }
#counter span { display: block; margin-top: 12px; text-shadow: 0 1px 12px rgba(4, 5, 9, 1), 0 0 3px rgba(4, 5, 9, 1); font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
#counter.final strong { color: #fff; }

/* Proof card */
#card { position: fixed; z-index: 12; left: var(--edge); top: 50%; width: min(380px, 32vw); max-height: calc(100dvh - 250px); overflow: hidden; padding: 22px 22px 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); opacity: 0; transform: translate(-24px, -50%); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
#card.on { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
#card .tag { margin: 0; font: 500 10.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
#card h3 { margin: 8px 0 16px; font: 400 30px/1.05 var(--serif); }
#card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 13.5px; color: #cfc8bd; }
#card li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 10px 2px 0; }
#card .credit { margin: 14px 0 0; font-size: 11.5px; color: var(--faint); }
#card .open { position: absolute; top: 18px; right: 18px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: 500 11px var(--mono); color: var(--dim); }
#card .open:hover { color: var(--bone); border-color: var(--bone); }
#card img, #card video { display: block; width: 100%; border-radius: 12px; object-fit: cover; background: #0b0d14; }
.io { display: grid; grid-template-columns: 0.8fr auto 1.4fr; align-items: center; gap: 10px; }
.io figure { margin: 0; } .io figcaption { margin-top: 6px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.io img { aspect-ratio: 1; } .io .arrow { color: var(--accent); font-size: 20px; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(243, 235, 221, .05); opacity: 0; transform: translateX(-10px); animation: row .6s var(--ease) calc(var(--i) * .5s + .4s) forwards; }
#card .ledger li::before { display: none; }
@keyframes row { to { opacity: 1; transform: none; } }
.ledger b { display: block; font-weight: 500; font-size: 13.5px; } .ledger small { color: var(--faint); font-size: 11px; }
.ledger em { font: normal 500 12px var(--mono); color: var(--bone); text-align: right; }
.ledger i { grid-column: 1 / -1; justify-self: start; font: normal 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(92, 141, 255, .18); color: #BFD4FF; }
.ledger i.flag { background: rgba(246, 178, 94, .18); color: var(--amber); }
.reel { position: relative; }
.reel img { aspect-ratio: 4 / 5; }
.reel.letters img { aspect-ratio: 3 / 2; }
.reel img + img { position: absolute; inset: 0; }
.reel img { animation: reel 12s infinite both; animation-delay: calc(var(--i) * 3s - 12s); }
@keyframes reel { 0%, 24% { opacity: 1; } 27%, 97% { opacity: 0; } 100% { opacity: 1; } }
.film video { aspect-ratio: 9 / 16; max-height: 44dvh; width: auto; margin: 0 auto; }

/* Contact */
#contact { position: fixed; z-index: 25; left: var(--edge); top: 50%; width: min(470px, 40vw); max-height: calc(100dvh - 150px); overflow: auto; padding: 32px 32px 26px; border-radius: 24px; border: 1px solid var(--line); background: rgba(8, 10, 17, .72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); opacity: 0; transform: translate(-24px, -50%); transition: opacity .7s var(--ease), transform .9s var(--ease); scrollbar-width: thin; }
#contact.on { opacity: 1; transform: translate(0, -50%); }
#contact h2 { margin: 0; font: 400 clamp(40px, 3.8vw, 60px)/.98 var(--serif); letter-spacing: -.02em; }
#contact .lede { font-size: 15px; margin: 16px 0 24px; max-width: 36ch; }
#contact label { margin-top: 16px; }
#contact input, #contact textarea { display: block; width: 100%; margin-top: 6px; padding: 8px 0 10px; background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 16px; outline: none; resize: none; transition: border-color .3s; }
#contact input#thing { font: 400 26px var(--serif); }
#contact input:focus, #contact textarea:focus { border-color: var(--accent); }
#contact ::placeholder { color: #5f5c59; }
#contact .alt { margin: 16px 0 0; font-size: 13px; color: var(--dim); }
#contact .alt span { color: var(--bone); }
#contact .fine { margin: 6px 0 0; font-size: 12px; color: var(--faint); }
#contact .end { display: none; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.ended #contact .end { display: flex; }
.close { position: absolute; top: 18px; right: 18px; font: 300 20px var(--sans); }

/* Dialogs */
dialog { border: 1px solid var(--line); border-radius: 22px; background: #0a0c13; color: var(--bone); padding: 26px; }
dialog::backdrop { background: rgba(2, 3, 7, .82); backdrop-filter: blur(10px); }
dialog header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
dialog h2 { margin: 0; font: 400 34px var(--serif); }
#exhibit { width: min(1100px, 94vw); max-height: 92dvh; }
#exhibitBody { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
#exhibitBody figure { margin: 0; } #exhibitBody img { width: 100%; border-radius: 12px; display: block; }
#exhibitBody figcaption { margin-top: 8px; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
#exhibitBody video { grid-column: 1 / -1; width: 100%; max-height: 72dvh; border-radius: 12px; background: #000; }
#exhibitCredit { margin: 14px 0 0; font-size: 12px; color: var(--faint); }
#transcript { width: min(620px, 94vw); max-height: 90dvh; }
#transcriptBody h3 { font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin: 26px 0 8px; }
#transcriptBody h3 span { margin-right: 8px; }
#transcriptBody p { font: 400 22px/1.3 var(--serif); margin: 0 0 10px; color: #e6ded1; }

#flash { position: fixed; inset: 0; z-index: 30; background: #fff8ec; opacity: 0; pointer-events: none; }
#failure, .no-script { position: fixed; inset: 0; z-index: 50; background: var(--ink); padding: 18vh 8vw; }
#failure h2, .no-script h2 { font: 400 56px/1 var(--serif); margin: 0 0 20px; }
#failure p, .no-script p { max-width: 42ch; color: #c3bcb1; font-size: 17px; }
.no-script a { color: var(--amber); }

/* Entrance */
.top, #gate { opacity: 0; }
.ready .top { opacity: 1; transition: opacity 1.2s .2s; }
.ready #gate:not(.gone) { opacity: 1; transition: opacity 1.4s .35s; }
.ready.started #gate { opacity: 0; transition: opacity .8s, transform 1s var(--ease); }

@media (max-width: 1100px) { :root { --edge: 28px; } .card-on #caption { left: calc(50% + 150px); width: min(40rem, calc(100% - 400px)); } }
@media (max-width: 719px), (max-aspect-ratio: 9/10) {
  :root { --edge: 18px; }
  .top { padding: 16px var(--edge); }
  .brand { font-size: 11.5px; letter-spacing: .22em; gap: 9px; } .mark { width: 23px; height: 27px; font-size: 20px; }
  .icon { height: 36px; min-width: 36px; } .pill { height: 36px; padding: 0 14px; font-size: 12px; }
  #gate { left: var(--edge); right: var(--edge); top: auto; bottom: calc(26px + var(--safe-b)); transform: none; }
  .started #gate { transform: translateY(20px); }
  #gate h1 { font-size: clamp(50px, 14.5vw, 76px); }
  .lede { font-size: 15.5px; margin: 16px 0 24px; }
  .eyebrow { margin-bottom: 14px; font-size: 10px; }
  .btn { padding: 16px 22px; }
  .meta { margin-top: 22px; gap: 6px 16px; font-size: 9.5px; }
  #act { top: 66px; font-size: 10px; }
  .bar { gap: 12px; padding-bottom: calc(14px + var(--safe-b)); }
  .round { width: 40px; height: 40px; }
  #segs { gap: 4px; }
  .seg span { display: none; } .seg.here span { display: block; position: absolute; left: 0; right: 0; bottom: calc(66px + var(--safe-b)); text-align: center; color: var(--dim); }
  #caption { bottom: calc(84px + var(--safe-b)); width: calc(100% - 32px); }
  #caption .line { font-size: clamp(24px, 6.6vw, 30px); }
  .card-on #caption { left: 50%; width: calc(100% - 32px); }
  #choices { bottom: calc(76px + var(--safe-b)); width: calc(100% - 24px); }
  #choices .eyebrow { margin-bottom: 10px; }
  #choiceGrid { grid-template-columns: 1fr 1fr; gap: 7px; }
  #choiceGrid button { padding: 11px 12px; border-radius: 12px; }
  #choiceGrid b { font-size: 14px; } #choiceGrid small { font-size: 11px; line-height: 1.3; }
  #action { bottom: calc(92px + var(--safe-b)); }
  #actionBtn { width: 96px; height: 96px; }
  #counter { top: 15%; }
  #hint { top: auto; bottom: calc(170px + var(--safe-b)); }
  #card { left: 12px; right: 12px; top: 64px; width: auto; max-height: 34dvh; padding: 14px; border-radius: 16px; transform: translateY(-10px); display: grid; grid-template-columns: 38% 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; }
  #card.on { transform: none; }
  #card .tag { grid-column: 2; font-size: 9.5px; } #card h3 { grid-column: 2; font-size: 22px; margin: 4px 0 0; }
  #card .io, #card .reel, #card .film, #card .ledger { grid-column: 1; grid-row: 1 / span 3; }
  #card ul, #card .credit { display: none; } #card .open { position: static; grid-column: 2; justify-self: start; align-self: end; margin-top: 8px; }
  #card .io { grid-template-columns: 1fr; } #card .io figure:first-child, #card .io .arrow, #card .io figcaption { display: none; }
  #card .ledger { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; } #card .ledger li:nth-child(n+3) { display: none; }
  #card .film video { max-height: 26dvh; }
  #contact { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 76dvh; border-radius: 22px 22px 0 0; padding: 24px 20px calc(20px + var(--safe-b)); transform: translateY(30px); }
  #contact.on { transform: none; }
  #contact h2 { font-size: 40px; } #contact .lede { font-size: 14px; margin: 10px 0 8px; }
  #contact input#thing { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; } }
