/* ══════════════════════════════════════════════════════════════════════
   $STICKMAN
   The design language is one sheet of paper being drawn on. Everything is
   marker on stock: no cards, no glass, no glow. The only colour images on
   the page are photographs, and they are taped down.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --paper: #f2efe4;
  --paper-hi: #fbf9f2;
  --ink: #16150f;
  --ink-2: #4b4739;
  --ink-3: #8b8471;
  --rule: #d5cfbc;
  --hi: #ffe14a;      /* highlighter */
  --red: #de3323;     /* red pen — margin, corrections, never decoration */
  --blue: #2b52c8;

  --disp: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --hand: 'Architects Daughter', 'Comic Sans MS', cursive;   /* drafting pencil */
  --marker: 'Permanent Marker', 'Architects Daughter', cursive; /* fat marker */
  --scrawl: 'Caveat', 'Architects Daughter', cursive;           /* fast biro */
  --shan: 'Shantell Sans', 'Architects Daughter', cursive;      /* drawn sans */

  --col: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%;
  /* every section is one screen. proximity, not mandatory: a panel that
     outgrows a short viewport must still be scrollable through. */
  scroll-snap-type: y proximity;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
  /* paper fibre. subtle enough that you only notice it when it is gone. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

::selection { background: var(--hi); color: var(--ink); }

/* ── ticker ──────────────────────────────────────────────────────────── */
.ticker {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink); color: var(--paper);
  overflow: hidden; height: 30px;
  border-bottom: 2px solid var(--ink);
}
.ticker-run {
  display: flex; gap: 34px; white-space: nowrap;
  font-family: var(--mono); font-weight: 700; font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  line-height: 30px; will-change: transform;
  animation: run 42s linear infinite;
}
.ticker-run span { display: inline-block; }
.ticker-run i { color: var(--hi); font-style: normal; }
@keyframes run { to { transform: translateX(-50%); } }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 30px; z-index: 55;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 11px clamp(14px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(7px);
  border-bottom: 1.5px solid var(--ink);
}
.mark { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.mark-fig { width: 24px; height: 30px; display: block; }
.mark-fig svg { width: 100%; height: 100%; overflow: visible; }
.mark-txt {
  font-family: var(--disp); font-weight: 700; font-size: 21px;
  letter-spacing: -.02em; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a, .nav-what {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: 3px 0;
  border-bottom: 2px solid transparent; transition: .15s;
}
.nav-links a:hover, .nav-what:hover { color: var(--ink); border-bottom-color: var(--hi); }
.nav-what { color: var(--red); }
@media (max-width: 980px) { .nav-links a { display: none; } .nav-what { display: block; } }

/* ── the sheet ───────────────────────────────────────────────────────── */
.sheet {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 34px);
}
/* one section = one viewport. min-height rather than height so nothing is
   ever clipped on a laptop; the sticky ticker+nav eat 84px off the top, so
   the content box is padded clear of them and centred in what is left. */
.band {
  position: relative;
  min-height: 100svh;
  /* vh-aware so a short laptop screen tightens up instead of overflowing */
  padding: clamp(74px, 11vh, 104px) 0 clamp(26px, 5vh, 48px);
  display: flex; flex-direction: column; justify-content: center;
  scroll-snap-align: start;
}
.band > .rule {
  position: absolute; top: 0; left: 0; right: 0;
}
@media (max-width: 760px) {
  html { scroll-snap-type: none; }
  .band { min-height: 0; padding: 78px 0 40px; }
}

/* hand-drawn section rule */
.rule { height: 20px; position: relative; pointer-events: none; }
.rule svg { width: 100%; height: 20px; overflow: visible; display: block; }
.rule path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: .5; }

