/* ==========================================================================
   IMRPIME — Royal Masquerade Invitation
   Custom stylesheet layered on top of Tailwind utilities.
   ========================================================================== */

@font-face {
  font-family: 'Gallient';
  src: url('../gallient/Gallient.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aspex';
  src: url('../Aspex.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../Gotham/Gotham-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../Gotham/Gotham-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../Gotham/Gotham-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../Gotham/Gotham-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --royal-blue: #121835;
  --deep-navy: #0D1126;
  --midnight: #080A16;
  --gold: #B4A38A;
  --gold-light: #D6CBB7;
  --gold-dark: #8C7C62;
  --ivory: #F5EEDF;
  --champagne: #D9C3A0;
  --silver: #B8A99A;
  --blush: #B9695F;
  --blush-light: #E3B7AC;
  --blush-dark: #6B2E28;
  --sage: #7C8863;
  --sage-light: #A8B58C;

  --font-display: 'Gallient', 'Cinzel', 'Playfair Display', serif;
  --font-eyebrow: 'Aspex', 'Cinzel', sans-serif;
  --font-script: 'Cormorant Garamond', serif;
  --font-body: 'Gotham', 'Inter', 'Manrope', sans-serif;

  --ease-royal: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 30px 80px -20px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(180, 163, 138, 0.15) inset;
}

* { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-height: 100svh;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--gold); color: var(--midnight); }

/* Accessible focus ring, gold + always visible via keyboard */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--gold);
  color: var(--midnight);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.2s var(--ease-royal);
}
.skip-link:focus { top: 1rem; }

.font-cinzel { font-family: var(--font-display); }

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow--center { text-align: center; }

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.section-heading--center { text-align: center; }

.ornament-divider { display: flex; justify-content: center; margin: 1.75rem 0; }
.ornament-divider img { width: 44px; max-width: 60vw; opacity: 0.9; }

.section-divider {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1rem;
}
.section-divider img { width: 56px; max-width: 80vw; }

/* ==========================================================================
   Ambient background
   ========================================================================== */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% -10%, var(--royal-blue) 0%, var(--deep-navy) 45%, var(--midnight) 100%);
}

.curtain-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  will-change: opacity;
}

.ambient-velvet {
  position: absolute;
  inset: 0;
  background-image: url('../assets/textures/velvet-damask.svg');
  background-size: 220px 220px;
  opacity: 0.05;
  mix-blend-mode: screen;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.4;
  will-change: transform, opacity;
}
.ambient-glow--one {
  width: 55vw;
  height: 55vw;
  max-width: 620px;
  max-height: 620px;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(180, 163, 138, 0.42) 0%, transparent 70%);
  animation: driftGlow 22s ease-in-out infinite alternate;
}
.ambient-glow--two {
  width: 50vw;
  height: 50vw;
  max-width: 560px;
  max-height: 560px;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(18, 24, 53, 0.55) 0%, transparent 70%);
  animation: driftGlow 26s ease-in-out infinite alternate-reverse;
}

@keyframes driftGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, 3%) scale(1.08); }
}

.ambient-mist {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(180, 163, 138, 0.04) 50%, transparent 100%);
  opacity: 0.6;
}

@media (max-width: 640px) {
  .curtain-video { opacity: 0.4; }
  .ambient-glow { animation: none; filter: blur(32px); }
}

.gold-dust-field {
  position: absolute;
  inset: 0;
}
.gold-dust {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 6px 1px rgba(214, 203, 183, 0.6);
  opacity: 0;
  animation: floatDust linear infinite;
}

@keyframes floatDust {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { transform: translate3d(var(--dust-x, 20px), -100vh, 0); opacity: 0; }
}

.petal-field {
  position: absolute;
  inset: 0;
}
.petal {
  position: absolute;
  top: -5%;
  width: 9px;
  height: 7px;
  border-radius: 50% 0 50% 50%;
  background: linear-gradient(135deg, var(--blush-light), var(--blush));
  opacity: 0;
  animation: fallPetal linear infinite;
}

@keyframes fallPetal {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.7; }
  50%  { transform: translate3d(calc(var(--petal-x, -30px) * 0.45 + var(--petal-sway, 24px)), 54vh, 0) rotate(calc(var(--petal-r, 220deg) * 0.5)); }
  92%  { opacity: 0.45; }
  100% { transform: translate3d(var(--petal-x, -30px), 108vh, 0) rotate(var(--petal-r, 220deg)); opacity: 0; }
}

