/*
 * sonn — the product site.
 *
 * The identity is not invented here. It is the one the server already draws on `/`
 * (`public/index.html`): near-black ground, a single green accent, one hairline as the
 * structural device, Hanken Grotesk for what things *are* and JetBrains Mono — engraved,
 * uppercase, tracked out — for what things are *called*. This file carries that to a page
 * that has to hold ten screens instead of two links, so it adds scale, rhythm, light and
 * motion — and nothing that isn't already in the product's vocabulary. The logo is a
 * roofline over a level meter; every animated element on this page is one of those two
 * things at a different size.
 *
 * No build step, no dependency, no request that leaves the box: the two fonts sit next to
 * this file, the icons are inline SVG, and everything else is a rule below.
 */

/* --- the two faces ------------------------------------------------------- */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* --- tokens -------------------------------------------------------------- */

:root {
  /* Straight from the front door, so arriving here is not a change of room. */
  --bg: #0a0c10;
  --text: #edeef0;
  --muted: #9ca3af;
  --dim: #6b7280;
  --accent: #4ade80;
  --accent-2: #2dd4bf;
  --line: rgb(255 255 255 / 14%);

  /* What a page of this length needs on top of a page with two links on it. */
  --line-soft: rgb(255 255 255 / 7%);
  --surface: rgb(255 255 255 / 3%);
  --surface-2: rgb(255 255 255 / 5%);
  --accent-ink: #07120c;
  --amber: #f0b429;
  --blue: #a9c8ff;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --page: 1180px;
  --pad: clamp(20px, 5vw, 56px);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* The sticky bar is 57px; anchors land under it otherwise. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/*
 * Grain. A near-black page with soft gradients bands on cheap panels; a whisper of noise
 * on top reads as material instead. Generated here, drawn once, costs nothing.
 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: rgb(74 222 128 / 25%);
}

:focus-visible {
  outline: 2px solid rgb(74 222 128 / 55%);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- reading progress ------------------------------------------------------ */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 12px rgb(74 222 128 / 55%);
}

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

/*
 * The engraved label. Mono, caps, tracked out — the product uses this for what a thing is
 * *called* (`github`, `docs`, `technical`), never for what it is. Every section opens with one.
 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.eyebrow-center {
  justify-content: center;
}

/* The positioning line over the headline — engraved, like every label in the product. */
.hero-eyebrow {
  margin-top: 30px;
  color: var(--muted);
}

.hero-eyebrow::before {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 8px rgb(74 222 128 / 60%);
}

.hero-eyebrow + h1,
.hero-eyebrow ~ h1 {
  margin-top: 14px;
}

/*
 * Headings are cut from light: white at the cap line falling to grey at the baseline.
 * It is the one indulgence the type allows itself, and it is what makes the near-black
 * ground read as depth instead of absence.
 */
.h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 28%, #aab2bf 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.h2 code {
  background: none;
  padding: 0;
  font-size: 0.92em;
  -webkit-text-fill-color: var(--accent);
}

.h2-sub {
  font-size: clamp(24px, 3vw, 34px);
}

.h3 {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 62ch;
  margin-top: 18px;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.lede-sub {
  font-size: 15.5px;
}

.quiet {
  color: var(--dim);
}

.hl {
  color: var(--accent);
}

/* Inline code, and the little format stamps used all over the signal path. */
code,
.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  font-variant-ligatures: none;
}

code {
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--surface-2);
  color: #cfe9d9;
}

/* --- layout -------------------------------------------------------------- */

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  position: relative;
  padding: clamp(76px, 11vh, 130px) 0;
}

/* One hairline between sections — the construction both corners of the product use. */
section + section {
  border-top: 1px solid var(--line-soft);
}

/*
 * Each chapter carries its number, engraved into the dark at poster size — outline only,
 * barely above black, the way the product engraves its labels.
 */
section[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: clamp(28px, 6vh, 72px);
  right: max(2vw, calc((100vw - var(--page)) / 2 - 40px));
  z-index: 0;
  font-family: var(--sans);
  font-size: clamp(96px, 15vw, 210px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 6%);
  pointer-events: none;
  user-select: none;
}

.section-head {
  max-width: 760px;
}

.cols {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}

.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.mt-l {
  margin-top: clamp(38px, 6vh, 64px);
}

.mt-m {
  margin-top: 28px;
}

/* --- reveal on scroll ---------------------------------------------------- */

/*
 * Rise, and come into focus: blur-to-sharp is what makes the arrival feel printed.
 * The hidden state exists only under `.js` (stamped in <head>), so a browser with
 * scripts off gets the whole page standing still instead of standing empty.
 */
.js .rise {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(7px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
}

.js .rise.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --- top bar ------------------------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.bar.stuck {
  background: rgb(10 12 16 / 78%);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px) saturate(1.3);
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 57px;
}

.bar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.bar-brand svg {
  width: 24px;
  height: 19px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgb(74 222 128 / 45%));
}

.bar-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.bar-nav a {
  position: relative;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
}

/* The engraved underline draws itself under the link being considered. */
.bar-nav a::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.bar-nav a:hover::after,
.bar-nav a.now::after {
  transform: scaleX(1);
}

.bar-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

/* The scrollspy's answer to "where am I": the label lights, quietly. */
.bar-nav a.now {
  color: var(--accent);
}

/* --- the language switch: two engraved labels, one lit ---------------------- */

