/* =============================================================
   Syndrix — Landing page styles
   Register: brand · Color strategy: committed (green accent
   carries identity; used only where load-bearing). Palette is
   spec-locked; hex kept alongside OKLCH for traceability.
   ============================================================= */

/* --- Tokens ----------------------------------------------------- */

:root {
  /* Spec-locked palette (hex). */
  --color-base:         #0A0B0D;
  --color-surface:      #15171A;
  --color-surface-2:    #1B1E22;
  --color-border:       #22252A;
  --color-border-strong:#2D3138;
  --color-accent:       #2FE39A;
  --color-accent-muted: #7FEFC5;
  --color-accent-deep:  #1FB67B;
  --color-text:         #E8EAED;
  --color-muted:        #8A9099;
  --color-dim:          #5A6069;
  --color-danger:       #FF6B7A;

  /* Typography */
  --font-sans: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Scale (type: 1.25 ratio). Body fixed, display fluid. */
  --fs-xs:   0.75rem;   /* 12 */
  --fs-sm:   0.875rem;  /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md:   1.125rem;  /* 18 */
  --fs-lg:   1.375rem;  /* 22 */
  --fs-xl:   clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);  /* 28-42 */
  --fs-2xl:  clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);   /* 36-60 */
  --fs-3xl:  clamp(2.75rem, 1.6rem + 4.8vw, 5rem);      /* 44-80 */

  --lh-tight: 1.08;
  --lh-snug:  1.22;
  --lh-body:  1.55;

  /* Spacing (4pt base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --page-gutter: clamp(1.25rem, 3vw, 3rem);
  --content-max: 1200px;
  --reading-max: 68ch;

  /* Radii */
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 8px;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;

  /* Depth */
  --z-header: 50;
  --z-skip:   100;
}

/* --- Reset ------------------------------------------------------ */

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-base);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: 0.005em; /* compensate for light-on-dark */
  font-kerning: normal;
  font-feature-settings: 'ss01', 'cv01';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection {
  background: var(--color-accent);
  color: var(--color-base);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-1);
}

/* Subtle base texture so flat black doesn't read as void */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 227, 154, 0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(47, 227, 154, 0.035), transparent 55%);
  z-index: -1;
}

/* --- Utilities -------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: var(--z-skip);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: var(--color-base);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  transition: top var(--dur-base) var(--ease-out-quart);
}
.skip-link:focus { top: var(--space-4); }

.muted { color: var(--color-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow--live { color: var(--color-accent-muted); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(47, 227, 154, 0.15);
  animation: pulse 2.2s var(--ease-out-quart) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 227, 154, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(47, 227, 154, 0.02); }
}

/* --- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: var(--radius-2);
  transition: background-color var(--dur-base) var(--ease-out-quart),
              color var(--dur-base) var(--ease-out-quart),
              transform var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-base) var(--ease-out-quart);
  will-change: transform;
}
.btn__bracket { color: var(--color-accent-deep); }
.btn__label   { font-weight: 500; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-base);
}
.btn--primary .btn__bracket { color: var(--color-base); opacity: 0.45; }
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-muted);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  background: transparent;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent-muted);
}

.btn--wide { padding-inline: var(--space-8); }

/* --- Site header ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out-quart),
              background var(--dur-base) var(--ease-out-quart);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--color-border);
  background: rgba(10, 11, 13, 0.92);
}
.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
}
.logo__svg {
  /* Width derives from height via viewBox aspect ratio (~3.35:1). */
  height: clamp(30px, 2.4vw, 36px);
  width: auto;
  display: block;
  overflow: visible;
}
.logo__svg .logo__word { fill: currentColor; }
.logo__svg .logo__accent { fill: var(--color-accent); }
.logo__svg .logo__stroke {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 9;
  stroke-miterlimit: 10;
}
/* The green node trio gets a subtle pulse-out on hover — feels like a
   pinged data graph, not a logo wiggle. */
.logo__svg .logo__accent circle,
.logo__svg .logo__accent polygon {
  transition: transform var(--dur-base) var(--ease-out-expo);
  transform-origin: center;
  transform-box: fill-box;
}
.logo:hover .logo__svg .logo__accent circle { transform: scale(1.12); }
.logo:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 2px; }

.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;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.site-nav a {
  color: var(--color-muted);
  transition: color var(--dur-base) var(--ease-out-quart);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--color-text); }
.site-nav__cta {
  color: var(--color-base) !important;
  background: var(--color-accent);
  padding: 8px 14px;
  border-radius: var(--radius-2);
}
.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  background: var(--color-accent-muted) !important;
}

@media (max-width: 640px) {
  .site-nav a:not(.site-nav__cta) { display: none; }
}

