/* As-Staked — field UI
   Background #0E0E0E · cards #1A1A1A · text #FFF · muted #E0E0E0 · safety orange #FF7A00 */

:root {
  --bg: #0E0E0E;
  --card: #1A1A1A;
  --ink: #FFFFFF;
  --muted: #E0E0E0;
  --orange: #FF7A00;
  --rule: #2E2E2E;
  --head: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  --scene-h: 100vh;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 800px) { body { font-size: 1.25rem; } }

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 850;
  font-stretch: 78%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
  margin: 0 0 .45em;
}
h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0; }

.o { color: var(--orange); }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 20;
  background: var(--orange); color: #000; padding: 10px 14px; font-weight: 700;
}
.skip:focus { left: 12px; }

/* ---------- Scene layers ---------- */

#scene, .shade { display: none; }

.scene #scene {
  display: block;
  position: fixed; left: 0; top: 0;
  width: 100%; height: var(--scene-h);
  z-index: 0;
  pointer-events: none;
  /* Poster while three.js loads: dusk over ground */
  background:
    linear-gradient(180deg, #0b0d12 0%, #1b1d25 42%, #3b2a24 58%, #232019 62%, #151411 100%);
}

.scene .shade {
  display: block;
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,14,14,.82) 0%, rgba(14,14,14,.5) 34%, rgba(14,14,14,0) 60%),
    linear-gradient(0deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,0) 28%);
}

main { position: relative; z-index: 1; }