.bar-lang {
  display: flex;
  align-items: center;
  gap: 1px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bar-lang a {
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--dim);
  transition:
    color 0.2s,
    background 0.2s;
}

.bar-lang a:hover {
  color: var(--text);
  background: var(--surface);
}

.bar-lang a.on {
  color: var(--accent);
}

/* --- the burger: three meter bars that become a cross ---------------------- */

.bar-burger {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: none;
  cursor: pointer;
}

.bar-burger i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--muted);
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s,
    background 0.2s;
}

.bar-burger i:nth-child(1) { top: 12px; }
.bar-burger i:nth-child(2) { top: 18px; }
.bar-burger i:nth-child(3) { top: 24px; }

.bar-burger[aria-expanded='true'] i {
  background: var(--accent);
}

.bar-burger[aria-expanded='true'] i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.bar-burger[aria-expanded='true'] i:nth-child(2) {
  opacity: 0;
}

.bar-burger[aria-expanded='true'] i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .bar-nav {
    position: absolute;
    top: 57px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px var(--pad) 16px;
    border-bottom: 1px solid var(--line-soft);
    background: rgb(10 12 16 / 94%);
    backdrop-filter: blur(16px);
  }

  .bar-nav.open {
    display: flex;
  }

  .bar-nav a {
    padding: 11px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .bar-nav a::after {
    display: none;
  }

  .bar-burger {
    display: block;
  }
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.3s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--surface);
  border-color: rgb(255 255 255 / 24%);
}

.btn-primary {
  background: linear-gradient(180deg, #58e392, var(--accent));
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 35%),
    0 4px 24px -6px rgb(74 222 128 / 45%);
}

/* A light passes over the primary button when asked for attention. */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 45%) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 35%),
    0 6px 32px -6px rgb(74 222 128 / 65%);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.hero {
  position: relative;
  padding-top: clamp(64px, 10vh, 110px);
  padding-bottom: 0;
  overflow: hidden;
}

/* The same faint glow overhead that the front door and both bundles have — plus weather. */
.hero-aurora {
  position: absolute;
  inset: -260px 0 auto;
  height: 820px;
  background:
    radial-gradient(58% 46% at 50% 0%, rgb(74 222 128 / 14%), transparent 62%),
    radial-gradient(42% 42% at 84% 10%, rgb(45 212 191 / 8%), transparent 70%),
    radial-gradient(36% 38% at 12% 16%, rgb(74 222 128 / 6%), transparent 70%);
  pointer-events: none;
  animation: aurora 14s ease-in-out infinite alternate;
}

@keyframes aurora {
  to {
    transform: translateX(4%) scale(1.06);
    opacity: 0.85;
  }
}

/* The sea of samples: a 3D field of points the house floats on, projected by hand. */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 300px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, black 45%);
}

.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(64px, 10vh, 110px);
}

@media (max-width: 940px) {
  .hero-in {
    grid-template-columns: 1fr;
  }
}

.hero-mark {
  width: 66px;
  height: 53px;
  color: var(--accent);
  view-transition-name: sonn-mark;
  filter: drop-shadow(0 0 16px rgb(74 222 128 / 40%));
}

/*
 * The mark's own entrance — ported from the Admin UI, where the product introduces
 * itself the same way: the roofline draws, each bar dances once (overshoot, settle),
 * and then the logo simply STANDS in its designed shape. One-shot, pure CSS; it ends
 * static because the logo is the brand, not a meter.
 */
.mark-roof {
  stroke-dasharray: 96;
  stroke-dashoffset: 96;
  animation: peak-draw 0.85s var(--ease) 0.55s both;
}

@keyframes peak-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.mark-bars rect {
  transform-box: fill-box;
  transform-origin: center bottom;
}

