/* Codetta's website. Liner Notes: booklet stock and ink, one spot colour (house teal),
   rules instead of boxes, album art as the only full colour. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url(fonts/schibsted-grotesk.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #f7f8f8;
  --sheet: #ffffff;
  --ink: #1b1e24;
  --muted: #59606d;
  --faint: #6f7581;
  --field: #8b919b;
  --hair: rgba(27, 30, 36, 0.1);
  --spot: #0e7c74;
  --spot-soft: color-mix(in oklab, var(--spot) 13%, transparent);
  --on-ink: #f7f8f8;
  --cover-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 14px 30px -12px rgba(0, 0, 0, 0.35);
  --lift: 0 24px 64px rgba(27, 30, 36, 0.16);
  --font: "Schibsted Grotesk", -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 96px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131418;
    --sheet: #1a1c21;
    --ink: #f0f0ec;
    --muted: #a4a9b4;
    --faint: #8a909b;
    --field: #6e737d;
    --hair: rgba(240, 240, 236, 0.1);
    --spot: #4fc3b4;
    --on-ink: #131418;
    --cover-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 36px -12px rgba(0, 0, 0, 0.75);
    --lift: 0 24px 64px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--field) var(--bg); overflow-x: clip; }
body {
  background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; caret-color: var(--spot); overflow-x: clip;
}
::selection { background: var(--spot-soft); color: var(--ink); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.86em; }

.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(24px, env(safe-area-inset-top)) var(--pad) 0;
}
.wordmark { font-weight: 800; font-size: 26px; letter-spacing: -0.035em; text-decoration: none; line-height: 1; }
.wordmark i { display: inline-block; width: 0.29em; height: 0.29em; background: var(--spot); margin-left: 0.04em; }
.top nav { display: flex; gap: 28px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; transition: color 160ms; }
.top nav a:hover { color: var(--ink); }
.top nav .gh { color: var(--ink); font-weight: 600; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px);
  align-items: center; padding: clamp(40px, 7vh, 88px) var(--pad) clamp(48px, 8vh, 96px);
  min-height: min(880px, calc(100svh - 50px)); max-width: 1480px; margin: 0 auto;
  overflow: clip; overflow-clip-margin: 0; /* the cover wall bleeds to the edges of the hero, never past them */
}
h1 {
  font-size: clamp(46px, 5.6vw, 82px); line-height: 0.98; font-weight: 800; letter-spacing: -0.04em;
  text-wrap: balance; max-width: 9.5em;
}
.lede { margin-top: 24px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--muted); max-width: 32em; }

/* Install: a credit line you can copy */
.get { margin-top: 36px; border-top: 1.5px solid var(--ink); padding-top: 14px; max-width: 34rem; }
.tabs { display: flex; gap: 22px; }
.tabs button {
  background: none; border: 0; padding: 6px 0 8px; font-size: 15px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color 160ms, border-color 200ms var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--spot); }
.cmd {
  margin-top: 12px; display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 6px 6px 6px 14px; background: var(--sheet); border: 1px solid var(--field); border-radius: 6px;
}
.cmd code { flex: 1; font-size: 13.5px; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; padding: 6px 0; }
.cmd code mark { background: var(--spot-soft); color: inherit; border-radius: 3px; padding: 0 3px; }
.copy {
  flex: none; height: 38px; min-width: 76px; padding: 0 14px; border: 0; border-radius: 6px;
  background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 14px;
  transition: background-color 160ms, transform 120ms;
}
.copy:hover { background: color-mix(in oklab, var(--ink) 84%, var(--spot)); }
.copy:active { transform: scale(0.97); }
.copy.done { background: var(--spot); color: var(--on-ink); }
.hint { margin-top: 10px; font-size: 14px; color: var(--muted); }
.hint a { color: var(--spot); font-weight: 600; text-decoration: none; }
.hint a:hover { text-decoration: underline; }

/* The stage: one download's journey */
.stage { position: relative; min-height: clamp(560px, 64vh, 640px); display: flex; flex-direction: column; }
.steps { list-style: none; display: flex; gap: 20px; font-size: 13px; color: var(--faint); }
.steps li { transition: color 300ms; }
.steps b { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; }
.steps li.on { color: var(--ink); }
.steps li.on b { color: var(--spot); }

