/* Nimblytica — one family, black, product as page. */
@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --bg-1: #0a0a0a;
  --bg-2: #111;
  --ink: #f2f2f2;
  --ink-dim: #a3a3a3;
  --mute: #6e6e6e;
  --line: #1c1c1c;
  --line-2: #2a2a2a;
  --spring: cubic-bezier(0.22, 1.15, 0.36, 1);
  --pad: clamp(18px, 4.5vw, 40px);
  --max: 1180px;
  --type: Geist, ui-sans-serif, system-ui, sans-serif;
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--type);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 12px;
}
.wordmark {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  view-transition-name: wordmark;
}
nav.links {
  display: flex;
  gap: 4px 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}
nav.links a { color: var(--mute); }
nav.links a:hover,
nav.links a[aria-current="page"] { color: var(--ink); }

/* type */
.hero-title,
.page-head h1,
h1 {
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin: 0;
}
.hero-title {
  font-size: clamp(1.7rem, 5.2vw, 2.6rem);
  view-transition-name: title;
}
.page-head h1 { font-size: clamp(2.4rem, 8vw, 5.2rem); }
.line {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: 22em;
  margin: 18px 0 0;
  color: var(--ink);
}
.lede {
  color: var(--ink-dim);
  max-width: 36rem;
  margin: 12px 0 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.caption {
  color: var(--mute);
  font-size: 0.92rem;
  max-width: 34rem;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}
.caption a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }

.kicker,
.crumb,
.meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 10px;
}
.crumb a { color: var(--mute); }

/* buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #000;
  cursor: pointer;
  transition: transform 420ms var(--spring), background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:hover { background: #fff; color: #000; }
.btn:active { transform: scale(0.97); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn.ghost:hover { border-color: var(--ink); color: #fff; }

/* hero — board first, then the two-week offer */
.hero {
  position: relative;
  padding: 4px 0 36px;
  overflow: clip;
}
.hero-copy { position: relative; z-index: 1; padding-top: 4px; }
.hero .line { margin-top: 10px; }
.offer {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  max-width: 34rem;
}
.offer .meta { margin-bottom: 8px; }
.offer h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.offer p {
  margin: 0 0 16px;
  color: var(--ink-dim);
  max-width: 32rem;
}
.offer .caption {
  color: var(--mute);
  margin: 16px 0 0;
}
.offer .caption a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  width: 100%;
  view-transition-name: board;
}
@media (min-width: 880px) {
  .product {
    width: min(var(--max), calc(100% - 2 * var(--pad)));
    margin-inline: auto;
  }
}
.product-frame {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px var(--pad) 26px;
}
@media (min-width: 880px) {
  .product-frame {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 28px 28px;
  }
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.mode {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #000;
}
.mode button {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 0;
  background: transparent;
  color: var(--mute);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 420ms var(--spring), background 220ms ease, color 220ms ease;
}
.mode button[aria-pressed="true"] {
  background: var(--ink);
  color: #000;
}
.mode button:active { transform: scale(0.96); }

.slicer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.slicer button,
.chip-btn {
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid var(--line-2);
  padding: 7px 11px;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 420ms var(--spring), background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.slicer button[aria-pressed="true"],
.slicer button:hover,
.chip-btn:hover {
  background: var(--ink);
  color: #000;
  border-color: var(--ink);
}
.slicer button:active,
.chip-btn:active { transform: scale(0.96); }

.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 16px;
  margin: 8px 0 22px;
}
@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
}
.kpi .n {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kpi .l {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 8px;
}
.kpi .d { font-size: 0.8rem; color: var(--ink-dim); margin-top: 4px; overflow-wrap: anywhere; }

.unit-list { list-style: none; margin: 0; padding: 0; }
.unit-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.unit-list .u { letter-spacing: -0.02em; }
.unit-list .v { color: var(--ink-dim); }

.chart { height: 220px; }
.product-frame .chart { height: 200px; }
@media (min-width: 860px) {
  .chart { height: 260px; }
  .product-frame .chart { height: 240px; }
}
.board-charts { margin: 4px 0 0; }
.board-tables { margin-top: 16px; }
.product-frame .panel { margin-bottom: 0; }
.product-frame .table-scroll { margin: 0; padding: 0; }
.pulse-kpis { margin: 18px 0 0; }
@media (min-width: 720px) {
  .pulse-kpis { grid-template-columns: repeat(3, 1fr); }
}
.pulse-charts { margin-top: 12px; }
.scene[data-scene="pulse"] .chart { height: 180px; }
@media (min-width: 860px) {
  .scene[data-scene="pulse"] .chart { height: 200px; }
}
.scene[data-scene="pulse"] .scene-pin {
  justify-content: flex-start;
  padding-top: 64px;
  overflow: auto;
}

/* scroll scenes */
.scene {
  min-height: 180vh;
  position: relative;
}
.scene-pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 72px 0 32px;
}
.scene-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 10px;
}
.scene-pin h2 {
  font-size: clamp(2rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 10px;
  max-width: 12em;
}
.scene-stage {
  margin-top: 22px;
}
.bars { display: grid; gap: 10px; }
.bar {
  display: grid;
  grid-template-columns: 7rem 1fr 3rem;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
}
.bar span.track {
  height: 2px;
  background: var(--line-2);
  position: relative;
}
.bar span.fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--ink);
  transition: width 700ms var(--spring);
}
.bar b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

