@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #142033;
  --ink-soft: #243447;
  --muted: #5a6b7c;
  --line: #d5dee4;
  --paper: #f3f6f7;
  --paper-2: #e7eeef;
  --white: #fbfcfc;
  --navy: #0c1824;
  --accent: #0f6e78;
  --accent-deep: #0c5560;
  --teal-soft: #e4f3f2;
  --warn: #8d6432;
  --header: 76px;
  --sans: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --shadow: 0 24px 50px rgba(12, 24, 36, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

a { color: var(--accent-deep); }

::selection { background: #c7ebe7; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.wrap-l {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 38ch;
}

.section { padding: 96px 0; }

.section h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  max-width: 16ch;
  margin-bottom: 18px;
}

.prose { max-width: 62ch; }

.prose p + p { margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--accent-deep); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #b7c4ce;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: var(--teal-soft); color: var(--navy); }

.btn-small { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.is-intro { overflow: hidden; }
html.is-intro #page { visibility: hidden; }

/* Introduction */
.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #6f6f6f;
  color: white;
  overflow: hidden;
}

html.is-intro .intro,
.intro.is-leaving { display: block; }

.intro { transition: opacity 0.65s ease; }

.intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.intro-stage { position: absolute; inset: 0; }

.intro-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.intro[data-state="search"] { cursor: none; }

.intro-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 14, 22, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 2px;
  padding: 8px 12px;
  color: white;
  border: 0;
  text-decoration: none;
}

.chip img { height: 28px; width: auto; }

.logo-on-dark { filter: brightness(0) invert(1); }

.intro-card {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 28px;
  width: min(560px, calc(100% - 56px));
  padding: 28px 28px 24px;
  background: rgba(8, 14, 22, 0.78);
  backdrop-filter: blur(16px);
  border-radius: 2px;
}

.intro-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7fff4;
  margin-bottom: 12px;
}

.intro-title {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  max-width: 11ch;
  margin-bottom: 14px;
}

.intro-title.sentence {
  text-transform: none;
  max-width: 16ch;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.intro-lead {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 18px;
}

.intro-task {
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: white;
  margin-bottom: 18px;
}

.intro-splash,
.intro-hud,
.intro-reveal { display: none; }

.intro[data-state="splash"] .intro-splash,
.intro[data-state="reveal"] .intro-reveal { display: block; }

.intro[data-state="search"] .intro-hud { display: block; }

.intro[data-state="search"] .intro-card,
.intro[data-state="reveal"] .intro-card {
  width: min(760px, calc(100% - 40px));
}

.intro-hud { position: relative; }

.timer-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.timer-bar span {
  display: block;
  height: 100%;
  background: #9ef6ec;
  transform-origin: left center;
  transform: scaleX(1);
}

.hud-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}

.hud-row strong { color: white; font-weight: 560; }

.hud-timer {
  font-family: var(--mono);
  font-size: 1.05rem;
}

.search-hint {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

#crosshair {
  position: fixed;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 70;
  mix-blend-mode: difference;
}

#crosshair::before,
#crosshair::after {
  content: "";
  position: absolute;
  background: white;
}

#crosshair::before { left: 50%; top: 8px; bottom: 8px; width: 1px; }
#crosshair::after { top: 50%; left: 8px; right: 8px; height: 1px; }

@media (pointer: coarse) {
  .intro[data-state="search"] { cursor: auto; }
  #crosshair { display: none !important; }
}

