/* zippy.ad: a sporty yellow jacket with a big chunky zipper (by night, dark denim and brass). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-medium-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --bg: #ffd400;
  --ink: #141414;
  --ink-soft: #3d3508;
  --accent-bg: #141414;
  --accent-ink: #ffd400;
  --focus: #141414;

  --cloth: #ffcd00;
  --cloth-lit: rgba(255, 246, 190, 0.55);
  --cloth-dim: rgba(150, 92, 0, 0.32);
  --weave-a: rgba(130, 86, 0, 0.17);
  --weave-b: rgba(255, 252, 225, 0.42);
  --fold-dark: rgba(140, 84, 0, 0.2);
  --fold-light: rgba(255, 250, 215, 0.45);
  --curl: rgba(255, 247, 205, 0.8);
  --stitch: #141414;
  --tape: #161616;
  --tooth-hi: #5b5b5b;
  --tooth-mid: #1d1d1d;
  --tooth-lo: #030303;
  --tooth-gloss: rgba(255, 255, 255, 0.42);
  --metal-hi: #ffffff;
  --metal-mid: #c8ccd3;
  --metal-lo: #7a808b;
  --metal-edge: #3f434b;
  --lining: #18181c;
  --quilt: rgba(255, 255, 255, 0.06);
  --gap-shade: rgba(0, 0, 0, 0.55);
  --panel-shadow: rgba(110, 72, 0, 0.42);

  --chip-line: #141414;
  --chip-on-bg: #141414;
  --chip-on-ink: #ffd400;
  --btn-bg: #141414;
  --btn-ink: #ffd400;
  --watch-bg: #141414;
  --watch-ink: #ffd400;
  --snap-hi: #ffffff;
  --snap-mid: #c9cdd4;
  --snap-lo: #868b95;
  --snap-ink: #232529;
  --snap-ring: #ffd400;
  --placket: #141414;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a2b;
    --ink: #eef2fb;
    --ink-soft: #b8c2d9;
    --accent-bg: #ffd400;
    --accent-ink: #121a2b;
    --focus: #ffd400;

    --cloth: #22345a;
    --cloth-lit: rgba(150, 180, 240, 0.2);
    --cloth-dim: rgba(2, 6, 18, 0.5);
    --weave-a: rgba(4, 10, 26, 0.42);
    --weave-b: rgba(170, 196, 245, 0.16);
    --fold-dark: rgba(0, 4, 16, 0.5);
    --fold-light: rgba(160, 188, 240, 0.22);
    --curl: rgba(176, 200, 246, 0.42);
    --stitch: #d9a441;
    --tape: #0b1222;
    --tooth-hi: #fbe7a6;
    --tooth-mid: #c99d3f;
    --tooth-lo: #6f4f15;
    --tooth-gloss: rgba(255, 249, 220, 0.75);
    --metal-hi: #fff3c9;
    --metal-mid: #d6ad55;
    --metal-lo: #8d6621;
    --metal-edge: #4d3609;
    --lining: #090e19;
    --quilt: rgba(217, 164, 65, 0.1);
    --gap-shade: rgba(0, 0, 0, 0.7);
    --panel-shadow: rgba(0, 0, 0, 0.6);

    --chip-line: #eef2fb;
    --chip-on-bg: #ffd400;
    --chip-on-ink: #121a2b;
    --btn-bg: #ffd400;
    --btn-ink: #121a2b;
    --watch-bg: #090e19;
    --watch-ink: #ffd400;
    --snap-hi: #fff1c2;
    --snap-mid: #d3a64c;
    --snap-lo: #82601f;
    --snap-ink: #2a1d05;
    --snap-ring: #ffd400;
    --placket: #0a1020;

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121a2b;
  --ink: #eef2fb;
  --ink-soft: #b8c2d9;
  --accent-bg: #ffd400;
  --accent-ink: #121a2b;
  --focus: #ffd400;

  --cloth: #22345a;
  --cloth-lit: rgba(150, 180, 240, 0.2);
  --cloth-dim: rgba(2, 6, 18, 0.5);
  --weave-a: rgba(4, 10, 26, 0.42);
  --weave-b: rgba(170, 196, 245, 0.16);
  --fold-dark: rgba(0, 4, 16, 0.5);
  --fold-light: rgba(160, 188, 240, 0.22);
  --curl: rgba(176, 200, 246, 0.42);
  --stitch: #d9a441;
  --tape: #0b1222;
  --tooth-hi: #fbe7a6;
  --tooth-mid: #c99d3f;
  --tooth-lo: #6f4f15;
  --tooth-gloss: rgba(255, 249, 220, 0.75);
  --metal-hi: #fff3c9;
  --metal-mid: #d6ad55;
  --metal-lo: #8d6621;
  --metal-edge: #4d3609;
  --lining: #090e19;
  --quilt: rgba(217, 164, 65, 0.1);
  --gap-shade: rgba(0, 0, 0, 0.7);
  --panel-shadow: rgba(0, 0, 0, 0.6);

  --chip-line: #eef2fb;
  --chip-on-bg: #ffd400;
  --chip-on-ink: #121a2b;
  --btn-bg: #ffd400;
  --btn-ink: #121a2b;
  --watch-bg: #090e19;
  --watch-ink: #ffd400;
  --snap-hi: #fff1c2;
  --snap-mid: #d3a64c;
  --snap-lo: #82601f;
  --snap-ink: #2a1d05;
  --snap-ring: #ffd400;
  --placket: #0a1020;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.022) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font: 400 1rem/1.5 var(--text);
  overflow-x: clip;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- top bar ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 900 1.15rem/1 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  width: 15px;
  height: 24px;
  overflow: visible;
}
.mark-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
}
.mark-tab {
  fill: var(--ink);
}
.mark-slot {
  fill: var(--bg);
}

/* Theme switch: three metal snap buttons on a strip of black tape; the chosen one is pressed in. */
.theme {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  border-radius: 999px;
  background: var(--placket);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 rgba(255, 255, 255, 0.25);
}

