/* ============================================================================
   PREMIUM WEDDING INVITATION TEMPLATE  ·  style.css
   Design + layout + animations only. No customer content lives in this file.
   ----------------------------------------------------------------------------
   01 · Tokens & reset            08 · Events timeline
   02 · Typography & helpers                             
   03 · Ornaments & buttons       10 · Venue + countdown
   04 · Petals & decorations      11 · Final + footer
   05 · Opening cover             12 · Modal / music / toast
   06 · Navigation                13 · Reveal animations
   07 · Sections & hero/couple    14 · Responsive & reduced motion
   ==========================================================================*/

/* ---------------------------------------------------------------- 01 TOKENS */
:root {
  --maroon-900: #240509;
  --maroon-800: #3b0a12;
  --maroon-700: #571019;
  --red-600: #9b1526;
  --red-500: #c22133;
  --saffron: #f08b2a;
  --marigold: #ffb020;
  --gold-100: #fff4d2;
  --gold-200: #f7e3ab;
  --gold-300: #e8c878;
  --gold-400: #d4a24c;
  --gold-500: #b8832e;
  --gold-600: #8a5c18;
  --rose: #e4718f;
  --green: #1f6b4f;
  --peacock: #0e5c66;
  --cream: #fff8ec;
  --ink: #2a0a0e;

  --grad-gold: linear-gradient(180deg, #fff6dc 0%, #f4dda2 28%, #d9ab52 60%, #b9832c 100%);
  --grad-gold-line: linear-gradient(90deg, transparent, var(--gold-400) 18%, var(--gold-100) 50%, var(--gold-400) 82%, transparent);
  --shadow-soft: 0 18px 50px rgba(20, 3, 6, 0.45);
  --shadow-deep: 0 30px 80px rgba(16, 2, 5, 0.6);

  --font-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Pinyon Script", "Cormorant Garamond", cursive;
  --font-ui: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;

  --nav-h: 66px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  color: var(--cream);
  background: var(--maroon-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
  height: 100%;
}

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

/* The template toggles visibility with the [hidden] attribute — make sure it
   always beats the component display rules below. */
[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

::selection {
  background: var(--gold-400);
  color: var(--maroon-900);
}

/* ------------------------------------------------------ 02 TYPE & HELPERS */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 3;
}
.container--wide {
  width: min(1320px, 94vw);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-ui);
  font-size: clamp(0.66rem, 1.6vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.sec-head {
  text-align: center;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}

.sec-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.sec-note {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 244, 222, 0.6);
}

.script-accent {
  font-family: var(--font-script);
  color: var(--gold-200);
}

.ico {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* ------------------------------------------------- 03 ORNAMENTS & BUTTONS */
.divider {
  display: block;
  width: min(280px, 62vw);
  height: 26px;
  margin: 1rem auto;
  color: var(--gold-400);
  opacity: 0.95;
}

.ornament {
  display: block;
  color: var(--gold-300);
}
.ornament--mandala {
  width: clamp(72px, 16vw, 110px);
  height: clamp(72px, 16vw, 110px);
  margin: 0 auto 0.4rem;
  opacity: 0.85;
}
.ornament--ghost {
  opacity: 0.32;
}
.ornament--sm {
  width: 22px;
  height: 22px;
  margin-inline: auto;
}

.spin-slow {
  animation: spin 60s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--gold-400);
  opacity: 0.9;
  pointer-events: none;
}
.corner::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--gold-300);
  border-radius: 50%;
}
.corner--tl {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 10px;
}
.corner--tl::after {
  top: -3px;
  left: -3px;
}
.corner--tr {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 10px;
}
.corner--tr::after {
  top: -3px;
  right: -3px;
}
.corner--bl {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 10px;
}
.corner--bl::after {
  bottom: -3px;
  left: -3px;
}
.corner--br {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 10px;
}
.corner--br::after {
  bottom: -3px;
  right: -3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), color 0.35s;
}
.btn:active {
  transform: scale(0.97);
}

.btn--gold {
  color: #40160a;
  background: var(--grad-gold);
  box-shadow: 0 10px 28px rgba(184, 131, 46, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.75) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(212, 162, 76, 0.5);
}
.btn--gold:hover::after {
  transform: translateX(130%);
}

