/* ═══════════════════════════════════════════════════════════════
   TADR Cinematic Landing — v3
   Editorial · 3D · scroll-driven · violet-rooted
   Three.js + GSAP + Lenis + custom cursor + grain overlay
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  /* Brand palette — violet preserved, deepened, expanded */
  --ink:           #0F0A1F;
  --ink-2:         #1A1230;
  --ink-3:         #2E1065;
  --violet:        #7C3AED;
  --violet-deep:   #5B21B6;
  --violet-light:  #A78BFA;
  --violet-glow:   rgba(124, 58, 237, 0.35);
  --cream:         #F5F3FF;
  --cream-warm:    #FAF6F0;
  --coral:         #FF6B6B;
  --sand:          #E8D5B7;

  /* Type */
  --serif:   'Fraunces', 'Times New Roman', Georgia, serif;
  --sans:    'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html, body { height: 100%; }
body.cinematic {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px), (pointer: coarse) {
  body.cinematic { cursor: auto; }
}

::selection { background: var(--violet); color: var(--cream); }

/* ── GRAIN OVERLAY (global) ──────────────────────────────────── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,    0); }
  10%  { transform: translate(-5%,  -10%); }
  20%  { transform: translate(-15%, 5%); }
  30%  { transform: translate(7%,   -25%); }
  40%  { transform: translate(-5%,  25%); }
  50%  { transform: translate(-15%, 10%); }
  60%  { transform: translate(15%,  0%); }
  70%  { transform: translate(0,    15%); }
  80%  { transform: translate(3%,   25%); }
  90%  { transform: translate(-10%, 10%); }
  100% { transform: translate(0,    0); }
}

/* ── CUSTOM CURSOR ───────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cream);
  transform: translate3d(-50%, -50%, 0);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--cream);
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), border-width 0.25s var(--ease-out-expo);
}
body.cursor-text   .cursor-ring { width: 8px;  height: 28px; border-radius: 4px; border-width: 1px; }
body.cursor-magnet .cursor-ring { width: 64px; height: 64px; border-width: 2px; }

/* ── LOADER ──────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s var(--ease-out-expo);
}
.loader.gone { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 600;
  font-style: italic;
  color: var(--violet-light);
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.loader-bar { width: 240px; height: 1px; background: rgba(245,243,255,0.15); overflow: hidden; }
.loader-bar-fill { width: 0; height: 100%; background: var(--violet-light); transition: width 0.3s linear; }
.loader-text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,243,255,0.5); }

/* ── TOP NAV (sticky, fades on scroll) ───────────────────────── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(15,10,31,0.92), rgba(15,10,31,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease-out-expo), border-color 0.4s;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  font-variation-settings: 'opsz' 96, 'SOFT' 50, 'WONK' 0;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 800; font-size: 16px;
  font-style: normal;
}
.brand-word { font-style: italic; }
.topnav-links { display: flex; gap: 32px; }
.topnav-link {
  color: rgba(245,243,255,0.7);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.topnav-link:hover { color: var(--cream); }
.topnav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--cream);
  transition: width 0.3s var(--ease-out-expo);
}
.topnav-link:hover::after { width: 100%; }
.topnav-actions { display: flex; align-items: center; gap: 20px; }
.topnav-link-ghost { color: rgba(245,243,255,0.85); }
.topnav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--cream); color: var(--ink);
  text-decoration: none; border-radius: 100px;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: -0.005em;
  transition: transform 0.25s var(--ease-out-expo), background 0.25s;
}
.topnav-cta:hover { background: var(--violet-light); transform: translateY(-1px); }
.topnav-cta-arrow { transition: transform 0.25s var(--ease-out-expo); }
.topnav-cta:hover .topnav-cta-arrow { transform: translateX(4px); }

/* ── CHAPTER RAIL (right-side index) ─────────────────────────── */
.rail {
  position: fixed; right: 32px; top: 50%; transform: translateY(-50%);
  z-index: 99;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
}
.rail.show { opacity: 1; }
.rail-item {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  color: rgba(245,243,255,0.4);
  transition: color 0.25s, gap 0.25s var(--ease-out-expo);
}
.rail-item:hover, .rail-item.active { color: var(--cream); gap: 16px; }
.rail-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  min-width: 24px;
  text-align: right;
}
.rail-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  width: 0;
  transition: opacity 0.25s var(--ease-out-expo), width 0.25s var(--ease-out-expo);
}
.rail-item:hover .rail-label, .rail-item.active .rail-label { opacity: 1; width: 64px; }

