/* First principles: the garden path. Each walk walks through a real painting of its idea's world.
   Paper and ink from the prints; a garden green for the one action; rose for where you are. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #f3f3ef; --panel: #e7e7e0; --white: #fcfcfa;
  --ink: #1e221c; --muted: #444b41; --soft: #858a80;
  --accent: #2c4a2e; --accent-press: #223b24; --accent-ink: #f3f3ef;
  --rose: #a8435a;
  --hover: #e1ddd1; --error: #8a2b1a; --frame: #cfc8b8; --path-line: #c3c6bb;
  --green: #eef0e8; --blue: #ebeef0; --clay: #f2eeea; --lilac: #f0eded; --sand: #f2f0e9;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  --s-small: 15px; --s-ui: 16px; --s-body: 19.5px; --s-say: 26px; --s-big: 36px;
  --gutter: 20px;
  --band-h: clamp(210px, 34svh, 380px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms;
  --bg: var(--paper);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; -webkit-text-size-adjust: 100%; transition: background-color .7s ease; }
body {
  overflow-x: clip;
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--serif); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  font-variation-settings: "WONK" 0, "SOFT" 0;
  transition: background-color .7s ease;
}
html:has(body[data-tint="green"]), body[data-tint="green"] { --bg: var(--green); }
html:has(body[data-tint="blue"]), body[data-tint="blue"] { --bg: var(--blue); }
html:has(body[data-tint="clay"]), body[data-tint="clay"] { --bg: var(--clay); }
html:has(body[data-tint="lilac"]), body[data-tint="lilac"] { --bg: var(--lilac); }
html:has(body[data-tint="sand"]), body[data-tint="sand"] { --bg: var(--sand); }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

main { min-height: 100dvh; }
.page { display: block; }
.words-col { padding: 26px var(--gutter) calc(96px + var(--safe-bottom)); max-width: 640px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--s-big); line-height: 1.04; }
h2 { font-size: var(--s-say); line-height: 1.15; }
h3 { font-size: var(--s-body); line-height: 1.3; }
p { margin: 0 0 .8em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.lede { font-size: var(--s-body); line-height: 1.5; margin: 12px 0 0; max-width: 32em; }
.meta, .who, .note, .credits, button, label, input { font-family: var(--sans); }
.meta { font-size: var(--s-small); line-height: 1.45; color: var(--muted); margin: 0; }
.note { font-size: var(--s-small); line-height: 1.45; color: var(--muted); background: var(--panel); padding: 12px 14px; margin: 16px 0 22px; }
.lab { display: block; font-family: var(--sans); font-size: var(--s-small); font-weight: 600; color: var(--muted); margin: 0 0 4px; }

/* the one masked moment: a heading rises from behind its own baseline */
.mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.mask > span { display: block; }

/* ---------- controls ---------- */
button {
  font-size: var(--s-ui); font-weight: 600; min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 0; background: var(--panel); color: var(--ink); cursor: pointer; touch-action: manipulation;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, opacity var(--t-ui) ease;
}
button:active:not(:disabled) { transform: scale(.97); }
button.primary { background: var(--accent); color: var(--accent-ink); }
button.quiet { background: transparent; color: var(--muted); padding: 0 12px; min-height: 44px; font-weight: 500; }
button.wide { width: 100%; }
button:disabled { opacity: .5; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled) { background: var(--hover); }
  button.primary:hover:not(:disabled) { background: var(--accent-press); }
  button.quiet:hover:not(:disabled) { background: transparent; color: var(--ink); }
  a:hover { color: var(--accent); }
}
button:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--accent); outline-offset: 3px;
}
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.row.stack { flex-direction: column; align-items: stretch; }

textarea, input[type="text"] {
  width: 100%; font: 400 var(--s-body)/1.5 var(--serif); color: var(--ink);
  background: var(--white); border: 0; border-radius: 0; padding: 14px 16px; -webkit-appearance: none; appearance: none;
  transition: background-color var(--t-ui) ease, opacity var(--t-ui) ease;
}
textarea { resize: none; min-height: 132px; display: block; }
textarea::placeholder, input::placeholder { color: var(--soft); }
textarea:disabled { background: var(--panel); opacity: .8; }
.err { color: var(--error); font-family: var(--sans); font-size: var(--s-small); margin: 8px 0 0; min-height: 1.2em; }
.err:empty { min-height: 0; margin: 0; }

