/* Block or Build, v8. Dark, in the explorations' family: warm near-black grounds, Archivo
   expanded display, mono labels. Block orange, build teal, hybrid amber. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-vf.woff2") format("woff2-variations"), url("fonts/archivo-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-normal-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0f0e0c;
  --paper: #191714;
  --sunk: #221f1b;
  --raised: #2c2924;
  --ink: #f4efe6;
  --ink-2: #cfc7b9;
  --ink-3: #9d9588;
  --line: rgba(244, 239, 230, 0.12);
  --line-2: rgba(244, 239, 230, 0.22);
  --clay: #b5afa4;
  --block: #ff7a45;
  --block-ink: #ff9b6e;
  --block-soft: #24160f;
  --build: #35cdb3;
  --build-ink: #74e4cd;
  --build-soft: #0f211d;
  --hybrid: #f2b84a;
  --hybrid-ink: #f8cc72;
  --hybrid-soft: #251d0e;
  --wrap: 1240px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --pad: clamp(16px, 3.4vw, 40px);
  --bar-h: 60px;
  --r: 10px;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --exploration-footer-bg: #0f0e0c;
  --exploration-footer-ink: #cfc7b9;
  --exploration-footer-border: rgba(244, 239, 230, 0.12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 70px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17.5px/1.58 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.06; text-wrap: balance; letter-spacing: -0.01em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--hybrid); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gut), var(--pad)); padding-right: max(var(--gut-r), var(--pad)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.m { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0.01em; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.4em; white-space: nowrap; }
.b { color: var(--block-ink); }
.u { color: var(--build-ink); }
.h { color: var(--hybrid-ink); }
.or { font-family: var(--mono); font-weight: 500; font-size: 0.42em; letter-spacing: 0.06em; color: var(--ink-3); vertical-align: 0.55em; text-transform: lowercase; }
.dot { display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; margin-right: 0.5em; vertical-align: 0.04em; flex: none; }
.dot.b { background: var(--block); }
.dot.u { background: var(--build); border-radius: 2px; }
.dot.h { background: var(--hybrid); border-radius: 2px; transform: rotate(45deg) scale(0.85); }
.kicker, .eyebrow, .label {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.kicker .n { color: var(--ink); }
.kicker .n::after { content: " /"; color: var(--ink-3); }

/* ---------------------------------------------------------------- top bar */
.bar {
  position: sticky; top: 0; z-index: 40;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: max(var(--gut), var(--pad)); padding-right: max(var(--gut-r), var(--pad));
  background: rgba(15, 14, 12, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.bar-home { flex: none; min-height: 40px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.bar-home img { width: 98px; height: auto; }
.bar-home:hover .bar-sec { color: var(--ink); }
.bar-slash { color: var(--ink-3); }
.bar-title { text-decoration: none; font-weight: 820; font-stretch: 118%; font-size: 17px; white-space: nowrap; padding-left: 18px; border-left: 1px solid var(--line); }
.bar-title .or { font-size: 11px; vertical-align: 0.15em; margin: 0 2px; }
.bar-right { display: flex; align-items: center; gap: 4px; }
.bar-actions { display: flex; align-items: center; gap: 2px; }
.bar-action {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 11px; border-radius: 8px;
  text-decoration: none; font-size: 14.5px; color: var(--ink-2); white-space: nowrap;
}
.bar-action svg { width: 17px; height: 17px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bar-action svg path[fill="none"] { fill: none; }
.bar-action:hover { color: var(--ink); background: var(--sunk); }
.bar-make { margin-left: 6px; background: var(--ink); color: var(--bg); font-weight: 700; }
.bar-make:hover { background: #fff; color: var(--bg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font-size: 16.5px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: #fff; }
.btn-line { background: rgba(15, 14, 12, 0.55); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-2); background: rgba(15, 14, 12, 0.85); }

/* ---------------------------------------------------------------- hero: the temple, blockout under the line */
.hero {
  position: relative; overflow: hidden; background: #0a0908;
  min-height: max(600px, min(calc(100vh - var(--bar-h)), 920px));
  display: flex; align-items: flex-end;
}
.hero-media { --w1: 30%; --w2: 64%; --gy: 40px; position: absolute; inset: 0; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-layer { position: absolute; inset: 0; }
.hero-build { clip-path: inset(0 calc(100% - var(--w2)) 0 0); }
.hero-block { clip-path: inset(0 calc(100% - var(--w1)) 0 0); }
.hero-line { position: absolute; top: 0; bottom: 0; left: var(--w1); width: 2px; margin-left: -1px; background: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; z-index: 2; }
.hero-line.l2 { left: var(--w2); }
.hero-line .w-grip { top: var(--gy); width: 38px; height: 38px; margin: -19px 0 0 -19px; pointer-events: auto; cursor: ew-resize; }
.hero-line .w-tag { top: var(--gy); transform: translateY(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.hero-line .w-tag .dot { width: 7px; height: 7px; margin: 0; }
.hero-line .w-tag.l { left: auto; right: 28px; }
.hero-line .w-tag.r { right: auto; left: 28px; }
.hero-media:has(.r1:focus-visible) .l1 .w-grip,
.hero-media:has(.r2:focus-visible) .l2 .w-grip { outline: 2px solid var(--hybrid); outline-offset: 3px; }
/* Block, Build or Both: which playblast sits over the render */
.hero .t-render, .hero .l2 .t-build { display: none; }
.hero[data-mode="block"] .l1 .t-build, .hero[data-mode="block"] .l2, .hero[data-mode="block"] .r2, .hero[data-mode="block"] .hero-build { display: none; }
.hero[data-mode="block"] .l1 .t-render { display: inline-flex; }
.hero[data-mode="build"] .l1, .hero[data-mode="build"] .r1, .hero[data-mode="build"] .hero-block { display: none; }
.hero[data-mode="build"] .l2 .t-build { display: inline-flex; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 14, 12, 0) 28%, rgba(15, 14, 12, 0.5) 58%, rgba(15, 14, 12, 0.95) 100%),
    linear-gradient(90deg, rgba(15, 14, 12, 0.72) 0%, rgba(15, 14, 12, 0) 58%);
}
/* 2026-11-03: the copy sits 80 px higher and, past 1400 px, 80 px further left than the content column */
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: calc(var(--wrap) + 160px); padding-top: 76px; padding-bottom: 104px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; max-width: 720px; }
.hero .eyebrow { color: var(--ink-2); margin-bottom: 18px; }
.hero h1 { font-size: clamp(60px, 10.8vw, 156px); font-stretch: 125%; font-weight: 860; letter-spacing: -0.03em; line-height: 0.88; max-width: none; }
.hero h1 .b { color: var(--block-ink); }
.hero h1 .u { color: var(--build-ink); }
.hero h1 .or { font-size: 0.22em; vertical-align: 0.95em; margin: 0 0.12em; color: var(--ink-2); }
.hero-answer { margin-top: 20px; font-size: clamp(23px, 2.7vw, 36px); font-weight: 780; font-stretch: 115%; letter-spacing: -0.01em; line-height: 1.12; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.hero-answer .b { color: var(--block-ink); }
.hero-answer .u { color: var(--build-ink); }
.hero-sub { margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); max-width: 640px; }
.hero-sub b { font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-side {
  position: absolute; z-index: 3; right: max(var(--gut-r), var(--pad)); bottom: 24px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 380px;
}
.hero-ctl { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.hero-pick {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(15, 14, 12, 0.82);
}
.hero-pick button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 13px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
}
.hero-pick button:hover { color: var(--ink); background: rgba(244, 239, 230, 0.08); }
.hero-pick button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.hero-pick .dot { width: 8px; height: 8px; margin: 0; }
.hero-pick .dots { display: inline-flex; gap: 3px; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(15, 14, 12, 0.75);
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
}
.motion-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
.motion-toggle .i-play, .motion-toggle .i-pause { width: 10px; height: 10px; }
/* 2026-11-03 (Sara's review, a crowded hero): the hero's motion switch is an icon, its label read by screen readers only */
.hero .motion-toggle { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- intro strip: for, what was made, what Scenario did */
.intro { border-bottom: 1px solid var(--line); padding-block: 40px 30px; }
.intro-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.intro-cols p { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.intro-cols .label { display: block; margin-bottom: 8px; }
.chapters { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chapters a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--ink-2);
}
.chapters a span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.chapters a:hover { border-color: var(--line-2); color: var(--ink); background: var(--paper); }

/* ---------------------------------------------------------------- sections */
.sec { padding-block: clamp(72px, 9vw, 120px) 0; }
.sec-head { max-width: 900px; margin-bottom: clamp(30px, 4vw, 46px); }
.nw { white-space: nowrap; }
.sec-head h2 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 840; font-stretch: 118%; letter-spacing: -0.025em; line-height: 0.98; }
.sec-head h2 em { font-style: normal; color: var(--ink-3); }
.sec-head p.lead { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 40em; }

/* ---------------------------------------------------------------- 01 how it works: three steps, step 1 in focus */
.pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.step { position: relative; min-width: 0; }
.step-media { position: relative; border-radius: var(--r); background: var(--sunk); }
.step-media img, .step-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.step-media .zoom { width: 100%; border-radius: var(--r); }
.step:not(:last-child) .step-media::after {
  content: ""; position: absolute; z-index: 2;
  right: -32px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  background: var(--ink-3); clip-path: polygon(20% 8%, 92% 50%, 20% 92%);
}
.step-t { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.step-n { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; color: var(--ink); }
.step h3 { font-size: 24px; font-weight: 820; font-stretch: 114%; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }
.step-focus .step-media { outline: 3px solid var(--block); outline-offset: 6px; }
.step-focus .step-n { background: var(--block); border-color: var(--block); color: var(--bg); }
.step-focus h3 { font-size: 28px; }
.focus-tag {
  position: absolute; z-index: 3; left: 12px; top: 12px;
  background: var(--block); color: var(--bg); border-radius: 999px; padding: 4px 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- 02 the stand-ins */
.opts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--block); border-radius: 14px; overflow: hidden; }
.card.u { border-top-color: var(--build); }
.card.h { border-top-color: var(--hybrid); }
.card .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; order: -1; }
.card .tiles button { width: 100%; border-radius: 0; }
.card .tiles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .tiles .wide { grid-column: 1 / -1; height: 100%; }
.card .tiles .wide img { height: 100%; aspect-ratio: 8 / 3; }
.card h3 { padding: 20px 22px 0; font-size: clamp(30px, 3vw, 40px); font-weight: 860; font-stretch: 125%; letter-spacing: -0.025em; }
.card h3.b { color: var(--block-ink); }
.card h3.u { color: var(--build-ink); }
.card h3.h { color: var(--hybrid-ink); }
.card p { padding: 8px 22px 22px; font-size: 16.5px; color: var(--ink-2); }
.card p b { color: var(--ink); display: block; }

/* ---------------------------------------------------------------- 03 the rule */
/* the two cards share their rows (kicker, title, text, pictures, note), so both line up */
.rule { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.rule-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; border-radius: 16px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); }
.rule-card.u { background: var(--build-soft); border-color: rgba(53, 205, 179, 0.28); }
.rule-card.b { background: var(--block-soft); border-color: rgba(255, 122, 69, 0.28); }
.rule-k { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.rule-card.u .rule-k { color: var(--build-ink); }
.rule-card.b .rule-k { color: var(--block-ink); }
.rule-card h3 { margin-top: 10px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 850; font-stretch: 120%; letter-spacing: -0.02em; }
.rule-card > p { margin-top: 12px; font-size: 17.5px; color: var(--ink-2); max-width: 32em; }
.ev { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev figure { margin: 0; min-width: 0; }
.ev .zoom { width: 100%; }
.ev img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.ev .wide { grid-column: 1 / -1; margin-top: 6px; }
.ev .wide img { aspect-ratio: 1962 / 330; }
.ev figcaption { margin-top: 7px; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.ev figcaption b { color: var(--ink); }
.ev figcaption b.b { color: var(--block-ink); }
.ev figcaption b.u { color: var(--build-ink); }
.rule-card > p.rule-note { margin-top: 16px; font-size: 15.5px; padding-top: 14px; border-top: 1px solid var(--line); align-self: start; }
.ev .wipe { border-radius: 8px; }
.ev .wipe .w-tag { font-size: 10.5px; padding: 4px 7px; }
.ev .wipe .w-grip { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.rule-strip { margin: 16px 0 0; padding: clamp(18px, 2.4vw, 26px); border-radius: 16px; background: var(--block-soft); border: 1px solid rgba(255, 122, 69, 0.28); }
.rule-strip .zoom { display: block; width: 100%; }
.rule-strip img { display: block; width: 100%; aspect-ratio: 1962 / 330; object-fit: cover; border-radius: 8px; }
.rule-strip figcaption { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; font-size: 15px; color: var(--ink-2); }
.rule-strip figcaption b { color: var(--ink); }
.rule-strip figcaption b.b { color: var(--block-ink); }
.rule-strip figcaption small { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-3); }
.rule-note a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
.rule-hybrid {
  margin-top: 16px; border-radius: 16px; padding: clamp(20px, 3vw, 28px);
  background: var(--hybrid-soft); border: 1px solid rgba(242, 184, 74, 0.28);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: baseline;
}
.rule-hybrid .rule-k { color: var(--hybrid-ink); }
.rule-hybrid p { font-size: clamp(20px, 2vw, 25px); font-weight: 750; font-stretch: 108%; line-height: 1.3; }

/* ---------------------------------------------------------------- 04 six habits */
.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; counter-reset: p; }
.practices li { counter-increment: p; position: relative; padding: 20px 0 20px 56px; border-top: 1px solid var(--line); }
.practices li::before {
  content: counter(p); position: absolute; left: 0; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 16px; font-stretch: 112%;
}
.practices b { display: block; font-size: 19.5px; line-height: 1.3; }
.practices span { display: block; margin-top: 5px; color: var(--ink-2); font-size: 16.5px; }
.practices a { color: var(--ink-3); font-size: 14.5px; white-space: nowrap; text-underline-offset: 3px; }
.practices a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- 05 examples: how to read them, and the four groups */
.legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.legend li { min-width: 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.legend b { display: flex; align-items: center; gap: 9px; font-size: 16.5px; }
.legend b span { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 500; font-size: 11.5px; }
.legend li > span { display: block; margin-top: 4px; color: var(--ink-3); font-size: 14.5px; line-height: 1.4; }
.index { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.index-card { min-width: 0; display: grid; gap: 10px; align-content: start; padding: 12px 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.index-card:hover { border-color: var(--line-2); background: var(--sunk); }
.index-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; }
.index-k { font-size: 23px; font-weight: 850; font-stretch: 120%; letter-spacing: -0.015em; padding-inline: 2px; }
.index-list { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; padding-inline: 2px; }
.index-list b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 5px; border-radius: 50%; background: var(--sunk); border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--ink); }
.index-list b:not(:first-child) { margin-left: 10px; }

/* sticky group nav */
.catnav {
  position: sticky; top: var(--bar-h); z-index: 30; margin-top: clamp(56px, 7vw, 88px);
  background: rgba(15, 14, 12, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.catnav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 999px;
  text-decoration: none; font-size: 15px; color: var(--ink-2); white-space: nowrap; border: 1px solid transparent;
}
.catnav a:hover { color: var(--ink); border-color: var(--line-2); }
.catnav a[aria-current="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }

/* groups */
.cat { padding-block: clamp(64px, 8vw, 104px) 0; }
.cat-head { max-width: 900px; margin-bottom: 26px; }
.cat-k { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.cat-head h2 { font-size: clamp(52px, 8.4vw, 116px); font-weight: 870; font-stretch: 125%; letter-spacing: -0.035em; line-height: 0.9; }
.cat-head p { margin-top: 14px; font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 40em; }

/* one example */
.ex { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2.6vw, 30px); }
.ex + .ex { margin-top: 28px; }
.ex-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px 36px; align-items: start; margin-bottom: 22px; }
.ex-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ex-n { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.ex-use { border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; letter-spacing: 0.08em; }
.ex h3 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 850; font-stretch: 120%; letter-spacing: -0.02em; }
.ex-shot { margin-top: 10px; font-size: 18px; color: var(--ink); max-width: 34em; }
.ex-shot .row-k, .ex-take small { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.ex-take {
  background: var(--sunk); border-left: 4px solid var(--ink-3); border-radius: 0 12px 12px 0;
  padding: 16px 20px; font-size: 18.5px; font-weight: 650; line-height: 1.42;
}
.ex-take.b, .ex-take.u, .ex-take.h, .opt, .card { color: var(--ink); }
.ex-take.b { border-left-color: var(--block); }
.ex-take.u { border-left-color: var(--build); }
.ex-take.h { border-left-color: var(--hybrid); }
.ex-take .b, .ex-take .u, .ex-take .h { font-weight: 800; }
.ex-note { margin: -6px 0 18px; color: var(--ink-3); font-size: 15px; max-width: 46em; }

.ex-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.ctl {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--sunk); cursor: pointer;
}
.ctl:hover { border-color: var(--ink-2); }
.i-play, .i-pause { display: block; width: 13px; height: 13px; background: var(--ink); }
.i-play { clip-path: polygon(15% 0, 100% 50%, 15% 100%); }
.i-pause { clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0); }
.seek {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--sunk); cursor: pointer; font-family: var(--mono); font-size: 12.5px; color: var(--ink);
}
.seek::before { content: ""; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent currentColor; }
.seek:hover { border-color: var(--ink-2); }
.ctl-k { font-size: 14.5px; color: var(--ink-3); margin: 0 2px 0 4px; }

/* the options side by side: one card each */
.cols { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 16px; }
.opt { min-width: 0; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--block); border-radius: 12px; overflow: hidden; }
.opt.u { border-top-color: var(--build); }
.opt.h { border-top-color: var(--hybrid); }
.opt-std { display: flex; align-items: center; gap: 14px; padding: 14px; min-height: 92px; }
.opt-std .zoom { flex: none; width: 88px; }
.opt-std .zoom img { width: 88px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--sunk); }
.opt-std p { font-size: 16px; line-height: 1.35; color: var(--ink-2); }
.opt-k { display: block; font-size: 21px; font-weight: 850; font-stretch: 118%; letter-spacing: -0.01em; margin-bottom: 2px; color: var(--block-ink); }
.opt.u .opt-k { color: var(--build-ink); }
.opt.h .opt-k { color: var(--hybrid-ink); }
.opt .wipe { border-radius: 0; }
.res-line { padding: 12px 14px 0; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.pc { margin: 12px 14px 0; padding: 12px 0 14px; display: grid; gap: 7px; border-top: 1px solid var(--line); }
.pc li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.42; color: var(--ink-2); }
.pc li::before {
  position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 13px; line-height: 1;
}
.pc li.pro { color: var(--ink); }
.pc li.pro::before { content: "+"; background: var(--ink); color: var(--bg); }
.pc li.con::before { content: "\2212"; border: 1px solid var(--ink-3); color: var(--ink-3); }

/* setup disclosure: the still, the one sentence that changed, the models */
/* close on the legs: nested rows inside the run and the wolf, each with its own clock and line */
.close { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.close-head h4 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 820; font-stretch: 115%; letter-spacing: -0.01em; }
.close-head p { margin-top: 6px; font-size: 16px; color: var(--ink-2); max-width: 48em; }
.close-row { margin-top: 22px; }
.close-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.close-t h5 { font-size: 19px; font-weight: 780; font-stretch: 110%; }
.close-t p { font-size: 15px; color: var(--ink-3); }
.close-t .ex-ctl { margin: 0 0 0 auto; align-self: center; }
.v-setup { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.v-setup summary { cursor: pointer; padding: 0 16px; min-height: 52px; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; align-items: center; gap: 10px; }
.v-setup summary::-webkit-details-marker { display: none; }
.v-setup summary::before { content: "+"; font-family: var(--mono); color: var(--ink-3); width: 14px; }
.v-setup[open] summary::before { content: "\2212"; }
.v-setup summary span { font-weight: 400; color: var(--ink-3); }
.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 22px; padding: 2px 16px 18px; }
.setup-grid figure { margin: 0; min-width: 0; }
.setup-grid .zoom { width: 100%; }
.setup-grid img { width: 100%; border-radius: 8px; background: var(--sunk); }
.setup-grid figcaption { margin-top: 7px; font-size: 13.5px; color: var(--ink-3); }
.setup-grid dl { margin: 0; display: grid; gap: 16px; align-content: start; min-width: 0; }
.setup-grid dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.setup-grid dd { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.52; }
.setup-grid dd p + p { margin-top: 8px; }
.setup-grid q { quotes: "\201C" "\201D"; color: var(--ink); }
.setup-grid .m { white-space: normal; }
.src-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.src-note a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- wipe: blockout left of the line, result right */
.wipe {
  position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 16 / 9; background: #000; touch-action: pan-y; cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
}
.wipe > video, .wipe > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.w-clay { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--w, 50%)) 0 0); }
.w-clay video, .w-clay img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.w-line { position: absolute; top: 0; bottom: 0; left: var(--w, 50%); width: 2px; margin-left: -1px; background: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); pointer-events: none; }
.w-grip { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.w-grip::before, .w-grip::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.w-grip::before { left: 4px; border-right-color: var(--bg); }
.w-grip::after { right: 4px; border-left-color: var(--bg); }
.w-tag {
  position: absolute; top: 9px; padding: 3px 8px; border-radius: 4px; background: rgba(15, 14, 12, 0.82);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none;
}
.w-tag.l { left: 9px; color: var(--clay); }
.w-tag.r { right: 9px; color: var(--ink); }
.w-range { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wipe:has(.w-range:focus-visible) .w-grip { outline: 2px solid var(--hybrid); outline-offset: 3px; }
.expand {
  position: absolute; right: 10px; bottom: 10px; z-index: 4;
  width: 38px; height: 38px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(15, 14, 12, 0.78); display: grid; place-items: center;
}
.expand svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }
.expand:hover { background: rgba(0, 0, 0, 0.92); }
.zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }

