/* ColorClerk site. Dark only. House colors are real entries in the app's
   name list; see docs/README.md for the system. */

:root {
  color-scheme: dark;

  /* House colors */
  --narwhal: #080813;      /* Narwhal Grey, the canvas */
  --absence: #15151C;      /* Absence of Light, surfaces */
  --shutter: #25252C;      /* Closed Shutter, raised and selected */
  --pearl: #A2A1AC;        /* Spun Pearl, secondary text */
  --linen: #EFEBE3;        /* Linen Ruffle, text */
  --knockout: #FF399C;     /* Knockout Pink, the signal */
  --hooloovoo: #4455FF;    /* Hooloovoo Blue, focus and links */
  --lamplight: #FFD140;    /* Lamplight, small highlights */

  --bg: var(--narwhal);
  --ink: var(--linen);
  --ink-2: var(--pearl);
  --ink-3: #6F6E7A;
  --line: rgba(239, 235, 227, 0.09);
  --line-2: rgba(239, 235, 227, 0.17);
  --glass: rgba(16, 16, 24, 0.72);

  /* The color picked on the page, set by script */
  --pick: #2DC5BB;
  --on-pick: #08080F;

  --font: "Mona Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --system: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1480px;
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
  --radius: 22px;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--mono); }
::selection { background: var(--knockout); color: var(--narwhal); }

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--linen); color: var(--narwhal); text-decoration: none;
}
.skip:focus { top: 16px; }

/* ------------------------------------------------------------------ layers */

.stage {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
  background:
    radial-gradient(60% 50% at 70% 45%, rgba(68, 85, 255, 0.10), transparent 70%),
    radial-gradient(40% 40% at 80% 60%, rgba(255, 57, 156, 0.08), transparent 70%),
    var(--bg);
}
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(4, 4, 10, 0.55) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

