/* hud.css v2 — Toxic Remedy / Section One aesthetic.
   Cinematic split scenes, live demos, animated numbers. Theme-honest colors.
   Loaded on marketing pages only. Reads from existing theme CSS variables.
   Target: <12KB gzipped. */

/* ------------------------------------------------------------------
   TOKENS — scoped to body.hud-page so theme-level overrides of
   --medical-green, --surface, etc. are visible when these are referenced.
   Defining on :root would lock them to the default theme values.
------------------------------------------------------------------ */
body.hud-page {
  --hud-accent: var(--medical-green);
  --hud-surface: var(--surface);
  --hud-surface-hover: color-mix(in oklab, var(--surface), var(--medical-green) 6%);
  --hud-line: color-mix(in oklab, var(--medical-green), transparent 75%);
  --hud-line-strong: color-mix(in oklab, var(--medical-green), transparent 55%);
  --hud-glow: color-mix(in oklab, var(--medical-green), transparent 40%);
  --hud-danger: var(--warning-red);
  --hud-caution: var(--hazard-yellow);
  --hud-text-dim: color-mix(in oklab, var(--text), transparent 35%);
  --hud-text-ghost: color-mix(in oklab, var(--text), transparent 60%);

  /* CTA text defaults to near-black (works on bright mint/green/teal accents).
     Themes where the accent is dark get overridden below. */
  --hud-cta-text: #0A0A0A;

  --hud-font-display: 'Oswald', -apple-system, sans-serif;
  --hud-font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --hud-font-body: 'Source Sans Pro', -apple-system, sans-serif;

  --hud-ease: cubic-bezier(0.88, 0.02, 0.12, 1);
  --hud-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Themes where the accent color is dark enough that white text reads better. */
body.hud-page[data-theme="amber"],           /* accent: #1A5C1A dark green */
body.hud-page[data-theme="lilac"],           /* accent: #7C3AED violet */
body.hud-page[data-theme="high-contrast-inv"], /* accent: #006600 */
body.hud-page[data-theme="clinical"] {         /* accent: #0D9488 teal 600 */
  --hud-cta-text: #FFFFFF;
}

/* Accessibility theme: accent is amber yellow → needs darkest text. */
body.hud-page[data-theme="accessibility"] {
  --hud-cta-text: #000000;
}

/* ------------------------------------------------------------------
   PAGE WRAPPER — zero darkening. Theme color comes through unchanged.
   No overlay, no blend mode, no vignette. The existing site scan-line
   (from main.css) stays intact.
------------------------------------------------------------------ */
body.hud-page {
  background: var(--bg);
}

/* Floating mute/unmute button injected by hud.js — bottom-left so it doesn't
   collide with native Android/iOS home-indicator gesture areas on the right. */
.hud-mute-btn {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
  left: 1rem;
  width: 44px;
  height: 44px;
  background: var(--hud-surface);
  border: 1px solid rgb(from var(--hud-accent) r g b / 0.5);
  border-radius: 50%;
  color: var(--hud-accent);
  cursor: pointer;
  font-size: 1.05rem;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.hud-mute-btn:hover {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgb(from var(--hud-accent) r g b / 0.4);
}
.hud-mute-btn:focus-visible {
  outline: 2px solid var(--hud-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .hud-mute-btn { display: none; }
}

/* Override .static-page main { max-width: 900px; padding: 3rem 2rem } only when
   the page actually uses HUD full-bleed layouts. Legal-doc pages (terms, privacy,
   about, faq, side-effects) keep the 900px readable column.
   Marketing pages (features, compare) have a .hud-hero-film or .hud-vs-poster
   and get full-bleed treatment via :has(). */
body.hud-page main:has(.hud-hero-film),
body.hud-page main:has(.hud-vs-poster) {
  max-width: none;
  padding: 0;
  margin: 0;
}

.hud-page .hud-layer { position: relative; z-index: 10; }

/* ------------------------------------------------------------------
   RESPONSIVE HEADER OVERRIDES — the shared header's "← BACK TO HOME"
   button gets clipped at narrow viewports. Shrink + reflow on small screens.
------------------------------------------------------------------ */
@media (max-width: 720px) {
  body.hud-page .header .auth-btn {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    min-height: 40px;
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  body.hud-page .header-content {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  body.hud-page .header .tagline { display: none; }
  body.hud-page .header .auth-btn {
    font-size: 0.7rem !important;
    padding: 0.45rem 0.65rem !important;
  }
}

/* ------------------------------------------------------------------
   HERO — cinematic full-bleed
------------------------------------------------------------------ */
.hud-hero-film {
  position: relative;
  min-height: clamp(520px, 85vh, 820px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 6rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hud-hero-film {
    grid-template-columns: 1fr;
    padding: 5rem 1.25rem 3rem;
    min-height: auto;
  }
}

.hud-hero-kicker {
  display: inline-block;
  font-family: var(--hud-font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-accent);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--hud-line-strong);
  margin-bottom: 1.5rem;
}
.hud-hero-kicker::before {
  content: '';
  display: inline-block;
  width: 0.4rem; height: 0.4rem;
  background: var(--hud-accent);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--hud-accent);
  animation: hud-led 2s ease-in-out infinite;
}

.hud-hero-title {
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1.25rem;
  word-spacing: 0.05em;
}

.hud-hero-title .accent { color: var(--hud-accent); }

.hud-hero-sub {
  font-family: var(--hud-font-mono);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hud-text-dim);
  margin-bottom: 2rem;
}

.hud-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   HERO REEL — the looping demo panel
------------------------------------------------------------------ */
.hud-reel {
  position: relative;
  aspect-ratio: 4/3;
  max-height: 540px;
  width: 100%;
  background: var(--hud-surface);
  border: 1px solid var(--hud-line-strong);
  overflow: hidden;
}

/* Perforation strip at top (film leader) */
.hud-reel::before {
  content: 'REC ● LIVE FEED · CH_001';
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 0.35rem 0.75rem;
  font-family: var(--hud-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--hud-danger);
  background: var(--bg);
  border-bottom: 1px solid var(--hud-line);
  z-index: 5;
  text-transform: uppercase;
}
.hud-reel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 24px;
  background: repeating-linear-gradient(to right,
    var(--bg) 0, var(--bg) 10px,
    color-mix(in oklab, var(--hud-accent), transparent 85%) 10px,
    color-mix(in oklab, var(--hud-accent), transparent 85%) 14px);
  border-top: 1px solid var(--hud-line);
  z-index: 5;
}

.hud-reel-panel {
  position: absolute;
  inset: 28px 0 32px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 5 panels cycle every 40s (8s each) */
@media (prefers-reduced-motion: no-preference) {
  .hud-reel-panel { animation: hud-reel-cycle 40s infinite; }
  .hud-reel-panel:nth-child(1) { animation-delay: 0s; }
  .hud-reel-panel:nth-child(2) { animation-delay: 8s; }
  .hud-reel-panel:nth-child(3) { animation-delay: 16s; }
  .hud-reel-panel:nth-child(4) { animation-delay: 24s; }
  .hud-reel-panel:nth-child(5) { animation-delay: 32s; }

  @keyframes hud-reel-cycle {
    0%, 1%   { opacity: 0; transform: translateY(10px); }
    3%, 18%  { opacity: 1; transform: translateY(0); }
    20%, 100% { opacity: 0; transform: translateY(-10px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud-reel-panel:first-child { opacity: 1; }
}

/* Reel panel label */
.hud-reel-label {
  font-family: var(--hud-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-accent);
}

.hud-reel-title {
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.005em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
}

/* Reel content types: chat, image, voice, chart, code */
.reel-chat-bubble {
  font-family: var(--hud-font-body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  background: color-mix(in oklab, var(--hud-accent), transparent 92%);
  border-left: 2px solid var(--hud-accent);
  color: var(--text);
  line-height: 1.5;
  position: relative;
}
.reel-chat-bubble .caret {
  display: inline-block;
  width: 0.45rem;
  height: 1.05em;
  background: var(--hud-accent);
  vertical-align: text-bottom;
  animation: hud-caret 1s steps(1) infinite;
  margin-left: 2px;
}

@keyframes hud-caret { 50% { opacity: 0; } }

/* Voice waveform — 12 bars, staggered animation */
.reel-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 80px;
}
.reel-waveform .bar {
  width: 4px;
  background: var(--hud-accent);
  border-radius: 2px;
  animation: hud-wave 0.9s ease-in-out infinite;
  box-shadow: 0 0 6px var(--hud-glow);
}
.reel-waveform .bar:nth-child(1) { animation-delay: -0.8s; height: 30%; }
.reel-waveform .bar:nth-child(2) { animation-delay: -0.7s; height: 55%; }
.reel-waveform .bar:nth-child(3) { animation-delay: -0.6s; height: 85%; }
.reel-waveform .bar:nth-child(4) { animation-delay: -0.5s; height: 70%; }
.reel-waveform .bar:nth-child(5) { animation-delay: -0.4s; height: 45%; }
.reel-waveform .bar:nth-child(6) { animation-delay: -0.3s; height: 90%; }
.reel-waveform .bar:nth-child(7) { animation-delay: -0.2s; height: 60%; }
.reel-waveform .bar:nth-child(8) { animation-delay: -0.1s; height: 40%; }
.reel-waveform .bar:nth-child(9) { animation-delay: 0s;    height: 75%; }
.reel-waveform .bar:nth-child(10){ animation-delay: 0.1s;  height: 55%; }
.reel-waveform .bar:nth-child(11){ animation-delay: 0.2s;  height: 35%; }
.reel-waveform .bar:nth-child(12){ animation-delay: 0.3s;  height: 65%; }

@keyframes hud-wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Image morphing blob */
.reel-image {
  width: 100%;
  aspect-ratio: 1.6;
  background:
    radial-gradient(ellipse at 30% 40%, color-mix(in oklab, var(--hud-accent), transparent 30%), transparent 60%),
    radial-gradient(ellipse at 70% 60%, color-mix(in oklab, var(--hud-caution), transparent 50%), transparent 65%),
    radial-gradient(ellipse at 50% 50%, color-mix(in oklab, var(--hud-danger), transparent 70%), transparent 70%),
    var(--hud-surface);
  background-size: 200% 200%;
  border: 1px solid var(--hud-line);
  animation: hud-blob 7s ease-in-out infinite;
}
@keyframes hud-blob {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* Chart — SVG with animated stroke */
.reel-chart svg { width: 100%; height: 80px; }
.reel-chart .line-path {
  fill: none;
  stroke: var(--hud-accent);
  stroke-width: 2;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: hud-draw 3s ease-out forwards infinite;
  filter: drop-shadow(0 0 6px var(--hud-glow));
}
@keyframes hud-draw { to { stroke-dashoffset: 0; } }

/* Code rows */
.reel-code {
  font-family: var(--hud-font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--hud-text-dim);
}
.reel-code .row { opacity: 0; animation: hud-row-in 0.3s ease-out forwards; }
.reel-code .row:nth-child(1) { animation-delay: 0.3s; }
.reel-code .row:nth-child(2) { animation-delay: 0.6s; }
.reel-code .row:nth-child(3) { animation-delay: 0.9s; }
.reel-code .row:nth-child(4) { animation-delay: 1.2s; }
.reel-code .row:nth-child(5) { animation-delay: 1.5s; }
.reel-code .k { color: var(--hud-danger); }
.reel-code .s { color: var(--hud-caution); }
.reel-code .f { color: var(--hud-accent); }
@keyframes hud-row-in { to { opacity: 1; } }

/* ------------------------------------------------------------------
   SPLIT SCENES — feature shown as a single full-bleed strip
------------------------------------------------------------------ */
.hud-scene {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  border-top: 1px solid var(--hud-line);
}

.hud-scene-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hud-scene.flip .hud-scene-inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.hud-scene.flip .hud-scene-copy { order: 2; }

@media (max-width: 900px) {
  .hud-scene { padding: 2.5rem 1.25rem; }
  .hud-scene-inner,
  .hud-scene.flip .hud-scene-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hud-scene.flip .hud-scene-copy { order: 0; }
}

.hud-scene-tag {
  display: inline-block;
  font-family: var(--hud-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-accent);
  margin-bottom: 1rem;
}

.hud-scene-title {
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.75vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.75rem;
  /* Let long titles wrap without spilling over content below. */
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hud-scene-sub {
  font-family: var(--hud-font-body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--hud-text-dim);
  max-width: 42ch;
  margin: 0 0 1.25rem;
}

.hud-scene-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--hud-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hud-text-ghost);
}

/* ------------------------------------------------------------------
   HUD PANEL + SPECIMEN CARDS — used on /compare hub and /features.
   The v2 rewrite accidentally dropped these selectors; restoring.
------------------------------------------------------------------ */
.hud-panel {
  position: relative;
  padding: 1.75rem;
  background: var(--hud-surface);
  border: 1px solid var(--hud-line);
}
.hud-panel::before,
.hud-panel::after,
.hud-panel > .hud-bracket-bl,
.hud-panel > .hud-bracket-br {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--hud-accent);
  border-style: solid;
  border-width: 0;
}
.hud-panel::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hud-panel::after  { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hud-bracket-bl    { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-bracket-br    { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.hud-specimen {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--hud-surface);
  border: 1px solid var(--hud-line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  transition: border-color 0.2s var(--hud-ease), transform 0.2s var(--hud-ease);
}
.hud-specimen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hud-accent), transparent);
  opacity: 0.55;
}
.hud-specimen-label {
  font-family: var(--hud-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-text-ghost);
}
.hud-specimen-icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--hud-accent);
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--hud-accent), transparent 60%));
}
.hud-specimen-title {
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.08;
  margin: 0;
}
.hud-specimen-body {
  font-family: var(--hud-font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--hud-text-dim);
  margin: 0;
}
@media (hover: hover) {
  .hud-specimen:hover {
    border-color: color-mix(in oklab, var(--hud-accent), transparent 30%);
    transform: translateY(-2px);
  }
}