/* ── type ────────────────────────────────────────────────────────────── */
.eyebrow, .sub-lab {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.title {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(40px, min(8.2vw, 12.4vh), 104px);
  line-height: .86; letter-spacing: -.042em;
  margin: 14px 0 0; position: relative; display: inline-block;
}
.title .dot { color: var(--red); }
.underline {
  position: absolute; left: -1%; bottom: -.13em; width: 102%; height: .16em;
  overflow: visible; pointer-events: none;
}
.underline path {
  fill: none; stroke: var(--hi); stroke-width: 13; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.h2 {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(34px, min(6.4vw, 9.4vh), 84px);
  line-height: .86; letter-spacing: -.04em; margin-bottom: clamp(8px, 1.4vh, 14px);
}
.lede { font-size: clamp(15px, min(1.35vw, 2.1vh), 19px); max-width: 46ch; margin-top: clamp(10px, 2vh, 18px); color: var(--ink-2); }
.lede b { color: var(--ink); font-weight: 700; box-shadow: inset 0 -.42em 0 var(--hi); }
.sub { max-width: 62ch; color: var(--ink-2); font-size: clamp(14px, 1.9vh, 16.5px); margin-bottom: clamp(12px, 2.6vh, 32px); }
.ask {
  font-family: var(--scrawl); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px);
  color: var(--red); margin-top: 14px; transform: rotate(-1.1deg); transform-origin: left;
}
.fine {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7;
  color: var(--ink-3); max-width: 74ch; margin-top: clamp(12px, 2.4vh, 22px);
}

/* pencil annotations — pinned outside the column, never load-bearing */
.margin-note {
  position: absolute; right: -128px; width: 130px;
  font-family: var(--hand); font-size: 14px; line-height: 1.35;
  color: var(--red); opacity: .85; transform: rotate(3deg);
}
.note-hero { top: 62%; }
.note-guide { top: 21%; }
@media (max-width: 1480px) { .margin-note { display: none; } }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 22px; border: 2px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink); text-decoration: none;
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper-hi); }
.btn-hi { background: var(--hi); color: var(--ink); }
.btn-line { background: var(--paper-hi); }
.btn.wide { width: 100%; }
.btn.file { position: relative; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(14px, 2.8vh, 24px); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: clamp(12px, 2.4vh, 22px); }
.chips li {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3);
}
.chips b { font-family: var(--disp); font-size: 20px; color: var(--ink); margin-right: 5px; letter-spacing: -.02em; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 1fr .86fr; gap: clamp(30px, 5vw, 62px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* a taped-down photograph. the only colour on the sheet. */
.plate { position: relative; background: var(--paper-hi); padding: 11px 11px 0; border: 1.5px solid var(--rule);
  box-shadow: 0 14px 34px -16px rgba(30,26,10,.42), 0 2px 0 rgba(30,26,10,.06);
  transform: rotate(var(--tilt, -1.1deg)); }
.plate-img { position: relative; overflow: hidden; background: #0d0d0c; aspect-ratio: 16/9; }
.plate-img canvas, .plate-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.plate-scan {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.055) 0 1px, transparent 1px 3px);
}
.plate-cap {
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
  padding: 9px 2px 11px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
}
.plate-cap .pres { margin-left: auto; color: var(--red); font-family: var(--marker); font-size: 12px; letter-spacing: .01em; text-transform: none; }
.tape {
  position: absolute; width: 84px; height: 26px; z-index: 3;
  background: rgba(255,240,170,.62);
  border-left: 1px solid rgba(190,170,90,.35); border-right: 1px solid rgba(190,170,90,.35);
  box-shadow: 0 1px 3px rgba(40,34,10,.16);
}
.tape-tl { top: -12px; left: -22px; transform: rotate(-38deg); }
.tape-br { bottom: 8px; right: -24px; transform: rotate(-36deg); }

/* ── kickers, scrawl ────────────────────────────────────────────────── */
.kicker {
  font-family: var(--marker); font-size: clamp(13px, min(1.7vw, 2.4vh), 20px);
  color: var(--red); transform: rotate(-1.2deg); transform-origin: left;
  margin-bottom: 6px; letter-spacing: .01em;
}
.scrawl {
  font-family: var(--scrawl); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; color: var(--red);
  transform: rotate(-2.2deg); transform-origin: left;
}
.ask { position: relative; display: inline-block; }
.ask-arrow {
  position: absolute; left: 100%; top: -34px; width: 104px; height: 78px;
  overflow: visible; margin-left: 10px; transform: scaleY(-1);
}
.ask-arrow path { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) { .ask-arrow { display: none; } }

/* ── the hero pipeline ─────────────────────────────────────────────── */
.pipe { margin-top: clamp(10px, 2vh, 30px); overflow-x: auto; }
.pipe svg { width: 100%; height: clamp(190px, 32vh, 320px); min-width: 720px; display: block; overflow: visible; }
.pipe .ln {
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.pipe .ln.thick { stroke-width: 2.6; }
.pipe .ln.fan { stroke: var(--red); stroke-width: 1.5; opacity: .8; }
.pipe .node { fill: var(--hi); stroke: var(--ink); stroke-width: 2; }
.pipe .hi-fill { fill: var(--hi); stroke: none; }
.pipe text { stroke: none; }
.pipe .lab {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; fill: var(--ink-3);
}
.pipe .quote { font-family: var(--scrawl); font-weight: 700; font-size: 22px; fill: var(--ink); }
.pipe .seat {
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; fill: var(--ink);
}
.pipe .mdl { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; fill: var(--ink-3); }
.pipe .tag { font-family: var(--marker); font-size: 15px; fill: var(--red); }
.pipe .ruling { font-family: var(--disp); font-weight: 700; font-size: 30px; letter-spacing: -.02em; fill: var(--ink); }
.pipe .carried { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; fill: var(--ink); }
.pipe .fig { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.pipe .fig-face { fill: var(--ink); stroke: none; }
.pipe .out {
  font-family: var(--marker); font-size: 21px; fill: var(--red);
}
@media (max-width: 900px) { .pipe { margin-left: -4px; } }

/* ── the record ─────────────────────────────────────────────────────
   A real transcript is long, so this one panel scrolls inside itself. That
   is deliberate: a session you can scroll through reads as evidence, and a
   session trimmed to four tidy quotes reads as copywriting. */
.rec {
  border: 2px solid var(--ink); background: var(--paper-hi);
  box-shadow: 6px 6px 0 var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  max-height: min(52vh, 460px); padding: 0;
}
.rec-motion {
  position: sticky; top: 0; z-index: 2;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px 14px;
}
.rec-motion .rl {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .2em; color: var(--hi); display: block; margin-bottom: 5px;
}
.rec-motion p { font-family: var(--scrawl); font-weight: 700; font-size: 19px; line-height: 1.2; }
.rec-round {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .2em;
  color: var(--ink-3); padding: 16px 18px 4px; border-top: 1.5px solid var(--rule);
}
.rec-round:first-of-type { border-top: 0; }
.msg { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 12px 18px; }
.msg + .msg { border-top: 1px solid var(--rule); }
.msg-who { display: flex; flex-direction: column; gap: 2px; }
.msg-name {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  display: flex; align-items: center; gap: 6px;
}
.msg-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.2px solid var(--ink); flex: none; }
.msg-model { font-family: var(--mono); font-size: 9px; color: var(--ink-3); }
.msg-body { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.msg-body b { color: var(--ink); }
.msg-body p + p { margin-top: 7px; }
.msg-body ul { margin: 6px 0 0 16px; }
.msg-body li { margin-bottom: 3px; }
.msg.chair { background: rgba(255,225,74,.22); }
.msg.chair .msg-body { color: var(--ink); }
.rec-ruling {
  position: sticky; bottom: 0; background: var(--hi); border-top: 2px solid var(--ink);
  padding: 12px 18px; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  line-height: 1.5; letter-spacing: .02em;
}
.rec-tally {
  display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 18px;
  border-top: 1.5px solid var(--ink); background: var(--paper);
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em;
}
.rec-tally span b { color: var(--red); }
@media (max-width: 700px) {
  .msg { grid-template-columns: 1fr; gap: 6px; }
  .msg-who { flex-direction: row; align-items: baseline; gap: 10px; }
  .rec { max-height: none; }
}

/* ── why he works ───────────────────────────────────────────────────── */
.why {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink);
}
.why article {
  position: relative; padding: clamp(11px, 1.9vh, 22px) clamp(13px, 1.5vw, 20px);
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  display: flex; flex-direction: column; gap: 12px;
}
.why article:hover .wfig svg { transform: rotate(-1.5deg) scale(1.04); }
.wn {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--hi); border: 1.6px solid var(--ink); border-radius: 50%;
  font-family: var(--marker); font-size: 17px; color: var(--ink);
  line-height: 1; padding-top: 2px;
}
.wfig { height: clamp(78px, 11.5vh, 124px); margin: 2px 0 6px; }
.wfig svg { width: 100%; height: 100%; display: block; overflow: visible; transition: transform .2s; }
.wfig path, .wfig circle, .wfig rect, .wfig line, .wfig ellipse {
  fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}
.wfig .fill { fill: var(--ink); stroke: none; }
.wfig .hi { stroke: var(--red); }
.wfig .yel { stroke: none; fill: var(--hi); }
.wfig text { stroke: none; fill: var(--ink); }
.why h3 {
  font-family: var(--disp); font-weight: 700; font-size: clamp(15px, min(1.8vw, 2.5vh), 22px);
  letter-spacing: -.02em; line-height: 1.05;
}
.why p { font-family: var(--shan); font-weight: 500; font-size: clamp(13px, 1.8vh, 15px); line-height: 1.42; color: var(--ink-2); }
.w-note { display: grid; place-items: center; background: var(--hi); }
.w-note .scrawl { color: var(--ink); text-align: center; font-size: clamp(24px, 2.6vw, 34px); transform: rotate(-3.5deg); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } .w-note { padding: 34px 20px; } }