.snap {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--snap-ink);
  background: radial-gradient(circle at 36% 30%, var(--snap-hi) 0 18%, var(--snap-mid) 52%, var(--snap-lo) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.28),
    inset 0 -2px 2px rgba(0, 0, 0, 0.18),
    0 1.5px 1.5px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.snap svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snap:hover {
  transform: translateY(-0.5px);
}

/* Pressed in: sunk, shaded from the top, ringed by the tape's colour. Driven by the root's theme so
   the right snap shows pressed before app.js runs. */
:root:not([data-theme]) .snap[data-theme-value="system"],
:root[data-theme="light"] .snap[data-theme-value="light"],
:root[data-theme="dark"] .snap[data-theme-value="dark"] {
  transform: scale(0.9);
  background: radial-gradient(circle at 50% 70%, var(--snap-hi) 0 10%, var(--snap-mid) 46%, var(--snap-lo) 100%);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.35),
    0 0 0 2px var(--snap-ring);
}

.theme .snap:focus-visible {
  outline-offset: 2px;
}

/* ---------- hero and play ---------- */

.hero {
  display: grid;
  padding: 6px 0 52px;
}

h1 {
  margin: 10px 0 0;
  font: 900 clamp(2.6rem, 11.4vw, 5.2rem) / 1.02 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.035em;
}

