/* ═══════════════════════════════════════════════════════
   COSMOS.CSS  |  RSM SEO Cosmos Page
   Animation philosophy: Smooth, spring-like, not overkill
   ═══════════════════════════════════════════════════════ */

/* ── NAV ── */
.nav-active { color: #d4a54a !important; }
.nav-active::after { width: 100% !important; }

/* ── SCROLL PROGRESS BAR ── */
#scrollProgress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #d4a54a, rgba(212,165,74,0.5));
  z-index: 998;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(212,165,74,0.4);
  transition: width 0.08s linear;
}

/* ═══════════════════════════════════
   ANIMATION PRIMITIVES
   (the "Framer Motion" layer)
═══════════════════════════════════ */

/* Section scale-enter: sections start slightly small + offset */
.cs-enter {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-enter.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Generic reveal (fade + up) */
.cs-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero mask text reveal (clip from bottom) */
.csmask {
  display: block;
  overflow: hidden;
  line-height: 1.12;
}
.csmask span,
.csmask em {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-loaded .csmask span,
.hero-loaded .csmask em { transform: translateY(0); }

/* Eyebrow slide-in from left */
.cs-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #d4a54a;
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  margin-bottom: 16px;
}
.cs-eyebrow.visible { opacity: 0.85; transform: translateX(0); }

/* Hero special eyebrow (no observer, fires on load) */
.hero-eyebrow {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.6s 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s 0.6s cubic-bezier(0.16,1,0.3,1);
}
.hero-loaded .hero-eyebrow { opacity: 0.85; transform: translateX(0); }

/* Hero sub + btns fade up */
.hero-sub {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.7s 0.5s cubic-bezier(0.16,1,0.3,1);
}
.hero-btns {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.7s 0.65s cubic-bezier(0.16,1,0.3,1);
}
.hero-loaded .hero-sub,
.hero-loaded .hero-btns { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════
   SHARED SECTION UTILITIES
═══════════════════════════════════ */
.cs-sec {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
}
.cs-sec-dark {
  background: rgba(255,255,255,0.012);
  border-top: 1px solid rgba(212,165,74,0.06);
  border-bottom: 1px solid rgba(212,165,74,0.06);
}
.cs-sec-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 80px);
}
.cs-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 88px);
}
.cs-sec-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.18;
  color: #eef0ff;
  margin-bottom: 18px;
}
.cs-sec-title em { font-style: italic; color: #d4a54a; }
.cs-sec-sub {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(238,240,255,0.55);
}

/* Buttons */
.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: #d4a54a;
  color: #020108;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.3s, box-shadow 0.3s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.cs-btn-primary:hover {
  background: #e8be6a;
  box-shadow: 0 0 36px rgba(212,165,74,0.3);
  transform: translateY(-2px);
}
.cs-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: transparent;
  border: 1px solid rgba(212,165,74,0.28);
  color: rgba(238,240,255,0.65);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: border-color 0.3s, color 0.3s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.cs-btn-ghost:hover {
  border-color: rgba(212,165,74,0.6);
  color: #d4a54a;
  transform: translateY(-2px);
}

/* Orbs */
.cs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.cs-orb1 {
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(68,24,130,0.2) 0%, transparent 70%);
  top: -25%; left: -15%;
  animation: cosOrb1 20s ease-in-out infinite;
}
.cs-orb2 {
  width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(14,50,110,0.18) 0%, transparent 70%);
  bottom: -20%; right: -15%;
  animation: cosOrb2 25s ease-in-out infinite;
}
.cs-orb3 {
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(212,165,74,0.07) 0%, transparent 70%);
  top: 20%; right: 10%;
  animation: cosOrb1 18s ease-in-out infinite reverse;
}
.cs-orb4 {
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(68,24,130,0.25) 0%, transparent 70%);
  top: -20%; left: -20%;
  animation: cosOrb1 22s ease-in-out infinite;
}
.cs-orb5 {
  width: 45vw; height: 45vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(212,165,74,0.08) 0%, transparent 70%);
  bottom: -10%; right: -10%;
  animation: cosOrb2 28s ease-in-out infinite;
}
@keyframes cosOrb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(5%,8%) scale(1.08); }
}
@keyframes cosOrb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-6%,-5%) scale(1.06); }
}
.cs-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,165,74,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,165,74,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none; z-index: 1;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.cs-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020108;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; z-index: 1;
}
.cs-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(2,1,8,0.7) 100%);
  pointer-events: none;
}
.cs-hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cs-hero-content {
  position: relative; z-index: 5;
  text-align: center;
  max-width: 820px;
  padding: 0 clamp(24px, 5vw, 60px);
}
.cs-hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 8vw, 108px);
  font-weight: 900;
  color: #eef0ff;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.cs-hero-title em { font-style: italic; color: #d4a54a; }
