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

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

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

/* ─── 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%);
  transition: width .2s, height .2s;
  mix-blend-mode: difference;
}
.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 .15s ease;
}

/* ─── NAV ─── */
.rh-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.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;
  transition: opacity 0.8s ease 2.2s;
}
.rh-nav-logo.rh-show { opacity: 1; }
.rh-nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
  opacity: 0;
  transition: opacity 0.8s ease 2.4s;
}
.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); }

/* ─── STAGE 1 ─── */
.rh-stage1 {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.rh-stage1.rh-exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

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

.rh-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.rh-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px;
}
.rh-grain2 { opacity: 0.035; z-index: 2; }

/* Letterbox bars */
.rh-bar-top, .rh-bar-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 10vh;
  background: #000;
  z-index: 4;
  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; }

/* Stage 1 text */
.rh-s1-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--rh-white);
}
.rh-brand-label {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--rh-gold);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 1.5s, transform 0.8s ease 1.5s;
  margin-bottom: 1.4rem;
}
.rh-brand-label.rh-show { opacity: 1; transform: translateY(0); }

.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(5rem, 14vw, 12rem);
  letter-spacing: 0.06em;
  color: var(--rh-white);
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.16,1,0.3,1) 0.5s;
}
.rh-hl.rh-show { transform: translateY(0); }

.rh-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  color: var(--rh-accent);
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease 1.8s, transform 1s ease 1.8s;
}
.rh-sub.rh-show { opacity: 0.85; transform: translateY(0); }

/* Continue hint */
.rh-continue {
  position: absolute;
  bottom: 14vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 1s ease 3s;
  cursor: pointer;
}
.rh-continue.rh-show { opacity: 1; }
.rh-hint-text {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rh-gold);
}
.rh-hint-line {
  width: 1px;
  height: 40px;
  background: var(--rh-gold);
  animation: rh-pulse 2s ease-in-out infinite;
}
@keyframes rh-pulse {
  0%,100% { transform: scaleY(1); opacity:1; }
  50%      { transform: scaleY(0.5); opacity:0.4; }
}

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

/* ─── STAGE 2 ─── */
.rh-stage2 {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.rh-stage2.rh-active {
  opacity: 1;
  pointer-events: all;
}
.rh-s2-bg {
  position: absolute;
  inset: 0;
  background-color: #111;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(0.16,1,0.3,1) 0.2s;
}
.rh-s2-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.15) 100%);
}
.rh-stage2.rh-active .rh-s2-bg { transform: scale(1); }

.rh-gold-rule {
  position: absolute;
  left: 8vw;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 1px;
  height: 40vh;
  background: linear-gradient(to bottom, transparent, var(--rh-gold) 30%, var(--rh-gold) 70%, transparent);
  z-index: 3;
  transition: transform 1s cubic-bezier(0.16,1,0.3,1) 0.5s;
}
.rh-stage2.rh-active .rh-gold-rule { transform: translateY(-50%) scaleY(1); }

.rh-s2-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10vw 0 12vw;
}
.rh-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--rh-gold);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.7s ease 0.8s, transform 0.7s ease 0.8s;
}
.rh-stage2.rh-active .rh-eyebrow { opacity: 1; transform: translateX(0); }

.rh-s2-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: var(--rh-white);
  margin: 0 0 1.6rem;
  max-width: 700px;
}
.rh-word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.25em;
}
.rh-word span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.rh-stage2.rh-active .rh-word:nth-child(1) span { transform:translateY(0); transition-delay:.6s }
.rh-stage2.rh-active .rh-word:nth-child(2) span { transform:translateY(0); transition-delay:.72s }
.rh-stage2.rh-active .rh-word:nth-child(3) span { transform:translateY(0); transition-delay:.84s }
.rh-stage2.rh-active .rh-word:nth-child(4) span { transform:translateY(0); transition-delay:.96s }
.rh-stage2.rh-active .rh-word:nth-child(5) span { transform:translateY(0); transition-delay:1.08s }
.rh-stage2.rh-active .rh-word:nth-child(6) span { transform:translateY(0); transition-delay:1.20s }
.rh-stage2.rh-active .rh-word:nth-child(7) span { transform:translateY(0); transition-delay:1.32s }
.rh-stage2.rh-active .rh-word:nth-child(8) span { transform:translateY(0); transition-delay:1.44s }

.rh-s2-body {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 300;
  color: rgba(245,240,235,0.65);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 0 2.8rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 1.3s, transform 0.8s ease 1.3s;
}
.rh-stage2.rh-active .rh-s2-body { opacity: 1; transform: translateY(0); }

/* CTA Buttons */
.rh-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 1.6s, transform 0.8s ease 1.6s;
}
.rh-stage2.rh-active .rh-cta-group { opacity: 1; transform: translateY(0); }

.rh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--rh-gold);
  color: var(--rh-dark);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-family: 'Inter', sans-serif;
}
.rh-btn-primary:hover { background: var(--rh-accent); transform: translateY(-2px); }
.rh-arrow {
  width: 16px; height: 1px;
  background: currentColor;
  position: relative;
  display: inline-block;
  transition: width 0.3s;
}
.rh-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.rh-btn-primary:hover .rh-arrow { width: 24px; }

.rh-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--rh-white);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(245,240,235,0.3);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  font-family: 'Inter', sans-serif;
}
.rh-btn-ghost:hover { border-color: var(--rh-gold); color: var(--rh-gold); transform: translateY(-2px); }

/* Dots */
.rh-dots {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.8s ease 3s;
}
.rh-dots.rh-show { opacity: 1; }
.rh-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(245,240,235,0.3);
  cursor: pointer;
  transition: background 0.4s, transform 0.4s;
}
.rh-dot-active { background: var(--rh-gold) !important; transform: scale(1.4); }

/* Back button */
.rh-back-btn {
  position: absolute;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.5);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s;
  display: none;
}
.rh-back-btn:hover { color: var(--rh-gold); }
.rh-back-btn.rh-show { display: block; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .rh-s2-content { padding: 0 6vw; }
  .rh-nav-links { display: none; }
  .rh-loop-badge { display: none; }
  .rh-s2-headline { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .rh-gold-rule { left: 4vw; }
}
