/* ── Design tokens ── */
:root {
  --bg: #060810;
  --bg-panel: rgba(14, 18, 28, 0.88);
  --bg-muted: rgba(10, 14, 22, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --rust: #c45c2a;
  --rust-light: #e87a3f;
  --mars: #b84a28;
  --nvidia: #76b900;
  --quantum: #9b7ed9;
  --quantum-dim: rgba(100, 80, 160, 0.15);
  --text: #f0ebe3;
  --muted: #9aa3b0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --space: clamp(1rem, 4vw, 1.5rem);
  --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--rust-light); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--space), env(safe-area-inset-left));
  padding-right: max(var(--space), env(safe-area-inset-right));
}

.container-narrow { max-width: 720px; }

/* ── Background ── */
.cosmos-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 92% 6%, rgba(255, 175, 60, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 8% 92%, rgba(50, 35, 90, 0.14) 0%, transparent 50%),
    linear-gradient(165deg, #0a0e18 0%, #05070e 50%, #030508 100%);
}

.cosmos-sun {
  position: absolute;
  top: 2%;
  right: 3%;
  width: min(300px, 44vw);
  height: min(300px, 44vw);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 48% 48%,
    rgba(255, 252, 235, 0.98) 0%,
    rgba(255, 215, 110, 0.75) 14%,
    rgba(255, 170, 55, 0.35) 32%,
    rgba(255, 120, 30, 0.12) 52%,
    transparent 72%);
  filter: blur(1.5px);
}

.cosmos-sun::before {
  content: "";
  position: absolute;
  inset: -50%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 195, 70, 0.42) 0%,
    rgba(255, 140, 40, 0.14) 38%,
    transparent 68%);
  filter: blur(18px);
}

.cosmos-sun::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  filter: blur(3px);
}