/* Tag label (used on specimens, scenes, section heads) */
.hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hud-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hud-accent);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--hud-line-strong);
  background: var(--hud-surface);
}
.hud-tag::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hud-accent);
  box-shadow: 0 0 6px var(--hud-accent);
  animation: hud-led 2.2s ease-in-out infinite;
}

/* ------------------------------------------------------------------
   HUD CHART — comparison tables on /compare/* pages.
   SICKLIEST column is highlighted with a subtle accent-tint column fill.
   Status cells render as icon pills (✓ ✗ △) with theme-appropriate backgrounds.
------------------------------------------------------------------ */
.hud-chart {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--hud-font-body);
  font-size: 0.95rem;
  margin: 1.5rem 0;
  background: var(--hud-surface);
  border: 1px solid var(--hud-line-strong);
}

.hud-chart thead th {
  padding: 0.95rem 1.1rem;
  text-align: left;
  font-family: var(--hud-font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--hud-text-dim);
  border-bottom: 2px solid var(--hud-line-strong);
  background: rgb(from var(--hud-accent) r g b / 0.04);
  vertical-align: middle;
}

/* SICKLIEST column (2nd) is emphasized */
.hud-chart thead th:nth-child(2) {
  color: var(--hud-accent);
  font-weight: 700;
  background: rgb(from var(--hud-accent) r g b / 0.12);
  border-left: 1px solid color-mix(in oklab, var(--hud-accent), transparent 55%);
  border-right: 1px solid color-mix(in oklab, var(--hud-accent), transparent 55%);
}