@media (max-height: 780px) {
  .intro-card { padding: 16px 18px 14px; }
  .intro-title { font-size: clamp(1.7rem, 6vw, 2.5rem); margin-bottom: 8px; }
  .intro-lead { font-size: 0.98rem; margin-bottom: 10px; }
  .intro-task { margin-bottom: 12px; }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  background: rgba(251, 252, 252, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links a[aria-current="true"] { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 2px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span { top: 20px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

main { padding-top: var(--header); }

/* Hero */
.hero { padding: 64px 0 36px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  max-width: 12ch;
  margin: 8px 0 18px;
}

.hero .support {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--muted);
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.spec-row span { white-space: nowrap; }

.instrument {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 4px;
  overflow: hidden;
}

.instrument-bar,
.player-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1aa392;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 4px rgba(26, 163, 146, 0.15);
}

.hero-field { position: relative; background: #9c978c; }

.hero-field img { display: block; width: 100%; height: auto; }
#hero-shot:not([src]) { visibility: hidden; min-height: 320px; }

.box {
  position: absolute;
  aspect-ratio: 1.35 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    linear-gradient(#e7fffb, #e7fffb) left top / 12px 1.5px no-repeat,
    linear-gradient(#e7fffb, #e7fffb) left top / 1.5px 12px no-repeat,
    linear-gradient(#e7fffb, #e7fffb) right top / 12px 1.5px no-repeat,
    linear-gradient(#e7fffb, #e7fffb) right top / 1.5px 12px no-repeat,
    linear-gradient(#e7fffb, #e7fffb) left bottom / 12px 1.5px no-repeat,
    linear-gradient(#e7fffb, #e7fffb) left bottom / 1.5px 12px no-repeat,
    linear-gradient(#e7fffb, #e7fffb) right bottom / 12px 1.5px no-repeat,
    linear-gradient(#e7fffb, #e7fffb) right bottom / 1.5px 12px no-repeat;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.65));
}

.box i {
  position: absolute;
  left: calc(100% + 4px);
  top: -2px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.3;
  color: #062422;
  background: rgba(232, 255, 251, 0.92);
  padding: 1px 4px;
}

.cand-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cand-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding-right: 6px;
}

.cand-list canvas {
  width: 72px;
  height: 48px;
  background: #b7b3a8;
  flex: none;
}

.cand-list strong,
.cand-list span { display: block; }
.cand-list strong { font-size: 0.86rem; color: var(--ink); font-weight: 560; }
.cand-list span { font-size: 0.75rem; color: var(--muted); }
.cand-list .more {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 0;
  padding: 4px 6px 8px;
}

.caption {
  padding: 8px 12px 10px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Challenge */
.issues {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.issues li {
  padding: 26px 28px 8px 0;
  border-right: 1px solid var(--line);
}

.issues li:last-child { border-right: 0; padding-right: 0; }

.issues span {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.issues h3 {
  font-size: 1.35rem;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}

.issues p { color: var(--muted); margin: 0; }

.statement {
  padding: 28px 0 80px;
}

.statement p {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 20ch;
  font-weight: 560;
}

/* Workflows */
.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: center;
  margin-top: 54px;
}

.workflow h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 16ch;
  margin-bottom: 14px;
}

.kicker-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.caps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.caps li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.caps li::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--accent);
  flex: none;
  transform: translateY(-4px);
}

.keyline {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.band {
  margin-top: 88px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0;
}

.band h3,
.band .keyline { color: white; }
.band .kicker-num { color: #9ef0e6; }
.band .caps { border-color: transparent; }
.band .caps li { border-top-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.82); }
.band .caps li::before { background: #9ef0e6; }
.band .keyline { border-top-color: rgba(255, 255, 255, 0.16); }

.player {
  background: #101614;
  color: white;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(20, 32, 48, 0.12);
  box-shadow: var(--shadow);
}

.band .player { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }

.player-bar { border-bottom-color: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.62); }

.player-main { display: grid; grid-template-columns: 1.45fr 0.72fr; }

.track-gif {
  display: block;
  width: 100%;
  height: auto;
  background: #04140c;
}

.player canvas {
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 16 / 10;
  display: block;
  background: #1c1e1a;
}

.scan-list, .track-steps {
  list-style: none;
  margin: 0;
  padding: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.scan-list li, .track-steps li {
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.scan-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.scan-list span { font-family: var(--mono); color: #b8fff6; grid-row: span 2; align-self: center; }
.scan-list b { font-weight: 560; }
.scan-list em { grid-column: 2; font-style: normal; color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; }
.scan-list .empty { display: block; color: rgba(255, 255, 255, 0.55); }

.track-steps li { color: rgba(255, 255, 255, 0.38); }
.track-steps li.is-on { color: white; }
.track-steps li.is-on::before { content: ""; }

.player-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

#track-readout { display: flex; gap: 14px; flex-wrap: wrap; }
#track-readout span { color: #b8fff6; }

.player-foot button {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-height: 32px;
  padding: 0 10px;
  border-radius: 2px;
}

.figure-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.band .figure-note { color: rgba(255, 255, 255, 0.58); }

/* Evidence */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 18px;
}

.stat {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.stat b {
  display: block;
  font-size: clamp(3.2rem, 6vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-weight: 600;
  color: var(--ink);
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  max-width: 28ch;
}

.note {
  border-left: 2px solid var(--warn);
  padding: 4px 0 4px 16px;
  color: var(--muted);
  max-width: 78ch;
  margin-top: 18px;
}

.note a { color: var(--accent-deep); }

.sites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}

.site-card {
  background: var(--paper);
  padding: 22px 22px 20px;
  border-radius: 2px;
}

.site-card .where {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-card h3 { font-size: 1.55rem; margin: 8px 0; }

/* Privacy */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.pillars article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pillars h3 { font-size: 1.25rem; margin: 12px 0 8px; }
.pillars p { color: var(--muted); margin: 0; }
.pillars svg { display: block; color: var(--ink); }

.quiet {
  margin-top: 28px;
  font-size: 1.05rem;
  color: var(--ink);
}

/* Hardware */
.hardware { background: var(--paper); }

.hardware-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 42px;
  align-items: start;
  margin-top: 28px;
}

.hw-figure {
  position: sticky;
  top: 96px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
}

.hw-list { list-style: none; margin: 0; padding: 0; }

.hw-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.hw-list li:last-child { border-bottom: 1px solid var(--line); }

.hw-list b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.hw-list h3 { font-size: 1.15rem; margin-bottom: 4px; letter-spacing: -0.02em; }
.hw-list p { margin: 0; color: var(--muted); }

/* Investment */
.sheet { width: 100%; border-collapse: collapse; margin-top: 28px; }

.sheet th {
  text-align: left;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink);
}

.sheet td {
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.sheet tr:last-child td { border-bottom-color: var(--ink); font-weight: 600; color: var(--ink); }

.mask {
  display: inline-block;
  filter: blur(6px);
  user-select: none;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.extras {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.extras li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.extras strong { display: block; color: var(--ink); font-weight: 560; }
.extras span { color: var(--muted); font-size: 0.9rem; }

/* Deployment */
.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps li { border-top: 1px solid var(--ink); padding-top: 14px; }
.steps span { font-family: var(--mono); color: var(--accent); font-size: 0.78rem; letter-spacing: 0.12em; }
.steps h3 { font-size: 1.2rem; margin: 10px 0 8px; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); }

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.options article {
  background: var(--paper);
  padding: 22px;
}

.options h3 { font-size: 1.4rem; margin-bottom: 8px; }

.closing {
  margin-top: 32px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  max-width: 22ch;
  line-height: 1.25;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.6fr);
  gap: 40px;
  align-items: center;
}

.about-grid img { width: min(360px, 100%); height: auto; }

.pull {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 28ch;
}

/* Contact */
.contact { background: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

form, .success {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 4px;
}

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }

label { font-size: 0.92rem; color: var(--ink); }

input, select, textarea {
  width: 100%;
  border: 1px solid #c5d0d8;
  background: white;
  border-radius: 2px;
  padding: 12px 12px;
  color: var(--ink);
  scroll-margin-top: 110px;
}

textarea { min-height: 110px; resize: vertical; }

input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #8c3a32;
}

.error { color: #8c3a32; font-size: 0.82rem; margin: 0; }

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

.fine {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.success { outline: none; }
.success pre {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--paper);
  padding: 12px;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  font-size: 1rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.site-footer p { color: var(--muted); margin-top: 8px; }

.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-deep); }

.legal-line {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 85ch;
}

/* Document pages */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.35rem; margin: 28px 0 8px; letter-spacing: -0.02em; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 18px; }
.doc li + li { margin-top: 6px; }

html.js .reveal.is-armed {
  opacity: 0;
  transform: translateY(14px);
}

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal.is-armed {
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

html.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: rgba(251, 252, 252, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 22px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .site-header.is-open .nav-links { display: flex; }
  .site-header .btn-small { margin-left: 0; }
  .hero-grid, .workflow, .hardware-grid, .contact-grid, .about-grid, .player-main, .sites, .options {
    grid-template-columns: 1fr;
  }
  .issues, .stats, .pillars, .steps, .extras { grid-template-columns: 1fr 1fr; }
  .hw-figure { position: static; }
  .band { margin-top: 56px; }
  .workflow.reverse .copy { order: -1; }
}

@media (max-width: 700px) {
  .wrap, .wrap-l { width: min(100% - 32px, var(--wrap)); }
  .section { padding: 72px 0; }
  .site-header { padding: 0 16px; }
  .intro-card { left: 12px; bottom: 12px; width: auto; right: 12px; padding: 18px; }
  .intro-top { left: 12px; right: 12px; }
  .issues, .stats, .pillars, .steps, .extras, .footer-grid, .fields, .cand-list {
    grid-template-columns: 1fr;
  }
  .issues li { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .hero { padding-top: 36px; }
  .hero h1 { max-width: none; }
  .sheet thead { display: none; }
  .sheet tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sheet td { display: block; border: 0; padding: 2px 0; }
  .sheet tr:last-child td { border: 0; }
}

@media print {
  .intro, .site-header, .nav-toggle, .btn { display: none !important; }
  #page { visibility: visible !important; }
  main { padding-top: 0; }
}