/* ---------- the painting ---------- */
.band { position: relative; height: calc(var(--band-h) + var(--safe-top)); overflow: hidden; background: var(--frame); contain: paint; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; view-transition-name: band; }
.band .chrome {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: calc(12px + var(--safe-top)) 12px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 600 15px/1 var(--sans); border: 0;
}
.chip svg { width: 18px; height: 18px; }
.band .chip { view-transition-name: nav; }
.chip.name { padding: 0 16px; font: 600 15px/1 var(--sans); }
@media (hover: hover) and (pointer: fine) { button.chip:hover:not(:disabled) { background: var(--white); } }

/* where you are on the path: dots joined by a line, no numbers */
.path { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--paper); view-transition-name: path; }
.path i { display: block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--soft); flex: none; transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease; }
.path i.done { background: var(--accent); border-color: var(--accent); }
.path i.here { width: 11px; height: 11px; background: var(--rose); border-color: var(--rose); }
.path b { display: block; width: 12px; height: 2px; background: var(--path-line); flex: none; }
.path b.done { background: var(--accent); }

/* ---------- the gate: the shelf ---------- */
.mosaic { display: flex; height: calc(var(--band-h) + var(--safe-top)); overflow: hidden; background: var(--frame); }
.mosaic img { display: block; height: 100%; min-width: 0; object-fit: cover; flex: 2 1 0; }
.mosaic img:first-child { flex-grow: 5; }
.mosaic img:nth-child(2) { flex-grow: 3; }
.mosaic-wrap { position: relative; }
.gate h1 { font-size: 40px; line-height: 1.02; max-width: 11em; }

.walks { margin: 34px 0 0; display: grid; gap: 40px; }
.walk { display: grid; gap: 0; align-content: start; }
.walk .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); margin: 0 calc(-1 * var(--gutter)) 16px; }
.walk .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-soft), filter .6s ease; }
.walk.waiting .pic img { filter: grayscale(.85) contrast(.9); opacity: .75; }
.walk h2 { font-size: 30px; line-height: 1.08; }
.walk .with { font-family: var(--sans); font-size: var(--s-ui); color: var(--muted); margin: 6px 0 0; }
.walk .subtitle { font-style: italic; margin: 8px 0 0; }
.walk .state { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font: 500 var(--s-ui)/1.4 var(--sans); color: var(--ink); }
.walk .state .meta { font-size: var(--s-small); }
.walk textarea { margin-top: 14px; min-height: 110px; }
.walking { display: inline-flex; gap: 5px; }
.walking i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
  .walking i { animation: step 1.6s var(--ease-in-out) infinite; }
  .walking i:nth-child(2) { animation-delay: .2s; } .walking i:nth-child(3) { animation-delay: .4s; }
  @keyframes step { 0%, 100% { opacity: .25; } 30% { opacity: 1; } }
}
@media (hover: hover) and (pointer: fine) { .walk:hover .pic img { transform: scale(1.025); } }

.bring { margin-top: 56px; padding: 26px var(--gutter) 28px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); background: var(--panel); }
.bring h2 { font-size: var(--s-say); }
.bring .meta { margin: 8px 0 14px; font-size: var(--s-ui); }
.foot { margin-top: 32px; font-size: var(--s-ui); }

/* ---------- a stop ---------- */
.stopname { font-size: var(--s-big); margin: 0 0 18px; }
.scene p { font-size: var(--s-body); line-height: 1.55; margin: 0 0 .55em; max-width: 30em; }
.q { font-style: italic; font-weight: 500; font-size: var(--s-say); line-height: 1.2; letter-spacing: -0.012em; margin: 22px 0 20px; text-wrap: balance; }
details { font-family: var(--sans); font-size: var(--s-small); color: var(--muted); margin: 0 0 12px; }
details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none; font-weight: 600; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; width: 7px; height: 7px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--t-ui) var(--ease-out); }
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details p { font-family: var(--serif); font-size: 17px; color: var(--muted); margin: 0 0 .45em; }

