/* ---------- Tokens ---------- */
:root {
  --bg: #f3f0e9;
  --bg-alt: #ebe7de;
  --surface: #fbfaf7;
  --surface-2: #f1eee7;
  --ink: #141311;
  --ink-2: #57534b;
  --ink-3: #908a7f;
  --line: rgba(20, 19, 17, 0.09);
  --line-strong: rgba(20, 19, 17, 0.16);
  --accent: #ff4b1f;
  --accent-soft: rgba(255, 75, 31, 0.12);
  --on-accent: #fff;
  --shadow: 0 1px 2px rgba(20, 19, 17, 0.04), 0 8px 24px -8px rgba(20, 19, 17, 0.12);
  --shadow-lg: 0 2px 4px rgba(20, 19, 17, 0.04), 0 24px 60px -16px rgba(20, 19, 17, 0.25);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --radius: 24px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0d0c;
  --bg-alt: #121211;
  --surface: #171715;
  --surface-2: #1e1e1b;
  --ink: #f1eee7;
  --ink-2: #a8a399;
  --ink-3: #6b665e;
  --line: rgba(241, 238, 231, 0.08);
  --line-strong: rgba(241, 238, 231, 0.16);
  --accent: #ff5a2e;
  --accent-soft: rgba(255, 90, 46, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::after { opacity: 0.06; }

::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1240px, 100% - 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), width 0.5s var(--ease-out);
}
.nav.scrolled {
  width: min(880px, 100% - 28px);
  background: color-mix(in oklab, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: conic-gradient(from 210deg, var(--accent), #ffb347, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  transition: transform 0.6s var(--spring);
}
.logo:hover .logo-mark { transform: rotate(90deg) scale(0.92); }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font-size: 14px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--line); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.kbd-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-2);
  padding: 7px 8px 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, color 0.2s;
}
.kbd-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  transition: transform 0.4s var(--spring), border-color 0.2s;
}
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn svg { width: 17px; height: 17px; grid-area: 1 / 1; transition: transform 0.6s var(--spring), opacity 0.3s; }
.i-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme="dark"] .i-sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="dark"] .i-moon { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease-out), background 0.25s, box-shadow 0.25s, color 0.25s;
  will-change: transform;
}
.btn > * { pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--line); }
.btn:active { transform: scale(0.96) !important; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero-orb {
  position: absolute;
  width: 70vmax; height: 70vmax;
  left: 0; top: 0;
  border-radius: 50%;
  translate: calc(var(--x, 60vw) - 50%) calc(var(--y, 30vh) - 50%);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 140, 60, 0.55), transparent 55%),
    radial-gradient(circle at 65% 60%, rgba(255, 60, 30, 0.45), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 200, 120, 0.35), transparent 65%);
  filter: blur(60px);
  opacity: 0.75;
  z-index: -2;
  animation: orb 18s var(--ease-in-out) infinite alternate;
}
[data-theme="dark"] .hero-orb { opacity: 0.5; }
@keyframes orb { to { transform: rotate(140deg) scale(1.15); } }
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.hero-inner { display: flex; flex-direction: column; gap: 40px; }
.hero-eyebrow { opacity: 0; animation: fade-up 0.9s var(--ease-out) 0.1s forwards; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.2rem, 15vw, 14rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  display: flex; flex-direction: column;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line:nth-child(2) { padding-left: 0.9em; }
.hero-title .word {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  transform-origin: 0 100%;
  animation: word-in 1.2s var(--ease-out) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.09s);
}
.hero-title em { font-style: italic; color: var(--accent); }
@keyframes word-in { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  opacity: 0; animation: fade-up 1s var(--ease-out) 0.7s forwards;
}
.hero-sub { max-width: 420px; font-size: 18px; color: var(--ink-2); line-height: 1.5; letter-spacing: -0.01em; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  opacity: 0; animation: fade-up 1s var(--ease-out) 0.9s forwards;
}
.hero-stats div { padding: 18px 0 0; }
.hero-stats dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.hero-stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-strong);
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.02em; line-height: 1; }
.marquee span:nth-of-type(even) { font-style: italic; color: var(--ink-3); }
.marquee i { font-style: normal; color: var(--accent); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 140px 0; scroll-margin-top: 40px; }
.section-alt { background: var(--bg-alt); }
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr minmax(260px, 380px);
  gap: 24px;
  align-items: end;
  margin-bottom: 64px;
}
.section-num { font-family: var(--mono); font-size: 13px; color: var(--accent); align-self: start; padding-top: 14px; }
.section-head h2, .process-sticky h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.section-head h2 em, .process-sticky h2 em { color: var(--ink-3); }
.section-head p { color: var(--ink-2); font-size: 16px; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.exhibit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out), opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.exhibit:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.bento .exhibit:nth-child(3n+2) { transition-delay: 0s, 0s, 0.08s, 0.08s; }
.bento .exhibit:nth-child(3n) { transition-delay: 0s, 0s, 0.16s, 0.16s; }
.stage {
  position: relative;
  flex: 1;
  min-height: 260px;
  display: grid; place-items: center;
  padding: 32px;
  margin: 8px 8px 0;
  border-radius: calc(var(--radius) - 8px);
  background:
    radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0) 0 0 / 18px 18px,
    var(--surface-2);
}
.stage-tall { min-height: 340px; }
.meta { padding: 20px 24px 24px; display: grid; gap: 6px; }
.meta h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.meta p { font-size: 14px; color: var(--ink-2); max-width: 46ch; }