.btn--ghost {
  color: var(--gold-100);
  background: rgba(255, 244, 222, 0.06);
  border: 1px solid rgba(232, 200, 120, 0.55);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(232, 200, 120, 0.16);
  border-color: var(--gold-300);
  transform: translateY(-3px);
}

.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 0.92rem;
}

/* ------------------------------------------- 04 PETALS & FLOATING DECOR */
.petal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 210; /* above the cover, below lightbox/modal */
  opacity: 0.85;
}

.garland {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  z-index: 3;
  pointer-events: none;
}
.garland__rope {
  position: absolute;
  inset: 0 0 auto;
  height: 74px;
  background:
    radial-gradient(circle at 12px 8px, rgba(255, 176, 32, 0.95) 0 5px, transparent 6px),
    radial-gradient(circle at 30px 16px, rgba(212, 30, 46, 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 48px 6px, rgba(255, 248, 236, 0.9) 0 4px, transparent 5px);
  background-size: 60px 30px;
  background-repeat: repeat-x;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  opacity: 0.85;
}
.garland--dense .garland__rope {
  background-size: 44px 26px;
}
.hanging {
  position: absolute;
  top: 8px;
  color: var(--marigold);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}
.hanging svg {
  width: 30px;
  height: 42px;
  transform-origin: 50% 0;
}
.hanging--1 {
  left: 8%;
}
.hanging--2 {
  left: 50%;
}
.hanging--3 {
  right: 9%;
}
.swing {
  animation: swing 5.5s ease-in-out infinite;
}
.swing--slow {
  animation-duration: 7s;
  animation-delay: -1.4s;
}
.swing--slower {
  animation-duration: 8.5s;
  animation-delay: -2.8s;
}
@keyframes swing {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

.lamps {
  position: absolute;
  inset: auto 0 6%;
  display: flex;
  justify-content: space-between;
  padding-inline: clamp(12px, 5vw, 70px);
  pointer-events: none;
  z-index: 3;
}
.lamp {
  position: relative;
  display: block;
  width: 54px;
  height: 70px;
  color: var(--gold-300);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}
.lamp__body {
  width: 54px;
  height: 66px;
}
.lamp__flame {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 16px;
  height: 22px;
  margin-left: -8px;
  color: #ffce6a;
  filter: drop-shadow(0 0 14px rgba(255, 176, 32, 0.95));
  animation: flicker 2.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes flicker {
  0%,
  100% {
    transform: scale(1) rotate(-2deg);
    opacity: 1;
  }
  35% {
    transform: scale(1.12, 0.94) rotate(2deg);
    opacity: 0.9;
  }
  70% {
    transform: scale(0.94, 1.08) rotate(-1deg);
    opacity: 1;
  }
}

/* ------------------------------------------------------- 05 OPENING COVER */
.cover {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--maroon-900);
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.cover__bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: coverDrift 24s ease-in-out infinite alternate;
}
@keyframes coverDrift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(0, -1.6%, 0);
  }
}
.cover__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(40, 6, 12, 0.18) 0%, rgba(30, 4, 9, 0.72) 62%, rgba(20, 2, 6, 0.94) 100%),
    linear-gradient(180deg, rgba(36, 5, 9, 0.55), rgba(36, 5, 9, 0.15) 40%, rgba(30, 4, 9, 0.85));
}
.cover__glow {
  position: absolute;
  width: 120vmin;
  height: 120vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 80, 0.22), transparent 62%);
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.cover__doors {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}
.door {
  flex: 1;
  background:
    linear-gradient(180deg, rgba(88, 16, 24, 0.96), rgba(36, 5, 9, 0.98)),
    repeating-linear-gradient(90deg, rgba(212, 162, 76, 0.16) 0 2px, transparent 2px 26px);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.7);
  transform: translateX(0);
  transition: transform 1.25s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.4s ease;
  position: relative;
  opacity: 0;
}
.door::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(212, 162, 76, 0.45);
  border-radius: 4px;
}
.cover.is-opening .door {
  opacity: 1;
}
.cover.is-opening .door--left {
  transform: translateX(-100%);
}
.cover.is-opening .door--right {
  transform: translateX(100%);
}

