/* ===================================================
   CASHMERE CONTRA — Ultra-Premium Cinematic Stylesheet
   =================================================== */

/* --- Reset & Root --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cloud-white: #f5f3f0;
  --mist-gray: #c9c7c2;
  --stone-taupe: #8a847d;
  --cashmere-beige: #e8e0d5;
  --dove-gray: #7d7974;
  --twilight-blue: #8a9ba3;
  --warm-amber: #b58655;
  --deep-slate: #3b3a37;
  --rich-black: #1a1918;

  --display-font: "Cormorant Garamond", serif;
  --body-font: "Manrope", sans-serif;

  /* Cinematic timing */
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
  scroll-behavior: auto; /* GSAP handles smooth scroll */
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  background: var(--cloud-white);
  color: var(--stone-taupe);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* --- Custom Cursor --- */
* {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5" fill="%23B8B3AC" opacity="0.3"/></svg>'), auto;
}

a, button {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="8" fill="%23A8B5BC" opacity="0.5"/></svg>'), pointer;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--deep-slate);
  color: var(--cloud-white);
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* --- WebGL Canvas Layer --- */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 1.5s var(--ease-smooth);
}

#webgl-canvas.intense {
  opacity: 1;
}

#webgl-canvas.subtle {
  opacity: 0.3;
}

/* --- Progress Indicator --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--twilight-blue), var(--warm-amber));
  z-index: 1000;
  transition: none;
}

/* --- Navigation Marker --- */
.nav-dots {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.8s var(--ease-smooth);
}

.nav-dots.visible {
  opacity: 1;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist-gray);
  border: none;
  padding: 0;
  transition: all 0.5s var(--ease-luxury);
  position: relative;
}

.nav-dot.active {
  background: var(--twilight-blue);
  transform: scale(1.5);
}

.nav-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-taupe);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.nav-dot:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-dots {
    right: 16px;
    gap: 12px;
  }
  .nav-dot::after {
    display: none;
  }
}

/* ===================================================
   SECTIONS — Global
   =================================================== */
section {
  position: relative;
  z-index: 1;
  max-width: 100vw;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  /* NOTE: overflow:hidden removed — it was clipping against the fixed WebGL canvas
     and creating visible horizontal line artifacts across the page */
}

.section-title {
  font-family: var(--display-font);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  color: var(--deep-slate);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.section-subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--deep-slate);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
  opacity: 0.85;
  font-weight: 300;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0; /* full-bleed hero, override global section padding */
  background: transparent; /* WebGL shows through */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(245, 243, 240, 0.6) 0%,
    rgba(245, 243, 240, 0.9) 60%,
    var(--cloud-white) 100%
  );
  z-index: 1;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 1000px;
  padding: 0 32px;
  will-change: transform, opacity;
}

.hero h1 {
  font-family: var(--display-font);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 100px);
  color: var(--deep-slate);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(40px);
}

.hero p {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--stone-taupe);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 56px;
  opacity: 0;
  transform: translateY(30px);
  line-height: 1.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-taupe);
  opacity: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: var(--mist-gray);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--twilight-blue);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(0); }
  100% { transform: translateY(200%); }
}

/* ===================================================
   MANIFESTO / INTRO SECTION — Now Sticky
   =================================================== */
.manifesto-section {
  padding: 0 24px;
  background: transparent;
}

.manifesto-section .pin-wrapper {
  min-height: 200vh;
  position: relative;
}

.manifesto-section .pin-content {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 64px;
  box-sizing: border-box;
  overflow: hidden;
  will-change: transform;
}

.manifesto-content {
  max-width: 900px;
  text-align: center;
}

