/* ═══════════════════════════════════════════════════════════════
   SALES PAGE  —  prototype / vertical slice
   Inherits :root tokens, .navbar, .footer, .cta-section, etc.
   All sales-specific classes prefixed with .s-
   ═══════════════════════════════════════════════════════════════ */

:root {
  --good: #4ade80;
  --good-dim: rgba(74, 222, 128, 0.12);
  --good-glow: rgba(74, 222, 128, 0.35);
  --bad: #ee3a39;
  --bad-dim: rgba(238, 58, 57, 0.12);
  --warn: #fbbf24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --panel: #0a0a0a;
  --panel-2: #111111;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --nav-height: 68px;
  --bp-tablet: 1100px;
  --bp-nav: 960px;
  --bp-phone: 640px;
}

/* ─── HERO + STATS (merged pinned experience) ─────────────────── */
.s-hero.s-stats-section {
  position: relative;
  height: 480vh; /* 6 stages × 80vh — desktop scenes are 80vh each, like marketing */
  min-height: 0;
  display: block;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(238, 58, 57, 0.06), transparent 60%),
    #000;
}

/* Clip decorative layers only — overflow on the section itself breaks sticky pin. */
.s-stats-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.s-hero-pin,
.s-stats-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 56px;
  overflow: visible;
  z-index: 1;
}

.s-hero-inner--pinned {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  text-align: center;
  overflow: visible;
}

.s-beat-wall {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  transition: opacity 0.8s ease;
}
.s-beat-wall.is-dissolved {
  opacity: 0.4;
  pointer-events: none;
}
.s-beat-wall.is-dissolved .s-hero-headline {
  color: var(--good);
}

.s-hero-headline {
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}

.s-hero-inner--pinned .s-hero-stat {
  display: block;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 30%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.92;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.s-hero-stat {
  display: block;
  font-weight: 900;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.s-hero-stat.is-swap {
  transform: scale(0.92);
}
.s-hero-stat--fix {
  background: linear-gradient(180deg, #fff 18%, var(--good) 120%);
  -webkit-background-clip: text;
  background-clip: text;
}
.s-hero-stat--empty {
  display: none !important;
}
.s-hero-stat-suffix {
  font-size: 0.55em;
  letter-spacing: -0.04em;
}

.s-hero-inner--pinned .s-hero-headline-body {
  display: block;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.s-hero-headline-body {
  display: block;
}
.s-hero-headline-body--fix {
  font-size: clamp(2.3rem, 5vw, 4.4rem) !important;
  font-weight: 800;
  color: var(--good);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin: 0 auto;
}

.s-hero-sub-slides {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 640px;
  min-height: 3.2em;
  margin: 0 auto 28px;
}

.s-hero-sub-slides .s-hero-sub {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-mid);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-hero-sub-slides .s-hero-sub.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
}
.s-hero-sub--fix strong {
  color: var(--good);
}

.s-hero-inner--pinned .s-hero-pulse {
  flex-shrink: 0;
  margin-top: 20px;
}

.s-hero-story-handoff {
  max-width: 680px;
  margin: 18px auto 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.s-stats-section[data-active-beat="6"] .s-hero-story-handoff {
  opacity: 1;
  transform: translateY(0);
}
.s-hero-story-handoff p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.55;
  color: var(--text-mid);
}

.s-cohort-headlines {
  position: relative;
  width: 100%;
  margin-bottom: clamp(28px, 4vh, 48px);
  display: grid;
  place-items: start center;
  text-align: center;
  overflow: visible;
  padding: clamp(4px, 1vh, 12px) clamp(12px, 2vw, 24px) 0;
}

.s-cohort-headline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.42s ease, transform 0.42s ease;
  pointer-events: none;
  overflow: visible;
  padding-top: 0.08em;
}

.s-cohort-headline.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.s-cohort-stat {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 0.06em 0.04em 0;
  font-size: clamp(5.4rem, 14vw, 10.5rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.07em;
  background: linear-gradient(180deg, #fff4f4 0%, #ff8a96 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 64px rgba(238, 58, 57, 0.18);
  overflow: visible;
}

.s-cohort-stat--green {
  background: linear-gradient(180deg, #ecfff3 0%, #44df82 88%);
  -webkit-background-clip: text;
  background-clip: text;
}

.s-cohort-headline h1 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-inline: 0.04em;
  font-size: clamp(2.5rem, 5.8vw, 5.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  overflow: visible;
  text-wrap: balance;
}

.s-cohort-headline--fix h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.5rem);
}

.s-cohort-headline h1 span {
  color: #ff8795;
}

.s-cohort-headline--fix h1 span {
  color: var(--good);
}

.s-cohort-headline p {
  width: 100%;
  max-width: 740px;
  margin: 16px auto 0;
  padding-bottom: 8px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.56);
}

.s-cohort-card {
  position: relative;
  width: min(100%, 1030px);
  margin: 0 auto;
  padding: 24px 26px 22px;
  border: 1px solid rgba(238, 58, 57, 0.17);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 100%, rgba(238, 58, 57, 0.09), transparent 55%),
    rgba(24, 8, 8, 0.74);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transition: border-color 0.5s ease, background 0.5s ease;
}

.s-stats-section[data-active-beat="6"] .s-cohort-card {
  border-color: rgba(74, 222, 128, 0.28);
  background:
    radial-gradient(circle at 50% 100%, rgba(74, 222, 128, 0.16), transparent 55%),
    rgba(5, 32, 18, 0.8);
}

.s-cohort-viz-label {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 209, 213, 0.66);
}

.s-stats-section[data-active-beat="6"] .s-cohort-viz-label {
  color: rgba(169, 255, 201, 0.66);
}

.s-cohort-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.s-cohort-counter {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.34);
}

.s-cohort-counter span {
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.s-cohort-counter strong {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.s-cohort-counter--alive {
  border: 1px solid rgba(74, 222, 128, 0.32);
  color: var(--good);
}

.s-cohort-counter--lost {
  border: 1px solid rgba(255, 75, 83, 0.34);
  color: #ff4a55;
}

.s-stats-section[data-active-beat="6"] .s-cohort-counter--lost {
  border-color: rgba(74, 222, 128, 0.32);
  color: var(--good);
}

.s-cohort-grid-wrap {
  position: relative;
  min-width: 0;
}

.s-cohort-grid {
  display: grid;
  grid-template-columns: repeat(20, minmax(10px, 1fr));
  gap: clamp(6px, 0.75vw, 10px);
  align-items: center;
}

.s-cohort-dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #2fdc78;
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.18);
  transition: background 0.34s ease, opacity 0.34s ease, transform 0.34s ease, box-shadow 0.34s ease;
}

.s-stats-section:not([data-active-beat="6"]) .s-cohort-dot {
  box-shadow: none;
}

.s-cohort-dot.is-lost-1 { background: #b63a42; box-shadow: none; }
.s-cohort-dot.is-lost-2 { background: #a83038; box-shadow: none; }
.s-cohort-dot.is-lost-3 { background: #85262b; box-shadow: none; }
.s-cohort-dot.is-lost-4 { background: #551719; box-shadow: none; }

.s-cohort-dot.is-baseline {
  background: var(--good);
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.28);
}

.s-stats-section:not([data-active-beat="6"]) .s-cohort-dot.is-baseline {
  background: #2fdc78;
  box-shadow: none;
}

.s-cohort-dot.is-restored,
.s-cohort-dot.is-restored.is-lost-1,
.s-cohort-dot.is-restored.is-lost-2,
.s-cohort-dot.is-restored.is-lost-3,
.s-cohort-dot.is-restored.is-lost-4 {
  background: var(--good);
  box-shadow: 0 0 28px rgba(74, 222, 128, 0.56);
  transform: scale(1.22);
}

.s-stats-section[data-active-beat="6"] .s-cohort-dot.is-restored,
.s-stats-section[data-active-beat="6"] .s-cohort-dot.is-baseline {
  cursor: pointer;
}

.s-stats-section[data-active-beat="6"] .s-cohort-dot.is-label-active {
  transform: scale(1.28);
  box-shadow: 0 0 34px rgba(74, 222, 128, 0.72);
  z-index: 2;
}

.s-cohort-caption {
  min-height: 18px;
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.s-cohort-popup {
  position: absolute;
  z-index: 4;
  min-width: 230px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--good);
  color: #02140a;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 22px 64px rgba(74, 222, 128, 0.34);
  opacity: 0;
  transform: translate(-50%, -110%) scale(0.88);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.s-cohort-popup::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.s-cohort-popup.is-in {
  opacity: 1;
  transform: translate(-50%, -125%) scale(1);
}

.s-cohort-fix-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.s-cohort-fix-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.08);
  color: rgba(255, 255, 255, 0.72);
  opacity: 0.34;
  transform: translateY(6px);
  transition: opacity 0.32s ease, transform 0.32s ease, border-color 0.32s ease;
}

.s-cohort-fix-card.is-in {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(74, 222, 128, 0.36);
}

.s-cohort-fix-card strong {
  font-size: 0.88rem;
  color: var(--text);
}

.s-cohort-fix-card > span:last-child {
  font-weight: 850;
  color: var(--good);
}

.s-cohort-fix-check {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--good);
  color: #02140a;
  font-size: 0.82rem;
  font-weight: 900;
}

.s-cohort-card .s-scene-next {
  bottom: 82px;
}

.s-story-bridge {
  padding: 72px 24px 48px;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.s-story-bridge-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.s-story-bridge-text {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0;
}

/* Legacy standalone hero (unused — kept for reference if needed elsewhere) */
.s-hero:not(.s-stats-section) {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(238, 58, 57, 0.06), transparent 60%),
    #000;
}

.s-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
  pointer-events: none;
}

.s-hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.35;
}
.s-hero-glow--1 { top: -160px; left: -160px; background: rgba(238, 58, 57, 0.4); }
.s-hero-glow--2 { bottom: -160px; right: -160px; background: rgba(238, 58, 57, 0.18); }