.answer { margin-top: 4px; scroll-margin-bottom: 24px; transition: opacity .6s var(--ease-soft), transform .7s var(--ease-out); }
.js .answer.waiting, .js .again.waiting { opacity: 0; transform: translateY(10px); pointer-events: none; }
.again { transition: opacity .6s var(--ease-soft); }
h1 + .with { margin-top: 10px; }
.answer .row { margin-top: 12px; }
.again { margin-top: 2px; }

.said { margin: 22px 0 0; }
.said p { font-size: 18px; color: var(--muted); margin: 0; }
.said p::before { content: "\201C"; } .said p::after { content: "\201D"; }
.nudge { font-size: var(--s-say); line-height: 1.25; margin: 12px 0 20px; color: var(--rose); font-style: italic; font-weight: 500; text-wrap: balance; }

.reply { margin: 26px 0 0; }
.reply .lead { font-size: var(--s-say); line-height: 1.22; font-weight: 600; letter-spacing: -0.012em; color: var(--accent); margin: 0 0 14px; text-wrap: balance; }
.reply .lead.plain { color: var(--ink); }
.reply > p:not(.lead) { font-size: 18px; }
.pair { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 6px 0 0; }
.pair > div { background: var(--white); padding: 14px 16px 6px; }
.pair > div + div { background: var(--panel); }
.pair p { font-size: 18px; line-height: 1.5; }
.pair .theirs p { font-weight: 500; }