/* E.01 Tilt */
.tilt { perspective: 1000px; }
.tilt-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative;
  width: min(380px, 70vw); aspect-ratio: 1.586;
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 140% at 0% 0%, #ff7a3d 0%, transparent 50%),
    radial-gradient(120% 140% at 100% 100%, #5b2bff 0%, transparent 55%),
    linear-gradient(135deg, #1c1917, #0b0a09);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.12);
  overflow: hidden;
}
.tilt.active .tilt-card { transition: transform 0.12s linear; }
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.35), transparent 45%);
  mix-blend-mode: overlay;
  opacity: 0; transition: opacity 0.4s;
}
.tilt.active .tilt-glare { opacity: 1; }
.tc-top { display: flex; justify-content: space-between; align-items: center; transform: translateZ(30px); }
.tc-brand { font-family: var(--serif); font-size: 26px; font-style: italic; letter-spacing: -0.02em; }
.tc-brand sup { font-size: 10px; font-style: normal; }
.tc-contactless { width: 22px; height: 22px; opacity: 0.8; }
.tc-chip {
  width: 44px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, #f6d48f, #b88a3e);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
  transform: translateZ(20px);
}
.tc-number { font-family: var(--mono); font-size: clamp(13px, 2vw, 17px); letter-spacing: 0.08em; transform: translateZ(40px); }
.tc-bottom { display: flex; justify-content: space-between; transform: translateZ(25px); }
.tc-bottom small { display: block; font-family: var(--mono); font-size: 9px; text-transform: uppercase; opacity: 0.6; letter-spacing: 0.08em; }
.tc-bottom span { font-size: 14px; font-weight: 500; }

/* E.02 Magnetic */
.btn-magnetic {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500; font-size: 15px;
  box-shadow: 0 20px 40px -12px var(--accent-soft), 0 0 0 0 var(--accent-soft);
  transition: transform 0.7s var(--ease-out), box-shadow 0.4s var(--ease-out);
  will-change: transform;
}
.btn-magnetic span { display: block; pointer-events: none; transition: transform 0.7s var(--ease-out); }
.btn-magnetic:hover { box-shadow: 0 30px 60px -12px rgba(255, 75, 31, 0.5), 0 0 0 14px var(--accent-soft); }
.btn-magnetic:active { transform: scale(0.94) !important; }

