/* ==========================================================================
   bable.pro — Probable
   A probability / possibility exploration platform.
   Pastel-on-dark with sharp-angled geometric collage.
   ========================================================================== */

:root {
  --void: #0d0d0f;
  --dark: #1a1a24;
  --cloud: #f0eef5;
  --mist: #8b8a95;
  --lavender: #c4a1ff;
  --mint: #7dffc2;
  --blush: #ff9eb8;
  --lemon: #fff07a;
  --sky: #7ac8ff;

  --font-display: 'Bebas Neue', 'Work Sans', sans-serif;
  --font-body: 'Work Sans', 'Inter', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: 'Share Tech Mono', 'Space Mono', 'Courier New', monospace;

  --pad-x: 12%;
  --pad-y: 80px;
  --diag: 60px;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

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

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

body {
  background-color: var(--void);
  color: var(--cloud);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Chevron grid backdrop — subtle, behind everything */
.chevron-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--void);
  background-image:
    linear-gradient(60deg, transparent 49%, rgba(26, 26, 36, 0.55) 49%, rgba(26, 26, 36, 0.55) 51%, transparent 51%),
    linear-gradient(-60deg, transparent 49%, rgba(26, 26, 36, 0.55) 49%, rgba(26, 26, 36, 0.55) 51%, transparent 51%);
  background-size: 36px 62px;
  opacity: 0.45;
}

/* Faint mathematical grid overlay for some sections */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(26, 26, 36, 0.9) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 26, 36, 0.9) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.55;
}

/* ===== SITE MARK (top-left hallmark) ===== */
.site-mark {
  position: fixed;
  top: 24px;
  left: 32px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  mix-blend-mode: difference;
}
.mark-bracket {
  display: block;
  width: 14px;
  height: 14px;
  border-left: 2px solid var(--lavender);
  border-top: 2px solid var(--lavender);
}
.mark-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--cloud);
}
.mark-data {
  color: var(--mint);
  font-size: 11px;
}

/* ===== SECTION BASE ===== */
.section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: var(--pad-y) 0;
}

/* Alternating diagonal cuts between sections */
.section:nth-child(odd of .section) {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diag)), 0 100%);
}
.section:nth-child(even of .section) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--diag)));
}
.section:last-of-type {
  clip-path: none;
  padding-bottom: calc(var(--pad-y) + var(--diag));
}

.section-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 var(--pad-x);
}

/* ===== CORNER BRACKETS (decorative 45° intersecting lines) ===== */
.corner-bracket {
  position: absolute;
  width: 36px;
  height: 36px;
  z-index: 5;
  pointer-events: none;
}
.corner-bracket::before,
.corner-bracket::after {
  content: '';
  position: absolute;
  background: var(--lavender);
  opacity: 0.55;
}
.corner-tl { top: 32px; left: 32px; }
.corner-tl::before { top: 0; left: 0; width: 28px; height: 1px; }
.corner-tl::after { top: 0; left: 0; width: 1px; height: 28px; }
.corner-br { bottom: 32px; right: 32px; }
.corner-br::before { bottom: 0; right: 0; width: 28px; height: 1px; background: var(--mint); }
.corner-br::after { bottom: 0; right: 0; width: 1px; height: 28px; background: var(--mint); }

/* ===== TYPOGRAPHY ===== */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 14.5vw, 160px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: var(--cloud);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
}

.char-letter {
  display: inline-block;
  transform: translateY(110%) rotate(8deg);
  opacity: 0;
  animation: letterDrop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 70ms);
}
.char-letter:nth-child(1) { --d: 1; }
.char-letter:nth-child(2) { --d: 2; }
.char-letter:nth-child(3) { --d: 3; }
.char-letter:nth-child(4) { --d: 4; }
.char-letter:nth-child(5) { --d: 5; }
.char-letter:nth-child(6) { --d: 6; }
.char-letter:nth-child(7) { --d: 7; }
.char-letter:nth-child(8) { --d: 8; }

