:root {
  color-scheme: dark;
  --bg-0: #070a0f;
  --bg-1: #0d121a;
  --bg-2: #131b26;
  --line: rgba(148, 179, 214, 0.16);
  --line-strong: rgba(148, 179, 214, 0.30);
  --ink: #eef3f9;
  --ink-muted: #96a6ba;
  --accent: #38e8b0;
  --accent-2: #5da9ff;
  --warn: #f5b942;
  --mx: 72%;
  --my: 24%;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
  scroll-behavior: smooth;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(148, 179, 214, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 179, 214, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, black 40%, transparent 100%);
}

main, header, footer { position: relative; z-index: 1; }

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 32px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.brand-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 999px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }

/* Typography */
h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.65rem); line-height: 1.07; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.12rem; line-height: 1.3; }
p { margin: 0; color: var(--ink-muted); }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.mono-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.lead {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 18px;
  max-width: 56ch;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 0.85rem; }
.btn-primary {
  background: var(--accent);
  color: #05110d;
}
.btn-primary:hover { background: #5cf0c1; }
.btn-ghost {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.badge-active { color: var(--accent); border-color: rgba(56, 232, 176, 0.35); background: rgba(56, 232, 176, 0.08); }
.badge-proto { color: var(--warn); border-color: rgba(245, 185, 66, 0.35); background: rgba(245, 185, 66, 0.08); }
.badge-research, .badge-upcoming { color: #82b5ff; border-color: rgba(93, 169, 255, 0.35); background: rgba(93, 169, 255, 0.08); }

/* Cards */
.card, .card-glass {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card-glass {
  background: linear-gradient(160deg, rgba(19, 27, 38, 0.86), rgba(9, 13, 20, 0.92));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: clip;
}
.point-light {
  position: absolute;
  inset: -120px;
  pointer-events: none;
  background:
    radial-gradient(460px circle at var(--mx) var(--my), rgba(56, 232, 176, 0.14), transparent 65%),
    radial-gradient(520px circle at 22% 80%, rgba(93, 169, 255, 0.10), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.cta-center { justify-content: center; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.metric-item dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}
.metric-item dd {
  margin: 4px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-visual { padding: 16px; }
.stage-bar, .stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.stage-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-muted);
}
#hero-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-top: 10px;
  border-radius: 10px;
  background: radial-gradient(circle at 60% 35%, rgba(56, 232, 176, 0.08), rgba(7, 10, 15, 0.96) 72%);
  border: 1px solid var(--line);
}

/* Sections */
.section {
  padding: 76px 0;
  scroll-margin-top: 72px;
}
.section-alt {
  background: linear-gradient(180deg, rgba(13, 18, 26, 0.6), rgba(7, 10, 15, 0.2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Tabs */
.tab-bar {
  display: inline-flex;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.tab.is-active {
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Section 2: Interactive Preview */
.demo-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: start;
}
.demo-stage, .demo-controls { padding: 20px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: var(--ink);
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
}
.status-pill.is-live .dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

#contour-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 19 / 8;
  margin: 14px 0;
  border-radius: 10px;
  background: #080c12;
  border: 1px solid var(--line);
}

.telemetry-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.tel-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.tel-box span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: var(--ink-muted);
}
.tel-box strong {
  display: block;
  margin-top: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.paw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.paw-bar {
  display: grid;
  grid-template-columns: 24px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}
.paw-bar em { font-style: normal; text-align: right; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 179, 214, 0.12);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.15s ease;
}

.event-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.event-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.event-box pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #06090e;
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: #b7c8dd;
  max-height: 118px;
  overflow: auto;
  white-space: pre-wrap;
}

.ctrl-group { margin-bottom: 16px; }
.ctrl-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-muted);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}
.pill.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 232, 176, 0.10);
}
.slider-row {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.slider-row output { color: var(--ink); font-variant-numeric: tabular-nums; }
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.ctrl-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.sub-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.text-link {
  font-size: 0.86rem;
  color: var(--accent-2);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Video Captures Tab */
.video-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  padding: 20px;
}
.video-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--line);
}
.clip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.clip-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
}
.clip-btn strong { display: block; font-size: 0.9rem; }
.clip-btn span { display: block; font-size: 0.78rem; color: var(--ink-muted); margin-top: 2px; }
.clip-btn.is-active {
  border-color: var(--accent);
  background: rgba(56, 232, 176, 0.08);
}
.clip-caption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.clip-caption p { margin-top: 4px; font-size: 0.8rem; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3, .pipeline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.cap-card, .step-card, .tech-card, .app-card, .road-card, .note-card { padding: 22px; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cap-num, .step-idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--accent);
}
.cap-card h3, .step-card h3, .tech-card h3, .app-card h3, .road-card h3 { margin: 10px 0 8px; }
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.spec-tags li {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 6px;
}