/* --- Hero ------------------------------------------------------- */

.hero {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) var(--page-gutter) clamp(4rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
    gap: var(--space-16);
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(6rem, 10vw, 10rem);
  }
}

.hero__body > * + * { margin-top: var(--space-6); }

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  margin-top: var(--space-5);
  max-width: 18ch;
}
.hero__title-em {
  color: var(--color-accent);
  font-style: normal;
}
.hero__lede {
  font-size: var(--fs-md);
  color: var(--color-muted);
  max-width: 52ch;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* Hero stream preview */
.hero__stream {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.02) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.hero__stream::after {
  /* thin scan-line across the top */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 50%, transparent);
  opacity: 0.4;
}
.hero__stream-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  letter-spacing: 0.05em;
}
.hero__stream-title { color: var(--color-accent-muted); }
.hero__stream-endpoint { font-size: calc(var(--fs-xs) - 1px); }
.hero__stream-body {
  margin: 0;
  padding: 16px;
  min-height: 210px;
  max-height: 260px;
  overflow: hidden;
  color: var(--color-text);
  font-size: calc(var(--fs-xs) + 0.5px);
  line-height: 1.7;
  white-space: pre;
  letter-spacing: 0;
}
.hero__stream-body .time  { color: var(--color-dim); }
.hero__stream-body .sport { color: var(--color-accent-muted); }
.hero__stream-body .evt   { color: var(--color-text); }
.hero__stream-body .meta  { color: var(--color-muted); }
.hero__stream-body .row {
  display: block;
  opacity: 0;
  animation: rowIn 520ms var(--ease-out-expo) forwards;
  position: relative;
}
.hero__stream-body .row.row--fresh::before {
  /* Briefly tints the new row accent-green — visual link to the ping that just fired on the globe */
  content: '';
  position: absolute;
  inset: 0 -8px 0 -10px;
  background: linear-gradient(90deg, rgba(47,227,154,0.18), rgba(47,227,154,0));
  border-left: 2px solid var(--color-accent);
  pointer-events: none;
  animation: rowFlash 1100ms var(--ease-out-expo) forwards;
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rowFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__stream-body .row { animation: none; opacity: 1; }
  .hero__stream-body .row.row--fresh::before { animation: none; opacity: 0; }
}
.hero__stream-foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  letter-spacing: 0.04em;
}
.hero__stream-foot .plus { color: var(--color-accent); }
.hero__stream-foot .dot  { color: var(--color-dim); }

/* --- Hero globe (live source visualizer) ------------------------ */

.hero__globe {
  position: relative;
  /* Square box centered within the panel — ensures the sphere reads as a globe,
     not as a small circle floating in a wide rectangle. */
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(47, 227, 154, 0.05), transparent 65%),
    var(--color-base);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  isolation: isolate;
}

.hero__globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__globe-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--color-dim);
}

.hero__globe-meta {
  position: absolute;
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 10px 14px;
}
.hero__globe-meta--top { top: 4px; left: 32px; }
.hero__globe-meta--bot { bottom: 4px; right: 32px; }
.hero__globe-meta-key { color: var(--color-dim); }
.hero__globe-meta-val { color: var(--color-accent-muted); font-variant-numeric: tabular-nums; }

/* Faint corner-axis ticks — give the panel a "scope/instrument" feel */
.hero__globe-axes span {
  position: absolute;
  background: var(--color-border-strong);
}
.hero__globe-axes span:nth-child(1) { top: 12px;    left: 12px;    width: 14px; height: 1px; }
.hero__globe-axes span:nth-child(2) { top: 12px;    left: 12px;    width: 1px;  height: 14px; }
.hero__globe-axes span:nth-child(3) { bottom: 12px; right: 12px;   width: 14px; height: 1px; }
.hero__globe-axes span:nth-child(4) { bottom: 12px; right: 12px;   width: 1px;  height: 14px; }

/* Smaller, denser ticker now that the globe is the visual lead */
.hero__stream-body {
  min-height: 140px;
  max-height: 168px;
}

/* --- Section primitives ---------------------------------------- */

main > section + section { border-top: 1px solid var(--color-border); }
main > section:not(.hero) {
  padding: clamp(4rem, 8vw, 8rem) var(--page-gutter);
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 58ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
}
.section-lede {
  color: var(--color-muted);
  font-size: var(--fs-md);
  max-width: 54ch;
}

/* --- Section 2: feed ------------------------------------------- */

.section-head--feed { max-width: 60ch; }

/* Wrapper hosts the data river — keeps absolute positioning scoped */
.feed-panels-wrap {
  position: relative;
}

