/* tokens */
:root {
  --bg: #04060c;
  --ink: #e6edf6;
  --muted: #93a1b5;
  --accent: #62e6ff;
  --blue: #3b82f6;
  --pass: #34d399;
  --reject: #f43f5e;
  --gold: #f5c76a;
  --line: rgba(147, 161, 181, .14);
  --edge: rgba(230, 237, 246, .22);
  --radius-lg: 10px;
  --radius-md: 10px;
  --radius-sm: 10px;
  --font-sans: Inter, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  /* Hermes-style editorial pairing (fonts vendored locally in ../fonts): an
     expanded grotesque for display + a retro-flavoured serif for body copy.
     --font-sans stays the UI face used by animations, mockups and mono. */
  --font-display: "ArchivoExp", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", Times, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* lets height:auto / block-size:auto animate (FAQ accordion) where supported */
  interpolate-size: allow-keywords;
}

/* vendored fonts — self-contained, no external requests (OFL, see ../fonts) */
@font-face {
  font-family: "ArchivoExp";
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/archivo-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/fraunces-400.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/fraunces-500.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("../fonts/fraunces-400-italic.woff2") format("woff2");
}

/* used by the #after card/border-glow hover effects below; unsupported
   browsers simply skip the smooth angle interpolation (graceful no-op) */
@property --ang {
  syntax: '<angle>';
  initial-value: -40deg;
  inherits: false;
}

/* reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); }

/* shared type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.hero-title {
  letter-spacing: -.025em;
  background: linear-gradient(180deg, var(--ink) 0%, #c6d6ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chapter h2, .section-head h2, #cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 640;
  line-height: 1.16;
  letter-spacing: -.01em;
}
.lead { color: var(--muted); font-size: 1.1rem; }
.chapter p:not(.eyebrow):not(.lead) { color: var(--muted); }

/* --- Hermes-style type: expanded grotesque display + retro serif body ------
   Applied to STATIC editorial blocks only. Animations, device mockups and the
   3D-journey captions keep --font-sans (see .no-restyle). Mono is never
   touched — .mono keeps var(--font-mono). */
h1, .hero-title,
.section-head h2, #cta h2 {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: .006em;
}
.hero-title { font-size: clamp(1.75rem, 4vw, 3.1rem); line-height: 1.05; }
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .004em;
}
.btn-primary, .btn-ghost {
  font-family: var(--font-display);
  font-weight: 680;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.faq-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 110%;
}
.no-restyle { font-family: var(--font-sans); }
.no-restyle h1, .no-restyle h2, .no-restyle h3 {
  font-family: var(--font-sans);
  font-weight: 640;
  font-stretch: normal;
  text-transform: none;
  letter-spacing: -.01em;
}
.pill { font-family: var(--font-sans); }

/* canvas layer */
#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}
/* soft vignette over the 3D layer, under the text */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 130% 100% at 50% 42%, transparent 55%, rgba(0, 0, 0, .42) 100%);
}

/* twinkling starfield behind the whole page (stars injected by js/stars.js).
   #stars floats over the WebGL scene (under the journey + topbar); .starfield--after
   rides inside the opaque #after block, above its background and below its content,
   so the field carries through the static sections too. decorative, pointer-inert. */