.hud-chart tbody td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid color-mix(in oklab, var(--hud-line), transparent 50%);
  color: var(--text);
  vertical-align: middle;
}

.hud-chart tbody td:first-child {
  color: var(--hud-text-dim);
  font-weight: 500;
  max-width: 280px;
}

.hud-chart tbody td:nth-child(2) {
  background: rgb(from var(--hud-accent) r g b / 0.06);
  border-left: 1px solid color-mix(in oklab, var(--hud-accent), transparent 70%);
  border-right: 1px solid color-mix(in oklab, var(--hud-accent), transparent 70%);
  font-weight: 600;
}

.hud-chart tbody tr:nth-child(even) td {
  background: rgb(from var(--text) r g b / 0.035);
}
.hud-chart tbody tr:nth-child(even) td:nth-child(2) {
  background: rgb(from var(--hud-accent) r g b / 0.09);
}

.hud-chart tbody tr:last-child td {
  border-bottom: none;
}

/* Status pills */
.hud-chart .ok,
.hud-chart .no,
.hud-chart .partial {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--hud-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  border: 1px solid;
  font-weight: 500;
}
.hud-chart .ok {
  color: var(--hud-accent);
  border-color: color-mix(in oklab, var(--hud-accent), transparent 50%);
  background: color-mix(in oklab, var(--bg), var(--hud-accent) 12%);
}
.hud-chart .ok::before { content: '✓'; font-weight: 700; font-size: 0.95rem; }
.hud-chart .no {
  color: var(--hud-danger);
  border-color: color-mix(in oklab, var(--hud-danger), transparent 50%);
  background: color-mix(in oklab, var(--bg), var(--hud-danger) 10%);
}
.hud-chart .no::before { content: '✗'; font-weight: 700; font-size: 0.9rem; }
.hud-chart .partial {
  color: var(--hud-caution);
  border-color: color-mix(in oklab, var(--hud-caution), transparent 45%);
  background: color-mix(in oklab, var(--bg), var(--hud-caution) 10%);
}
.hud-chart .partial::before { content: '△'; font-weight: 700; font-size: 0.85rem; }

/* Mobile: stack rows as cards */
@media (max-width: 640px) {
  .hud-chart { font-size: 0.9rem; background: transparent; border: none; }
  .hud-chart thead { display: none; }
  .hud-chart tbody, .hud-chart tbody tr, .hud-chart tbody td {
    display: block;
    width: 100%;
  }
  .hud-chart tbody tr {
    border: 1px solid var(--hud-line-strong);
    margin-bottom: 0.75rem;
    background: var(--hud-surface);
  }
  .hud-chart tbody td {
    border-bottom: 1px solid color-mix(in oklab, var(--hud-line), transparent 50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
  }
  .hud-chart tbody td:first-child {
    font-family: var(--hud-font-display);
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
    background: rgb(from var(--hud-accent) r g b / 0.06);
    padding: 0.65rem 0.9rem;
    max-width: none;
    display: block;
  }
  .hud-chart tbody td:nth-child(2),
  .hud-chart tbody td:nth-child(3) {
    background: transparent !important;
    border-left: none;
    border-right: none;
  }
  .hud-chart tbody td:nth-child(2)::before {
    content: 'SICKLIEST';
    font-family: var(--hud-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hud-accent);
    font-weight: 600;
  }
  .hud-chart tbody td:nth-child(3)::before {
    content: attr(data-rival-label);
    font-family: var(--hud-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hud-text-dim);
  }
  .hud-chart tbody td:last-child { border-bottom: none; }
  .hud-chart tbody tr:nth-child(even) td { background: transparent; }
  .hud-chart tbody tr:nth-child(even) td:first-child {
    background: rgb(from var(--hud-accent) r g b / 0.06);
  }
}

/* ------------------------------------------------------------------
   DEMO WINDOWS — each scene's visual
------------------------------------------------------------------ */
.hud-demo {
  position: relative;
  aspect-ratio: 4/3;
  max-height: 500px;
  background: var(--hud-surface);
  border: 1px solid var(--hud-line-strong);
  padding: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hud-demo-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 0.35rem 0.75rem;
  font-family: var(--hud-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--hud-text-ghost);
  background: var(--bg);
  border-bottom: 1px solid var(--hud-line);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.hud-demo-header::before {
  content: '◉';
  color: var(--hud-danger);
  margin-right: 0.35rem;
}

.hud-demo-body {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* SEARCH demo — query + source chips */
.demo-search .query {
  font-family: var(--hud-font-mono);
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--hud-line);
  color: var(--text);
  position: relative;
}
.demo-search .query::after {
  content: '';
  display: inline-block;
  width: 0.4rem; height: 1em;
  background: var(--hud-accent);
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: hud-caret 1s steps(1) infinite;
}
.demo-search .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.demo-search .chip {
  font-family: var(--hud-font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  background: color-mix(in oklab, var(--hud-accent), transparent 88%);
  border: 1px solid var(--hud-line-strong);
  color: var(--hud-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: hud-chip-in 0.4s ease-out forwards;
}
.demo-search .chip:nth-child(1) { animation-delay: 1.2s; }
.demo-search .chip:nth-child(2) { animation-delay: 1.5s; }
.demo-search .chip:nth-child(3) { animation-delay: 1.8s; }
.demo-search .chip:nth-child(4) { animation-delay: 2.1s; }
.demo-search .chip:nth-child(5) { animation-delay: 2.4s; }
.demo-search .chip:nth-child(6) { animation-delay: 2.7s; }
@keyframes hud-chip-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-search .answer {
  font-family: var(--hud-font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--hud-line);
  opacity: 0;
  animation: hud-answer-in 0.8s ease-out 3s forwards;
}
@keyframes hud-answer-in { to { opacity: 1; } }

/* VOICE demo */
.demo-voice { align-items: stretch; justify-content: center; }
.demo-voice .mic {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--hud-accent);
  margin: 0 auto 0.5rem;
  box-shadow: 0 0 0 0 var(--hud-glow);
  animation: hud-mic-pulse 2s ease-in-out infinite;
  color: var(--btn-text);
  font-size: 1.5rem;
}
@keyframes hud-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--hud-glow); transform: scale(1); }
  50% { box-shadow: 0 0 0 16px transparent; transform: scale(1.05); }
}
.demo-voice .transcript {
  font-family: var(--hud-font-body);
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
  margin-top: 0.5rem;
  min-height: 3em;
  opacity: 0;
  animation: hud-answer-in 0.6s ease-out 1.5s forwards;
}

