/* GESTALT: a perception monograph. Paper, ink, one viridian plate colour.
   Mona Sans for display and text, Reddit Mono for captions.
   Dots are reserved for the figures: they only appear where they demonstrate a principle. */
:root {
  --paper: #f1f0eb; --ink: #111110; --acc: #0a7f5a;
  --mute: #6b6a65; --dim: #9a9993; --soft: #e5e4de; --plate: #f7f6f2;
  --hair: rgba(17,17,16,.16); --hair2: rgba(17,17,16,.3); --accT: rgba(10,127,90,.09);
  --disp: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif; --mono: 'Reddit Mono', ui-monospace, monospace;
  --pad: clamp(16px, 3.4vw, 48px);
  --gut: clamp(12px, 1.6vw, 24px);
  --hd: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--disp); font-weight: 400; font-size: 16px; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1.5px solid var(--acc); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.acc { color: var(--acc); }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.has-cur, .has-cur * { cursor: none !important; }
.rule { height: 1px; background: var(--ink); }

/* ---------- the wordmark: letters read by closure, a band of each letter is missing ---------- */
.wm { display: inline-grid; font-family: var(--disp); font-weight: 780; font-stretch: 112%; letter-spacing: -.035em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.wm > span { grid-area: 1 / 1; display: block; }
.wm .wm-a { clip-path: inset(0 0 var(--wm-b, 71.5%) 0); }
.wm .wm-b { clip-path: inset(var(--wm-t, 37.3%) 0 0 0); }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hd); color: #fff; mix-blend-mode: difference; pointer-events: none; }
.hd-in { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 24px; }
.hd a { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 22px; height: 22px; }
.logo .wm { font-size: 17px; letter-spacing: -.01em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; }
.roll { display: block; overflow: hidden; height: 1.5em; }
.roll > span { display: block; line-height: 1.5em; }
.nav-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.hd-r { min-width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
.hd-k { opacity: .55; }
@media (max-width: 640px) { .hd-r { display: none; } .nav { gap: 16px; } .nav a { font-size: 10.5px; } .logo .wm { font-size: 15px; } }

/* ---------- cursor: a fine reticle; brackets measure what it is over ---------- */
.cur { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0; mix-blend-mode: difference; }
.cur-g { position: absolute; left: 0; top: 0; }
.cur-x, .cur-y { position: absolute; left: -9px; top: -.5px; width: 18px; height: 1px; background: #fff; }
.cur-y { transform: rotate(90deg); }
.cur-c { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border: 0 solid #fff; }
.cur-c:nth-of-type(3) { border-width: 1.5px 0 0 1.5px; }
.cur-c:nth-of-type(4) { border-width: 1.5px 1.5px 0 0; }
.cur-c:nth-of-type(5) { border-width: 0 1.5px 1.5px 0; }
.cur-c:nth-of-type(6) { border-width: 0 0 1.5px 1.5px; }
.cur-lab { position: absolute; left: 0; top: 0; }
.cur.cur-l { mix-blend-mode: normal; z-index: 101; }
.cur-lab span { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--paper); padding: 5px 8px 4px; white-space: nowrap; }

/* ---------- preloader: a counter gathers 400 parts into one ---------- */
.pre { position: fixed; inset: 0; z-index: 90; background: var(--paper); color: var(--ink); clip-path: inset(0 0 0 0); }
.pre-in { position: absolute; inset: 0; }
.pre-top { position: absolute; top: 20px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.pre-top span { display: block; }
.pre-c { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 56px); display: grid; gap: 14px; }
.pre-n { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pre-num { font-weight: 250; font-stretch: 75%; font-size: clamp(96px, 20vw, 260px); letter-spacing: -.04em; line-height: .78; }
.pre-n .mono { padding-bottom: 6px; color: var(--mute); text-align: right; }
.pre-bar { height: 1px; background: var(--hair); position: relative; overflow: hidden; }
.pre-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
html.js:not(.wiping) .pre { visibility: visible; }
html.wiping .pre { display: none; }

/* ---------- page wipe: an ink plate rises, the next title closes over it ---------- */
.wipe { position: fixed; inset: 0; z-index: 95; background: var(--ink); color: var(--paper); visibility: hidden; display: grid; place-items: center; clip-path: inset(100% 0 0 0); }
html.wiping .wipe { visibility: visible; clip-path: inset(0 0 0 0); }
.wipe-in { overflow: hidden; display: grid; justify-items: center; gap: 14px; }
.wipe-t { font-size: clamp(44px, 10vw, 150px); }
.wipe-k { color: rgba(241,240,235,.55); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 80; translate: -50% 0; background: var(--ink); color: var(--paper); padding: 11px 16px 10px; display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); }
.toast i { width: 14px; height: 2px; background: var(--acc); flex: none; filter: brightness(1.5); }

/* ---------- buttons: rectangles, a fill that wipes in, an arrow that travels ---------- */
.btn { position: relative; display: inline-flex; align-items: center; height: 52px; padding: 0 20px; background: var(--ink); color: var(--paper); font-weight: 560; font-size: 14.5px; letter-spacing: -.005em; isolation: isolate; overflow: hidden; }
.btn > span { display: flex; align-items: center; gap: 22px; position: relative; z-index: 1; }
.btn .arr { width: 14px; height: 14px; overflow: visible; }
.btn .arr path { fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.btn:hover .arr path { transform: translateX(3px); }
.btn::after { content: ''; position: absolute; inset: 0; background: var(--acc); clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.16,1,.3,1); z-index: 0; }
.btn:hover::after { clip-path: inset(0 0 0 0); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost::after { background: var(--ink); }
.btn.ghost:hover { color: var(--paper); }
.btn.sm { height: 42px; padding: 0 14px; font-size: 13px; }
.btn.sm > span { gap: 14px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--hair2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; position: relative; transition: box-shadow .3s, background-color .3s, color .3s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.chip i { display: none; }

/* ---------- headings and captions ---------- */
.h2 { font-weight: 640; font-stretch: 108%; font-size: clamp(38px, 6.4vw, 100px); line-height: .94; letter-spacing: -.045em; margin: 0; }
.h2 em, .p-hero h1 em, .pl-hero h1 em { font-style: italic; font-weight: 300; font-stretch: 100%; letter-spacing: -.035em; }
.ln { padding-bottom: .08em; }
.kick { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 14px; margin-bottom: clamp(18px, 2.4vw, 32px); padding-top: 10px; border-top: 1px solid var(--ink); }
.kick b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--acc); }
.kick span:last-child { justify-self: end; color: var(--mute); }
.kick span:nth-child(2) { color: var(--ink); }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; max-width: 33em; margin: 0; letter-spacing: -.005em; }
.cap { font-size: 13px; color: var(--mute); }
.cap i { font-style: italic; color: var(--ink); }

/* ================= INDEX ================= */
.s1 { position: relative; }
.s1-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.field .d { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--ink); will-change: transform; }
.field .d b { position: absolute; inset: 0; border-radius: 50%; background: var(--acc); opacity: 0; }
.s1-hit { position: absolute; inset: 0; z-index: 0; }