.starfield { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
/* keep the field toward the edges so it doesn't clutter the centered hero
   window / its chrome dots - stars fade out across the middle, stay at the rim */
#stars {
  z-index: 0;
  -webkit-mask-image: radial-gradient(125% 115% at 50% 48%, transparent 42%, #000 80%);
          mask-image: radial-gradient(125% 115% at 50% 48%, transparent 42%, #000 80%);
}
.starfield--after { z-index: -1; }
.star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: #eaf3ff;
  opacity: var(--min, .3);
  box-shadow: 0 0 var(--glow, 0) rgba(180, 220, 255, .7);
  animation: star-twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
  will-change: opacity, transform;
}
@keyframes star-twinkle {
  0%, 100% { opacity: var(--min, .3); transform: scale(.85); }
  50%      { opacity: var(--max, 1); transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: var(--max, .55); transform: none; }
}

/* topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 22px clamp(20px, 5vw, 56px);
}
.logo {
  font-family: var(--font-mono);
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--ink);
}

/* buttons */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #04060c;
  box-shadow: 0 0 0 rgba(98, 230, 255, 0);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .4) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform .65s ease;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(98, 230, 255, .5);
}
.btn-primary:hover::before { transform: translateX(130%); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover {
  border-color: rgba(98, 230, 255, .45);
  background: rgba(98, 230, 255, .08);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -16px rgba(98, 230, 255, .4);
}
.btn-small { padding: 10px 20px; font-size: .85rem; }
.btn-large { padding: 18px 36px; font-size: 1.02rem; }

/* reusable pill / icon-box */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.icon-box {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  color: var(--muted);
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.icon-box svg { width: 23px; height: 23px; display: block; }
.icon-box--cyan  { color: var(--accent); background: linear-gradient(155deg, rgba(98, 230, 255, .17), rgba(98, 230, 255, .03));  border-color: rgba(98, 230, 255, .34);  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.icon-box--blue  { color: var(--blue);   background: linear-gradient(155deg, rgba(59, 130, 246, .17), rgba(59, 130, 246, .03));  border-color: rgba(59, 130, 246, .34);  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.icon-box--green { color: var(--pass);   background: linear-gradient(155deg, rgba(52, 211, 153, .16), rgba(52, 211, 153, .03));  border-color: rgba(52, 211, 153, .32);  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.icon-box--gold  { color: var(--gold);   background: linear-gradient(155deg, rgba(245, 199, 106, .16), rgba(245, 199, 106, .03)); border-color: rgba(245, 199, 106, .32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.icon-box--white { color: var(--ink);    background: linear-gradient(155deg, rgba(230, 237, 246, .1), rgba(230, 237, 246, .02));  border-color: rgba(230, 237, 246, .2);   box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.icon-box--warm  { color: var(--reject); background: linear-gradient(155deg, rgba(244, 63, 94, .15), rgba(244, 63, 94, .03));   border-color: rgba(244, 63, 94, .3);    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }

/* scroll-reveal baseline (main.js toggles .in-view via IntersectionObserver).
   optional per-item stagger via --d. reduced-motion path reveals instantly. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* journey + chapters. taller = more scroll per stop, so the camera dwells feel
   unhurried rather than skimmed. */
#journey {
  position: relative;
  z-index: 1;
  height: 840vh;
}
/* gentle scroll-snap so each stage model catches instead of being skimmed past.
   proximity nudges toward the nearest stop without trapping the scroll. */
html { scroll-snap-type: y proximity; }
.snap-point {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-snap-align: center;
  pointer-events: none;
  opacity: 0;
}
#after { scroll-snap-align: start; }
/* no snap targets in the no-webgl fallback (journey is normal flow there) */
.no-webgl html, html.no-webgl { scroll-snap-type: none; }
.no-webgl .snap-point { display: none; }
.chapter {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 8vw, 96px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
  transform: translateY(14px);
}
.chapter.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .5s ease, transform .5s ease, visibility 0s;
}
.chapter a, .chapter button { pointer-events: auto; }

/* horizontal placement: hero/loop centered, stages alternate sides */
#ch-hero, #ch-loop { justify-content: center; }
#ch-collect { justify-content: flex-start; }
#ch-create, #ch-publish, #ch-check, #ch-learn { justify-content: flex-end; }
/* collect card nudged a little below center so it clears the feed screen */
#ch-collect .chapter-card { transform: translateY(11vh); }

/* chapter-card carries no positioning transform of its own, so it never
   fights the reveal transform living on .chapter */
.chapter-card {
  position: relative;
  max-width: 460px;
  /* mostly opaque so the panel always reads as a card - at .46 it vanished
     wherever the scene behind it was pure black */
  background: rgba(7, 10, 17, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-top-color: var(--edge);
  border-radius: 10px;
  padding: 28px 30px;
  box-shadow: inset 0 1px 0 0 rgba(230, 237, 246, .06), 0 24px 50px -30px rgba(0, 0, 0, .6);
}
#ch-hero .chapter-card, #ch-loop .chapter-card {
  max-width: 780px;
  text-align: center;
}
.chapter-card h2 { margin-bottom: 12px; }
.chapter-card .lead { margin-top: 12px; }

/* hero */
.hero-window { text-align: left; }
.hero-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 14px;
  /* raise the dots into the card's top padding so they sit centered between the
     card's top edge and this border line (extra bottom padding keeps the line put) */
  margin-top: -7px;
  padding-bottom: 21px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.hero-dots { display: inline-flex; align-items: center; gap: 6px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; }
.hero-dot--red   { background: rgba(244, 63, 94, .5); }
.hero-dot--amber { background: rgba(245, 199, 106, .5); }
.hero-dot--green { background: rgba(52, 211, 153, .5); }
.hero-session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--pass);
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pass);
  flex-shrink: 0;
  animation: status-pulse 2s ease-out infinite;
}
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero-body { text-align: center; }
.hero-prompt {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.term-cursor {
  display: inline-block;
  width: .5em;
  height: 1em;
  margin-left: 6px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: term-blink 1.1s steps(2, start) infinite;
}
.cursor-char { animation: term-blink 1.1s steps(2, start) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }
.hero-log {
  position: relative;
  height: 22px;
  max-width: 380px;
  margin: 22px auto 4px;
  overflow: hidden;
}
.hero-log-line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(3px);
  animation: hero-log-cycle 8s ease-in-out infinite;
}
.hero-log-line:nth-child(1) { animation-delay: 0s; }
.hero-log-line:nth-child(2) { animation-delay: 2s; }
.hero-log-line:nth-child(3) { animation-delay: 4s; }
.hero-log-line:nth-child(4) { animation-delay: 6s; }
.hero-log-line .mono { font-size: .76rem; color: var(--muted); }
.hero-log-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.hero-log-dot--blue  { background: var(--blue); }
.hero-log-dot--green { background: var(--pass); }
.hero-log-dot--cyan  { background: var(--accent); }
.hero-log-dot--gold  { background: var(--gold); }
@keyframes hero-log-cycle {
  0%   { opacity: 0; transform: translateY(3px); }
  4%   { opacity: 1; transform: translateY(0); }
  21%  { opacity: 1; transform: translateY(0); }
  25%  { opacity: 0; transform: translateY(-3px); }
  100% { opacity: 0; }
}
.badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.badge-pill {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .02em;
  color: var(--muted);
}
.badge-pill svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
/* hero card only: a solid "desktop-app window" floating in the 3D scene. The
   hero sits over the brightest part of the ring, so unlike the translucent side
   chapters this panel is fully opaque - the app-window read is stronger and the
   headline stays crisp. Scoped so other chapters keep their glass. */
#ch-hero .chapter-card {
  background: linear-gradient(180deg, #0b0f19, #05070d);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 0 rgba(230, 237, 246, .1),
    0 30px 70px -32px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(230, 237, 246, .02);
}

/* scroll hint */
.scroll-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .65;
  pointer-events: none;
  transition: opacity .6s ease;
}
.scroll-hint.hidden { opacity: 0; }

/* after: solid sections covering the canvas */
#after {
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.section-head { position: relative; max-width: 640px; margin: 0 auto 32px; text-align: center; }
/* faint numbered index replacing the old eyebrow pill - editorial rhythm, not a label */
.section-index {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--muted);
  opacity: .5;
  margin-bottom: 14px;
}
/* soft atmosphere glow behind each section heading, keyed per section accent */
.section-head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(620px, 88vw);
  height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--atmo, rgba(98, 230, 255, .10)), transparent 72%);
  z-index: -1;
  pointer-events: none;
}
.section-head--cyan  { --atmo: rgba(98, 230, 255, .12); }
.section-head--blue  { --atmo: rgba(59, 130, 246, .13); }
.section-head--gold  { --atmo: rgba(245, 199, 106, .12); }
.section-head--green { --atmo: rgba(52, 211, 153, .12); }
#architecture, #demo, #features, #stats, #platforms, #media, #safety, #faq, #cta {
  padding: clamp(40px, 6vh, 76px) clamp(20px, 6vw, 56px);
}