.manifesto-text {
  font-family: var(--display-font);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  color: var(--deep-slate);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.manifesto-text .word {
  display: inline-block;
  opacity: 0.1;
  transition: opacity 0.4s var(--ease-smooth);
  margin-right: 0.25em;
}

.manifesto-text .word.revealed {
  opacity: 1;
}

/* ===================================================
   PROBLEM / CHALLENGE SECTION — Stacked Sequential Reveal
   =================================================== */
.problem-section {
  padding: 0 24px;
  background: transparent;
}

.problem-section .pin-wrapper {
  min-height: 300vh;
  position: relative;
}

.problem-section .pin-content {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 64px;
  box-sizing: border-box;
  overflow: hidden;
  will-change: transform;
}

.problem-inner {
  max-width: 1300px;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: 1fr auto;
  gap: 48px 72px;
  align-items: start;
}

/* Bottom row spans both columns */
.problem-cards-bottom-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.problem-left {
  position: relative;
  padding-top: 20px;
}

.problem-left h2 {
  font-family: var(--display-font);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--deep-slate);
  margin-bottom: 24px;
  line-height: 1.1;
}

.problem-left p {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--stone-taupe);
  line-height: 1.8;
  max-width: 500px;
}

/* Stacked cards — all visible, appear sequentially */
.problem-cards-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(184, 179, 172, 0.15);
  box-shadow: 0 20px 60px rgba(74, 72, 69, 0.06);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth),
    background 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateX(30px);
  will-change: transform, opacity;
}

.problem-card.active {
  opacity: 1;
  transform: translateX(0);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(74, 72, 69, 0.08);
}

/* No more exiting state — cards stay visible once revealed */
.problem-card.revealed {
  opacity: 0.6;
  transform: translateX(0);
}

.problem-card .card-number {
  font-family: var(--display-font);
  font-size: 14px;
  color: var(--twilight-blue);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.problem-card h3 {
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--deep-slate);
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 14px;
  color: var(--stone-taupe);
  line-height: 1.7;
}

.problem-counter {
  font-family: var(--display-font);
  font-size: 14px;
  color: var(--mist-gray);
  margin-top: 24px;
  letter-spacing: 0.1em;
}

/* Mobile problem section */
@media (max-width: 1024px) {
  .problem-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .problem-section .pin-content {
    padding: 60px 24px;
    align-items: flex-start;
    box-sizing: border-box;
  }
  .problem-left h2 {
    font-size: clamp(28px, 4vw, 48px);
  }
}

/* ===================================================
   SOLUTION SECTION — Stacked layout with SKILL.md generate
   =================================================== */
.solution-section {
  padding: 0 24px;
  background: var(--cashmere-beige);
  position: relative;
}

.solution-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--cloud-white), transparent);
  z-index: 2;
  pointer-events: none;
}

.solution-section .pin-wrapper {
  min-height: 400vh;
  position: relative;
}

.solution-section .pin-content {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 64px;
  box-sizing: border-box;
  overflow: hidden;
  will-change: transform;
}

.solution-inner {
  max-width: 1400px;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Solution left — header + SKILL.md preview */
.solution-left {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution-left h2 {
  font-family: var(--display-font);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--deep-slate);
  margin-bottom: 4px;
  line-height: 1.1;
}

.solution-subtitle {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--stone-taupe);
  line-height: 1.7;
  max-width: 500px;
}

/* Solution right — stacked steps */
.solution-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Skill file preview — now inside solution-left */
.skill-file-preview {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(74, 72, 69, 0.10);
  border: 1px solid rgba(201, 199, 194, 0.3);
  transition: all 1s var(--ease-luxury);
  max-height: 280px;
  overflow: hidden;
}

.file-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 199, 194, 0.3);
}

.file-icon {
  width: 44px;
  height: 44px;
  background: var(--twilight-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
}

.file-name {
  font-family: "Courier New", monospace;
  font-size: 16px;
  color: var(--deep-slate);
  font-weight: 600;
}

.file-generating-indicator {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.file-generating-indicator.active {
  opacity: 1;
}

.generating-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm-amber);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.generating-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-amber);
  font-weight: 500;
}

.file-content {
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--stone-taupe);
  background: var(--cloud-white);
  padding: 16px;
  border-radius: 10px;
  min-height: 80px;
  position: relative;
  overflow: hidden;
}

.file-content .skill-line {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s var(--ease-luxury);
  display: block;
}

.file-content .skill-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.code-highlight {
  color: var(--twilight-blue);
  font-weight: 600;
}

/* Solution steps — stacked appearance like challenge */
.solution-steps-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.solution-step {
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(184, 179, 172, 0.15);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth),
    background 0.4s ease, box-shadow 0.4s ease;
}