.cosmos-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(4, 6, 12, 0.12) 0%,
    rgba(6, 8, 16, 0.5) 45%,
    rgba(3, 5, 8, 0.82) 100%);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(6, 8, 16, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand span { color: var(--rust-light); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-social { display: none; }

/* ── Typography & sections ── */
.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin: 0 0 0.35rem;
}

.label-warm { color: #f0a878; }
.label-quantum { color: var(--quantum); }

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-feature {
  background: linear-gradient(180deg, rgba(20, 14, 12, 0.55) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.section-muted {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-quantum {
  background: linear-gradient(180deg, transparent 0%, var(--quantum-dim) 40%, rgba(6, 8, 16, 0.95) 100%);
  border-top: 1px solid rgba(155, 126, 217, 0.2);
}

.section-about {
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 16, 0.85);
}

.section-mission {
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 16, 0.6);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.about-short {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.about-short strong { color: var(--text); }

.x-highlight {
  padding: 1.1rem 1.2rem;
  border-color: rgba(196, 92, 42, 0.2);
  transition: opacity 0.4s ease;
}

.x-highlight-label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-light);
  text-align: center;
}

.x-rotate-hint {
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.x-highlight-quote {
  margin: 0 0 0.65rem;
  padding: 0;
  border: none;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}

.x-highlight-meta {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.x-highlight-link {
  font-size: 0.85rem;
}

.section-head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-lead {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36rem;
}

.section-head-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.section-head-split > div {
  width: 100%;
}

/* ── Hero ── */
.hero {
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(1.5rem, 4vw, 2.25rem);
}

.hero--full {
  padding-top: 0;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hero-inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.hero-banner {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero--full .hero-banner {
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.hero-banner img,
.hero-banner object {
  width: 100%;
  height: clamp(160px, 32vw, 280px);
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-banner--probes img {
  object-fit: contain;
  background: #060810;
}

.hero-banner--unified {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: clamp(220px, 26vw, 400px);
}

.hero-banner--unified img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.25rem, 5vw, 3.5rem);
  text-align: right;
  max-width: 52%;
  margin-left: auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(6, 8, 16, 0.28) 18%,
    rgba(6, 8, 16, 0.72) 100%
  );
  pointer-events: none;
}

.hero-banner-overlay .hero-cta {
  pointer-events: auto;
}

.label-hero {
  margin: 0 0 0.45rem;
  color: var(--rust-light);
}

.hero-banner-overlay h1,
.hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}

.hero-visitor-lead {
  margin: 0 auto 0.45rem;
  max-width: 34rem;
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  color: rgba(240, 235, 227, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.hero-visitor-lead .text-link {
  color: var(--rust-light);
}

.hero-banner-overlay .hero-text,
.hero-text {
  margin: 0 auto 1rem;
  color: rgba(240, 235, 227, 0.78);
  font-size: clamp(0.82rem, 1.9vw, 0.95rem);
  max-width: 32rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.hero--full .hero-banner-overlay .hero-cta {
  justify-content: flex-end;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rust-light), var(--mars));
  color: #1a0800;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--rust-light); }

.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.82rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.text-link {
  color: var(--rust-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.text-link:hover { text-decoration: underline; }

/* ── Panels ── */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

/* ── Aria ── */
#aria .container {
  overflow: visible;
}

.aria-banner-wrap {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 133%;
  max-width: min(1440px, calc(100vw - 2rem));
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: clamp(440px, 54vw, 580px);
}

.aria-banner-wrap > .aria-pong {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  min-height: 0;
  max-height: none;
  margin: 0;
}

.aria-banner-wrap .aria-pong-stage {
  position: absolute;
  inset: 0;
  height: 100%;
}

.aria-hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1.8vw, 1rem);
  min-height: clamp(440px, 54vw, 580px);
  padding: clamp(0.75rem, 2vw, 1.35rem);
  pointer-events: none;
}

.aria-hero-overlay .aria-logo-overlay,
.aria-hero-overlay .aria-layout,
.aria-hero-overlay .panel {
  pointer-events: auto;
}

.aria-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 42% 75% at 50% 50%,
      rgba(6, 8, 16, 0.05) 0%,
      rgba(6, 8, 16, 0.45) 55%,
      rgba(6, 8, 16, 0.82) 100%
    ),
    linear-gradient(
      90deg,
      rgba(6, 8, 16, 0.75) 0%,
      rgba(6, 8, 16, 0.2) 32%,
      rgba(6, 8, 16, 0.2) 68%,
      rgba(6, 8, 16, 0.75) 100%
    );
}

.aria-pong .aria-pong-stage {
  overflow: hidden;
}

.aria-pong .aria-pong-stage img {
  position: absolute;
  top: 0;
  left: 0;
  width: 165%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: transform;
  transform-origin: 38% 52%;
}

.aria-pong .aria-pong-stage img.active {
  opacity: 1;
  animation: aria-pong-zoom-drift 11s ease-in-out infinite alternate;
}

.aria-pong .aria-pong-stage img.pong-exit {
  opacity: 0;
  animation: none;
}

@keyframes aria-pong-zoom-drift {
  0% {
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(-32%) scale(2.35);
  }
}

.aria-logo-overlay {
  position: relative;
  width: min(94%, 560px);
  padding: clamp(0.65rem, 2vw, 1rem) clamp(0.75rem, 2.5vw, 1.15rem) clamp(0.55rem, 1.8vw, 0.85rem);
  text-align: center;
  background: rgba(8, 10, 20, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(126, 184, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.aria-hero-overlay .aria-layout {
  width: min(96%, 920px);
  margin: 0;
}

.aria-hero-overlay .panel {
  background: rgba(8, 10, 20, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.aria-logo-overlay .aria-logo-tag {
  margin: 0.45rem 0 0;
}

.aria-logo-overlay .aria-logo-status {
  margin: 0.25rem 0 0;
}

.aria-logo {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  aspect-ratio: 400 / 140;
  min-height: clamp(100px, 22vw, 156px);
  border-radius: 8px;
}

.aria-logo--wide {
  max-width: 100%;
}

.aria-logo .aria-core-group,
.aria-logo .aria-bud,
.aria-logo .aria-core-memory {
  transform-box: fill-box;
  transform-origin: center;
}

/* Neural tree — branches grow outward and pulse */
.aria-logo .aria-branch {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aria-logo .aria-branch--trunk {
  stroke-width: 1.45;
  stroke-dasharray: 120 240;
  stroke-dashoffset: 120;
  opacity: 0.5;
  animation: aria-trunk-grow 5.2s ease-out infinite;
}

.aria-logo .aria-trunks .aria-branch--trunk:nth-child(1) { animation-delay: 0s; }
.aria-logo .aria-trunks .aria-branch--trunk:nth-child(2) { animation-delay: 0.38s; }
.aria-logo .aria-trunks .aria-branch--trunk:nth-child(3) { animation-delay: 0.76s; }
.aria-logo .aria-trunks .aria-branch--trunk:nth-child(4) { animation-delay: 1.14s; }
.aria-logo .aria-trunks .aria-branch--trunk:nth-child(5) { animation-delay: 1.52s; }
.aria-logo .aria-trunks .aria-branch--trunk:nth-child(6) { animation-delay: 1.9s; }
.aria-logo .aria-trunks .aria-branch--trunk:nth-child(7) { animation-delay: 2.28s; }
.aria-logo .aria-trunks .aria-branch--trunk:nth-child(8) { animation-delay: 2.66s; }
.aria-logo .aria-trunks .aria-branch--trunk:nth-child(9) { animation-delay: 3.04s; }

.aria-logo .aria-branch--sub {
  stroke-width: 0.9;
  stroke-dasharray: 72 160;
  stroke-dashoffset: 72;
  opacity: 0.42;
  animation: aria-sub-grow 4.2s ease-out infinite;
}

.aria-logo .aria-forks .aria-branch--sub:nth-child(odd) { animation-delay: 0.5s; }
.aria-logo .aria-forks .aria-branch--sub:nth-child(even) { animation-delay: 1.1s; }
.aria-logo .aria-forks .aria-branch--sub:nth-child(3n) { animation-delay: 1.7s; }

.aria-logo .aria-branch--twig {
  stroke-width: 0.5;
  stroke-dasharray: 28 80;
  stroke-dashoffset: 28;
  opacity: 0.38;
  animation: aria-twig-reach 3.6s ease-out infinite;
}

.aria-logo .aria-twigs .aria-branch--twig:nth-child(3n) { animation-delay: 0.8s; }
.aria-logo .aria-twigs .aria-branch--twig:nth-child(3n+1) { animation-delay: 1.35s; }
.aria-logo .aria-twigs .aria-branch--twig:nth-child(3n+2) { animation-delay: 1.9s; }

.aria-logo .aria-branch--root {
  stroke-width: 1.15;
  stroke-dasharray: 56 120;
  stroke-dashoffset: 56;
  opacity: 0.44;
  animation: aria-root-in 3.8s ease-in-out infinite;
}

.aria-logo .aria-roots .aria-branch--root:nth-child(1) { animation-delay: 0s; }
.aria-logo .aria-roots .aria-branch--root:nth-child(2) { animation-delay: 0.4s; }
.aria-logo .aria-roots .aria-branch--root:nth-child(3) { animation-delay: 0.8s; }
.aria-logo .aria-roots .aria-branch--root:nth-child(4) { animation-delay: 1.2s; }
.aria-logo .aria-roots .aria-branch--root:nth-child(5) { animation-delay: 1.6s; }
.aria-logo .aria-roots .aria-branch--root:nth-child(6) { animation-delay: 2s; }

.aria-logo .aria-bud {
  animation: aria-bud-pulse 2.6s ease-in-out infinite;
}

.aria-logo .aria-buds .aria-bud:nth-child(odd) { animation-delay: 0.15s; }
.aria-logo .aria-buds .aria-bud:nth-child(3n) { animation-delay: 0.65s; }
.aria-logo .aria-buds .aria-bud:nth-child(5n) { animation-delay: 1.15s; }

.aria-logo .aria-core-group {
  animation: aria-core-breathe 4s ease-in-out infinite;
}

.aria-logo .aria-core-ring {
  animation: aria-core-ring-pulse 4s ease-in-out infinite;
}

.aria-logo .aria-core-memory {
  animation: aria-memory-ring 10s linear infinite;
}

/* Interaction — tree branches respond to chat */
.aria-logo--listening .aria-branch--root {
  animation-duration: 2.2s;
  opacity: 0.85;
}

.aria-logo--listening .aria-bud {
  animation-duration: 1.6s;
}

.aria-logo--listening .aria-core-ring {
  animation-duration: 2.4s;
}

.aria-logo--learning .aria-branch--trunk,
.aria-logo--learning .aria-branch--sub,
.aria-logo--learning .aria-branch--twig {
  animation-duration: 2.4s;
  stroke: #ffb450;
  opacity: 0.9;
}

.aria-logo--learning .aria-branch--root {
  animation-duration: 2s;
  stroke: #c9a0ff;
}

.aria-logo--learning .aria-core-memory {
  opacity: 0.75;
  stroke: #9b7ed9;
}

.aria-logo--learning .aria-bud {
  animation-duration: 1.1s;
  fill: #ffb450;
}

.aria-logo--responding .aria-branch--trunk,
.aria-logo--responding .aria-branch--sub,
.aria-logo--responding .aria-branch--twig {
  animation-duration: 1.9s;
  stroke: #78ffb4;
  opacity: 0.95;
}

.aria-logo--responding .aria-bud {
  animation-duration: 1.2s;
  fill: #78ffb4;
}

.aria-logo--responding .aria-core-group {
  animation: aria-core-speak 1.5s ease-in-out infinite;
}

@keyframes aria-trunk-grow {
  0%, 10% { stroke-dashoffset: 120; opacity: 0.35; }
  38% { stroke-dashoffset: 0; opacity: 0.92; }
  68% { stroke-dashoffset: 0; opacity: 0.72; }
  100% { stroke-dashoffset: -48; opacity: 0.42; }
}

@keyframes aria-sub-grow {
  0%, 14% { stroke-dashoffset: 72; opacity: 0.28; }
  42% { stroke-dashoffset: 0; opacity: 0.82; }
  72% { stroke-dashoffset: 0; opacity: 0.58; }
  100% { stroke-dashoffset: -36; opacity: 0.32; }
}

@keyframes aria-twig-reach {
  0%, 18% { stroke-dashoffset: 36; opacity: 0.22; }
  46% { stroke-dashoffset: 0; opacity: 0.72; }
  76% { stroke-dashoffset: 0; opacity: 0.48; }
  100% { stroke-dashoffset: -24; opacity: 0.28; }
}

@keyframes aria-root-in {
  0%, 16% { stroke-dashoffset: 56; opacity: 0.3; }
  48% { stroke-dashoffset: 0; opacity: 0.88; }
  82%, 100% { stroke-dashoffset: -20; opacity: 0.38; }
}

@keyframes aria-bud-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.75); }
  50% { opacity: 0.9; transform: scale(1.25); }
}

@keyframes aria-core-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes aria-core-ring-pulse {
  0%, 100% { opacity: 0.45; stroke-width: 1.5; }
  50% { opacity: 0.9; stroke-width: 2; }
}

@keyframes aria-memory-ring {
  to { transform: rotate(360deg); }
}

@keyframes aria-core-speak {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.06); }
  70% { transform: scale(1.02); }
}

.aria-logo-tag,
.aria-logo-status {
  text-align: center;
}

.aria-logo-tag {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.aria-logo-status {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--rust-light);
  opacity: 0.85;
  letter-spacing: 0.04em;
  transition: opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .aria-pong .aria-pong-stage img.active {
    animation: aria-pong-drift-reduced 11s ease-in-out infinite alternate;
  }

  @keyframes aria-pong-drift-reduced {
    0% { transform: translateX(0); }
    100% { transform: translateX(-32%); }
  }

  .stack-pong .stack-pong-stage img.active {
    animation: none !important;
    width: 100%;
    transform: none;
  }

  .aria-logo .aria-branch,
  .aria-logo .aria-bud,
  .aria-logo .aria-core-group,
  .aria-logo .aria-core-ring,
  .aria-logo .aria-core-memory,
  .model-banner--aria .aria-branch,
  .model-banner--aria .aria-bud,
  .model-banner--aria .aria-core-group,
  .model-banner--code .code-branch,
  .model-banner--code .code-node,
  .model-banner--code .code-glyph,
  .model-banner--code .code-core-group,
  .science-card-articles--fade,
  .science-banner-img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}

.aria-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.panel-aria-info {
  padding: 1.25rem;
}

.check-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.check-list li { margin: 0.4rem 0; }

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.fine-print a { color: var(--rust-light); }

.panel-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.chat-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust-light);
}

.chat-messages {
  flex: 1;
  min-height: 100px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.chat-msg {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.chat-msg.bot {
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--rust-light);
}

.chat-msg.user {
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
}

.chat-form {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 16px;
}

.chat-mic, .chat-send {
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
}

.chat-mic {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chat-mic.listening { background: var(--rust); }

.chat-send {
  background: var(--rust-light);
  color: #1a0800;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0 0.85rem;
}

.chat-opt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Stack ── */
#stack .container {
  overflow: visible;
}

.stack-banner-wrap {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 133%;
  max-width: min(1440px, calc(100vw - 2rem));
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stack-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 8, 16, 0.82) 0%,
    rgba(6, 8, 16, 0.45) 28%,
    rgba(6, 8, 16, 0.2) 50%,
    rgba(6, 8, 16, 0.45) 72%,
    rgba(6, 8, 16, 0.82) 100%
  );
}

.stack-hero-head {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(92%, 440px);
  padding: clamp(0.85rem, 2.5vw, 1.25rem) clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  background: rgba(8, 10, 20, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
}

.stack-hero-head h2 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.stack-hero-head .label,
.stack-hero-head .section-lead {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.stack-hero-head .section-lead {
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  line-height: 1.45;
}

.strip-slideshow {
  width: 100%;
  aspect-ratio: 21 / 5;
  min-height: clamp(120px, 16vw, 180px);
  max-height: none;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  background: #04060c;
}

.strip-slideshow .slideshow-stage img {
  object-position: center center;
}

/* Pong — image drifts across full strip width and bounces back */
.stack-pong .stack-pong-stage {
  overflow: hidden;
}

.stack-pong .stack-pong-stage img {
  position: absolute;
  top: 0;
  left: 0;
  width: 155%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.stack-pong .stack-pong-stage img.active {
  opacity: 1;
  animation: stack-pong-drift 9s ease-in-out infinite alternate;
}

.stack-pong .stack-pong-stage img.pong-exit {
  opacity: 0;
  animation: none;
}

@keyframes stack-pong-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-35.5%); }
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stack-card {
  padding: 1.1rem 1.2rem;
  text-align: center;
}

.stack-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--rust-light);
}

.stack-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.stack-card-accent {
  border-color: rgba(118, 185, 0, 0.35);
  background: linear-gradient(145deg, var(--bg-panel), rgba(118, 185, 0, 0.06));
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.infra-tile, .model-tile {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.infra-tile {
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
}

.infra-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
}

.edge-ui::after {
  background: linear-gradient(160deg, rgba(6, 14, 28, 0.92), rgba(10, 24, 42, 0.75));
}

.dgx-ui::after {
  background: linear-gradient(160deg, rgba(4, 12, 2, 0.92), rgba(14, 36, 6, 0.72));
}

.edge-ui {
  background-image: url("../images/art/space/space-42.jpg");
}

.dgx-ui {
  background-image: url("../images/art/ai/ai-14.png");
}

.infra-tile > * { position: relative; z-index: 1; }

.infra-tile h3, .model-tile h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.infra-tile p, .model-tile p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.infra-tile h3, .infra-tile p { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }

.model-tile {
  background: var(--bg-panel);
  text-align: center;
}

.model-tile .text-link { display: inline-block; margin-top: 0.5rem; }

/* Model banners — Aria tree & coder AST backgrounds */
.model-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: clamp(132px, 20vw, 172px);
  background: #04060c;
}

.model-banner-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.model-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 16, 0.35) 0%,
    rgba(6, 8, 16, 0.55) 45%,
    rgba(6, 8, 16, 0.75) 100%
  );
}