/* card grids */
.arch-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.features-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.feature-card--span2 { grid-column: span 2; }
.feature-card--span3 { grid-column: span 3; }
.feature-card--wide {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feature-card--wide .icon-box { margin-bottom: 0; }
.feature-card--wide h3 { margin-bottom: 6px; }
.feature-card-body { flex: 1; min-width: 0; }

.arch-connector {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: .55;
}
.arch-connector::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 161, 181, .45), transparent);
  transform: translateY(-50%);
}
.arch-connector svg {
  position: relative;
  width: 18px;
  height: 18px;
  background: var(--bg);
  padding: 0 4px;
}

.arch-card, .feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 28px;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 1px 0 0 rgba(230, 237, 246, .05);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  --card-glow: rgba(147, 161, 181, .5);
}
/* feature cards read slightly sharper than arch cards now that the grid gap is tight */
.feature-card { border-radius: 10px; }
.arch-card::before, .feature-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(240px circle at 50% 0%, rgba(147, 161, 181, .10), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
/* animated gradient border-glow ring, revealed and swept in on hover */
.arch-card::after, .feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang, -40deg), transparent 0deg, var(--card-glow) 60deg, transparent 130deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease), --ang 1.1s var(--ease);
  pointer-events: none;
}
.arch-card:hover, .feature-card:hover {
  border-color: rgba(147, 161, 181, .28);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 0 rgba(230, 237, 246, .08), 0 20px 40px -28px rgba(0, 0, 0, .5);
}
.arch-card:hover::before, .feature-card:hover::before { opacity: 1; }
.arch-card:hover::after, .feature-card:hover::after { opacity: 1; --ang: 300deg; }
.arch-card:hover .icon-box, .feature-card:hover .icon-box {
  border-color: currentColor;
  transform: scale(1.08);
  filter: brightness(1.15);
}

.arch-card--control::before { background: radial-gradient(260px circle at 50% 0%, rgba(98, 230, 255, .16), transparent 70%); }
.arch-card--brain::before   { background: radial-gradient(260px circle at 50% 0%, rgba(59, 130, 246, .16), transparent 70%); }
.arch-card--hands::before   { background: radial-gradient(260px circle at 50% 0%, rgba(230, 237, 246, .12), transparent 70%); }
.feature-card--cyan::before  { background: radial-gradient(260px circle at 50% 0%, rgba(98, 230, 255, .14), transparent 70%); }
.feature-card--blue::before  { background: radial-gradient(260px circle at 50% 0%, rgba(59, 130, 246, .14), transparent 70%); }
.feature-card--green::before { background: radial-gradient(260px circle at 50% 0%, rgba(52, 211, 153, .14), transparent 70%); }
.feature-card--gold::before  { background: radial-gradient(260px circle at 50% 0%, rgba(245, 199, 106, .14), transparent 70%); }
.feature-card--white::before { background: radial-gradient(260px circle at 50% 0%, rgba(230, 237, 246, .10), transparent 70%); }
.feature-card--warm::before  { background: radial-gradient(260px circle at 50% 0%, rgba(244, 63, 94, .13), transparent 70%); }

.arch-card--control { --card-glow: rgba(98, 230, 255, .55); }
.arch-card--brain   { --card-glow: rgba(59, 130, 246, .55); }
.arch-card--hands   { --card-glow: rgba(230, 237, 246, .45); }
.feature-card--cyan  { --card-glow: rgba(98, 230, 255, .55); }
.feature-card--blue  { --card-glow: rgba(59, 130, 246, .55); }
.feature-card--green { --card-glow: rgba(52, 211, 153, .55); }
.feature-card--gold  { --card-glow: rgba(245, 199, 106, .55); }
.feature-card--white { --card-glow: rgba(230, 237, 246, .45); }
.feature-card--warm  { --card-glow: rgba(244, 63, 94, .5); }

.arch-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.arch-card-top .icon-box { margin-bottom: 0; }
.layer-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  opacity: .5;
}
.arch-card--control .layer-num { color: var(--accent); }
.arch-card--brain .layer-num { color: var(--blue); }
.arch-card--hands .layer-num { color: var(--ink); }

.arch-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--accent);
  background: rgba(98, 230, 255, .08);
  border: 1px solid rgba(98, 230, 255, .2);
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.arch-card--brain .arch-label { color: var(--blue); background: rgba(59, 130, 246, .08); border-color: rgba(59, 130, 246, .2); }
.arch-card--hands .arch-label { color: var(--ink); background: rgba(230, 237, 246, .06); border-color: rgba(230, 237, 246, .18); }
.arch-card h3, .feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.arch-card p, .feature-card p { color: var(--muted); }

/* live demo: fake browser window driving a stylized X compose UI. palette
   scoped to #demo only so it never leaks into the page's own tokens. */