.solution-step.active {
  opacity: 1;
  transform: translateX(0);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 48px rgba(74, 72, 69, 0.08);
}

.solution-step.revealed {
  opacity: 0.6;
  transform: translateX(0);
}

.step-number {
  font-family: var(--display-font);
  font-size: 13px;
  color: var(--twilight-blue);
  margin-bottom: 4px;
  display: block;
  letter-spacing: 0.05em;
}

.solution-step h3 {
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--deep-slate);
  margin-bottom: 4px;
}

.solution-step p {
  font-size: 13px;
  color: var(--stone-taupe);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .solution-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .solution-section .pin-content {
    padding: 60px 24px;
    align-items: flex-start;
    box-sizing: border-box;
  }
  .solution-left h2 {
    font-size: clamp(28px, 4vw, 48px);
  }
  .skill-file-preview {
    max-height: 250px;
  }
}

/* ===================================================
   DEMO SECTION — Scroll-Based Content Swap with Typewriter
   =================================================== */
.demo-section {
  padding: 0 24px;
  background: var(--cloud-white);
  position: relative;
}

.demo-section .pin-wrapper {
  min-height: 500vh;
  position: relative;
}

.demo-section .pin-content {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 64px;
  box-sizing: border-box;
  overflow: hidden;
  will-change: transform;
}

.demo-inner {
  max-width: 1400px;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  padding-top: 10px;
}

.demo-left {
  padding-top: 10px;
}

.demo-left h2 {
  font-family: var(--display-font);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--deep-slate);
  margin-bottom: 16px;
  line-height: 1.1;
}

.demo-left .demo-subtitle {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--stone-taupe);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* Prompt card — typewriter style */
.demo-prompt {
  background: white;
  border: 1px solid rgba(201, 199, 194, 0.3);
  border-radius: 16px;
  padding: 28px;
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--deep-slate);
  box-shadow: 0 12px 40px rgba(74, 72, 69, 0.05);
  transition: all 0.6s var(--ease-luxury);
  line-height: 1.6;
  position: relative;
}

.prompt-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone-taupe);
  margin-bottom: 20px;
  font-weight: 600;
}

.prompt-text {
  display: inline;
}

.prompt-cursor {
  display: inline-block;
  animation: blink-cursor 0.8s step-end infinite;
  color: var(--twilight-blue);
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s;
}

.prompt-cursor.typing {
  opacity: 1;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Output card */
.demo-output {
  background: linear-gradient(145deg, #8a9ba3 0%, #6b7b84 100%);
  border-radius: 20px;
  padding: 28px 32px;
  color: white;
  box-shadow:
    0 32px 80px rgba(138, 155, 163, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
  overflow: hidden;
}

.demo-output::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.output-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.output-label::before {
  content: "✓ ";
  color: rgba(255, 255, 255, 0.9);
}

.output-content {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 90px;
  transition: opacity 0.5s var(--ease-luxury);
}

.output-caption {
  font-family: var(--display-font);
  font-weight: 300;
  font-size: 13px;
  font-style: italic;
  line-height: 1.7;
  min-height: 80px;
  transition: opacity 0.5s var(--ease-luxury);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 14px;
}

/* Compliance score */
.compliance-score {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 28px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* Compact compliance – just the % */
.compliance-score--compact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  margin-top: 16px;
}

.compliance-score--compact .score-value {
  font-size: 36px;
  line-height: 1;
}

.compliance-score--compact .score-percent {
  font-size: 24px;
}

.compliance-score--compact .score-label {
  font-size: 10px;
  margin-bottom: 0;
  opacity: 0.6;
}

.score-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  opacity: 0.7;
}

.score-value {
  font-size: 48px;
  font-weight: 600;
  font-family: var(--display-font);
  line-height: 1;
}

.score-percent {
  font-size: 32px;
}

.score-checks {
  margin-top: 16px;
  font-size: 13px;
  line-height: 2;
}

.score-checks span {
  display: block;
  opacity: 0.85;
}

/* Demo phase indicator */
.demo-phase-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.phase-dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--mist-gray);
  transition: all 0.5s var(--ease-luxury);
}

