/* =====================================================================
   Decklume website: the contact sheet.
   Print paper, film strips, edge numbers, grease pencil. The chrome is
   achromatic; colour only ever arrives inside a frame, from the slides.
   ===================================================================== */

:root {
  --paper: #f1eee7;
  --paper-white: #faf8f3;
  --paper-shade: #e6e2d8;
  --ink: #0d0d0d;
  --ink-2: #3d3a35;
  --ink-3: #5c5850;
  --line: rgba(13, 13, 13, 0.14);
  --line-strong: rgba(13, 13, 13, 0.32);
  --film: #0d0d0d;
  --film-2: #1c1c1c;
  --film-hole: #3a3936;
  --edge: #b9b4a8;
  --red: #e4362b;
  --red-ink: #b3261c;
  --yellow: #f2c230;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --hand: "Reenie Beanie", "Bradley Hand", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 6px;
  --shadow-print: 0 1px 2px rgba(13, 13, 13, 0.12), 0 18px 40px -18px rgba(13, 13, 13, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--red);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: 0.82em; }
:not(pre) > code { background: var(--paper-shade); padding: 0.12em 0.4em; border-radius: 4px; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0.1em 0.45em; background: var(--paper-white); white-space: nowrap; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--ink-3) var(--paper-shade); scrollbar-width: thin; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.icon { flex: none; }

/* --- Masthead ------------------------------------------------------------- */
.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { font: 900 26px/1 var(--display); letter-spacing: -0.04em; text-decoration: none; }
.masthead ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.masthead li a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  font: 600 15px/1 var(--text); letter-spacing: -0.005em;
  text-decoration: none; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.masthead li a:hover { background: var(--paper-shade); color: var(--ink); }