@keyframes bar-dance-a {
  0% { opacity: 0; transform: scaleY(0); }
  15% { opacity: 1; transform: scaleY(1.7); }
  30% { transform: scaleY(0.55); }
  45% { transform: scaleY(1.4); }
  60% { transform: scaleY(0.7); }
  75% { transform: scaleY(1.25); }
  88% { transform: scaleY(0.9); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes bar-dance-b {
  0% { opacity: 0; transform: scaleY(0); }
  12% { opacity: 1; transform: scaleY(1.4); }
  28% { transform: scaleY(0.8); }
  42% { transform: scaleY(1.6); }
  57% { transform: scaleY(0.45); }
  72% { transform: scaleY(1.3); }
  86% { transform: scaleY(0.75); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes bar-dance-c {
  0% { opacity: 0; transform: scaleY(0); }
  18% { opacity: 1; transform: scaleY(1.5); }
  33% { transform: scaleY(0.6); }
  48% { transform: scaleY(1.7); }
  62% { transform: scaleY(0.85); }
  77% { transform: scaleY(1.15); }
  90% { transform: scaleY(0.95); }
  to { opacity: 1; transform: scaleY(1); }
}

/* The dance fans out from the middle bar — the Admin UI's own choreography, verbatim. */
.mark-bars rect:nth-child(1) { animation: bar-dance-a 1.5s var(--ease) 0.55s backwards; }
.mark-bars rect:nth-child(2) { animation: bar-dance-b 1.5s var(--ease) 0.48s backwards; }
.mark-bars rect:nth-child(3) { animation: bar-dance-c 1.5s var(--ease) 0.4s backwards; }
.mark-bars rect:nth-child(4) { animation: bar-dance-a 1.5s var(--ease) 0.32s backwards; }
.mark-bars rect:nth-child(5) { animation: bar-dance-b 1.5s var(--ease) 0.25s backwards; }
.mark-bars rect:nth-child(6) { animation: bar-dance-c 1.5s var(--ease) 0.25s backwards; }
.mark-bars rect:nth-child(7) { animation: bar-dance-a 1.5s var(--ease) 0.32s backwards; }
.mark-bars rect:nth-child(8) { animation: bar-dance-b 1.5s var(--ease) 0.4s backwards; }
.mark-bars rect:nth-child(9) { animation: bar-dance-c 1.5s var(--ease) 0.48s backwards; }
.mark-bars rect:nth-child(10) { animation: bar-dance-a 1.5s var(--ease) 0.55s backwards; }

.hero h1 {
  margin-top: 26px;
  font-size: clamp(42px, 7.4vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

/* Each line steps out from behind its own baseline, one beat apart. */
.hero .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero .line-in {
  display: inline-block;
  background: linear-gradient(180deg, #fff 30%, #a9b1be 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.js .hero .line-in {
  transform: translateY(112%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(0.5s + var(--l, 0) * 0.13s);
}

.js.hero-go .hero .line-in {
  transform: translateY(0);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  margin-top: 22px;
  max-width: 54ch;
}

.hero .actions {
  margin-top: 32px;
}

/* The status line under the fold — mono, because it is a set of labels. */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-facts span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgb(74 222 128 / 90%);
}

/* --- hero stack: the room board with the technical view behind it --------- */

/*
 * Two of the product's own cards on a desk, the back one peeking out. The whole stack
 * leans a few degrees toward the pointer — enough to feel physical, never enough to
 * become a gimmick.
 */
.stack {
  position: relative;
  perspective: 1200px;
  /* --drift: the slow counter-scroll the hero hands the stack on the way out. */
  translate: 0 var(--drift, 0px);
}

.stack-front,
.stack-back {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s var(--ease);
  will-change: transform;
}

.stack-back {
  position: absolute;
  top: -44px;
  right: -14px;
  left: 12%;
  z-index: 0;
  padding: 14px 18px 40px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(168deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 1%));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(1.6deg) translateZ(-40px);
}

.stack-back-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.stack-back-v {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  font-size: 13px;
  color: var(--muted);
}

.stack-back-f {
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--dim);
}

.chiplet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgb(74 222 128 / 45%);
  border-radius: 999px;
  background: rgb(74 222 128 / 10%);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.chiplet svg {
  width: 11px;
  height: 11px;
}

.panel {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(168deg, rgb(255 255 255 / 5.5%), rgb(255 255 255 / 1.5%)),
    rgb(10 12 16 / 88%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 7%),
    0 40px 90px -50px rgb(0 0 0 / 100%),
    0 0 80px -40px rgb(74 222 128 / 25%);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

/* A hairline of light along the panel's top edge, where the glow overhead lands on it. */
.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(74 222 128 / 45%), transparent);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.panel-bar-right {
  margin-left: auto;
  letter-spacing: 0.1em;
  color: var(--dim);
  opacity: 0.8;
}

.panel-bar .dot {
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.room {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  transition: background 0.25s;
}

.room:hover {
  background: rgb(255 255 255 / 2.5%);
}

.room + .room {
  border-top: 1px solid var(--line-soft);
}

.room-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
}

.room-icon svg {
  width: 17px;
  height: 17px;
}

.room[data-live] .room-icon {
  background: rgb(74 222 128 / 12%);
  color: var(--accent);
  box-shadow: inset 0 0 12px rgb(74 222 128 / 12%);
}

.room-main {
  min-width: 0;
}

.room-name {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.room-now {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The first room is mid-track: a hairline of progress with a lit head. */
.room-progress {
  display: block;
  position: relative;
  height: 2px;
  margin-top: 7px;
  border-radius: 1px;
  background: rgb(255 255 255 / 7%);
  overflow: visible;
}

.room-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 41%;
  border-radius: 1px;
  background: linear-gradient(90deg, rgb(74 222 128 / 45%), var(--accent));
  box-shadow: 0 0 8px rgb(74 222 128 / 55%);
  animation: creep 240s linear forwards;
}

@keyframes creep {
  to {
    width: 96%;
  }
}

/* The 10-bar level meter from the mark, alive. */
.meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.meter i {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform-origin: bottom;
  transform: scaleY(0.12);
  opacity: 0.9;
}

.meter.idle i {
  background: var(--dim);
  transform: scaleY(0.1) !important;
  opacity: 0.5;
}

.tag-chip {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.tag-chip.ok {
  border-color: rgb(74 222 128 / 35%);
  color: var(--accent);
  background: rgb(74 222 128 / 8%);
}

.tag-chip.warn {
  border-color: rgb(240 180 41 / 35%);
  color: var(--amber);
  background: rgb(240 180 41 / 8%);
}

/* The receiver roster under its row — every protocol a zone can be played *to* over. */
.receiver-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

@media (max-width: 940px) {
  .stack-back {
    display: none;
  }
}

/* --- the marquee: everything it speaks, on one belt ------------------------ */

.marquee {
  position: relative;
  z-index: 1;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6em;
  width: max-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  animation: belt 52s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track i {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
}

@keyframes belt {
  to {
    transform: translateX(-50%);
  }
}

/* --- copyable command ---------------------------------------------------- */

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgb(0 0 0 / 35%);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.3s;
}

.cmd:hover {
  border-color: rgb(74 222 128 / 40%);
  box-shadow: 0 0 20px -6px rgb(74 222 128 / 30%);
}

.cmd .sig {
  color: var(--accent);
  user-select: none;
}

.cmd .copy {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.cmd.copied .copy {
  color: var(--accent);
}

/* --- the two doors ------------------------------------------------------- */

/*
 * The product's central fork, drawn the way the front door draws its own: two panels either
 * side of one hairline. It is the same idea one level up — content server, or multiroom.
 */
.doors {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(22px, 4vw, 54px);
  margin-top: clamp(38px, 6vh, 60px);
}

.doors .rule {
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

@media (max-width: 820px) {
  .doors {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .doors .rule {
    height: 1px;
    background: var(--line);
  }
}

/* Each half catches the light where the pointer is — the same spotlight the cards use. */
.door-panel {
  position: relative;
  padding: clamp(4px, 1vw, 12px);
  border-radius: 16px;
}

.door-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgb(74 222 128 / 5%), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.door-panel:hover::after {
  opacity: 1;
}

.door-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.75;
}

.door-title {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #fff 30%, #b3bac6 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.door-sub {
  margin-top: 12px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
}

.door-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.door-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  font-size: 14.5px;
  color: var(--muted);
}

.door-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
  box-shadow: 0 0 8px rgb(74 222 128 / 50%);
}

.door-note {
  margin-top: 22px;
  padding: 13px 15px;
  border-left: 2px solid rgb(74 222 128 / 35%);
  font-size: 13.5px;
  color: var(--dim);
  background: linear-gradient(90deg, rgb(74 222 128 / 4%), transparent 60%);
  border-radius: 0 8px 8px 0;
}

/* --- the signal path ----------------------------------------------------- */

.sig-wrap {
  position: relative;
  margin-top: clamp(34px, 5vh, 54px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(168deg, rgb(255 255 255 / 4.5%), rgb(255 255 255 / 1%)),
    rgb(10 12 16 / 60%);
  overflow: hidden;
}

/* The lit top edge — same treatment as the hero panel, same light source. */
.sig-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(74 222 128 / 40%), transparent);
}

.sig-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-bottom: 1px solid var(--line-soft);
}

.sig-group {
  padding: 18px 20px;
}

.sig-group + .sig-group {
  border-left: 1px solid var(--line-soft);
}

@media (max-width: 620px) {
  .sig-group + .sig-group {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
}

.sig-group h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.25s;
}

.chip:hover {
  color: var(--text);
  border-color: rgb(255 255 255 / 26%);
}

.chip[aria-pressed='true'],
.chip[aria-checked='true'] {
  background: rgb(74 222 128 / 12%);
  border-color: rgb(74 222 128 / 45%);
  color: var(--accent);
  box-shadow: 0 0 16px -4px rgb(74 222 128 / 35%);
  animation: chip-pop 0.3s var(--ease);
}

@keyframes chip-pop {
  40% {
    transform: scale(1.06);
  }
}

.sig-stage-wrap {
  padding: clamp(22px, 4vw, 34px) clamp(16px, 3vw, 28px);
}

/* The chain itself: source → stages → output. Scrolls sideways on a phone rather than wrapping,
   because a signal path that wraps stops reading as a path. */
.chain {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.node {
  flex: 0 0 auto;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(0 0 0 / 28%);
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    opacity 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

/* The chain assembles stage by stage as the panel arrives — cascade, then live. */
.js .sig-wrap .node,
.js .sig-wrap .link {
  opacity: 0;
  translate: -14px 0;
  transition:
    opacity 0.6s var(--ease),
    translate 0.6s var(--ease);
}

.js .sig-wrap.in .node,
.js .sig-wrap.in .link {
  opacity: 1;
  translate: 0 0;
}

.js .sig-wrap.in .chain > *:nth-child(2) { transition-delay: 0.1s; }
.js .sig-wrap.in .chain > *:nth-child(3) { transition-delay: 0.2s; }
.js .sig-wrap.in .chain > *:nth-child(4) { transition-delay: 0.3s; }
.js .sig-wrap.in .chain > *:nth-child(5) { transition-delay: 0.4s; }
.js .sig-wrap.in .chain > *:nth-child(6) { transition-delay: 0.5s; }
.js .sig-wrap.in .chain > *:nth-child(7) { transition-delay: 0.6s; }
.js .sig-wrap.in .chain > *:nth-child(8) { transition-delay: 0.7s; }
.js .sig-wrap.in .chain > *:nth-child(9) { transition-delay: 0.8s; }

/* Once assembled, a bypassed node still reads as bypassed. */
.js .sig-wrap.in .node.bypass {
  opacity: 0.42;
}

.node-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.node-v {
  margin-top: 7px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.node-f {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* A stage that does nothing is drawn as doing nothing — greyed, dashed, and saying "bypassed". */
.node.bypass {
  border-style: dashed;
  border-color: var(--line-soft);
  background: none;
  opacity: 0.42;
}

.node.touches {
  border-color: rgb(240 180 41 / 45%);
  background: rgb(240 180 41 / 7%);
  box-shadow: 0 0 24px -8px rgb(240 180 41 / 30%);
}

.node.touches .node-k {
  color: var(--amber);
}

.node.endpoint {
  border-color: rgb(74 222 128 / 35%);
  background: rgb(74 222 128 / 7%);
  box-shadow: 0 0 24px -8px rgb(74 222 128 / 35%);
}

.node.endpoint .node-k {
  color: var(--accent);
}

.link {
  flex: 1 0 26px;
  min-width: 26px;
  align-self: center;
  height: 1px;
  background: var(--line);
  position: relative;
}

/* A packet running the wire — one per link, staggered, and only while the chain is intact. */
.link::after {
  content: '';
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: flow 2.4s linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes flow {
  0% {
    transform: translateX(-24px);
    opacity: 0;
  }

  15%,
  85% {
    opacity: 0.9;
  }

  100% {
    transform: translateX(calc(100% + 4px));
    opacity: 0;
  }
}

.verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Seen changing: a small pop each time the verdict is re-handed-down. */
.verdict-badge.pop {
  animation: pop 0.45s var(--ease);
}

@keyframes pop {
  30% {
    transform: scale(1.08);
  }
}

.verdict-badge svg {
  width: 14px;
  height: 14px;
}

.verdict-badge[data-v='perfect'] {
  border-color: rgb(74 222 128 / 45%);
  background: rgb(74 222 128 / 10%);
  color: var(--accent);
  box-shadow: 0 0 24px -6px rgb(74 222 128 / 40%);
}

.verdict-badge[data-v='untouched'] {
  border-color: rgb(160 200 255 / 35%);
  background: rgb(160 200 255 / 8%);
  color: var(--blue);
  box-shadow: 0 0 24px -6px rgb(160 200 255 / 30%);
}

.verdict-badge[data-v='altered'] {
  border-color: rgb(240 180 41 / 45%);
  background: rgb(240 180 41 / 9%);
  color: var(--amber);
  box-shadow: 0 0 24px -6px rgb(240 180 41 / 30%);
}

.verdict-why {
  flex: 1 1 280px;
  min-width: 0;
  font-size: 14px;
  color: var(--muted);
}

.sig-foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--dim);
  max-width: 78ch;
}

/* --- cards --------------------------------------------------------------- */

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

/* The pointer is a torch: cards light where it is. */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgb(74 222 128 / 7%), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  border-color: rgb(74 222 128 / 22%);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.card-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgb(74 222 128 / 11%);
  color: var(--accent);
  box-shadow: inset 0 0 14px rgb(74 222 128 / 10%);
}

.card-ico svg {
  width: 18px;
  height: 18px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 9px;
  font-size: 14px;
  color: var(--muted);
}

.card ul {
  margin-top: 13px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--dim);
}

.card li::before {
  content: '— ';
  color: rgb(74 222 128 / 40%);
}

/* --- the house: the mark, unfolded — scrollytelling ------------------------ */

/*
 * The tall track the scene plays along. The figure pins in the middle of the screen
 * while the wrapper's extra height is spent scrubbing the choreography; without JS
 * there is no extra height and no pin — just the finished drawing in the flow.
 */
.scrolly-on .scrolly {
  height: 280vh;
}

.scrolly-on .scrolly-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.scrolly-on .scrolly-pin .wrap {
  width: 100%;
}

/* Everything the scrub reveals starts dark — but only while the scrub is armed. */
.scrolly-on .h-shell,
.scrolly-on .h-core,
.scrolly-on .h-risers,
.scrolly-on .h-room,
.scrolly-on .h-groupline,
.scrolly-on .house-caption {
  opacity: 0;
}

@media (max-width: 700px) {
  .scrolly-on .scrolly {
    height: 220vh;
  }
}

.house {
  margin-top: clamp(38px, 6vh, 64px);
}

.scrolly-on .house {
  margin-top: 0;
}

.house svg {
  width: 100%;
  height: auto;
  max-height: 74vh;
}

/* the roofline — the logo's own stroke, glowing faintly over the rooms */
.h-roof {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgb(74 222 128 / 35%));
}

.h-wall {
  fill: rgb(255 255 255 / 1.5%);
  stroke: var(--line);
  stroke-width: 1;
}

.h-line {
  stroke: var(--line-soft);
  stroke-width: 1;
}

.h-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--muted);
}

.h-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--dim);
}

/* speakers: a lit point with a sonar ring; grouped rooms ring in step */
.h-spk {
  fill: var(--accent);
}

.h-spk.is-idle {
  fill: var(--dim);
  opacity: 0.6;
}

.h-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: sonar 3.2s var(--ease) infinite;
}