@keyframes letterDrop {
  0% { transform: translateY(110%) rotate(8deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9.5vw, 132px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--cloud);
  margin-bottom: 40px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--mist);
  margin-top: 28px;
  letter-spacing: 0.02em;
  max-width: 520px;
}

.lead-text {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  color: var(--cloud);
  max-width: 620px;
  margin: 0 0 48px;
  font-weight: 400;
}

.body-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--cloud);
  max-width: 640px;
  margin-bottom: 24px;
}

.accent-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lavender);
}

/* ===== EYEBROW LABELS ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--mint);
  transform: rotate(45deg);
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: rotate(45deg) scale(0.85); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.15); }
}
.eyebrow-text { color: var(--cloud); }
.eyebrow-data { color: var(--sky); }
.eyebrow-center { justify-content: center; }

/* ===== HERO META ===== */
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
}
.meta-item {
  padding: 6px 12px;
  border: 1px solid rgba(139, 138, 149, 0.35);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.meta-item:nth-child(1) { color: var(--sky); border-color: rgba(122, 200, 255, 0.35); }
.meta-item:nth-child(3) { color: var(--mint); border-color: rgba(125, 255, 194, 0.35); }
.meta-item:nth-child(5) { color: var(--lavender); border-color: rgba(196, 161, 255, 0.35); }
.meta-divider {
  width: 10px;
  height: 1px;
  background: var(--mist);
  opacity: 0.4;
}

/* ===== COLLAGE LAYER ===== */
.collage-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.shard {
  position: absolute;
  mix-blend-mode: screen;
  will-change: transform;
  transition: opacity 0.6s ease;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(24px, -18px) rotate(4deg); }
}

/* Hero shards */
.shard-1 { width: 220px; height: 220px; background: var(--lavender); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); top: 12%; right: 8%; opacity: 0.22; }
.shard-2 { width: 160px; height: 320px; background: var(--mint); clip-path: polygon(0 0, 100% 20%, 80% 100%, 10% 80%); top: 28%; right: 22%; opacity: 0.18; animation-delay: -4s; }
.shard-3 { width: 190px; height: 190px; background: var(--blush); clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%); top: 8%; right: 38%; opacity: 0.16; animation-delay: -8s; }
.shard-4 { width: 130px; height: 260px; background: var(--sky); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); top: 50%; right: 12%; opacity: 0.2; animation-delay: -12s; }
.shard-5 { width: 260px; height: 160px; background: var(--lemon); clip-path: polygon(0 0, 100% 30%, 90% 100%, 10% 70%); top: 60%; right: 34%; opacity: 0.12; animation-delay: -6s; }
.shard-6 { width: 110px; height: 220px; background: var(--lavender); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); top: 18%; left: 4%; opacity: 0.14; animation-delay: -14s; }
.shard-7 { width: 170px; height: 170px; background: var(--mint); clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%); bottom: 18%; left: 8%; opacity: 0.16; animation-delay: -10s; }
.shard-8 { width: 100px; height: 200px; background: var(--blush); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); bottom: 28%; left: 28%; opacity: 0.14; animation-delay: -16s; }

/* Band shards */
.shard-b1 { width: 260px; height: 200px; background: var(--sky); clip-path: polygon(0 0, 100% 20%, 80% 100%, 10% 80%); top: 6%; left: -4%; opacity: 0.18; }
.shard-b2 { width: 180px; height: 280px; background: var(--lemon); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); bottom: 4%; right: 4%; opacity: 0.15; animation-delay: -6s; }
.shard-b3 { width: 160px; height: 160px; background: var(--lavender); clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%); top: 52%; right: 20%; opacity: 0.14; animation-delay: -9s; }
.shard-b4 { width: 130px; height: 220px; background: var(--mint); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); top: 5%; right: 44%; opacity: 0.12; animation-delay: -13s; }

