:root {
  --bg: #0a0a0a;
  --bg-elev: #111110;
  --bg-soft: #161513;
  --fg: #f3f1ea;
  --fg-dim: #b9b3a5;
  --fg-mute: #7a756a;
  --fg-faint: #46423b;
  --hairline: #26221c;
  --hairline-strong: #3a3429;
  --accent: #d97706;
  --accent-soft: #f59e0b;
  --accent-deep: #8a3a18;
  --warn: #c84a1f;
  --ok: #5b8c4c;

  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1440px;
  --pad-x: clamp(20px, 4vw, 56px);

  --rad: 2px;

  --t-fast: 120ms cubic-bezier(.2,.7,.2,1);
  --t-med: 320ms cubic-bezier(.2,.7,.2,1);
}

/* PALETTE VARIANTS (applied via [data-palette] on html) */
html[data-palette="electric"] {
  --accent: #58a6ff;
  --accent-soft: #79b8ff;
  --accent-deep: #1f4d8a;
  --warn: #58a6ff;
}
html[data-palette="mono"] {
  --accent: #f3f1ea;
  --accent-soft: #d6d3c8;
  --accent-deep: #46423b;
  --warn: #b9b3a5;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

img, svg, canvas { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #0a0a0a; }

/* ── LAYOUT ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.hair { height: 1px; background: var(--hairline); width: 100%; border: 0; margin: 0; }
.hair-strong { height: 1px; background: var(--hairline-strong); width: 100%; border: 0; margin: 0; }

/* ── TYPOGRAPHY ───────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}
.mono-md {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 500;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.h-display {
  font-size: clamp(48px, 7.5vw, 112px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.h-1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.h-2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.h-3 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { margin: 0; }
.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.4;
  color: var(--fg-dim);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  max-width: 60ch;
}
.body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-dim);
  text-wrap: pretty;
}
.body strong { color: var(--fg); font-weight: 600; }

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}
.nav-brand .mark {
  width: 22px; height: 22px;
  border: 1px solid var(--fg);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.nav-brand .mark::before,
.nav-brand .mark::after {
  content: "";
  position: absolute;
  background: var(--fg);
}
.nav-brand .mark::before {
  inset: 4px 4px auto 4px;
  height: 1px;
}
.nav-brand .mark::after {
  inset: auto 4px 4px 4px;
  height: 1px;
}
.nav-brand .mark .v {
  position: absolute;
  inset: 4px 50% 4px auto;
  width: 1px;
  background: var(--fg);
}

.nav-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  display: flex; gap: 0; align-items: center;
}
.nav-cta .mono[data-clock] {
  padding: 0 20px 0 0;
  margin-right: 20px;
  border-right: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Hamburger button (mobile only, shown via media query below) */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  position: relative;
  border-radius: 2px;
  transition: border-color var(--t-fast);
}
.nav-burger:hover { border-color: var(--fg); }
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  position: absolute;
  width: 16px;
  height: 1px;
  background: var(--fg);
  left: 50%;
  transform: translateX(-50%);
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), opacity 200ms;
}
.nav-burger span {
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  top: 0; left: 0; transform: none;
}
.nav-burger span::before { transform: translateY(-5px); }
.nav-burger span::after { transform: translateY(5px); }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(0) rotate(45deg); }
.nav-burger.open span::after  { transform: translateY(0) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 32px 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mm-section {
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
}
.mobile-menu .mm-section:last-of-type { border-bottom: 0; }
.mobile-menu .mm-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 12px;
  display: block;
}
.mobile-menu a.mm-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  padding: 16px 0;
  transition: color var(--t-fast);
}
.mobile-menu a.mm-link::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--fg-mute);
}
.mobile-menu a.mm-link:hover { color: var(--accent); }
.mobile-menu a.mm-link.active { color: var(--accent); }
.mobile-menu .mm-meta {
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu .mm-meta b { color: var(--fg); font-weight: 500; }
.mobile-menu .mm-cta {
  margin-top: 24px;
}
.mobile-menu .mm-cta .btn { width: 100%; justify-content: center; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--hairline-strong);
  color: var(--fg);
  background: transparent;
  border-radius: var(--rad);
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--fg);
  background: rgba(243,241,234,0.04);
}
.btn .arrow {
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: transform var(--t-med);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translate(0, -50%) rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}
.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 11px;
}

