/* Thock · a studio desk with one keyboard on it. Paper and ink around a graphite case,
   the Thock keycap's orange, and JetBrains Mono for anything printed on a key. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #ece7df;
  --paper-2: #e3ddd3;
  --card: #f5f2ec;
  --ink: #1b1916;
  --ink-2: #59534b;
  --line: rgb(27 25 22 / 0.12);
  --line-2: rgb(27 25 22 / 0.22);
  --orange: #ed9945;
  --orange-ink: #9c5313;


  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 760; max-width: 18ch; }
h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
code { font: 0.86em var(--mono); background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 5px; }
:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }

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

.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 64px); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.kicker { font: 600 13px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 16px; }
.lede { color: var(--ink-2); font-size: 1.14rem; max-width: 58ch; margin-top: 20px; }
.section { padding-block: clamp(72px, 10vw, 136px); }
.sub { margin: 64px 0 20px; font-size: 1.5rem; letter-spacing: -0.02em; }
.aside { color: var(--ink-2); margin-top: 28px; font-size: 15px; }

/* ───────────── Buttons: fast in, gentle out (hover 150 ms, its end 250 ms, press 60 ms) ───────────── */
.btn, .pill-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px; border-radius: 12px;
  background: var(--ink); color: var(--paper);
  font: 600 16px/1.2 var(--sans); text-decoration: none;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.45);
  transition: transform 250ms var(--out), background-color 250ms ease-out;
}
.btn:hover, .btn:focus-visible, .pill-link:hover, .pill-link:focus-visible { color: var(--paper); background: #34302b; transform: translateY(-1px); transition-duration: 150ms; }
.btn:active, .pill-link:active { transform: translateY(2px); transition-duration: 60ms; }
.pill-link { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }

/* ───────────── Header ───────────── */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgb(236 231 223 / 0.82);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 21px/1 var(--mono); letter-spacing: -0.04em; }
.brand .icon { width: 34px; height: 34px; margin: -2px; }
.bar nav ul { display: flex; align-items: center; gap: 4px; }
.bar nav a:not(.pill-link) { display: inline-block; padding: 8px 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; border-radius: 8px; }
.bar nav a:not(.pill-link):hover { color: var(--ink); }
@media (max-width: 760px) { .bar nav .wide { display: none; } }

/* ───────────── Hero ───────────── */
.hero { padding-top: clamp(24px, 3.5vw, 48px); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "kicker kicker" "title side"; column-gap: 56px; align-items: end; }
.hero-head .kicker { grid-area: kicker; }
.hero h1 {
  grid-area: title;
  font-size: clamp(3rem, 6.6vw, 6.9rem); line-height: 0.96; letter-spacing: -0.055em; font-weight: 780;
}
.hero-side { grid-area: side; display: grid; gap: 22px; padding-bottom: 0.4rem; }
.hero-side .lede { margin: 0; }
@media (max-width: 900px) {
  .hero-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kicker" "title" "side"; }
  .hero-side { margin-top: 24px; }
}
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.note { color: var(--ink-2); font: 500 13px/1.3 var(--mono); }

/* The word in the title is a keycap, in the set's accent colour. */
.word-key {
  --unit: 1em;
  position: relative; display: inline-block;
  padding: 0.02em 0.2em 0.16em; margin-inline: 0.04em;
  border-radius: 0.2em; vertical-align: 0.02em;
  background-color: var(--x); background-image: linear-gradient(rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.36));
  box-shadow: 0 0.06em 0.1em rgb(40 30 20 / 0.35);
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: background-color 200ms ease-out;
}
.word-key .cap {
  display: block; padding: 0.02em 0.14em 0.06em; border-radius: 0.15em;
  background-color: var(--x); color: var(--x-l);
  background-image: linear-gradient(rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 60%);
  box-shadow: inset 0 0.02em 0 rgb(255 255 255 / 0.35);
  font-family: var(--mono); font-weight: 760; letter-spacing: -0.07em;
  transition: transform 130ms ease-out, opacity 130ms ease-out, background-color 200ms ease-out, color 200ms ease-out;
}
.word-key.down .cap { transform: translateY(0.07em); transition-duration: 50ms; }

