/* ═══════════════════════════════════════════
   RAVEN CINEMATIC HERO — v2 (single stage)
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;1,300&family=Bebas+Neue&family=Inter:wght@300;400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

/* ── ROOT VARIABLES ─────────────────────── */
.raven-cinematic-hero {
  --rh-gold:   #c9a84c;
  --rh-accent: #e8d5a3;
  --rh-white:  #f5f0eb;
  --rh-dark:   #0a0a0a;
}

/* ── HERO WRAPPER ───────────────────────── */
.raven-cinematic-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  font-family: 'Inter', sans-serif;
  cursor: none;

  /* STICKY SCROLL — stays fixed while user scrolls */
  position: sticky;
  top: 0;
}

/* Override sticky inside Elementor sections */
.elementor-section .raven-cinematic-hero {
  position: sticky;
  top: 0;
}

/* ── VIDEO BACKGROUND ───────────────────── */
.rh-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.rh-video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.rh-video-bg video.rh-loaded { opacity: 1; }

/* Placeholder when no video is set */
.rh-no-video {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1209 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(201,168,76,0.5);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* ── OVERLAYS ───────────────────────────── */
.rh-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0.45);
}
.rh-grain {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0.045; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── CINEMATIC BARS ─────────────────────── */
.rh-bar-top, .rh-bar-bottom {
  position: absolute; left: 0; right: 0;
  height: 10vh; background: #000; z-index: 5;
  transition: height 1.4s cubic-bezier(0.77,0,0.175,1);
}
.rh-bar-top    { top: 0; }
.rh-bar-bottom { bottom: 0; }
.rh-bar-top.rh-open, .rh-bar-bottom.rh-open { height: 0; }

/* ── NAVIGATION ─────────────────────────── */
.rh-nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 4vw;
}
.rh-nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 0.15em;
  color: var(--rh-white); text-decoration: none;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.rh-nav-logo.rh-show { opacity: 1; transform: none; }

.rh-nav-links {
  display: flex; gap: 2.5rem;
  list-style: none; margin: 0; padding: 0;
  opacity: 0;
  transition: opacity 0.8s ease 0.1s;
}
.rh-nav-links.rh-show { opacity: 1; }
.rh-nav-links a {
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.7); text-decoration: none;
  transition: color 0.3s;
}
.rh-nav-links a:hover { color: var(--rh-gold); }

/* ── MAIN CONTENT ───────────────────────── */
.rh-s1-content {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 5vw;
}

.rh-brand-label {
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--rh-gold);
  margin-bottom: 1.4rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.rh-brand-label.rh-show { opacity: 1; transform: none; }

.rh-headline-wrap { overflow: hidden; line-height: 1; margin-bottom: 1.2rem; }
.rh-hl {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 14vw, 12rem);
  letter-spacing: 0.06em;
  color: var(--rh-white);
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.rh-hl.rh-show { transform: translateY(0); }

.rh-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.4rem);
  letter-spacing: 0.1em;
  color: var(--rh-accent);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.rh-sub.rh-show { opacity: 0.88; transform: none; }

/* ── DISCOVER BUTTON ─────────────────────
   Absolutely positioned — moveable via Elementor sliders
──────────────────────────────────────────*/
.rh-discover-wrap {
  position: absolute;
  bottom: 14vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.rh-discover-wrap.rh-show { opacity: 1; }

.rh-discover-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
}
.rh-discover-label {
  font-size: 0.68rem; font-weight: 300;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--rh-gold);
  transition: color 0.3s, letter-spacing 0.3s;
}
.rh-discover-btn:hover .rh-discover-label {
  color: var(--rh-accent);
  letter-spacing: 0.55em;
}
.rh-discover-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--rh-gold), transparent);
  animation: rh-pulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes rh-pulse {
  0%,100% { transform: scaleY(1);   opacity: 1;   }
  50%      { transform: scaleY(0.5); opacity: 0.4; }
}
.rh-discover-btn:hover .rh-discover-line { animation-play-state: paused; opacity: 1; transform: scaleY(1); }

/* ── LOOP BADGE ─────────────────────────── */
.rh-loop-badge {
  position: absolute; bottom: 3vh; right: 4vw; z-index: 15;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity 0.8s ease;
}
.rh-loop-badge.rh-show { opacity: 0.55; }
.rh-loop-icon {
  width: 16px; height: 16px;
  border: 1px solid var(--rh-gold); border-radius: 50%;
  animation: rh-spin 4s linear infinite;
}
@keyframes rh-spin { to { transform: rotate(360deg); } }
.rh-loop-icon::after {
  content: '';
  display: block; width: 5px; height: 5px;
  border-top: 1px solid var(--rh-gold);
  border-right: 1px solid var(--rh-gold);
  transform: rotate(45deg) translate(-2px, 2px);
  margin: 4px auto 0;
}
.rh-loop-label {
  font-size: 0.5rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--rh-gold);
}

/* ── CUSTOM CURSOR ──────────────────────── */
.rh-cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--rh-gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  transition: width .2s, height .2s;
}
.rh-cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(201,168,76,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: all .12s ease;
}

/* ── EDITOR MODE: everything visible instantly ── */
.rh-editor-mode .rh-brand-label,
.rh-editor-mode .rh-hl,
.rh-editor-mode .rh-sub,
.rh-editor-mode .rh-discover-wrap,
.rh-editor-mode .rh-loop-badge,
.rh-editor-mode .rh-nav-logo,
.rh-editor-mode .rh-nav-links {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.rh-editor-mode video            { opacity: 1 !important; }
.rh-editor-mode .rh-bar-top,
.rh-editor-mode .rh-bar-bottom   { height: 0 !important; transition: none !important; }
.rh-editor-mode .rh-discover-line { animation: none !important; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .rh-nav-links  { display: none; }
  .rh-loop-badge { display: none; }
  .rh-hl         { font-size: clamp(3rem, 16vw, 6rem); }
}