.cover__inner {
  position: relative;
  z-index: 4;
  width: min(640px, 90vw);
  padding: 2rem 0;
}
.cover__card {
  position: relative;
  padding: clamp(2rem, 6vw, 3.2rem) clamp(1.2rem, 5vw, 2.6rem);
  text-align: center;
  border: 1px solid rgba(232, 200, 120, 0.42);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(48, 8, 14, 0.5), rgba(24, 3, 7, 0.68));
  backdrop-filter: blur(3px);
  box-shadow: var(--shadow-deep), inset 0 0 60px rgba(255, 190, 90, 0.07);
  animation: coverIn 1.5s var(--ease) both;
}
.cover__card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(232, 200, 120, 0.22);
  border-radius: 4px;
  pointer-events: none;
}
@keyframes coverIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cover__deity {
  margin: 0 0 0.4rem;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  letter-spacing: 0.04em;
}
.cover__line {
  margin: 0.6rem auto 1.1rem;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.6vw, 1.12rem);
  font-style: italic;
  line-height: 1.6;
  color: rgba(255, 248, 236, 0.86);
}
.cover__names {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.cover__names .name-line {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 11vw, 4.2rem);
  line-height: 1.05;
  font-weight: 400;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
}
.cover__names .joiner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.1rem 0;
  color: var(--gold-300);
}
.cover__names .joiner i {
  display: block;
  width: clamp(28px, 10vw, 60px);
  height: 1px;
  background: var(--grad-gold-line);
}
.cover__names .joiner em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: lowercase;
}
.cover__date {
  margin: 1rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 3vw, 1.18rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-100);
}
.cover__venue {
  margin: 0 0 1.6rem;
  font-size: clamp(0.76rem, 2.4vw, 0.88rem);
  letter-spacing: 0.14em;
  color: rgba(255, 244, 222, 0.62);
}

/* --- Open invitation button --- */
.open-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  isolation: isolate;
}
.open-btn__halo {
  position: absolute;
  width: 132%;
  height: 132%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 190, 90, 0.4), transparent 68%);
  animation: haloPulse 3.4s ease-in-out infinite;
  z-index: -2;
}
@keyframes haloPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}
.open-btn__petals {
  position: absolute;
  width: 168%;
  height: 168%;
  border-radius: 50%;
  border: 1px dashed rgba(232, 200, 120, 0.42);
  animation: spin 26s linear infinite;
  z-index: -1;
}
.open-btn__petals::before,
.open-btn__petals::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50% 0 50% 50%;
  background: linear-gradient(140deg, var(--rose), var(--marigold));
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.8);
}
.open-btn__petals::before {
  top: -4px;
  left: calc(50% - 4px);
}
.open-btn__petals::after {
  bottom: -4px;
  right: calc(50% - 4px);
}
.open-btn__face {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  color: #40160a;
  background: var(--grad-gold);
  box-shadow:
    0 0 0 1px rgba(255, 246, 220, 0.8),
    0 0 0 7px rgba(36, 5, 9, 0.55),
    0 0 0 8px rgba(212, 162, 76, 0.75),
    0 20px 46px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), letter-spacing 0.5s var(--ease);
}
.open-btn__icon {
  width: 20px;
  height: 20px;
  color: #7a2a12;
  transition: transform 0.7s var(--ease);
}
.open-btn__label {
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 2.6vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.open-btn:hover .open-btn__face {
  transform: translateY(-3px) scale(1.03);
  letter-spacing: 0.24em;
  box-shadow:
    0 0 0 1px rgba(255, 246, 220, 0.95),
    0 0 0 7px rgba(36, 5, 9, 0.5),
    0 0 0 9px rgba(244, 221, 162, 0.9),
    0 26px 60px rgba(0, 0, 0, 0.6);
}
.open-btn:hover .open-btn__icon {
  transform: rotate(90deg);
}
.open-btn.is-pressed .open-btn__face {
  transform: scale(0.94);
}

.cover__hint {
  margin: 1.4rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 244, 222, 0.5);
  animation: fadePulse 3s ease-in-out infinite;
}
@keyframes fadePulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.cover.is-opening .cover__card {
  animation: cardOut 1s var(--ease) forwards;
}
@keyframes cardOut {
  to {
    opacity: 0;
    transform: translateY(-34px) scale(1.06);
    filter: blur(6px);
  }
}
.cover.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------------------------------------------------------- 06 NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transform: translateY(-110%);
  transition: transform 0.9s var(--ease), background 0.5s, box-shadow 0.5s;
}
.nav.is-ready {
  transform: none;
}
.nav.is-solid {
  background: linear-gradient(180deg, rgba(31, 4, 9, 0.94), rgba(31, 4, 9, 0.78));
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}
.nav__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--grad-gold-line);
  opacity: 0.55;
}
.nav__inner {
  width: min(1320px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-100);
}
.nav__brand-icon {
  width: 22px;
  height: 28px;
  color: var(--gold-300);
}
.nav__brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-script);
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}
.nav__brand-text i {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-400);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.9rem);
}
.nav__links a {
  position: relative;
  padding: 0.35rem 0.1rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 236, 0.76);
  transition: color 0.35s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--grad-gold-line);
  transform: translateX(-50%);
  transition: width 0.45s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--gold-200);
}
.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 130%;
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(232, 200, 120, 0.5);
  border-radius: 50%;
  background: rgba(36, 5, 9, 0.5);
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.6px;
  margin-left: -9px;
  background: var(--gold-200);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.nav__burger span:nth-child(1) {
  top: 16px;
}
.nav__burger span:nth-child(2) {
  top: 21px;
}
.nav__burger span:nth-child(3) {
  top: 26px;
}
.nav__burger.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(16, 2, 5, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.45s;
}
.nav-scrim.is-shown {
  opacity: 1;
}

