/* ==========================================================================
   pablosensei.github.io
   Boxed desktop software: every project is a box you could take off a shelf.
   Flat saturated inks per product, stickers, checklists, requirement panels.
   Archivo (OFL) for all lettering, JetBrains Mono (OFL) for versions and specs.
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #f3f4f6;
  --paper-2: #e6e8ec;
  --plate: #ffffff;
  --ink: #141518;
  --ink-2: #474b53;
  --ink-3: #6a6f79;
  --rule: #1415182a;
  --shadow-floor: #14151838;

  /* product inks: objects, the same in both themes */
  --arro: #ea580c;
  --arro-box: #1f1f23;
  --dictate: #d42f28;
  --tunetop: #e8458b;
  --tunetop-2: #3b1d6e;
  --translator: #3c4be0;
  --translator-2: #c9cdfb;
  --sticker: #ffd23f;
  --wall: #e6e8ec;
  --peg: #c3c7cf;
  --spot: #ffffffd9;

  --k-new: #ffd23f;
  --k-improved: #3c4be0;
  --k-fixed: #e8458b;
  --k-hood: #b9bdc6;

  --focus: #3c4be0;
  --sel: #ffd23f80;

  --font: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 68ch;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d0f14;
    --paper-2: #161922;
    --plate: #1b1e27;
    --ink: #eef0f4;
    --ink-2: #b8bdc8;
    --ink-3: #8a909c;
    --rule: #eef0f422;
    --shadow-floor: #000000a0;
    --k-hood: #5d6370;
    --focus: #ffd23f;
    --sel: #ffd23f55;
    --wall: #12151c;
    --peg: #05070a;
    --spot: #2c3446b0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0f14;
  --paper-2: #161922;
  --plate: #1b1e27;
  --ink: #eef0f4;
  --ink-2: #b8bdc8;
  --ink-3: #8a909c;
  --rule: #eef0f422;
  --shadow-floor: #000000a0;
  --k-hood: #5d6370;
  --focus: #ffd23f;
  --sel: #ffd23f55;
  --wall: #12151c;
  --peg: #05070a;
  --spot: #2c3446b0;
}

@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 88%;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
  scrollbar-color: var(--ink-3) var(--paper-2);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--sel); color: inherit; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--arro);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s, color 0.2s;
}
a:hover { text-decoration-color: currentColor; }

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

code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.86em; }
code {
  background: var(--paper-2);
  padding: 0.08em 0.36em;
  border-radius: 3px;
  font-variant-ligatures: none;
}
kbd {
  display: inline-block;
  padding: 0.12em 0.5em 0.1em;
  border: 1.5px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 4px;
  background: var(--plate);
  color: var(--ink);
  font-size: 0.78em;
  line-height: 1.4;
  white-space: nowrap;
}

h1, h2, h3, h4 { line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 8px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------- lettering */

.brand {
  /* product names, as printed on a box front */
  font-weight: 900;
  font-style: italic;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 112;
  color: var(--ink-3);
}
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.h-section {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  font-style: italic;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4em; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-variation-settings: "wdth" 80; }
.prose h2.label { font-size: 0.75rem; margin-top: 0; font-variation-settings: "wdth" 112; }
.prose ul { padding-left: 1.2em; }

/* ---------------------------------------------------------------- masthead */

.topbar { position: relative; z-index: 40; }
.topbar.sticky {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 2px solid var(--ink);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; padding-block: 10px; }
.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  font-style: italic;
  font-variation-settings: "wdth" 125;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.mark i {
  /* a tiny box: the site's mark */
  display: inline-block;
  width: 20px;
  height: 25px;
  background: var(--ink);
  box-shadow: 5px -5px 0 -1px var(--arro);
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out);
}
.mark:hover i { transform: rotate(-10deg); }
.topnav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.topnav a {
  padding: 8px 14px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.topnav a:hover { background: var(--paper-2); }
.topnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.topnav a.flap-arro[aria-current="page"] { background: var(--arro); color: #141518; }
.topnav svg { width: 13px; height: 13px; }

.theme-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out);
}
.theme-toggle:hover { transform: rotate(-25deg); }
.theme-toggle svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .topbar .wrap { flex-wrap: wrap; gap: 8px 12px; }
  .topnav { order: 3; margin-left: -8px; width: calc(100% + 8px); overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .theme-toggle { margin-left: auto; }
}

/* ------------------------------------------------------------- buttons */

.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 10px 24px 10px 20px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 800;
  font-size: 1.04rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(0); }