.journey { position: relative; margin-top: 22px; max-width: 560px; transition: opacity 600ms var(--ease), transform 900ms var(--ease); }
.path { font-size: 13px; color: var(--faint); padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.file-art { width: 40px; height: 40px; border-radius: 2px; background: color-mix(in oklab, var(--ink) 9%, transparent); flex: none; }
.file-name { flex: 1; font-family: var(--mono); font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 13px; color: var(--faint); }
.finding { display: flex; align-items: center; gap: 12px; height: 34px; font-size: 13px; color: var(--muted); }
.finding .bar { position: relative; flex: 1; height: 2px; background: var(--hair); overflow: hidden; }
.finding .bar::after { content: ""; position: absolute; inset: 0; background: var(--spot); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 1.1s var(--ease); }

.spread { display: flex; align-items: flex-end; gap: 22px; margin-top: 10px; }
.cover { width: clamp(132px, 13.8vw, 200px); height: auto; aspect-ratio: 1; border-radius: 2px; box-shadow: var(--cover-shadow); }
.spread h2 { font-size: clamp(32px, 3.2vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.spread p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.chip { display: inline-block; margin-top: 12px; color: var(--spot); background: var(--spot-soft); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 4px; }

.credits { margin-top: 20px; border-top: 1.5px solid var(--ink); }
.credits div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.credits dt { color: var(--muted); font-size: 13px; }
.credits dd { font-weight: 600; min-height: 1.4em; }
.credits s { color: var(--faint); font-weight: 400; text-decoration-thickness: 1px; transition: opacity 300ms; }
.credits em { font-style: normal; color: var(--spot); }
.filed { margin-top: 14px; font-size: 14px; color: var(--muted); }
.filed code { color: var(--ink); font-size: 13px; }

.wall {
  position: absolute; inset: -16% -30% -24% -2%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px; transform: rotate(-6deg); pointer-events: none; opacity: 0; transition: opacity 900ms var(--ease);
  --fade-a: 60%; --fade-b: 76%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%), linear-gradient(#000 var(--fade-a), transparent var(--fade-b));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%), linear-gradient(#000 var(--fade-a), transparent var(--fade-b));
  mask-composite: intersect;
}
.wall .col { display: flex; flex-direction: column; gap: 22px; }
.wall .col:nth-child(2) { margin-top: -90px; }
.wall .col:nth-child(3) { margin-top: 50px; }
.wall figure img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; box-shadow: var(--cover-shadow); }
.wall figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall figcaption b { display: block; color: var(--ink); font-size: 14px; letter-spacing: -0.01em; }
.wall .new img { outline: 2px solid var(--spot); outline-offset: 4px; }
.wall .new figcaption b::after { content: "Just filed"; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--spot); background: var(--spot-soft); padding: 1px 6px; border-radius: 3px; }

.replay {
  position: absolute; right: 0; bottom: 0; height: 34px; padding: 0 14px; border-radius: 6px;
  border: 1px solid var(--field); background: var(--sheet); font-size: 14px; font-weight: 600;
}
.replay:hover { background: color-mix(in oklab, var(--sheet) 94%, var(--ink)); }
.note { position: relative; z-index: 2; margin-top: auto; padding-top: 20px; font-size: 12px; color: var(--faint); max-width: calc(100% - 170px); }
.js .stage.walled .note { align-self: flex-start; background: var(--bg); padding: 4px 10px 4px 0; border-radius: 0 6px 0 0; }
.replay { z-index: 2; }

/* Journey states, driven by data-phase on the stage (JS only: without it everything shows) */
.js .stage [data-file], .js .stage [data-finding], .js .stage [data-spread], .js .stage [data-filed] { opacity: 0; transform: translateY(10px); }
.js .stage [data-credits] > div { opacity: 0; transform: translateY(6px); }
.js .stage [data-credits] em { opacity: 0; }
.js .stage :is([data-file], [data-finding], [data-spread], [data-filed], [data-credits] > div) {
  transition: opacity 500ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease);
}
.js .stage [data-credits] em { transition: opacity 400ms var(--ease); }
.js .stage .cover { filter: blur(10px); transform: scale(0.94); transition: filter 900ms var(--ease), transform 900ms var(--ease); }
.js .stage .in { opacity: 1 !important; transform: none !important; }
.js .stage .in .cover, .js .stage .cover.in { filter: none; transform: none; }
.js .stage [data-credits] > div.fixed em { opacity: 1; }
.js .stage.walled .journey { opacity: 0; transform: translateX(-24px) scale(0.98); pointer-events: none; }
.js .stage.walled .wall { opacity: 1; }
.stage.matched { --spot: #b8492a; --spot-soft: color-mix(in oklab, #b8492a 13%, transparent); }
@media (prefers-color-scheme: dark) { .stage.matched { --spot: #f2915f; --spot-soft: color-mix(in oklab, #f2915f 16%, transparent); } }
.stage :is(.chip, .credits em, .finding .bar::after, .steps li.on b) { transition: color 700ms var(--ease), background-color 700ms var(--ease); }
/* The hand-off: the credits step aside, the cover flies into its slot in the wall. */
.js .stage.handoff .journey > :not([data-spread]), .js .stage.handoff .spread-text { opacity: 0; transition: opacity 400ms var(--ease); }
.js .stage .wall figure.new.waiting img { opacity: 0; }
.flying { position: fixed; z-index: 30; border-radius: 2px; box-shadow: var(--cover-shadow); pointer-events: none; will-change: transform; }
.js .stage.walled .steps { opacity: 0; }
.steps { transition: opacity 500ms var(--ease); }
.js .stage .wall figure { opacity: 0; transform: translateY(24px) scale(0.96); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.js .stage.walled .wall figure { opacity: 1; transform: none; }

/* Chapters */
.chapters {
  max-width: 1480px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px);
}
.chapter { display: flex; align-items: center; min-height: 58vh; padding: 48px 0; border-top: 1.5px solid var(--ink); }
.chapter .scene { display: none; } /* wide screens: the scenes live on the pinned stage */
.chapter-stage {
  position: sticky; top: calc(50vh - 290px); align-self: start; height: 580px; margin-top: calc(29vh - 290px);
}
.chapter-stage .scene { position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; display: block; opacity: 0; transform: translateY(16px); filter: blur(6px);
  transition: opacity 600ms var(--ease), transform 800ms var(--ease), filter 700ms var(--ease); pointer-events: none; }
.chapter-stage .scene.active { opacity: 1; transform: none; filter: none; }
.chapter-text h2 { font-size: clamp(32px, 3.4vw, 50px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; max-width: 13em; }
.chapter-text p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.chapter-text code { color: var(--ink); background: var(--spot-soft); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.scene { position: relative; }

.scene-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.scene-head span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.progress { display: block; margin-top: 12px; height: 4px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--w, 0%); background: var(--spot); transition: width 1.6s var(--ease); }
.moves { list-style: none; margin-top: 18px; border-top: 1.5px solid var(--ink); }
.moves li { display: grid; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; gap: 2px; }
.moves s { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.moves span { font-weight: 600; color: var(--faint); transition: color 500ms var(--ease); }
.moves li.done span { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1.5px solid var(--ink); }
.stats div { display: grid; padding: 10px 12px 2px 0; }
.stats div + div { border-left: 1px solid var(--hair); padding-left: 14px; }
.stats b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.stats span { font-size: 12.5px; color: var(--muted); }

.searchbox {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 9px 14px; border-radius: 6px;
  border: 2px solid var(--spot); font-size: 16px; background: var(--bg);
}
.scene-search { min-height: 290px; }
.ph { color: var(--faint); margin-left: -6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest { position: absolute; z-index: 2; top: 62px; left: 0; right: 0; padding: 8px; background: var(--sheet); border: 1px solid var(--hair);
  border-radius: 10px; box-shadow: var(--lift); transform-origin: 50% 0; animation: suggest-in 260ms cubic-bezier(0.32, 0.72, 0, 1) both; }
.suggest[hidden] { display: none; }
@keyframes suggest-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.suggest p { margin: 2px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.suggest ul { list-style: none; }
.suggest li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px;
  border-radius: 8px; font-size: 13px; color: var(--muted); transition: opacity 250ms var(--ease); }
.suggest li span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest li.on { background: var(--spot-soft); }
.suggest li.out { display: none; }
.suggest kbd { font: 12px var(--mono); color: var(--faint); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; font-style: normal; white-space: nowrap; }
.c-mb { background: linear-gradient(115deg, #ba478f, #c24a1a); } /* app colours, light ends deepened so white text reads */
.c-sk { background: linear-gradient(115deg, #1a6fd0, #0f6cbd); }
.c-dz { background: linear-gradient(115deg, #7b22d6, #d6297c); }
.c-it { background: linear-gradient(115deg, #d81b3a, #d41d40); }
.results img.alt { filter: grayscale(1) contrast(1.15); }
.results .fmt { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--field); border-radius: 2px;
  font: 700 10.5px var(--mono); color: var(--muted); }
.results em.btn { flex: none; padding: 4px 10px; border: 1px solid var(--field); border-radius: 6px; color: var(--ink); }
.results span { min-width: 0; }
.results b { overflow-wrap: anywhere; }
.caret { width: 2px; height: 20px; background: var(--spot); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bang { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 700; }
.bang[hidden] { display: none; }
.bang i { width: 11px; height: 11px; border-radius: 50%; background: #fff; opacity: 0.9; }
.results { list-style: none; margin-top: 16px; border-top: 1.5px solid var(--ink); }
.results li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; color: var(--muted); }
.results img { width: 52px; height: 52px; border-radius: 2px; box-shadow: var(--cover-shadow); }
.results span { flex: 1; display: grid; }
.results b { color: var(--ink); font-size: 15px; letter-spacing: -0.01em; }
.results em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.results em.have { color: var(--spot); background: var(--spot-soft); padding: 2px 8px; border-radius: 4px; }
.js .scene-search .results li { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.js .scene-search .results li.in { opacity: 1; transform: none; }

.activity { list-style: none; border-top: 1.5px solid var(--ink); }
.activity li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.activity .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--spot-soft); flex: none; position: relative; }
.activity .tick::after { content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: solid var(--spot); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.activity span { flex: 1; display: grid; font-size: 14.5px; }
.activity small { font-size: 13px; color: var(--muted); }
.activity em { font-style: normal; color: var(--spot); font-weight: 600; }
.activity button { border: 0; background: none; color: var(--spot); font-weight: 600; font-size: 14px; padding: 6px 4px; border-radius: 6px; transition: background-color 200ms, color 200ms; }
.activity li.undone small { text-decoration: line-through; text-decoration-thickness: 1px; }
.activity li.undone button { color: var(--muted); }
.activity button.press { background: var(--spot-soft); }
.verify { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.trash { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 12px; border-top: 1.5px solid var(--ink); }
.trash span { flex: 1; display: grid; font-size: 14.5px; }
.trash small { font-size: 13px; color: var(--muted); }
.trash button { height: 32px; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px; background: var(--sheet); font-size: 13px; font-weight: 600; }
.verify i { width: 8px; height: 8px; border-radius: 50%; background: var(--spot); box-shadow: 0 0 0 4px var(--spot-soft); }

.scene-phone { display: grid; place-items: center; background: none; box-shadow: none; padding: 0; }
.phone {
  width: 280px; height: 540px; border-radius: 40px; padding: 18px 14px; background: var(--bg);
  border: 8px solid color-mix(in oklab, var(--ink) 88%, transparent); box-shadow: var(--lift); overflow: hidden; position: relative;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; }
.pm { width: 26px; height: 26px; border-radius: 2px; background: var(--spot); color: var(--on-ink); display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.ps { width: 150px; height: 28px; border-radius: 6px; border: 1px solid var(--field); display: flex; align-items: center; padding: 0 9px; font-size: 11px; color: var(--faint); }
.phone-album { display: flex; gap: 12px; align-items: flex-end; padding: 8px 6px 14px; }
.phone-album img { width: 86px; height: 86px; border-radius: 2px; box-shadow: var(--cover-shadow); }
.phone-album div { display: grid; }
.phone-album b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.phone-album span { font-size: 12px; color: var(--muted); }
.phone-album em { font-style: normal; justify-self: start; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--spot); background: var(--spot-soft); padding: 2px 7px; border-radius: 3px; }
.phone-tracks { list-style: none; border-top: 1.5px solid var(--ink); margin: 0 6px; }
.phone-tracks li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 14px; font-weight: 600; }
.phone-tracks b { width: 18px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.phone-tracks li.on, .phone-tracks li.on b { color: var(--spot); }
.phone-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 16px 18px 22px;
  background: var(--sheet); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.12); font-size: 14px;
  transform: translateY(100%); transition: transform 600ms var(--ease);
}
.phone-sheet span { color: var(--muted); font-size: 12px; }
.phone-sheet b { flex: 1; border-bottom: 1px solid var(--spot); padding-bottom: 2px; }
.phone-sheet button { border: 0; background: var(--ink); color: var(--on-ink); border-radius: 6px; height: 32px; padding: 0 12px; font-weight: 600; font-size: 13px; }
.phone-sheet.up { transform: none; }

/* Close */
.more { max-width: 1480px; margin: 0 auto; padding: 0 var(--pad); }
.more-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px);
  border-top: 1.5px solid var(--ink); padding: clamp(48px, 8vh, 88px) 0 clamp(56px, 9vh, 96px); }
.more h2 { font-size: clamp(32px, 3.4vw, 50px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.more-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 44px); }
.more-list li { display: grid; align-content: start; gap: 4px; padding: 14px 0 16px; border-top: 1px solid var(--hair); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.more-list li:nth-child(-n+2) { border-top: 1.5px solid var(--ink); }
.more-list b { color: var(--ink); font-size: 15.5px; letter-spacing: -0.01em; }
.more-list code { color: var(--ink); white-space: nowrap; }
.more-list .chip { height: 20px; padding: 0 7px; font: 700 11.5px var(--mono); vertical-align: 1px; margin-right: 2px; }
.soon { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: 8px; padding-top: 16px; border-top: 1.5px solid var(--ink); font-size: 15px; font-weight: 600; }
.soon b { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--spot); margin-right: 4px; }
.soon span + span::before { content: "·"; color: var(--faint); margin: 0 14px 0 -12px; }
.close { max-width: 1480px; margin: 0 auto; padding: 0 var(--pad) 56px; }
.close-inner { border-top: 1.5px solid var(--ink); padding-top: clamp(64px, 10vh, 112px); }
.close h2 { font-size: clamp(38px, 4.6vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; max-width: 12em; }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 8px; }
.facts { list-style: none; margin-top: 36px; border-top: 1.5px solid var(--ink); }
.facts li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.facts b { font-weight: 700; }
.facts span { color: var(--muted); text-align: right; }

.foot {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 28px var(--pad) max(32px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--faint);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.heart { width: 0.85em; height: 0.85em; vertical-align: -0.06em; fill: var(--spot); }

/* Medium */
@media (max-width: 1100px) {
  .hero, .chapters, .more-inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .chapter-stage { display: none; }
  .chapter { display: grid; gap: 24px; min-height: 0; padding: 40px 0 48px; }
  .chapter .scene { display: block; }
  .stage { max-width: 640px; }
  .scene { max-width: 640px; }
  .close-grid { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 640px) {
  .top nav a:not(.gh) { display: none; }
  .hero { padding-top: 28px; gap: 36px; }
  .lede { font-size: 17px; }
  .get { margin-top: 28px; }
  .cmd code { font-size: 12.5px; }
  .stage { min-height: 600px; }
  .steps { gap: 14px; }
  .credits div { grid-template-columns: 74px 1fr; font-size: 14px; }
  .wall { inset: 0 -22% -6% -4%; gap: 14px; } /* stays inside the stage: never over the install panel */
  .wall .col { gap: 12px; }
  .wall .col:nth-child(2) { margin-top: -40px; }
  .wall .col:nth-child(3) { margin-top: 30px; }
  .wall figcaption { font-size: 11px; }
  .wall figcaption b { font-size: 12px; }
  .wall { --fade-a: 74%; --fade-b: 90%; }
  .more-list { grid-template-columns: 1fr; }
  .more-list li:nth-child(2) { border-top: 1px solid var(--hair); }
  .suggest li span:nth-child(2) { display: none; }
  .suggest li { grid-template-columns: auto 1fr; }
  .suggest kbd { justify-self: end; }
  .moves li:nth-child(n+4), .phone-tracks li:nth-child(-n+2) { display: none; } /* a shorter page on phones */
  .phone { height: 470px; }
  .moves span { font-size: 13px; }
  .chapter-text p, .facts li { font-size: 16px; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
.js .stage .wall figure.new { transform: none; } /* measured for the cover's flight; hidden until it lands */
