/* Sevah Robotics — clinical-light editorial system */
:root {
  --bg: oklch(0.985 0.008 75);
  --bg-2: oklch(0.965 0.012 75);
  --bg-3: oklch(0.94 0.014 70);
  --ink: oklch(0.18 0.012 60);
  --ink-2: oklch(0.34 0.012 60);
  --ink-3: oklch(0.52 0.012 60);
  --ink-4: oklch(0.72 0.012 60);
  --line: oklch(0.86 0.012 70);
  --line-2: oklch(0.78 0.014 70);
  --accent: oklch(0.72 0.14 65);
  --accent-ink: oklch(0.42 0.14 60);
  --accent-bg: oklch(0.95 0.04 75);
  --dark: oklch(0.16 0.012 60);
  --dark-ink: oklch(0.92 0.008 75);
  --dark-line: oklch(0.28 0.012 60);
  --green: oklch(0.66 0.13 145);
  --red: oklch(0.62 0.18 25);
  --pad: clamp(20px, 3vw, 56px);
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "Geist", "Söhne", -apple-system, system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Density tweak ───────────── */
body[data-density="tight"] {
  --pad: clamp(16px, 2.2vw, 40px);
  font-size: 15px;
}
body[data-density="tight"] .section { padding-block: clamp(56px, 8vh, 88px); }
body[data-density="spacious"] .section { padding-block: clamp(96px, 14vh, 168px); }

/* ── Accent variants ─────────── */
body[data-accent="teal"] {
  --accent: oklch(0.72 0.10 195);
  --accent-ink: oklch(0.42 0.10 195);
  --accent-bg: oklch(0.95 0.03 195);
}
body[data-accent="ink"] {
  --accent: oklch(0.32 0.012 60);
  --accent-ink: oklch(0.20 0.012 60);
  --accent-bg: oklch(0.95 0.008 75);
}
body[data-accent="terracotta"] {
  --accent: oklch(0.66 0.14 35);
  --accent-ink: oklch(0.42 0.14 35);
  --accent-bg: oklch(0.95 0.03 40);
}

/* ── Type ──────────────────── */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-feature-settings: "ss02", "cv11"; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Frame ─────────────────── */
.shell { width: 100%; max-width: 1480px; margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vh, 128px); border-top: 1px solid var(--line); }
.section.no-border { border-top: 0; }
.section.dark {
  background: var(--dark);
  color: var(--dark-ink);
  border-top: 1px solid var(--dark);
}
.section.dark .label, .section.dark .eyebrow { color: oklch(0.62 0.012 60); }
.section.cream { background: var(--bg-2); }

/* ── Buttons ───────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.sm { padding: 9px 14px; font-size: 12.5px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Tags ──────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg);
}
.tag.live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: livepulse 1.6s ease-in-out infinite;
}
.tag.accent {
  background: var(--accent-bg);
  color: var(--accent-ink);
  border-color: oklch(from var(--accent) l c h / 0.4);
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ── Cursor blink ──────────── */
.blink::after {
  content: "▌";
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Striped placeholder ───── */
.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-3) 0 8px,
      var(--bg-2) 8px 16px
    );
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Schematic SVG ─────────── */
.schematic { color: var(--ink-2); }
.schematic .stroke { stroke: currentColor; fill: none; stroke-width: 1; }
.schematic .stroke-2 { stroke: currentColor; fill: none; stroke-width: 1.4; }
.schematic .fill { fill: var(--bg-2); stroke: currentColor; stroke-width: 1; }
.schematic .accent { stroke: var(--accent); fill: none; stroke-width: 1.4; }
.schematic .dim { stroke: var(--line-2); fill: none; stroke-width: 1; stroke-dasharray: 3 3; }
.schematic text { font-family: var(--mono); font-size: 9px; fill: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Grid helpers ──────────── */
.grid { display: grid; gap: 24px; }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }

@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .col-6, .col-7, .col-5, .col-4, .col-8 { grid-column: span 12; }
}

/* ── Nav ───────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--bg) l c h / 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
}
.nav-links { display: flex; gap: 22px; align-items: center; white-space: nowrap; }
.nav-links a {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 450;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  margin-right: 6px;
  letter-spacing: 0.08em;
}
@media (max-width: 880px) { .nav-links { display: none; } }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.logo-mark {
  width: 26px; height: 26px;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.logo-mark::before {
  content: ""; width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Hero ──────────────────── */