.phase-dot.active {
  background: var(--twilight-blue);
  width: 48px;
}

@media (max-width: 1024px) {
  .demo-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .demo-section .pin-content {
    padding: 60px 24px;
    align-items: flex-start;
    box-sizing: border-box;
    overflow-y: auto;
  }
}

/* ===================================================
   RESULTS / IMPACT SECTION — Now Sticky
   =================================================== */
.results-section {
  padding: 0 24px;
  background: var(--rich-black);
  color: var(--cloud-white);
  position: relative;
}

.results-section .pin-wrapper {
  min-height: 180vh;
  position: relative;
}

.results-section .pin-content {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.results-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  text-align: center;
}

.results-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(138, 155, 163, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.results-section .section-title {
  color: var(--cloud-white);
}

.results-section .section-subtitle {
  color: var(--mist-gray);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.stat-card {
  text-align: center;
  padding: 56px 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.8s var(--ease-luxury);
  opacity: 0;
  transform: translateY(40px);
}

.stat-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-8px);
  border-color: rgba(138, 155, 163, 0.3);
}

.stat-number {
  font-family: var(--display-font);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  color: var(--warm-amber);
  margin-bottom: 16px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mist-gray);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .results-inner {
    padding: 0 24px;
  }
}

/* ===================================================
   GALLERY SECTION — "The Cashmere Experience"
   =================================================== */
.gallery-section {
  padding: 80px 64px 100px;
  background: linear-gradient(
    180deg,
    var(--rich-black) 0%,
    var(--deep-slate) 40%,
    var(--deep-slate) 80%,
    var(--rich-black) 100%
  );
  position: relative;
}

.gallery-spacer {
  height: 60px;
}

.gallery-section .section-title {
  color: var(--cloud-white);
}

.gallery-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.gallery-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(80px);
  transition: transform 0.6s var(--ease-smooth);
  will-change: transform, opacity;
}

.gallery-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 110%;
  height: 110%;
  left: -5%;
  top: -5%;
  position: absolute;
  object-fit: cover;
  will-change: transform;
  transition: transform 1.2s var(--ease-luxury);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px;
  background: linear-gradient(
    to top,
    rgba(26, 25, 24, 0.9) 0%,
    transparent 100%
  );
  color: var(--cloud-white);
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-smooth);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gallery-section {
    padding: 60px 24px 120px;
  }
}

/* ===================================================
   CTA SECTION — Dark gradient + animation overlay
   =================================================== */
.cta-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 64px 160px;
  background: var(--rich-black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(138, 155, 163, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(181, 134, 85, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(138, 155, 163, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 1.5s var(--ease-smooth);
}

.cta-overlay.active {
  opacity: 1;
}

/* Floating particle animation for CTA */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(2px 2px at 10% 20%, rgba(245, 243, 240, 0.15) 50%, transparent 50%),
    radial-gradient(2px 2px at 30% 60%, rgba(245, 243, 240, 0.1) 50%, transparent 50%),
    radial-gradient(2px 2px at 50% 40%, rgba(245, 243, 240, 0.12) 50%, transparent 50%),
    radial-gradient(2px 2px at 70% 80%, rgba(245, 243, 240, 0.08) 50%, transparent 50%),
    radial-gradient(2px 2px at 90% 30%, rgba(245, 243, 240, 0.1) 50%, transparent 50%),
    radial-gradient(3px 3px at 20% 70%, rgba(138, 155, 163, 0.1) 50%, transparent 50%),
    radial-gradient(3px 3px at 60% 20%, rgba(181, 134, 85, 0.08) 50%, transparent 50%),
    radial-gradient(3px 3px at 80% 60%, rgba(138, 155, 163, 0.06) 50%, transparent 50%);
  animation: float-particles 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes float-particles {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-15px); }
  75% { transform: translateY(-30px) translateX(5px); }
  100% { transform: translateY(0) translateX(0); }
}

.cta-section .section-title {
  color: var(--cloud-white);
  position: relative;
  z-index: 1;
}

.cta-section .section-subtitle {
  color: var(--mist-gray);
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.btn {
  padding: 18px 48px;
  border-radius: 32px;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  transition: all 0.5s var(--ease-luxury);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--cloud-white);
  color: var(--deep-slate);
  box-shadow: 0 16px 40px rgba(245, 243, 240, 0.15);
}

.btn-primary:hover {
  background: white;
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(245, 243, 240, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--cloud-white);
  border: 1.5px solid var(--mist-gray);
}

.btn-secondary:hover {
  background: var(--cloud-white);
  color: var(--deep-slate);
  border-color: var(--cloud-white);
  transform: translateY(-4px);
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  padding: 48px 32px;
  text-align: center;
  background: var(--rich-black);
  color: rgba(201, 199, 194, 0.5);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

footer p {
  font-family: var(--display-font);
  font-weight: 300;
  font-style: italic;
}

/* ===================================================
   REVEAL ANIMATIONS
   =================================================== */
.reveal-text .word {
  display: inline-block;
  opacity: 0.1;
  transition: opacity 0.5s var(--ease-smooth);
  margin-right: 0.25em;
}

.reveal-text .word.revealed {
  opacity: 1;
}

/* Character-level reveal */
.reveal-text span {
  opacity: 0.2;
  transition: opacity 0.4s ease;
  transition-delay: calc(var(--char-index) * 40ms);
}

.reveal-text.reading-active span {
  opacity: 1;
}

.reveal-text {
  color: var(--deep-slate);
  font-weight: 400;
}

/* Fade-in animation base */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--ease-luxury);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   SECTION TRANSITIONS / DIVIDERS
   =================================================== */
.section-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 2;
}

