/* Thesis's site (/thesis): a fixed 3D scene behind the page, copy over it. The reader at /thesis/app has its own (verdict-app.css). */
:root {
  --bg: #0b0d0a;
  --panel: #12150f;
  --raise: #191d15;
  --line: rgba(232, 212, 154, .14);
  --line-strong: rgba(232, 212, 154, .3);
  --ink: #f1ede1;
  --dim: #b3b09d;
  --faint: #7c7d6b;
  --gold: #e8d49a;
  --gold-deep: #c8a75a;
  --red: #ff7a6b;
  --amber: #f2bb4a;
  --green: #7ad49b;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: max(20px, env(safe-area-inset-left));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; color: var(--gold); }
code { font-family: var(--mono); font-size: .9em; }
.narrow-only { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* The scene sits behind everything; it dims while a text-heavy band is on screen. A phone gives it a band of its own at the top (below). */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; transition: opacity .9s ease; }
body.rest #scene { opacity: .2; }
html.no-gl #scene, html.no-gl #labels, html.no-gl #gesture { display: none !important; }
/* Turning the picture by hand. */
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
#gesture { display: none; }
html.no-gl body { background: radial-gradient(1200px 600px at 75% 0%, rgba(232, 212, 154, .09), transparent 60%), var(--bg); }

#labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; transition: opacity .5s ease; }
body.rest #labels { opacity: 0; }
.label { position: absolute; left: 0; top: 0; padding: 6px 12px 7px; border-left: 2px solid var(--gold); background: rgba(11, 13, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; opacity: 0; transition: opacity .5s ease; will-change: transform; }
.label.on { opacity: 1; }
.label b { display: block; font: 400 24px/1.05 var(--serif); color: var(--ink); }
.label span { display: block; margin-top: 3px; font: 400 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.label.is-serious { border-color: var(--red); }
.label.is-minor { border-color: var(--amber); }
.label.is-clear { border-color: var(--green); }
.label.is-plain { border-color: var(--gold); }

/* A coin's face, drawn from the same atlas as the coins in the scene. */
canvas.face { display: block; flex: none; border-radius: 50%; background: var(--raise); box-shadow: 0 0 0 1px var(--line-strong); }

#tip { position: fixed; z-index: 30; left: 0; top: 0; width: 284px; padding: 12px 14px; background: rgba(18, 21, 15, .96); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); pointer-events: none; font-size: 13px; line-height: 1.45; }
#tip.pinned { pointer-events: auto; }
#tip .tip-head { display: flex; align-items: center; gap: 12px; }
#tip .tip-head > div { min-width: 0; }
#tip h4 { margin: 0; font: 400 21px/1.1 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tip .badge { display: inline-block; margin-top: 9px; padding: 3px 9px; border-radius: 999px; font: 500 11px/1.3 var(--mono); letter-spacing: .04em; border: 1px solid; }
#tip .badge.clear { color: var(--green); border-color: rgba(122, 212, 155, .5); }
#tip .badge.official { color: var(--gold); border-color: rgba(232, 212, 154, .6); }
#tip .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#tip .links .btn { margin: 0; height: 32px; padding: 0 11px; font-size: 12.5px; color: var(--ink); }
#tip .links .btn.gold { color: #17140a; }
#tip .name { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tip .fee { margin: 8px 0 6px; font: 500 12px/1.3 var(--mono); color: var(--gold); }
#tip ul { margin: 0; padding: 0; list-style: none; }
#tip li { position: relative; padding-left: 14px; color: var(--ink); }
#tip li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
#tip li.serious::before { background: var(--red); }
#tip li.clear::before { background: var(--green); }
#tip li.quiet::before { background: var(--faint); }
#tip .meta { margin-top: 8px; color: var(--faint); font: 400 11px/1.4 var(--mono); }

/* Navigation */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); background: linear-gradient(180deg, rgba(11, 13, 10, .92), rgba(11, 13, 10, 0)); }
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.mark b { font: 400 26px/1 var(--serif); color: var(--gold); letter-spacing: .12em; }
.mark span { font: 500 11px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .14em; }
.nav nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--dim); }
.nav nav a { text-decoration: none; padding: 6px 0; }
.nav nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(18, 21, 15, .6); color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { border-color: var(--gold); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #17140a; }
.btn.gold:hover { background: #f4e4b4; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }

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

/* Hero: the scales take the right of the screen, the copy the left. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto auto; padding: 96px var(--gutter) 0; pointer-events: none; }
.hero > * { pointer-events: auto; }
.hero-copy { align-self: center; max-width: 560px; }
.live { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(122, 212, 155, .6); animation: beat 2.4s ease-out infinite; }
.live.stale i { background: var(--amber); animation: none; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(122, 212, 155, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(122, 212, 155, 0); } }
h1 { margin: 0; font: 400 clamp(54px, 7.6vw, 118px)/.92 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.lede { margin: 26px 0 0; max-width: 500px; color: var(--dim); font-size: 18px; line-height: 1.55; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hint { margin: 22px 0 0; font: 400 12px/1.4 var(--mono); color: var(--faint); letter-spacing: .03em; }

.tape { display: flex; gap: 8px; height: 40px; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: nowrap; font: 400 12px/1 var(--mono); color: var(--dim); mask-image: linear-gradient(90deg, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); }
.tape::-webkit-scrollbar { display: none; }
.tape-coin { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 7px; background: rgba(18, 21, 15, .7); border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font: inherit; cursor: pointer; animation: arrive .6s ease both; }
.tape-coin:hover { border-color: var(--gold); color: var(--ink); }
.tape-coin.official { border-color: rgba(232, 212, 154, .45); }
.tape-coin b { color: var(--ink); font-weight: 500; }
.tape-coin .up { color: var(--green); }
.tape-coin .down { color: var(--red); }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }

.pulse { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 13, 10, .55), rgba(11, 13, 10, .92)); }
.pulse div { padding: 18px 18px 20px 0; }
.pulse div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.pulse dt { font: 400 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pulse dd { margin: 6px 0 0; font: 400 clamp(24px, 2.6vw, 38px)/1 var(--serif); font-variant-numeric: tabular-nums; }

/* Chapters: one screen each, the scene rearranges behind them. */
.chapter { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px var(--gutter); pointer-events: none; }
/* A soft shade under the copy, so coins drifting behind it never fight the words. */
.hero-copy, .chapter-copy { position: relative; }
.hero-copy::before, .chapter-copy::before { content: ""; position: absolute; inset: -60px -110px -60px calc(-1 * var(--gutter)); z-index: -1; background: radial-gradient(closest-side, rgba(11, 13, 10, .82), rgba(11, 13, 10, .55) 60%, rgba(11, 13, 10, 0)); pointer-events: none; }
.chapter-copy { max-width: 440px; pointer-events: auto; }
.kicker { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
h2 { margin: 0; font: 400 clamp(40px, 4.6vw, 68px)/.98 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.stat { margin: 22px 0 16px; padding-left: 16px; border-left: 2px solid var(--gold); font: 400 clamp(21px, 1.9vw, 26px)/1.22 var(--serif); color: var(--ink); min-height: 2.4em; }
.stat b { font-weight: 400; color: var(--gold); }
.chapter-copy > p:not(.kicker):not(.stat) { margin: 0; color: var(--dim); }
.key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font: 400 12px/1.3 var(--mono); color: var(--dim); }
.key li { display: flex; align-items: center; gap: 8px; }
.key i, .split i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
i.t-clear { background: var(--green); }
i.t-minor { background: var(--amber); }
i.t-serious { background: var(--red); }
i.t-quiet { background: var(--faint); }
.split { display: grid; grid-template-columns: 1fr auto; gap: 7px 18px; margin: 22px 0 0; max-width: 340px; font: 400 13px/1.3 var(--mono); color: var(--dim); }
.split::before { content: "Worth a look · newest"; grid-column: 2; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); text-align: right; }
.split dt { display: flex; align-items: center; gap: 9px; }
.split dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* Bands: text-heavy sections over the dimmed scene. */
.band { position: relative; padding: clamp(84px, 11vw, 150px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 13, 10, .9), rgba(11, 13, 10, .96)); }
/* A band the scene shows through on the right: the copy keeps the left, and only the copy takes the pointer. */
.band.see-through { background: linear-gradient(90deg, rgba(11, 13, 10, .96) 0%, rgba(11, 13, 10, .9) 40%, rgba(11, 13, 10, .25) 62%, rgba(11, 13, 10, 0) 78%); pointer-events: none; }
.band.see-through .copy { max-width: 600px; pointer-events: auto; }
.rule { max-width: 600px; margin: 14px 0 0; font: 400 12px/1.5 var(--mono); color: var(--faint); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.sub { max-width: 640px; margin: 20px 0 0; color: var(--dim); font-size: 18px; line-height: 1.55; }
h3 { margin: 0; font: 400 24px/1.15 var(--serif); }

.ask { display: flex; gap: 10px; max-width: 640px; margin-top: 34px; }
.ask input, #tool-filter, .console select, .console textarea { height: 48px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 3px; min-width: 0; }
.ask input { flex: 1; font-family: var(--mono); font-size: 14px; }
.ask input::placeholder, #tool-filter::placeholder { color: var(--faint); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; min-height: 36px; }
.pick { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--dim); cursor: pointer; }
.pick canvas.face { margin-left: -6px; }
.pick:hover, .pick[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); }
.pick b { font-weight: 500; color: var(--ink); }

