:root {
  --cream: #fbf7f0;
  --cream-2: #f4ecdf;
  --sand-deep: #e6d6be;
  --terracotta: #2c7382;
  --terra-dark: #16505e;
  --terra-light: #8fc3cd;
  --sea-mist: #deedf0;
  --gold: #c9a063;
  --gold-light: #e7cc97;
  --gold-pale: #f5e8cf;
  --coral: #e08a6b;
  --coral-light: #f3bca3;
  --burgundy: #16505e;
  --text-dark: #1c333a;
  --text-mid: #4f6d75;
  --text-light: #93a9af;
  --border: #e7dcc9;
  --white: #fff;
  --night: #0e262c;
  --shadow-warm: 0 20px 60px -10px #1c333a1f;
  --shadow-gold: 0 4px 24px #c9a0632e;
}

*,
:before,
:after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  overflow-x: hidden;
}

html,
body,
*,
html.platform-preview,
html.platform-preview body,
html.editor-mode,
html.editor-mode body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar {
  background: 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body::-webkit-scrollbar {
  background: 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

::-webkit-scrollbar {
  background: 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

html.platform-preview::-webkit-scrollbar {
  background: 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

html.platform-preview body::-webkit-scrollbar {
  background: 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

html.editor-mode::-webkit-scrollbar {
  background: 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

html.editor-mode body::-webkit-scrollbar {
  background: 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.script {
  font-family:
    Great Vibes,
    cursive;
}

.serif {
  font-family:
    Cormorant Garamond,
    serif;
}

.sans {
  font-family:
    Tenor Sans,
    sans-serif;
}

.shimmer-gold {
  background: linear-gradient(105deg,
      #a6813f 20%,
      var(--gold) 38%,
      #f3dfb4 50%,
      var(--gold) 62%,
      #a6813f 80%);
  -webkit-text-fill-color: transparent;
  background-size: 250%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: 6s linear infinite shimmer;
}

@keyframes shimmer {
  to {
    background-position: 200%;
  }
}

.text-terra {
  color: var(--terracotta);
}

.text-gold {
  color: var(--gold);
}

.text-mid {
  color: var(--text-mid);
}

.text-light2 {
  color: var(--text-light);
}

.section-eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.85rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

#petals-canvas,
.petals-canvas {
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1.5s;
  position: fixed;
  top: 0;
  left: 0;
}

#petals-canvas.active,
.petals-canvas.active {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-transform: translateZ(0);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

.reveal-delay-4 {
  transition-delay: 0.6s;
}

#entry-gate,
.entry-gate,
.entry-gate--type1,
.entry-gate--type2,
.entry-gate--type3,
#video-entry-gate,
.video-entry-gate {
  inset: 0;
  width: 100%;
  height: 100%;
  height: var(--stable-vh, 100svh);
  max-height: var(--stable-vh, 100svh);
  background: var(--night);
  z-index: 9999;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  overscroll-behavior: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#entry-gate video,
.entry-gate video,
.entry-gate--type1 video,
.entry-gate--type2 video,
.entry-gate--type3 video,
#video-entry-gate video,
.video-entry-gate video,
#entry-video {
  inset: 0;
  object-fit: cover;
  pointer-events: none;
  background: var(--night);
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: absolute;
  inset: 0;
}

#entry-gate.fade-out,
.entry-gate.fade-out,
.entry-gate--type1.fade-out,
.entry-gate--type2.fade-out,
.entry-gate--type3.fade-out,
#video-entry-gate.fade-out,
.video-entry-gate.fade-out {
  opacity: 0;
  pointer-events: none;
}

img.deferred-media-pending,
img[data-src]:not([src]) {
  opacity: 0;
}

.gate-loader,
#gate-loader {
  inset: 0;
  z-index: 10;
  background: var(--night);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s;
  display: flex;
  position: absolute;
  inset: 0;
}

.gate-loader.hide,
.gate-loader.hidden,
#entry-gate.video-playing .gate-loader,
#entry-gate.fade-out .gate-loader,
.video-entry-gate.is-playing .gate-loader {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.rings-scene {
  width: 160px;
  height: 80px;
  margin-bottom: 1.75rem;
  position: relative;
}

.ring {
  border: 2.5px solid var(--gold-light);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 12px #e4c89240,
    inset 0 0 8px #e4c89214;
}

.ring--left {
  animation: 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards ringSlideLeft;
  left: 0;
}

.ring--right {
  animation: 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards ringSlideRight;
  right: 0;
}

@keyframes ringSlideLeft {
  0% {
    opacity: 0.4;
    left: 0;
  }

  30% {
    opacity: 1;
  }

  to {
    opacity: 1;
    left: 35px;
  }
}

@keyframes ringSlideRight {
  0% {
    opacity: 0.4;
    right: 0;
  }

  30% {
    opacity: 1;
  }

  to {
    opacity: 1;
    right: 35px;
  }
}

.rings-diamond {
  background: var(--gold-light);
  width: 6px;
  height: 6px;
  animation: 0.5s 2s forwards diamondPop;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  box-shadow: 0 0 10px #e4c89299;
}

@keyframes diamondPop {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
  }

  60% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
  }

  to {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
}

.rings-glow {
  opacity: 0;
  background: radial-gradient(circle, #8fc3cd40, #0000 70%);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: 2s 2.2s infinite glowPulse;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes glowPulse {

  0%,
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.gate-loader-names {
  color: var(--gold-light);
  text-align: center;
  opacity: 0;
  margin-bottom: 0;
  font-family:
    Great Vibes,
    cursive;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  animation: 1s 1.6s forwards namesFadeIn;
}

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

.gate-loader-text {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff6;
  opacity: 0;
  margin-top: 1.2rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.55rem;
  animation: 0.8s 2.4s forwards namesFadeIn;
}

.entry-gate-message,
.entry-gate--type1 .entry-gate-message,
.entry-gate--type2 .entry-gate-message {
  z-index: 6;
  pointer-events: none;
  text-align: center;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0.95;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-wrap: pretty;
  white-space: pre-line;
  width: 94%;
  max-width: 650px;
  font-family: Satisfy, cursive;
  font-size: clamp(1.35rem, 5.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.35;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 72%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%);
}

.entry-gate--type1 .entry-gate-message.hidden,
.entry-gate--type2 .entry-gate-message.hidden,
.entry-gate-message.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%) translateY(-10px) scale(0.96) !important;
}

.entry-gate-tap-hint,
.entry-gate--type1 .entry-gate-tap-hint,
.entry-gate--type2 .entry-gate-tap-hint {
  z-index: 6;
  pointer-events: none;
  text-align: center;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0.95;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-wrap: pretty;
  white-space: nowrap;
  width: 90%;
  max-width: 500px;
  font-family: Satisfy, cursive;
  font-size: clamp(1.35rem, 5.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.35;
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%) scale(1);
}

.entry-gate-tap-hint.hidden,
.video-playing .entry-gate-tap-hint {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px) scale(0.92);
}

.entry-overlay--dark .entry-gate-message,
.entry-overlay--dark .entry-gate-tap-hint,
.overlay-dark .entry-gate-message,
.overlay-dark .entry-gate-tap-hint {
  color: var(--gold-pale, #f5e8cf);
  text-shadow:
    0 2px 14px #000c,
    0 0 6px #0009;
}

.entry-overlay--light .entry-gate-message,
.entry-overlay--light .entry-gate-tap-hint,
.overlay-light .entry-gate-message,
.overlay-light .entry-gate-tap-hint {
  color: #1c333a;
  text-shadow: 0 1px 8px #ffffffd9;
}

.entry-gate--type3 {
  background: #140507;
}

.entry-gate--type3.entry-gate--buffering {
  cursor: wait;
}

.entry-gate--type3.entry-gate--ready {
  cursor: pointer;
}

.entry-gate-type3-loader {
  z-index: 6;
  text-align: center;
  background: #140507;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: opacity 0.7s;
  display: flex;
  position: absolute;
  inset: 0;
}

.entry-gate-type3-loader.hide {
  opacity: 0;
  pointer-events: none;
}

.entry-gate-type3-names-wrapper {
  z-index: 6;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
  width: 94%;
  max-width: 700px;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
}

.entry-gate-type3-names-wrapper.visible {
  opacity: 0.98;
  transform: translate(-50%, -50%) scale(1);
}

.entry-gate-type3-names {
  -webkit-user-select: none;
  user-select: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-family: Satisfy, cursive;
  display: flex;
}

.entry-gate-type3-name {
  -webkit-text-stroke: 0.4px currentColor;
  letter-spacing: 0.01em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-wrap: balance;
  font-size: clamp(2.2rem, 7.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.entry-gate-type3-amp {
  -webkit-text-stroke: 0.4px currentColor;
  opacity: 0.92;
  margin: 0.2rem 0;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.entry-gate--type3.entry-overlay--light .entry-gate-type3-name,
.entry-gate--type3.entry-overlay--light .entry-gate-type3-amp,
.entry-overlay--light .entry-gate-type3-name,
.entry-overlay--light .entry-gate-type3-amp {
  color: #1c333a;
  text-shadow: 0 1px 10px #ffffffa6;
}

.entry-gate--type3.entry-overlay--dark .entry-gate-type3-name,
.entry-gate--type3.entry-overlay--dark .entry-gate-type3-amp,
.entry-overlay--dark .entry-gate-type3-name,
.entry-overlay--dark .entry-gate-type3-amp {
  color: var(--gold-pale, #f5e8cf);
  text-shadow: 0 2px 14px #000c;
}

#audio-btn,
.audio-btn {
  background: linear-gradient(135deg, var(--terracotta), var(--terra-dark));
  color: #fff;
  cursor: pointer;
  z-index: 900;
  border: 1.5px solid #fff3;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  box-shadow: 0 4px 20px #2c738259;
}

#audio-btn:hover,
.audio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px #2c738273;
}

#audio-btn svg,
.audio-btn svg {
  width: 20px;
  height: 20px;
}

#audio-btn.playing:before,
.audio-btn.playing:before {
  content: "";
  border: 1.5px solid var(--terra-light);
  border-radius: 50%;
  animation: 1.5s ease-in-out infinite audioRing;
  position: absolute;
  inset: -4px;
}

@keyframes audioRing {

  0%,
  to {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0;
    transform: scale(1.15);
  }
}

.shore {
  pointer-events: none;
  width: 100%;
  height: clamp(70px, 14vw, 130px);
  position: relative;
  overflow: hidden;
}

.shore-wave {
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: 600px 100%;
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.shore-wave.w-back {
  opacity: 0.4;
  background-position-x: 150px;
}

.section-label,
.section-eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.85rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

#video-hero,
.video-hero {
  width: 100%;
  height: var(--hero-h, 100svh);
  min-height: var(--hero-h, 100svh);
  max-height: var(--hero-h, 100svh);
  contain: layout style paint;
  isolation: isolate;
  background: #0d2126;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;
}

#video-hero:before,
.video-hero:before {
  content: "";
  z-index: 0;
  background: radial-gradient(circle at 50% 30%, #2c738252 0%, #0d2126f2 80%);
  position: absolute;
  inset: 0;
}

.hero-film-stage {
  width: 100%;
  max-width: calc(var(--hero-h, 100svh) * 9 / 16);
  z-index: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 45px #00000073;
}

.hero-film-stage video,
#video-hero video {
  object-fit: cover;
  z-index: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-film-overlay {
  pointer-events: none;
  z-index: 3;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-crest-monogram {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 4;
  filter: drop-shadow(1.5px 2px 2px #23372652);
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 100px;
  font-family:
    Cinzel Decorative,
    Cormorant Garamond,
    Georgia,
    serif;
  font-weight: 700;
  animation: 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both crestMonogramUp;
  display: inline-flex;
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-crest-monogram .mono-initial {
  line-height: 1;
  display: inline-block;
  position: relative;
}

.hero-crest-monogram .mono-first {
  color: var(--terracotta, #2c7382);
  text-shadow:
    0 1px 3px #fffffff2,
    0 0 1px #2c738259;
  font-size: clamp(2.3rem, 5.2vh, 3.2rem);
  transform: translate(-2px, -10px);
}

.hero-crest-monogram .mono-second {
  color: var(--terra-dark, #16505e);
  text-shadow:
    0 1px 3px #fffffff2,
    0 0 1px #2c738259;
  margin-left: -0.16em;
  font-size: clamp(2.1rem, 4.8vh, 2.9rem);
  transform: translate(2px, 10px);
}

@keyframes crestMonogramUp {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translate(-50%, calc(22px - 50%)) scale(0.92);
  }

  to {
    opacity: 1;
    filter: blur();
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-film-stacked {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 4;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 460px;
  display: flex;
  position: absolute;
  top: 57.5%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-film-name {
  color: var(--terracotta, #2c7382);
  text-shadow:
    0 1px 3px #ffffffe6,
    0 0 14px #ffffff80;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-align: center;
  font-family:
    Great Vibes,
    cursive;
  font-size: clamp(3.1rem, 6.8vh, 4.6rem);
  line-height: 1.05;
}

.hero-name-top {
  animation: 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both heroSlideUp;
}

.hero-film-ampersand {
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin: 0.15rem 0;
  animation: 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both heroSlideUp;
  display: flex;
}

.hero-film-ampersand:before {
  content: "";
  background: linear-gradient(90deg, #0000, #c07a5f73);
  width: 32px;
  height: 1px;
}

.hero-film-ampersand:after {
  content: "";
  background: linear-gradient(90deg, #c07a5f73, #0000);
  width: 32px;
  height: 1px;
}

.hero-film-ampersand .ampersand-char {
  color: var(--terracotta, #c07a5f);
  text-shadow: 0 1px 2px #fffc;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(1.4rem, 3.2vh, 2rem);
  font-style: italic;
  line-height: 1;
}

.hero-name-bottom {
  animation: 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both heroSlideUp;
}

.hero-film-quote {
  letter-spacing: 0.05em;
  color: var(--text-mid, #4f6d75);
  text-align: center;
  text-shadow:
    0 1px 3px #fffffff2,
    0 0 12px #fff9;
  margin-top: 0.85rem;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(1.05rem, 2.3vh, 1.3rem);
  font-style: italic;
  font-weight: 500;
  animation: 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both heroSlideUp;
}

@keyframes heroSlideUp {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    filter: blur();
    transform: translateY(0);
  }
}

@media (max-height: 600px) {
  .hero-crest-monogram .mono-first {
    font-size: 1.8rem;
    transform: translate(-2px, -7px);
  }

  .hero-crest-monogram .mono-second {
    margin-left: -0.16em;
    font-size: 1.6rem;
    transform: translate(2px, 7px);
  }

  .hero-crest-monogram {
    top: 26.5%;
  }

  .hero-film-stacked {
    top: 57%;
  }

  .hero-film-name {
    font-size: 2.3rem;
  }
}

.vh-shore {
  z-index: 2;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.scroll-btn {
  z-index: 6;
  cursor: pointer;
  width: 52px;
  height: 52px;
  color: var(--terracotta);
  opacity: 0;
  pointer-events: none;
  background: #fff;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin-left: -26px;
  transition:
    opacity 0.8s,
    box-shadow 0.3s,
    background 0.3s;
  display: flex;
  position: absolute;
  bottom: calc(clamp(56px, 11vw, 96px) + 1.1rem);
  left: 50%;
  box-shadow:
    0 8px 28px #0e262c47,
    0 0 0 6px #ffffff24;
}

.scroll-btn:hover {
  box-shadow:
    0 10px 34px #0e262c57,
    0 0 0 9px #ffffff2e;
}

.scroll-btn svg {
  width: 20px;
  height: 20px;
  animation: 2s infinite scrollBounce;
}

.scroll-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

@keyframes scrollBounce {

  0%,
  to {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

#hero,
.hero-section {
  min-height: var(--hero-h, 100svh);
  background:
    radial-gradient(120% 60% at 50% 0%, #e4c89247 0%, #f3ebde00 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem 5rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

#hero:after,
.hero-section:after {
  content: "";
  aspect-ratio: 1;
  z-index: 0;
  background: radial-gradient(circle, #e08a6b29 0%, #e4c8921a 45%, #0000 70%);
  border-radius: 50%;
  width: min(70vw, 340px);
  animation: 9s ease-in-out infinite sunBreathe;
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%);
}

@keyframes sunBreathe {

  0%,
  to {
    opacity: 1;
    transform: translate(-50%) scale(1);
  }

  50% {
    opacity: 0.82;
    transform: translate(-50%) scale(1.07);
  }
}

.hero-card {
  z-index: 3;
  width: 100%;
  max-width: 520px;
  box-shadow:
    var(--shadow-warm),
    0 0 0 1px #fff9 inset,
    0 0 80px #c9a0631a;
  text-align: center;
  background: #fffdf9f7;
  border: 1px solid #c9a0632e;
  border-radius: 2rem;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 2.5rem);
  display: flex;
  position: relative;
}

.ganesh-icon {
  object-fit: contain;
  width: auto;
  height: 100px;
  margin: 0 auto 0.75rem;
  animation: 5s ease-in-out infinite floatIcon;
}

@keyframes floatIcon {

  0%,
  to {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.god-quote {
  letter-spacing: 0.04em;
  color: var(--terra-dark);
  white-space: pre-line;
  text-align: center;
  text-wrap: pretty;
  max-width: 440px;
  margin-bottom: 1.4rem;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  font-style: italic;
  line-height: 1.75;
}

.god-quote:empty {
  display: none;
}

.invocation {
  letter-spacing: 0.12em;
  color: var(--terra-dark);
  margin-bottom: 0.5rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.05rem;
}

.invocation-verse {
  letter-spacing: 0.04em;
  color: var(--text-light);
  white-space: pre-line;
  margin-bottom: 1.5rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 0.82rem;
  line-height: 1.9;
}

.host-line {
  letter-spacing: 0.16em;
  color: var(--terra-dark);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.7rem;
  line-height: 2;
}

.couple-block {
  width: 100%;
  margin-bottom: 0.25rem;
}

.couple-name {
  letter-spacing: 0.02em;
  padding: 0.15rem 0;
  font-family:
    Great Vibes,
    cursive;
  font-size: clamp(2.8rem, 10.5vw, 4.2rem);
  line-height: 1.12;
  display: block;
}

.couple-name.shimmer-gold,
.couple-name.shimmer {
  background: linear-gradient(135deg,
      #1f3022 0%,
      #8a6a3b 35%,
      #d4af37 55%,
      #8a6a3b 75%,
      #1f3022 100%) 0 0/200%;
  -webkit-text-fill-color: transparent;
  color: #1f3022;
  -webkit-background-clip: text;
  background-clip: text;
}

.family-line {
  color: var(--text-dark);
  letter-spacing: 0.02em;
  white-space: pre-line;
  max-width: 96%;
  margin-top: 0.45rem;
  margin-left: auto;
  margin-right: auto;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(1.02rem, 3.3vw, 1.22rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
}

.ampersand-wrap {
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 1.35rem 0;
  display: flex;
}

.ampersand-line {
  background: var(--border);
  width: 40px;
  height: 1px;
}

.ampersand {
  color: var(--gold);
  font-family:
    Great Vibes,
    cursive;
  font-size: 2rem;
  line-height: 1;
}

.card-corner {
  border-style: solid;
  border-color: #c9a06352;
  width: 28px;
  height: 28px;
  position: absolute;
}

.card-corner.tl {
  border-width: 1px 0 0 1px;
  border-radius: 3px 0 0;
  top: 14px;
  left: 14px;
}

.card-corner.tr {
  border-width: 1px 1px 0 0;
  border-radius: 0 3px 0 0;
  top: 14px;
  right: 14px;
}

.card-corner.bl {
  border-width: 0 0 1px 1px;
  border-radius: 0 0 0 3px;
  bottom: 14px;
  left: 14px;
}

.card-corner.br {
  border-width: 0 1px 1px 0;
  border-radius: 0 0 3px;
  bottom: 14px;
  right: 14px;
}

.hero-date-line {
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 1.5rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.58rem;
}

#sand-reveal-section,
.sand-reveal-section {
  background: linear-gradient(180deg,
      var(--cream) 0%,
      #f6eee1 40%,
      var(--cream) 100%);
  text-align: center;
  padding: 5rem 1.25rem 3.5rem;
  position: relative;
  overflow: hidden;
}

#sand-reveal-section:before,
.sand-reveal-section:before {
  content: "";
  pointer-events: none;
  background-image:
    radial-gradient(120% 40% at 20% 55%, #e6d6be73 0%, #0000 60%),
    radial-gradient(90% 32% at 85% 60%, #e6d6be59 0%, #0000 60%);
  position: absolute;
  inset: 0;
}

#sand-reveal-section>*,
.sand-reveal-section>* {
  z-index: 2;
  position: relative;
}

.sand-reveal-header {
  text-align: center;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.75rem;
  padding: 0 1rem;
  display: flex;
}

.section-heading {
  text-shadow: 0 2px 8px #2c738214;
  text-align: center;
  margin: 0;
  padding-bottom: 0.35rem;
  font-family:
    Great Vibes,
    cursive;
  font-size: clamp(2.8rem, 8.5vw, 4.2rem);
  line-height: 1.25;
}

.section-subheading {
  color: var(--text-mid);
  text-align: center;
  max-width: 520px;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(1.02rem, 3.2vw, 1.18rem);
  font-style: italic;
  line-height: 1.5;
}

.hearts-row {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2.5vw, 1.1rem);
  width: 100%;
  max-width: 420px;
  margin: 2.25rem auto 0;
  display: flex;
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.hearts-row.unlocked {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.heart-container {
  aspect-ratio: 1.1;
  background: linear-gradient(160deg, #fff 0%, var(--sea-mist) 100%);
  touch-action: pan-y;
  flex: 1 1 0;
  min-width: 0;
  max-width: 128px;
  min-height: 96px;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s;
  position: relative;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 185' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 185 C100 185, 200 125, 200 70 C200 23, 157 -10, 121.5 15 C100 31, 100 31, 100 31 C100 31, 100 31, 78.5 15 C43 -10, 0 23, 0 70 C0 125, 100 185, 100 185 Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 185' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 185 C100 185, 200 125, 200 70 C200 23, 157 -10, 121.5 15 C100 31, 100 31, 100 31 C100 31, 100 31, 78.5 15 C43 -10, 0 23, 0 70 C0 125, 100 185, 100 185 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-position: 50%;
  mask-position: 50%;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 1 !important;
  visibility: visible !important;
}

.hearts-row.unlocked .heart-container {
  filter: drop-shadow(0 4px 16px #2c738233);
  animation: 3.4s ease-in-out infinite gentle-heart-beat;
  opacity: 1 !important;
  visibility: visible !important;
}

.hearts-row.unlocked .heart-container:nth-child(2) {
  animation-delay: 0.28s;
}

.hearts-row.unlocked .heart-container:nth-child(3) {
  animation-delay: 0.56s;
}

@keyframes gentle-heart-beat {

  0%,
  to {
    transform: scale(1);
  }

  50% {
    transform: scale(1.045);
  }
}

.hidden-content {
  z-index: 1;
  background: 0 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.hidden-content .value {
  color: var(--terracotta);
  text-shadow: 0 2px 10px #fffc;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
}

.hidden-content .value.is-year {
  letter-spacing: 0.01em;
  font-size: clamp(1.35rem, 6vw, 1.85rem);
}

.hidden-content .sub {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-top: 6px;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: clamp(0.42rem, 1.9vw, 0.55rem);
}

.sand-canvas {
  z-index: 2;
  width: 100%;
  height: 100%;
  transition: opacity 0.9s;
  position: absolute;
  top: 0;
  left: 0;
}

.sand-dust {
  z-index: 3;
  pointer-events: none;
  width: 124%;
  height: 144%;
  position: absolute;
  top: -22%;
  left: -12%;
}

.wind-streaks {
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
  position: absolute;
  inset: 0;
}

.wind-streaks.blowing {
  opacity: 1;
}

.wind-streak {
  background: linear-gradient(90deg, #0000, #ffffffd9, #e6d6be80, #0000);
  width: 45%;
  height: 1px;
  position: absolute;
  left: -30%;
  transform: translate(0);
}

.wind-streaks.blowing .wind-streak {
  animation: 1.9s linear infinite windPass;
}

.wind-streak:first-child {
  animation-delay: 0s;
  top: 26%;
}

.wind-streak:nth-child(2) {
  width: 34%;
  animation-delay: 0.35s;
  top: 41%;
}

.wind-streak:nth-child(3) {
  animation-delay: 0.7s;
  top: 55%;
}

.wind-streak:nth-child(4) {
  width: 30%;
  animation-delay: 1.05s;
  top: 68%;
}

@keyframes windPass {
  0% {
    transform: translate(0);
  }

  to {
    transform: translate(300%);
  }
}

.sand-hint {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 1.75rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.55rem;
  transition: opacity 0.8s;
}

.surprise-message {
  background: linear-gradient(105deg,
      var(--terra-dark),
      var(--terracotta),
      var(--terra-light),
      var(--terracotta),
      var(--terra-dark));
  -webkit-text-fill-color: transparent;
  opacity: 0;
  background-size: 250%;
  -webkit-background-clip: text;
  background-clip: text;
  margin-top: 1.75rem;
  font-family:
    Great Vibes,
    cursive;
  font-size: 2.8rem;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  animation: 6s linear infinite shimmer;
  transform: translateY(15px);
}

.surprise-message.revealed {
  opacity: 1;
  transform: translateY(0);
}

.countdown-container {
  opacity: 0;
  pointer-events: none;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.35rem, 1.8vw, 0.65rem);
  width: 100%;
  max-width: 360px;
  margin: 1.5rem auto 0;
  padding: 0 0.5rem;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  transform: translateY(15px);
}

.countdown-container.revealed {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cd-item {
  background: linear-gradient(145deg, var(--white), var(--cream));
  border: 1px solid var(--border);
  min-width: 0;
  max-width: 80px;
  box-shadow:
    var(--shadow-warm),
    0 0 0 1px #c9a0630f inset;
  border-radius: clamp(0.7rem, 2.5vw, 1rem);
  flex-direction: column;
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
  padding: clamp(0.65rem, 2vw, 0.85rem) clamp(0.2rem, 1vw, 0.5rem);
  display: flex;
}

.cd-item span {
  color: var(--text-dark);
  text-align: center;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: clamp(1.35rem, 4.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1.05;
}

.cd-item small {
  letter-spacing: clamp(0.08em, 0.4vw, 0.15em);
  color: var(--terracotta);
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  margin-top: 0.35rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: clamp(0.44rem, 1.5vw, 0.55rem);
}

#flip-section,
.flip-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  text-align: center;
  padding: 3rem 1.5rem;
}

.flipbook {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  line-height: 0;
  position: relative;
}

.flipbook img {
  width: 100%;
  height: auto;
  display: block;
}

.flipbook .flip-b {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.story-scroll-wrap {
  touch-action: pan-y;
  background: 0 0;
  width: 100%;
  position: relative;
}

.story-sticky-stage {
  width: 100%;
  height: var(--stable-vh, 100svh);
  z-index: 5;
  backface-visibility: hidden;
  will-change: transform;
  touch-action: pan-y;
  background: linear-gradient(180deg,
      var(--cream-2) 0%,
      var(--cream) 35%,
      var(--cream) 100%);
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(1.2rem, 3.5vh, 2.2rem) 0 clamp(0.8rem, 1.8vh, 1.2rem);
  display: flex;
  position: sticky;
  top: 0;
  overflow: hidden;
  transform: translate(0, 0);
}

.story-ambient-glow {
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  will-change: transform;
  border-radius: 50%;
  position: absolute;
  transform: translate(0, 0);
}

.story-ambient-glow.glow-1 {
  background: radial-gradient(circle, #deedf0bf, #0000 70%);
  width: 320px;
  height: 320px;
  top: 8%;
  left: -80px;
}

.story-ambient-glow.glow-2 {
  background: radial-gradient(circle, #c9a06359, #0000 70%);
  width: 280px;
  height: 280px;
  bottom: 12%;
  right: -60px;
}

.story-top-header {
  z-index: 4;
  text-align: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 520px;
  margin-bottom: clamp(1rem, 2vh, 1.75rem);
  padding: 0 1.25rem;
  position: relative;
}

.story-eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 500;
  display: block;
}

.story-title {
  color: var(--terracotta);
  margin: 0;
  padding-bottom: 0.25rem;
  font-family:
    Great Vibes,
    cursive;
  font-size: clamp(2.6rem, 7.5vw, 3.8rem);
  line-height: 1.25;
}

.story-subtitle {
  color: var(--text-mid);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(0.98rem, 3vw, 1.15rem);
  font-style: italic;
  line-height: 1.5;
}

.story-orn {
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 140px;
  margin: 0.35rem auto 0;
  display: flex;
}

.story-orn .line {
  background: #c9a06366;
  flex: 1;
  height: 1px;
}

.story-orn .diamond {
  background: var(--gold);
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
}

.story-track-container {
  z-index: 3;
  touch-action: pan-y;
  flex: 1;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
  overflow: visible;
}

.story-track {
  will-change: transform;
  backface-visibility: hidden;
  touch-action: pan-y;
  flex-flow: row;
  align-items: center;
  gap: clamp(2rem, 7vw, 4rem);
  width: max-content;
  padding-left: calc(50vw - clamp(130px, 37.5vw, 165px));
  padding-right: calc(50vw - clamp(130px, 37.5vw, 165px));
  display: flex;
  position: relative;
  transform: translate(0, 0);
  transition: none !important;
}

.story-card-slot {
  touch-action: pan-y;
  flex: none;
  justify-content: center;
  align-items: center;
  display: flex;
}

.pcard-wrap {
  transform-origin: 50%;
  touch-action: pan-y;
  position: relative;
  opacity: 1 !important;
}

.pcard {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e7dcc9bf;
  border-radius: 4px;
  width: clamp(255px, 72vw, 315px);
  margin: 0 auto;
  padding: 13px 13px 20px;
  position: relative;
  box-shadow:
    0 20px 48px -10px #1c333a29,
    0 6px 18px -2px #1c333a14;
}

@media (min-width: 640px) {
  .pcard {
    width: 330px;
    padding: 16px 16px 26px;
  }
}

.pcard:before {
  content: "";
  z-index: 3;
  background: linear-gradient(#f5e8cfe0, #e7cc97a6);
  border: 1px dashed #c9a06373;
  width: 76px;
  height: 22px;
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translate(-50%) rotate(-2deg);
  box-shadow: 0 2px 6px #0000000f;
}

.pcard img {
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  width: 100%;
  max-height: 50vh;
  display: block;
}

.pcard-caption {
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
  display: flex;
}

.pcard-number {
  letter-spacing: 0.18em;
  color: var(--gold);
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
}

.pcard-title {
  color: var(--text-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 260px;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.05rem;
  font-weight: 500;
  overflow: hidden;
}

.events-banner {
  text-align: center;
  width: 100%;
  margin: 0 0 3.25rem;
  position: relative;
}

.events-banner-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.events-banner-content {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: -3.25rem;
  padding: 0 1rem;
  display: flex;
  position: relative;
}

.events-banner-content .section-eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  text-shadow: 0 1px 4px #fbf7f0f2;
  max-width: 320px;
  margin-bottom: 0.35rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 500;
  line-height: 1.4;
}

.events-banner-content .section-heading {
  color: var(--terracotta);
  text-shadow: 0 2px 8px #2c738214;
  text-align: center;
  max-width: 420px;
  margin: 0;
  padding: 0 0.5rem;
  font-family:
    Great Vibes,
    cursive;
  font-size: clamp(2.8rem, 8.5vw, 4.2rem);
  line-height: 1.15;
}

@media (max-width: 480px) {
  .events-banner {
    margin: 0 0 2.25rem;
  }

  .events-banner-content {
    margin-top: -2.5rem;
    padding: 0 0.75rem;
  }

  .events-banner-content .section-eyebrow {
    letter-spacing: 0.22em;
    max-width: 280px;
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
  }

  .events-banner-content .section-heading {
    font-size: clamp(2.3rem, 7.8vw, 2.95rem);
    line-height: 1.1;
  }
}

#events-section,
.events-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 0 0 5rem;
}

.event-block {
  box-sizing: border-box;
  max-width: 440px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
  position: relative;
}

.event-card-unified {
  border: 1px solid var(--border);
  width: 100%;
  box-shadow:
    var(--shadow-warm),
    0 8px 30px #00000014;
  background: #fff;
  border-radius: 1.25rem;
  transition:
    transform 0.4s,
    box-shadow 0.4s;
  overflow: hidden;
}

.event-card-unified:hover {
  box-shadow:
    var(--shadow-warm),
    0 14px 44px #2c738229;
  transform: translateY(-3px);
}

.event-card-band {
  background: linear-gradient(to right,
      var(--terra-light),
      var(--gold-light),
      var(--coral-light),
      var(--terra-light));
  width: 100%;
  height: 4px;
  display: block;
}

.event-invite-frame {
  --invite-pad-top: 20.5%;
  --invite-pad-bottom: 80.5%;
  box-sizing: border-box;
  width: 100%;
  box-shadow: none;
  aspect-ratio: 9/16;
  background: #fff;
  border: none;
  border-radius: 0;
  max-height: min(92vh, 720px);
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.event-invite-bg {
  object-fit: cover;
  object-position: center bottom;
  border-radius: 0;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.event-invite-overlay {
  text-align: center;
  padding: var(--invite-pad-top) 0.75rem var(--invite-pad-bottom);
  pointer-events: none;
  box-sizing: border-box;
  z-index: 10;
  will-change: transform;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateZ(0);
}

.event-invite-stack {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: flex;
}

.event-invite-title {
  font-family:
    var(--font-mussica-swash), "Great Vibes", "Pinyon Script", cursive;
  letter-spacing: 0.01em;
  text-align: center;
  word-break: break-word;
  flex-shrink: 0;
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.5rem, 7.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
}

.event-invite-title.is-multiline {
  font-size: clamp(1.8rem, 5.5vw, 2.4rem);
  line-height: 1.65;
}

.event-title-line {
  text-align: center;
  width: 100%;
  display: block;
}

.event-title-line+.event-title-line {
  margin-top: 0.18rem;
}

.event-invite-stack .event-date-row {
  margin-top: clamp(0.35rem, 2.6vw, 0.72rem);
}

.event-invite-stack .event-invite-time {
  margin-top: clamp(0.22rem, 1.8vw, 0.48rem);
}

.event-date-row {
  text-transform: none;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(1.2rem, 3.9vw, 1.14rem);
  font-weight: 900;
  line-height: 1.2;
  display: flex;
}

.event-date-row .event-date-bar {
  opacity: 0.45;
  margin: 0 0.05rem;
  font-weight: 400;
}

.event-date-row .event-date-num {
  margin: 0 0.15rem;
  font-size: clamp(2rem, 8.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1;
}

.event-invite-time {
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin: 0;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(1.1rem, 3.55vw, 1.15rem);
  font-style: normal;
  font-weight: 600;
}

.event-invite--light .event-invite-title,
.event-invite--arch .event-invite-title {
  color: #b4236f;
}

.event-invite--light .event-date-row,
.event-invite--light .event-invite-time,
.event-invite--arch .event-date-row,
.event-invite--arch .event-invite-time {
  color: #2c1810;
}

.event-invite--dark .event-invite-title {
  color: #f5ecd4;
  text-shadow:
    0 2px 18px #00000073,
    0 0 36px #d4af3747;
}

.event-invite--dark .event-date-row,
.event-invite--dark .event-invite-time {
  color: #fffffff2;
  text-shadow: 0 1px 12px #00000059;
}

.event-invite--sunset .event-invite-title {
  color: #fffef8;
  text-shadow:
    0 2px 14px #00000080,
    0 0 28px #8b5a2b59;
}

.event-invite--sunset .event-date-row,
.event-invite--sunset .event-invite-time {
  color: #fffffffa;
  text-shadow:
    0 1px 10px #00000073,
    0 0 20px #0003;
}

.event-invite--sunset .event-date-row .event-date-bar {
  opacity: 0.65;
}

.event-invite--sunset .event-invite-overlay {
  background: linear-gradient(180deg, rgba(16, 10, 5, 0.42) 0%, rgba(16, 10, 5, 0.16) 32%, transparent 58%);
}

.evt-details {
  border: none;
  border-top: 1px solid var(--border);
  width: 100%;
  box-shadow: none;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0;
  margin: 0;
  padding: 1.5rem 1.4rem;
}

.evt-details:empty {
  display: none;
}

.evt-tagline {
  color: var(--text-mid);
  text-align: center;
  white-space: pre-line;
  text-wrap: pretty;
  margin: 0 0 1rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.6;
  display: block;
}

.evt-tagline:empty {
  display: none;
}

.evt-tagline:empty+.evt-dresscode,
.evt-tagline:empty+.evt-venue {
  margin-top: 0;
}

.evt-dresscode {
  text-align: center;
  border-bottom: 1px dashed var(--border);
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  display: flex;
}

.evt-dresscode.no-venue {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.evt-dresscode:empty,
.evt-dresscode.is-empty {
  display: none;
}

.evt-dresscode-lbl {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
}

.evt-dresscode-names {
  color: var(--text-dark);
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
}

.evt-dresscode-note {
  color: var(--text-light);
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 0.85rem;
  font-style: italic;
}

.evt-dresscode-note:empty {
  display: none;
}

.evt-venue {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  display: flex;
}

.evt-venue:empty {
  display: none;
}

.evt-venue-name {
  color: var(--text-dark);
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
}

.evt-venue-name:empty {
  display: none;
}

.evt-venue-addr {
  color: var(--text-light);
  max-width: 360px;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
}

.evt-dir-btn {
  background: var(--terracotta);
  color: #fff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 9999px;
  align-items: center;
  gap: 6px;
  margin-top: 0.25rem;
  padding: 0.55rem 1.25rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
}

.evt-dir-btn:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #c85a3247;
}

.evt-dir-btn svg {
  width: 14px;
  height: 14px;
}

.events-timeline-container {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.events-timeline-container .timeline-section {
  color: #f8f3ea;
  box-sizing: border-box;
  background: linear-gradient(#132c3a 0%, #0d222e 100%);
  padding: 4.5rem 1.5rem 5.5rem;
  position: relative;
}

.timeline-heading {
  text-align: center;
  z-index: 2;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.25rem;
  display: flex;
  position: relative;
}

.timeline-heading .section-eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e2c28d;
  margin-bottom: 0.85rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 500;
}

.timeline-heading h2 {
  color: #f4dfb8;
  text-shadow: 0 2px 18px #0006;
  margin: 0;
  padding-bottom: 0.25rem;
  font-family:
    Great Vibes,
    cursive;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 400;
  line-height: 1.25;
}

.timeline-flourish {
  opacity: 0.85;
  justify-content: center;
  margin: 0.6rem auto 0;
  display: flex;
}

.timeline-wrap {
  max-width: 580px;
  margin: 2.5rem auto 0;
  padding: 1rem 0;
  position: relative;
}

.timeline-spine {
  background: linear-gradient(#0000, #e2c28d8c 8% 92%, #0000);
  width: 1.5px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32%;
  transform: translate(-50%);
}

.timeline-flower {
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px #0000008c);
  will-change: top;
  width: 42px;
  height: 42px;
  transition: top 0.15s ease-out;
  position: absolute;
  top: 0;
  left: 32%;
  transform: translate(-50%, -50%);
}

.timeline-flower svg {
  transform-origin: 50%;
  transform-box: fill-box;
  width: 100%;
  height: 100%;
  animation: 16s linear infinite flowerSpin;
  display: block;
}

.timeline-day-block {
  margin-bottom: 3.5rem;
  position: relative;
}

.timeline-day-block:last-child {
  margin-bottom: 1rem;
}

.day-marker {
  text-align: center;
  z-index: 2;
  margin: 2rem 0 1.75rem;
  position: relative;
}

.day-marker .day-label {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e2c28d;
  margin: 0 0 0.25rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

.day-marker .day-title {
  color: #fff;
  letter-spacing: 0.03em;
  margin: 0 0 0.2rem;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 500;
}

.day-marker .day-date {
  letter-spacing: 0.15em;
  color: #f8f3eaa6;
  margin: 0;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.72rem;
}

.timeline-row {
  align-items: flex-start;
  margin-bottom: 2rem;
  display: flex;
  position: relative;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.t-time {
  text-align: right;
  box-sizing: border-box;
  flex-shrink: 0;
  width: 32%;
  padding-top: 0.15rem;
  padding-right: 1.5rem;
}

.t-time span {
  letter-spacing: 0.06em;
  color: #fff;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  display: block;
}

.t-time small {
  letter-spacing: 0.12em;
  color: #e2c28d;
  text-transform: uppercase;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  display: block;
}

.t-dot {
  z-index: 3;
  background: #e2c28d;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  top: 0.45rem;
  left: 32%;
  transform: translate(-50%);
  box-shadow: 0 0 10px #e2c28d99;
}

.t-event {
  box-sizing: border-box;
  flex: 1;
  padding-left: 1.5rem;
}

.t-event h4 {
  color: #fff;
  margin: 0 0 0.3rem;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.t-event .t-event-sub {
  color: #f8f3eac7;
  margin: 0 0 0.4rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
}

.t-event .timeline-item-venue {
  letter-spacing: 0.08em;
  color: #e2c28d;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.72rem;
}

.t-event .timeline-item-dress {
  color: #f8f3eaa6;
  margin: 0 0 0.45rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 0.88rem;
  font-style: italic;
}

.timeline-map-btn {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e2c28d;
  background: #e2c28d14;
  border: 1px solid #e2c28d66;
  border-radius: 20px;
  margin-top: 0.3rem;
  padding: 0.28rem 0.85rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.6rem;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-block;
}

.timeline-map-btn:hover {
  color: #0e2a38;
  background: #e2c28d;
  border-color: #e2c28d;
}

@media (max-width: 580px) {
  .timeline-spine {
    left: 24%;
  }

  .timeline-flower {
    width: 36px;
    height: 36px;
    left: 24%;
  }

  .t-time {
    width: 24%;
    padding-right: 1rem;
  }

  .t-dot {
    left: 24%;
  }

  .t-event {
    padding-left: 1.1rem;
  }
}

#venue-section,
.venue-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  flex-direction: column;
  align-items: center;
  padding: 5.5rem 1.5rem 4rem;
  display: flex;
  position: relative;
}

.venue-header {
  text-align: center;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
  display: flex;
}

.venue-header .section-eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

.venue-header .section-heading {
  margin: 0;
  padding-bottom: 0.4rem;
  line-height: 1.25;
}

.venue-header.revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.venue-card {
  background: var(--white);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-warm);
  text-align: center;
  border-radius: 1.5rem;
  transition:
    transform 0.4s,
    box-shadow 0.4s;
  overflow: hidden;
}

.venue-card.revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.venue-card:hover {
  box-shadow:
    var(--shadow-warm),
    0 12px 40px #2c73821f;
  transform: translateY(-3px);
}

.venue-card-band {
  background: linear-gradient(to right,
      var(--terra-light),
      var(--gold-light),
      var(--coral-light),
      var(--terra-light));
  height: 3px;
}

.venue-img-wrap {
  aspect-ratio: 16/10;
  background: var(--sea-mist);
  width: 100%;
  overflow: hidden;
}

.venue-img-wrap img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  display: block;
}

.venue-card:hover .venue-img-wrap img {
  transform: scale(1.04);
}

.venue-content {
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.75rem 2.5rem;
  display: flex;
}

.venue-name {
  color: var(--text-dark);
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 600;
}

.venue-tagline {
  color: var(--terracotta);
  margin-bottom: 0.85rem;
  font-family:
    Great Vibes,
    cursive;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
}

.venue-address {
  color: var(--text-mid);
  white-space: pre-line;
  max-width: 360px;
  margin-bottom: 1.6rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
}

.venue-btn {
  background: var(--terracotta);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 999px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.62rem;
  text-decoration: none;
  transition:
    background 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  display: inline-flex;
  box-shadow: 0 4px 18px #2c738240;
  color: var(--white) !important;
}

.venue-btn:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px #16505e52;
  color: var(--white) !important;
}

#rsvp-section,
.rsvp-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 5.5rem 1.5rem 6rem;
}

.rsvp-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.rsvp-header {
  text-align: center;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.25rem;
  padding: 0 1rem;
  display: flex;
}

.rsvp-intro {
  color: var(--text-mid);
  text-align: center;
  max-width: 520px;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif;
  font-size: clamp(1.02rem, 3vw, 1.18rem);
  font-style: italic;
  line-height: 1.55;
}

.rsvp-external-note {
  color: var(--text-mid);
  text-align: center;
  opacity: 0.9;
  margin-bottom: 1.75rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 0.95rem;
  font-style: italic;
}

.rsvp-form {
  width: 100%;
}

.rsvp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.75rem;
  transition:
    opacity 0.3s,
    border-color 0.3s;
  box-shadow: 0 4px 24px #1c333a0d;
}

.rsvp-card-title {
  color: var(--terracotta);
  margin-bottom: 0.65rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
}

#rsvp-section .field-label {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.35rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.58rem;
  display: block;
}

#rsvp-section .field-input,
#rsvp-section select.field-input,
#rsvp-section button.field-input,
#rsvp-section .custom-dropdown-trigger {
  border: 0;
  border-bottom: 1.5px solid var(--border);
  width: 100%;
  color: var(--text-dark);
  box-shadow: none;
  background: 0 0;
  border-radius: 0;
  outline: none;
  padding: 0.65rem 0.15rem 0.55rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.05rem;
  transition: border-color 0.2s;
}

#rsvp-section .field-input::placeholder {
  color: var(--text-light);
  opacity: 0.75;
}

#rsvp-section .field-input:focus,
#rsvp-section select.field-input:focus,
#rsvp-section button.field-input:focus,
#rsvp-section .custom-dropdown-trigger:focus,
#rsvp-section .custom-dropdown-trigger[aria-expanded="true"] {
  border-bottom-color: var(--terracotta);
}

#rsvp-section .custom-dropdown-wrap {
  width: 100%;
  position: relative;
}

#rsvp-section .custom-dropdown-menu {
  background: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  z-index: 9999 !important;
  border-radius: 1rem !important;
  padding: 0.5rem !important;
  font-family:
    Cormorant Garamond,
    serif !important;
  box-shadow: 0 16px 36px #1c333a24 !important;
}

#rsvp-section .custom-dropdown-item {
  color: var(--text-mid) !important;
  border-radius: 0.65rem !important;
  padding: 0.75rem 1rem !important;
  font-family:
    Cormorant Garamond,
    serif !important;
  font-size: 1.05rem !important;
  transition: all 0.2s !important;
}

#rsvp-section .custom-dropdown-item:hover {
  background: var(--cream) !important;
  color: var(--terracotta) !important;
}

#rsvp-section .custom-dropdown-item.selected {
  color: var(--terra-dark) !important;
  background: #2c73821f !important;
  font-weight: 600 !important;
}

#rsvp-section .field-textarea {
  background: var(--cream);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text-dark);
  resize: vertical;
  min-height: 5.5rem;
  box-shadow: none;
  border-radius: 0.75rem;
  outline: none;
  padding: 0.85rem 1rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1rem;
  line-height: 1.55;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  display: block;
}

#rsvp-section .field-textarea::placeholder {
  color: var(--text-light);
  opacity: 0.75;
}

#rsvp-section .field-textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px #2c73821f;
}

#rsvp-section .field-group {
  margin-bottom: 1.25rem;
}

#rsvp-section .radio-pill-row {
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  display: flex;
}

#rsvp-section .radio-pill {
  cursor: pointer;
  border: 1.5px solid var(--border);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  width: 100%;
  color: var(--text-mid);
  background: var(--white);
  text-align: center;
  border-radius: 9999px;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.25rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.68rem;
  transition: all 0.25s;
  display: flex;
  position: relative;
}

#rsvp-section .radio-pill input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

#rsvp-section .radio-pill:hover {
  border-color: var(--terracotta);
  color: var(--terra-dark);
}

#rsvp-section .radio-pill:has(input:checked) {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px #2c738240;
}

#rsvp-section .checkbox-row {
  flex-direction: column;
  gap: 0.65rem;
  display: flex;
}

#rsvp-section .checkbox-pill {
  border: 1.5px solid var(--border);
  cursor: pointer;
  color: var(--text-mid);
  text-align: left;
  background: var(--white);
  border-radius: 0.85rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.05rem;
  transition: all 0.25s;
  display: flex;
}

#rsvp-section .checkbox-pill:hover {
  border-color: var(--terracotta);
}

#rsvp-section .checkbox-pill input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
}

#rsvp-section .checkbox-pill:has(input:checked) {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

#rsvp-section .checkbox-pill:has(input:checked) small {
  color: #ffffffd9;
}

#rsvp-section .checkbox-date {
  letter-spacing: 0.1em;
  opacity: 0.75;
  text-transform: uppercase;
  margin-top: 0.2rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.65rem;
  display: block;
}

#rsvp-section .submit-btn {
  background: linear-gradient(135deg, var(--terracotta), var(--terra-dark));
  color: #fff;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.1rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.68rem;
  transition: all 0.3s;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px #2c73824d;
}

#rsvp-section .submit-btn:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px #2c738266;
}

#rsvp-section .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

#rsvp-modal,
.rsvp-modal {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 9000;
  background: #0e262ca6;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  display: none;
  position: fixed;
  inset: 0;
}

#rsvp-modal.open,
.rsvp-modal.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  text-align: center;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 360px;
  padding: 2.5rem 2rem 2rem;
  animation: 0.5s cubic-bezier(0.16, 1, 0.3, 1) both modalIn;
  position: relative;
  box-shadow: 0 30px 80px #00000040;
}

@keyframes modalIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-icon-ring {
  background: var(--sea-mist);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  display: flex;
}

.modal-title {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.6rem;
  font-weight: 600;
}

.modal-msg {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  font-family:
    Cormorant Garamond,
    serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
}

.modal-close-btn {
  background: var(--terracotta);
  color: #fff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.68rem;
  transition:
    background 0.25s,
    transform 0.25s;
}

.modal-close-btn:hover {
  background: var(--terra-dark);
  transform: translateY(-1px);
}

#shore-footer,
.shore-footer {
  background: linear-gradient(180deg,
      var(--cream-2) 0%,
      #efe2cc 40%,
      var(--sand-deep) 100%);
  contain: layout paint;
  height: 420px;
  position: relative;
  overflow: hidden;
}

#shore-footer:before,
.shore-footer:before {
  content: "";
  opacity: 0.7;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 30%, #ffffff80 0 1px, #0000 1.5px),
    radial-gradient(circle at 64% 18%, #b49e7c59 0 1px, #0000 1.5px),
    radial-gradient(circle at 33% 62%, #b49e7c4d 0 1px, #0000 1.5px),
    radial-gradient(circle at 82% 48%, #ffffff73 0 1px, #0000 1.5px);
  background-size:
    90px 90px,
    130px 130px,
    110px 110px,
    70px 70px;
  position: absolute;
  inset: 0;
}

.sf-stage {
  z-index: 2;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0 0 90px;
}

.sf-text {
  text-align: center;
  filter: drop-shadow(0 1px #ffffff59) drop-shadow(0 2px 1px #16505e2e);
  clip-path: inset(0 0 100%);
  opacity: 0;
  width: 100%;
  padding: 1.75rem 1.5rem;
}

.sf-names {
  color: #103c46;
  padding: 0.15em 0;
  font-family:
    Great Vibes,
    cursive;
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  line-height: 1.25;
}

.sf-sub {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5a6e72;
  margin-top: 0.85rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.58rem;
}

.sf-credit {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a6e72;
  margin-top: 1.35rem;
  font-family:
    Tenor Sans,
    sans-serif;
  font-size: 0.68rem;
}

.sf-credit a {
  color: #103c46;
  border-bottom: 1px solid #103c4652;
  padding-bottom: 2px;
  text-decoration: none;
  transition:
    color 0.3s,
    border-color 0.3s;
}

.sf-credit a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.sf-credit .hrt {
  color: var(--coral);
}

.sf-wash {
  z-index: 3;
  pointer-events: none;
  will-change: transform;
  width: 112%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: -6%;
  right: -6%;
  transform: translateY(100%);
}

.sf-wash-body {
  background: linear-gradient(#8fc3cdd1 0%, #2c7382e6 55%, #16505ef0 100%);
  position: absolute;
  inset: 26px 0 0;
}

.sf-wash-edge {
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: 420px 30px;
  height: 30px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.sf-wash-foam {
  opacity: 0.9;
  background-repeat: repeat-x;
  background-size: 300px 22px;
  height: 22px;
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
}

#shore-footer.revealed .sf-wash,
.shore-footer.revealed .sf-wash {
  animation: 4.2s cubic-bezier(0.38, 0, 0.35, 1) forwards sfWashOnce;
}

@keyframes sfWashOnce {
  0% {
    transform: translateY(100%);
  }

  32% {
    transform: translateY(22%);
  }

  48% {
    transform: translateY(22%);
  }

  to {
    transform: translateY(88%);
  }
}

#shore-footer.revealed .sf-text,
.shore-footer.revealed .sf-text {
  animation: 4.2s forwards sfTextOnce;
}

@keyframes sfTextOnce {

  0%,
  48% {
    clip-path: inset(0 0 100%);
    opacity: 0;
  }

  56% {
    opacity: 1;
  }

  85%,
  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

.sf-shore {
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  height: 90px;
  transition: opacity 1.2s 3.6s;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

#shore-footer.revealed .sf-shore,
.shore-footer.revealed .sf-shore {
  opacity: 1;
}

.sf-shore-back,
.sf-shore-front {
  background-position: bottom;
  background-repeat: repeat-x;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.sf-shore-back {
  opacity: 0.7;
  background-size: 600px 40px;
  animation: 11s linear infinite shoreDrift;
}

.sf-shore-front {
  background-size: 600px 40px;
  animation:
    7s linear infinite reverse shoreDrift,
    5s ease-in-out infinite shoreLap;
}

@keyframes shoreDrift {
  0% {
    background-position-x: 0;
  }

  to {
    background-position-x: 600px;
  }
}

@keyframes shoreLap {

  0%,
  to {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: 1s linear infinite spin;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: 0.8s both fadeIn;
}

@font-face {
  font-family: mussicaSwash;
  src: url("fonts/MussicaSwash.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: mussicaSwash Fallback;
  src: local(Arial);
  ascent-override: 116.26%;
  descent-override: 95.48%;
  line-gap-override: 0.75%;
  size-adjust: 93.84%;
}

.mussicaswash_cbf5cd0e-module__10bB8G__className {
  font-family:
    mussicaSwash,
    mussicaSwash Fallback;
  font-weight: 400;
}

.mussicaswash_cbf5cd0e-module__10bB8G__variable {
  --font-mussica-swash: "mussicaSwash", "mussicaSwash Fallback";
}

#rsvp-section,
.rsvp-section {
  display: none !important;
}

.couple-qual,
.couple-name small,
.couple-name .couple-qual,
.groom-name .couple-qual,
.bride-name .couple-qual {
  font-family: 'Cormorant Garamond', 'Cinzel Decorative', Georgia, serif !important;
  font-style: normal !important;
  font-size: 0.44em !important;
  font-weight: 700 !important;
  display: inline-block !important;
  margin-left: 0.4rem !important;
  vertical-align: 0.12em !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  background: linear-gradient(135deg, #1f3022 0%, #8a6a3b 30%, #d4af37 55%, #8a6a3b 80%, #1f3022 100%) 0 0/200% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #caa257 !important;
  text-shadow: 0 1px 1px rgba(212, 175, 55, 0.2) !important;
  line-height: 1 !important;
}

/* Embedded Engagement Page Slide */
.engagement-page-slide {
  background: radial-gradient(120% 60% at 50% 0%, #deedf070 0%, #fbf7f000 62%), linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.eng-rings-scene {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 1.15rem;
}
.eng-rings-photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #fcedc5, #caa257 50%, #fcedc5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(228, 200, 146, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eng-rings-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 74%;
  display: block;
}
.eng-rings-scene .eng-ring {
  border: 2.5px solid var(--gold-light);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 14px rgba(228, 200, 146, 0.45);
}
.eng-rings-scene .eng-ring-l { left: 16px; }
.eng-rings-scene .eng-ring-r { right: 16px; }
.eng-rings-scene .eng-sparkle {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #fff;
  box-shadow: 0 0 10px 2px #ffe29a;
}
.eng-badge-pill {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 160, 99, 0.12);
  border: 1px solid rgba(201, 160, 99, 0.35);
  padding: 0.35rem 1.15rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.85rem;
}
.eng-card-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.6rem, 8vw, 3.8rem);
  color: var(--terracotta);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}
.eng-meta-highlight {
  margin-top: 1.85rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(201, 160, 99, 0.4);
  width: 100%;
}
.eng-date-text {
  font-family: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3.8vw, 1.6rem);
  color: var(--terracotta);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.eng-time-text {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
  font-weight: 600;
}
.eng-venue-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-mid);
  margin-top: 0.45rem;
}
.eng-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.eng-view-btn {
  background: transparent !important;
  color: var(--terracotta) !important;
  border: 1.5px solid var(--terracotta) !important;
  box-shadow: none !important;
}
.eng-view-btn:hover {
  background: var(--terracotta) !important;
  color: #fff !important;
}
#engagement-card-section, .engagement-page-slide { display: none !important; }