.masthead li a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.masthead .nav-gh { background: var(--ink); color: var(--paper) !important; }
.masthead .nav-gh:hover { background: var(--film-2) !important; }
.nav-toggle { display: none; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 16px/1 var(--text); letter-spacing: -0.01em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 16px -8px rgba(13, 13, 13, 0.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(13, 13, 13, 0.7); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--paper-shade); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-icon { padding: 0; width: 48px; }

/* --- Command (copyable) --------------------------------------------------- */
.cmd {
  display: flex; align-items: stretch;
  background: var(--paper-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.cmd code {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  font-size: 13px; line-height: 1.5;
  background: none;
  white-space: normal; overflow-wrap: normal; word-break: normal;
}
.cmd-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; border: 0; border-left: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
  font: 600 13px/1 var(--text); cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.cmd-copy:hover { background: var(--paper-shade); }
.cmd-copy .i-done { display: none; }
.cmd-copy.is-copied { background: var(--ink); color: var(--paper); }
.cmd-copy.is-copied .i-copy { display: none; }
.cmd-copy.is-copied .i-done { display: block; }
.cmd-big code { font-size: 15px; padding: 16px 18px; }
.cmd-big .cmd-copy { padding: 0 20px; }

/* --- Grease pencil ---------------------------------------------------------- */
.grease { position: absolute; overflow: visible; pointer-events: none; }
.grease path {
  fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  opacity: 0.94;
}
@keyframes draw { from { stroke-dashoffset: 1; } }
.note { font: 400 44px/1 var(--hand); color: var(--red-ink); pointer-events: none; }

/* --- Film strips and frames ------------------------------------------------- */
.sprockets, .strip::before, .strip::after {
  content: "";
  display: block;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12'%3E%3Crect x='7' y='2' width='14' height='8' rx='2' fill='%233a3936'/%3E%3C/svg%3E") repeat-x left center / 28px 12px;
}
.strip {
  --n: 4;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  column-gap: 12px;
  grid-template-rows: auto 1fr auto;
  background: var(--film);
  padding: 4px 12px;
}
.strip::before, .strip::after { grid-column: 1 / -1; margin: 0 -12px; }
.strip::before { grid-row: 1; }
.strip::after { grid-row: 3; }
.strip > .frame { grid-row: 2; }
.s2 { --n: 2; } .s3 { --n: 3; } .s4 { --n: 4; } .s5 { --n: 5; } .s6 { --n: 6; }
.frame { margin: 0; position: relative; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: var(--film-2); }
.frame-link { display: block; border-radius: 2px; }
.frame-link img { transition: transform 0.35s var(--ease), filter 0.35s var(--ease); }
.frame-link:hover img { transform: scale(1.025); filter: brightness(1.04); }
.edge {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 2px 0;
  font: 600 11px/1 var(--mono); letter-spacing: 0.06em;
  color: var(--edge);
}

/* --- Hero ---------------------------------------------------------------------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(8px, 1.6vw, 20px) var(--gutter) 0; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(24px, 4vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(52px, 6.6vw, 88px); line-height: 0.9; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero .lede { margin-top: 18px; max-width: 54ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero-act { display: grid; gap: 10px; }
.act-label { font: 600 14px/1.4 var(--text); color: var(--ink-3); }
.hero-act .btn { margin-top: 6px; justify-self: start; }

.sheet {
  position: relative;
  margin-top: clamp(24px, 2.6vw, 36px);
  background: var(--film);
  padding: clamp(12px, 1.6vw, 22px);
  border-radius: 3px;
  box-shadow: var(--shadow-print);
  display: grid;
  gap: clamp(10px, 1.2vw, 16px);
}
.sheet-low { display: grid; grid-template-columns: 4fr 2fr; gap: clamp(10px, 1.2vw, 16px); align-items: stretch; }
.strips { display: grid; gap: clamp(10px, 1.2vw, 16px); align-content: start; }
.sheet .strip { padding: 2px 0; }
.sheet .strip::before, .sheet .strip::after { margin: 0; }

.keeper .g-circle { inset: -16% -9% -24% -9%; width: 118%; height: 140%; z-index: 2; }
.keeper .g-circle path { animation: draw 1.1s 0.5s var(--ease) both; }
.note-mobile { display: none; }
.note-keep { position: absolute; z-index: 3; left: 47%; top: 31%; transform: rotate(-4deg); color: var(--yellow); }
.g-arrow { z-index: 3; left: 55%; top: 36%; width: 12%; height: 9%; }
.g-arrow path { stroke: var(--yellow); animation: draw 0.8s 1.4s var(--ease) both; }

/* The enlargement print, taped next to the sheet: the playable deck. */
.print {
  position: relative;
  background: var(--paper-white);
  padding: 12px 12px 8px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  transform: rotate(1deg);
  align-self: center;
}
.print-flat { transform: none; }
.screen { position: relative; aspect-ratio: 16 / 9; background: var(--film); overflow: hidden; border-radius: 1px; }
.screen .poster, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.screen iframe { opacity: 0; transition: opacity 0.4s var(--ease); }
.screen iframe.is-live { opacity: 1; }
.controls { display: flex; align-items: center; gap: 4px; padding-top: 8px; min-width: 0; }
.controls button, .controls .full {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.2s;
}
.controls button:hover, .controls .full:hover { background: var(--paper-shade); }
.count { font: 600 13px/1 var(--text); color: var(--ink-2); padding: 0 4px; font-variant-numeric: tabular-nums; }
.count b { color: var(--ink); font-weight: 600; }
.print-label { flex: 1; min-width: 0; text-align: right; font: 500 13px/1.2 var(--text); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.controls .full { margin-left: 2px; }

/* --- Bands ------------------------------------------------------------------- */
.band { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 144px) var(--gutter) 0; }
.band-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.band-head h2, .faq h2, .split-band h2 { font-size: clamp(38px, 5vw, 68px); }
.band-head p { margin-top: 18px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 62ch; }

/* --- Theme switcher ----------------------------------------------------------- */
.switch { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.viewer { background: var(--film); padding: clamp(10px, 1.4vw, 18px); border-radius: 3px; box-shadow: var(--shadow-print); position: sticky; top: 24px; }
.switch-side { display: grid; gap: 28px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 600 14px/1 var(--text); color: var(--ink-3); margin-bottom: 12px; padding: 0; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tpick {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center;
  padding: 6px; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--ink); text-align: left; cursor: pointer;
  font: 700 15px/1.1 var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.tpick img { width: 64px; aspect-ratio: 16 / 9; border-radius: 2px; object-fit: cover; }
.tpick:hover { background: var(--paper-white); }
.tpick[aria-pressed="true"] { background: var(--paper-white); box-shadow: inset 0 0 0 2px var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer;
  background: transparent; color: var(--ink-2);
  font: 600 14px/1 var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.2s, color 0.2s;
}
.chip:hover { background: var(--paper-white); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.theme-info { border-top: 1.5px solid var(--ink); padding-top: 18px; min-height: 172px; }
.theme-info > div { display: grid; gap: 8px; }
.ti-name { font: 800 30px/1 var(--display); letter-spacing: -0.03em; }
.theme-info p { color: var(--ink-2); }
.ti-for { font-size: 15px; }
.theme-info a, .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 6px; }

/* --- Story ------------------------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); }
.story-stage { position: relative; }
.stage-frame {
  position: sticky; top: max(24px, calc(50vh - 260px));
  aspect-ratio: 16 / 10;
  background: var(--film); color: var(--paper);
  border-radius: 3px; box-shadow: var(--shadow-print);
  overflow: hidden;
}
.stage-frame::before, .stage-frame::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: inherit; z-index: 2; }
.stage {
  position: absolute; inset: 0;
  padding: clamp(20px, 3vw, 44px);
  display: grid; align-content: center; gap: 22px;
  opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(6px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.6s var(--ease);
  pointer-events: none;
}
[data-story]:not(.is-ready) .stage[data-stage="1"],
.stage.is-active { opacity: 1; transform: none; filter: none; }
.term { font: 400 clamp(14px, 1.3vw, 18px)/1.6 var(--mono); color: #ece8df; }
.term .prompt { color: var(--yellow); }
.term.pass { display: inline-flex; gap: 10px; align-items: center; color: #ece8df; }
.term.pass .icon { color: var(--yellow); }
.answers { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.answers li { font: 600 13px/1 var(--text); padding: 9px 12px; border-radius: 999px; background: var(--film-2); color: #ece8df; box-shadow: inset 0 0 0 1px #3a3936; }
.outline { width: 100%; border-collapse: collapse; font-size: clamp(13px, 1.1vw, 15px); }
.outline th { text-align: left; font: 600 12px/1 var(--text); color: var(--edge); padding: 0 12px 10px 0; border-bottom: 1px solid #3a3936; }
.outline td { padding: 10px 12px 10px 0; border-bottom: 1px solid #262624; color: #ece8df; }
.outline td:nth-child(1), .outline td:nth-child(2) { font-family: var(--mono); font-size: 0.82em; color: var(--edge); white-space: nowrap; }
.approve { display: inline-flex; gap: 8px; align-items: center; font: 700 14px/1 var(--text); color: var(--ink); background: var(--yellow); padding: 10px 14px; border-radius: 999px; justify-self: start; }
.abc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.abc figure { margin: 0; position: relative; }
.abc img { border-radius: 2px; aspect-ratio: 16 / 9; object-fit: cover; }
.abc figcaption { font: 600 13px/1 var(--text); color: var(--edge); padding-top: 8px; }
.abc .g-circle { inset: -18% -10% -30% -10%; width: 120%; height: 150%; }
.stage.is-active .abc .g-circle path { animation: draw 0.9s 0.35s var(--ease) both; }
.qa-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qa-mini span { position: relative; }
.qa-mini img { border-radius: 1px; aspect-ratio: 16 / 9; object-fit: cover; }
.qa-mini span::after {
  content: ""; position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230d0d0d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat;
}
@keyframes tick { from { transform: scale(0); opacity: 0; } }
.stage.is-active .qa-mini span::after { animation: tick 0.35s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 200ms); }
.deliver { margin: 0; max-width: 62%; }
.deliver img { border-radius: 2px; }
.outputs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font: 400 clamp(12px, 1.1vw, 14px)/1.4 var(--mono); color: #ece8df; }
.outputs em { font-style: normal; color: var(--edge); margin-left: 10px; }
.story-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.story-steps li { counter-increment: s; min-height: 62vh; display: grid; align-content: center; gap: 12px; padding: 24px 0; color: var(--ink-3); transition: color 0.4s; }
.story-steps li:first-child { min-height: 40vh; align-content: start; padding-top: 8vh; }
.story-steps li:last-child { min-height: 50vh; }
.story-steps h3 { font-size: clamp(30px, 3vw, 44px); color: inherit; }
.story-steps p { font-size: 18px; max-width: 44ch; }
.story-steps li.is-active { color: var(--ink); }
.story-steps li.is-active p { color: var(--ink-2); }

/* --- QA inspector ----------------------------------------------------------- */
.qa-demo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.qa-slide-wrap { position: relative; container-type: inline-size; background: var(--film); padding: clamp(10px, 1.4vw, 18px); border-radius: 3px; box-shadow: var(--shadow-print); }
.qa-slide {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #fbfaf7; color: #172033;
  font-family: "Helvetica Neue", Arial, sans-serif;
  padding: 6cqw 6cqw 4cqw;
  display: grid; grid-template-rows: auto 1fr auto; gap: 3cqw;
}
.qs-head { position: relative; }
.qs-kicker { font-size: 1.25cqw; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #0f6e66; }
.qs-h { font: 600 4.2cqw/1.05 Georgia, serif; letter-spacing: -0.01em; color: #172033; margin-top: 0.8cqw; max-width: 30ch; }
.qs-badge {
  position: absolute; left: 50%; top: 2.6cqw;
  background: #0f6e66; color: #fff; font-size: 1.4cqw; font-weight: 700;
  padding: 0.6cqw 1.4cqw; border-radius: 99px;
  transition: all 0.6s var(--ease);
}
.qs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw; align-items: start; }
.qs-card { background: #fff; border: 1px solid rgba(23, 32, 51, 0.14); border-top: 0.35cqw solid #172033; border-radius: 0.4cqw; padding: 1.8cqw; font-size: 1.45cqw; line-height: 1.4; height: 13cqw; overflow: hidden; transition: height 0.6s var(--ease); }
.qs-card b { display: block; font: 600 2cqw/1.15 Georgia, serif; margin-bottom: 0.8cqw; }
.qs-card p { color: #3c4658; transition: color 0.5s; }
.qs-faint { color: #c4c7cc !important; }
.qs-source { font-size: 0.75cqw; color: #5d6676; transition: font-size 0.5s var(--ease); }
.qa-slide.is-fixed .qs-badge { left: auto; right: 0; top: 0; }
.qa-slide.is-fixed .qs-h { max-width: 22ch; }
.qa-slide.is-fixed .qs-card { height: auto; }
.qa-slide.is-fixed .qs-faint { color: #3c4658 !important; }
.qa-slide.is-fixed .qs-source { font-size: 1.1cqw; }
.qa-marks { position: absolute; inset: clamp(10px, 1.4vw, 18px); pointer-events: none; }
.mark { position: absolute; left: calc(var(--x) - var(--w) / 2); top: calc(var(--y) - var(--h) / 2); width: var(--w); height: var(--h); opacity: 0; }
.mark .grease { inset: 0; width: 100%; height: 100%; }
.mark.is-found { opacity: 1; }
.mark.is-found path { animation: draw 0.7s var(--ease) both; }
.qa-demo.is-fixed .mark { opacity: 0; transition: opacity 0.4s; }
.loupe {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(250, 248, 243, 0.2); color: var(--ink);
  backdrop-filter: blur(1px) brightness(1.06); -webkit-backdrop-filter: blur(1px) brightness(1.06);
  box-shadow: 0 0 0 5px var(--ink), 0 12px 24px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translate(var(--lx, 50%), var(--ly, 50%));
  transition: transform 0.7s var(--ease), opacity 0.3s;
}
.loupe .icon { display: none; }
.qa-demo.is-running .loupe { opacity: 1; }
.qa-panel { display: grid; gap: 22px; }
.qa-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: f; }
.findings li {
  position: relative;
  font-size: 15px; line-height: 1.45; color: var(--ink-3);
  padding: 12px 0 12px 32px; border-top: 1px solid var(--line);
}
.findings li::before { content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.findings li.is-found { color: var(--ink); }
.findings li.is-found::before { box-shadow: none; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.findings li.is-fixed::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23f2c230' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.findings li.is-fixed { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.findings code { background: none; padding: 0; color: var(--red-ink); font-weight: 600; }
.findings li.is-fixed code { color: var(--ink-3); }
.qa-result { display: flex; gap: 10px; align-items: center; font: 700 16px/1.4 var(--text); color: var(--ink-2); min-height: 1.4em; }
.qa-result.is-fail { color: var(--red-ink); }
.qa-result.is-pass { color: var(--ink); }
.qa-note { font-size: 14px; color: var(--ink-3); }

/* --- Install: the one calm panel ------------------------------------------- */
.install-panel {
  background: var(--paper-white);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: clamp(28px, 5vw, 72px);
  display: grid; gap: 32px;
  max-width: 1040px; margin: 0 auto;
}
.install-panel h2 { font-size: clamp(38px, 5vw, 68px); }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: i; }
.install-steps > li { counter-increment: i; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; }
.install-steps > li::before { content: counter(i); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--mono); }
.install-steps > li > p { font-weight: 600; align-self: center; }
.prompts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prompts .cmd code { font-size: 13px; }
.manual summary { cursor: pointer; font-weight: 700; }
.manual { border-top: 1px solid var(--line); padding-top: 20px; }
.manual[open] { display: grid; gap: 10px; }
.manual p { color: var(--ink-3); font-size: 15px; margin-top: 4px; }

/* --- Made for ----------------------------------------------------------------- */
.strip-wide { padding: 4px 16px; column-gap: 16px; }
.strip-wide::before, .strip-wide::after { margin: 0 -16px; }
.frame.aud figcaption { display: grid; gap: 6px; padding: 14px 2px 10px; color: var(--paper); }
.frame.aud figcaption a { font: 800 22px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.frame.aud figcaption a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.frame.aud figcaption span { font-size: 14px; line-height: 1.4; color: var(--edge); }

/* --- Comparison table ------------------------------------------------------- */
.ctable { width: 100%; border-collapse: collapse; font-size: 16px; }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.ctable thead th { font: 700 14px/1 var(--text); color: var(--ink-3); border-bottom: 1.5px solid var(--ink); padding-bottom: 12px; }
.ctable tbody th { font-weight: 700; width: 22%; }
.ctable td { color: var(--ink-3); }
.ctable td:last-child { color: var(--ink); font-weight: 600; }
.compare .more { margin-top: 24px; }

/* --- FAQ ------------------------------------------------------------------------ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line-strong); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 700 20px/1.3 var(--display); letter-spacing: -0.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-top: 12px; color: var(--ink-2); max-width: 68ch; }

/* --- Closing ------------------------------------------------------------------- */
.closing { max-width: 920px; margin: 0 auto; padding: clamp(96px, 12vw, 176px) var(--gutter) clamp(80px, 10vw, 128px); display: grid; gap: 28px; text-align: center; justify-items: center; }
.closing h2 { font-size: clamp(42px, 6vw, 88px); }
.closing .cmd { width: min(100%, 560px); text-align: left; }
.close-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Colophon ------------------------------------------------------------------ */
.colophon { background: var(--film); color: var(--edge); margin-top: clamp(64px, 8vw, 96px); }
.rebate { display: flex; justify-content: space-between; gap: 24px; overflow: hidden; padding: 8px var(--gutter) 6px; font: 600 11px/1 var(--mono); letter-spacing: 0.1em; white-space: nowrap; }
.rebate::before { content: none; }
.colophon .rebate { border-bottom: 12px solid transparent; border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12'%3E%3Crect x='7' y='2' width='14' height='8' rx='2' fill='%233a3936'/%3E%3C/svg%3E") 0 0 12 0 repeat; }
.colophon-grid { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 24px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.colophon .wordmark { color: var(--paper); }
.colophon-grid p { margin-top: 12px; max-width: 34ch; font-size: 15px; }
.colophon .col-h { font: 600 13px/1 var(--text); letter-spacing: 0.02em; color: #8f8a7f; margin-bottom: 14px; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.colophon a { color: #e4e0d6; text-decoration-color: #4a4843; }
.colophon a:hover { text-decoration-color: var(--yellow); }
.credit { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 40px; font-size: 13px; color: #8f8a7f; }
.colophon :focus-visible { outline-color: var(--yellow); }

/* --- Inner pages --------------------------------------------------------------- */
.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 88px) var(--gutter) 0; }
.page-head h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: 0.92; letter-spacing: -0.045em; max-width: 16ch; }
.lede { margin-top: 22px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.head-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.head-act .cmd { flex: 1 1 340px; max-width: 460px; }
.aud-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.aud-head .strip { transform: rotate(-1.5deg); box-shadow: var(--shadow-print); }
.makes { display: grid; gap: 0; margin: 0; }
.makes > div { display: grid; grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.6fr); gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.makes dt { font: 800 22px/1.15 var(--display); letter-spacing: -0.02em; }
.makes dd { margin: 0; }
.makes .cmd code { white-space: normal; }
.split-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 72px); }
.points { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.points dt { font: 800 21px/1.2 var(--display); letter-spacing: -0.02em; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.points dd { margin: 8px 0 0; color: var(--ink-2); }

.themes-list { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) 0; display: grid; gap: 28px; }
.trow { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.2fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.trow h2 { font-size: clamp(30px, 3vw, 42px); }
.trow h2 a { text-decoration: none; }
.trow h2 a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.trow p { margin-top: 10px; color: var(--ink-2); }
.trow-for { font-size: 15px; color: var(--ink-3) !important; }
.ex-kind { font: 600 14px/1.4 var(--text); color: var(--ink-3) !important; margin: 0 0 10px !important; }
.ex-play { margin-top: 20px; }
.ex-row .trow-copy { align-self: center; }
.ex-cta { margin-top: 24px; }

.crumbs { font: 600 14px/1 var(--text); color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); }
.theme-hero { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gutter) 0; }
.theme-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.theme-hero h1 { font-size: clamp(56px, 7vw, 96px); letter-spacing: -0.045em; }
.facts { margin: 28px 0 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { font: 600 14px/1.5 var(--text); color: var(--ink-3); }
.facts dd { margin: 0; }
.swatches { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 16px; }
.swatches li { display: grid; grid-template-columns: 28px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; font-size: 13px; }
.swatches .sw { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); }
.swatches code { background: none; padding: 0; color: var(--ink-3); font-size: 11px; }
.use-label { margin: 28px 0 10px; font-weight: 600; }
.sheet-full { margin-top: 0; }
.strip.wrap { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: none; row-gap: 18px; padding: 16px 0; }
.strip.wrap::before, .strip.wrap::after { display: none; }
.strip.wrap > .frame { grid-row: auto; }
.pager { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) 0; display: flex; justify-content: space-between; gap: 16px; }
.pager a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 24px/1.1 var(--display); letter-spacing: -0.02em; }
.pager small { display: block; font: 600 13px/1.4 var(--text); color: var(--ink-3); letter-spacing: 0; }
.pager a:last-child { text-align: right; }

.docs-grid { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.toc { position: sticky; top: 24px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1.5px solid var(--line-strong); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent; text-decoration: none; color: var(--ink-3); font-size: 15px; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(30px, 3vw, 40px); margin: 64px 0 16px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose p + .cmd, .prose .cmd + p, .prose .cmd + .cmd, .prose ul, .prose ol { margin-top: 14px; }
.prose ol, .prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }
.prose.narrow { margin-top: 56px; }
.keys { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.keys th { text-align: left; font: 700 14px/1 var(--text); color: var(--ink-3); padding: 0 0 10px; border-bottom: 1.5px solid var(--ink); }
.keys td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.keys td:first-child { white-space: nowrap; width: 34%; }
.cli { display: grid; gap: 0; margin: 14px 0 0; }
.cli > div { padding: 14px 0; border-top: 1px solid var(--line); }
.cli dt { font-weight: 700; }
.cli dt code { font-size: 13px; }
.cli dd { margin: 6px 0 0; color: var(--ink-2); }
.lost { min-height: 50vh; }

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .switch, .qa-demo, .story-grid { grid-template-columns: minmax(0, 1fr); }
  .viewer { position: static; }
  .story-stage { order: -1; }
  .stage-frame { position: sticky; top: 12px; z-index: 2; aspect-ratio: 16 / 10; max-height: 46vh; width: 100%; }
  .story-steps li, .story-steps li:first-child, .story-steps li:last-child { min-height: 46vh; padding-top: 24px; align-content: start; }
  .theme-hero-grid, .aud-head, .faq, .split-band { grid-template-columns: minmax(0, 1fr); }
  .colophon-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .masthead { position: relative; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--ink); color: var(--paper); cursor: pointer;
  }
  .nav-toggle .i-close { display: none; }
  .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
  .masthead ul {
    display: none; position: absolute; z-index: 20; right: var(--gutter); top: 72px;
    flex-direction: column; align-items: stretch; min-width: 220px; padding: 10px;
    background: var(--paper-white); border: 1.5px solid var(--ink); border-radius: 8px;
    box-shadow: var(--shadow-print);
  }
  .masthead ul.is-open { display: flex; }
  .masthead li a { font-size: 16px; padding: 12px 14px; }
  .hero-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sheet-low { grid-template-columns: minmax(0, 1fr); }
  /* Phones: strip 2 leads with the circled keeper, the print follows it. */
  .strips { display: contents; }
  .sheet-low > .strips > .strip:first-child { order: 0; }
  .print { order: 1; transform: none; }
  .sheet-low > .strips > .strip:last-child { order: 2; }
  .sheet .keeper { order: -1; }
  .note-keep, .g-arrow { display: none; }
  .note-mobile { display: block; position: absolute; z-index: 3; left: 118%; top: 24%; width: 90%; font-size: 38px; line-height: 0.9; color: var(--yellow); transform: rotate(-5deg); }
  .sheet .strip:has(.keeper) { overflow: visible; grid-template-columns: 44% minmax(0, 1fr); }
  .sheet .strip:has(.keeper) > .frame:not(.keeper) { display: none; }
  .sheet .strip { grid-template-columns: repeat(var(--n), 44%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .sheet .strip::-webkit-scrollbar { display: none; }
  .sheet .strip > .frame { scroll-snap-align: start; }
  .strip.s4.strip-wide, .strip.s3 { grid-template-columns: repeat(var(--n), 72%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .strip.wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trow { grid-template-columns: minmax(0, 1fr); }
  .makes > div { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .ctable { font-size: 14px; }
  .ctable tbody th { width: auto; }
  .pager a { font-size: 18px; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .colophon-grid { grid-template-columns: minmax(0, 1fr); }
  .print-label { display: none; }
  .ctable thead { display: none; }
  .ctable tr { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ctable th, .ctable td { border: 0; padding: 2px 0; }
  .ctable td:nth-of-type(1)::before { content: "frontend-slides: "; font-weight: 600; color: var(--ink-2); }
  .ctable td:nth-of-type(2)::before { content: "Decklume: "; }
  .install-steps > li { grid-template-columns: minmax(0, 1fr); }
  .install-steps > li::before { grid-row: auto; }
  .tpick { grid-template-columns: 48px 1fr; font-size: 14px; }
  .tpick img { width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .stage { filter: none; transform: none; }
}

@media print {
  .masthead nav, .hero-act, .controls, .qa-buttons, .colophon .rebate { display: none; }
}