#demo {
  --x-bg: #000000;
  --x-text: #e7e9ea;
  --x-secondary: #71767b;
  --x-hairline: #2f3336;
  --x-blue: #1d9bf0;
  --x-like: #f91880;
  --x-repost: #00ba7c;
}
.demo-stage { max-width: 900px; margin: 0 auto; }
.browser {
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-top-color: var(--edge);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 0 rgba(230, 237, 246, .06), 0 30px 70px -32px rgba(0, 0, 0, .65);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot--red   { background: #f4555f; }
.browser-dot--amber { background: #f5c76a; }
.browser-dot--green { background: #34d399; }
.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto;
  padding: 6px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .78rem;
  white-space: nowrap;
}
.browser-url svg { width: 13px; height: 13px; flex-shrink: 0; }

.browser-view {
  position: relative;
  overflow: hidden;
  background: var(--x-bg);
  min-height: 300px;
  padding: 22px 22px 26px;
  font-family: var(--font-sans);
}

/* compose card */
.x-compose {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: opacity .35s ease, transform .35s ease;
}
.x-compose.is-collapsing { opacity: 0; transform: translateY(-8px); }
.x-compose.is-hidden { display: none; }
.x-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #04060c;
  font-weight: 700;
  font-size: .95rem;
}
.x-tweet .x-avatar { width: 40px; height: 40px; min-width: 40px; font-size: .85rem; }
.x-compose-body { flex: 1; min-width: 0; padding-top: 4px; }
.x-input {
  position: relative;
  min-height: 62px;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--x-hairline);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--x-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.x-placeholder { color: var(--x-secondary); }
.x-input.is-typing .x-placeholder { display: none; }
.x-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--x-blue);
  opacity: 0;
}
.x-input.is-typing .x-caret {
  opacity: 1;
  animation: x-caret-blink 1s steps(2, start) infinite;
}
@keyframes x-caret-blink { 50% { opacity: 0; } }
.x-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}
.x-tools { display: inline-flex; align-items: center; gap: 14px; color: var(--x-blue); }
.x-tool { display: inline-flex; opacity: .9; }
.x-tool svg { width: 19px; height: 19px; display: block; }
.x-post-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--x-blue);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  opacity: .45;
  transform: scale(1);
  transition: opacity .25s ease, transform .12s ease, box-shadow .25s ease;
}
.x-post-btn.is-active { opacity: 1; box-shadow: 0 6px 18px -8px rgba(29, 155, 240, .6); }
.x-post-btn.is-pressed { transform: scale(.96); }
.x-post-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 60%);
  opacity: 0;
  pointer-events: none;
}
.x-post-btn.is-pressed::after { animation: x-btn-ripple .5s ease-out; }
@keyframes x-btn-ripple { 0% { opacity: .9; } 100% { opacity: 0; } }

/* posted tweet card */
.x-tweet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 2px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.x-tweet.is-in { opacity: 1; transform: none; }
.x-tweet.is-hidden { display: none; }
.x-tweet-body { flex: 1; min-width: 0; padding-top: 2px; }
.x-tweet-head { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: .95rem; }
.x-name { font-weight: 700; color: var(--x-text); }
.verified-badge { width: 18px; height: 18px; flex-shrink: 0; }
.x-handle, .x-dot, .x-time { color: var(--x-secondary); }
.x-tweet-text {
  margin-top: 4px;
  font-size: .98rem;
  line-height: 1.35;
  color: var(--x-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.x-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 420px;
  margin-top: 12px;
  color: var(--x-secondary);
}
.x-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  transition: color .2s ease;
}
.x-action svg { width: 18px; height: 18px; display: block; transition: fill .2s ease, stroke .2s ease; }
.x-actions-end { display: inline-flex; align-items: center; gap: 14px; }
.x-action--reply:hover { color: var(--x-blue); }
.x-action--views:hover, .x-action--bookmark:hover, .x-action--share:hover { color: var(--x-blue); }
.x-action--repost:hover { color: var(--x-repost); }
.x-action--like:hover { color: var(--x-like); }
.x-action--like.is-active { color: var(--x-like); }
.x-action--like.is-active svg { fill: var(--x-like); stroke: var(--x-like); }
.x-action--repost.is-active { color: var(--x-repost); }
.x-action--repost.is-active svg { stroke: var(--x-repost); }
.x-action--like.is-active svg, .x-action--repost.is-active svg { animation: x-pop .42s var(--ease); }
@keyframes x-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* toast */
.x-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(20, 24, 32, .92);
  color: var(--x-text);
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
  transform: translate(-50%, 10px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.x-toast svg { width: 15px; height: 15px; color: var(--pass); flex-shrink: 0; }
.x-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ghost cursor: absolutely positioned within .browser-view, moved via JS transform */
.ghost-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)) drop-shadow(0 0 10px rgba(98, 230, 255, .35));
  z-index: 5;
}

@media (max-width: 640px) {
  .browser-view { padding: 16px 14px 20px; min-height: 260px; }
  .x-input { font-size: 1rem; min-height: 52px; }
  .x-avatar { width: 38px; height: 38px; min-width: 38px; font-size: .82rem; }
  .x-tweet .x-avatar { width: 34px; height: 34px; min-width: 34px; }
  .x-tweet-text { font-size: .92rem; }
  .browser-url { font-size: .7rem; padding: 5px 12px; }
  .x-compose-actions { gap: 10px; }
  .x-tools { gap: 10px; }
}
@media (max-width: 420px) {
  .browser-bar { padding: 10px 12px; gap: 10px; }
  .browser-dot { width: 8px; height: 8px; }
  .x-tool svg { width: 17px; height: 17px; }
  .x-post-btn { padding: 7px 14px; font-size: .85rem; }
  .x-actions { gap: 4px; }
}

/* stats band: editorial number row, refined for a premium feel - a soft
   gradient hairline top+bottom (fades at the band's own edges rather than
   a hard-cut border), tighter tabular-num figures, and a small accent tick
   standing in for the old underline. count-up still driven by blocks.js. */
