/* =============================================================================
   Ultra by Microscales — site styles
   Dark, neutral, type-led. Motion is scroll-revealed and respects
   prefers-reduced-motion everywhere.
   ============================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Ultra Sans";
  src: url("../assets/fonts/UltraSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ultra Mono";
  src: url("../assets/fonts/UltraMono-Variable.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #fff;
  --fg-80: rgba(255, 255, 255, 0.8);
  --fg-60: rgba(255, 255, 255, 0.6);
  --fg-44: rgba(255, 255, 255, 0.44);
  --fg-24: rgba(255, 255, 255, 0.24);
  --fg-12: rgba(255, 255, 255, 0.12);
  --fg-8: rgba(255, 255, 255, 0.08);
  --fg-4: rgba(255, 255, 255, 0.04);
  --surface: #121212;
  --surface-2: #1a1a1a;
  --accent: #3987e5;        /* validated dark-surface data accent */
  --accent-soft: #7fb4ff;
  --dust-1: rgba(120, 104, 150, 0.14);
  --dust-2: rgba(84, 108, 122, 0.10);
  --dust-3: rgba(90, 76, 120, 0.12);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-short: 0.2s;
  --dur-medium: 0.3s;
  --dur-reveal: 0.9s;

  --header-h: 64px;
  --container: 90rem;
  --gutter: clamp(1rem, 4vw, 3rem);

  --font-sans: "Ultra Sans", system-ui, "Segoe UI", sans-serif;
  --font-wordmark: "Ultra Sans", system-ui, "Segoe UI", sans-serif;
  --font-mono: "Ultra Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --hero-copy: 1;
  --hero-vis: visible;
  --hero-parallax: 0px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--fg-60); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100; padding: 0.5rem 0.75rem;
  background: #fff; color: #000; border-radius: 999px; font-size: 0.875rem;
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Layout primitives ---------- */
main { position: relative; z-index: 10; }
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
}
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.container { max-width: var(--container); margin-inline: auto; }
.section__head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section__head--left { text-align: left; margin-inline: 0; }
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-60);
  margin-bottom: 1.25rem;
}
.h2 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 1.25rem;
}
.h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--fg-80);
  text-wrap: pretty;
  max-width: 40rem;
  margin-inline: auto;
}
.section__head--left .lede { margin-inline: 0; }
.caption {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--fg-60);
  text-wrap: pretty;
}
.glass {
  border: 1px solid var(--fg-12);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 2.5rem; padding: 0 1.25rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-soft), color var(--dur-short), transform var(--dur-short) var(--ease-soft);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: #fff; color: #000; }
@media (hover: hover) {
.btn--primary:hover { background: #e4e4e4; }
}
.btn--ghost { background: var(--fg-12); color: #fff; }
@media (hover: hover) {
.btn--ghost:hover { background: var(--fg-24); }
}
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--fg-24); }
@media (hover: hover) {
.btn--outline:hover { box-shadow: inset 0 0 0 1px var(--fg-60); }
}
.btn--lg { height: 3rem; padding: 0 1.5rem; font-size: 1rem; }
.btn__arrow { font-size: 0.9em; transition: transform var(--dur-short) var(--ease-soft); }
@media (hover: hover) {
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-medium) var(--ease-soft), border-color var(--dur-medium);
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-color: var(--fg-8);
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: #fff; text-decoration: none;
  font-family: var(--font-wordmark); font-weight: 600; font-size: 1rem; letter-spacing: -0.015em;
}
.wordmark__mark {
  width: 28px; height: 28px; overflow: visible;
  transition: filter 0.5s var(--ease-soft);
}
.wordmark__mark rect {
  stroke-width: 0.8;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.7s var(--ease-inout), stroke-width 0.4s;
}
.wordmark__mark rect:nth-child(2) { transform: rotate(45deg); }
/* Hover: the two squares counter-rotate, close into one square, and reopen on themselves */
@media (hover: hover) {
.wordmark:hover .wordmark__mark,
.wordmark:focus-visible .wordmark__mark { filter: drop-shadow(0 0 7px rgba(225, 232, 255, 0.55)); }
}
@media (hover: hover) {
.wordmark:hover .wordmark__mark rect,
.wordmark:focus-visible .wordmark__mark rect { stroke-width: 1; }
}
@media (hover: hover) {
.wordmark:hover .wordmark__mark rect:first-child,
.wordmark:focus-visible .wordmark__mark rect:first-child { transform: rotate(45deg); }
}
@media (hover: hover) {
.wordmark:hover .wordmark__mark rect:nth-child(2),
.wordmark:focus-visible .wordmark__mark rect:nth-child(2) { transform: rotate(0deg); }
}
.site-nav { display: flex; gap: 1.5rem; margin-left: 0.5rem; }
.site-nav a {
  color: var(--fg-80); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  transition: color var(--dur-short);
}
@media (hover: hover) {
.site-nav a:hover { color: #fff; }
}
.site-header__actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  height: 2.5rem; padding: 0 1rem; border-radius: 999px; border: 0;
  background: var(--fg-12); color: #fff; font-size: 0.875rem; font-weight: 500; cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 2rem var(--gutter);
  display: grid; align-content: start; gap: 2rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 0.25rem; }