.flower {
  position: absolute;
  top: -6%;
  width: 14px;
  height: 14px;
  background: url('../assets/ornaments/floating-flower.svg') no-repeat center / contain;
  opacity: 0;
  animation: fallPetal linear infinite;
}

/* ==========================================================================
   Envelope Gate
   ========================================================================== */

.envelope-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% 20%, var(--royal-blue) 0%, var(--midnight) 75%);
  transition: opacity 1s var(--ease-royal), visibility 1s var(--ease-royal);
}

.envelope-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
}

.envelope-eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}

.envelope {
  position: relative;
  width: min(90vw, 420px);
  aspect-ratio: 1080 / 670;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.envelope:disabled { cursor: default; }

.envelope-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, transparent 75%);
  filter: blur(6px);
}

.envelope-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.shimmer-burst {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(214, 203, 183, 0.95) 0%, rgba(180, 163, 138, 0.5) 35%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  z-index: 101;
}

.envelope-cta {
  font-family: var(--font-script);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--champagne);
  text-align: center;
  animation: pulseCta 2.6s ease-in-out infinite;
}
.cta-desktop { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cta-desktop { display: inline; }
  .cta-mobile { display: none; }
}

@keyframes pulseCta {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Main content
   ========================================================================== */

.main-content {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.main-content[inert] { display: none; }

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 10, 22, 0.75);
  border: 1px solid rgba(180, 163, 138, 0.4);
  color: var(--gold);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-royal), transform 0.5s var(--ease-royal), border-color 0.3s ease, background 0.3s ease;
}
.music-toggle.is-visible { opacity: 1; transform: translateY(0); }
.music-toggle:hover { border-color: rgba(180, 163, 138, 0.8); background: rgba(8, 10, 22, 0.9); }
.music-toggle[aria-pressed="false"] { color: var(--silver); opacity: 0.6; }
.music-toggle[aria-pressed="false"].is-visible { opacity: 0.6; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(180deg, rgba(8, 10, 22, 0.92) 0%, rgba(8, 10, 22, 0) 100%);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-royal), background 0.4s ease;
}
.site-header.is-visible { transform: translateY(0); }
.site-header.is-scrolled { background: rgba(8, 10, 22, 0.85); }

.site-header__mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gold-light);
}
.site-header__nav {
  display: none;
  gap: 1.75rem;
}
.site-header__nav a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.site-header__nav a:hover { opacity: 1; color: var(--gold); }

@media (min-width: 640px) {
  .site-header__nav { display: flex; }
}

/* ==========================================================================
   Hero / Invitation Card
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.hero__frame {
  position: relative;
  width: min(100%, 620px);
}

.hero__content { text-align: center; position: relative; z-index: 1; }

.hero__flowers-card {
  position: absolute;
  bottom: 3%;
  width: 62px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.hero__flowers-card--right { right: 4%; }
.hero__flowers-card--left { left: 4%; transform: scaleX(-1); }

@media (min-width: 480px) {
  .hero__flowers-card { width: 78px; }
}

@media (min-width: 900px) {
  .hero__flowers-card { width: 96px; opacity: 0.45; }
}

.hero__crest { margin: 0 auto 1.5rem; }

.hero__greeting-card-wrap {
  position: relative;
  width: 85%;
  max-width: 620px;
  margin: 0 auto;
}

.hero__greeting-card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero__greeting-card-scroll {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  line-height: 1.08;
  color: var(--ivory);
  text-shadow: 0 2px 24px rgba(180, 163, 138, 0.25);
}

.hero__subhead {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--champagne);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hero__support {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--silver);
  letter-spacing: 0.02em;
  max-width: 32ch;
  margin: 0 auto 2.25rem;
}

.corner {
  position: absolute;
  width: 64px;
  height: 64px;
  opacity: 0.9;
}
.corner--tl { top: -1px; left: -1px; }
.corner--tr { top: -1px; right: -1px; transform: scaleX(-1); }
.corner--bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.corner--br { bottom: -1px; right: -1px; transform: scale(-1, -1); }

@media (min-width: 768px) {
  .corner { width: 90px; height: 90px; }
}

.hero__mask, .hero__flowers {
  position: absolute;
  opacity: 0.24;
  pointer-events: none;
  display: none;
}
@media (min-width: 900px) {
  .hero__mask, .hero__flowers { display: block; }
  .hero__mask--left { width: 190px; left: 3%; top: 10%; }
  .hero__flowers--left { width: 110px; left: 6%; bottom: 4%; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  min-height: 44px;
  justify-content: center;
  transition: color 0.2s ease;
}
.btn-scroll:hover { color: var(--gold); }
.btn-scroll svg { animation: bobArrow 2.2s ease-in-out infinite; }
@keyframes bobArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  box-shadow: 0 12px 30px -8px rgba(180, 163, 138, 0.55);
  cursor: pointer;
  transition: transform 0.35s var(--ease-royal), box-shadow 0.35s var(--ease-royal);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(180, 163, 138, 0.7); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: none;
  border: 1px solid rgba(180, 163, 138, 0.55);
  color: var(--champagne);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn-outline:hover {
  background: rgba(180, 163, 138, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-outline svg { color: var(--gold); flex-shrink: 0; }

/* ==========================================================================
   Reveal sections (generic scroll-in wrapper)
   ========================================================================== */