.hero-copy { position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: calc(var(--hd) + 4px) var(--pad) 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 10px; border-top: 1px solid var(--ink); }
.hero-top > span { display: block; }
.hero-top > span:nth-child(2) { text-align: center; }
.hero-top > span:last-child { text-align: right; }
.hero-mid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding-top: clamp(16px, 3vh, 40px); }
.hero-wm { font-size: clamp(52px, 8.6vw, 150px); width: fit-content; }
.hero-wm .wm { display: grid; }
.tagline { font-weight: 400; font-stretch: 100%; font-size: clamp(22px, 2.5vw, 40px); line-height: 1.08; letter-spacing: -.03em; margin: clamp(14px, 2vh, 26px) 0 0; max-width: 15em; }
.tagline em { font-style: italic; font-weight: 300; }
.tagline .ch { display: inline-block; }
.hero-toc { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gut); max-width: 500px; margin-top: clamp(22px, 5vh, 56px); border-top: 1px solid var(--hair2); }
.hero-toc a { display: flex; gap: 14px; padding: 7px 0 6px; border-bottom: 1px solid var(--hair); position: relative; }
.hero-toc a b { font-weight: 400; color: var(--mute); }
.hero-toc a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.hero-toc a:hover::after { transform: scaleX(1); }
.fig-cap { position: absolute; z-index: 2; pointer-events: none; display: flex; gap: 12px; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--hair2); }
.fig-cap .mono:last-child { color: var(--mute); }
.hero-bot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.hero-side { display: grid; gap: 18px; justify-items: start; max-width: 30em; }
.hero-side p { margin: 0; font-size: 15px; color: var(--mute); }
.hero-side p b { color: var(--ink); font-weight: 500; }
.ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.hint { display: flex; gap: 20px; color: var(--mute); }