/* --------------------------------------------------- 07 SECTIONS / LAYOUT */
.main {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.main.is-revealed {
  opacity: 1;
}

.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 11vw, 7.5rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section--hero {
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 2rem);
}
.section--final {
  min-height: 100svh;
  padding-bottom: 0;
}

.section__bg {
  position: absolute;
  inset: -26% 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.section__bg--zoom {
  inset: 0;
  animation: slowZoom 26s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.14);
  }
}

.section__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(35, 5, 10, 0.22), rgba(28, 4, 8, 0.7) 68%, rgba(20, 2, 6, 0.92)),
    linear-gradient(180deg, rgba(24, 3, 7, 0.86), rgba(24, 3, 7, 0.14) 26%, rgba(24, 3, 7, 0.28) 70%, rgba(24, 3, 7, 0.9));
}
.section__veil--hero {
  background:
    radial-gradient(ellipse at 50% 52%, rgba(35, 5, 10, 0.12), rgba(28, 4, 8, 0.66) 66%, rgba(20, 2, 6, 0.92)),
    linear-gradient(180deg, rgba(24, 3, 7, 0.82), rgba(24, 3, 7, 0.1) 32%, rgba(24, 3, 7, 0.86));
}
.section__veil--strong {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(40, 6, 12, 0.4), rgba(26, 4, 8, 0.86) 62%, rgba(18, 2, 5, 0.96)),
    linear-gradient(180deg, rgba(22, 3, 6, 0.92), rgba(22, 3, 6, 0.55) 40%, rgba(18, 2, 5, 0.96));
}
.section__veil--final {
  background:
    radial-gradient(ellipse at 50% 68%, rgba(255, 150, 60, 0.12), rgba(30, 4, 9, 0.7) 58%, rgba(18, 2, 5, 0.96)),
    linear-gradient(180deg, rgba(22, 3, 6, 0.88), rgba(22, 3, 6, 0.28) 34%, rgba(16, 2, 5, 0.97));
}

/* --- Hero --- */
.hero__content {
  text-align: center;
  padding-block: clamp(1rem, 6vw, 3rem);
}
.hero__names {
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 14vw, 6.4rem);
  line-height: 1.02;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}
/* Script glyphs (e.g. the dot of a final "i") overhang the text box; pad it so
   the background-clipped gradient still paints them. */
.hero__name,
.cover__names .name-line {
  padding: 0 0.3em;
}
.hero__joiner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.2rem 0;
  color: var(--gold-300);
}
.hero__joiner .rule {
  display: block;
  width: clamp(36px, 14vw, 120px);
  height: 1px;
  background: var(--grad-gold-line);
}
.hero__joiner em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  letter-spacing: 0.24em;
}
.hero__date {
  margin: 0.4rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.4vw, 1.35rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-100);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.hero__line {
  margin: 0 auto;
  max-width: 54ch;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.8vw, 1.22rem);
  font-style: italic;
  line-height: 1.75;
  color: rgba(255, 248, 236, 0.9);
}
.hero__meta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.6rem;
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(232, 200, 120, 0.42);
  border-radius: 999px;
  background: rgba(30, 4, 9, 0.42);
  backdrop-filter: blur(4px);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255, 248, 236, 0.9);
}
.hero__meta .ico {
  color: var(--gold-300);
  width: 15px;
  height: 15px;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 244, 222, 0.66);
}
.scroll-hint i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--gold-300), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0.2);
    opacity: 0.2;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.2);
    opacity: 0.2;
  }
}

