/* ─── HERO SCROLL WRAPPER ──────────────────────────────────
   200vh = 100vh scroll travel while hero stays sticky.
   Phase 1 (0→80%): chars reveal one-by-one via translateY.
   Phase 2 (80→100%): text slides down, video stays full screen.
──────────────────────────────────────────────────────── */
.hero-scroll-wrapper {
  height: 200vh;
  position: relative;
}

/* ─── HERO (sticky) ─────────────────────────────────── */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a1a1a 100%);
}

/* ─── VIDEO BACKGROUND ──────────────────────────────── */
.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video-bg iframe,
.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width:  max(100vw, calc(100vh * 16 / 9));
  height: max(100vh, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  object-fit: cover;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 1;
}

/* ─── HERO TEXT CONTENT ─────────────────────────────── */
.hero-content {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  will-change: transform, opacity;
}

/* ─── PARALLAX TITLE WRAPPER ────────────────────────── */
.hero-parallax {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* JS sets --pmx / --pmy; transition gives smooth mouse-follow */
  transform: translate(var(--pmx, 0px), var(--pmy, 0px));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  margin-bottom: 28px;
}

/* ─── CHAR-BY-CHAR REVEAL ───────────────────────────── */
/* For lines with .reveal-chars, parent is immediately visible;
   each .char-inner handles the reveal animation */
.reveal-item.reveal-chars {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}

.char-outer {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.05;
}
.char-space {
  display: inline-block;
  width: 0.3em;
}
.char-inner {
  display: inline-block;
  transform: translateY(115%) skewX(-4deg);
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--ci, 0) * 42ms + 80ms);
  will-change: transform;
}
.reveal-item.revealed .char-inner {
  transform: translateY(0) skewX(0deg);
}

/* ─── NON-CHAR REVEAL ITEMS ──────────────────────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition:
    opacity   0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── HERO TYPOGRAPHY ────────────────────────────────── */
.hero-line-1 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 76px);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1;
  display: block;
}
.hero-line-2 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 76px);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  line-height: 1;
  display: block;
}
.hero-divider {
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 26px;
}
.hero-sub {
  font-family: var(--font-secondary);
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* ─── SCROLL HINT ─────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  will-change: opacity;
}
.scroll-hint span {
  font-family: var(--font-secondary);
  font-size: 8px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.scroll-line {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

/* ─── RESPONSIVE: portrait mobile ──────────────────────── */
@media (max-width: 600px) and (orientation: portrait) {
  .hero-line-1,
  .hero-line-2 {
    font-size: clamp(36px, 10vw, 52px);
    letter-spacing: 0.12em;
  }
  .hero-sub {
    font-size: 9px;
    letter-spacing: 0.28em;
  }
}

/* ─── RESPONSIVE: landscape mobile ─────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-scroll-wrapper { height: 250vh; }
  .hero-line-1,
  .hero-line-2 {
    font-size: clamp(22px, 5vh, 40px);
    letter-spacing: 0.12em;
  }
  .hero-line-2 { margin-bottom: 16px; }
  .hero-divider { margin-bottom: 14px; }
  .hero-sub { font-size: 8px; letter-spacing: 0.22em; }
  .scroll-hint { bottom: 16px; }
}