.s1-panel { position: absolute; z-index: 2; left: var(--pad); top: calc(var(--hd) + 4px); width: 36vw; max-width: 520px; pointer-events: none; padding-top: 10px; border-top: 1px solid var(--ink); }
.s1-num { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(18px, 4vh, 44px); }
.s1-num b { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; }
.s1-ind { display: flex; gap: 4px; align-items: flex-end; }
.s1-ind i { position: relative; width: 14px; height: 6px; border-left: 1px solid var(--hair2); }
.s1-mark { position: absolute; left: -1px; right: 0; bottom: 0; height: 6px; background: var(--acc); }
.s1-titles { position: relative; height: clamp(54px, 7vw, 104px); margin-bottom: 18px; }
.s1-t { position: absolute; left: 0; top: 0; margin: 0; font-weight: 640; font-stretch: 108%; font-size: clamp(44px, 6vw, 94px); line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.s1-t .ch { display: inline-block; }
.s1-descs { position: relative; min-height: 200px; }
.s1-d { position: absolute; left: 0; top: 0; right: 0; }
.s1-d p { margin: 0 0 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.42; letter-spacing: -.005em; max-width: 26em; }
.s1-d .use { display: grid; grid-template-columns: 64px 1fr; gap: 12px; color: var(--mute); font-size: 14px; line-height: 1.45; max-width: 30em; padding-top: 10px; border-top: 1px solid var(--hair); }
.s1-d .use b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); font-weight: 500; }
.s1-foot { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 18px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; color: var(--mute); }
.s1-foot b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .hero-top { grid-template-columns: 1fr 1fr; }
  .hero-top > span:nth-child(2) { display: none; }
  .hero-mid { grid-template-columns: 1fr; padding-top: 14px; }
  .hero-wm { font-size: clamp(44px, 15.4vw, 120px); }
  .tagline { font-size: clamp(19px, 5.4vw, 30px); margin-top: 10px; }
  .hero-bot { grid-template-columns: 1fr; gap: 12px; }
  .hero-side p { display: none; }
  .hero-toc { display: none; }
  .hint { display: none; }
  .hero-copy { padding-bottom: 50px; }
  .s1-panel { width: auto; right: var(--pad); top: calc(var(--hd) + 2px); }
  .s1-num { margin-bottom: 14px; }
  .s1-titles { height: 46px; margin-bottom: 8px; }
  .s1-t { font-size: 42px; }
  .s1-descs { min-height: 124px; }
  .s1-d p { font-size: 15px; margin-bottom: 8px; }
  .s1-d .use { font-size: 12.5px; grid-template-columns: 52px 1fr; padding-top: 6px; }
  .s1-foot .m2 { display: none; }
}
@media (max-width: 420px) { .btn { height: 46px; padding: 0 14px; font-size: 13.5px; } .btn > span { gap: 14px; } }

