/* =========================================================================
   resto.ai · editorial-tech monochrome
   - pure black / off-white only; no color accents
   - Inter Tight (grotesk) + JetBrains Mono (data)
   - scroll-driven cinematic
   ========================================================================= */

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --fg: #f4f3ee;
  --fg-dim: #8a8884;
  --fg-mute: #54524e;
  --line: rgba(244, 243, 238, 0.12);
  --line-strong: rgba(244, 243, 238, 0.28);
  --invert-bg: #f4f3ee;
  --invert-fg: #0a0a0a;
  --invert-dim: #5a5854;
  --invert-line: rgba(10, 10, 10, 0.14);

  --font-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --w: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--font-sans); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  overflow-x: clip;
  min-width: 320px;
}
img, svg, video, canvas, iframe { max-width: 100%; }

/* film-grain over the whole page, very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01","ss02"; letter-spacing: 0.02em; }

/* ---------- top chrome ---------- */
.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 14px var(--pad);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 200;
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.chrome .brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.chrome .brand-mark {
  width: 18px; height: 18px; position: relative;
}
.chrome nav { display: flex; gap: 22px; }
.chrome nav a { transition: color 0.2s var(--ease); }
.chrome nav a:hover { color: var(--fg); }
.chrome .right { display: flex; gap: 18px; align-items: center; }
.lang-toggle {
  display: inline-flex;
  background: rgba(244,243,238,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  cursor: pointer;
  transition: color 0.2s;
}
.lang-toggle button.active { color: var(--bg); background: var(--fg); }

.chrome .cta-top {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  transition: background 0.2s, color 0.2s;
}
.chrome .cta-top:hover { background: var(--fg); color: var(--bg); }

/* scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  background: var(--fg);
  z-index: 300;
  transform-origin: 0 0;
  transform: scaleX(0);
}

@media (max-width: 820px) {
  .chrome nav { display: none; }
}

/* ---------- generic section ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  max-width: var(--w);
  margin: 0 auto;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 24px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 3px rgba(244,243,238,0.15);
}

.display {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(44px, 7.5vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display .thin { font-weight: 200; font-style: italic; font-family: "Inter Tight"; color: var(--fg-dim); }
.display .outline {
  -webkit-text-stroke: 1px var(--fg);
  color: transparent;
}

.big-lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--fg-dim);
  max-width: 62ch;
  text-wrap: pretty;
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* invert section */
.inverted { background: var(--invert-bg); color: var(--invert-fg); }
.inverted .kicker { color: var(--invert-dim); }
.inverted .kicker::before { background: var(--invert-fg); box-shadow: 0 0 0 3px rgba(10,10,10,0.1); }
.inverted .big-lead { color: var(--invert-dim); }
.inverted .display .thin { color: var(--invert-dim); }
.inverted .display .outline { -webkit-text-stroke-color: var(--invert-fg); }

/* ============ hero (pinned scrollytelling) ============ */
.hero-outer {
  position: relative;
  height: 320vh; /* 3 viewports of scroll drive the hero */
}
.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-lens-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero-lens-wrap svg {
  width: min(94vh, 94vw);
  height: min(94vh, 94vw);
  max-width: 1100px;
  max-height: 1100px;
}

.hero-text-stack {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1100px;
  padding: 0 var(--pad);
  pointer-events: none;
  mix-blend-mode: difference;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #f4f3ee;
  margin-bottom: 36px;
  transition: opacity 0.3s;
}
.hero-titles {
  position: relative;
  min-height: clamp(280px, 38vh, 460px);
  display: grid;
  place-items: center;
  transition: transform 0.2s linear;
}
.hero-t {
  font-size: clamp(40px, 7.2vw, 112px);
  line-height: 0.96;
  font-weight: 200;
  letter-spacing: -0.04em;
  color: #f4f3ee;
  transition: opacity 0.25s linear;
}
.hero-t.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hero-t .bold { font-weight: 800; font-style: normal; }
.hero-t em { font-weight: 200; font-style: italic; color: rgba(244,243,238,0.6); }

.hero-sub {
  margin-top: 32px;
  font-size: clamp(14px, 1.1vw, 16px);
  color: rgba(244,243,238,0.7);
  max-width: 500px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
  transition: opacity 0.3s;
}

.hero-stage-dots {
  position: absolute;
  right: 32px; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 4;
}
.stage-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(244,243,238,0.3);
  transition: color 0.4s;
  font-size: 10px;
  letter-spacing: 0.15em;
}
.stage-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(244,243,238,0.25);
  transition: all 0.4s;
}
.stage-dot.on { color: #f4f3ee; }
.stage-dot.on::before { background: #f4f3ee; box-shadow: 0 0 0 3px rgba(244,243,238,0.15); }
@media (max-width: 820px) { .hero-stage-dots { display: none; } }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.hero-scroll-hint .line {
  width: 40px; height: 1px; background: var(--fg-mute);
  position: relative; overflow: hidden;
}
.hero-scroll-hint .line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--fg);
  animation: trace 2.6s var(--ease) infinite;
}
@keyframes trace {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ============ manifesto ============ */
.manifesto-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.manifesto-lines {
  display: grid;
  gap: 0;
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.manifesto-lines .line { display: block; overflow: hidden; }
.manifesto-lines .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.manifesto-lines .line.shown > span { transform: translateY(0); }
.manifesto-lines .emph { font-weight: 800; font-style: normal; }
.manifesto-lines .period {
  display: inline-block;
  width: 0.35em; height: 0.35em;
  background: var(--fg);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: baseline;
  transform: translateY(-0.1em);
}

/* ============ pain (scroll-driven, side-by-side) ============ */
.pain-section {
  padding: clamp(100px, 14vh, 160px) var(--pad);
  position: relative;
}
.pain-sticky-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  max-width: var(--w);
  margin: 0 auto;
}
.pain-aperture {
  width: min(46vh, 46vw);
  aspect-ratio: 1;
  margin-left: auto;
  justify-self: end;
  transition: transform 0.2s linear;
}
.pain-aperture svg { width: 100%; height: 100%; }
.pain-content { max-width: 520px; position: relative; }
.pain-title {
  font-weight: 200;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.pain-title .emph { font-weight: 800; font-style: normal; color: var(--fg); }
.pain-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 42ch;
  margin-top: 20px;
  text-wrap: pretty;
}
.pain-stats {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.pain-stat { border-left: 1px solid var(--line-strong); padding-left: 14px; min-width: 110px; }
.pain-stat .n { font-size: 26px; font-weight: 300; font-variant-numeric: tabular-nums; }
.pain-stat .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fg-mute); text-transform: uppercase; margin-top: 4px; }
.pain-telemetry {
  position: absolute;
  right: -260px;
  top: -20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.7s var(--ease);
  pointer-events: none;
}
.pain-telemetry.in { opacity: 1; transform: translateX(0); }
.pain-telemetry .chip {
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  display: flex;
  gap: 6px;
  backdrop-filter: blur(6px);
  text-transform: uppercase;
}
.pain-telemetry .chip .k { color: var(--fg); }
.pain-telemetry .chip .v { color: var(--fg-mute); }
@media (max-width: 1400px) { .pain-telemetry { display: none; } }
@media (max-width: 820px) {
  .pain-sticky-inner { grid-template-columns: 1fr; gap: 40px; height: auto; position: relative; padding: 60px var(--pad); }
  .pain-section { min-height: auto; }
  .pain-aperture { width: 60vw; margin: 0 auto; }
}