.cs-hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.75;
  color: rgba(238,240,255,0.6);
  max-width: 600px;
  margin: 0 auto 36px;
}
.cs-hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cs-scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  opacity: 0;
  animation: fadeIn 0.6s 1.4s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.cs-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(212,165,74,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%     { opacity: 1; transform: scaleY(1.15); }
}
.cs-scroll-hint span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: 3px;
  color: rgba(212,165,74,0.45); text-transform: uppercase;
}

/* ═══════════════════════════════════
   20 SURFACES
═══════════════════════════════════ */
.surfaces-wrap { position: relative; }
#surfaceCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
}
.surfaces-grid {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.surface-card {
  position: relative;
  padding: 20px 18px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 10px;
  transition:
    border-color 0.35s,
    background 0.35s,
    transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.35s;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
}
.surface-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.surface-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.surface-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 10px;
  border: 1px solid var(--sc-color, #d4a54a);
  opacity: 0; transition: opacity 0.35s;
}
.surface-card:hover::before { opacity: 0.45; }
.sc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 11px; position: relative;
}
.sc-icon svg { width: 20px; height: 20px; }
.sc-icon-glow {
  position: absolute; inset: -5px; border-radius: 12px;
  filter: blur(10px); opacity: 0; transition: opacity 0.35s;
}
.surface-card:hover .sc-icon-glow { opacity: 0.3; }
.sc-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(238,240,255,0.9); margin-bottom: 5px;
}
.sc-desc { font-size: 11px; line-height: 1.6; color: rgba(238,240,255,0.38); }
.sc-pulse {
  position: absolute; top: 13px; right: 13px;
  width: 6px; height: 6px; border-radius: 50%;
  opacity: 0; transition: opacity 0.35s;
}
.surface-card:hover .sc-pulse { opacity: 1; animation: scPulse 1.4s ease-in-out infinite; }
@keyframes scPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(2); opacity: 0.3; }
}

/* ═══════════════════════════════════
   JOURNEY / SIGNAL STORYTELLING
═══════════════════════════════════ */
.journey-sec {
  position: relative;
  background: rgba(255,255,255,0.012);
  border-top: 1px solid rgba(212,165,74,0.06);
  border-bottom: 1px solid rgba(212,165,74,0.06);
  overflow: visible;
}
.journey-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 80px);
  gap: 72px;
  align-items: start;
}
/* ── Sticky Sidebar ── */
.journey-sidebar {
  position: sticky;
  top: 80px;
  padding: 80px 0 80px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}
.jc-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 20px 0 8px;
}
.jc-num {
  font-family: "Playfair Display", serif;
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  color: #eef0ff;
  transition: all 0.45s cubic-bezier(0.16,1,0.3,1);
  display: block;
}
.jc-of {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  color: rgba(238,240,255,0.2);
  margin-bottom: 4px;
}
.jc-phase {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--journey-c, #d4a54a);
  transition: color 0.45s ease;
  margin-bottom: 16px;
}

.jc-hint {
  font-size: 13.5px;
  color: rgba(238,240,255,0.75);
  line-height: 1.75;
  max-width: 220px;
  margin-bottom: 28px;
}

.jc-spine-area {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex: 1;
}
.jc-spine-track {
  width: 2px;
  height: 180px;
  background: rgba(212,165,74,0.1);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
  margin-top: 4px;
}
.jc-spine-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  border-radius: 2px;
  background: linear-gradient(to bottom, #4f8fff,#06d6a0,#a855f7,#d4a54a,#ec4899,#10a37f,#f97316);
  transition: height 0.55s cubic-bezier(0.16,1,0.3,1);
}

.jc-sidebar-copy h2 {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-weight: 700;
  color: rgba(238,240,255,0.92);
  line-height: 1.4;
  margin-bottom: 10px;
}