.mobile-menu nav a {
  display: block; padding: 0.9rem 0; text-decoration: none;
  font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--fg-8);
}
html.menu-open { overflow: hidden; }
@media (max-width: 1000px) {
  .site-nav { display: none; }
  .site-header__signin { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Backdrop (fixed particle scene) ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 0; height: 100lvh;
  pointer-events: none; overflow: hidden; background: #000;
}
.backdrop__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.backdrop__ambient {
  /* Faint interstellar dust: three soft, desaturated clouds on black */
  position: absolute; inset: -10%;
  background:
    radial-gradient(52% 44% at 22% 30%, var(--dust-1), transparent 70%),
    radial-gradient(46% 40% at 80% 68%, var(--dust-2), transparent 70%),
    radial-gradient(70% 55% at 50% 104%, var(--dust-3), transparent 72%);
  opacity: 0.75;
  animation: ambient-in 5.5s ease-out;
  transition: opacity 0.9s var(--ease-soft);
}
html.field-hover .backdrop__ambient { opacity: 1; }
.backdrop__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.14) 74%, rgba(0, 0, 0, 0.62) 100%);
}
.backdrop__poster {
  display: none; position: absolute; inset: 0; place-items: center;
}
.backdrop__poster svg { width: min(40vh, 60vw); height: auto; filter: drop-shadow(0 0 40px rgba(127, 180, 255, 0.35)); opacity: 0.85; }
.backdrop[data-static="true"] .backdrop__poster { display: grid; }
.backdrop[data-static="true"] .backdrop__canvas { display: none; }
@keyframes ambient-in { from { opacity: 0; } to { opacity: 0.75; } }

/* ---------- Hero chrome (fixed side labels) ---------- */
.hero-chrome {
  position: fixed; inset: 0; z-index: 20; height: 100svh;
  pointer-events: none; overflow: hidden;
  opacity: var(--hero-copy);
  visibility: var(--hero-vis);
}
.hero-label {
  position: absolute; top: 50%; transform: translateY(-50%); margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em;
  color: #fafafa; text-shadow: 0 0 1.5rem rgba(250, 250, 250, 0.08);
  user-select: none; white-space: nowrap;
}
.hero-label--left { left: clamp(1.25rem, 4vw, 3.5rem); }
.hero-label--right { right: clamp(1.25rem, 4vw, 3.5rem); text-align: right; }
.hero-label--right small { font-size: 0.55em; font-weight: 400; color: var(--fg-60); letter-spacing: 0; }
.hero-label .l {
  display: inline-block; opacity: 0; transform: translateX(var(--shift, 0));
  animation: label-reveal var(--dur, 1s) cubic-bezier(0.22, 1, 0.36, 1) var(--d, 1s) forwards;
}
.hero-label .l.sp { width: 0.28em; }
@keyframes label-reveal { to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .hero-label { font-size: 1.25rem; }
  .hero-label--left { top: 44%; }
  .hero-label--right { top: 56%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; }
.hero__drag {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  background: none; border: 0; padding: 0; cursor: grab;
  touch-action: pan-y pinch-zoom; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none;
}
.hero__drag[data-dragging="true"] { cursor: grabbing; }
.hero__drag:focus-visible { outline-offset: -0.25rem; outline: 2px solid rgba(255, 255, 255, 0.7); border-radius: 0; }
.hero__title {
  position: absolute; left: 50%; bottom: 14vh; z-index: 2;
  width: min(92vw, 56rem); text-align: center; pointer-events: none;
  transform: translate(-50%, var(--hero-parallax));
  opacity: var(--hero-copy);
}
.hero__eyebrow {
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-60);
  margin-bottom: 1rem;
  animation: fade-rise .6s var(--ease-out) .1s both;
}
.hero__headline {
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
  text-wrap: balance; color: #fafafa;
  animation: fade-rise .6s var(--ease-out) .1s both;
}
.hero__scroll {
  position: absolute; bottom: 1.75rem; left: 50%; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--fg-60); font-size: 0.8125rem; letter-spacing: 0.02em; pointer-events: none;
  opacity: var(--hero-copy);
  animation: fade-in 1s ease 2.4s both;
}
.hero__scroll-line {
  width: 1px; height: 28px; background: linear-gradient(var(--fg-60), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}
.hero__replay {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 3;
  width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.15s, color 0.15s;
  animation: fade-in 1s ease 2.4s both;
}
@media (hover: hover) {
.hero__replay:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }
}
.hero__replay svg { width: 16px; height: 16px; }
@keyframes fade-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scroll-line { 0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Statement (word reveal) ---------- */
.statement {
  padding: clamp(3rem, 12vh, 9rem) var(--gutter) clamp(2rem, 6vh, 5rem);
  text-align: center;
}
.statement__text {
  max-width: 62.5rem; margin: 0 auto;
  font-size: clamp(1.6rem, 4vw, 3.5rem); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance;
}
.statement__text .w {
  display: inline-block; opacity: 0; transform: translateY(0.3em); filter: blur(4px);
  color: var(--accent-soft);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out), color 1.4s ease;
  transition-delay: calc(var(--i) * 40ms), calc(var(--i) * 40ms), calc(var(--i) * 40ms), calc(var(--i) * 40ms + 0.35s);
}
.statement__text.is-in .w { opacity: 1; transform: none; filter: none; color: inherit; }
.statement__meta {
  margin-top: 1.75rem; color: var(--fg-44); font-size: 0.875rem;
}