.s-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  text-align: center;
}

.s-hero-eyebrow {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid rgba(238, 58, 57, 0.3);
  border-radius: 100px;
  background: rgba(238, 58, 57, 0.05);
}

.s-hero-inner:not(.s-hero-inner--pinned) .s-hero-headline {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
  color: #fff;
}

.s-hero-inner:not(.s-hero-inner--pinned) .s-hero-stat {
  display: block;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 30%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.92;
  margin-bottom: 8px;
}

.s-headline-strike {
  position: relative;
  display: inline-block;
  color: var(--text-dim);
}
.s-headline-strike::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.s-hero-headline.is-revealed .s-headline-strike::after { transform: scaleX(1); }

.s-hero-headline .s-headline-accent {
  opacity: 0;
  transform: translateY(12px);
  display: inline-block;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.1s;
}
.s-hero-headline.is-revealed .s-headline-accent {
  opacity: 1;
  transform: translateY(0);
}

.s-hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0 auto 56px;
  max-width: 640px;
}

.s-hero-pulse {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.s-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: s-pulse 1.8s ease-out infinite;
}

@keyframes s-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(238, 58, 57, 0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(238, 58, 57, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 58, 57, 0); }
}

/* ─── PROOF CHAIN BAND ─────────────────────────────────────────── */
.s-proof-chain {
  padding: 80px 24px;
  background: #050505;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.s-proof-chain-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.s-proof-stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s, background 0.3s;
}
.s-proof-stat:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.s-proof-num {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.s-proof-stat--punch .s-proof-num {
  color: var(--accent);
}

.s-proof-cap {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.s-proof-arrow {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--accent);
  opacity: 0.5;
}

@media (max-width: 900px) {
  .s-proof-chain-inner {
    grid-template-columns: 1fr;
  }
  .s-proof-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STATS SECTION  —  6-beat scroll-pinned prospect-launch scenes.
   Top progress bar, hero-stat copy block, scene stage with
   headline-as-wall and DOM prospect launches per beat.
   ═══════════════════════════════════════════════════════════════ */

.s-stats-section {
  position: relative;
  height: 480vh;                /* legacy decl — kept in sync with .s-hero.s-stats-section above */
  background: #000;
  overflow: visible;
  isolation: isolate;
}

/* Ambient color wash — three stacked CSS gradient layers (neutral
   → red → green) crossfaded by data-ambient on body. Each layer
   uses opacity 0/1 transitions so the wash blends smoothly across
   beats. The whole thing sits behind .s-stats-pin content. */
.s-stats-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.s-stats-ambient::before,
.s-stats-ambient::after,
.s-stats-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-stats-ambient::before {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(238, 58, 57, 0.10), transparent 60%),
    radial-gradient(ellipse at 50% 85%, rgba(238, 58, 57, 0.06), transparent 65%);
  opacity: 0;
}
.s-stats-ambient::after {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(74, 222, 128, 0.08), transparent 60%),
    radial-gradient(ellipse at 50% 90%, rgba(74, 222, 128, 0.10), transparent 65%);
  opacity: 0;
}
.s-stats-section[data-active-beat="1"] .s-stats-ambient::before { opacity: 0.4; }
.s-stats-section[data-active-beat="2"] .s-stats-ambient::before { opacity: 0.7; }
.s-stats-section[data-active-beat="3"] .s-stats-ambient::before { opacity: 0.85; }
.s-stats-section[data-active-beat="4"] .s-stats-ambient::before { opacity: 1; }
.s-stats-section[data-active-beat="5"] .s-stats-ambient::before { opacity: 1; }
.s-stats-section[data-active-beat="6"] .s-stats-ambient::before { opacity: 0; }
.s-stats-section[data-active-beat="6"] .s-stats-ambient::after  { opacity: 1; }

.s-stats-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.s-stats-bg-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
  transition: background 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-stats-bg-glow--1 { top: -160px; left: -160px; background: rgba(238, 58, 57, 0.32); }
.s-stats-bg-glow--2 { bottom: -160px; right: -160px; background: rgba(238, 58, 57, 0.18); }
.s-stats-section[data-active-beat="6"] .s-stats-bg-glow--1 { background: rgba(74, 222, 128, 0.28); }
.s-stats-section[data-active-beat="6"] .s-stats-bg-glow--2 { background: rgba(74, 222, 128, 0.16); }

.s-stats-inner {
  display: none; /* legacy — merged into .s-hero-inner--pinned */
}

.s-scene-stage {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 920px;
  height: clamp(154px, 18vh, 198px);
  display: grid;
  grid-template-columns: minmax(118px, 148px) 1fr minmax(118px, 148px);
  grid-template-rows: 1fr auto;
  gap: 12px 14px;
  align-items: center;
  padding: 32px 14px 14px;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: visible;
  box-shadow: none;
  transition: border-color 0.8s ease, background 0.8s ease;
}
.s-stats-section[data-active-beat="6"] .s-scene-stage {
  border-color: rgba(74, 222, 128, 0.2);
  background: rgba(74, 222, 128, 0.03);
}

.s-scene-context {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.36);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.s-convert-zone,
.s-gave-up-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 12px;
  min-height: 96px;
  z-index: 2;
}
.s-convert-zone {
  grid-column: 1;
  grid-row: 1;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.s-gave-up-zone {
  grid-column: 3;
  grid-row: 1;
  background: rgba(238, 58, 57, 0.055);
  border: 1px solid rgba(238, 58, 57, 0.22);
}
.s-zone-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--good);
  opacity: 0.85;
}
.s-zone-label--bad {
  color: var(--accent);
}
.s-zone-count {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--good);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.s-zone-count--bad {
  color: var(--accent);
}
.s-scene-scale {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.35;
}
.s-prospect-lane {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  height: 100%;
  min-height: 88px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4px 8px 6px;
}

.s-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 4vw, 34px);
  width: 100%;
  max-width: 170px;
  height: 100%;
  min-height: 84px;
}

.s-bar-col {
  position: relative;
  width: 44px;
  flex: 0 0 44px;
  height: 100%;
  min-height: 84px;
}

.s-bar-frame {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  pointer-events: none;
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-bar-col--pass .s-bar-frame {
  height: var(--bar-pass-pct, 20%);
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: inset 0 0 24px rgba(74, 222, 128, 0.06);
}
.s-bar-col--fail .s-bar-frame {
  height: var(--bar-fail-pct, 80%);
  border-color: rgba(238, 58, 57, 0.32);
  box-shadow: inset 0 0 24px rgba(238, 58, 57, 0.05);
}
.s-bar-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  opacity: 0.9;
  transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-bar-fill--pass {
  height: var(--bar-pass-live-pct, 0%);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.5), rgba(74, 222, 128, 0.95));
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.28);
}
.s-bar-fill--fail {
  height: var(--bar-fail-live-pct, 0%);
  background: linear-gradient(180deg, rgba(238, 58, 57, 0.48), rgba(238, 58, 57, 0.95));
  box-shadow: 0 0 18px rgba(238, 58, 57, 0.24);
}

.s-bar-stack {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  z-index: 1;
}
.s-bar-caption {
  display: none;
}
.s-bar-caption--pass {
  color: rgba(74, 222, 128, 0.8);
}
.s-bar-caption--fail {
  color: rgba(238, 58, 57, 0.78);
}
.s-bar-stack .s-prospect {
  position: absolute;
  margin: -6.5px 0 0 -6.5px;
  z-index: 6;
}
.s-hero-inner--pinned > .s-prospect.is-flying {
  z-index: 3;
}

.s-prospect {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  z-index: 6;
  will-change: transform, left, top;
  pointer-events: none;
}
.s-prospect.is-blocked {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(238, 58, 57, 0.5);
}
.s-prospect.is-passed {
  background: var(--good);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

.s-fx-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.s-fx-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  will-change: transform, opacity;
  pointer-events: none;
}
.s-fx-particle--burst {
  background: var(--good);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}
.s-fx-particle--impact {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(238, 58, 57, 0.55);
}

/* Beat 6 next-step prompt */
.s-scene-next {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 7;
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--good);
  text-align: center;
  white-space: nowrap;
}
.s-scene-next[hidden] { display: none; }
.s-scene-next.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Chapter divider between Stats Section and Marine Reality ── */
.s-chapter-divider {
  position: relative;
  padding: 160px 32px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(74, 222, 128, 0.04), transparent 70%),
    #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.s-chapter-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 65%);
  pointer-events: none;
}
.s-chapter-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.s-chapter-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.s-chapter-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #fff;
  margin: 0;
  max-width: 720px;
}
.s-chapter-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
  max-width: 540px;
}
.s-chapter-rule {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .s-tally-row,
  .s-compare,
  .s-compare-col,
  .s-compare-num,
  .s-compare-swoosh path,
  .s-cascade-canvas-wrap,
  .s-cascade-slide,
  .s-slide-stat,
  .s-force-field {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MARINE REALITY  —  NMMA citation + Lead Black Hole + TCO Friction
   ═══════════════════════════════════════════════════════════════ */

.s-marine {
  padding: 100px 24px;
  background: #050505;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.s-marine-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.s-marine-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.s-marine-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.s-marine-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0;
  max-width: 520px;
}

.s-marine-citation {
  margin-top: 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.s-marine-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s-marine-stat-num {
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--accent);
  line-height: 1;
}
.s-marine-stat-pct {
  font-size: 0.55em;
  color: rgba(238, 58, 57, 0.65);
  margin-left: 2px;
}

.s-marine-stat-cap {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-mid);
  max-width: 360px;
}

.s-marine-source {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  align-self: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.s-marine-source:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06);
}
.s-marine-source img {
  height: 26px;
  width: auto;
  display: block;
}

/* ─── Right column: friction cards + bridge ────────────────── */
.s-marine-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.s-marine-card {
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.s-marine-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.s-marine-card-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.s-marine-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 2px 0 4px;
}

.s-marine-card-body {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0;
}
.s-marine-card-body em {
  color: #fff;
  font-style: italic;
}