.jc-sidebar-copy h2 em { color: #d4a54a; font-style: italic; }

.jc-sidebar-copy p {
  font-size: 13.5px;
  color: rgba(238,240,255,0.65);
  line-height: 1.7;
}

/* ── Steps Column ── */

.journey-steps-col { padding: 60px 0 100px; }
.journey-step {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 56px 28px;
  border-left: 2px solid rgba(255,255,255,0.04);
  transition:
    border-color 0.5s ease,
    opacity 0.55s ease;
  opacity: 0.25;
}
.journey-step.js-active {
  opacity: 1;
  border-left-color: var(--jsc, #d4a54a);
}
.js-phase-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}
.js-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #eef0ff;
  line-height: 1.25;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════
   THE STACK
═══════════════════════════════════ */
.stack-diagram {
  max-width: 860px;
  margin: 0 auto;
}
.stack-layer {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 30px;
  background: rgba(255,255,255,0.022);
  border: 1px solid rgba(255,255,255,0.055);
  border-left: 3px solid var(--c);
  margin-bottom: -1px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-36px);
  transition:
    opacity 0.7s cubic-bezier(0.16,1,0.3,1),
    transform 0.7s cubic-bezier(0.16,1,0.3,1),
    background 0.3s;
}
.stack-layer.visible { opacity: 1; transform: translateX(0); }
.stack-layer:first-child { border-radius: 8px 8px 0 0; }
.stack-layer:last-child  { border-radius: 0 0 8px 8px; }
.stack-layer:hover { background: rgba(255,255,255,0.04); }
.stack-layer--apex {
  border-color: rgba(212,165,74,0.3) !important;
  border-left-color: #d4a54a !important;
  background: rgba(212,165,74,0.035) !important;
}
.stack-layer--apex:hover { background: rgba(212,165,74,0.06) !important; }
.sl-bar {
  position: absolute; inset: 0;
  opacity: 0.04; pointer-events: none;
}
.sl-num {
  font-family: "Playfair Display", serif;
  font-size: 28px; font-weight: 900;
  color: var(--c); opacity: 0.65;
  flex-shrink: 0;
}
.sl-body h3 { font-size: 15px; font-weight: 600; color: #eef0ff; margin-bottom: 5px; }
.sl-body p  { font-size: 13px; line-height: 1.65; color: rgba(238,240,255,0.5); }
.sl-chips {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 200px;
}
.sl-chips span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: 1px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 3px;
  color: rgba(238,240,255,0.38);
  white-space: nowrap;
}

/* ═══════════════════════════════════
   METRICS
═══════════════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.metric-card {
  position: relative;
  padding: 36px 26px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition:
    transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
    border-color 0.35s,
    box-shadow 0.35s;
}
.metric-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.mc-inner { position: relative; z-index: 2; }
.mc-value {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  color: #eef0ff;
  margin-bottom: 10px;
}
.mc-label { font-size: 13px; color: rgba(238,240,255,0.5); line-height: 1.5; }
.mc-glow {
  position: absolute;
  bottom: -40px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px;
  border-radius: 50%; filter: blur(40px);
  opacity: 0.1; z-index: 1;
  transition: opacity 0.35s;
}
.metric-card:hover .mc-glow { opacity: 0.22; }

/* ═══════════════════════════════════
   CTA SECTION
═══════════════════════════════════ */
.cs-cta-sec {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  overflow: hidden;
  background: #020108;
  text-align: center;
  border-top: 1px solid rgba(212,165,74,0.06);
}
.cs-cta-orbs { position: absolute; inset: 0; pointer-events: none; }
.cs-cta-inner {
  position: relative; z-index: 3;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}
.cs-cta-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.12;
  color: #eef0ff;
  margin-bottom: 22px;
  letter-spacing: -1px;
}
.cs-cta-title em { display: block; font-style: italic; color: #d4a54a; }
.cs-cta-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.8;
  color: rgba(238,240,255,0.5);
  max-width: 560px;
  margin: 0 auto 38px;
}
.cs-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cs-btn-large { padding: 17px 38px !important; font-size: 12px !important; }
.cs-cta-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 2px;
  color: rgba(238,240,255,0.2); text-transform: uppercase;
}

/* ═══════════════════════════════════
   FOOTER ENHANCEMENTS
═══════════════════════════════════ */

