@font-face {
  font-family: 'Playfair Display 900 Italic';
  src: url('/static/fonts/playfair-display-900italic-latin.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ======================================================================
   Hero — Synthesis (E). White-on-black editorial typography sitting on a
   night-sky → desert-horizon gradient, with quiet orbital motion above
   and a layered Sangre de Cristo silhouette grounding the bottom.
   ====================================================================== */

/* The shared top nav (.siteNav, styled in main.css) overlays the hero on home. */
.heroE .siteNav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.heroE {
  --hE-ink: #f4e8d0;
  --hE-ink-dim: rgba(244, 232, 208, 0.62);
  --hE-paper: #02030a;
  position: relative;
  overflow: hidden;
  background: var(--hE-paper);
  color: var(--hE-ink);
  font-family: 'Playfair Display', Georgia, serif;
  display: flex; flex-direction: column;
}

.heroE-sky {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    180deg,
    #000003 0%,
    #010108 22%,
    #03030d 42%,
    #060716 58%,
    #0a081d 70%,
    #1a0c28 80%,
    #3a1428 88%,
    #6b2a2a 94%,
    #9c4828 100%
  );
}

.heroE-skyfx {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}

.heroE-mountain {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: clamp(140px, 18vw, 240px);
  z-index: 3;
  pointer-events: none;
}

.heroE-stage {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: clamp(140px, 16vh, 200px) 40px clamp(120px, 14vh, 170px);
  gap: clamp(48px, 8vh, 100px);
}

.heroE-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 22px);
  width: min(420px, 60%);
  margin: clamp(20px, 4vh, 56px) auto;
  opacity: 0.55;
}
.heroE-divider-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(230, 213, 179, 0) 0%,
    rgba(230, 213, 179, 0.6) 50%,
    rgba(230, 213, 179, 0) 100%);
}
.heroE-divider-star {
  flex-shrink: 0;
  opacity: 0.8;
}

.heroE-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.heroE-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.heroE-lockup-who { gap: 0; }

.heroE-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.heroE-row-top { margin-bottom: -0.18em; }
.heroE-row-bot { margin-top: -0.18em; }

.heroE-word {
  font-family: 'Playfair Display 900 Italic', 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(48px, 14vw, 184px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  display: inline-block;
  text-align: center;
  color: var(--hE-ink);
  opacity: 0.70;
  text-shadow:
    0 0 8px rgba(253, 243, 220, 0.55),
    0 0 28px rgba(246, 231, 200, 0.45),
    0 0 64px rgba(216, 164, 143, 0.32);
}

.heroE-row-mid {
  margin: -0.36em 0;
}
.heroE-amp {
  font-family: 'Playfair Display 900 Italic', 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(40px, 12vw, 158px);
  line-height: 1;
  color: var(--hE-ink);
  display: block;
  margin: 0;
  padding: 0 0.05em;
  opacity: 0.70;
  text-shadow:
    0 0 8px rgba(253, 243, 220, 0.55),
    0 0 28px rgba(246, 231, 200, 0.45),
    0 0 64px rgba(216, 164, 143, 0.32);
}

.heroE-zone-invite {
  position: relative;
}

.heroE-divider-moon {
  --moon: clamp(46px, 6vw, 64px);
  position: relative;
  width: var(--moon);
  height: var(--moon);
  border-radius: 50%;
  overflow: hidden;
  /* Promote to its own compositing layer so WebKit reliably clips the
     transformed ::before to the rounded shape (otherwise iOS Safari can let a
     composited child escape the border-radius and show square corners). */
  transform: translateZ(0);
  margin: clamp(20px, 4vh, 56px) auto;
  background: #fdf3dc;
  /* Glow via box-shadow, not filter: combining `filter` with `overflow: hidden`
     + `border-radius` makes iOS Safari render the element as a square. box-shadow
     follows the rounded box and isn't clipped by the element's own overflow. */
  box-shadow:
    0 0 6px rgba(253, 243, 220, 0.6),
    0 0 20px rgba(246, 231, 200, 0.42),
    0 0 46px rgba(216, 164, 143, 0.28);
}
/* The phase is a dark disc-fill swept across the lit moon via an animated
   transform — composited, so it stays smooth on iOS — instead of an animated
   inset box-shadow, which is painted every frame and renders coarsely on mobile
   Safari (especially under the drop-shadow glow). Symmetric sweep: full moon at
   both ends (panel fully off-disc), new moon dead-centre (panel covers it). The
   ends match (both fully lit), so the loop is seamless. */
.heroE-divider-moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #241a4a;
  animation: heroE-moonphase 30s linear infinite;
}
@keyframes heroE-moonphase {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .heroE-divider-moon::before {
    animation: none;
    transform: translateX(-50%);
  }
  .heroE-twinkle { animation: none; }
}

/* Background-star twinkle: a subset of stars (and all the bright feature stars)
   get this class. Each one has its own animation-duration and animation-delay
   inline so the field shimmers asynchronously. */
.heroE-twinkle {
  transform-origin: center;
  transform-box: fill-box;
  animation-name: heroE-twinkle;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
@keyframes heroE-twinkle {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.4); }
}

.heroE-zone-invite .heroE-mood {
  position: relative;
  z-index: 1;
}

.heroE-mood {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 1.15vw, 17px);
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--hE-ink);
  opacity: 0.72;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  display: block;
  width: 100%;
}

.heroE-zone-when {
  gap: 8px;
}
.heroE-when {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vh, 10px);
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--hE-ink);
}
.heroE-when-day {
  font-style: italic;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.72;
}
.heroE-when-date {
  font-style: italic;
  font-size: clamp(34px, 4.4vw, 60px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  opacity: 0.95;
}
.heroE-place {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--hE-ink);
  opacity: 0.75;
  margin-bottom: clamp(14px, 2vh, 22px);
}

.heroE-zone-schedule {
  gap: 22px;
}
.heroE-schedule {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: clamp(28px, 5vw, 80px);
}
.heroE-sched-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--hE-ink);
  text-align: center;
  min-width: 14ch;
}
.heroE-sched-divider {
  width: 1px;
  align-self: stretch;
  background: var(--hE-ink);
  opacity: 0.28;
}
.heroE-sched-time {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 0.96;
}
.heroE-sched-label {
  font-style: italic;
  font-size: clamp(12px, 1.05vw, 15px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 2px;
}
.heroE-sched-detail {
  font-style: normal;
  font-size: clamp(10px, 0.92vw, 12px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.62;
  line-height: 1.55;
}

.heroE-note {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2vw, 26px);
  transform: translateX(-50%);
  z-index: 6;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hE-ink);
  opacity: 0.42;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 720px) {
  .heroE-stage { padding: 160px 18px 90px; gap: 60px; }
  .heroE-mood { letter-spacing: 0.32em; white-space: normal; max-width: 28ch; margin: 0 auto; }
  .heroE-when { flex-direction: column; gap: 10px; }
  .heroE-schedule { flex-direction: column; gap: 24px; }
  .heroE-sched-divider { width: 60px; height: 1px; align-self: center; }
}
