/* TIERCEL landing — THE STOOP. One descent: scroll = altitude. Field-guide plates anchored to the falcon in 3D.
   Tokens come from /shared/base.css. "Descent mode" = .js:not(.static); .static (reduced motion / no WebGL) and no-JS
   get the plates as plain sections over the key art. */

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: var(--r-sm); background: var(--gold); color: #1a1205; font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; transition: top .2s; }
.skip-link:focus { top: 12px; }
html { scroll-behavior: auto; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 12px; }
.btn-ghost { background: transparent; }
.hood-red { color: #e0574c; }
code { font: 500 .9em var(--f-mono); color: var(--gold-2); background: rgba(217, 180, 106, .08); border: 1px solid rgba(217, 180, 106, .18); padding: .05em .4em; border-radius: 6px; }
.is-gated, .is-gated body { overflow: hidden; }
.is-gated #nav, .is-gated .nav-drawer, .is-gated .alt { opacity: 0; visibility: hidden; }
#nav, .alt { transition: opacity 1s ease .4s, visibility 0s, background .3s, border-color .3s; }
.tc-audio[aria-pressed='true'] { color: var(--gold-2); border-color: rgba(217, 180, 106, .5); }

/* ── backdrop layers ───────────────────────────────────── */
.poster, #gl, .shade, .grain, .flash { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.poster { z-index: -4; background: radial-gradient(ellipse 80% 70% at 66% 38%, #17110c 0%, #0a0807 55%, #050404 100%); transition: opacity 1.4s ease; }
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 40%; max-width: none; opacity: 0; transition: opacity 1s; }
.poster-img.ok { opacity: 1; }
.poster::after { content: ''; position: absolute; inset: 0; background: rgba(5, 4, 4, var(--poster-dim, 0)); transition: background .6s; }
#gl { z-index: -3; opacity: 0; transition: opacity 1.6s ease; display: block; }
.gl-ready #gl { opacity: 1; }
.gl-ready .poster { opacity: 0; }
.shade { z-index: -2; background: radial-gradient(ellipse 120% 95% at 55% 45%, transparent 55%, rgba(3, 2, 2, .5) 100%); }
.shade::before, .shade::after { content: ''; position: absolute; inset: 0; transition: opacity 1s ease; }
.shade::before { background: linear-gradient(90deg, rgba(5, 4, 4, .82) 0%, rgba(5, 4, 4, .5) 30%, rgba(5, 4, 4, 0) 52%); opacity: var(--shadeL, 1); }
.shade::after { background: linear-gradient(270deg, rgba(5, 4, 4, .82) 0%, rgba(5, 4, 4, .5) 30%, rgba(5, 4, 4, 0) 52%); opacity: var(--shadeR, 0); }
.grain { z-index: -1; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.flash { z-index: 70; opacity: 0; background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 252, 240, .96) 0%, rgba(240, 213, 149, .55) 26%, rgba(240, 213, 149, 0) 70%); }
.flash.go { animation: flash 1s cubic-bezier(.2, .6, .3, 1); }
@keyframes flash { 0% { opacity: 0; } 6% { opacity: 1; } 100% { opacity: 0; } }