.reveal-section { position: relative; padding: 3rem 1.25rem; max-width: 1100px; margin: 0 auto; }

/* ==========================================================================
   Story section
   ========================================================================== */

.story { text-align: center; }
.story__ornament {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.story__content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.story__lede {
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: var(--champagne);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.story__body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--silver);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.story__bottle { width: 140px; margin: 0 auto; opacity: 0.9; }

/* ==========================================================================
   Info cards (event details)
   ========================================================================== */

.details__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .details__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .details__grid { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(18, 24, 53, 0.4) 0%, rgba(13, 17, 38, 0.55) 100%);
  border: 1px solid rgba(180, 163, 138, 0.25);
  border-radius: 6px;
  transition: transform 0.4s var(--ease-royal), border-color 0.4s var(--ease-royal), box-shadow 0.4s var(--ease-royal);
}
.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(180, 163, 138, 0.6);
  box-shadow: 0 20px 40px -16px rgba(180, 163, 138, 0.3);
}
.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1rem;
}
.info-card__icon--mask {
  height: 34px;
  transition: transform 0.4s var(--ease-royal);
}
.info-card--mask:hover .info-card__icon--mask { transform: rotate(-4deg) scale(1.05); }
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--ivory);
  margin-bottom: 0.6rem;
}
.info-card p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--silver);
  line-height: 1.6;
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline__list {
  position: relative;
  margin-top: 3rem;
  list-style: none;
  padding-left: 1.75rem;
}
.timeline__list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  opacity: 0.5;
}

.timeline__item {
  position: relative;
  margin-bottom: 2.25rem;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--midnight);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(180, 163, 138, 0.12);
}

.timeline__card {
  background: linear-gradient(180deg, rgba(18, 24, 53, 0.35) 0%, rgba(13, 17, 38, 0.5) 100%);
  border: 1px solid rgba(180, 163, 138, 0.2);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}
.timeline__time {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.timeline__card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ivory);
  margin-bottom: 0.4rem;
}
.timeline__card p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.65;
}

@media (min-width: 800px) {
  .timeline__list { padding-left: 0; margin-left: auto; margin-right: auto; max-width: 720px; }
  .timeline__list::before { left: 50%; transform: translateX(-50%); }
  .timeline__item { width: 50%; padding-right: 3rem; }
  .timeline__item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 3rem; }
  .timeline__marker { left: auto; right: -3.55rem; }
  .timeline__item:nth-child(even) .timeline__marker { left: -3.55rem; right: auto; }
}

/* ==========================================================================
   Showcase — The Three Fragrances
   ========================================================================== */

.showcase-trio { text-align: center; }
.showcase-trio__intro {
  font-family: var(--font-script);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--champagne);
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.6;
}

.trio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 860px) {
  .trio-grid { grid-template-columns: repeat(3, 1fr); align-items: end; gap: 1.75rem; }
}