h1 .accent {
  display: inline;
  padding: 0 0.1em 0.02em;
  margin-left: -0.04em;
  background: var(--accent-bg);
  color: var(--accent-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  max-width: 33em;
  margin: 16px 0 0;
  font-size: 1.04rem;
  line-height: 1.48;
  text-wrap: pretty;
}

.play-title {
  margin: 26px 0 0;
  font: 900 1.3rem/1.1 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--chip-line);
  font: 600 0.8rem/1.15 var(--text);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chip input:checked + span {
  background: var(--chip-on-bg);
  color: var(--chip-on-ink);
  box-shadow: inset 0 0 0 2px var(--chip-on-bg);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.chip:hover span {
  transform: translateY(-1px);
}

/* The jacket panel. The cloth, teeth and slider are an SVG drawn by app.js over the lining; the ad
   cards are real text underneath. */
.stage-wrap {
  margin-top: 16px;
  padding-bottom: 46px;
}

.stage {
  --h: 400px;
  position: relative;
  height: var(--h);
  border-radius: 18px;
  background-color: var(--lining);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 21px, var(--quilt) 21px 22.5px),
    repeating-linear-gradient(-45deg, transparent 0 21px, var(--quilt) 21px 22.5px);
  box-shadow: 0 22px 34px -22px var(--panel-shadow), 0 3px 0 -1px rgba(0, 0, 0, 0.12);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.zip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* The SVG's paint comes from the theme tokens, so the zipper turns brass with the theme. */
.z-cloth { fill: var(--cloth); }
.w-a { fill: none; stroke: var(--weave-a); stroke-width: 1.1; }
.w-b { fill: none; stroke: var(--weave-b); stroke-width: 0.9; }
.s-lit { stop-color: var(--cloth-lit); }
.s-dim { stop-color: var(--cloth-dim); }
.s-fold, .s-curlshadow { stop-color: var(--fold-dark); }
.s-foldlit { stop-color: var(--fold-light); }
.s-shade { stop-color: var(--gap-shade); }
.s-curl { stop-color: var(--curl); }
.s-tooth-hi { stop-color: var(--tooth-hi); }
.s-tooth-mid { stop-color: var(--tooth-mid); }
.s-tooth-lo { stop-color: var(--tooth-lo); }
.s-metal-hi { stop-color: var(--metal-hi); }
.s-metal-mid { stop-color: var(--metal-mid); }
.s-metal-lo { stop-color: var(--metal-lo); }
.s-metal-edge { stop-color: var(--metal-edge); }
.z-shade { fill: none; stroke-linejoin: round; opacity: 0.8; }
.z-seam { fill: none; stroke: var(--stitch); opacity: 0.6; }
.z-curl { fill: none; stroke-linejoin: round; }
.z-stitch { fill: none; stroke: var(--stitch); opacity: 0.75; stroke-linejoin: round; }
.z-tape { fill: none; stroke: var(--tape); stroke-linejoin: round; }
.z-backing { fill: var(--tape); }
.z-gloss { fill: none; stroke: var(--tooth-gloss); stroke-linecap: round; }
.z-gloss--stem { opacity: 0.45; }
.z-metal { stroke: var(--metal-edge); stroke-width: 0.8; }
.z-drop { fill: rgba(0, 0, 0, 0.32); }
.z-shine { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-linecap: round; }
.z-groove { fill: none; stroke: rgba(0, 0, 0, 0.35); stroke-linecap: round; }
.z-ring { fill: none; stroke: var(--metal-mid); }
.z-slot { fill: var(--metal-edge); opacity: 0.6; }

.grab {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 140px;
  touch-action: none;
  cursor: grab;
}
.grab.is-held {
  cursor: grabbing;
}

.ads {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: start;
}

.ad {
  --top: 26px;
  grid-area: 1 / 1;
  align-self: start;
  width: min(64%, 300px);
  margin-top: var(--top);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  color: #141414;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.25);
  transform-origin: 50% 0;
  will-change: transform;
}

.ad-pic svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 240 / 92;
}

.ad-body {
  padding: 11px 14px 14px;
}

.ad-tag {
  margin: 0;
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #545454;
}

.ad-title {
  margin: 7px 0 0;
  font: 900 1.12rem/1.08 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.ad-line {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #3a3a3a;
}

.ad-cta {
  margin-top: 11px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #141414;
  color: #ffd400;
  font: 700 0.82rem/1 var(--text);
  cursor: pointer;
}
.ad-cta:active {
  transform: translateY(1px);
}
.ad-cta:focus-visible {
  outline-color: #141414;
}

/* Without JS: no zipper; the picked sample ad simply shows on the lining. */
html:not(.js) .zip,
html:not(.js) .grab,
html:not(.js) .stopwatch,
html:not(.js) .actions {
  display: none;
}
html:not(.js) .ads:has(.ad) .ad {
  display: none;
}
html:not(.js) .hero:has(input[value="run"]:checked) .ad[data-app="run"],
html:not(.js) .hero:has(input[value="plant"]:checked) .ad[data-app="plant"],
html:not(.js) .hero:has(input[value="lang"]:checked) .ad[data-app="lang"] {
  display: block;
}

.js .ad:not(.is-picked) {
  visibility: hidden;
}

.stopwatch {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 9px 5px 7px;
  border-radius: 8px;
  background: var(--watch-bg);
  color: var(--watch-ink);
  font: 500 0.82rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.stopwatch svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.stopwatch.is-done {
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.5), inset 0 0 0 2px var(--watch-ink);
}

.actions {
  display: flex;
  margin-top: 4px;
}

.unzip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 10.5rem;
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 900 1.04rem/1 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 0 -2px rgba(0, 0, 0, 0.28);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.unzip svg {
  width: 16px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.unzip:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 -2px rgba(0, 0, 0, 0.28);
}
.unzip.is-open svg {
  transform: rotate(180deg);
}

.play-note {
  max-width: 30em;
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .stage {
    --h: 520px;
  }
  .stage-wrap {
    max-width: 560px;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    grid-template-rows: auto auto auto auto auto auto 1fr;
    column-gap: clamp(40px, 6vw, 96px);
    padding: 18px 0 72px;
  }
  .hero > * {
    grid-column: 1;
  }
  .hero > .stage-wrap {
    grid-column: 2;
    grid-row: 1 / -1;
    max-width: none;
    margin-top: 12px;
  }
  .stage {
    --h: 640px;
    border-radius: 22px;
  }
  h1 {
    margin-top: 40px;
  }
  .lede {
    font-size: 1.16rem;
    margin-top: 22px;
  }
  .play-title {
    margin-top: 40px;
    font-size: 1.5rem;
  }
  .chip span {
    font-size: 0.95rem;
    padding: 9px 15px;
  }
  .actions {
    margin-top: 22px;
  }
  .stopwatch {
    bottom: 26px;
    right: 26px;
    padding: 7px 11px 7px 9px;
    font-size: 0.95rem;
  }
  .stopwatch svg {
    width: 16px;
    height: 16px;
  }
  .ad {
    width: min(68%, 372px);
  }
  .ad-title {
    font-size: 1.55rem;
  }
  .ad-line {
    font-size: 0.95rem;
  }
  .ad-body {
    padding: 14px 18px 18px;
  }
}

/* ---------- three steps ---------- */

.steps {
  padding: 8px 0 64px;
  border-top: 2px dashed color-mix(in srgb, var(--ink) 55%, transparent);
}

.step-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
}

/* Each step is a patch of the same cloth, stitched on, with its own small zipper. */
.step {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: 16px;
  background-color: var(--cloth);
  background-image:
    linear-gradient(135deg, var(--cloth-lit), transparent 55%, var(--cloth-dim)),
    repeating-linear-gradient(45deg, var(--weave-a) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(45deg, transparent 0 2.5px, var(--weave-b) 2.5px 3.4px, transparent 3.4px 5px);
  box-shadow: 0 14px 22px -16px var(--panel-shadow);
}
.step::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.4px dashed var(--stitch);
  border-radius: 10px;
  opacity: 0.6;
  pointer-events: none;
}
.step > * {
  position: relative;
  z-index: 1;
}

.step h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 0;
  font: 900 1.3rem/1.1 var(--display);
  font-stretch: 118%;
  letter-spacing: -0.01em;
}

