@font-face { font-family: 'Michroma'; src: url('../fonts/michroma.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('../fonts/publicsans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --black: #020202; --panel: #1C1815; --line: #3A3028;
  --marble: #F2EBE1; --stone: #B5A698; --gold: #D4A373; --gold-l: #F3D9B1; --gold-d: #9A6A42;
  --steel: #9DB0BD; --go: #6FA8DC; --marg: #E3A857; --nogo: #B9C4C8;
  --n: 6;
  --len: 175vh;                                  /* scroll length of one chapter */
  --u: min(1vw, 1.72vh);                         /* fluid unit that also respects short screens */
  --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --pad: clamp(18px, 5vw, 96px);
  --pl: calc(var(--pad) + var(--sl)); --pr: calc(var(--pad) + var(--sr));
  --rail: 58px;                                  /* room kept clear for the chapter rail */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); color: var(--marble); scrollbar-width: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html::-webkit-scrollbar { display: none; }
body { background: var(--black); font-family: 'Public Sans', system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
.mono { font-family: 'Plex Mono', ui-monospace, monospace; letter-spacing: 0.14em; font-size: 11px; font-weight: 500; text-transform: uppercase; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--gold-l); outline-offset: 4px; border-radius: 2px; }

#gl { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; display: block; }
#scroll { height: calc(var(--n) * var(--len)); position: relative; }

/* ---- loader ---- */
#loader { position: fixed; inset: 0; z-index: 60; background: var(--black); display: grid; place-content: center; justify-items: center; gap: 28px; transition: opacity 1.1s ease 0.15s, visibility 0s 1.3s; }
#loader .ld-mark { width: 92px; animation: breathe 1.6s ease-in-out infinite; }
#loader p { font: 500 10px 'Plex Mono', monospace; letter-spacing: 0.5em; color: var(--stone); padding-left: 0.5em; min-width: 22ch; text-align: center; }
.ready #loader { opacity: 0; visibility: hidden; }
@keyframes breathe { 50% { opacity: 0.35; transform: scale(0.97); } }

/* ---- chrome ---- */
#top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(clamp(14px, 2.2vw, 30px) + var(--st)) var(--pr) 0 var(--pl); pointer-events: none; opacity: 0; transition: opacity 1.4s ease 1.6s; }
.started #top, .started #rail, .started .bracket, .started #next { opacity: 1; }
#top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--marble); min-height: 44px; transition: opacity 0.6s 0.3s; }
.brand-mark { width: 34px; display: block; flex: none; }
.brand-mark svg, .ld-mark svg { display: block; width: 100%; height: auto; }
.brand-name { font: 400 13px 'Michroma', sans-serif; letter-spacing: 0.42em; }
body[data-ch="0"] .brand { opacity: 0; pointer-events: none; transition: opacity 0.6s; }
.menu-open .brand { opacity: 1 !important; pointer-events: auto !important; }
.status { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); color: var(--stone); }
.status b { color: var(--gold); font-weight: 500; }
.status .name { color: var(--marble); min-width: 15ch; }
.pill { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 2px; color: var(--stone); background: rgba(2, 2, 2, 0.35); display: inline-flex; align-items: center; gap: 10px; transition: border-color 0.3s, color 0.3s, background 0.3s; }
.pill:hover, .pill[aria-pressed="true"], .pill[aria-expanded="true"] { border-color: var(--gold); color: var(--marble); }
#menu-btn .shut, .menu-open #menu-btn .open { display: none; }
.menu-open #menu-btn .shut { display: inline; }
#menu-btn i { width: 14px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform 0.4s var(--ease), height 0.4s var(--ease); }
.menu-open #menu-btn i { height: 0; border-bottom-color: transparent; transform: rotate(180deg); }