/* ── anatomy ────────────────────────────────────────────────────────── */
.anat { margin-top: 6px; }
.anat svg { width: 100%; height: clamp(190px, 31vh, 380px); display: block; overflow: visible; }
.anat .body { fill: none; stroke: var(--ink); stroke-width: 3.1; stroke-linecap: round; stroke-linejoin: round; }
.anat .lead { fill: none; stroke: var(--red); stroke-width: 1; stroke-dasharray: 4.5 4.5; opacity: .85; }
.anat .knob { fill: var(--red); stroke: none; }
.anat .num { font-family: var(--marker); font-size: 11px; fill: var(--red); }
.anat .lab { font-family: var(--hand); font-size: 10px; fill: var(--ink); }
.anat .sml { font-family: var(--mono); font-weight: 700; font-size: 5.2px; fill: var(--ink-3); letter-spacing: .12em; }
.anat .dim { fill: none; stroke: var(--ink-3); stroke-width: .7; }
.anat .face { fill: var(--ink); stroke: none; }

.anat-k { margin: clamp(10px, 1.5vw, 18px) 0 10px; }
.anat-strip {
  display: grid; grid-template-columns: repeat(8, 1fr);
  border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink);
}
.anat-strip figure {
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  display: flex; flex-direction: column;
}
.anat-strip figure > div { padding: clamp(6px, 1.1vh, 13px) 11px 4px; }
.anat-strip svg { width: 100%; height: clamp(52px, 10.5vh, 128px); display: block; }
.anat-strip figcaption {
  display: flex; align-items: baseline; gap: 7px; padding: 0 11px 10px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.anat-strip figcaption b {
  font-family: var(--marker); font-size: 15px; color: var(--red); letter-spacing: 0;
}
.anat-strip figure:last-child { background: var(--hi); }
@media (max-width: 780px) { .anat-strip { grid-template-columns: repeat(4, 1fr); } }

/* ── the inserter ────────────────────────────────────────────────────── */
.tool {
  display: grid; grid-template-columns: 1fr 384px; gap: 18px;
  border: 2px solid var(--ink); background: var(--paper-hi); padding: clamp(10px, 1.8vh, 15px);
  box-shadow: 7px 7px 0 var(--ink);
}
@media (max-width: 900px) {
  .tool { grid-template-columns: 1fr; box-shadow: 4px 4px 0 var(--ink); }
  /* on a phone the stage should hug the photo instead of letterboxing it */
  .stage-wrap .stage { flex: none; min-height: 0; }
}

.stage-wrap { display: flex; flex-direction: column; min-width: 0; }
.stage-wrap .stage { flex: 1 1 auto; }
.stage {
  position: relative; background: #12120f; overflow: hidden;
  min-height: min(30vh, 320px); display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 0%, #23231d 0%, #101010 70%);
}
.stage canvas { max-width: 100%; max-height: 100%; display: block; touch-action: none; cursor: grab; }
.stage canvas.grabbing { cursor: grabbing; }
.stage.empty canvas { display: none; }

.drop-hint {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 9px; text-align: center;
  color: #efe9d6; padding: 20px;
}
.stage.empty .drop-hint { display: flex; }
.drop-hint b { font-family: var(--marker); font-size: 24px; letter-spacing: .01em; color: var(--hi); }
.drop-hint span:last-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: #9d977f; text-transform: uppercase; }
.dh-fig { width: 54px; height: 66px; display: block; opacity: .9; }
.dh-fig svg { width: 100%; height: 100%; overflow: visible; }

.dragging-over {
  position: absolute; inset: 8px; display: none; place-items: center;
  border: 3px dashed var(--hi); background: rgba(20,20,16,.72); z-index: 5;
}
.dragging-over b { font-family: var(--marker); font-size: 30px; color: var(--hi); letter-spacing: -.01em; }
.stage.over .dragging-over { display: grid; }

.stage-bar {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px 0;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3);
}
.sb-r { text-align: right; }
@media (max-width: 620px) { .sb-r { display: none; } }