.brief-play {
  max-width: 36rem;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.brief-play p { margin: 0 0 10px; color: var(--ink-dim); }
.brief-play p.hi { color: var(--ink); font-size: 1.2rem; letter-spacing: -0.03em; }

/* tables */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 140px);
  flex: 1 1 140px;
}
.field.grow { flex: 2 1 220px; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.field textarea { min-height: 140px; resize: vertical; }
.table-scroll { overflow-x: auto; margin: 8px calc(var(--pad) * -1); padding: 0 var(--pad); }
@media (min-width: 880px) {
  .table-scroll { margin: 0; padding: 0; }
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
table.data th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px 10px 0;
  white-space: nowrap;
}
table.data td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tr:last-child td { border-bottom: none; }
table.data .factor { font-weight: 600; letter-spacing: -0.03em; }
.board-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--mute);
  font-size: 0.8rem;
}

/* scorecard */
.drill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  font-size: 0.88rem;
}
.drill button {
  font-family: inherit;
  background: none;
  border: 0;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 0;
  letter-spacing: -0.02em;
}
.drill button:hover { color: var(--ink); }
.drill span.here { color: var(--ink); font-weight: 500; }
.score-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 800px) {
  .score-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.score h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin: 0 0 12px;
}
.score .n {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
}
.score .status {
  margin: 10px 0 14px;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.bands { color: var(--mute); font-size: 0.8rem; display: grid; gap: 4px; }
.children { margin-top: 36px; }
.children button.row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 16px 0;
  cursor: pointer;
  transition: transform 420ms var(--spring);
}
.children button.row:active { transform: scale(0.99); }
.children .nm { letter-spacing: -0.02em; }
.children .cell { color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* pipeline */
.kernel {
  display: grid;
  gap: 0;
  margin: 28px 0 40px;
}
.kernel li {
  list-style: none;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  gap: 6px;
}
.kernel ol { margin: 0; padding: 0; }
.kernel .step {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.kernel h3 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  margin: 0;
}
.kernel p { margin: 0; color: var(--ink-dim); max-width: 36rem; }

.arch {
  width: 100%;
  max-width: 920px;
  margin: 8px 0 8px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 8px;
}

.warehouse { margin: 0; }
.warehouse-kpis {
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0 8px;
}
@media (min-width: 720px) {
  .warehouse-kpis { grid-template-columns: repeat(2, 1fr); }
}
.wh-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.wh-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--mute);
  font-size: 1.1rem;
  letter-spacing: 0;
}
.wh-stage {
  flex: 1 1 8.5rem;
  display: grid;
  gap: 4px;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  background: #000;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 14px 16px;
  cursor: pointer;
  transition: transform 420ms var(--spring), border-color 220ms ease, background 220ms ease;
}
.wh-stage:hover { border-color: var(--ink-dim); }
.wh-stage[aria-checked="true"] {
  border-color: var(--ink);
  background: var(--bg-2);
}
.wh-stage:active { transform: scale(0.98); }
.wh-stage .step,
.warehouse-copy .step {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.wh-name {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.wh-hint {
  font-size: 0.75rem;
  color: var(--mute);
  letter-spacing: -0.01em;
}
.wh-sinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  opacity: 0.4;
  transition: opacity 220ms ease;
}
#warehouse.is-grain .wh-sinks { opacity: 1; }
.wh-sink {
  min-width: 7.2rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
}
.wh-sink.on {
  color: var(--ink);
  border-color: var(--ink);
}
.warehouse-copy {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 6px;
}
.warehouse-copy h3 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  margin: 0;
}
.warehouse-copy p {
  margin: 0;
  color: var(--ink-dim);
  max-width: 36rem;
}
.warehouse-foot { padding-bottom: 48px; }