.channel-bar {
  margin-top: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.channel-desc { margin-top: 6px; font-size: 0.9rem; max-width: 68ch; }
.channel-desc code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--ink);
}
.channel-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* Evidence */
.evidence-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.ev-stat { padding: 18px; }
.ev-stat span { display: block; font-family: "JetBrains Mono", monospace; font-size: 0.7rem; color: var(--ink-muted); }
.ev-stat strong { display: block; margin: 6px 0 4px; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; color: var(--accent); }
.ev-stat em { font-style: normal; font-size: 0.8rem; color: var(--ink-muted); }

.sheet-card {
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.15s ease;
}
.sheet-card:hover { border-color: var(--accent); }
.sheet-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #06090e;
}
.sheet-card figcaption { padding: 14px 16px; }
.sheet-card figcaption strong { display: block; font-size: 0.95rem; }
.sheet-card figcaption span { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-top: 3px; }

.evidence-notes { margin-top: 20px; }
.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.plain-list li { margin: 8px 0; }
.plain-list strong { color: var(--ink); }
.mono-list code {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 0.82rem;
}

/* Final CTA & Footer */
.cta-box {
  padding: 48px 32px;
  text-align: center;
  background:
    radial-gradient(500px circle at 50% 0%, rgba(56, 232, 176, 0.12), transparent 70%),
    var(--bg-1);
}
.cta-box .lead { margin: 14px auto 0; }

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 calc(26px + env(safe-area-inset-bottom));
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Modals */
.modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--bg-1);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px;
}
.modal::backdrop { background: rgba(4, 7, 12, 0.8); backdrop-filter: blur(6px); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.icon-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
}
.lightbox img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
}
.contact-modal { width: min(560px, calc(100vw - 32px)); }
.modal-copy { font-size: 0.9rem; margin-bottom: 14px; }
.brief-preview {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: #06090e;
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #c5d4e6;
  white-space: pre-wrap;
}

/* Tablet */
@media (max-width: 1023px) {
  .wrap { padding: 0 24px; }
  .hero-grid, .demo-grid, .video-grid { grid-template-columns: 1fr; }
  .grid-4, .evidence-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 639px) {
  .wrap { padding: 0 16px; }
  .nav, .brand-tag { display: none; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 52px 0; }
  .metric-strip, .telemetry-row, .paw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .pipeline-grid, .grid-4, .evidence-metrics, .sheets-grid { grid-template-columns: 1fr; }
  .pill, .btn, .tab { min-height: 44px; }
  .cta-box { padding: 32px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #070a0f;
  border-radius: 8px;
}

#hero-skeleton summary {
  cursor: pointer;
  padding: 10px 0;
}
/* Capture workbench */