/* FILE demo */
.demo-file {
  align-items: center; justify-content: center;
  text-align: center;
}
.demo-file .doc {
  width: 88px; height: 110px;
  background: var(--hud-surface);
  border: 2px solid var(--hud-accent);
  position: relative;
  margin: 0 auto 0.75rem;
  animation: hud-doc-scan 3.5s ease-in-out infinite;
}
.demo-file .doc::before {
  content: 'PDF';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--hud-font-mono);
  font-size: 0.7rem;
  color: var(--hud-accent);
  letter-spacing: 0.1em;
}
.demo-file .doc::after {
  content: '';
  position: absolute;
  top: 30%; left: 10%; right: 10%; bottom: 15%;
  background: repeating-linear-gradient(to bottom,
    var(--hud-text-ghost) 0, var(--hud-text-ghost) 2px,
    transparent 2px, transparent 8px);
  opacity: 0.5;
}
@keyframes hud-doc-scan {
  0%, 40%, 100% { transform: translateY(0); box-shadow: none; }
  20% { transform: translateY(-8px); box-shadow: 0 0 20px var(--hud-glow); }
  60%, 80% { transform: translateY(0) scale(1); }
}
.demo-file .scan-line-fx {
  position: absolute;
  left: 1.5rem; right: 1.5rem;
  height: 2px;
  background: var(--hud-accent);
  box-shadow: 0 0 12px var(--hud-accent);
  animation: hud-scan-line 3.5s linear infinite;
  pointer-events: none;
}
@keyframes hud-scan-line {
  0% { top: 20%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 80%; opacity: 0; }
}
.demo-file .stats {
  display: flex; gap: 1rem; justify-content: center;
  font-family: var(--hud-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--hud-accent);
  text-transform: uppercase;
}

/* CODE demo */
.demo-code {
  font-family: var(--hud-font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--hud-text-dim);
  padding-top: 2rem;
}
.demo-code .row { opacity: 0; animation: hud-row-in 0.3s ease-out forwards; }
.demo-code .row:nth-child(1) { animation-delay: 0.3s; }
.demo-code .row:nth-child(2) { animation-delay: 0.6s; }
.demo-code .row:nth-child(3) { animation-delay: 0.9s; }
.demo-code .row:nth-child(4) { animation-delay: 1.2s; }
.demo-code .row:nth-child(5) { animation-delay: 1.5s; }
.demo-code .row:nth-child(6) { animation-delay: 1.8s; }
.demo-code .row:nth-child(7) { animation-delay: 2.1s; }
.demo-code .k { color: var(--hud-danger); }
.demo-code .s { color: var(--hud-caution); }
.demo-code .f { color: var(--hud-accent); }
.demo-code .c { color: var(--hud-text-ghost); }

/* "Builds the website" demo: split code + live preview to fill the big box */
.demo-build { padding-top: 0; }
.demo-build .build-split {
  margin-top: 2rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.85rem;
  height: 100%;
}
.demo-build .code-panel {
  font-family: var(--hud-font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--hud-text-dim);
  padding: 0.75rem 0.85rem;
  background: rgb(from var(--text) r g b / 0.08);
  border-left: 2px solid var(--hud-accent);
  overflow: hidden;
}
.demo-build .code-panel .row { opacity: 0; animation: hud-row-in 0.25s ease-out forwards; }
.demo-build .code-panel .row:nth-child(1) { animation-delay: 0.2s; }
.demo-build .code-panel .row:nth-child(2) { animation-delay: 0.5s; }
.demo-build .code-panel .row:nth-child(3) { animation-delay: 0.8s; }
.demo-build .code-panel .row:nth-child(4) { animation-delay: 1.1s; }
.demo-build .code-panel .row:nth-child(5) { animation-delay: 1.4s; }
.demo-build .code-panel .k { color: var(--hud-danger); }
.demo-build .code-panel .s { color: var(--hud-caution); }
.demo-build .code-panel .f { color: var(--hud-accent); }
.demo-build .code-panel .c { color: var(--hud-text-ghost); }

/* The rendered preview of what the code outputs — gives the demo box weight */
.demo-build .preview-panel {
  padding: 1rem 1.25rem;
  background: rgb(from var(--hud-accent) r g b / 0.06);
  border: 1px solid var(--hud-line-strong);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: hud-row-in 0.4s ease-out 1.8s forwards;
}
.demo-build .preview-panel::before {
  content: 'LIVE PREVIEW';
  position: absolute;
  top: 0.35rem;
  right: 0.6rem;
  font-family: var(--hud-font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--hud-accent);
  opacity: 0.7;
}
.demo-build .preview-panel h3 {
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--hud-accent);
  margin: 0;
  line-height: 1.05;
}
.demo-build .preview-panel .detail {
  font-family: var(--hud-font-body);
  font-size: 0.92rem;
  color: var(--text);
  opacity: 0.85;
}
.demo-build .preview-panel .rsvp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: var(--hud-accent);
  color: var(--hud-cta-text);
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

/* IMAGE demo — pulls real images from /api/v1/alchemist/gallery and cycles
   through them with their prompt shown above. The blob gradient is a fallback
   if the API doesn't respond (e.g., offline). */
.demo-image {
  justify-content: center;
  padding-top: 2rem;
}
.demo-image .prompt-tag {
  font-family: var(--hud-font-mono);
  font-size: 0.75rem;
  color: var(--hud-accent);
  padding: 0.35rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--hud-line);
  align-self: flex-start;
  margin-bottom: 0.75rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.demo-image .image-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1.4;
  overflow: hidden;
  border: 1px solid var(--hud-line-strong);
  background:
    radial-gradient(ellipse at 30% 40%, color-mix(in oklab, var(--hud-accent), transparent 30%), transparent 60%),
    radial-gradient(ellipse at 70% 60%, color-mix(in oklab, var(--hud-caution), transparent 50%), transparent 65%),
    var(--hud-surface);
  background-size: 220% 220%;
  animation: hud-blob 8s ease-in-out infinite;
}
.demo-image .slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
/* Dial-up / render-in effect: image starts heavily blurred + slightly scaled,
   then comes into focus. Feels like the image is generating live in front of
   the viewer. Using keyframe animation (not transition) to avoid Chrome's
   "transition stuck" bug on <img> elements whose naturalWidth resolves late. */
.demo-image .slot.active {
  animation: hud-slot-render 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 1;
}
@keyframes hud-slot-render {
  0%   { opacity: 0;    filter: blur(22px); transform: scale(1.06); }
  15%  { opacity: 0.3;  filter: blur(16px); transform: scale(1.045); }
  45%  { opacity: 0.7;  filter: blur(8px);  transform: scale(1.03); }
  75%  { opacity: 1;    filter: blur(3px);  transform: scale(1.015); }
  100% { opacity: 1;    filter: blur(0);    transform: scale(1); }
}
.demo-image .slot.loaded { background: var(--hud-surface); }