.hero { padding-top: clamp(60px, 8vh, 96px); padding-bottom: 0; }
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 56px;
}
.hero-meta .dot { color: var(--ink-4); }

.hero-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(60px, 10.5vw, 188px);
  line-height: 0.92;
  letter-spacing: -0.032em;
  margin: 0 0 0;
  color: var(--ink);
}
.hero-h1 em { font-style: italic; color: var(--accent-ink); }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 720px;
  margin-top: 44px;
  letter-spacing: -0.008em;
}
.hero-bottom {
  margin-top: clamp(48px, 7vh, 96px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
@media (max-width: 880px) {
  .hero-bottom { grid-template-columns: 1fr; }
}

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.stat .num em { color: var(--accent-ink); font-style: italic; }
.stat .desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
  max-width: 22ch;
  line-height: 1.4;
}

/* ── Live console (hero) ───── */
.console {
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: 18px;
  padding: 22px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  overflow: hidden;
  position: relative;
}
.console-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dark-line);
  margin-bottom: 14px;
}
.console-head .title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(0.78 0.008 75);
}
.console-head .right {
  display: flex; gap: 14px; align-items: center;
  color: oklch(0.62 0.012 60);
}
.kvline { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 4px 0; }
.kvline .k { color: oklch(0.55 0.012 60); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; padding-top: 2px; }
.kvline .v { color: var(--dark-ink); }
.kvline .v.accent { color: var(--accent); }
.console-feed {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--dark-line);
}
.feed-line {
  display: grid; grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 5px 0;
  font-size: 11.5px;
  border-bottom: 1px dashed oklch(0.26 0.012 60);
}
.feed-line:last-child { border-bottom: 0; }
.feed-line .ts { color: oklch(0.55 0.012 60); }
.feed-line .msg { color: var(--dark-ink); }
.feed-line .msg .accent { color: var(--accent); }
.feed-line.is-new {
  animation: feedslide 0.4s ease-out;
}

/* ── Companion frame visual ── */
.console-frame-wrap {
  margin: 4px 0 18px;
  padding: 10px;
  background: oklch(0.14 0.012 60);
  border: 1px solid var(--dark-line);
  border-radius: 2px;
  position: relative;
}
.companion-frame {
  display: block;
  width: 100%;
  height: auto;
}
.console-frame-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0, transparent 70%, oklch(0.14 0.012 60 / 0.3) 100%);
  pointer-events: none;
}

/* ── Confidence meter ──────── */
.kvline .v { display: flex; align-items: center; }
.conf-meter {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
}
.conf-track {
  position: relative;
  flex: 1;
  height: 6px;
  background: oklch(0.22 0.012 60);
  border-radius: 1px;
  overflow: visible;
}
.conf-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 8px oklch(from var(--accent) l c h / 0.4);
}
.conf-tick {
  position: absolute;
  top: -2px; bottom: -2px;
  width: 1px;
  background: oklch(0.55 0.012 60);
}
.conf-num {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.04em;
  min-width: 32px;
  text-align: right;
}

/* ── Drafted block ─────────── */
.kvline.draft .v { flex-direction: column; align-items: stretch; gap: 6px; }
.draft-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
}
.sparkline {
  color: oklch(0.62 0.012 60);
  flex-shrink: 0;
}
.draft-meta {
  font-size: 10.5px;
  color: oklch(0.55 0.012 60);
  letter-spacing: 0.04em;
}
.draft-meta .kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid oklch(0.32 0.012 60);
  border-radius: 2px;
  margin-left: 4px;
  color: oklch(0.78 0.008 75);
  font-size: 10px;
}

/* ── Feed head + severity ──── */
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.55 0.012 60);
  margin-bottom: 10px;
}
.feed-head .dot { display: inline-block; vertical-align: middle; margin-right: 5px; }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
  background: oklch(0.55 0.012 60);
}
.dot-warn { background: var(--accent); box-shadow: 0 0 6px oklch(from var(--accent) l c h / 0.5); }
.dot-info { background: oklch(0.65 0.012 240); }
.dot-ok { background: oklch(0.45 0.012 60); }