/* perspective rail in manifesto */
.perspective-rail {
  position: absolute;
  left: 20px;
  top: 15%;
  bottom: 15%;
  width: 20px;
  pointer-events: none;
  opacity: 0.6;
}
.manifesto-section { position: relative; }
@media (max-width: 820px) { .perspective-rail { display: none; } }

/* agit flow */
.agit-flow {
  position: absolute;
  left: 50%;
  top: 200px;
  bottom: 200px;
  width: 40px;
  margin-left: -20px;
  pointer-events: none;
  opacity: 0.4;
}

/* timestamp frame */
.timestamp-frame {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-mute);
  border: 1px solid var(--line);
  padding: 8px 14px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}
.timestamp-frame::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============ agitation ============ */
.agit-section {
  padding: clamp(100px, 14vh, 160px) var(--pad);
  position: relative;
}
.agit-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 28ch;
  margin: 0 auto 72px;
  text-align: center;
  color: var(--fg);
}
.agit-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.agit-row {
  display: grid;
  grid-template-columns: 160px 1fr 40px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  transition: background 0.4s var(--ease);
}
.agit-row .n {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 200;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.agit-row .l {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.4;
}
.agit-row .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.12em;
  text-align: right;
}
.agit-row:hover { background: rgba(244,243,238,0.02); }
.agit-tail {
  max-width: 580px;
  margin: 80px auto 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 200;
  line-height: 1.5;
  color: var(--fg);
  text-align: center;
  text-wrap: balance;
}
.agit-tail em { font-weight: 200; font-style: italic; color: var(--fg-dim); }

/* ============ system — 10 cameras ============ */
.system-section {
  padding: clamp(120px, 14vh, 180px) var(--pad);
  max-width: var(--w);
  margin: 0 auto;
}
.system-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.system-head h2 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 200;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.system-head h2 .emph { font-weight: 800; }
@media (max-width: 820px) { .system-head { grid-template-columns: 1fr; gap: 30px; } }

.floorplan-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1000px) { .floorplan-wrap { grid-template-columns: 1fr; } }

.floorplan {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
}
.floorplan svg { width: 100%; height: 100%; display: block; }

.camera-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.camera-row {
  display: grid;
  grid-template-columns: 36px 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.camera-row .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
}
.camera-row .z {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}
.camera-row .f {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.4;
}
.camera-row:hover, .camera-row.active {
  background: rgba(244,243,238,0.04);
  padding-left: 8px;
}
.camera-row:hover .n, .camera-row.active .n { color: var(--fg); }

/* ============ intel ============ */
.intel-section {
  padding: clamp(120px, 16vh, 200px) var(--pad);
  max-width: var(--w);
  margin: 0 auto;
}
.intel-head h2 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 200;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.intel-head h2 .emph { font-weight: 800; }
.intel-head .big-lead { margin-bottom: 80px; }

.intel-network {
  position: relative;
  margin: 0 auto 80px;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
}
.intel-network svg { width: 100%; height: 100%; display: block; }

.intel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.intel-card {
  background: var(--bg);
  padding: 40px 36px 44px;
}
.intel-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}
.intel-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--fg);
}
.intel-card p { font-size: 15px; line-height: 1.55; color: var(--fg-dim); }
@media (max-width: 820px) { .intel-cards { grid-template-columns: 1fr; } }