.step-no {
  font: 500 0.8rem/1 var(--mono);
  letter-spacing: 0.04em;
}

.step p {
  margin: 6px 0 0;
  font-size: 1rem;
  color: var(--ink);
}

@media (min-width: 760px) {
  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Small horizontal zippers that zip shut as they scroll into view. */
.mini {
  --tw: 6px;
  position: relative;
  width: 100%;
  height: 46px;
  border-radius: 6px;
}

.mini::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 17px;
  height: 12px;
  background: var(--lining);
}

.mini-tape {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--tape);
}
.mini-tape.top {
  top: 4px;
  border-radius: 3px 3px 0 0;
}
.mini-tape.bottom {
  top: 28px;
  border-radius: 0 0 3px 3px;
}

.mini-t {
  position: absolute;
  width: var(--tw);
  height: 14px;
  border-radius: 1.5px 1.5px 3.5px 3.5px;
  background: linear-gradient(90deg, var(--tooth-lo), var(--tooth-hi) 38%, var(--tooth-mid) 70%, var(--tooth-lo));
  box-shadow: inset 0 1.5px 0 var(--tooth-gloss), 0 1px 1px rgba(0, 0, 0, 0.4);
  transition: transform 0.34s cubic-bezier(0.3, 1.7, 0.5, 1);
  transition-delay: calc(var(--i) * 27ms + 130ms);
}
.mini-t.up {
  top: 13px;
  transform: translateY(-6px) rotate(-10deg);
}
.mini-t.down {
  top: 19px;
  border-radius: 3.5px 3.5px 1.5px 1.5px;
  transform: translateY(6px) rotate(10deg);
}