/* ───────────── The keyboard ───────────── */
/* Profiles: key height and skirt, how far the top is inset, its rounding, travel and dish. */
body, .switch-option { --k-h: 0.96; --k-skirt: 0.15; --k-inset: 0.1; --k-r: 0.16; --k-travel: 0.075; --k-dish: var(--dish-cyl); }
[data-profile="sa"] { --k-h: 1.14; --k-skirt: 0.25; --k-inset: 0.15; --k-r: 0.34; --k-travel: 0.1; --k-dish: var(--dish-sph); }
[data-profile="hhkb"] { --k-h: 1.02; --k-skirt: 0.18; --k-inset: 0.11; --k-r: 0.14; --k-travel: 0.09; --k-dish: var(--dish-cyl); }
[data-profile="mt3"] { --k-h: 1.1; --k-skirt: 0.22; --k-inset: 0.13; --k-r: 0.28; --k-travel: 0.09; --k-dish: var(--dish-sph); }
[data-profile="modelm"] { --k-h: 1.12; --k-skirt: 0.22; --k-inset: 0.08; --k-r: 0.1; --k-travel: 0.12; --k-dish: var(--dish-cyl); }
:root {
  --dish-cyl: linear-gradient(90deg, rgb(0 0 0 / 0.09), rgb(255 255 255 / 0.1) 32% 68%, rgb(0 0 0 / 0.09));
  --dish-sph: radial-gradient(ellipse 72% 64% at 50% 42%, rgb(255 255 255 / 0.16), rgb(0 0 0 / 0.1));
}