.h-ring.is-grouped {
  animation-duration: 2.4s;
  /* both group members share the default delay: they ring together, because they play together */
}

.h-ring:not(.is-grouped) {
  animation-delay: 1.1s;
}

@keyframes sonar {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(4.5);
  }
}

/* room meters: the logo's bars again, room-sized; grouped rooms march in step */
.h-meter rect {
  fill: var(--muted);
  opacity: 0.65;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.h-meter.is-idle rect {
  fill: var(--dim);
  opacity: 0.3;
  transform: scaleY(0.25);
}

.h-meter .m {
  animation: hbar 1.15s ease-in-out infinite alternate;
}

.h-meter .m1 {
  animation-delay: 0s;
}

.h-meter .m2 {
  animation-delay: 0.18s;
}

.h-meter .m3 {
  animation-delay: 0.36s;
}

.h-meter .m4 {
  animation-delay: 0.1s;
}

.h-meter.is-grouped rect {
  fill: var(--accent);
  opacity: 0.85;
}

@keyframes hbar {
  from {
    transform: scaleY(0.25);
  }

  to {
    transform: scaleY(1);
  }
}

/* the group, drawn: one marching line between the two speakers */
.h-group {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 4 7;
  opacity: 0.5;
  animation: march 1.4s linear infinite;
}

@keyframes march {
  to {
    stroke-dashoffset: -22;
  }
}

.h-group-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--accent);
  text-anchor: middle;
  opacity: 0.8;
}

