/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-lg);
  background:
    radial-gradient(ellipse 80% 50% at 50% 35%, rgba(19, 28, 57, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(4, 6, 15, 0.9) 0%, transparent 60%),
    linear-gradient(180deg, #04060F 0%, #070B1C 40%, #0B1227 70%, #04060F 100%);
}

/* ─── Background Video ─── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.8s ease-out;
}

/* Fade in once the browser has enough data to play */
.hero-video.loaded {
  opacity: 1;
}

/* Color-grade overlay — darkens the video so text is legible */
.hero-video-grade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 15, 0.55) 0%, rgba(4, 6, 15, 0.45) 30%, rgba(4, 6, 15, 0.45) 70%, rgba(4, 6, 15, 0.65) 100%),
    radial-gradient(ellipse 120% 80% at 50% 50%, rgba(7, 11, 28, 0.35) 0%, rgba(4, 6, 15, 0.6) 100%);
  pointer-events: none;
}

/* Pause video for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    opacity: 1;
    /* Show first frame as a still */
  }
}

/* ─── Ambient Background Glow — warm candlelight pool ─── */
.hero::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle, rgba(233, 203, 125, 0.1) 0%, rgba(212, 176, 98, 0.04) 20%, transparent 45%);
  pointer-events: none;
  filter: blur(20px);
  animation: heroGlow 9s ease-in-out infinite alternate;
  z-index: 1;
}

/* Top falling-light shaft */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 60%;
  background: radial-gradient(ellipse 30% 80% at 50% 0%, rgba(233, 203, 125, 0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

@keyframes heroGlow {
  0% { opacity: 0.55; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* ─── Particle Container ─── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ─── Dark Vignette Overlay ─── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 45%, rgba(4, 6, 15, 0.3) 0%, rgba(4, 6, 15, 0.6) 55%, rgba(4, 6, 15, 0.85) 100%);
  pointer-events: none;
  z-index: 3;
}

/* ─── Botanical Frame around hero card ─── */
.hero-frame {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 760px;
  padding: var(--space-3xl) var(--space-2xl);
}

/* The four botanical corner ornaments */
.hero-fern {
  position: absolute;
  width: 140px;
  height: 220px;
  color: var(--color-gold);
  opacity: 0.85;
  filter: drop-shadow(0 0 18px rgba(233, 203, 125, 0.18));
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-fern {
    opacity: 0;
    animation: fernIn 1.6s var(--ease-out) 0.4s forwards;
  }
}

.hero-fern--tl { top: -30px; left: -30px; transform: rotate(0deg); }
.hero-fern--tr { top: -30px; right: -30px; transform: scaleX(-1); }
.hero-fern--bl { bottom: -30px; left: -30px; transform: scaleY(-1); }
.hero-fern--br { bottom: -30px; right: -30px; transform: scale(-1, -1); }

@keyframes fernIn {
  0%   { opacity: 0; transform-origin: var(--fern-origin, center); }
  100% { opacity: 0.85; }
}

.hero-fern--tl { animation-delay: 0.3s; }
.hero-fern--tr { animation-delay: 0.45s; }
.hero-fern--bl { animation-delay: 0.6s; }
.hero-fern--br { animation-delay: 0.75s; }

/* Thin gold inset frame — disabled, reads as ghosting artifact */
.hero-frame::before {
  display: none;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ─── Hero Content ─── */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.hero-prelude {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xl);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  text-shadow: 0 1px 6px rgba(4, 6, 15, 0.8);
}

.hero-prelude::before,
.hero-prelude::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.7;
}

.hero-names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-names .script-text {
  font-size: 9.5rem;
  line-height: 0.95;
  color: var(--color-cream);
  text-shadow:
    0 2px 8px rgba(4, 6, 15, 0.7),
    0 0 30px rgba(233, 203, 125, 0.18),
    0 0 60px rgba(212, 176, 98, 0.08);
}

.hero-ampersand {
  font-family: var(--font-serif);
  font-size: 4.4rem;
  font-weight: 300;
  font-style: italic;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0.25em;
  align-self: center;
  filter: drop-shadow(0 2px 6px rgba(4, 6, 15, 0.7));
}

/* ─── Decorative Divider ─── */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.divider-ornament {
  color: var(--color-gold);
  font-size: 1.4rem;
  opacity: 0.9;
  letter-spacing: 0.4em;
  filter: drop-shadow(0 1px 4px rgba(4, 6, 15, 0.7));
}

/* ─── Date Plate ─── */
.hero-date {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-cream-soft);
  margin-bottom: var(--space-sm);
  text-shadow: 0 1px 6px rgba(4, 6, 15, 0.8);
}

.hero-date-numeric {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  color: var(--color-gold);
  margin-bottom: var(--space-xl);
  padding-left: 0.45em; /* visual centering of tracking */
  text-shadow: 0 1px 6px rgba(4, 6, 15, 0.8);
}

/* ─── Welcome Message ─── */
.hero-message {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-cream-muted);
  max-width: 460px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(4, 6, 15, 0.8);
}

/* ─── Scroll Cue ─── */
.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.8;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.hero-scroll-cue:hover {
  opacity: 1;
  transform: translateY(2px);
  color: var(--color-gold-bright);
}

.scroll-cue-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); }
  50% { opacity: 0.9; transform: scaleY(1); }
}

/* ─── Particle Keyframes ─── */
@keyframes flicker {
  0%, 100% { opacity: var(--particle-base-opacity, 0.3); transform: scale(1); }
  25% { opacity: calc(var(--particle-base-opacity, 0.3) * 1.8); transform: scale(1.1); }
  50% { opacity: var(--particle-base-opacity, 0.3); transform: scale(0.95); }
  75% { opacity: calc(var(--particle-base-opacity, 0.3) * 1.5); transform: scale(1.05); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(var(--drift-x, 3px), var(--drift-y, -5px)); }
  66% { transform: translate(calc(var(--drift-x, 3px) * -0.5), calc(var(--drift-y, -5px) * 0.7)); }
}