/* ---------- Reveal system ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out), filter var(--dur-reveal) var(--ease-out);
}
.js [data-reveal="soft"] { filter: none; transform: translateY(20px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-stagger] > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------- Tabs (auto-advancing pills) ---------- */
.tabs__bar {
  display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 4px var(--gutter); margin: 0 calc(-1 * var(--gutter)) 2rem;
}
.tabs__bar::-webkit-scrollbar { display: none; }
.tabs__list {
  display: inline-flex; gap: 8px; padding: 4px; flex: 0 0 auto; margin-inline: auto;
  border: 1px solid var(--fg-12); border-radius: 999px;
}
.tab {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
  min-height: 40px; padding: 12px 16px; border-radius: 999px; border: 0;
  background: transparent; color: #fff; cursor: pointer; white-space: nowrap;
  font-size: 0.875rem; font-weight: 500; line-height: 1;
  transition: background-color var(--dur-medium) var(--ease-soft), color var(--dur-medium);
}
@media (hover: hover) {
.tab:hover { background: var(--fg-12); }
}
.tab.is-active { background: var(--fg-8); }
.tab__countdown {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fg-12); transform: scaleX(0); transform-origin: left;
  animation: tab-countdown var(--autoplay, 6000ms) linear forwards;
}
.tabs.is-paused .tab__countdown { animation-play-state: paused; }
@keyframes tab-countdown { 0%, 33.333% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.tabs__panels { display: grid; touch-action: pan-y; }
.tabs__panel {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft), visibility 0s 0.35s;
}
.tabs__panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ---------- Chart (emphasis bars) ---------- */
.chart-panel {
  max-width: 44rem; margin-inline: auto; padding: clamp(1rem, 3vw, 1.75rem);
}
.chart { margin: 0; }
.chart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.chart__title { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.chart__unit { font-size: 0.8125rem; color: var(--fg-60); white-space: nowrap; }
@media (max-width: 720px) { .chart__head { flex-wrap: wrap; gap: 0.3rem 1rem; margin-bottom: 1.1rem; } .chart__unit { white-space: normal; } }
.chart__rows { display: grid; gap: 0.7rem; }
.chart__row, .chart__axis {
  display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr 4.5rem; align-items: center; gap: 0.75rem;
}
.chart__label { font-size: 0.875rem; color: var(--fg-80); }
.chart__row.is-emph .chart__label { color: #fff; font-weight: 600; }
.chart__track { position: relative; height: 20px; }
.chart__bar {
  position: absolute; inset: 0 auto 0 0; width: 0;
  height: 100%; border-radius: 0 4px 4px 0; background: var(--fg-24);
  transition: width 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.chart__row.is-emph .chart__bar { background: var(--accent); }
.chart.is-drawn .chart__bar { width: calc(var(--v, 0) * 100%); }
.chart__value { font-size: 0.875rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--fg-80); }
.chart__row.is-emph .chart__value { color: #fff; font-weight: 600; }
.chart__axis { margin-top: 0.4rem; }
.chart__ticks {
  position: relative; display: flex; justify-content: space-between;
  border-top: 1px solid var(--fg-12); padding-top: 0.35rem;
  font-size: 0.75rem; color: var(--fg-44); font-variant-numeric: tabular-nums;
}
.chart figcaption { margin-top: 1.5rem; }
@media (max-width: 600px) {
  .chart__row, .chart__axis { grid-template-columns: 1fr 4.5rem; row-gap: 0.35rem; }
  .chart__label { grid-column: 1 / -1; }
  .chart__track { grid-column: 1; }
  .chart__value { grid-column: 2; }
  .chart__axis > span:first-child { display: none; }
  .chart__ticks { grid-column: 1; }
  .chart__rows { gap: 1rem; }
}

/* ---------- Shape cues (targets for the particle field) ---------- */
.shape-cue {
  position: relative; width: 100%; max-width: 36rem;
  height: min(80vh, 640px); margin-inline: auto;
  touch-action: pan-y pinch-zoom; cursor: grab;
}
.shape-cue--cta { height: min(52vh, 440px); margin-bottom: 1.5rem; }
.shape-cue__caption {
  position: absolute; left: 50%; bottom: 0.75rem; transform: translateX(-50%); margin: 0;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-60); white-space: nowrap; opacity: 0; transition: opacity 0.3s var(--ease-soft); pointer-events: none;
}
.shape-cue__caption.is-in { opacity: 1; }
.shape-cue__caption span { color: var(--fg-60); margin-left: 0.9em; }
.shape-cue__caption span::before { content: "·"; margin-right: 0.9em; }

/* ---------- Showcase (workspace tabs + player) ---------- */
.showcase { max-width: 68rem; margin-inline: auto; }
.screen {
  border-radius: var(--radius-md); overflow: hidden;
  background: #000; border: 1px solid var(--fg-12);
}
.screen__window { aspect-ratio: 16 / 9; display: grid; grid-template-rows: 40px 1fr; background: #0a0a0a; touch-action: pan-y; }
.screen__titlebar {
  display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem;
  border-bottom: 1px solid var(--fg-8);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-44);
}
.screen__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-12); }
.screen__crumb { margin-left: 0.75rem; }
.screen__body { display: grid; grid-template-columns: 200px 1fr; min-height: 0; }
.screen__side { border-right: 1px solid var(--fg-8); padding: 1rem 0.75rem; font-size: 0.75rem; color: var(--fg-60); }
.screen__side-title { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-44); margin: 0 0.5rem 0.5rem; }
.screen__side ul { list-style: none; display: grid; gap: 2px; }
.screen__side li { padding: 0.4rem 0.5rem; border-radius: 6px; transition: background-color 0.3s, color 0.3s; }
.screen__side li.is-on { background: var(--fg-8); color: #fff; }
.screen__main { position: relative; display: grid; min-height: 0; overflow: hidden; }
.pane {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; padding: 1.25rem; min-height: 0;
  transition: opacity 0.4s var(--ease-soft), visibility 0s 0.4s;
}
.pane.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.pane__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; font-size: 0.8125rem; color: var(--fg-60); }
.pane__head strong { color: #fff; font-weight: 500; }
.pane__chip { font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--fg-8); white-space: nowrap; flex-shrink: 0; }