/* packet risers: audio leaving the basement for the rooms */
.h-riser {
  stroke: var(--line-soft);
  stroke-width: 1;
  stroke-dasharray: 1 5;
}

.h-pkt {
  fill: var(--accent);
  opacity: 0;
  animation: pkt-rise var(--dur, 3s) linear infinite;
  animation-delay: var(--del, 0s);
}

@keyframes pkt-rise {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  12%,
  80% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateY(var(--dy, -120px));
  }
}

/* the basement: where the server lives */
.h-core-box {
  fill: rgb(74 222 128 / 5%);
  stroke: rgb(74 222 128 / 30%);
  stroke-width: 1;
}

.h-core-dot {
  fill: var(--accent);
  animation: pulse 2.6s var(--ease) infinite;
}

.h-core-name {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: var(--accent);
}

.h-core-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--dim);
}

.house-caption {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}

@media (max-width: 640px) {
  .house .h-sub {
    display: none;
  }
}

/* --- source / output tiles ----------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
  margin-top: clamp(38px, 6vh, 56px);
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 550;
  overflow: hidden;
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.25s var(--ease);
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgb(74 222 128 / 8%), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tile:hover::after {
  opacity: 1;
}

.tile:hover {
  border-color: rgb(74 222 128 / 25%);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.tile b {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tile small {
  display: block;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.tile .glyph {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.tile.star {
  border-color: rgb(74 222 128 / 32%);
  background: rgb(74 222 128 / 7%);
  box-shadow: 0 0 24px -8px rgb(74 222 128 / 25%);
}

.tile.star .glyph {
  background: rgb(74 222 128 / 14%);
  color: var(--accent);
}

/* --- the player, drawn: a phone in the product's own panel style ----------- */