.feed-panels {
  list-style: none;
  display: grid;
  /* `minmax(0, 1fr)` prevents grid items from expanding to fit their largest
     descendant (the marquee track is intentionally wider than the viewport,
     and without this rule the panel would inherit that width). */
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

/* --- Data river: scroll-driven progress thread ------------------ */

@property --river-progress {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: true;
}

@property --river-head-opacity {
  syntax: '<number>';
  initial-value: 0;
  inherits: true;
}

.feed-panels-wrap {
  /* Default = filled. Browsers with scroll-driven animations animate from 0 → 100;
     browsers without (Firefox today) keep the static filled fallback below. */
  --river-progress: 100%;
  --river-head-opacity: 0;
}

.feed-river {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  pointer-events: none;
  z-index: 0;
  /* Fill: accent above the progress point, border below */
  background:
    linear-gradient(
      to bottom,
      var(--color-accent-deep) 0%,
      var(--color-accent) calc(var(--river-progress) - 0.1%),
      var(--color-border) var(--river-progress),
      var(--color-border) 100%
    );
}

.feed-river__head {
  position: absolute;
  left: 50%;
  top: var(--river-progress);
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow:
    0 0 0 3px rgba(47, 227, 154, 0.14),
    0 0 22px 5px rgba(47, 227, 154, 0.55),
    0 0 0 1px var(--color-accent-muted) inset;
  opacity: var(--river-head-opacity);
}
.feed-river__head::before {
  /* Fine inner accent for definition at small sizes */
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--color-accent-muted);
}

/* Mobile: keep the river hidden — the panels stack and there's no gutter */
@media (max-width: 839px) {
  .feed-river { display: none; }
}