/* marquee: principle names, set like a running head, driven by scroll velocity */
.marq { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; padding: 30px 0 26px; }
.marq-t { display: flex; width: max-content; will-change: transform; }
.marq-t span { display: flex; align-items: baseline; gap: clamp(18px, 2.6vw, 40px); padding-right: clamp(18px, 2.6vw, 40px); font-weight: 640; font-stretch: 108%; font-size: clamp(44px, 7.6vw, 116px); letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.marq-t span i { font-style: normal; font-weight: 200; font-stretch: 75%; color: rgba(241,240,235,.35); }
.marq-v { position: absolute; right: var(--pad); top: 9px; color: rgba(241,240,235,.5); }
.marq-v b { color: var(--paper); font-weight: 400; font-variant-numeric: tabular-nums; }
.marq-l { position: absolute; left: var(--pad); top: 9px; color: rgba(241,240,235,.5); }

/* scene 2: settings in the wild */
.s2-pin { min-height: 100vh; min-height: 100svh; padding-top: calc(var(--hd) + 2vh); padding-bottom: 3vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(24px, 5vw, 96px); align-items: center; }
.s2-text .h2 { font-size: clamp(38px, 5.2vw, 82px); margin-bottom: 18px; }
.s2-text .lede { margin-bottom: 24px; font-size: 17px; color: var(--mute); }
.fixes { list-style: none; margin: 0 0 24px; padding: 0; display: grid; border-top: 1px solid var(--hair); }
.fixes li { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.fixes li svg { width: 16px; height: 16px; }
.fixes li .fx-box { fill: none; stroke: var(--ink); stroke-width: 1; }
.fixes li path { fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: square; }
.fixes li .fx-bg { fill: var(--acc); stroke: none; transform-origin: 8px 8px; transform: scale(0); }
.fixes li strong { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.fixes li span { color: var(--mute); font-size: 13px; }
.fixes li .mono { color: var(--dim); }
.fixes li.on strong { color: var(--acc); }
.fixes .fx-txt { display: grid; }
.s2-meter { display: flex; gap: 32px; align-items: baseline; }
.s2-meter .mono { color: var(--mute); }
.s2-meter b { font-weight: 250; font-stretch: 75%; font-size: 52px; letter-spacing: -.03em; line-height: 1; }
.s2-rail { height: 1px; background: var(--hair); overflow: hidden; margin-top: 16px; }
.s2-rail i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

.mock { position: relative; width: 100%; aspect-ratio: 100 / 124; container-type: inline-size; box-shadow: 0 0 0 1px var(--ink); background: var(--plate); overflow: hidden; }
.mock-bar { position: absolute; left: 0; right: 0; top: 0; height: 5.5cqw; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; padding: 0 2.6cqw; font-family: var(--mono); font-size: 2.2cqw; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.mock-in { position: absolute; inset: 5.5cqw 0 0; container-type: inline-size; }
.ui { position: absolute; display: grid; font-size: 3.4cqw; line-height: 1.2; white-space: nowrap; }
.ui > .v { grid-area: 1 / 1; display: flex; align-items: center; }
.ui > .g { opacity: 0; }
.ui.title > .v { font-weight: 640; font-stretch: 108%; font-size: 6.4cqw; letter-spacing: -.04em; }
.ui.head > .b { font-weight: 300; }
.ui.head > .g { font-family: var(--mono); font-size: 2.5cqw; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ui.head.h2b > .b { font-weight: 800; font-size: 5cqw; letter-spacing: -.03em; }
.ui.head.h3b > .b { color: var(--acc); font-style: italic; }
.ui.field > .v { height: 7.2cqw; padding: 0 2.4cqw; font-size: 3.2cqw; }
.ui.field > .b { border-bottom: 1px dashed var(--dim); padding-left: 0; color: var(--mute); }
.ui.field > .g { box-shadow: inset 0 0 0 1px var(--hair2); background: var(--paper); }
.ui.tog > .v { justify-content: flex-end; height: 6cqw; }
.tg { width: 10cqw; height: 5.6cqw; border-radius: 99px; background: var(--ink); position: relative; }
.tg::after { content: ''; position: absolute; top: .7cqw; right: .7cqw; width: 4.2cqw; height: 4.2cqw; border-radius: 50%; background: var(--paper); }
.tg.off { background: var(--soft); box-shadow: inset 0 0 0 1px var(--hair2); }
.tg.off::after { right: auto; left: .7cqw; background: var(--ink); }
.tg.red { background: var(--acc); }
.tg.box { width: 5cqw; height: 5cqw; border-radius: .6cqw; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.tg.box::after { inset: 1.2cqw; width: auto; height: auto; border-radius: 0; background: var(--ink); }
.tg.txt { width: auto; height: auto; background: none; font-family: var(--mono); font-size: 2.8cqw; }
.tg.txt::after { display: none; }
.tg.rad { width: 5cqw; height: 5cqw; background: var(--paper); box-shadow: inset 0 0 0 1px var(--dim); }
.tg.rad::after { display: none; }
.ui.btnu > .v { height: 8cqw; justify-content: center; font-weight: 560; font-size: 3.2cqw; padding: 0 3cqw; }
.ui.save > .b { box-shadow: inset 0 0 0 1px var(--dim); font-weight: 300; border-radius: 99px; }
.ui.save > .g { background: var(--ink); color: var(--paper); }
.ui.cancel > .b { background: var(--acc); color: var(--paper); border-radius: 2cqw; }
.ui.cancel > .g { color: var(--ink); }
.card { position: absolute; background: var(--paper); box-shadow: 0 0 0 1px var(--hair); opacity: 0; }
.abar { position: absolute; left: 0; right: 0; bottom: 0; height: 12cqw; background: var(--ink); clip-path: inset(100% 0 0 0); }
.mock.fg .ui.cancel > .g { color: var(--paper); }
.mock.fg .ui.save > .g { background: var(--acc); }
@media (max-width: 899px) {
  .s2-pin { grid-template-columns: 1fr; align-content: start; gap: 14px; padding-top: calc(var(--hd) + 4px); }
  .s2-text .kick { margin-bottom: 12px; }
  .s2-text .h2 { font-size: 34px; margin-bottom: 8px; }
  .s2-text .lede { display: none; }
  .fixes { display: flex; gap: 6px; margin: 0 0 4px; flex-wrap: wrap; border: 0; }
  .fixes li { display: none; }
  .fixes li.on { display: flex; gap: 10px; border: 0; padding: 0; }
  .fixes li .mono { display: none; }
  .s2-meter { display: none; }
  .mock { max-width: min(420px, 100%, calc((100svh - 240px) * 100 / 124)); margin: 0 auto; }
}

/* outro plates */
.outro { padding-top: clamp(80px, 12vw, 180px); padding-bottom: clamp(80px, 12vw, 180px); }
.outro .h2 { margin-bottom: clamp(32px, 5vw, 64px); max-width: 12em; }
.go-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.go-card { position: relative; box-shadow: inset 0 0 0 1px var(--ink); padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 22px; overflow: hidden; isolation: isolate; min-height: 360px; align-content: space-between; transition: color .5s; }
.go-card::before { content: ''; position: absolute; inset: 0; background: var(--ink); clip-path: inset(100% 0 0 0); transition: clip-path .7s cubic-bezier(.16,1,.3,1); z-index: -1; }
.go-card:hover { color: var(--paper); }
.go-card:hover::before { clip-path: inset(0 0 0 0); }
.go-card .fig { display: flex; justify-content: space-between; color: var(--mute); }
.go-card:hover .fig { color: rgba(241,240,235,.55); }
.go-card h3 { margin: 0 0 10px; font-weight: 640; font-stretch: 108%; font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -.045em; line-height: .96; }
.go-card p { margin: 0; max-width: 28em; color: inherit; opacity: .7; }
.go-card svg { width: 100%; height: 120px; }
.go-card svg circle { fill: currentColor; }
.go-card svg .r { fill: var(--acc); }
.go-row { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid currentColor; }
.arrbox { width: 44px; height: 44px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; overflow: hidden; }
.arrbox svg { width: 16px; height: 16px; }
.arrbox path { fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.go-card:hover .arrbox path { transform: translateX(3px); }
@media (max-width: 760px) { .go-grid { grid-template-columns: 1fr; } .go-card { min-height: 300px; } }

/* ---------- footer ---------- */
.ft { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 110px) 0 24px; overflow: hidden; }
.ft-in { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.ft-big { font-weight: 300; font-size: clamp(28px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 clamp(40px, 6vw, 80px); max-width: 16em; }
.ft-big em { font-style: italic; }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); padding: 14px 0 40px; border-top: 1px solid rgba(241,240,235,.3); }
.ft-cols div { display: grid; gap: 6px; align-content: start; }
.ft-cols .k { color: rgba(241,240,235,.5); margin-bottom: 8px; }
.ft-cols a { font-weight: 450; width: fit-content; transition: color .3s; }
.ft-cols a:hover { color: #3fc49a; }
.ft-note { margin: 0; color: rgba(241,240,235,.7); font-size: 14px; max-width: 24em; }
.ft-wm { font-size: clamp(56px, 19.6vw, 300px); display: block; margin: 0 0 18px; line-height: 1; }
.ft-wm .wm { display: grid; }
.ft-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(241,240,235,.3); color: rgba(241,240,235,.5); }
@media (max-width: 760px) { .ft-cols { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* ================= PRINCIPLES ================= */
.p-hero { padding-top: calc(var(--hd) + clamp(24px, 5vw, 64px)); padding-bottom: clamp(40px, 6vw, 80px); }
.p-hero h1 { font-weight: 640; font-stretch: 108%; font-size: clamp(52px, 11.4vw, 184px); line-height: .9; letter-spacing: -.05em; margin: 0 0 clamp(24px, 3vw, 44px); }
.p-hero h1 .ch { display: inline-block; }
.p-hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gut); align-items: end; }
.toc { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(30px, 4vw, 56px); border-top: 1px solid var(--ink); }
.toc a { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hair); font-weight: 500; font-size: 15px; position: relative; }
.toc a b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--mute); }
.toc a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.toc a:hover::after { transform: scaleX(1); }
.chapters { position: relative; }
.chap { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(70px, 9vw, 130px); }
.chap-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 72px); align-items: start; }
.chap-hd { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--ink); }
.chap-hd span:last-child { color: var(--mute); }
.chap-txt { position: sticky; top: calc(var(--hd) + 20px); }
.chap .chap-n { font-weight: 200; font-stretch: 75%; font-size: clamp(110px, 15vw, 240px); line-height: .78; letter-spacing: -.04em; margin: 0 0 18px; color: var(--ink); }
.chap h2 { font-weight: 640; font-stretch: 108%; font-size: clamp(40px, 5.2vw, 82px); line-height: .94; letter-spacing: -.045em; margin: 0 0 22px; }
.chap p { margin: 0 0 14px; font-size: 17px; max-width: 31em; }
.chap .use { display: grid; grid-template-columns: 64px 1fr; gap: 12px; color: var(--mute); font-size: 14.5px; margin-top: 22px; max-width: 32em; padding-top: 10px; border-top: 1px solid var(--hair); }
.chap .use b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); font-weight: 500; }
.toy { box-shadow: inset 0 0 0 1px var(--ink); overflow: hidden; background: var(--plate); }
.toy-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ink); }
.toy-h .mono:last-child { color: var(--mute); font-variant-numeric: tabular-nums; }
.toy-st { position: relative; height: clamp(280px, 34vw, 440px); overflow: hidden; touch-action: pan-y; }
.toy-st svg.full { position: absolute; inset: 0; width: 100%; height: 100%; }
.toy-c { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--ink); }
.toy-c .seg { display: flex; gap: 0; flex-wrap: wrap; }
.toy-c .seg .chip + .chip { margin-left: -1px; }
.verdict { display: flex; align-items: center; gap: 10px; font-weight: 560; font-size: 16px; letter-spacing: -.015em; }
.verdict i { width: 16px; height: 2px; background: var(--dim); flex: none; transition: background-color .3s; }
.verdict.ok i { background: var(--acc); }
.rng { display: grid; gap: 4px; min-width: min(260px, 100%); flex: 1; }
.rng-h { display: flex; justify-content: space-between; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 22px; background: var(--acc); margin-top: -10.5px; box-shadow: 0 0 0 3px var(--plate); }
input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 6px; height: 22px; border: 0; border-radius: 0; background: var(--acc); }
/* toy specifics */
.pd { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ink); }
.knob { position: absolute; z-index: 3; width: 40px; height: 40px; margin: -20px 0 0 -20px; background: var(--ink); display: grid; place-items: center; color: var(--paper); touch-action: none; transition: background-color .3s; }
.knob:hover, .knob.on { background: var(--acc); }
.knob svg { width: 18px; height: 18px; }
.knob-track { position: absolute; left: 10%; right: 10%; bottom: 34px; height: 1px; background: var(--hair2); }
.sim { position: absolute; inset: 24px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-content: center; max-width: 520px; margin: 0 auto; }
.sim i { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.sim i b, .sim i s { position: absolute; inset: 22%; background: var(--ink); }
.sim i b { border-radius: 50%; }
.sim i s { opacity: 0; inset: 25%; }
.sim i em { position: absolute; inset: 0; border-radius: inherit; background: var(--acc); opacity: 0; }
.pd b { position: absolute; inset: 0; border-radius: 50%; background: var(--acc); opacity: 0; }
.fg-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.fg-wrap svg, .fg-flip svg { position: absolute; left: 0; top: 4%; width: 100%; height: 92%; }
.fg-flip { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink); clip-path: inset(0 0 0 100%); }
.ng { fill: none; stroke: var(--ink); }
.cr-box { position: absolute; left: 0; top: 0; z-index: 2; background: var(--accT); box-shadow: inset 0 0 0 1.5px var(--acc); touch-action: none; display: grid; place-items: start; padding: 5px 8px; }
.cr-box span { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.cf { position: absolute; inset: 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-content: center; max-width: 420px; margin: 0 auto; }
.cf button { aspect-ratio: 1; display: grid; place-items: center; }
.cf button i { width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); pointer-events: none; }
.cf button.on i { background: var(--acc); }
@media (max-width: 899px) {
  .chap-grid { grid-template-columns: 1fr; }
  .chap-txt { position: static; }
  .p-hero-row { grid-template-columns: 1fr; }
  .toc { grid-template-columns: 1fr 1fr; }
  .chap .chap-n { font-size: 96px; margin-bottom: 10px; }
}