.stats-band {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 4px 0;
}
.stats-band::before, .stats-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}
.stats-band::before { top: 0; }
.stats-band::after { bottom: 0; }
.stat-item {
  position: relative;
  text-align: center;
  padding: 38px 16px;
  border-left: 1px solid var(--line);
}
.stat-item:first-child { border-left: none; }
.stat-num {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  padding-bottom: 9px;
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-num-suffix { color: var(--accent); }
/* thin accent tick, draws in from the center once the stat has scrolled into view */
.stat-num::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.stat-item.in-view .stat-num::after { transform: translateX(-50%) scaleX(1); }
.stat-item.in-view .stat-num {
  animation: stat-underglow 1s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes stat-underglow {
  0%   { text-shadow: 0 0 0 rgba(98, 230, 255, 0); }
  40%  { text-shadow: 0 0 18px rgba(98, 230, 255, .5); }
  100% { text-shadow: 0 0 0 rgba(98, 230, 255, 0); }
}
.stat-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .75;
}
@media (max-width: 900px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-left: none; border-top: 1px solid var(--line); }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-top: none; }
  .stat-item:nth-child(even) { border-left: 1px solid var(--line); }
  /* 5 stats in 2 columns leaves the last one alone in its row - let it span
     the full width so the band stays balanced */
  .stat-item:last-child { grid-column: 1 / -1; border-left: none; }
}
@media (max-width: 420px) {
  .stats-band { grid-template-columns: 1fr; }
  .stat-item { border-left: none !important; }
}

/* platforms */
.platforms-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: stretch;
}
.platform-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 26px;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 1px 0 0 rgba(230, 237, 246, .05);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  --card-glow: rgba(147, 161, 181, .5);
}
.platform-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.platform-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang, -40deg), transparent 0deg, var(--card-glow) 60deg, transparent 130deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease), --ang 1.1s var(--ease);
  pointer-events: none;
}
.platform-card:hover {
  border-color: rgba(147, 161, 181, .28);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 0 rgba(230, 237, 246, .08), 0 20px 40px -28px rgba(0, 0, 0, .5);
}
.platform-card:hover::before { opacity: 1; }
.platform-card:hover::after { opacity: 1; --ang: 300deg; }
.platform-card:hover .icon-box {
  border-color: currentColor;
  transform: scale(1.08);
  filter: brightness(1.15);
}
.platform-card--x::before    { background: radial-gradient(240px circle at 50% 0%, rgba(230, 237, 246, .12), transparent 70%); }
.platform-card--any::before  { background: radial-gradient(240px circle at 50% 0%, rgba(98, 230, 255, .16), transparent 70%); }
.platform-card--x    { --card-glow: rgba(230, 237, 246, .45); }
.platform-card--any  { --card-glow: rgba(98, 230, 255, .55); }
.platform-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.platform-card-head .icon-box { margin-bottom: 0; }
.platform-card-head h3 { font-size: 1.1rem; font-weight: 600; }
.platform-card p { color: var(--muted); }
.platform-card--wide {
  max-width: 1120px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 26px;
}
.platform-card--wide .icon-box { margin-bottom: 0; }
.platform-card--wide h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.platform-card-body { flex: 1; min-width: 0; }

/* recon animation: a generic dark browser wireframe that teaches itself a
   new site's interface - scanline sweep, then elements light up in turn */