/* Scroll-driven fill — animation lives on the wrap so progress inherits down. */
@supports (animation-timeline: view()) {
  .feed-panels-wrap {
    animation: river-progress linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  @keyframes river-progress {
    0%   { --river-progress: 0%;   --river-head-opacity: 0; }
    6%   { --river-progress: 6%;   --river-head-opacity: 1; }
    94%  { --river-progress: 94%;  --river-head-opacity: 1; }
    100% { --river-progress: 100%; --river-head-opacity: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-panels-wrap {
    --river-progress: 100%;
    --river-head-opacity: 0;
    animation: none;
  }
  .feed-river__head { display: none; }
}

/* Position the river relative to the panel content edge — push it further into the
   gutter as the viewport widens so it never crowds the text. */
@media (min-width: 840px) {
  .feed-river {
    left: clamp(-72px, -3vw, -36px);
  }
}


.panel {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  min-width: 0;
}
.panel:last-child { border-bottom: 1px solid var(--color-border); }

.panel__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  grid-column: 1 / -1;
}
.panel__index { color: var(--color-dim); }
.panel__key   { color: var(--color-accent); }

.panel__text { display: grid; gap: var(--space-4); max-width: 42ch; }
.panel__title {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
}
.panel__body { color: var(--color-muted); font-size: var(--fs-md); line-height: 1.55; }
.panel__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.panel__tags li {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--color-muted);
  padding: 4px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
}

.panel__viz {
  min-height: clamp(220px, 32vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Zigzag layout at ≥840px — text | viz alternating */
@media (min-width: 840px) {
  .feed-panels {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(3rem, 6vw, 6rem);
    padding: clamp(3.5rem, 7vw, 6rem) 0;
  }
  .panel:nth-child(even) .panel__text { order: 2; }
  .panel:nth-child(even) .panel__viz  { order: 1; }
  .panel__meta {
    grid-column: 1 / -1;
    margin-bottom: var(--space-3);
  }
}

/* --- Entry animation (scroll reveal) ---------------------------- */

.panel__text,
.panel__viz,
.panel__meta {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 600ms var(--ease-out-expo),
    transform 700ms var(--ease-out-expo);
}
.panel[data-visible="true"] .panel__meta { opacity: 1; transform: none; transition-delay:  20ms; }
.panel[data-visible="true"] .panel__text { opacity: 1; transform: none; transition-delay: 120ms; }
.panel[data-visible="true"] .panel__viz  { opacity: 1; transform: none; transition-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
  .panel__text,
  .panel__viz,
  .panel__meta { opacity: 1; transform: none; transition: none; }
}

/* =========== Visualizations =========== */

.viz {
  width: 100%;
  max-width: 560px;
  position: relative;
}

/* --- viz: events (token stream from a source node) ------------- */
.viz--events {
  --node-size: clamp(36px, 11vw, 56px);
  --node-gap: clamp(10px, 4vw, 28px);
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3);
  overflow: hidden;
  padding: clamp(0.875rem, 2.4vw, 2rem) clamp(0.625rem, 2vw, 1.5rem);
  min-height: clamp(180px, 26vw, 280px);
  display: flex;
  align-items: stretch;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.token-stream {
  position: relative;
  width: 100%;
  min-height: 180px;
}
.token-stream__node {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--node-size);
  height: var(--node-size);
  display: grid;
  place-items: center;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-base);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: clamp(9px, 2.4vw, 11px);
  color: var(--color-accent);
  letter-spacing: 0.12em;
}
.token-stream__node-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  opacity: 0.35;
  animation: tokenNodePulse 2.2s var(--ease-out-quart) infinite;
}
.token-stream__guides {
  position: absolute;
  left: calc(var(--node-size) + var(--node-gap));
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 32px 0;
  pointer-events: none;
}
.token-stream__guides span {
  display: block;
  height: 1px;
  background: var(--color-border);
}
.token-stream__pills {
  position: absolute;
  left: calc(var(--node-size) + var(--node-gap));
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.token-pill {
  position: absolute;
  left: 0;
  top: calc(24% + var(--lane, 0) * 22%);
  padding: clamp(3px, 0.7vw, 4px) clamp(8px, 2vw, 11px);
  background: var(--color-surface);
  border: 1px solid var(--color-accent-deep);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.4vw, 12px);
  color: var(--color-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
}
.panel[data-visible="true"] .token-pill {
  animation: tokenFly 4.2s linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes tokenNodePulse {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}
/* Pill exits the right edge cleanly via translate; works regardless of pill width. */
@keyframes tokenFly {
  0%   { left: 0%;   transform: translateX(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; transform: translateX(-100%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .token-stream__node-ring { animation: none; opacity: 0.25; }
  .panel[data-visible="true"] .token-pill {
    animation: none;
    opacity: 1;
  }
  .token-pill:nth-of-type(1) { left: 12%; }
  .token-pill:nth-of-type(2) { left: 28%; }
  .token-pill:nth-of-type(3) { left: 44%; }
  .token-pill:nth-of-type(4) { left: 60%; }
  .token-pill:nth-of-type(5) { left: 76%; }
  .token-pill:nth-of-type(6) { left: 88%; }
}

/* --- viz: sports (sport-name marquee strip) -------------------- */
.viz--sports {
  display: flex;
  align-items: center;
  min-height: clamp(220px, 26vw, 280px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3);
  overflow: hidden;
  padding: 0;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.marquee-strip {
  position: relative;
  width: 100%;
  height: 64px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.marquee-strip__focus {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: clamp(96px, 28vw, 130px);
  transform: translateX(-50%);
  background: rgba(47,227,154,0.06);
  border-left: 1px solid var(--color-accent-deep);
  border-right: 1px solid var(--color-accent-deep);
  pointer-events: none;
  z-index: 1;
}
.marquee-strip__track {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-muted);
  letter-spacing: 0.06em;
}
.marquee-strip__track span {
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(16px, 5vw, 28px);
  position: relative;
}
.marquee-strip__track span::after {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--color-accent);
}
.marquee-strip__track span:last-child::after { content: ''; }
.panel[data-visible="true"] .marquee-strip__track {
  animation: marqueeRoll 36s linear infinite;
}
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .panel[data-visible="true"] .marquee-strip__track { animation: none; transform: translateX(-12%); }
}

/* --- viz: enrichment (raw → enriched pipe) --------------------- */
.viz--enrichment {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.pipe {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-family: var(--font-mono);
}
.pipe__block {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2);
  background: var(--color-base);
}
.pipe__block--enriched {
  border-color: var(--color-accent-deep);
  background: linear-gradient(180deg, rgba(47,227,154,0.04), rgba(47,227,154,0));
}
.pipe__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.pipe__row {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  padding: 3px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.pipe__ext {
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 380ms var(--ease-out-quart),
    transform 380ms var(--ease-out-quart);
}
.panel[data-visible="true"] .pipe__ext {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--row, 0) * 240ms + 600ms);
}
.pipe__arrow {
  display: grid;
  place-items: center;
  height: 20px;
  position: relative;
}
.pipe__arrow span {
  display: block;
  width: 1px;
  height: 16px;
  background: linear-gradient(to bottom, var(--color-border-strong), var(--color-accent));
  position: relative;
}
.pipe__arrow span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--color-accent);
}
@media (prefers-reduced-motion: reduce) {
  .pipe__ext { opacity: 1; transform: none; transition: none; }
}

/* Once panel 03 is in view, the enriched tags flash in sequence and the
   enriched block briefly glows on each beat. Cycle: 6s, three rows offset
   by 2s. Initial 1.5s delay lets the per-row entrance fade-in finish first. */
.panel[data-visible="true"][data-viz="enrichment"] .pipe__ext {
  animation: enrichmentTagFlash 6s linear infinite;
}
.panel[data-visible="true"][data-viz="enrichment"] .pipe__row[style*="--row: 0"] .pipe__ext { animation-delay: 1.5s; }
.panel[data-visible="true"][data-viz="enrichment"] .pipe__row[style*="--row: 1"] .pipe__ext { animation-delay: 3.5s; }
.panel[data-visible="true"][data-viz="enrichment"] .pipe__row[style*="--row: 2"] .pipe__ext { animation-delay: 5.5s; }
.panel[data-visible="true"][data-viz="enrichment"] .pipe__block--enriched {
  animation: enrichmentBlockPulse 2s var(--ease-out-quart) 1.5s infinite;
}
@keyframes enrichmentTagFlash {
  0%, 30%   { color: var(--color-accent); text-shadow: none; }
  33%       { color: #c8ffe6; text-shadow: 0 0 16px rgba(47, 227, 154, 0.8); }
  42%, 100% { color: var(--color-accent); text-shadow: none; }
}
@keyframes enrichmentBlockPulse {
  0%, 100%  { box-shadow: 0 0 0 1px rgba(47, 227, 154, 0.18), 0 0 26px -6px rgba(47, 227, 154, 0.35); }
  20%, 80%  { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .panel[data-visible="true"][data-viz="enrichment"] .pipe__ext,
  .panel[data-visible="true"][data-viz="enrichment"] .pipe__block--enriched {
    animation: none;
  }
}

/* --- viz: transport (two-lane diagram) ------------------------- */
.viz--transport {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.25rem, 2vw, 1.75rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.lane {
  display: grid;
  grid-template-columns: clamp(48px, 14vw, 64px) 1fr;
  align-items: center;
  gap: clamp(10px, 2.5vw, 14px);
}
.lane__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-muted);
}
.lane__track {
  position: relative;
  height: 16px;
  border-top: 1px dashed var(--color-border-strong);
  border-bottom: 1px dashed var(--color-border-strong);
  overflow: hidden;
}
.lane-pill {
  position: absolute;
  top: 0;
  height: 14px;
  background: var(--color-accent);
  border-radius: 8px;
  opacity: 0;
}
.lane--rest .lane-pill {
  width: 14px;
  right: 0;
  left: auto;
  background: transparent;
  border: 1.5px solid var(--color-accent);
  box-sizing: border-box;
}
.panel[data-visible="true"] .lane--rest .lane-pill {
  animation: laneRoundTrip 5s linear infinite;
  animation-delay: var(--delay, 0s);
}
.lane--stream .lane-pill {
  width: 18px;
  left: 0;
}
.panel[data-visible="true"] .lane--stream .lane-pill {
  animation: laneFlow 1.5s linear forwards;
}
@keyframes laneRoundTrip {
  /* request: appears at right, empty, travels right → left */
  0%   { right: 0;                  opacity: 0; background: transparent; }
  4%   { right: 0;                  opacity: 1; background: transparent; }
  46%  { right: calc(100% - 14px);  opacity: 1; background: transparent; }
  /* response: fills in at the left, travels left → right */
  54%  { right: calc(100% - 14px);  opacity: 1; background: var(--color-accent); }
  96%  { right: 0;                  opacity: 1; background: var(--color-accent); }
  100% { right: 0;                  opacity: 0; background: var(--color-accent); }
}
@keyframes laneFlow {
  0%   { left: -22px; opacity: 0.95; }
  100% { left: 100%;  opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .panel[data-visible="true"] .lane--rest .lane-pill,
  .panel[data-visible="true"] .lane--stream .lane-pill {
    animation: none;
    opacity: 1;
  }
  .lane--rest .lane-pill:nth-of-type(1) { right: 18%; background: transparent; }
  .lane--rest .lane-pill:nth-of-type(2) { right: calc(100% - 32px); background: var(--color-accent); }
  /* JS handles reduced-motion stream pill positions based on the random size pick */
}

/* --- Narrow viewport tightening (≤600px). Pull padding/rhythm tighter
   so the panel viz blocks stay legible without cropping. ---------- */
@media (max-width: 600px) {
  .viz {
    max-width: 100%;
  }
  .viz--events,
  .viz--enrichment,
  .viz--transport,
  .viz--archive {
    padding: clamp(0.75rem, 3vw, 1.25rem) clamp(0.625rem, 2.6vw, 1rem);
  }
  .viz--sports { padding: 0; }

  /* Token stream: smaller node, tighter gap, smaller pills */
  .viz--events { --node-size: clamp(32px, 10vw, 44px); }
  .token-pill { padding: 3px 8px; font-size: 10px; }
  .token-stream__node { font-size: 10px; }

  /* Marquee: shorter strip, focus narrows */
  .marquee-strip { height: 52px; }
  .marquee-strip__focus { width: clamp(72px, 22vw, 110px); }
  .marquee-strip__track span { padding: 0 14px; font-size: 13px; }

  /* Pipe */
  .pipe__row { font-size: 11px; }
  .pipe__label { font-size: 9px; }

  /* Lanes */
  .lane { grid-template-columns: clamp(40px, 12vw, 56px) 1fr; gap: 8px; }
  .lane__label { font-size: 10px; letter-spacing: 0.12em; }

  /* Ice core */
  .ice-core__bar { height: 36px; }
  .ice-core__needles { height: 30px; }
  .ice-core__callout { font-size: 9px; padding: 1px 5px; left: -16px; }
  .ice-core__years span,
  .ice-core__quarters span { font-size: 10px; }
}

/* --- viz: archive (ice core timeline) -------------------------- */
.viz--archive {
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.25rem, 2vw, 1.75rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.ice-core {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ice-core__needles {
  position: relative;
  height: 38px;
  margin-bottom: 6px;
}
.ice-core__needle {
  position: absolute;
  bottom: 0;
  left: var(--at, 50%);
  width: 1px;
  height: 0;
  background: var(--color-accent);
  transform-origin: bottom center;
}
.ice-core__needle::before {
  content: '';
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(47,227,154,0.5);
}
.panel[data-visible="true"] .ice-core__needle {
  animation: iceNeedle 6s var(--ease-out-quart) infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes iceNeedle {
  0%, 5%   { height: 0; opacity: 0; }
  10%      { opacity: 1; }
  35%, 100%{ height: 100%; opacity: 1; }
}
.ice-core__callout {
  position: absolute;
  bottom: calc(100% + 4px);
  left: -22px;
  padding: 2px 6px;
  border: 1px solid var(--color-accent-deep);
  background: var(--color-base);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
}
.panel[data-visible="true"] .ice-core__callout {
  animation: iceCallout 6s var(--ease-out-quart) infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes iceCallout {
  0%, 30%   { opacity: 0; transform: translateY(4px); }
  45%, 100% { opacity: 1; transform: translateY(0); }
}
.ice-core__bar {
  position: relative;
  height: 42px;
  border: 1px solid rgba(127,239,197,0.32);
  border-radius: var(--radius-1);
  background: linear-gradient(90deg, rgba(127,239,197,0.04), rgba(127,239,197,0.12), rgba(127,239,197,0.04));
  overflow: hidden;
}
.ice-core__bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(127,239,197,0.22) 50%, transparent 100%);
  transform: translateX(-100%);
}
.panel[data-visible="true"] .ice-core__bar::before {
  animation: iceShimmer 6s linear infinite;
}
@keyframes iceShimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.ice-core__bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(127,239,197,0.18);
  border: 1px solid rgba(127,239,197,0.4);
}
.ice-core__quarters {
  display: flex;
  justify-content: space-between;
  padding: 6px 0 0;
}
.ice-core__tick {
  display: block;
  width: 1px;
  height: 5px;
  background: var(--color-dim);
}
.ice-core__tick--year {
  height: 8px;
  background: var(--color-muted);
}
.ice-core__years {
  display: flex;
  justify-content: space-around;
  padding: 8px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.14em;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .panel[data-visible="true"] .ice-core__needle { animation: none; height: 100%; opacity: 1; }
  .panel[data-visible="true"] .ice-core__callout { animation: none; opacity: 1; transform: none; }
  .panel[data-visible="true"] .ice-core__bar::before { animation: none; opacity: 0; }
}

/* --- Section 3: audience --------------------------------------- */

.audience { position: relative; }
.audience__inner {
  display: grid;
  gap: var(--space-4);
  max-width: 60ch;
}
.audience h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
}
.audience__body {
  color: var(--color-muted);
  font-size: var(--fs-md);
  max-width: 58ch;
}

/* --- Section 4: receive ---------------------------------------- */

.payload-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-border);
}
.payload-list__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 720px) {
  .payload-list__row {
    grid-template-columns: minmax(14rem, 22ch) 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: var(--space-5) 0;
    align-items: baseline;
  }
}
.payload-list dt {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text);
  letter-spacing: 0.005em;
}
.payload-list dd {
  color: var(--color-muted);
  font-size: var(--fs-base);
}