/* insights / forms */
.trybox {
  display: grid;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
@media (min-width: 860px) {
  .trybox { grid-template-columns: 1fr 1fr; }
}
.composer, .briefing-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 18px 18px 20px;
  border-radius: 16px;
}
.composer h2, .briefing-card h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 12px;
  font-weight: 500;
}
.composer textarea {
  width: 100%;
  min-height: 160px;
  background: #000;
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  resize: vertical;
}
.composer .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.briefing-empty { color: var(--mute); margin: 20px 0; max-width: 28rem; }
.briefing-card .headline {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.briefing-card .cut { font-size: 0.75rem; color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; }
.briefing-card .signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.briefing-card .signals .kpi { padding: 0; }
.briefing-card .signals .n { font-size: 1.35rem; }
.briefing-card ol.findings { margin: 0 0 16px; padding-left: 1.15rem; }
.briefing-card ol.findings li { margin: 0 0 8px; }
.briefing-card .next, .briefing-card .last-mile {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.briefing-card .next strong, .briefing-card .last-mile strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 6px;
}
.briefing-card .next p, .briefing-card .last-mile p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }
.briefing-card .source { margin: 16px 0 0; font-size: 0.72rem; color: var(--mute); }

.sheet {
  padding: 72px 0 40px;
  border-top: 1px solid var(--line);
}
.sheet h2 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: -0.05em;
  margin: 0 0 8px;
}
.sheet form {
  display: grid;
  gap: 14px;
  max-width: 32rem;
  margin-top: 22px;
}

/* honeypot — hidden from people, tempting to bots */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* form submission feedback */
.form-status {
  min-height: 1.2em;
  margin: 2px 0 0;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--ink-dim);
}
.form-status.is-pending { color: var(--ink-dim); }
.form-status.is-success {
  color: var(--ink);
  border-left: 2px solid var(--ink);
  padding-left: 10px;
}
.form-status.is-error {
  color: #ff6b6b;
  border-left: 2px solid #ff6b6b;
  padding-left: 10px;
}
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* pricing / risk-reversal */
.pricing .price {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 18px 0 6px;
}
.pricing .risk {
  color: var(--ink);
  border-left: 2px solid var(--ink);
  padding-left: 12px;
  margin: 8px 0 0;
  max-width: 34rem;
}

/* social proof */
.proof-grid { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 800px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}
.quote {
  margin: 0;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
}
.quote blockquote {
  margin: 0 0 12px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quote figcaption { font-size: 0.8rem; color: var(--mute); letter-spacing: 0.02em; }
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  margin-top: 24px;
  opacity: 0.85;
}
.logos img { height: 26px; width: auto; filter: grayscale(1) brightness(1.6); }