.btn--arro { --bg: var(--arro); --fg: #141518; }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------- stickers */

.sticker {
  display: inline-grid;
  place-items: center;
  align-content: center;
  width: var(--size, 84px);
  height: var(--size, 84px);
  border-radius: 50%;
  background: var(--sticker);
  color: #141518;
  text-align: center;
  transform: rotate(var(--tilt, -12deg));
  box-shadow: 0 2px 0 #14151830;
  font-weight: 900;
  line-height: 1;
}
.sticker small { display: block; font-size: 0.72em; letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; font-variation-settings: "wdth" 112; }
.sticker .mono { display: block; font-size: 0.95em; font-weight: 600; margin-top: 3px; }

/* drawn ticks for feature checklists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; line-height: 1.5; }
.checks li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='1' y='1' width='18' height='18' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4.5 10.5 8.5 14.5 15.5 5.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='1' y='1' width='18' height='18' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4.5 10.5 8.5 14.5 15.5 5.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100%;
}
.checks strong { font-weight: 800; }

/* the system-requirements panel from the side of a box */
.requires { border: 2px solid var(--ink); background: var(--plate); color: var(--ink); border-radius: 3px; font-size: 0.92rem; }
.requires .req-head {
  margin: 0;
  padding: 7px 12px 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 112;
}
.requires dl { margin: 0; padding: 10px 12px 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.requires dt { font-weight: 800; }
.requires dd { margin: 0; color: var(--ink-2); }

.barcode { display: flex; align-items: flex-end; gap: 10px; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.barcode svg { height: 38px; width: auto; color: var(--ink); flex: none; }

/* ------------------------------------------------------------ plates */
/* Screenshots: one scale, one ground. */

.plate { margin: 0; background: var(--plate); border: 2px solid var(--ink); border-radius: 4px; padding: 8px; color: var(--ink); }
.plate .fit { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--paper-2); overflow: hidden; border-radius: 2px; }
.plate .fit img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.plate figcaption { padding: 8px 4px 2px; font-size: 0.86rem; color: var(--ink-2); }
.plate figcaption b { color: var(--ink); font-weight: 800; margin-right: 0.4em; }

/* --------------------------------------------------------- reveals */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
  .motion .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================== 3D BOXES */

.box {
  --w: 200px;
  --h: 264px;
  --d: 56px;
  --ry: -26deg;
  --rx: -8deg;
  --c: var(--arro-box);
  --c2: var(--arro);
  --fg: #ffffff;
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  perspective: 1400px;
}
.box[data-product="dictate"] { --c: var(--dictate); --c2: #1a0b0a; }
.box[data-product="tunetop"] { --c: var(--tunetop); --c2: var(--tunetop-2); --fg: #141518; }
.box[data-product="ai-translator"] { --c: var(--translator); --c2: var(--translator-2); }

.box-stage { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; position: relative; width: calc(var(--w) + var(--d) * 0.6); height: calc(var(--h) + var(--d) * 0.4); display: grid; place-items: center; }
.box-turn {
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.75s var(--spring);
  cursor: grab;
  outline: none;
  touch-action: pan-y;
}
.box-turn.dragging { transition: none; cursor: grabbing; }
.box-turn:focus-visible .face.front { outline: 3px solid var(--focus); outline-offset: 8px; }
.face {
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: hidden;
  background: var(--c);
  color: var(--fg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.face.front { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); transform: translateZ(calc(var(--d) / 2)); }
.face.back { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #ffffff; color: #141518; }
.face.left, .face.right { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); }
.face.left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.face.right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.face.left::after { background: #00000012; }
.face.right::after { background: #0000003a; }
.face.top, .face.bottom { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); }
.face.top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.face.top::after { background: #ffffff26; }
.face.bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.face.bottom::after { background: #00000055; }

.face img, .face canvas { -webkit-user-drag: none; pointer-events: none; }
.face canvas.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.front-type { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--w) * 0.075); }
.front-type .pname { font-size: calc(var(--w) * 0.2); color: var(--fg); text-shadow: 0 2px 0 #00000033; }
.box[data-product="ai-translator"] .front-type .pname { font-size: calc(var(--w) * 0.155); }
.box[data-product="tunetop"] .front-type .pname { font-size: calc(var(--w) * 0.17); }
.front-type .ptag { margin-top: calc(var(--w) * 0.03); font-size: calc(var(--w) * 0.058); font-weight: 800; line-height: 1.25; max-width: 14ch; }
.front-type .pfor {
  padding: 5px 8px 4px;
  background: var(--fg);
  color: var(--c);
  font-size: calc(var(--w) * 0.05);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 112;
  line-height: 1.2;
}
.front-type .sticker { position: absolute; right: calc(var(--w) * 0.05); top: 44%; --size: calc(var(--w) * 0.34); font-size: calc(var(--w) * 0.06); }
.box[data-product="arro"] .front-type .sticker { top: 21%; right: calc(var(--w) * 0.04); }
.spine { display: grid; place-items: center; }
.spine .stack { display: flex; flex-direction: column; align-items: center; gap: calc(var(--d) * 0.25); writing-mode: vertical-rl; transform: rotate(180deg); }
.spine .sname { font-size: calc(var(--d) * 0.44); font-weight: 900; font-style: italic; font-variation-settings: "wdth" 125; white-space: nowrap; line-height: 1; }
.spine .mono { font-size: calc(var(--d) * 0.22); font-weight: 600; white-space: nowrap; }
.face.top img { position: absolute; left: calc(var(--d) * 0.2); top: 50%; width: calc(var(--d) * 0.6); height: calc(var(--d) * 0.6); transform: translateY(-50%); border-radius: 18%; }
.back-inner { position: absolute; inset: 0; padding: calc(var(--w) * 0.075); display: flex; flex-direction: column; gap: calc(var(--w) * 0.04); font-size: calc(var(--w) * 0.052); line-height: 1.35; }
.back-inner .bname { font-size: calc(var(--w) * 0.11); }
.back-inner .checks { gap: 0.45em; }
.back-inner .checks li { grid-template-columns: 1em 1fr; gap: 0.5em; }
.back-inner .checks li::before { width: 1em; height: 1em; margin-top: 0.15em; }
.back-inner .reqline { border-top: 2px solid #141518; padding-top: 0.5em; font-size: 0.9em; color: #474b53; }
.back-inner .reqline b { color: #141518; }
.back-inner .barcode { margin-top: auto; font-size: 0.75em; color: #474b53; }
.back-inner .barcode svg { height: calc(var(--w) * 0.13); color: #141518; }

.box-floor {
  position: absolute;
  left: 50%;
  bottom: calc(var(--d) * -0.1);
  width: calc(var(--w) * 1.35);
  height: calc(var(--d) * 0.8);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--shadow-floor), transparent);
  pointer-events: none;
}
.box-caption { margin-top: 14px; display: grid; justify-items: center; gap: 2px; text-align: center; max-width: calc(var(--w) + 40px); }
.box-caption a.pl { font-weight: 900; font-style: italic; font-variation-settings: "wdth" 120; font-size: 1.2rem; text-decoration: none; }
.box-caption a.pl:hover { text-decoration: underline; text-decoration-color: var(--arro); }
.box-caption .sub { font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }
.turn-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.35s var(--ease-out);
}
.turn-btn:hover { background: var(--sticker); color: #141518; transform: rotate(-3deg); }
.turn-btn svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .motion .shelf .box { opacity: 0; transform: translateY(-70px) rotate(-4deg); }
  .motion .shelf.ready .box {
    opacity: 1;
    transform: none;
    transition: opacity 0.35s ease calc(var(--i) * 0.12s + 0.25s), transform 1s var(--spring) calc(var(--i) * 0.12s + 0.25s);
  }
}

/* ================================================================== HOME */

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  /* a shop wall: pegboard, lit from above */
  background:
    radial-gradient(ellipse 62% 58% at 50% 46%, var(--spot), transparent 72%),
    radial-gradient(circle, var(--peg) 2.3px, transparent 2.9px) 0 0 / 30px 30px,
    var(--wall);
}
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 40px;
  padding-block: clamp(10px, 2.4vh, 30px) 0;
}
.hero > * { min-width: 0; }
.masthead h1 { font-size: clamp(2.1rem, 3.3vw, 3.7rem); white-space: nowrap; }
.masthead h1 span { display: inline-block; }
.masthead .tagline { font-size: clamp(1rem, 1.2vw, 1.2rem); font-weight: 700; max-width: 54ch; }
.masthead .tagline em { font-style: normal; font-weight: 500; color: var(--ink-2); }

.shelf {
  /* boxes are sized from the screen, so they fill the first view on any monitor */
  --wa: clamp(220px, min(23vw, 47vh), 410px);
  --rail-h: 158px;
  --rail: #1b1d22;
  --rail-top: #42464f;
  align-self: end;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  background:
    linear-gradient(to bottom,
      transparent calc(100% - var(--rail-h) - 18px),
      var(--rail-top) calc(100% - var(--rail-h) - 18px),
      #5a5f6a calc(100% - var(--rail-h) - 2px),
      var(--rail) calc(100% - var(--rail-h)));
  background-attachment: local;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 64px);
  width: max-content;
  min-width: 100%;
  padding: 26px var(--gutter) 0;
}
.shelf .box { --w: calc(var(--wa) * 0.72); --h: calc(var(--w) * 1.32); --d: calc(var(--w) * 0.26); flex: none; scroll-snap-align: center; }
.shelf .box[data-product="arro"] { --w: var(--wa); }
.shelf .box-floor { bottom: calc(var(--d) * -0.02); }
.shelf .box-caption {
  height: var(--rail-h);
  margin-top: 8px;
  padding-top: 18px;
  align-content: start;
  color: #f3f4f6;
}
.shelf .box-caption a.pl { color: #ffffff; }
.shelf .box-caption .sub { color: #b8bdc8; }
.shelf .box-caption .sub a { color: #ffffff; }
.shelf .turn-btn { color: #ffffff; border-color: #ffffff88; }
.shelf .turn-btn:hover { color: #141518; border-color: var(--sticker); }

@media (prefers-reduced-motion: no-preference) {
  .motion .masthead h1 span { opacity: 0; transform: translateY(0.3em) skewX(-10deg); animation: stamp 0.85s var(--ease-out) forwards; }
  .motion .masthead h1 .l2 { animation-delay: 0.1s; }
  .motion .masthead .tagline { opacity: 0; animation: rise 0.8s var(--ease-out) 0.3s forwards; }
}
@keyframes stamp { to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .shelf { --wa: clamp(200px, 52vw, 260px); }
  .shelf-row { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .masthead h1 { font-size: clamp(2rem, 11vw, 3rem); white-space: normal; }
  .spread .sticker { --size: 96px; font-size: 0.95rem; }
}

/* ---------------------------------------------------- project spreads */
/* The back of each box, opened flat: the product's ink is the field. */

.spread {
  --c: var(--arro-box);
  --on: #ffffff;
  background: var(--c);
  color: var(--on);
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}
.spread[data-product="dictate"] { --c: var(--dictate); }
.spread[data-product="tunetop"] { --c: var(--tunetop); --on: #141518; }
.spread[data-product="ai-translator"] { --c: var(--translator); }
.spread::before {
  /* tear line between boxes */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background: radial-gradient(circle, var(--paper) 1.6px, transparent 2px) 0 50% / 12px 3px repeat-x;
}
.spread .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.spread .wrap > * { min-width: 0; }
.spread-id { display: flex; align-items: center; gap: 18px; }
.spread-id img { width: 64px; height: 64px; border-radius: 14px; flex: none; box-shadow: 0 0 0 2px #ffffff55; }
.spread h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); color: var(--on); min-width: 0; }
.spread[data-product="ai-translator"] h2 { font-size: clamp(2.2rem, 3.9vw, 3.6rem); }
.spread .kind { margin-top: 16px; font-weight: 800; font-size: 0.98rem; color: var(--on); }
.spread .pitch { margin-top: 14px; font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 36ch; font-weight: 600; color: var(--on); }
.spread .panel { margin-top: 26px; background: #ffffff; color: #141518; border-radius: 4px; padding: 18px 20px 20px; border: 2px solid #141518; }
.spread .panel .checks li { color: #474b53; font-size: 0.98rem; }
.spread .panel .checks li::before { background: #141518; }
.spread .panel .checks strong { color: #141518; }
.spread .panel code { background: #e6e8ec; color: #141518; }
.spread .panel kbd { background: #ffffff; color: #141518; border-color: #141518; }
.spread .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.spread .links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--on);
  border: 2px solid var(--on);
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, transform 0.35s var(--ease-out);
}
.spread .links a:hover { background: var(--on); color: var(--c); transform: translateY(-2px); }
.spread .links a.primary { background: var(--on); color: var(--c); }
.spread[data-product="arro"] .links a.primary { background: var(--arro); border-color: var(--arro); color: #141518; }
.spread .links svg { width: 16px; height: 16px; }
.spread .side { display: grid; gap: 16px; }
.spread .plate { border-color: #141518; background: #ffffff; }
.spread .plate figcaption { color: #474b53; }
.spread .plate figcaption b { color: #141518; }
.spread .plate .fit { background: #e6e8ec; }
.spread .meta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.spread .requires { border-color: #141518; background: #ffffff; color: #141518; }
.spread .requires .req-head { background: #141518; color: #ffffff; }
.spread .requires dd { color: #474b53; }
.spread .sticker { --size: 112px; font-size: 1.05rem; }
@media (max-width: 900px) {
  .spread .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .spread .meta-row { grid-template-columns: 1fr; justify-items: start; }
}

/* --------------------------------------------------------------- about */

.colophon { padding-block: clamp(80px, 11vw, 150px); }
.colophon .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.colophon .big { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.32; font-weight: 500; letter-spacing: -0.005em; }
.colophon .big em { font-style: italic; color: var(--ink-2); }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.stack-list li { padding: 5px 14px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 0.92rem; }
.go-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.go-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 6px;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 900;
  font-style: italic;
  font-variation-settings: "wdth" 115;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.2s;
}
.go-list a:hover { background: var(--sticker); color: #141518; }
.go-list a svg { transition: transform 0.35s var(--ease-out); }
.go-list a:hover svg { transform: translateX(6px); }
.go-list a:hover span { color: #141518; }
.go-list a span { font-style: normal; font-weight: 500; font-size: 0.85rem; color: var(--ink-2); font-variation-settings: "wdth" 100; margin-left: auto; }
.go-list svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 820px) { .colophon .wrap { grid-template-columns: 1fr; } }

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

.foot { border-top: 2px solid var(--ink); background: var(--paper-2); font-size: 0.9rem; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 40px 48px; }
.foot h2 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; font-variation-settings: "wdth" 112; font-weight: 800; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot small { display: block; margin-top: 14px; color: var(--ink-3); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ================================================================== ARRO */

.arro-hero { position: relative; border-bottom: 2px solid var(--ink); overflow: hidden; }
.arro-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 84px);
}
.arro-hero .wrap > * { min-width: 0; }
.arro-hero h1 { font-size: clamp(4rem, 12vw, 9rem); }
.arro-hero .lede { margin-top: 18px; color: var(--ink); font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.35; font-weight: 600; max-width: 30ch; }
.arro-hero .lede span { color: var(--ink-2); font-weight: 500; }
.dl-cta { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.dl-cta .meta { font-size: 0.92rem; color: var(--ink-2); }
.dl-cta .meta a { font-weight: 800; }
.edition {
  margin-top: 26px;
  display: inline-block;
  max-width: 58ch;
  padding: 10px 14px;
  background: var(--sticker);
  color: #141518;
  border-radius: 3px;
  transform: rotate(-0.8deg);
  font-size: 0.92rem;
}
.arro-hero .box { justify-self: center; --w: 290px; --h: 384px; --d: 84px; }
@media (max-width: 900px) {
  .arro-hero .wrap { grid-template-columns: 1fr; }
  .arro-hero .box { --w: 220px; --h: 292px; --d: 64px; }
}

.shot-wrap { position: relative; max-width: 1080px; margin: clamp(56px, 8vw, 104px) auto 0; }
.shot { position: relative; }
.callout {
  position: absolute;
  top: var(--y);
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 112;
  pointer-events: none;
}
.callout.r { left: var(--x); right: calc(-1 * var(--out, 132px)); }
.callout.l { right: calc(100% - var(--x)); left: calc(-1 * var(--out, 132px)); flex-direction: row-reverse; }
.callout i { position: relative; flex: 1; height: 2px; background: var(--ink); }
.callout i::before { content: ""; position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--sticker); box-shadow: 0 0 0 2px #141518; }
.callout.r i::before { left: -6px; }
.callout.l i::before { right: -6px; }
.callout span { background: var(--ink); color: var(--paper); padding: 5px 9px 4px; white-space: nowrap; border-radius: 2px; }
@media (max-width: 1240px) { .callout { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .motion .callout { opacity: 0; transition: opacity 0.6s var(--ease-out); }
  .motion .callout i { transform: scaleX(0); transition: transform 0.8s var(--ease-out); }
  .motion .callout.r i { transform-origin: left; }
  .motion .callout.l i { transform-origin: right; }
  .motion .in .callout { opacity: 1; transition-delay: calc(0.3s + var(--d, 0s)); }
  .motion .in .callout i { transform: none; transition-delay: calc(0.3s + var(--d, 0s)); }
}

.section { padding-top: clamp(80px, 11vw, 150px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.section-head p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

.claims { list-style: none; margin: 0; padding: 0; }
.claims li {
  display: grid;
  grid-template-columns: 56px minmax(220px, 1fr) minmax(0, 2fr);
  gap: 8px 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.claims li::before {
  content: "";
  width: 44px;
  height: 44px;
  background: var(--arro);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5 8.3 14.8 16.5 5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5 8.3 14.8 16.5 5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.claims h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.claims p { color: var(--ink-2); max-width: 62ch; }
@media (max-width: 760px) {
  .claims li { grid-template-columns: 36px 1fr; }
  .claims li::before { width: 30px; height: 30px; grid-row: span 2; align-self: start; }
}

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--rule); align-items: end; }
.feature > * { min-width: 0; }
.feature h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.feature p { color: var(--ink-2); }
.feature p + p { margin-top: 12px; }
.feature .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.feature .chips li { font-size: 0.86rem; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin-top: clamp(40px, 6vw, 72px); }
.groups > section { padding: 26px 26px 26px 0; }
.groups > section + section { padding-left: 26px; border-left: 1px solid var(--rule); }
.groups h3 { font-size: 1.3rem; margin-bottom: 8px; }
.groups p { font-size: 0.96rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .groups { grid-template-columns: 1fr; }
  .groups > section, .groups > section + section { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

.status { border: 2px solid var(--ink); background: var(--plate); border-radius: 4px; overflow: hidden; }
.status header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 14px 20px; background: var(--ink); color: var(--paper); }
.status header h2 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; font-variation-settings: "wdth" 118; font-weight: 800; }
.status header p { font-size: 0.86rem; }
.status table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.status th, .status td { text-align: left; padding: 12px 20px; border-top: 1px solid var(--rule); vertical-align: top; }
.status th { font-weight: 600; }
.status td { white-space: nowrap; width: 1%; }
.state { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 0.88rem; }
.state i { width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--ink); }
.state.open i { background: var(--ink); }
.state.new i { background: var(--sticker); }
.state.preview i { background: var(--translator); }
.state.building i { background: transparent; border-style: dashed; }
.state.planned i { background: transparent; border-color: var(--ink-3); }
@media (max-width: 600px) {
  .status th, .status td { padding: 10px 14px; display: block; width: auto; border-top: 0; }
  .status tr { display: block; border-top: 1px solid var(--rule); padding: 6px 0; }
  .status td { padding-top: 0; }
}

/* the download coupon */
.coupon { border: 2px dashed var(--ink); border-radius: 8px; background: var(--plate); padding: 4px; margin-top: 32px; }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl-os { padding: 20px 20px 18px; }
.dl-os + .dl-os { border-left: 2px dashed var(--rule); }
.dl-os h3 { font-size: 1.5rem; font-weight: 900; font-style: italic; font-variation-settings: "wdth" 120; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-os ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label size" "file size";
  gap: 2px 12px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: background-color 0.2s, transform 0.3s var(--ease-out);
}
.dl:hover { background: var(--arro); color: #141518; transform: translateY(-2px); }
.dl:hover .dl-file, .dl:hover .dl-size { color: #141518; }
.dl-label { grid-area: label; font-weight: 800; font-size: 0.95rem; }
.dl-size { grid-area: size; align-self: center; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); }
.dl-file { grid-area: file; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); word-break: break-all; }
.dl-none { color: var(--ink-3); font-size: 0.9rem; }
.dl-os.is-yours h3::after { content: "Your system"; font-style: normal; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--sticker); color: #141518; padding: 4px 9px; border-radius: 999px; font-variation-settings: "wdth" 110; }
@media (max-width: 900px) {
  .downloads { grid-template-columns: 1fr; }
  .dl-os + .dl-os { border-left: 0; border-top: 2px dashed var(--rule); }
}
.ver-small { font-size: max(0.4em, 1rem); font-weight: 600; font-style: normal; letter-spacing: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.next-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* page heads for changelog, help, roadmap: a band printed with Arro's box art */
.page-head { position: relative; overflow: hidden; background: var(--arro-box); color: #ffffff; isolation: isolate; border-bottom: 2px solid var(--ink); }
.page-head canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.page-head .wrap { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.page-head .wrap > * { min-width: 0; }
.page-head h1 { font-size: clamp(3rem, 10vw, 7.5rem); color: #ffffff; text-shadow: 0 3px 0 #00000066, 0 0 18px #1f1f23; }
.page-head .lede { color: #e8eaee; max-width: 58ch; text-shadow: 0 0 12px #1f1f23, 0 0 4px #1f1f23; }
.page-head .lede a { text-decoration-color: var(--arro); }
.page-head .lede .mono { color: #ffffff; }
.page-head .stage-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.page-head .stage-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 16px; border: 2px solid #ffffff; border-radius: 999px; color: #ffffff; background: #1f1f23; text-decoration: none; font-weight: 800; font-size: 0.92rem; }
.page-head .stage-links a:hover { background: #ffffff; color: #141518; }
@media (max-width: 600px) { .page-head h1 { font-size: 13vw; } }
/* on phones the big dart sits in the bottom right corner: keep the text above it */
@media (max-width: 759px) { .page-head:not(main) .wrap { padding-bottom: 46vw; } }

/* ============================================================ CHANGELOG */

.bars { position: relative; margin-top: 40px; border: 2px solid var(--ink); background: var(--plate); border-radius: 4px; padding: 16px 16px 8px; }
.bars header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; padding: 0 2px 10px; }
.bars header h2 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-variation-settings: "wdth" 115; font-weight: 800; }
.bars header p { font-size: 0.84rem; color: var(--ink-2); }
.bars .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.84rem; font-weight: 700; padding: 0 2px 8px; }
.bars .legend span { display: inline-flex; align-items: center; gap: 7px; }
.bars svg { display: block; width: 100%; height: auto; overflow: visible; }
.bars .gridline { stroke: var(--rule); stroke-width: 1; }
.bars .base { stroke: var(--ink); stroke-width: 2; }
.bars .axis { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
.bars .seg { stroke: var(--ink); stroke-width: 1.5; }
.bars .seg.new { fill: var(--k-new); }
.bars .seg.improved { fill: var(--k-improved); }
.bars .seg.fixed { fill: var(--k-fixed); }
.bars .seg.hood { fill: var(--k-hood); }
.bars .col { cursor: pointer; outline: none; }
.bars .col .hit { fill: transparent; }
.bars .col:hover .hit, .bars .col:focus-visible .hit, .bars .col.on .hit { fill: var(--paper-2); }
.bars .col:focus-visible .hit { stroke: var(--focus); stroke-width: 2.5; }
.bars .col text { font-family: var(--mono); font-size: 11px; fill: var(--ink); text-anchor: middle; font-weight: 600; }
.bars .col.dim { opacity: 0.22; }
.bars-tip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 3;
}
.bars-tip.on { opacity: 1; }
.bars-tip b { font-family: var(--mono); }
@media (prefers-reduced-motion: no-preference) {
  .motion .bars .stack { transform-box: fill-box; transform-origin: bottom; animation: grow 0.8s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms + 0.2s); }
}
@keyframes grow { from { transform: scaleY(0); } }

.log-tools {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 14px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search input {
  width: 100%;
  min-height: 46px;
  padding: 8px 16px 8px 42px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--plate);
  border: 2px solid var(--ink);
  border-radius: 999px;
  caret-color: var(--arro);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.kind-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--plate);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.kind-btn[aria-pressed="false"] { color: var(--ink-2); border-style: dashed; background: transparent; }
.kind-btn[aria-pressed="false"] .kind-mark { opacity: 0.45; }
.kind-btn:hover { opacity: 1; }
.kind-btn .n { font-family: var(--mono); font-size: 0.8em; color: var(--ink-2); font-weight: 500; }
.log-status { font-size: 0.88rem; color: var(--ink-2); margin-left: auto; }
@media (max-width: 760px) {
  .log-tools { position: static; }
  .log-status { margin-left: 0; width: 100%; }
}

.kind-mark { display: inline-block; width: 13px; height: 13px; border-radius: 3px; border: 2px solid var(--ink); flex: none; }
[data-kind="new"] .kind-mark, .kind-mark[data-kind="new"] { background: var(--k-new); }
[data-kind="improved"] .kind-mark, .kind-mark[data-kind="improved"] { background: var(--k-improved); }
[data-kind="fixed"] .kind-mark, .kind-mark[data-kind="fixed"] { background: var(--k-fixed); }
[data-kind="hood"] .kind-mark, .kind-mark[data-kind="hood"] { background: var(--k-hood); }
[data-kind="limits"] .kind-mark { background: transparent; border-style: dashed; }

.releases { position: relative; padding-left: clamp(40px, 7vw, 104px); margin-top: 28px; }
.releases::before {
  /* a perforated tear line down the history */
  content: "";
  position: absolute;
  left: clamp(14px, 3vw, 44px);
  top: 12px;
  bottom: 0;
  width: 4px;
  background: radial-gradient(circle, var(--ink) 1.5px, transparent 2px) 50% 0 / 4px 10px repeat-y;
}
.release { position: relative; padding-block: 40px 44px; border-bottom: 1px solid var(--rule); max-width: 900px; }
.release::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(40px, 7vw, 104px) + clamp(14px, 3vw, 44px) - 6px);
  top: 52px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
}
.release.is-latest::before { background: var(--sticker); width: 24px; height: 24px; left: calc(-1 * clamp(40px, 7vw, 104px) + clamp(14px, 3vw, 44px) - 10px); top: 48px; }
.release[hidden] { display: none; }
.rel-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.rel-head h2 { font-family: var(--mono); font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; }
.rel-name { font-family: var(--font); font-weight: 900; font-style: italic; font-variation-settings: "wdth" 125; font-size: 0.85rem; vertical-align: 0.5em; margin-right: 0.3em; color: var(--ink-2); }
.rel-meta { font-size: 0.92rem; color: var(--ink-2); }
.tag-latest { background: var(--sticker); color: #141518; padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.rel-anchor { position: absolute; left: -1.3em; top: 0.15em; font-family: var(--mono); font-size: 1.4rem; color: var(--ink-3); text-decoration: none; opacity: 0; transition: opacity 0.2s; }
.release:hover .rel-anchor, .rel-anchor:focus-visible { opacity: 1; }
.rel-summary { margin-top: 14px; font-size: 1.15rem; line-height: 1.5; max-width: 60ch; }
.rel-note { margin-top: 14px; padding: 12px 16px; background: var(--paper-2); border: 2px dashed var(--ink); border-radius: 4px; font-size: 0.95rem; max-width: 70ch; }
.rel-group { margin-top: 26px; }
.rel-group h3 { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-variation-settings: "wdth" 112; font-weight: 800; margin-bottom: 10px; }
.rel-group h3 .count { font-family: var(--mono); letter-spacing: 0; color: var(--ink-3); font-weight: 500; }
.rel-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rel-group li { position: relative; padding-left: 22px; font-size: 0.98rem; line-height: 1.55; color: var(--ink-2); max-width: 74ch; }
.rel-group li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 10px; height: 2px; background: var(--ink-3); }
.rel-group li strong { color: var(--ink); }
.rel-group li[hidden], .rel-group[hidden] { display: none; }
mark { background: var(--sel); color: inherit; padding: 0 1px; border-radius: 2px; }
.no-results { padding: 60px 0; font-size: 1.1rem; color: var(--ink-2); }

/* ================================================================= HELP */

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-top: clamp(40px, 6vw, 72px); }
.toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; }
.toc h2 { margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: ch; }
.toc a { display: grid; grid-template-columns: 2.2em 1fr; padding: 6px 10px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; color: var(--ink-2); font-weight: 700; counter-increment: ch; }
.toc a::before { content: counter(ch, decimal-leading-zero); font-family: var(--mono); font-size: 0.85em; color: var(--ink-3); font-weight: 500; }
.toc a:hover { color: var(--ink); background: var(--paper-2); }
.toc a.on { background: var(--ink); color: var(--paper); }
.toc a.on::before { color: var(--arro); }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc ol { grid-template-columns: 1fr 1fr; gap: 0 12px; }
}
.doc-body { min-width: 0; }
.doc-body > section { padding-bottom: 28px; }
.doc-body > section + section { padding-top: 48px; border-top: 2px solid var(--ink); }
.doc-body h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 18px; }
.doc-body h2 .hash { font-family: var(--mono); font-style: normal; font-size: 0.45em; color: var(--ink-3); text-decoration: none; opacity: 0; transition: opacity 0.2s; }
.doc-body h2:hover .hash, .doc-body h2 .hash:focus-visible { opacity: 1; }
.doc-body h3 { font-size: 1.25rem; font-weight: 800; margin: 30px 0 10px; }
.doc-body p, .doc-body li { color: var(--ink-2); max-width: var(--measure); }
.doc-body p + p { margin-top: 0.8em; }
.doc-body strong { color: var(--ink); }
.doc-body ul { padding-left: 1.2em; margin: 0.8em 0 0; display: grid; gap: 6px; }
.doc-body li::marker { color: var(--arro); }

.stations { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: st; display: grid; max-width: var(--measure); }
.stations > li { position: relative; counter-increment: st; padding: 0 0 22px 54px; }
.stations > li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: -3px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-style: italic;
  font-size: 0.98rem;
  background: var(--sticker);
  color: #141518;
  border-radius: 50%;
  transform: rotate(-8deg);
}
.stations > li::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; border-left: 2px dashed var(--ink-3); }
.stations > li:last-child::after { display: none; }

pre.cmd { margin: 12px 0 0; padding: 14px 16px; background: #141518; color: #eef0f4; border-radius: 6px; overflow-x: auto; font-size: 0.86rem; line-height: 1.55; max-width: var(--measure); }
pre.cmd code { background: none; padding: 0; color: inherit; font-size: 1em; }

.os-tabs { margin-top: 20px; }
.os-tabs [role="tablist"] { display: flex; gap: 4px; align-items: flex-end; border-bottom: 2px solid var(--ink); }
.os-tabs [role="tab"] {
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 18px 8px;
  min-height: 44px;
  background: var(--paper-2);
  color: var(--ink-2);
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
}
.os-tabs [role="tab"][aria-selected="true"] { background: var(--arro); color: #141518; }
.os-tabs [role="tabpanel"] { padding-top: 22px; }
.no-js .os-tabs [role="tablist"] { display: none; }

.keys { width: 100%; max-width: 760px; border-collapse: collapse; margin-top: 16px; font-size: 0.96rem; }
.keys caption { text-align: left; font-size: 0.86rem; color: var(--ink-3); padding-bottom: 10px; }
.keys th, .keys td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.keys thead th { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); border-top: 0; font-variation-settings: "wdth" 112; }
.keys td:first-child { width: 42%; white-space: nowrap; }
.keys td:last-child { color: var(--ink-2); }
@media (max-width: 560px) { .keys td:first-child { white-space: normal; } }

.callout-box { margin-top: 18px; padding: 14px 18px; border-radius: 4px; max-width: var(--measure); background: var(--sticker); color: #141518; transform: rotate(-0.4deg); }
.callout-box p { color: #141518; }
.callout-box strong { color: #141518; }
.callout-box a { text-decoration-color: #141518; }

/* ============================================================== ROADMAP */

.ahead { margin-top: clamp(40px, 6vw, 72px); }
.leg { position: relative; display: grid; grid-template-columns: clamp(44px, 7vw, 96px) minmax(0, 1fr); gap: 0 clamp(16px, 3vw, 40px); }
.leg-line { position: relative; }
.leg-line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); border-left: 4px solid var(--arro); }
.leg.next .leg-line::before { border-left: 4px dashed var(--ink); }
.leg.later .leg-line::before { border-left: 3px dotted var(--ink-3); }
.leg-line .node { position: absolute; left: 50%; top: 0; width: 38px; height: 38px; transform: translateX(-50%) rotate(-10deg); border-radius: 50%; background: var(--plate); border: 3px solid var(--ink); }
.leg.now .leg-line .node { background: var(--sticker); }
.leg-body { padding-bottom: clamp(48px, 7vw, 88px); min-width: 0; }
.leg-body > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.leg-body h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
.leg-body .sub { font-size: 0.95rem; color: var(--ink-2); }
.leg-items { list-style: none; margin: 18px 0 0; padding: 0; max-width: 820px; }
.leg-items li { position: relative; display: grid; grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.4fr); gap: 4px 28px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.leg-items li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(16px, 3vw, 40px) - clamp(44px, 7vw, 96px) / 2 + 2px);
  top: 27px;
  width: calc(clamp(16px, 3vw, 40px) + clamp(44px, 7vw, 96px) / 2 - 10px);
  border-top: 2px solid var(--ink-3);
}
.leg.now .leg-items li::before { border-top-color: var(--arro); }
.leg-items h3 { font-size: 1.15rem; font-weight: 800; }
.leg-items p { font-size: 0.97rem; color: var(--ink-2); }
@media (max-width: 700px) { .leg-items li { grid-template-columns: 1fr; } }

/* ================================================================== 404 */
.lost { min-height: 80vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px; padding: 40px var(--gutter); }
.lost h1 { font-size: clamp(3.4rem, 13vw, 8rem); }
.lost .links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