.trio-card {
  position: relative;
  padding: 2rem 1.25rem 2.25rem;
  background: linear-gradient(180deg, rgba(18, 24, 53, 0.4) 0%, rgba(13, 17, 38, 0.55) 100%);
  border: 1px solid rgba(180, 163, 138, 0.22);
  border-radius: 8px;
  transition: transform 0.4s var(--ease-royal), border-color 0.4s var(--ease-royal), box-shadow 0.4s var(--ease-royal);
}
.trio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(180, 163, 138, 0.5);
  box-shadow: 0 24px 48px -20px rgba(180, 163, 138, 0.3);
}
.trio-card--feature {
  border-color: rgba(185, 105, 95, 0.45);
  background: linear-gradient(180deg, rgba(107, 46, 40, 0.18) 0%, rgba(13, 17, 38, 0.6) 100%);
}
.trio-card--feature:hover {
  border-color: rgba(185, 105, 95, 0.75);
  box-shadow: 0 24px 48px -20px rgba(185, 105, 95, 0.4);
}
@media (min-width: 860px) {
  .trio-card--feature { padding-top: 2.75rem; padding-bottom: 3rem; }
}


.trio-card__visual {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.trio-card__bottle { width: 120px; position: relative; z-index: 1; }

.trio-card__mist {
  position: absolute;
  inset: -15%;
  filter: blur(18px);
  opacity: 0.65;
  border-radius: 50%;
}
.trio-card__mist--noir { background: radial-gradient(circle, rgba(168, 72, 58, 0.35) 0%, transparent 65%); }
.trio-card__mist--rose { background: radial-gradient(circle, rgba(185, 105, 95, 0.4) 0%, transparent 65%); }
.trio-card__mist--gold { background: radial-gradient(circle, rgba(180, 163, 138, 0.35) 0%, transparent 65%); }

.trio-card__petals span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50% 0;
  background: var(--blush-light);
  opacity: 0.55;
}
.trio-card__petals span:nth-child(1) { top: 8%; left: 12%; }
.trio-card__petals span:nth-child(2) { top: 25%; right: 8%; }
.trio-card__petals span:nth-child(3) { top: 65%; left: 6%; }
.trio-card__petals span:nth-child(4) { top: 78%; right: 15%; }
.trio-card__petals span:nth-child(5) { top: 42%; left: 48%; }

.trio-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ivory);
  margin-bottom: 0.35rem;
}
.trio-card__notes {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.trio-card--feature .trio-card__notes { color: var(--blush-light); }
.trio-card__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--silver);
  line-height: 1.7;
}

/* ==========================================================================
   Invite cards (RSVP / Contact)
   ========================================================================== */

.invite-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(18, 24, 53, 0.5) 0%, rgba(13, 17, 38, 0.6) 100%);
  border: 1px solid rgba(180, 163, 138, 0.3);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.rsvp__body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--silver);
  max-width: 42ch;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.rsvp__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.rsvp__actions > a, .rsvp__actions > button { width: 100%; }
@media (min-width: 560px) {
  .rsvp__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
  .rsvp__actions > a, .rsvp__actions > button { width: auto; }
}

.rsvp__note {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold-light);
  opacity: 0.85;
}

/* ==========================================================================
   RSVP confirmation modal
   ========================================================================== */

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-royal), visibility 0.35s var(--ease-royal);
}
.rsvp-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.rsvp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 11, 0.78);
  backdrop-filter: blur(3px);
  border: none;
  cursor: pointer;
}

.rsvp-modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 2.75rem 1.75rem 2.25rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(18, 24, 53, 0.96) 0%, rgba(8, 10, 22, 0.98) 100%);
  border: 1px solid rgba(180, 163, 138, 0.35);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ease-royal);
}
.rsvp-modal.is-open .rsvp-modal__panel { transform: translateY(0) scale(1); }

.rsvp-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(180, 163, 138, 0.3);
  border-radius: 50%;
  color: var(--gold-light);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.rsvp-modal__close:hover { border-color: var(--gold); color: var(--gold); }

.rsvp-modal__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ivory);
  margin-bottom: 0.6rem;
}

.rsvp-modal__lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.6;
  max-width: 34ch;
  margin: 0 auto 1.75rem;
}

.rsvp-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.rsvp-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.rsvp-modal__field span {
  font-family: var(--font-eyebrow);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}