.panelctl {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vh, 13px) 14px; align-content: start; min-width: 0;
}
.ctl.span { grid-column: 1 / -1; }
.ctl { display: flex; flex-direction: column; gap: 6px; }
.ctl-lab {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  display: flex; justify-content: space-between;
}
.ctl-lab output { color: var(--ink); }

.pose-picker { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.pose-picker button {
  aspect-ratio: 1; border: 1.5px solid var(--rule); background: var(--paper);
  cursor: pointer; padding: 3px; border-radius: 2px; transition: .12s;
}
.pose-picker button svg { width: 100%; height: 100%; overflow: visible; }
.pose-picker button:hover { border-color: var(--ink); }
.pose-picker button.on { background: var(--hi); border-color: var(--ink); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: clamp(16px, 2.4vh, 22px); background: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: var(--ink); }
input[type=range]::-moz-range-track { height: 3px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px;
  background: var(--hi); border: 2px solid var(--ink); border-radius: 50%;
}
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: var(--hi); border: 2px solid var(--ink); border-radius: 50%; }

.swatches { display: flex; gap: 5px; }
.swatches button {
  width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 2px;
  cursor: pointer; position: relative; transition: .12s;
}
.swatches button.on::after {
  content: ''; position: absolute; inset: -5px; border: 1.5px solid var(--ink); border-radius: 3px;
}
.toggles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tg {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  padding: clamp(5px, 1.1vh, 8px) 4px; border: 1.5px solid var(--rule); background: var(--paper);
  cursor: pointer; border-radius: 2px; color: var(--ink-3); transition: .12s;
}
.tg:hover { border-color: var(--ink); color: var(--ink); }
.tg.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper-hi); }