/* E.03 Segmented */
.seg-demo { width: 100%; max-width: 300px; display: grid; gap: 24px; }
.segmented {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 12px;
  background: var(--line);
}
.segmented button {
  position: relative; z-index: 1;
  height: 34px; padding: 0 10px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  border-radius: 9px;
  transition: color 0.25s;
}
.segmented button[aria-selected="true"] { color: var(--ink); }
.seg-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 2px 8px -2px rgba(0,0,0,0.12);
  transition: transform 0.5s var(--spring), width 0.5s var(--spring);
}
[data-theme="dark"] .seg-indicator { background: #2a2a26; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bars span {
  flex: 1; height: var(--h, 40%);
  border-radius: 6px 6px 3px 3px;
  background: var(--ink);
  opacity: 0.85;
  transition: height 0.7s var(--spring);
}
.bars span:nth-child(1) { transition-delay: 0s; }
.bars span:nth-child(2) { transition-delay: 0.03s; }
.bars span:nth-child(3) { transition-delay: 0.06s; }
.bars span:nth-child(4) { transition-delay: 0.09s; }
.bars span:nth-child(5) { transition-delay: 0.12s; }
.bars span:nth-child(6) { transition-delay: 0.15s; }
.bars span:nth-child(7) { transition-delay: 0.18s; background: var(--accent); opacity: 1; }