/* --- Couple --- */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(1rem, 4vw, 3rem);
}
.person {
  text-align: center;
}
.person__frame {
  position: relative;
  width: clamp(170px, 26vw, 268px);
  margin: 0 auto 1.3rem;
  aspect-ratio: 3 / 4;
  /* temple arch / niche silhouette */
  border-radius: 50% 50% 8px 8px / 46% 46% 8px 8px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.person__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(244, 221, 162, 0.7);
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(28, 4, 8, 0.6);
  pointer-events: none;
}
.person__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease), filter 1s;
  filter: saturate(1.03);
}
.person:hover .person__img {
  transform: scale(1.14);
}
.person__ring {
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  border: 1px dashed rgba(232, 200, 120, 0.4);
  z-index: 2;
  pointer-events: none;
}
.person__role {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.person__name {
  margin: 0 0 0.6rem;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.person__desc {
  margin: 0 auto 1.1rem;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 248, 236, 0.78);
}
.person__parents-label {
  margin: 0 0 0.3rem;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 200, 120, 0.72);
}
.person__parents {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.person__parents em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-400);
}

.couple-mid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
}
.couple-photo {
  position: relative;
  width: clamp(120px, 18vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 2px solid rgba(244, 221, 162, 0.7);
}
.couple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s ease-in-out infinite alternate;
}
.couple-photo__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 200, 120, 0.45);
  animation: spin 40s linear infinite;
}
.couple-amp {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--gold-300);
  text-shadow: 0 0 26px rgba(255, 176, 32, 0.4);
}
.couple-mid .ornament--mandala {
  position: absolute;
  bottom: -30px;
  width: 150px;
  height: 150px;
  z-index: -1;
}

.quote {
  margin: clamp(2.6rem, 6vw, 4rem) auto 0;
  max-width: 62ch;
  text-align: center;
  position: relative;
  padding: 2rem 1.2rem 0;
}
.quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 180px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--grad-gold-line);
}
.quote p {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--gold-100);
}
.quote cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.86rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: rgba(255, 248, 236, 0.68);
}

/* ------------------------------------------------------ 08 EVENTS TIMELINE */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
}
.timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(232, 200, 120, 0.18);
  overflow: hidden;
}
.timeline__line i {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-200), var(--gold-500));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.2s linear;
}

