/* ========================================
   STAGE 1 — HERO (Cinematic Statement)
   ======================================== */

/* --- Grid background for depth --- */
#stage-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 40%,
    black 20%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

/* --- Ambient gradient sweep --- */
#stage-1::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.04) 0%,
    transparent 60%
  );
  animation: heroAmbientPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroAmbientPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* --- Orb (animated glow sphere) --- */
.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(201, 168, 76, 0.08) 0%,
      transparent 65%
    );
  box-shadow:
    0 0 60px rgba(201, 168, 76, 0.06),
    0 0 120px rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 1;
  transition: all 0.6s ease;
}

.hero-orb-ring {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: heroOrbSpin 8s linear infinite;
}

.hero-orb-ring.r2 {
  inset: -26px;
  border-color: rgba(255, 255, 255, 0.04);
  animation-duration: 14s;
  animation-direction: reverse;
}

@keyframes heroOrbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Mic active: orb turns red */
.hero-orb.mic-active {
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 59, 59, 0.12) 0%,
      transparent 65%
    );
  box-shadow: 0 0 80px rgba(255, 59, 59, 0.1);
}

.hero-orb.mic-active .hero-orb-ring {
  border-color: rgba(255, 59, 59, 0.15);
}

/* --- Micro Particle Field (behind text) --- */
.hero-particles {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 600px;
  height: 400px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 4px rgba(201, 168, 76, 0.3);
  animation: heroParticleFloat linear infinite;
  opacity: 0;
}

/* Distribute particles with varied positions, sizes, timing */
.hero-particle:nth-child(1) {
  left: 10%;
  bottom: 0;
  animation-duration: 8s;
  animation-delay: 0s;
  width: 2px;
  height: 2px;
}
.hero-particle:nth-child(2) {
  left: 25%;
  bottom: 0;
  animation-duration: 10s;
  animation-delay: -2s;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}
.hero-particle:nth-child(3) {
  left: 42%;
  bottom: 0;
  animation-duration: 7s;
  animation-delay: -4s;
  width: 2px;
  height: 2px;
}
.hero-particle:nth-child(4) {
  left: 58%;
  bottom: 0;
  animation-duration: 11s;
  animation-delay: -1s;
  width: 1.5px;
  height: 1.5px;
}
.hero-particle:nth-child(5) {
  left: 75%;
  bottom: 0;
  animation-duration: 9s;
  animation-delay: -3s;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}
.hero-particle:nth-child(6) {
  left: 90%;
  bottom: 0;
  animation-duration: 12s;
  animation-delay: -5s;
  width: 2.5px;
  height: 2.5px;
}
.hero-particle:nth-child(7) {
  left: 5%;
  bottom: 0;
  animation-duration: 9s;
  animation-delay: -7s;
  width: 1.5px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.15);
}
.hero-particle:nth-child(8) {
  left: 35%;
  bottom: 0;
  animation-duration: 8s;
  animation-delay: -6s;
  width: 2px;
  height: 2px;
}
.hero-particle:nth-child(9) {
  left: 50%;
  bottom: 0;
  animation-duration: 10s;
  animation-delay: -8s;
  width: 3px;
  height: 3px;
}
.hero-particle:nth-child(10) {
  left: 65%;
  bottom: 0;
  animation-duration: 7s;
  animation-delay: -2s;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}
.hero-particle:nth-child(11) {
  left: 82%;
  bottom: 0;
  animation-duration: 11s;
  animation-delay: -4s;
  width: 1.5px;
  height: 1.5px;
}
.hero-particle:nth-child(12) {
  left: 18%;
  bottom: 0;
  animation-duration: 9s;
  animation-delay: -3s;
  width: 2.5px;
  height: 2.5px;
}
.hero-particle:nth-child(13) {
  left: 30%;
  bottom: 0;
  animation-duration: 13s;
  animation-delay: -9s;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}
.hero-particle:nth-child(14) {
  left: 55%;
  bottom: 0;
  animation-duration: 8s;
  animation-delay: -5s;
  width: 2px;
  height: 2px;
}
.hero-particle:nth-child(15) {
  left: 70%;
  bottom: 0;
  animation-duration: 10s;
  animation-delay: -7s;
  width: 3px;
  height: 3px;
}
.hero-particle:nth-child(16) {
  left: 15%;
  bottom: 0;
  animation-duration: 12s;
  animation-delay: -1s;
  width: 1.5px;
  height: 1.5px;
}
.hero-particle:nth-child(17) {
  left: 48%;
  bottom: 0;
  animation-duration: 7s;
  animation-delay: -6s;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}
.hero-particle:nth-child(18) {
  left: 85%;
  bottom: 0;
  animation-duration: 9s;
  animation-delay: -8s;
  width: 2px;
  height: 2px;
}

@keyframes heroParticleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.4;
    transform: translateY(-200px) translateX(15px);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-420px) translateX(-10px);
    opacity: 0;
  }
}

/* --- Accent Lines --- */
.hero-accent-line {
  position: absolute;
  top: 50%;
  width: 0;
  height: 1px;
  z-index: 1;
  will-change: width, transform, opacity;
  opacity: 1;
}

.hero-accent-line.left {
  right: 54%;
  background: linear-gradient(270deg, rgba(201, 168, 76, 0.2), transparent);
  width: clamp(60px, 12vw, 180px);
}

.hero-accent-line.right {
  left: 54%;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.2), transparent);
  width: clamp(60px, 12vw, 180px);
}

/* --- Main Content --- */
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
}

/* Studio label (above title) */
.hero-label {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
  opacity: 1;
  visibility: visible;
}

