/* ================================================================
   GTM Conversion — Prototype Styles
   Design System: Canvas Studio (rose + all 5 colors)
   ================================================================ */

/* ---- CSS Custom Properties (Motion & Design Tokens) ---- */
:root {
  /* Brand Colors — Aurora Palette */
  --color-rose:    #ec4899;
  --color-indigo:  #6366f1;
  --color-teal:    #06b6d4;
  --color-amber:   #f59e0b;
  --color-purple:  #8b5cf6;

  /* Surface colors */
  --color-supply:  #6366f1;
  --color-demand:  #06b6d4;
  --color-motion:  #f59e0b;
  --color-lists:   #8b5cf6;
  --color-studio:  #ec4899;

  /* Background */
  --bg-deep:       #0a0a0f;
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);

  /* Text */
  --text-primary:  #f5f3f0;
  --text-secondary: rgba(245,243,240,0.65);
  --text-muted:    rgba(245,243,240,0.4);

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-heading:  'Syne', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;

  /* Gradient Control (set by JS) */
  --grad-color-1: #ec4899;
  --grad-color-2: #6366f1;
  --grad-color-3: #06b6d4;
  --grad-color-4: #f59e0b;
  --grad-color-5: #8b5cf6;

  /* Motion Tokens */
  --motion-duration-fast: 200ms;
  --motion-duration-normal: 400ms;
  --motion-duration-slow: 700ms;
  --motion-duration-glacial: 1200ms;
  --motion-ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ease-exit: cubic-bezier(0.55, 0, 1, 0.45);
  --motion-ease-standard: cubic-bezier(0.3, 0, 0.5, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-deep);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ---- Gradient Background Layer ---- */
.gradient-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    var(--grad-color-1) 0%,
    var(--grad-color-2) 25%,
    var(--grad-color-3) 50%,
    var(--grad-color-4) 75%,
    var(--grad-color-5) 100%
  );
  opacity: 0.12;
  filter: blur(100px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Second gradient layer for depth */
.gradient-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    var(--grad-color-1) 0%,
    transparent 60%
  );
  opacity: 0.15;
  pointer-events: none;
}

/* ---- Content Layer ---- */
.hero-section,
.case-studies-section,
.breather-section,
.constellation-section,
.process-section,
.testimonials-section,
.cta-section,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ================================================================ */
/* HERO — Aurora Genesis                                             */
/* ================================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Hero ambient glow */
.hero-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(236,72,153,0.06) 0%,
    rgba(99,102,241,0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora-svg {
  width: 100%;
  height: 100%;
  opacity: 0;
}

.aurora-thread {
  opacity: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

/* Subtle radial glow behind hero text */
.hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(236,72,153,0.08) 0%,
    rgba(99,102,241,0.04) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.hero-wordmark-wrapper {
  margin-bottom: 2rem;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.wordmark-line {
  display: block;
  color: var(--text-primary);
}

.wordmark-line--accent {
  background: linear-gradient(
    135deg,
    var(--color-rose),
    var(--color-amber),
    var(--color-teal),
    var(--color-indigo),
    var(--color-purple)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  opacity: 0;
  letter-spacing: -0.01em;
}

.tagline-dot {
  color: var(--color-rose);
}

.hero-cta-wrapper {
  opacity: 0;
}

/* CTA Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--motion-duration-fast) var(--motion-ease-enter),
              box-shadow var(--motion-duration-fast) var(--motion-ease-enter);
  position: relative;
  overflow: hidden;
}

.cta-button--primary {
  background: var(--color-rose);
  color: #fff;
  box-shadow: 0 4px 24px rgba(236,72,153,0.3);
}

.cta-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(236,72,153,0.45);
}

.cta-button--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.cta-button--secondary:hover {
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.cta-arrow {
  transition: transform var(--motion-duration-fast) var(--motion-ease-enter);
}

.cta-button:hover .cta-arrow {
  transform: translateY(3px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  z-index: 2;
}

.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-rose), transparent);
  animation: scroll-line-pulse 2s ease-in-out infinite;
}

@keyframes scroll-line-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ================================================================ */
/* CASE STUDIES                                                      */
/* ================================================================ */
.case-studies-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-rose);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Case Study Cards Grid */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.case-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.5s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

.case-card--supply:hover { box-shadow: 0 20px 60px rgba(99,102,241,0.18), 0 0 0 1px rgba(99,102,241,0.1); }
.case-card--demand:hover { box-shadow: 0 20px 60px rgba(6,182,212,0.18), 0 0 0 1px rgba(6,182,212,0.1); }
.case-card--motion:hover { box-shadow: 0 20px 60px rgba(245,158,11,0.18), 0 0 0 1px rgba(245,158,11,0.1); }
.case-card--lists:hover  { box-shadow: 0 20px 60px rgba(139,92,246,0.18), 0 0 0 1px rgba(139,92,246,0.1); }

.case-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--card-color, var(--color-rose)),
    transparent 70%
  );
  transition: opacity 0.4s ease;
}

.case-card:hover .case-card-bg {
  opacity: 0.08;
}