.phone-wrap {
  display: grid;
  place-items: center;
}

.phone {
  width: min(300px, 78vw);
  padding: 18px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(168deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1.5%)),
    rgb(10 12 16 / 90%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 7%),
    0 50px 100px -50px rgb(0 0 0 / 100%),
    0 0 90px -40px rgb(74 222 128 / 25%);
  transform: rotate(1.6deg);
  transition: transform 0.4s var(--ease);
}

.phone:hover {
  transform: rotate(0deg) translateY(-4px);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-top: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 20% 0%, rgb(74 222 128 / 14%), transparent 55%),
    radial-gradient(120% 100% at 90% 100%, rgb(45 212 191 / 10%), transparent 55%),
    rgb(0 0 0 / 30%);
  color: rgb(74 222 128 / 45%);
}

.phone-cover svg {
  width: 42%;
}

.phone-title {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.phone-artist {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--dim);
}

.phone-progress {
  position: relative;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: rgb(255 255 255 / 8%);
}

.phone-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgb(74 222 128 / 50%), var(--accent));
  box-shadow: 0 0 8px rgb(74 222 128 / 55%);
  animation: creep 260s linear forwards;
}

.phone-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 16px;
}

.phone-transport svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.phone-play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 24px -4px rgb(74 222 128 / 55%);
}

.phone-play svg {
  width: 19px;
  height: 19px;
  color: var(--accent-ink);
}

.phone-queue {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.phone-queue-k {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.phone-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0 0;
  font-size: 13px;
}

.phone-row .mono {
  font-size: 10px;
}

/* --- the beoremote one --------------------------------------------------- */

.remote-split {
  margin-top: clamp(48px, 8vh, 76px);
  align-items: center;
}

.remote-p {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 14.5px;
  color: var(--muted);
}

/* The remote itself, cut out — it lies on the page, no frame between them. */
.remote-photo {
  max-width: 380px;
  margin: 0 auto;
}

.remote-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) drop-shadow(0 34px 50px rgb(0 0 0 / 85%)) drop-shadow(0 0 60px rgb(74 222 128 / 8%));
}

.remote-photo .shot-caption {
  border-top: 0;
  margin-top: 14px;
  text-align: center;
}

/* --- real screenshots, framed ---------------------------------------------- */

/* A window frame in the site's own chrome; the pixels inside are the product's. */
.shot {
  margin-top: clamp(38px, 6vh, 56px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(0 0 0 / 45%);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 40px 90px -50px rgb(0 0 0 / 100%),
    0 0 80px -40px rgb(74 222 128 / 18%);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* The real player in the drawn bezel: the frame is ours, the screen is the product's. */
.phone-real {
  padding: 10px;
}

.phone-real img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.phone-real .shot-caption {
  border-top: 0;
  padding: 12px 4px 2px;
  text-align: center;
}

/* --- sonn ♥ sendspin -------------------------------------------------------- */

/* The one output that gets a love letter: the same panel language, lit green. */
.spin-love {
  position: relative;
  max-width: 860px;
  margin-top: clamp(30px, 5vh, 44px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgb(74 222 128 / 30%);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 8% 0%, rgb(74 222 128 / 8%), transparent 55%),
    var(--surface);
  box-shadow: 0 0 60px -24px rgb(74 222 128 / 30%);
  overflow: hidden;
}

.spin-love::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(74 222 128 / 50%), transparent);
}

.spin-love .eyebrow {
  color: var(--accent);
}

.spin-love .h3 {
  margin-top: 12px;
}