.feed-line {
  display: grid !important;
  grid-template-columns: 64px 12px 1fr !important;
  gap: 12px;
}
.feed-line .sev {
  align-self: center;
  justify-self: center;
}
@keyframes feedslide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Frame box (data table) ── */
.framebox {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.framebox-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

/* ── Principle ─────────────── */
.principle-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.principle-quote .accent { color: var(--accent-ink); }
.devanagari {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
}
.posture-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 16px;
  position: relative;
}
.posture-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  margin-bottom: 18px;
  display: block;
}
.posture-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 400;
}
.posture-card p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

/* ── Lineup cards ──────────── */
.unit-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.unit-card:hover { border-color: var(--ink); }
.unit-card .schematic-frame {
  height: 280px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.unit-card .schematic-frame.photo {
  height: 320px;
  padding: 0;
  background: #ffffff;
}
.unit-card .schematic-frame.photo::before { display: none !important; background-image: none !important; }
.unit-card .schematic-frame.photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0 !important;
  filter: none;
  mix-blend-mode: normal;
}
.unit-card .schematic-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.88 0.012 70 / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.88 0.012 70 / 0.5) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.unit-card .body { padding: 24px; flex: 1; }
.unit-card h3 {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: -0.022em;
  margin: 8px 0 10px;
  font-weight: 400;
}
.unit-card .lede {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--ink-2);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.unit-card .for {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.unit-card .desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 22px;
}
.unit-card .specs {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid; gap: 8px;
}
.unit-card .specs .row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 12px;
  font-size: 12px;
}
.unit-card .specs .row .k {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-size: 10.5px;
  padding-top: 2px;
}
.unit-card .specs .row .v { color: var(--ink); }

/* ── Phases ─────────────────── */
.phase-row {
  display: grid;
  grid-template-columns: 100px 1fr 240px;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.phase-row:last-child { border-bottom: 1px solid var(--line); }
.phase-row .num-big {
  font-family: var(--serif);
  font-size: 56px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 0.9;
}
.phase-row h3 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.phase-row p { color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; line-height: 1.55; }
.phase-roles { display: flex; gap: 8px; flex-wrap: wrap; }
.phase-roles .pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.phase-row .when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  text-align: right;
}
@media (max-width: 880px) {
  .phase-row { grid-template-columns: 1fr; gap: 12px; }
  .phase-row .when { text-align: left; }
}

/* ── Shift timeline ─────────── */
.shift-frame {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.shift-tracks { padding: 0 0 16px; }
.shift-track {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-top: 1px solid var(--line);
  min-height: 88px;
}
.shift-track .who {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}
.shift-track .who .name {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.015em; font-weight: 400;
}
.shift-track .who .qty {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 4px;
}
.shift-track .lane {
  position: relative;
  padding: 14px 0;
}
.shift-event {
  position: absolute;
  top: 14px;
  height: 60px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, z-index 0s 0.15s;
  overflow: hidden;
  min-width: 110px;
}
.shift-event:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  z-index: 5;
  transition: border-color 0.15s, transform 0.15s, z-index 0s;
}
.shift-event.active {
  border-color: var(--accent);
  background: var(--accent-bg);
  z-index: 4;
}
.shift-event .ts { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3); display: block; margin-bottom: 2px; white-space: nowrap; }
.shift-event .title {
  display: block;
  color: var(--ink); font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shift-event .sub {
  display: block;
  color: var(--ink-3); font-size: 10px; margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-axis {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.shift-axis .axis-label {
  padding: 10px 16px;
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
  border-right: 1px solid var(--line);
}
.shift-axis .axis-marks {
  position: relative;
  height: 36px;
}
.shift-axis .mark {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.shift-axis .mark .lbl {
  position: absolute; top: 10px; left: 6px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.06em;
}
.shift-scrubber {
  position: absolute;
  top: -14px; bottom: 0;
  width: 2px;
  background: var(--accent);
  pointer-events: none;
  z-index: 6;
}
.shift-scrubber::before {
  content: ""; position: absolute;
  top: 0; left: -5px;
  width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent);
}

/* ── Command console ────────── */
.cmd-frame {
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
}
.cmd-statusbar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--dark-line);
}
.cmd-statusbar .cell {
  padding: 14px 18px;
  border-right: 1px solid var(--dark-line);
}
.cmd-statusbar .cell:last-child { border-right: 0; }
.cmd-statusbar .k {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(0.55 0.012 60);
}
.cmd-statusbar .v {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.015em;
  color: var(--dark-ink); margin-top: 4px;
}
.cmd-statusbar .v.accent { color: var(--accent); }
.cmd-statusbar .sub {
  font-family: var(--mono); font-size: 10.5px;
  color: oklch(0.55 0.012 60); margin-top: 2px;
}

.cmd-body { display: grid; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 980px) { .cmd-body { grid-template-columns: 1fr; } }

.cmd-needs { border-right: 1px solid var(--dark-line); }
.cmd-needs-head {
  padding: 18px 22px;
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--dark-line);
}
.cmd-needs-head .h {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.015em;
}
.cmd-needs-head .count {
  font-family: var(--mono); font-size: 11px;
  background: var(--accent); color: var(--dark);
  padding: 2px 8px; border-radius: 999px;
  font-weight: 500;
}