/* look switch (reef) */
.looks { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); }
.looks button { min-height: 36px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
.looks button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }

/* small figures under an example */
.figs-k { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.figs { margin-top: 10px; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; }
.figs figure { margin: 0; min-width: 0; }
.figs .zoom { width: 100%; }
.figs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.figs figcaption { margin-top: 7px; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.figs figcaption b { color: var(--ink); }
.figs figcaption b.b { color: var(--block-ink); }
.figs figcaption b.u { color: var(--build-ink); }
.figs figcaption b.h { color: var(--hybrid-ink); }

/* The Last Lantern feet: one strip, three stand-ins */
.lf { margin-top: 10px; overflow-x: auto; border-radius: 8px; }
.lf-in { min-width: 600px; }
.lf-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 7px; font-size: 14.5px; font-weight: 650; text-align: center; color: var(--ink-2); }
.lf-labels .b { color: var(--block-ink); }
.lf video { width: 100%; aspect-ratio: 1962 / 330; object-fit: cover; border-radius: 8px; background: #000; }

/* ---------------------------------------------------------------- 06 summary */
.sum-wrap { overflow-x: auto; border-radius: 14px; }
.sum { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sum th, .sum td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.sum tr:last-child th, .sum tr:last-child td { border-bottom: 0; }
.sum thead th { font-size: 28px; font-weight: 860; font-stretch: 122%; letter-spacing: -0.015em; border-bottom: 3px solid var(--line-2); }
.sum thead th.b { color: var(--block-ink); border-bottom-color: var(--block); }
.sum thead th.u { color: var(--build-ink); border-bottom-color: var(--build); }
.sum thead th.h { color: var(--hybrid-ink); border-bottom-color: var(--hybrid); }
.sum tbody th { width: 140px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 19px; }
.sum tbody tr:first-child td { color: var(--ink); font-weight: 650; }
.sum a { color: var(--ink); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- 07 your shot: four questions */
.decide-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px 44px; align-items: start; }
.decide { display: grid; gap: 22px; }
.decide fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.decide legend { font-weight: 750; font-size: 18px; margin-bottom: 10px; padding: 0; display: flex; align-items: center; gap: 10px; }
.decide legend b { font-family: var(--mono); font-weight: 500; font-size: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-grid; place-items: center; color: var(--ink-2); }
.decide label { display: inline-block; margin: 0 6px 8px 0; }
.decide input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.decide label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); font-size: 15.5px; cursor: pointer; }
.decide label:hover span { border-color: var(--ink-2); color: var(--ink); }
.decide input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
.decide input:focus-visible + span { outline: 2px solid var(--hybrid); outline-offset: 2px; }
.answer { display: block; position: sticky; top: calc(var(--bar-h) + 70px); background: var(--paper); border: 1px solid var(--line-2); border-top: 4px solid var(--block); border-radius: 14px; padding: 24px 26px; }
.answer[data-side="u"] { border-top-color: var(--build); }
.answer[data-side="h"] { border-top-color: var(--hybrid); }
.answer-side { display: flex; align-items: center; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.answer h3 { font-size: clamp(28px, 2.8vw, 36px); font-weight: 850; font-stretch: 118%; margin-bottom: 12px; }
.answer p { color: var(--ink-2); font-size: 16.5px; }
.answer .answer-ev { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 08 make yours */
.downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.downloads a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); text-decoration: none; }
.downloads a:hover { border-color: var(--ink-2); }
.downloads b { display: block; font-size: 18px; }
.downloads span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-3); }
.downloads li:first-child a { border-color: var(--build); }
.downloads li:first-child b { color: var(--build-ink); }
.made { margin-top: 22px; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); max-width: 62em; }
.make-cta { margin-top: 28px; }
#make { padding-bottom: clamp(72px, 9vw, 120px); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding-block: 24px 40px; }
.foot-title { font-size: 14px; color: var(--ink-3); }
.foot-title .or { font-size: 10px; vertical-align: 0.1em; }