.model-banner--code::before {
  background: linear-gradient(
    180deg,
    rgba(4, 12, 8, 0.3) 0%,
    rgba(4, 12, 8, 0.55) 45%,
    rgba(4, 10, 8, 0.78) 100%
  );
}

.model-banner-head {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  padding: clamp(0.65rem, 2vw, 0.9rem) clamp(0.75rem, 2.5vw, 1rem);
  text-align: center;
  background: linear-gradient(to top, rgba(8, 10, 20, 0.94) 0%, rgba(8, 10, 20, 0.72) 70%, transparent 100%);
}

.model-banner-head h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--rust-light);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.model-banner-head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.model-banner-head .text-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
}

.model-banner--aria .aria-core-group,
.model-banner--aria .aria-bud {
  transform-box: fill-box;
  transform-origin: center;
}

.model-banner--aria .aria-branch--trunk,
.model-banner--aria .aria-branch--sub,
.model-banner--aria .aria-branch--twig,
.model-banner--aria .aria-branch--root {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.model-banner--aria .aria-branch--trunk {
  stroke-width: 1.45;
  stroke-dasharray: 120 240;
  stroke-dashoffset: 120;
  opacity: 0.42;
  animation: aria-trunk-grow 5.2s ease-out infinite;
}

.model-banner--aria .aria-trunks .aria-branch--trunk:nth-child(1) { animation-delay: 0s; }
.model-banner--aria .aria-trunks .aria-branch--trunk:nth-child(2) { animation-delay: 0.38s; }
.model-banner--aria .aria-trunks .aria-branch--trunk:nth-child(3) { animation-delay: 0.76s; }
.model-banner--aria .aria-trunks .aria-branch--trunk:nth-child(4) { animation-delay: 1.14s; }
.model-banner--aria .aria-trunks .aria-branch--trunk:nth-child(5) { animation-delay: 1.52s; }
.model-banner--aria .aria-trunks .aria-branch--trunk:nth-child(6) { animation-delay: 1.9s; }
.model-banner--aria .aria-trunks .aria-branch--trunk:nth-child(7) { animation-delay: 2.28s; }
.model-banner--aria .aria-trunks .aria-branch--trunk:nth-child(8) { animation-delay: 2.66s; }
.model-banner--aria .aria-trunks .aria-branch--trunk:nth-child(9) { animation-delay: 3.04s; }

.model-banner--aria .aria-branch--sub {
  stroke-width: 0.9;
  stroke-dasharray: 72 160;
  stroke-dashoffset: 72;
  opacity: 0.36;
  animation: aria-sub-grow 4.2s ease-out infinite;
}

.model-banner--aria .aria-forks .aria-branch--sub:nth-child(odd) { animation-delay: 0.5s; }
.model-banner--aria .aria-forks .aria-branch--sub:nth-child(even) { animation-delay: 1.1s; }

.model-banner--aria .aria-branch--twig {
  stroke-width: 0.5;
  stroke-dasharray: 28 80;
  stroke-dashoffset: 28;
  opacity: 0.32;
  animation: aria-twig-reach 3.6s ease-out infinite;
}

.model-banner--aria .aria-twigs .aria-branch--twig:nth-child(3n) { animation-delay: 0.8s; }
.model-banner--aria .aria-twigs .aria-branch--twig:nth-child(3n+1) { animation-delay: 1.35s; }
.model-banner--aria .aria-twigs .aria-branch--twig:nth-child(3n+2) { animation-delay: 1.9s; }

.model-banner--aria .aria-branch--root {
  stroke-width: 1.15;
  stroke-dasharray: 56 120;
  stroke-dashoffset: 56;
  opacity: 0.38;
  animation: aria-root-in 3.8s ease-in-out infinite;
}

.model-banner--aria .aria-roots .aria-branch--root:nth-child(odd) { animation-delay: 0.3s; }
.model-banner--aria .aria-roots .aria-branch--root:nth-child(even) { animation-delay: 0.9s; }

.model-banner--aria .aria-bud {
  animation: aria-bud-pulse 2.6s ease-in-out infinite;
}

.model-banner--aria .aria-core-group {
  animation: aria-core-breathe 4s ease-in-out infinite;
}

/* Coder — branching AST / call-graph vibe */
.model-banner--code .code-node,
.model-banner--code .code-glyph {
  transform-box: fill-box;
  transform-origin: center;
}

.model-banner--code .code-branch {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.model-banner--code .code-branch--trunk {
  stroke-width: 1.35;
  stroke-dasharray: 110 220;
  stroke-dashoffset: 110;
  opacity: 0.44;
  animation: code-trunk-grow 4.6s ease-out infinite;
}

.model-banner--code .code-trunks .code-branch--trunk:nth-child(1) { animation-delay: 0s; }
.model-banner--code .code-trunks .code-branch--trunk:nth-child(2) { animation-delay: 0.35s; }
.model-banner--code .code-trunks .code-branch--trunk:nth-child(3) { animation-delay: 0.7s; }
.model-banner--code .code-trunks .code-branch--trunk:nth-child(4) { animation-delay: 1.05s; }
.model-banner--code .code-trunks .code-branch--trunk:nth-child(5) { animation-delay: 1.4s; }
.model-banner--code .code-trunks .code-branch--trunk:nth-child(6) { animation-delay: 1.75s; }
.model-banner--code .code-trunks .code-branch--trunk:nth-child(7) { animation-delay: 2.1s; }
.model-banner--code .code-trunks .code-branch--trunk:nth-child(8) { animation-delay: 2.45s; }

.model-banner--code .code-branch--sub {
  stroke-width: 0.85;
  stroke-dasharray: 64 140;
  stroke-dashoffset: 64;
  opacity: 0.38;
  animation: code-sub-grow 3.6s ease-out infinite;
}

.model-banner--code .code-forks .code-branch--sub:nth-child(odd) { animation-delay: 0.45s; }
.model-banner--code .code-forks .code-branch--sub:nth-child(even) { animation-delay: 1s; }

.model-banner--code .code-branch--twig {
  stroke-width: 0.48;
  stroke-dasharray: 24 72;
  stroke-dashoffset: 24;
  opacity: 0.34;
  animation: code-twig-reach 3.2s ease-out infinite;
}

.model-banner--code .code-twigs .code-branch--twig:nth-child(3n) { animation-delay: 0.7s; }
.model-banner--code .code-twigs .code-branch--twig:nth-child(3n+1) { animation-delay: 1.2s; }
.model-banner--code .code-twigs .code-branch--twig:nth-child(3n+2) { animation-delay: 1.7s; }

.model-banner--code .code-branch--import {
  stroke-width: 1;
  stroke-dasharray: 8 14;
  stroke-dashoffset: 48;
  opacity: 0.4;
  animation: code-import-in 3.4s ease-in-out infinite;
}

.model-banner--code .code-imports .code-branch--import:nth-child(1) { animation-delay: 0s; }
.model-banner--code .code-imports .code-branch--import:nth-child(2) { animation-delay: 0.4s; }
.model-banner--code .code-imports .code-branch--import:nth-child(3) { animation-delay: 0.8s; }
.model-banner--code .code-imports .code-branch--import:nth-child(4) { animation-delay: 1.2s; }
.model-banner--code .code-imports .code-branch--import:nth-child(5) { animation-delay: 1.6s; }

.model-banner--code .code-node {
  animation: code-node-pulse 2.4s ease-in-out infinite;
}

.model-banner--code .code-nodes .code-node:nth-child(odd) { animation-delay: 0.2s; }
.model-banner--code .code-nodes .code-node:nth-child(3n) { animation-delay: 0.75s; }

.model-banner--code .code-glyph {
  animation: code-glyph-flicker 3.8s ease-in-out infinite;
}

.model-banner--code .code-glyphs .code-glyph:nth-child(odd) { animation-delay: 0.3s; }
.model-banner--code .code-glyphs .code-glyph:nth-child(3n) { animation-delay: 1.1s; }

.model-banner--code .code-core-group {
  animation: code-core-pulse 3.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes code-trunk-grow {
  0%, 10% { stroke-dashoffset: 110; opacity: 0.3; }
  38% { stroke-dashoffset: 0; opacity: 0.82; }
  68% { stroke-dashoffset: 0; opacity: 0.58; }
  100% { stroke-dashoffset: -44; opacity: 0.32; }
}

@keyframes code-sub-grow {
  0%, 14% { stroke-dashoffset: 64; opacity: 0.26; }
  42% { stroke-dashoffset: 0; opacity: 0.72; }
  72% { stroke-dashoffset: 0; opacity: 0.5; }
  100% { stroke-dashoffset: -32; opacity: 0.28; }
}

@keyframes code-twig-reach {
  0%, 18% { stroke-dashoffset: 24; opacity: 0.2; }
  46% { stroke-dashoffset: 0; opacity: 0.62; }
  76% { stroke-dashoffset: 0; opacity: 0.42; }
  100% { stroke-dashoffset: -18; opacity: 0.24; }
}

@keyframes code-import-in {
  0%, 16% { stroke-dashoffset: 48; opacity: 0.28; }
  50% { stroke-dashoffset: 0; opacity: 0.78; }
  84%, 100% { stroke-dashoffset: -16; opacity: 0.34; }
}

@keyframes code-node-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 0.95; transform: scale(1.3); }
}

@keyframes code-glyph-flicker {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

@keyframes code-core-pulse {
  0%, 100% { opacity: 0.88; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.worker-teaser {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  text-align: center;
  border-color: rgba(118, 185, 0, 0.25);
  background: linear-gradient(145deg, var(--bg-panel), rgba(118, 185, 0, 0.06));
}

.worker-teaser h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--nvidia);
}

.worker-teaser-text {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 32rem;
  margin-inline: auto;
}

.chip {
  align-self: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--rust);
  color: #1a0800;
  margin-bottom: 0.4rem;
}

.chip-nvidia { background: var(--nvidia); }

/* ── Slideshows ── */
.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}

