/* ═══════════════════════════════════════════════════════════════════════
   Ranbir Gill — project pages.

   Same paper, ink and type as the wall on the home page, set up for
   reading: a long page of sections, each with a number and a heading.
   The one dark band (How it works) is the room from the desk scene.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --paper: #f6efe3;
  --sheet: #fdfaf4;
  --paper-sheet: linear-gradient(170deg, #fdfaf4 0%, #f8f2e7 60%, #f3ebdd 100%);
  --footer: #efe6d7;
  --ink: #1f2230;
  --ink-2: #4a4d5c;
  --muted: #6b6258;
  --line: rgba(31, 34, 48, 0.12);
  --red: #c8323a;
  --red-soft: #d9777c;
  /* Each project page can set its own accent colour; red is the Webshooter's. */
  --accent: var(--red);
  --accent-rgb: 200, 50, 58;
  --accent-mid: #ff8a8f;   /* accent on dark backgrounds */
  --accent-light: #ffb4b7; /* softer accent on dark backgrounds */
  --gold: #c99a2e;
  --room: #241f2a;
  --nav-h: 64px;
  /* Side margin. Capped, so on very wide screens the content keeps its full
     width instead of the margins eating into it. */
  --gutter: clamp(20px, 4vw, 64px);
  --card-shadow: 0 1px 2px rgba(70, 50, 35, 0.12), 0 8px 24px rgba(70, 50, 35, 0.14);

  --display: 'Barlow Condensed', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.85em; background: rgba(31, 34, 48, 0.06); padding: 0.1em 0.35em; border-radius: 3px; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }


/* ── Navbar (the "landed on paper" look from the home page) ─────────── */

.nav {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 10;
  height: var(--nav-h);
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(246, 239, 227, 0.94);
  box-shadow: 0 1px 0 rgba(31, 34, 48, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 450ms cubic-bezier(.3, .7, .3, 1);
}
.nav.is-hidden { transform: translateY(calc(-100% - 2px)); }
.nav a,
.footer a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 200ms ease;
}
.nav a:hover,
.footer a:hover { opacity: 1; }
.nav .nav__name { font-weight: 700; font-size: 20px; letter-spacing: 0.06em; opacity: 1; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); }


/* ── Shared bits ────────────────────────────────────────────────────── */

.eyebrow,
.section__num,
.versus__label,
.sheet__title,
.bug__badge,
.fire__label,
.loop__title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 0.12em 0.35em 0.08em;
  border-radius: 4px;
  background: var(--accent);
  color: #fdf6ee;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.32em;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* The V2 tag and, beside it, the link to the files. This row takes the
   title's font size and line height, so the tag sits exactly where it did
   as the title's last line. */
.hero__badges {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 0.9em;
  font-size: clamp(40px, 19.6cqi, 104px);
}
.get {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1.5px rgba(31, 34, 48, 0.16), 0 6px 16px rgba(70, 50, 35, 0.12);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 250ms ease, transform 250ms ease, background-color 250ms ease;
}
.get:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 10px 24px rgba(var(--accent-rgb), 0.18);
}
.get__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.get__sep { width: 1px; height: 16px; background: rgba(31, 34, 48, 0.18); }
.get__cta {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.get__arrow { display: inline-block; margin-left: 2px; color: var(--accent); transition: transform 250ms ease; }
.get:hover .get__arrow { transform: translate(2px, -2px); }
/* When the title column is too narrow for the whole pill, keep just the link. */
@container (max-width: 480px) {
  .get__label, .get__sep { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, opacity 200ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--accent); color: #fff7f0; box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.35); }
.btn--red:hover { box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.45); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.75; }
.btn--ghost:hover { opacity: 1; }
.btn--ink { background: var(--ink); color: var(--paper); }

/* Photos sit on the page like prints: white border, card shadow. */
.photo { margin: 0; }
.photo .zoom {
  display: block;
  padding: 8px;
  background: var(--sheet);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  cursor: zoom-in;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.photo .zoom:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 2px 4px rgba(70, 50, 35, 0.14), 0 20px 40px rgba(70, 50, 35, 0.22);
}
.photo img { border-radius: 2px; width: 100%; }
.photo figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Fade up as they scroll into view. Only once JavaScript is running, so the
   page is never stuck invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }


/* ══════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════ */

.hero {
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 6vh) var(--gutter) 8vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover { color: var(--ink); }
.hero__text { container-type: inline-size; }
/* Sized from the width of its own column, not the window, so the longest
   word ("WEBSHOOTER", about 4.95em wide) always fits beside the photo. */