/* Horizon sweep animation */
.footer-horizon { overflow: hidden; }
.footer-horizon::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: horizonSweep 5s ease-in-out infinite 1s;
}
@keyframes horizonSweep {
  0%   { left: -50%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}
/* Wordmark subtle breathe */
.footer-wordmark {
  animation: wordBreathe 7s ease-in-out infinite;
}
@keyframes wordBreathe {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.65; }
}
/* Footer link underline slide */
.ft-col ul li a {
  position: relative;
}
.ft-col ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 20px;
  width: 0; height: 1px;
  background: rgba(212,165,74,0.35);
  transition: width 0.28s ease;
}
.ft-col ul li a:hover::after { width: calc(100% - 20px); }
/* Social icon spring hover */
.footer-socials a {
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s,
    transform 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.footer-socials a:hover {
  transform: translateY(-3px) scale(1.1) !important;
}

/* ── CTA typewriter ── */
.cs-cta-title {
  /* prevent awkward line break between the two parts */
  word-break: keep-all;
}
.cs-typewriter {
  white-space: nowrap;
  display: inline;
  position: relative;
}
.cs-typewriter::after {
  content: "|";
  color: #d4a54a;
  opacity: 1;
  animation: cursorBlink 0.75s step-end infinite;
  margin-left: 2px;
  font-style: normal;
  font-weight: 300;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Journey visual card (lean version) ── */
.js-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 16px var(--jsc, #d4a54a));
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.journey-step.js-active .js-icon {
  transform: scale(1.15);
}
.js-line {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(238,240,255,0.52);
  max-width: 480px;
  margin-bottom: 24px;
}
.js-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
}
.js-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(238,240,255,0.65);
  line-height: 1.5;
}
.jp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.js-pill--yes { }
.js-pill--no  { color: rgba(238,240,255,0.35); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Comprehensive breakpoints
   1280 · 1024 · 900 · 768 · 600 · 480 · 375
═══════════════════════════════════════════════════════ */

/* ── 1280px: slight container tightening ── */
@media (max-width: 1280px) {
  .journey-inner { grid-template-columns: 260px 1fr; gap: 52px; }
  .jc-num { font-size: 72px; }
}

/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {
  .surfaces-grid { grid-template-columns: repeat(3, 1fr); }

  /* stack: hide chips, keep number + body only */
  .stack-layer { grid-template-columns: 44px 1fr; gap: 20px; }
  .sl-chips { display: none; }

  /* journey sidebar narrower */
  .journey-inner { grid-template-columns: 240px 1fr; gap: 40px; }
  .jc-num { font-size: 64px; }
  .jc-sidebar-copy h2 { font-size: 15px; }
}

/* ── 900px: tablet portrait — stack journey vertically ── */
@media (max-width: 900px) {
  /* Journey collapses to single column */
  .journey-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 clamp(24px, 6vw, 48px);
  }
  .journey-sidebar {
    position: relative; top: auto;
    padding: 48px 0 28px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
  }
  .journey-sidebar .cs-eyebrow { width: 100%; margin-bottom: 8px; }
  .jc-counter { margin: 0; }
  .jc-num { font-size: 40px; }
  .jc-of { font-size: 13px; }
  .jc-phase { margin-bottom: 0; font-size: 10px; }
  .jc-hint, .jc-spine-area { display: none; }
  .journey-steps-col { padding: 0 0 48px; }
  .journey-step {
    min-height: auto;
    padding: 32px 0 32px 18px;
    opacity: 1;          /* all steps fully visible on mobile */
  }

  /* Metrics 2-col */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* CTA buttons wrap cleanly */
  .cs-cta-btns { flex-direction: column; align-items: center; }
  .cs-btn-primary, .cs-btn-ghost { width: 100%; max-width: 340px; justify-content: center; }
}

/* ── 768px: phones ── */
@media (max-width: 768px) {
  /* Reduce section padding */
  .cs-sec { padding: clamp(48px, 8vw, 72px) 0; }
  .cs-sec-inner { padding: 0 20px; }

  /* Hero */
  .cs-hero-title { font-size: clamp(38px, 10vw, 58px); letter-spacing: -0.5px; }
  .cs-hero-sub { font-size: 14px; }
  .cs-hero-btns { flex-direction: column; align-items: center; }
  .cs-hero-btns .cs-btn-primary,
  .cs-hero-btns .cs-btn-ghost { width: 100%; max-width: 300px; justify-content: center; }
  .cs-scroll-hint { bottom: 20px; }

  /* Surfaces — 3 cards per row on mobile */
  .surfaces-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .surface-card { padding: 12px 10px 11px; }
  .sc-icon { width: 28px; height: 28px; }
  .sc-icon svg { width: 16px; height: 16px; }
  .sc-name { font-size: 8.5px; letter-spacing: 1.2px; }
  .sc-desc { display: none; }

  /* ── JOURNEY MOBILE: compact card layout ── */
  .journey-inner { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }

  /* Sidebar becomes a simple section header */
  .journey-sidebar {
    position: relative; top: auto;
    padding: 40px 0 20px;
    min-height: auto;
    display: block;
  }
  .jc-counter, .jc-phase, .jc-hint { display: none; }
  .jc-spine-area { display: block; }
  .jc-spine-track { display: none; }
  .jc-sidebar-copy { display: block; }
  .jc-sidebar-copy h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 700;
    color: #eef0ff;
    line-height: 1.3;
    margin-bottom: 6px;
    opacity: 1;
  }
  .jc-sidebar-copy p { font-size: 13px; color: rgba(238,240,255,0.4); display: block; }

  /* Steps: compact left-bordered cards, all visible */
  .journey-steps-col { padding: 8px 0 40px; }
  .journey-step {
    display: flex;
    flex-direction: column;
    min-height: auto;
    opacity: 1;
    padding: 18px 16px;
    border-left: 2px solid var(--jsc, rgba(212,165,74,0.4));
    border-radius: 0 8px 8px 0;
    background: rgba(255,255,255,0.022);
    margin-bottom: 10px;
  }
  .journey-step.js-active { background: rgba(255,255,255,0.04); }
  .js-icon { display: none; }
  .js-phase-tag { font-size: 9px; letter-spacing: 2px; margin-bottom: 6px; opacity: 0.7; }
  .js-title { font-size: clamp(15px, 4vw, 18px); margin-bottom: 6px; }
  .js-line { font-size: 12.5px; line-height: 1.65; margin-bottom: 10px; max-width: 100%; }
  .js-pills { gap: 6px; }
  .js-pill { font-size: 11px; gap: 7px; }
  .jp-dot { width: 5px; height: 5px; }

  /* Stack */
  .stack-layer { padding: 18px 16px; gap: 14px; }
  .sl-num { font-size: 20px; }
  .sl-body h3 { font-size: 14px; }
  .sl-body p { font-size: 12px; }

  /* Metrics: 2-col on phones */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric-card { padding: 24px 16px; }
  .mc-value { font-size: clamp(28px, 6vw, 40px); }
  .mc-label { font-size: 11px; }

  /* CTA */
  .cs-cta-title { font-size: clamp(28px, 7vw, 44px); }
  .cs-btn-large { padding: 15px 28px !important; }
  .cs-cta-btns { flex-direction: column; align-items: center; }
  .cs-btn-primary, .cs-btn-ghost { width: 100%; max-width: 320px; justify-content: center; }
}