.cap-in {
  font-family: var(--mono); font-size: 11.5px; padding: clamp(6px, 1.2vh, 9px) 10px;
  border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink);
  border-radius: 2px; width: 100%;
}
.cap-in:focus { outline: none; border-color: var(--ink); background: var(--paper-hi); }
.ctl-actions { gap: 8px; margin-top: 2px; }
.ctl-actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ctl-actions .btn { padding: clamp(7px, 1.4vh, 11px) 10px; font-size: 11px; box-shadow: 3px 3px 0 var(--ink); }

.plate-strip { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.strip-lab {
  font-family: var(--marker); font-size: 14px; letter-spacing: .01em;
  color: var(--red); white-space: nowrap; text-transform: uppercase;
}
.strip-run { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.strip-run button {
  flex: 0 0 auto; width: clamp(52px, 7vh, 76px); aspect-ratio: 16/9; padding: 0; cursor: pointer;
  border: 1.5px solid var(--rule); background: #111; overflow: hidden; border-radius: 2px; transition: .12s;
}
.strip-run button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-run button:hover { border-color: var(--ink); transform: translateY(-2px); }
.strip-run button.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--hi); }
@media (max-width: 620px) { .plate-strip { flex-direction: column; align-items: stretch; gap: 8px; } }

/* ── field guide ─────────────────────────────────────────────────────── */
.guide-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 1.5px solid var(--rule); border-left: 1.5px solid var(--rule); }
.guide-grid button {
  border: 0; border-right: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule);
  background: transparent; cursor: pointer; padding: clamp(10px, 1.6vh, 18px) 12px; text-align: left;
  display: flex; flex-direction: column; align-items: center; gap: 9px; transition: background .14s;
}
@media (max-width: 900px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-grid button:hover { background: var(--paper-hi); }
.guide-grid button:hover .g-fig { transform: translateY(-3px) rotate(-2deg); }
.g-fig { width: clamp(46px, 6.4vh, 70px); transition: transform .18s; }
.g-fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-meta { text-align: center; }
.g-name { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; display: block; }
.g-note { font-family: var(--shan); font-weight: 500; font-size: clamp(10.5px, 1.5vh, 12.5px); color: var(--ink-3); line-height: 1.25; display: block; margin-top: 5px; }

/* ── sightings ───────────────────────────────────────────────────────── */
.sight-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(9px, 1.1vw, 15px); }
@media (max-width: 1100px) { .sight-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .sight-grid { grid-template-columns: repeat(2, 1fr); } }
.sight {
  position: relative; background: var(--paper-hi); padding: 6px 6px 0;
  border: 1.5px solid var(--rule); cursor: pointer; display: block; width: 100%;
  text-align: left; transition: transform .16s, box-shadow .16s;
  box-shadow: 0 10px 26px -16px rgba(30,26,10,.45);
  transform: rotate(var(--t, 0deg));
}
.sight:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 16px 34px -16px rgba(30,26,10,.5); }
.sight canvas { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #111; }
.sight figcaption {
  display: flex; justify-content: space-between; gap: 6px; padding: 6px 1px 7px;
  font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.sight figcaption .dl { color: var(--red); opacity: 0; transition: .15s; white-space: nowrap; }
.sight:hover figcaption .dl { opacity: 1; }

/* ── nomics ──────────────────────────────────────────────────────────── */
.nom { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.nom-note { margin-top: 22px; }
.nom > div { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: clamp(12px, 2.2vh, 20px) 18px clamp(14px, 2.4vh, 22px); }
.nk { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: block; }
.nv { font-family: var(--disp); font-weight: 700; font-size: clamp(21px, 2.6vw, 31px); letter-spacing: -.03em; display: block; margin-top: 6px; }
@media (max-width: 760px) { .nom { grid-template-columns: 1fr 1fr; } }

/* ── how to buy ──────────────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: s; max-width: 60ch; margin-bottom: 30px; }
.steps li {
  counter-increment: s; position: relative; padding: clamp(8px, 1.6vh, 13px) 0 clamp(8px, 1.6vh, 13px) 52px;
  border-bottom: 1.5px solid var(--rule);
  font-family: var(--shan); font-weight: 500; font-size: 17.5px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 11px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.ca { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 2px solid var(--ink); background: var(--paper-hi); padding: 14px 16px; box-shadow: 5px 5px 0 var(--ink); }
.ca-lab { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; color: var(--ink-3); }
.ca code { font-family: var(--mono); font-size: clamp(11px, 1.5vw, 14px); font-weight: 700; word-break: break-all; flex: 1; min-width: 180px; }
.ca .btn { padding: 10px 16px; font-size: 11px; box-shadow: 3px 3px 0 var(--ink); }

/* ── footer ──────────────────────────────────────────────────────────── */
.foot { border-top: 2px solid var(--ink); background: var(--ink); color: #cfc9b4; scroll-snap-align: start; }
.foot-in { max-width: var(--col); margin: 0 auto; padding: 40px clamp(16px, 4vw, 34px) 52px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.foot-fig { width: 44px; height: 54px; display: block; }
.foot-fig svg { width: 100%; height: 100%; overflow: visible; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--paper); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.foot-links a:hover { border-bottom-color: var(--hi); }
.disc { font-family: var(--mono); font-size: 10.5px; line-height: 1.8; color: #8a8574; max-width: 82ch; }

/* ── what is this ────────────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,18,10,.62);
  display: grid; place-items: center; padding: 18px; overflow-y: auto;
  animation: fade .18s ease-out;
}
/* an author display rule beats the UA's [hidden] { display:none } — without
   this the dialog can be closed but never actually goes away */
.scrim[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.intro {
  position: relative; background: var(--paper); max-width: 620px; width: 100%;
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(24px, 4vw, 40px); animation: pop .22s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.intro-x {
  position: absolute; top: 10px; right: 12px; background: none; border: 0;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-3);
}
.intro-x:hover { color: var(--red); }
.intro-kicker { font-family: var(--marker); font-size: 20px; color: var(--red); transform: rotate(-1.5deg); transform-origin: left; }
.intro-title { font-family: var(--disp); font-weight: 700; font-size: clamp(40px, 7vw, 60px); letter-spacing: -.04em; line-height: .9; margin: 6px 0 20px; }
.intro-list { list-style: none; counter-reset: i; display: flex; flex-direction: column; gap: 14px; }
.intro-list li {
  counter-increment: i; position: relative; padding-left: 40px; font-size: 15.5px;
  line-height: 1.55; color: var(--ink-2); opacity: 0;
  animation: slide .4s ease-out forwards;
}
.intro-list li b { color: var(--ink); }
.intro-list li i { font-style: italic; }
.intro-list li::before {
  content: counter(i); position: absolute; left: 0; top: 1px;
  width: 25px; height: 25px; display: grid; place-items: center;
  background: var(--hi); border: 1.5px solid var(--ink); border-radius: 50%;
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink);
}
@keyframes slide { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.intro-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1.5px solid var(--rule); }

/* ── scroll draw-on ──────────────────────────────────────────────────── */
[data-draw] path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
[data-draw].in path { animation: ink .9s cubic-bezier(.5,0,.2,1) forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ticker-run { animation: none; }
  [data-draw] path { stroke-dashoffset: 0; }
}

/* ── narrow-screen overrides ─────────────────────────────────────────────
   These live at the end on purpose: a media query adds no specificity, so an
   override placed above the base rule it is meant to beat simply loses. */
@media (max-width: 900px) {
  .panelctl { grid-template-columns: 1fr; }
  .pose-picker { grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .toggles { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .pose-picker { grid-template-columns: repeat(4, 1fr); }
  .ctl-actions .two { gap: 6px; }
}