.cmd-card {
  padding: 18px 22px;
  border-bottom: 1px solid var(--dark-line);
  cursor: pointer;
  transition: background 0.15s;
}
.cmd-card:hover { background: oklch(0.20 0.012 60); }
.cmd-card.selected { background: oklch(0.22 0.012 60); border-left: 3px solid var(--accent); padding-left: 19px; }
.cmd-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.cmd-card .room {
  font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em;
}
.cmd-card .room .num { color: var(--accent); }
.cmd-card .when { font-family: var(--mono); font-size: 10.5px; color: oklch(0.55 0.012 60); }
.cmd-card .what {
  font-size: 14px; color: var(--dark-ink); margin: 8px 0 6px;
  font-weight: 500;
}
.cmd-card .detail {
  font-size: 12.5px; color: oklch(0.7 0.008 75); line-height: 1.5;
  max-width: 56ch;
}
.cmd-card-foot {
  display: flex; gap: 10px; margin-top: 14px; align-items: center;
  flex-wrap: wrap;
}
.cmd-card-foot .src {
  font-family: var(--mono); font-size: 10.5px; color: oklch(0.55 0.012 60);
  letter-spacing: 0.06em;
}
.cmd-card-foot .src .conf { color: var(--accent); }
.cmd-btn {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid oklch(0.36 0.012 60);
  background: transparent;
  color: var(--dark-ink);
  transition: background 0.15s, border-color 0.15s;
}
.cmd-btn:hover { background: oklch(0.26 0.012 60); border-color: oklch(0.5 0.012 60); }
.cmd-btn.primary {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.cmd-btn.primary:hover { background: oklch(0.78 0.14 65); }

.cmd-ticker {
  padding: 14px 22px;
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--dark-line);
  background: oklch(0.14 0.012 60);
}
.cmd-ticker .item .v {
  font-family: var(--serif); font-size: 26px; letter-spacing: -0.018em;
}
.cmd-ticker .item .v.accent { color: var(--accent); }
.cmd-ticker .item .k {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: oklch(0.55 0.012 60); margin-top: 2px;
}

.cmd-right { display: flex; flex-direction: column; }
.cmd-rooms-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.cmd-rooms-head .h {
  font-family: var(--serif); font-size: 18px; letter-spacing: -0.015em;
}
.cmd-rooms-head .meta {
  font-family: var(--mono); font-size: 10.5px; color: oklch(0.55 0.012 60);
  letter-spacing: 0.06em;
}

