/* ============================================================
   premium-v4.css — closes the quality gap:
   - Variable-font display typography using Fraunces opsz + SOFT
   - Word-mask lift reveal
   - Pinned stat section with huge numerals
   - Aura-grain SVG-filter atmospheric layer (UnicornStudio-adjacent)
   - Richer link states
   All CCC-branded. No third-party layout/content copied.
   ============================================================ */

/* ---------- Fraunces variable tuning ---------- */
.hero__title--v3,
.gallery-scroll__title,
.stat-pinned__num,
.section__inner > h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 700, "WONK" 1;
  letter-spacing: -0.03em;
}

/* Smaller serif H3s soften for contrast */
.step__title,
.faq__q {
  font-variation-settings: "opsz" 48, "SOFT" 100, "wght" 600, "WONK" 0;
}

/* ---------- Word-mask reveal (writes lines → words → chars) ---------- */
.v4-split { display: inline-block; }
.v4-split-line {
  display: block;
  overflow: hidden;
  padding: 0.02em 0;
}
.v4-split-word {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.v4-split.is-revealed .v4-split-word {
  animation: v4-word-lift 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes v4-word-lift {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

/* ---------- Pinned stat section (huge numerals) ---------- */
.stat-pinned {
  background: var(--bg-base);
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}
.stat-pinned__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 760px) {
  .stat-pinned__inner { grid-template-columns: 1fr; gap: var(--space-4); }
}
.stat-pinned__col {
  text-align: left;
  padding-right: var(--space-3);
  border-right: 1px solid var(--accent-dim);
}
.stat-pinned__col:last-child { border-right: none; }
@media (max-width: 760px) {
  .stat-pinned__col { border-right: none; border-bottom: 1px solid var(--accent-dim); padding-bottom: var(--space-3); }
  .stat-pinned__col:last-child { border-bottom: none; }
}
.stat-pinned__num {
  font-size: clamp(5rem, 14vw, 14rem);
  line-height: 0.88;
  color: var(--accent-primary);
  margin-bottom: var(--space-2);
  font-variation-settings: "opsz" 144, "SOFT" 0, "wght" 800, "WONK" 1;
  text-shadow: 0 0 40px rgba(212,169,74,0.15);
}
.stat-pinned__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--text-highlight);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.stat-pinned__body {
  font-size: var(--fs-base);
  color: var(--text-body);
  max-width: 30ch;
  line-height: 1.55;
}

/* ---------- Aura grain (atmospheric noise layer) ---------- */
.aura-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 75;
  opacity: 0.08;
  mix-blend-mode: overlay;
}
.aura-grain svg { width: 100%; height: 100%; }

/* ---------- Marquee strip (crime-scene detail echo) ---------- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--accent-dim);
  border-bottom: 1px solid var(--accent-dim);
  background: var(--bg-base);
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 60px;
  animation: marquee-slide 32s linear infinite;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 500, "WONK" 1;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  color: var(--text-highlight);
  will-change: transform;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Scroll-scrub progress indicator (edge of viewport) ---------- */
.scroll-progress {
  position: fixed;
  top: var(--tape-h);
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent-primary);
  z-index: 90;
  transition: width 60ms linear;
  box-shadow: 0 0 10px rgba(212,169,74,0.4);
}

/* Section-enter wipe removed — was visually intrusive when scrolling */
.section-wipe { position: relative; }
.section-wipe::before { display: none !important; content: none; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .v4-split-word { transform: none !important; animation: none !important; }
  .marquee__track { animation: none !important; }
  .aura-grain { display: none; }
}