/* ── SECTION SHELL ────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--hairline);
}
.section.no-top { border-top: none; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 980px;
}
.section-index {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 16px;
}
.section-index .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.section-index .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 1000px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero::before {
  /* vignette */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(217,119,6,0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.35) 25%, rgba(10,10,10,0.2) 50%, rgba(10,10,10,0.55) 80%, rgba(10,10,10,0.95) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-grid-noise {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(243,241,234,0.02) 1px, transparent 1px) 0 0 / 100% 4px,
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(243,241,234,0.025) 79px 80px);
  mix-blend-mode: overlay;
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(40px, 6vh, 100px);
  padding-top: clamp(88px, 12vh, 180px);
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(48px, 7vw, 90px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero-meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  animation: pulse 2.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(217,119,6,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 8px rgba(217,119,6,0); }
}
.hero-headline {
  max-width: 18ch;
  margin-bottom: 32px;
}
.hero-sub {
  max-width: 56ch;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.hero-strip > div {
  background: rgba(10,10,10,0.7);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-strip .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero-strip .v {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fg);
  font-weight: 500;
}
.hero-strip .v .acc { color: var(--accent); }

@media (min-width: 901px) and (max-height: 1040px) {
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero-content {
    height: auto;
    justify-content: flex-start;
    padding-top: calc(64px + clamp(22px, 3vh, 38px));
    padding-bottom: clamp(48px, 5vh, 64px);
  }
  .hero-meta { margin-bottom: clamp(36px, 5vh, 56px); }
  .hero-headline { margin-bottom: clamp(24px, 3vh, 32px); }
  .hero-sub { margin-bottom: clamp(28px, 4vh, 36px); }
  .hero-cta { margin-bottom: clamp(36px, 5vh, 52px); }
}

@media (max-width: 720px) {
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { font-size: 10px; gap: 12px; flex-wrap: wrap; }
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
}

/* ── PILLAR / 3-COL GRID ──────────────────────────── */
.tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.tri-grid > article {
  background: var(--bg);
  padding: 40px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  position: relative;
}
.tri-grid > article .topline {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.tri-grid > article h3 {
  margin-top: 8px;
}
.tri-grid > article .body { margin-top: 4px; }

@media (max-width: 900px) {
  .tri-grid { grid-template-columns: 1fr; }
}

/* ── STEP GRID (4-up) ─────────────────────────────── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.step-grid > article {
  background: var(--bg);
  padding: 32px 24px 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.step-grid .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.step-grid .step-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 8px 0 4px;
}
.step-grid .step-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-dim);
}
.step-grid .step-mini {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .step-grid { grid-template-columns: 1fr; }
}

/* ── AUDIENCE / 3 CARDS WITH IMG ──────────────────── */
.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.aud-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
}
.aud-card .img {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, rgba(243,241,234,0.04) 0 8px, transparent 8px 16px),
    var(--bg-soft);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  margin: 0;
  isolation: isolate;
}
.aud-card .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.38) contrast(1.18) saturate(0.72) brightness(0.74);
  transform: scale(1.02);
}
.aud-card .img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.08), rgba(10,10,10,0.68)),
    radial-gradient(circle at 70% 8%, rgba(217,119,6,0.18), transparent 36%),
    repeating-linear-gradient(135deg, rgba(243,241,234,0.05) 0 1px, transparent 1px 14px);
  mix-blend-mode: normal;
  pointer-events: none;
}
.aud-card .img::after {
  content: none;
}
.aud-card .body-block {
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.aud-card .body-block .kicker { margin-bottom: 6px; }
.aud-card .body-block h3 { font-size: 22px; }
.aud-card .body-block p { font-size: 14px; color: var(--fg-dim); line-height: 1.5; }

@media (max-width: 900px) {
  .aud-grid { grid-template-columns: 1fr; gap: 0; }
  .aud-card + .aud-card { border-top: 0; }
}

/* ── LAYERS / NUMBERED STACK ──────────────────────── */
.layers {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}
.layer {
  display: grid;
  grid-template-columns: 60px 220px minmax(0, 1fr) minmax(0, 1fr) 140px;
  align-items: start;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background var(--t-fast);
}
.layer:hover { background: rgba(217,119,6,0.04); }
.layer .l-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.layer .l-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.layer .l-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.layer .l-body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-dim);
}
.layer .l-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.layer .l-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-mute);
}
.layer.live .l-status::before { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.layer.queued .l-status::before { background: var(--fg-faint); }

@media (max-width: 900px) {
  .layer {
    grid-template-columns: 60px 1fr;
    gap: 16px 20px;
  }
  .layer .l-tag { grid-column: 2; }
  .layer .l-title { grid-column: 1 / -1; }
  .layer .l-body { grid-column: 1 / -1; }
  .layer .l-status { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ── CLOSING / FULL-WIDTH STATEMENT ───────────────── */
.closer {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(217,119,6,0.10) 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(243,241,234,0.025) 119px 120px);
  pointer-events: none;
}
.closer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.closer h2 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}
.closer .col-right {
  display: flex; flex-direction: column; gap: 24px;
}
@media (max-width: 900px) {
  .closer-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 64px;
}
.footer .brand-block {
  display: flex; flex-direction: column; gap: 20px;
}
.footer .brand-block .name {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.footer .brand-block .tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  max-width: 30ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.footer-bottom .right { display: flex; gap: 24px; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .brand-block { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ── MISC ─────────────────────────────────────────── */
.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
}
.fade-up.armed {
  opacity: 0;
  transform: translateY(16px);
}
.fade-up.armed.in {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor blink (used in mono "live" labels) */
.blink::after {
  content: "_";
  animation: blink 1s steps(2) infinite;
  margin-left: 1px;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ── INSIGHTS INDEX ──────────────────────────────── */
.insights-hero {
  padding: clamp(96px, 12vh, 140px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--hairline);
  position: relative; overflow: hidden;
}
.insights-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(217,119,6,0.08) 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(243,241,234,0.025) 119px 120px);
  pointer-events: none;
}
.insights-hero .inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.insights-hero h1 {
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.insights-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
}
.insights-meta b { color: var(--fg); font-weight: 500; }
@media (max-width: 720px) {
  .insights-hero .inner { grid-template-columns: 1fr; }
  .insights-meta { text-align: left; }
}

.featured-strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
  transition: background var(--t-fast);
}
.featured-strip:hover { background: rgba(217,119,6,0.04); }
.featured-strip .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.featured-strip .ftitle {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.2;
}
.featured-strip .farrow {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 14px;
}
.featured-strip:hover .farrow { color: var(--accent); }
@media (max-width: 720px) {
  .featured-strip { grid-template-columns: 1fr; gap: 12px; }
}

.filterbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 0;
}
.filterbar .flabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 16px 24px 16px 0;
  border-right: 1px solid var(--hairline);
  margin-right: 0;
}
.filterbar button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 16px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast);
  border-right: 1px solid var(--hairline);
  font-weight: 500;
}
.filterbar button:hover { color: var(--fg); }
.filterbar button.active { color: var(--accent); }
.filterbar button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
}
.filterbar .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  padding: 16px 0;
}