/* ---------------------------------------------------------------- modals: explainer, image, expanded wipe */
.how, .lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.how-backdrop, .lb-backdrop { position: absolute; inset: 0; background: rgba(6, 6, 5, 0.86); }
.how-dialog, .lb-dialog {
  position: relative; width: min(1180px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 16px; padding: clamp(16px, 2.4vw, 26px);
}
.how-head, .lb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.how-head h2, .lb-head h2 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 820; font-stretch: 114%; }
.how-x, .lb-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--sunk); cursor: pointer; display: grid; place-items: center; }
.how-x:hover, .lb-x:hover { border-color: var(--ink-2); }
.how-x svg, .lb-x svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.how-film video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.how-credit { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); }
.how-sub { margin-top: 24px; font-size: 19px; font-weight: 800; font-stretch: 112%; }
.how-steps { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.how-steps li { font-size: 14.5px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 10px; }
.how-steps b { display: block; color: var(--ink); margin-bottom: 3px; }
.how-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.lb-body img { width: 100%; height: auto; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 10px; background: #000; }
.lb-cap { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.lb-body .wipe { width: min(100%, calc((100vh - 230px) * 16 / 9)); max-height: calc(100vh - 170px); margin: 0 auto; }
.lb-ctl { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb-ctl .lb-cap { margin-top: 0; }
/* previous / next: in the header on phones, at the screen edges on wide screens */
.lb-head h2 { flex: 1 1 auto; min-width: 0; }
.lb-nav { flex: none; display: flex; align-items: center; gap: 8px; }
.lb-step { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--sunk); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lb-step:hover { border-color: var(--ink-2); background: var(--raised); }
.lb-step svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.lb-count { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: center; }
.lb-body { touch-action: pan-y; }
@media (min-width: 1000px) {
  .lb .lb-dialog { width: min(1180px, calc(100% - 160px)); }
  .lb-step { position: fixed; top: 50%; z-index: 2; width: 58px; height: 58px; translate: 0 -50%; background: rgba(34, 31, 27, 0.92); }
  .lb-prev { left: max(22px, env(safe-area-inset-left, 0px)); }
  .lb-next { right: max(22px, env(safe-area-inset-right, 0px)); }
  .lb-step svg { width: 26px; height: 26px; }
}
@media (max-width: 640px) {
  .lb-head { flex-wrap: wrap; row-gap: 10px; }
  .lb-head h2 { flex-basis: calc(100% - 60px); }
  .lb-nav { order: 3; width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------------- guide page */
.doc { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) max(var(--gut-r), var(--pad)) 88px max(var(--gut), var(--pad)); }
.doc h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 860; font-stretch: 122%; letter-spacing: -0.03em; line-height: 0.95; }
.doc .doc-intro { margin-top: 18px; font-size: 20px; color: var(--ink-2); }
.doc h2 { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: clamp(28px, 3.4vw, 38px); font-weight: 840; font-stretch: 116%; }
.doc h3 { margin-top: 28px; font-size: 21px; font-weight: 780; }
.doc p, .doc li { font-size: 17px; color: var(--ink-2); }
.doc p { margin-top: 12px; }
.doc b { color: var(--ink); }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc a.btn { text-decoration: none; }
.doc a.btn-solid { color: var(--bg); }
.doc ol.steps { counter-reset: s; margin-top: 18px; display: grid; gap: 10px; }
.doc ol.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.doc ol.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.doc ol.steps b { display: block; color: var(--ink); font-size: 18.5px; }
.doc ol.steps b.u { color: var(--build-ink); }
.doc ol.steps b.b { color: var(--block-ink); }
.doc ol.steps b.h { color: var(--hybrid-ink); }
.doc .doc-fig { margin: 20px 0 0; }
.doc .doc-fig img { width: 100%; border-radius: 10px; }
.doc .doc-fig figcaption { margin-top: 7px; font-size: 14.5px; color: var(--ink-3); }
.doc .doc-quote { margin-top: 12px; padding: 14px 18px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.doc .doc-quote .k { display: block; font-family: var(--sans); font-weight: 750; font-size: 15px; margin-bottom: 4px; color: var(--ink-2); }
.doc .sum-wrap { margin-top: 18px; }
.doc .sum { min-width: 560px; }
.doc .doc-end { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .bar-title { display: none; }
  .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .downloads { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .decide-wrap { grid-template-columns: 1fr; }
  .answer { position: static; }
}
@media (max-width: 900px) {
  .intro-cols { grid-template-columns: 1fr; gap: 18px; }
  .pipe { grid-template-columns: 1fr; gap: 52px; }
  .step:not(:last-child) .step-media::after { display: none; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 50%; bottom: -38px; width: 20px; height: 20px; transform: translateX(-50%) rotate(90deg);
    background: var(--ink-3); clip-path: polygon(20% 8%, 92% 50%, 20% 92%);
  }
  .opts3 { grid-template-columns: 1fr; }
  .card { max-width: 600px; }
  .rule { grid-template-columns: 1fr; row-gap: 16px; }
  .rule-card { grid-row: auto; grid-template-rows: none; }
  .practices { grid-template-columns: 1fr; }
  .ex-head { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1279px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero-copy { padding-bottom: 20px; }
  .hero-side {
    position: relative; right: auto; bottom: auto; max-width: none;
    flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px;
    padding-block: 0 24px; padding-left: max(var(--gut), var(--pad)); padding-right: max(var(--gut-r), var(--pad));
  }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .bar-home .bar-sec, .bar-home .bar-slash { display: none; }
  .bar-action span { display: none; }
  .bar-action { padding: 0 9px; }
  .bar-make span { display: none; }
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  .hero-media { position: relative; inset: auto; aspect-ratio: 4 / 3; --gy: 50%; }
  .hero-side { display: contents; }
  .hero-ctl { order: 1; justify-content: flex-start; padding-top: 14px; padding-left: max(var(--gut), var(--pad)); padding-right: max(var(--gut-r), var(--pad)); }
  .hero-copy { order: 2; }
  .hero-scrim { display: none; }
  .hero-copy { padding-block: 26px 34px; }
  .hero-line .w-tag { top: auto; bottom: 12px; transform: none; }
  .hero-line .w-tag.l { right: 10px; }
  .hero-line .w-tag.r { left: 10px; }
  .hero-copy > * { max-width: none; }
  .hero h1 { font-size: clamp(54px, 16vw, 84px); }
  .hero .motion-toggle { position: absolute; z-index: 3; top: 12px; right: 12px; }
  .cols { grid-template-columns: 1fr; gap: 20px; }
  .legend { grid-template-columns: 1fr; gap: 8px; }
  .legend li { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; }
  .legend li > span { margin: 0; }
  .figs { grid-template-columns: 1fr 1fr; }
  .rule-hybrid { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .ex { border-radius: 14px; }
}
@media (max-width: 480px) {
  .hero-ctl { padding-right: 0; }
  .hero-pick { display: flex; width: calc(100% - max(var(--gut-r), var(--pad))); }
  .hero-pick button { flex: 1 1 auto; justify-content: center; padding: 0 8px; gap: 5px; }
  .hero-pick .dots { display: none; }
  .bar-home img { width: 84px; }
  .ev { grid-template-columns: 1fr; }
  .figs { grid-template-columns: 1fr; }
  .index { grid-template-columns: 1fr; }
  .legend li { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .opt-std .zoom, .opt-std .zoom img { width: 72px; }
  .ex-take { font-size: 17px; }
  .cat-head h2 { font-size: 12.4vw; }
  .sec-head h2 { font-size: clamp(32px, 10.4vw, 40px); }
}
/* The gallery link must stay a readable target: tighter actions first, then the mark alone. */
@media (max-width: 400px) {
  .bar-action { padding: 0 6px; }
}
@media (max-width: 360px) {
  .bar-home img { width: 27px; height: 24px; object-fit: cover; object-position: left center; }
}