/* ── 600px: small phones ── */
@media (max-width: 600px) {
  /* Surfaces: 3-col tighter */
  .surfaces-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .surface-card { padding: 10px 8px 9px; border-radius: 7px; }
  .sc-name { font-size: 8px; letter-spacing: 1px; }
  .sc-icon { width: 24px; height: 24px; margin-bottom: 7px; }
  .sc-icon svg { width: 14px; height: 14px; }

  /* Stack */
  .stack-layer { grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 14px; }
  .sl-num { font-size: 17px; }

  /* Journey steps tighter */
  .journey-step { padding: 14px 12px; margin-bottom: 8px; }
  .js-title { font-size: 14px; }
  .js-line { font-size: 12px; }

  /* Metrics: 2-col stays */
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { padding: 20px 14px; border-radius: 10px; }
  .mc-value { font-size: clamp(26px, 6vw, 36px); }
  .mc-label { font-size: 10.5px; }
}

/* ── 480px: small Android / iPhone SE landscape ── */
@media (max-width: 480px) {
  /* Hero */
  .cs-hero-title { font-size: clamp(32px, 9vw, 44px); }
  .cs-hero-btns .cs-btn-primary,
  .cs-hero-btns .cs-btn-ghost { max-width: 100%; }

  /* Section headers */
  .cs-sec-title { font-size: clamp(22px, 6vw, 32px); }
  .cs-sec-sub { font-size: 13px; }
  .cs-header { margin-bottom: 28px; }

  /* Surfaces: 3-col minimal */
  .surfaces-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .surface-card { padding: 9px 7px 8px; border-radius: 6px; }
  .sc-icon { width: 22px; height: 22px; margin-bottom: 6px; border-radius: 6px; }
  .sc-icon svg { width: 13px; height: 13px; }
  .sc-name { font-size: 7.5px; letter-spacing: 0.8px; }

  /* Journey */
  .jc-sidebar-copy h2 { font-size: 20px; }
  .journey-step { padding: 12px 10px; }
  .js-title { font-size: 13.5px; }
  .js-line { font-size: 11.5px; margin-bottom: 8px; }
  .js-pills { display: none; } /* too cramped at this size */

  /* Stack */
  .stack-layer { padding: 14px 12px; grid-template-columns: 28px 1fr; gap: 10px; }
  .sl-num { font-size: 15px; }
  .sl-body h3 { font-size: 13px; }
  .sl-body p { font-size: 11px; }

  /* Metrics: stays 2-col */
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { padding: 18px 12px; }
  .mc-value { font-size: clamp(24px, 6vw, 32px); }
  .mc-label { font-size: 10px; line-height: 1.4; }
  .mc-glow { display: none; }

  /* CTA */
  .cs-cta-sec { padding: 64px 0; }
  .cs-cta-title { font-size: clamp(24px, 7vw, 34px); }
  .cs-cta-sub { font-size: 12.5px; }
  .cs-cta-note { font-size: 9px; }
}