.hero__title {
  margin-top: 14px;
  font-size: clamp(40px, 19.6cqi, 104px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.nowrap { white-space: nowrap; }
.hero__small {
  display: block;
  margin-bottom: 0.1em;
  font-size: 0.36em;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.hero__sub {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: italic;
  line-height: 1.25;
  color: var(--ink-2);
}
.hero__lede { margin: 22px 0 0; max-width: 34em; color: var(--ink-2); }
.hero__facts {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 8px 28px;
}
.hero__facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero__facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 22px; }

.hero__photo { position: relative; margin: 0; }
.hero__photo .zoom {
  display: block;
  padding: 10px 10px 12px;
  background: var(--sheet);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(70, 50, 35, 0.14), 0 24px 50px rgba(70, 50, 35, 0.24);
  transform: rotate(1.6deg);
  cursor: zoom-in;
  transition: transform 400ms cubic-bezier(.2, .7, .2, 1);
}
.hero__photo .zoom:hover { transform: rotate(0deg) translateY(-4px); }
.hero__photo img { border-radius: 2px; width: 100%; }
.hero__stamp {
  position: absolute;
  left: -26px; top: -30px;
  width: 92px; height: 92px;
  color: var(--ink);
  background: var(--sheet);
  border-radius: 50%;
  padding: 12px;
  box-shadow: var(--card-shadow);
  filter: drop-shadow(0 0 6px rgba(220, 90, 95, 0.35));
  transform: rotate(-10deg);
}
.js .hero__stamp { animation: stampIn 900ms cubic-bezier(.2, 1.4, .4, 1) 300ms both; }
@keyframes stampIn { from { transform: rotate(-40deg) scale(0.3); opacity: 0; } }
.hero__photo figcaption { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }


/* ══════════════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════════════ */

.section {
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 10vh var(--gutter);
  border-top: 1px solid var(--line);
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}
.section__num {
  flex: none;
  color: var(--accent);
  font-size: 14px;
}
.section h2 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: 0.01em; }
.lead { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 40em; margin-bottom: 36px; }

.prose { max-width: 38em; }
.prose--narrow { margin-top: 40px; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.dropcap::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 4.1em;
  line-height: 0.8;
  color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.split--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }

.pull {
  margin: 64px auto 0;
  max-width: 820px;
  padding: 0 0 0 28px;
  border-left: 4px solid var(--accent);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}
.pull mark {
  background: linear-gradient(transparent 62%, rgba(var(--accent-rgb), 0.22) 62%);
  color: inherit;
}


/* ── 02 Approach ────────────────────────────────────────────────────── */

.versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.versus__card {
  padding: 28px 28px 24px;
  border-radius: 6px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}
.versus__card h3 { margin: 10px 0 12px; font-size: 32px; }
.versus__card p { color: var(--ink-2); font-size: 17px; }
.versus__card--then { border-top: 4px solid var(--gold); }
.versus__card--now { border-top: 4px solid var(--accent); }
.versus__vs {
  align-self: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  color: var(--muted);
}
.pace { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.pace__row { display: flex; gap: 6px; margin-bottom: 8px; }
.pace__dot { width: 22px; height: 22px; border-radius: 5px; background: rgba(31, 34, 48, 0.08); }
.versus__card--then .pace__dot.is-on { background: var(--gold); }
.versus__card--now .pace__dot.is-on { background: var(--accent); }
.js .versus .pace__dot.is-on { transform: scale(0.4); opacity: 0; transition: transform 400ms cubic-bezier(.2, 1.5, .4, 1), opacity 300ms ease; }
.js .versus.is-in .pace__dot.is-on { transform: none; opacity: 1; }
.versus.is-in .pace__dot:nth-child(2) { transition-delay: 80ms; }
.versus.is-in .pace__dot:nth-child(3) { transition-delay: 160ms; }
.versus.is-in .pace__dot:nth-child(4) { transition-delay: 240ms; }
.versus.is-in .pace__dot:nth-child(5) { transition-delay: 320ms; }
.versus.is-in .pace__dot:nth-child(6) { transition-delay: 400ms; }
.versus.is-in .pace__dot:nth-child(7) { transition-delay: 480ms; }
.pace__text { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pace__text strong { color: var(--ink); }

.loop { margin-top: 44px; }
.loop__title { margin-bottom: 14px; }
.loop__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
}
.loop__steps li { display: flex; align-items: center; }
.loop__steps li span {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
}
.loop__steps li:last-child span { background: var(--ink); color: var(--paper); }
.loop__steps li + li::before {
  content: "→";
  margin: 0 10px;
  color: var(--accent);
  font-weight: 600;
}
.loop__steps li:last-child::after {
  content: "↺";
  margin-left: 10px;
  font-size: 22px;
  color: var(--accent);
}


/* ── 03 Mechanism (dark band) ───────────────────────────────────────── */

.section--dark {
  max-width: none;
  border: 0;
  color: var(--paper);
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(255, 190, 140, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(150, 150, 210, 0.12), transparent 70%),
    var(--room);
}
.section__inner { max-width: 1120px; margin: 0 auto; }
.section--dark .lead { color: rgba(246, 239, 227, 0.78); }
.section--dark .section__num { color: var(--accent-mid); }
.section--dark .photo figcaption { color: rgba(246, 239, 227, 0.6); }
.section--dark .photo .zoom { background: #2f2936; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }

.mech {
  display: grid;
  gap: 28px;
  margin-bottom: 64px;
}
.mech__stage {
  position: relative;
  padding: 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mech__svg { display: block; width: 100%; height: auto; overflow: visible; }
.mech__note { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: rgba(246, 239, 227, 0.45); text-align: right; }

/* Diagram parts */
.m-barrel rect { fill: rgba(246, 239, 227, 0.16); stroke: rgba(246, 239, 227, 0.75); stroke-width: 1.5; }
.m-part { fill: #b9bec6; stroke: #e7eaee; stroke-width: 1; }
.m-part--dark { fill: #8b919a; }
.m-magnet { fill: #3a3a46; stroke: #9aa3b2; stroke-width: 1; }
.m-nub { fill: #8b919a; stroke: #e7eaee; stroke-width: 1; }
.m-coil { fill: none; stroke: #f6efe3; stroke-width: 2; stroke-linecap: round; opacity: 0.8; }
.m-spring { fill: none; stroke: #8fc0dc; stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; transform-origin: 374px 150px; }
.m-stopper { fill: var(--accent); stroke: #ff9da1; stroke-width: 1; }
.m-band { stroke: #f0a94e; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
rect.m-band { fill: #f0a94e; stroke: none; }
.m-band--l { transform-origin: 228px 190px; }
.m-band--r { transform-origin: 274px 190px; }
.m-pull { stroke: #f6efe3; stroke-width: 1.6; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.m-pull--h { transform-origin: 251px 250px; }
.m-pull--v { transform-origin: 251px 250px; }
.m-guide { fill: var(--room); stroke: #f6efe3; stroke-width: 1.5; }
.m-ring circle { fill: none; stroke: #f6efe3; stroke-width: 2; }
.m-web { fill: #f6efe3; transform-origin: 223px 150px; transform: scaleX(0); }
.m-snap { fill: none; stroke: #8fc0dc; stroke-width: 2; opacity: 0; transform-origin: 223px 150px; }
.m-snap--click { stroke: var(--accent-light); transform-origin: 251px 156px; }
.m-label { font-family: var(--mono); font-size: 13px; fill: rgba(246, 239, 227, 0.6); stroke: none; }
.m-range line { stroke: rgba(246, 239, 227, 0.5); stroke-width: 1.5; }
.m-range text { font-family: var(--mono); font-size: 14px; fill: var(--accent-light); }
.m-range { opacity: 0; transition: opacity 500ms ease; }
.mech[data-step="4"] .m-range { opacity: 1; transition-delay: 500ms; }

.mech__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 40px;
  align-items: center;
}
.mech__steps {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.mech__steps li {
  position: relative;
  padding: 46px 0 0;
  border-top: 2px solid rgba(246, 239, 227, 0.12);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(246, 239, 227, 0.72);
  transition: color 300ms ease, opacity 300ms ease;
}
.mech__steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0; top: 10px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(246, 239, 227, 0.4);
  transition: background-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
}
.mech__steps strong { color: var(--paper); }
/* With the diagram running: done steps are ticked, the next one is lit. */
.js .mech__steps li { opacity: 0.45; }
.js .mech__steps li.is-done { opacity: 0.8; }
.js .mech__steps li.is-done::before { content: "✓"; background: rgba(143, 192, 220, 0.25); box-shadow: inset 0 0 0 1.5px #8fc0dc; color: #cfe7f5; }
.js .mech__steps li.is-next { opacity: 1; color: var(--paper); border-top-color: var(--accent); }
.js .mech__steps li.is-done { border-top-color: #8fc0dc; }
.js .mech__steps li.is-next::before { background: var(--accent); box-shadow: none; color: #fff; }
.mech__controls { display: flex; flex-wrap: wrap; gap: 12px; }
.mech__controls .btn--ghost { color: var(--paper); }
html:not(.js) .mech__controls { display: none; }
.mech__controls { grid-column: 2; grid-row: 2; }
.mech__range { grid-column: 1; grid-row: 2; margin: 0; font-size: 16px; color: rgba(246, 239, 227, 0.72); }
.mech__range strong { color: var(--paper); }
.photo--wide { max-width: 760px; margin: 0 auto; }

/* The firing clip: portrait video beside its caption. */
.clip {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 900px;
  margin: 0 auto 72px;
}
.clip__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.clip__video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; cursor: pointer; }
.clip__speed {
  position: absolute;
  left: 12px; top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.92);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
}
.clip.is-slow .clip__speed { opacity: 1; transform: none; }
.clip__eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-mid);
}
.clip h3 { margin: 12px 0 14px; font-size: clamp(36px, 4vw, 52px); }
.clip p { color: rgba(246, 239, 227, 0.78); max-width: 26em; }
.clip__controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.clip__controls .btn--ghost { color: var(--paper); }
html:not(.js) .clip__controls { display: none; }


/* ── 04 Components ──────────────────────────────────────────────────── */

.parts__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.parts__tabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.parts__tabs [role="tab"]:hover { transform: translateY(-2px); }
.parts__tabs [role="tab"] span {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(31, 34, 48, 0.08);
  font-family: var(--mono);
  font-size: 12px;
}
.parts__tabs [aria-selected="true"] { background: var(--ink); color: var(--paper); }
.parts__tabs [aria-selected="true"] span { background: var(--accent); color: #fff; }
/* Without JavaScript every component is shown, one after another. */
html:not(.js) .parts__tabs { display: none; }

.part {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
html:not(.js) .part + .part { margin-top: 72px; }
.js .part[hidden] { display: none; }
.js .part.is-entering .v { animation: vIn 500ms cubic-bezier(.2, .7, .2, 1) both; }
.js .part.is-entering .v:nth-child(2) { animation-delay: 60ms; }
.js .part.is-entering .v:nth-child(3) { animation-delay: 120ms; }
.js .part.is-entering .v:nth-child(4) { animation-delay: 180ms; }
.js .part.is-entering .v:nth-child(5) { animation-delay: 240ms; }
.js .part.is-entering .v:nth-child(6) { animation-delay: 300ms; }
@keyframes vIn { from { opacity: 0; transform: translateX(-14px); } }

.part h3 { font-size: 40px; }
.part__path { margin: 10px 0 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.6; }
.part__path b { color: var(--accent); font-weight: 500; }
.part__intro { color: var(--ink-2); font-style: italic; }
.part__photo { position: sticky; top: calc(var(--nav-h) + 24px); }

.versions { list-style: none; margin: 18px 0 0; padding: 0; }
.v {
  position: relative;
  padding: 0 0 22px 34px;
}
/* The rail and the dots. */
.v::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: -8px;
  width: 2px;
  background: rgba(31, 34, 48, 0.14);
}
.v:last-child::before { display: none; }
.v::after {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--sheet);
  box-shadow: inset 0 0 0 3px #9aa0a8;
}
.v--old::after { box-shadow: inset 0 0 0 3px var(--gold); background: #f6e3b4; }
.v--final::after { background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2); }
.v__tag {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.v--old .v__tag { color: #9a7317; }
.v--final .v__tag { color: var(--accent); }
.v p { margin: 0; font-size: 17px; color: var(--ink-2); }
.v--final p { color: var(--ink); }


/* ── 05 Pipeline ────────────────────────────────────────────────────── */

.pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}
.pipe li {
  position: relative;
  padding: 18px 14px 16px;
  border-radius: 6px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
}
.pipe li:not(:last-child):not(:nth-child(4))::after {
  content: "";
  position: absolute;
  right: -12px; top: 30px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  z-index: 1;
}
.pipe__n {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
}
.pipe li:last-child .pipe__n { background: var(--accent); }
.pipe h3 { font-size: 22px; margin-bottom: 6px; }
.pipe p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.pipe code { font-size: 0.78em; word-break: break-all; }
.js .pipe.reveal li { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms cubic-bezier(.2, .7, .2, 1); }
.js .pipe.reveal { opacity: 1; transform: none; }
.js .pipe.is-in li { opacity: 1; transform: none; }
.pipe.is-in li:nth-child(2) { transition-delay: 70ms; }
.pipe.is-in li:nth-child(3) { transition-delay: 140ms; }
.pipe.is-in li:nth-child(4) { transition-delay: 210ms; }
.pipe.is-in li:nth-child(5) { transition-delay: 280ms; }
.pipe.is-in li:nth-child(6) { transition-delay: 350ms; }
.pipe.is-in li:nth-child(7) { transition-delay: 420ms; }

.files {
  margin-top: 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.files__tree {
  padding: 18px 22px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
}
.files__row { white-space: pre; }
.files > * { min-width: 0; }
.files__tree { max-width: 100%; overflow-x: auto; }
.files__row--root { color: var(--accent-light); }
.files__row--muted { color: rgba(246, 239, 227, 0.5); }
.files p { margin: 0; color: var(--ink-2); max-width: 36em; }

.specs {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}
.sheet {
  padding: 26px 28px;
  border-radius: 6px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
}
.sheet__title { margin-bottom: 14px; color: var(--accent); }
.spec { margin: 0; }
.spec > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.spec dt { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.spec dd { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sheet--spring .spec dd { display: block; }
.meter { flex: 1; min-width: 80px; height: 8px; border-radius: 99px; background: rgba(31, 34, 48, 0.08); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.js .sheet.reveal .meter i { transform: scaleX(0); transform-origin: left; transition: transform 900ms cubic-bezier(.2, .7, .2, 1) 300ms; }
.js .sheet.is-in .meter i { transform: none; }
.walls { position: relative; width: 34px; height: 20px; }
.walls i { position: absolute; border: 1.5px solid var(--ink-2); border-radius: 3px; }
.walls i:nth-child(1) { inset: 0; }
.walls i:nth-child(2) { inset: 3px; }
.walls i:nth-child(3) { inset: 6px; }
.walls i:nth-child(4) { inset: 9px 6px; border-color: var(--accent); }

.spring {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
}
.spring__svg { display: block; width: 100%; height: auto; }
.spring__wall { stroke: rgba(246, 239, 227, 0.6); stroke-width: 3; stroke-linecap: round; }
.spring__coil { fill: none; stroke: #8fc0dc; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transform-origin: 10px 35px; }
.spring__plate { fill: var(--accent); }
.spring__control { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-family: var(--mono); font-size: 13px; color: rgba(246, 239, 227, 0.7); }
.spring__control input { flex: 1; accent-color: var(--accent); }
.spring__readout { margin-top: 6px; font-family: var(--mono); font-size: 13px; color: rgba(246, 239, 227, 0.7); }
.spring__readout b { color: #fff; font-weight: 500; }
.spring__readout.is-full b { color: var(--accent-light); }


/* ── 06 Numbers + spaghetti ─────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.stat {
  padding: 26px 22px 22px;
  border-radius: 6px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
}
.stat__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__n small { font-size: 0.4em; color: var(--muted); }
.stat:nth-child(2) .stat__n { color: var(--accent); }
.stat__l { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stats .stat:nth-child(2) { transition-delay: 80ms; }
.stats .stat:nth-child(3) { transition-delay: 160ms; }
.stats .stat:nth-child(4) { transition-delay: 240ms; }

.bug {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  border-left: 5px solid var(--accent);
}
.bug__badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.bug h3 { margin: 12px 0 16px; font-size: 36px; }
.bug__log { margin: 0; }
.bug__log > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
}
.bug__log dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.bug__log dd { margin: 0; font-size: 16px; color: var(--ink-2); }
.bug__fail dt { color: var(--accent); }
.bug__fail dt::before { content: "✗ "; }
.bug__fix dt { color: #2f7a52; }
.bug__fix dt::before { content: "✓ "; }
.bug__fix dd { color: var(--ink); }
.bug__photo .zoom { transform: rotate(-1.5deg); }


/* ── 07 Reliability ─────────────────────────────────────────────────── */

.fixes { border-radius: 6px; overflow: hidden; box-shadow: var(--card-shadow); background: var(--sheet); }
.fixes__row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
}
.fixes__row--head {
  border-top: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fixes__row b { font-family: var(--display); font-size: 19px; }
.fixes__bad { color: #8a3a3e; }
.fixes__bad::before { content: "✗ "; color: var(--accent); }
.fixes__good::before { content: "✓ "; color: #2f7a52; font-weight: 600; }
.verdict { margin: 28px 0 0; font-size: 20px; color: var(--ink-2); }
.verdict strong { color: var(--ink); }


/* ── 08 Stories ─────────────────────────────────────────────────────── */

.sketches {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  margin-bottom: 56px;
}
.note {
  padding: 24px 22px;
  background: #f7eeb8;
  box-shadow: 0 1px 2px rgba(70, 50, 35, 0.14), 0 12px 26px rgba(70, 50, 35, 0.18);
  transition: transform 300ms ease;
}
.note h3 { font-size: 26px; margin-bottom: 12px; }
.note p { margin: 0; font-size: 16px; line-height: 1.55; color: #4a4532; }
.note--tilt-l { transform: rotate(-1.8deg); }
.note--tilt-r { transform: rotate(1.6deg); }
.note:hover { transform: rotate(0deg) translateY(-4px); }

.story {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 56px;
  padding: 28px 30px;
  border-radius: 8px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
}
.story__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffd27a;
  font-size: 24px;
}
.story h3 { font-size: 30px; margin-bottom: 10px; }
.story p { margin: 0; color: var(--ink-2); }

.fires {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.fire {
  padding: 28px 28px 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.fire p { font-size: 17px; }
.fire--then { background: var(--paper-sheet); box-shadow: var(--card-shadow); border-top: 4px solid var(--gold); }
.fire--then p { color: var(--ink-2); }
.fire--now { background: var(--ink); color: var(--paper); box-shadow: 0 16px 40px rgba(31, 34, 48, 0.3); }
.fire--now .fire__label { color: var(--accent-light); }
.fire--now p { color: rgba(246, 239, 227, 0.85); }
.fire__label { margin-bottom: 14px; }
.fire__result {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed currentColor;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.02em;
}
.fire--then .fire__result { color: #8a6516; border-color: rgba(31, 34, 48, 0.15); }
.fire--now .fire__result { color: var(--accent-mid); border-color: rgba(246, 239, 227, 0.2); }


/* ── 09 The finished pair ───────────────────────────────────────────── */

.finale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.finale__photo { position: relative; margin: 0; }
.finale__photo .zoom {
  display: block;
  padding: 10px;
  background: var(--sheet);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(70, 50, 35, 0.14), 0 24px 50px rgba(70, 50, 35, 0.24);
  transform: rotate(-1.4deg);
  cursor: zoom-in;
  transition: transform 400ms cubic-bezier(.2, .7, .2, 1);
}
.finale__photo .zoom:hover { transform: rotate(0deg) translateY(-4px); }
.finale__photo img { width: 100%; border-radius: 2px; }

/* Numbered markers on the photo, matched to the list beside it. */
.spot {
  position: absolute;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35), 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: transform 250ms cubic-bezier(.2, 1.5, .4, 1), background-color 200ms ease, color 200ms ease;
}
.spot.is-lit { transform: scale(1.25); background: var(--accent); color: #fff; }
.spots { list-style: none; margin: 0; padding: 0; }
.spots li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 14px;
  padding: 12px 10px;
  margin: 0 -10px;
  border-radius: 6px;
  font-size: 16px;
  color: var(--ink-2);
  cursor: default;
  transition: background-color 200ms ease;
}
.spots li::before {
  content: attr(data-spot);
  grid-row: span 2;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
}
.spots b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); }
.spots li.is-lit { background: rgba(var(--accent-rgb), 0.08); }
.spots li.is-lit::before { background: var(--accent); }


/* ── 10 Print your own ──────────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 10px;
  color: var(--paper);
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(var(--accent-rgb), 0.28), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(80, 120, 220, 0.22), transparent 70%),
    var(--room);
  box-shadow: 0 24px 60px rgba(31, 34, 48, 0.3);
}
.cta__web {
  position: absolute;
  left: -70px; bottom: -80px;
  width: 300px; height: 300px;
  color: rgba(246, 239, 227, 0.07);
  pointer-events: none;
}
.cta__eyebrow,
.cta__kit-title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.cta h3 { margin: 12px 0 16px; font-size: clamp(34px, 3.6vw, 48px); }
.cta__main { position: relative; align-self: center; }
.cta__main p { color: rgba(246, 239, 227, 0.8); max-width: 30em; }
.cta__btn { margin-top: 10px; font-size: 18px; padding: 14px 24px; }
.cta__btn span { transition: transform 200ms ease; }
.cta__btn:hover span { transform: translate(3px, -3px); }
.cta__kit {
  position: relative;
  padding: 22px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.kit { list-style: none; margin: 14px 0 18px; padding: 0; }
.kit li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-top: 1px dashed rgba(246, 239, 227, 0.14);
  font-size: 15px;
  line-height: 1.45;
  color: rgba(246, 239, 227, 0.72);
}
.kit li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 14px; height: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px rgba(246, 239, 227, 0.5);
}
.kit b { display: block; color: var(--paper); font-weight: 600; }
.cta__specs { font-family: var(--mono); font-size: 13px; color: var(--accent-light); text-decoration: none; }
.cta__specs:hover { text-decoration: underline; }


/* ── Closing ────────────────────────────────────────────────────────── */

.closing {
  max-width: calc(860px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 14vh var(--gutter) 16vh;
  text-align: center;
  border-top: 1px solid var(--line);
}
.closing__web { width: 72px; height: 72px; color: var(--ink); filter: drop-shadow(0 0 6px rgba(220, 90, 95, 0.5)); }
.closing h2 { margin: 18px 0 24px; font-size: clamp(40px, 5vw, 64px); }
.closing p { font-size: 21px; color: var(--ink-2); }
.closing__punch {
  margin: 30px 0 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px) !important;
  line-height: 1.15;
  color: var(--ink) !important;
}

.footer {
  padding: 28px 4vw 32px;
  border-top: 1px solid var(--line);
  background: var(--footer);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  color: var(--ink-2);
}
.footer__copy { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.footer__links { display: flex; gap: clamp(16px, 3vw, 32px); }


/* ── Lightbox ───────────────────────────────────────────────────────── */

.lightbox {
  width: min(94vw, 1400px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #111;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 16, 30, 0.82); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 92vh; object-fit: contain; border-radius: 6px; }
.lightbox[open] { animation: lbIn 300ms cubic-bezier(.2, .7, .2, 1); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.96); } }
.lightbox__close {
  position: absolute;
  right: -14px; top: -14px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}


/* ══════════════════════════════════════════════════════════════════════
   SLOPESTIX
   Same layout as the other project pages, in Slopestix's icy blue.
   ══════════════════════════════════════════════════════════════════════ */

.theme-slopestix {
  --accent: #1f6fb2;
  --accent-rgb: 31, 111, 178;
  --accent-mid: #7fbff0;
  --accent-light: #a8d4f5;
}

/* Sticker gloss: a soft highlight across the top-left, like light on vinyl. */
.gloss { position: relative; border-radius: 50%; }
.gloss::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero__title--brand { display: flex; align-items: center; gap: 0.12em; }
.hero__logo {
  width: auto;
  height: 0.92em;
  filter: drop-shadow(0 0 10px rgba(140, 200, 245, 0.55));
}

/* The laptop lid with all six stickers on it. */
.lid {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(150deg, #3b3e47 0%, #2a2c33 55%, #212228 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2px 4px rgba(20, 20, 30, 0.2), 0 30px 60px rgba(30, 30, 45, 0.35);
}
.slap {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotate(var(--r));
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
  transition: transform 350ms cubic-bezier(.2, 1.3, .4, 1), filter 350ms ease;
}
.slap img { width: 100%; height: 100%; border-radius: 50%; }
.slap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}
.slap:hover,
.slap:focus-visible {
  z-index: 2;
  transform: rotate(calc(var(--r) * 0.3)) translateY(-6px) scale(1.06);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35));
}
.js .lid .slap { animation: slapOn 600ms cubic-bezier(.2, 1.4, .4, 1) both; }
.js .lid .slap:nth-child(2) { animation-delay: 90ms; }
.js .lid .slap:nth-child(3) { animation-delay: 180ms; }
.js .lid .slap:nth-child(4) { animation-delay: 270ms; }
.js .lid .slap:nth-child(5) { animation-delay: 360ms; }
.js .lid .slap:nth-child(6) { animation-delay: 450ms; }
@keyframes slapOn { from { opacity: 0; transform: rotate(var(--r)) scale(1.35); } }


/* ── 01 Story ───────────────────────────────────────────────────────── */

.aside-card {
  padding: 26px 28px;
  border-radius: 8px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--accent);
}
.aside-card h3 { font-size: 30px; margin-bottom: 12px; }
.aside-card p { font-size: 17px; color: var(--ink-2); }
.aside-card p:last-child { margin: 0; }

.naming {
  margin-top: 64px;
  padding: 32px clamp(22px, 3vw, 40px);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
}
.naming__label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.naming__words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 14px 0 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.05;
  text-transform: uppercase;
}
.naming__step { color: var(--muted); }
.naming__step--final { color: var(--ink); }
.naming__arrow { color: var(--accent); font-size: 0.7em; }
/* "Ski" gets struck out, then "Slope" lands. */
.naming__ski { position: relative; }
.naming__ski::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%; top: 52%;
  height: 0.09em;
  background: var(--accent);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1) 500ms;
}
.naming__slope { color: var(--accent); display: inline-block; transition: transform 500ms cubic-bezier(.2, 1.5, .4, 1) 1000ms, opacity 400ms ease 1000ms; }
.js .naming:not(.is-in) .naming__ski::after { transform: scaleX(0); }
.js .naming:not(.is-in) .naming__slope { opacity: 0; transform: translateY(-0.4em); }
.naming__text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.naming__text p { font-size: 17px; color: var(--ink-2); }
.naming__text strong { color: var(--ink); }

.season { margin-top: 64px; }
.season__title {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.season__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}
.season__track::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 8px;
  height: 2px;
  background: linear-gradient(90deg, rgba(31, 34, 48, 0.15), var(--accent));
}
.season__track li { position: relative; padding-top: 30px; }
.season__track li::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sheet);
  box-shadow: inset 0 0 0 3px #9aa0a8;
}
.season__track li.season__launch::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.2); }
.season__when { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; }
.season__track p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.season__launch .season__when { color: var(--accent); }


/* ── 02 Designs ─────────────────────────────────────────────────────── */

.process {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.process li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.process__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
}
.process li:last-child .process__n { background: var(--accent); }

.gallery__picks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.gallery__picks [role="tab"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  transition: color 200ms ease;
}
.gallery__picks img {
  width: 100%;
  max-width: 120px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(30, 30, 45, 0.18), 0 8px 18px rgba(30, 30, 45, 0.16);
  transition: transform 300ms cubic-bezier(.2, 1.4, .4, 1), box-shadow 300ms ease;
}
.gallery__picks [role="tab"]:hover img { transform: translateY(-4px) rotate(-4deg); }
.gallery__picks [aria-selected="true"] { color: var(--ink); }
.gallery__picks [aria-selected="true"] img {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--accent), 0 12px 24px rgba(30, 30, 45, 0.2);
}
html:not(.js) .gallery__picks { display: none; }

.design {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
}
html:not(.js) .design + .design { margin-top: 24px; }
.js .design[hidden] { display: none; }
.design__art { position: relative; max-width: 360px; justify-self: center; width: 100%; }
.design__art img {
  width: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 4px 5px rgba(30, 30, 45, 0.22)) drop-shadow(0 22px 34px rgba(30, 30, 45, 0.22));
  transition: transform 500ms cubic-bezier(.2, 1.2, .4, 1);
}
.design__art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
  transition: transform 500ms cubic-bezier(.2, 1.2, .4, 1);
}
.design__art:hover img,
.design__art:hover::after { transform: rotate(-6deg) scale(1.03); }
.js .design.is-entering .design__art { animation: stickerIn 600ms cubic-bezier(.2, 1.4, .4, 1) both; }
.js .design.is-entering .design__text { animation: vIn 500ms cubic-bezier(.2, .7, .2, 1) 120ms both; }
@keyframes stickerIn { from { opacity: 0; transform: rotate(-14deg) scale(0.8); } }
.design__where {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.design h3 { margin: 14px 0 4px; font-size: clamp(40px, 4.4vw, 58px); }
.design__tag { margin-bottom: 16px; font-family: var(--display); font-weight: 600; font-style: italic; font-size: 22px; color: var(--muted); }
.design p { color: var(--ink-2); }
.design p:last-child { margin-bottom: 0; }


/* ── 03 Production ──────────────────────────────────────────────────── */

.track {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.track li {
  position: relative;
  padding: 16px 14px 14px;
  border-radius: 8px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
}
.track__stage { display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.track__stage::before { display: inline-block; width: 1.2em; font-family: var(--mono); font-size: 0.8em; }
.track__try .track__stage::before { content: "•"; color: var(--muted); }
.track__no .track__stage::before { content: "✗"; color: #a6423b; }
.track__yes .track__stage::before { content: "✓"; color: #2f7a52; }
.track__no { opacity: 0.86; }
.track__yes { box-shadow: inset 0 3px 0 #2f7a52, var(--card-shadow); }
.track p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.js .track.reveal { opacity: 1; transform: none; }
.js .track.reveal li { opacity: 0; transform: translateY(14px); transition: opacity 450ms ease, transform 450ms cubic-bezier(.2, .7, .2, 1); }
.js .track.is-in li { opacity: 1; transform: none; }
.js .track.is-in li.track__no { opacity: 0.86; }
.track.is-in li:nth-child(2) { transition-delay: 60ms; }
.track.is-in li:nth-child(3) { transition-delay: 120ms; }
.track.is-in li:nth-child(4) { transition-delay: 180ms; }
.track.is-in li:nth-child(5) { transition-delay: 240ms; }
.track.is-in li:nth-child(6) { transition-delay: 300ms; }
.track.is-in li:nth-child(7) { transition-delay: 360ms; }

.prose__h { margin-bottom: 12px; font-size: 30px; }

.finish p { color: var(--ink-2); }
.finish__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.finish__swatch { margin: 0; text-align: center; }
.finish__swatch img { width: 100%; max-width: 170px; margin: 0 auto 12px; border-radius: 50%; }
.finish__swatch { position: relative; }
.finish__swatch--matte img { filter: saturate(0.78) contrast(0.88) brightness(1.06); box-shadow: 0 3px 8px rgba(30, 30, 45, 0.18); }
.finish__swatch--gloss img { filter: saturate(1.1); box-shadow: 0 3px 8px rgba(30, 30, 45, 0.18), 0 14px 28px rgba(30, 30, 45, 0.18); }
.finish__swatch--gloss::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: min(100%, 170px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}
.finish__swatch figcaption { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.finish__swatch b { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); }
.finish__swatch--gloss b { color: var(--accent); }

.border-demo {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
}
.border-demo__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.border-demo__note { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; max-width: 260px; }
/* The cut is the circle; the print sits about 1mm (≈6px at this size) off. */
.cut {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 8px rgba(30, 30, 45, 0.15), 0 18px 36px rgba(30, 30, 45, 0.18);
}
.cut__print {
  position: absolute;
  inset: 0;
  transform: translate(7px, -4px);
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}
.cut__print img { width: 100%; height: 100%; border-radius: 50%; }
.cut__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 16px solid #fff;
  transition: opacity 400ms ease;
}
.cut__line {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(var(--accent-rgb), 0.85);
  pointer-events: none;
}
.border-demo[data-mode="borderless"] .cut__print { transform: translate(7px, -4px) scale(1.07); }
.border-demo[data-mode="borderless"] .cut__ring { opacity: 0; }
.border-demo__text p { color: var(--ink-2); }
.toggle {
  display: inline-flex;
  padding: 4px;
  margin: 6px 0 14px;
  border-radius: 999px;
  background: rgba(31, 34, 48, 0.07);
}
.toggle button {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.toggle button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 2px 6px rgba(30, 30, 45, 0.15); }
html:not(.js) .toggle { display: none; }
.border-demo__verdict { padding-left: 14px; border-left: 3px solid var(--accent); font-weight: 500; color: var(--ink) !important; }
.js .border-demo[data-mode="border"] [data-for="borderless"],
.js .border-demo[data-mode="borderless"] [data-for="border"] { display: none; }

.pack { margin-top: 72px; }
.pack__intro { max-width: 40em; margin-bottom: 28px; }
.pack__intro p { color: var(--ink-2); }
.pack__flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pack__step {
  padding: 22px 24px;
  border-radius: 8px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
}
.pack__label { margin-bottom: 12px; font-family: var(--display); font-weight: 700; font-size: 24px; }
.pack__label span { margin-left: 8px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pack__step ol { margin: 0; padding-left: 20px; }
.pack__step li, .pack__step p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.pack__step li + li { margin-top: 6px; }
.pack__step p:last-child { margin: 0; }
.envelope {
  position: relative;
  aspect-ratio: 1.75;
  margin-bottom: 16px;
  border-radius: 4px;
  background: linear-gradient(170deg, #fffdf8, #f4ecdf);
  box-shadow: inset 0 0 0 1px rgba(110, 90, 60, 0.18), 0 6px 14px rgba(70, 50, 35, 0.12);
}
.envelope__return {
  position: absolute;
  left: 7%; top: 12%;
  padding: 5px 8px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(31, 34, 48, 0.12);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.envelope__stamp {
  position: absolute;
  right: 6%; top: 10%;
  width: 15%;
  aspect-ratio: 0.85;
  padding: 5px;
  background: #fff;
  /* perforated edge: little bites out of every side */
  -webkit-mask: radial-gradient(circle 3px at 3px 3px, transparent 98%, #000) -3px -3px / 8px 8px, linear-gradient(#000 0 0) content-box;
          mask: radial-gradient(circle 3px at 3px 3px, transparent 98%, #000) -3px -3px / 8px 8px, linear-gradient(#000 0 0) content-box;
  filter: drop-shadow(0 1px 1px rgba(31, 34, 48, 0.18));
  transform: rotate(3deg);
  container-type: inline-size;
}
.envelope__stamp-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  border: 1px dashed rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  font-family: var(--mono);
  font-size: min(11px, 14cqi);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.envelope__stamp-face small { white-space: nowrap; font-size: 0.75em; font-weight: 400; letter-spacing: 0.04em; text-transform: none; opacity: 0.8; }
.envelope__postmark {
  position: absolute;
  right: 17%; top: 14%;
  display: grid;
  place-items: center;
  width: 13%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(44, 79, 124, 0.45);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: clamp(6px, 0.75vw, 8px);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: rgba(44, 79, 124, 0.6);
  transform: rotate(-14deg);
  pointer-events: none;
}
/* the wavy cancellation lines trailing off the postmark */
.envelope__postmark::after {
  content: "";
  position: absolute;
  right: 94%; top: 26%;
  width: 100%; height: 48%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%232c4f7c' stroke-opacity='.45' stroke-width='1.4'%3E%3Cpath d='M0 4q7.5-4 15 0t15 0 15 0 15 0'/%3E%3Cpath d='M0 12q7.5-4 15 0t15 0 15 0 15 0'/%3E%3Cpath d='M0 20q7.5-4 15 0t15 0 15 0 15 0'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.envelope__to {
  position: absolute;
  left: 50%; top: 58%;
  transform: translate(-50%, -50%) rotate(-2deg);
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  color: #2c4f7c;
  text-align: center;
}


/* ── 04 Website + 05 App (dark band) ────────────────────────────────── */

.stack { margin-bottom: 48px; display: grid; gap: 16px; }
.stack__row { display: flex; align-items: stretch; gap: 0; }
.stack__row--uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack__box {
  flex: 1;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.stack__box span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); }
.stack__box b { display: block; margin-top: 6px; font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--paper); line-height: 1.2; }
.stack__box small { display: block; margin-top: 4px; font-size: 14px; color: rgba(246, 239, 227, 0.6); }
.stack__box--hero { background: rgba(var(--accent-rgb), 0.28); box-shadow: inset 0 0 0 1px rgba(168, 212, 245, 0.4); }
.stack__wire { flex: 0 0 34px; align-self: center; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-mid) 0 6px, transparent 6px 11px); }

.split--dark .prose p { color: rgba(246, 239, 227, 0.78); }
.split--dark .prose__h { color: var(--paper); }
.tools-path { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.tools-path span { padding: 7px 14px; border-radius: 999px; font-family: var(--mono); font-size: 13px; box-shadow: inset 0 0 0 1px rgba(246, 239, 227, 0.3); color: rgba(246, 239, 227, 0.65); }
.tools-path span.is-now { background: var(--accent); box-shadow: none; color: #fff; }
.tools-path i { font-style: normal; color: var(--accent-mid); }
.callout {
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.22);
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--paper) !important;
}

.app {
  margin-top: 64px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.app__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 14px; }
.app__head h2 { font-size: clamp(32px, 3.6vw, 46px); }
.app > p { color: rgba(246, 239, 227, 0.78); max-width: 40em; }
.app__stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  color: rgba(246, 239, 227, 0.75);
}
.store b { display: block; font-family: var(--display); font-size: 20px; color: var(--paper); }
.store__dot { width: 10px; height: 10px; border-radius: 50%; }
.store--live .store__dot { background: #5fd38a; box-shadow: 0 0 0 4px rgba(95, 211, 138, 0.2); }
.store--review .store__dot { background: #f0b04e; box-shadow: 0 0 0 4px rgba(240, 176, 78, 0.2); }
.site-btn { margin-top: 40px; }


/* ── 06 Meme machine ────────────────────────────────────────────────── */

.memes {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.pipeline { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.pipeline li {
  position: relative;
  padding: 0 0 22px 52px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pipeline li::before {
  counter-increment: p;
  content: counter(p);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  z-index: 1;
}
.pipeline li::after {
  content: "";
  position: absolute;
  left: 15px; top: 32px; bottom: 0;
  width: 2px;
  background: rgba(31, 34, 48, 0.14);
}
.pipeline li:last-child::after { display: none; }
.pipeline b { color: var(--ink); }
.pipeline__tool {
  float: right;
  margin: 2px 0 6px 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(31, 34, 48, 0.06);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.pipeline__human {
  margin: 0 0 22px -14px;
  padding: 16px 16px 16px 66px !important;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), 0.35);
}
.pipeline li.pipeline__human::before { left: 14px; top: 16px; background: var(--accent); }
.pipeline li.pipeline__human::after { left: 29px; top: 48px; bottom: -22px; }
.pipeline__human .pipeline__tool { background: var(--accent); color: #fff; }
.js .pipeline.reveal { opacity: 1; transform: none; }
.js .pipeline.reveal li { opacity: 0; transform: translateX(-12px); transition: opacity 450ms ease, transform 450ms cubic-bezier(.2, .7, .2, 1); }
.js .pipeline.is-in li { opacity: 1; transform: none; }
.pipeline.is-in li:nth-child(2) { transition-delay: 70ms; }
.pipeline.is-in li:nth-child(3) { transition-delay: 140ms; }
.pipeline.is-in li:nth-child(4) { transition-delay: 210ms; }
.pipeline.is-in li:nth-child(5) { transition-delay: 280ms; }
.pipeline.is-in li:nth-child(6) { transition-delay: 350ms; }
.pipeline.is-in li:nth-child(7) { transition-delay: 420ms; }
.pipeline.is-in li:nth-child(8) { transition-delay: 490ms; }
.pipeline.is-in li:nth-child(9) { transition-delay: 560ms; }

.memes__summary {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 26px 28px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 14px;
}
.memes__big { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 0.9; }
.memes__big small { font-size: 18px; font-weight: 600; color: rgba(246, 239, 227, 0.6); letter-spacing: 0.04em; }
.memes__big--accent { color: var(--accent-light); }
.memes__summary p { margin: 6px 0 0; font-size: 16px; color: rgba(246, 239, 227, 0.78); }


/* ── 07 Stories ─────────────────────────────────────────────────────── */

.tales { columns: 3 280px; column-gap: 20px; }
.tale {
  position: relative;
  break-inside: avoid;
  margin: 0 0 20px;
  padding: 24px 24px 20px;
  border-radius: 10px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
}
.tale h3 { font-size: 25px; margin-bottom: 10px; padding-right: 56px; }
.tale p { font-size: 16px; color: var(--ink-2); }
.tale p:last-child { margin: 0; }
.tale__sticker {
  position: absolute;
  right: -10px; top: -14px;
  width: 64px;
  border-radius: 50%;
  transform: rotate(12deg);
  filter: drop-shadow(0 3px 5px rgba(30, 30, 45, 0.3));
}
.tale--note { background: #f7eeb8; transform: rotate(-1deg); }
.tale--note p { color: #4a4532; }
.tale--big {
  column-span: all;
  margin-top: 8px;
  padding: 32px clamp(24px, 4vw, 48px);
  background: var(--ink);
  color: var(--paper);
}
.tale--big h3 { font-size: 32px; }
.tale--big p { font-size: 18px; color: rgba(246, 239, 227, 0.8); max-width: 46em; }
.tale__punch { margin-top: 16px !important; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 36px) !important; color: var(--accent-light) !important; }


/* ── 08 Numbers + tools ─────────────────────────────────────────────── */

.stats--many { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats--many .stat__n { font-size: clamp(44px, 4.4vw, 62px); }
.stats--many .stat:nth-child(2) .stat__n { color: inherit; }
.stats--many .stat:nth-child(9) .stat__n { color: var(--accent); }
.stats--many .stat__l { font-size: 12.5px; line-height: 1.45; }

.toolbox {
  padding: 28px clamp(22px, 3vw, 36px);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
}
.toolbox__list { margin: 0; }
.toolbox__list > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
}
.toolbox__list dt { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 5px; }
.toolbox__list dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toolbox__list dd span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.2);
  font-size: 14.5px;
  color: var(--ink);
}

.closing__logo { width: auto; height: 84px; margin: 0 auto; filter: drop-shadow(0 0 12px rgba(140, 200, 245, 0.6)); }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }


/* ══════════════════════════════════════════════════════════════════════
   EXTENDED ESSAY
   Same layout as the other project pages, in terminal green: the colour
   hashcat prints "Cracked" in.
   ══════════════════════════════════════════════════════════════════════ */

.theme-ee {
  --accent: #2a7f56;
  --accent-rgb: 42, 127, 86;
  --accent-mid: #7fd3a6;
  --accent-light: #b2e6c8;
  --miss: #b3474d;
}

/* ── Hero: the sign-up form that calls Password1! strong ────────────── */

.pw { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.pw__card {
  padding: 30px 30px 26px;
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: 0 2px 4px rgba(70, 50, 35, 0.14), 0 24px 50px rgba(70, 50, 35, 0.22);
  transform: rotate(-1.2deg);
}
.pw__title { font-family: var(--display); font-weight: 700; font-size: 28px; margin-bottom: 20px; }
.pw__label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pw__field {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(31, 34, 48, 0.18);
  font-family: var(--mono);
  font-size: 20px;
}
.pw__caret { width: 2px; height: 24px; margin-left: 1px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.pw__rules { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.pw__rules li { position: relative; padding-left: 24px; font-size: 15px; color: var(--muted); transition: color 250ms ease; }
.pw__rules li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(31, 34, 48, 0.25);
  transition: background-color 250ms ease, box-shadow 250ms ease;
}
.pw__rules li.is-ok { color: var(--ink); }
.pw__rules li.is-ok::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: none;
}
.pw__meter { margin-top: 20px; height: 8px; border-radius: 99px; background: rgba(31, 34, 48, 0.08); overflow: hidden; }
.pw__meter i { display: block; height: 100%; width: var(--m, 100%); border-radius: inherit; background: var(--accent); transition: width 400ms ease, background-color 300ms ease; }
.pw__verdict { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.04em; color: var(--accent); transition: color 300ms ease; }
.pw.is-broken .pw__meter i { background: var(--miss); }
.pw.is-broken .pw__verdict { color: var(--miss); }
.pw__stamp {
  position: absolute;
  right: -34px; bottom: -78px;
  width: 150px; height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--miss);
  box-shadow: inset 0 0 0 5px var(--sheet), inset 0 0 0 6.5px var(--miss);
  background: rgba(253, 250, 244, 0.92);
  color: var(--miss);
  text-align: center;
  transform: rotate(-12deg);
}
.pw__stamp b { font-family: var(--display); font-size: 34px; line-height: 1; }
.pw__stamp span { margin-top: 4px; max-width: 100px; font-family: var(--mono); font-size: 11px; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; }
.js .pw__stamp { opacity: 0; transform: rotate(-30deg) scale(1.6); }
.js .pw.is-broken .pw__stamp { opacity: 1; transform: rotate(-12deg); transition: opacity 200ms ease, transform 450ms cubic-bezier(.2, 1.4, .4, 1); }

/* ── 01 The question ────────────────────────────────────────────────── */

.duo { display: grid; gap: 16px; }
.duo__card {
  padding: 22px 24px;
  border-radius: 8px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
}
.duo__card + .duo__card { transition-delay: 100ms; }
.duo__label, .triad__label, .set__tag, .loki__label, .gen__label, .heat__detail-k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.duo__card h3 { margin: 6px 0 10px; font-size: 30px; }
.duo__card p { font-size: 16.5px; color: var(--ink-2); margin-bottom: 12px; }
.duo__demo {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--room);
  color: var(--accent-mid);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 02 How cracking works ──────────────────────────────────────────── */

.hasher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr);
  align-items: end;
  gap: 14px 20px;
  margin-bottom: 56px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
}
.hasher__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.hasher__input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(31, 34, 48, 0.18);
  font-family: var(--mono);
  font-size: 19px;
  color: var(--ink);
}
.hasher__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.hasher__arrow {
  position: relative;
  width: 70px; height: 52px;
  display: grid;
  place-items: center;
}
.hasher__arrow::before {
  content: "";
  position: absolute;
  left: 0; right: 8px; top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px);
}
.hasher__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: calc(50% - 6px);
  border: 6px solid transparent;
  border-left: 9px solid var(--accent);
  border-right: 0;
}
.hasher__arrow span {
  position: relative;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
}
.hasher__hash {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--room);
  color: var(--accent-mid);
  font-family: var(--mono);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.hasher__hash.is-flash { animation: hashFlash 350ms ease; }
@keyframes hashFlash { from { color: #fff; } }
.hasher__note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15.5px; color: var(--muted); }

.split--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split--three .prose p { font-size: 16.5px; }

.growth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.growth div {
  padding: 10px 10px 9px;
  border-radius: 6px;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--line);
}
.growth b { display: block; font-family: var(--display); font-size: 24px; line-height: 1; }
.growth span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; line-height: 1.35; color: var(--muted); }
.growth small { display: block; font-size: 10.5px; opacity: 0.85; }
.growth__win { background: rgba(var(--accent-rgb), 0.1) !important; box-shadow: inset 0 0 0 1.5px var(--accent) !important; }
.growth__win b { color: var(--accent); }

.ks {
  margin-top: 56px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--accent);
}
.ks__head p { color: var(--ink-2); font-size: 16.5px; max-width: 46em; }
.ks__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin: 8px 0 22px; }
.ks__sets { display: flex; flex-wrap: wrap; gap: 8px; }
.ks__sets button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 14px 7px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(31, 34, 48, 0.14);
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  transition: box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
}
.ks__sets button small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); }
.ks__sets button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ks__sets button[aria-checked="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.ks__sets button[aria-checked="true"] small { color: rgba(255, 255, 255, 0.8); }
.ks__len { display: flex; align-items: center; gap: 14px; flex: 1 1 240px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.ks__len span { white-space: nowrap; min-width: 92px; }
.ks__len b { color: var(--ink); font-size: 18px; }
.ks__len input { flex: 1; accent-color: var(--accent); }
.ks__out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ks__out > div { padding: 16px 18px; border-radius: 8px; background: rgba(31, 34, 48, 0.04); }
.ks__out span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ks__out b { display: block; margin-top: 6px; font-family: var(--display); font-size: clamp(26px, 3vw, 38px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.ks__time { background: var(--room) !important; }
.ks__time span { color: rgba(246, 239, 227, 0.6); }
.ks__time b { color: var(--accent-mid); }
.ks__note { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ── 03 The experiment (dark band) ──────────────────────────────────── */

.rig { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-bottom: 56px; }
.rig__term { border-radius: 10px; overflow: hidden; background: #15121a; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.rig__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, 0.05); }
.rig__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.rig__bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: rgba(246, 239, 227, 0.5); }
.rig__term pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: rgba(246, 239, 227, 0.88); }
.rig__term b { color: var(--accent-mid); font-weight: 500; }
.rig__c { color: rgba(246, 239, 227, 0.4); }
.rig__specs { margin: 0; }
.rig__specs > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-top: 1px dashed rgba(246, 239, 227, 0.16); }
.rig__specs dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-mid); padding-top: 3px; }
.rig__specs dd { margin: 0; font-size: 16px; color: rgba(246, 239, 227, 0.8); }
.section--dark code { background: rgba(255, 255, 255, 0.1); color: var(--paper); }

.sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 56px; }
.set {
  padding: 24px 26px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.set + .set { transition-delay: 100ms; }
.set__tag { color: var(--accent-mid); }
.set h3 { margin: 6px 0 12px; font-size: 32px; color: var(--paper); }
.set p { font-size: 16px; color: rgba(246, 239, 227, 0.78); }
.set__small { font-family: var(--mono); font-size: 12.5px !important; color: rgba(246, 239, 227, 0.55) !important; margin: 14px 0 0; }
.set__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; max-width: 280px; }
.set__grid span {
  aspect-ratio: 1.5;
  border-radius: 3px;
  background:
    radial-gradient(circle at 25% 50%, var(--accent-mid) 0 2px, transparent 2.5px),
    radial-gradient(circle at 50% 50%, var(--accent-mid) 0 2px, transparent 2.5px),
    radial-gradient(circle at 75% 50%, var(--accent-mid) 0 2px, transparent 2.5px),
    rgba(var(--accent-rgb), 0.25);
}
.set__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.set__list li { padding: 4px 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); font-family: var(--mono); font-size: 13.5px; color: rgba(246, 239, 227, 0.85); }
.set__list li.is-persona { background: rgba(var(--accent-rgb), 0.35); color: #fff; }

.benji { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: 64px; }
.dossier {
  position: relative;
  padding: 24px 24px 20px;
  border-radius: 6px;
  background: var(--paper-sheet);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.5deg);
}
.dossier__stamp {
  position: absolute;
  right: 18px; top: 18px;
  padding: 3px 10px;
  border: 2px solid var(--miss);
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--miss);
  transform: rotate(8deg);
  opacity: 0.85;
}
.dossier__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dossier__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--room); color: var(--accent-mid); font-family: var(--display); font-weight: 700; font-size: 20px; }
.dossier__head b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.05; }
.dossier__head span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dossier__facts { margin: 0; }
.dossier__facts > div { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); }
.dossier__facts dt { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.dossier__facts dd { margin: 0; font-weight: 600; font-size: 16px; }
.dossier__note { margin: 12px 0 0; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.benji__text p { font-size: 16.5px; color: rgba(246, 239, 227, 0.8); }
.benji__text .prose__h { color: var(--paper); }
.recipes { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.recipes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.recipes code { font-size: 15px; background: rgba(var(--accent-rgb), 0.4) !important; color: #fff !important; }
.recipes span { font-family: var(--mono); font-size: 13px; color: rgba(246, 239, 227, 0.6); }
.chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(127, 211, 166, 0.45); font-family: var(--mono); font-size: 13px; color: var(--accent-light); }

.findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.finding { padding: 24px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.finding:nth-child(2) { transition-delay: 100ms; }
.finding:nth-child(3) { transition-delay: 200ms; }
.finding h3 { margin: 14px 0 10px; font-size: 26px; color: var(--paper); }
.finding p { margin: 0; font-size: 15.5px; color: rgba(246, 239, 227, 0.75); }
.finding__big { height: 56px; display: flex; align-items: flex-end; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 0.9; color: var(--accent-mid); }
.finding__big s { font-size: 0.55em; color: rgba(246, 239, 227, 0.4); text-decoration-thickness: 2px; }
.finding__big small { font-size: 0.4em; color: rgba(246, 239, 227, 0.55); }
.finding__big--err { color: #f19aa0; }
.luck { height: 56px; display: flex; align-items: flex-end; }
.luck__bar { position: relative; width: 100%; height: 12px; margin-bottom: 4px; border-radius: 99px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.6), rgba(var(--accent-rgb), 0.15)); }
.luck__bar i { position: absolute; left: var(--at); top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px var(--room); }
.luck__bar span { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--paper); white-space: nowrap; }
.luck__bar i:last-child span { left: auto; right: -4px; transform: none; }
.luck__bar i:first-child span { left: -4px; transform: none; }
.rig__check { margin: 28px 0 0; font-family: var(--mono); font-size: 13px; color: rgba(246, 239, 227, 0.55); }

/* ── 04 Results ─────────────────────────────────────────────────────── */

.heat { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-bottom: 64px; }
.heat__grid { display: grid; grid-template-columns: 54px repeat(4, minmax(0, 1fr)); gap: 6px; }
.heat__corner, .heat__col, .heat__row { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.heat__corner { align-self: end; padding-bottom: 6px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.heat__col { align-self: end; padding: 0 2px 6px; line-height: 1.25; }
.heat__col small { display: block; color: var(--accent); }
.heat__row { display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); }
.heat__cell {
  /* --t runs 0 → 1 on a log scale, from 0.044 s to 155 years. */
  --c: color-mix(in oklab, #e9f5ee, #0f3d29 calc(var(--t) * 100%));
  position: relative;
  min-height: 64px;
  padding: 8px 6px;
  border: 0;
  border-radius: 6px;
  background: var(--c);
  color: color-mix(in oklab, var(--ink), #fff calc(clamp(0, (var(--t) - 0.42) * 100, 1) * 100%));
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 21px);
  line-height: 1.05;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.heat__cell:not(.is-measured) {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 4px, transparent 4px 9px),
    var(--c);
}
.heat__cell.is-measured::after {
  content: "";
  position: absolute;
  right: 6px; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.heat__cell:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15, 61, 41, 0.25); }
.heat__cell[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); }
.heat__side { display: grid; gap: 18px; }
.heat__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.heat__legend span { display: flex; align-items: center; gap: 8px; }
.heat__legend i { width: 18px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0 3px, transparent 3px 6px), #5f9b7d; }
.heat__legend i.is-measured { background: #5f9b7d; position: relative; }
.heat__legend i.is-measured::after { content: ""; position: absolute; right: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.heat__detail { padding: 20px 22px; border-radius: 10px; background: var(--sheet); box-shadow: var(--card-shadow); border-left: 5px solid var(--accent); }
.heat__detail-n { margin: 6px 0 8px; font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; }
.heat__detail p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.heat__hint { margin: 0; font-size: 15.5px; color: var(--muted); }

.board { padding: clamp(22px, 3vw, 34px); border-radius: 10px; background: var(--sheet); box-shadow: var(--card-shadow); }
.board__head p { color: var(--muted); font-size: 16px; }
.board__table { width: 100%; border-collapse: collapse; font-size: 16px; }
.board__table th, .board__table td { padding: 10px 12px; text-align: left; border-top: 1px dashed var(--line); }
.board__table thead th { border-top: 0; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; }
.board__table thead small { display: block; font-size: 11px; letter-spacing: 0.02em; text-transform: none; opacity: 0.8; }
.board__table tbody th { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.board__table td:nth-child(2) { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.board__table tr.is-persona { background: rgba(var(--accent-rgb), 0.05); }
.board__table tfoot th, .board__table tfoot td { border-top: 2px solid var(--line); font-family: var(--mono); font-size: 14px; color: var(--muted); }
.board__table tfoot b { font-family: var(--display); font-size: 26px; color: var(--ink); }
.hit, .miss { display: inline-block; white-space: nowrap; padding: 3px 10px 2px; border-radius: 999px; font-family: var(--mono); font-size: 12.5px; }
.hit { background: rgba(var(--accent-rgb), 0.14); color: var(--accent); }
.hit::before { content: "✓ "; }
.miss { background: rgba(179, 71, 77, 0.1); color: var(--miss); }
.miss::before { content: "✗ "; }
.board__note { margin: 18px 0 0; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.3; }

/* ── 05 What it means ───────────────────────────────────────────────── */

.loki {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: 56px;
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: 12px;
  background: var(--room);
  color: var(--paper);
}
.loki__label { color: var(--accent-mid); }
.loki__pw { margin: 10px 0 14px; font-family: var(--mono); font-weight: 500; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.01em; }
.loki__checks { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.loki__checks li { padding: 4px 12px 4px 10px; border-radius: 999px; background: rgba(var(--accent-rgb), 0.3); font-family: var(--mono); font-size: 13px; color: var(--accent-light); }
.loki__checks li::before { content: "✓ "; }
.loki__left p { margin: 0; font-size: 17px; color: rgba(246, 239, 227, 0.78); }
.loki__chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.loki__chain li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.loki__chain code { background: none; padding: 0; font-size: 20px; color: var(--paper); }
.loki__chain span { font-family: var(--mono); font-size: 12.5px; color: rgba(246, 239, 227, 0.55); }
.loki__chain .loki__hit { background: var(--accent); box-shadow: none; }
.loki__hit b { font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
.loki__hit span { color: rgba(255, 255, 255, 0.8); }
.js .loki__chain li { opacity: 0; transform: translateX(-12px); transition: opacity 400ms ease, transform 400ms cubic-bezier(.2, .7, .2, 1); }
.js .loki.is-in .loki__chain li { opacity: 1; transform: none; }
.js .loki.is-in .loki__chain li:nth-child(1) { transition-delay: 300ms; }
.js .loki.is-in .loki__chain li:nth-child(2) { transition-delay: 650ms; }
.js .loki.is-in .loki__chain li:nth-child(3) { transition-delay: 1000ms; }
.js .loki.is-in .loki__chain li:nth-child(4) { transition-delay: 1350ms; }
.js .loki.is-in .loki__chain li:nth-child(5) { transition-delay: 1800ms; }

.entropy { display: grid; gap: 14px; padding: 24px; border-radius: 10px; background: var(--sheet); box-shadow: var(--card-shadow); }
.entropy__row { display: grid; grid-template-columns: 1fr; gap: 6px; }
.entropy__k { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.entropy__bar { height: 14px; border-radius: 99px; background: rgba(31, 34, 48, 0.07); overflow: hidden; }
.entropy__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
.entropy__bar i.is-ghost { background: repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.35) 0 5px, rgba(var(--accent-rgb), 0.12) 5px 10px); }
.entropy__bar i.is-real { background: var(--miss); }
.entropy__v { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; }
.entropy__v small { margin-left: 10px; font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--muted); }
.entropy__foot { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.triad__card { padding: 22px 24px; border-radius: 8px; background: var(--paper-sheet); box-shadow: var(--card-shadow); }
.triad__card:nth-child(2) { transition-delay: 100ms; }
.triad__card:nth-child(3) { transition-delay: 200ms; }
.triad__x, .triad__y { margin: 10px 0 0; font-size: 17px; color: var(--ink-2); }
.triad__x b { color: var(--miss); }
.triad__y { padding-top: 10px; border-top: 1px dashed var(--line); }
.triad__y b { color: var(--accent); }
.triad__sum { margin: 22px 0 0; max-width: 44em; font-size: 19px; color: var(--ink-2); }

.split--notes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; margin-top: 56px; }
.aside-card--warn { border-top-color: var(--miss); }
.aside-card--warn + .aside-card, .split--notes > .aside-card + .aside-card { transition-delay: 100ms; }

.limits, .sources {
  margin-top: 40px;
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--line);
}
.limits summary, .sources summary {
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
}
.limits summary:hover, .sources summary:hover { color: var(--accent); }
.limits ul { margin: 0; padding: 0 24px 20px 40px; }
.limits li { margin-bottom: 8px; font-size: 16px; color: var(--ink-2); }
.sources ol { margin: 0; padding: 0 24px 22px 48px; }
.sources li { margin-bottom: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.sources a { color: var(--accent); }

/* ── 06 The fix ─────────────────────────────────────────────────────── */

.gen {
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: 12px;
  background: var(--room);
  color: var(--paper);
}
.gen__label { color: var(--accent-mid); }
.gen__pw {
  display: block;
  margin: 16px 0 22px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(26px, 5.4vw, 64px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.gen__pw.is-new { animation: hashFlash 400ms ease; }
.gen__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.gen__made { font-size: 14.5px; color: rgba(246, 239, 227, 0.6); }
.gen__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.gen__facts b { display: block; font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1; color: var(--accent-mid); }
.gen__facts span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12.5px; color: rgba(246, 239, 227, 0.6); }

.closing__lock { width: 64px; height: 64px; margin: 0 auto; color: var(--accent); filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.45)); }


/* ══════════════════════════════════════════════════════════════════════
   THE PERFECT FREE KICK
   Same layout as the other project pages, in match-ball orange. The
   diagrams are drawn like a tactics sheet: ink lines on paper, with the
   ball's path in the accent.
   ══════════════════════════════════════════════════════════════════════ */

.theme-fk {
  --accent: #b04f0c;
  --accent-rgb: 176, 79, 12;
  --accent-mid: #ff9a52;
  --accent-light: #ffc597;
  --bad: #b3474d;        /* blocked, saved, missed */
  --bad-mid: #f19aa0;    /* the same on dark backgrounds */
}

/* ── Shared controls: sliders, chips, reset links ───────────────────── */

.slider { display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.slider span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slider b { color: var(--ink); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.slider input { width: 100%; margin: 0; accent-color: var(--accent); }
.slider--dark { color: rgba(246, 239, 227, 0.6); }
.slider--dark b { color: var(--paper); }
.slider--dark input { accent-color: var(--accent-mid); }

.chip {
  padding: 6px 13px 5px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(31, 34, 48, 0.14);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--ink);
  cursor: pointer;
  transition: box-shadow 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-1px); }
.chip--hot { background: var(--accent); color: #fff; box-shadow: none; }
.chip--hot:hover { box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.3); }
.chip--dark { background: rgba(255, 255, 255, 0.06); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.chip--dark:hover { box-shadow: inset 0 0 0 1.5px var(--accent-mid); }

.reset {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.reset:hover { color: var(--accent); }

.eq {
  margin: 0 0 1em;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.eq--light { background: var(--room); box-shadow: none; color: var(--accent-light); }
.prose--dark p { color: rgba(246, 239, 227, 0.78); }
.prose--dark strong, .prose--dark b { color: var(--paper); }
.prose--dark .prose__h { color: var(--paper); }
.prose b.is-bad { color: var(--bad-mid); }
.prose b.is-good { color: var(--accent-mid); }

/* ── Hero: the tactics sheet ────────────────────────────────────────── */

.tactic { margin: 0; justify-self: center; width: 100%; max-width: 470px; }
.tactic__svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 14px;
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: 0 2px 4px rgba(70, 50, 35, 0.14), 0 24px 50px rgba(70, 50, 35, 0.22);
  transform: rotate(1.2deg);
}
.tactic figcaption { margin-top: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--muted); }
.tactic__lines { fill: none; stroke: rgba(31, 34, 48, 0.28); stroke-width: 1.6; }
.tactic__spot { fill: rgba(31, 34, 48, 0.4); stroke: none; }
.tactic__frame { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.tactic__reach { stroke: rgba(31, 34, 48, 0.22); stroke-width: 9; }
.tactic__target { stroke: var(--accent); stroke-width: 9; }
.tactic__keeper path { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.tactic__keeper circle { fill: var(--ink); }
.tactic__wall circle { fill: var(--ink-2); stroke: var(--sheet); stroke-width: 1.5; }
.tactic__aim path { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.tactic__aim .tactic__ref { stroke: rgba(31, 34, 48, 0.3); stroke-dasharray: 3 4; }
.tactic__aim text, .tactic__spin text { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--accent); }
.tactic__straight { fill: none; stroke: rgba(31, 34, 48, 0.42); stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }
.tactic__miss path { stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.tactic__note, .tactic__label { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.tactic__label--r { text-anchor: end; }
.tactic__curve { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.tactic__spin path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tactic__ball circle { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.tactic__ball path { fill: var(--ink); }
.tactic__goal circle { fill: rgba(var(--accent-rgb), 0.28); }
.tactic__goal { opacity: 0; }
.js .tactic__goal.is-on { animation: tacticGoal 900ms ease-out; }
@keyframes tacticGoal {
  from { opacity: 1; transform: translate(259px, 44px) scale(0.2); }
  to { opacity: 0; transform: translate(259px, 44px) scale(1.6); }
}

/* ── 01 The idea ────────────────────────────────────────────────────── */

.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plan__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 22px;
  border-radius: 8px;
  background: var(--paper-sheet);
  box-shadow: var(--card-shadow);
}
.plan__step:nth-child(2) { transition-delay: 100ms; }
.plan__step:nth-child(3) { transition-delay: 200ms; }
.plan__n {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}
.plan__step:last-child .plan__n { background: var(--accent); }
.plan__step h3 { margin: 4px 0 6px; font-size: 26px; }
.plan__step p { margin: 0; font-size: 16.5px; color: var(--ink-2); }

/* ── 02 Where to aim ────────────────────────────────────────────────── */

.zone {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 40px);
  align-items: center;
  margin-bottom: 56px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--accent);
}
.zone__svg { display: block; width: 100%; height: auto; overflow: visible; }
.zone__ground { stroke: rgba(31, 34, 48, 0.3); stroke-width: 2; }
.zone__frame { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linejoin: miter; }
.zone__arc { fill: rgba(31, 34, 48, 0.06); stroke: rgba(31, 34, 48, 0.45); stroke-width: 2; stroke-dasharray: 6 5; }
.zone__square { fill: rgba(var(--accent-rgb), 0.1); stroke: rgba(var(--accent-rgb), 0.55); stroke-width: 1.5; stroke-dasharray: 5 4; }
.zone__square--mirror { opacity: 0.45; }
.zone__target { fill: rgba(var(--accent-rgb), 0.32); stroke: var(--accent); stroke-width: 2.5; }
.zone__D { stroke: rgba(31, 34, 48, 0.3); stroke-width: 1.5; stroke-dasharray: 3 5; }
.zone__d { stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.zone__keeper path { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.zone__keeper circle { fill: var(--ink); }
.zone__tag { font-family: var(--display); font-weight: 700; font-size: 24px; fill: var(--ink-2); }
.zone__tag--hot { fill: var(--accent); }
.zone__tag--muted { font-family: var(--mono); font-weight: 400; font-size: 13px; fill: var(--muted); }
.zone__dim { font-family: var(--mono); font-size: 12px; fill: var(--muted); text-anchor: middle; }
.zone.is-none .zone__d, .zone.is-none #zone-d-label { opacity: 0; }

.zone__panel { display: grid; gap: 16px; }
.zone__steps { list-style: none; margin: 0; padding: 0; }
.zone__steps li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
}
.zone__steps span { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.zone__steps code { padding: 0; background: none; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.zone__steps i { font-style: normal; }
.zone__steps b { color: var(--ink); font-weight: 500; }
.zone__result { padding: 14px 16px; border-radius: 8px; background: var(--room); color: var(--paper); }
.zone__result span { display: block; font-family: var(--mono); font-size: 11.5px; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246, 239, 227, 0.55); }
.zone__result b { display: block; margin-top: 6px; font-family: var(--display); font-size: 22px; line-height: 1.2; color: var(--accent-mid); font-variant-numeric: tabular-nums; }
.zone.is-none .zone__result b { color: var(--bad-mid); }

.split--zone { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── 03 Getting over the wall (dark band) ───────────────────────────── */

.launch {
  margin-bottom: 56px;
  padding: clamp(18px, 3vw, 32px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.launch__svg { display: block; width: 100%; height: auto; }
.launch__grid line { stroke: rgba(255, 255, 255, 0.06); }
.launch__grid .launch__ground { stroke: rgba(246, 239, 227, 0.35); stroke-width: 2; }
.launch__grid text { font-family: var(--mono); font-size: 11px; fill: rgba(246, 239, 227, 0.4); }
.launch__band { fill: rgba(var(--accent-rgb), 0.3); stroke: var(--accent-mid); stroke-width: 1.5; stroke-dasharray: 4 3; }
.launch__wall path { fill: none; stroke: rgba(246, 239, 227, 0.5); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.launch__wall circle { fill: rgba(246, 239, 227, 0.5); }
.launch__wall .launch__jump { stroke: var(--accent-light); stroke-width: 1.5; stroke-dasharray: 5 4; }
.launch__wall text, .launch__band-label { font-family: var(--mono); font-size: 11px; fill: rgba(246, 239, 227, 0.6); }
.launch__goal { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linejoin: round; }
.launch__path { fill: none; stroke: var(--accent-mid); stroke-width: 3.5; stroke-linecap: round; transition: stroke 200ms ease; }
.launch__mark { fill: var(--room); stroke: var(--accent-mid); stroke-width: 3; transition: stroke 200ms ease; }
.launch__mark.is-bad { stroke: var(--bad-mid); }
.launch__arc { fill: none; stroke: rgba(246, 239, 227, 0.5); stroke-width: 1.5; }
.launch__arc-label { font-family: var(--mono); font-size: 12px; fill: var(--paper); }
.launch[data-state="wall"] .launch__path { stroke: var(--bad-mid); }

.launch__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 18px 28px;
  align-items: center;
  margin-top: 18px;
}
.launch__read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.launch__read > div, .bend__read > div { padding: 11px 14px; border-radius: 8px; }
.launch__read > div { background: rgba(255, 255, 255, 0.05); }
.launch__read span, .bend__read span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.launch__read span { color: rgba(246, 239, 227, 0.55); }
.launch__read .nocase { font-style: normal; text-transform: none; }
.launch__read b, .bend__read b { display: block; margin-top: 4px; font-family: var(--display); font-size: 25px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.launch__read b { color: var(--paper); }
.launch__read b.is-bad { color: var(--bad-mid); }
.launch__verdict b { color: var(--accent-mid); }
.launch__verdict.is-bad b { color: var(--bad-mid); }

/* The window: which angles score, which clear the wall, and the overlap.
   Bars are placed on a 14°–24° scale from their --a and --b. */
.window {
  --lo: 14;
  --hi: 24;
  --kw: 164px;  /* width of the row labels */
  position: relative;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed rgba(246, 239, 227, 0.14);
}
.window__row { display: grid; grid-template-columns: calc(var(--kw) - 14px) minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 9px; }
.window__k { font-family: var(--mono); font-size: 12px; color: rgba(246, 239, 227, 0.62); }
.window__row--both .window__k { color: var(--accent-light); }
.window__track { position: relative; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); }
.window__bar {
  position: absolute;
  top: 0; bottom: 0;
  left: calc((var(--a) - var(--lo)) / (var(--hi) - var(--lo)) * 100%);
  width: calc((var(--b) - var(--a)) / (var(--hi) - var(--lo)) * 100%);
  border-radius: 99px;
}
.window__bar--goal { background: rgba(var(--accent-rgb), 0.6); }
.window__bar--wall { background: linear-gradient(90deg, rgba(246, 239, 227, 0.32) 70%, rgba(246, 239, 227, 0)); border-radius: 99px 0 0 99px; }
.window__bar--both { background: var(--accent-mid); box-shadow: 0 0 14px rgba(255, 154, 82, 0.55); }
.window__bar em {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-light);
  white-space: nowrap;
}
.window__axis { position: relative; height: 18px; margin-left: var(--kw); }
.window__axis span {
  position: absolute;
  left: calc((var(--v) - 14) / 10 * 100%);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(246, 239, 227, 0.42);
}
.window__cursor {
  position: absolute;
  top: 12px; bottom: 16px;
  left: calc(var(--kw) + (100% - var(--kw)) * clamp(0, (var(--v) - 14) / 10, 1));
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(36, 31, 42, 0.6);
  transition: left 120ms ease;
}
.window__cursor::before {
  content: "";
  position: absolute;
  left: 50%; top: -6px;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--paper);
}
.window__cursor.is-off { opacity: 0.35; }

.split--math { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── 04 Bending it in ───────────────────────────────────────────────── */

.bend {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 40px);
  align-items: center;
  margin-bottom: 64px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--accent);
}
.bend__svg { display: block; width: 100%; height: auto; }
.bend__pitch .bend__line { fill: none; stroke: rgba(31, 34, 48, 0.25); stroke-width: 1.6; }
.bend__pitch .bend__mow { fill: rgba(31, 34, 48, 0.025); }
.bend__pitch .bend__frame { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.bend__pitch .bend__reach { stroke: rgba(31, 34, 48, 0.2); stroke-width: 12; }
.bend__pitch .bend__target { stroke: var(--accent); stroke-width: 12; }
.bend__pitch .bend__player { fill: var(--ink-2); stroke: var(--sheet); stroke-width: 2; }
.bend__pitch .bend__keeper { fill: var(--ink); }
.bend__pitch .bend__keeper-arms { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.bend__pitch .bend__ball circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.bend__pitch .bend__ball path { fill: var(--ink); }
.bend__pitch text { font-family: var(--mono); font-size: 13px; fill: var(--muted); }
.bend__pitch .bend__hot { fill: var(--accent); font-weight: 500; }
.bend__straight { fill: none; stroke: rgba(31, 34, 48, 0.45); stroke-width: 2.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.bend__curve { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 200ms ease; }
.bend__cross circle { fill: var(--sheet); stroke: var(--accent); stroke-width: 3.5; transition: stroke 200ms ease; }
.bend__cross-label { font-family: var(--display); font-weight: 700; font-size: 24px; fill: var(--accent); }
.bend.is-bad .bend__curve { stroke: var(--bad); }
.bend.is-bad .bend__cross circle { stroke: var(--bad); }
.bend.is-bad .bend__cross-label { fill: var(--bad); }

.bend__controls { display: grid; gap: 18px; }
.spinbar__track { position: relative; height: 14px; border-radius: 99px; background: rgba(31, 34, 48, 0.07); }
.spinbar__ok { position: absolute; top: 0; bottom: 0; left: calc(var(--a) / 800 * 100%); width: calc((var(--b) - var(--a)) / 800 * 100%); background: rgba(var(--accent-rgb), 0.35); }
.spinbar__best { position: absolute; top: -3px; bottom: -3px; left: calc(var(--v) / 800 * 100%); width: 2px; margin-left: -1px; background: var(--accent); }
.spinbar__cursor {
  position: absolute;
  top: 50%;
  left: calc(var(--v) / 800 * 100%);
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--sheet);
  box-shadow: inset 0 0 0 3px var(--ink);
  transition: left 120ms ease;
}
.spinbar__axis { position: relative; height: 16px; margin-top: 6px; }
.spinbar__axis span { position: absolute; left: calc(var(--v) / 800 * 100%); transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.spinbar__axis span:first-child { transform: none; }
.spinbar__axis span:last-child { transform: translateX(-100%); }
.spinbar__axis span:nth-child(3) { transform: translateX(-80%); color: var(--accent); }
.spinbar__axis span:nth-child(4) { transform: translateX(-20%); color: var(--accent); }
.bend__read { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bend__read > div { background: rgba(31, 34, 48, 0.04); }
.bend__read span { color: var(--muted); }
.bend__read .bend__verdict { grid-column: 1 / -1; background: var(--room); }
.bend__verdict span { color: rgba(246, 239, 227, 0.55); }
.bend__verdict b { color: var(--accent-mid); }
.bend.is-bad .bend__verdict b { color: var(--bad-mid); }
.bend__presets { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 05 Take the kick (dark band, under the floodlights) ────────────── */

.section--night {
  background:
    radial-gradient(ellipse 40% 45% at 12% 0%, rgba(255, 236, 200, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 45% at 88% 0%, rgba(255, 236, 200, 0.14), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    var(--room);
}
.arena { display: grid; gap: 20px; }
.arena__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #11161d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.arena__screen canvas { display: block; width: 100%; height: 100%; }
.arena__banner {
  position: absolute;
  left: 50%; top: 18px;
  padding: 9px 20px 8px;
  border-radius: 999px;
  background: rgba(20, 16, 30, 0.8);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.92);
  transition: opacity 250ms ease, transform 350ms cubic-bezier(.2, 1.4, .4, 1);
  pointer-events: none;
}
.arena__banner.is-on { opacity: 1; transform: translate(-50%, 0); }
.arena__banner.is-goal { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.5); }
.arena__banner.is-miss { color: var(--bad-mid); }
.arena__score {
  position: absolute;
  right: 14px; bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(20, 16, 30, 0.6);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(246, 239, 227, 0.65);
}
.arena__score b { font-family: var(--display); font-size: 20px; color: var(--paper); }
.arena__controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; align-items: end; }
.arena__buttons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.arena__shoot { padding: 14px 34px; font-size: 18px; }
.arena__shoot:disabled { opacity: 0.6; cursor: default; transform: none; }
.arena__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.arena__detail { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: rgba(246, 239, 227, 0.65); }
.arena__detail b { color: var(--paper); font-weight: 500; }

/* ── 06 Looking back ────────────────────────────────────────────────── */

#reflection .split { align-items: start; }
.limits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.limit { padding: 22px 24px; border-radius: 8px; background: var(--paper-sheet); box-shadow: var(--card-shadow); }
.limit:nth-child(2) { transition-delay: 100ms; }
.limit:nth-child(3) { transition-delay: 200ms; }
.limit__icon svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.limit h3 { margin: 10px 0 8px; font-size: 26px; }
.limit p { margin: 0; font-size: 16px; color: var(--ink-2); }
.limits-note { margin: 18px 0 0; max-width: 46em; font-size: 16.5px; color: var(--muted); }

.closing__ball { display: block; width: 64px; height: 64px; margin: 0 auto; color: var(--accent); filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.45)); }


/* ══════════════════════════════════════════════════════════════════════
   SNOWBALL PVP
   Same layout as the other project pages, in the teal from the game's
   card on the home page. The game's own scenes are drawn in its colours:
   sky blue, fresh snow, gray boxes.
   ══════════════════════════════════════════════════════════════════════ */

.theme-sb {
  --accent: #0c7282;
  --accent-rgb: 12, 114, 130;
  --accent-mid: #6fd3e0;
  --accent-light: #a8e6ef;
  --bad: #b3474d;
  --snow: #f1f7fb;
  --skin: #f1c9a5;
  --friend: #e07a3f;
}

.keys kbd,
.yard__keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 -2px 0 rgba(31, 34, 48, 0.16), 0 0 0 1px rgba(31, 34, 48, 0.16);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.kbd--wide { min-width: 70px; }

/* ── Hero: the game in a browser window ─────────────────────────────── */

.browser { margin: 0; justify-self: center; width: 100%; max-width: 560px; }
.browser__frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: 0 2px 4px rgba(70, 50, 35, 0.14), 0 24px 50px rgba(70, 50, 35, 0.24);
  transform: rotate(-1deg);
}
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #ece6dc; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9776f; }
.browser__bar i:nth-child(2) { background: #e2b35a; }
.browser__bar i:nth-child(3) { background: #7fb77e; }
.browser__bar span {
  flex: 1;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #fff;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.browser__scene { display: block; width: 100%; height: auto; }
.browser figcaption { margin-top: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--muted); }
.browser__far { fill: #a9c4d6; }
.browser__grid, .layers__grid { fill: none; stroke: rgba(31, 34, 48, 0.05); stroke-width: 1.5; }
.browser__wall { fill: #b7c2cc; }
.browser__wall-top { fill: #dbe3ea; }
.browser__box { fill: #97a3af; }
.browser__box .browser__box-top { fill: #c6cfd8; }
.browser__tree path { fill: #2f6b55; }
.browser__tree rect { fill: #6b4f3a; }
.browser__foe rect { fill: var(--friend); }
.browser__foe circle { fill: var(--skin); }
.browser__foe .browser__visor { fill: var(--ink); }
.browser__ball { fill: #fff; stroke: #a9bccb; stroke-width: 2; }
.browser__puff circle { fill: #fff; stroke: #cfdbe4; stroke-width: 1.5; }
.browser__puff { opacity: 0; }
.browser__hand path { fill: #3f5f8f; }
.browser__held { fill: #fff; stroke: #a9bccb; stroke-width: 2; }
.browser__cross path { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.browser__ammo rect, .browser__sprint rect { fill: rgba(20, 16, 30, 0.62); }
.browser__ammo text { font-family: var(--mono); font-size: 15px; fill: #fff; }
.browser__sprint text { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; fill: var(--ink-2); }
.browser__sprint .browser__sprint-fill, .browser__sprint-fill { fill: var(--accent-mid); }
.browser__feed {
  position: absolute;
  right: 12px; top: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  justify-items: end;
  gap: 4px;
}
.browser__feed li {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(20, 16, 30, 0.62);
  font-family: var(--mono);
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  animation: feedIn 400ms cubic-bezier(.2, 1.3, .4, 1);
}
.browser__feed b { font-weight: 500; color: var(--accent-light); }
.browser__feed span { color: var(--accent-mid); }
@keyframes feedIn { from { opacity: 0; transform: translateX(16px); } }

/* ── 01 The story ───────────────────────────────────────────────────── */

.jam {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.6fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: 64px;
}
.jam__text p { color: var(--ink-2); }
.jam__text a { color: var(--accent); }
.jam__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.jam__facts div { padding: 10px 10px 9px; border-radius: 6px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); }
.jam__facts b { display: block; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--accent); }
.jam__facts span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; line-height: 1.35; color: var(--muted); }
.jam__card .zoom { transform: rotate(-1.2deg); }
.jam__listing { margin-top: 28px; transition-delay: 100ms; }
.jam__listing .zoom { transform: rotate(2deg); }

/* ── 02 How I built it (dark band) ──────────────────────────────────── */

.cycle {
  --wheel: 320px;
  --r: 118px;
  --pad: 52px;  /* room for the nodes that stick out past the ring */
  display: grid;
  grid-template-columns: calc(var(--wheel) + 2 * var(--pad)) minmax(0, 1fr);
  gap: 24px clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: 64px;
}
.cycle__wheel { position: relative; width: var(--wheel); height: var(--wheel); margin: 0 var(--pad); }
.cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cycle__ring circle { fill: none; stroke: rgba(246, 239, 227, 0.14); stroke-width: 2; stroke-dasharray: 4 6; }
.cycle__arc {
  fill: none;
  stroke: var(--accent-mid);
  stroke-width: 4;
  stroke-linecap: round;
  transform-origin: 160px 160px;
  transition: transform 600ms cubic-bezier(.3, .7, .3, 1);
}
.cycle__hub {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 239, 227, 0.55);
}
.cycle__hub span { font-size: 44px; line-height: 1; color: var(--accent-mid); }
.cycle__node {
  position: absolute;
  left: 50%; top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: #342d3c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  color: var(--paper);
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  transition: background-color 250ms ease, box-shadow 250ms ease;
}
.cycle__node b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-family: var(--mono); font-weight: 500; font-size: 12px; }
.cycle__node:hover { box-shadow: inset 0 0 0 1.5px var(--accent-mid); }
.cycle__node[aria-pressed="true"] { background: var(--accent); box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.5); }
.cycle__node[aria-pressed="true"] b { background: rgba(255, 255, 255, 0.25); }
.cycle__k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-mid); }
.cycle__panel h3 { margin: 10px 0 12px; font-size: clamp(34px, 4vw, 48px); color: var(--paper); }
.cycle__panel p { margin: 0; max-width: 30em; font-size: 19px; color: rgba(246, 239, 227, 0.8); }
.cycle__panel.is-new { animation: feedIn 350ms ease; }
.cycle__note { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 13px; color: rgba(246, 239, 227, 0.55); }

.layers {
  padding: clamp(20px, 3vw, 34px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.layers__head p { color: rgba(246, 239, 227, 0.75); }
.layers__head .prose__h { color: var(--paper); }
.layers__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.layers__svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.layer { transition: opacity 450ms ease, transform 450ms cubic-bezier(.2, .7, .2, 1); }
.js .layer:not(.is-on) { opacity: 0; transform: translateY(10px); }
.layers__wire { fill: none; stroke: rgba(111, 211, 224, 0.35); stroke-width: 1; }
.layers__tags text { font-family: var(--mono); font-size: 13px; fill: var(--accent-mid); }
.layers__me rect { fill: #2f8fa0; }
.layers__them rect { fill: var(--friend); }
.layers__me circle, .layers__them circle { fill: var(--skin); }
.layers__move { fill: none; stroke: rgba(31, 34, 48, 0.4); stroke-width: 3; stroke-linecap: round; }
.layers__throw { fill: none; stroke: rgba(31, 34, 48, 0.35); stroke-width: 2; stroke-dasharray: 4 6; }
.layers__ball { fill: #fff; stroke: #a9bccb; stroke-width: 2; }
.layers__hit { opacity: 1; }
.layers__dash { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: 0.7; }
.layers__hud rect { fill: rgba(20, 16, 30, 0.62); }
.layers__hud .layers__bar { fill: rgba(20, 16, 30, 0.3); }
.layers__hud text { font-family: var(--mono); font-size: 13px; fill: #fff; white-space: pre; }
.layers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.layers__list button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 250ms ease, box-shadow 250ms ease;
}
.layers__list button:hover { background: rgba(255, 255, 255, 0.08); }
.layers__list b {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(246, 239, 227, 0.3);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
}
.layers__list span { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.1; }
.layers__list small { display: block; margin-top: 3px; font-family: var(--body); font-weight: 400; font-size: 14.5px; line-height: 1.4; color: rgba(246, 239, 227, 0.6); }
.layers__list .is-done b { background: rgba(var(--accent-rgb), 0.6); box-shadow: none; }
.layers__list [aria-pressed="true"] { background: rgba(var(--accent-rgb), 0.28); box-shadow: inset 0 0 0 1.5px var(--accent-mid); }
.layers__list [aria-pressed="true"] b { background: var(--accent-mid); color: var(--room); box-shadow: none; }
.layers__nav { display: flex; gap: 8px; margin-top: 14px; }
.layers__nav .chip:disabled { opacity: 0.4; cursor: default; transform: none; }
.layers__end { margin: 22px 0 0; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--paper); }

/* ── 03 The game ────────────────────────────────────────────────────── */

.map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin-bottom: 64px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--accent);
}
.map__svg { display: block; width: 100%; max-width: 520px; height: auto; justify-self: center; }
.map__part { transition: opacity 300ms ease; }
.map.is-focus .map__part:not(.is-lit) { opacity: 0.18; }
.map__trees circle { fill: #2f6b55; stroke: #fff; stroke-width: 2; }
.map__boxes rect { fill: #8e99a6; stroke: #fff; stroke-width: 1.5; }
.map__arena rect { fill: rgba(var(--accent-rgb), 0.08); stroke: #5b6573; stroke-width: 8; }
.map__dash { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 3 4; stroke-linecap: round; }
.map__dash-head { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.map__edge { fill: none; stroke: var(--ink); stroke-width: 4; }
.map__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.map__legend button {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 200ms ease;
}
.map__legend button:hover, .map__legend button:focus-visible, .map__legend button[aria-pressed="true"] { background: rgba(var(--accent-rgb), 0.08); }
.map__legend b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); }
.map__key { flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 3px; }
.map__key--arena { background: rgba(var(--accent-rgb), 0.08); box-shadow: inset 0 0 0 3px #5b6573; }
.map__key--box { background: #8e99a6; }
.map__key--tree { border-radius: 50%; background: #2f6b55; }
.map__key--edge { box-shadow: inset 0 0 0 2px var(--ink); }
.map__note { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.split--controls { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); }
.keys { margin: 0; }
.keys > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.keys dt { display: flex; flex-wrap: wrap; gap: 4px; }
.keys dd { margin: 0; font-size: 16.5px; color: var(--ink-2); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule { padding: 22px 24px; border-radius: 8px; background: var(--paper-sheet); box-shadow: var(--card-shadow); }
.rule:nth-child(2) { transition-delay: 80ms; }
.rule:nth-child(3) { transition-delay: 160ms; }
.rule:nth-child(4) { transition-delay: 240ms; }
.rule__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.rule h3 { margin: 6px 0 10px; font-size: 26px; }
.rule p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* ── 04 Try the controls (dark band) ────────────────────────────────── */

.yard { display: grid; gap: 14px; }
.yard__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--snow);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.yard__screen:focus-visible { box-shadow: 0 0 0 3px var(--accent-mid), 0 24px 60px rgba(0, 0, 0, 0.45); }
.yard__screen canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.yard__start {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 0;
  background: rgba(20, 16, 30, 0.5);
  color: var(--paper);
  cursor: pointer;
}
.yard__start b { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 0.08em; text-transform: uppercase; }
.yard__start span { font-family: var(--mono); font-size: 13px; color: rgba(246, 239, 227, 0.75); }
.yard.is-live .yard__start { display: none; }
.yard__stick, .yard__pad { display: none; }
.yard__stick {
  position: absolute;
  left: 14px; bottom: 14px;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: rgba(20, 16, 30, 0.14);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.yard__stick i {
  position: absolute;
  left: 50%; top: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(20, 16, 30, 0.45);
  transform: translate(var(--sx, 0px), var(--sy, 0px));
}
.yard__pad { position: absolute; right: 12px; bottom: 12px; grid-template-columns: repeat(2, auto); gap: 8px; }
.yard__pad button {
  width: 62px; height: 62px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(20, 16, 30, 0.42);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
  touch-action: none;
}
.yard__pad button[aria-pressed="true"] { background: var(--accent); }
.yard__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.yard__keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.yard__keys li { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12.5px; color: rgba(246, 239, 227, 0.7); }
.yard__keys kbd { min-width: 26px; height: 26px; padding: 0 6px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.18); font-size: 12px; color: var(--paper); }
.yard__keys .kbd--wide { min-width: 58px; }
.yard__keys--touch { display: none; }
.yard__real { margin: 4px 0 0; padding: 14px 18px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-size: 16px; color: rgba(246, 239, 227, 0.78); }
.yard__real b { color: var(--paper); }
.yard__real a { color: var(--accent-mid); white-space: nowrap; }
.yard__toggle { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--paper); cursor: pointer; }
.yard__toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-mid); }
/* Phones and tablets get a stick and buttons instead of the keyboard. */
@media (pointer: coarse) {
  .yard.is-live .yard__stick { display: block; }
  .yard.is-live .yard__pad { display: grid; }
  .yard__keys { display: none; }
  .yard__keys--touch { display: flex; }
}

/* ── 05 The hardest part ────────────────────────────────────────────── */

.hits { padding: 14px; border-radius: 10px; background: var(--sheet); box-shadow: var(--card-shadow); }
.hits__svg { display: block; width: 100%; height: auto; border-radius: 6px; }
.hits__ball circle { fill: #fff; stroke: #a9bccb; stroke-width: 2; }
.hits__ball, .hits__sphere { animation: hitsFly 2.6s cubic-bezier(.35, .1, .65, 1) infinite; }
@keyframes hitsFly {
  0% { transform: translate(140px, 160px); opacity: 1; }
  58% { transform: translate(256px, 176px); opacity: 1; }
  60%, 100% { transform: translate(256px, 176px); opacity: 0; }
}
.hits__boxes { opacity: 0; transition: opacity 300ms ease; }
.hits.is-on .hits__boxes { opacity: 1; }
.hits__boxes rect, .hits__sphere { fill: rgba(224, 33, 138, 0.08); stroke: #e0218a; stroke-width: 2; stroke-dasharray: 5 4; }
.hits__mesh { fill: rgba(224, 33, 138, 0.06); stroke: #e0218a; stroke-width: 1.5; stroke-linejoin: round; }
.hits__boxes text { font-family: var(--mono); font-size: 12px; fill: #b0176c; text-anchor: middle; }
.hits__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.hits__note { font-size: 14.5px; line-height: 1.45; color: var(--muted); }

.online { margin-top: 64px; }
.online > p { max-width: 44em; color: var(--ink-2); }
.online .process { margin-bottom: 18px; }
.online__note { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; }

/* ── 06 What didn't make it ─────────────────────────────────────────── */

.cutballs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cutball { position: relative; padding: 24px 24px 22px; border-radius: 10px; background: var(--paper-sheet); box-shadow: var(--card-shadow); }
.cutball:nth-child(2) { transition-delay: 100ms; }
.cutball:nth-child(3) { transition-delay: 200ms; }
.cutball__stamp {
  position: absolute;
  right: 18px; top: 18px;
  padding: 2px 9px;
  border: 2px solid var(--bad);
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bad);
  transform: rotate(8deg);
}
.cutball__art { display: block; width: 72px; height: 72px; }
.cutball__snow { fill: #fff; stroke: #a9bccb; stroke-width: 2; }
.cutball__ice { fill: none; stroke: #8fb6cf; stroke-width: 2.5; stroke-linecap: round; }
.cutball__lines { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.cutball__pin { fill: none; stroke: #6b7380; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cutball h3 { margin: 10px 0 6px; font-size: 30px; }
.cutball p { font-size: 16px; color: var(--ink-2); }
.cutball__stats { margin: 0; display: grid; gap: 8px; }
.cutball__stats > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.cutball__stats dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cutball__stats dd { position: relative; margin: 0; height: 10px; border-radius: 99px; background: rgba(31, 34, 48, 0.07); }
.cutball__stats dd i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--accent); }
/* The tick in the middle of every bar is a normal snowball. */
.cutball__stats dd::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: rgba(31, 34, 48, 0.45); }
.cutball__stats .cutball__splash { height: auto; background: none; font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.cutball__stats .cutball__splash::after { display: none; }
.cutballs__key { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cutballs__key i { display: inline-block; width: 2px; height: 14px; margin-right: 8px; vertical-align: middle; background: rgba(31, 34, 48, 0.45); }

/* ── 07 Stories ─────────────────────────────────────────────────────── */

.tale__aside { margin-top: 10px !important; font-family: var(--mono); font-size: 13px !important; color: rgba(246, 239, 227, 0.55) !important; }
.school { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr); gap: 18px 24px; align-items: center; margin-top: 12px; }
.school .tale { margin: 0; }
.school__when { margin-bottom: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.school__arrow { font-family: var(--display); font-weight: 700; font-size: 44px; color: var(--accent); }
.blocked { position: relative; }
.blocked:nth-child(3) { transition-delay: 150ms; }
.blocked__page {
  padding: 26px 26px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--card-shadow), inset 0 6px 0 var(--bad);
  text-align: center;
}
.blocked__icon { width: 48px; height: 48px; fill: none; stroke: var(--bad); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.blocked__page h3 { margin: 10px 0 4px; font-size: 28px; }
.blocked__url { margin: 0 0 14px; font-family: var(--mono); font-size: 15px; color: var(--ink-2); }
.blocked__why { margin: 0 0 12px; text-align: left; }
.blocked__why > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line); }
.blocked__why dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.blocked__why dd { margin: 0; font-size: 15px; text-align: right; }
.blocked__small { margin: 0; font-size: 13px; color: var(--muted); }
.blocked__stamp {
  position: absolute;
  right: -12px; bottom: -22px;
  padding: 7px 14px;
  border: 3px solid var(--accent);
  border-radius: 6px;
  background: rgba(253, 250, 244, 0.94);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  transform: rotate(-8deg);
}
.js .blocked .blocked__stamp { opacity: 0; transform: rotate(-24deg) scale(1.3); }
.js .blocked.is-in .blocked__stamp { opacity: 1; transform: rotate(-8deg); transition: opacity 200ms ease 900ms, transform 450ms cubic-bezier(.2, 1.4, .4, 1) 900ms; }
#stories { overflow-x: clip; }  /* the stamp hangs off its card */
.school__text { margin: 44px 0 0; max-width: 46em; font-size: 18px; color: var(--ink-2); }

.closing__flake { display: block; width: 64px; height: 64px; margin: 0 auto; color: var(--accent); filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.45)); }


/* ══════════════════════════════════════════════════════════════════════
   SMALLER SCREENS
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1000px) {
  .sketches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sketches__photo { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero,
  .split,
  .split--flip,
  .mech,
  .part,
  .bug,
  .specs,
  .files { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: calc(var(--nav-h) + 4vh); }
  .hero__photo { max-width: 560px; }
  .hero__facts { grid-template-columns: repeat(2, auto); }
  .versus { grid-template-columns: minmax(0, 1fr); }
  .mech__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mech__panel { grid-template-columns: minmax(0, 1fr); }
  .mech__controls, .mech__range { grid-column: 1; grid-row: auto; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe li::after { display: none; }
  .versus__vs { justify-self: center; }
  .part__photo { position: static; }
  .finale,
  .cta,
  .clip,
  .design,
  .border-demo,
  .memes,
  .naming__text { grid-template-columns: minmax(0, 1fr); }
  .lid { max-width: 560px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .season__track { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-left: 4px; }
  .season__track::before { left: 12px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(31, 34, 48, 0.15), var(--accent)); }
  .season__track li { padding: 0 0 0 36px; }
  .season__track li::before { left: 4px; }
  .stats--many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack__row { flex-direction: column; }
  .stack__wire { flex-basis: 22px; width: 2px; height: 22px; background: repeating-linear-gradient(180deg, var(--accent-mid) 0 6px, transparent 6px 11px); }
  .stack__row--uses { grid-template-columns: minmax(0, 1fr); }
  .memes__summary { position: static; }
  .clip__frame { max-width: 340px; }
  .cta__btn { font-size: 16px; padding: 13px 20px; }
  .finale__photo { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fires { grid-template-columns: minmax(0, 1fr); }
  .files__tree { justify-self: start; }
  .pw { margin: 10px 0 40px; }
  .hasher { grid-template-columns: minmax(0, 1fr); }
  .hasher__arrow { width: 52px; height: 40px; transform: rotate(90deg); justify-self: start; margin-left: 12px; }
  .hasher__arrow span { transform: rotate(-90deg); }
  .split--three,
  .split--notes,
  .rig,
  .sets,
  .benji,
  .findings,
  .heat,
  .loki,
  .triad { grid-template-columns: minmax(0, 1fr); }
  .dossier { max-width: 460px; }
  .tactic { max-width: 440px; margin-top: 8px; }
  .zone,
  .bend,
  .split--zone,
  .split--math,
  .launch__controls,
  .limits-grid,
  .arena__controls { grid-template-columns: minmax(0, 1fr); }
  .browser { max-width: 540px; margin-top: 8px; }
  .jam { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .jam__text { grid-column: 1 / -1; }
  .cycle { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .cycle__panel { justify-self: stretch; }
  .layers__body,
  .map,
  .split--controls,
  .cutballs { grid-template-columns: minmax(0, 1fr); }
  .school { grid-template-columns: minmax(0, 1fr); }
  .school__arrow { justify-self: center; transform: rotate(90deg); line-height: 1; }
  .online .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .nav a { font-size: 13px; letter-spacing: 0.1em; }
  .nav .nav__name { font-size: 18px; }
  .nav__links { gap: 14px; }
  .nav .the { display: none; }
  .mech__steps { grid-template-columns: minmax(0, 1fr); }
  .process,
  .pack__flow,
  .finish__pair { grid-template-columns: minmax(0, 1fr); }
  .toolbox__list > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pipeline__tool { float: none; display: inline-block; margin: 0 0 6px; }
  /* Keep the diagram's labels readable: let it scroll sideways instead of
     shrinking to fit. */
  .mech__stage { padding: 10px; overflow-x: auto; }
  .files__tree { font-size: 12.5px; padding: 14px 16px; }
  .files__row { white-space: pre-wrap; }
  .mech__svg { min-width: 620px; }
  .sketches { grid-template-columns: minmax(0, 1fr); }
  .note--tilt-l, .note--tilt-r { transform: none; }
  .fixes__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fixes__row--head { display: none; }
  .hero__stamp { width: 70px; height: 70px; left: -8px; top: -24px; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .pw__card { padding: 24px 20px 22px; }
  .pw__rules { grid-template-columns: minmax(0, 1fr); }
  .pw__stamp { width: 118px; height: 118px; right: -6px; bottom: -70px; }
  .pw__stamp b { font-size: 26px; }
  .pw__stamp span { font-size: 9.5px; max-width: 84px; }
  .ks__out,
  .gen__facts { grid-template-columns: minmax(0, 1fr); }
  .heat__grid { grid-template-columns: 34px repeat(4, minmax(0, 1fr)); gap: 4px; }
  .heat__name { display: none; }
  .heat__corner { visibility: hidden; }
  .dossier__stamp { top: -12px; right: 12px; background: var(--sheet); }
  .heat__col small { font-size: 13px; text-align: center; }
  .heat__cell { min-height: 52px; font-size: 14px; padding: 6px 3px; }
  .board__table th, .board__table td { padding: 9px 6px; }
  .board__table td:nth-child(2) { display: none; }
  .board__table thead th:nth-child(2) { display: none; }
  .growth b { font-size: 20px; }
  .tactic__svg { padding: 8px; transform: none; }
  .zone__steps li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .launch__read { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch__verdict { grid-column: 1 / -1; }
  .launch__read b, .bend__read b { font-size: 22px; }
  .window { --kw: 0px; }
  .window__row { grid-template-columns: minmax(0, 1fr); gap: 5px; margin-bottom: 12px; }
  .window__bar em { left: auto; right: 0; top: -17px; transform: none; font-size: 11.5px; }
  .window__cursor { top: 20px; }
  .arena__screen { aspect-ratio: 4 / 3; }
  .arena__banner { top: 12px; padding: 7px 14px 6px; }
  .browser__feed { top: 42px; right: 8px; }
  .browser__feed li { font-size: 10px; padding: 2px 7px; }
  .jam { grid-template-columns: minmax(0, 1fr); }
  .jam__listing { max-width: 280px; margin-top: 0; }
  .cycle { --wheel: 236px; --r: 86px; --pad: 50px; }
  .cycle__node { font-size: 15px; padding: 6px 11px 6px 6px; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .keys > div { grid-template-columns: 140px minmax(0, 1fr); }
  .yard__screen { aspect-ratio: 4 / 3; }
  .online .process { grid-template-columns: minmax(0, 1fr); }
  .blocked__stamp { right: 6px; font-size: 16px; }
}

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