.recon-stage { display: flex; flex-direction: column; height: 100%; }
.recon-frame {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-top-color: var(--edge);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 0 rgba(230, 237, 246, .06);
}
.recon-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.recon-dots { display: inline-flex; align-items: center; gap: 5px; }
.recon-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(147, 161, 181, .35); }
.recon-url {
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.recon-body { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.recon-header-bar {
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(98, 230, 255, .14), rgba(59, 130, 246, .1));
}
.recon-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.recon-row.is-detected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px rgba(98, 230, 255, .55), 0 0 18px -6px rgba(98, 230, 255, .6);
}
.recon-input-box { flex: 1; height: 14px; border-radius: 4px; background: rgba(230, 237, 246, .08); }
.recon-button-box { width: 58px; height: 18px; border-radius: 10px; background: rgba(98, 230, 255, .18); }
.recon-feed-box { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.recon-feed-box span { height: 7px; border-radius: 4px; background: rgba(230, 237, 246, .08); }
.recon-feed-box span:last-child { width: 65%; }
.recon-tag {
  flex-shrink: 0;
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(98, 230, 255, .3);
  background: rgba(98, 230, 255, .08);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .3s ease, transform .3s ease;
}
.recon-row.is-detected .recon-tag { opacity: 1; transform: none; }
.recon-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  pointer-events: none;
}
.recon-scanline.is-sweeping { animation: recon-sweep 1.3s var(--ease) forwards; }
@keyframes recon-sweep {
  0%   { top: 0%; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.recon-chip {
  align-self: flex-start;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, .3);
  background: rgba(52, 211, 153, .1);
  color: var(--pass);
  font-size: .78rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.recon-chip.is-in { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .platforms-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .platform-card--wide { flex-direction: column; align-items: flex-start; }
}

/* media gallery: an animated "wall of outputs" - a grid of generated-looking
   tiles (cover art / video / mascot) drawn entirely with layered CSS
   gradients, no images. tiles stagger in on scroll, then one cover tile
   at a time "regenerates" on a loop: a shimmer sweep, then a new gradient
   look + label swap in. self-contained, replays on re-entry via blocks.js. */
.media-gallery {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.media-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #05070d;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .3s ease;
}
.media-tile.is-in { opacity: 1; transform: none; }
.media-tile:hover { border-color: rgba(230, 237, 246, .28); }
.media-tile-art {
  position: absolute;
  inset: 0;
  transition: opacity .35s ease, filter .35s ease;
}
.media-tile.is-regenerating .media-tile-art { opacity: .4; filter: blur(1.5px) saturate(1.3); }
/* shimmer sweep plays across the tile at the midpoint of a regenerate cycle */
.media-tile-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, transparent 30%, rgba(230, 237, 246, .4) 50%, transparent 70%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}
.media-tile.is-regenerating .media-tile-shimmer {
  opacity: 1;
  animation: media-tile-shimmer .85s ease;
}
@keyframes media-tile-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.media-tile-tag, .media-tile-duration {
  position: absolute;
  bottom: 8px;
  z-index: 3;
  font-size: .62rem;
  letter-spacing: .03em;
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(4, 6, 12, .58);
  border: 1px solid rgba(230, 237, 246, .16);
}
.media-tile-tag { left: 8px; }
.media-tile-duration { right: 8px; }
.media-tile-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.media-tile-play svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.media-tile-mascot {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: auto;
  width: 46%;
  height: 46%;
}
.media-tile-mascot-head { fill: rgba(230, 237, 246, .14); stroke: var(--ink); stroke-width: 1.4; }
.media-tile-mascot-eye { fill: var(--ink); }
.media-tile-mascot-mouth { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }

/* generated-look palettes: layered gradients standing in for distinct
   AI-rendered styles, kept within the page's own dark editorial tokens */
.tile-look--noir {
  background:
    repeating-linear-gradient(115deg, rgba(4, 6, 12, .35) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, rgba(98, 230, 255, .5), rgba(59, 130, 246, .26) 45%, #05070d 100%);
}
.tile-look--riso {
  background:
    radial-gradient(circle at 30% 28%, rgba(245, 199, 106, .32), transparent 55%),
    linear-gradient(160deg, rgba(244, 63, 94, .38), #0a1220 65%, #05070d 100%);
}
.tile-look--blueprint {
  background:
    linear-gradient(rgba(98, 230, 255, .16) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(98, 230, 255, .16) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(160deg, rgba(59, 130, 246, .32), #05070d 80%);
}
.tile-look--paper {
  background:
    radial-gradient(circle at 70% 22%, rgba(230, 237, 246, .12), transparent 60%),
    linear-gradient(150deg, rgba(230, 237, 246, .14), #0b0f19 70%);
}
.tile-look--water {
  background:
    radial-gradient(38% 42% at 25% 30%, rgba(59, 130, 246, .34), transparent 70%),
    radial-gradient(42% 46% at 75% 72%, rgba(52, 211, 153, .28), transparent 70%),
    #070a12;
}
.tile-look--halftone {
  background:
    radial-gradient(rgba(230, 237, 246, .28) 1.4px, transparent 1.6px) 0 0 / 9px 9px,
    linear-gradient(160deg, rgba(245, 199, 106, .3), #05070d 75%);
}
.tile-look--chrome {
  background:
    linear-gradient(100deg, transparent 20%, rgba(230, 237, 246, .3) 48%, transparent 62%),
    linear-gradient(150deg, rgba(147, 161, 181, .3), #05070d 80%);
}
.tile-look--duotone {
  background: linear-gradient(100deg, rgba(244, 63, 94, .4) 0 50%, rgba(98, 230, 255, .4) 50% 100%), #05070d;
  background-blend-mode: screen;
}
.tile-look--mascot { background: linear-gradient(160deg, rgba(52, 211, 153, .26), #05070d 75%); }
.tile-look--video-a { background: linear-gradient(140deg, rgba(59, 130, 246, .4), #0a1220 60%, #05070d 100%); }
.tile-look--video-b { background: linear-gradient(140deg, rgba(52, 211, 153, .34), rgba(98, 230, 255, .2) 55%, #05070d 100%); }

@media (max-width: 900px) {
  .media-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .media-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .media-tile-tag, .media-tile-duration { font-size: .58rem; padding: 3px 7px; }
  .media-tile-play svg { width: 28px; height: 28px; }
}

/* safety list: individual cards (same glow-border language as arch/feature/
   platform cards, sharper radius) each carrying a small "armed" status dot
   that lights up green with a stagger once the section re-enters view
   (blocks.js drives the replay; class name is .is-armed) */
.safety-list {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.safety-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 1px 0 0 rgba(230, 237, 246, .05);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  --card-glow: rgba(52, 211, 153, .5);
}
.safety-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(240px circle at 50% 0%, rgba(52, 211, 153, .1), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.safety-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang, -40deg), transparent 0deg, var(--card-glow) 60deg, transparent 130deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease), --ang 1.1s var(--ease);
  pointer-events: none;
}
.safety-item:hover {
  border-color: rgba(52, 211, 153, .3);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 0 rgba(230, 237, 246, .08), 0 20px 40px -28px rgba(0, 0, 0, .5);
}
.safety-item:hover::before { opacity: 1; }
.safety-item:hover::after { opacity: 1; --ang: 300deg; }
.safety-item-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.safety-item-lead { display: flex; align-items: center; gap: 14px; }
.safety-index {
  font-size: .75rem;
  color: var(--muted);
  opacity: .5;
}
.safety-item .icon-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  margin-bottom: 0;
}
.safety-item .icon-box svg { width: 19px; height: 19px; }
.safety-item:hover .icon-box {
  border-color: currentColor;
  transform: scale(1.08);
  filter: brightness(1.15);
}
.safety-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; transition: color .25s var(--ease); }
.safety-item:hover h3 { color: var(--accent); }
.safety-item p { color: var(--muted); font-size: .92rem; }
/* status affordance: dim/gray until blocks.js arms it on scroll-in */
.safety-armed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .55;
  transition: color .3s ease, opacity .3s ease;
}
.safety-armed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background .3s ease;
}
.safety-item.is-armed .safety-armed { color: var(--pass); opacity: 1; }
.safety-item.is-armed .safety-armed-dot {
  background: var(--pass);
  animation: safety-armed-pulse 2.4s ease-out infinite;
}
@keyframes safety-armed-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
  70%  { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@media (max-width: 900px) {
  .safety-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .safety-list { grid-template-columns: 1fr; }
}

/* safety heading motif: a small ambient dry-run <-> live toggle loop, purely
   decorative (like the hero's status-dot pulse) - runs continuously, no IO
   needed. reduced-motion freezes it on its resting "dry-run" frame. */
.safety-toggle-demo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 6px 14px 6px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: .72rem;
  letter-spacing: .03em;
}
.safety-toggle-track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 10px;
  background: rgba(230, 237, 246, .08);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.safety-toggle-knob {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translateX(0);
  background: var(--muted);
  animation: safety-knob-slide 5s var(--ease) infinite;
}
@keyframes safety-knob-slide {
  0%, 40%  { transform: translateX(0); background: var(--muted); box-shadow: none; }
  60%, 100% { transform: translateX(16px); background: var(--pass); box-shadow: 0 0 8px rgba(52, 211, 153, .6); }
}
.safety-toggle-label { color: var(--muted); }
.safety-toggle-label--dry { opacity: 1; animation: safety-label-dry 5s var(--ease) infinite; }
.safety-toggle-label--live { opacity: .35; animation: safety-label-live 5s var(--ease) infinite; }
@keyframes safety-label-dry {
  0%, 40%  { opacity: 1; }
  50%, 100% { opacity: .35; }
}
@keyframes safety-label-live {
  0%, 40%  { opacity: .35; color: var(--muted); }
  50%, 100% { opacity: 1; color: var(--pass); }
}

/* faq accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item { position: relative; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); }
/* accent left-edge, only present while the item is open */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(.4);
  transform-origin: center;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.faq-item[open]::before { opacity: 1; transform: scaleY(1); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px 22px 28px;
  margin-left: -10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-q { display: flex; align-items: baseline; gap: 16px; }
.faq-index { font-weight: 400; color: var(--muted); opacity: .5; flex-shrink: 0; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 8px;
}
.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
/* height/opacity reveal for the answer. max-height transition (rather than
   grid-template-rows 0fr->1fr) since fr tracks don't collapse reliably on
   an auto-sized container; the cap is comfortably above the longest answer */
/* smooth open/close via the native details-content pseudo, animating to auto
   height (interpolate-size enables the keyword transition). browsers without
   ::details-content support just show/hide the answer instantly. */
.faq-item .faq-body { display: block; }
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size .4s var(--ease), opacity .32s ease, content-visibility .4s allow-discrete;
  transition-behavior: allow-discrete;
}
.faq-item[open]::details-content {
  block-size: auto;
  opacity: 1;
}
/* answer aligns under the question TEXT (past the mono index + gap), not the index */
.faq-item p { color: var(--muted); padding: 0 4px 24px 53px; max-width: 620px; }

/* cta: pure editorial closing statement - no button, no link, no contact.
   just the headline, the aurora, and a live mono cursor to close the loop. */
#cta { text-align: center; }
.cta-panel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 84px) clamp(24px, 6vw, 72px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-top-color: var(--edge);
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(98, 230, 255, .12), transparent 55%),
    radial-gradient(100% 90% at 100% 100%, rgba(59, 130, 246, .12), transparent 55%),
    #070a12;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 237, 246, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 237, 246, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 38%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 60% at 50% 38%, #000 0%, transparent 75%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
/* slow, low-contrast aurora drift behind the panel copy; sits above the
   grid pseudo and below the actual text in paint order (DOM: first child) */
.cta-panel > .cta-aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(38% 46% at 20% 22%, rgba(98, 230, 255, .1), transparent 68%),
    radial-gradient(42% 50% at 82% 78%, rgba(59, 130, 246, .1), transparent 70%);
  filter: blur(6px);
  animation: aurora-drift 20s var(--ease) infinite;
  pointer-events: none;
}
@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -3%) scale(1.06); }
}
#cta h2 { max-width: 720px; margin: 0 auto 22px; }
.mono-line {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--muted);
}
.cta-actions { margin-top: 30px; }

/* "Try it" connect modal ------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 4, 9, .72);
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .32s var(--ease), visibility 0s linear .32s;
}
.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .32s var(--ease);
}
.modal {
  position: relative;
  width: 100%;
  max-width: 452px;
  padding: 44px 38px 34px;
  text-align: left;
  background: linear-gradient(180deg, #0c111c, #05070d);
  border: 1px solid var(--line);
  border-top-color: var(--edge);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 0 rgba(230, 237, 246, .08),
    0 40px 90px -30px rgba(0, 0, 0, .8),
    0 0 70px -34px rgba(98, 230, 255, .4);
  transform: translateY(14px) scale(.985);
  opacity: 0;
  transition: transform .38s var(--ease), opacity .38s var(--ease);
}
.modal-backdrop.is-open .modal { transform: none; opacity: 1; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.modal-close:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.modal-close svg { width: 18px; height: 18px; }
.modal-eyebrow {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: .006em;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  line-height: 1.05;
  color: var(--ink);
}
.modal-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.modal-tg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 13px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #04060c;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .01em;
  box-shadow: 0 16px 36px -16px rgba(98, 230, 255, .55);
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.modal-tg:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(98, 230, 255, .65); }
.modal-tg:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.modal-tg svg { width: 19px; height: 19px; flex-shrink: 0; }
.modal-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: .8;
}
html.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .modal { transform: none; }
  .modal-backdrop, .modal { transition-duration: .01ms; }
}

/* footer */
footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px clamp(20px, 6vw, 56px) 60px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand .logo { margin-bottom: 8px; }
footer p { color: var(--muted); font-size: .9rem; margin: 0; }
.footer-note { font-size: .8rem; opacity: .8; max-width: 360px; text-align: right; }

/* accent-colored focus-visible rings for keyboard nav, scoped to the
   static #after content (hero/chapters keep their own finished treatment).
   .faq-item summary has its own tighter-offset rule defined with the accordion. */
#after a:focus-visible,
#after button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ?p= debug jumps: no reveal animation so any frame is representative */
.debug-snap .chapter { transition: none !important; }
.debug-after #journey { display: none; }

/* no-webgl fallback: chapters drop into normal document flow */
.no-webgl #journey { height: auto; padding: 10vh 0; }
.no-webgl .chapter {
  position: static;
  display: block;
  width: min(90vw, 640px);
  opacity: 1;
  visibility: visible;
  transform: none;
  margin: 18vh auto;
  padding: 0;
}
.no-webgl .chapter-card { max-width: none; }
.no-webgl #scene { display: none; }
.no-webgl .scroll-hint { display: none; }

/* down to 360px: chapters become full-width, bottom-anchored cards */
@media (max-width: 640px) {
  .chapter {
    justify-content: center !important;
    align-items: flex-end;
    padding: 0 16px 6vh;
  }
  .chapter-card, #ch-hero .chapter-card, #ch-loop .chapter-card {
    max-width: 100%;
    padding: 22px 20px;
  }
  /* the desktop-only collect nudge would push it off the bottom-anchored layout */
  #ch-collect .chapter-card { transform: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; }
  .section-head { margin-bottom: 24px; }
}

@media (max-width: 420px) {
  .topbar { padding: 16px 16px; }
  .btn-small { padding: 8px 14px; font-size: .78rem; }
}

/* short viewports (small phones, landscape, shrinking mobile chrome): the hero
   card can grow taller than the screen and clip its top under the fixed topbar.
   Drop the decorative rows and tighten so it always fits above the fold. */
@media (max-height: 730px) {
  #ch-hero .hero-log { display: none; }
  #ch-hero .hero-titlebar { margin-bottom: 12px; padding-bottom: 10px; }
  #ch-hero h1 { font-size: clamp(2rem, 5.2vw, 3rem); }
  #ch-hero .lead { font-size: 1rem; }
  #ch-hero .badges { margin-top: 16px; }
  #ch-hero .hero-actions { margin-top: 20px; }
}
@media (max-height: 620px) {
  #ch-hero .badges { display: none; }
}

/* respect reduced motion for our own transitions; scene.js handles the 3D side */
@media (prefers-reduced-motion: reduce) {
  .chapter, .btn-primary, .btn-ghost, .arch-card, .feature-card, .scroll-hint {
    transition-duration: .01ms !important;
  }
}

/* architecture flow connectors: desktop only */
@media (min-width: 860px) {
  .arch-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }
  .arch-connector { display: flex; width: 56px; }
}
/* below the 3-up layout the cards stack; cap their width so a lone column
   doesn't stretch sparse across a tablet, and center it */