.event {
  position: relative;
  width: calc(50% - clamp(28px, 4vw, 48px));
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border-radius: 4px;
  border: 1px solid rgba(232, 200, 120, 0.3);
  background: linear-gradient(155deg, rgba(62, 11, 19, 0.82), rgba(28, 4, 9, 0.88));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
  transition: transform 0.6s var(--ease), border-color 0.5s, box-shadow 0.6s;
}
.event::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(232, 200, 120, 0.16);
  border-radius: 3px;
  pointer-events: none;
}
.event:nth-of-type(odd) {
  align-self: flex-start;
  text-align: right;
}
.event:nth-of-type(even) {
  align-self: flex-end;
}
.event:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 221, 162, 0.7);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 162, 76, 0.12);
}
.event__dot {
  position: absolute;
  top: clamp(1.4rem, 3vw, 2rem);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 0 4px rgba(36, 5, 9, 0.9), 0 0 22px rgba(255, 176, 32, 0.75);
}
.event:nth-of-type(odd) .event__dot {
  right: calc(-1 * clamp(28px, 4vw, 48px) - 7.5px);
}
.event:nth-of-type(even) .event__dot {
  left: calc(-1 * clamp(28px, 4vw, 48px) - 7.5px);
}
.event__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 120, 0.55);
  animation: haloPulse 3.6s ease-in-out infinite;
}
.event--highlight {
  border-color: rgba(244, 221, 162, 0.62);
  background: linear-gradient(155deg, rgba(120, 22, 32, 0.85), rgba(40, 6, 12, 0.92));
}
.event__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.7rem;
  color: var(--gold-300);
}
.event:nth-of-type(odd) .event__icon {
  margin-left: auto;
}
.event__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 3.6vw, 1.7rem);
  line-height: 1.2;
  color: var(--gold-100);
}
.event__subtitle {
  margin: 0.15rem 0 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.event__facts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.event__facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 248, 236, 0.86);
}
.event:nth-of-type(odd) .event__facts li {
  flex-direction: row-reverse;
}
.event__facts .ico {
  margin-top: 0.22em;
  width: 15px;
  height: 15px;
  color: var(--gold-400);
}
.event__note {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 248, 236, 0.66);
}
.event .btn {
  padding: 0.62rem 1.15rem;
  min-height: 42px;
  font-size: 0.7rem;
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------- 10 VENUE & COUNTDOWN */
.venue-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.venue-card {
  position: relative;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  border: 1px solid rgba(232, 200, 120, 0.38);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(62, 11, 19, 0.85), rgba(26, 4, 8, 0.9));
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(5px);
}
.venue-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--gold-300);
  filter: drop-shadow(0 0 16px rgba(255, 176, 32, 0.35));
}
.venue-card__name {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.25;
  color: var(--gold-100);
}
.venue-card__address {
  margin: 0 auto 1.4rem;
  max-width: 36ch;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 248, 236, 0.76);
}
.venue-card__facts {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  border-top: 1px solid rgba(232, 200, 120, 0.22);
  border-bottom: 1px solid rgba(232, 200, 120, 0.22);
}
.venue-card__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.venue-card__facts .ico {
  width: 16px;
  height: 16px;
  color: var(--gold-400);
}
.venue-card__note {
  margin: 0 auto 1.6rem;
  max-width: 38ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(255, 248, 236, 0.66);
}

.countdown-wrap {
  text-align: center;
}
.countdown__title {
  margin: 0 0 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 1.6vw, 1rem);
}
.cd {
  position: relative;
  padding: clamp(0.9rem, 2.4vw, 1.4rem) 0.3rem;
  border-radius: 4px;
  border: 1px solid rgba(232, 200, 120, 0.34);
  background: linear-gradient(180deg, rgba(60, 10, 18, 0.72), rgba(24, 3, 7, 0.85));
  box-shadow: inset 0 0 30px rgba(255, 176, 32, 0.07), var(--shadow-soft);
  overflow: hidden;
}
.cd::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--grad-gold-line);
}
.cd__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 6.4vw, 3rem);
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(255, 176, 32, 0.18);
}
.cd__num.is-tick {
  animation: tick 0.6s var(--ease);
}
@keyframes tick {
  0% {
    transform: translateY(45%) scale(0.86);
    opacity: 0;
    filter: blur(3px);
  }
  100% {
    transform: none;
    opacity: 1;
    filter: none;
  }
}
.cd__lbl {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 248, 236, 0.62);
}
.countdown__done {
  margin: 1.4rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--gold-200);
}

/* --------------------------------------------------------- 11 FINAL PAGE */
.final {
  text-align: center;
  padding-top: clamp(2rem, 8vw, 4rem);
  padding-bottom: clamp(2rem, 6vw, 3rem);
}
.final__portrait {
  position: relative;
  width: clamp(140px, 30vw, 210px);
  aspect-ratio: 1;
  margin: 1.4rem auto 1.8rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(244, 221, 162, 0.72);
  box-shadow: 0 0 60px rgba(255, 160, 50, 0.22), var(--shadow-deep);
}
.final__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 22s ease-in-out infinite alternate;
}
.final__ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 200, 120, 0.5);
  animation: spin 50s linear infinite;
  z-index: 2;
}
.final__names {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.7rem;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 1.15;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.6));
}
.final__names i {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: 0.2em;
}
.final__date {
  margin: 0.8rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-100);
}
.final__message {
  margin: 0.4rem auto 1.4rem;
  max-width: 56ch;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-style: italic;
  line-height: 1.8;
  color: rgba(255, 248, 236, 0.9);
}
.final__sign {
  margin: 0 0 1.8rem;
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--gold-200);
}
.final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.final__hashtag {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold-300);
}
.footer {
  position: relative;
  z-index: 3;
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
  padding: 1.8rem 1rem 2.2rem;
  text-align: center;
  border-top: 1px solid rgba(232, 200, 120, 0.2);
  background: linear-gradient(180deg, transparent, rgba(14, 2, 4, 0.85));
}
.footer .ornament--sm {
  color: var(--gold-400);
  margin-bottom: 0.6rem;
}
.footer p {
  margin: 0.2rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(255, 248, 236, 0.6);
}
.footer__couple {
  font-family: var(--font-display);
  letter-spacing: 0.2em !important;
  color: var(--gold-200) !important;
  text-transform: uppercase;
  font-size: 0.72rem !important;
}
/* Designer credit — always the very last line of the site */
.footer__credit {
  margin-top: 1rem !important;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(232, 200, 120, 0.16);
  font-size: 0.68rem !important;
  letter-spacing: 0.34em !important;
  text-transform: uppercase;
  color: var(--gold-300) !important;
}