.receive__note {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-muted);
  max-width: 68ch;
}

/* --- Section 5: agentic ---------------------------------------- */

.agentic__body {
  display: grid;
  gap: var(--space-8);
  max-width: var(--reading-max);
  font-size: var(--fs-md);
  color: var(--color-text);
  line-height: 1.6;
}
.agentic__body p { color: var(--color-text); }
.agentic__body p + p { color: var(--color-muted); }

.agentic__drop {
  margin: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-3);
  background: var(--color-surface);
  padding: var(--space-5) var(--space-6);
  display: grid;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
}
.agentic__drop::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.35;
}
.agentic__drop-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.agentic__drop-url {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.agentic__drop-prompt { color: var(--color-accent); }
.agentic__drop-scheme { color: var(--color-dim); }
.agentic__drop-host { color: var(--color-text); font-weight: 500; }
.agentic__drop-path { color: var(--color-dim); }
.agentic__drop-url-text { min-width: 0; word-break: break-all; }

/* --- Section 6: request access --------------------------------- */

.request-access { position: relative; }

.access-form {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  max-width: 640px;
}
.access-form[hidden] { display: none; }

/* --- Form → success transition ---------------------------------- */

/* Phase 1: form rows stagger out (top-down) when --leaving is added. */
.access-form--leaving {
  pointer-events: none;
}
.access-form--leaving > * {
  animation: access-row-leave 260ms var(--ease-out-quart) forwards;
}
.access-form--leaving > *:nth-child(1) { animation-delay:   0ms; }
.access-form--leaving > *:nth-child(2) { animation-delay:  28ms; }
.access-form--leaving > *:nth-child(3) { animation-delay:  56ms; }
.access-form--leaving > *:nth-child(4) { animation-delay:  84ms; }
.access-form--leaving > *:nth-child(5) { animation-delay: 112ms; }
.access-form--leaving > *:nth-child(6) { animation-delay: 140ms; }
@keyframes access-row-leave {
  to { opacity: 0; transform: translateY(-8px); }
}

/* The submit button gets a brief "sent" tint just before it leaves —
   confirms the action without a separate flash element. */
.access-form--leaving .access-form__submit .btn--primary {
  animation: access-submit-ack 260ms var(--ease-out-quart);
}
@keyframes access-submit-ack {
  0%   { box-shadow: 0 0 0 0 rgba(47, 227, 154, 0); }
  35%  { box-shadow: 0 0 0 6px rgba(47, 227, 154, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(47, 227, 154, 0); }
}

.field {
  display: grid;
  gap: 0;
  border: 0;
}
.field label,
.field legend {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
}
.field__key {
  color: var(--color-dim);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}
.field__text { letter-spacing: 0; }
.field__req { color: var(--color-accent); }

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border-strong);
  padding: 10px 0 12px;
  font-size: var(--fs-md);
  color: var(--color-text);
  transition: border-color var(--dur-base) var(--ease-out-quart);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 4.5rem; font-family: inherit; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-dim); }