/* ── WebGL CANVAS (background, hero + features chapters) ─────── */
.bgcanvas {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s var(--ease-out-expo);
}

/* ── SHARED: CHAPTER BASE ─────────────────────────────────────── */
.chapter {
  position: relative; z-index: 2;
  min-height: 100vh;
  padding: 80px 48px;
  display: flex;
  isolation: isolate;
}

/* ═══════════════════════════════════════════════════════════════
   CHAPTER 00 — HERO
═══════════════════════════════════════════════════════════════ */
.chapter-hero {
  flex-direction: column; justify-content: flex-end;
  min-height: 100vh;
  padding: 120px 48px 60px;
  overflow: hidden;
}
.hero-meta {
  position: absolute; top: 88px; left: 48px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,243,255,0.6);
}
.meta-line { width: 40px; height: 1px; background: rgba(245,243,255,0.4); }
.hero-content { max-width: 1240px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,243,255,0.7);
  margin-bottom: 28px;
}
.hero-eyebrow em { font-style: italic; color: var(--violet-light); }
.dot-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet-light);
  box-shadow: 0 0 0 0 var(--violet-glow);
  animation: dotpulse 2.4s var(--ease-out-expo) infinite;
}
@keyframes dotpulse {
  0%   { box-shadow: 0 0 0 0 rgba(167,139,250,0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(167,139,250,0); }
  100% { box-shadow: 0 0 0 0 rgba(167,139,250,0); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 8.4vw, 120px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--cream);
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
  margin-bottom: 32px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-top: 0.12em;
  padding-bottom: 0.02em;
}
.hero-title .line.revealed {
  overflow: visible;   /* released after GSAP completes; lets italics + accents render clean */
}
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.hero-title .word-italic em { font-style: italic; color: var(--violet-light); font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; }

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(245,243,255,0.75);
  max-width: 640px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}
.dr-flag { font-size: 1em; vertical-align: -0.15em; }

.hero-actions {
  display: flex; gap: 32px; align-items: center;
  opacity: 0; transform: translateY(20px);
}

.hero-scroll {
  position: absolute; bottom: 60px; right: 48px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,243,255,0.5);
}
.hero-scroll-line {
  width: 1px; height: 64px;
  background: linear-gradient(180deg, rgba(245,243,255,0.5), transparent);
  animation: scrolldown 2s var(--ease-in-out-circ) infinite;
}
@keyframes scrolldown {
  0% { transform: translateY(-30%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(30%); opacity: 0; }
}

.hero-marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid rgba(167,139,250,0.18);
  border-bottom: 1px solid rgba(167,139,250,0.18);
  padding: 14px 0;
  background: rgba(15,10,31,0.6);
  backdrop-filter: blur(8px);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245,243,255,0.55);
}
.marquee-track > span { padding-right: 40px; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-magnetic {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  background: var(--cream); color: var(--ink);
  text-decoration: none;
  border-radius: 100px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em;
  will-change: transform;
  transition: background 0.3s var(--ease-out-expo), color 0.3s;
  overflow: hidden;
}
.btn-magnetic::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out-expo);
  z-index: 0;
}
.btn-magnetic:hover::before { transform: translateY(0); }
.btn-magnetic:hover { color: var(--cream); }
.btn-magnetic-inner, .btn-magnetic-arrow { position: relative; z-index: 1; }
.btn-magnetic-arrow {
  transition: transform 0.3s var(--ease-out-expo);
}
.btn-magnetic:hover .btn-magnetic-arrow { transform: translateX(6px); }

.btn-magnetic-lg {
  padding: 22px 42px;
  font-size: 17px;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: 14px 0;
}
.btn-ghost-line {
  width: 28px; height: 1px; background: var(--cream);
  transition: width 0.3s var(--ease-out-expo);
}
.btn-ghost:hover .btn-ghost-line { width: 64px; }