.post-list {
  display: flex;
  flex-direction: column;
}
.post-row {
  display: grid;
  grid-template-columns: 60px 140px 1fr 140px;
  gap: 28px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--t-fast);
  position: relative;
}
.post-row:hover { background: rgba(217,119,6,0.04); }
.post-row.hidden { display: none; }
.post-row .pn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.post-row .pcat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.post-row .pbody { display: flex; flex-direction: column; gap: 10px; max-width: 70ch; }
.post-row .ptitle {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg);
  text-wrap: balance;
}
.post-row:hover .ptitle { color: var(--accent-soft); }
.post-row .psub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-dim);
  text-wrap: pretty;
}
.post-row .pdate {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.post-row .pdate .arr {
  color: var(--fg-mute);
}
.post-row:hover .pdate .arr { color: var(--accent); }

@media (max-width: 900px) {
  .post-row { grid-template-columns: 40px 1fr; gap: 12px 16px; padding: 24px 0; }
  .post-row .pcat { grid-column: 2; }
  .post-row .pbody { grid-column: 1 / -1; }
  .post-row .pdate { grid-column: 1 / -1; text-align: left; align-items: flex-start; flex-direction: row; }
}

/* ── POST PAGE (individual article) ───────────────── */
.post-shell {
  padding: clamp(120px, 18vh, 180px) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.post-shell::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(217,119,6,0.08) 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(243,241,234,0.025) 119px 120px);
  pointer-events: none;
}
.post-head {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 60px;
}
.post-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex; flex-direction: column; gap: 14px;
}
.post-head .meta .row { display: flex; flex-direction: column; gap: 4px; }
.post-head .meta .row b { color: var(--fg); font-weight: 500; }
.post-head .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
}
.post-head h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
}
.post-head .dek {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--fg-dim);
  margin-top: 24px;
  max-width: 64ch;
  text-wrap: pretty;
}
.post-head .byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 32px;
}
.post-head .byline b { color: var(--fg); font-weight: 500; }