/* ============ channels ============ */
.channels-section {
  padding: clamp(120px, 16vh, 200px) var(--pad);
  max-width: var(--w);
  margin: 0 auto;
}
.channels-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.channels-head h2 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 200;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.channels-head h2 .emph { font-weight: 800; }
@media (max-width: 820px) { .channels-head { grid-template-columns: 1fr; gap: 30px; } }

.channels-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  min-height: 420px;
}
@media (max-width: 1100px) { .channels-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .channels-grid { grid-template-columns: 1fr; } }

.channel-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.channel-card .icon {
  width: 56px; height: 56px;
  margin-bottom: 28px;
  color: var(--fg);
}
.channel-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.channel-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--fg);
}
.channel-card p { font-size: 14px; line-height: 1.55; color: var(--fg-dim); }
.channel-card.primary { background: var(--invert-bg); color: var(--invert-fg); }
.channel-card.primary .tag { color: var(--invert-dim); }
.channel-card.primary h3 { color: var(--invert-fg); }
.channel-card.primary p { color: var(--invert-dim); }
.channel-card.primary .icon { color: var(--invert-fg); }

/* ============ saturday ============ */
.saturday-section {
  padding: clamp(140px, 18vh, 200px) var(--pad) clamp(100px, 14vh, 160px);
  max-width: var(--w);
  margin: 0 auto;
}
.saturday-head { max-width: 900px; margin: 0 auto 80px; text-align: center; }
.saturday-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.saturday-head h2 .emph { font-weight: 800; }
.saturday-head .big-lead { margin: 0 auto; }
.saturday-head .kicker { justify-content: center; display: inline-flex; }

.saturday-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1000px) { .saturday-stage { grid-template-columns: 1fr; gap: 40px; } }

.saturday-context {
  position: sticky;
  top: 120px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.saturday-context .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 10px;
}
.saturday-context .clock {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.saturday-context .scene {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.5;
  min-height: 90px;
  transition: opacity 0.4s;
}
.saturday-context .scene.fading { opacity: 0.2; }

.saturday-phone {
  max-width: 380px;
  margin: 0 auto;
  background: #0f0f0f;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  padding: 14px 14px 22px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.saturday-phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #000;
  border-radius: 999px;
}
.phone-screen {
  background: linear-gradient(180deg, #0f1511 0%, #0b0f0d 100%);
  border-radius: 22px;
  padding: 60px 14px 18px;
  min-height: 620px;
  max-height: 620px;
  overflow: hidden;
  position: relative;
}
.phone-header {
  position: absolute;
  top: 14px; left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #7d9088;
  letter-spacing: 0.1em;
}
.phone-header .avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3d33, #1a261f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #c9d4ce;
}
.phone-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  height: 100%;
  padding-bottom: 12px;
}
.phone-messages::-webkit-scrollbar { width: 0; }

.msg {
  background: #1a2a23;
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  max-width: 88%;
  font-size: 12.5px;
  line-height: 1.45;
  color: #e4e9e6;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in 0.5s var(--ease) forwards;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.msg .time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #6b7e77;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.msg .lead {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #f0f5f2;
}
.msg .lead .sym { opacity: 0.9; margin-right: 4px; }
.msg .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #a8b5af;
  line-height: 1.5;
}
.msg .sugg {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-size: 11.5px;
  color: #c0cdc6;
  font-style: italic;
}
@keyframes msg-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ report card ============ */
.report-section {
  padding: clamp(120px, 16vh, 180px) var(--pad);
  max-width: var(--w);
  margin: 0 auto;
}
.report-head {
  max-width: 880px;
  margin: 0 auto 60px;
  text-align: center;
}
.report-head h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.report-head h2 .emph { font-weight: 800; }
.report-head .kicker { justify-content: center; display: inline-flex; }

.report-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--invert-bg);
  color: var(--invert-fg);
  padding: 48px 48px 56px;
  font-family: var(--font-sans);
  border: 1px solid var(--invert-line);
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.report-card::before, .report-card::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 24px; height: 1px;
  background: var(--invert-fg);
  opacity: 0.35;
}
.report-card::before { left: 48px; }
.report-card::after { right: 48px; }
@media (max-width: 640px) { .report-card { padding: 32px 24px; } }

.report-card .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--invert-line);
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--invert-dim);
}
.report-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 36px;
}
.report-card h3 .emph { font-weight: 800; }

.rep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--invert-line);
  margin-bottom: 32px;
}
@media (max-width: 640px) { .rep-grid { grid-template-columns: repeat(2, 1fr); } }
.rep-stat .n { font-size: 28px; font-weight: 200; letter-spacing: -0.02em; color: var(--invert-fg); line-height: 1; }
.rep-stat .trend { font-family: var(--font-mono); font-size: 11px; color: var(--invert-dim); margin-top: 6px; }
.rep-stat .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--invert-dim); margin-top: 10px; }

.rep-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--invert-dim);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rep-section-title::after { content: ""; flex: 1; height: 1px; background: var(--invert-line); }