.art-slideshow {
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

.slideshow-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slideshow-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slideshow-stage img.active { opacity: 1; }

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(6, 8, 16, 0.7);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.slideshow-prev { left: 0.5rem; }
.slideshow-next { right: 0.5rem; }

.slideshow-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.5rem 0.75rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.art-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.art-tab {
  flex: 1;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.art-tab.active {
  background: linear-gradient(135deg, var(--rust-light), var(--mars));
  color: #1a0800;
  border-color: transparent;
}

/* ── Creativity promo ── */
.section-creativity {
  padding-top: clamp(2rem, 6vw, 3rem);
  padding-bottom: clamp(2rem, 6vw, 3rem);
}

.creativity-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: var(--bg-panel);
  border: 1px solid rgba(196, 92, 42, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.creativity-promo:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 122, 63, 0.45);
}

.creativity-promo-banner {
  position: relative;
  min-height: 180px;
  overflow: hidden;
}

.creativity-promo-banner img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.creativity-promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(8, 10, 18, 0.55) 100%);
}

.creativity-promo-label {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(196, 92, 42, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.creativity-promo-body {
  padding: clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.creativity-promo-body h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.creativity-promo-body .section-lead {
  margin: 0 0 0.35rem;
}

.creativity-promo-body .text-link {
  margin-top: 0.25rem;
}

/* ── Visual archive (static pair) ── */
.visual-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.visual-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.visual-frame img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.visual-frame figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── Mission log ── */
.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.log-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.log-list li:last-child { border-bottom: none; }

.log-list strong { display: block; margin-top: 0.25rem; }

.log-list p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.tag-live { color: var(--rust-light); }

/* ── Quantum black-hole easter eggs ── */
.quantum-roam-zone {
  position: relative;
  min-height: clamp(380px, 52vw, 520px);
}

.quantum-portal {
  position: absolute;
  z-index: 8;
  left: 0;
  top: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  transition:
    left 4.8s ease-in-out,
    top 4.8s ease-in-out,
    transform 0.35s ease,
    filter 0.35s ease,
    opacity 0.35s ease;
  filter: drop-shadow(0 8px 24px rgba(100, 80, 160, 0.25));
}

.quantum-portal--roaming {
  opacity: 0.48;
}

.quantum-portal--roaming:hover,
.quantum-portal--roaming:focus-visible {
  opacity: 1;
}

.quantum-portal:hover,
.quantum-portal:focus-visible {
  transform: scale(1.06);
  filter: drop-shadow(0 12px 32px rgba(126, 184, 255, 0.55));
  outline: none;
}

.quantum-portal--open {
  transform: scale(1.14);
  opacity: 1;
  filter: drop-shadow(0 0 28px rgba(155, 126, 217, 0.85));
  transition:
    left 0.2s ease,
    top 0.2s ease,
    transform 0.35s ease,
    filter 0.35s ease,
    opacity 0.2s ease;
}

.quantum-portal-art {
  display: block;
  width: clamp(72px, 14vw, 100px);
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  animation: quantum-bh-pulse 3.6s ease-in-out infinite;
}

@keyframes quantum-bh-pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 180, 80, 0.35), 0 0 28px rgba(255, 140, 40, 0.15);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 210, 120, 0.55), 0 0 40px rgba(255, 160, 60, 0.28);
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quantum-portal-art {
    animation: none;
  }
}