main, .footer { position: relative; z-index: 3; }
.overlay { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.nav { z-index: 20; }

/* ---------------------------------------------------------------------- nav */

.nav {
  position: fixed; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 19, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 108;
}
.nav__brand img { width: 30px; height: 30px; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav__links a {
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 620; letter-spacing: -0.005em; text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.3s;
}
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--signal { background: var(--knockout); color: var(--narwhal); }
.btn--signal:hover { box-shadow: 0 0 0 6px rgba(255, 57, 156, 0.18); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }

.badge { display: inline-block; border-radius: 10px; transition: transform 0.25s var(--ease); }
.badge img { height: 44px; width: auto; }
.badge:hover { transform: translateY(-2px); }
.badge--large img { height: 56px; }

.link {
  font-size: 15px; color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.35s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

.copy {
  flex: none;
  height: 32px; padding: 0 12px; border-radius: 9px;
  border: 0; background: rgba(239, 235, 227, 0.08); color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  cursor: pointer; transition: background 0.2s;
}
.copy:hover { background: rgba(239, 235, 227, 0.16); }
.copy.is-done { background: var(--linen); color: var(--narwhal); }

/* --------------------------------------------------------------------- type */

.label {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.label span {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 22px; padding: 0 7px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink); letter-spacing: 0;
}

h1, h2, h3 { margin: 0; font-weight: 720; }
h2 {
  font-size: clamp(40px, 5.3vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.038em;
  font-variation-settings: "wdth" 108;
  text-wrap: balance;
}
.body {
  max-width: 33em;
  margin: 28px 0 0;
  font-size: clamp(16px, 1.22vw, 19px);
  line-height: 1.58;
  color: var(--ink-2);
}
.note { max-width: 34em; margin: 26px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.note code { color: var(--ink-2); font-size: 13px; }
.meta { margin: 0; font-size: 14px; color: var(--ink-2); }

.split .line-mask { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(48px, 9vh, 110px);
  cursor: crosshair;
}
.hero a, .hero button { cursor: pointer; }
.hero__inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin: 0 0 30px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-2);
}

/* The version badge: a pill with a slowly turning spectrum edge that carries the
   current color, the live swatch, and the version on a Knockout Pink tile. */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.vbadge {
  --ring: conic-gradient(from var(--spin), var(--pick), #FF399C, #FFD140, #2DC5BB, #4455FF, var(--pick));
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 5px 0 14px; border-radius: 999px;
  background: rgba(14, 14, 22, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-family: var(--font); font-size: 15px; font-weight: 680; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 106;
  color: var(--ink); text-decoration: none;
  transition: transform 0.35s var(--ease);
}
.vbadge::before, .vbadge::after {
  content: ""; position: absolute; border-radius: inherit; pointer-events: none;
  background: var(--ring);
  animation: vbadge-spin 7s linear infinite;
}
.vbadge::before {
  inset: 0; padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.vbadge::after { inset: -5px; z-index: -1; filter: blur(16px); opacity: 0.32; transition: opacity 0.35s; }
.vbadge:hover { transform: translateY(-1px); }
.vbadge:hover::after { opacity: 0.6; }
@keyframes vbadge-spin { to { --spin: 360deg; } }
.vbadge__dot {
  width: 10px; height: 10px; border-radius: 3px; background: var(--pick);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pick) 25%, transparent);
  transition: background 0.4s, box-shadow 0.4s;
}
.vbadge__ver {
  display: inline-grid; place-items: center;
  height: 28px; min-width: 44px; padding: 0 11px; border-radius: 999px;
  background: var(--knockout); color: var(--narwhal);
  font-size: 14px; font-weight: 820; letter-spacing: -0.01em; font-variation-settings: "wdth" 112;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(255, 57, 156, 0.35);
}
.kicker__rest { white-space: nowrap; }
.hero__title {
  font-size: clamp(54px, 9.6vw, 176px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-weight: 780;
  font-variation-settings: "wdth" 112;
  margin: 0 0 0 -0.04em;
  text-shadow: 0 2px 40px rgba(8, 8, 19, 0.45);
}
.hero__line { display: block; white-space: nowrap; }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__lede {
  max-width: 31em;
  margin: 34px 0 0;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
/* the price sits with the store badge: the figure first, the terms under it */
.price { display: grid; gap: 3px; padding-left: 18px; border-left: 1px solid var(--line-2); }
.price b {
  font-size: 19px; font-weight: 720; letter-spacing: -0.015em; line-height: 1.05;
  font-variation-settings: "wdth" 108; font-variant-numeric: tabular-nums; color: var(--ink);
}
.price small { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink-2); }

.hud {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 110px);
  text-align: right;
  font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--ink-2);
  pointer-events: none;
}
.hud p { margin: 0; }
.hud b { font-weight: 400; color: var(--ink); }
.hud__hint { color: var(--ink-3); }
.hint--coarse { display: none; }
@media (hover: none) { .hint--fine { display: none; } .hint--coarse { display: inline; } }

/* ------------------------------------------------------------------- probe */

.probe {
  position: absolute; left: 0; top: 0;
  opacity: 0; transition: opacity 0.35s var(--ease);
  will-change: transform;
}
.probe.is-on { opacity: 1; }
.probe__ring {
  position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--linen), 0 0 0 5px rgba(8, 8, 19, 0.35);
}
.probe__leader {
  position: absolute; left: 12px; top: -13px; width: 30px; height: 1px;
  background: var(--linen); transform-origin: 0 0; transform: rotate(-40deg);
}
.probe__card {
  position: absolute; left: 34px; top: -64px;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 8px 14px 8px 8px; border-radius: 13px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.probe__chip { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 8px; background: var(--c, var(--pick)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.probe__name { font-size: 14px; font-weight: 620; line-height: 1.2; }
.probe__hex { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.probe.is-flipped .probe__card { left: auto; right: 34px; }
.probe.is-flipped .probe__leader { left: auto; right: 12px; transform-origin: 100% 0; transform: rotate(40deg); }

/* ------------------------------------------------------------------- loupe */

.loupe {
  position: absolute; left: 0; top: 0;
  opacity: 0; transition: opacity 0.4s var(--ease);
  will-change: transform;
}
.loupe.is-on { opacity: 1; }
.loupe__lens {
  position: absolute; left: -68px; top: -68px; width: 136px; height: 136px; border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 3px rgba(239, 235, 227, 0.92), 0 0 0 4px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s var(--ease);
}
.loupe.is-sampling .loupe__lens { transform: scale(0.9); }
.loupe__grid {
  position: absolute; inset: -2px;
  display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); gap: 1px;
  background: rgba(0, 0, 0, 0.45);
}
.loupe__grid i { display: block; }
.loupe__cell {
  position: absolute; left: 50%; top: 50%; width: 17px; height: 17px; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000;
}
.loupe__tag {
  position: absolute; left: 0; top: 80px; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: baseline;
  padding: 6px 12px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-2);
  white-space: nowrap; font-size: 13px;
}
.loupe__tag b { font-weight: 620; }
.loupe__tag code { font-size: 12px; color: var(--ink-2); }

.seed {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 4px;
  background: var(--c, #fff); opacity: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 46px 6px color-mix(in srgb, var(--c, #fff) 60%, transparent);
}
.tags span {
  position: absolute; left: 0; top: 0; opacity: 0;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  white-space: nowrap; will-change: transform, opacity;
}
.tags .tag--lens {
  font-family: var(--font); font-size: 14px; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px;
}
.tags .tag--lens small { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }

/* ------------------------------------------------------------------ marquee */

.marquee {
  position: relative;
  padding: clamp(40px, 10vh, 120px) 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 8, 19, 0.0), rgba(8, 8, 19, 0.7) 30%, rgba(8, 8, 19, 0.7) 70%, rgba(8, 8, 19, 0));
}
.marquee__row { overflow: visible; white-space: nowrap; }
.marquee__row + .marquee__row { margin-top: 0.1em; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 0.32em;
  margin-right: 0.55em;
  font-size: clamp(44px, 7.2vw, 128px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 120;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(239, 235, 227, 0.26);
  transition: color 0.35s var(--ease), -webkit-text-stroke-color 0.35s var(--ease);
  cursor: pointer;
}
.marquee__item i {
  flex: none; width: 0.56em; height: 0.56em; border-radius: 0.13em;
  background: var(--c); transform: translateY(0.04em);
  transition: transform 0.35s var(--ease);
}
.marquee__item:hover { color: var(--c); -webkit-text-stroke-color: transparent; }
.marquee__item:hover i { transform: translateY(0.04em) rotate(45deg) scale(0.8); }

/* ------------------------------------------------------------------- panels */

.panel { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 16vh var(--gutter); }
.panel__grid {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 48px; align-items: center;
}
.panel__copy { max-width: 600px; }

/* 01 window: a working replica of the app, at actual size (1 CSS px = 1 pt) */
.mock-wrap { justify-self: center; display: grid; justify-items: center; gap: 18px; }
.mock {
  --w-bg: #1E1E1E; --w-ctl: #2D2D2D; --w-ctl-2: #3A3A3A; --w-sel: #444444; --w-ink: #F2F2F2; --w-ink-2: #9A9A9A;
  --mono-ui: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  position: relative;
  width: 260px; height: 600px; overflow: hidden;
  border-radius: 18px;
  background: var(--w-bg);
  color: var(--w-ink);
  font-family: var(--system);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 80px -10px rgba(0, 0, 0, 0.7),
    0 0 120px -20px color-mix(in srgb, var(--pick) 45%, transparent);
  transition: box-shadow 0.6s var(--ease);
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.mock button { font: inherit; color: inherit; border: 0; padding: 0; background: none; cursor: pointer; }
.mock__bar { position: relative; height: 44px; }
.mock__lights { position: absolute; left: 10px; top: 10px; display: flex; gap: 8px; }
.mock__lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.mock__lights i:nth-child(2) { background: #FEBC2E; }
.mock__lights i:nth-child(3) { background: #4A4A4A; }
.mock__stepper {
  position: absolute; left: 91px; top: 8px; width: 78px; height: 28px; border-radius: 14px;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.mock__stepper button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--w-ctl-2); color: #D8D8D8; }
.mock__stepper button:active { background: #555; }
.mock__pipette {
  position: absolute; left: 192px; top: 8px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 30%, #3a3a3a, #262626);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease);
}
.mock__pipette:active, .mock__pipette.is-busy { transform: scale(0.88); }
.mock__more { position: absolute; left: 230px; top: 15px; font-size: 7px; letter-spacing: 1px; color: #C8C8C8; }
.mock__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px; height: 46px; }
.mock__tile {
  display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px;
  padding: 0 8px !important; border-radius: 10px; text-align: left; overflow: hidden;
  background: var(--c) !important; color: var(--ink-c) !important;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  transition: background 0.35s, color 0.35s;
}
.mock__tname { font-size: 8px; font-weight: 500; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mock__thex { font-family: var(--mono-ui); font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; }
.mock__contrast {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  font-size: 8.5px; color: #B5B5B5; white-space: nowrap;
}
.mock__contrast b { font-size: 7px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8D8D8D; margin-right: 1px; }
.mock__contrast span { display: inline-flex; align-items: center; gap: 3px; }
.mock__contrast em { font-style: normal; font-variant-numeric: tabular-nums; }
.mock__contrast strong { font-weight: 600; }
.mock__contrast strong.is-fail { color: #FF6B5E; }
.mock__contrast strong.is-pass { color: #4CD964; }
.mock__contrast strong.is-large { color: #FFD60A; }
.mock__contrast .chip { width: 7px; height: 7px; border-radius: 1.5px; }
.chip--w { background: #fff; } .chip--b { background: #000; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.35); }
.mock__lc { margin-left: auto; color: #A9A9A9; font-weight: 600; }
.mock__code {
  display: flex; align-items: center; gap: 6px; margin: 0 12px; height: 30px; padding: 0 5px 0 10px;
  border-radius: 9px; background: var(--w-ctl);
}
.mock__codetext {
  flex: 1; min-width: 0; font-family: var(--mono-ui); font-size: 11.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock__codetext.is-long { font-size: 9px; font-weight: 500; }
.mock__codetext i { font-style: normal; color: #777; margin-right: 1px; }
.mock__copy {
  flex: none; display: inline-flex !important; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px !important; border-radius: 6px !important;
  background: #464646 !important; font-size: 9px !important; font-weight: 700;
}
.mock__copy.is-done { background: var(--w-ink) !important; color: #111 !important; }
.mock__seg {
  display: grid; grid-template-columns: 1.15fr 1fr 1.25fr 1fr 0.6fr; gap: 2px;
  margin: 6px 12px 0; height: 21px; padding: 2px; border-radius: 8px; background: var(--w-ctl);
}
.mock__seg button { border-radius: 6px; font-size: 9px !important; font-weight: 700; color: #BDBDBD !important; }
.mock__seg button[aria-selected="true"] { background: var(--w-sel) !important; color: #fff !important; }
.mock__sb {
  position: relative; margin: 9px 12px 0; height: 148px; border-radius: 10px; cursor: crosshair;
  background:
    linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
    linear-gradient(to right, #fff, rgba(255, 255, 255, 0)),
    hsl(var(--hue, 174) 100% 50%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
}
.mock__knob {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--k, #fff);
  box-shadow: 0 0 0 2px #fff, 0 0 0 2.5px rgba(0, 0, 0, 0.35), 0 2px 5px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.mock__sb .mock__knob { background: var(--c); }
.mock__slider { display: flex; align-items: center; gap: 8px; margin: 0 12px; height: 25px; }
.mock__sb + .mock__slider { margin-top: 5px; }
.mock__hue, .mock__alpha { position: relative; flex: 1; height: 12px; border-radius: 6px; cursor: ew-resize; }
.mock__hue { background: linear-gradient(to right, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); }
.mock__alpha {
  background:
    linear-gradient(to right, color-mix(in srgb, var(--c) 0%, transparent), var(--c)),
    repeating-conic-gradient(#bbb 0 25%, #eee 0 50%) 0 0 / 8px 8px;
  cursor: default;
}
.mock__hue .mock__knob, .mock__alpha .mock__knob { top: 6px; background: var(--c); }
.mock__alpha .mock__knob { left: calc(100% - 2px); }
.mock__pill {
  flex: none; width: 40px; height: 17px; border-radius: 7px; display: grid; place-items: center;
  background: var(--w-ctl); font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.mock__fields { display: grid; grid-template-columns: 51px 1fr 1fr 1fr; gap: 7px; align-items: end; margin: 6px 12px 0; height: 32px; }
.mock__model {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 22px; border-radius: 7px;
  background: var(--w-ctl); font-size: 10px; font-weight: 700;
}
.mock__field { display: grid; gap: 2px; justify-items: center; }
.mock__field small { font-size: 6.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8D8D8D; }
.mock__field b {
  width: 100%; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--w-ctl); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.mock__palpill {
  display: flex; align-items: center; gap: 6px; margin: 9px 12px 0; height: 22px; padding: 0 8px; border-radius: 8px;
  background: var(--w-ctl); font-size: 10.5px; font-weight: 700; color: #E8E8E8;
}
.mock__palpill em { font-style: normal; color: #8D8D8D; font-weight: 600; }
.mock__chev { margin-left: auto; color: #A0A0A0; }
.mock__grid { display: grid; grid-template-columns: repeat(5, 41px); gap: 8px; margin: 8px 12px 0; }
.mock__grid button { width: 41px; height: 41px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12); transition: transform 0.2s var(--ease); }
.mock__grid button:hover { transform: scale(1.06); }
.mock__grid .is-add { background: none; outline: 1px dashed #5A5A5A; outline-offset: -1px; display: grid; place-items: center; color: #A8A8A8; font-size: 18px; font-weight: 300; }
.mock__grid .is-current { box-shadow: 0 0 0 1.5px var(--w-bg), 0 0 0 3px #E8E8E8; }
.mock__caption { margin: 0; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; }

.stage-gap { display: none; }

/* 02 lift */
.sampled { display: grid; gap: 18px; margin-top: 40px; max-width: 420px; }
.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 128px; padding: 18px 20px; border-radius: 20px;
  background: var(--sample, var(--pick)); color: var(--on-sample, var(--on-pick));
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tile__name { font-size: 15px; font-weight: 560; }
.tile__hex { font-family: var(--mono); font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; }
.tile__flag {
  position: absolute; right: 14px; top: 14px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: color-mix(in srgb, currentColor 16%, transparent);
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.tile.is-copied .tile__flag { opacity: 1; transform: none; }
.recent { display: grid; gap: 10px; }
.recent__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.recent__row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; min-height: 40px; }
.recent__row button {
  aspect-ratio: 1; border: 0; border-radius: 10px; padding: 0; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s var(--ease);
}
.recent__row button:hover { transform: scale(1.08); }

/* 02 convert */
.convert { position: relative; height: 300vh; }
.convert__marker { position: absolute; left: 0; width: 1px; height: 1px; }
.convert__sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; padding: 0 var(--gutter);
}
.steps { display: grid; margin-top: 34px; min-height: 120px; }
.step {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 650; letter-spacing: -0.015em; }
.step h3 code {
  padding: 3px 9px; border-radius: 7px; font-size: 14px; font-weight: 400;
  background: rgba(239, 235, 227, 0.08); color: var(--ink);
}
.step p { max-width: 30em; margin: 12px 0 0; color: var(--ink-2); font-size: 17px; }
.readout {
  display: flex; align-items: center; gap: 14px;
  margin-top: 30px; padding: 12px 12px 12px 14px; max-width: 560px;
  border-radius: 16px;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.readout__chip { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--pick); transition: background 0.4s; }
.readout__code {
  flex: 1; min-width: 0;
  font-size: clamp(16px, 1.55vw, 23px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.readout__caption { max-width: 34em; margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.progress { display: flex; gap: 8px; margin-top: 30px; }
.progress span { width: 34px; height: 2px; border-radius: 2px; background: var(--line-2); transition: background 0.3s; }
.progress span.is-on { background: var(--ink); }

/* fourteen formats */
.formats { position: relative; padding: 18vh var(--gutter) 16vh; }
.formats__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 3.4vw, 52px);
  border-radius: 32px;
  background: rgba(13, 13, 21, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.formats__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.formats__head h2 { font-size: clamp(34px, 4.2vw, 72px); max-width: 13em; }
.pick-name { color: var(--pick-text, var(--ink)); }
.formats__head .pick-name {
  background: linear-gradient(transparent 82%, var(--pick) 82%, var(--pick) 94%, transparent 94%);
  transition: background 0.4s;
}
.paste { display: grid; gap: 8px; width: min(440px, 100%); }
.paste span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.paste input, .form input, .form textarea {
  width: 100%; padding: 13px 15px; border: 0; border-radius: 12px;
  background: rgba(8, 8, 19, 0.7); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 15px/1.4 var(--mono);
  transition: box-shadow 0.2s;
}
.form input, .form textarea { font-family: var(--font); font-size: 16px; }
.paste input:focus, .form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--knockout); }
.paste input.is-bad { box-shadow: inset 0 0 0 1.5px #ff6b4a; }
.formats__list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
}
.formats__list li { border-top: 1px solid var(--line); min-width: 0; }
.formats__list button {
  width: 100%; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 17px 6px; border: 0; background: none; text-align: left; cursor: pointer;
  border-radius: 10px; transition: background 0.2s;
}
.formats__list button:hover { background: rgba(239, 235, 227, 0.04); }
.f-name { font-size: 14.5px; font-weight: 600; }
.f-code { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.formats__list button:hover .f-code { color: var(--ink); }
.f-copy {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em;
  opacity: 0; transition: opacity 0.2s;
}
.formats__list button:hover .f-copy, .formats__list button:focus-visible .f-copy { opacity: 1; }
.formats__list button.is-done .f-copy { opacity: 1; color: var(--ink); }
.formats__foot { margin: 30px 0 0; font-size: 14px; color: var(--ink-3); max-width: 50em; }

/* 03 read */
.specimen {
  margin-top: 40px; max-width: 500px; padding: 20px; border-radius: 24px;
  background: var(--pick); color: var(--on-pick);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.35);
}
.specimen__head { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; font-weight: 600; }
.specimen__head .pick-name { color: inherit; }
.specimen__head code { font-size: 13px; font-weight: 400; opacity: 0.8; }
.specimen__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.spec {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: baseline;
  padding: 16px; border-radius: 16px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent);
}
.spec[data-ink="white"] { color: #fff; }
.spec[data-ink="black"] { color: #000; }
.spec__aa { grid-row: 1 / 4; font-size: clamp(54px, 5vw, 78px); font-weight: 720; line-height: 0.9; letter-spacing: -0.04em; font-variation-settings: "wdth" 110; }
.spec__ratio { font-family: var(--mono); font-size: 16px; }
.spec__grade {
  justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.spec__lc { font-family: var(--mono); font-size: 12px; opacity: 0.75; margin-top: 4px; }

/* 04 keep */
.keep { flex-direction: column; align-items: stretch; gap: 10vh; }
.keep__tools {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start;
}
.card {
  padding: clamp(20px, 2.4vw, 32px); border-radius: 28px;
  background: rgba(13, 13, 21, 0.8);
  -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card__head h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.card__head .count { color: var(--ink-3); font-weight: 500; }
.card__head p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.palette {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px;
}
.palette button {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 13px; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.palette button:hover { transform: translateY(-2px); }
.palette button.is-current { box-shadow: 0 0 0 2px var(--narwhal), 0 0 0 4px var(--linen); }
.palette .add {
  background: transparent; box-shadow: none; outline: 1.5px dashed var(--line-2); outline-offset: -1.5px;
  display: grid; place-items: center; color: var(--ink-2); font-size: 22px; font-weight: 300;
}
.palette .add:hover { color: var(--ink); outline-color: var(--ink-2); }
.export { position: relative; margin-top: 26px; }
.export__tabs {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px;
  background: rgba(239, 235, 227, 0.05); box-shadow: inset 0 0 0 1px var(--line);
}
.export__tabs button {
  height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-size: 13px; font-weight: 560; color: var(--ink-2);
}
.export__tabs button[aria-selected="true"] { background: var(--shutter); color: var(--ink); }
.export__code {
  margin: 12px 0 0; padding: 18px 18px; max-height: 248px; overflow: auto;
  border-radius: 14px; background: rgba(8, 8, 19, 0.85); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
}
.export .copy { position: absolute; right: 10px; top: 52px; }
.export__tabs { flex-wrap: wrap; }
.export__file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.export__file span { font-size: 13px; color: var(--ink-2); }
.ramp {
  list-style: none; margin: 22px 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px;
}
.ramp button {
  width: 100%; height: 168px; padding: 8px 0 10px; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  background: var(--c); color: var(--ink-c);
  font-family: var(--mono); font-size: 11px;
  transition: transform 0.3s var(--ease);
}
.ramp li:first-child button { border-radius: 14px 4px 4px 14px; }
.ramp li:last-child button { border-radius: 4px 14px 14px 4px; }
.ramp li:not(:first-child):not(:last-child) button { border-radius: 4px; }
.ramp button:hover { transform: translateY(-4px); }
.ramp .r-hex { writing-mode: vertical-rl; transform: rotate(180deg); opacity: 0.8; letter-spacing: 0.04em; }

/* 05 stay */
.menubar-demo { position: relative; justify-self: end; width: min(560px, 100%); min-height: 420px; }
.menubar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 32px; padding: 0 12px; border-radius: 10px;
  background: rgba(36, 36, 44, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--system); font-size: 13px; color: rgba(255, 255, 255, 0.86);
}
.menubar__app { white-space: nowrap; overflow: hidden; word-spacing: 12px; color: rgba(255, 255, 255, 0.72); }
.menubar__app b { font-weight: 700; color: #fff; word-spacing: 0; margin-right: 6px; }
.menubar__right { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.menubar__item {
  display: inline-grid; place-items: center; width: 28px; height: 22px; border-radius: 6px;
  color: var(--pick); transition: background 0.3s, color 0.4s;
}
.menubar__item.is-active { background: rgba(255, 255, 255, 0.2); }
.menubar__clock { font-variant-numeric: tabular-nums; }
.popover {
  position: absolute; top: 40px; right: 74px; width: 250px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 90px rgba(0, 0, 0, 0.6);
  transform-origin: 85% 0;
}
.keys { display: grid; gap: 0; margin: 34px 0 0; max-width: 520px; }
.keys div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.keys dt { display: flex; gap: 4px; flex-wrap: wrap; }
.keys dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 7px; font-size: 12px; color: var(--ink);
  background: var(--absence); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* finale */
.finale { position: relative; padding: 0 var(--gutter) 18vh; text-align: center; }
.finale__space { height: 54vh; }
.finale__copy { position: relative; display: grid; justify-items: center; gap: 30px; }
.finale__title {
  font-size: clamp(56px, 10.5vw, 196px);
  line-height: 0.88; letter-spacing: -0.05em; font-weight: 780;
  font-variation-settings: "wdth" 112;
}

/* contact */
.contact { position: relative; padding: 14vh var(--gutter) 16vh; }
.contact__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 48px; align-items: start;
}
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: clamp(20px, 2.4vw, 32px); border-radius: 28px;
  background: rgba(13, 13, 21, 0.8);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.form label { display: grid; gap: 8px; }
.form label span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.form__wide { grid-column: 1 / -1; }
.form textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; }

/* footer */
.footer { padding: 0 var(--gutter) 40px; }
.footer__house { max-width: var(--max); margin: 0 auto; padding-top: 48px; border-top: 1px solid var(--line); }
.house {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px;
}
.house button {
  width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.house i {
  grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 11px; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease);
}
.house button:hover i { transform: rotate(-8deg) scale(1.06); }
.house b { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.house code { font-size: 11.5px; color: var(--ink-3); }
.footer__base {
  max-width: var(--max); margin: 56px auto 0;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.footer__base p { margin: 0; }
.footer__base nav { display: flex; gap: 22px; }
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--ink); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast__chip { width: 26px; height: 26px; border-radius: 50%; background: var(--c, var(--pick)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.toast code { color: var(--ink-2); }

/* ------------------------------------------------------------------- reveal */

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js .is-ready [data-reveal], .js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js [data-intro], .js .hero__title { opacity: 0; }
.no-webgl .hud, .no-webgl .hero { cursor: auto; }

/* ------------------------------------------------------------------ narrow */

@media (max-width: 960px) {
  .nav__links { display: none; }
  .panel__grid, .contact__grid { grid-template-columns: 1fr; }
  .panel { min-height: auto; padding: 14vh var(--gutter); flex-direction: column; align-items: stretch; }
  .panel__copy { max-width: none; }
  .hero { align-items: flex-end; padding-top: 52vh; }
  .hud { position: static; text-align: left; margin-top: 28px; display: none; }
  .formats__list { grid-template-columns: 1fr; }
  .keep__tools { grid-template-columns: 1fr; }
  .menubar-demo { justify-self: start; min-height: 400px; }
  .mock-wrap { justify-self: center; }
  .house { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; }
  .finale__space { height: 46vh; }
  .stage-gap { display: block; height: 62vh; }
  .stage-gap--tall { height: 92vh; }
  .keep { gap: 0; }
  .keep__tools { margin-top: 2vh; }
}
@media (max-width: 600px) {
  .hero__title { font-size: clamp(46px, 14.5vw, 80px); }
  .hero__cta { flex-wrap: wrap; gap: 18px 28px; }
  .price { padding-left: 0; border-left: 0; }
  .formats__list button { grid-template-columns: 1fr auto; row-gap: 4px; }
  .formats__list .f-code { grid-column: 1 / -1; grid-row: 2; }
  .formats__list .f-copy { opacity: 1; }
  .ramp button { height: 120px; }
  .specimen__pair { gap: 10px; }
  .spec { padding: 12px; column-gap: 8px; }
  .spec__aa { font-size: 42px; }
  .spec__ratio { font-size: 13px; }
  .ramp .r-hex { display: none; }
  .form { grid-template-columns: 1fr; }
  .keys div { grid-template-columns: 1fr; gap: 8px; }
  .house { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menubar__app { display: none; }
  .menubar { justify-content: flex-end; }
  .popover { right: 60px; }
  .nav .btn--small { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .vbadge::before, .vbadge::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------- legal pages */

.subpage {
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(68, 85, 255, 0.12), transparent 70%),
    radial-gradient(50% 40% at 10% 10%, rgba(255, 57, 156, 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.page { position: relative; z-index: 3; padding: 150px var(--gutter) 120px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 {
  font-size: clamp(44px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 760;
  font-variation-settings: "wdth" 110;
}
.prose .updated { margin: 18px 0 40px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
.prose h2 { margin: 48px 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 660; font-variation-settings: "wdth" 100; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--knockout); }
.prose a:not(.btn) { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--knockout); }
.prose .btn { margin-top: 18px; }
.subpage .footer__base { border-top: 1px solid var(--line); padding-top: 32px; }