/* A reading, set like a court paper. */
.ruling { margin-top: 30px; max-width: 860px; padding: 28px clamp(18px, 3vw, 34px); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 3px; position: relative; }
.ruling::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); pointer-events: none; }
.ruling .loading, .ruling .err { margin: 0; color: var(--dim); font-family: var(--mono); font-size: 13px; }
.ruling .err { color: var(--red); }
.ruling header { display: flex; gap: 16px; align-items: center; }
.ruling header img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--raise); flex: none; }
.ruling header h3 { font-size: 32px; overflow-wrap: anywhere; }
.ruling header p { margin: 2px 0 0; color: var(--dim); font-size: 14px; overflow-wrap: anywhere; }
.ruling .count { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.ruling .count span { padding: 6px 12px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .04em; border: 1px solid var(--line); color: var(--dim); }
.ruling .count .serious { border-color: rgba(255, 122, 107, .5); color: var(--red); }
.ruling .count .minor { border-color: rgba(242, 187, 74, .5); color: var(--amber); }
.ruling .count .clear { border-color: rgba(122, 212, 155, .5); color: var(--green); }
.ruling .count .official { border-color: rgba(232, 212, 154, .6); color: var(--gold); }
.ruling .facts-row { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 14px 0 0; font: 400 12px/1.4 var(--mono); color: var(--dim); }
.ruling .facts-row b { color: var(--ink); font-weight: 500; }
.ruling ol { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ruling ol li { display: grid; grid-template-columns: 14px 1fr; gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ruling ol li i { width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--faint); }
.ruling ol li.red i { background: var(--red); }
.ruling ol li.amber i { background: var(--amber); }
.ruling ol li.green i { background: var(--green); }
.ruling ol h4 { margin: 0; font: 500 16px/1.4 var(--sans); }
.ruling ol p { margin: 2px 0 0; color: var(--dim); font-size: 14px; }
.ruling .more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ruling .stamp { margin: 16px 0 0; font: 400 11px/1.4 var(--mono); color: var(--faint); }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: check; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.checks li { counter-increment: check; padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(18, 21, 15, .5); }
.checks li::before { content: counter(check, decimal-leading-zero); display: block; margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--gold); }
.checks p { margin: 8px 0 0; color: var(--dim); font-size: 15px; }

.endpoint { display: flex; align-items: center; gap: 12px; max-width: 640px; margin-top: 30px; padding: 8px 8px 8px 16px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 3px; }
.endpoint code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 14px; color: var(--gold); scrollbar-width: none; }