@media (max-width: 859px) {
  .arch-grid { max-width: 560px; }
}

/* #after responsive: bento collapse, panel/footer stacking (own breakpoints,
   independent of the journey/chapter rules above) */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--span3 { grid-column: span 2; }
}

@media (max-width: 640px) {
  /* phone perf: blur over a live WebGL canvas is the most expensive paint on
     mobile GPUs - the cards are .88+ opaque, so dropping it is invisible */
  .chapter-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .media-tile.is-regenerating .media-tile-art { filter: saturate(1.3); }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--span2, .feature-card--span3 { grid-column: span 1; }
  .feature-card--wide { flex-direction: column; align-items: flex-start; }
  .arch-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 44px 22px; border-radius: var(--radius-md); }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-note { text-align: left; max-width: none; }

  /* the hero card carries more content now (window chrome, activity log,
     icon badges); tighten its internal rhythm so a tall card clears the topbar */
  #ch-hero { padding-bottom: 20px; }
  .hero-titlebar { padding-bottom: 10px; margin-bottom: 14px; }
  .hero-prompt { margin-bottom: 14px; }
  .hero-log { margin: 14px auto 2px; }
  .chapter-card .lead { margin-top: 8px; }
  .badges { margin-top: 14px; gap: 8px; }
  .badge-pill { padding: 6px 12px; }
  .hero-actions { margin-top: 18px; gap: 10px; }
}