.quantum-portal--theories {
  z-index: 7;
  filter: drop-shadow(0 8px 24px rgba(255, 160, 80, 0.22));
}

.quantum-portal--theories:hover,
.quantum-portal--theories:focus-visible {
  filter: drop-shadow(0 12px 32px rgba(255, 200, 100, 0.5));
}

.quantum-portal--theories .quantum-portal-hint {
  color: #ffb85c;
  border-color: rgba(255, 184, 92, 0.4);
}

.quantum-portal-hint {
  position: absolute;
  right: -0.35rem;
  bottom: 0.5rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quantum);
  background: rgba(8, 10, 20, 0.88);
  border: 1px solid rgba(155, 126, 217, 0.35);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.quantum-portal:hover .quantum-portal-hint,
.quantum-portal:focus-visible .quantum-portal-hint {
  opacity: 1;
}

.section-quantum .section-head,
.section-quantum .science-grid {
  position: relative;
  z-index: 1;
}

/* ── Science topics — single column, picture-forward banners ── */
.science-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.science-card {
  background: var(--bg-panel);
  border: 1px solid rgba(155, 126, 217, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.science-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 8;
  min-height: clamp(148px, 32vw, 210px);
  overflow: hidden;
  background: #060810;
  border-radius: inherit;
}

.science-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.science-banner-img--in {
  opacity: 1;
}

.science-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 16, 0.08) 0%,
    rgba(6, 8, 16, 0.35) 45%,
    rgba(6, 8, 16, 0.88) 100%
  );
  pointer-events: none;
}