.mini-slider {
  position: absolute;
  top: 9px;
  left: 0;
  width: 30px;
  height: 28px;
  border-radius: 8px 13px 13px 8px;
  background: linear-gradient(180deg, var(--metal-hi), var(--metal-mid) 45%, var(--metal-lo));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.1s;
}
.mini-slider::after {
  content: "";
  position: absolute;
  top: 6px;
  left: -16px;
  width: 22px;
  height: 16px;
  border-radius: 8px 3px 3px 8px;
  background: linear-gradient(180deg, var(--metal-hi), var(--metal-mid) 50%, var(--metal-lo));
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.mini.is-shut .mini-t {
  transform: none;
}
.mini.is-shut .mini-slider {
  transform: translateX(var(--run, 200px));
}

/* ---------- footer ---------- */

.foot {
  padding: 26px 0 40px;
  border-top: 2px dashed color-mix(in srgb, var(--ink) 55%, transparent);
}

.foot-line {
  margin: 0;
  font: 500 0.88rem/1.5 var(--mono);
  color: var(--ink);
}

.foot-line a {
  text-underline-offset: 3px;
}

/* ---------- 404 ---------- */

.nf {
  display: grid;
  gap: 18px;
  padding: 20px 0 64px;
}
.nf h1 {
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  max-width: 14ch;
}
.nf .stage-wrap {
  max-width: 520px;
  width: 100%;
  margin-top: 4px;
}
.nf .stage {
  --h: 360px;
}
.nf-home {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 900 1rem/1 var(--display);
  font-stretch: 112%;
  text-decoration: none;
}

@media (min-width: 980px) {
  .nf {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 80px;
    row-gap: 28px;
    padding-top: 40px;
  }
  .nf h1 {
    grid-row: 2;
  }
  .nf-home {
    grid-row: 3;
  }
  .nf .stage-wrap {
    grid-column: 2;
    grid-row: 1 / -1;
  }
  .nf .stage {
    --h: 560px;
  }
}

/* Calm mode: nothing glides. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