/* ── 375px: iPhone SE / very small Android ── */
@media (max-width: 375px) {
  .cs-hero-title { font-size: 30px; }
  .cs-sec-inner { padding: 0 14px; }
  .journey-inner { padding: 0 14px; }

  /* Surfaces: 3-col very tight */
  .surfaces-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .surface-card { padding: 8px 6px 7px; border-radius: 5px; }
  .sc-icon { width: 20px; height: 20px; border-radius: 5px; }
  .sc-icon svg { width: 12px; height: 12px; }
  .sc-name { font-size: 7px; letter-spacing: 0.5px; }

  /* Journey */
  .jc-sidebar-copy h2 { font-size: 18px; }
  .journey-step { padding: 10px 8px; margin-bottom: 6px; }
  .js-title { font-size: 13px; }

  /* Stack */
  .stack-layer { padding: 12px 10px; }
  .sl-body h3 { font-size: 12px; }
  .sl-body p { font-size: 10.5px; }

  /* Metrics */
  .metrics-grid { gap: 6px; }
  .metric-card { padding: 16px 10px; }
  .mc-value { font-size: 26px; }
  .mc-label { font-size: 9.5px; }

  /* CTA + footer */
  .cs-cta-title { font-size: 24px; letter-spacing: -0.5px; }
  .footer-wordmark { font-size: clamp(18px, 7vw, 40px) !important; }
}

/* ── 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;
  }
  .cs-enter,
  .cs-reveal,
  .cs-eyebrow {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .csmask span,
  .csmask em {
    transform: none !important;
    transition: none !important;
  }
  .hero-sub, .hero-btns, .hero-eyebrow {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Large screens: 1440px+ ── */
@media (min-width: 1440px) {
  .cs-sec-sub { font-size: 17px; }
  .cs-sec-title { font-size: clamp(36px, 4vw, 66px); }
  .cs-hero-sub { font-size: 18px; }
  .js-title { font-size: clamp(26px, 2.8vw, 44px); }
  .js-line { font-size: 16px; }
  .js-pill { font-size: 13.5px; }
  .sc-name { font-size: 11px; }
  .sc-desc { font-size: 12.5px; }
  .mc-label { font-size: 15px; }
  .sl-body h3 { font-size: 17px; }
  .sl-body p { font-size: 14px; }
  .jc-sidebar-copy h2 { font-size: 20px; }
  .jc-hint { font-size: 13px; }
  .cs-cta-sub { font-size: 17px; }
}

/* ── Very large screens: 1920px+ ── */
@media (min-width: 1920px) {
  .cs-sec-sub { font-size: 19px; }
  .cs-sec-title { font-size: clamp(40px, 4vw, 76px); }
  .cs-hero-sub { font-size: 20px; }
  .js-title { font-size: clamp(28px, 2.6vw, 52px); }
  .js-line { font-size: 17px; }
  .sc-name { font-size: 12px; letter-spacing: 2.5px; }
  .sc-desc { font-size: 13px; }
  .surface-card { padding: 26px 22px 20px; }
  .mc-label { font-size: 16px; }
  .mc-value { font-size: clamp(40px, 4vw, 68px); }
  .sl-body h3 { font-size: 18px; }
  .sl-body p { font-size: 15px; }
  .cs-cta-sub { font-size: 18px; }
  .cs-sec-inner { max-width: 1400px; }
}