/* ── gate: Remove the hood ────────────────────────────── */
.gate { position: fixed; inset: 0; z-index: 120; display: grid; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: opacity 1.3s ease; }
.no-gate .gate { display: none; }
.gate-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 44% 52% at 50% 40%, rgba(5, 4, 4, 0) 0%, rgba(5, 4, 4, .55) 58%, rgba(5, 4, 4, .96) 100%); transition: opacity 1.4s; }
.gate-brand { position: absolute; left: var(--gutter); top: 22px; margin: 0; display: flex; align-items: center; gap: 10px; font: 600 24px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); opacity: .9; }
.gate-mark svg { width: 28px; height: 28px; }
.gate-alt { position: absolute; left: var(--gutter); bottom: 26px; margin: 0; font-size: 10px; letter-spacing: .2em; color: rgba(154, 146, 132, .7); }
.gate-inner { position: absolute; left: 0; right: 0; bottom: max(5vh, 28px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; transition: opacity .7s ease, transform .9s ease; }
.gate-title { margin: 0 0 22px; font: 500 clamp(40px, 6vw, 78px)/1 var(--f-display); letter-spacing: -.01em; color: var(--text); text-shadow: 0 4px 40px rgba(0, 0, 0, .8); }
.gate-title em { color: var(--gold); font-style: italic; }
.hold { position: relative; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(217, 180, 106, .1), rgba(0, 0, 0, .35) 70%); touch-action: none; transition: transform .3s; }
.hold svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hold:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 8px; border-radius: 50%; }
.hold-track { fill: none; stroke: rgba(217, 180, 106, .2); stroke-width: 1; }
.hold-ticks { fill: none; stroke: rgba(217, 180, 106, .35); stroke-width: 3; stroke-dasharray: .6 7.6; }
.hold-ring { fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 60px 60px; filter: drop-shadow(0 0 6px rgba(240, 213, 149, .8)); }
.hold-label { position: relative; font: 600 10px/1 var(--f-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); padding-left: .26em; }
.hold.pressing { transform: scale(.96); }
.hold.full .hold-ring { animation: hold-pulse .45s ease-in-out infinite alternate; }
@keyframes hold-pulse { to { filter: drop-shadow(0 0 16px rgba(255, 226, 160, 1)); } }
.hold::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(217, 180, 106, .18); animation: hold-breathe 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes hold-breathe { 50% { transform: scale(1.08); opacity: .3; } }
.gate-hint { margin: 18px 0 0; max-width: 44ch; font-size: 13px; color: #b3aa98; }
.gate-skip { margin-top: 10px; padding: 8px 10px; border: 0; background: none; color: var(--muted); font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(154, 146, 132, .4); }
.gate-skip:hover { color: var(--text); }
.gate-load { position: absolute; right: var(--gutter); top: 28px; margin: 0; font: 500 10px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(154, 146, 132, .7); }
.gl-ready .gate-load { opacity: 0; transition: opacity .6s; }
.gate.lifting .gate-inner { opacity: 0; transform: translateY(12px); pointer-events: none; }
.gate.lifting .gate-brand, .gate.lifting .gate-load, .gate.lifting .gate-alt { opacity: 0; transition: opacity .6s; }
.gate.open { opacity: 0; pointer-events: none; }
.gate.open .gate-vignette { opacity: 0; }
.gate.gone { display: none; }

/* ── field-guide type ─────────────────────────────────── */
.plate-head { margin: 0; display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(217, 180, 106, .28); font: 500 10px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; }
.pl-n { color: var(--gold); }
.pl-t { color: var(--text); }
.pl-alt { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.latin { margin: 10px 0 0; font: italic 500 17px/1.3 var(--f-display); color: #b8ad99; }
.measure { margin: 22px 0 0; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.plate .h2 { font-size: clamp(40px, 4.4vw, 66px); margin-top: 16px; text-wrap: balance; }
.plate .lead { margin: 18px 0 0; font-size: 15.5px; line-height: 1.62; }

/* ── the descent (desktop) ────────────────────────────── */
.track { display: none; }
.js:not(.static) .track { display: block; height: var(--track-h, 600vh); }
.js:not(.static) .plates { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.js:not(.static) .plate {
  position: absolute; top: 0; width: min(430px, 34vw); padding: 22px 24px 24px;
  background: linear-gradient(180deg, rgba(12, 10, 8, .72), rgba(9, 8, 7, .62));
  border: 1px solid rgba(217, 180, 106, .14); border-radius: 2px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: var(--o, 0); transform: translate3d(0, var(--py, 20vh), 0); will-change: transform, opacity;
}
.js:not(.static) .plate.on { pointer-events: auto; }
.js:not(.static) .plate-l { left: calc(var(--gutter) + 6px); }
.js:not(.static) .plate-r { right: calc(var(--gutter) + 132px); }
.js:not(.static) .plate-hero { width: min(560px, 44vw); background: linear-gradient(180deg, rgba(12, 10, 8, .5), rgba(9, 8, 7, .35)); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
/* specimen-plate corner ticks */
.plate::before, .plate::after { content: ''; position: absolute; width: 12px; height: 12px; border: 0 solid var(--gold); opacity: .7; pointer-events: none; }
.plate::before { left: -1px; top: -1px; border-left-width: 1px; border-top-width: 1px; }
.plate::after { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }
.plate-hero::before, .plate-hero::after { display: none; }
.hero-title { font-size: clamp(42px, 5vw, 82px); margin: 16px 0 0; text-wrap: balance; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.hero-title span, .hero-title em { display: block; }
.hero-title em { font-weight: 500; margin-top: .06em; }
#hero-title:focus { outline: none; }
.launch { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.launch-when { margin: 0; display: grid; gap: 7px; }
.launch-when .mono { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.launch-when b { font: 500 15px/1.2 var(--f-body); color: var(--text); }
.countdown .cell { min-width: 52px; padding: 8px 4px 7px; background: rgba(9, 8, 7, .55); }
.countdown b { font-size: 26px; }
.hero-ca { margin-top: 14px; max-width: 560px; }

/* entrance after the hood comes off */
.plate-hero > * { transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.js:not(.entered) .plate-hero > * { opacity: 0; transform: translateY(16px); }
.entered .plate-hero > :nth-child(2) { transition-delay: .1s; } .entered .plate-hero > :nth-child(3) { transition-delay: .2s; }
.entered .plate-hero > :nth-child(4) { transition-delay: .32s; } .entered .plate-hero > :nth-child(5) { transition-delay: .44s; }
.entered .plate-hero > :nth-child(6) { transition-delay: .54s; } .entered .plate-hero > :nth-child(7) { transition-delay: .62s; } .entered .plate-hero > :nth-child(8) { transition-delay: .9s; }

/* Pl. II */
.perils { list-style: none; margin: 22px 0 0; padding: 0; }
.perils li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font: 500 21px/1.2 var(--f-display); }
.perils li:last-child { border-bottom: 1px solid var(--line); }
.perils .mono { font-size: 10px; letter-spacing: .14em; color: var(--gold-deep); }
.coda { margin: 18px 0 0; font: italic 500 22px/1.25 var(--f-display); color: #d8cfbf; }

/* Pl. III — the clause list is the accessible/mobile twin of the 3D callouts */
.clauses { list-style: none; margin: 22px 0 0; padding: 0; }
.clauses li { display: grid; grid-template-columns: 36px 1fr; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.clauses li:last-child { border-bottom: 1px solid var(--line); }
.cl-n { font-size: 10px; letter-spacing: .1em; color: var(--gold-deep); padding-top: 6px; }
.clauses b { font: 600 21px/1.1 var(--f-display); }
.clauses p { margin: 4px 0 0; font-size: 14px; color: #c3bbab; }
.clauses small { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .06em; color: var(--gold-deep); }
.clauses small:empty { display: none; }
.js:not(.static):not(.mobile) .clauses { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.oneline { margin-top: 20px; padding: 16px 0 0; border-top: 1px solid rgba(217, 180, 106, .22); }
.oneline p { margin: 0; font-size: 14.5px; }
.oneline p + p { margin-top: 10px; font-size: 13.5px; }

/* Pl. IV */
.steps { list-style: none; margin: 20px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: #c3bbab; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps b { font: 600 10.5px/1.9 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.quarry { margin-top: 18px; }
.quarry-k { margin: 0 0 8px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.quarry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.quarry-list li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font: 500 11px/1.2 var(--f-mono); min-width: 0; }
.quarry-list .sym { color: var(--text); letter-spacing: .06em; min-width: 40px; }
.quarry-list .px { color: var(--muted); margin-left: auto; }
.quarry-list .ch { min-width: 52px; text-align: right; }
.quarry-list .gyr { grid-column: 1 / -1; color: #eef2f5; }
.quarry-list .gyr em { font: italic 500 14px/1 var(--f-display); color: var(--muted); }

/* Pl. V */
.refusal-line { margin: 16px 0 0; font-size: 14px; color: #c3bbab; }
.refusal-line b { color: #e0574c; font-weight: 500; }
.refusal-line .dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--hood); box-shadow: 0 0 10px var(--hood); transform: translateY(-1px); }
.tally { display: flex; gap: 30px; margin: 22px 0 0; }
.tally div { display: grid; gap: 6px; }
.tally dt { font: 500 9.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tally dd { margin: 0; font: 600 34px/1 var(--f-display); color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* ── the printed ticket ───────────────────────────────── */
.ticket { position: relative; z-index: 6; width: min(340px, calc(100vw - 32px)); padding: 26px 22px 20px; color: #1a1510; font: 500 12px/1.5 var(--f-mono);
  background: linear-gradient(180deg, #f6efdf, #ece2cb);
  -webkit-mask: radial-gradient(circle 5px at 8px 0, transparent 98%, #000) -8px 0 / 16px 100% repeat-x; mask: radial-gradient(circle 5px at 8px 0, transparent 98%, #000) -8px 0 / 16px 100% repeat-x;
  filter: drop-shadow(0 -18px 40px rgba(0, 0, 0, .5)); }
.js:not(.static) .ticket { position: fixed; right: calc(var(--gutter) + 132px); bottom: 0; transform: translateY(calc(100% + 30px)); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.js:not(.static) .ticket.up { transform: none; }
.ticket-k { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: #6c5f4a; }
.ticket-empty { margin: 0; font: italic 500 20px/1.3 var(--f-display); }
.ticket .verb { margin: 2px 0 6px; font: 600 34px/1 var(--f-display); }
.ticket.refused .verb { color: var(--hood); }
.ticket .kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed rgba(26, 21, 16, .2); }
.ticket .kv span:first-child { color: #6c5f4a; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
.ticket .kv a { text-decoration: underline; text-underline-offset: 3px; }
.ticket .why { margin: 10px 0 0; font: italic 500 17px/1.3 var(--f-display); }
.ticket .note { margin: 8px 0 0; font-size: 10px; color: #6c5f4a; }
.ticket .stamp { float: right; margin: -4px 0 0 10px; width: 58px; height: 58px; border-radius: 50%; border: 2px solid #a8842f; display: grid; place-items: center; text-align: center; font: 600 9px/1.2 var(--f-mono); letter-spacing: .1em; color: #a8842f; transform: rotate(-14deg); opacity: .85; }
.ticket.refused .stamp { border-color: var(--hood); color: var(--hood); }

/* ── field-guide callouts (drawn by main.js) ──────────── */
.callouts { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.static .callouts { display: none; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders line { stroke: rgba(217, 180, 106, .62); stroke-width: .75; }
.leaders circle { fill: none; stroke: rgba(240, 213, 149, .9); stroke-width: .9; }
.leaders circle.dot { fill: var(--gold-2); stroke: none; }
.co { position: absolute; left: 0; top: 0; max-width: 220px; padding: 2px 0; opacity: 0; transition: opacity .35s; will-change: transform, opacity; pointer-events: auto; }
.co b { display: block; font: 500 9.5px/1.3 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.co small { display: block; margin-top: 3px; font: italic 500 15px/1.25 var(--f-display); color: #d8cfbf; }
.co.r { text-align: left; } .co.l { text-align: right; }
.co.hot b { color: #fff4d6; }

/* ── the altimeter (desktop: right rail) ──────────────── */
.alt { position: fixed; z-index: 40; right: 14px; top: calc(var(--nav-h) + 18px); bottom: 22px; width: 118px; text-align: right; font-family: var(--f-mono); }
.static .alt { display: none; }
.alt-read p { margin: 0; }
.alt-row { display: flex; justify-content: flex-end; align-items: baseline; gap: 5px; }
.alt-k { font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.alt-row b { font: 400 27px/1 var(--f-mono); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.alt-row-s { margin-top: 8px !important; }
.alt-row-s b { font-size: 15px; color: var(--gold-2); }
.alt-u { font-size: 9.5px; color: var(--muted); }
.alt-pl { margin-top: 10px !important; white-space: nowrap; direction: rtl; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.alt-gauge, .alt-stops { position: absolute; top: 132px; bottom: 6px; right: 0; }
.alt-gauge { width: 18px; background: repeating-linear-gradient(180deg, rgba(239, 232, 218, .22) 0 1px, transparent 1px 9px) right top / 7px 100% no-repeat, repeating-linear-gradient(180deg, rgba(239, 232, 218, .35) 0 1px, transparent 1px 45px) right top / 13px 100% no-repeat; }
.alt-gauge::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: rgba(239, 232, 218, .2); }
.alt-fill { position: absolute; right: 0; top: 0; width: 1px; height: calc((1 - var(--alt, 1)) * 100%); background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.alt-mark { position: absolute; right: 0; top: calc((1 - var(--alt, 1)) * 100%); width: 18px; height: 1px; background: var(--gold-2); box-shadow: 0 0 10px var(--gold); }
.alt-mark::before { content: ''; position: absolute; right: 20px; top: -4px; border: 4px solid transparent; border-right-color: var(--gold-2); border-left-width: 0; transform: scaleX(1.2); }
.alt-stops { list-style: none; margin: 0; padding: 0; left: 0; }
.alt-stops li { position: absolute; right: 26px; top: calc((1 - var(--a)) * 100%); transform: translateY(-50%); }
.alt-stops button { display: grid; justify-items: end; gap: 3px; padding: 4px 0 4px 8px; border: 0; background: none; text-align: right; color: var(--muted); white-space: nowrap; }
.alt-stops .m { font: 500 10px/1 var(--f-mono); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.alt-stops .n { font: 500 8.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateX(4px); transition: opacity .25s, transform .25s; }
.alt-stops button:hover, .alt-stops button:focus-visible, .alt-stops .cur button { color: var(--gold-2); }
.alt-stops button:hover .n, .alt-stops button:focus-visible .n, .alt-stops .cur .n { opacity: 1; transform: none; }
.alt.away { opacity: 0; pointer-events: none; }

/* ── Pl. VI · the mews: specimen gallery ──────────────── */
.mews { position: relative; z-index: 6; padding: 22vh 0 10vh; background: linear-gradient(180deg, rgba(9, 8, 7, 0) 0%, rgba(9, 8, 7, .78) 30%, var(--ink) 70%); }
.mews-head { max-width: 640px; }
.mews .h2 { margin-top: 16px; }
.mews .lead { margin-top: 18px; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; }
.gallery-hint { margin: 0; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav .icon-btn { font: 500 14px/1 var(--f-mono); }
.gallery { list-style: none; margin: 18px 0 0; padding: 6px var(--gutter) 26px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.gallery:focus-visible { outline-offset: -2px; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.dragging * { pointer-events: none; }
.specimen { flex: 0 0 clamp(282px, 29vw, 372px); scroll-snap-align: start; }
.specimen article { position: relative; height: 100%; display: flex; flex-direction: column; padding: 18px 18px 20px; background: linear-gradient(180deg, rgba(26, 23, 19, .9), rgba(13, 11, 9, .96)); border: 1px solid var(--line); border-radius: 2px; }
.specimen article::before, .specimen article::after { content: ''; position: absolute; width: 12px; height: 12px; border: 0 solid var(--c); opacity: .8; }
.specimen article::before { left: -1px; top: -1px; border-left-width: 1px; border-top-width: 1px; }
.specimen article::after { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }
.sp-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sp-fig { margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(239, 232, 218, .1); background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--c) 16%, #120f0c), #0a0807 70%); }
.sp-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.sp-fig figcaption { position: absolute; left: 10px; bottom: 8px; font: 500 9px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(239, 232, 218, .75); text-shadow: 0 1px 6px #000; }
.sp-latin { margin: 16px 0 0; font: italic 500 26px/1 var(--f-display); color: var(--c); }
.specimen h3 { margin: 6px 0 0; display: flex; align-items: baseline; gap: 10px; font: 600 20px/1 var(--f-display); }
.specimen h3 span { font: 500 9.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sp-line { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: #c3bbab; }
.sp-data { margin: auto 0 0; padding-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.sp-data div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); min-width: 0; }
.sp-data .wide { grid-column: 1 / -1; }
.sp-data dt { font: 500 9px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sp-data dd { margin: 0; font: 500 11.5px/1.3 var(--f-mono); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-link { margin-top: 14px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.sp-link:hover { color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 600 9px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.live { color: var(--up); } .badge.sim { color: var(--amber); } .badge.idle { color: var(--muted); } .badge.hooded { color: #e0574c; }
.mews .row-btns { margin-top: 8px; }

/* ── $TIERCEL ─────────────────────────────────────────── */
.token { position: relative; z-index: 6; padding: 14vh 0 0; background: var(--ink); }
.token .h2 { margin-top: 16px; }
.uses { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.uses li { padding: 24px 24px 6px 0; }
.uses li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.use-n { font-size: 11px; letter-spacing: .1em; color: var(--gold-deep); }
.uses h3 { margin: 12px 0 0; font: 600 28px/1.05 var(--f-display); }
.uses h3 small { margin-left: 8px; vertical-align: middle; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 8px; }
.uses p { margin: 10px 0 0; font-size: 14.5px; color: #c3bbab; }
.uses p b { color: var(--gold-2); font-weight: 500; }
.uses .later h3, .uses .later p { color: var(--muted); }
.honest { margin: 28px 0 0; max-width: 80ch; font-size: 13px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-2); }
.launch-block { margin-top: 42px; padding: 28px; border: 1px solid rgba(217, 180, 106, .2); border-radius: 2px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 28px; }
.launch-block [data-ca] { grid-column: 1 / -1; }
.launch-block .launch-when b { font: 600 26px/1.1 var(--f-display); color: var(--gold-2); }
.launch-block [data-countdown] { justify-self: end; }
.faq { margin-top: 42px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 500 clamp(19px, 1.8vw, 23px)/1.2 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 18px/1 var(--f-mono); color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; max-width: 64ch; font-size: 14.5px; color: #c3bbab; }
.faq-more { display: inline-block; margin-top: 18px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.faq-more:hover { color: var(--gold-2); }
.coda-big { margin: 0; padding: 22vh var(--gutter) 12vh; text-align: center; font-size: clamp(46px, 8.6vw, 148px); text-wrap: balance; }
.coda-big em { display: block; font-weight: 500; }
.foot { position: relative; z-index: 6; background: var(--ink); margin-top: 0; }
.nojs { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10; padding: 14px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line-2); font-size: 14px; }
.nojs a { color: var(--gold); text-decoration: underline; }

/* ── mobile descent: plates flow in the page at their stop (no nested scrolling); the 3D stays fixed behind ── */
.js:not(.static).mobile .descent { position: relative; }
.js:not(.static).mobile .plates { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.js:not(.static).mobile .plate { position: absolute; left: 0; right: 0; top: var(--top, 0); width: auto; transform: none; opacity: 1; pointer-events: auto;
  padding: 44px var(--gutter) 30px; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(180deg, rgba(9, 8, 7, 0) 0, rgba(9, 8, 7, .84) 56px, rgba(9, 8, 7, .94) 100%); }
.js:not(.static).mobile .plate-hero { padding-top: 70px; }

/* ── static path: reduced motion, no WebGL, no JS ─────── */
.static .poster::after, html:not(.js) .poster::after { background: rgba(5, 4, 4, .55); }
.static .plates, html:not(.js) .plates { position: relative; z-index: 5; padding: calc(var(--nav-h) + 8vh) 0 4vh; }
.static .plate, html:not(.js) .plate { position: relative; width: min(640px, calc(100% - 2 * var(--gutter))); margin: 0 auto 16vh var(--gutter); padding: 24px; background: rgba(9, 8, 7, .78); border: 1px solid rgba(217, 180, 106, .14); }
.static .plate-r, html:not(.js) .plate-r { margin-left: auto; margin-right: var(--gutter); }
.static .plate-hero, html:not(.js) .plate-hero { background: rgba(9, 8, 7, .55); min-height: 70vh; display: flex; flex-direction: column; justify-content: flex-end; }
.static .ticket, html:not(.js) .ticket { margin: -10vh 0 16vh var(--gutter); }
.static .measure { display: none; }
.static .mews { background: var(--ink); padding-top: 12vh; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .js:not(.static) .plate { width: min(400px, 40vw); }
  .js:not(.static) .plate-hero { width: min(520px, 52vw); }
}
@media (max-width: 900px) {
  .uses { grid-template-columns: 1fr; border-top: 0; }
  .uses li, .uses li + li { padding: 22px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .launch-block { grid-template-columns: 1fr; }
  .launch-block [data-countdown] { justify-self: start; }
}
@media (max-width: 720px) {
  /* compact altimeter: a bar under the nav */
  .alt { left: 0; right: 0; top: var(--nav-h); bottom: auto; width: auto; height: 40px; padding: 0 var(--gutter); display: flex; align-items: center; background: rgba(9, 8, 7, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); text-align: left; }
  .alt-read { display: flex; align-items: center; gap: 14px; width: 100%; }
  .alt-row b { font-size: 17px; }
  .alt-row-s { margin: 0 !important; } .alt-row-s b { font-size: 12px; }
  .alt-pl { margin: 0 0 0 auto !important; font-size: 8.5px; }
  .alt-gauge { top: auto; bottom: -1px; left: 0; right: 0; height: 2px; width: auto; background: rgba(239, 232, 218, .12); }
  .alt-gauge::after { display: none; }
  .alt-fill { top: 0; left: 0; right: auto; height: 2px; width: calc((1 - var(--alt, 1)) * 100%); }
  .alt-mark { top: -3px; left: calc((1 - var(--alt, 1)) * 100%); right: auto; width: 1px; height: 8px; }
  .alt-mark::before { display: none; }
  .alt-stops { top: auto; bottom: -12px; left: var(--gutter); right: var(--gutter); height: 24px; }
  .alt-stops li { top: 50%; right: auto; left: calc((1 - var(--a)) * 100%); transform: translate(-50%, -50%); }
  .alt-stops button { width: 28px; height: 24px; padding: 0; display: grid; place-items: center; }
  .alt-stops button::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .alt-stops .m, .alt-stops .n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plate::before, .plate::after { display: none; }
  .js:not(.static) .ticket { left: 16px; right: 16px; width: auto; }
  .hero-title { font-size: clamp(38px, 11vw, 56px); }
  .plate .h2 { font-size: clamp(36px, 10vw, 52px); }
  .js:not(.static) .plate .lead { font-size: 14.5px; }
  .shade::before, .shade::after { opacity: 0 !important; }
  .shade { background: linear-gradient(to top, rgba(5, 4, 4, .7) 0%, rgba(5, 4, 4, .2) 50%, rgba(5, 4, 4, .3) 100%); }
  .quarry-list { grid-template-columns: 1fr; }
  .tally { gap: 22px; } .tally dd { font-size: 28px; }
  .launch-block { padding: 20px 16px; }
  .countdown .cell { min-width: 46px; } .countdown b { font-size: 22px; }
  .gate-title { margin-bottom: 18px; }
  .gate-inner { bottom: max(4vh, 22px); }
  .gate-alt { display: none; }
  .specimen { flex-basis: 82vw; }
  .gallery-nav { display: none; }
  .co small { font-size: 13px; } .co { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .hold::after { animation: none; }
}