.s-marine-bridge {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.06), rgba(74, 222, 128, 0.015));
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 14px;
}
.s-marine-bridge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--good);
  margin-top: 8px;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}
.s-marine-bridge p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0;
}
.s-marine-bridge strong {
  color: #fff;
  font-weight: 700;
}

/* Compact marine proof card after Act 1 */
.s-marine-proof {
  position: relative;
  padding: 96px 24px;
  background:
    linear-gradient(180deg, #000 0%, #050505 48%, #000 100%),
    #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.s-marine-proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
  pointer-events: none;
}
.s-marine-proof-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: center;
}
.s-marine-proof-rule {
  width: 2px;
  height: 132px;
  justify-self: center;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
}
.s-marine-proof-copy {
  max-width: 620px;
}
.s-marine-proof-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
}
.s-marine-proof-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-mid);
}
.s-marine-proof-card {
  appearance: none;
  border: 1px solid rgba(238, 58, 57, 0.36);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(238, 58, 57, 0.12), transparent 70%),
    rgba(10, 10, 10, 0.92);
  color: inherit;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 10px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.s-marine-proof-card:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 58, 57, 0.62);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(238, 58, 57, 0.16), transparent 72%),
    rgba(14, 14, 14, 0.96);
}
.s-marine-proof-stat {
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.s-marine-proof-stat span {
  font-size: 0.48em;
  color: rgba(238, 58, 57, 0.7);
}
.s-marine-proof-label {
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--text-mid);
}
.s-marine-proof-source {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.s-marine-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(238, 58, 57, 0.12), transparent 55%),
    #080808;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 0;
  margin: auto;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.75);
}
.s-marine-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}
.s-marine-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.s-marine-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 34px;
  min-width: 0;
  box-sizing: border-box;
}
.s-marine-modal-grid > * {
  min-width: 0;
}
.s-marine-modal h2 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.s-marine-modal p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.6;
}
.s-marine-modal-stat,
.s-marine-modal-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  min-width: 0;
  box-sizing: border-box;
}
.s-marine-modal-stat {
  display: grid;
  gap: 12px;
}
.s-marine-modal-stat span {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.s-marine-modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

/* ─── responsive overrides for stats section + marine ───────── */
@media (max-width: 1100px) {
  .s-hero.s-stats-section { height: 450vh; }
  .s-hero-pin,
  .s-stats-pin {
    padding: calc(88px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
    overflow: hidden;
  }
  .s-hero-inner--pinned {
    justify-content: flex-start;
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: none;
    gap: clamp(12px, 2vh, 20px);
    overflow: hidden;
  }
  .s-cohort-headlines {
    margin-bottom: clamp(18px, 3vh, 28px);
    padding-inline: 16px;
    place-items: center center;
    flex-shrink: 0;
    min-height: 0;
    max-height: clamp(190px, 30vh, 260px);
    overflow: hidden;
  }
  .s-cohort-headline {
    align-items: center;
    text-align: center;
  }
  .s-cohort-headline h1 {
    text-align: center;
  }
  .s-cohort-stat {
    font-size: clamp(4.8rem, 16vw, 8rem);
    line-height: 1.04;
    text-align: center;
  }
  .s-cohort-headline--fix h1 {
    font-size: clamp(1.85rem, 5vw, 3.2rem);
  }
  .s-hero-inner--pinned .s-hero-stat {
    font-size: clamp(3.2rem, 14vw, 6.5rem);
  }
  .s-hero-inner--pinned .s-hero-headline-body {
    font-size: clamp(1.5rem, 5.5vw, 2.4rem);
  }
  .s-hero-headline-body--fix {
    font-size: clamp(1.55rem, 5.5vw, 2.4rem) !important;
  }
  .s-scene-stage {
    height: clamp(148px, 20vh, 176px);
    grid-template-columns: minmax(108px, 134px) 1fr minmax(108px, 134px);
    grid-template-rows: 1fr auto;
    gap: 0 10px;
  }
  .s-scene-context {
    top: 8px;
    font-size: 0.5rem;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .s-convert-zone,
  .s-gave-up-zone {
    min-height: 102px;
    padding: 14px 8px;
  }
  .s-prospect-lane {
    grid-column: 2;
    grid-row: 1;
    min-height: 80px;
  }
  .s-marine-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .s-marine-copy { position: relative; top: 0; }
  .s-marine-proof-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .s-marine-proof-rule {
    width: 72px;
    height: 2px;
    justify-self: start;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
  }
  .s-marine-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .s-hero-pin,
  .s-stats-pin {
    padding: calc(72px + env(safe-area-inset-top, 0px)) 10px calc(28px + env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
  }
  .s-hero-inner--pinned {
    gap: clamp(10px, 1.8vh, 16px);
    padding-bottom: 28px;
  }
  .s-cohort-headlines {
    margin-bottom: clamp(14px, 2.5vh, 22px);
    padding-inline: 8px;
    max-height: clamp(155px, 25vh, 200px);
  }
  .s-hero-sub-slides .s-hero-sub { font-size: 0.92rem; }
  .s-hero-story-handoff p { font-size: 0.96rem; }
  .s-scene-stage {
    height: 224px;
    grid-template-columns: minmax(84px, 1fr) minmax(84px, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 8px;
  }
  .s-convert-zone {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    justify-content: space-between;
    min-height: auto;
    padding: 10px 12px;
  }
  .s-gave-up-zone {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    justify-content: space-between;
    min-height: auto;
    padding: 10px 12px;
  }
  .s-prospect-lane {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 100px;
  }
  .s-scene-scale {
    grid-row: 3;
  }
  .s-bar-chart {
    max-width: 100%;
    gap: 20px;
  }
  .s-scene-next {
    bottom: 44px;
    max-width: calc(100% - 32px);
    white-space: normal;
  }
  .s-chapter-divider { padding: 100px 24px; }
  .s-chapter-title { font-size: 2rem; }
  .s-marine-card { padding: 20px 22px; }
  .s-marine-proof { padding: 72px 20px; }
  .s-marine-proof-card { padding: 18px; }
  .s-marine-modal-grid { padding: 28px 20px 22px; }
}

/* ─── ACT SECTIONS (pinned scroll) ─────────────────────────────── */
/* Act chassis (.de-act system) lives in css/de-act.css — shared with marketing */

@media (min-width: 960px) {
  /* nowrap only once docked — the big intro headline must be free to wrap */
  #act1.is-engaged .de-act-headline,
  #act2.is-engaged .de-act-headline {
    white-space: nowrap;
  }
}

.s-cap-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.s-cap-dot--good { background: var(--good); box-shadow: 0 0 8px var(--good); }
.s-cap-dot--bad  { background: var(--accent); }

/* ─── BROWSER MOCKUP ─────────────────────────────────────────── */
.s-browser {
  width: 100%;
  max-width: 580px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.02);
}

.s-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #050505;
  border-bottom: 1px solid var(--line);
}

.s-browser-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.s-browser-dot:nth-child(1) { background: rgba(238, 58, 57, 0.4); }
.s-browser-dot:nth-child(2) { background: rgba(251, 191, 36, 0.4); }
.s-browser-dot:nth-child(3) { background: rgba(74, 222, 128, 0.4); }

.s-browser-url {
  flex: 1;
  margin-left: 8px;
  padding: 5px 12px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s-browser-body {
  padding: 20px;
  display: grid;
  gap: 18px;
}

.s-browser-body--listing {
  grid-template-columns: 1fr 1fr;
}

.s-listing-img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(74, 158, 222, 0.3), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(238, 58, 57, 0.2), transparent 60%),
    linear-gradient(135deg, #1a1a1a, #0a0a0a);
  position: relative;
  overflow: hidden;
}
.s-listing-img:not(.s-listing-img--photo)::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 6px;
}

.s-listing-img--photo {
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-listing-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.s-listing-img--mini {
  aspect-ratio: 16 / 9;
}

.s-listing-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s-listing-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.s-listing-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.s-listing-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.s-listing-form.is-submitted {
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.06);
}

.s-form-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.s-listing-form.is-submitted .s-form-label {
  color: var(--good);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.85rem;
}

/* Animated form fields (Act 1 Beat 1) */
.s-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s-form-field-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.s-form-field-input {
  height: 30px;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.78rem;
  color: #fff;
  position: relative;
  transition: border-color 0.25s ease;
}
.s-form-field.is-focused .s-form-field-input {
  border-color: rgba(238, 58, 57, 0.6);
  box-shadow: 0 0 0 3px rgba(238, 58, 57, 0.08);
}
.s-form-field-text {
  font-family: var(--font);
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
}
.s-form-caret {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  opacity: 0;
}
.s-form-field.is-focused .s-form-caret {
  opacity: 1;
  animation: s-caret-blink 0.9s steps(1, end) infinite;
}
@keyframes s-caret-blink {
  50% { opacity: 0; }
}

.s-form-submit-btn {
  margin-top: 4px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  text-align: center;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.s-form-submit-btn.is-pressed {
  transform: scale(0.95);
  box-shadow: 0 0 24px var(--accent-glow);
  background: #c41f1e;
}

.s-form-confirm {
  position: absolute;
  inset: -6px -8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.05), rgba(74, 222, 128, 0.015)),
    #050505;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-form-confirm-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--good);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18), 0 6px 16px rgba(74, 222, 128, 0.25);
  flex-shrink: 0;
}
.s-form-confirm-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.s-form-confirm-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.s-form-confirm-headline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
}
.s-form-confirm-sub {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--good);
}
.s-listing-form.is-confirmed .s-form-confirm {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════════
   ACT 1 BEAT 2  —  Inbox with auto-reply getting buried
   ═══════════════════════════════════════════════════════════════ */
.s-inbox {
  width: 100%;
  max-width: 520px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.s-inbox-header {
  padding: 14px 18px;
  background: #050505;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s-inbox-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}
.s-inbox-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.s-inbox-list {
  display: flex;
  flex-direction: column;
  max-height: 380px;
  overflow: hidden;
  position: relative;
}

.s-inbox-msg {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s;
}
.s-inbox-msg.is-in {
  opacity: 1;
  transform: translateY(0);
}
.s-inbox-msg.is-buried {
  opacity: 0.32;
  filter: grayscale(60%);
}

.s-inbox-msg-main {
  min-width: 0;
}
.s-inbox-from {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-inbox-subj {
  font-size: 0.72rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-inbox-time {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* the auto-reply row */
.s-inbox-msg--ours .s-inbox-from { color: var(--accent); }
.s-inbox-msg--ours.is-buried .s-inbox-from { color: var(--text-dim); }

.s-inbox-silence {
  margin: 0;
  padding: 14px 18px;
  background: rgba(238, 58, 57, 0.06);
  border-top: 1px solid rgba(238, 58, 57, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.s-inbox-silence.is-in { opacity: 1; }
.s-inbox-silence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(238, 58, 57, 0.5);
  animation: s-pulse 1.8s ease-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   ACT 1 BEAT 3  —  Timeline of competitor activity
   ═══════════════════════════════════════════════════════════════ */
.s-timeline {
  width: 100%;
  max-width: 540px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.s-timeline-header {
  padding: 14px 18px;
  background: #050505;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.s-timeline-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}
.s-timeline-sub {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
}

.s-timeline-track {
  position: relative;
  padding: 18px 18px 18px 50px;
}

.s-timeline-line {
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(238, 58, 57, 0.5) 0%,
    rgba(74, 222, 128, 0.5) 20%,
    rgba(74, 222, 128, 0.5) 100%
  );
}

.s-timeline-events {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s-tl-event {
  position: relative;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-tl-event::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
  border: 2px solid #000;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.5);
}
.s-tl-event.is-in {
  opacity: 1;
  transform: translateX(0);
}

.s-tl-event--ours {
  background: rgba(238, 58, 57, 0.05);
  border-color: rgba(238, 58, 57, 0.2);
}
.s-tl-event--ours::before {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(238, 58, 57, 0.5);
}
.s-tl-event--ours.is-buried {
  opacity: 0.4;
  filter: grayscale(80%);
}

.s-tl-time {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-right: 10px;
  text-transform: uppercase;
}
.s-tl-from {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}
.s-tl-event--ours .s-tl-from { color: var(--accent); }
.s-tl-msg {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-mid);
}

/* ═══════════════════════════════════════════════════════════════
   ACT 1 BEAT 4  —  The lost-deal call
   ═══════════════════════════════════════════════════════════════ */
.s-lost {
  width: 100%;
  max-width: 540px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.s-lost-header {
  padding: 14px 18px;
  background: #050505;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.s-lost-call-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.s-lost-call-to {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}
.s-lost-header-right {
  text-align: right;
}
.s-lost-age {
  display: block;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.s-lost-age-cap {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}

.s-lost-convo {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.s-lost-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.s-lost-bubble.is-in {
  opacity: 1;
  transform: translateY(0);
}
.s-lost-bubble--us {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.s-lost-bubble--them {
  align-self: flex-start;
  background: #1c1c1c;
  border-bottom-left-radius: 4px;
  color: var(--text-mid);
  font-style: italic;
}
.s-lost-bubble--silent {
  align-self: flex-end;
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--text-dim);
  letter-spacing: 0.3em;
  font-style: italic;
}

.s-lost-stamp {
  margin: 0 18px 18px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-lost-stamp.is-in {
  opacity: 1;
  transform: scale(1);
}
.s-lost-stamp-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.s-lost-stamp-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s-lost-stamp-kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 700;
}
.s-lost-stamp-amt {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ─── ACT 2 BEAT 1 — sequential reveal (form → intercept → text) ───── */
.s-stack {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.s-stack-item, .s-stack-arrow {
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-stack-item.is-in, .s-stack-arrow.is-in {
  opacity: 1;
  transform: translateY(0);
}

.s-stack-item--browser .s-browser-bar { padding: 10px 14px; }
.s-stack-item--browser { transform: scale(0.92) translateY(12px); transform-origin: top center; }
.s-stack-item--browser.is-in { transform: scale(0.92) translateY(0); }

.s-stack-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  margin: -8px 0;
}

.s-stack-arrow-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--good), transparent);
}

.s-stack-arrow-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--good);
  padding: 4px 10px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 100px;
  background: var(--good-dim);
}

.s-stack-item--phone-tease {
  display: flex;
  justify-content: center;
}

/* ─── PHONE BUBBLES (iMessage-style) ─────────────────────── */
.s-phone-bubble {
  position: relative;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.s-phone-bubble--in {
  background: linear-gradient(135deg, #2a2a2a, #1c1c1c);
  border: 1px solid var(--line-strong);
  border-bottom-left-radius: 4px;
}

.s-phone-bubble--out {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.s-phone-bubble-from {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.s-phone-bubble-msg {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #fff;
}

.s-phone-bubble-time {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: right;
}

/* ─── CONVERSATION PANEL (Act 2 beat 2) ─────────────────── */
.s-convo {
  width: 100%;
  max-width: 460px;
  height: 480px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.s-convo-header {
  padding: 14px 18px;
  background: #050505;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-mid);
  text-transform: uppercase;
}

.s-convo-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* messages used by JS */
.s-msg {
  display: inline-block;
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #fff;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.4s, transform 0.4s;
}
.s-msg.is-in {
  background: linear-gradient(135deg, #2a2a2a, #1c1c1c);
  border: 1px solid var(--line-strong);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.s-msg.is-out {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.s-msg.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.s-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: #1c1c1c;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}
.s-typing.is-visible { opacity: 1; }
.s-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: s-typing 1.2s infinite ease-in-out;
}
.s-typing span:nth-child(2) { animation-delay: 0.15s; }
.s-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes s-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* ─── CARD STACK (Act 2 beat 3) — sequential reveal ──────────── */
.s-card-stack {
  width: 100%;
  max-width: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Sequential card reveal: appointment first, profile second */
.s-card-stack [data-reveal-step] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-card-stack [data-reveal-step].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Sequential profile-row reveal */
.s-profile-row[data-row] {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.s-profile-row[data-row].is-in {
  opacity: 1;
  transform: translateX(0);
}

.s-cal-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.s-cal-header {
  padding: 16px;
  text-align: center;
  background: rgba(74, 222, 128, 0.06);
  border-bottom: 1px solid var(--line);
}
.s-cal-mo {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--good);
  margin-bottom: 4px;
}
.s-cal-day {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.s-cal-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s-cal-event {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(74, 222, 128, 0.06);
  border-left: 2px solid var(--good);
  border-radius: 6px;
}
.s-cal-time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--good);
}
.s-cal-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.s-cal-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.s-cal-stamp {
  padding: 10px 16px;
  background: #050505;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
}

.s-profile-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.s-profile-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.s-profile-row:last-child { border-bottom: none; }

.s-profile-k {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.s-profile-v {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.35;
}

.s-profile-row--hot {
  background: rgba(238, 58, 57, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 4px -10px -4px;
  border-bottom: none;
}
.s-profile-row--hot .s-profile-k { color: var(--accent); }
.s-profile-row--hot .s-profile-v { color: #fff; font-weight: 600; }

/* ─── DASHBOARD MOCKUP (Act 2 beat 4) ─────────────────────── */
.s-dash {
  width: 100%;
  max-width: 580px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.s-dash-header {
  padding: 16px 20px;
  background: #050505;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s-dash-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.s-dash-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.s-dash-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--good);
  animation: s-livepulse 1.4s ease-in-out infinite;
}
@keyframes s-livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.s-dash-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.s-dash-cell {
  padding: 16px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s-dash-cell--hot {
  border-color: rgba(238, 58, 57, 0.4);
  background: rgba(238, 58, 57, 0.08);
}

.s-dash-num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.s-dash-cell--hot .s-dash-num { color: var(--accent); }

.s-dash-cap {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.s-dash-toast {
  margin: 0 20px 20px;
  padding: 14px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.4;
}
.s-dash-toast--good {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.06);
}

/* ─── ACT 2 BEAT 4 — tabbed mini dashboard with auto-cycling panels ─── */
.s-dash--mini {
  max-width: 540px;
}
.s-dash--mini .s-dash-grid { display: none; }

.s-dash-panels {
  padding: 14px 20px;
  min-height: 200px;
  position: relative;
}

.s-dash-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute;
  inset: 14px 20px;
  pointer-events: none;
}
.s-dash-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  inset: auto;
  pointer-events: auto;
}

.s-dash-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.s-dash-panel-row:last-child { border-bottom: none; }

.s-dash-panel-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}
.s-dash-panel-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  text-align: right;
}

.s-dash-panel-row--hot {
  background: rgba(238, 58, 57, 0.06);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin-left: -10px;
  padding-right: 10px;
  margin-right: -10px;
}
.s-dash-panel-row--hot .s-dash-panel-name { color: var(--accent); }

/* tabs/leadlist/mini-stat used in big dashboard (Act 4) */
.s-dash--big .s-dash-grid { display: none; }
.s-dash--big .s-dash-toast { display: none; }

.s-dash-tabs {
  display: flex;
  gap: 6px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.s-dash-tab {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.s-dash-tab.is-active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.s-dash-leadlist {
  padding: 8px 20px;
}

.s-dash-leadrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.s-dash-leadrow:last-child { border-bottom: none; }

.s-dash-leadrow-left {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.s-dash-leadrow-score {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.s-dash-leadrow--hot .s-dash-leadrow-score {
  background: rgba(238, 58, 57, 0.12);
  border-color: rgba(238, 58, 57, 0.4);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(238, 58, 57, 0.08);
}

.s-dash-leadrow-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.s-dash-leadrow-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.s-dash-leadrow-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text-mid);
}
.s-dash-leadrow-tag--hot {
  background: var(--bad-dim);
  border-color: rgba(238, 58, 57, 0.4);
  color: var(--accent);
  animation: s-livepulse 1.6s ease-in-out infinite;
}

.s-dash-bottom {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.s-dash-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s-dash-mini-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.s-dash-mini-unit {
  font-size: 0.7em;
  color: var(--text-dim);
  font-weight: 600;
  margin-left: 2px;
}
.s-dash-mini-cap {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── PIVOT BAND ───────────────────────────────────────────── */
.s-pivot {
  padding: 140px 24px;
  background: #000;
  text-align: center;
  position: relative;
}

.s-pivot-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.s-pivot-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  margin: 0 auto 40px;
}

.s-pivot-headline {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 24px;
}

.s-pivot-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── ACT 3 — TRY IT YOURSELF ──────────────────────────────── */
.s-try {
  padding: 120px 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(238, 58, 57, 0.06), transparent 60%), #000;
  border-top: 1px solid var(--line);
}

.s-try-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.s-try-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 24px 0 20px;
}

.s-try-sub {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 680px;
  margin: 0 auto 64px;
}

.s-try-stage {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
  text-align: left;
  max-width: 1080px;
  margin: 0 auto;
}

/* phone frame */
.s-phone {
  position: relative;
  width: 380px;
  height: 720px;
  border-radius: 56px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  padding: 12px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.6),
    inset 0 0 0 2px rgba(255,255,255,0.04),
    0 0 80px rgba(238, 58, 57, 0.12);
  margin: 0 auto;
}

.s-phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 100px;
  z-index: 2;
}

.s-phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.s-phone-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 100px;
}

.s-phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 64px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.s-phone-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c41f1e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.s-phone-header-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.s-phone-header-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.s-phone-thread {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}
.s-phone-thread::-webkit-scrollbar { display: none; }

.s-phone-empty {
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-dim);
}
.s-phone-empty span:first-child {
  font-size: 0.92rem;
  color: var(--text-mid);
}
.s-phone-empty-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* right side */
.s-try-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.s-try-input-card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.s-try-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.s-try-input-row {
  display: flex;
  gap: 10px;
}

.s-try-input-row input {
  flex: 1;
  padding: 14px 16px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.s-try-input-row input:focus {
  border-color: var(--accent);
}

.s-try-input-row button {
  padding: 14px 22px;
  white-space: nowrap;
}

.s-try-fineprint {
  margin: 12px 0 0;
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.s-try-script-card {
  padding: 18px 22px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 200px;
}

.s-try-script-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.s-try-script-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s-try-script-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s, transform 0.4s;
}
.s-try-script-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.s-try-script-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  box-shadow: 0 0 6px var(--accent);
}

.s-try-script-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-mid);
}
.s-try-script-text strong {
  color: #fff;
  font-weight: 600;
}

.s-try-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.s-try-reset {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.s-try-reset:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.s-try-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.s-try-status.is-active {
  color: var(--good);
}

/* phone thread messages (same shape as s-msg) */
.s-phone-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #fff;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.35s, transform 0.35s;
}
.s-phone-msg.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.s-phone-msg.is-in {
  background: #2a2a2a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.s-phone-msg.is-out {
  background: #2563eb;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.s-phone-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: #2a2a2a;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}
.s-phone-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: s-typing 1.2s infinite ease-in-out;
}
.s-phone-typing span:nth-child(2) { animation-delay: 0.15s; }
.s-phone-typing span:nth-child(3) { animation-delay: 0.3s; }

/* ─── ACT 4 — DASHBOARD SECTION ────────────────────────────── */
.s-dashboard-section {
  padding: 140px 24px;
  background: #050505;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.s-dashboard-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.s-dashboard-headline {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 20px 0 20px;
}

.s-dashboard-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0 0 28px;
  max-width: 480px;
}

.s-dashboard-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.s-dashboard-bullets li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-mid);
}

.s-bullet-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.s-dashboard-stage {
  display: flex;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   ACT 4 — Sales-team-side (6 beats)
   Validation → Sources → Enrichment → Routing → ROI → Philosophy
   ═══════════════════════════════════════════════════════════════ */

.s-pivot--alt { padding: 110px 24px; }

/* height + tint come from the shared chassis (de-act--7 de-act--good);
   .s-act--team remains as the page hook for Act-4-specific overrides */
.s-act--team .de-act-stage-sticky {
  height: min(58vh, 560px);
  max-height: 560px;
}

/* ─── BEAT 1: Lead Validator mockup ─────────────────────────── */
.s-validator {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.s-validator-header {
  padding: 14px 18px;
  background: #050505;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s-validator-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}
.s-validator-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.s-validator-sub strong { color: var(--good); }

.s-validator-rows {
  display: flex;
  flex-direction: column;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.s-vrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: opacity 0.4s, filter 0.4s;
}
.s-vrow:last-child { border-bottom: none; }

.s-vrow.is-bad {
  opacity: 0.45;
  filter: grayscale(40%);
  position: relative;
}
.s-vrow.is-bad::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left center;
  animation: s-strike 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
.de-beat--1.is-active .s-vrow.is-bad::after { transform: scaleX(1); }
@keyframes s-strike { to { transform: scaleX(1); } }

.s-vrow-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}
.s-vrow-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.s-vrow-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.s-vrow-tag--ok {
  color: var(--good);
  background: var(--good-dim);
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.s-vrow-tag--reject {
  color: var(--accent);
  background: var(--bad-dim);
  border: 1px solid rgba(238, 58, 57, 0.3);
}

.s-validator-footer {
  padding: 14px 18px;
  background: #050505;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.s-validator-stat {
  font-size: 0.74rem;
  color: var(--text-dim);
}
.s-validator-stat strong {
  color: #fff;
  font-weight: 700;
}

/* ─── BEAT 2: Source ingestion diagram ──────────────────────── */
.s-sources {
  width: 100%;
  max-width: 580px;
  display: grid;
  grid-template-columns: 1fr 40px 1.1fr;
  gap: 14px;
  align-items: center;
}

.s-sources-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s-src-tile {
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.s-src-tile--aimbase {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.04);
}

.s-src-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}
.s-src-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
}

.s-sources-arrows {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  align-items: center;
  position: relative;
}
.s-src-arrow {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--good), transparent);
  position: relative;
}
.s-src-arrow::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-right: 1px solid var(--good);
  border-top: 1px solid var(--good);
  transform-origin: right center;
  transform: translateY(-50%) rotate(45deg);
}

.s-sources-funnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s-src-funnel-node {
  padding: 22px 18px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(74, 222, 128, 0.02));
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.1);
}
.s-src-funnel-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.s-src-funnel-sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--good);
}

.s-src-funnel-out {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ─── BEAT 3: Forensic enrichment ───────────────────────────── */
.s-forensic {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.s-forensic-header {
  padding: 16px 20px;
  background: #050505;
  border-bottom: 1px solid var(--line);
}
.s-forensic-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.s-forensic-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.s-forensic-grid {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.s-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.s-fact-k {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.s-fact-v {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.35;
}

.s-forensic-judge {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(74, 222, 128, 0.02));
  border-top: 1px solid rgba(74, 222, 128, 0.3);
}
.s-judge-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--good);
  margin-bottom: 8px;
}
.s-judge-line {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-judge-line strong {
  font-weight: 800;
  color: var(--good);
}
.s-judge-tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--good);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}
.s-judge-sub {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ─── BEAT 4: Rep specialty routing ─────────────────────────── */
.s-routing {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.s-routing-lead {
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  text-align: center;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.s-routing-lead-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.s-routing-lead-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.s-routing-lead-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--bad-dim);
  border: 1px solid rgba(238, 58, 57, 0.3);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.s-routing-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.s-routing-arrow {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, var(--good));
}
.s-routing-arrow--down {
  background: linear-gradient(180deg, var(--good), transparent);
}
.s-routing-router {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--good);
  padding: 5px 12px;
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 100px;
  background: rgba(74, 222, 128, 0.08);
}

.s-routing-reps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.s-rep {
  padding: 14px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.55;
  transition: all 0.4s;
}
.s-rep.is-target {
  opacity: 1;
  border-color: rgba(74, 222, 128, 0.6);
  background: rgba(74, 222, 128, 0.06);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08), 0 12px 30px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.s-rep-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}
.s-rep.is-target .s-rep-avatar {
  background: linear-gradient(135deg, var(--good), #22c55e);
  color: #000;
}
.s-rep-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}
.s-rep-spec {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
}
.s-rep-status {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  border-radius: 100px;
}
.s-rep-status--skip {
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.s-rep-status--match {
  color: var(--good);
  background: var(--good-dim);
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.s-routing-result {
  width: 100%;
  padding: 14px 18px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: #fff;
}
.s-routing-result-icon {
  font-size: 1.2rem;
}

/* ─── BEAT 5: ROI calculator ────────────────────────────────── */
.s-roi {
  width: 100%;
  max-width: 600px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.s-roi-header {
  padding: 16px 22px;
  background: #050505;
  border-bottom: 1px solid var(--line);
}
.s-roi-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.s-roi-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.s-roi-inputs {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.s-roi-input {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
}
.s-roi-input label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.s-roi-control {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
}
.s-roi-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--good) 0%, var(--good) 50%, var(--line) 50%, var(--line) 100%);
  outline: none;
  cursor: pointer;
}
.s-roi-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--good);
  cursor: grab;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15), 0 2px 8px rgba(0,0,0,0.4);
}
.s-roi-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--good);
  cursor: grab;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}