.room-grid {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.room {
  border: 1px solid oklch(0.26 0.012 60);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono); font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.room:hover { border-color: oklch(0.42 0.012 60); }
.room.review { border-color: var(--accent); background: oklch(from var(--accent) l c h / 0.08); }
.room.prompt { border-color: oklch(0.66 0.13 145); background: oklch(0.66 0.13 145 / 0.06); }
.room.selected { background: oklch(0.24 0.012 60); border-color: var(--dark-ink); }
.room .num {
  font-size: 14px; font-family: var(--serif); letter-spacing: -0.01em;
  color: var(--dark-ink);
}
.room .name { color: oklch(0.62 0.008 75); margin-top: 2px; font-size: 10.5px; letter-spacing: 0.04em; }
.room .state {
  margin-top: 6px; font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: oklch(0.55 0.012 60);
}
.room.review .state { color: var(--accent); }
.room.prompt .state { color: oklch(0.78 0.13 145); }

.cmd-side {
  padding: 0;
  border-top: 1px solid var(--dark-line);
}
.cmd-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--dark-line);
}
.cmd-section h4 {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(0.62 0.012 60);
  margin: 0 0 10px;
  font-weight: 500;
  display: flex; justify-content: space-between;
}
.cmd-section .activity-line {
  display: grid; grid-template-columns: 50px 1fr;
  gap: 10px; padding: 5px 0;
  font-size: 11px;
  color: oklch(0.78 0.008 75);
  border-bottom: 1px dashed oklch(0.24 0.012 60);
}
.cmd-section .activity-line:last-child { border-bottom: 0; }
.cmd-section .activity-line .ts {
  font-family: var(--mono); font-size: 10.5px;
  color: oklch(0.55 0.012 60);
}

.cmd-foot {
  padding: 18px 22px;
  text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: 16px;
  color: oklch(0.7 0.008 75);
}

/* ── Outcomes ──────────────── */
.outcome-card {
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 16px;
  display: flex; flex-direction: column;
  min-height: 260px;
}
.outcome-card .target {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.outcome-card h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.022em;
  margin: 0 0 10px;
  font-weight: 400;
}
.outcome-card .lede {
  font-size: 14px; color: var(--ink-2); margin: 0 0 16px;
  line-height: 1.5;
}
.outcome-card .reports {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.outcome-card.feature {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.outcome-card.feature h3 { color: var(--bg); }
.outcome-card.feature .lede { color: oklch(0.78 0.008 75); }
.outcome-card.feature .target { color: var(--accent); }
.outcome-card.feature .reports { border-top-color: oklch(0.28 0.012 60); color: oklch(0.62 0.012 60); }
.outcome-card.feature .big {
  font-family: var(--serif);
  font-size: clamp(80px, 10vw, 144px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin: 4px 0 8px;
}

/* ── Pilot ─────────────────── */
.pilot-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 8vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.028em;
  margin: 0;
}
.pilot-h em { font-style: italic; color: var(--accent-ink); }
.pilot-step {
  display: grid; grid-template-columns: 60px 1fr;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  gap: 24px;
  align-items: baseline;
}
.pilot-step:last-of-type { border-bottom: 1px solid var(--line); }
.pilot-step .n {
  font-family: var(--serif); font-size: 36px; letter-spacing: -0.02em;
}
.pilot-step .h {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.pilot-step p { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.45; max-width: 60ch; }

.form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: span 2; }
.form .field { margin-bottom: 16px; }
.form label {
  display: block;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.form input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.form input.err { border-color: var(--red); }
/* ── Slot picker ──────────────── */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.slot-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  text-align: left;
}
.slot-chip:hover { border-color: var(--ink-3); background: var(--bg); }
.slot-chip.selected { border-color: var(--accent); background: var(--accent-bg); }
.slot-chip .slot-day {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.3;
}
.slot-chip.selected .slot-day { color: var(--accent-ink); }
.slot-chip .slot-time {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2px;
}
.slot-chip.selected .slot-time { color: var(--accent-ink); }

.form .submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.form .submit-btn:hover { background: var(--accent-ink); }
.form .success {
  text-align: center;
  padding: 40px 20px;
}
.form .success .check {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  font-family: var(--serif); font-size: 28px;
}
.form .success h4 {
  font-family: var(--serif); font-size: 26px; letter-spacing: -0.015em;
  margin: 0 0 8px; font-weight: 400;
}
.form .success p { color: var(--ink-2); margin: 0; }

/* ── Footer ────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-2);
}
.foot .right { text-align: right; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; .right { text-align: left; } } }

/* ── Misc ──────────────────── */
.divline {
  height: 1px; background: var(--line); margin: 0;
}
.huge-num {
  font-family: var(--serif);
  font-size: clamp(120px, 16vw, 240px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ink);
}
.huge-num em { font-style: italic; color: var(--accent-ink); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }
.legend .sw { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px;
  background: currentColor;
}

/* ── Reveal ────────────────── */
/* ── Reveal ────────────────── */
.reveal { opacity: 1; }
.reveal.in { opacity: 1; }

/* ── Future / vision section ──── */
.future {
  background: var(--ink);
  color: var(--bg);
  border-top: 0;
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(96px, 14vh, 168px);
  position: relative;
  overflow: hidden;
}
.future::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, oklch(from var(--accent) l c h / 0.06) 0, transparent 40%),
    radial-gradient(circle at 80% 90%, oklch(from var(--accent) l c h / 0.04) 0, transparent 50%);
  pointer-events: none;
}
.future > * { position: relative; }
.future .eyebrow { color: oklch(0.62 0.012 60); }
.future .label, .future-col-label { color: oklch(0.55 0.012 60); }

