/* ============================================
   Scroll stage — pinned film that plays with the scrollbar
   ============================================ */

:root { --serif-italic: 'Cormorant Garamond', 'Times New Roman', serif; }

.stage { position: relative; height: 420vh; background: #050607; }
@media (max-width: 767px) { .stage { height: 340vh; } }

.stage-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

.stage-media { position: absolute; inset: 0; }
.stage-poster, .stage-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.stage-video { opacity: 0; transition: opacity 600ms var(--ease); }
.stage.video-ready .stage-video { opacity: 1; }

/* Vignette + bottom fade so copy reads on any frame */
.stage-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 35%, rgba(5,6,7,0.55) 100%),
    linear-gradient(180deg, rgba(5,6,7,0.55) 0%, rgba(5,6,7,0) 22%, rgba(5,6,7,0) 55%, rgba(5,6,7,0.85) 100%);
  pointer-events: none;
}
.stage[data-active="0"] .stage-shade,
.stage[data-active="2"] .stage-shade {
  background:
    linear-gradient(90deg, rgba(5,6,7,0.82) 0%, rgba(5,6,7,0.45) 42%, rgba(5,6,7,0) 70%),
    linear-gradient(180deg, rgba(5,6,7,0.5) 0%, rgba(5,6,7,0) 22%, rgba(5,6,7,0) 60%, rgba(5,6,7,0.85) 100%);
}
.stage[data-active="1"] .stage-shade {
  background:
    linear-gradient(270deg, rgba(5,6,7,0.82) 0%, rgba(5,6,7,0.45) 42%, rgba(5,6,7,0) 70%),
    linear-gradient(180deg, rgba(5,6,7,0.5) 0%, rgba(5,6,7,0) 22%, rgba(5,6,7,0) 60%, rgba(5,6,7,0.85) 100%);
}
@media (max-width: 767px) {
  .stage .stage-shade,
  .stage[data-active] .stage-shade {
    background: linear-gradient(180deg, rgba(5,6,7,0.6) 0%, rgba(5,6,7,0.15) 30%, rgba(5,6,7,0.35) 55%, rgba(5,6,7,0.92) 100%);
  }
}

/* Film grain for a cinematic finish */
.stage-grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.07; mix-blend-mode: overlay; pointer-events: none;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

/* ---------- Chapters ---------- */
.chapter {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding-top: 76px;
  opacity: 0; visibility: hidden;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 900ms var(--ease), visibility 0s linear 700ms;
}
.chapter.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 700ms var(--ease), transform 900ms var(--ease), visibility 0s;
}
.chapter .container { width: 100%; }
.chapter-inner { max-width: 620px; }
.chapter-right .chapter-inner { margin-left: auto; text-align: left; }
@media (max-width: 767px) {
  .chapter { align-items: flex-end; padding-bottom: 110px; }
  .chapter-right .chapter-inner { margin-left: 0; }
}

.chapter .rating-badge { margin-bottom: var(--space-4); }
.chapter .eyebrow { text-shadow: 0 2px 10px rgba(0,0,0,0.6); }

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(3.4rem, 9.5vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--chrome-1);
  text-shadow: 0 6px 40px rgba(0,0,0,0.45);
  margin: 0;
}
.display-sm { font-size: clamp(2.8rem, 7vw, 5.6rem); margin-top: var(--space-2); }
.display .d-line { display: block; }
.display em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.92em;
  background: linear-gradient(160deg, #ffffff 10%, #bcd6ec 55%, #8b939d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}

/* Line-by-line reveal when a chapter becomes active */
.chapter .d-line, .chapter .stage-lede, .chapter .cta-row, .chapter .process-list li, .chapter .gauge {
  opacity: 0; transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 800ms var(--ease);
}
.chapter.is-active .d-line, .chapter.is-active .stage-lede, .chapter.is-active .cta-row,
.chapter.is-active .process-list li, .chapter.is-active .gauge { opacity: 1; transform: none; }
.chapter.is-active .d-line:nth-child(2) { transition-delay: 90ms; }
.chapter.is-active .stage-lede { transition-delay: 160ms; }
.chapter.is-active .cta-row { transition-delay: 220ms; }
.chapter.is-active .process-list li:nth-child(1) { transition-delay: 120ms; }
.chapter.is-active .process-list li:nth-child(2) { transition-delay: 190ms; }
.chapter.is-active .process-list li:nth-child(3) { transition-delay: 260ms; }
.chapter.is-active .process-list li:nth-child(4) { transition-delay: 330ms; }
.chapter.is-active .gauge:nth-child(2) { transition-delay: 100ms; }
.chapter.is-active .gauge:nth-child(3) { transition-delay: 200ms; }

.stage-lede {
  margin-top: var(--space-4);
  font-size: 1.12rem;
  color: rgba(245,246,247,0.82);
  max-width: 44ch;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.btn-glass {
  background: rgba(10,11,12,0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.28);
}

.scroll-cue {
  margin-top: var(--space-6);
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(245,246,247,0.65);
}
.scroll-cue span {
  width: 1px; height: 36px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden;
}
.scroll-cue span::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: #fff; animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }
@media (max-width: 767px) { .scroll-cue { display: none; } }

/* Process list (chapter 2) */
.process-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.process-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.process-list b {
  font-family: var(--font-display); font-weight: 400; font-size: 1.5rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}
.process-list span { color: rgba(245,246,247,0.7); font-size: 0.95rem; text-align: right; }

/* Gauges (chapter 3) — a nod to the tachometer */
.gauge-row { display: flex; gap: var(--space-4); margin-top: var(--space-5); flex-wrap: wrap; }
.gauge {
  width: 150px; position: relative; text-align: center;
  background: rgba(10,11,12,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md);
  padding: 14px 12px 12px;
}
@media (max-width: 479px) { .gauge { width: calc(33.333% - 11px); padding: 10px 6px; } .gauge-row { gap: 12px; } }
.gauge svg { width: 100%; height: auto; display: block; }
.g-track, .g-fill { fill: none; stroke-width: 6; stroke-linecap: round; }
.g-track { stroke: rgba(255,255,255,0.12); }
.g-fill {
  stroke: url(#none); stroke: #dfeaf5;
  stroke-dasharray: 158; stroke-dashoffset: 158;
  filter: drop-shadow(0 0 6px rgba(188,214,236,0.7));
}
.g-num {
  margin-top: -30px; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: #fff;
}
.g-num small { font-size: 1rem; color: #ffc94d; margin-left: 2px; }
.g-label { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,246,247,0.7); }

/* Chapter progress (right edge on desktop, top on mobile) */
.stage-progress {
  position: absolute; right: 28px; bottom: 32px; z-index: 4;
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,246,247,0.75);
}
.sp-track { width: 140px; height: 2px; background: rgba(255,255,255,0.18); position: relative; overflow: hidden; }
.sp-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; }
@media (max-width: 1023px) { .stage-progress { bottom: 92px; right: 16px; } .sp-track { width: 80px; } }

/* ---------- Quote section ---------- */
.quote-section { padding: var(--space-8) 0; background: var(--bg); position: relative; }
.quote-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .quote-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-7); } .quote-copy { position: sticky; top: 120px; } }
.quote-section .trust-row { list-style: none; padding-left: 0; }
.quote-section .trust-item::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 2px; }
.quote-section .wizard-card { margin: 0; }