.science-banner-overlay {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.85rem 0.7rem;
  background: linear-gradient(
    to top,
    rgba(8, 10, 20, 0.94) 0%,
    rgba(8, 10, 20, 0.78) 55%,
    rgba(8, 10, 20, 0.2) 100%
  );
  backdrop-filter: blur(4px);
}

.science-banner-cap {
  padding: 0;
}

.science-label {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  font-size: 0.72rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.science-banner-cap p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(232, 228, 240, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.science-card-articles {
  margin: 0.4rem 0 0;
  padding: 0.35rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.science-card-articles--fade {
  animation: science-card-fade 0.85s ease-in-out;
}

@keyframes science-card-fade {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

.science-card-articles li + li {
  border-top: 1px solid rgba(155, 126, 217, 0.08);
}

.science-card-articles a {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.32rem 0;
  text-decoration: none;
  transition: color 0.2s;
}

.science-card-articles a:hover .science-card-article-title {
  color: var(--quantum);
}

.science-card-article-title {
  flex: 1;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(232, 228, 240, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.science-card-articles time {
  flex-shrink: 0;
  font-size: 0.6rem;
  color: rgba(154, 143, 184, 0.9);
}

.science-card-articles-empty {
  padding: 0.5rem 0.1rem;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Science RSS feeds — bottom of Quantum & Cosmos */
.science-rss {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem 1.1rem;
  border-color: rgba(155, 126, 217, 0.22);
  background: linear-gradient(165deg, rgba(20, 14, 32, 0.75), rgba(10, 14, 24, 0.92));
}

.science-rss-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.science-rss-head .science-rss-heading {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  color: var(--rust-light);
}

.science-rss-updated {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.science-rss-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.science-rss-tab {
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(8, 10, 20, 0.55);
  border: 1px solid rgba(155, 126, 217, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.science-rss-tab:hover,
.science-rss-tab.active {
  color: var(--quantum);
  border-color: rgba(155, 126, 217, 0.45);
  background: rgba(100, 80, 160, 0.15);
}

.science-rss-track {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 126, 217, 0.35) transparent;
}

.science-rss-track::-webkit-scrollbar {
  height: 5px;
}

.science-rss-list {
  display: flex;
  gap: 0.65rem;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  list-style: none;
  min-width: min-content;
}

.science-rss-item {
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 280px);
}

.science-rss-item a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(155, 126, 217, 0.18);
  background: rgba(6, 8, 16, 0.55);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.science-rss-item a:hover {
  border-color: rgba(126, 184, 255, 0.4);
  background: rgba(14, 18, 32, 0.85);
  transform: translateY(-1px);
}

.science-rss-source {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quantum);
}

.science-rss-title {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.science-rss-date {
  margin-top: auto;
  font-size: 0.68rem;
  color: var(--muted);
}

.science-rss-loading,
.science-rss-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Audio player ── */
.audio-player {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(14, 18, 28, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.audio-player[hidden] { display: none !important; }

.audio-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rust-light), var(--mars));
  color: #1a0800;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-btn-sm {
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.audio-title {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-vol {
  width: 56px;
  height: 4px;
  accent-color: var(--rust-light);
  cursor: pointer;
}

@media (max-width: 480px) {
  .audio-vol { display: none; }
  .audio-title { max-width: 5rem; }
}

/* ── Footer ── */
.site-footer {
  padding: 1.75rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 16, 0.9);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--rust-light);
  text-decoration: none;
}

.footer-server-btn {
  margin-bottom: 0.35rem;
}

/* ── Mobile — same layouts as desktop, scaled for narrow screens ── */
@media (max-width: 768px) {
  .menu-btn { display: flex; align-items: center; justify-content: center; }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 8, 16, 0.98);
    padding: env(safe-area-inset-top) 1.5rem env(safe-area-inset-bottom);
  }

  .nav.open { display: flex; }

  .nav a {
    font-size: 1.1rem;
    padding: 0.65rem 1.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-social {
    display: inline-flex;
    margin-top: 0.75rem;
    color: var(--rust-light);
    border: 1px solid var(--border);
    border-radius: 999px;
  }

  .hero-banner--unified {
    min-height: clamp(200px, 42vw, 280px);
  }

  .hero-banner-overlay {
    max-width: none;
    margin-left: 0;
    align-items: stretch;
    justify-content: flex-end;
    text-align: center;
    padding: 0.85rem 0.75rem 1rem;
    background:
      linear-gradient(180deg, rgba(6, 8, 16, 0.08) 0%, rgba(6, 8, 16, 0.45) 50%, rgba(6, 8, 16, 0.9) 100%);
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-banner-overlay h1,
  .hero h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .hero-banner-overlay .hero-text,
  .hero-text {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
  }

  .creativity-promo {
    grid-template-columns: 1fr;
  }

  .creativity-promo-banner {
    min-height: 140px;
  }

  .hero-cta {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }

  .aria-layout {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .aria-logo {
    width: 100%;
    min-height: clamp(88px, 28vw, 120px);
  }

  .panel-aria-info { padding: 0.85rem; }

  .check-list {
    font-size: 0.72rem;
    padding-left: 0.9rem;
    margin-bottom: 0.85rem;
  }

  .check-list li { margin: 0.25rem 0; }

  .btn-row {
    flex-direction: column;
    gap: 0.45rem;
  }

  .btn-row .btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
  }

  .fine-print { font-size: 0.68rem; }

  .panel-chat {
    min-height: 240px;
    padding: 0.75rem;
  }

  .chat-head { font-size: 0.78rem; }

  .chat-messages {
    max-height: 120px;
    font-size: 0.78rem;
  }

  .chat-msg { font-size: 0.75rem; }

  .chat-form { gap: 0.35rem; }

  .chat-form input {
    font-size: 16px;
    padding: 0.5rem 0.55rem;
    min-height: 40px;
  }

  .chat-mic,
  .chat-send {
    min-width: 40px;
    min-height: 40px;
  }

  .chat-send {
    font-size: 0.72rem;
    padding: 0 0.55rem;
  }

  .chat-opt { font-size: 0.68rem; }

  .aria-banner-wrap,
  .stack-banner-wrap {
    width: 100%;
    max-width: 100%;
    left: auto;
    transform: none;
  }

  .aria-banner-wrap,
  .aria-hero-overlay {
    min-height: clamp(520px, 120vw, 640px);
  }

  .aria-hero-overlay {
    padding: 0.65rem 0.55rem;
    gap: 0.55rem;
  }

  .aria-logo-overlay {
    width: 100%;
    padding: 0.55rem 0.65rem 0.5rem;
  }

  .aria-hero-overlay .aria-layout {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .stack-hero-head {
    width: min(94%, 360px);
    padding: 0.75rem 0.85rem;
  }

  .stack-hero-head h2 {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
  }

  .strip-slideshow {
    min-height: clamp(100px, 28vw, 140px);
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .stack-card {
    padding: 0.7rem 0.45rem;
  }

  .stack-card h3 {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .stack-card p {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .infra-tile {
    min-height: 96px;
    padding: 0.75rem 0.55rem;
  }

  .infra-tile h3,
  .model-tile h3,
  .model-banner-head h3 {
    font-size: 0.78rem;
  }

  .infra-tile p,
  .model-tile p,
  .model-banner-head p {
    font-size: 0.68rem;
  }

  .model-tile {
    padding: 0.75rem 0.55rem;
  }

  .model-banner {
    min-height: 112px;
  }

  .model-banner-head {
    padding: 0.55rem 0.5rem;
  }

  .model-banner-head .text-link {
    font-size: 0.68rem;
  }

  .quantum-roam-zone {
    min-height: 340px;
  }

  .quantum-portal-art {
    width: clamp(56px, 16vw, 80px);
  }

  .science-grid {
    gap: 0.75rem;
  }

  .science-banner {
    aspect-ratio: 16 / 7;
    min-height: clamp(128px, 38vw, 168px);
  }

  .science-banner-overlay {
    padding: 0.45rem 0.65rem 0.55rem;
  }

  .science-banner-cap p {
    font-size: 0.68rem;
  }

  .science-card-article-title {
    font-size: 0.64rem;
  }

  .science-rss {
    margin-top: 1rem;
    padding: 0.85rem 0.75rem;
  }

  .science-rss-item {
    width: clamp(200px, 72vw, 260px);
  }

  .science-rss-title {
    font-size: 0.74rem;
  }

  .science-card p {
    padding: 0.55rem 0.6rem 0.65rem;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .visual-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .visual-frame figcaption {
    font-size: 0.68rem;
    padding: 0.4rem 0.5rem;
  }

  .section-head-split {
    flex-direction: column;
    align-items: center;
  }

  .section-head-split .btn {
    width: auto;
    align-self: center;
  }

  .worker-teaser {
    padding: 0.9rem 0.85rem;
  }

  .worker-teaser h3 { font-size: 0.9rem; }

  .worker-teaser-text { font-size: 0.78rem; }
}

@media (min-width: 769px) {
  .btn-row .btn { flex: 0 1 auto; }
}