/* Optional: a subtle "scanline scan" overlay during render. The ::after sits
   on top of whichever slot is active, sweeping a faint bright line across. */
.demo-image.rendering .image-stack::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to bottom,
    transparent,
    color-mix(in oklab, var(--hud-accent), transparent 30%),
    transparent);
  animation: hud-scan-sweep 1.4s linear forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes hud-scan-sweep {
  0% { top: -4px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Image-stack needs relative positioning for the ::after scan line */
.demo-image .image-stack { position: relative; }

/* Typewriter caret on the prompt tag during typing */
.demo-image .prompt-tag.typing::after {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.9rem;
  background: var(--hud-accent);
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: hud-caret 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .demo-image .slot.active {
    animation: none;
    opacity: 1;
  }
  .demo-image.rendering .image-stack::after { display: none; }
}

/* ------------------------------------------------------------------
   STATS ROW — big counters
------------------------------------------------------------------ */
.hud-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--hud-line);
  border: 1px solid var(--hud-line-strong);
  margin: 0 auto;
  max-width: 1200px;
}
.hud-stat {
  padding: 2rem 1.25rem;
  background: var(--hud-surface);
  text-align: center;
}
.hud-stat .value {
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--hud-accent);
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px var(--hud-glow);
}
.hud-stat .value .unit { font-size: 0.5em; color: var(--hud-text-dim); margin-left: 0.2em; }
.hud-stat .label {
  font-family: var(--hud-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hud-text-dim);
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------------
   BIG CTA BLOCK
------------------------------------------------------------------ */
.hud-final {
  padding: clamp(4rem, 10vh, 8rem) 2rem;
  text-align: center;
  border-top: 1px solid var(--hud-line);
  background:
    radial-gradient(ellipse at 50% 100%, color-mix(in oklab, var(--hud-accent), transparent 85%), transparent 60%),
    var(--bg);
}
.hud-final-eyebrow {
  font-family: var(--hud-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--hud-accent);
  margin-bottom: 1.5rem;
}
.hud-final-title {
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 auto 2rem;
  max-width: 14ch;
}
.hud-final-sub {
  font-family: var(--hud-font-body);
  font-size: 1.125rem;
  color: var(--hud-text-dim);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

/* ------------------------------------------------------------------
   CTA BUTTONS
------------------------------------------------------------------ */
.hud-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hud-cta-text);
  background: var(--hud-accent);
  border: 2px solid var(--hud-accent);
  text-decoration: none;
  min-height: 48px;
  transition: all 0.2s var(--hud-ease);
  position: relative;
  overflow: hidden;
}
.hud-cta::after {
  content: '→';
  transition: transform 0.2s var(--hud-ease);
}
.hud-cta:hover {
  box-shadow: 0 0 28px var(--hud-glow);
  transform: translateY(-2px);
}
.hud-cta:hover::after { transform: translateX(5px); }
.hud-cta.ghost {
  color: var(--hud-accent);
  background: transparent;
}
.hud-cta.ghost:hover { background: color-mix(in oklab, var(--hud-accent), transparent 85%); }

/* ------------------------------------------------------------------
   WORD STAGGER (used by JS) — now splits per word, not per character,
   so the browser can still wrap at word boundaries on narrow screens.
------------------------------------------------------------------ */
.hud-char-stagger .char {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.25em);
}
@media (prefers-reduced-motion: no-preference) {
  .hud-char-stagger.hud-in .char {
    animation: hud-char-in 0.4s var(--hud-ease) forwards;
    animation-delay: calc(var(--ci, 0) * 25ms);
  }
  @keyframes hud-char-in {
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hud-char-stagger .char { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   STATUS LINE — rotating tactical ticker under hero
------------------------------------------------------------------ */
.hud-status-line {
  font-family: var(--hud-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-accent);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--hud-line);
  border-bottom: 1px solid var(--hud-line);
  text-align: center;
  background: var(--bg);
  overflow: hidden;
  white-space: nowrap;
}
.hud-status-line .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--hud-accent);
  border-radius: 50%;
  margin: 0 0.5rem 0.1rem;
  vertical-align: middle;
  animation: hud-led 2s ease-in-out infinite;
}

/* ------------------------------------------------------------------
   MINOR: LED keyframe reused everywhere
------------------------------------------------------------------ */
@keyframes hud-led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ------------------------------------------------------------------
   REDUCED MOTION — kill non-essential animation
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .reel-waveform .bar,
  .demo-voice .mic,
  .reel-image,
  .demo-image .blob,
  .demo-file .doc,
  .demo-file .scan-line-fx {
    animation: none !important;
  }
  .hud-hero-kicker::before,
  .hud-status-line .dot { animation: none; }
}

/* ==================================================================
   HOMEPAGE — two-card cinematic hero, treatment cards, why visualizations
   ================================================================== */

/* Hero override: the homepage hero is centered and full-bleed (no demo column),
   because the demo lives in the cards below. */
.hud-home-hero {
  display: block;
  text-align: center;
  padding: clamp(4rem, 12vh, 7rem) 1.5rem 2.5rem;
  min-height: auto;
}
.hud-home-hero .hud-hero-kicker { margin-bottom: 1.25rem; }
.hud-home-hero .hud-hero-title { max-width: 18ch; margin-left: auto; margin-right: auto; }
.hud-home-hero .hud-hero-sub { margin: 0 auto; }

/* Two-card product layout */
.hud-home-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
@media (max-width: 900px) {
  .hud-home-products {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 2rem;
  }
}