.rep-insights { display: grid; gap: 18px; margin-bottom: 36px; }
.rep-insight {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: baseline;
}
.rep-insight .idx { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--invert-fg); }
.rep-insight .body .t { font-size: 15px; font-weight: 500; line-height: 1.4; margin-bottom: 4px; }
.rep-insight .body .sug { font-size: 13px; color: var(--invert-dim); font-style: italic; }

.rep-action {
  padding: 20px 24px;
  background: var(--invert-fg);
  color: var(--invert-bg);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 28px;
}
.rep-action .t {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* ============ qa ============ */
.qa-section {
  padding: clamp(120px, 16vh, 180px) var(--pad);
  max-width: var(--w);
  margin: 0 auto;
}
.qa-head { max-width: 880px; margin: 0 auto 60px; text-align: center; }
.qa-head h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.qa-head h2 .emph { font-weight: 800; }
.qa-head .kicker { justify-content: center; display: inline-flex; }
.qa-window {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 32px;
}
.qa-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.qa-prompt {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: transparent;
}
.qa-prompt:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.qa-prompt.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.qa-thread { display: flex; flex-direction: column; gap: 18px; min-height: 220px; }
.qa-bubble { max-width: 85%; }
.qa-bubble.q {
  align-self: flex-end;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 16px;
  font-size: 14.5px;
  border-radius: 10px 10px 2px 10px;
}
.qa-bubble.a {
  align-self: flex-start;
  border-left: 1px solid var(--line-strong);
  padding: 4px 0 4px 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 85%;
}
.qa-bubble.a .typing { color: var(--fg-dim); }
.qa-bubble.a .cursor {
  display: inline-block;
  width: 6px; height: 14px;
  background: var(--fg);
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
  vertical-align: -2px;
}
@keyframes blink { 50% { opacity: 0; } }

.qa-list {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.7;
  color: var(--fg);
}
.qa-list .dim { color: var(--fg-dim); }

/* ============ onboarding ============ */
.onboard-section {
  padding: clamp(120px, 16vh, 180px) var(--pad);
  max-width: var(--w);
  margin: 0 auto;
}
.onboard-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.onboard-head h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.onboard-head h2 .emph { font-weight: 800; }
@media (max-width: 820px) { .onboard-head { grid-template-columns: 1fr; gap: 30px; } }

.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.timeline-phase {
  position: relative;
  padding: 0 0 48px 48px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}
.timeline-phase::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--fg-dim);
  transition: all 0.4s var(--ease);
}
.timeline-phase.on::before { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 0 4px rgba(244,243,238,0.1); }
.timeline-phase .w {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-top: 4px;
}
.timeline-phase.on .w { color: var(--fg); }
.timeline-phase h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.timeline-phase p { font-size: 15px; color: var(--fg-dim); line-height: 1.55; max-width: 48ch; }
@media (max-width: 640px) {
  .timeline-phase { grid-template-columns: 1fr; gap: 8px; padding-left: 28px; }
}

/* ============ cta ============ */
.cta-section {
  background: var(--invert-bg);
  color: var(--invert-fg);
  padding: clamp(140px, 18vh, 200px) var(--pad);
  position: relative;
}
.cta-wrap { max-width: var(--w); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 1000px) { .cta-wrap { grid-template-columns: 1fr; } }

.cta-section .kicker { color: var(--invert-dim); }
.cta-section .kicker::before { background: var(--invert-fg); box-shadow: 0 0 0 3px rgba(10,10,10,0.1); }
.cta-section h2 {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 200;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.cta-section h2 .emph { font-weight: 800; }
.cta-section .big-lead { color: var(--invert-dim); max-width: 52ch; margin-bottom: 40px; }

.cta-trust { display: grid; gap: 18px; margin-top: 48px; }
.cta-trust-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--invert-line);
  font-size: 14px;
  color: var(--invert-dim);
}
.cta-trust-item svg { width: 18px; height: 18px; margin-top: 2px; color: var(--invert-fg); }
.cta-trust-item strong { color: var(--invert-fg); font-weight: 500; }

/* form */
.form-card {
  background: var(--invert-bg);
  border: 1px solid var(--invert-line);
  padding: 36px 36px 40px;
  position: relative;
}
.form-card .form-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--invert-dim);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-card .form-head::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--invert-fg);
}
.form-row {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--invert-dim);
}
.form-row input, .form-row select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--invert-line);
  padding: 10px 0;
  font-size: 16px;
  color: var(--invert-fg);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus { border-color: var(--invert-fg); }
.form-row input::placeholder { color: var(--invert-dim); opacity: 0.5; }

.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 540px) { .form-two { grid-template-columns: 1fr; } }

/* calendar */
.calendar {
  border: 1px solid var(--invert-line);
  padding: 16px;
  margin-top: 4px;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--invert-dim);
}
.cal-nav {
  background: transparent;
  border: 1px solid var(--invert-line);
  width: 22px; height: 22px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--invert-fg);
  transition: background 0.2s, color 0.2s;
}
.cal-nav:hover { background: var(--invert-fg); color: var(--invert-bg); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
  color: var(--invert-dim);
  padding: 4px 0;
  letter-spacing: 0.1em;
}
.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--invert-fg);
  transition: all 0.15s;
  font-variant-numeric: tabular-nums;
}
.cal-day.empty { cursor: default; color: transparent; }
.cal-day.past { color: rgba(10,10,10,0.25); cursor: not-allowed; }
.cal-day:not(.empty):not(.past):hover { border-color: var(--invert-fg); }
.cal-day.selected { background: var(--invert-fg); color: var(--invert-bg); }