@media (max-width: 380px) {
  .hero-titlebar { gap: 8px; }
  .hero-session { font-size: .64rem; letter-spacing: .08em; }
  .badge-pill { font-size: .7rem; padding: 5px 10px; }
  .arch-card, .feature-card { padding: 24px 20px; }
  .cta-panel { padding: 36px 18px; }
}

/* reduced motion: our own decorative loops become static/solid */
@media (prefers-reduced-motion: reduce) {
  .status-dot, .term-cursor, .cursor-char {
    animation: none !important;
  }
  .term-cursor, .cursor-char { opacity: 1; }
  .btn-primary::before { transition-duration: .01ms !important; }
  .hero-log { height: auto; display: flex; flex-direction: column; gap: 6px; }
  .hero-log-line {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .faq-chevron { transition-duration: .01ms !important; }
}

/* reduced motion: every #after design-elevation effect added above becomes
   instant/static (in addition to .reveal's own reduced-motion path) */
@media (prefers-reduced-motion: reduce) {
  .arch-card, .feature-card, .platform-card,
  .arch-card::before, .feature-card::before, .platform-card::before,
  .arch-card::after, .feature-card::after, .platform-card::after,
  .icon-box, .safety-item, .safety-item::before, .safety-item::after, .safety-item h3,
  .safety-armed, .safety-armed-dot,
  .safety-toggle-knob, .safety-toggle-label--dry, .safety-toggle-label--live,
  .media-tile, .media-tile-art, .media-tile-shimmer,
  .faq-item, .faq-item::before, .faq-item summary, .faq-item .faq-body, .faq-item::details-content,
  .stat-num::after,
  .recon-row, .recon-tag, .recon-chip {
    transition-duration: .01ms !important;
  }
  .arch-card:hover::after, .feature-card:hover::after, .platform-card:hover::after,
  .stat-item.in-view .stat-num,
  .cta-aurora,
  .recon-scanline,
  .safety-item.is-armed .safety-armed-dot,
  .safety-toggle-knob, .safety-toggle-label--dry, .safety-toggle-label--live,
  .media-tile.is-regenerating .media-tile-shimmer {
    animation: none !important;
  }
  .stat-item.in-view .stat-num { text-shadow: none !important; }
  .cta-aurora { transform: none !important; }
  .media-tile { opacity: 1 !important; transform: none !important; }
  .media-tile-shimmer { opacity: 0 !important; }
}

/* reduced motion: the live-demo section renders its final state directly
   (see js/demo.js) - kill any leftover transitions/animations so that
   direct class assignment never produces a stray one-off fade or pop */
@media (prefers-reduced-motion: reduce) {
  .x-compose, .x-tweet, .x-post-btn, .x-post-btn::after,
  .x-caret, .x-action svg, .x-toast, .ghost-cursor {
    transition-duration: .01ms !important;
    animation: none !important;
  }
}
