/* Pickora vibe portal hero — full-bleed zero + scroll scrub */

.vibe-hero {
  position: relative;
  width: 100%;
  /* Sit under the fixed glass header so blur reads from frame 0 (not after 1 scroll) */
  margin: -52px 0 0;
  padding: 0;
  overflow: clip;
  background: #0e1113;
}

.vibe-track {
  /* Longer travel = fewer frames skipped per wheel tick = creamier scrub */
  height: 320vh;
  position: relative;
}

.vibe-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: grid;
  place-items: stretch;
  overflow: hidden;
}

.vibe-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  /* Theme stills under canvas — never a black hole while media catches up */
  background-color: #1c1814;
  background-image: url("../assets/hero/hero-girl-day.jpg");
  background-size: cover;
  background-position: 62% 28%;
  background-repeat: no-repeat;
  box-shadow: none;
  isolation: isolate;
}
.vibe-stage[data-mood="rain"] {
  background-image: url("../assets/hero/hero-girl-rain.jpg");
}
.vibe-stage[data-mood="night"] {
  background-image: url("../assets/hero/hero-girl-night.jpg");
}

.vibe-still,
.vibe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
}

/* Still covers empty canvas. Canvas rises on top only after a real paint. */
.vibe-still {
  z-index: 2;
  opacity: 1;
}

.vibe-canvas {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.vibe-stage.is-frames-complete .vibe-canvas {
  z-index: 3;
  opacity: 1;
}

/* Keep still under canvas as safety net — do NOT blank it */
.vibe-stage.is-frames-complete .vibe-still {
  z-index: 2;
  opacity: 1;
}

/* Soft mood wash — same still/frames, no leftover video */
.vibe-stage[data-mood="rain"]::after,
.vibe-stage[data-mood="night"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.vibe-stage[data-mood="rain"]::after {
  background: linear-gradient(
    180deg,
    rgba(120, 150, 170, 0.18) 0%,
    rgba(90, 120, 140, 0.12) 45%,
    rgba(40, 55, 70, 0.22) 100%
  );
}

.vibe-stage[data-mood="night"]::after {
  background: linear-gradient(
    180deg,
    rgba(20, 30, 55, 0.28) 0%,
    rgba(10, 16, 32, 0.18) 50%,
    rgba(5, 8, 18, 0.32) 100%
  );
}

.vibe-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  /* Minimal left wash — text relies on shadow, not a heavy mask */
  background: linear-gradient(
    90deg,
    rgba(8, 10, 12, 0.22) 0%,
    rgba(8, 10, 12, 0.08) 22%,
    transparent 42%
  );
}

.vibe-grid {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  pointer-events: none;
  box-sizing: border-box;
}

.vibe-grid .vibe-copy {
  pointer-events: auto;
}

.vibe-copy {
  display: grid;
  gap: 14px;
  max-width: 34rem;
  padding: clamp(72px, 12vh, 120px) 0 clamp(28px, 5vh, 48px);
}

.vibe-kicker {
  margin: 0;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 238, 230, 0.72);
}

.vibe-title {
  margin: 0;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: #f7f2ea;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 8px 40px rgba(0, 0, 0, 0.4);
}

.vibe-title em {
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-style: italic;
  font-weight: 600;
  color: #e08a55;
}

html[data-theme="rain"] .vibe-title {
  color: #e8eef2;
}

html[data-theme="rain"] .vibe-title em {
  color: #7eb8c9;
}

html[data-theme="night"] .vibe-title {
  color: #dce6f2;
}

html[data-theme="night"] .vibe-title em {
  color: #8eb7ff;
}

.vibe-dek {
  margin: 0;
  max-width: 38ch;
  font-family: var(--font-body, "Work Sans", sans-serif);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.45;
  color: rgba(243, 238, 230, 0.78);
}

.vibe-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.vibe-scroll-hint {
  margin: 10px 0 0;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 238, 230, 0.55);
}

/* Day/Rain page paper still shows above/below; hero itself is full-bleed cinematic */
html[data-theme="day"] .vibe-hero {
  background: #1a1714;
}
html[data-theme="rain"] .vibe-hero {
  background: #14181c;
}
html[data-theme="night"] .vibe-hero {
  background: #0a0c0e;
}

@media (max-width: 900px) {
  .vibe-grid {
    grid-template-columns: 1fr;
    align-content: end;
  }
  .vibe-copy {
    max-width: none;
    padding: 0 0 clamp(28px, 6vh, 48px);
  }
  .vibe-still,
  .vibe-canvas {
    object-position: 70% 22%;
  }
  .vibe-glow {
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 45%,
      rgba(8, 10, 12, 0.35) 72%,
      rgba(8, 10, 12, 0.55) 100%
    );
  }
  .vibe-track { height: 280vh; }
}

@media (prefers-reduced-motion: reduce) {
  .vibe-track { height: auto; }
  .vibe-sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .vibe-scroll-hint { display: none; }
  .vibe-still { transition: none; }
}