/* ═══════════════════════════════════════════════════════════════
   CHAPTER 01 — WHY (editorial photo + pull quote)
═══════════════════════════════════════════════════════════════ */
.chapter-why {
  background: var(--cream-warm);
  color: var(--ink);
  flex-direction: row; gap: 80px;
  padding: 140px 48px 140px;
  align-items: center;
}
.why-photo {
  flex: 0 0 42%;
  position: relative;
  align-self: stretch;
  min-height: 70vh;
  overflow: hidden;
  border-radius: 4px;
}
.why-photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
  will-change: transform;
}
.why-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15,10,31,0.18) 100%),
              linear-gradient(135deg, rgba(124,58,237,0.08), transparent);
  mix-blend-mode: multiply;
}
.why-content { flex: 1; max-width: 720px; }
.why-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 36px;
}
.why-pullquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  margin-bottom: 56px;
}
.why-pullquote .quote-mark {
  font-family: var(--serif);
  color: var(--violet);
  font-size: 0.8em; line-height: 0;
  display: inline-block;
  transform: translate(-12px, 16px);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.why-pullquote .ital {
  font-style: italic;
  color: var(--violet);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.why-pullquote .strike {
  position: relative;
  color: rgba(15,10,31,0.4);
}
.why-pullquote .strike::after {
  content: ''; position: absolute;
  left: -2px; right: -2px; top: 53%;
  height: 4px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease-out-expo);
}
.why-pullquote.in .strike::after { transform: scaleX(1); }

.why-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 56px;
}
.why-col {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}
.why-col-tag {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--violet-deep);
  margin-bottom: 8px;
}
.why-col p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.why-col strong { color: var(--ink); font-weight: 700; }

.why-cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--violet-deep);
  font-variation-settings: 'opsz' 96, 'SOFT' 50, 'WONK' 1;
}
.why-cta-arrow {
  font-family: var(--sans);
  font-style: normal;
  font-size: 28px; line-height: 1;
  animation: arrowDown 2s var(--ease-in-out-circ) infinite;
}
@keyframes arrowDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════════
   CHAPTER 02 — FEATURES (3D constellation)
═══════════════════════════════════════════════════════════════ */
.chapter-features {
  flex-direction: column;
  min-height: 130vh;
  padding: 120px 48px 80px;
  position: relative;
}
.features-header {
  max-width: 900px;
  margin-bottom: 48px;
}
.features-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 24px;
}
.features-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  margin-bottom: 24px;
}
.features-title em {
  font-style: italic;
  color: var(--violet-light);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.features-hint {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,243,255,0.5);
}

.features-stage {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 460px;
  margin-bottom: 32px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.feature-card {
  position: absolute; left: 50%; top: 50%;
  width: 280px; padding: 24px;
  background: linear-gradient(160deg, rgba(124,58,237,0.18), rgba(124,58,237,0.04));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(167,139,250,0.28);
  border-radius: 6px;
  color: var(--cream);
  transform-style: preserve-3d;
  cursor: grab;
  user-select: none;
  will-change: transform;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.feature-card.dragging { cursor: grabbing; }
.feature-card.active {
  background: linear-gradient(160deg, rgba(124,58,237,0.32), rgba(124,58,237,0.08));
  border-color: var(--violet-light);
}
.feature-card-num {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.24em;
  color: var(--violet-light);
  margin-bottom: 14px;
}
.feature-card-name {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 10px;
  font-variation-settings: 'opsz' 96, 'SOFT' 80, 'WONK' 1;
}
.feature-card-blurb {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245,243,255,0.75);
}

.features-detail {
  max-width: 900px;
  padding: 32px 36px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 4px;
  min-height: 160px;
  transition: background 0.35s var(--ease-out-expo), border-color 0.35s;
}
.features-detail.live { background: rgba(124,58,237,0.14); border-color: var(--violet); }
.features-detail-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--violet-light);
  margin-bottom: 12px;
}
.features-detail-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--cream);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.features-detail-body {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245,243,255,0.75);
}