.hud-home-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--hud-surface);
  border: 1px solid var(--hud-line);
  overflow: hidden;
  transition: border-color 0.25s var(--hud-ease), transform 0.25s var(--hud-ease), box-shadow 0.25s var(--hud-ease);
}
.hud-home-product::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hud-accent), transparent);
  opacity: 0.7;
}
.hud-home-product::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgb(from var(--hud-accent) r g b / 0.06), transparent 60%);
  pointer-events: none;
}
@media (hover: hover) {
  .hud-home-product:hover {
    border-color: rgb(from var(--hud-accent) r g b / 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgb(from var(--hud-accent) r g b / 0.12);
  }
}
.hud-home-product .hud-specimen-label {
  align-self: flex-start;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--hud-line);
  background: var(--bg);
  color: var(--hud-accent);
}
.hud-home-product h2 {
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  color: var(--text);
}
.hud-home-product > p {
  font-family: var(--hud-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hud-text-dim);
  margin: 0;
}
.hud-home-product .hud-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* Remedy chat demo */
.hud-home-chat-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--hud-line);
  min-height: 220px;
  font-family: var(--hud-font-mono);
  font-size: 0.875rem;
  overflow: hidden;
}
.hud-home-chat-prompt {
  color: var(--hud-text-dim);
  line-height: 1.45;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  min-height: 1.45em;
  transition: opacity 0.3s ease;
}
.hud-home-chat-prompt .rotating {
  color: var(--text);
}
.hud-home-chat-prompt.fading { opacity: 0; }
.hud-home-chat-reply {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  background: rgb(from var(--hud-accent) r g b / 0.06);
  border-left: 2px solid var(--hud-accent);
}
.hud-home-chat-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-accent);
  font-weight: 700;
}
.hud-home-chat-text {
  font-family: var(--hud-font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  min-height: 3em;
}
.hud-home-chat-text .caret {
  display: inline-block;
  width: 0.45rem;
  height: 1em;
  background: var(--hud-accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: hud-caret 1s steps(1) infinite;
}

/* Alchemist image demo — narrower variant of .demo-image bones */
.hud-home-image-demo {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 220px;
}
.hud-home-image-demo .prompt-tag {
  font-family: var(--hud-font-mono);
  font-size: 0.72rem;
  color: var(--hud-accent);
  padding: 0.3rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--hud-line);
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.hud-home-image-demo .image-stack {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 180px;
  aspect-ratio: 1.4;
  overflow: hidden;
  border: 1px solid var(--hud-line-strong);
  background:
    radial-gradient(ellipse at 30% 40%, rgb(from var(--hud-accent) r g b / 0.18), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgb(from var(--hud-caution) r g b / 0.18), transparent 65%),
    var(--hud-surface);
  background-size: 220% 220%;
  animation: hud-blob 8s ease-in-out infinite;
}
.hud-home-image-demo .slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.hud-home-image-demo .slot.active {
  animation: hud-slot-render 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 1;
}
.hud-home-image-demo .slot.loaded { background: var(--hud-surface); }
@media (prefers-reduced-motion: reduce) {
  .hud-home-image-demo .slot.active { animation: none; opacity: 1; }
}

/* ==================================================================
   TREATMENT CARDS — three specimen cards with custom inline animated SVG
   ================================================================== */
.hud-treatments {
  padding: 4rem 1.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}
.hud-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.hud-section-header .hud-scene-tag {
  display: inline-block;
  margin-bottom: 1rem;
}
.hud-treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .hud-treatment-grid { grid-template-columns: 1fr; }
}

.hud-treatment {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: var(--hud-surface);
  border: 1px solid var(--hud-line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.25s var(--hud-ease), transform 0.25s var(--hud-ease), box-shadow 0.25s var(--hud-ease);
}
.hud-treatment::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hud-accent), transparent);
  opacity: 0.55;
}
@media (hover: hover) {
  .hud-treatment:hover {
    border-color: rgb(from var(--hud-accent) r g b / 0.55);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgb(from var(--hud-accent) r g b / 0.1);
  }
  .hud-treatment:hover .hud-treatment-icon { transform: scale(1.04); }
}
.hud-treatment .hud-specimen-label {
  font-family: var(--hud-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-text-ghost);
}
.hud-treatment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88px;
  margin: 0.5rem 0;
  transition: transform 0.3s var(--hud-ease);
}
.hud-treatment-icon svg {
  width: auto;
  height: 100%;
  max-width: 140px;
  color: var(--hud-accent);
  overflow: visible;
}
.hud-treatment h3 {
  font-family: var(--hud-font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}
.hud-treatment p {
  font-family: var(--hud-font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--hud-text-dim);
  margin: 0;
  flex: 1;
}
.hud-treatment-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--hud-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hud-accent);
  font-weight: 700;
  transition: transform 0.2s var(--hud-ease);
}
.hud-treatment:hover .hud-treatment-cta { transform: translateX(4px); }

/* SVG icon animations */
@media (prefers-reduced-motion: no-preference) {
  /* Chat: second bubble pulses in */
  .hud-treatment-icon[data-treatment="chat"] .bubble-1 {
    animation: hud-fade-up 3.5s ease-in-out infinite;
  }
  .hud-treatment-icon[data-treatment="chat"] .bubble-2 {
    animation: hud-fade-up 3.5s ease-in-out infinite;
    animation-delay: 0.6s;
  }
  /* Image grid: one square brightens at a time */
  .hud-treatment-icon[data-treatment="image"] .cell {
    animation: hud-cell-pulse 4s ease-in-out infinite;
  }
  .hud-treatment-icon[data-treatment="image"] .cell:nth-child(1) { animation-delay: 0s; }
  .hud-treatment-icon[data-treatment="image"] .cell:nth-child(2) { animation-delay: 0.3s; }
  .hud-treatment-icon[data-treatment="image"] .cell:nth-child(3) { animation-delay: 0.6s; }
  .hud-treatment-icon[data-treatment="image"] .cell:nth-child(4) { animation-delay: 0.9s; }
  .hud-treatment-icon[data-treatment="image"] .cell:nth-child(5) { animation-delay: 1.2s; }
  .hud-treatment-icon[data-treatment="image"] .cell:nth-child(6) { animation-delay: 1.5s; }
  .hud-treatment-icon[data-treatment="image"] .cell:nth-child(7) { animation-delay: 1.8s; }
  .hud-treatment-icon[data-treatment="image"] .cell:nth-child(8) { animation-delay: 2.1s; }
  .hud-treatment-icon[data-treatment="image"] .cell:nth-child(9) { animation-delay: 2.4s; }
  /* Sign: stamp drops + check appears */
  .hud-treatment-icon[data-treatment="sign"] .stamp {
    animation: hud-stamp-in 4s ease-in-out infinite;
    transform-origin: center;
  }
  .hud-treatment-icon[data-treatment="sign"] .sig-line {
    animation: hud-draw-line 4s ease-in-out infinite;
    stroke-dasharray: 80;
  }
}
@keyframes hud-fade-up {
  0%, 25%   { opacity: 0; transform: translateY(4px); }
  35%, 70% { opacity: 1; transform: translateY(0); }
  85%, 100% { opacity: 0; transform: translateY(-2px); }
}
@keyframes hud-cell-pulse {
  0%, 60%, 100% { opacity: 0.25; }
  10%, 30%      { opacity: 1; }
}
@keyframes hud-stamp-in {
  0%, 60%   { opacity: 0; transform: scale(1.6) rotate(-15deg); }
  70%       { opacity: 1; transform: scale(0.95) rotate(-8deg); }
  80%, 95%  { opacity: 1; transform: scale(1) rotate(-8deg); }
  100%      { opacity: 0; transform: scale(1) rotate(-8deg); }
}
@keyframes hud-draw-line {
  0%, 20%   { stroke-dashoffset: 80; }
  45%, 100% { stroke-dashoffset: 0; }
}

/* ==================================================================
   WHY SICKLIEST — mini visualizations replacing the emoji grid
   ================================================================== */