.spin-love p {
  margin-top: 12px;
  max-width: 68ch;
  font-size: 14.5px;
  color: var(--muted);
}

/* --- feature rows (zones) ------------------------------------------------ */

.rows {
  margin-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 2.1fr);
  gap: clamp(10px, 3vw, 34px);
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s;
}

@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.row dt {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.row dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* --- split feature (loxone / ha) ----------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- the pairing: miniserver ⇄ sonn, handshake on a wire -------------------- */

.pairing {
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--surface);
}

.pair-box {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.pair-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.pair-ico {
  width: 34px;
  height: 34px;
  color: var(--muted);
}

/* The whole scene breathes on an 6s cycle: reach out, answer, go green, hold. */
.pair-mark {
  color: var(--dim);
  animation: pair-green 6s var(--ease) infinite;
}

@keyframes pair-green {
  0%,
  38% {
    color: var(--dim);
  }

  55%,
  92% {
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgb(74 222 128 / 45%));
  }

  100% {
    color: var(--dim);
  }
}

.pair-wire {
  position: relative;
  height: 1px;
  background: var(--line);
}

.pair-pkt {
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  animation: pair-go 6s linear infinite;
}

.pair-pkt.fro {
  animation-name: pair-back;
}

@keyframes pair-go {
  2% {
    opacity: 0;
    left: 0;
  }

  6%,
  22% {
    opacity: 1;
  }

  26% {
    opacity: 0;
    left: calc(100% - 18px);
  }

  100% {
    opacity: 0;
    left: calc(100% - 18px);
  }
}

@keyframes pair-back {
  0%,
  28% {
    opacity: 0;
    left: calc(100% - 18px);
  }

  32%,
  46% {
    opacity: 1;
  }

  52%,
  100% {
    opacity: 0;
    left: 0;
  }
}

.pair-status {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

/* The label answers the animation: "pairing…" while the packets fly, then green. */
.pair-status::after {
  content: 'pairing…';
  animation: pair-label 6s step-end infinite;
}

.pair-status {
  font-size: 0; /* hide the fallback text node; the ::after carries the live label */
}

.pair-status::after {
  font-size: 9px;
}

@keyframes pair-label {
  0% {
    content: 'pairing…';
    color: var(--dim);
  }

  55% {
    content: 'paired ✓';
    color: var(--accent);
  }

  92% {
    content: 'pairing…';
    color: var(--dim);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pair-pkt {
    animation: none;
    opacity: 0.4;
    left: 40%;
  }

  .pair-mark {
    animation: none;
    color: var(--accent);
  }

  .pair-status::after {
    animation: none;
    content: 'paired ✓';
    color: var(--accent);
  }
}

.steps {
  counter-reset: s;
  display: grid;
  gap: 2px;
  margin-top: 26px;
}

.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--muted);
}

.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* --- code slab ----------------------------------------------------------- */

.slab {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(0 0 0 / 45%);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 30px 70px -40px rgb(0 0 0 / 90%);
}

/* Terminal chrome — the three dots, drawn in this room's palette rather than macOS's. */
.slab-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgb(255 255 255 / 2%);
}

.slab-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
}

.slab-chrome i:first-child {
  background: rgb(74 222 128 / 45%);
}

.slab-chrome span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* The copy button in the chrome: copies whichever install route is showing. */
.slab-copy {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.slab-copy:hover {
  color: var(--accent);
  border-color: rgb(74 222 128 / 40%);
}

.slab-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
}

.slab-tab {
  padding: 8px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}

.slab-tab:hover {
  color: var(--muted);
}

.slab-tab[aria-selected='true'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.slab pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #d7dbe2;
  tab-size: 2;
}

.slab pre[hidden] {
  display: none;
}

/* The prompt is live: a block cursor breathing at the end of every example. */
.cursor {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.c-com {
  color: var(--dim);
}

.c-cmd {
  color: var(--accent);
}

.c-str {
  color: var(--blue);
}

.c-key {
  color: #e4b7ff;
}

/* --- ports table --------------------------------------------------------- */

.ports {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 14px;
}

.ports th {
  padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: left;
}

.ports td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  vertical-align: top;
}

.ports td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

/* --- callout ------------------------------------------------------------- */

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
}

.callout svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}

.callout.pending svg {
  color: var(--amber);
}

/* --- closing ------------------------------------------------------------- */

.closing {
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* The name of the thing, poster-sized: an engraved outline that floods with the
   accent from below as the section takes the screen — scrubbed by scroll. */
.closing-word {
  position: absolute;
  left: 50%;
  bottom: -0.24em;
  z-index: 0;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: clamp(160px, 30vw, 420px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.closing-word i {
  font-style: normal;
}

.cw-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgb(74 222 128 / 9%);
}

.cw-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(74 222 128 / 16%), rgb(45 212 191 / 4%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  clip-path: inset(100% 0 0 0);
}

/* Without the scrub there is no flood: keep the quiet engraving alone. */
html:not(.js) .cw-fill {
  display: none;
}

.closing .h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 18ch;
}

.closing .lede {
  margin-left: auto;
  margin-right: auto;
}

.closing .actions {
  justify-content: center;
  margin-top: 34px;
}

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

footer {
  position: relative;
  z-index: 1;
  padding: 54px 0 44px;
  border-top: 1px solid var(--line-soft);
  background: rgb(0 0 0 / 25%);
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 34px;
}

/* On a phone the brand takes the full width and the link columns pair up below it —
   the wide grid squeezed the brand blurb to one word a line. */
@media (max-width: 700px) {
  .foot-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .foot-in > div:first-child {
    grid-column: 1 / -1;
  }
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.foot-brand svg {
  width: 26px;
  height: 21px;
  color: var(--accent);
}

.foot-note {
  margin-top: 14px;
  max-width: 40ch;
  font-size: 13px;
  color: var(--dim);
}

.foot-col h5 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.foot-col li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--dim);
  max-width: 90ch;
}