.stage { padding: clamp(28px, 3.4vw, 48px) 32px 0; perspective: 2200px; }
.case {
  position: relative; max-width: 1180px; margin-inline: auto;
  padding: 14px 20px 24px; border-radius: 26px;
  background: linear-gradient(180deg, #505055 0%, #2e2e32 5%, #252528 60%, #1e1e21 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -3px 0 rgb(0 0 0 / 0.45),
    0 50px 70px -36px rgb(60 40 20 / 0.6), 0 20px 30px -16px rgb(60 40 20 / 0.35);
}
@media (min-width: 900px) {
  .case { transform: rotateX(9deg); transform-origin: 50% 100%; }
}
.bezel { display: flex; align-items: center; gap: 18px; padding: 2px 4px 14px; }
.plate {
  font: 800 15px/1 var(--mono); letter-spacing: -0.03em; color: #77777d;
  text-shadow: 0 -1px 0 rgb(0 0 0 / 0.7), 0 1px 0 rgb(255 255 255 / 0.08);
}
.oled {
  flex: 1 1 auto; min-width: 0; max-width: 520px; display: flex; gap: 18px; overflow: hidden; white-space: nowrap;
  padding: 7px 14px; border-radius: 7px; background: #070707;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.9), 0 1px 0 rgb(255 255 255 / 0.07);
  font: 600 12px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: #ffb45e; text-shadow: 0 0 8px rgb(255 160 60 / 0.55);
}
.o-kind { color: #b9864e; }
.o-taps, .o-wpm { font-variant-numeric: tabular-nums; }
.o-taps { margin-left: auto; }
.controls { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.volume { display: flex; align-items: center; gap: 10px; color: #9a9aa0; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.volume input { width: 110px; accent-color: var(--orange); }
.power {
  display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 14px 6px 11px;
  border: 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(#3b3b40, #2a2a2e); color: #d9d9dd;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), inset 0 -2px 0 rgb(0 0 0 / 0.5), 0 1px 2px rgb(0 0 0 / 0.5);
  font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  transition: transform 130ms ease-out;
}
.power:active { transform: translateY(1px); transition-duration: 50ms; }
.power-led { width: 8px; height: 8px; border-radius: 50%; background: #4a4a50; box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.6); transition: background-color 150ms ease-out, box-shadow 150ms ease-out; }
.power[aria-checked="true"] .power-led { background: #ffa646; box-shadow: 0 0 8px 1px rgb(255 160 60 / 0.8); }

.board {
  --cols: 15; --gap: 6px;
  --unit: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols));
  container-type: inline-size;
  display: grid; gap: var(--gap);
  padding: 12px; border-radius: 12px;
  background: linear-gradient(180deg, #121214, #1a1a1d);
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.75), 0 1px 0 rgb(255 255 255 / 0.06);
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.board:focus-visible { outline-offset: 5px; border-radius: 12px; }
.board-compact { display: none; --cols: 10; --gap: 5px; padding: 8px; }
@media (max-width: 700px) {
  .board-wide { display: none; }
  .board-compact { display: grid; }
}
.row { display: flex; gap: var(--gap); }
.key, .key-gap { flex: none; width: calc(var(--u) * var(--unit) + (var(--u) - 1) * var(--gap)); }

.key, .s-key {
  --c: var(--a); --l: var(--a-l);
  position: relative; display: block; height: calc(var(--unit) * var(--k-h));
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.k-m { --c: var(--m); --l: var(--m-l); }
.k-x { --c: var(--x); --l: var(--x-l); }
/* The skirt: the cap's sides, darker, seen below the top. */
.key::before, .s-key::before {
  content: ""; position: absolute; inset: 0; border-radius: calc(var(--unit) * 0.2);
  background-color: var(--c);
  background-image: linear-gradient(rgb(0 0 0 / 0.18), rgb(0 0 0 / 0.38));
  box-shadow: 0 calc(var(--unit) * 0.04) calc(var(--unit) * 0.06) rgb(0 0 0 / 0.55);
  transition: background-color 200ms ease-out;
}
.key .cap, .s-key .cap {
  position: absolute; top: calc(var(--unit) * 0.03); bottom: calc(var(--unit) * var(--k-skirt));
  left: calc(var(--unit) * var(--k-inset)); right: calc(var(--unit) * var(--k-inset));
  border-radius: calc(var(--unit) * var(--k-r));
  background-color: var(--c); background-image: var(--k-dish);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.32), inset 0 -1px 0 rgb(0 0 0 / 0.12);
  color: var(--l);
  transition: transform 130ms ease-out, opacity 130ms ease-out, background-color 200ms ease-out, color 200ms ease-out;
}
.legend {
  position: absolute; left: calc(var(--unit) * 0.12); top: calc(var(--unit) * 0.08);
  font: 560 calc(var(--unit) * 0.27)/1 var(--mono); letter-spacing: -0.02em;
}
.k-word .legend { top: auto; bottom: calc(var(--unit) * 0.09); font-size: calc(var(--unit) * 0.19); font-weight: 600; letter-spacing: 0; text-transform: lowercase; }
[data-profile="sa"] .k-a .legend { left: 0; right: 0; top: 50%; translate: 0 -50%; text-align: center; font-size: calc(var(--unit) * 0.33); }
[data-profile="modelm"] .legend { font-weight: 700; }
.board-compact .legend { left: 0; right: 0; top: 50%; translate: 0 -50%; bottom: auto; text-align: center; font-size: calc(var(--unit) * 0.4); }

/* The press: down in 50 ms, back up in 130 ms, as KeycapView's keyframes. */
.key.down .cap { transform: translateY(calc(var(--unit) * var(--k-travel))); transition-duration: 50ms; }

/* A new set: each key lifts and reseats, left to right, so you see the board change. */
.board.reseat .key { animation: reseat 320ms var(--out) both; animation-delay: calc(var(--kx) * 14ms); }
@keyframes reseat {
  35% { transform: translateY(calc(var(--unit) * -0.14)); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Reduced motion: the press becomes a brief dim instead of a dip, as in the app, and a
     new set only crossfades its colours. */
  .key.down .cap, .word-key.down .cap, .big-key:active .cap, .big-key.down .cap { transform: none; opacity: 0.7; }
  .board.reseat .key { animation: none; }
}

.stage::after {
  content: ""; display: block; height: 40px; max-width: 1100px; margin: -6px auto 0;
  background: radial-gradient(closest-side, rgb(60 40 20 / 0.22), transparent);
}

/* ───────────── Under the keyboard: the switch tester ───────────── */
.under { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px 48px; margin-top: 18px; align-items: start; }
.tester { border: 0; margin: 0; padding: 0; min-width: 0; }
.tester legend { padding: 0; margin-bottom: 14px; font: 650 1.05rem/1.2 var(--display); }
.switches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.more-card {
  display: grid; align-content: center; justify-items: start; gap: 4px; padding: 14px; border-radius: 16px;
  box-shadow: inset 0 0 0 1.5px var(--line-2); background: repeating-linear-gradient(-45deg, transparent 0 8px, rgb(27 25 22 / 0.03) 8px 16px);
}
.more-card b { font: 760 2rem/1 var(--mono); letter-spacing: -0.05em; }
.more-card small { color: var(--ink-2); font-size: 13px; }
.switch-option {
  --unit: 64px;
  position: relative; display: grid; justify-items: start; gap: 12px;
  padding: 14px; border-radius: 16px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 250ms var(--out), box-shadow 150ms ease-out;
}
.switch-option:hover { transform: translateY(-2px); transition-duration: 150ms; }
.switch-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch-option:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.switch-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: #fbf9f5; }
.s-key { width: calc(var(--unit) * 1.25); }
.s-key .cap { display: grid; place-items: center; font: 650 13px/1 var(--mono); letter-spacing: -0.02em; }
.s-text { display: grid; gap: 3px; line-height: 1.3; }
.s-text b { font-size: 15px; }
.s-text small { color: var(--ink-2); font-size: 12.5px; }
.s-profile { font-family: var(--mono); font-size: 11.5px !important; }

.readme { padding-top: 40px; }
.footnote a { color: inherit; }
.status { min-height: 3em; color: var(--ink); font: 500 14px/1.5 var(--mono); }
.footnote { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 1080px) {
  .under { grid-template-columns: minmax(0, 1fr); }
  .readme { padding-top: 0; }
}
@media (max-width: 860px) {
  /* A strip you swipe through, instead of five rows of cards. */
  .switches {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none;
  }
  .switches::-webkit-scrollbar { display: none; }
  .switch-option, .more-card { flex: 0 0 150px; scroll-snap-align: start; }
}

/* The floating control, while sound is on and the keyboard is out of view. */
.pill {
  position: fixed; left: 50%; bottom: 18px; z-index: 15;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: #1d1b19; color: #efebe4; box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.45);
  font: 500 13px/1.2 var(--mono);
  opacity: 0; transform: translate(-50%, 12px);
  transition: opacity 150ms ease-in, transform 150ms ease-in;
}
.pill.in { opacity: 1; transform: translate(-50%, 0); transition: opacity 220ms ease-out, transform 220ms var(--out); }
.pill-led { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #ffa646; box-shadow: 0 0 8px 1px rgb(255 160 60 / 0.8); }
.pill-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-off {
  flex: none; min-height: 34px; padding: 6px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: #efebe4; color: #1d1b19; font: 600 12px/1 var(--mono);
}
@media (prefers-reduced-motion: reduce) { .pill, .pill.in { transform: translate(-50%, 0); } }

/* ───────────── Only real sounds ───────────── */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.facts li { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.facts b { font: 780 clamp(3rem, 6vw, 5.2rem)/0.9 var(--mono); letter-spacing: -0.06em; }
.facts span { color: var(--ink-2); font-size: 1.05rem; max-width: 24ch; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ───────────── How it works, on the dark desk ───────────── */
.dark { background: #191715; color: #efebe4; }
.dark .kicker { color: var(--orange); }
.dark h2 { color: #f3efe8; }
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { display: grid; gap: 6px; margin: 34px 0 0 -12px; }
.step {
  position: relative; display: flex; align-items: center; gap: 18px; width: 100%;
  margin: 0; padding: 10px 12px; border: 0; border-radius: 16px; overflow: hidden;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color 200ms ease-out;
}
.step:hover { background: rgb(255 255 255 / 0.04); }
.step[aria-pressed="true"] { background: rgb(255 255 255 / 0.07); }
.step .mini-key { transition: transform 200ms var(--out), filter 200ms ease-out; }
.step[aria-pressed="false"] .mini-key { filter: saturate(0.35) brightness(0.8); }
.step:active .mini-key .cap { transform: translateY(3px); }
.mini-key .cap { transition: transform 130ms ease-out; }
.steps b { display: block; font: 650 1.2rem/1.3 var(--display); color: #f3efe8; }
.step-text { color: #aaa49b; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.extras li { padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); color: #d8d3cb; font: 500 13px/1.2 var(--mono); }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }

.mini-key {
  position: relative; display: inline-block; flex: none; width: 46px; height: 46px;
  border-radius: 9px; background: #a8661f; box-shadow: 0 2px 3px rgb(0 0 0 / 0.35);
}
.mini-key .cap {
  position: absolute; inset: 2px 5px 8px; display: grid; place-items: center; border-radius: 7px;
  background: var(--orange); background-image: linear-gradient(rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 60%);
  color: #2a1606; font: 700 18px/1 var(--mono);
}
.press-dot { display: grid; place-items: center; width: 46px; height: 46px; }
.press-dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--orange-ink); }

.menu-figure { margin: 0; }
.menu-scene {
  border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, rgb(237 153 69 / 0.32), transparent 60%), linear-gradient(160deg, #3a2e25, #1b1d24 60%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  padding-bottom: 22px;
}
.menubar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; height: 28px; padding: 0 14px; background: rgb(255 255 255 / 0.12); font: 500 13px/1 var(--sans); color: #f5f5f7; }
.mb-icon { display: inline-flex; margin: 0; padding: 3px 6px; border: 0; border-radius: 5px; background: transparent; color: #f5f5f7; cursor: pointer; transition: background-color 120ms ease-out; }
.mb-icon[aria-expanded="true"] { background: rgb(255 255 255 / 0.22); }
.menu {
  width: min(310px, 100% - 28px); margin: 6px 14px 0 auto;
  background: rgb(36 36 38 / 0.95); border: 1px solid rgb(255 255 255 / 0.13); border-radius: 12px;
  padding: 12px 0; font: 13px/1.3 var(--sans); color: #ececec;
  box-shadow: 0 18px 50px -12px rgb(0 0 0 / 0.7);
}
.menu hr { border: 0; border-top: 1px solid rgb(255 255 255 / 0.1); margin: 8px 0; }
.menu small { font-size: 11px; color: #9a9a9f; }
.m-head, .m-row, .m-toggle { display: flex; align-items: center; gap: 8px; padding: 4px 12px; }
button.m-row {
  width: calc(100% - 12px); margin: 0 6px; padding: 4px 6px; border: 0; border-radius: 6px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color 120ms ease-out;
}
button.m-row:hover { background: rgb(255 255 255 / 0.08); }
.m-head { padding-block: 0; }
.m-text { display: grid; min-width: 0; margin-right: auto; }
.m-text b { font-weight: 500; font-size: 13px; color: #ececec; }
.m-head .m-text b { font-size: 15px; font-weight: 600; }
.m-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cap { --c: #ed9945; width: 24px; height: 24px; flex: none; border-radius: 5px; background: var(--c); box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.25); }
.m-cap.big { width: 38px; height: 38px; border-radius: 8px; box-shadow: inset 0 -6px 0 rgb(0 0 0 / 0.25); }
.m-check { font-style: normal; color: var(--orange); margin-left: 6px; font-weight: 700; display: inline-block; opacity: 0; transform: scale(0.6); transition: opacity 150ms ease-out, transform 200ms var(--out); }
[aria-checked="true"] > .m-text .m-check { opacity: 1; transform: none; }
.m-real { font-style: normal; font-size: 9px; font-weight: 600; padding: 1px 6px; border-radius: 99px; }
.m-real { color: #30d158; background: rgb(48 209 88 / 0.14); margin-left: 4px; vertical-align: 1px; }
.m-switch {
  --off: 0px; --travel: 11px;
  width: 26px; height: 15px; border-radius: 99px; background: #4a4a4e; flex: none; position: relative;
  margin: 0; padding: 0; border: 0; cursor: pointer; transition: background-color 150ms ease-out;
}
/* A bigger target than the switch it draws. */
.m-switch::before { content: ""; position: absolute; inset: -6px -4px; }
.m-switch::after {
  content: ""; position: absolute; top: 1.5px; left: 1.5px; width: 12px; height: 12px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.3); transition: transform 180ms var(--out);
}
.m-switch[aria-checked="true"], .m-switch.on { background: var(--orange); }
.m-switch[aria-checked="true"]::after, .m-switch.on::after { transform: translateX(var(--travel)); }
.m-head .m-switch { --travel: 14px; width: 34px; height: 20px; }
.m-head .m-switch::after { width: 17px; height: 17px; }
.m-volume { padding: 0 12px; }
.m-range { display: block; width: 100%; height: 24px; margin: 0; accent-color: var(--orange); cursor: pointer; }
.m-label { display: block; padding: 0 12px 2px; font-weight: 600; }
.m-plain { justify-content: space-between; }
.m-toggle { justify-content: space-between; }

/* ───────────── Privacy ───────────── */
.hello { display: grid; gap: 14px; margin-top: 48px; padding: 28px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; max-width: 100%; }
.hello-row { display: flex; align-items: center; gap: 10px; }
.hello-label { width: 96px; flex: none; font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.hello-result { font: 600 15px/1.4 var(--mono); margin-top: 4px; }
@media (max-width: 520px) {
  .hello { padding: 18px; }
  .hello-row { gap: 6px; }
  .hello-label { width: 66px; font-size: 10.5px; }
  .hello .mini-key { width: 38px; height: 38px; }
}

/* ───────────── Specs: the label on the box ───────────── */
.specs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 40px; align-items: start; }
.box { background: #fbf9f5; border: 2px solid var(--ink); border-radius: 8px; padding: 22px 24px; box-shadow: 8px 8px 0 var(--ink); }
.box-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); font: 800 26px/1 var(--mono); letter-spacing: -0.05em; }
.box-head .icon { width: 44px; height: 44px; margin: -4px; }
.box-ver { margin-left: auto; font: 600 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }
.box dl { margin: 0; }
.box dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.box dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.box dt { font: 700 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.box dd { margin: 0; font: 500 14px/1.55 var(--mono); color: var(--ink-2); }
@media (max-width: 900px) { .specs-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .box { padding: 18px; box-shadow: 5px 5px 0 var(--ink); }
  .box dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ───────────── FAQ ───────────── */
.faq { margin-top: 36px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px; cursor: pointer; list-style: none; font: 650 1.1rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--card); box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.12), inset 0 0 0 1px var(--line);
  font: 600 18px/1 var(--mono); transition: transform 200ms var(--out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 2px 22px; max-width: 62ch; }

/* ───────────── CTA: one big key ───────────── */
.cta { text-align: center; padding-bottom: clamp(88px, 12vw, 160px); }
.cta h2, .cta .lede { margin-inline: auto; }
.big-key {
  --unit: 120px;
  position: relative; display: block; width: min(560px, 100%); height: 168px; margin: 48px auto 0;
  border-radius: 26px; text-decoration: none; color: #2a1606;
  background-color: var(--orange); background-image: linear-gradient(rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.38));
  box-shadow: 0 6px 10px rgb(60 30 0 / 0.3), 0 30px 50px -20px rgb(60 30 0 / 0.5);
  -webkit-tap-highlight-color: transparent;
}
.big-key .cap {
  position: absolute; inset: 4px 18px 34px; border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px;
  background-color: var(--orange);
  background-image: linear-gradient(90deg, rgb(0 0 0 / 0.06), rgb(255 255 255 / 0.14) 30% 70%, rgb(0 0 0 / 0.06)), linear-gradient(rgb(255 255 255 / 0.25), rgb(255 255 255 / 0) 50%);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.4);
  transition: transform 130ms ease-out, opacity 130ms ease-out;
}
.big-label { font: 760 clamp(1.6rem, 4.5vw, 2.6rem)/1 var(--mono); letter-spacing: -0.05em; }
.big-glyph { font: 600 2.4rem/1 var(--mono); opacity: 0.75; }
.big-key:hover .cap { transform: translateY(3px); transition-duration: 150ms; }
.big-key:active .cap, .big-key.down .cap { transform: translateY(14px); transition-duration: 50ms; }
.big-key:hover { color: #2a1606; }
.big-key:focus-visible { outline-offset: 6px; border-radius: 26px; }
@media (max-width: 520px) {
  .big-key { height: 128px; border-radius: 20px; }
  .big-key .cap { inset: 3px 12px 26px; padding: 0 20px; border-radius: 15px; }
  .big-key:active .cap, .big-key.down .cap { transform: translateY(10px); }
}

/* ───────────── Footer ───────────── */
.footer { border-top: 2px solid var(--ink); padding-block: 48px 72px; color: var(--ink-2); font-size: 14px; }
.footer h2 { font-size: 1rem; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.footer ul { display: grid; gap: 6px; max-width: 82ch; }
.licenses { margin-top: 18px; }
.licenses summary { cursor: pointer; color: var(--ink); width: fit-content; font-weight: 600; }
.licenses h3 { font-size: 14px; margin: 18px 0 8px; color: var(--ink); }
.licenses pre { white-space: pre-wrap; font: 12px/1.5 var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; max-width: 82ch; max-height: 360px; overflow: auto; }
.made { margin-top: 28px; }

/* ───────────── Phones ───────────── */
@media (max-width: 700px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .stage { padding: 28px 10px 0; }
  .case { padding: 10px 10px 16px; border-radius: 18px; }
  .bezel { flex-wrap: wrap; gap: 10px; padding-bottom: 10px; }
  .plate { display: none; }
  .oled { order: 2; flex-basis: 100%; max-width: none; gap: 12px; font-size: 11px; }
  .controls { margin-left: 0; width: 100%; justify-content: space-between; }
  .volume input { width: 96px; }
}

/* ═════════════ Motion ═════════════
   Everything below is movement layered on the page above, which reads the same without it.
   Scroll-linked pieces are driven by the browser from the scroll itself (they can't lag the
   finger) and only where it supports that; the living demos run from motion.js and only
   while they're on screen. With reduced motion, displacement becomes a fade. */

@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes seat { from { opacity: 0; transform: translateY(calc(var(--unit) * -0.45)); } }
@keyframes tap { 30% { transform: translateY(0.07em); } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.97); } }
@keyframes ring { from { opacity: 0.55; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow { from { transform: scaleX(0); } }

/* The header is just the page at the top, and gains its glass once something scrolls under it. */
@supports (animation-timeline: scroll()) {
  .bar { animation: glass linear both; animation-timeline: scroll(root); animation-range: 0 96px; }
  @keyframes glass {
    from { background-color: rgb(236 231 223 / 0); box-shadow: 0 1px 0 rgb(27 25 22 / 0); }
    to { background-color: rgb(236 231 223 / 0.82); box-shadow: 0 1px 0 var(--line); }
  }
}

/* ───── Arriving: the title rises, then the board's keys drop onto their switches, left to
   right and row by row, and the title's keycap gets pressed once. ───── */
@media (prefers-reduced-motion: no-preference) {
  .hero-head > * { animation: rise 640ms var(--out) both; }
  .hero-head > h1 { animation-delay: 60ms; }
  .hero-head > .hero-side { animation-delay: 160ms; }
  .stage { animation: rise 760ms var(--out) 180ms both; }
  .board .key { animation: seat 460ms var(--out) both; animation-delay: calc(320ms + var(--kx) * 16ms + var(--ky) * 36ms); }
  /* Listed again so switching sets doesn't restart the arrival. */
  .board.reseat .key { animation: seat 460ms var(--out) both, reseat 320ms var(--out) both; animation-delay: calc(320ms + var(--kx) * 16ms + var(--ky) * 36ms), calc(var(--kx) * 14ms); }
  .word-key .cap { animation: tap 260ms ease-out 1150ms; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-head > *, .stage { animation: fade 400ms ease-out both; }
}

/* Scrolled past, the keyboard tips back and sinks instead of being cut off by the edge. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .case { animation: recede linear both; animation-timeline: view(); animation-range: exit 5% exit 100%; }
    @keyframes recede {
      from { transform: rotateX(9deg); }
      to { transform: rotateX(32deg) translateY(-40px) scale(0.9); opacity: 0.3; }
    }
  }
}

/* The display's level meter: each press kicks it, and it falls back (motion.js sets the bars). */
.o-meter { display: flex; align-items: flex-end; gap: 2px; height: 13px; align-self: center; flex: none; }
.o-meter i { width: 3px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(0.12); }
@media (max-width: 700px) { .o-meter { display: none; } }

/* ───── Sections come up as they scroll in, cards one after another (--i). ───── */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 7%) entry calc(75% + var(--i, 0) * 7%); }
  .vs-bar i { animation: grow linear both; animation-timeline: view(); animation-range: entry 60% cover 50%; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { animation-name: fade; }
    .vs-bar i { animation: none; }
  }
}

/* ───── Every switch, drifting past. Hover holds it still. ───── */
.reel {
  margin-top: 56px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reel-inner { display: flex; width: max-content; animation: drift 80s linear infinite; }
.reel:hover .reel-inner, .reel.held .reel-inner, .reel.away .reel-inner { animation-play-state: paused; }
.reel { cursor: pointer; }
.reel-track { display: flex; gap: 10px; padding: 4px 5px 16px; }
.chip {
  position: relative; isolation: isolate; flex: none;
  padding: 11px 16px 19px; border-radius: 10px;
  background-color: var(--c); background-image: linear-gradient(rgb(0 0 0 / 0.16), rgb(0 0 0 / 0.34));
  box-shadow: 0 3px 6px rgb(60 40 20 / 0.25);
  color: var(--l); font: 600 14px/1 var(--mono); white-space: nowrap;
}
.chip::before {
  content: ""; position: absolute; inset: 2px 5px 8px; z-index: -1; border-radius: 8px;
  background-color: var(--c); background-image: var(--dish-cyl);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.32);
}
@media (prefers-reduced-motion: reduce) {
  .reel-inner { animation: none; }
  .reel { overflow-x: auto; scrollbar-width: none; }
  .reel-track[aria-hidden="true"] { display: none; }
}

/* ───── How it works: the steps play on the menu in a loop until it's touched. ───── */
.menu-scene { position: relative; min-height: 470px; }
.menu {
  transform-origin: calc(100% - 44px) 0;
  transition: opacity 220ms ease-out, transform 280ms var(--out), visibility 0s;
}
#tour[data-open="false"] .menu {
  opacity: 0; transform: scale(0.97) translateY(-6px); visibility: hidden;
  transition: opacity 150ms ease-in, transform 150ms ease-in, visibility 0s 150ms;
}
#tour[data-step="2"] .menu { opacity: 0.3; }

.perm {
  position: absolute; left: 50%; top: 64px; width: min(300px, 100% - 36px); margin-left: max(-150px, -50% + 18px);
  border-radius: 12px; overflow: hidden;
  background: #29292c; border: 1px solid rgb(255 255 255 / 0.13);
  box-shadow: 0 24px 60px -12px rgb(0 0 0 / 0.8);
  font: 13px/1.3 var(--sans); color: #ececec;
  opacity: 0; transform: scale(0.97) translateY(8px); visibility: hidden;
  transition: opacity 150ms ease-in, transform 150ms ease-in, visibility 0s 150ms;
  pointer-events: none;
}
#tour[data-step="2"] .perm { opacity: 1; transform: none; visibility: visible; transition: opacity 220ms ease-out, transform 300ms var(--out), visibility 0s; }
.perm-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgb(255 255 255 / 0.08); color: #bdbdc2; font-size: 12px; font-weight: 600; }
.perm-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.perm-bar i:nth-child(2) { background: #febc2e; }
.perm-bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.perm-body { display: grid; gap: 12px; padding: 14px 14px 16px; }
.perm-body > b { font-size: 15px; font-weight: 650; }
.perm-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgb(255 255 255 / 0.06); }
.perm-row .icon { width: 30px; height: 30px; margin: -3px; }
.perm-row > span:not(.m-switch) { margin-right: auto; font-weight: 500; }
.perm-switch { cursor: default; }
#tour[data-perm="on"] .perm-switch { background: var(--orange); }
#tour[data-perm="on"] .perm-switch::after { transform: translateX(var(--travel)); }

.cursor {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  transform-origin: 3px 2px;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.45));
  opacity: 0; transition: opacity 200ms ease-in;
}
.touring .cursor { opacity: 1; transition: opacity 250ms ease-out; }

.step-bar {
  position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.touring .step[aria-pressed="true"] .step-bar { opacity: 0.9; animation: fill var(--dur, 4s) linear both; }
.away .step-bar { animation-play-state: paused; }
.live-note { margin-top: 14px; color: #aaa49b; font: 500 13px/1.4 var(--mono); text-align: center; }
@media (max-width: 520px) { .menu-scene { min-height: 450px; } }
@media (prefers-reduced-motion: reduce) {
  .menu, #tour[data-open="false"] .menu, .perm, #tour[data-step="2"] .perm { transform: none; }
  .step-bar { display: none; }
}

/* ───── Privacy: what you type, and all Thock hears of it. ───── */
/* Room for HELLO from the start, so the card doesn't grow as it's spelt. */
.hello-keys { display: flex; align-items: center; gap: 10px; min-height: 46px; min-width: calc(5 * 46px + 4 * 10px); }
.hello-keys > * { animation: pop 280ms var(--out) both; }
.press-dot { position: relative; }
.press-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 2px solid var(--orange); opacity: 0; animation: ring 520ms ease-out;
}
.hello-keys, .hello-result { transition: opacity 260ms ease-out; }
.hello.clearing .hello-keys, .hello.clearing .hello-result { opacity: 0; transition: opacity 180ms ease-in; }
.hello-result.waiting { opacity: 0; }
.hello-try { margin-top: 14px; color: var(--orange-ink); font: 600 13px/1.4 var(--mono); }
@media (max-width: 520px) { .hello-keys { gap: 6px; min-width: calc(5 * 38px + 4 * 6px); } .hello .press-dot { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) {
  .hello-keys > * { animation-name: fade; }
  .press-dot::after { display: none; }
}

/* ───── Price: the tag hangs from its string and swings when you brush it. ───── */
.price { overflow-x: clip; }
.price-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(48px, 7vw, 110px); align-items: center; }
.vs { display: grid; gap: 14px; margin-top: 44px; max-width: 580px; }
.vs-row { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr) 6.5em; align-items: center; gap: 14px; font: 500 14px/1.3 var(--mono); }
.vs-name { color: var(--ink-2); }
.vs-row b { text-align: right; font-weight: 700; }
.vs-bar { height: 14px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.vs-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform-origin: left; transform: scaleX(max(var(--w), 0.02)); }
.vs-thock .vs-bar i { background: var(--orange); }
.vs-thock b { color: var(--orange-ink); }

.tag-hang { position: relative; display: grid; justify-items: center; padding-top: 30px; }
.tag-hang::before {
  content: ""; position: absolute; left: 50%; top: -48px; width: 2px; height: 100px; margin-left: -1px;
  background: linear-gradient(rgb(27 25 22 / 0), var(--ink-2));
}
.tag {
  position: relative; width: min(100%, 360px); padding: 52px 30px 28px;
  border-radius: 24px 24px 18px 18px; background: #fbf9f5;
  box-shadow: inset 0 0 0 2px var(--ink), 8px 10px 0 var(--ink);
  transform-origin: 50% 30px;
}
.tag-hole { position: absolute; top: 22px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.tag-label { text-align: center; color: var(--ink-2); font: 700 12px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.tag-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 12px; }
.tag-price b { font: 780 clamp(3.2rem, 7vw, 4.4rem)/1 var(--mono); letter-spacing: -0.06em; }
.tag-price span { color: var(--ink-2); font: 600 14px/1 var(--mono); }
.tag-launch { width: fit-content; margin: 16px auto 0; padding: 6px 12px; border-radius: 99px; background: var(--orange); color: #2a1606; font: 650 13px/1.2 var(--mono); }
.tag ul { display: grid; gap: 10px; margin: 24px 0 26px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.tag li::before { content: "✓"; margin-right: 10px; color: var(--orange-ink); font: 700 14px/1 var(--mono); }
.tag .btn { width: 100%; }
.tag-note { display: block; margin-top: 12px; text-align: center; color: var(--ink-2); font: 500 12px/1.3 var(--mono); }
@media (max-width: 900px) { .price-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .vs-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .vs-name { grid-column: 1 / -1; }
}

/* ───── The answers open instead of appearing. ───── */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height 280ms var(--out), content-visibility 280ms allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }
}