/* ------------------------------------------- 12 MODAL · MUSIC · TOAST */
.modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 2, 4, 0.86);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  overflow-y: auto;
}
.modal.is-shown {
  opacity: 1;
}
.modal__card {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(1.8rem, 5vw, 2.6rem) clamp(1.2rem, 4vw, 2.2rem);
  text-align: center;
  border: 1px solid rgba(232, 200, 120, 0.45);
  border-radius: 5px;
  background: linear-gradient(165deg, rgba(70, 12, 21, 0.97), rgba(26, 4, 8, 0.99));
  box-shadow: var(--shadow-deep);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.55s var(--ease);
  max-height: 92vh;
  overflow-y: auto;
}
.modal.is-shown .modal__card {
  transform: none;
}
.modal__card .ornament--sm {
  width: 30px;
  height: 38px;
  color: var(--gold-300);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 200, 120, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-200);
  transition: background 0.35s, transform 0.35s;
}
.modal__close svg {
  width: 17px;
  height: 17px;
}
.modal__close:hover {
  background: rgba(155, 21, 38, 0.6);
  transform: rotate(90deg);
}
.modal__title {
  margin: 0.6rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--gold-100);
}
.modal__note {
  margin: 0 auto 1.6rem;
  max-width: 34ch;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255, 248, 236, 0.62);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.field > span {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(20, 3, 6, 0.75);
  border: 1px solid rgba(232, 200, 120, 0.3);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.35s, box-shadow 0.35s;
  resize: vertical;
}
.field select option {
  background: #2a060d;
  color: var(--cream);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.16);
}
.field-row {
  display: flex;
  gap: 0.9rem;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.6rem;
}
.form__actions .btn {
  flex: 1;
  min-width: 140px;
}
.form__actions .btn.is-busy {
  opacity: 0.6;
  pointer-events: none;
}
.field--events {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field--events legend {
  padding: 0;
  margin-bottom: 0.45rem;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(20, 3, 6, 0.75);
  border: 1px solid rgba(232, 200, 120, 0.3);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.35s, background 0.35s;
}
.check:has(input:checked) {
  border-color: var(--gold-300);
  background: rgba(60, 10, 18, 0.85);
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold-300);
}
.check span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  color: var(--cream);
}
.check b {
  font-weight: 500;
  font-size: 0.95rem;
}
.check small {
  font-size: 0.75rem;
  color: rgba(255, 248, 236, 0.6);
}
.form__error {
  margin: 0;
  font-size: 0.85rem;
  color: #ffb4a8;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.music {
  position: fixed;
  right: clamp(0.8rem, 3vw, 1.6rem);
  bottom: clamp(0.8rem, 3vw, 1.6rem);
  z-index: 130;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 120, 0.55);
  background: linear-gradient(160deg, rgba(70, 12, 21, 0.92), rgba(24, 3, 7, 0.95));
  color: var(--gold-200);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.4s;
}
.music.is-ready {
  opacity: 1;
  transform: none;
}
.music__icon {
  width: 21px;
  height: 21px;
  grid-area: 1 / 1;
}
.music__icon--on {
  display: none;
}
.music.is-playing .music__icon--on {
  display: block;
}
.music.is-playing .music__icon--off {
  display: none;
}
.music__wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 120, 0.3);
  opacity: 0;
}
.music.is-playing .music__wave {
  opacity: 1;
  animation: haloPulse 2.6s ease-in-out infinite;
}
.music:hover {
  background: linear-gradient(160deg, rgba(155, 21, 38, 0.9), rgba(40, 6, 12, 0.95));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 340;
  transform: translate(-50%, 20px);
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 200, 120, 0.45);
  background: rgba(30, 4, 9, 0.95);
  color: var(--gold-100);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s var(--ease);
  max-width: 88vw;
  text-align: center;
}
.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ----------------------------------------------------- 13 REVEAL SYSTEM */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease), filter 1.05s var(--ease);
  filter: blur(4px);
  transition-delay: calc(var(--rd, 0) * 130ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ------------------------------------------------------- 14 RESPONSIVE */
@media (max-width: 1024px) {
  .venue-wrap {
    grid-template-columns: 1fr;
  }
  .couple-grid {
    grid-template-columns: 1fr;
    gap: clamp(2.4rem, 7vw, 3.4rem);
  }
  .couple-mid {
    order: -1;
    padding-top: 0;
  }
  .couple-mid .ornament--mandala {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 60px;
  }
  .nav__burger {
    display: block;
  }
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 125;
    width: min(320px, 82vw);
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 4.5rem 2rem;
    background: linear-gradient(200deg, rgba(76, 13, 22, 0.98), rgba(22, 3, 6, 0.99));
    border-left: 1px solid rgba(232, 200, 120, 0.35);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    transition: transform 0.65s var(--ease);
  }
  .nav__links::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(232, 200, 120, 0.18);
    pointer-events: none;
  }
  .nav__links.is-open {
    transform: none;
  }
  .nav__links a {
    width: 100%;
    padding: 0.95rem 0.4rem;
    font-size: 0.82rem;
    text-align: center;
    border-bottom: 1px solid rgba(232, 200, 120, 0.14);
    opacity: 0;
    transform: translateX(26px);
  }
  .nav__links.is-open a {
    animation: menuItem 0.6s var(--ease) forwards;
  }
  .nav__links.is-open a:nth-child(1) {
    animation-delay: 0.08s;
  }
  .nav__links.is-open a:nth-child(2) {
    animation-delay: 0.14s;
  }
  .nav__links.is-open a:nth-child(3) {
    animation-delay: 0.2s;
  }
  .nav__links.is-open a:nth-child(4) {
    animation-delay: 0.26s;
  }
  .nav__links.is-open a:nth-child(5) {
    animation-delay: 0.32s;
  }
  .nav__links.is-open a:nth-child(6) {
    animation-delay: 0.38s;
  }
  @keyframes menuItem {
    to {
      opacity: 1;
      transform: none;
    }
  }

  /* Timeline becomes single column */
  .timeline__line {
    left: 13px;
  }
  .event,
  .event:nth-of-type(odd),
  .event:nth-of-type(even) {
    width: 100%;
    align-self: stretch;
    text-align: left;
    padding-left: 2.6rem;
  }
  .event:nth-of-type(odd) .event__icon {
    margin-left: 0;
  }
  .event:nth-of-type(odd) .event__facts li {
    flex-direction: row;
  }
  .event:nth-of-type(odd) .event__dot,
  .event:nth-of-type(even) .event__dot {
    left: 6px;
    right: auto;
    top: clamp(1.4rem, 4vw, 2rem);
  }

  .lamp {
    width: 40px;
    height: 52px;
  }
  .lamp__body {
    width: 40px;
    height: 50px;
  }
  .hanging svg {
    width: 24px;
    height: 34px;
  }
}

@media (max-width: 560px) {
  .hero__meta span {
    font-size: 0.72rem;
    padding: 0.45rem 0.85rem;
  }
  .countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }
  .cd {
    padding: 0.8rem 0.15rem;
  }
  .cd__lbl {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }
  .final__actions .btn,
  .form__actions .btn {
    width: 100%;
  }
  .field-row {
    flex-direction: column;
  }
  .quote p {
    font-size: 1.1rem;
  }
  .lamps {
    bottom: 4%;
  }
  .scroll-hint {
    bottom: 0.8rem;
  }
  .scroll-hint i {
    height: 30px;
  }
}

/* Touch devices have no hover — keep captions and frames visible */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .petal-canvas {
    display: none;
  }
}