/* ================= PLAY ================= */
.pl-hero { padding-top: calc(var(--hd) + clamp(24px, 5vw, 64px)); padding-bottom: 30px; }
.pl-hero h1 { font-weight: 640; font-stretch: 108%; font-size: clamp(48px, 9.6vw, 156px); line-height: .9; letter-spacing: -.05em; margin: 0 0 24px; }
.pl-hero h1 .ch { display: inline-block; }
.modes { position: relative; display: inline-flex; box-shadow: inset 0 0 0 1px var(--ink); margin-top: 28px; }
.modes button { position: relative; isolation: isolate; height: 46px; padding: 0 20px; font-weight: 560; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: color .3s; }
.modes button[aria-selected=true] { color: var(--paper); }
.modes .m-ind { position: absolute; z-index: -1; inset: 0; background: var(--ink); }
.scorebar { display: flex; gap: 0; flex-wrap: wrap; margin-top: 22px; border-top: 1px solid var(--hair); }
.scorebar > div { display: grid; padding: 10px 28px 0 0; align-content: start; }
.scorebar .mono { color: var(--mute); }
.scorebar b { font-weight: 250; font-stretch: 75%; font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.scorebar .chip { margin-top: 6px; }
.pane { padding-top: 30px; padding-bottom: clamp(80px, 10vw, 140px); }
.pane[hidden] { display: none; }
.ns { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.ns-stage { position: relative; box-shadow: inset 0 0 0 1px var(--ink); background: var(--plate); overflow: hidden; aspect-ratio: 1; max-height: 70vh; width: 100%; margin: 0 auto; }
.ns-stage svg { position: absolute; inset: 9%; width: 82%; height: 82%; }
.ns-stage .mk { fill: var(--ink); }
.ns-stage .tgt { fill: transparent; }
.ns-stage .hit { fill: var(--acc); opacity: 0; pointer-events: none; }
.ns-stage .wh, .tile .wh { fill: var(--plate); }
.ns-stage .outl { fill: none; stroke: var(--acc); stroke-width: .7; stroke-linejoin: round; }
.ns-stage .ring { fill: none; stroke: var(--acc); stroke-width: .6; stroke-dasharray: 1.5 1.5; opacity: 0; }
.miss { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; }
.miss::before, .miss::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transform: rotate(45deg); }
.miss::after { transform: rotate(-45deg); }
.ns-name { position: absolute; left: 16px; top: 12px; right: 16px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.ns-name b { font-weight: 560; font-size: 15px; letter-spacing: -.01em; }
.ns-name .mono { color: var(--mute); }
.ns-side h2 { font-weight: 640; font-stretch: 108%; font-size: clamp(32px, 3.8vw, 58px); letter-spacing: -.045em; line-height: .96; margin: 0 0 14px; }
.ns-q { font-size: 17px; margin: 0 0 18px; }
.ns-hint { min-height: 52px; padding: 12px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 18px; font-size: 15px; }
.ns-hint .mono { display: block; margin-bottom: 4px; color: var(--acc); }
.ns-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; box-shadow: inset 0 0 0 1px var(--hair); }
.tile { position: relative; aspect-ratio: 1; box-shadow: inset 0 0 0 .5px var(--hair); display: grid; place-items: center; }
.tile svg { width: 58%; height: 58%; }
.tile svg .mk { fill: var(--ink); }
.tile.done svg .mk { fill: var(--dim); }
.tile.done::after { content: 'Found'; position: absolute; left: 6px; bottom: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.tile-mark { position: absolute; inset: 0; box-shadow: inset 0 0 0 1.5px var(--ink); pointer-events: none; }
.grp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.board { position: relative; box-shadow: inset 0 0 0 1px var(--ink); background: var(--plate); aspect-ratio: 1; overflow: hidden; touch-action: none; }
.board svg.links { position: absolute; inset: 0; width: 100%; height: 100%; }
.board svg.links line { stroke-width: 1.2; stroke-linecap: round; }
.board svg.links circle { fill: none; stroke-width: 1; stroke-dasharray: 2 4; }
.gd { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; touch-action: none; }
.gd i { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); pointer-events: none; }
.gd.lift i { background: var(--acc); }
.grp-side h2 { font-weight: 640; font-stretch: 108%; font-size: clamp(32px, 3.8vw, 58px); letter-spacing: -.045em; line-height: .96; margin: 0 0 12px; }
.grp-goal { display: flex; align-items: baseline; gap: 14px; margin: 18px 0; }
.grp-goal b { font-weight: 200; font-stretch: 75%; font-size: 84px; letter-spacing: -.03em; line-height: .8; color: var(--acc); }
.grp-read { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gut); margin-bottom: 18px; }
.grp-read div { border-top: 1px solid var(--hair); padding: 8px 0 10px; display: grid; }
.grp-read .mono { color: var(--mute); }
.grp-read b { font-weight: 560; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lvls { display: flex; gap: 0; margin: 18px 0; flex-wrap: wrap; }
.lvls button { width: 44px; height: 44px; box-shadow: inset 0 0 0 1px var(--hair2); font-family: var(--mono); font-size: 12px; position: relative; margin-right: -1px; }
.lvls button[aria-pressed=true] { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.lvls button.won::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 2px; background: var(--acc); }
@media (max-width: 899px) { .ns, .grp { grid-template-columns: 1fr; } .ns-stage { max-height: none; } }
@media (max-width: 420px) { .modes button { padding: 0 12px; font-size: 13px; } .scorebar > div { padding-right: 18px; } .scorebar b { font-size: 36px; } }

@media (prefers-reduced-motion: reduce) {
  .btn::after, .go-card::before, .toc a::after, .btn .arr path, .arrbox path { transition: none; }
}
@media (max-width: 560px) {
  .kick span:last-child { display: none; }
  .chap-hd span:last-child { display: none; }
  .hero-top { grid-template-columns: 1fr auto; }
  .hero-top .m-hide { display: none; }
}

/* ---------- the hero must fit its own screen: short windows shed secondary parts ---------- */
.hero-wm { font-size: min(clamp(52px, 8.6vw, 150px), 15svh); }
@media (min-width: 900px) and (max-height: 860px) { .hint { display: none; } .hero-toc { margin-top: 18px; } .hero-toc a { padding: 5px 0 4px; } }
@media (min-width: 900px) and (max-height: 740px) { .hero-toc { display: none; } .hero-side p { display: none; } }
@media (max-height: 640px) { .s1-foot { display: none; } }
/* set by script when the hero still overflows */
.hero-copy.tight .hero-toc, .hero-copy.tight .hint, .hero-copy.tight .hero-side p { display: none; }
.hero-copy.tighter .hero-wm { font-size: min(11svh, 13vw); }
.hero-copy.tighter .tagline { font-size: 18px; }

/* scene 2 must fit one screen: the mock sizes to the height, the checklist compacts on short windows */
@media (min-width: 900px) {
  .mock { max-width: calc((100svh - var(--hd) - 8vh) * 100 / 124); justify-self: end; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .s2-text .lede { display: none; }
  .s2-text .h2 { font-size: clamp(34px, 4.4vw, 64px); margin-bottom: 12px; }
  .fixes li { padding: 7px 0; }
  .fixes li span { display: none; }
}
@media (min-width: 900px) and (max-height: 660px) { .s2-meter, .s2-rail { display: none; } .fixes { margin-bottom: 0; } }

/* header: a solid paper band, so headings never run under the logo and nav */
.hd { background: var(--paper); color: var(--ink); mix-blend-mode: normal; box-shadow: 0 1px 0 var(--hair); }