.clients { max-width: 860px; margin-top: 18px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs button { flex: none; height: 44px; padding: 0 16px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); font-size: 14px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.client { padding: 18px 0 0; }
.client p { margin: 0 0 12px; color: var(--dim); max-width: 640px; }
pre { margin: 0 0 12px; padding: 14px 16px; background: #070806; border: 1px solid var(--line); border-radius: 3px; overflow-x: auto; font: 400 13px/1.6 var(--mono); color: var(--ink); }

.console { margin-top: 64px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--panel); }
.console-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 20px 22px 0; }
.console-head p { margin: 0; color: var(--dim); font-size: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px 20px; border-bottom: 1px solid var(--line); min-height: 73px; }
.console-body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.console-call { display: grid; gap: 8px; align-content: start; padding: 20px 22px; border-right: 1px solid var(--line); }
.console-call label { font: 400 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.console select { width: 100%; font-family: var(--mono); font-size: 13px; }
.console textarea { width: 100%; height: auto; padding: 12px 14px; font: 400 13px/1.5 var(--mono); resize: vertical; margin-bottom: 8px; }
.console-out { margin: 0; border: 0; border-radius: 0; background: #070806; height: 420px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--dim); }
.console-out.ok { color: var(--ink); }
.console-out.bad { color: var(--red); }

.catalogue { margin-top: 64px; }
.catalogue-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
#tool-filter { width: min(100%, 340px); font-size: 14px; }
.group { margin-top: 30px; }
.group header { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.group h4 { margin: 0; font: 400 26px/1 var(--serif); color: var(--gold); }
.group header p { margin: 0; color: var(--dim); font-size: 14px; }
.group header span { margin-left: auto; font: 400 12px/1 var(--mono); color: var(--faint); }
.group ul { margin: 0; padding: 0; list-style: none; }
.group li { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 6px 22px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.group li code { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.group li p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.5; }
.sign { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font: 400 11px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.sign.yours { border-color: rgba(232, 212, 154, .5); color: var(--gold); }
.none { color: var(--dim); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 44px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.steps li { padding: 28px 26px 30px; background: rgba(18, 21, 15, .5); }
.steps li + li { border-left: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border: 1px solid var(--gold); border-radius: 50%; font: 400 18px/1 var(--serif); color: var(--gold); }
.steps p { margin: 8px 0 0; color: var(--dim); font-size: 15px; }
.steps code, .facts code, .faq code { color: var(--gold); }

.facts { max-width: 640px; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.facts b { color: var(--ink); font-weight: 500; }

.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; font: 400 23px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font: 400 24px/1 var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 22px; max-width: 640px; color: var(--dim); }

.foot { position: relative; z-index: 2; padding: 44px 0 56px; border-top: 1px solid var(--line); background: #080a07; }
.foot .wrap { display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; font-size: 14px; color: var(--dim); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { grid-column: 1 / -1; margin: 0; font: 400 12px/1.5 var(--mono); color: var(--faint); }

@media (max-width: 940px) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 84px; }
  h1 { font-size: clamp(50px, 14vw, 84px); }
  .lede { font-size: 16px; margin-top: 18px; }
  .ctas { margin-top: 22px; }
  .hint { display: none; }
  .pulse { grid-template-columns: repeat(5, minmax(128px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .pulse dd { font-size: 24px; }
  .label b { font-size: 18px; }
  .label span { font-size: 10px; }
  .console-body { grid-template-columns: minmax(0, 1fr); }
  .console-call { border-right: 0; border-bottom: 1px solid var(--line); }
  .console-out { height: 340px; }
  .group li { grid-template-columns: minmax(0, 1fr) auto; }
  .group li p { grid-column: 1 / -1; grid-row: 2; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .band.see-through { background: linear-gradient(180deg, rgba(11, 13, 10, .9), rgba(11, 13, 10, .96)); pointer-events: auto; }
  .band.see-through .copy { max-width: none; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; }
  .ask { flex-wrap: wrap; }
  .ask .btn { width: 100%; }
}

/*
 * A phone: the scene gets a band of its own across the top of the screen and the copy scrolls
 * below it, so the picture is never behind the words and never small. Over a text-heavy band the
 * picture slides away and the copy takes the whole screen. A sideways swipe on the band turns the
 * picture; a swipe up or down still scrolls the page.
 */
:root { --band: 50vh; }
@supports (height: 1svh) { :root { --band: 50svh; } }
@media (max-width: 940px) and (orientation: portrait) {
  #scene, #labels { bottom: auto; height: var(--band); transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
  #scene { z-index: 3; touch-action: pan-y; box-shadow: 0 1px 0 var(--line-strong); }
  #labels { z-index: 4; }
  body.rest #scene, body.rest #labels { opacity: 1; transform: translateY(-101%); }
  body.rest #gesture { opacity: 0; }
  main { padding-top: var(--band); }
  html.no-gl main { padding-top: 0; }
  .nav { z-index: 20; background: linear-gradient(180deg, rgba(11, 13, 10, .88), rgba(11, 13, 10, 0)); }
  .hero { min-height: 0; padding: 24px var(--gutter) 0; }
  .hero-copy { align-self: start; }
  .chapter { min-height: calc(100vh - var(--band)); align-items: flex-start; padding: 30px 0 44px; }
  .chapter-copy { max-width: none; width: 100%; padding: 0 var(--gutter); }
  .hero-copy::before, .chapter-copy::before { display: none; }
  .stat { min-height: 0; }
  .band { padding-top: 56px; }
  #gesture { position: fixed; z-index: 5; left: 50%; top: calc(var(--band) - 44px); display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; transform: translateX(-50%); background: rgba(11, 13, 10, .72); border: 1px solid var(--line); border-radius: 999px; font: 400 11px/1.2 var(--mono); letter-spacing: .04em; color: var(--dim); white-space: nowrap; pointer-events: none; transition: opacity .5s ease; }
  #gesture span { color: var(--gold); font-size: 14px; }
  .label { padding: 4px 9px 5px; }
  .label.brief span { display: none; }
  body.turned #gesture { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live i, .tape span { animation: none; }
  #scene, #labels, .label { transition: none; }
}