.s-roi-val {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

.s-roi-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  padding: 22px;
  align-items: center;
}

.s-roi-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s-roi-col-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.s-roi-deals {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-mid);
}

.s-roi-rev {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.s-roi-col--with .s-roi-rev {
  color: var(--good);
}

.s-roi-rev-cap {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.s-roi-arrow {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--good);
  opacity: 0.7;
}

.s-roi-lift {
  padding: 22px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(74, 222, 128, 0.02));
  border-top: 1px solid rgba(74, 222, 128, 0.3);
  text-align: center;
}
.s-roi-lift-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--good);
  margin-bottom: 6px;
}
.s-roi-lift-num {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1;
}
.s-roi-lift-cap {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto;
}

/* ─── BEAT 6: Philosophy close ──────────────────────────────── */
.s-closer {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.s-closer-quote {
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.06), rgba(74, 222, 128, 0.02));
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-left: 3px solid var(--good);
  border-radius: 12px;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: #fff;
  letter-spacing: -0.005em;
}

.s-closer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.s-closer-stat {
  padding: 16px 14px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s-closer-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--good);
  line-height: 1;
}
.s-closer-unit {
  font-size: 0.65em;
  color: var(--text-dim);
  font-weight: 600;
  margin-left: 2px;
}
.s-closer-cap {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.s-closer-next {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.s-closer-next-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 9px;
  background: var(--bad-dim);
  border: 1px solid rgba(238, 58, 57, 0.3);
  border-radius: 100px;
}
.s-closer-next-text {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.45;
}

/* ─── responsive ────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════
   ACT 4 BEAT 1  —  One Funnel  —  particle motion, trash, team
   ═══════════════════════════════════════════════════════════════ */

.s-sources {
  position: relative;
}

.s-sources-funnel {
  position: relative;
}

.s-sources-out {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: stretch;
}

.s-sources-trash {
  padding: 14px 14px;
  background: rgba(238, 58, 57, 0.05);
  border: 1px dashed rgba(238, 58, 57, 0.4);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--accent);
  min-width: 78px;
}
.s-sources-trash-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}