/* Fork shards */
.shard-f1 { width: 220px; height: 220px; background: var(--lavender); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); top: 6%; left: 6%; opacity: 0.18; }
.shard-f2 { width: 180px; height: 300px; background: var(--mint); clip-path: polygon(0 0, 100% 20%, 80% 100%, 10% 80%); bottom: 8%; left: 26%; opacity: 0.12; animation-delay: -8s; }
.shard-f3 { width: 140px; height: 140px; background: var(--sky); clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%); top: 45%; left: 45%; opacity: 0.1; animation-delay: -12s; }
.shard-f4 { width: 180px; height: 280px; background: var(--blush); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); top: 10%; right: 10%; opacity: 0.2; }
.shard-f5 { width: 140px; height: 220px; background: var(--lemon); clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%); bottom: 8%; right: 14%; opacity: 0.14; animation-delay: -6s; }

/* Cascade shards */
.shard-cs1 { width: 200px; height: 200px; background: var(--lavender); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); top: 4%; right: 4%; opacity: 0.15; }
.shard-cs2 { width: 160px; height: 280px; background: var(--sky); clip-path: polygon(0 0, 100% 20%, 80% 100%, 10% 80%); bottom: 10%; left: -2%; opacity: 0.16; animation-delay: -5s; }
.shard-cs3 { width: 140px; height: 140px; background: var(--mint); clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%); top: 40%; right: 28%; opacity: 0.12; animation-delay: -9s; }
.shard-cs4 { width: 100px; height: 200px; background: var(--blush); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); top: 60%; left: 18%; opacity: 0.14; animation-delay: -13s; }
.shard-cs5 { width: 220px; height: 140px; background: var(--lemon); clip-path: polygon(0 0, 100% 30%, 90% 100%, 10% 70%); bottom: 4%; right: 20%; opacity: 0.1; animation-delay: -11s; }

/* Convergence shards (converge toward center) */
.shard-c1 { width: 200px; height: 200px; background: var(--lavender); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); top: 8%; left: 8%; opacity: 0.22; animation: convergeA 14s ease-in-out infinite alternate; }
.shard-c2 { width: 160px; height: 260px; background: var(--sky); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); top: 14%; right: 12%; opacity: 0.18; animation: convergeB 14s ease-in-out infinite alternate; }
.shard-c3 { width: 180px; height: 180px; background: var(--mint); clip-path: polygon(0 0, 100% 30%, 90% 100%, 10% 70%); bottom: 18%; left: 16%; opacity: 0.16; animation: convergeA 16s ease-in-out infinite alternate; }
.shard-c4 { width: 140px; height: 200px; background: var(--blush); clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%); bottom: 10%; right: 26%; opacity: 0.2; animation: convergeB 16s ease-in-out infinite alternate; }
.shard-c5 { width: 100px; height: 180px; background: var(--lemon); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); top: 40%; left: 36%; opacity: 0.14; animation: convergeA 18s ease-in-out infinite alternate; }
.shard-c6 { width: 220px; height: 160px; background: var(--lavender); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); top: 26%; right: 4%; opacity: 0.12; animation: convergeB 18s ease-in-out infinite alternate; }

@keyframes convergeA {
  0% { transform: translate(0,0) rotate(0deg) scale(1); }
  100% { transform: translate(80px, 40px) rotate(6deg) scale(0.9); }
}
@keyframes convergeB {
  0% { transform: translate(0,0) rotate(0deg) scale(1); }
  100% { transform: translate(-80px, -40px) rotate(-6deg) scale(0.92); }
}