#rail { position: fixed; z-index: 20; right: calc(var(--pr) - 6px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; opacity: 0; transition: opacity 1.4s ease 1.8s; }
#rail button { position: relative; width: 34px; height: 34px; display: block; }
#rail button::before { content: ''; position: absolute; right: 6px; top: 50%; height: 1px; width: 10px; background: var(--stone); opacity: 0.55; transition: width 0.45s var(--ease), background 0.4s, opacity 0.4s; }
#rail button.on::before, #rail button:hover::before, #rail button:focus-visible::before { width: 24px; background: var(--gold); opacity: 1; }
#rail button span { position: absolute; right: 44px; top: 50%; white-space: nowrap; font: 500 10px 'Plex Mono', monospace; letter-spacing: 0.2em; text-transform: uppercase; color: var(--marble); opacity: 0; transform: translate(8px, -50%); transition: opacity 0.3s, transform 0.3s var(--ease); pointer-events: none; padding: 6px 10px; background: rgba(2, 2, 2, 0.6); }
#rail button:hover span, #rail button:focus-visible span { opacity: 1; transform: translate(0, -50%); }
#progress { position: absolute; right: -8px; top: 8px; bottom: 8px; width: 1px; background: rgba(181, 166, 152, 0.18); }
#progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); will-change: transform; }

#next { position: fixed; z-index: 20; right: calc(var(--pr) - 6px); bottom: calc(clamp(18px, 3.4vh, 34px) + var(--sb)); width: 46px; height: 46px; border: 1px solid rgba(212, 163, 115, 0.4); border-radius: 50%; display: grid; place-items: center; background: rgba(2, 2, 2, 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 1.4s ease 2s, border-color 0.3s, transform 0.3s var(--ease); }
#next i { width: 9px; height: 9px; border-right: 1px solid var(--gold-l); border-bottom: 1px solid var(--gold-l); transform: translateY(-2px) rotate(45deg); transition: transform 0.5s var(--ease); }
#next[data-end="true"] i { transform: translateY(2px) rotate(-135deg); }
#next:hover { border-color: var(--gold-l); transform: scale(1.06); }
#next:active { transform: scale(0.94); }
.menu-open #next, .menu-open #rail { opacity: 0 !important; pointer-events: none; }

.bracket { position: fixed; z-index: 15; width: 14px; height: 14px; border: 0 solid rgba(212, 163, 115, 0.55); opacity: 0; transition: opacity 1.4s ease 2s; pointer-events: none; }
.bracket.tl { top: calc(10px + var(--st)); left: calc(10px + var(--sl)); border-top-width: 1px; border-left-width: 1px; }
.bracket.tr { top: calc(10px + var(--st)); right: calc(10px + var(--sr)); border-top-width: 1px; border-right-width: 1px; }
.bracket.bl { bottom: calc(10px + var(--sb)); left: calc(10px + var(--sl)); border-bottom-width: 1px; border-left-width: 1px; }
.bracket.br { bottom: calc(10px + var(--sb)); right: calc(10px + var(--sr)); border-bottom-width: 1px; border-right-width: 1px; }