/* ---------- Reduced motion / no-JS: stack the chapters ---------- */
@media (prefers-reduced-motion: reduce) {
  .stage { height: auto; }
  .stage-sticky { position: relative; height: auto; }
  .stage-media { position: absolute; }
  .stage-video { display: none; }
  .chapter, .chapter * { position: relative; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .chapter { padding: 120px 0 64px; }
  .stage-grain, .stage-progress { display: none; }
}

/* Contrast tweaks */
.display em {
  background: linear-gradient(160deg, #ffffff 20%, #dbe9f5 60%, #b7c3cf 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 14px rgba(0,0,0,0.65));
}
@media (max-width: 1023px) {
  .stage-progress { top: 92px; bottom: auto; right: 16px; }
}

/* Single-screen hero (Oct 2026): no scroll-scrub, no extra chapters */
.stage.stage--single { height: auto; }
.stage--single .stage-sticky { position: relative; height: 100svh; min-height: 620px; max-height: 900px; }
@media (max-width: 767px) { .stage--single .stage-sticky { height: 92svh; min-height: 600px; } }

/* SEO keyword line inside the home H1, sits above the big display words */
.display .h1-kicker { display: block; font-family: var(--font-body, inherit); font-size: clamp(.8rem, 1.6vw, .95rem); font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: rgba(255,255,255,.82); margin-bottom: .9em; }

/* Links inside the hero intro stay visible on the dark background. */
.stage-lede a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Clean hero (Nov 2026): crisp studio-dark background instead of a stock video still ===== */
.stage--clean .stage-media {
  background:
    radial-gradient(1100px 650px at 80% 28%, rgba(124,196,255,0.14), transparent 62%),
    radial-gradient(800px 520px at 8% 105%, rgba(124,196,255,0.07), transparent 60%),
    linear-gradient(160deg, #0d1014 0%, #07080b 55%, #030405 100%);
}
/* a soft diagonal highlight, like light rolling across fresh paint */
.stage--clean .stage-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,0.045) 47%, transparent 56%);
}
.stage--clean .stage-shade,
.stage--clean[data-active] .stage-shade {
  background: linear-gradient(180deg, rgba(5,6,7,0.35) 0%, transparent 22%, transparent 72%, rgba(5,6,7,0.75) 100%);
}
.stage--clean .display { font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: 0.9; text-shadow: none; }
.stage--clean .stage-lede { text-shadow: none; color: rgba(245,246,247,0.78); }

.hero-card { display: none; }
@media (min-width: 1024px) {
  .stage--clean .chapter .container {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 56px; align-items: center;
  }
  .hero-card {
    display: block;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px; padding: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
}
.hc-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent, #7cc4ff); margin: 0; }
.hc-prices { list-style: none; margin: 14px 0 20px; padding: 0; }
.hc-prices li { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 15px; color: rgba(245,246,247,0.85); }
.hc-prices li:last-child { border-bottom: 0; }
.hc-prices b { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: #fff; letter-spacing: 0.02em; }
.hc-review { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); }
.hc-stars { color: #f5c451; letter-spacing: 2px; font-size: 14px; }
.hc-review blockquote { margin: 8px 0 6px; font-size: 15px; line-height: 1.5; color: rgba(245,246,247,0.9); }
.hc-review figcaption { font-size: 13px; color: var(--text-muted, #9aa3ad); }