.s-sources-team {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(74, 222, 128, 0.02));
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.s-sources-team-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--good);
  font-weight: 600;
}
.s-sources-team-avatars {
  display: flex;
  gap: -4px;
}
.s-sources-team-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--good), #22c55e);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #050505;
  margin-left: -6px;
}
.s-sources-team-av:first-child { margin-left: 0; }

.s-sources-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 4;
}

.s-lead-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  pointer-events: none;
  will-change: transform, opacity;
}
.s-lead-dot--good {
  background: var(--good);
  box-shadow: 0 0 8px var(--good-glow);
}
.s-lead-dot--spam {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Brief pulse on the funnel node when a lead passes through */
.s-src-funnel-node.is-pulse {
  animation: s-funnel-pulse 0.45s ease-out;
}
@keyframes s-funnel-pulse {
  0%   { box-shadow: 0 0 40px rgba(74, 222, 128, 0.1); }
  50%  { box-shadow: 0 0 60px rgba(74, 222, 128, 0.35); }
  100% { box-shadow: 0 0 40px rgba(74, 222, 128, 0.1); }
}

/* ═══════════════════════════════════════════════════════════════
   ACT 4 BEAT 2  —  Garbage In  —  rep-getting-pelted illustration
   ═══════════════════════════════════════════════════════════════ */

.s-bounce-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5;
}
.s-bounce-scene.is-faded {
  opacity: 0;
  pointer-events: none;
}

