/* The landing: one screen, six chapters over the 3D square. */
html, body.landing { height: 100%; overflow: hidden; overscroll-behavior: none; }
.walk { position: fixed; inset: 0; overflow: hidden; }
.still, .world { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world { opacity: 0; transition: opacity 1.2s ease; }
body.drawn .world { opacity: 1; }
body.drawn .still { visibility: hidden; transition: visibility 0s 1.2s; }
.shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(9, 9, 8, .82) 0%, rgba(9, 9, 8, .5) 32%, rgba(9, 9, 8, 0) 58%),
  linear-gradient(0deg, rgba(9, 9, 8, .7) 0%, rgba(9, 9, 8, 0) 30%); }
.frame { position: absolute; inset: 18px; border: 1px solid var(--line); border-radius: 2px; pointer-events: none; }

.top { position: absolute; top: 36px; left: clamp(24px, 3.6vw, 58px); right: clamp(24px, 3.6vw, 58px); display: flex; align-items: center; justify-content: space-between; z-index: 3; }
.top .brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 30px; text-decoration: none; }
.top .brand svg { width: 32px; height: 32px; color: var(--brass); }
.top .actions { display: flex; gap: 10px; }

.rail { position: absolute; left: clamp(24px, 3.6vw, 58px); top: 150px; display: grid; gap: 4px; z-index: 3; }
.rail button { background: none; border: 0; color: var(--dim); font-size: 14px; text-align: left; padding: 5px 0 5px 28px; cursor: pointer; position: relative; transition: color .2s; }
.rail button:hover { color: var(--ink-2); }
.rail button[aria-current="step"] { color: var(--ink); font-weight: 600; }
.rail button[aria-current="step"]::before { content: ''; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--brass); }

.chapters { position: absolute; left: clamp(24px, 3.6vw, 58px); bottom: 118px; width: min(680px, calc(100vw - 48px)); z-index: 3; }
.chapter { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.chapter.back { transform: translateY(-22px); }
.chapter.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.chapter h1, .chapter h2 { font-size: clamp(48px, 6.6vw, 92px); line-height: .98; letter-spacing: -.012em; }
.chapter em { font-style: normal; color: var(--brass); }
.chapter p { margin-top: 20px; font-size: clamp(16px, 1.35vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 540px; }
.chapter .label { display: none; margin: 0 0 16px; color: var(--brass); font-weight: 600; font-size: 15px; }
.chapter .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.chapter .fine { font-size: 13px; color: var(--dim); margin-top: 22px; }
.ca { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 18px; color: var(--brass); font-weight: 600; font-size: 15px; text-decoration: none; pointer-events: none; }
.ca b { font-weight: 700; }
.ca span { color: var(--dim); font-weight: 500; }
.ca.live { pointer-events: auto; }
.ca.live span { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.clock { position: absolute; right: clamp(24px, 3.6vw, 58px); bottom: 118px; text-align: right; display: grid; gap: 2px; color: var(--dim); font-size: 13.5px; z-index: 3; transition: opacity .4s; }
.clock strong { font: 400 40px var(--display); color: var(--ink); }
.walk.last .clock { opacity: 0; }

.bottom { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 0 clamp(6px, 2.4vw, 40px); z-index: 3; }
.sound, .cue, .pager button { background: none; border: 0; color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
.sound svg { width: 18px; height: 18px; }
.sound[aria-pressed="true"] { color: var(--brass); }
.progress { height: 1px; background: var(--line); position: relative; }
.progress span { position: absolute; left: 0; top: -1px; height: 3px; background: var(--brass); width: 0; }
.cue::before { content: '↓'; color: var(--brass); }
.walk:not([data-chapter="0"]) .cue { display: none; }
.pager { display: none; gap: 18px; }
.walk:not([data-chapter="0"]) .pager { display: flex; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 14px; text-align: center; background: var(--raised); z-index: 9; }

@media (max-width: 860px) {
  .rail { display: none; }
  .chapter .label { display: block; }
  .clock { display: none; }
  .top .actions .btn:not(.solid) { display: none; }
  .chapters { bottom: 104px; }
  .chapter h1, .chapter h2 { font-size: clamp(40px, 11vw, 60px); }
  .shade { background: linear-gradient(0deg, rgba(9, 9, 8, .94) 0%, rgba(9, 9, 8, .6) 45%, rgba(9, 9, 8, .1) 75%); }
  .bottom { grid-template-columns: auto 1fr auto; }
  .cue { display: none; }
  .walk[data-chapter="0"] .pager { display: flex; }
  .walk[data-chapter="0"] .pager .prev { visibility: hidden; }
}
@media (max-width: 520px) {
  .top { top: 28px; }
  .top .brand { font-size: 26px; }
  .chapter p { font-size: 15.5px; }
  .chapter .cta .btn { flex: 1; }
}
