/* Fonts: Baloo 2, Atkinson Hyperlegible and JetBrains Mono, all under the SIL Open Font License 1.1 (fonts/OFL.txt). */
@font-face { font-family: "Baloo 2"; src: url("fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #1c131d;
  --night-2: #241926;
  --night-3: #2f2131;
  --line: #453248;
  --ink: #f6efe6;
  --ink-2: #c3b9c9;
  --ink-3: #9d93a6;
  --terra: #d9572b;
  --terra-d: #a83e19;
  --terra-l: #f08a5d;
  --on-terra: #1b0c06;
  --teal: #4fa3a5;
  --teal-l: #7cc6c7;
  --gold: #e0b04c;
  --lav: #9b8ac4;
  --lav-l: #bcaee0;
  --display: "Baloo 2", "Atkinson Hyperlegible", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --gap: clamp(1rem, 2.4vw, 2rem);
  --section: clamp(5rem, 11vw, 9rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--terra);
  scrollbar-color: var(--line) var(--night);
}
::selection { background: var(--terra); color: var(--on-terra); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 3px solid var(--night); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--terra-l); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--terra-l); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
b { font-weight: 700; }
code, pre { font-family: var(--mono); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .dot, use.dots { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .6rem 1rem; background: var(--terra); color: var(--on-terra); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gap))); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--terra);
  display: inline-flex; align-items: center; gap: .55em;
  padding: .72em 1.25em;
  border: 0; border-radius: 16px;
  background: var(--b); color: var(--on-terra);
  font: 800 1.05rem/1 var(--display); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--terra-d), 0 12px 24px -10px rgb(0 0 0 / .6);
  transform: translateY(0);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s;
}
.btn:hover { color: var(--on-terra); background: var(--terra-l); transform: translateY(-2px); box-shadow: 0 7px 0 var(--terra-d), 0 16px 28px -10px rgb(0 0 0 / .6); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--terra-d), 0 6px 12px -8px rgb(0 0 0 / .5); }
.btn-small { font-size: .95rem; padding: .55em 1em; border-radius: 13px; box-shadow: 0 4px 0 var(--terra-d); }
.btn-small:hover { box-shadow: 0 6px 0 var(--terra-d); }
.btn-big { font-size: clamp(1.15rem, 1.6vw, 1.35rem); padding: .85em 1.5em; border-radius: 20px; }
.btn-ghost { --b: var(--night-3); color: var(--ink); box-shadow: 0 4px 0 #0e0c13; }
.btn-ghost:hover { background: var(--line); color: var(--ink); box-shadow: 0 6px 0 #0e0c13; }
.btn-ghost:active { box-shadow: 0 1px 0 #0e0c13; }

/* ---------- nav ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgb(28 19 29 / .82);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; width: min(1320px, calc(100% - 2 * var(--gap))); margin-inline: auto; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font: 800 1.55rem/1 var(--display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav-links { display: flex; gap: .25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: .45rem .75rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav-links a:hover { color: var(--ink); background: var(--night-3); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--night-3); }
@media (max-width: 900px) { .nav-links { display: none; } .nav .btn-small { margin-left: auto; } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  width: min(1320px, calc(100% - 2 * var(--gap))); margin-inline: auto;
  min-height: calc(100svh - 4.25rem); padding-block: clamp(2rem, 5vw, 4rem);
}
.hero-title { display: grid; gap: .35em; }
.hero-word {
  font-size: clamp(4.2rem, 9.2vw, 6rem); line-height: .9; letter-spacing: -.035em;
  display: inline-block; width: fit-content; position: relative; padding: .08em .32em .14em; margin-left: -.06em;
  background: var(--terra); color: var(--on-terra); border-radius: .42em .42em .42em .1em;
  transform: rotate(-2deg); transform-origin: 10% 90%;
}
.hero-word::after { /* the bubble tail of the g mark */
  content: ""; position: absolute; left: .18em; bottom: -.3em; width: .42em; height: .36em;
  background: var(--terra); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hero-say { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; color: var(--ink); max-width: 14ch; padding-top: .3em; }
.hero-lede { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.08rem, 1.35vw, 1.22rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.2rem; }
.link-quiet { color: var(--ink-2); font-weight: 700; }
.hero-pron { margin-top: 2.2rem; color: var(--ink-3); font-size: .95rem; }
.hero-pron b { color: var(--ink-2); font-family: var(--display); font-weight: 600; letter-spacing: .02em; }
.hero-beta { display: flex; align-items: flex-end; gap: .7rem; width: fit-content; margin-top: 1.8rem; text-decoration: none; }
.hero-beta .face-slot { width: 40px; flex: none; }
.hero-beta .bubble { transition: transform .2s var(--spring); }
.hero-beta:hover .bubble { transform: translateY(-2px) rotate(-1deg); }
.hero-beta:focus-visible { outline: 3px solid var(--terra-l); outline-offset: 4px; border-radius: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-word { animation: wave-hello 1.6s var(--spring) .2s both; }
  .hero-say, .hero-lede, .hero-actions, .hero-beta, .hero-pron { animation: rise .9s var(--ease-out) both; }
  .hero-say { animation-delay: .35s; } .hero-lede { animation-delay: .5s; } .hero-actions { animation-delay: .62s; } .hero-beta { animation-delay: .7s; } .hero-pron { animation-delay: .8s; }
}
@keyframes wave-hello { 0% { transform: rotate(-2deg) scale(.6); opacity: 0; } 40% { transform: rotate(6deg) scale(1.04); opacity: 1; } 60% { transform: rotate(-6deg); } 80% { transform: rotate(2deg); } 100% { transform: rotate(-2deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* the table */
.stage { margin: 0; display: grid; justify-items: center; gap: 1rem; }
.table { position: relative; width: min(100%, 660px, calc(100svh - 12rem)); min-width: min(100%, 420px); aspect-ratio: 1; }
.table::after { /* the table's rim of ticks; masked on its own layer so bubbles are never clipped */
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, var(--night-2) 0 57%, transparent 57.3%),
    repeating-conic-gradient(from 0deg, var(--line) 0 1.2deg, transparent 1.2deg 6deg);
  -webkit-mask: radial-gradient(circle, #000 0 70.7%, transparent 70.8%);
  mask: radial-gradient(circle, #000 0 70.7%, transparent 70.8%);
}
.table::before { content: ""; position: absolute; inset: 21.5%; z-index: 1; border-radius: 50%; border: 2px dashed var(--line); }
.table > * { z-index: 2; }
.table > .packet { z-index: 1; }
.echo {
  position: absolute; z-index: 5; pointer-events: none; white-space: nowrap;
  padding: .3em .6em; border-radius: .9em .9em .9em .25em;
  background: var(--teal); color: #0b1d1e; font: 700 .78rem/1.1 var(--body);
  transform: translate(-50%, -70%); box-shadow: 0 8px 16px -8px #000;
}
.server {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; justify-items: center; gap: .2rem;
  width: 9.5rem; padding: .9rem .6rem .8rem;
  background: var(--night-3); border: 2px solid var(--line); border-radius: 22px;
  color: var(--ink-3);
  box-shadow: 0 18px 40px -18px #000;
  transition: border-color .25s, box-shadow .25s;
}
.server .ico { width: 1.8rem; height: 1.8rem; }
.server-name { font: 800 1.05rem/1 var(--display); color: var(--ink-2); }
.server-sees { font: 600 .82rem/1.2 var(--mono); color: var(--gold); letter-spacing: .02em; min-height: 1.2em; }
.server.busy { border-color: var(--gold); box-shadow: 0 0 0 6px rgb(224 176 76 / .12), 0 18px 40px -18px #000; }

.seats { list-style: none; margin: 0; padding: 0; }
.seat {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); translate: -50% -50%;
  display: grid; justify-items: center; gap: .85rem;
  width: var(--seat-w, clamp(4.6rem, 17%, 7.4rem)); z-index: 3;
}
.seat-btn {
  all: unset; cursor: pointer; position: relative; width: 100%; aspect-ratio: 1; border-radius: 26%;
  transition: transform .35s var(--spring);
}
.seat-btn:hover { transform: translateY(-4px) rotate(-3deg); }
.seat-btn:active { transform: scale(.94); }
.seat-btn:focus-visible { outline: 3px solid var(--terra-l); outline-offset: 4px; }
.seat-btn::after { /* speaking ring, teal like voice in the audio diagram */
  content: ""; position: absolute; inset: -7px; border-radius: 30%; border: 4px solid var(--teal);
  opacity: 0; transform: scale(.9); transition: opacity .2s, transform .3s var(--spring);
}
.seat.speaking .seat-btn::after { opacity: 1; transform: scale(1); animation: ring 0.5s ease-in-out infinite alternate; }
.seat.got .seat-btn { animation: nod .5s var(--spring); }
@keyframes ring { to { inset: -11px; border-color: var(--teal-l); } }
@keyframes nod { 40% { transform: translateY(-7px) rotate(4deg); } }
.seat-name { font: 800 1rem/1 var(--display); color: var(--ink-2); }
.seat.speaking .seat-name { color: var(--teal-l); }
.idle .seat-btn { animation: bob 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 50% { translate: 0 -5px; } }

.face { display: block; width: 100%; height: 100%; border-radius: 26%; overflow: hidden; box-shadow: 0 10px 22px -10px #000; }
.face-slot { display: block; }
.face svg { width: 100%; height: 100%; shape-rendering: crispEdges; }

.bubble {
  position: relative; display: inline-block; max-width: 15rem;
  padding: .55em .85em; border-radius: 1.1em 1.1em 1.1em .3em;
  background: var(--ink); color: #241c2c;
  font: 700 1rem/1.25 var(--body);
  box-shadow: 0 10px 24px -12px #000;
}
.bubble::after { content: ""; position: absolute; left: .5em; bottom: -.55em; width: .9em; height: .7em; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
.say { position: absolute; z-index: 3; left: 50%; bottom: calc(100% + .6rem); translate: -12% 0; width: max-content; pointer-events: none; transform-origin: 10% 100%; }
.seat.right .say { translate: -88% 0; border-radius: 1.1em 1.1em .3em 1.1em; }
.seat.right .say::after { left: auto; right: .5em; clip-path: polygon(0 0, 100% 0, 100% 100%); }

.packet {
  position: absolute; z-index: 2; left: 0; top: 0; pointer-events: none;
  padding: .18em .45em; border-radius: .5em;
  background: var(--gold); color: #2a1d05; font: 600 .72rem/1 var(--mono); white-space: nowrap;
  translate: -50% -50%; box-shadow: 0 6px 14px -6px #000;
}
.stage-cap { color: var(--ink-3); font-size: .95rem; text-align: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2.5rem; }
  .stage { order: 2; padding-top: 2.75rem; }
  .table { width: min(100%, 520px); }
  .server { width: 7.5rem; padding: .6rem .4rem; }
  .bubble { font-size: .9rem; max-width: 11rem; }
}

/* ---------- sections ---------- */
section { padding-block: var(--section); }
section[id]:not(.hero) { scroll-margin-top: calc(2rem - var(--section)); } /* anchor jumps skip the section's top padding: content lands 7rem down, like the sticky .smarts head */
.band { background: var(--night-2); border-block: 1px solid #2c1f2e; }
.section-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--ink-2); font-size: 1.15rem; max-width: 62ch; }

/* voice */
.noise { background: var(--night); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1rem, 2.5vw, 1.75rem); }
.noise-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1rem; }
.noise-label { font: 800 1.2rem/1 var(--display); }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border-radius: 14px; background: var(--night-3); max-width: 100%; }
.seg button {
  all: unset; cursor: pointer; padding: .5em .95em; border-radius: 10px;
  font: 700 .95rem/1 var(--body); color: var(--ink-2);
  transition: background .2s, color .2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--lav); color: #17121f; }
.seg button:focus-visible { outline: 3px solid var(--lav-l); outline-offset: 1px; }
.wave { width: 100%; height: auto; aspect-ratio: 1200 / 264; }
@media (max-width: 520px) { .seg button { padding: .5em .7em; font-size: .88rem; } }
.noise-note { margin-top: .75rem; color: var(--ink-3); font-size: .95rem; }

.pipe-wrap { margin-top: clamp(2rem, 4vw, 3rem); }
.pipe { width: 100%; height: auto; font-family: var(--body); }
.pipe-v { display: none; max-width: 420px; margin-inline: auto; }
@media (max-width: 700px) { .pipe-h { display: none; } .pipe-v { display: block; } }
.pipe-zone rect { fill: var(--night); stroke: var(--line); }
.pipe-zone text { fill: var(--ink-3); font: 700 15px var(--display); letter-spacing: .02em; }
.pipe-line { fill: none; stroke: var(--teal); stroke-width: 3; }
.pipe-line.secret { stroke: var(--gold); stroke-dasharray: 8 7; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -15; } }
.pulse { fill: var(--teal-l); }
.node circle, .node rect { fill: var(--night-3); stroke: var(--teal); stroke-width: 2.5; }
.node.model circle { stroke: var(--lav); fill: #251f33; }
.node.lock circle { stroke: var(--gold); }
.node.srv rect { stroke: var(--gold); stroke-dasharray: 5 5; fill: var(--night-2); }
.node use { color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.node text { fill: var(--ink-2); font-size: 14px; font-weight: 700; text-anchor: middle; }
.node.row text { text-anchor: start; font-size: 17px; }
.node.row .node-k { text-anchor: middle; font-size: 12px; }
.node.row .node-sub { font-size: 14px; }
.node .node-k { fill: var(--ink); font: 600 12px var(--mono); }
.node.srv .node-k { fill: var(--gold); }
.node .node-sub { fill: var(--ink-3); font-size: 12px; font-weight: 400; }
.pipe-spec { fill: var(--ink-3); font: 400 13px var(--mono); }

.voice-facts, .key-facts { list-style: none; margin: 0; padding: 0; }
.voice-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.voice-facts li, .key-facts li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-2); }
.voice-facts .ico { color: var(--teal-l); margin-top: .1em; }
.voice-facts b, .key-facts b { color: var(--ink); }
@media (max-width: 820px) { .voice-facts { grid-template-columns: 1fr; } }

/* everything */
.shot { margin: 0 0 clamp(3rem, 6vw, 5rem); }
.shot-frame { position: relative; border-radius: 22px; padding: 10px; background: linear-gradient(180deg, var(--night-3), var(--night-2)); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px #000, 0 0 0 1px #0c0a10; }
.shot-frame img { width: 100%; height: auto; border-radius: 14px; }
.shot figcaption { margin-top: .8rem; color: var(--ink-3); font-size: .9rem; text-align: right; }
.tag {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  padding: .5em .9em; border-radius: 1em 1em 1em .25em;
  font: 800 clamp(.8rem, 1.3vw, 1.02rem)/1.15 var(--display);
  background: var(--terra); color: var(--on-terra);
  box-shadow: 0 12px 24px -10px #000;
  rotate: -3deg; transition: rotate .4s var(--spring), scale .4s var(--spring);
}
.tag:hover { rotate: 2deg; scale: 1.06; }
.tag-voice { background: var(--teal); color: #0b1d1e; }
.tag-share { background: var(--gold); color: #2a1d05; rotate: 2deg; }
.tag-face { background: var(--lav); color: #17121f; rotate: 3deg; }
@media (max-width: 700px) { .tag { display: none; } }

/* features, said by the cast as chat lines */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem clamp(2rem, 5vw, 4rem); }
.feats li { display: flex; align-items: flex-end; gap: .9rem; }
.feats li:nth-child(4n + 2), .feats li:nth-child(4n + 3) { flex-direction: row-reverse; }
.feats .face-slot { width: 60px; flex: none; }
.feats li:nth-child(odd) .face-slot { rotate: -4deg; }
.feats li:nth-child(even) .face-slot { rotate: 4deg; }
.bubble.feat { max-width: none; flex: 1; padding: 1rem 1.2rem 1.1rem; border-radius: 1.3em 1.3em 1.3em .35em; font: 400 1rem/1.5 var(--body); }
.bubble.feat::after { left: 1em; }
.feats li:nth-child(4n + 2) .bubble.feat, .feats li:nth-child(4n + 3) .bubble.feat { border-radius: 1.3em 1.3em .35em 1.3em; }
.feats li:nth-child(4n + 2) .bubble.feat::after, .feats li:nth-child(4n + 3) .bubble.feat::after { left: auto; right: 1em; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.bubble.feat h3 { color: #241c2c; margin-bottom: .25rem; }
.bubble.feat p { color: #4a3f52; max-width: 46ch; }
.feats li:nth-child(3n + 2) .bubble.feat { background: #f3d9cc; }
.feats li:nth-child(3n) .bubble.feat { background: #d6ecec; }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr; } }

/* smarts: lavender is the on-device model in the audio diagram */
.smarts-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.smarts h2 { color: var(--lav-l); }
.smarts .section-head { position: sticky; top: 7rem; margin-bottom: 0; }
.peek { display: flex; align-items: flex-end; gap: .9rem; margin-top: 1.5rem; }
.peek .face-slot { width: 70px; flex: none; }
.peek .bubble { font-size: .98rem; }
.models { list-style: none; margin: 0; padding: 0; display: grid; }
.model { padding: 1.4rem 0 1.5rem; border-top: 2px solid rgb(155 138 196 / .4); }
.model:last-child { border-bottom: 2px solid rgb(155 138 196 / .4); }
.model h3 { color: var(--lav-l); margin-bottom: .35rem; }
.model p { color: var(--ink-2); max-width: 58ch; }
.model.tap h3 { color: var(--gold); }
@media (max-width: 900px) { .smarts-grid { grid-template-columns: 1fr; } .smarts .section-head { position: static; } }

/* keys */
.keys-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.keys .section-head { margin-bottom: 0; }
.keys h2 { color: var(--gold); }
.key-facts { display: grid; gap: .9rem; margin-top: .6rem; }
.key-facts .ico { color: var(--gold); margin-top: .1em; }
.vault { background: var(--night-2); border: 1px solid var(--line); border-radius: 28px; padding: 1.25rem; box-shadow: 0 40px 70px -40px #000; }
.vault-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem .4rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.vault-title { font: 800 1.25rem/1 var(--display); }
.switch { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.switch-knob { position: relative; width: 2.8rem; height: 1.6rem; border-radius: 1rem; background: var(--night-3); border: 1.5px solid var(--line); transition: background .25s; }
.switch-knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--ink-2); transition: translate .35s var(--spring), background .25s; }
.switch[aria-checked="true"] { color: var(--gold); }
.switch[aria-checked="true"] .switch-knob { background: rgb(224 176 76 / .25); border-color: var(--gold); }
.switch[aria-checked="true"] .switch-knob::after { translate: 1.2rem 0; background: var(--gold); }
.switch:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 10px; }
.chat { list-style: none; margin: 0; padding: 1rem .4rem; display: grid; gap: 1rem; }
.chat li { display: grid; grid-template-columns: 40px 1fr; column-gap: .8rem; }
.chat .face-slot { grid-row: span 2; width: 40px; }
.chat b { font-family: var(--display); font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.chat .msg { color: var(--ink-2); overflow-wrap: anywhere; transition: color .2s; }
.chat.sealed .msg { font-family: var(--mono); font-size: .9rem; color: var(--gold); }
.roll { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; margin-top: .5rem; padding: 1.1rem; border-radius: 20px; background: var(--night); }
.roll-face { width: 90px; }
.roll p { color: var(--ink-2); margin-bottom: .8rem; }
.roll p b { color: var(--ink); }
.roll-face.rolling .face { animation: tumble .45s var(--spring); }
@keyframes tumble { 0% { transform: rotate(0) scale(.7); } 60% { transform: rotate(14deg) scale(1.08); } 100% { transform: none; } }
@media (max-width: 900px) { .keys-grid { grid-template-columns: 1fr; } }

/* devs */
.devs-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.devs-grid > * { min-width: 0; }
.term { display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; border-radius: 24px; background: var(--night); border: 1px solid var(--line); }
.term header { display: flex; align-items: center; gap: .7rem; color: var(--terra-l); }
.term h3 { color: var(--ink); }
.term p { color: var(--ink-2); }
.term pre { margin: auto 0 0; padding: 1rem 1.1rem; border-radius: 14px; background: #0f0d14; border: 1px solid #2a2433; color: var(--ink); font-size: .88rem; line-height: 1.65; overflow-x: auto; }
.term .c { color: var(--ink-3); }
.term .p { color: var(--terra-l); user-select: none; }
.term .k { color: var(--lav-l); }
.term .s { color: var(--teal-l); }
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tools li { padding: .35em .7em; border-radius: 10px; background: var(--night-3); color: var(--gold); font: 600 .82rem/1 var(--mono); }
@media (max-width: 860px) { .devs-grid { grid-template-columns: 1fr; } }

/* download: the terracotta band */
.download { background: var(--terra); color: var(--on-terra); position: relative; overflow: hidden; }
.download a, .download a:hover { color: var(--on-terra); }
.download a:hover { text-decoration-thickness: .16em; }
.dl-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.dl-head h2 { grid-column: 1; }
.dl-head p { grid-column: 1; font-size: 1.2rem; font-weight: 700; color: var(--on-terra); }
.dl-cast { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .5rem; }
.dl-cast .face-slot { width: 70px; }
@media (max-width: 700px) { .dl-cast .face-slot { width: 50px; } }
.dl-cast .face-slot:nth-child(odd) { translate: 0 -.6rem; }
@media (prefers-reduced-motion: no-preference) { .dl-cast .face-slot { animation: hop 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); } }
@keyframes hop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-14px) rotate(-6deg); } 90% { transform: translateY(0) rotate(3deg); } }
@media (max-width: 700px) { .dl-head { grid-template-columns: 1fr; } .dl-cast { grid-column: 1; grid-row: auto; } }

.platforms { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1rem; }
.platform { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: 26px; background: var(--night); color: var(--ink); box-shadow: 0 30px 50px -28px #3b1205; }
.platform h3 { font-size: 1.7rem; }
.platform p { color: var(--ink-2); margin-bottom: .6rem; }
.platform.mine::before { /* tape: the visitor's system */
  content: "your system"; position: absolute; top: -.8rem; right: 1.2rem;
  padding: .3em .8em; background: var(--gold); color: #2a1d05;
  font: 800 .85rem/1 var(--display); letter-spacing: .02em; rotate: 4deg; border-radius: 3px;
  box-shadow: 0 4px 8px -4px rgb(0 0 0 / .5);
}
.files { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
.file {
  display: grid; gap: .15rem; padding: .8rem 1rem; border-radius: 16px;
  background: var(--night-3); border: 1.5px solid var(--line); color: var(--ink) !important; text-decoration: none;
  transition: transform .2s var(--spring), border-color .2s, background .2s;
}
.file span { font: 800 1.15rem/1.1 var(--display); }
.file small { color: var(--ink-3); font-size: .85rem; }
.file:hover { transform: translateY(-3px); border-color: var(--terra-l); background: #322a3e; }
.file:focus-visible { outline-color: var(--ink); }
.platform .pf-note { margin: .4rem 0 0; font-size: .9rem; color: var(--ink-3); }
.sums { margin-top: 1.4rem; font-weight: 700; color: var(--on-terra); }
.download a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.beta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem); padding: 1.5rem;
  border-radius: 26px; background: var(--night); color: var(--ink); box-shadow: 0 30px 50px -28px #3b1205;
}
.beta .face-slot { width: 70px; }
.beta h3 { font-size: 1.7rem; }
.beta p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 700px) { .beta { grid-template-columns: auto 1fr; } .beta .btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }

.soon {
  position: relative; display: flex; align-items: center; gap: 1rem;
  width: fit-content; max-width: 100%; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1rem 4.5rem 1rem 1.2rem;
  border: 2px dashed rgb(27 12 6 / .45); border-radius: 18px; color: var(--on-terra);
}
.soon .ico { width: 1.8rem; height: 1.8rem; }
.soon p { font-size: 1.05rem; }
.stamp {
  position: absolute; right: -.9rem; top: 50%; translate: 0 -50%; rotate: -14deg;
  padding: .2em .55em; border: 3px solid var(--on-terra); border-radius: 8px;
  font: 800 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--on-terra);
  background: var(--terra);
}

/* footer */
.foot { padding-block: 3rem; border-top: 1px solid #241f2e; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; color: var(--ink-3); font-size: .95rem; }
.foot .brand { font-size: 1.3rem; }
.foot .legal { margin-left: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.foot-links a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* reveal: content is visible by default; only with script and motion allowed does it rise in */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
}
