@font-face { font-family: "Cormorant Garamond"; src: url("vendor/fonts/cormorant-garamond/400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("vendor/fonts/cormorant-garamond/400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("vendor/fonts/cormorant-garamond/700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("vendor/fonts/ibm-plex-mono/400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("vendor/fonts/ibm-plex-mono/700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Ground: nocturnal sapphire concrete. Amber and sapphire lead; rose and violet appear only where the two meet. */
:root {
  --ground: #070b18; --ink: #edf0f6; --dim: #c3cbd9; --faint: #9aa5b8; --line: rgba(214, 222, 236, .30);
  --amber: #ff9c48; --amber-deep: #ff7d1f; --rose: #f294a8; --violet: #b39af5; --sapphire: #86abff;
  --display: "Cormorant Garamond", "Hoefler Text", serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --g: clamp(16px, 3.6vw, 64px); --bar: 60px; --foot: 60px; --wing: clamp(230px, 24.5vw, 400px); --total: 930;
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ground); scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 400 19px/1.36 var(--display); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: #0a0f1f; padding: 10px 16px; font: 700 13px/1 var(--mono); }
.skip:focus { top: 10px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 400; }
h2 { font-size: clamp(36px, 4.5vw, 70px); line-height: .94; letter-spacing: -.015em; text-wrap: balance; }
h2 em { display: block; font-style: italic; color: var(--amber); }
h3 { font-size: clamp(23px, 2.1vw, 32px); line-height: 1.04; }
.acc, .acc2, .cap, .chip, .stats, .count, .status, .fine, .legal, .dl, .links, .mark-tick, .pager, .index, .hint, .wiper label { font-family: var(--mono); }
.acc, .acc2 { font-size: clamp(11.5px, .86vw, 13px); line-height: 1.4; color: var(--dim); letter-spacing: .02em; }
.acc i, .acc2 i { font-style: normal; color: var(--faint); margin-left: 10px; }
.acc2 i { color: var(--sapphire); }
.cap { font-size: clamp(11.5px, .86vw, 13px); line-height: 1.45; color: var(--dim); font-weight: 400; }
.half, h1 .whole { background: linear-gradient(113deg, #f6f8fb 0 50%, #ffc48f 50.3%, var(--amber-deep) 55%, #c9d2e0 55.3%, #eef1f6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- controls ---------- */
.buy { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px 0 16px; text-decoration: none; white-space: nowrap; font: 700 13px/1 var(--mono); color: #190a02; background: linear-gradient(98deg, #ff8a2a, #ffb469); clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%); transition: filter .5s cubic-bezier(.45, 0, .2, 1), padding .5s cubic-bezier(.45, 0, .2, 1); }
.buy:hover { filter: brightness(1.12) saturate(1.05); }
.buy:focus-visible { outline: 2px solid #190a02; outline-offset: -5px; }
.buy.big { min-height: 50px; font-size: 15px; padding: 0 32px 0 22px; }
.wing .buy.big { padding: 0 28px 0 18px; font-size: clamp(14px, 1.2vw, 16px); } .wing .line { padding: 0 16px; }
.nb { white-space: nowrap; }
.icon span, .links .x { font: 700 16px/1 var(--mono); } .links .x { font-size: 14px; color: var(--amber); }
.pause { justify-self: start; min-height: 44px; padding: 0 14px 0 0; border: 0; background: none; font: 400 12px/1 var(--mono); color: var(--dim); text-decoration: underline var(--amber); text-underline-offset: 5px; cursor: pointer; }
.toast { position: fixed; z-index: 50; left: 50%; top: calc(var(--bar) + 10px); margin: 0; padding: 12px 18px; max-width: calc(100vw - 32px); font: 400 13px/1.3 var(--mono); color: var(--ink); background: rgba(8, 12, 26, .88); border: 1px solid var(--line); border-left: 2px solid var(--amber); opacity: 0; transform: translate(-50%, -8px); transition: opacity .4s, transform .4s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.buy.wide { width: 100%; }
.line { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; text-decoration: none; font: 400 13.5px/1 var(--mono); border: 1px solid var(--line); background: rgba(8, 13, 30, .42); transition: border-color .5s, background .5s; }
.line:hover { border-color: var(--ink); background: rgba(40, 70, 150, .34); }
[aria-disabled="true"] { cursor: default; }
.icon { text-decoration: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); border: 1px solid var(--line); background: rgba(8, 13, 30, .35); transition: border-color .5s; }
.icon:hover { border-color: var(--ink); }
.chip { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: rgba(8, 13, 30, .35); font-size: 12px; cursor: pointer; white-space: nowrap; transition: border-color .5s; }
.chip:hover, .chip.copied { border-color: var(--ink); }
.chip-k { color: var(--faint); margin-right: 4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: ew-resize; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, var(--sapphire), var(--violet) 40%, var(--rose) 62%, var(--amber)); }
input[type="range"]::-moz-range-track { height: 1px; background: linear-gradient(90deg, var(--sapphire), var(--violet) 40%, var(--rose) 62%, var(--amber)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -17px; background: linear-gradient(135deg, #ffffff, #aeb8c8 55%, #f3f5f9); clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%); }
input[type="range"]::-moz-range-thumb { width: 34px; height: 34px; border: 0; border-radius: 0; background: linear-gradient(135deg, #ffffff, #aeb8c8 55%, #f3f5f9); clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%); }

/* ---------- bar and index ---------- */
#world { display: none; }
.bar { position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: var(--bar); padding: 0 max(var(--g), env(safe-area-inset-right)) 0 max(var(--g), env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(180deg, rgba(4, 7, 17, .89), rgba(4, 7, 17, .74) 62%, rgba(4, 7, 17, 0)); }
.mark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; min-height: 44px; line-height: 44px; }
.mark-name { font-size: 25px; letter-spacing: -.01em; }
.mark-tick { font-size: 12px; color: var(--dim); }
.bar-end { display: flex; align-items: center; gap: 8px; }
.index ol { display: grid; grid-template-columns: repeat(7, 1fr); }
.index a { position: relative; display: flex; align-items: baseline; gap: 9px; min-height: 44px; padding: 13px 8px 0 0; text-decoration: none; color: var(--dim); transition: color .6s; white-space: nowrap; }
.index b { font: 400 italic 18px/1 var(--display); color: var(--faint); transition: color .6s; min-width: 1.45em; }
.index span { font-size: 11.5px; }
.index a::before { content: ""; position: absolute; left: 0; right: 10px; top: 0; height: 1px; background: linear-gradient(90deg, rgba(220, 228, 242, .55), rgba(220, 228, 242, .12)); }
.index a::after { content: ""; position: absolute; left: 0; right: 10px; top: 0; height: 1px; background: linear-gradient(90deg, var(--amber), #ffd0a0); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.65, 0, .25, 1); }
.index a:hover, .index a[aria-current] { color: var(--ink); }
.index a[aria-current] b { color: var(--amber); }
.index a[aria-current]::after { transform: scaleX(1); }

/* ---------- parts ---------- */
.slogan { font-size: clamp(20px, 1.8vw, 27px); line-height: 1.16; text-wrap: pretty; }
.lede { margin-top: 14px; color: var(--dim); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.28; font-style: italic; }
.tag { margin-top: 14px; }
.tagline { font-size: clamp(20px, 1.8vw, 27px); line-height: 1.16; font-style: italic; }
.row { display: flex; gap: 10px; }
.cta { margin-top: 18px; }
.ca-mini { display: block; width: 100%; margin-top: 12px; padding: 9px 14px 10px; min-height: 52px; text-align: left; border: 1px solid var(--line); border-left: 2px solid var(--amber); background: rgba(8, 13, 30, .46); cursor: pointer; transition: border-color .5s; }
.ca-mini:hover, .ca-mini.copied { border-color: var(--ink); }
.ca-mini .cap { display: block; color: var(--faint); font-size: 11px; }
.ca-val { display: block; font: 400 clamp(11.4px, 1.02vw, 13px)/1.35 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: grid; grid-template-columns: auto auto auto; gap: 0 14px; margin-top: 14px; font-size: 11.5px; line-height: 1.4; }
.stats dt { color: var(--faint); }
.prose { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.26; color: var(--ink); text-wrap: pretty; }
.col > .acc { margin-bottom: 12px; }
.col > h2 { margin-bottom: 18px; }
.pair { display: grid; gap: 12px; margin: 18px 0 6px; }
.pair > div { padding-left: 14px; border-left: 1px solid var(--line); }
.pair dt { font-size: 23px; line-height: 1.1; font-style: italic; }
.pair .amber { border-left: 2px solid var(--amber); } .pair .amber dt { color: var(--amber); }
.pair .blue { border-left: 2px solid var(--sapphire); } .pair .blue dt { color: var(--sapphire); }
.pair dd { font-size: 18px; line-height: 1.24; color: var(--dim); }
.wiper { margin-top: 12px; }
.wiper label { display: block; font-size: clamp(12px, .92vw, 13.5px); line-height: 1.45; color: var(--ink); }
.study-notes h3 { margin: 8px 0 8px; }
.study-notes li > p:last-child { color: var(--dim); font-size: clamp(18.5px, 1.42vw, 22px); line-height: 1.26; }
.pager { display: flex; gap: 6px; margin-top: 20px; }
.pager button { width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(8, 13, 30, .42); cursor: pointer; font-size: 13px; transition: border-color .5s, color .5s; }
.pager button[aria-current] { border-color: var(--amber); color: var(--amber); }
.console { margin-top: 4px; }
.hold { position: relative; display: block; width: 100%; min-height: 58px; padding: 0 18px; margin: 4px 0 12px; border: 1px solid var(--line); background: rgba(8, 13, 30, .5); cursor: grab; font: 400 14px/1 var(--mono); overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: border-color .5s; }
.hold:active { cursor: grabbing; }
.hold i { position: absolute; inset: 0; background: linear-gradient(98deg, rgba(140, 52, 4, .88), rgba(184, 80, 12, .88)); transform: scaleX(var(--f, 0)); transform-origin: left; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
.hold span { position: relative; }
.hold.on { border-color: var(--amber); }
.status { font-size: 13px; line-height: 1.45; min-height: 2.9em; color: var(--ink); }
.count { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--dim); }
.count b { font: 400 27px/1 var(--mono); color: var(--amber); }
.cards h3 { margin-bottom: 6px; }
.cards p { font-size: clamp(18.5px, 1.42vw, 22px); line-height: 1.26; color: var(--dim); }
.caption { margin-top: 16px; font-style: italic; color: var(--amber); }
.position { margin-top: 10px; font: 400 11.5px/1.5 var(--mono); color: var(--faint); }

/* museum label: a cast concrete tablet, platinum edge, lettering cut into it */
.label { padding: 22px 24px 18px; background: linear-gradient(160deg, rgba(20, 25, 38, .60), rgba(14, 18, 30, .70)), var(--concrete, linear-gradient(160deg, #3a4150, #1c2232)) 0 0 / 560px; }
.live .label { background: linear-gradient(165deg, rgba(12, 15, 25, .42), rgba(10, 13, 23, .56)); } /* the stele behind it is the concrete */
.label h2, .label .l-sub, .label .acc, .label .l-med, .label .cap, .label .fine { text-shadow: 0 -1px 0 rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .16); }
.label::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12px 12px, rgba(4, 6, 12, .9) 0 2.6px, rgba(220, 228, 240, .25) 2.8px 3.4px, transparent 3.6px), radial-gradient(circle at calc(100% - 12px) 12px, rgba(4, 6, 12, .9) 0 2.6px, rgba(220, 228, 240, .25) 2.8px 3.4px, transparent 3.6px), radial-gradient(circle at 12px calc(100% - 12px), rgba(4, 6, 12, .9) 0 2.6px, rgba(220, 228, 240, .25) 2.8px 3.4px, transparent 3.6px), radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), rgba(4, 6, 12, .9) 0 2.6px, rgba(220, 228, 240, .25) 2.8px 3.4px, transparent 3.6px); }
html:not(.live) .label { position: relative; }
.label > *:not(.sr) { position: relative; z-index: 1; }
.label .acc i, .label .cap, .label .l-med, .label .fine { color: #d3d9e3; }
.label .acc { display: flex; justify-content: space-between; margin-bottom: 8px; }
.label h2 { margin: 0; font-size: clamp(40px, 3.9vw, 58px); }
.l-sub { font-size: 21px; line-height: 1.15; font-style: italic; color: var(--amber); }
.l-med { margin: 8px 0 14px; font: 400 11.5px/1.5 var(--mono); color: var(--dim); }
.l-cap { margin-bottom: 6px; }
.ca { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; background: linear-gradient(180deg, rgba(4, 6, 13, .80), rgba(8, 11, 20, .62)), var(--concrete, linear-gradient(#2a3040, #2a3040)) 60px 40px / 420px; border: 1px solid rgba(0, 0, 0, .7); box-shadow: inset 0 5px 10px rgba(0, 0, 0, .85), inset 4px 0 8px rgba(0, 0, 0, .5), inset 0 -2px 1px rgba(255, 255, 255, .22), 0 1px 0 rgba(255, 255, 255, .12); cursor: pointer; }
.ca code, .ca .soon { text-shadow: 0 -1px 0 rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .18); }
.ca code { font: 400 12.5px/1.45 var(--mono); overflow-wrap: anywhere; word-break: break-all; }
.ca .soon { font: 400 13px/1.4 var(--mono); }
.ca .hint { flex: none; font-size: 11.5px; color: var(--amber); }
html[data-ca="soon"] #ca-text, html[data-ca="soon"] .ca .hint, html[data-ca="live"] .ca .soon { display: none; }
html:not([data-ca]) #ca-text, html:not([data-ca]) .ca .hint { display: none; }
.label .buy { margin: 10px 0; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(214, 222, 236, .2); border: 1px solid rgba(214, 222, 236, .2); }
.links a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 4px; font-size: 12px; text-decoration: none; background: rgba(9, 13, 26, .86); transition: background .5s; }
.links a:hover { background: rgba(34, 58, 120, .8); }
.links svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fine { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--dim); }
.talk h2 { font-size: clamp(31px, 3.25vw, 50px); margin-bottom: 12px; }
.talk :focus-visible { outline-offset: -2px; }
.live .talk { max-height: calc(100vh - var(--bar) - var(--foot) - 12px); max-height: calc(100svh - var(--bar) - var(--foot) - 12px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: rgba(214, 222, 236, .4) transparent; margin-top: calc((var(--bar) - var(--foot)) / 2); }
.take { margin-top: 14px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 44px; padding: 9px 28px 7px 0; position: relative; cursor: pointer; font-size: 20px; line-height: 1.25; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 15px; width: 13px; height: 13px; background: var(--amber); clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%); transition: transform .7s cubic-bezier(.65, 0, .25, 1); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq p { padding: 0 24px 10px 0; font-size: 17.5px; line-height: 1.26; color: var(--dim); }
.keep { display: grid; grid-template-columns: 112px 1fr; gap: 16px; margin: 14px 0 8px; align-items: center; }
.keep img { width: 100%; height: auto; }
.dl { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 18px; font-size: 11.5px; white-space: nowrap; }
.dl a { display: flex; align-items: center; min-height: 36px; text-decoration-color: var(--amber); text-underline-offset: 4px; }
@media (pointer: coarse) { .dl a { min-height: 44px; } }
.legal { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.42; color: var(--dim); display: grid; gap: 4px; }

/* ---------- calm page: reduced motion, no WebGL, or no script. Pictures in the flow, whole, with nothing over them. ---------- */
html:not(.live) body::before { content: ""; position: fixed; inset: 0; z-index: -2; background:
  linear-gradient(134deg, transparent 0 57.6%, rgba(255, 122, 28, .34) 57.8%, rgba(255, 150, 72, .46) 60.2%, rgba(255, 122, 28, .30) 62.4%, transparent 62.6%),
  linear-gradient(134deg, transparent 0 54%, rgba(120, 60, 170, .18) 57%, rgba(200, 70, 110, .16) 64%, transparent 69%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 46px),
  linear-gradient(180deg, #131c33, #0a1122 46%, #060a17); }
html.calm:not(.no-webgl) #world { display: block; position: fixed; inset: 0; z-index: -1; width: 100%; height: 100lvh; }
html:not(.live) .bar { background: rgba(6, 10, 22, .97); }
html:not(.live) footer.state { max-width: 1320px; margin: 0 auto; padding-left: var(--g); padding-right: var(--g); }
.flat-wall.lit path:first-child { fill: #b8491c; }
html:not(.live) main { padding: calc(var(--bar) + 8px) var(--g) 40px; max-width: 1320px; margin: 0 auto; }
html:not(.live) .index { max-width: 1320px; margin: calc(var(--bar) + 8px) auto 0; padding: 0 var(--g); }
html:not(.live) main { padding-top: 10px; }
html:not(.live) .state { display: grid; gap: 22px 40px; padding: 72px 0; align-items: center; }
html:not(.live) .block { max-width: 660px; padding: 22px 26px; background: rgba(6, 10, 23, .82); }
html:not(.live) .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); row-gap: 0; padding-top: 18px; min-height: calc(100vh - 170px); }
html:not(.live) .hero .plate { grid-row: 1 / 3; }
html:not(.live) .hero .wing-l { align-self: end; padding-bottom: 8px; }
html:not(.live) .hero .wing-r { align-self: start; padding-top: 8px; }
html:not(.live) .hero .half { display: none; }
/* studies: each caption beside its own picture */
html:not(.live) #studies { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 30px 34px; }
html:not(.live) #studies .block, html:not(.live) #studies .study-notes, html:not(.live) #studies .plates { display: contents; }
html:not(.live) #studies .block > .acc, html:not(.live) #studies h2 { grid-column: 1 / -1; order: 0; margin: 0; }
html:not(.live) #studies li { padding: 20px 24px; background: rgba(6, 10, 23, .82); }
html:not(.live) #studies li:nth-child(1) { order: 1; } html:not(.live) #studies figure:nth-child(1) { order: 2; }
html:not(.live) #studies li:nth-child(2) { order: 4; } html:not(.live) #studies figure:nth-child(2) { order: 3; }
html:not(.live) #studies li:nth-child(3) { order: 5; } html:not(.live) #studies figure:nth-child(3) { order: 6; }
html:not(.live) #studies li:nth-child(4) { order: 8; } html:not(.live) #studies figure:nth-child(4) { order: 7; }
html:not(.live) #studies li:nth-child(5) { order: 9; } html:not(.live) #studies figure:nth-child(5) { order: 10; }
html:not(.live) #studies li:nth-child(6) { order: 11; grid-column: 1 / -1; } html:not(.live) #studies figure:nth-child(6) { order: 12; grid-column: 1 / -1; }
html:not(.live) h1 { font-size: clamp(64px, 9vw, 132px); line-height: .84; margin-bottom: 14px; }
html:not(.live) .plate img { border: 1px solid rgba(214, 222, 236, .4); }
html:not(.live) .cards { display: grid; gap: 18px; }
html:not(.live) .pager, html:not(.live) .grip { display: none; }
html:not(.live) #dual-light { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html:not(.live) #light-slit, html:not(.live) #vault { justify-items: end; } html:not(.live) #light-slit .block, html:not(.live) #vault .block { width: min(100%, 560px); }
html:not(.live) .flat-glass canvas { display: block; width: 100%; height: auto; }
html:not(.live) #track { display: none; }

/* ---------- live stage ---------- */
.live #world { display: block; position: fixed; inset: 0; z-index: 0; width: 100%; height: 100lvh; background: linear-gradient(180deg, #0c1428, #060a17); }
.live #track { height: calc((var(--total) + 100) * 1vh); height: calc((var(--total) + 100) * 1lvh); }
.live .state { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.live .block { position: absolute; opacity: var(--o, 0); transform: translate3d(0, var(--y, 0px), 0); pointer-events: none; }
.live .state.on .block { pointer-events: auto; }
.live .flat-glass, .live .flat-wall { display: none; }
.flat-wall { display: block; width: 100%; max-height: 260px; margin-bottom: 8px; background: linear-gradient(180deg, #1a2338, #0b1226); }
.live .plate { position: absolute; left: 0; top: 0; }
.live .plate img { position: fixed; left: 0; top: 0; z-index: 4; max-width: none; transform-origin: 0 0; opacity: 0; pointer-events: none; will-change: transform; backface-visibility: hidden; }
.live .keep .plate, .live .keep .plate img { position: static; opacity: 1; max-width: 100%; }
.live:not(.ready) .hero .block { opacity: 1; pointer-events: auto; } /* the first copy is there before the building is */
.live .portrait img:not(.seated) { opacity: 1; width: min(36vw, 52vh); height: auto; left: 50%; top: 46%; transform: translate(-50%, -50%); }
.live .index { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 0 var(--g) env(safe-area-inset-bottom); background: linear-gradient(0deg, rgba(4, 7, 17, .89) 0 46%, rgba(4, 7, 17, .80) 74%, rgba(4, 7, 17, 0)); }
.live .index ol { height: var(--foot); align-items: start; }
.live .grip { position: absolute; left: 0; top: 0; width: 0; height: 0; cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.live .state.on .grip { pointer-events: auto; }
.live .veil { position: fixed; inset: 0; }
.live .col::before, .live .wing::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -60px -84px -60px calc(var(--g) * -1.1); background: linear-gradient(90deg, rgba(5, 8, 18, .84) calc(100% - 84px), rgba(5, 8, 18, 0)); -webkit-mask-image: linear-gradient(180deg, transparent, #000 70px calc(100% - 70px), transparent); mask-image: linear-gradient(180deg, transparent, #000 70px calc(100% - 70px), transparent); }
.live .col.right::before { inset: -60px calc(var(--g) * -1.1) -60px -84px; background: linear-gradient(270deg, rgba(5, 8, 18, .84) calc(100% - 84px), rgba(5, 8, 18, 0)); }
.live .label::before { display: none; }
.live .wing::before { display: none; }
.live .whole { display: none; }
.live h1 { line-height: 0; }
.live .half { display: block; font: 400 calc(var(--wing) / 1.99) / .80 var(--display); letter-spacing: -.02em; padding-bottom: .13em; margin: 0 0 .04em -.04em; }
.live .wing { width: var(--wing); top: calc(var(--bar) + 5.6vh); }
.live .wing-l { left: var(--g); } .live .wing-r { right: var(--g); }
.live .wing-r .half { text-align: left; }
.live .col { left: var(--g); top: 50%; width: clamp(300px, 34vw, 480px); --c: -50%; transform: translate3d(0, calc(-50% + var(--y, 0px)), 0); }
.live .col.right { left: auto; right: var(--g); }
.live .study-notes, .live .cards { display: grid; }
.live .study-notes li, .live .cards li { grid-area: 1 / 1; opacity: 0; transition: opacity .28s ease-in-out; pointer-events: none; }
.live .study-notes li.on, .live .cards li.on { opacity: 1; transition: opacity .6s .30s ease-in-out; }

/* phones and tall windows: the view above, the copy on the dark floor below */
@media (max-aspect-ratio: 86/100) {
  :root { --bar: 54px; --foot: 48px; }
  .live .state { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 16px calc(var(--foot) + 10px + env(safe-area-inset-bottom)); }
  .live .block, .live .col, .live .col.right { position: relative; left: auto; right: auto; top: auto; width: 100%; max-width: 560px; margin: 0 auto; transform: translate3d(0, var(--y, 0px), 0); }
  .live .col::before, .live .col.right::before, .live .wing::before { display: block; inset: -40px -16px calc((var(--foot) + 30px) * -1); background: linear-gradient(0deg, rgba(5, 8, 20, .86) 0 62%, rgba(5, 8, 20, .5) 84%, rgba(5, 8, 20, 0)); -webkit-mask-image: none; mask-image: none; }
  .live .wing-r::before, .live .col.label::before, .live .col.right.label::before { display: none; } .live .wing-l::before { bottom: -420px; }
  .live .wing { width: 100%; top: auto; left: auto; right: auto; }
  .live .half { display: none; }
  .live .whole { display: block; }
  .live h1 { font-size: clamp(58px, 19vw, 104px); line-height: .80; letter-spacing: -.02em; padding-bottom: .12em; margin-left: -.03em; }
  .slogan, .tagline { font-size: 18.5px; line-height: 1.15; } .live .slogan { font-size: clamp(16px, 4.55vw, 19px); text-wrap: wrap; }
  .live .lede { font-size: 16.5px; margin-top: 6px; } .live .tag { margin-top: 6px; }
  .live .tagline { display: none; }
  .cta { margin-top: 8px; }
  .cta .buy { flex: 1; } .live .portrait img:not(.seated) { width: 64vw; top: 27%; }
  .ca-mini { margin-top: 8px; }
  .live .stats { margin-top: 8px; }
  h2 { font-size: clamp(32px, 9.2vw, 52px); }
  .col > h2 { margin-bottom: 10px; } .col > .acc { margin-bottom: 6px; }
  .prose { font-size: 17.5px; line-height: 1.22; }
  .pair { grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 2px; }
  .pair dd { font-size: 15.5px; line-height: 1.2; } .pair dt { font-size: 19px; }
  .wiper { margin-top: 6px; }
  .study-notes li > p:last-child, .cards p { font-size: 17.5px; }
  .pager { margin-top: 12px; justify-content: space-between; }
  .pager button { flex: 1; max-width: 56px; }
  .live .label { padding: 14px 16px 12px; }
  .label h2 { font-size: 34px; } .l-sub { font-size: 18px; } .l-med { margin: 4px 0 8px; }
  .label .buy { margin: 8px 0; min-height: 48px; }
  .index ol { gap: 0; }
  .index a { justify-content: center; padding: 14px 0 0; }
  .live .index span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .index a::before, .index a::after { right: 4px; left: 4px; }
  .live #small-talk { gap: 10px; }
  .faq summary { min-height: 44px; font-size: 18.5px; padding: 9px 26px 6px 0; } .faq summary::after { top: 15px; }
  .faq p { font-size: 16.5px; padding-bottom: 10px; }
  .keep { grid-template-columns: 92px 1fr; gap: 12px; margin: 8px 0 2px; }
  .live .wiper .cap { display: none; }
  .legal { margin-top: 4px; padding-top: 6px; font-size: 11px; line-height: 1.4; }
  .dl a { min-height: 44px; }
  html:not(.live) .hero, html:not(.live) #dual-light, html:not(.live) #studies { grid-template-columns: minmax(0, 1fr); }
  html:not(.live) .state { padding: 52px 0; } html:not(.live) .hero { padding-top: 8px; min-height: 0; } html:not(.live) .block { padding: 18px 18px; }
  html:not(.live) .hero .plate { grid-row: auto; margin-bottom: 14px; }
  html:not(.live) #studies li:nth-child(2) { order: 3; } html:not(.live) #studies figure:nth-child(2) { order: 4; }
  html:not(.live) #studies li:nth-child(4) { order: 7; } html:not(.live) #studies figure:nth-child(4) { order: 8; }
  html:not(.live) #studies { row-gap: 14px; } html:not(.live) #studies figure { margin-bottom: 22px; }
  html:not(.live) .index span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 520px) {
  .bar { padding: 0 10px; gap: 6px; } .bar-end { gap: 6px; }
  .mark { gap: 0; } .mark-name { display: none; } .mark-tick { color: var(--ink); font-weight: 700; }
  .chip { padding: 0 8px; } html[data-ca="live"] .chip-k { display: none; }
  .buy { padding: 0 20px 0 12px; }
}
@media (max-aspect-ratio: 86/100) and (max-height: 720px) {
  .live .lede, .live .stats, .live .l-med, .live .wiper .cap, .live .pair dd { display: none; }
  .live .tag { margin-top: 4px; }
  .live h1 { font-size: 60px; }
  .live .pair { margin: 8px 0 0; }
  .live .label .fine { font-size: 11.5px; line-height: 1.34; margin-top: 6px; }
  .live .label h2 { font-size: 28px; }
  .live .ca { min-height: 48px; }
  .live .links a { min-height: 44px; }
  .live .keep { grid-template-columns: 1fr; } .live .keep .plate { display: none; }
}
html:not(.live) .index { background: rgba(6, 10, 23, .82); position: relative; }
html:not(.live) #studies .block > .acc, html:not(.live) #studies h2 { justify-self: start; padding: 8px 24px; background: rgba(6, 10, 23, .82); }
.lost main { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 520px); gap: 48px; align-items: center; justify-content: center; min-height: 100vh; }
.lost-arch { width: 100%; height: auto; max-height: 78vh; }
.lost h1 { font-size: clamp(48px, 7vw, 104px); line-height: .9; margin: 10px 0 14px; }
.lost .legal { margin-top: 28px; }
@media (max-width: 720px) { .lost main { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; } .lost-arch { max-height: 42vh; } }
/* short, wide windows (phones on their side) */
@media (min-aspect-ratio: 86/100) and (max-height: 560px) {
  :root { --bar: 50px; --foot: 42px; --wing: clamp(190px, 25vw, 300px); }
  .live .wing { top: calc(var(--bar) + 6px); }
  .live .half { font-size: calc(var(--wing) / 2.7); margin-bottom: 0; }
  .slogan, .tagline { font-size: 16px; line-height: 1.12; } .live .lede, .live .stats, .live .ca-mini, .live .pair, .live .wiper .cap, .live .position, .live .l-med, .live .caption { display: none; }
  .cta { margin-top: 8px; } .buy.big, .line { min-height: 44px; font-size: 13px; padding: 0 16px 0 12px; }
  .live .col { width: clamp(260px, 40vw, 420px); max-height: calc(100svh - var(--bar) - var(--foot) - 6px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(214, 222, 236, .4) transparent; }
  h2 { font-size: 28px; } .col > h2 { margin-bottom: 8px; } .col > .acc { margin-bottom: 4px; }
  .prose, .cards p, .study-notes li > p:last-child { font-size: 16px; } .pager { margin-top: 8px; }
  .live .label { padding: 10px 14px; } .label h2 { font-size: 26px; } .ca { min-height: 46px; }
  .live .index a { padding-top: 8px; min-height: 40px; }
  .live .keep { grid-template-columns: 1fr; } .live .keep .plate { display: none; }
}
@media (max-aspect-ratio: 86/100) and (max-height: 720px) {
  .live .talk .acc, .live .legal p + p { display: none; } /* the same lines stand under the token panel and in the answers */
  .live .faq summary { min-height: 44px; padding: 9px 26px 5px 0; font-size: 18px; } .live .faq summary::after { top: 15px; }
  .live .keep { margin: 6px 0 0; } .live .legal { margin-top: 0; }
}
@media (min-aspect-ratio: 86/100) and (max-width: 1180px) { .index a { gap: 6px; } .index span { font-size: 11px; } .index b { font-size: 16px; } }
@media (min-aspect-ratio: 86/100) and (max-height: 640px) { .live .lede { display: none; } }
/* laptop windows with little height */
@media (min-aspect-ratio: 86/100) and (min-height: 561px) and (max-height: 690px) {
  .live h2 { font-size: clamp(31px, 3.3vw, 46px); } .live .label h2 { font-size: 38px; }
  .live .wiper .cap, .live .l-med, .live .keep .plate, .live .stats { display: none; } .live .keep { grid-template-columns: 1fr; margin: 8px 0 2px; }
  .live .label { padding: 14px 18px 12px; } .live .ca { min-height: 48px; } .col > h2 { margin-bottom: 12px; } .pair { margin: 12px 0 4px; gap: 8px; }
  .prose { font-size: 18px; } .pair dd { font-size: 16.5px; }
}
/* large screens read from further away */
@media (min-width: 1700px) and (min-height: 820px) {
  .slogan, .tagline { font-size: 30px; } .lede { font-size: 22.5px; } .prose { font-size: 25px; } .pair dd { font-size: 21px; } .pair dt { font-size: 27px; }
  .acc, .acc2, .cap, .stats, .wiper label { font-size: 14px; } .ca-val, .ca .soon, .ca code { font-size: 15px; } .index span { font-size: 13.5px; } .index b { font-size: 21px; }
  .study-notes li > p:last-child, .cards p { font-size: 24px; } .status { font-size: 15px; } .links a { font-size: 14px; } .fine, .legal { font-size: 13.5px; } .l-sub { font-size: 25px; } .l-med { font-size: 13.5px; }
  .faq summary { font-size: 24px; } .faq p { font-size: 20.5px; } .dl { font-size: 13.5px; } .live .col { width: 560px; } .count { font-size: 14px; } .buy { font-size: 14.5px; }
}
/* very wide windows: a soft shade keeps the hero copy readable where the panes run out */
@media (min-aspect-ratio: 17/10) { .live .wing::before { display: block; inset: -22px -26px; background: radial-gradient(closest-side, rgba(5, 8, 18, .62) 70%, rgba(5, 8, 18, 0)); -webkit-mask-image: none; mask-image: none; } }
/* short landscape under 760px: numerals only */
@media (min-aspect-ratio: 86/100) and (max-width: 760px) { .live .index span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .live .index a { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; } }