@media (max-width: 640px) {
  .rsvp-modal__field span {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
}
.rsvp-modal__field input {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: rgba(6, 15, 46, 0.25);
  border: 1px solid rgba(180, 163, 138, 0.35);
  border-radius: 3px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.rsvp-modal__field input::placeholder { color: rgba(184, 169, 154, 0.6); }
.rsvp-modal__field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(6, 15, 46, 0.4);
}
.rsvp-modal__error {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #E29A9A;
  margin: -0.4rem 0 0;
}

.rsvp-modal__submit { margin-top: 0.4rem; position: relative; }
.rsvp-modal__submit:disabled { cursor: not-allowed; pointer-events: none; opacity: 0.85; }
.rsvp-modal__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6, 15, 46, 0.3);
  border-top-color: var(--midnight);
  border-radius: 50%;
}
.rsvp-modal__submit.is-loading .rsvp-modal__submit-text { visibility: hidden; }
.rsvp-modal__submit.is-loading .rsvp-modal__spinner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  animation: rsvpSpin 0.7s linear infinite;
}
@keyframes rsvpSpin {
  to { transform: rotate(360deg); }
}

.rsvp-modal__success { display: flex; flex-direction: column; align-items: center; }
.rsvp-modal__success[hidden] { display: none; }
.rsvp-modal__success-mark {
  color: var(--gold);
  margin-bottom: 1rem;
}
.rsvp-modal__success .btn-outline { margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .rsvp-modal, .rsvp-modal__panel { transition: none; }
  .rsvp-modal__spinner { animation: none; }
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}
.contact__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ivory);
}
.contact__list a { color: var(--champagne); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.contact__list a:hover { color: var(--gold); }
.contact__icon { color: var(--gold); flex-shrink: 0; }

/* ==========================================================================
   Location
   ========================================================================== */

.location { position: relative; text-align: center; }
.location__ornament {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  opacity: 0.14;
  pointer-events: none;
}
.location__content { position: relative; z-index: 1; }

.location__card {
  max-width: 520px;
  margin: 2.5rem auto 0;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(18, 24, 53, 0.4) 0%, rgba(13, 17, 38, 0.55) 100%);
  border: 1px solid rgba(180, 163, 138, 0.25);
  border-radius: 6px;
}
.location__icon { display: inline-flex; color: var(--gold); margin-bottom: 1rem; }
.location__card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}
.location__card p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--silver);
  margin-bottom: 1.75rem;
}
.location__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}
.location__actions > a { width: 100%; }
@media (min-width: 480px) {
  .location__actions { flex-direction: row; justify-content: center; flex-wrap: wrap; align-items: center; }
  .location__actions > a { width: auto; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--deep-navy) 100%);
  border-top: 1px solid rgba(180, 163, 138, 0.25);
}
.site-footer__banner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  aspect-ratio: 1920 / 1080;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.site-footer__banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}
.site-footer__content { position: relative; z-index: 1; width: 100%; }

.site-footer__logo,
.site-footer__quote,
.site-footer__divider,
.site-footer__social,
.site-footer__copyright {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .site-footer { padding: 3rem 1.5rem; }

  .site-footer__social-wrap {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
    margin: 1.5rem 0;
  }
  .site-footer__banner { width: calc(100% + 3rem); }

  .site-footer__social { gap: 1rem; margin-bottom: 0; }
  .site-footer__social a { width: 36px; height: 36px; }
  .site-footer__social a svg { width: 18px; height: 18px; }
}

.site-footer__logo { width: 180px; margin: 0 auto 1.5rem; opacity: 0.95; }
.site-footer__quote {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--champagne);
  max-width: 36ch;
  margin: 0 auto;
  line-height: 1.6;
}
.site-footer__divider { display: flex; justify-content: center; margin: 2rem 0; }
.site-footer__divider img { width: 44px; max-width: 60vw; }
.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-footer__social a {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(180, 163, 138, 0.3);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}
.site-footer__social a:hover { background: rgba(180, 163, 138, 0.12); transform: translateY(-3px); }
.site-footer__copyright {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--silver);
  opacity: 0.6;
  max-width: 42ch;
  margin: 0 auto;
}

/* ==========================================================================
   Scroll-reveal base state (GSAP toggles .is-visible)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-glow, .gold-dust, .petal, .flower, .btn-scroll svg, .envelope-cta { animation: none !important; }
  /* CSS alone can't stop a <video> from decoding/playing — script.js checks the same media
     query and calls .pause() on #curtain-video. This just hides it visually as a backstop. */
  .curtain-video { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Small-screen safety
   ========================================================================== */

@media (max-width: 380px) {
  .invite-card { padding: 2.25rem 1rem; }
}