.grid-2 { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.page-head { padding: 36px 0 8px; }
.offer-page .page-head h1 {
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.offer-page .offer {
  margin-top: 22px;
  max-width: 36rem;
}
.offer-page .offer h2 {
  font-size: clamp(1.85rem, 6.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 12px;
}
.offer-page .offer p { max-width: 34rem; }
.offer-page .kernel { margin-top: 8px; }
.note {
  font-size: 0.88rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 20px 0 48px;
}
.note a { color: var(--ink-dim); }
.banner {
  color: var(--mute);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 8px 0 8px;
}
.panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 16px 18px 8px;
  margin-bottom: 16px;
  border-radius: 14px;
}
.panel h2 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 8px;
  font-weight: 500;
}
.prose { max-width: 40rem; padding-bottom: 48px; }
.prose h2 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin: 28px 0 8px;
}
.prose p { color: var(--ink-dim); }
.prose ul, .prose ol { color: var(--ink-dim); padding-left: 1.15rem; }
.prose .steps { list-style: none; padding: 0; }
.prose .steps li {
  border-left: 1px solid var(--line-2);
  padding: 4px 0 14px 14px;
  margin: 0;
}
.prose .steps strong { color: var(--ink); display: block; font-weight: 500; }

pre.code, .brief {
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 16px 18px;
  overflow-x: auto;
  color: var(--ink-dim);
  border-radius: 12px;
}
.kw, .fn, .st, .cm { color: inherit; }

/* samples menu */
.sample-links {
  display: grid;
  gap: 0;
  margin-top: 12px;
}
.sample-row {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sample-row .nm { color: var(--ink); }
.sample-row .d {
  color: var(--mute);
  font-size: 0.88rem;
  letter-spacing: 0;
}
.sample-row:hover .nm { color: #fff; }
.samples-cats li { padding-bottom: 8px; }

.samples-sheet {
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 18px;
  margin: auto;
  width: min(36rem, calc(100% - 2 * var(--pad)));
  max-width: none;
  max-height: min(86dvh, 720px);
  overflow: auto;
}
.samples-sheet::backdrop {
  background: color-mix(in srgb, #000 72%, transparent);
}
.samples-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.samples-sheet-head .scene-label { margin: 0; }
.samples-sheet-head .btn { padding: 8px 14px; font-size: 0.82rem; }
.samples-sheet h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 12px;
}
.samples-sheet .lede { margin: 0 0 10px; }
.samples-sheet .cat {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  color: inherit;
  font-family: inherit;
  padding: 18px 0;
  cursor: pointer;
  display: grid;
  gap: 6px;
  transition: transform 420ms var(--spring);
}
.samples-sheet .cat:hover h3 { color: #fff; }
.samples-sheet .cat:active { transform: scale(0.99); }
.samples-sheet .cat .step,
.samples-back {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.samples-sheet .cat h3 {
  font-size: clamp(1.35rem, 3.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
}
.samples-sheet .cat p {
  margin: 0;
  color: var(--ink-dim);
  max-width: 34rem;
}
.samples-back {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0 0 12px;
  cursor: pointer;
  text-align: left;
}
.samples-back:hover { color: var(--ink); }
.samples-sheet .caption { margin-top: 16px; }
@media (max-width: 540px) {
  .samples-sheet {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    max-height: 88dvh;
  }
}

/* program-complete mail */
.mail {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 18px 0 0;
}
.mail-meta {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.mail-meta div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 0.92rem;
}
.mail-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.mail-meta dd { margin: 0; letter-spacing: -0.02em; }
.mail-body { padding: 20px 20px 8px; }
.mail-body p {
  margin: 0 0 10px;
  color: var(--ink-dim);
  max-width: 36rem;
}
.mail-body p.hi {
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.mail .table-scroll { margin: 12px 0 8px; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--mute);
  font-size: 0.82rem;
}
footer.site .foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer.site .foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer.site a { color: var(--ink-dim); }

@media (max-width: 540px) {
  .briefing-card .signals,
  .children button.row { grid-template-columns: 1fr 1fr; }
  .children button.row .cell:nth-child(n+3) { display: none; }
  nav.links { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-timeline: none !important;
  }
  .scene { min-height: auto; }
  .scene-pin { position: relative; height: auto; padding: 48px 0; }
}