.case-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--card-color);
  letter-spacing: 0.1em;
}

.case-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.case-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.case-card-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--card-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.link-arrow {
  transition: transform 0.2s ease;
}

.case-card-link:hover .link-arrow {
  transform: translateX(4px);
}

.case-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--motion-ease-enter);
}

.case-card:hover .case-card-accent {
  transform: scaleX(1);
}

/* ---- Convergence Trigger ---- */
.convergence-trigger {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.convergence-logo {
  opacity: 0;
  transform: scale(0.5);
}

.convergence-logo-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 1.5rem;
}

.convergence-logo-text em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--color-rose), var(--color-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.convergence-logo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 12px var(--dot-color);
}

.logo-dot--center {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 20px var(--dot-color);
}

/* Convergence Canvas */
.convergence-canvas {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
}

/* ================================================================ */
/* BREATHER — Text Section                                           */
/* ================================================================ */
.breather-section {
  padding: 8rem 2rem;
  display: flex;
  justify-content: center;
}

.breather-content {
  max-width: 700px;
  text-align: center;
}

.breather-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.breather-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.breather-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  display: block;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-rose), var(--color-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ================================================================ */
/* CONSTELLATION — Three.js Section                                  */
/* ================================================================ */
.constellation-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.constellation-static {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.constellation-svg-fallback {
  width: 100%;
  max-width: 600px;
  height: auto;
  opacity: 0.6;
}

.constellation-three-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

.constellation-three-container.active {
  opacity: 1;
}

.constellation-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 2rem;
  pointer-events: none;
}

.constellation-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1rem 0;
}

.constellation-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.constellation-labels {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  z-index: 2;
}

.surface-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--label-color);
  padding: 0.35rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--label-color) 30%, transparent);
  border-radius: 999px;
}

/* ================================================================ */
/* PROCESS                                                           */
/* ================================================================ */
.process-section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  border-top: 2px solid var(--step-color);
  transition: transform 0.3s var(--motion-ease-enter),
              border-color 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--step-color);
  opacity: 0.3;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================ */
/* TESTIMONIALS                                                      */
/* ================================================================ */
.testimonials-section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  border-left: 2px solid var(--t-color);
  transition: transform 0.3s var(--motion-ease-enter);
}

.testimonial:hover {
  transform: translateY(-2px);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial cite {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial footer span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================================ */
/* CTA SECTION                                                       */
/* ================================================================ */
.cta-section {
  padding: 8rem 2rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.cta-content {
  max-width: 600px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================ */
/* FOOTER                                                            */
/* ================================================================ */
.site-footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-rose);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-surfaces {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-surface-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-surface-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.footer-surface-link:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-bottom span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ================================================================ */
/* CUSTOM CURSOR                                                     */
/* ================================================================ */
.custom-cursor {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-cursor.visible {
  opacity: 1;
}

.cursor-core {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--cursor-color, var(--color-rose));
  border-radius: 50%;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: var(--cursor-color, var(--color-rose));
  transition: opacity 0.15s ease;
}

.cursor-trail-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

/* ================================================================ */
/* IMPROVEMENTS: Scroll Progress, Chapter Markers, Wipes, Ripples    */
/* ================================================================ */

/* 7.8 Scroll Progress Aurora */
.scroll-progress-aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 10000;
  background: linear-gradient(90deg,
    var(--color-rose) 0%,
    var(--color-indigo) 25%,
    var(--color-teal) 50%,
    var(--color-amber) 75%,
    var(--color-purple) 100%
  );
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* 3.9 Narrative Chapter Marker */
.chapter-marker {
  position: fixed;
  top: 3rem;
  right: 2rem;
  z-index: 9999;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-rose);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(8px);
}
.chapter-marker.visible {
  opacity: 1;
  transform: translateY(0);
}
.chapter-marker span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-rose);
}

/* 3.12 Section Wipe */
.section-wipe {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  background: var(--wipe-color, var(--color-rose));
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.1s;
}
.section-wipe.active {
  opacity: 0.3;
  animation: section-wipe-anim 0.7s cubic-bezier(0.65,0,0.35,1) forwards;
}
@keyframes section-wipe-anim {
  0% { clip-path: inset(0 100% 0 0); }
  50% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

/* 6.4 Click Ripple */
.click-ripple {
  position: fixed;
  width: 4px;
  height: 4px;
  border: 1.5px solid var(--color-rose);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

/* ================================================================ */
/* RESPONSIVE                                                        */
/* ================================================================ */
@media (max-width: 1024px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .breather-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-wordmark {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .breather-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .custom-cursor {
    display: none !important;
  }

  .gradient-background {
    filter: blur(40px);
    opacity: 0.06;
  }

  .constellation-section {
    min-height: 60vh;
  }
}

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

  .custom-cursor {
    display: none !important;
  }

  .gradient-background {
    animation: none !important;
  }

  .hero-aurora {
    display: none;
  }

  .hero-wordmark,
  .hero-tagline,
  .hero-cta-wrapper {
    opacity: 1 !important;
  }

  .convergence-logo {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
}