/* --- Title Letters --- */
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(5rem, 15vw, 12rem);
  letter-spacing: clamp(0.36rem, 2.2vw, 1.8rem);
  line-height: 1;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: clamp(0px, 0.18vw, 3px);
  color: var(--text);
  perspective: 1100px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5))
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
}

@media (min-width: 1025px) {
  .hero-title {
    font-size: clamp(4.4rem, 12.6vw, 10.6rem);
    letter-spacing: clamp(0.3rem, 1.8vw, 1.45rem);
    gap: clamp(0px, 0.12vw, 2px);
  }
}

.hero-letter {
  position: relative;
  display: inline-block;
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 34%,
    #f3f3f3 58%,
    #c2c2c2 80%,
    #8a8a8a 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.32);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.26))
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2))
    drop-shadow(0 8px 15px rgba(0, 0, 0, 0.48));
  visibility: visible;
}

.hero-letter::after {
  content: attr(data-char);
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(1.2px, 2px, -1px);
  color: rgba(0, 0, 0, 0.34);
  -webkit-text-fill-color: rgba(0, 0, 0, 0.34);
  -webkit-text-stroke: 0;
  background: none;
  z-index: -1;
  pointer-events: none;
}

/* --- Divider Line --- */
.hero-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 18px auto;
  will-change: width;
  opacity: 1;
  visibility: visible;
}

/* --- Tagline --- */
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
  line-height: 1.6;
  margin: 0 auto;
  visibility: visible;
  text-align: center;
}


/* --- Scroll Pill (3D Rotating Drum) --- */
.scroll-pill {
  --track-y: 0px;
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(240px, 50vw);
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.07) 0%,
      rgba(255,255,255,0.02) 16%,
      rgba(0,0,0,0.05) 42%,
      rgba(255,255,255,0.02) 66%,
      rgba(0,0,0,0.18) 100%
    ),
    linear-gradient(90deg,
      rgba(255,255,255,0.02) 0%,
      rgba(201,168,76,0.08) 16%,
      rgba(201,168,76,0.16) 50%,
      rgba(201,168,76,0.08) 84%,
      rgba(255,255,255,0.02) 100%
    ),
    rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -10px 16px rgba(0,0,0,0.26),
    0 0 18px rgba(201,168,76,0.14),
    0 0 46px rgba(201,168,76,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Side dots - disabled for drum effect */
.scroll-pill::before,
.scroll-pill::after {
  content: none;
}

/* Outer glow */
.pill-glow {
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center,
    rgba(201,168,76,0.18) 0%,
    rgba(201,168,76,0.06) 32%,
    transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* Moving light streak */
.pill-sheen {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.2) 50%,
    transparent 100%
  );
  mix-blend-mode: screen;
  will-change: transform;
}

/* Text window with mask for drum effect */
.pill-text-window {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 30px);
  height: 34px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 999px;
  mask-image: radial-gradient(ellipse 94% 84% at center, #000 56%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 94% 84% at center, #000 56%, transparent 88%);
}

/* Top/bottom fade - text fades out at edges */
.pill-text-window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.4) 25%,
    transparent 45%,
    transparent 55%,
    rgba(0,0,0,0.4) 75%,
    rgba(0,0,0,0.9) 100%);
  z-index: 3;
}

/* Center highlight */
.pill-text-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(ellipse 36% 88% at 50% 50%,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.02) 24%,
    transparent 56%);
  mix-blend-mode: screen;
  z-index: 4;
}

/* Rotating text track */
.pill-text-track {
  position: absolute;
  left: 50%;
  top: calc(-100px + var(--track-y));
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform, top;
  z-index: 2;
}

/* Individual text lines - simple and readable */
.pill-text-line {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-tech);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 10px rgba(255,255,255,0.8),
    0 0 20px rgba(201,168,76,0.5);
  transition: opacity 0.05s ease, transform 0.05s ease;
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Shift everything up on mobile */
  #stage-1 {
    padding-bottom: 100px;
    margin-top: -40px;
  }

  .hero-content {
    margin-top: -50px;
  }

  .hero-orb {
    width: 180px;
    height: 180px;
    transform: translate(-50%, -65%);
  }

  .hero-particles {
    width: 320px;
    height: 300px;
    top: 15%;
  }

  .hero-accent-line {
    display: none;
  }

  .hero-label {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 13vw, 5rem);
    letter-spacing: clamp(0.2rem, 2vw, 1rem);
    gap: 2px;
  }

  .hero-tagline {
    font-size: 0.85rem;
    padding: 0 20px;
  }

  .scroll-pill {
    bottom: 230px;
    width: min(220px, 65vw);
    height: 40px;
  }

  .pill-text-window {
    width: calc(100% - 20px);
    height: 30px;
  }

  .pill-text-track {
    gap: 12px;
    top: calc(-85px + var(--track-y));
  }

  .pill-text-line {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .scroll-pill::before { left: 10px; }
  .scroll-pill::after { right: 10px; }

  #stage-1::before {
    display: none;
  }
}

/* ========================================
   NARROW VIEWPORT — ≤ 374px
   ======================================== */
@media (max-width: 374px) {
  #stage-1 { padding-bottom: 90px; margin-top: -20px; }
  .hero-content { margin-top: -30px; padding: 0 12px; }
  .hero-orb { width: 150px; height: 150px; }
  .hero-particles { width: 280px; height: 260px; }
  .hero-label { font-size: 9px; letter-spacing: 2px; margin-bottom: 12px; }
  .hero-title {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
    letter-spacing: 0.15rem;
    gap: 1px;
  }
  .hero-tagline { font-size: 0.78rem; padding: 0 14px; }
  .scroll-pill {
    bottom: 200px;
    width: min(180px, 72vw);
    height: 36px;
  }
  .pill-text-line { font-size: 10px; letter-spacing: 2px; }
}