.post-body-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 60px;
  padding: clamp(60px, 8vw, 100px) 0;
}
.post-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.post-toc .ttl {
  color: var(--fg-mute);
  padding: 0 0 8px 14px;
  border-left: 1px solid var(--hairline);
}
.post-toc a {
  color: var(--fg-mute);
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--hairline);
  transition: all var(--t-fast);
  line-height: 1.3;
}
.post-toc a:hover { color: var(--fg); border-color: var(--fg-dim); }
.post-toc a.active { color: var(--accent); border-color: var(--accent); }

.post-body {
  max-width: 720px;
}
.post-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-dim);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.post-body p strong { color: var(--fg); font-weight: 600; }
.post-body p em { color: var(--fg); font-style: italic; }
.post-body p a {
  color: var(--accent-soft);
  border-bottom: 1px solid var(--hairline-strong);
  transition: border-color var(--t-fast);
}
.post-body p a:hover { border-bottom-color: var(--accent); }
.post-body h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: clamp(48px, 5vw, 64px) 0 24px;
  color: var(--fg);
  scroll-margin-top: 96px;
  text-wrap: balance;
}
.post-body h2::before {
  content: "§";
  color: var(--accent);
  font-weight: 400;
  margin-right: 12px;
  display: inline-block;
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 40px 0;
}
.post-body .post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.post-body .post-footer .right { color: var(--fg); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.post-nav .pn-cell {
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background var(--t-fast);
  border-right: 1px solid var(--hairline);
}
.post-nav .pn-cell:last-child { border-right: 0; text-align: right; align-items: flex-end; }
.post-nav .pn-cell:hover { background: rgba(217,119,6,0.04); }
.post-nav .pn-cell.empty { pointer-events: none; opacity: 0.3; }
.post-nav .pn-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.post-nav .pn-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.2;
}
.post-nav .pn-cell:hover .pn-title { color: var(--accent-soft); }

@media (max-width: 900px) {
  .post-head, .post-body-shell { grid-template-columns: 1fr; gap: 32px; }
  .post-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; max-height: none; }
  .post-toc a { border-left: 0; border-top: 1px solid var(--hairline); padding: 8px 12px 0 12px; }
  .post-toc .ttl { display: none; }
}


/* ────────────────────────────────────────────────────
   RESPONSIVE SYSTEM
   Breakpoints: small mobile <480 / mobile <720 / tablet <1024 / desktop ≥1024
   ──────────────────────────────────────────────────── */

/* Utility: 2-column responsive grid that collapses to 1 col on tablet/mobile */
.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) {
  .split-2 { grid-template-columns: 1fr; gap: 32px; }
}