.field input:hover,
.field textarea:hover { border-bottom-color: var(--color-muted); }

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--color-accent);
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea {
  border-bottom-color: var(--color-danger);
}
.field__error {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-danger);
  letter-spacing: 0.02em;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-3);
}
.choice {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice > span {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-2);
  color: var(--color-muted);
  transition: all var(--dur-base) var(--ease-out-quart);
  cursor: pointer;
}
.choice:hover > span { color: var(--color-text); border-color: var(--color-muted); }
.choice input:checked + span {
  color: var(--color-base);
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Volume choices: stacked cards with tier indicator bars ---- */
.choice-group--volume {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  width: 100%;
  padding-top: var(--space-2);
}
@media (min-width: 540px) {
  .choice-group--volume {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.choice--volume { display: block; width: 100%; }

.choice--volume > span {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 14px 16px 12px;
  width: 100%;
  min-height: 92px;
}

.choice--volume .choice__title {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.choice--volume .choice__sub {
  font-size: 11px;
  color: var(--color-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.choice--volume .choice__tiers {
  display: flex;
  gap: 3px;
  margin-top: auto;
  padding-top: 12px;
}
.choice--volume .choice__tiers i {
  flex: 1;
  height: 3px;
  background: var(--color-border);
  border-radius: 1px;
  transition: background var(--dur-base) var(--ease-out-quart);
}
.choice--volume[data-tier="1"] .choice__tiers i:nth-child(-n+1),
.choice--volume[data-tier="2"] .choice__tiers i:nth-child(-n+2),
.choice--volume[data-tier="3"] .choice__tiers i:nth-child(-n+3) {
  background: var(--color-accent-deep);
}

/* Override the default solid-accent active state for volume — use a subtle tint
   so the benchmark text and tier bar remain legible. */
.choice--volume input:checked + span {
  color: var(--color-text);
  background: rgba(47, 227, 154, 0.05);
  border-color: var(--color-accent);
}
.choice--volume input:checked + span .choice__title { color: var(--color-accent); }
.choice--volume[data-tier="1"] input:checked + span .choice__tiers i:nth-child(-n+1),
.choice--volume[data-tier="2"] input:checked + span .choice__tiers i:nth-child(-n+2),
.choice--volume[data-tier="3"] input:checked + span .choice__tiers i:nth-child(-n+3) {
  background: var(--color-accent);
}

.choice--volume:hover input:not(:checked) + span {
  border-color: var(--color-muted);
}
.choice--volume:hover[data-tier="1"] input:not(:checked) + span .choice__tiers i:nth-child(-n+1),
.choice--volume:hover[data-tier="2"] input:not(:checked) + span .choice__tiers i:nth-child(-n+2),
.choice--volume:hover[data-tier="3"] input:not(:checked) + span .choice__tiers i:nth-child(-n+3) {
  background: var(--color-accent-muted);
}

.access-form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-4);
}
.access-form__fineprint {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.02em;
  max-width: 40ch;
}

.access-success {
  max-width: 560px;
  padding: var(--space-8);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-3);
  background: rgba(47, 227, 154, 0.04);
  display: grid;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.access-success[hidden] { display: none; }

/* Phase 2: card scans itself into existence — clip-path wipe + fade
   + scale, with a 1px accent scan line traveling top → bottom and the
   inner content rendering in sequence. */
.access-success--entering {
  animation: access-card-enter 480ms var(--ease-out-expo) backwards;
}
.access-success--entering > * {
  animation: access-row-enter 360ms var(--ease-out-expo) backwards;
}
.access-success--entering > *:nth-child(1) { animation-delay: 200ms; }
.access-success--entering > *:nth-child(2) { animation-delay: 280ms; }
.access-success--entering > *:nth-child(3) { animation-delay: 360ms; }

.access-success--entering::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent-muted) 30%,
    var(--color-accent) 50%,
    var(--color-accent-muted) 70%,
    transparent 100%
  );
  filter: drop-shadow(0 0 6px rgba(47, 227, 154, 0.55));
  pointer-events: none;
  animation: access-scan-sweep 640ms var(--ease-out-quart) 120ms forwards;
}

@keyframes access-card-enter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    clip-path: inset(0 100% 100% 0);
    border-color: var(--color-border-strong);
  }
  55% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
    border-color: var(--color-accent);
  }
}
@keyframes access-row-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes access-scan-sweep {
  0%   { top: 0%;                opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { top: calc(100% - 1px);  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .access-form--leaving > *,
  .access-form--leaving .access-form__submit .btn--primary,
  .access-success--entering,
  .access-success--entering > *,
  .access-success--entering::before {
    animation: none;
  }
}
.access-success h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.access-success p { color: var(--color-muted); }

/* --- Site footer ------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 0;
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-16) var(--page-gutter) var(--space-8);
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: clamp(2.5rem, 6vw, 6rem);
  }
}

.site-footer__brand .logo__svg { height: 30px; }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-8) var(--space-10);
  font-size: var(--fs-sm);
}
.site-footer__col dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-dim);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: var(--space-2);
}
.site-footer__col dd {
  color: var(--color-muted);
}
.site-footer__col a {
  color: var(--color-text);
  transition: color var(--dur-base) var(--ease-out-quart);
}
.site-footer__col a:hover,
.site-footer__col a:focus-visible { color: var(--color-accent); }

.site-footer__fine {
  grid-column: 1 / -1;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-dim);
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
}
.site-footer__fine .dot { color: var(--color-border-strong); }

/* --- Page-load choreography ------------------------------------ */

.hero__body > p,
.hero__body > h1,
.hero__body > .hero__actions,
.hero__stream {
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 680ms var(--ease-out-expo) forwards;
}
.hero__body > .eyebrow   { animation-delay:  60ms; }
.hero__body > h1         { animation-delay: 140ms; }
.hero__body > .hero__lede{ animation-delay: 260ms; }
.hero__body > .hero__actions { animation-delay: 360ms; }
.hero__stream            { animation-delay: 460ms; }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Reduced motion -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__body > *,
  .hero__stream { opacity: 1; transform: none; }
  .status-dot { box-shadow: 0 0 0 4px rgba(47, 227, 154, 0.15); }
}

/* --- Narrow tweaks ---------------------------------------------- */

@media (max-width: 520px) {
  .hero__title { max-width: 100%; }
  .feed-list__item { grid-template-columns: 1fr; }
  .feed-list__index { padding-top: 0; }
  .access-form__submit { flex-direction: column; align-items: flex-start; }
  .btn--wide { width: 100%; justify-content: center; }
}