/* ---------- their step: the end of a stop ---------- */
.their { font-size: var(--s-say); line-height: 1.24; font-weight: 600; letter-spacing: -0.012em; margin: 0; text-wrap: pretty; }
.mine { margin: 22px 0 0; }
.mine p { font-size: 18px; color: var(--muted); margin: 0; }
.moment {
  margin: 30px calc(-1 * var(--gutter)) 0; padding: 26px var(--gutter) 24px;
  background: var(--accent); color: var(--accent-ink);
}
.moment .lab { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); margin-bottom: 12px; }
.moment blockquote { margin: 0 0 16px; font-style: italic; font-size: 24px; line-height: 1.32; font-weight: 400; letter-spacing: -0.005em; text-wrap: pretty; }
.moment figcaption { font-family: var(--sans); font-size: var(--s-small); line-height: 1.45; color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.moment figcaption .who { color: var(--accent-ink); font-weight: 600; font-size: var(--s-small); }
.moment a { color: inherit; }
.next { font-family: var(--sans); font-size: var(--s-small); color: var(--muted); margin: 10px 0 0; text-align: center; }

/* a quote in the reading flow (top, bench, open walk) */
.words { margin: 12px 0 0; background: var(--panel); padding: 14px 16px 12px; }
.words .lab { margin-bottom: 8px; }
.words blockquote { margin: 0 0 8px; font-size: 18px; line-height: 1.45; font-style: italic; }
.words figcaption { font-family: var(--sans); font-size: var(--s-small); color: var(--muted); line-height: 1.45; }
.words figcaption .who { color: var(--ink); font-weight: 600; font-size: var(--s-small); }

/* ---------- the top ---------- */
.top h1 { font-size: 40px; }
.counts { font-size: var(--s-say); line-height: 1.25; font-style: italic; margin: 18px 0 0; color: var(--accent); text-wrap: balance; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 26px; }
.steps .name { display: block; font-family: var(--sans); font-size: var(--s-small); font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.steps .step { font-size: 21px; line-height: 1.35; margin: 0 0 6px; font-weight: 500; }
.steps .you { font-size: 17px; color: var(--muted); font-style: italic; margin: 0; }
.section { margin-top: 56px; }
.section > h2 { margin-bottom: 10px; }
.benchpic { margin: 0 calc(-1 * var(--gutter)) 22px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.benchpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.voice { margin: 28px 0 0; }
.voice h3 { font-family: var(--sans); font-size: var(--s-ui); font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.voice > p { margin: 0; }
.readmore { margin-top: 28px; }
.credits { margin-top: 48px; font-size: var(--s-small); color: var(--muted); line-height: 1.5; }
.credits h2 { font-family: var(--sans); font-size: var(--s-small); font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 0 0 6px; }
.credits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.credits a { color: var(--muted); }

/* ---------- the walk, opened ---------- */
.opened { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 44px; }
.opened .pic { margin: 0 calc(-1 * var(--gutter)) 16px; aspect-ratio: 2 / 1; overflow: hidden; background: var(--panel); }
.opened .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opened h2 { font-size: var(--s-say); margin-bottom: 6px; }
.opened .rests { font-family: var(--sans); font-size: var(--s-small); color: var(--muted); margin: 0 0 14px; }
.opened .their { font-size: 21px; font-weight: 500; line-height: 1.35; }
.opened details { margin-top: 10px; }
.flagrow { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.flagrow input { flex: 1 1 200px; min-height: 52px; font: var(--s-ui) var(--sans); }
.flagged { font-family: var(--sans); font-size: var(--s-small); color: var(--rose); margin: 6px 0 0; }

/* ---------- walk with them first: the clip takes the painting's place ---------- */
.walk .row:has(.way-yourself) { column-gap: 24px; }
.walk .row .way-yourself { padding: 0 2px; }
.walk .way { margin: 12px 0 0; max-width: 30em; font-size: var(--s-ui); }
/* on a phone the clip stays in sight while its words run on underneath */
@media (max-width: 959px) {
  .band.playing { position: sticky; top: 0; z-index: 3; }
  .listening .listen { scroll-margin-top: calc(var(--band-h) + var(--safe-top) + 12px); }
}
.band img { transition: opacity .8s var(--ease-soft); }
.band.playing img { opacity: .55; }
.band .stage {
  position: absolute; inset: 0; z-index: 1; display: grid; padding-top: calc(64px + var(--safe-top));
  background: color-mix(in srgb, var(--ink) 84%, transparent); opacity: 0; visibility: hidden; container-type: size;
  transition: opacity .8s var(--ease-soft), visibility 0s linear .8s;
}
.band.playing .stage { opacity: 1; visibility: visible; transition: opacity .8s var(--ease-soft), visibility 0s; }
.stage .frame { grid-area: 1 / 1; place-self: center; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.stage .frame.on { opacity: 1; visibility: visible; }
.frame { position: relative; background: var(--ink); overflow: hidden; }
.frame iframe, .frame .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.frame .shield { position: absolute; inset: 0; z-index: 2; min-height: 0; padding: 0; border-radius: 0; background: transparent; cursor: pointer; }
.frame .shield:active { transform: none; }
.frame.tap .shield { display: none; }
/* paused: the painting over YouTube's own overlay, with one big Play. Never shown while the clip plays. */
.frame .cover { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; background: var(--ink); }
.frame.paused .cover { display: grid; }
.frame .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.frame .cover .bigplay { position: relative; width: 76px; height: 76px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-ink); color: var(--accent); box-shadow: 0 6px 24px rgb(0 0 0 / .28); }
.frame .cover .bigplay svg { width: 32px; height: 32px; margin-left: 3px; }
.frame .cover .bigplay svg path { fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .frame .shield:hover:not(:disabled) { background: transparent; } }

.listen .controls { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; }
.playbtn { display: inline-flex; align-items: center; gap: 10px; padding: 0 24px 0 18px; }
.playbtn .ico { display: inline-flex; }
.playbtn svg, .hear svg, .skip svg { width: 20px; height: 20px; flex: none; }
.playbtn svg path[d^="M8 5.5"], .hear svg path[d^="M8 5.5"] { fill: currentColor; }
.listen .left { font-variant-numeric: tabular-nums; }
.listen .skip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.listen .hint { margin: 10px 0 0; }
.listen .hint:empty { display: none; }
.scene p { transition: color .6s ease; }
.scene.heard p { color: var(--muted); }
.spoken { margin: 22px 0 0; font-size: var(--s-body); line-height: 1.55; max-width: 30em; }
.spoken span { display: none; color: var(--muted); transition: color .5s ease; }
.spoken span.in { display: inline; }
.spoken span.now { color: var(--ink); }

/* their step and a line to sit with: a roomy, calm screen */
.think .their { margin-bottom: 0; }
.thinkon { margin: 46px 0 0; }
.thinkon p { margin: 0; font-style: italic; font-weight: 500; font-size: 23px; line-height: 1.32; letter-spacing: -0.008em; color: var(--accent); max-width: 21em; text-wrap: pretty; }
.think .go { margin-top: 52px; }
.think .moment { margin-bottom: 30px; margin-top: 4px; }

/* walking it yourself: hear the same clip inside the "In their words" card */
.moment .hear, .moment .playbtn, button.light { background: var(--accent-ink); color: var(--accent); }
.moment .hear { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 22px 0 16px; }
.moment .listen .left, .moment .listen .skip, .moment .hint { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.inline-clip { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.inline-clip > div { overflow: hidden; min-height: 0; }
.inline-clip.open { grid-template-rows: 1fr; }
.frame.inline { width: 100%; aspect-ratio: 16 / 9; margin-top: 18px; }
.inline-clip:not(.open) .listen { display: none; }
.away { font-family: var(--sans); font-size: var(--s-small); margin: 14px 0 0; }
@media (hover: hover) and (pointer: fine) {
  .moment .hear:hover:not(:disabled), .moment .playbtn:hover:not(:disabled), button.light:hover:not(:disabled) { background: var(--white); }
}

/* the top of a walk with them: the hand-off */
.handoff { margin: 52px calc(-1 * var(--gutter)) 0; padding: 30px var(--gutter) 28px; background: var(--accent); color: var(--accent-ink); }
.handoff h2 { margin: 0 0 12px; }
.handoff p { font-size: 18px; line-height: 1.5; color: color-mix(in srgb, var(--accent-ink) 90%, transparent); max-width: 30em; margin: 0; }
.handoff .row { margin-top: 22px; }
.bench-screen .voice { margin-top: 34px; }

/* ---------- wide screens: the painting holds the left of the page, the words hang from its edge ---------- */
@media (min-width: 960px) {
  :root { --gutter: 48px; }
  .page { display: grid; grid-template-columns: 42vw 1fr; min-height: 100dvh; align-items: start; }
  .page > .band, .page > .mosaic-wrap { position: sticky; top: 0; height: 100dvh; }
  .page > .band { height: 100dvh; }
  .page > .mosaic-wrap .mosaic { height: 100dvh; }
  .page > .mosaic-wrap .mosaic { flex-direction: column; }
  .page > .mosaic-wrap .mosaic img { width: 100%; height: auto; flex-basis: 0; }
  .words-col { padding: 72px var(--gutter) 120px; max-width: 700px; }
  :root { --s-big: 46px; --s-say: 28px; --s-body: 20px; }
  .gate h1 { font-size: clamp(54px, 5.4vw, 84px); max-width: 9em; }
  .top h1 { font-size: 60px; }
  .page > .mosaic-wrap .mosaic img:first-child { flex-grow: 6; }
  .walk .pic, .benchpic, .opened .pic { margin-left: 0; margin-right: 0; }
  .walks { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
  .walk h2 { font-size: 28px; }
  .bring, .moment, .handoff { margin-left: 0; margin-right: 0; padding-left: 28px; padding-right: 28px; }
  .thinkon p { font-size: 27px; }
  .pair { grid-template-columns: 1fr 1fr; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .band img { animation: drift 26s var(--ease-soft) both; transform-origin: 60% 50%; }
  @keyframes drift { from { transform: scale(1.07) translateX(1.2%); } to { transform: none; } }

  .enter:not(.step-in) .mask > span { animation: line-up .9s var(--ease-out) both; animation-delay: .12s; }
  @keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
  .enter [data-rise] { animation: rise var(--t-reveal) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 220ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  .scene p, .q { transition: opacity .9s var(--ease-soft), transform 1s var(--ease-out); }
  .js .scene.waiting p:not(.in), .js .q.waiting:not(.in) { opacity: 0; transform: translateY(10px); }

  .land { animation: land .75s var(--ease-out) both; animation-delay: .08s; }
  .land .lead { animation: land-lead .9s var(--ease-out) both; animation-delay: .16s; }
  .land .pair > div { animation: rise .7s var(--ease-out) both; animation-delay: .34s; }
  .land .pair > div + div { animation-delay: .44s; }
  @keyframes land { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes land-lead { from { opacity: 0; transform: translateY(14px) scale(.985); transform-origin: left center; } to { opacity: 1; transform: none; } }
  .nudge.land { animation: land .7s var(--ease-out) both; }

  .moment.enter-moment, .handoff.enter-moment { animation: shutter 1.1s var(--ease-in-out) both; animation-delay: .35s; }
  .handoff.enter-moment h2, .handoff.enter-moment p, .handoff.enter-moment .row { animation: rise .8s var(--ease-out) both; animation-delay: .9s; }
  .handoff.enter-moment p { animation-delay: 1s; } .handoff.enter-moment .row { animation-delay: 1.12s; }
  .spoken span.now { animation: fade-in .7s var(--ease-soft) both; }
  @keyframes fade-in { from { opacity: 0; } }
  .listen .controls { animation: rise .6s var(--ease-out) both; animation-delay: .25s; }
  .moment.enter-moment blockquote, .moment.enter-moment figcaption, .moment.enter-moment .lab { animation: rise .8s var(--ease-out) both; animation-delay: .9s; }
  .moment.enter-moment blockquote { animation-delay: 1s; } .moment.enter-moment figcaption { animation-delay: 1.15s; }
  @keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

  .walk-on-fallback .band img { animation: pan-in 1s var(--ease-out) both, drift 26s var(--ease-soft) both; }
  @keyframes pan-in { from { opacity: 0; transform: translateX(18%) scale(1.08); } to { opacity: 1; transform: scale(1.07) translateX(1.2%); } }

  /* screen changes, where the browser can morph between them */
  ::view-transition-old(root) { animation: vt-out .26s var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; animation-delay: .06s; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes vt-in { from { opacity: 0; } }
  ::view-transition-group(band) { animation-duration: .6s; animation-timing-function: var(--ease-in-out); }
  ::view-transition-image-pair(band) { overflow: clip; }
  html[data-vt="walk-on"]::view-transition-old(band) { animation: walk-out 1.05s var(--ease-in-out) both; }
  html[data-vt="walk-on"]::view-transition-new(band) { animation: walk-in 1.05s var(--ease-in-out) both; }
  @keyframes walk-out { to { transform: translateX(-38%) scale(1.04); opacity: .2; } }
  @keyframes walk-in { from { transform: translateX(60%) scale(1.06); } }
  html[data-vt="step"]::view-transition-old(band), html[data-vt="step"]::view-transition-new(band) { animation: none; }
  ::view-transition-old(path) { animation: vt-fade .2s ease both; } ::view-transition-new(path) { animation: vt-fade .4s ease reverse both; }
  @keyframes vt-fade { to { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html, body { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .2s !important; }
  button:active:not(:disabled) { transform: none; }
}

/* ---------- liamnoone.com port (1 Nov 2026) ----------
   The site's CSP allows no inline styles, so the spacing the game set inline lives here. */
.space-28 { margin-top: 28px; }
.space-32 { margin-top: 32px; }
.space-36 { margin-top: 36px; }
.answer .privacy { margin: 12px 0 0; font-size: var(--s-small); line-height: 1.45; }
.forget-row { margin: 14px 0 0; }
.forget-row .forget { min-height: 44px; padding: 0 2px; font-size: var(--s-small); color: var(--muted); }
.home { margin-top: 18px; font-size: var(--s-small); }
.home a { color: var(--muted); }
.credits p { margin: 12px 0 0; max-width: 34em; }
.credits p a { color: var(--muted); }
/* "Show all the words": every caption line of the clip at once */
.allwords { margin-top: 10px; min-height: 44px; padding: 0 2px; font-size: var(--s-small); }
.spoken.whole span { display: inline; }
/* YouTube needs its player at least 200 by 200 */
.frame.inline { min-height: 200px; }