/* ===== PROBABILITY NOTATION (oversized mathematical glyphs) ===== */
.probability-notation {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.notation-symbol {
  font-family: var(--font-serif);
  font-style: italic;
  display: block;
  color: var(--mist);
  opacity: 0.22;
  line-height: 1;
}
.notation-hero { top: 12%; right: 6%; }
.notation-hero .notation-symbol { font-size: 130px; }
.notation-hero .notation-faded { font-size: 220px; opacity: 0.1; color: var(--lavender); margin-top: -40px; }
.notation-hero .notation-small { font-size: 90px; opacity: 0.16; color: var(--sky); margin-top: -20px; }

.notation-band { top: 18%; left: 4%; }
.notation-giant { font-size: 320px !important; opacity: 0.08 !important; color: var(--lavender) !important; font-family: var(--font-serif); line-height: 0.8; }
.notation-medium { font-size: 180px !important; opacity: 0.08 !important; color: var(--mint) !important; }

.notation-fork-a, .notation-fork-b { top: 16%; }
.notation-fork-a { right: 8%; }
.notation-fork-b { left: 8%; }
.notation-fork-a .notation-faded,
.notation-fork-b .notation-faded { font-size: 200px; opacity: 0.1; color: var(--lavender); }

.notation-cascade { top: 8%; right: 6%; }
.notation-cascade .notation-symbol { margin-bottom: 16px; }

.notation-convergence { bottom: 8%; right: 8%; }
.notation-convergence .notation-final {
  font-family: var(--font-display);
  font-size: 180px;
  opacity: 0.1;
  color: var(--lemon);
  letter-spacing: 0.08em;
}

/* ===== SECTION 1: HERO / PROBABILITY FIELD ===== */
.section-hero {
  background: var(--void);
  align-items: flex-end;
  padding-bottom: calc(15vh + var(--diag));
}
.hero-content { position: relative; z-index: 3; }

.scroll-indicator {
  position: absolute;
  bottom: 64px;
  left: var(--pad-x);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.scroll-label { opacity: 0.7; }
.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--lavender), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1.25); transform-origin: top; }
}

/* ===== SECTION 2: SPECTRUM BAND (horizontal scrolling cards) ===== */
.section-spectrum-band {
  background: var(--void);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 40px;
}
.band-content { max-width: 100%; }

.spectrum-track-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 0 0 var(--pad-x);
}
.spectrum-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 40px 4vw 40px 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.spectrum-track::-webkit-scrollbar { display: none; }

.spec-card {
  flex: 0 0 340px;
  min-height: 420px;
  background: rgba(26, 26, 36, 0.75);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-snap-align: start;
  cursor: grab;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.spec-card.tilt-a { transform: rotate(-3deg); }
.spec-card.tilt-b { transform: rotate(4deg); }
.spec-card.tilt-c { transform: rotate(-5deg); }
.spec-card:hover { transform: rotate(0deg) translateY(-6px); }
.spec-card:active { cursor: grabbing; }

.spec-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
}
.spec-pct {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--lavender);
}
.spec-card[data-color="mint"] .spec-pct { color: var(--mint); }
.spec-card[data-color="sky"] .spec-pct { color: var(--sky); }
.spec-card[data-color="blush"] .spec-pct { color: var(--blush); }
.spec-card[data-color="lemon"] .spec-pct { color: var(--lemon); }

.spec-title {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--cloud);
  text-transform: uppercase;
}
.spec-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(240, 238, 245, 0.72);
  flex-grow: 1;
}
.spec-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.spec-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 4px 10px;
  border: 1px solid rgba(139, 138, 149, 0.3);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.spectrum-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 4vw 0 0;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--mist);
}
.spec-progress-track {
  flex: 1;
  height: 2px;
  background: rgba(139, 138, 149, 0.2);
  position: relative;
  overflow: hidden;
}
.spec-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lavender), var(--mint), var(--blush), var(--lemon), var(--sky));
  transition: width 0.25s ease;
}

/* ===== BORDER ANIMATE (signature pattern with conic-gradient) ===== */
.border-animate {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  isolation: isolate;
  z-index: 0;
}
.border-animate::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from var(--angle, 0deg),
    var(--lavender),
    var(--mint),
    var(--blush),
    var(--lemon),
    var(--sky),
    var(--lavender));
  z-index: -1;
  animation: rotate-gradient 8s linear infinite;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.border-animate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark);
  z-index: -1;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.border-animate:hover::before {
  animation-duration: 4s;
  inset: -3px;
}
@keyframes rotate-gradient {
  to { --angle: 360deg; }
}