/* E.04 Switch */
.switch-demo { width: 100%; max-width: 300px; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.switch-row strong { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.switch-row small { display: block; color: var(--ink-3); font-size: 13px; transition: color 0.3s; }
.switch-row.compact { padding: 10px 14px; box-shadow: none; font-size: 14px; font-weight: 500; }
.switch {
  --w: 52px; --h: 32px; --pad: 3px;
  position: relative; flex: none;
  width: var(--w); height: var(--h);
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.35s var(--ease-out);
}
.switch[aria-checked="true"] { background: var(--accent); }
.switch-thumb {
  position: absolute; top: var(--pad); left: var(--pad);
  height: calc(var(--h) - var(--pad) * 2);
  width: calc(var(--h) - var(--pad) * 2);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 0 0 0.5px rgba(0,0,0,0.05);
  transition: transform 0.5s var(--spring), width 0.3s var(--ease-out);
}
.switch:active .switch-thumb { width: calc(var(--h) - var(--pad) * 2 + 8px); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(calc(var(--w) - var(--h))); }
.switch[aria-checked="true"]:active .switch-thumb { transform: translateX(calc(var(--w) - var(--h) - 8px)); }

/* E.05 Like */
.like {
  display: inline-flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 26px 0 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--spring), border-color 0.3s;
}
.like:active { transform: scale(0.93); }
.like-icon { position: relative; width: 28px; height: 28px; display: grid; place-items: center; }
.like-icon svg { width: 28px; height: 28px; stroke-width: 1.6; transition: fill 0.2s, stroke 0.2s, transform 0.5s var(--spring); }
.like[aria-pressed="true"] { border-color: rgba(255, 60, 90, 0.35); }
.like[aria-pressed="true"] .like-icon svg { fill: #ff3c5a; stroke: #ff3c5a; animation: heart 0.6s var(--spring); }
@keyframes heart { 0% { transform: scale(0.6); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
.like-icon .particle {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px;
  border-radius: 50%;
  background: var(--c);
  pointer-events: none;
  animation: particle 0.7s var(--ease-out) forwards;
}
@keyframes particle {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; }
}
.like-icon .ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid #ff3c5a;
  animation: ring 0.5s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes ring { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; border-width: 0; } }
.like-count-wrap { overflow: hidden; height: 24px; display: inline-flex; align-items: center; }
.like-count { display: inline-block; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* E.06 Toasts */
.toast-stage { place-items: start center; padding-top: 48px; }
.toasts {
  list-style: none; margin: 0; padding: 0;
  position: absolute; left: 50%; bottom: 24px;
  width: min(320px, calc(100% - 32px));
  transform: translateX(-50%);
  height: 70px;
}
.toast {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
  animation: toast-in 0.5s var(--ease-out);
}
.toast.leaving { opacity: 0 !important; transform: translateY(20px) scale(0.95) !important; }
@keyframes toast-in { from { opacity: 0; transform: translateY(30px) scale(0.95); } }
.toast-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.toast-ico svg { width: 16px; height: 16px; stroke-width: 2; }
.toast strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.toast small { color: var(--ink-3); font-size: 12.5px; }

/* E.07 Skeleton */
.sk-wrap { display: grid; gap: 20px; justify-items: center; width: 100%; max-width: 440px; }
.profile {
  width: 100%;
  display: flex; gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.p-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ff8a4c, #ff3c5a);
  color: #fff; font-weight: 600;
}
.p-body { flex: 1; display: grid; gap: 6px; align-content: start; }
.p-name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.p-role { color: var(--ink-3); font-size: 13px; }
.p-bio { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.p-avatar, .p-name, .p-role, .p-bio { position: relative; }
.p-body > div > span, .p-avatar > span { transition: opacity 0.5s var(--ease-out); }
.profile.loading .p-body > div > span, .profile.loading .p-avatar > span { opacity: 0; }
.profile .p-body > div::after, .profile .p-avatar::after {
  content: ""; position: absolute; inset: 2px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--line) 25%, var(--line-strong) 50%, var(--line) 75%) 0 0 / 300% 100%;
  opacity: 0; transition: opacity 0.4s;
  animation: shimmer 1.4s linear infinite;
}
.profile .p-avatar::after { inset: 0; border-radius: 50%; }
.profile .p-name::after { right: 40%; }
.profile .p-role::after { right: 20%; }
.profile.loading .p-avatar { background: transparent; }
.profile.loading .p-body > div::after, .profile.loading .p-avatar::after { opacity: 1; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* E.08 Copy */
.copy-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 20px;
  border-radius: 14px;
  background: #141311;
  color: #f1eee7;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--spring);
}
[data-theme="dark"] .copy-btn { background: #24231f; box-shadow: inset 0 0 0 1px var(--line-strong); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn code { font-family: var(--mono); font-size: 14px; }
.copy-btn .prompt { color: #8f897e; margin-right: 4px; }
.copy-icons {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s;
}
.copy-icons svg { grid-area: 1 / 1; width: 17px; height: 17px; transition: transform 0.4s var(--spring), opacity 0.25s, filter 0.25s; }
.i-check { opacity: 0; transform: scale(0.4); filter: blur(4px); stroke: #4ade80; stroke-width: 2.2; }
.copy-btn.copied .i-copy { opacity: 0; transform: scale(0.4); filter: blur(4px); }
.copy-btn.copied .i-check { opacity: 1; transform: none; filter: none; }
.copy-btn.copied .copy-icons { background: rgba(74, 222, 128, 0.14); }

/* E.09 Range */
.range-demo { width: 100%; max-width: 300px; display: grid; gap: 14px; }
.range-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.range-head output { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--accent); }
.range-wrap { position: relative; }
.range-ticks { display: flex; justify-content: space-between; padding: 0 12px; margin-top: 10px; }
.range-ticks i { width: 1px; height: 6px; background: var(--ink-3); opacity: 0.6; }
.range-ticks i:nth-child(5n+1) { height: 10px; opacity: 1; }
input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--p), var(--line-strong) var(--p));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 0 0 0 var(--accent-soft);
  transition: transform 0.35s var(--spring), box-shadow 0.3s;
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.35s var(--spring);
}
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 0 0 8px var(--accent-soft); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type="range"]:active::-moz-range-thumb { transform: scale(1.25); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

/* E.10 Hold */
.hold-btn {
  position: relative; overflow: hidden;
  height: 54px; padding: 0 26px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-weight: 500; font-size: 15px;
  color: #e5383b;
  user-select: none; -webkit-user-select: none;
  transition: transform 0.4s var(--spring);
  touch-action: none;
}
.hold-btn.holding { transform: scale(0.97); }
.hold-fill {
  position: absolute; inset: 0;
  background: #e5383b;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.35s var(--ease-out);
}
.hold-btn.holding .hold-fill { transform: scaleX(1); transition: transform 1.4s cubic-bezier(0.4, 0, 0.6, 1); }
.hold-btn.done .hold-fill { transform: scaleX(1); transition: none; }
.hold-label { position: relative; display: inline-block; transition: color 0.3s; }
.hold-btn.holding .hold-label, .hold-btn.done .hold-label { color: #fff; }
.hold-btn.done { animation: done-pop 0.5s var(--spring); }
@keyframes done-pop { 50% { transform: scale(1.05); } }

/* E.11 Password */
.pw-demo { width: 100%; max-width: 380px; display: grid; gap: 10px; }
.field-label { font-size: 14px; font-weight: 500; }
.field {
  display: flex; align-items: center;
  height: 50px; padding: 0 6px 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.field input::placeholder { color: var(--ink-3); }
.pw-toggle { font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; }
.pw-toggle:hover { background: var(--line); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.meter i { height: 5px; border-radius: 9px; background: var(--line-strong); position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0; background: var(--mc, var(--accent)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.4s var(--ease-out), background 0.3s; }
.meter i.on::after { transform: scaleX(1); }
.rules { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; color: var(--ink-3); }
.rules li { display: flex; align-items: center; gap: 8px; transition: color 0.3s; }
.rules li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-strong);
  background: center / 10px no-repeat;
  transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--spring);
}
.rules li.ok { color: var(--ink); }
.rules li.ok::before {
  border-color: #22a35a; background-color: #22a35a; transform: scale(1.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* E.12 Accordion */
.accordion { width: 100%; max-width: 440px; display: grid; gap: 8px; }
.accordion details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.accordion details[open] { box-shadow: var(--shadow); border-color: var(--line-strong); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px;
  font-weight: 500; font-size: 14.5px; letter-spacing: -0.01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 20px; font-weight: 300; line-height: 1; color: var(--ink-3);
  transition: transform 0.4s var(--spring);
}
.accordion details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 18px 16px; font-size: 14px; color: var(--ink-2); }
details.is-open .acc-body { grid-template-rows: 1fr; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 24px;
  grid-template-rows: auto 1fr;
}
.principle:nth-child(even) { transition-delay: 0.1s; }
.p-head { display: grid; gap: 8px; }
.p-head h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: -0.02em; }
.p-head p { color: var(--ink-2); font-size: 15px; max-width: 48ch; }
.p-stage {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  min-height: 240px;
  padding: 24px;
  position: relative;
}

.doherty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: center; }
.latency-btn {
  position: relative;
  height: 92px; border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; align-content: center; gap: 4px;
  transition: transform 0.25s var(--spring), border-color 0.2s, background 0.3s;
}
.latency-btn:active { transform: scale(0.95); }
.latency-btn:hover { border-color: var(--ink-3); }
.lb-label { font-weight: 600; font-size: 16px; }
.lb-ms { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.latency-btn.busy .lb-label { opacity: 0; }
.latency-btn.busy::after {
  content: ""; position: absolute; top: 26px; left: 50%; margin-left: -10px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--ink);
  animation: spin 0.7s linear infinite;
}
.latency-btn.ok { background: #22a35a; border-color: #22a35a; color: #fff; }
.latency-btn.ok .lb-ms { color: rgba(255,255,255,0.75); }
@keyframes spin { to { transform: rotate(360deg); } }

.fitts { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.fitts-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.segmented-sm { width: 180px; }
.segmented-sm button { height: 30px; }
.fitts-readout { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.fitts-readout strong { color: var(--accent); font-weight: 500; }
.fitts-arena { position: relative; min-height: 190px; border-radius: 10px; border: 1px dashed var(--line-strong); overflow: hidden; }
.fitts-target {
  --s: 18px;
  position: absolute; left: 50%; top: 50%;
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  transition: left 0.35s var(--ease-out), top 0.35s var(--ease-out), width 0.4s var(--spring), height 0.4s var(--spring), margin 0.4s var(--spring);
}
.fitts-target:active { transform: scale(0.85); }

.proximity { display: grid; place-items: center; gap: 28px; align-content: center; }
.prox-dots { --split: 0px; display: flex; gap: calc(16px + var(--split)); }
.prox-group { display: grid; grid-template-columns: repeat(2, 14px); gap: 16px; }
.prox-group i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: background 0.4s; }
.prox-dots.split .prox-group:last-child i { background: var(--accent); }
.mini-range { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-2); width: min(280px, 100%); }
.mini-range input { flex: 1; }

.hierarchy { display: grid; place-items: center; gap: 20px; align-content: center; }
.h-card {
  width: min(300px, 100%);
  display: grid; gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.h-card > span, .h-price span { transition: all 0.5s var(--ease-out); }
.h-eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.h-price { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
.h-price span { font-family: var(--sans); font-size: 14px; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.h-desc { font-size: 14px; color: var(--ink-2); }
.h-cta { margin-top: 6px; justify-self: start; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; }
.h-card.flat > span, .h-card.flat .h-price span {
  font-family: var(--sans); font-size: 14px; color: var(--ink-2); letter-spacing: 0;
  text-transform: none; line-height: 1.5; font-weight: 400; background: transparent; padding: 0; margin: 0;
}

/* ---------- Lab ---------- */
.lab { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.lab-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 20px; align-content: start;
}
.lab-panel:nth-child(2) { transition-delay: 0.1s; }
.lab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.lab-head h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: -0.02em; margin-top: 6px; }
.lab-control { text-align: right; display: grid; font-size: 13px; color: var(--ink-3); }
.lab-control strong { font-family: var(--mono); font-weight: 500; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.type-scale { display: grid; border-top: 1px solid var(--line); }
.ts-row {
  display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ts-row small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ts-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.02em; line-height: 1.1; transition: font-size 0.5s var(--ease-out); }
.ts-row:nth-child(-n+3) span { font-family: var(--serif); letter-spacing: -0.025em; }

.hue-range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, oklch(0.68 0.2 0), oklch(0.68 0.2 60), oklch(0.68 0.2 120), oklch(0.68 0.2 180), oklch(0.68 0.2 240), oklch(0.68 0.2 300), oklch(0.68 0.2 360)) !important;
  height: 10px !important;
}
.hue-range::-webkit-slider-thumb { margin-top: -7px !important; }
.hue-range::-moz-range-track { background: linear-gradient(90deg, oklch(0.68 0.2 0), oklch(0.68 0.2 60), oklch(0.68 0.2 120), oklch(0.68 0.2 180), oklch(0.68 0.2 240), oklch(0.68 0.2 300), oklch(0.68 0.2 360)); height: 10px; }
.hue-range::-moz-range-progress { background: transparent; }
.swatches { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.swatch {
  aspect-ratio: 0.55;
  border-radius: 10px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8px 6px;
  font-family: var(--mono); font-size: 10px;
  transition: transform 0.35s var(--spring), background 0.3s;
  position: relative;
}
.swatch:hover { transform: translateY(-6px); }
.swatch:active { transform: translateY(-2px) scale(0.95); }
.swatch.copied::before {
  content: "Copied"; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-size: 9px; padding: 2px 5px; border-radius: 5px; background: rgba(0,0,0,0.5); color: #fff;
  animation: fade-up 0.3s var(--ease-out);
}
.lab-note { font-size: 13px; color: var(--ink-3); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.process-sticky { position: sticky; top: 140px; display: grid; gap: 24px; }
.process-sticky .section-num { padding-top: 0; }
.process-sticky p { color: var(--ink-2); max-width: 40ch; }
.process-meter { height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; max-width: 340px; }
.process-meter span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0.166); transition: transform 0.6s var(--ease-out); }
.process-step-label { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.process-steps li {
  min-height: 46vh;
  display: grid; align-content: center; gap: 12px;
  border-top: 1px solid var(--line-strong);
  opacity: 0.25;
  transition: opacity 0.6s var(--ease-out);
}
.process-steps li.active { opacity: 1; }
.process-steps span { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.process-steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.03em; }
.process-steps p { font-size: 18px; color: var(--ink-2); max-width: 38ch; }

/* ---------- Index ---------- */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.index-list a {
  position: relative;
  display: grid; grid-template-columns: 1.2fr 1fr 40px; align-items: center; gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line-strong);
  isolation: isolate;
}
.index-list a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease-out);
}
.index-list a:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
.il-name { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -0.02em; transition: color 0.3s, transform 0.5s var(--ease-out); }
.il-what { font-size: 14px; color: var(--ink-2); transition: color 0.3s; }
.il-arrow { font-size: 22px; justify-self: end; transition: transform 0.5s var(--ease-out), color 0.3s; }
.index-list a:hover .il-name { color: var(--bg); transform: translateX(16px); }
.index-list a:hover .il-what { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.index-list a:hover .il-arrow { color: var(--accent); transform: rotate(45deg) translate(-2px, 2px); }

/* ---------- Footer ---------- */
.footer { padding: 120px 0 40px; border-top: 1px solid var(--line-strong); overflow: hidden; }
.footer-big { font-family: var(--serif); font-size: clamp(3.4rem, 11vw, 11rem); line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 80px; }
.footer-big em { color: var(--accent); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }
.footer-row a:hover { color: var(--ink); }

/* ---------- Command palette ---------- */
.cmdk {
  border: 0; padding: 0; background: transparent;
  width: min(580px, calc(100% - 32px));
  max-width: none; max-height: none;
  margin: 14vh auto auto;
  overflow: visible;
}
.cmdk::backdrop { background: rgba(10, 10, 9, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cmdk[open] .cmdk-box { animation: cmdk-in 0.3s var(--ease-out); }
.cmdk[open]::backdrop { animation: fade 0.25s ease; }
@keyframes cmdk-in { from { opacity: 0; transform: scale(0.96) translateY(-8px); } }
@keyframes fade { from { opacity: 0; } }
.cmdk-box {
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  overflow: hidden;
}
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk-input svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.cmdk-input input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; }
.cmdk-input input::placeholder { color: var(--ink-3); }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 340px; overflow-y: auto; }
.cmdk-group { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding: 10px 12px 6px; }
.cmdk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  font-size: 14.5px; cursor: pointer;
}
.cmdk-item small { color: var(--ink-3); font-size: 12px; }
.cmdk-item[aria-selected="true"] { background: var(--line); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--ink-3); font-size: 14px; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.cmdk-foot kbd { margin-right: 2px; }

/* ---------- View transition (theme) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .span-4, .span-5, .span-6, .span-7 { grid-column: span 6; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-num { padding-top: 0; }
  .lab { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav.scrolled { width: min(560px, 100% - 28px); }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .span-4, .span-5, .span-6, .span-7 { grid-column: span 12; }
  .principles { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-title .line:nth-child(2) { padding-left: 0.4em; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .section { padding: 96px 0; }
  .process { grid-template-columns: 1fr; gap: 24px; }
  .process-sticky { position: relative; top: 0; }
  .process-steps li { min-height: 0; padding: 40px 0; opacity: 1; }
  .index-list a { grid-template-columns: 1fr 32px; }
  .il-what { display: none; }
  .kbd-btn span { display: none; }
  .kbd-btn { padding: 7px 8px; }
  .doherty { grid-template-columns: 1fr; }
  .latency-btn { height: 64px; }
  .latency-btn.busy::after { top: 12px; }
  .swatches { grid-template-columns: repeat(5, 1fr); }
  .swatch { aspect-ratio: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