.future-head {
  max-width: 980px;
  margin-bottom: clamp(72px, 10vh, 120px);
}
.future-head .eyebrow { margin-bottom: 28px; }
.future-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  margin: 0 0 36px;
  color: var(--bg);
}
.future-lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: oklch(0.78 0.008 75);
  margin: 0;
  max-width: 56ch;
  letter-spacing: -0.008em;
}

.future-grid {
  display: grid;
  gap: 0;
}
.future-row {
  display: grid;
  grid-template-columns: 60px 200px 1fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid oklch(0.28 0.012 60);
  align-items: start;
}
.future-row:last-child { border-bottom: 1px solid oklch(0.28 0.012 60); }
.future-row-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: oklch(0.55 0.012 60);
  padding-top: 8px;
}
.future-row-h {
  font-size: clamp(26px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--bg);
  line-height: 1.05;
  font-weight: 400;
}
.future-col {
  position: relative;
  padding-left: 18px;
  border-left: 1px solid oklch(0.28 0.012 60);
}
.future-col.after {
  border-left: 1px solid var(--accent);
}
.future-col-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.future-col.after .future-col-label { color: var(--accent); }
.future-col p {
  font-size: 15.5px;
  line-height: 1.55;
  color: oklch(0.78 0.008 75);
  margin: 0;
  max-width: 48ch;
}
.future-col.before p { color: oklch(0.62 0.012 60); }
.future-col.after p { color: var(--bg); }

@media (max-width: 980px) {
  .future-row {
    grid-template-columns: 60px 1fr;
    gap: 16px 24px;
  }
  .future-row-h { grid-column: 2 / 3; }
  .future-col { grid-column: 2 / 3; padding-left: 18px; }
}

.future-foot {
  margin-top: clamp(72px, 10vh, 112px);
  padding-top: 40px;
  border-top: 1px solid oklch(0.28 0.012 60);
}
.future-close {
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: oklch(0.78 0.008 75);
  max-width: 28ch;
}

/* ── Selection ─────────────── */
::selection { background: var(--accent); color: var(--dark); }

/* ── Manifesto ─────────────── */
.manifesto {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: clamp(96px, 14vh, 160px);
}
.manifesto-head { margin-bottom: clamp(56px, 8vh, 96px); }
.manifesto-head .eyebrow { margin-bottom: 28px; }
.manifesto-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
  max-width: 26ch;
}
.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 980px) {
  .manifesto-body { grid-template-columns: 1fr; }
}
.manifesto-statement {
  position: sticky;
  top: 96px;
}
.manifesto-lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.008em;
  margin: 0;
  max-width: 38ch;
}
.manifesto-lede em { color: var(--accent-ink); }
.manifesto-pillars {
  display: grid;
  gap: 0;
}
.manifesto-pillar {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: baseline;
}
.manifesto-pillar:first-child { border-top: 0; padding-top: 0; }
.manifesto-pillar:last-child { padding-bottom: 0; }
.pillar-n {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
}
.pillar-h {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.018em;
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.1;
}
.pillar-p {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}

.manifesto-foot {
  margin-top: clamp(64px, 9vh, 112px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 980px) {
  .manifesto-foot { grid-template-columns: 1fr; }
}
.manifesto-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  color: var(--ink-2);
  letter-spacing: -0.012em;
  max-width: 32ch;
}
.manifesto-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.manifesto-meta .meta-v {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 4px;
}