/* Override the legacy .why-card to read like a HUD specimen on the hud-page. */
body.hud-page .why-card {
  position: relative;
  background: var(--hud-surface);
  border: 1px solid var(--hud-line);
  padding: 1.75rem 1.5rem;
  overflow: hidden;
  transition: border-color 0.25s var(--hud-ease), transform 0.25s var(--hud-ease);
}
body.hud-page .why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hud-accent), transparent);
  opacity: 0.5;
}
@media (hover: hover) {
  body.hud-page .why-card:hover {
    border-color: rgb(from var(--hud-accent) r g b / 0.5);
    transform: translateY(-2px);
  }
}
body.hud-page .why-card h3 {
  font-family: var(--hud-font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
}
body.hud-page .why-card p {
  font-family: var(--hud-font-body);
  color: var(--hud-text-dim);
}

/* Visualization wrapper — replaces .why-icon */
body.hud-page .why-card .why-viz {
  height: 64px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* CHECKLIST — three rows tick from □ to ▣ left-to-right */
.hud-why-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}
.hud-why-checklist .row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hud-font-mono);
  font-size: 0.85rem;
  color: var(--hud-text-dim);
  opacity: 0;
  animation: hud-check-row 5s ease-in-out infinite;
}
.hud-why-checklist .row:nth-child(1) { animation-delay: 0.3s; }
.hud-why-checklist .row:nth-child(2) { animation-delay: 0.9s; }
.hud-why-checklist .row:nth-child(3) { animation-delay: 1.5s; }
.hud-why-checklist .row .box {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 1.5px solid var(--hud-accent);
  position: relative;
  flex-shrink: 0;
}
.hud-why-checklist .row.checked .box::after {
  content: '✓';
  position: absolute;
  inset: -2px 0 0 1px;
  font-size: 0.95rem;
  color: var(--hud-accent);
  font-weight: 700;
  line-height: 1;
}
@keyframes hud-check-row {
  0%, 4%   { opacity: 0; }
  10%, 80% { opacity: 1; color: var(--text); }
  90%, 100% { opacity: 0.4; }
}

/* GAUGE — sweeping accent line + "<1s" label */
.hud-why-gauge {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hud-why-gauge .bar {
  position: relative;
  height: 6px;
  background: var(--bg);
  border: 1px solid var(--hud-line);
  overflow: hidden;
}
.hud-why-gauge .bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--hud-accent), rgb(from var(--hud-accent) r g b / 0.4));
  box-shadow: 0 0 12px var(--hud-glow);
  animation: hud-gauge-sweep 4s ease-in-out infinite;
}
.hud-why-gauge .label {
  font-family: var(--hud-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hud-accent);
  display: flex;
  justify-content: space-between;
}
@keyframes hud-gauge-sweep {
  0%, 5%   { width: 0%; }
  20%      { width: 95%; }
  85%      { width: 95%; }
  100%     { width: 0%; }
}

/* PADLOCK SVG with stroke-dasharray draw */
.hud-why-padlock {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hud-why-padlock svg {
  width: 56px;
  height: 56px;
  color: var(--hud-accent);
  filter: drop-shadow(0 0 8px rgb(from var(--hud-accent) r g b / 0.5));
}
.hud-why-padlock svg .lock-stroke {
  stroke: var(--hud-accent);
  stroke-width: 2;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: hud-draw-padlock 3.5s ease-out forwards;
}
@keyframes hud-draw-padlock {
  to { stroke-dashoffset: 0; }
}

/* TIERS — three vertical bars OTC / Smart / Premier */
.hud-why-tiers {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 100%;
}
.hud-why-tiers .tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.hud-why-tiers .tier .bar {
  width: 18px;
  background: var(--hud-accent);
  box-shadow: 0 0 8px rgb(from var(--hud-accent) r g b / 0.4);
}
.hud-why-tiers .tier:nth-child(1) .bar { height: 22px; }
.hud-why-tiers .tier:nth-child(2) .bar { height: 38px; }
.hud-why-tiers .tier:nth-child(3) .bar { height: 52px; }
.hud-why-tiers .tier .label {
  font-family: var(--hud-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hud-text-dim);
}
@media (prefers-reduced-motion: no-preference) {
  .hud-why-tiers .tier .bar {
    animation: hud-bar-pulse 3.5s ease-in-out infinite;
  }
  .hud-why-tiers .tier:nth-child(2) .bar { animation-delay: 0.4s; }
  .hud-why-tiers .tier:nth-child(3) .bar { animation-delay: 0.8s; }
}
@keyframes hud-bar-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ZERO — big mono $0 with ticker underneath */
.hud-why-zero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.hud-why-zero .price {
  font-family: var(--hud-font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hud-accent);
  line-height: 1;
  text-shadow: 0 0 14px rgb(from var(--hud-accent) r g b / 0.4);
}
.hud-why-zero .price sup {
  font-size: 0.85rem;
  color: var(--hud-text-dim);
  font-weight: 500;
  margin-left: 0.15em;
  vertical-align: top;
  letter-spacing: 0.05em;
}
.hud-why-zero .ticker {
  font-family: var(--hud-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-text-dim);
}

@media (prefers-reduced-motion: reduce) {
  .hud-treatment-icon[data-treatment="chat"] .bubble-1,
  .hud-treatment-icon[data-treatment="chat"] .bubble-2,
  .hud-treatment-icon[data-treatment="image"] .cell,
  .hud-treatment-icon[data-treatment="sign"] .stamp,
  .hud-treatment-icon[data-treatment="sign"] .sig-line,
  .hud-why-checklist .row,
  .hud-why-gauge .bar::after,
  .hud-why-tiers .tier .bar { animation: none !important; }
  .hud-why-checklist .row { opacity: 1; color: var(--text); }
  .hud-why-padlock svg .lock-stroke { stroke-dashoffset: 0; }
}

/* ==================================================================
   PRODUCT CARDS as anchors — slide-in entry, click affordance, span CTA
   ================================================================== */
a.hud-home-product { text-decoration: none; color: inherit; cursor: pointer; }
.hud-home-product .hud-cta { pointer-events: none; } /* whole card is the link */

@media (prefers-reduced-motion: no-preference) {
  .hud-home-product--remedy {
    animation: hud-slide-from-left 1.25s cubic-bezier(0.16, 0.84, 0.24, 1) 0.2s both;
  }
  .hud-home-product--alchemist {
    animation: hud-slide-from-right 1.25s cubic-bezier(0.16, 0.84, 0.24, 1) 0.45s both;
  }
  @keyframes hud-slide-from-left {
    0%   { opacity: 0; transform: translateX(-110px) scale(0.94) rotate(-1.5deg); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
  }
  @keyframes hud-slide-from-right {
    0%   { opacity: 0; transform: translateX(110px) scale(0.94) rotate(1.5deg); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
  }

  /* Hero title characters — replace static Oswald with a dramatic stamp-in.
     Uses an animation per line, not per character, so it doesn't interfere
     with text wrapping on mobile. */
  .hero-title-main {
    animation: hud-title-stamp 0.9s cubic-bezier(0.18, 0.9, 0.18, 1) both;
  }
  .hero-title-main:nth-of-type(1) { animation-delay: 0.05s; }
  .hero-title-main:nth-of-type(2) { animation-delay: 0.25s; }
  .hero-title-sub                 { animation: hud-title-stamp 0.7s cubic-bezier(0.18, 0.9, 0.18, 1) 0.5s both; }
  .warning-badge                  { animation: hud-warning-flicker 1.2s ease-out 0.05s both; }

  @keyframes hud-title-stamp {
    0%   { opacity: 0; transform: scale(1.18) translateY(-12px); letter-spacing: 0.1em; filter: blur(8px); }
    60%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: scale(1) translateY(0); letter-spacing: normal; filter: blur(0); }
  }
  @keyframes hud-warning-flicker {
    0%   { opacity: 0; transform: scale(0.96); }
    20%  { opacity: 1; }
    25%  { opacity: 0.4; }
    30%  { opacity: 1; }
    50%  { opacity: 0.7; }
    55%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
  }
}

/* ==================================================================
   SCROLL-REVEAL — sections fade up + glow as they enter viewport.
   Set initial state, JS adds .hud-revealed to play forward.
   Longer durations + bigger travel so the motion is impossible to miss.
   ================================================================== */
.hud-reveal {
  opacity: 0;
  transform: translateY(110px) scale(0.97);
  transition:
    opacity 1.6s cubic-bezier(0.16, 0.7, 0.18, 1),
    transform 1.6s cubic-bezier(0.16, 0.7, 0.18, 1);
  will-change: opacity, transform;
}
.hud-reveal.hud-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* The Why cards have their own stagger pattern — JS adds revealed in waves */
.why-card.hud-reveal {
  opacity: 0;
  transform: translateY(80px) scale(0.92);
  transition:
    opacity 1.3s cubic-bezier(0.16, 0.7, 0.18, 1),
    transform 1.3s cubic-bezier(0.16, 0.7, 0.18, 1);
}
.why-card.hud-reveal.hud-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Dashboard cells stagger in too */
.impact-stat.hud-reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.94);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 0.7, 0.18, 1);
}
.impact-stat.hud-reveal.hud-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Ongoing accent-border pulse — sections stay alive after their entry */
@media (prefers-reduced-motion: no-preference) {
  .hud-treatments,
  .why-section,
  .impact-section,
  .three-models-section {
    position: relative;
  }
  .hud-treatments::before,
  .why-section::before,
  .impact-section::before,
  .three-models-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent,
      rgb(from var(--hud-accent) r g b / 0.5),
      transparent);
    animation: hud-section-rim 5s ease-in-out infinite;
    pointer-events: none;
  }
  .why-section::before  { animation-delay: 1.2s; }
  .impact-section::before { animation-delay: 2.4s; }
  .three-models-section::before { animation-delay: 3.6s; }
  @keyframes hud-section-rim {
    0%, 100% { opacity: 0.25; transform: scaleX(0.8); }
    50%      { opacity: 1;    transform: scaleX(1); }
  }
}