/* ===== SECTION 3: DECISION FORK (62/38 split) ===== */
.section-fork {
  background: var(--dark);
  padding: 0;
  align-items: stretch;
}
.fork-split {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
}
.fork-panel {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--pad-y) + 40px) 0;
}
.fork-panel-a {
  flex: 0 0 62%;
  background: var(--void);
  clip-path: polygon(0 0, 100% 0, calc(100% - 80px) 100%, 0 100%);
}
.fork-panel-b {
  flex: 0 0 38%;
  background: var(--dark);
  margin-left: -80px;
  clip-path: polygon(80px 0, 100% 0, 100% 100%, 0 100%);
}
.fork-seam {
  position: absolute;
  top: 0;
  left: 62%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--lavender) 30%, var(--mint) 70%, transparent);
  transform: skewX(-14deg) translateX(-40px);
  opacity: 0.6;
  z-index: 4;
  pointer-events: none;
}

.fork-panel-content {
  position: relative;
  z-index: 3;
  padding: 0 6vw 0 var(--pad-x);
  max-width: 720px;
}
.fork-panel-b .fork-panel-content {
  padding: 0 var(--pad-x) 0 10vw;
}

.fork-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--cloud);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.fork-headline-b { color: var(--blush); }

.fork-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(240, 238, 245, 0.82);
  max-width: 520px;
  margin-bottom: 36px;
}

.fork-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
}
.fork-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(240, 238, 245, 0.03);
  border-left: 2px solid var(--lavender);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  font-family: var(--font-body);
  font-size: 14px;
}
.fork-item:hover {
  background: rgba(240, 238, 245, 0.07);
  transform: translateX(6px);
}
.fork-list-b .fork-item { border-left-color: var(--blush); }
.fork-list-b .fork-item:nth-child(2) { border-left-color: var(--lemon); }
.fork-item-glyph {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--mint);
}
.fork-list-b .fork-item-glyph { color: var(--blush); }
.fork-item-text {
  color: var(--cloud);
  line-height: 1.5;
}
.fork-item-val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--sky);
}

/* ===== SECTION 4: CASCADE ===== */
.section-cascade {
  background: var(--void);
  align-items: flex-start;
  padding-top: calc(var(--pad-y) + 40px);
}
.cascade-content { position: relative; }
.cascade-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
  margin-top: 40px;
}
.cascade-block {
  background: rgba(26, 26, 36, 0.8);
  padding: 28px 32px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  border: 1px solid rgba(240, 238, 245, 0.08);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}
.cascade-block.tumble-a { transform: rotate(-2deg) translateX(0); }
.cascade-block.tumble-b { transform: rotate(3deg) translateX(40px); }
.cascade-block.tumble-c { transform: rotate(-4deg) translateX(-24px); }
.cascade-block.tumble-alt { transform: rotate(2deg) translateX(80px); }
.cascade-block:hover {
  transform: rotate(0deg) translateX(0);
  border-color: var(--lavender);
}
.cascade-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--mist);
  text-transform: uppercase;
}
.cascade-block:nth-child(1) .cascade-pct { color: var(--mint); }
.cascade-block:nth-child(2) .cascade-pct { color: var(--sky); }
.cascade-block:nth-child(3) .cascade-pct { color: var(--blush); }
.cascade-block:nth-child(4) .cascade-pct { color: var(--lemon); }
.cascade-pct {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.cascade-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--cloud);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cascade-copy {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(240, 238, 245, 0.74);
  max-width: 560px;
}

/* ===== SECTION 5: CONVERGENCE ===== */
.section-convergence {
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--pad-y) + 40px) var(--pad-x);
}
.convergence-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 0;
  text-align: center;
  margin: 0 auto;
}
.convergence-title {
  margin-bottom: 36px;
}
.convergence-message { margin-bottom: 48px; }
.convergence-text {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.75;
  color: var(--cloud);
  margin-bottom: 20px;
}

/* Pulsing concentric rings at convergence focal point */
.convergence-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  pointer-events: none;
  z-index: 1;
}
.pulse-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 200px;
  height: 200px;
  border: 1px solid var(--lavender);
  opacity: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: pulseOut 6s ease-out infinite;
}
.pulse-ring-1 { animation-delay: 0s; border-color: var(--lavender); }
.pulse-ring-2 { animation-delay: 1.5s; border-color: var(--mint); }
.pulse-ring-3 { animation-delay: 3s; border-color: var(--blush); }
.pulse-ring-4 { animation-delay: 4.5s; border-color: var(--sky); }
@keyframes pulseOut {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(4.5); opacity: 0; }
}