.section-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 2;
}

/* ===================================================
   SUBTITLE HIGHLIGHT ANIMATION
   =================================================== */
.subtitle-highlight-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.subtitle-highlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(138, 155, 163, 0.1) 0%,
    rgba(181, 134, 85, 0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: width 2.5s var(--ease-smooth);
}

.subtitle-highlight-overlay.active {
  width: 100%;
}

/* ===================================================
   UTILITY CLASSES
   =================================================== */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.mb-32 { margin-bottom: 32px !important; }
.m-0 { margin: 0 !important; }
.m-0-0-48 { margin: 0 0 48px !important; }
.font-32 { font-size: 32px !important; }

img {
  max-width: 100%;
  height: auto;
}

/* ===================================================
   SMOOTH SCROLL OVERRIDE (for GSAP ScrollSmoother)
   =================================================== */
.smooth-wrapper {
  overflow: hidden;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}

.smooth-content {
  will-change: transform;
}

/* Character fade animations (fallback) */
.char-fade-out {
  display: inline-block;
  animation: fadeOutChar 0.5s ease-out forwards;
}

.char-fade-in {
  display: inline-block;
  animation: fadeInChar 0.5s ease-in forwards;
  opacity: 0;
}

@keyframes fadeOutChar {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes fadeInChar {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prompt & output text transitions */
.prompt-text,
.output-content,
.output-caption {
  transition: opacity 0.5s var(--ease-luxury);
}

/* Problem icon styles */
.problem-icon {
  width: 48px;
  height: 48px;
  color: var(--twilight-blue);
  margin-bottom: 16px;
  opacity: 0.7;
}

.problem-icon svg {
  width: 40px;
  height: 40px;
}

/* ===================================================
   AUTO-SCROLL DEMO INDICATOR
   =================================================== */
#autoscroll-indicator {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(26, 25, 24, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--cloud-white);
  padding: 10px 24px;
  border-radius: 24px;
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

#autoscroll-indicator .autoscroll-status {
  color: var(--warm-amber);
  font-weight: 500;
}

/* ===================================================
   REDUCED MOTION — Respect user preference
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #webgl-canvas {
    opacity: 0.15 !important;
  }

  .gallery-item {
    opacity: 1;
    transform: none;
  }

  .stat-card {
    opacity: 1;
    transform: none;
  }

  .problem-card,
  .solution-step {
    opacity: 1;
    transform: none;
  }

  .manifesto-text .word {
    opacity: 1;
  }
}

/* ===================================================
   GALLERY CAPTIONS — Always visible on touch devices
   =================================================== */
@media (hover: none) {
  .gallery-caption {
    opacity: 1;
    transform: translateY(0);
  }
}