/* time chips */
.time-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.time-chip {
  flex: 1;
  min-width: 90px;
  padding: 10px 14px;
  border: 1px solid var(--invert-line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--invert-fg);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.time-chip:hover { border-color: var(--invert-fg); }
.time-chip.selected { background: var(--invert-fg); color: var(--invert-bg); border-color: var(--invert-fg); }

.form-submit {
  margin-top: 28px;
  padding: 18px 28px;
  background: var(--invert-fg);
  color: var(--invert-bg);
  border: 0;
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.88; }
.form-submit .arrow { transition: transform 0.2s; }
.form-submit:hover .arrow { transform: translateX(4px); }
.form-submitted {
  padding: 40px 32px;
  text-align: center;
  font-size: 16px;
  color: var(--invert-fg);
  border: 1px solid var(--invert-line);
  margin-top: 20px;
  line-height: 1.5;
}
.form-submitted .check {
  width: 36px; height: 36px;
  display: inline-block;
  border: 1px solid var(--invert-fg);
  border-radius: 50%;
  margin-bottom: 16px;
  position: relative;
}
.form-submitted .check::after {
  content: "";
  position: absolute;
  top: 10px; left: 10px;
  width: 14px; height: 7px;
  border-left: 1.5px solid var(--invert-fg);
  border-bottom: 1.5px solid var(--invert-fg);
  transform: rotate(-45deg);
}

/* ============ footer ============ */
.footer {
  padding: 80px var(--pad) 60px;
  max-width: var(--w);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.footer .f-text { font-size: 14px; color: var(--fg-dim); line-height: 1.6; max-width: 52ch; }
.footer .f-text strong { color: var(--fg); font-weight: 500; }
.footer .f-right {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-align: right;
}
@media (max-width: 820px) {
  .footer { grid-template-columns: 1fr; text-align: left; }
  .footer .f-right { text-align: left; }
}

/* ============ tweaks panel ============ */
.tweaks-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 400;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  padding: 20px;
  width: 280px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.tweaks-panel h5 {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row .label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.tweak-options {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tweak-opt {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s;
}
.tweak-opt.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tweak-opt:hover { color: var(--fg); }

/* variant: serif headings */
body.v-serif h1, body.v-serif h2, body.v-serif h3,
body.v-serif .display, body.v-serif .manifesto-lines,
body.v-serif .hero h1 {
  font-family: "Newsreader", "Times New Roman", serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}
body.v-serif .display .emph, body.v-serif h2 .emph, body.v-serif .manifesto-lines .emph { font-weight: 600; }

/* variant: light mode */
body.v-light {
  --bg: #f4f3ee;
  --bg-alt: #e8e6e0;
  --fg: #0a0a0a;
  --fg-dim: #5a5854;
  --fg-mute: #8a8884;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.28);
  --invert-bg: #0a0a0a;
  --invert-fg: #f4f3ee;
  --invert-dim: #8a8884;
  --invert-line: rgba(244, 243, 238, 0.14);
}

/* ============ ambient aperture (persistent through scroll) ============ */
.ambient-aperture {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 100px;
  height: 100px;
  z-index: 150;
  pointer-events: none;
  opacity: 0.9;
}
.ambient-aperture svg {
  width: 100%; height: 100%;
  transition: transform 0.15s linear;
}
.ambient-readout {
  position: absolute;
  left: 108px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  line-height: 1.6;
}
@media (max-width: 820px) { .ambient-aperture { width: 64px; height: 64px; bottom: 14px; left: 14px; } .ambient-readout { display: none; } }

/* data streams */
.data-stream {
  position: fixed;
  top: 0; bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 140;
  opacity: 0.6;
}
.data-stream-left { left: 8px; }
.data-stream-right { right: 8px; }
.data-stream svg { width: 100%; height: 100%; }
@media (max-width: 820px) { .data-stream { display: none; } }

/* scanline overlay on hero */
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244,243,238,0.55), transparent);
  pointer-events: none;
  z-index: 4;
  animation: scan-sweep 7s linear infinite;
  opacity: 0.5;
  mix-blend-mode: overlay;
}
@keyframes scan-sweep {
  0% { top: 0; opacity: 0; }
  5% { opacity: 0.6; }
  50% { opacity: 0.6; }
  95% { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

/* telemetry floating chips */
.tele-chips {
  position: absolute;
  right: var(--pad);
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
  max-width: 220px;
}
.tele-chip {
  border: 1px solid var(--line);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0;
  transform: translateX(20px);
  animation: tele-in 0.5s forwards var(--ease);
}
.tele-chip:nth-child(1) { animation-delay: 0.1s; }
.tele-chip:nth-child(2) { animation-delay: 0.3s; }
.tele-chip:nth-child(3) { animation-delay: 0.5s; }
.tele-chip:nth-child(4) { animation-delay: 0.7s; }
.tele-k { color: var(--fg-mute); letter-spacing: 0.15em; text-transform: uppercase; font-size: 9px; margin-bottom: 3px; }
.tele-v { color: var(--fg); font-size: 12px; font-variant-numeric: tabular-nums; }
@keyframes tele-in {
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 1200px) { .tele-chips { display: none; } }

/* ============ companion aperture (persistent scroll companion) ============ */
.companion-aperture {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s linear;
  mix-blend-mode: normal;
}
.companion-aperture svg {
  display: block;
}
@media (max-width: 820px) {
  .companion-aperture svg { width: 70vmin !important; height: 70vmin !important; }
}

.parallax-grid {
  position: fixed;
  inset: 0 0 -100vh 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.1s linear;
}

.drifting-data {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

.section-transition {
  display: block;
  padding: 40px 0;
  max-width: var(--w);
  margin: 0 auto;
}
.section-transition svg {
  width: 100%;
  height: 100px;
  display: block;
}

/* ============ horizontal-scroll PAS band ============ */
.hpas-outer {
  position: relative;
  /* height drives how long the horizontal scroll lasts */
  height: 500vh;
  background: var(--bg);
}
.hpas-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hpas-track {
  display: flex;
  gap: 0;
  will-change: transform;
}
.hpas-panel {
  flex: 0 0 100vw;
  height: 100vh;
  padding: 0 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw;
  position: relative;
}
.hpas-panel .hp-num {
  position: absolute;
  top: 8vh;
  left: 8vw;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--fg-mute);
}
.hpas-panel .hp-label {
  position: absolute;
  top: 8vh;
  right: 8vw;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--fg-mute);
}
.hpas-panel h2 {
  font-size: clamp(38px, 5.5vw, 80px);
  line-height: 0.98;
  font-weight: 200;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hpas-panel h2 .emph { font-weight: 800; }
.hpas-panel h2 .ita { font-style: italic; font-family: "Newsreader", serif; font-weight: 300; }
.hpas-panel .hp-body {
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.55;
  max-width: 44ch;
  text-wrap: pretty;
}
.hpas-panel .hp-right {
  position: relative;
  min-height: 70vh;
}
.hpas-progress {
  position: absolute;
  bottom: 6vh;
  left: 8vw;
  right: 8vw;
  height: 2px;
  background: var(--line);
  z-index: 10;
}
.hpas-progress > .bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--fg);
  transform-origin: left;
  transition: transform 0.1s linear;
}
.hpas-dots {
  position: absolute;
  bottom: calc(6vh + 14px);
  left: 8vw;
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hpas-dots .dot {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-mute);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.hpas-dots .dot.active { color: var(--fg); border-color: var(--fg); }

@media (max-width: 820px) {
  .hpas-outer { height: auto; }
  .hpas-pin { position: relative; height: auto; overflow: visible; }
  .hpas-track { flex-direction: column; padding: 0; }
  .hpas-panel { flex: none; height: auto; min-height: 80vh; padding: 80px var(--pad); grid-template-columns: 1fr; }
  .hpas-progress, .hpas-dots { display: none; }
}

/* make sections sit above ambient layers */
.section, .hero-outer, .pain-section, .agit-section, .hpas-outer,
.system-section, .intel-section, .channels-section, .saturday-section,
.report-section, .qa-section, .onboarding-section, .cta-section {
  position: relative;
  z-index: 5;
}
.enter-left { transform: translateX(-40px); opacity: 0; transition: all 0.9s var(--ease); }
.enter-left.in { transform: translateX(0); opacity: 1; }
.enter-right { transform: translateX(40px); opacity: 0; transition: all 0.9s var(--ease); }
.enter-right.in { transform: translateX(0); opacity: 1; }
.enter-scale { transform: scale(0.92); opacity: 0; transition: all 0.9s var(--ease); }
.enter-scale.in { transform: scale(1); opacity: 1; }
.enter-rotate { transform: rotate(-2deg) translateY(30px); opacity: 0; transition: all 1s var(--ease); }
.enter-rotate.in { transform: rotate(0) translateY(0); opacity: 1; }

.reveal-from-left { transform: translateX(-30px); opacity: 0; transition: all 0.7s var(--ease); }
.reveal-from-left.in { transform: translateX(0); opacity: 1; }
.reveal-from-right { transform: translateX(30px); opacity: 0; transition: all 0.7s var(--ease); }
.reveal-from-right.in { transform: translateX(0); opacity: 1; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
}

/* =========================================================================
   responsive overrides (tablet / mobile / small-mobile / landscape / large)
   consolidated — override earlier rules where needed.
   ========================================================================= */

/* tablet & below: tighten hero + sections */
@media (max-width: 1024px) {
  :root { --pad: clamp(18px, 4vw, 40px); }
  .section, .system-section, .intel-section, .channels-section,
  .saturday-section, .report-section, .qa-section, .onboard-section {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .intel-network { aspect-ratio: auto; height: 52vh; max-height: 520px; }
  .system-head, .channels-head, .onboard-head { gap: 32px; }
}

/* mobile landscape + tablet portrait small */
@media (max-width: 820px) {
  .chrome { font-size: 10px; gap: 8px; padding: 12px var(--pad); }
  .chrome .brand { font-size: 11px; gap: 8px; }
  .chrome .brand-mark { width: 16px; height: 16px; }
  .chrome .right { gap: 10px; }
  .chrome .cta-top { padding: 6px 10px; font-size: 10px; }
  .lang-toggle button { padding: 4px 8px; font-size: 10px; }

  /* hero */
  .hero-outer { height: 280vh; }
  .hero-text-stack { padding: 0 16px; }
  .hero-titles { min-height: clamp(220px, 42vh, 360px); }
  .hero-t { font-size: clamp(30px, 8.4vw, 56px); line-height: 0.98; letter-spacing: -0.03em; }
  .hero-eyebrow { margin-bottom: 24px; letter-spacing: 0.2em; }
  .hero-sub { margin-top: 22px; font-size: 13px; padding: 0 8px; }
  .hero-lens-wrap svg { width: min(80vh, 88vw); height: min(80vh, 88vw); }
  .hero-scroll-hint { bottom: 20px; font-size: 9px; }
  .hero-scroll-hint .line { width: 28px; }

  /* manifesto */
  .manifesto-section { min-height: auto; padding-top: 120px; padding-bottom: 120px; }
  .manifesto-lines { font-size: clamp(36px, 10vw, 64px); line-height: 1.05; }

  /* horizontal-scroll PAS stacked */
  .hpas-panel { padding: 64px var(--pad); min-height: auto; gap: 24px; }
  .hpas-panel .hp-num, .hpas-panel .hp-label {
    position: static; display: inline-block; margin: 0 0 12px;
  }
  .hpas-panel h2 { font-size: clamp(30px, 8.4vw, 56px); margin-bottom: 16px; }
  .hpas-panel .hp-body { font-size: 15px; max-width: 100%; }
  .hpas-panel .hp-right { min-height: 40vh; margin-top: 24px; }

  /* pain */
  .pain-section { padding: 80px var(--pad); }
  .pain-sticky-inner { padding: 40px 0; }
  .pain-aperture { width: min(72vw, 360px); }
  .pain-title { font-size: clamp(26px, 7vw, 42px); }
  .pain-body { font-size: 14px; }
  .pain-stats { gap: 12px; }
  .pain-stat { min-width: 96px; }
  .pain-stat .n { font-size: 22px; }

  /* agit */
  .agit-section { padding: 80px var(--pad); }
  .agit-row { grid-template-columns: 64px 1fr; gap: 14px; padding: 20px 0; }
  .agit-row .idx { display: none; }
  .agit-row .n { font-size: clamp(24px, 6vw, 36px); }
  .agit-row .l { font-size: 14px; }
  .agit-tail { margin-top: 48px; font-size: 16px; }

  /* system */
  .system-section { padding: 96px var(--pad); }
  .system-head { margin-bottom: 48px; }
  .system-head h2 { font-size: clamp(32px, 8.4vw, 56px); }
  .camera-row { grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; }
  .camera-row .z { font-size: 13px; }
  .camera-row .f { grid-column: 1 / -1; font-size: 12px; margin-top: 2px; color: var(--fg-dim); }
  .camera-row .n { font-size: 10px; }

  /* intel */
  .intel-section { padding: 96px var(--pad); }
  .intel-head h2 { font-size: clamp(32px, 8.4vw, 56px); }
  .intel-head .big-lead { margin-bottom: 48px; }
  .intel-network { margin-bottom: 48px; height: 42vh; min-height: 280px; }
  .intel-card { padding: 32px 28px 36px; }
  .intel-card h3 { font-size: 20px; }

  /* channels */
  .channels-section { padding: 96px var(--pad); }
  .channels-head { margin-bottom: 48px; }
  .channels-head h2 { font-size: clamp(32px, 8.4vw, 56px); }
  .channel-card { padding: 28px 24px; min-height: 300px; }
  .channel-card .icon { width: 44px; height: 44px; margin-bottom: 20px; }

  /* saturday */
  .saturday-section { padding: 96px var(--pad) 80px; }
  .saturday-head { margin-bottom: 48px; }
  .saturday-head h2 { font-size: clamp(28px, 7vw, 44px); }
  .saturday-context { position: static; padding: 22px 20px; }
  .saturday-context .clock { font-size: 32px; margin-bottom: 12px; }
  .saturday-context .scene { font-size: 14px; min-height: 0; }
  .saturday-phone { max-width: 320px; padding: 10px 10px 18px; }
  .saturday-phone::before { width: 80px; height: 18px; top: 14px; }
  .phone-screen { min-height: 520px; max-height: 560px; padding: 52px 10px 14px; }

  /* report */
  .report-section { padding: 96px var(--pad); }
  .report-head { margin-bottom: 40px; }
  .report-head h2 { font-size: clamp(26px, 7vw, 40px); }
  .report-card { padding: 32px 22px 40px; }
  .report-card::before { left: 22px; }
  .report-card::after { right: 22px; }
  .report-card .top { flex-wrap: wrap; gap: 6px 18px; font-size: 10px; }
  .report-card h3 { font-size: 20px; margin-bottom: 24px; }
  .rep-grid { gap: 18px 20px; }
  .rep-stat .n { font-size: 22px; }
  .rep-insight { grid-template-columns: 22px 1fr; gap: 10px; }
  .rep-action { padding: 16px 18px; font-size: 13px; }

  /* qa */
  .qa-section { padding: 96px var(--pad); }
  .qa-head h2 { font-size: clamp(26px, 7vw, 40px); }
  .qa-window { padding: 22px; }
  .qa-prompts { gap: 6px; margin-bottom: 20px; }
  .qa-prompt { padding: 7px 12px; font-size: 10.5px; }
  .qa-bubble.q, .qa-bubble.a { max-width: 92%; font-size: 13.5px; }

  /* onboarding */
  .onboard-section { padding: 96px var(--pad); }
  .onboard-head h2 { font-size: clamp(26px, 7vw, 40px); }
  .timeline { padding-left: 16px; }
  .timeline-phase { padding: 0 0 36px 24px; }
  .timeline-phase::before { left: -22px; }

  /* cta */
  .cta-section { padding: 96px var(--pad); }
  .cta-section h2 { font-size: clamp(32px, 8.4vw, 56px); margin-bottom: 22px; }
  .cta-section .big-lead { margin-bottom: 28px; font-size: 16px; }
  .cta-trust { margin-top: 32px; }
  .cta-wrap { gap: 48px; }
  .form-card { padding: 28px 22px 32px; }
  .calendar { padding: 12px; }
  .cal-day { font-size: 11px; }
  .time-chips { gap: 6px; }
  .time-chip { min-width: 72px; padding: 9px 10px; font-size: 10.5px; }

  /* footer */
  .footer { padding: 56px var(--pad) 48px; gap: 24px; }
  .footer .f-text { font-size: 13px; }

  /* tweaks panel — never block content on mobile */
  .tweaks-panel { display: none; }

  /* ambient / data streams already hidden */
}

/* small mobile */
@media (max-width: 480px) {
  :root { --pad: 16px; }
  body { font-size: 16px; }
  .display { font-size: clamp(34px, 10vw, 52px); }
  .big-lead { font-size: 15px; }

  /* chrome stays compact */
  .chrome .brand span { font-size: 11px; }
  .chrome .cta-top { padding: 5px 9px; letter-spacing: 0.05em; }

  /* hero headline must not wrap awkwardly */
  .hero-t { font-size: clamp(28px, 9vw, 44px); }
  .hero-titles { min-height: clamp(200px, 44vh, 320px); }

  /* manifesto */
  .manifesto-lines { font-size: clamp(30px, 10.5vw, 48px); }

  /* hpas */
  .hpas-panel h2 { font-size: clamp(28px, 9vw, 44px); }
  .hpas-panel .hp-body { font-size: 14px; }

  /* agit single col */
  .agit-row { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .agit-row .n { font-size: 22px; }

  /* report card numbers compact */
  .rep-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* forms: bigger touch targets */
  .form-row input, .form-row select { font-size: 16px; padding: 12px 0; }
  .form-submit { padding: 16px 20px; font-size: 14px; }
  .cal-day { font-size: 10px; }

  /* saturday phone fits */
  .saturday-phone { max-width: 100%; }
  .phone-screen { min-height: 480px; max-height: 520px; }
  .msg { font-size: 12px; }

  /* channels icons */
  .channel-card { min-height: 260px; padding: 24px 20px; }
  .channel-card h3 { font-size: 18px; }
  .channel-card p { font-size: 13px; }

  /* intel cards */
  .intel-card { padding: 28px 22px 32px; }
  .intel-card h3 { font-size: 18px; }
  .intel-card p { font-size: 14px; }

  /* report card top wraps nicely */
  .report-card { padding: 26px 18px 32px; }
  .report-card::before { left: 18px; }
  .report-card::after { right: 18px; }

  /* qa prompts wrap nicely */
  .qa-prompts { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; margin-right: -16px; }
  .qa-prompt { flex: 0 0 auto; }
}

/* very small (≤360px) */
@media (max-width: 360px) {
  .hero-t { font-size: clamp(24px, 9vw, 38px); }
  .manifesto-lines { font-size: clamp(28px, 10.5vw, 42px); }
  .chrome .cta-top { padding: 5px 8px; font-size: 9.5px; }
  .chrome .brand span { display: none; }
}

/* short landscape on phones — shrink hero so it isn't a wall of text */
@media (max-height: 560px) and (orientation: landscape) {
  .hero-outer { height: 260vh; }
  .hero-lens-wrap svg { width: min(70vh, 70vw); height: min(70vh, 70vw); }
  .hero-titles { min-height: 180px; }
  .hero-t { font-size: clamp(26px, 5vw, 44px); }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-sub { margin-top: 14px; }
  .manifesto-section { min-height: auto; padding: 80px var(--pad); }
}

/* ultra-wide: cap readability */
@media (min-width: 1800px) {
  :root { --w: 1400px; }
}

/* touch devices: remove hover-only CSS traps */
@media (hover: none) {
  .agit-row:hover { background: transparent; }
  .camera-row:hover { background: transparent; padding-left: 0; }
  .camera-row:hover .n { color: var(--fg-mute); }
  .qa-prompt:hover:not(.active) { background: transparent; color: var(--fg-dim); border-color: var(--line); }
}

/* cross-browser fallbacks */
@supports not (aspect-ratio: 1) {
  .floorplan { height: 0; padding-bottom: 75%; }
  .floorplan svg { position: absolute; inset: 0; }
  .intel-network { height: 0; padding-bottom: 56.25%; }
  .intel-network svg { position: absolute; inset: 0; }
  .pain-aperture { height: min(46vh, 46vw); }
  .cal-day { height: 28px; }
}
@supports not (backdrop-filter: blur(6px)) {
  .chrome, .pain-telemetry .chip, .tele-chip {
    background: rgba(10,10,10,0.94);
  }
}
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}
/* safari 100vh fix — use small viewport unit when supported */
@supports (height: 100svh) {
  .hero-pin, .hpas-pin { height: 100svh; }
  .manifesto-section { min-height: 100svh; }
}