.convergence-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 20px 42px;
  cursor: pointer;
  background: var(--dark);
  margin-bottom: 48px;
  transition: transform 0.3s ease;
}
.convergence-cta:hover {
  transform: translateY(-3px);
}
.cta-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  padding: 4px 8px;
  border: 1px solid rgba(125, 255, 194, 0.5);
}
.cta-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cloud);
}
.cta-arrow {
  font-size: 22px;
  color: var(--lavender);
  transition: transform 0.3s ease, color 0.3s ease;
}
.convergence-cta:hover .cta-arrow {
  transform: translateX(10px);
  color: var(--mint);
}

.convergence-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  border-top: 1px solid rgba(240, 238, 245, 0.08);
  border-bottom: 1px solid rgba(240, 238, 245, 0.08);
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cloud);
}
.stat-col:nth-child(1) .stat-num { color: var(--mint); }
.stat-col:nth-child(3) .stat-num { color: var(--lavender); }
.stat-col:nth-child(5) .stat-num { color: var(--lemon); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(139, 138, 149, 0.3);
  transform: rotate(15deg);
}

/* ===== STAGGER ENTRY ANIMATION ===== */
.stagger-item {
  opacity: 0;
  transform: translateX(-40px) skewX(-4deg);
  transition: none;
}
[data-visible="true"] .stagger-item {
  animation: sliceIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes sliceIn {
  from { opacity: 0; transform: translateX(-40px) skewX(-4deg); }
  to { opacity: 1; transform: translateX(0) skewX(0deg); }
}

/* ===== SECTION CONTENT REVEAL (not stagger) ===== */
.section-content,
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-content.visible,
.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.site-foot {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-top: 1px solid rgba(139, 138, 149, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
  background: var(--void);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-col-a { color: var(--cloud); }
.foot-col-b { color: var(--lavender); }
.foot-col-c { color: var(--sky); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --pad-x: 8%; --pad-y: 60px; }

  .fork-split { flex-direction: column; }
  .fork-panel-a,
  .fork-panel-b {
    flex: 1 1 100%;
    clip-path: none;
    margin-left: 0;
    padding: 60px 0;
  }
  .fork-seam { display: none; }
  .fork-panel-b .fork-panel-content { padding: 0 var(--pad-x); }

  .notation-hero .notation-symbol { font-size: 80px; }
  .notation-hero .notation-faded { font-size: 130px; }
  .notation-giant { font-size: 200px !important; }
  .notation-convergence .notation-final { font-size: 120px; }

  .spec-card { flex: 0 0 280px; min-height: 380px; }

  .cascade-block.tumble-b,
  .cascade-block.tumble-c,
  .cascade-block.tumble-alt { transform: translateX(0); }

  .convergence-stats { gap: 20px; padding: 20px; }
  .stat-divider { display: none; }
}

@media (max-width: 640px) {
  :root { --pad-x: 6%; --diag: 40px; }

  body { font-size: 16px; }
  .hero-title { font-size: clamp(64px, 18vw, 96px); }
  .section-title { font-size: clamp(44px, 13vw, 72px); }
  .hero-subtitle { font-size: 17px; }
  .lead-text { font-size: 17px; margin-bottom: 32px; }

  .site-mark { top: 18px; left: 18px; gap: 10px; }
  .mark-text { font-size: 18px; }
  .mark-data { display: none; }

  .hero-meta { gap: 10px; font-size: 10px; }
  .meta-divider { display: none; }

  .corner-bracket { display: none; }

  .spectrum-track { gap: 20px; padding: 32px 4vw 32px 0; }
  .spec-card { flex: 0 0 260px; padding: 24px 22px; min-height: 360px; }

  .cascade-block { padding: 22px 24px; }
  .cascade-title { font-size: 28px; }

  .convergence-stats { flex-direction: column; gap: 16px; padding: 20px; }
  .stat-divider { display: none; }

  .site-foot { flex-direction: column; text-align: center; gap: 8px; }
}