.props { display: none; }
.scene .props {
  display: block;
  position: fixed; left: 0; top: 0;
  width: 100%; height: var(--scene-h);
  z-index: 0; overflow: hidden; pointer-events: none;
}
.prop { position: absolute; left: 0; top: 0; max-width: none; display: none; transform-origin: 50% 50%; will-change: transform; }
.scene-ready .prop.ok { display: block; }
.prop-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3000; pointer-events: none; }
.prop { z-index: 2500; }
.cap-fx { position: absolute; inset: 0; z-index: 3500; pointer-events: none; display: none; }
.cap-fx > div { position: absolute; left: 0; top: 0; visibility: hidden; opacity: 0; will-change: transform, opacity; }
.cap-wash { inset: 0; width: 100%; height: 100%; background: #fff; transform: none !important; visibility: visible !important; }
.cap-frame i { position: absolute; width: 30px; height: 30px; border: 0 solid var(--orange); transition: border-color .2s; }
.cap-frame.locked i { border-color: #3ddc84; }
.cap-frame i:nth-child(1) { left: 0; top: 0; border-width: 6px 0 0 6px; }
.cap-frame i:nth-child(2) { right: 0; top: 0; border-width: 6px 6px 0 0; }
.cap-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 6px 6px; }
.cap-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 6px 6px 0; }
.cap-flash { width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0, rgba(255,255,255,.85) 12%, rgba(255,240,220,.35) 34%, rgba(255,240,220,0) 70%); }
.cap-say, .cap-read, .cap-file {
  white-space: nowrap; font: 700 18px/1.2 var(--mono); color: #fff;
  background: rgba(14,14,14,.9); border: 1px solid rgba(255,255,255,.18); border-left: 4px solid var(--orange); padding: 11px 15px; border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.cap-say { display: flex; align-items: center; gap: 8px; }
.cap-mic { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,122,0,.25); }
.cap-file { border-color: var(--orange); }
.cap-file b { display: block; color: var(--orange); font-size: 19px; }
.cap-file small { display: block; color: var(--muted); font: 500 13px/1.3 var(--mono); margin-top: 4px; }
.cap-read { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.cap-wave { display: inline-flex; gap: 2px; align-items: center; height: 14px; }
.cap-wave i { width: 3px; background: var(--orange); border-radius: 1px; animation: capwave .8s ease-in-out infinite; }
.cap-wave i:nth-child(1) { height: 6px; } .cap-wave i:nth-child(2) { height: 13px; animation-delay: .15s; } .cap-wave i:nth-child(3) { height: 9px; animation-delay: .3s; }
@keyframes capwave { 50% { transform: scaleY(.45); } }
.cap-thumb { overflow: hidden; border: 3px solid #fff; border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  background: linear-gradient(180deg, #3b4a66 0, #d9a07c 36%, #8a6b52 36%, #6e5240 100%); }
.cap-thumb img { position: absolute; left: 50%; bottom: 4%; height: 92%; width: auto; max-width: none; transform: translateX(-83%); }
@media (max-width: 799.98px) { .cap-say, .cap-read, .cap-file { font-size: 12px; padding: 6px 9px; } .cap-file b { font-size: 12px; } .cap-file small { font-size: 10px; } }
.lath { position: absolute; left: 0; top: 0; display: none; will-change: transform; }
.lath img, .lath canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }

/* ---------- Top-right link ---------- */

.updates-link {
  position: fixed; top: 16px; right: 16px; z-index: 10;
  background: var(--orange); color: #000;
  font: 800 .95rem/1 var(--head); font-stretch: 85%;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 13px 16px 12px;
  text-decoration: none;
  border-radius: 2px;
}
.updates-link:hover { background: #ff8f2a; }

/* ---------- Chapters (flat baseline: normal document flow) ---------- */

.chapter {
  position: relative;
  min-height: 100vh;
  padding: 112px var(--gutter) 96px;
  display: flex;
  align-items: center;
}
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; }

.flat body {
  background:
    linear-gradient(180deg, #11131a 0, var(--bg) 900px) no-repeat,
    var(--bg);
}
.flat .chapter { min-height: 0; padding-top: 96px; padding-bottom: 96px; }
.flat .ch-hero { min-height: 92vh; }
.flat .chapter + .chapter { border-top: 1px solid var(--rule); }

.sta {
  font: 600 .78rem/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1.1rem;
}
.tag {
  display: inline-block; margin-left: .5em; padding: 3px 7px 2px;
  background: var(--orange); color: #000; letter-spacing: .08em;
}

/* ---------- 1. Hero ---------- */

.ch-hero .copy { max-width: 40rem; }
.brand { margin: 0 0 clamp(1.5rem, 4vh, 3rem); }
.wordmark { width: min(620px, 82vw); }

/* Docking wordmark: drawn over the hero wordmark, then shrinks into the top-left corner */
.dock-logo { display: none; position: fixed; left: 0; top: 0; z-index: 11; transform-origin: 0 0; will-change: transform; }
.dock-logo img { display: block; max-width: none; height: auto; }
.js-dock .dock-logo { display: block; }
.js-dock .ch-hero .wordmark { visibility: hidden; }
.wordmark-text {
  font: 900 clamp(2rem, 4vw, 3rem)/1 var(--head);
  font-stretch: 78%;
  text-transform: uppercase;
}
.tagline {
  font: 400 clamp(1.9rem, 3.6vw, 3.3rem)/1 "Kaushan Script", "Brush Script MT", "Segoe Script", cursive;
  color: #fff; margin: 0 0 .18em; transform: rotate(-3deg); transform-origin: left center;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.display {
  font-size: clamp(4.4rem, 11.5vw, 10.5rem);
  line-height: .84;
  margin: 0 0 .32em;
}
.lede {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.35;
  color: var(--muted);
  max-width: 26em;
  margin-bottom: 2rem;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.btn {
  display: inline-block;
  background: var(--orange); color: #000;
  font: 850 1.15rem/1 var(--head); font-stretch: 85%;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 20px 28px 19px;
  text-decoration: none;
  border-radius: 2px;
}
.btn:hover { background: #ff8f2a; }

.stores { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.store {
  display: inline-flex; flex-direction: column; gap: 3px;
  padding: 9px 14px;
  border: 1px dashed #5a5a5a;
  border-radius: 2px;
  color: var(--muted);
  min-width: 9.5rem;
}
.store b { font: 700 .98rem/1 var(--body); color: var(--ink); }
.store i { font: 500 .72rem/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
a.store { border-style: solid; text-decoration: none; }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 28px; margin: 0; display: none;
  font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.flat .scroll-cue { display: none; }

/* ---------- Panels (chapters 2 and 3) ---------- */

.panel {
  max-width: 35rem;
  background: var(--card);
  border-top: 4px solid var(--orange);
  padding: clamp(24px, 3vw, 40px);
}
.panel h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.panel > p { color: var(--muted); }


/* Filename */
.filename { margin: 1.8rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rule); }
.filename figcaption {
  font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .9rem;
}
.fn {
  display: flex; flex-wrap: wrap; gap: .45em .55em;
  font: 700 clamp(1.05rem, 2vw, 1.5rem)/1.1 var(--mono);
  margin: 0 0 1rem;
}
.seg { display: inline-flex; flex-direction: column; gap: 6px; }
.seg > span {
  background: #0E0E0E; border: 1px solid #333; padding: 8px 10px 7px;
  color: var(--ink);
}
.seg:nth-child(2) > span { color: var(--orange); border-color: var(--orange); }
.seg em { font-style: normal; color: var(--muted); }
.seg small {
  font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding-left: 2px;
}
.fn-meta { font: 500 .85rem/1.3 var(--mono); color: var(--muted); margin: 0; display: flex; align-items: center; gap: 10px; }
.tick {
  width: 16px; height: 16px; flex: none; background: var(--orange);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 70%);
}

/* With the scene: filename assembles as stake 104A passes */
.scene .seg, .scene .fn-meta { opacity: .18; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.scene .filename.is-live .seg, .scene .filename.is-live .fn-meta { opacity: 1; transform: none; }
.scene .filename.is-live .seg:nth-child(2) { transition-delay: .08s; }
.scene .filename.is-live .seg:nth-child(3) { transition-delay: .16s; }
.scene .filename.is-live .seg:nth-child(4) { transition-delay: .24s; }
.scene .filename.is-live .fn-meta { transition-delay: .4s; }

/* Steps */
.steps { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps p { margin: 0; }
.n { font: 700 .9rem/1.6 var(--mono); color: var(--orange); }
.steps q { quotes: "“" "”"; font-weight: 700; color: var(--ink); }
.steps q::before, .steps q::after { color: var(--orange); }
.fine { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- 4. Plans ---------- */

.ch-plans .wrap { max-width: 1100px; }
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 2.5rem;
  align-items: start;
}
.plan {
  background: var(--card);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid #262626;
  border-top: 4px solid #444;
}
.plan.pro { border-color: #3a2a1a; border-top-color: var(--orange); }
.plan header { margin-bottom: 1.4rem; }
.plan-sub { color: var(--muted); margin: .5rem 0 0; }
.ticks { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--rule); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em;
  width: 10px; height: 10px; background: var(--orange);
}
.price { margin: 0 0 1rem; color: var(--muted); }
.price .big {
  font: 850 3.4rem/1 var(--head); font-stretch: 78%;
  color: var(--ink); margin-right: .2em; vertical-align: -0.12em;
}
.price strong { color: var(--ink); }
.ladder { width: 100%; border-collapse: collapse; margin: 0 0 .8rem; font-variant-numeric: tabular-nums; }
.ladder th, .ladder td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ladder thead th { font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.ladder thead th:first-child { color: var(--orange); }
.ladder tbody th { font-weight: 600; color: var(--ink); }
.ladder td { font: 700 1.05rem/1.2 var(--mono); color: var(--ink); }
.ladder tr.best th, .ladder tr.best td { background: rgba(255,122,0,.12); }
.ladder tr.best td:last-child { color: var(--orange); }
.save { display: inline-block; margin-left: 8px; padding: 3px 6px 2px; background: var(--orange); color: #000;
  font: 800 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.ladder-note { font-size: .92rem; color: var(--muted); margin: 0 0 .6rem; }
.ladder-note strong { color: var(--orange); }
.tiers { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; padding: 0; }
.tiers li {
  font: 600 .85rem/1 var(--mono); padding: 9px 12px;
  border: 1px solid #444; color: var(--ink);
}

.stamp { margin: 0 0 1.6rem; }
.stamp-photo {
  position: relative; height: 128px;
  background:
    linear-gradient(180deg, #2c3340 0%, #4a4136 46%, #5b4c3a 47%, #4a4a33 100%);
  border: 1px solid #333;
  overflow: hidden;
}
.stamp-photo::before { /* a lath in the frame */
  content: ""; position: absolute; left: 58%; bottom: 0; width: 8px; height: 92px; background: #b89462;
}
.stamp-photo::after { /* flagging */
  content: ""; position: absolute; left: calc(58% + 6px); bottom: 70px; width: 26px; height: 6px; background: var(--orange); transform: rotate(-12deg); transform-origin: left center;
}
.stamp-text {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  font: 700 .72rem/1.2 var(--mono);
  color: #fff; background: rgba(0,0,0,.7);
  padding: 5px 7px;
}
.stamp figcaption { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- 5. Close ---------- */

.ch-close { flex-direction: column; justify-content: center; padding-bottom: 0; }
.ch-close .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; justify-content: center; }
.ch-close .wordmark { width: min(520px, 80vw); margin: 0 auto; }
.close-line { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-top: .4em; }
.close-sub { color: var(--muted); margin: 0 0 .6em; }
.mail {
  display: inline-block;
  font: 850 clamp(1.6rem, 4.6vw, 3.4rem)/1.1 var(--head); font-stretch: 80%;
  color: var(--orange); text-decoration: none;
  border-bottom: 4px solid var(--orange);
  margin: .2em 0 1.6em;
  word-break: break-word;
}
.mail:hover { color: #ff8f2a; }
.ch-close .stores { justify-content: center; }

.foot {
  position: relative; z-index: 1;
  width: 100%;
  border-top: 1px solid var(--rule);
  padding: 22px var(--gutter);
  margin-top: 0;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
  background: var(--bg);
}
.foot p { margin: 0; }
.foot a { color: var(--ink); }

/* ---------- Desktop scene layout: tall chapters, pinned copy ---------- */

@media (min-width: 800px) {
  /* Sides alternate down the page; the lath and the phone/glasses take the other side */
  .ch-line .wrap { display: flex; justify-content: flex-end; }
}

/* Pinned chapters: the copy holds still while you scroll through it; the camera moves between chapters */
@media (min-width: 800px) and (min-height: 680px) {
  .scene .pin { display: block; padding: 0 var(--gutter); min-height: 0; }
  .scene .ch-hero.pin { height: 330vh; }
  .scene .ch-line.pin, .scene .ch-pocket.pin { height: 360vh; }
  .scene .ch-record.pin { height: 250vh; }
  .scene .ch-close.pin { height: 190vh; }
  .scene .pin > .wrap {
    position: sticky; top: 0;
    height: 100vh;
    display: flex; align-items: center;
    padding: 76px 0 36px;
  }
  .scene .ch-line.pin > .wrap { justify-content: flex-end; }
  .scene .ch-close.pin > .wrap { flex-direction: column; justify-content: center; }
  /* Plans pinned too: both cards on one screen, the Pro card in two columns */
  .scene .ch-plans.pin { height: 230vh; }
  .scene .ch-plans.pin > .wrap { flex-direction: column; justify-content: center; align-items: stretch; max-width: 1180px; }
  .scene .ch-plans.pin h2 { font-size: min(clamp(2.6rem, 6.4vw, 5.6rem), 7vh); margin-bottom: 0; }
  .scene .ch-plans.pin .sta { margin-bottom: min(1.1rem, 1.4vh); }
  .scene .pin .plans { margin-top: min(2.5rem, 2.6vh); grid-template-columns: 1fr 1.9fr; align-items: stretch; }
  .scene .pin .plan { padding: min(32px, 3vh) min(32px, 2.4vw); }
  .scene .pin .plan.pro { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: min(32px, 2.4vw); align-items: start; }
  .scene .pin .plan.pro header { grid-column: 1 / -1; }
  .scene .pin .plan header { margin-bottom: min(1.4rem, 1.6vh); }
  .scene .pin .plan h3 { font-size: min(clamp(2.2rem, 4vw, 3.2rem), 5vh); }
  .scene .pin .plan .plan-sub, .scene .pin .plan .ticks li, .scene .pin .plan .price { font-size: min(1.25rem, 2.1vh); }
  .scene .pin .plan .ticks li { padding: min(10px, 1vh) 0 min(10px, 1vh) 28px; }
  .scene .pin .plan .ticks { margin-bottom: min(1.6rem, 1.8vh); }
  .scene .pin .price .big { font-size: min(3.4rem, 6vh); }
  .scene .pin .stamp { margin-bottom: min(1.6rem, 1.8vh); }
  .scene .pin .stamp-photo { height: min(128px, 10.5vh); }
  .scene .pin .plan .fine { font-size: min(.92rem, 1.8vh); }
  .scene .pin .ladder th, .scene .pin .ladder td { padding: min(7px, .8vh) 8px; font-size: min(1rem, 1.9vh); }
  .scene .pin .ladder thead th { font-size: min(.72rem, 1.4vh); }
  .scene .pin .ladder-note { font-size: min(.92rem, 1.8vh); }
  .scene .ch-hero .scroll-cue { display: block; left: 0; bottom: 24px; }
  .scene .display { font-size: min(clamp(4.4rem, 11.5vw, 10.5rem), 12vh); }
  .scene .ch-hero .lede { font-size: min(clamp(1.3rem, 2.1vw, 1.75rem), 3vh); margin-bottom: min(2rem, 3vh); }
  .scene .ch-hero .brand { margin-bottom: min(3rem, 3.5vh); }
  .scene .tagline { font-size: min(clamp(1.9rem, 3.6vw, 3.3rem), 5.2vh); }
  /* Pinned panels scale with the screen height so the whole panel always fits */
  .scene .pin .panel { max-width: 44rem; padding: min(40px, 3.6vh) min(40px, 3vw); }
  .scene .pin .panel > p, .scene .pin .panel .ticks li, .scene .pin .panel .steps p { font-size: min(1.25rem, 2.25vh); }
  .scene .pin .panel .ticks li { padding: min(10px, 1vh) 0 min(10px, 1vh) 28px; }
  .scene .pin .panel .ticks { margin-bottom: min(1.6rem, 2vh); }
  .scene .pin .panel > p { margin-bottom: min(1em, 1.6vh); }
  .scene .pin .panel .sta { margin-bottom: min(1.1rem, 1.6vh); }
  .scene .pin .filename { margin-top: min(1.8rem, 2vh); padding-top: min(1.25rem, 1.6vh); }
  .scene .pin .fn { font-size: min(clamp(1.05rem, 2vw, 1.5rem), 2.6vh); margin-bottom: min(1rem, 1.4vh); }
  .scene .pin .fine { font-size: min(.92rem, 1.8vh); }
  .scene .pin .panel > p.fine { font-size: min(.92rem, 1.8vh); margin: min(1rem, 1.4vh) 0 0; }
  .scene .pin .stamp-text { font-size: min(.72rem, 1.3vh); white-space: nowrap; }
  .scene .ch-hero .wordmark { width: min(660px, 46vw, 60vh); }
  .scene .panel h2 { font-size: min(clamp(2.4rem, 5vw, 4.4rem), 6.2vh); }
  .scene .steps li { padding: min(14px, 1.4vh) 0; }
}

/* ---------- Phones: canvas pinned to the top 40vh, copy flows below ---------- */

@media (max-width: 799.98px) {
  :root { --scene-h: 40vh; }

  .scene body { padding-top: 40vh; }
  .scene #scene, .scene .props { z-index: 2; }
  /* the last two sections get the full screen: the scene strip slides up out of the way */
  .scene #scene, .scene .props, .scene .shade { transition: transform .45s ease, opacity .45s ease; }
  .scene.scene-off #scene, .scene.scene-off .props, .scene.scene-off .shade { transform: translateY(-100%); opacity: 0; }
  .scene.scene-off body::after {
    content: ""; position: fixed; left: 0; right: 0; top: 0; height: 64px; z-index: 9; pointer-events: none;
    background: linear-gradient(180deg, rgba(14,14,14,.96) 60%, rgba(14,14,14,0));
  }
  /* while a photo sequence plays, the page holds still */
  .cap-lock, .cap-lock body { overflow: hidden; overscroll-behavior: none; touch-action: none; }
  .scene .shade {
    z-index: 2;
    inset: auto 0 auto 0; top: calc(40vh - 48px); height: 48px;
    background: linear-gradient(180deg, rgba(14,14,14,0), var(--bg));
  }

  .chapter { min-height: 0; padding: 56px var(--gutter); display: block; }
  .ch-hero { padding-top: 36px; }
  .flat .ch-hero { min-height: 0; padding-top: 88px; }
  .flat .chapter { padding-top: 64px; padding-bottom: 64px; }
  .scroll-cue { display: none; }

  .panel { max-width: none; }
  .plans { grid-template-columns: 1fr; }
  .ch-close { padding-top: 72px; }
  .foot { margin-top: 48px; }

  .updates-link { top: 12px; right: 12px; padding: 11px 13px 10px; font-size: .85rem; }
  .btn { padding: 18px 22px 17px; }
}

@media print {
  #scene, .shade, .updates-link { display: none !important; }
  body { padding: 0 !important; background: #fff; color: #000; }
}