/* --- motion opt-out ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .rise,
  .rise {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  /* The mark, the headline and the chain stand finished instead of performing. */
  .mark-roof {
    animation: none;
    stroke-dashoffset: 0;
  }

  .mark-bars rect {
    animation: none;
  }

  .js .hero .line-in {
    transform: none;
    transition: none;
  }

  .js .sig-wrap .node,
  .js .sig-wrap .link {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .js .sig-wrap .node.bypass {
    opacity: 0.42;
  }

  .chip[aria-pressed='true'],
  .chip[aria-checked='true'] {
    animation: none;
  }

  .cw-fill {
    clip-path: inset(30% 0 0 0);
  }

  .hero-wave {
    display: none;
  }

  .hero-aurora,
  .marquee-track,
  .link::after,
  .panel-bar .dot,
  .h-ring,
  .h-meter .m,
  .h-group,
  .h-pkt,
  .h-core-dot,
  .room-progress i,
  .cursor,
  .verdict-badge.pop {
    animation: none;
  }

  .hero-spectrum {
    display: none;
  }

  .h-pkt {
    opacity: 0;
  }

  .link::after {
    opacity: 0.35;
  }

  .cursor {
    opacity: 0.6;
  }

  .stack-front,
  .stack-back {
    transform: none;
    transition: none;
  }

  .stack-back {
    transform: rotate(1.6deg);
  }

  .btn:hover,
  .card:hover,
  .tile:hover {
    transform: none;
  }

  .btn-primary::before {
    display: none;
  }
}

/* Old spectrum canvas rule kept as alias in case of cached HTML during deploys. */
.hero-spectrum {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, black 55%);
}

/* ========================================================================== */
/* --- the docs: same identity, built for reading --------------------------- */
/* ========================================================================== */

body.docs .bar {
  background: rgb(10 12 16 / 78%);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px) saturate(1.3);
}

.docs-brand-suffix {
  margin-left: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.docs-gh {
  margin-left: auto;
}

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-top: 34px;
  padding-bottom: 90px;
}

/* --- sidebar --------------------------------------------------------------- */

.docs-nav {
  position: sticky;
  top: 91px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.docs-nav-k {
  margin: 22px 0 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.docs-nav-k:first-child {
  margin-top: 4px;
}

.docs-nav ul {
  display: grid;
  gap: 1px;
}

.docs-nav a {
  display: block;
  padding: 6px 10px;
  border-left: 1px solid var(--line-soft);
  border-radius: 0 7px 7px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}

.docs-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.docs-nav a.on {
  border-left-color: var(--accent);
  color: var(--accent);
  background: rgb(74 222 128 / 6%);
}

@media (max-width: 900px) {
  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-nav {
    display: none;
    position: fixed;
    inset: 57px 0 auto;
    z-index: 40;
    max-height: calc(100vh - 57px);
    padding: 8px var(--pad) 24px;
    border-bottom: 1px solid var(--line-soft);
    background: rgb(10 12 16 / 96%);
    backdrop-filter: blur(16px);
  }

  .docs-nav.open {
    display: block;
  }

  body.docs .bar-burger {
    display: block;
    margin-left: auto;
  }

  body.docs .docs-gh {
    margin-left: 0;
  }
}

/* --- prose ------------------------------------------------------------------ */

.prose {
  max-width: 720px;
}

.prose h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #fff 28%, #aab2bf 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose .eyebrow {
  margin-bottom: 14px;
}

.prose h2 {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.prose p {
  margin-top: 13px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.prose > p:first-of-type {
  font-size: 16.5px;
  color: var(--text);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgb(74 222 128 / 35%);
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin-top: 13px;
  display: grid;
  gap: 8px;
  padding-left: 4px;
}

.prose ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.prose ol {
  counter-reset: d;
  list-style: none;
}

.prose ol li {
  counter-increment: d;
  position: relative;
  padding-left: 34px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.prose ol li::before {
  content: counter(d, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

/* Code blocks reuse the slab; the .prose pre is the plain variant. */
.prose pre {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(0 0 0 / 45%);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #d7dbe2;
}

.prose table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14px;
}

@media (max-width: 700px) {
  .prose table {
    display: block;
    overflow-x: auto;
  }
}

.prose th {
  padding: 0 14px 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: left;
}

.prose td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  vertical-align: top;
}

.prose td:first-child {
  white-space: nowrap;
}

/* The note: the landing's door-note, at reading width. */
.prose .note {
  margin-top: 18px;
  padding: 13px 16px;
  border-left: 2px solid rgb(74 222 128 / 35%);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgb(74 222 128 / 4%), transparent 60%);
  font-size: 13.5px;
  color: var(--dim);
}

.prose .note.warn {
  border-left-color: rgb(240 180 41 / 45%);
  background: linear-gradient(90deg, rgb(240 180 41 / 5%), transparent 60%);
}

.docs-foot {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.docs-foot p {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.docs-foot a {
  color: var(--muted);
  text-decoration: none;
}

.docs-foot a:hover {
  color: var(--accent);
}