/* ═══════════════════════════════════════════════════════════════
   CHAPTER 03 — NUMBERS (particle field)
═══════════════════════════════════════════════════════════════ */
.chapter-numbers {
  flex-direction: column;
  min-height: 100vh;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.numbers-particles {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.numbers-eyebrow {
  position: relative; z-index: 1;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 40px;
}
.numbers-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
  margin-bottom: 60px;
}
.number-block {
  border-top: 1px solid rgba(167,139,250,0.22);
  padding-top: 18px;
}
.number-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 8.8vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--cream);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  margin-bottom: 12px;
  display: block;
}
.number-label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--violet-light);
  font-variation-settings: 'opsz' 96, 'SOFT' 80, 'WONK' 1;
  margin-bottom: 6px;
}
.number-sub {
  font-size: 14px;
  color: rgba(245,243,255,0.55);
  line-height: 1.5;
}

.numbers-quote {
  position: relative; z-index: 1;
  max-width: 720px;
  margin: 60px 0 0 auto;
  text-align: right;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.35;
  font-style: italic;
  color: rgba(245,243,255,0.85);
  font-variation-settings: 'opsz' 96, 'SOFT' 80, 'WONK' 1;
}
.numbers-quote p { margin-bottom: 16px; }
.numbers-quote em { color: var(--violet-light); }
.numbers-quote-attr {
  display: inline-block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,243,255,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   CHAPTER 04 — VOICES (testimonials)
═══════════════════════════════════════════════════════════════ */
.chapter-voices {
  flex-direction: column;
  min-height: 100vh;
  padding: 120px 48px 80px;
  background: var(--cream-warm);
  color: var(--ink);
}
.voices-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 24px;
}
.voices-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 56px;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
}
.voices-title em {
  font-style: italic; color: var(--violet);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.voice-card {
  padding: 36px 36px 32px;
  background: var(--cream);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 4px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
  cursor: pointer;
}
.voice-card:hover {
  transform: translateY(-6px);
  border-color: var(--violet);
  box-shadow: 0 30px 60px rgba(124,58,237,0.18);
}
.voice-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--violet);
  margin-bottom: 22px;
}
.voice-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 28px;
  font-variation-settings: 'opsz' 96, 'SOFT' 60, 'WONK' 1;
}
.voice-attr { display: flex; flex-direction: column; gap: 4px; }
.voice-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.voice-role {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,10,31,0.55);
}

/* ═══════════════════════════════════════════════════════════════
   CHAPTER 05 — CTA (sunset shader)
═══════════════════════════════════════════════════════════════ */
.chapter-cta {
  flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 100vh;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.cta-shader {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.cta-content {
  position: relative; z-index: 1;
  max-width: 1100px;
}
.cta-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 28px;
}
.cta-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--cream);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  margin-bottom: 32px;
}
.cta-em {
  font-style: italic;
  color: var(--violet-light);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.cta-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: rgba(245,243,255,0.75);
  max-width: 560px;
  margin-bottom: 48px;
}
.cta-actions { display: flex; gap: 32px; align-items: center; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink-2);
  color: var(--cream);
  padding: 80px 48px 40px;
  position: relative; z-index: 2;
  border-top: 1px solid rgba(167,139,250,0.18);
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-brand { margin-bottom: 56px; }
.footer-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  border-radius: 10px;
  font-family: var(--sans);
  font-weight: 800; font-size: 22px;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-brand-word {
  font-family: var(--serif);
  font-weight: 600; font-style: italic;
  font-size: 30px;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  margin-bottom: 10px;
}
.footer-brand-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(245,243,255,0.7);
  max-width: 320px;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  margin-bottom: 56px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: rgba(245,243,255,0.75);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(167,139,250,0.18);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(245,243,255,0.45);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .rail { display: none; }
}
@media (max-width: 900px) {
  .topnav { padding: 16px 20px; }
  .topnav-links { display: none; }
  .chapter { padding: 60px 20px; }
  .chapter-hero { padding: 100px 20px 40px; }
  .hero-meta { top: 70px; left: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-scroll { display: none; }
  .marquee-track { font-size: 11px; }
  .chapter-why { flex-direction: column; gap: 48px; padding: 100px 20px; }
  .why-photo { flex: 0 0 auto; width: 100%; min-height: 50vh; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-stage { height: 50vh; }
  .feature-card { width: 220px; padding: 18px; }
  .numbers-grid { grid-template-columns: 1fr; gap: 56px; }
  .numbers-quote { margin: 40px 0 0; text-align: left; }
  .voices-grid { grid-template-columns: 1fr; gap: 24px; }
  .voice-card { padding: 28px 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