/* Constraint bar — 8 mono pills, responsive: 8 → 4 → 2 cols */
.constraint-bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .constraint-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .constraint-bar > div:nth-child(4) { border-right: none !important; }
  .constraint-bar > div:nth-child(n+5) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 480px) {
  .constraint-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .constraint-bar > div { border-right: 1px solid var(--hairline) !important; }
  .constraint-bar > div:nth-child(even) { border-right: none !important; }
  .constraint-bar > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* ── TABLET (≤1024) ─────────────────────────────── */
@media (max-width: 1024px) {
  /* Tighten container padding */
  :root { --pad-x: clamp(20px, 3.5vw, 40px); }

  /* Step grid — 4 → 2 cols */
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Footer 4 cols → 2+2 grouping */
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 2 / -1; grid-row: 2; }
  .footer-grid .brand-block { grid-column: 1; grid-row: 1 / span 2; }

  /* Hero strip 4 → 4 stays, but tighten font */
  .hero-strip .v { font-size: 13px; }

  /* Post pages — stop sticky TOC at this size, move above */
  .post-toc { position: static !important; flex-direction: row; flex-wrap: wrap; gap: 4px; max-height: none; }
  .post-toc a { border-left: 0; border-top: 1px solid var(--hairline); padding: 8px 12px 0 12px; }
  .post-toc .ttl { display: none; }
  .post-head, .post-body-shell { grid-template-columns: 1fr; gap: 32px; }

  /* Thesis */
  .thesis-hero-grid, .thesis-body { grid-template-columns: 1fr !important; gap: 32px; }
  .thesis-toc { position: static !important; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .thesis-toc a { border-left: none; border-top: 1px solid var(--hairline); padding: 8px 12px 0; }
}

/* ── MOBILE NAV — hide links, show hamburger ──────── */
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-cta .mono[data-clock] { display: none; }
  .nav-cta { gap: 12px; }
  .nav-cta .btn { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { grid-template-columns: auto auto; justify-content: space-between; gap: 16px; }

  /* Hero — content-driven height, top-aligned, so there's no dead space above */
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-content {
    justify-content: flex-start;
    padding-top: 96px;
    padding-bottom: clamp(48px, 6vh, 80px);
  }
  .hero-meta { margin-bottom: clamp(32px, 5vw, 56px); }
  .hero-headline { margin-bottom: 24px; }
  .hero-sub { margin-bottom: 32px; }
  .hero-cta { margin-bottom: clamp(36px, 5vw, 56px); }
}
@media (min-width: 901px) {
  .nav-burger { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* ── MOBILE (≤720) ────────────────────────────────── */
@media (max-width: 720px) {
  /* Section padding tighter */
  .section { padding: clamp(48px, 7vw, 72px) 0; }

  /* Hero */
  .hero { min-height: 640px; }
  .hero-headline { max-width: 100%; }
  .h-display { font-size: clamp(40px, 11vw, 64px); letter-spacing: -0.03em; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { padding: 0 16px; font-size: 11px; }

  /* Hero strip — 4 → 2 cols (already in 720 query but reinforce) */
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip > div { padding: 14px 14px; }
  .hero-strip .v { font-size: 12px; }
  .hero-meta { font-size: 9px; gap: 10px; }

  /* Type scale */
  .h-1 { font-size: clamp(32px, 8vw, 48px); }
  .h-2 { font-size: clamp(24px, 6vw, 34px); }
  .lede { font-size: 16px; }

  /* Section index column compresses */
  .section-index { grid-template-columns: 56px 1fr; gap: 12px; }

  /* Step grid → 1 col already at 540 — also kill min-height */
  .step-grid > article { min-height: 0; padding: 28px 20px 32px; }
  .tri-grid > article { min-height: 0; padding: 32px 24px 36px; }

  /* Footer collapse */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px; }
  .footer-grid .footer-col:last-child { grid-column: auto; grid-row: auto; }
  .footer-grid .brand-block { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Insights index */
  .insights-hero h1 { font-size: clamp(40px, 14vw, 80px) !important; }
  .featured-strip { padding: 20px 0; }

  /* Filterbar scrolls horizontally on mobile */
  .filterbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filterbar::-webkit-scrollbar { display: none; }
  .filterbar .flabel { white-space: nowrap; padding: 14px 16px 14px 0; }
  .filterbar button { white-space: nowrap; padding: 14px 14px; }
  .filterbar .count { display: none; }

  /* Post page */
  .post-shell { padding: clamp(96px, 14vh, 140px) 0 clamp(40px, 6vw, 60px); }
  .post-head h1 { font-size: clamp(32px, 9vw, 48px); }
  .post-head .dek { font-size: 17px; }
  .post-body p { font-size: 16px; }
  .post-body h2 { font-size: clamp(22px, 6vw, 28px); }
  .post-body h2::before { margin-right: 8px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .pn-cell { border-right: 0 !important; border-bottom: 1px solid var(--hairline); text-align: left !important; align-items: flex-start !important; }
  .post-nav .pn-cell:last-child { border-bottom: 0; }

  /* Closer */
  .closer-inner { grid-template-columns: 1fr; gap: 28px; }
  .closer h2 { font-size: clamp(36px, 9vw, 56px); }
}

/* ── SMALL MOBILE (≤480) ──────────────────────────── */
@media (max-width: 480px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip > div { padding: 12px 14px; }
  .nav-brand { font-size: 11px; gap: 8px; }
  .h-display { font-size: clamp(34px, 11vw, 54px); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .insights-hero h1 { font-size: clamp(36px, 14vw, 64px) !important; }
}

/* Touch device polish — no hover on touch, larger tap targets */
@media (hover: none) {
  .post-row:hover, .layer:hover, .channel:hover, .featured-strip:hover { background: transparent; }
  .channels .channel { min-height: 56px; }
  .nav-burger { width: 44px; height: 44px; }
}