/* When a section enters, briefly amplify its accent border for a "land" feel */
@media (prefers-reduced-motion: no-preference) {
  .hud-revealed.hud-treatments,
  .hud-revealed.three-models-section,
  .hud-revealed.why-section,
  .hud-revealed.impact-section,
  .hud-revealed.hud-final {
    animation: hud-section-glow 1.2s ease-out;
  }
  @keyframes hud-section-glow {
    0%   { box-shadow: 0 0 0 rgba(0,0,0,0); }
    40%  { box-shadow: 0 0 60px rgb(from var(--hud-accent) r g b / 0.25); }
    100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud-reveal,
  .why-card.hud-reveal,
  .impact-stat.hud-reveal { opacity: 1; transform: none; transition: none; }
  .hero-title-main, .hero-title-sub, .warning-badge { animation: none; }
}

/* ==================================================================
   WHY SICKLIEST — center every visualization on its card
   ================================================================== */
body.hud-page .why-card .why-viz {
  justify-content: center;
  align-items: center;
}
.hud-why-checklist {
  width: max-content;
  max-width: 100%;
}
.hud-why-gauge {
  max-width: 220px;
  width: 100%;
}
.hud-why-tiers {
  justify-content: center;
}
.hud-why-zero {
  align-items: center;
  text-align: center;
}

/* CROSS-DEVICE RESUME viz */
.hud-why-resume {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hud-why-resume svg {
  width: 110px;
  height: 56px;
  color: var(--hud-accent);
  filter: drop-shadow(0 0 6px rgb(from var(--hud-accent) r g b / 0.35));
}
@media (prefers-reduced-motion: no-preference) {
  .hud-why-resume .resume-arrow {
    stroke-dasharray: 3 4;
    animation: hud-arrow-march 1.2s linear infinite;
  }
  @keyframes hud-arrow-march {
    from { stroke-dashoffset: 7; }
    to   { stroke-dashoffset: 0; }
  }
}

/* ==================================================================
   PRODUCTIVITY DASHBOARD — custom SVG icons, animated
   ================================================================== */
body.hud-page .impact-stat-icon.prod-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin-bottom: 0.6rem;
}
body.hud-page .impact-stat-icon.prod-icon svg {
  width: 56px;
  height: 56px;
  color: var(--hud-accent);
  filter: drop-shadow(0 0 8px rgb(from var(--hud-accent) r g b / 0.45));
}

@media (prefers-reduced-motion: no-preference) {
  /* HOURS — clock minute hand sweeps */
  .prod-icon[data-icon="hours"] .prod-clock-minute {
    transform-origin: 24px 25px;
    animation: hud-clock-minute 6s linear infinite;
  }
  .prod-icon[data-icon="hours"] .prod-clock-hour {
    transform-origin: 24px 25px;
    animation: hud-clock-hour 36s linear infinite;
  }
  @keyframes hud-clock-minute { to { transform: rotate(360deg); } }
  @keyframes hud-clock-hour   { to { transform: rotate(360deg); } }

  /* TASKS — checks draw in sequence */
  .prod-icon[data-icon="tasks"] .prod-check-1,
  .prod-icon[data-icon="tasks"] .prod-check-2,
  .prod-icon[data-icon="tasks"] .prod-check-3 {
    stroke-dasharray: 16;
    stroke-dashoffset: 16;
    animation: hud-check-draw 4s ease-in-out infinite;
  }
  .prod-icon[data-icon="tasks"] .prod-check-1 { animation-delay: 0s; }
  .prod-icon[data-icon="tasks"] .prod-check-2 { animation-delay: 0.5s; }
  .prod-icon[data-icon="tasks"] .prod-check-3 { animation-delay: 1s; }
  @keyframes hud-check-draw {
    0%, 5%   { stroke-dashoffset: 16; }
    20%, 80% { stroke-dashoffset: 0; }
    95%, 100% { stroke-dashoffset: 16; }
  }

  /* FILES — scan-line sweeps top to bottom */
  .prod-icon[data-icon="files"] .prod-scan {
    animation: hud-file-scan 3s ease-in-out infinite;
  }
  @keyframes hud-file-scan {
    0%   { transform: translateY(0);  opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(22px); opacity: 0; }
  }

  /* IMAGES — mountain glints */
  .prod-icon[data-icon="images"] .prod-mountain {
    animation: hud-mountain-glint 4s ease-in-out infinite;
  }
  @keyframes hud-mountain-glint {
    0%, 100% { fill-opacity: 0.18; }
    50%      { fill-opacity: 0.45; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .prod-icon[data-icon="hours"] .prod-clock-minute,
  .prod-icon[data-icon="hours"] .prod-clock-hour,
  .prod-icon[data-icon="tasks"] .prod-check-1,
  .prod-icon[data-icon="tasks"] .prod-check-2,
  .prod-icon[data-icon="tasks"] .prod-check-3,
  .prod-icon[data-icon="files"] .prod-scan,
  .prod-icon[data-icon="images"] .prod-mountain,
  .hud-why-resume .resume-arrow,
  .hud-home-product--remedy,
  .hud-home-product--alchemist { animation: none !important; }
  .prod-icon[data-icon="tasks"] .prod-check-1,
  .prod-icon[data-icon="tasks"] .prod-check-2,
  .prod-icon[data-icon="tasks"] .prod-check-3 { stroke-dashoffset: 0; }
}