.s-bs-feed {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.s-bs-lead {
  position: absolute;
  padding: 8px 11px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-mid);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  top: 50%;
  left: -200px;
}
.s-bs-lead-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.s-bs-lead.is-rejected .s-bs-lead-x {
  opacity: 1;
  transform: scale(1);
}

.s-bs-rep {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}
.s-bs-rep.is-tired {
  opacity: 0.55;
  transform: scale(0.96);
}
.s-bs-rep.is-shake {
  animation: s-bs-shake 0.25s ease-in-out;
}
@keyframes s-bs-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

.s-bs-rep-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--good), #22c55e);
  color: #000;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.s-bs-rep-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}
.s-bs-rep-caption {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  min-height: 14px;
  transition: color 0.3s ease;
}
.s-bs-rep.is-tired .s-bs-rep-caption {
  color: var(--accent);
}

.s-bs-shield {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%) scaleY(0);
  transform-origin: center;
  width: 6px;
  height: 220px;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0), var(--good) 30%, var(--good) 70%, rgba(74, 222, 128, 0));
  border-radius: 100px;
  box-shadow: 0 0 28px var(--good-glow);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1;
}
.s-bs-shield.is-up {
  opacity: 1;
  transform: translate(-50%, -50%) scaleY(1);
}
.s-bs-shield-label {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--good);
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 100px;
}