#cursor { position: fixed; z-index: 70; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(243, 217, 177, 0.5); border-radius: 50%; pointer-events: none; mix-blend-mode: screen; transform: translate3d(-100px, -100px, 0); will-change: transform; }
@media (hover: none), (pointer: coarse) { #cursor { display: none; } }

/* ---- menu ---- */
#menu { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 5vh, 56px); padding: calc(84px + var(--st)) var(--pr) calc(28px + var(--sb)) var(--pl); background: rgba(2, 2, 2, 0.84); backdrop-filter: blur(18px) saturate(0.7); -webkit-backdrop-filter: blur(18px) saturate(0.7); opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s 0.5s; overflow-y: auto; overscroll-behavior: contain; }
.menu-open #menu { opacity: 1; visibility: visible; transition: opacity 0.5s ease; }
.menu-open { overflow: hidden; }
#menu nav { display: grid; gap: clamp(2px, 0.9vh, 10px); max-width: 900px; }
#menu nav a { display: flex; align-items: baseline; gap: clamp(14px, 2.4vw, 34px); padding: clamp(7px, 1.25vh, 14px) 0; text-decoration: none; color: var(--stone); border-bottom: 1px solid rgba(58, 48, 40, 0.7); opacity: 0; transform: translateY(18px); transition: color 0.3s, opacity 0.5s var(--ease), transform 0.6s var(--ease), padding-left 0.4s var(--ease); }
#menu nav a span { font: 400 clamp(19px, calc(var(--u) * 3.3), 50px)/1.15 'Michroma', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
#menu nav a i { font-style: normal; color: var(--gold-d); min-width: 2.4em; }
#menu nav a:hover, #menu nav a:focus-visible, #menu nav a.on { color: var(--marble); }
#menu nav a:hover, #menu nav a:focus-visible { padding-left: 14px; }
#menu nav a.on i { color: var(--gold-l); }
.menu-open #menu nav a { opacity: 1; transform: none; }
.menu-open #menu nav a:nth-child(2) { transition-delay: 0s, 0.05s, 0.05s, 0s; } .menu-open #menu nav a:nth-child(3) { transition-delay: 0s, 0.1s, 0.1s, 0s; }
.menu-open #menu nav a:nth-child(4) { transition-delay: 0s, 0.15s, 0.15s, 0s; } .menu-open #menu nav a:nth-child(5) { transition-delay: 0s, 0.2s, 0.2s, 0s; }
.menu-open #menu nav a:nth-child(6) { transition-delay: 0s, 0.25s, 0.25s, 0s; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(16px, 3vw, 40px); color: var(--stone); font-size: 10px; }
.menu-foot .gold { color: var(--gold); letter-spacing: 0.3em; margin-left: auto; }
@media (hover: none), (pointer: coarse) { .menu-foot .keys { display: none; } }

/* ---- copy ---- */
.beat { position: fixed; z-index: 10; opacity: 0; pointer-events: none; --o: 0; max-width: min(620px, calc(100vw - var(--pl) - var(--pr) - var(--rail))); will-change: opacity, transform; }
.beat.on { pointer-events: auto; }
.beat::before { content: ''; position: absolute; z-index: -1; inset: -90px -130px; background: radial-gradient(closest-side, rgba(2, 2, 2, 0.74), rgba(2, 2, 2, 0)); pointer-events: none; }
@media (min-aspect-ratio: 85/100) {
  .beat.dense::before { inset: -120px -200px -120px -160px; background: radial-gradient(closest-side, rgba(2, 2, 2, 0.9), rgba(2, 2, 2, 0.55) 60%, rgba(2, 2, 2, 0)); }
}
@media (max-aspect-ratio: 85/100) {
  .beat.dense::before { background: linear-gradient(transparent, rgba(2, 2, 2, 0.78) 30%, rgba(2, 2, 2, 0.9)); }
}
.beat.left { left: var(--pl); top: 50%; transform: translate3d(0, calc(-50% + (1 - var(--o)) * 26px), 0); }
.beat.right { right: calc(var(--pr) + var(--rail)); top: 50%; transform: translate3d(0, calc(-50% + (1 - var(--o)) * 26px), 0); }
.beat.low { top: auto; bottom: calc(clamp(40px, 11vh, 130px) + var(--sb)); transform: translate3d(0, calc((1 - var(--o)) * 26px), 0); }
.beat.centre { left: 50%; text-align: center; transform: translate3d(-50%, calc((1 - var(--o)) * 26px), 0); }

.eyebrow { color: var(--gold); font-size: clamp(10px, calc(var(--u) * 0.85), 13px); letter-spacing: 0.34em; margin-bottom: clamp(12px, calc(var(--u) * 1.5), 24px); }
h2 { font: 400 clamp(21px, calc(var(--u) * 3.05), 52px)/1.22 'Michroma', sans-serif; letter-spacing: 0.01em; color: var(--marble); text-wrap: balance; }
h2.sm { font-size: clamp(17px, calc(var(--u) * 2.1), 34px); line-height: 1.35; }
.lead { margin-top: clamp(12px, calc(var(--u) * 1.6), 26px); font-size: clamp(14.5px, calc(var(--u) * 1.22), 20px); line-height: 1.6; color: var(--stone); max-width: 44ch; text-wrap: pretty; }
.k { color: var(--stone); }
.dim { opacity: 0.6; font-size: 9px; }

/* hero */
.beat.hero { left: 0; right: 0; max-width: none; padding: 0 var(--pr) 0 var(--pl); bottom: calc(clamp(34px, 9vh, 110px) + var(--sb)); text-align: center; transform: translate3d(0, calc((1 - var(--o)) * 30px), 0); }
.beat.hero::before { display: none; }
.beat.hero h1 { scale: calc(0.94 + var(--o) * 0.06); letter-spacing: calc(0.16em + (1 - var(--o)) * 0.12em); }
h1 { font: 400 min(clamp(30px, calc(var(--u) * 8.6), 136px), calc((100vw - var(--pl) - var(--pr)) / 7.5))/1 'Michroma', sans-serif; letter-spacing: 0.16em; padding-left: 0.16em; color: var(--marble); text-shadow: 0 0 60px rgba(212, 163, 115, 0.25); }
.sub { margin-top: clamp(10px, calc(var(--u) * 1.6), 26px); font: 400 clamp(9px, calc(var(--u) * 1.25), 19px) 'Michroma', sans-serif; letter-spacing: 0.62em; padding-left: 0.62em; color: var(--gold); }
.tagline { margin-top: clamp(12px, calc(var(--u) * 2.2), 32px); font: 500 clamp(8.5px, calc(var(--u) * 0.95), 13px)/1.7 'Plex Mono', monospace; letter-spacing: 0.3em; padding-left: 0.3em; text-transform: uppercase; color: var(--stone); text-wrap: balance; }
.enter { margin-top: clamp(14px, 4vh, 52px); min-height: 44px; color: var(--stone); display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.4em; padding-left: 0.4em; transition: color 0.3s; }
.enter:hover { color: var(--marble); }
.enter i { width: 1px; height: clamp(18px, 4.4vh, 38px); background: linear-gradient(var(--gold), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.started .beat.hero h1, .started .beat.hero .sub, .started .beat.hero .tagline, .started .beat.hero .enter { animation: rise 1.6s var(--ease) both; }
.started .beat.hero h1 { animation-delay: 1.5s; } .started .beat.hero .sub { animation-delay: 1.9s; } .started .beat.hero .tagline { animation-delay: 2.3s; } .started .beat.hero .enter { animation-delay: 2.9s; }
html:not(.started) .beat.hero > * { opacity: 0; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

/* edge card */
.beat.card { right: calc(var(--pr) + var(--rail)); top: calc(clamp(78px, 14vh, 150px) + var(--st)); min-width: 216px; padding: 18px 20px 14px; border: 1px solid rgba(212, 163, 115, 0.32); border-left: 2px solid var(--gold); background: rgba(8, 7, 6, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translate3d(calc((1 - var(--o)) * 20px), 0, 0); }
.beat.card::before { display: none; }
.state { margin: 10px 0 14px; font-size: 22px; letter-spacing: 0.16em; color: var(--go); transition: color 0.4s; }
.state[data-s="DECIDED"] { color: var(--gold-l); }
.card dl { display: grid; gap: 7px; margin-bottom: 14px; }
.card dl div { display: flex; justify-content: space-between; gap: 24px; color: var(--stone); }
.card dd { color: var(--marble); font-variant-numeric: tabular-nums; }

/* sight tags */
.tag3d { position: fixed; z-index: 9; left: 0; top: 0; opacity: 0; transition: opacity 0.35s; pointer-events: none; will-change: transform; }
.tag3d i, .tag3d b { position: absolute; left: 46px; white-space: nowrap; font-style: normal; }
.tag3d i { top: -34px; color: var(--stone); font-size: 9px; }
.tag3d b { top: -22px; color: var(--gold-l); font-size: 14px; letter-spacing: 0.1em; font-weight: 500; font-variant-numeric: tabular-nums; }
.tag3d::before { content: ''; position: absolute; left: 0; top: 0; width: 40px; height: 1px; background: var(--gold); transform-origin: left; transform: rotate(-28deg); opacity: 0.8; }
.tag3d::after { content: ''; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border: 1px solid var(--gold-l); border-radius: 50%; }
.tag3d.cue b { color: var(--marble); padding: 5px 9px; border: 1px solid var(--gold); top: -26px; background: rgba(8, 7, 6, 0.6); font-size: 11px; }
.tag3d.cue i { top: -44px; color: var(--gold); }

/* forge */
.count { font: 400 clamp(46px, calc(var(--u) * 8.5), 132px)/1 'Michroma', sans-serif; color: var(--gold); margin: 8px 0 clamp(8px, calc(var(--u) * 1.4), 18px) -0.04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 50px rgba(212, 163, 115, 0.35); }

/* close */
.beat.close { left: 0; right: 0; max-width: none; padding: 0 var(--pr) 0 var(--pl); bottom: calc(clamp(22px, 5.5vh, 64px) + var(--sb)); text-align: center; transform: translate3d(0, calc((1 - var(--o)) * 30px), 0); }
.beat.close::before { inset: -110px 0 -100px; background: linear-gradient(transparent, rgba(2, 2, 2, 0.9) 34%); }
.creed { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px clamp(14px, 3vw, 46px); color: var(--marble); font-size: clamp(9px, calc(var(--u) * 0.85), 11px); margin: 0 0 clamp(12px, 3.2vh, 36px); }
.creed li::before { content: '◆'; color: var(--gold); margin-right: 10px; font-size: 7px; vertical-align: 2px; }
.wordmark { font: 400 min(clamp(24px, calc(var(--u) * 4.4), 66px), calc((100vw - var(--pl) - var(--pr)) / 8))/1 'Michroma', sans-serif; letter-spacing: 0.2em; padding-left: 0.2em; }
.cta { margin-top: clamp(16px, 3.4vh, 38px); min-height: 48px; padding: 0 26px 0 calc(26px + 0.34em); display: inline-flex; align-items: center; gap: 14px; color: var(--marble); text-decoration: none; letter-spacing: 0.34em; border: 1px solid var(--gold); border-radius: 2px; background: linear-gradient(90deg, rgba(212, 163, 115, 0.16), rgba(212, 163, 115, 0.04)); box-shadow: 0 0 40px rgba(212, 163, 115, 0.12); transition: background 0.35s, box-shadow 0.35s, color 0.35s; }
.cta i { width: 7px; height: 7px; border-top: 1px solid var(--gold-l); border-right: 1px solid var(--gold-l); transform: rotate(45deg); transition: transform 0.35s var(--ease); }
.cta:hover, .cta:focus-visible { background: rgba(212, 163, 115, 0.26); box-shadow: 0 0 60px rgba(212, 163, 115, 0.28); }
.cta:hover i { transform: translateX(4px) rotate(45deg); }
.contact { margin-top: clamp(10px, 1.8vh, 18px); color: var(--gold); letter-spacing: 0.34em; font-size: 10px; opacity: 0.8; }
.menu-foot a.gold { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.menu-foot a.gold:hover { color: var(--gold-l); }
.fine { margin-top: clamp(8px, 1.6vh, 14px); color: var(--stone); opacity: 0.6; font-size: 9px; }

/* ---- wide desktop ---- */
@media (min-width: 1700px) {
  .mono { font-size: 12px; }
  .brand-mark { width: 40px; } .brand-name { font-size: 14px; }
  .beat { max-width: min(720px, 42vw); }
}

/* ---- tablet and small laptop, landscape ---- */
@media (max-width: 1180px) {
  :root { --rail: 50px; }
  .status .name { display: none; }
}

/* ---- portrait: tablets and phones. Copy moves to the bottom, the picture gets the top. ---- */
@media (max-aspect-ratio: 85/100) {
  :root { --u: min(1.72vw, 1.26vh); --rail: 0px; }
  .beat.left, .beat.right { left: var(--pl); right: auto; top: auto; bottom: calc(clamp(84px, 11vh, 150px) + var(--sb)); transform: translate3d(0, calc((1 - var(--o)) * 26px), 0); max-width: min(640px, calc(100vw - var(--pl) - var(--pr))); }
  .beat.low { bottom: calc(clamp(84px, 11vh, 150px) + var(--sb)); }
  .beat.centre { width: calc(100vw - var(--pl) - var(--pr)); }
  .beat::before { inset: -70px -60px -160px; background: linear-gradient(transparent, rgba(2, 2, 2, 0.66) 34%, rgba(2, 2, 2, 0.8)); }
  .beat.card { right: var(--pr); top: calc(74px + var(--st)); }
  .beat.close { bottom: calc(clamp(84px, 9vh, 120px) + var(--sb)); }
  #rail { right: calc(var(--sr) + 2px); }
  #rail button { width: 30px; height: 30px; }
  #rail button::before { right: 4px; width: 7px; }
  #rail button.on::before { width: 16px; }
  #rail button span, #progress { display: none; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  :root { --len: 155vh; --u: min(2.05vw, 1.1vh); }
  .status .snd { display: none; }
  .brand-name { display: none; }
  .pill { min-height: 44px; }
  .beat.card { min-width: 158px; padding: 11px 13px 9px; }
  .beat.card .dim { display: none; }
  .card dl { margin-bottom: 4px; gap: 5px; }
  .state { font-size: 17px; margin: 6px 0 9px; }
  .tag3d.cue { display: none; }
  .tag3d b { font-size: 13px; }
  .creed { gap: 6px 14px; }
  #rail { display: none; }
  .menu-foot .gold { margin-left: 0; width: 100%; }
}

/* ---- short landscape: phones on their side ---- */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  :root { --u: min(1vw, 2.1vh); --rail: 44px; --len: 190vh; }
  #top { padding-top: calc(8px + var(--st)); }
  #rail button { width: 26px; height: 26px; }
  .beat { max-width: min(46vw, 520px); }
  .beat.low { bottom: calc(22px + var(--sb)); }
  .beat.card { top: calc(58px + var(--st)); min-width: 170px; padding: 10px 13px 8px; }
  .beat.card .dim { display: none; } .card dl { margin-bottom: 4px; gap: 4px; } .state { font-size: 16px; margin: 4px 0 8px; }
  .beat.hero { bottom: calc(14px + var(--sb)); }
  h1 { font-size: clamp(30px, 13vh, 64px); }
  .enter { margin-top: 6px; flex-direction: row; }
  .enter i { display: none; }
  .beat.close { bottom: calc(10px + var(--sb)); }
  .creed { margin-bottom: 8px; } .cta { margin-top: 8px; min-height: 40px; } .contact { display: none; } .fine { margin-top: 4px; }
  #menu { justify-content: flex-start; padding-top: calc(62px + var(--st)); }
  #menu nav { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  #next { width: 40px; height: 40px; bottom: calc(10px + var(--sb)); }
  .tag3d.cue { display: none; }
}

/* ---- no WebGL ---- */
.nogl #gl, .nogl #rail, .nogl #cursor, .nogl #next { display: none; }
.nogl #scroll { height: auto; padding: 120px var(--pr) 80px var(--pl); display: grid; gap: 90px; background: radial-gradient(1200px 700px at 50% -10%, rgba(212, 163, 115, 0.16), transparent 70%); }
.nogl .beat { position: static; opacity: 1 !important; transform: none !important; max-width: 640px; pointer-events: auto; }
.nogl .beat.card, .nogl .tag3d, .nogl .enter { display: none; }
.nogl .beat.hero > * { opacity: 1 !important; }
.nogl #top, .nogl .bracket { opacity: 1; }
.noscript { position: fixed; inset: auto 0 0 0; padding: 20px; text-align: center; color: var(--stone); z-index: 80; }

@media (prefers-reduced-motion: reduce) {
  .enter i, #loader .ld-mark { animation: none; }
  #menu nav a { transition: color 0.3s; transform: none; }
}

/* label above the forge counter */
.beat.low > .k { color: var(--gold); letter-spacing: 0.3em; }