body { font-family: Inter,"Segoe UI",system-ui,sans-serif }
.wrap { width:min(1320px,100%); padding-inline:clamp(18px,4vw,64px) }
.bg-grid { display:none }
.topbar-inner { height:68px }
.brand { gap:8px }
.brand-mark { width:43px; height:43px; object-fit:contain }
.brand-name { font:650 26px/1 "Segoe UI",system-ui,sans-serif; letter-spacing:-.055em }
.topbar .btn { border-radius:7px }
.hero { padding:clamp(38px,6vw,88px) 0; border-bottom:1px solid var(--line); background:radial-gradient(ellipse at 70% 50%,#17252d 0%,#0c131a 44%,var(--bg-0) 78%) }
.hero-grid { grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr); gap:clamp(25px,4vw,62px) }
.hero h1 { max-width:9ch; font:560 clamp(3rem,5.7vw,5.3rem)/.98 "Segoe UI",system-ui,sans-serif; letter-spacing:-.071em }
.hero h1 em { color:var(--accent); font-style:normal }
.eyebrow,.capture-origin { font:600 .72rem/1.35 ui-monospace,Consolas,monospace; letter-spacing:.13em; text-transform:uppercase; color:var(--accent) }
.hero .lead { max-width:33ch; font-size:clamp(1rem,1.5vw,1.24rem); line-height:1.53 }
.cta-row .btn { gap:9px; border-radius:7px }
.studio-size { margin-top:10px; font: .74rem/1.5 ui-monospace,Consolas,monospace }
.hero-specimen,.study-figure { min-width:0; margin:0 }
.hero-specimen { border-radius:14px; overflow:hidden; border:1px solid var(--line); background:var(--bg-1); box-shadow:0 20px 60px #0005 }
.capture-frame { position:relative; isolation:isolate; background:#0a1016; overflow:hidden }
.capture-frame video { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; background:#0a1016 }
.hero-caption { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px 8px; padding:16px 18px }
.capture-title { display:grid; gap:3px }
.capture-origin { color:var(--ink-muted); font-size:.62rem }
.capture-title strong { color:var(--ink); font-size:1.04rem; font-weight:580; line-height:1.35 }
.play-chip { position:absolute; top:12px; right:12px; display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:4px 11px; border:1px solid #b7d1db88; border-radius:20px; color:#f2f8f8; background:#111923e8; cursor:pointer; font:600 .78rem "Segoe UI",sans-serif }
.play-chip::before { content:"▶"; font-size:.7rem }
.play-chip[aria-pressed=true]::before { content:"Ⅱ" }
.segmented { display:flex; gap:2px; padding:3px; border:1px solid var(--line-strong); border-radius:8px; background:#0a1118 }
.segmented button,.shader-dock button,.act-list button { font:inherit; cursor:pointer; color:var(--ink-muted); border:1px solid transparent; background:transparent }
.segmented button { padding:6px 10px; min-height:33px; font-size:.79rem; border-radius:5px }
.segmented button[aria-pressed=true],.shader-dock button[aria-pressed=true],.act-list button[aria-pressed=true] { color:var(--accent); border-color:#3a7466; background:#142d29 }
.show-section { scroll-margin-top:76px; padding:clamp(40px,6vw,80px) 0; border-bottom:1px solid var(--line) }
.show-heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:10px 25px; margin-bottom:24px }
.show-heading h2,.section-head h2 { font-weight:560; letter-spacing:-.045em }
.show-heading .eyebrow { margin-bottom:7px }
.show-heading > p { max-width:32ch; line-height:1.4; font-size:.95rem }
.act-layout { display:grid; grid-template-columns:minmax(210px,.47fr) minmax(0,1.53fr); gap:clamp(22px,3.4vw,48px); align-items:start }
.act-list { display:grid; gap:5px }
.act-list button { text-align:left; display:flex; align-items:center; justify-content:space-between; min-height:42px; padding:6px 11px; font-size:1rem; border-radius:5px; border-bottom-color:var(--line) }
.act-list button[aria-pressed=true]::after { content:"↗" }
.act-info > p { margin:16px 0; max-width:39ch; font-size:.91rem; line-height:1.5 }
.act-info .segmented { display:inline-flex }
.study-figure .capture-frame { border:1px solid var(--line); border-radius:12px }
.study-figure figcaption { margin-top:8px; color:var(--ink-muted); font-size:.82rem; line-height:1.4 }
.shade-layout { display:grid; grid-template-columns:minmax(0,1.48fr) minmax(260px,.52fr); gap:clamp(20px,3vw,36px); align-items:start }
.shader-dock { display:grid; grid-template-columns:1fr 1fr; gap:6px }
.shader-dock button { display:flex; align-items:center; gap:8px; text-align:left; padding:8px; min-height:41px; background:var(--bg-1); border:1px solid var(--line); border-radius:7px; font-size:.79rem }
.shader-dock button i { display:inline-block; flex:none; width:17px; height:17px; border-radius:50%; border:1px solid #c2d5e28c; background:radial-gradient(circle at 30% 25%,#d2c7ad,#776e5c 48%,#21211e); box-shadow:inset -2px -2px 4px #0004 }
.shader-dock button:nth-child(2) i,.shader-dock button:nth-child(5) i { background:repeating-linear-gradient(45deg,#374146 0 1px,#c2ccca 2px 4px) }
.shader-dock button:nth-child(3) i { background:linear-gradient(130deg,#67b1c3,#4db681 48%,#d3ae65 50%,#bd728f) }
.shader-dock button:nth-child(4) i { background:radial-gradient(circle at 35% 25%,white,#c3c7c6 54%,#788180) }
.shader-dock button:nth-child(6) i { background:conic-gradient(#89f4a4,#87a6ff,#fb81ed,#89f4a4) }
.shader-dock button:nth-child(7) i { background:radial-gradient(circle at 30% 25%,#cbd0d0,#707979 55%,#2a3033) }
.shader-dock button:nth-child(8) i { background:linear-gradient(135deg,#f2d880 49%,#bb802c 50%) }
.shader-dock button:nth-child(9) i { background:repeating-linear-gradient(130deg,#c6cdcc 0 2px,#47494d 2px 3px) }
.shader-dock button:nth-child(10) i { background:repeating-linear-gradient(0deg,#4dfde0,#106961 4px) }
.shader-dock button:nth-child(11) i { background:conic-gradient(#649cdf 25%,#dd9168 25% 50%,#ac80bf 50% 75%,#80b699 75%) }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px }
:is(.segmented,.shader-dock,.act-list) button:hover { color:var(--ink); border-color:var(--line-strong) }
.sheet-zoom { display:block; width:100%; background:none; padding:0; border:0; cursor:zoom-in }
.roadmap-vision { margin:0 0 8px; color:var(--ink); font-size:1.15rem }
.research-inputs { margin:0 0 18px }
.ctrl-actions { grid-template-columns:repeat(auto-fit,minmax(86px,1fr)) }
[hidden] { display:none !important }
@media(max-width:1023px) {
  .hero-grid { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:20px }
  .hero h1 { font-size:clamp(3rem,6vw,4.1rem) }
  .hero .cta-row { gap:8px }
  .hero .btn { padding-inline:12px }
  .hero-caption { padding:12px }
  .act-layout { grid-template-columns:minmax(175px,.55fr) minmax(0,1.45fr) }
  .shade-layout { grid-template-columns:minmax(0,1.45fr) minmax(220px,.55fr) }
}
@media(max-width:720px) {
  .topbar-inner { height:56px }
  .brand { gap:5px }
  .brand-name { font-size:23px }
  .brand-mark { width:34px; height:34px }
  .nav { display:none }
  .hero { padding:32px 0 22px }
  .hero-grid,.act-layout,.shade-layout { grid-template-columns:1fr; gap:18px }
  .hero h1 { max-width:14ch; font-size:clamp(2.65rem,9vw,3.8rem) }
  .hero .lead { margin-top:12px; max-width:38ch; font-size:1rem }
  .cta-row { margin-top:17px }
  .hero-caption { gap:8px }
  .show-heading { margin-bottom:16px; align-items:start }
  .act-list { display:flex; overflow-x:auto; gap:5px; padding-bottom:4px }
  .act-list button { white-space:nowrap; min-height:44px; font-size:.84rem; padding:5px 9px }
  .act-list button[aria-pressed=true]::after { content:none }
  .act-info > p { margin:6px 0 10px; max-width:46ch }
  .shader-dock { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .shader-dock button,.segmented button,.play-chip { min-height:44px }
  .shader-dock button { font-size:.75rem; gap:4px; padding:5px }
  .hero-caption .segmented { width:100% }
  .hero-caption .segmented button { flex:1 }
}
@media(prefers-reduced-motion: reduce) {
  html,body { scroll-behavior:auto }
}
.source-credits { margin-top:12px }
.source-credits summary { cursor:pointer; color:var(--ink-muted); padding:5px 0 }
.source-credits p { font-size:.82rem; margin:6px 0; max-width:95ch }
.source-credits a { color:var(--accent-2) }
.mobile-nav { display:none }
@media(max-width:720px) {
  .mobile-nav { display:block; margin-left:auto; position:relative }
  .mobile-nav summary { cursor:pointer; padding:12px 5px; font-size:.82rem; color:var(--ink-muted) }
  .mobile-nav nav { position:absolute; right:0; top:100%; width:135px; padding:5px; border:1px solid var(--line-strong); border-radius:8px; background:var(--bg-1); box-shadow:0 8px 20px #0007 }
  .mobile-nav a { display:block; min-height:44px; padding:9px 10px; color:var(--ink); text-decoration:none; font-size:.9rem }
  .topbar-inner { gap:8px }
}
@media(max-width:360px) {
  .topbar .wrap { padding-inline:10px }
  .topbar .btn { font-size:.77rem; padding:0 8px }
  .brand-name { font-size:21px }
  .brand-mark { width:30px; height:30px }
}
.demo-grid > *, .video-grid > *, .telemetry-row > *, .paw-grid > * { min-width:0 }
.event-box pre { overflow-wrap:anywhere }
#contour-canvas { max-width:100% }
@media(max-width:1023px) {
  .demo-grid,.video-grid { grid-template-columns:minmax(0,1fr) }
}
@media(max-width:639px) {
  .tab-bar { max-width:100% }
  .tab { padding-inline:8px }
  .demo-stage,.demo-controls,.video-grid { padding:13px }
  .ctrl-actions { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .ctrl-actions .btn { padding-inline:6px }
}

/* Branding, published measurements and the four editorial sections. */
.brand-mark { color:var(--ink); flex:none }
.vision-band { background:var(--bg-1); padding:22px 0; border-bottom:1px solid var(--line) }
.vision-band .wrap { display:grid; grid-template-columns:minmax(190px,.7fr) minmax(0,1.3fr); align-items:center; gap:34px }
.vision-line { color:var(--ink); text-decoration:none; max-width:34ch; font-size:1.1rem; line-height:1.45 }
.vision-line:hover { text-decoration:underline; text-underline-offset:3px }
.metric-strip { margin:0; padding:0; border:0 }
.metric-item { border-left:1px solid var(--line); padding-left:16px }
.metric-item dt { letter-spacing:0; font:.78rem/1.4 "Segoe UI",sans-serif }
.metric-item dd,.tel-box strong,.paw-bar em,.ev-stat strong,.mono-label,.slider-row output {
  font-family:ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums;
}
.reel-link { border:0; background:none; cursor:pointer; padding:8px 0; font-family:inherit }
.reel-modal { width:min(920px,94vw) }
.reel-modal video { display:block; width:100%; aspect-ratio:16/9; background:var(--bg-0) }
.act-list button { gap:9px; justify-content:flex-start }
.act-no { font:.68rem/1.5 ui-monospace,Consolas,monospace; color:var(--ink-muted); white-space:nowrap }
.act-list button[aria-pressed=true] .act-no { color:var(--accent) }
#act-matrix { margin-top:12px; color:var(--ink-muted); font-size:.83rem }
#act-matrix summary { width:fit-content; padding:6px 0; cursor:pointer }
#act-matrix-image { width:100%; display:block; border-radius:12px; border:1px solid var(--line) }
.shade-layout { display:block; max-width:1000px; margin-inline:auto }
.shader-dock {
  position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between;
  width:max-content; max-width:calc(100% - 24px); gap:2px; margin:-10px auto 0; padding:5px 8px;
  border:1px solid var(--line); border-radius:24px; background:var(--bg-1);
  box-shadow:0 8px 22px #0005; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#485564 transparent;
}
.shader-dock button {
  flex-direction:column; justify-content:center; gap:3px; min-width:58px; padding:6px;
  min-height:46px; border-color:transparent; border-radius:14px; font-size:.70rem; white-space:nowrap;
}
.shade-layout figcaption { margin-top:12px; text-align:center }
.shader-dock button[data-shading="03_skeleton_34b"] { border-right:1px solid var(--line-strong) }
.solver-plot { margin:14px 0 8px; position:relative; isolation:isolate; overflow:hidden;
  border-radius:12px; border:1px solid var(--line); background:var(--bg-0) }
#solver-backdrop { position:absolute; inset:7% 6% 8%; width:88%; height:85%; object-fit:contain; opacity:.13; pointer-events:none }
#contour-canvas { position:relative; border:0; border-radius:0; background:transparent; margin:0; aspect-ratio:2/1 }
.plot-tools,.plot-legend,.plot-tools label { display:flex; flex-wrap:wrap; align-items:center; gap:6px }
.plot-tools { justify-content:space-between; margin-bottom:16px; gap:8px 12px; color:var(--ink-muted); font-size:.78rem }
.plot-legend { gap:12px }
.plot-legend > span::before { content:""; display:inline-block; width:12px; margin-right:4px; height:2px; vertical-align:middle; background:var(--accent) }
.plot-legend > span:nth-child(2)::before { background:var(--accent-2) }
.plot-tools input { accent-color:var(--accent) }
.plot-tools select { color:var(--ink); background:var(--bg-1); border:1px solid var(--line-strong); border-radius:5px; padding:4px; font:inherit }
#stifle-gauge { display:block; height:7px; width:100%; margin:4px 0; accent-color:var(--accent) }
#stifle-gauge::-webkit-meter-optimum-value { background:var(--accent) }
#stifle-gauge[data-exceeded=true]::-webkit-meter-optimum-value { background:var(--warn) }
.sheets-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px }
.sheet-card:last-child { grid-column:1/-1 }
.sheet-card img { aspect-ratio:2.05/1; object-fit:contain }
.sheet-card:last-child img { aspect-ratio:3.7/1 }
.evidence-metrics { margin-top:22px; grid-template-columns:repeat(3,minmax(0,1fr)) }
@media(max-width:870px) {
 .vision-band .wrap { grid-template-columns:1fr; gap:15px }
 .vision-line { max-width:none }
}
@media(max-width:720px) {
 .act-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px }
 .act-list button { white-space:normal; flex-direction:column; align-items:start; gap:0; min-height:48px; font-size:.84rem; padding:5px 9px }
 .shader-dock { justify-content:center; flex-wrap:wrap; gap:2px; max-width:100%; padding:6px; border-radius:14px; margin-top:6px }
 .shader-dock button { min-width:46px; padding:3px 5px; font-size:.66rem }
}
@media(max-width:639px) {
 .metric-strip,.evidence-metrics { grid-template-columns:repeat(2,minmax(0,1fr)) }
 .metric-item { padding-left:8px }
 .vision-band { padding:16px 0 }
 .sheets-grid { grid-template-columns:1fr }
 .sheet-card:last-child img { aspect-ratio:2.8/1 }
 .evidence-metrics { gap:8px }
 .ev-stat { padding:12px }
 .ev-stat strong { font-size:1rem }
 .plot-tools select,.plot-legend label { min-height:44px }
 #contour-canvas { aspect-ratio:1.65/1 }
}

/* Each guided study uses the page's native scroll and stays a regular section when space is limited. */
.story-track { --story-top:64px; --story-progress:0; overflow-anchor:none }
.show-section.story-track { padding:0 }
.story-scene { padding-block:clamp(20px,4vh,48px) }
.story-track[data-pinned] > .story-scene { position:sticky; top:var(--story-top) }
.story-track[data-pinned]::after { content:""; display:block; height:var(--story-travel); pointer-events:none }
.story-footer { display:flex; gap:14px; align-items:center; margin-top:20px; color:var(--ink-muted); font: .76rem/1.4 ui-monospace,monospace }
.story-footer a { color:var(--ink); padding:8px 0; white-space:nowrap }
.scroll-cue { display:none }
[data-pinned] > .story-scene .scroll-cue { display:inline }
.story-meter { height:2px; flex:1; background:var(--line); overflow:hidden }
.story-meter i { display:block; height:100%; background:var(--accent); transform-origin:left; transform:scaleX(var(--story-progress)) }
#motion .act-list { border-left:1px solid var(--line); padding-left:9px }
#motion .act-list button { position:relative; border-radius:0 6px 6px 0; transition:background .18s,color .18s }
#motion .act-list button[aria-pressed=true] { border-color:transparent; box-shadow:inset 3px 0 var(--accent) }
.act-stage video,.shading-stage video { max-height:clamp(230px,48svh,540px) }
#motion .study-figure { position:relative }
#motion #act-matrix[open] img { position:absolute; z-index:3; inset:0; width:100%; height:calc(100% - 75px); object-fit:contain; background:#0d121a }
.story-scene :is(.play-chip,.compare-toggle,.gait-stops button) { min-height:42px }
.shade-tools,.gait-stops,.trace-key { display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.shade-tools { justify-content:space-between }
.compare-toggle,.gait-stops button { background:var(--bg-1); color:var(--ink); border:1px solid var(--line-strong); border-radius:7px; padding:6px 12px; cursor:pointer }
.compare-toggle[aria-pressed=true],.gait-stops [aria-pressed=true] { color:var(--accent); background:#12332a; border-color:var(--accent) }
.shading-stage { --split:50% }
#shade-comparison { position:absolute; inset:0; z-index:2; background:#0a1016 }
#shade-comparison img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain }
#compare-view { clip-path:inset(0 0 0 var(--split)) }
.split-rule { position:absolute; left:var(--split); top:0; bottom:0; border-left:2px solid var(--accent); pointer-events:none }
.split-rule::after { content:"‹ ›"; position:absolute; left:-18px; top:45%; width:34px; text-align:center; border-radius:20px; color:#061512; background:var(--accent); font-weight:bold }
.split-control { position:absolute; inset:0; font-size:0; cursor:ew-resize }
#compare-split { width:100%; height:100%; position:absolute; inset:0; opacity:0; cursor:ew-resize; margin:0; touch-action:pan-y }
#shade-comparison:focus-within { outline:2px solid var(--accent); outline-offset:-3px }
.gait-layout { display:grid; grid-template-columns:minmax(230px,.65fr) minmax(0,1.35fr); gap:clamp(20px,4vw,64px); align-items:center }
.gait-guide h3 { font-size:clamp(1.65rem,3vw,3rem); letter-spacing:-.045em; line-height:1.1; margin:0 0 20px }
#gait-caption { margin:14px 0; min-height:3em; max-width:38ch }
.load-history { border-top:1px solid var(--line); margin-top:24px; padding-top:12px; color:var(--ink-muted); font:.78rem/1.5 ui-monospace,monospace }
#load-history { display:block; width:100%; height:72px; margin-block:6px }
.trace-key span { color:var(--ink); font-variant-numeric:tabular-nums }
.trace-key span::before { display:inline-block; content:""; width:12px; height:2px; vertical-align:middle; margin-right:4px; background:var(--trace) }
.trace-key span:nth-child(1) { --trace:#38e8b0 }.trace-key span:nth-child(2) { --trace:#5da9ff }.trace-key span:nth-child(3) { --trace:#f8c676 }.trace-key span:nth-child(4) { --trace:#cd9cfa }
.gait-scene .ctrl-actions { margin-top:12px }
#solver-controls { scroll-margin-top:80px; align-items:stretch }
#solver-controls .event-box { margin:0; border:0 }
#gait-story { border-block:1px solid var(--line) }
@media(max-width:720px) {
  .story-scene { padding-block:16px }
  .gait-layout { grid-template-columns:1fr; gap:10px }
  .gait-guide { display:grid; grid-template-columns:1fr auto; column-gap:8px; align-items:center }
  .gait-guide h3 { margin:0; font-size:1.38rem }
  .gait-stops { gap:4px }.gait-stops button { padding:5px 9px }
  #gait-caption,.load-history { grid-column:1/-1; margin:4px 0; min-height:0 }
  .load-history { display:grid; grid-template-columns:auto 1fr; column-gap:8px; padding-top:6px }
  #load-history { grid-column:2; grid-row:1/3; height:38px; margin:0 }
  .trace-key { gap:5px }
  .gait-scene .demo-stage { padding:10px }
  .gait-scene .solver-plot { margin:5px 0 }
  .gait-scene .tel-box { padding:4px 8px }
  .story-footer { gap:8px; margin-top:8px; font-size:.69rem }
  .shade-tools { align-items:center; flex-wrap:nowrap }
  .compare-toggle { flex:none }
}
@media(prefers-reduced-motion:reduce) {
  #motion .act-list button { transition:none }
}
@media (max-height:800px) and (min-width:721px) {
  .story-scene { padding-block:12px }
  .act-stage video,.shading-stage video { max-height:42svh }
  .gait-scene #contour-canvas { height:clamp(150px,28vh,280px); min-height:0 }
  .story-footer { margin-top:8px }
}
@media(max-width:720px) {
  .gait-scene #contour-canvas { min-height:0; height:clamp(130px,18svh,170px) }
  .gait-scene .ctrl-actions { display:flex; flex-wrap:wrap; gap:5px }
  .gait-scene .ctrl-actions button { flex:1 1 24%; min-width:0 }
  .gait-scene .plot-tools { margin:0 0 6px; gap:0 6px; font-size:.72rem }
  .gait-scene .plot-legend { gap:5px }
  .gait-scene .telemetry-row { gap:4px }
  .gait-scene .tel-box { min-height:0 }
}
.act-label { display:grid; gap:1px; min-width:0; line-height:1.25 }
.act-thumb { width:52px; height:39px; border-radius:4px; object-fit:cover; filter:saturate(.4); opacity:.76 }
.act-list [aria-pressed=true] .act-thumb { filter:none; opacity:1 }
#motion .act-list button { min-height:53px; padding:5px 8px; gap:10px }
#motion .act-list button::after { content:none }
@media(max-width:720px) {
  #motion .act-list button { flex-direction:row; align-items:center; gap:6px }
  .act-thumb { width:32px; height:34px }
}
@media(max-width:720px) {
  .gait-scene .stage-bar > .mono-label { display:none }
  .gait-scene .plot-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; align-items:center }
  .gait-scene .plot-legend { display:grid; grid-template-columns:auto auto; gap:0 6px; justify-content:start }
  .gait-scene .plot-legend label { grid-column:1/-1; min-height:26px }
  .gait-scene .plot-tools > label { flex-direction:column; align-items:start; gap:0 }
  .gait-scene .plot-tools select { min-height:32px }
  .gait-scene .tel-box span { font-size:.59rem }
}

.act-clock { display:flex; gap:10px; align-items:center; margin-top:8px; color:var(--ink); font: .75rem/1.4 ui-monospace,monospace; font-variant-numeric:tabular-nums }
#act-progress { appearance:none; height:4px; flex:1; min-width:0; border:0; background:var(--line); color:var(--accent); border-radius:2px }
#act-progress::-webkit-progress-bar { background:var(--line); border-radius:2px }
#act-progress::-webkit-progress-value { background:var(--accent); border-radius:2px }
#act-progress::-moz-progress-bar { background:var(--accent); border-radius:2px }
#act-remaining { min-width:4ch; text-align:right }
#motion .act-stage video { object-fit:contain; object-position:center }
@media(min-width:1100px) {
  #motion .act-layout { grid-template-columns:minmax(0,1fr) minmax(0,58%) minmax(0,1fr); gap:clamp(14px,1.6vw,26px); align-items:center }
  #motion .act-settings { display:contents }
  #motion .act-list { grid-area:1/1 }
  #motion .study-figure { grid-area:1/2 }
  #motion .act-info { grid-area:1/3 }
  #motion .act-info .segmented { flex-wrap:wrap }
}
@media(min-width:721px) and (max-width:1099px) {
  #motion .act-layout { grid-template-columns:1fr; gap:10px }
  #motion .act-settings { display:grid; grid-template-columns:1.4fr 1fr; gap:18px; align-items:center }
  #motion .act-list { grid-template-columns:repeat(2,minmax(0,1fr)) }
  #motion .act-info p { margin-top:0 }
  #motion .study-figure { width:min(100%,800px); justify-self:center }
}
#motion[data-pinned] > .story-scene {
  min-height:calc(100svh - var(--story-top));
  display:flex;
  flex-direction:column;
  justify-content:center;
}
@media(max-width:720px) {
  #motion .act-settings { display:contents }
  #motion .act-list { grid-row:1 }
  #motion .study-figure { grid-row:2 }
  #motion .act-info { grid-row:3 }
  #motion .act-layout { gap:10px }
}

.video-quality { display:inline-flex; align-items:center; gap:5px; color:var(--ink-muted); font:.75rem/1.3 system-ui,sans-serif }
.video-quality select { max-width:7.4em; min-height:28px; padding:3px 5px; color:var(--ink); background:var(--bg-1); border:1px solid var(--line); border-radius:5px; font:inherit }