/* imaging pane */
.cells { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.cells .cell {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at calc(50% + var(--r, 0.5) * 20% - 10%) 40%, rgba(120, 170, 255, 0.55), rgba(60, 110, 200, 0.28) 55%, rgba(0, 0, 0, 0) 72%);
  transform: scale(var(--s, 1));
  opacity: 0.9;
}
.cells .cell.is-hit::after {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  border: 1.5px solid #fff; opacity: 0;
}
.pane.is-active .cells .cell.is-hit::after { animation: hit-in 0.6s var(--ease-out) forwards; animation-delay: calc(0.8s + var(--i) * 70ms); }
.cells .cell { position: relative; }
.scanbox {
  position: absolute; top: -2%; left: 0; width: 26%; height: 104%;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1));
  pointer-events: none; opacity: 0;
}
.pane.is-active .scanbox { animation: scan 3.6s var(--ease-inout) 0.2s forwards; }
@keyframes scan { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 74%; opacity: 0; } }
@keyframes hit-in { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }

/* volumes pane */
.volume { width: 100%; height: auto; }
.volume .slice { fill: rgba(120, 170, 255, 0.12); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.pane.is-active .volume .slice { animation: slice-pulse 3.6s var(--ease-inout) infinite; animation-delay: calc(var(--i) * 0.45s); }
@keyframes slice-pulse { 0%, 100% { fill: rgba(120, 170, 255, 0.12); stroke: rgba(255, 255, 255, 0.28); } 12% { fill: rgba(120, 170, 255, 0.55); stroke: #fff; } 30% { fill: rgba(120, 170, 255, 0.12); stroke: rgba(255, 255, 255, 0.28); } }
.volume .axis { stroke: rgba(255, 255, 255, 0.24); stroke-width: 1; }
.volume text { font-family: var(--font-mono); font-size: 10px; fill: rgba(255, 255, 255, 0.6); }

/* analyses pane */
.notebook { display: grid; gap: 0.75rem; }
.notebook__code {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.6; color: var(--fg-80);
  padding: 0.75rem 0.9rem; border-radius: 8px; background: var(--fg-4); border: 1px solid var(--fg-8);
  white-space: pre; overflow: hidden;
}
.notebook__code .k { color: var(--accent-soft); }
.notebook__code .s { color: #9fd6a2; }
.plot { width: 100%; height: auto; }
.plot .grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.plot .curve { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.pane.is-active .plot .curve { animation: draw 2.4s var(--ease-out) 0.5s forwards; }
.plot .pt { fill: var(--accent); stroke: #0a0a0a; stroke-width: 2; opacity: 0; }
.pane.is-active .plot .pt { animation: fade-in 0.4s ease forwards; animation-delay: calc(0.4s + var(--i) * 0.22s); }
.plot text { font-family: var(--font-mono); font-size: 10px; fill: rgba(255, 255, 255, 0.5); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.progress { height: 4px; border-radius: 4px; background: var(--fg-12); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: #fff; }
.pane.is-active .progress i { animation: fill-bar 3s var(--ease-inout) 0.3s forwards; }
@keyframes fill-bar { to { width: 100%; } }

/* agents pane */
.terminal {
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7; color: var(--fg-80);
  padding: 0.9rem 1rem; border-radius: 8px; background: #000; border: 1px solid var(--fg-8);
  min-height: 100%;
}
.terminal .line { opacity: 0; transform: translateY(4px); }
.terminal .line.ok::before { content: "✓ "; color: #9fd6a2; }
.terminal .line.cmd::before { content: "› "; color: var(--accent-soft); }
.terminal .line.note { color: var(--fg-44); }
.pane.is-active .terminal .line { animation: line-in 0.35s var(--ease-out) forwards; animation-delay: calc(0.3s + var(--i) * 0.55s); }
.terminal .cursor { display: inline-block; width: 0.55em; height: 1em; vertical-align: -0.15em; background: var(--fg-80); animation: cursor-flicker 1s steps(1) infinite; }
@keyframes line-in { to { opacity: 1; transform: none; } }
@keyframes cursor-flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* player bar */
.player { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 1rem; border-top: 1px solid var(--fg-8); }
.player__btn {
  width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%;
  background: none; border: 0; padding: 0; color: #fff; cursor: pointer;
  transition: color 0.15s;
}
@media (hover: hover) {
.player__btn:hover { color: var(--fg-60); }
}
.player__btn svg { width: 14px; height: 14px; }
.player__btn .ico-pause { display: none; }
.showcase.is-playing .player__btn .ico-pause { display: block; }
.showcase.is-playing .player__btn .ico-play { display: none; }
.player__time { font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__time .sep { color: var(--fg-44); margin: 0 0.35rem; }
.player__time .total { color: var(--fg-44); }
.player__track { flex: 1; height: 6px; border-radius: 4px; background: var(--fg-24); overflow: hidden; cursor: pointer; }
.player__fill { height: 100%; width: 0; background: #fff; }
.player__label { font-size: 0.75rem; color: var(--fg-44); white-space: nowrap; }
.showcase__captions { display: grid; margin-top: 1.25rem; max-width: 44rem; margin-inline: auto; text-align: center; }
.showcase__captions .caption { grid-area: 1 / 1; opacity: 0; transition: opacity 0.35s; }
.showcase__captions .caption.is-active { opacity: 1; }
@media (max-width: 720px) {
  .screen__body { grid-template-columns: 1fr; }
  .screen__side { display: none; }
  .screen__window { aspect-ratio: 4 / 3; }
  .player__label { display: none; }
}

/* ---------- Testimonial card ---------- */
.quote-card {
  max-width: 56rem; margin-inline: auto;
  border: 1px solid var(--fg-4); background: var(--surface); border-radius: var(--radius-md);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  padding: 2rem 1.75rem 1.5rem;
}
.quote-card__stack { display: grid; touch-action: pan-y; }
.quote {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s 0.25s;
}
.quote.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.quote__logo {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2rem; margin: 0 0 1.25rem 0.5em;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-80);
}
.quote__logo i { width: 1.25rem; height: 1.25rem; border-radius: 6px; background: var(--fg-12); }
.quote blockquote {
  margin: 0 0 1rem 0.5em;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; text-wrap: pretty;
}
.quote figcaption { margin-left: 0.5em; font-size: 0.875rem; color: var(--fg-60); }
.quote-card__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.dots { display: flex; gap: 0.5rem; }
.dots button {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--fg-24); transition: background-color 0.3s, transform 0.3s;
}
.dots button.is-active { background: #fff; transform: scale(1.2); }
.nav-btn {
  position: relative; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--fg-12); background: none; color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background-color 0.2s;
}
@media (hover: hover) {
.nav-btn:hover { background: var(--fg-8); }
}
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.nav-btn svg { width: 14px; height: 14px; }
.nav-btn__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); pointer-events: none; }
.nav-btn__ring circle {
  fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 113; stroke-dashoffset: 113;
  transform: rotate(-90deg); transform-origin: center;
}
.quote-card.is-playing .nav-btn--next .nav-btn__ring circle { animation: ring-fill var(--interval, 8000ms) linear forwards; }
.quote-card.is-paused .nav-btn--next .nav-btn__ring circle { animation-play-state: paused; }
@keyframes ring-fill { to { stroke-dashoffset: 0; } }
.quote-card__arrows { display: flex; gap: 0.5rem; }

/* ---------- Sticky story ---------- */
.story { position: relative; height: 320vh; }
.story__sticky {
  position: sticky; top: 0; height: 100vh; display: grid; align-items: center;
  padding-inline: var(--gutter);
}
.story__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem);
  max-width: 72rem; margin-inline: auto; align-items: center; width: 100%;
}
.story__steps { list-style: none; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.story__step {
  padding-left: 1.25rem; border-left: 1px solid var(--fg-12); opacity: 0.4;
  transition: opacity 0.5s var(--ease-soft), border-color 0.5s;
}
.story__step.is-active { opacity: 1; border-color: #fff; }
.story__num { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-44); margin-bottom: 0.3rem; }
.story__step h3 { font-size: 1.125rem; font-weight: 500; margin: 0 0 0.35rem; }
.story__step p { color: var(--fg-60); font-size: 0.9375rem; line-height: 1.55; }
.story__progress { height: 2px; background: var(--fg-12); border-radius: 2px; overflow: hidden; margin-top: 2rem; }
.story__progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #fff; }
.pipeline { width: 100%; height: auto; }
.pipeline .edge { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; }
.pipeline .node rect { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; transition: fill 0.5s, stroke 0.5s; }
.pipeline .node text { font-family: var(--font-sans); fill: rgba(255, 255, 255, 0.5); font-size: 13px; transition: fill 0.5s; }
.pipeline .node .t { font-size: 15px; font-weight: 500; }
.pipeline .node.is-active rect { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.7); }
.pipeline .node.is-active text { fill: #fff; }
.pipeline .node.is-active .sub { fill: rgba(255, 255, 255, 0.6); }
.pipeline .packet { fill: #fff; filter: drop-shadow(0 0 6px rgba(127, 180, 255, 0.9)); }
.pipeline .ledger rect { fill: rgba(57, 135, 229, 0.06); stroke: rgba(57, 135, 229, 0.5); stroke-width: 1; }
.pipeline .ledger text { font-family: var(--font-mono); font-size: 11px; fill: rgba(255, 255, 255, 0.6); }
.pipeline .tick { fill: var(--accent); }
.pipeline .tick:nth-child(1) { opacity: clamp(0, calc((var(--p) - 0.66) * 12), 1); }
.pipeline .tick:nth-child(2) { opacity: clamp(0, calc((var(--p) - 0.72) * 12), 1); }
.pipeline .tick:nth-child(3) { opacity: clamp(0, calc((var(--p) - 0.78) * 12), 1); }
.pipeline .tick:nth-child(4) { opacity: clamp(0, calc((var(--p) - 0.84) * 12), 1); }
.pipeline .tick:nth-child(5) { opacity: clamp(0, calc((var(--p) - 0.90) * 12), 1); }
.pipeline .tick:nth-child(6) { opacity: clamp(0, calc((var(--p) - 0.95) * 12), 1); }
@media (max-width: 900px) {
  .story { height: auto; padding: clamp(3rem, 8vw, 5rem) 0; }
  .story__sticky { position: static; height: auto; }
  .story__grid { grid-template-columns: 1fr; }
  .story__step { opacity: 1; }
  .story__visual { order: -1; }
}

/* ---------- Compare decks ---------- */
.decks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 72rem; margin-inline: auto; }
.deck { min-width: 0; }
.deck__title { font-size: 1rem; font-weight: 500; margin: 0 0 0.75rem; }
.deck__frame { background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--fg-8); }
.deck__viewport { aspect-ratio: 16 / 10; overflow: hidden; min-width: 0; touch-action: pan-y; }
.deck__slides { display: flex; width: 100%; height: 100%; transition: transform 0.6s var(--ease-out); }
.slide { flex: 0 0 100%; height: 100%; padding: 1.25rem; display: grid; grid-template-rows: auto 1fr; gap: 0.75rem; min-width: 0; }
.slide__title { font-size: 0.8125rem; color: var(--fg-60); display: flex; justify-content: space-between; }
.slide__title span:last-child { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-44); }
.slide svg { width: 100%; height: 100%; }
.slide .ln { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.slide .ln.strong { stroke: rgba(255, 255, 255, 0.5); }
.slide .fill { fill: rgba(255, 255, 255, 0.06); }
.slide .fill-2 { fill: rgba(120, 170, 255, 0.2); }
.slide .curve { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.slide .curve.accent { stroke: var(--accent); }
.slide .dot { fill: rgba(255, 255, 255, 0.7); }
.slide .dot.accent { fill: var(--accent); }
.slide text { font-family: var(--font-mono); font-size: 9px; fill: rgba(255, 255, 255, 0.55); }
.slide .tl { font-family: var(--font-sans); font-size: 12px; fill: #fff; }
.deck__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 3rem;
  border-top: 1px solid var(--fg-12); padding: 0 0.75rem; font-size: 0.8125rem; color: var(--fg-60);
}
.deck__counter { grid-column: 2; font-variant-numeric: tabular-nums; }
.deck__tag { grid-column: 3; justify-self: end; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-44); }
.decks__controls { grid-column: 1 / -1; display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
@media (max-width: 800px) { .decks { grid-template-columns: 1fr; } }

/* ---------- Features & stats ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 72rem; margin-inline: auto; }
.feature { padding: 1.75rem; }
.feature__icon {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 10px;
  background: var(--fg-8); margin-bottom: 1.25rem; color: #fff;
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.125rem; font-weight: 500; margin: 0 0 0.5rem; }
.feature p { color: var(--fg-60); font-size: 0.9375rem; line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 72rem; margin: 1rem auto 0; }
.stat { padding: 1.5rem 0.25rem 0; border-top: 1px solid var(--fg-12); }
.stat__value { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat__label { color: var(--fg-60); font-size: 0.875rem; margin-top: 0.6rem; }
.stats__note { max-width: 72rem; margin: 1.5rem auto 0; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA ---------- */
.cta { text-align: center; padding-top: 0; }
.cta__title { font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; margin: 0 0 1rem; }
.cta__sub { color: var(--fg-80); font-size: 1.125rem; margin: 0 auto 2rem; max-width: 34rem; text-wrap: balance; }
.cta__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 10; overflow: hidden; background: #000; color: var(--fg-80);
  --band-top: min(26.6vw, 511px);              /* ruler baseline: 0.607 of the band height at 3200/1400 */
}
/* Plate I sits behind everything: width-fit, top-anchored, never scaled by the footer's height */
.footer__band { position: absolute; inset: 0; pointer-events: none; }
.footer__band picture { display: block; }
.footer__band-img {
  position: absolute; top: 0; left: 50%; width: 100%; max-width: 1920px; height: auto;
  transform: translateX(-50%); display: block;
}
.footer__band::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 9rem;
  background: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0));
}
.footer__band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) calc(var(--band-top) + 1rem), rgba(0, 0, 0, 0.66) calc(var(--band-top) + 5.5rem), #000 calc(var(--band-top) + 18rem));
}
.footer__inner { position: relative; max-width: var(--container); margin-inline: auto; padding: calc(var(--band-top) + 1.5rem) var(--gutter) 2rem; }
.footer__plate {
  margin: 0 0 3rem; color: var(--fg-44); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-mono);
}
.footer__plate sup { font-size: 0.75em; vertical-align: super; line-height: 0; }
.footer__grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 2.5rem 2rem; }
.footer__brand .wordmark { color: #fff; }
.footer__tagline { margin: 1.25rem 0 0.5rem; color: #fff; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.footer__note { color: var(--fg-60); font-size: 0.875rem; line-height: 1.55; max-width: 21rem; margin: 0; }
.footer__mail {
  display: inline-block; margin-top: 1.25rem; color: var(--fg-80); text-decoration: none; font-size: 0.9375rem;
  border-bottom: 1px solid var(--fg-24); padding-bottom: 0.1rem; transition: color 0.2s, border-color 0.2s;
}
.footer h4 { font-size: 0.7rem; font-weight: 500; color: var(--fg-44); margin: 0.35rem 0 1.1rem; text-transform: uppercase; letter-spacing: 0.12em; }
.footer ul { list-style: none; display: grid; gap: 0.65rem; margin: 0; padding: 0; }
.footer li a {
  color: var(--fg-80); text-decoration: none; font-size: 0.9375rem; display: inline-flex; align-items: baseline; gap: 0.35rem;
  transition: color 0.2s;
}
.footer__ext { color: var(--fg-44); font-size: 0.8em; transition: transform 0.25s var(--ease-soft), color 0.2s; }
.footer a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 2px; }
@media (hover: hover) {
  .footer li a:hover { color: #fff; }
  .footer li a:hover .footer__ext { color: #fff; transform: translate(2px, -2px); }
  .footer__mail:hover { color: #fff; border-color: #fff; }
  .footer__bottom a:hover { color: #fff; }
}
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; align-items: baseline;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--fg-8); color: var(--fg-44); font-size: 0.8125rem;
}
.footer__bottom a { color: var(--fg-44); text-decoration: none; transition: color 0.2s; }
.footer__bottom-links { display: inline-flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .footer { --band-top: min(56vw, 403px); }   /* phone band: 1200/1000, ruler labels end at 0.66 of its height */
  .footer__band-img { max-width: none; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .footer__plate { margin-bottom: 2.25rem; font-size: 0.65rem; letter-spacing: 0.06em; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; }
}

/* ---------- Science model: status table, evidence, agent flow ---------- */
.table-scroll { max-width: 72rem; margin-inline: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.status { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: 0.9375rem; }
.status th, .status td { text-align: left; vertical-align: top; padding: 0.95rem 1rem 0.95rem 0; border-top: 1px solid var(--fg-12); }
.status thead th { border-top: 0; padding-top: 0; color: var(--fg-44); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.status tbody th { font-weight: 500; color: #fff; width: 32%; }
.status td { color: var(--fg-60); width: 34%; }
.status__dim { display: inline-block; min-width: 2.4rem; margin-right: 0.35rem; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--fg-44); }
.chip { display: inline-block; margin-right: 0.5rem; padding: 0.12rem 0.5rem; border-radius: 999px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; white-space: nowrap; vertical-align: 0.1em; border: 1px solid var(--fg-24); color: var(--fg-80); }
.chip--evaluated { border-color: rgba(57, 135, 229, 0.7); color: #fff; background: rgba(57, 135, 229, 0.14); }
.chip--roadmap { border-style: dashed; color: var(--fg-44); }
.evidence { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem 3rem; max-width: 72rem; margin: 2rem auto 0; padding: 2rem; }
.evidence__figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-content: start; }
.evidence__figures .stat { padding-top: 1rem; }
.evidence__figures .stat__value { font-size: clamp(1.75rem, 2.6vw, 2.4rem); }
.evidence__title { color: #fff; font-weight: 500; margin: 0 0 0.75rem; }
.evidence__copy p { color: var(--fg-60); font-size: 0.9375rem; line-height: 1.55; margin: 0 0 0.75rem; }
.evidence__copy p:last-child { margin-bottom: 0; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 72rem; margin: 0 auto; padding: 0; counter-reset: none; }
.flow__step { position: relative; padding: 1.5rem 1.5rem 1.5rem 1.5rem; }
.flow__step h3 { font-size: 1.0625rem; font-weight: 500; margin: 0.9rem 0 0.5rem; }
.flow__step p { color: var(--fg-60); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.flow__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-44); }
.flow__step + .flow__step::before { content: "→"; position: absolute; left: -0.95rem; top: 1.45rem; color: var(--fg-24); font-size: 1rem; }
.flow__note { max-width: 72rem; margin: 1.5rem auto 0; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__step:nth-child(3)::before { content: "↓"; left: 1.5rem; top: -1.1rem; }
  .flow__step:nth-child(2)::before, .flow__step:nth-child(4)::before { content: "→"; }
  .evidence { grid-template-columns: 1fr; padding: 1.5rem; }
}
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; }
  .flow__step + .flow__step::before { content: "↓"; left: 1.5rem; top: -1.15rem; }
}
@media (max-width: 720px) {
  /* Stacked rows on phones: each dimension becomes a block with labelled lines */
  .table-scroll { overflow: visible; }
  .status { min-width: 0; font-size: 0.9rem; }
  .status thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .status, .status tbody, .status tr, .status th, .status td { display: block; width: auto; }
  .status tr { padding: 1rem 0 1.1rem; border-top: 1px solid var(--fg-12); }
  .status th, .status td { border-top: 0; padding: 0; }
  .status tbody th { width: auto; margin-bottom: 0.6rem; display: flex; gap: 0.6rem; align-items: baseline; }
  .status tbody th .status__dim { min-width: 1.8rem; margin: 0; flex: 0 0 auto; }
  .status tbody th .status__name { flex: 1 1 auto; min-width: 0; }
  .status td { margin-top: 0.5rem; padding-left: 0; }
  .status td::before { content: attr(data-label); display: block; color: var(--fg-44); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
}

/* ---------- Table of contents ---------- */
.toc {
  position: fixed; right: 1.25rem; top: 50%; z-index: 30; transform: translateY(-50%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}
.toc.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.toc ol { list-style: none; display: grid; gap: 0.55rem; }
.toc a {
  display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
  color: var(--fg-44); font-size: 0.75rem; font-weight: 500; transition: color 0.3s;
}
.toc a::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width 0.3s var(--ease-soft); }
@media (hover: hover) {
.toc a:hover { color: var(--fg-80); }
}
.toc a.is-active { color: #fff; }
.toc a.is-active::before { width: 24px; }
@media (max-width: 1439px) { .toc { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .js [data-reveal], .js [data-stagger] > *, .statement__text .w { opacity: 1; transform: none; filter: none; color: inherit; }
  .hero__scroll-line { animation: none; }
  .tab__countdown { display: none; }
  .story__step { opacity: 1; }
}

/* ---------- Short landscape viewports (phones rotated) ---------- */
@media (max-height: 540px) and (orientation: landscape) {
  .hero__title { bottom: 5vh; width: min(92vw, 40rem); }
  .hero__eyebrow { margin-bottom: 0.4rem; font-size: 0.7rem; }
  .hero__headline { font-size: clamp(1.4rem, 3.6vw, 2.1rem); }
  .hero__scroll { display: none; }
  .hero-label { font-size: 1.15rem; }
  .hero-label--left { top: 40%; }
  .hero-label--right { top: 40%; }
  .hero__replay { bottom: 0.6rem; right: 0.6rem; }
  .story { height: auto; padding: 3rem var(--gutter); }
  .story__sticky { position: static; height: auto; }
  .story__step { opacity: 1; }
  .shape-cue { height: 85vh; }
  .statement { padding-block: 2.5rem; }
}



/* ---------- Plate II (mid-page engraving) ---------- */
.plate-section { padding-block: 1.5rem 3rem; }
.plate { max-width: var(--container); margin-inline: auto; }
.plate picture, .plate__img { display: block; width: 100%; height: auto; }
.plate__img { aspect-ratio: 3200 / 1000; background: #000; border-radius: 6px; border: 1px solid var(--fg-8); }
.plate__caption {
  display: flex; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap;
  margin-top: 0.85rem; color: var(--fg-44); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.plate__caption a { color: var(--fg-60); text-decoration: none; border-bottom: 1px solid var(--fg-8); }
@media (hover: hover) { .plate__caption a:hover { color: #fff; } }
@media (max-width: 720px) { .plate__img { aspect-ratio: 1600 / 1000; } .plate__caption { flex-direction: column; gap: 0.35rem; text-transform: none; letter-spacing: 0.02em; } }

/* Particle inspection controls retain the site's quiet scientific typography. */
.motion-toggle { display:inline-flex; align-items:center; gap:.5rem; min-height:40px; padding:0 .85rem; border:1px solid var(--fg-24); border-radius:999px; color:var(--fg-80); background:rgba(0,0,0,.55); cursor:pointer; font-size:.75rem; }
.motion-toggle:disabled { cursor:default; }
.motion-toggle [data-motion-icon] { min-width:1em; }
.scene-interaction { position:absolute; inset:0; width:100%; height:100%; border:0; padding:0; background:transparent; color:inherit; cursor:grab; touch-action:pan-y pinch-zoom; }
.scene-interaction[data-dragging], .hero__drag[data-dragging] { cursor:grabbing; }
.scene-interaction:focus-visible { outline:1px solid var(--fg-60); outline-offset:-8px; border-radius:12px; }
.shape-cue[data-shape="gallery"] { max-width:46rem; }
.shape-cue[data-shape="gallery"] .shape-cue__caption { bottom:3.3rem; width:calc(100% - 36px); text-align:center; white-space:normal; line-height:1.8; color:var(--fg-80); }
.science-controls { position:absolute; bottom:0; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:1.1rem; font:10px var(--font-mono); color:var(--fg-60); letter-spacing:.08em; white-space:nowrap; }
.science-controls button { width:40px; height:40px; border:1px solid var(--fg-24); border-radius:50%; background:rgba(0,0,0,.5); color:var(--fg-80); cursor:pointer; transition:background-color .18s; }
.science-controls button:hover { background:var(--fg-12); }
.science-labels { position:absolute; inset:0; pointer-events:none; }
.science-labels span { position:absolute; transform:translate(-50%,-50%); font:12px var(--font-mono); color:var(--fg-80); }
html[data-motion-paused="true"] *, html[data-motion-paused="true"] *::before, html[data-motion-paused="true"] *::after { animation-play-state:paused !important; }
html[data-motion-paused="true"] .hero-label .l, html[data-motion-paused="true"] .hero__eyebrow, html[data-motion-paused="true"] .hero__headline { opacity:1; transform:none; filter:none; }
@media (max-width:1100px) { .motion-toggle__label { display:none; } .motion-toggle { padding:0; width:40px; justify-content:center; } }
@media (max-width:480px) { .site-header__inner { gap:.5rem; } .site-header__actions { gap:.35rem; } .site-header__actions > .btn--primary { padding:0 .75rem; font-size:.75rem; } .menu-toggle { padding:0 .75rem; } .shape-cue__caption { font-size:.625rem; letter-spacing:.1em; } }
@media (prefers-reduced-motion:reduce) { .hero-label .l, .hero__eyebrow, .hero__headline { animation:none !important; opacity:1; transform:none; filter:none; } }

.no-js .js-only { display:none; }

.science-controls button:disabled { opacity:.35; cursor:default; }
.science-controls button, .motion-toggle { touch-action:manipulation; }
