/* =========================================================================
   VOLTRYX — v3 upgrades: shader hero, thesis section, curtain reveals,
   smooth scroll integration
   ========================================================================= */

/* Shader canvas in hero — full bleed behind everything */
#hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.hero {
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* darkening + vignette mask over shader to keep text legibility */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 0%, rgba(8,5,13,0.6) 70%, rgba(8,5,13,0.9) 100%),
    linear-gradient(180deg, rgba(8,5,13,0.4) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }

/* Make hero typography more confident */
.hero h1 {
  font-size: clamp(54px, 11vw, 168px);
  letter-spacing: -0.055em;
  font-weight: 600;
  line-height: 0.9;
  font-variation-settings: "wght" 600;
}
.hero h1 .line { margin-bottom: -0.06em; }
.hero h1 em {
  font-size: 1.08em;
  font-weight: 400;
  line-height: 0.85;
  display: inline-block;
  transform: translateY(0.04em);
}

/* ============================================================
   THESIS section — massive word-by-word reveal
   ============================================================ */
.thesis {
  padding: 180px 0;
  position: relative;
}
@media (max-width: 700px) { .thesis { padding: 100px 0; } }

.thesis-eyebrow {
  text-align: center;
  margin-bottom: 64px;
}

.thesis-body {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 96px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-align: center;
  text-wrap: balance;
  max-width: 1200px;
  margin: 0 auto;
}
.thesis-body em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
.thesis-body s {
  text-decoration: none;
  color: var(--text-faint);
  position: relative;
}
.thesis-body s::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 4px;
  background: var(--accent);
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out);
}
.thesis-body.is-in s::after { transform: scaleX(1); transition-delay: 1.4s; }

.thesis-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.thesis-word.is-in { opacity: 1; transform: translateY(0); }

.thesis-footer {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.thesis-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.thesis-footer span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   Section curtain reveal — wipe across as section enters
   ============================================================ */
.curtain {
  position: relative;
}
.curtain::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}
.curtain.is-in::before { transform: scaleX(1); }

/* ============================================================
   Hero refinement
   ============================================================ */
.hero-meta { gap: 28px; }
.hero-meta span { letter-spacing: 0.12em; }

/* ============================================================
   Smooth scroll wrapper (Lenis sets this) — keep position:sticky working
   ============================================================ */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: clip;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ============================================================
   Hero mission control — depth bump
   ============================================================ */
.mc-frame {
  box-shadow:
    0 50px 120px -30px rgba(124, 58, 237, 0.6),
    0 0 100px -20px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Bump section headers */
.section-head h2 {
  font-size: clamp(40px, 6.5vw, 84px);
  letter-spacing: -0.04em;
}
.layers-head h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  letter-spacing: -0.035em;
}

/* Subtle entrance for the entire hero card on first paint */
.mc-frame {
  transform-origin: center top;
}

/* Layer cards — make them feel premium */
.layer-card {
  flex: 0 0 540px;
  height: 64vh;
}
@media (max-width: 900px) {
  .layer-card { flex: 1 1 auto; width: 100%; height: auto; }
}
.layer-card h3 {
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.03em;
}

/* Footer wordmark — bigger */
.footer-wordmark {
  font-size: clamp(96px, 22vw, 360px);
  letter-spacing: -0.06em;
}