/* validator slides in as the bounce scene fades out */
.s-validator[data-validator] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-validator[data-validator].is-revealed {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   ACT 4 BEAT 3  —  Forensic Enrichment  —  sequential reveal
   ═══════════════════════════════════════════════════════════════ */

.s-forensic [data-fr-reveal],
.s-forensic [data-fr-judge] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-forensic [data-fr-reveal].is-in,
.s-forensic [data-fr-judge].is-in {
  opacity: 1;
  transform: translateY(0);
}
.s-forensic [data-fr-judge].is-pulse {
  animation: s-fr-judge-pulse 0.6s ease-out;
}
@keyframes s-fr-judge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
  40%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.s-forensic-grid .s-fact[data-row] {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.s-forensic-grid .s-fact[data-row].is-in {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════════
   ACT 4 BEAT 4  —  Routing simulation
   ═══════════════════════════════════════════════════════════════ */

.s-routing { position: relative; }

/* hide the static MATCH status until the JS lights it up */
.s-routing [data-routing-reps] .s-rep .s-rep-status {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.s-routing [data-routing-reps] .s-rep.is-considered-skip .s-rep-status,
.s-routing [data-routing-reps] .s-rep.is-matched .s-rep-status {
  opacity: 1;
}

/* lead card animates in then drops into the router */
.s-routing [data-routing-lead] {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-routing [data-routing-lead].is-in {
  opacity: 1;
  transform: translateY(0);
}
.s-routing [data-routing-lead].is-dropping {
  opacity: 0.2;
  transform: translateY(60px) scale(0.6);
}

/* router pulses when lead enters */
.s-routing [data-routing-router].is-pulse {
  animation: s-router-pulse 0.6s ease-out;
}
@keyframes s-router-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
  40%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* floating WAKE BOAT tag that travels between reps */
.s-routing-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  padding: 5px 10px;
  background: var(--bad-dim);
  border: 1px solid rgba(238, 58, 57, 0.5);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.45, 0.05, 0.55, 0.95), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.s-routing-tag.is-on {
  opacity: 1;
}
.s-routing-tag.is-match {
  background: var(--good-dim);
  border-color: rgba(74, 222, 128, 0.6);
  color: var(--good);
}

/* rep states the JS toggles */
.s-routing [data-routing-reps] .s-rep {
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.s-routing [data-routing-reps] .s-rep.is-considered-skip {
  opacity: 0.5;
  filter: grayscale(40%);
}
.s-routing [data-routing-reps] .s-rep.is-matched {
  opacity: 1;
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(74, 222, 128, 0.07);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1), 0 14px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}
.s-routing [data-routing-reps] .s-rep.is-matched .s-rep-avatar {
  background: linear-gradient(135deg, var(--good), #22c55e);
  color: #000;
}

/* hide static MATCH/SKIP until lit */
.s-routing [data-routing-reps] .s-rep:not(.is-matched):not(.is-considered-skip) { opacity: 1; }

/* result slides up at the end */
.s-routing [data-routing-result] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-routing [data-routing-result].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   ACT 4 BEAT 5  —  ROI cursor demo + hint
   ═══════════════════════════════════════════════════════════════ */

.s-roi { position: relative; }

.s-roi-hint {
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--good);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 6;
}
.s-roi-hint.is-on {
  opacity: 1;
  transform: translateY(0);
  animation: s-roi-hint-pulse 1.8s ease-in-out infinite;
}
@keyframes s-roi-hint-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.s-roi-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  z-index: 7;
  transition: opacity 0.3s ease, transform 0.12s ease;
}
.s-roi-cursor.is-on { opacity: 1; }
.s-roi-cursor.is-pressed {
  transform: translate(-50%, -50%) scale(0.78);
}

/* ═══════════════════════════════════════════════════════════════
   ACT 4 BEAT 6  —  Philosophy close  —  sequential reveal + counters
   ═══════════════════════════════════════════════════════════════ */

.s-closer-reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-closer-reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.s-closer-stat.s-closer-reveal.is-pulse {
  animation: s-closer-pulse 0.45s ease-out;
}
@keyframes s-closer-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.s-closer-roadmap {
  display: inline-block;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.5s ease;
  margin-right: 4px;
}
.s-closer-roadmap.is-in {
  opacity: 1;
  transform: translateY(0);
}
.s-closer-roadmap--final.is-in {
  color: var(--good);
  animation: s-final-pulse 0.6s ease-out 0.2s;
}
@keyframes s-final-pulse {
  0%   { text-shadow: 0 0 0 rgba(74, 222, 128, 0); }
  50%  { text-shadow: 0 0 12px rgba(74, 222, 128, 0.6); }
  100% { text-shadow: 0 0 0 rgba(74, 222, 128, 0); }
}

@media (max-width: 1100px) {
  .s-marine-modal {
    width: min(calc(100vw - 24px), 720px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
  }
  .s-marine-modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 56px 18px 20px;
  }
  .s-marine-modal-stat,
  .s-marine-modal-card {
    max-width: 100%;
    padding: 18px;
  }
  .s-marine-source {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .s-marine-source img {
    max-width: 100%;
    height: auto;
    max-height: 32px;
    object-fit: contain;
  }
  .s-cohort-headline {
    align-items: center;
    text-align: center;
  }
  .s-cohort-headline h1 {
    font-size: clamp(2.35rem, 8.5vw, 3.8rem);
    text-align: center;
  }
  .s-cohort-stat {
    font-size: clamp(5rem, 20vw, 8.2rem);
    text-align: center;
  }
  .s-cohort-card {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px 12px 14px;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "cohort-label cohort-label"
      "cohort-viz cohort-viz"
      "alive lost"
      "cohort-caption cohort-caption"
      "fix-stack fix-stack"
      "scene-next scene-next";
    gap: 14px;
    align-content: start;
  }
  .s-cohort-row {
    display: contents;
  }
  .s-cohort-grid-wrap {
    display: block;
    width: min(100%, calc(100vw - 56px), 440px);
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    grid-area: cohort-viz;
    position: relative;
  }
  .s-cohort-grid {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-width: none;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(0, 1fr));
    gap: clamp(3px, 1.1vw, 6px);
    margin-inline: auto;
    box-sizing: border-box;
  }
  .s-cohort-viz-label {
    grid-area: cohort-label;
    margin-bottom: 0;
    flex-shrink: 0;
    font-weight: 800;
    font-size: clamp(0.64rem, 2.4vw, 0.72rem);
    letter-spacing: clamp(0.1em, 0.5vw, 0.16em);
    line-height: 1.45;
    color: rgba(255, 220, 224, 0.88);
    text-wrap: balance;
    overflow-wrap: normal;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-viz-label {
    color: rgba(190, 255, 218, 0.92);
  }
  .s-cohort-caption {
    grid-area: cohort-caption;
    margin: 0;
    flex-shrink: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
  }
  .s-cohort-fix-stack {
    grid-area: fix-stack;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
  .s-cohort-card .s-scene-next {
    grid-area: scene-next;
  }
  .s-hero-pulse {
    flex-shrink: 0;
    margin-top: auto;
  }
  .s-cohort-dot.is-restored {
    position: relative;
  }
  .s-cohort-dot.is-restored::after {
    content: '';
    position: absolute;
    inset: -6px;
    pointer-events: auto;
  }
  .s-cohort-fix-stack:empty {
    display: none;
  }
  .s-cohort-counter--alive {
    grid-area: alive;
  }
  .s-cohort-counter--lost {
    grid-area: lost;
  }
  .s-stats-section[data-active-beat="6"] .s-hero-pulse {
    display: none;
  }
  .s-stats-section[data-active-beat="6"] .s-hero-story-handoff {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-fix-stack {
    gap: 8px;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-fix-card {
    min-height: 40px;
    padding: 9px 12px;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-card .s-scene-next {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-popup {
    left: 50% !important;
    top: 0 !important;
    min-width: 0;
    max-width: calc(100% - 16px);
    transform: translate(-50%, 0) scale(0.92);
    font-size: 0.78rem;
    padding: 10px 14px;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-popup.is-in {
    transform: translate(-50%, -8px) scale(1);
  }
  .s-stats-section[data-active-beat="6"] .s-hero-pin,
  .s-stats-section[data-active-beat="6"] .s-stats-pin {
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
  }
  .s-hero.s-stats-section { height: 600vh; }
  .s-marine-proof {
    padding-top: max(72px, calc(24px + env(safe-area-inset-top, 0px)));
  }
  /* mobile act chassis lives in css/de-act.css (≤1100px block) */
  .s-act--team .de-act-stage-sticky {
    height: 100%;
    max-height: none;
    min-height: 0;
  }
  .s-act--team .s-sources {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1.05fr);
    gap: 6px 4px;
    padding-left: 0;
    max-width: 100%;
    transform: none;
    transform-origin: top center;
  }
  .s-act--team .s-sources-col {
    gap: 4px;
  }
  .s-act--team .s-src-tile {
    padding: 6px 8px;
  }
  .s-act--team .s-src-name {
    font-size: 0.66rem;
  }
  .s-act--team .s-src-meta {
    font-size: 0.52rem;
  }
  .s-act--team .s-src-funnel-node {
    padding: 10px 8px;
  }
  .s-act--team .s-src-funnel-title {
    font-size: 0.72rem;
  }
  .s-act--team .s-src-funnel-sub {
    font-size: 0.56rem;
  }
  .s-act--team .s-sources-out {
    margin-top: 6px;
    gap: 6px;
  }
  .s-act--team .s-sources-trash,
  .s-act--team .s-sources-team {
    padding: 8px 10px;
  }
  .s-act--team .s-sources-arrows {
    flex-direction: column;
    height: 100%;
    gap: 2px;
  }
  .s-act--team .s-src-arrow {
    transform: none;
    width: 100%;
  }
  .s-act--team .s-validator {
    max-height: calc(100% - 4px);
    overflow-x: hidden;
  }
  .s-act--team .s-validator-rows {
    max-height: min(190px, 30svh);
    overflow-x: hidden;
  }
  .s-act--team .s-vrow {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 8px 12px;
    align-items: start;
  }
  .s-act--team .s-vrow-meta,
  .s-act--team .s-vrow-tag {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .s-act--team .s-vrow-tag {
    justify-self: start;
    line-height: 1.25;
  }
  .s-act--team .s-forensic,
  .s-act--team .s-routing,
  .s-act--team .s-roi,
  .s-act--team .s-closer {
    transform: none;
    transform-origin: top center;
    max-width: 100%;
  }
  .s-act--team .s-routing {
    gap: 8px;
  }
  .s-act--team .s-routing-lead {
    padding: 9px 12px;
  }
  .s-act--team .s-routing-flow {
    gap: 2px;
  }
  .s-act--team .s-routing-arrow {
    height: 10px;
  }
  .s-act--team .s-routing-reps {
    gap: 6px;
  }
  .s-act--team .s-rep {
    padding: 9px 10px;
    gap: 3px;
  }
  .s-act--team .s-rep-avatar {
    width: 30px;
    height: 30px;
  }
  .s-act--team .s-routing-result {
    padding: 10px 12px;
    line-height: 1.35;
  }
  .s-act--team .s-roi {
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .s-act--team .s-roi-header,
  .s-act--team .s-roi-inputs,
  .s-act--team .s-roi-grid,
  .s-act--team .s-roi-lift {
    padding: 12px;
  }
  .s-act--team .s-roi-grid {
    gap: 8px;
  }
  .s-act--team .s-roi-rev {
    font-size: 1.35rem;
  }
  .s-act--team .s-roi-lift-num {
    font-size: 1.75rem;
  }
  .s-act--team .s-roi-lift-cap {
    font-size: 0.68rem;
    line-height: 1.35;
  }
  .s-act--team .s-closer {
    gap: 10px;
    padding-bottom: 24px;
  }
  .s-act--team .s-closer-quote {
    padding: 16px 18px;
    font-size: 0.98rem;
    line-height: 1.42;
  }
  .s-act--team .s-closer-stat {
    padding: 10px 12px;
  }
  .s-act--team .s-closer-next {
    padding: 12px;
  }
  .s-try-headline {
    font-size: clamp(1.75rem, 5.5vw, 2.4rem);
    text-wrap: balance;
  }
  .s-try-sub {
    margin-bottom: 36px;
  }
  .s-try-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .s-try-side {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .s-try-input-card,
  .s-try-script-card,
  .s-try-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .s-try-input-row {
    min-width: 0;
    flex-direction: column;
  }
  .s-try-input-row input {
    min-width: 0;
    width: 100%;
  }
  .s-try-input-row button {
    width: 100%;
    justify-content: center;
  }
  .s-phone {
    width: 100%;
    max-width: 340px;
    height: min(520px, 52vh);
    margin: 0 auto;
  }
  .s-dashboard-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .s-sources {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 8px;
    box-sizing: border-box;
    overflow: visible;
  }
  .s-src-tile {
    min-width: 0;
  }
  .s-sources-arrows {
    flex-direction: row;
    height: auto;
    gap: 14px;
  }
  .s-src-arrow { transform: rotate(90deg); }
  .s-sources-out { grid-template-columns: 1fr; }
  .s-bounce-scene {
    display: flex;
    inset: 0 0 52px;
    min-height: 300px;
  }
  .s-bs-rep-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
  .s-bs-shield {
    left: 56%;
    height: 180px;
  }
  .s-bs-lead {
    max-width: min(210px, 58vw);
    padding: 7px 9px;
    font-size: 0.58rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .s-validator[data-validator] {
    opacity: 0;
  }
  .s-act--team .s-validator[data-validator] {
    transform: none;
    transform-origin: top center;
  }
  .s-validator[data-validator].is-revealed {
    opacity: 1;
  }
  .s-forensic-grid { grid-template-columns: 1fr; }
  .s-routing-reps { grid-template-columns: 1fr; }
  .s-roi-input { grid-template-columns: 1fr; gap: 8px; }
  .s-roi-grid { grid-template-columns: 1fr; gap: 18px; }
  .s-roi-arrow { transform: rotate(90deg); }
  .s-closer-stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .s-hero { padding: 100px 20px 60px; min-height: auto; }
  .s-cohort-headline h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
  .s-cohort-stat {
    font-size: clamp(4.2rem, 20vw, 6.5rem);
  }
  .s-cohort-card {
    padding: 14px 10px 12px;
    gap: 12px;
  }
  .s-cohort-grid-wrap {
    width: min(100%, calc(100vw - 40px));
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-grid-wrap {
    width: min(100%, calc(100vw - 40px));
  }
  .s-hero-inner--pinned .s-hero-pulse {
    display: none;
  }
  .s-cohort-counter {
    min-height: 58px;
    padding: 8px 8px;
  }
  .s-cohort-counter strong {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }
  .s-cohort-caption {
    font-size: 0.8rem;
  }
  .s-cohort-headline p {
    margin-top: 14px;
    font-size: 0.96rem;
  }
  .s-cohort-counter span {
    font-size: 0.58rem;
  }
  .s-cohort-fix-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-fix-card {
    min-height: 36px;
    padding: 7px 8px;
    gap: 6px;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-fix-card strong {
    font-size: 0.72rem;
    line-height: 1.15;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-fix-card > span:last-child {
    font-size: 0.72rem;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-card .s-scene-next {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 0;
    width: 100%;
  }
  .de-beat,
  .de-beat > * {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .s-dash-grid {
    grid-template-columns: repeat(2, 1fr);
    font-size: 0.72rem;
  }
  .s-dash-grid .s-dash-stat-val {
    font-size: 1.05rem;
  }
  .s-dash-bottom { grid-template-columns: 1fr; }
  .s-card-stack { grid-template-columns: 1fr; }
  .s-validator-footer { flex-direction: column; gap: 8px; }
  .s-browser-bar {
    padding: 9px 12px;
  }
  .s-browser-body {
    padding: 12px;
    gap: 12px;
  }
  .s-browser-body--listing {
    grid-template-columns: 1fr;
  }
  .s-listing-img {
    aspect-ratio: 16 / 9;
  }
  .s-listing-meta {
    gap: 8px;
  }
  .s-listing-form.is-submitted {
    padding: 12px;
  }
  .s-form-confirm-icon {
    width: 32px;
    height: 32px;
  }
  .s-form-confirm-headline {
    font-size: 0.82rem;
  }
  .s-form-confirm-sub {
    font-size: 0.56rem;
  }
  .s-lost-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .s-lost-header-right { text-align: left; }
  .s-timeline-header {
    padding: 10px 14px;
  }
  .s-timeline-track {
    padding: 12px 12px 12px 38px;
  }
  .s-timeline-line { left: 18px; }
  .s-tl-event::before { left: -24px; }
  .s-timeline-events {
    gap: 8px;
  }
  .s-tl-event {
    padding: 8px 10px;
  }
  .s-tl-time {
    margin-right: 6px;
    font-size: 0.56rem;
  }
  .s-tl-from {
    font-size: 0.72rem;
  }
  .s-tl-msg {
    margin-top: 3px;
    font-size: 0.7rem;
    line-height: 1.34;
  }
  .s-lost-convo {
    min-height: 174px;
    padding: 14px;
    gap: 8px;
  }
  .s-lost-bubble {
    padding: 9px 12px;
    font-size: 0.78rem;
    line-height: 1.38;
  }
  .s-lost-stamp {
    margin: 0 14px 14px;
    padding: 10px 0;
  }
  .de-act-inner {
    padding: calc(var(--nav-height) + 30px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .de-act-headline {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }
  .s-act--team .de-act-headline {
    font-size: clamp(1.48rem, 6.1vw, 1.92rem);
    line-height: 1.07;
  }
  .s-act--team .s-routing {
    gap: 6px;
  }
  .s-act--team .s-routing-lead {
    max-width: 260px;
    padding: 7px 10px;
  }
  .s-act--team .s-routing-lead-name {
    font-size: 0.78rem;
  }
  .s-act--team .s-routing-lead-meta {
    font-size: 0.54rem;
    margin-top: 2px;
  }
  .s-act--team .s-routing-lead-tag {
    margin-top: 5px;
    padding: 3px 8px;
    font-size: 0.5rem;
  }
  .s-act--team .s-routing-flow {
    gap: 1px;
  }
  .s-act--team .s-routing-router {
    padding: 4px 9px;
    font-size: 0.54rem;
  }
  .s-act--team .s-routing-reps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .s-act--team .s-rep {
    min-width: 0;
    padding: 8px 5px;
    gap: 2px;
  }
  .s-act--team .s-rep-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }
  .s-act--team .s-rep-name {
    font-size: 0.7rem;
  }
  .s-act--team .s-rep-spec {
    font-size: 0.48rem;
    line-height: 1.18;
  }
  .s-act--team .s-rep-status {
    padding: 2px 5px;
    font-size: 0.46rem;
    letter-spacing: 0.1em;
  }
  .s-act--team .s-routing-result {
    padding: 8px 10px;
    gap: 8px;
    font-size: 0.72rem;
  }
  .s-act--team .s-routing-tag {
    padding: 3px 7px;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }
  .s-act--team .s-forensic-header {
    padding: 10px 12px;
  }
  .s-act--team .s-forensic-title {
    font-size: 0.82rem;
  }
  .s-act--team .s-forensic-sub {
    font-size: 0.54rem;
    margin-top: 2px;
  }
  .s-act--team .s-forensic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    padding: 10px 12px;
  }
  .s-act--team .s-fact {
    gap: 2px;
    padding: 5px 0;
  }
  .s-act--team .s-fact-k {
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }
  .s-act--team .s-fact-v {
    font-size: 0.62rem;
    line-height: 1.24;
  }
  .s-act--team .s-forensic-judge {
    padding: 10px 12px;
  }
  .s-act--team .s-judge-label {
    margin-bottom: 5px;
    font-size: 0.5rem;
  }
  .s-act--team .s-judge-line {
    gap: 7px;
    margin-bottom: 4px;
    font-size: 0.82rem;
  }
  .s-act--team .s-judge-tick {
    width: 18px;
    height: 18px;
    font-size: 0.66rem;
  }
  .s-act--team .s-judge-sub {
    font-size: 0.55rem;
    line-height: 1.28;
  }
  .s-act--team .de-beat--5 {
    gap: 8px;
  }
  .s-act--team .de-beat--5 .s-roi {
    overflow: hidden;
  }
  .s-act--team .de-beat--5 .s-roi-header {
    padding: 9px 12px 8px;
  }
  .s-act--team .de-beat--5 .s-roi-title {
    font-size: 0.84rem;
  }
  .s-act--team .de-beat--5 .s-roi-sub {
    margin-top: 2px;
    font-size: 0.54rem;
  }
  .s-act--team .de-beat--5 .s-roi-inputs {
    gap: 7px;
    padding: 9px 12px;
  }
  .s-act--team .de-beat--5 .s-roi-input {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .s-act--team .de-beat--5 .s-roi-input label {
    font-size: 0.56rem;
  }
  .s-act--team .de-beat--5 .s-roi-control {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
  }
  .s-act--team .de-beat--5 .s-roi-control input[type="range"] {
    height: 3px;
  }
  .s-act--team .de-beat--5 .s-roi-control input[type="range"]::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }
  .s-act--team .de-beat--5 .s-roi-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }
  .s-act--team .de-beat--5 .s-roi-val {
    font-size: 0.72rem;
  }
  .s-act--team .de-beat--5 .s-roi-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    padding: 10px 12px;
  }
  .s-act--team .de-beat--5 .s-roi-arrow {
    align-self: center;
    font-size: 0.9rem;
    transform: none;
  }
  .s-act--team .de-beat--5 .s-roi-col {
    gap: 3px;
  }
  .s-act--team .de-beat--5 .s-roi-col-label {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }
  .s-act--team .de-beat--5 .s-roi-deals {
    font-size: 0.62rem;
  }
  .s-act--team .de-beat--5 .s-roi-rev {
    font-size: 1.12rem;
  }
  .s-act--team .de-beat--5 .s-roi-rev-cap {
    font-size: 0.52rem;
  }
  .s-act--team .de-beat--5 .s-roi-lift {
    padding: 9px 12px 10px;
  }
  .s-act--team .de-beat--5 .s-roi-lift-label {
    margin-bottom: 3px;
    font-size: 0.52rem;
    letter-spacing: 0.18em;
  }
  .s-act--team .de-beat--5 .s-roi-lift-num {
    margin-bottom: 4px;
    font-size: 1.42rem;
  }
  .s-act--team .de-beat--5 .s-roi-lift-cap {
    font-size: 0.56rem;
    line-height: 1.24;
  }
  .s-beat-cap {
    gap: 8px;
    padding: 7px 12px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    line-height: 1.25;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) and (max-height: 880px) {
  .s-cohort-card {
    gap: 10px;
    padding: 12px 10px;
  }
  .s-cohort-grid-wrap,
  .s-stats-section[data-active-beat="6"] .s-cohort-grid-wrap {
    width: min(100%, calc(100vw - 78px), 272px);
  }
  .s-cohort-viz-label {
    font-size: 0.58rem;
    line-height: 1.32;
  }
  .s-cohort-caption {
    font-size: 0.74rem;
    line-height: 1.35;
  }
  .s-cohort-counter {
    min-height: 50px;
    padding: 6px 6px;
  }
  .s-cohort-counter span {
    margin-bottom: 4px;
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }
  .s-cohort-counter strong {
    font-size: clamp(1.22rem, 4.8vw, 1.55rem);
  }
  .s-stats-section[data-active-beat="6"] .s-hero-pin,
  .s-stats-section[data-active-beat="6"] .s-stats-pin {
    padding-top: calc(78px + env(safe-area-inset-top, 0px));
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-headlines {
    margin-bottom: 8px;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-stat {
    margin-bottom: 0;
    font-size: clamp(4rem, 17vw, 5.6rem);
    line-height: 0.98;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-headline h1 {
    font-size: clamp(1.85rem, 7vw, 2.45rem);
    line-height: 1.02;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-headline p {
    margin-top: 8px;
    padding-bottom: 0;
    font-size: 0.84rem;
    line-height: 1.3;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-grid-wrap {
    width: min(100%, calc(100vw - 96px), 250px);
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-fix-stack {
    display: none;
  }
  .s-stats-section[data-active-beat="6"] .s-cohort-card .s-scene-next {
    margin-top: 0;
    padding: 8px 10px;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 960px) {
  .sales-page .video-section {
    min-height: 100svh;
    padding: 15vh 0;
    display: flex;
    align-items: center;
  }
  @supports (min-height: 100dvh) {
    .sales-page .video-section {
      min-height: 100dvh;
    }
  }
  .sales-page .video-wrapper {
    width: 100%;
  }
  .sales-page .video-inner {
    width: var(--sales-video-width, 86vw) !important;
    max-width: 100vw;
    height: 70svh;
    min-height: 520px;
    border-radius: 18px !important;
    margin-inline: auto;
  }
  @supports (height: 70dvh) {
    .sales-page .video-inner {
      height: 70dvh;
    }
  }
  .sales-page .video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: calc(50% + 200px) 50%;
  }
  .sales-page .video-overlay-text {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 24px clamp(38px, 7vh, 64px);
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.58) 100%);
  }
  .sales-page .video-overlay-text h2 {
    padding: 0;
    font-size: clamp(2.05rem, 10vw, 3.65rem);
    line-height: 1;
    max-width: 8.4ch;
    text-align: left;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.72);
  }
}
