:root {
  --emerald-950: #06291f;
  --emerald-900: #0a3427;
  --emerald-800: #124936;
  --emerald-700: #1b5c43;
  --gold: #d5ab5e;
  --gold-light: #efd49a;
  --gold-dark: #a97730;
  --ivory: #fffaf0;
  --cream: #f7eedc;
  --cream-deep: #ecddc2;
  --coral: #dc735f;
  --coral-dark: #b85343;
  --peach: #f1aa8f;
  --blush: #f5d6cf;
  --ink: #17362c;
  --muted: #6c6b5e;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-label: "Montserrat", Arial, sans-serif;
  --font-cinzel: "Cinzel", Georgia, serif;
  --shadow-soft: 0 24px 70px rgba(4, 31, 23, 0.16);
  --shadow-deep: 0 28px 90px rgba(0, 15, 10, 0.35);
  --section-width: 1180px;
  --header-height: 76px;
  --ease-elegant: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-label);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

::selection {
  color: var(--ivory);
  background: var(--coral-dark);
}

:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  color: var(--emerald-950);
  background: var(--ivory);
  border-radius: 4px;
  font: 600 0.78rem/1 var(--font-label);
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-inner {
  position: relative;
  z-index: 2;
  width: min(var(--section-width), calc(100% - 48px));
  margin-inline: auto;
}

.section-pad {
  position: relative;
  padding: clamp(5.5rem, 10vw, 9rem) 0;
  overflow: hidden;
}

.section-kicker,
.eyebrow {
  margin: 0;
  color: var(--gold-dark);
  font: 600 0.71rem/1.4 var(--font-label);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto clamp(2.8rem, 6vw, 4.8rem);
  text-align: center;
}

.section-heading h2,
.dress-inner h2,
.venue-copy h2,
.rsvp-intro h2 {
  margin: 0.25rem 0 0.75rem;
  color: var(--emerald-900);
  font: 600 clamp(2.6rem, 6vw, 5.25rem)/0.98 var(--font-display);
  letter-spacing: -0.035em;
}

.section-heading > p:last-child {
  max-width: 560px;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font: 500 clamp(1rem, 1.6vw, 1.12rem)/1.8 var(--font-display);
  font-style: italic;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.72rem/1 var(--font-label);
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 250ms ease, background 250ms ease, border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.35) 48%, transparent 70%);
  content: "";
  transform: translateX(-140%);
  transition: transform 650ms ease;
}

.button:hover::before {
  transform: translateX(140%);
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
}

.button:active {
  transform: scale(0.97);
}

.button-coral {
  color: #fff;
  background: var(--coral-dark);
  box-shadow: 0 12px 32px rgba(184, 83, 67, 0.24);
}

.button-coral:hover {
  background: #a84536;
  box-shadow: 0 15px 35px rgba(184, 83, 67, 0.34);
}

.button-gold {
  color: var(--emerald-950);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: rgba(255, 248, 221, 0.48);
  box-shadow: 0 14px 32px rgba(105, 72, 21, 0.22);
}

.button-gold:hover {
  background: linear-gradient(135deg, #f5dda7, #d9ae5f);
  box-shadow: 0 16px 38px rgba(105, 72, 21, 0.32);
}

.button-outline {
  color: var(--emerald-800);
  background: rgba(255, 250, 240, 0.3);
  border-color: rgba(18, 73, 54, 0.42);
}

.button-outline:hover {
  color: var(--ivory);
  background: var(--emerald-800);
  border-color: var(--emerald-800);
}

.floral-divider,
.ornament-line {
  display: flex;
  width: min(220px, 60vw);
  align-items: center;
  gap: 11px;
  margin: 1.5rem auto;
  color: var(--gold);
}

.floral-divider::before,
.floral-divider::after,
.ornament-line::before,
.ornament-line::after {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, currentColor);
  content: "";
}

.floral-divider::after,
.ornament-line::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.floral-divider i,
.ornament-line i {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.floral-divider i::before,
.floral-divider i::after,
.ornament-line i::before,
.ornament-line i::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.floral-divider i::before,
.ornament-line i::before {
  top: -5px;
  left: -5px;
}

.floral-divider i::after,
.ornament-line i::after {
  right: -5px;
  bottom: -5px;
}

.floral-divider.compact {
  width: 140px;
  margin-block: 0.7rem;
}

/* Opening invitation */
.invitation-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  overflow-y: auto;
  color: var(--ivory);
  background:
    radial-gradient(circle at 20% 18%, rgba(220, 115, 95, 0.17), transparent 27%),
    radial-gradient(circle at 83% 82%, rgba(213, 171, 94, 0.15), transparent 25%),
    linear-gradient(145deg, #08271e, #0e412f 54%, #082b21);
  transition: opacity 750ms ease 300ms, visibility 0s linear 1100ms;
}

.invitation-gate.is-opening {
  visibility: hidden;
  opacity: 0;
}

.invitation-gate.is-opening .invitation-card {
  opacity: 0;
  transform: perspective(1200px) rotateY(-10deg) scale(0.94) translateY(-18px);
}

.gate-pattern,
.blessing-pattern,
.rsvp-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at center, transparent 0 5px, rgba(239, 212, 154, 0.5) 5.5px 6px, transparent 6.5px),
    radial-gradient(circle at center, transparent 0 11px, rgba(239, 212, 154, 0.34) 11.5px 12px, transparent 12.5px);
  background-position: 0 0, 22px 22px;
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
}

.invitation-card {
  position: relative;
  width: min(580px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  min-width: 0;
  min-height: min(760px, calc(100svh - 32px));
  padding: clamp(2rem, 5svh, 3.6rem) clamp(1.5rem, 6vw, 4.2rem);
  overflow: hidden;
  color: var(--emerald-950);
  background:
    linear-gradient(rgba(255, 250, 240, 0.97), rgba(248, 239, 220, 0.98)),
    var(--cream);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-deep), inset 0 0 0 7px var(--cream), inset 0 0 0 8px rgba(169, 119, 48, 0.48);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.invitation-card::before,
.invitation-card::after {
  position: absolute;
  left: 50%;
  width: 180px;
  height: 85px;
  border: 1px solid rgba(169, 119, 48, 0.28);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.invitation-card::before {
  top: -55px;
  box-shadow: 0 0 0 12px rgba(213, 171, 94, 0.07), 0 0 0 25px rgba(213, 171, 94, 0.045);
}

.invitation-card::after {
  bottom: -55px;
  box-shadow: 0 0 0 12px rgba(213, 171, 94, 0.07), 0 0 0 25px rgba(213, 171, 94, 0.045);
}

.gate-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: calc(min(760px, calc(100svh - 32px)) - clamp(4rem, 10svh, 7.2rem));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-corner {
  position: absolute;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-color: var(--gold-dark);
  opacity: 0.72;
}

.card-corner::before,
.card-corner::after {
  position: absolute;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  content: "";
}

.card-corner::before {
  width: 18px;
  height: 32px;
}

.card-corner::after {
  width: 32px;
  height: 18px;
}

.corner-tl { top: 17px; left: 17px; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: 17px; right: 17px; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: 17px; left: 17px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { right: 17px; bottom: 17px; border-right: 1px solid; border-bottom: 1px solid; }
.corner-tl::before { top: 8px; left: 9px; transform: rotate(-45deg); }
.corner-tl::after { top: 9px; left: 8px; transform: rotate(-45deg); }
.corner-tr::before { top: 8px; right: 9px; transform: rotate(45deg); }
.corner-tr::after { top: 9px; right: 8px; transform: rotate(45deg); }
.corner-bl::before { bottom: 8px; left: 9px; transform: rotate(45deg); }
.corner-bl::after { bottom: 9px; left: 8px; transform: rotate(45deg); }
.corner-br::before { right: 9px; bottom: 8px; transform: rotate(-45deg); }
.corner-br::after { right: 8px; bottom: 9px; transform: rotate(-45deg); }

.arabic {
  margin: 0 0 0.05rem;
  color: var(--emerald-800);
  font: 600 clamp(1.25rem, 4vw, 1.65rem)/1.6 "Noto Naskh Arabic", serif;
}

.transliteration {
  margin: 0;
  color: var(--emerald-800);
  font: 600 clamp(1.05rem, 3vw, 1.22rem)/1.4 var(--font-display);
  letter-spacing: 0.025em;
}

.translation {
  margin: 0.15rem 0 0;
  color: #777162;
  font: 500 0.72rem/1.5 var(--font-label);
}

.gate-content .eyebrow {
  margin-top: 0.2rem;
  color: var(--coral-dark);
}

.gate-to {
  margin: 0.25rem 0 0.2rem;
  color: #6e6a5e;
  font: italic 500 1rem/1.3 var(--font-display);
}

.gate-content h1 {
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.83;
}

.gate-content h1 small {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--emerald-800);
  font: 500 1.05rem/1 var(--font-display);
  letter-spacing: 0.06em;
}

.gate-content h1 span {
  display: block;
  color: var(--emerald-900);
  font-size: clamp(3.2rem, 12vw, 5.15rem);
  letter-spacing: -0.045em;
}

.gate-content h1 em {
  display: block;
  margin: 0.16rem 0 0.22rem;
  color: var(--coral);
  font: 400 clamp(1.9rem, 6vw, 2.7rem)/0.7 var(--font-script);
}

.gate-date {
  margin: 1.15rem 0 1.25rem;
  color: var(--emerald-800);
  font: 600 clamp(0.7rem, 2.5vw, 0.78rem)/1.5 var(--font-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gate-date b {
  padding-inline: 0.35rem;
  color: var(--gold-dark);
}

.open-button {
  min-width: 224px;
}

.open-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.floating-bloom {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0.25;
  animation: bloom-float 8s ease-in-out infinite;
}

.floating-bloom::before,
.floating-bloom::after {
  position: absolute;
  inset: 7px;
  border-radius: 50% 0 50% 0;
  background: var(--peach);
  box-shadow: -9px 9px 0 var(--gold), 9px -9px 0 var(--gold);
  content: "";
}

.floating-bloom::after {
  transform: rotate(90deg);
}

.bloom-one { top: 11%; left: 8%; }
.bloom-two { right: 9%; bottom: 13%; animation-delay: -3s; transform: scale(0.75); }
.bloom-three { top: 21%; right: 15%; animation-delay: -5s; transform: scale(0.55); }

@keyframes bloom-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -14px; rotate: 8deg; }
}

/* Navigation */
.site-shell {
  visibility: hidden;
}

body.invitation-open .site-shell {
  visibility: visible;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  color: var(--emerald-900);
  background: rgba(255, 250, 240, 0);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

body.invitation-open .site-header {
  transform: translateY(0);
  transition-delay: 700ms, 0ms, 0ms, 0ms;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 240, 0.92);
  border-color: rgba(169, 119, 48, 0.2);
  box-shadow: 0 7px 30px rgba(5, 38, 28, 0.08);
  backdrop-filter: blur(16px);
}

.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.monogram {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--emerald-900);
  font: 600 1.5rem/1 var(--font-display);
  text-decoration: none;
}

.monogram i {
  color: var(--coral);
  font: 400 1.3rem/1 var(--font-script);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.8rem);
}

.primary-nav a {
  position: relative;
  padding: 0.5rem 0;
  font: 600 0.67rem/1 var(--font-label);
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 1px;
  background: var(--coral);
  content: "";
  transition: right 200ms ease, left 200ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  right: 0;
  left: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] { color: var(--ivory); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6.5rem);
  padding: calc(var(--header-height) + 3rem) max(5vw, calc((100vw - 1340px) / 2)) 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 40%, rgba(240, 181, 144, 0.27), transparent 31%),
    radial-gradient(circle at 12% 80%, rgba(213, 171, 94, 0.12), transparent 28%),
    linear-gradient(122deg, #fffaf0 0%, #f7eddc 52%, #f3dfcf 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image: radial-gradient(circle, var(--gold-dark) 0 1px, transparent 1.5px);
  background-size: 24px 24px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 44%, transparent);
}

.hero-glow {
  position: absolute;
  top: 14%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  border: 1px solid rgba(169, 119, 48, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 0 38px rgba(213, 171, 94, 0.025), inset 0 0 0 80px rgba(213, 171, 94, 0.018);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 610px;
  padding-left: clamp(0rem, 2vw, 2rem);
}

.hero-bismillah {
  margin: 0 0 0.55rem;
  color: var(--emerald-700);
  font: italic 600 clamp(1rem, 1.8vw, 1.28rem)/1.4 var(--font-display);
  letter-spacing: 0.03em;
}

.hero-copy .ornament-line {
  width: 150px;
  margin: 0 0 1.6rem;
}

.hero-copy .ornament-line::before {
  display: none;
}

.hero-copy .eyebrow {
  color: var(--coral-dark);
}

.hero-copy h2 {
  margin: 0.25rem 0 1.4rem;
  color: var(--emerald-900);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.055em;
}

.hero-copy h2 span {
  display: block;
  font-size: clamp(4.2rem, 8.4vw, 7.5rem);
}

.hero-copy h2 i {
  display: block;
  width: min-content;
  margin: 0.16em 0 0.2em clamp(3rem, 8vw, 7.5rem);
  color: var(--coral);
  font: 400 clamp(2.6rem, 5vw, 4.4rem)/0.5 var(--font-script);
  letter-spacing: 0;
}

.hero-meta {
  display: grid;
  gap: 0.22rem;
  margin: 0 0 1.9rem;
  color: #465d53;
}

.hero-meta p {
  margin: 0;
  font: 500 clamp(0.76rem, 1.25vw, 0.86rem)/1.65 var(--font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta b {
  padding-inline: 0.32rem;
  color: var(--gold-dark);
}

.hero-meta strong {
  color: var(--emerald-800);
  font-weight: 600;
}

.hero-meta strong::after {
  padding: 0 0.55rem;
  color: var(--gold-dark);
  content: "✦";
  font-size: 0.65em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions .button {
  min-width: 158px;
}

.hero-art {
  position: relative;
  z-index: 2;
  width: min(42vw, 590px);
  justify-self: center;
  filter: drop-shadow(0 25px 38px rgba(13, 59, 44, 0.22));
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 1159 / 1356;
  object-fit: cover;
  border: 2px solid rgba(239, 212, 154, 0.85);
  border-radius: 48% 48% 3.2rem 3.2rem / 21% 21% 3.2rem 3.2rem;
  box-shadow: inset 0 0 0 6px rgba(9, 50, 37, 0.2);
}

.art-arch {
  position: absolute;
  z-index: 1;
  inset: -20px -20px 11%;
  border: 1px solid var(--gold);
  border-radius: 48% 48% 4rem 4rem / 22% 22% 4rem 4rem;
}

.art-arch::before,
.art-arch::after {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(169, 119, 48, 0.37);
  border-radius: inherit;
  content: "";
}

.art-arch::after {
  inset: -12px;
  border-color: rgba(213, 171, 94, 0.17);
}

.arch-halo {
  position: absolute;
  top: -12%;
  left: 50%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(213, 171, 94, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}

.arch-star {
  position: absolute;
  color: var(--gold);
  font-size: 0.85rem;
  animation: star-pulse 2.8s ease-in-out infinite;
}

.star-one { top: 8%; left: -32px; }
.star-two { top: 22%; right: -36px; animation-delay: -1s; }
.star-three { top: -2%; right: 22%; animation-delay: -1.8s; font-size: 0.55rem; }

@keyframes star-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.75) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(45deg); }
}

.art-flowers {
  position: absolute;
  z-index: 4;
  right: -7%;
  bottom: -3%;
  display: flex;
  align-items: center;
}

.art-flowers span {
  width: clamp(32px, 4vw, 55px);
  aspect-ratio: 1;
  margin-left: -9px;
  border: 7px double rgba(255, 250, 240, 0.85);
  border-radius: 50% 45% 50% 45%;
  background: var(--coral);
  box-shadow: 0 6px 18px rgba(73, 34, 24, 0.2), inset 0 0 0 5px var(--gold-light);
  transform: rotate(25deg);
}

.art-flowers span:nth-child(2) { width: clamp(24px, 3.2vw, 44px); background: var(--gold); transform: translateY(10px) rotate(50deg); }
.art-flowers span:nth-child(3) { width: clamp(38px, 4.6vw, 62px); background: var(--peach); }
.art-flowers span:nth-child(4) { width: clamp(23px, 3vw, 41px); background: var(--ivory); transform: translateY(12px) rotate(60deg); }
.art-flowers span:nth-child(5) { width: clamp(31px, 4vw, 52px); background: var(--coral-dark); }

.hero-lantern {
  position: absolute;
  z-index: 1;
  top: 0;
  width: 1px;
  height: 120px;
  background: rgba(169, 119, 48, 0.45);
  transform-origin: top;
  animation: lantern-sway 5s ease-in-out infinite;
}

.hero-lantern::after {
  position: absolute;
  top: 110px;
  left: -15px;
  width: 31px;
  height: 45px;
  border: 1px solid var(--gold-dark);
  border-radius: 45% 45% 35% 35%;
  background: radial-gradient(circle, rgba(250, 204, 105, 0.75), rgba(213, 171, 94, 0.12) 48%, rgba(13, 59, 44, 0.16) 51%);
  box-shadow: 0 0 25px rgba(213, 171, 94, 0.28);
  content: "";
}

.lantern-left { left: 3.5%; }
.lantern-right { top: -35px; right: 4%; height: 170px; animation-delay: -2s; }
.lantern-right::after { top: 160px; }

@keyframes lantern-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 24px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--emerald-700);
  font: 600 0.57rem/1 var(--font-label);
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 28px;
  overflow: hidden;
  background: rgba(27, 92, 67, 0.3);
}

.scroll-cue span::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--coral);
  content: "";
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* Blessing */
.blessing-section {
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% -25%, rgba(213, 171, 94, 0.24), transparent 42%),
    var(--emerald-900);
}

.blessing-pattern {
  opacity: 0.08;
  mask-image: linear-gradient(90deg, transparent, #000 20% 80%, transparent);
}

.blessing-inner {
  max-width: 880px;
  text-align: center;
}

.blessing-inner .section-kicker {
  color: var(--gold-light);
}

.blessing-inner blockquote {
  margin: 1.4rem 0 2rem;
  color: var(--ivory);
  font: italic 500 clamp(1.7rem, 3.7vw, 3.1rem)/1.42 var(--font-display);
  letter-spacing: -0.015em;
}

.blessing-inner .floral-divider {
  color: var(--gold-light);
}

.barakah-message {
  margin: 0;
  color: #f2d4bf;
  font: 500 clamp(1.15rem, 2.1vw, 1.55rem)/1.5 var(--font-display);
}

/* Countdown */
.countdown-section {
  background:
    radial-gradient(circle at center, rgba(220, 115, 95, 0.07), transparent 40%),
    var(--ivory);
}

.countdown-section::before,
.countdown-section::after {
  position: absolute;
  top: 0;
  width: 18%;
  height: 100%;
  opacity: 0.14;
  background: repeating-radial-gradient(ellipse at left center, transparent 0 18px, var(--gold-dark) 19px 20px, transparent 21px 40px);
  content: "";
}

.countdown-section::before { left: 0; }
.countdown-section::after { right: 0; transform: scaleX(-1); }

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 2.3vw, 2rem);
}

.countdown > i {
  color: var(--gold);
  font-style: normal;
  font-size: 0.72rem;
}

.countdown-item {
  position: relative;
  display: grid;
  width: clamp(108px, 14vw, 150px);
  aspect-ratio: 1;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(169, 119, 48, 0.42);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: inset 0 0 0 7px var(--ivory), inset 0 0 0 8px rgba(213, 171, 94, 0.2), 0 15px 40px rgba(13, 59, 44, 0.07);
}

.countdown-item::before {
  position: absolute;
  inset: -5px;
  border-top: 1px solid var(--coral);
  border-bottom: 1px solid var(--coral);
  border-radius: 50%;
  content: "";
  transform: rotate(28deg);
}

.countdown-item span {
  color: var(--emerald-900);
  font: 600 clamp(2.2rem, 5vw, 4.2rem)/0.9 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.countdown-item small {
  margin-top: 0.5rem;
  color: var(--coral-dark);
  font: 600 clamp(0.55rem, 1vw, 0.66rem)/1 var(--font-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.celebration-started {
  margin: 0;
  color: var(--emerald-800);
  font: italic 600 clamp(2rem, 5vw, 3.7rem)/1.2 var(--font-display);
  text-align: center;
}

/* Event details */
.details-section {
  background:
    linear-gradient(180deg, rgba(245, 214, 207, 0.24), transparent 25%),
    var(--cream);
}

.details-frame {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: clamp(2.2rem, 4vw, 3.6rem) clamp(1rem, 3vw, 2.8rem);
  background: rgba(255, 250, 240, 0.74);
  border: 1px solid rgba(169, 119, 48, 0.46);
  box-shadow: var(--shadow-soft), inset 0 0 0 7px rgba(255, 250, 240, 0.85), inset 0 0 0 8px rgba(213, 171, 94, 0.2);
}

.details-frame::before,
.details-frame::after {
  position: absolute;
  left: 50%;
  width: 46px;
  height: 19px;
  border: 1px solid var(--gold-dark);
  background: var(--cream);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.details-frame::before { top: -10px; }
.details-frame::after { bottom: -10px; }

.detail-item {
  min-width: 0;
  padding: 0 clamp(0.7rem, 2vw, 1.5rem);
  text-align: center;
}

.detail-item + .detail-item {
  border-left: 1px solid rgba(169, 119, 48, 0.22);
}

.detail-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 1.25rem;
  color: var(--coral-dark);
  border: 1px solid rgba(169, 119, 48, 0.47);
  border-radius: 50%;
}

.detail-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.detail-label {
  margin: 0 0 0.45rem !important;
  color: var(--gold-dark) !important;
  font: 600 0.62rem/1.2 var(--font-label) !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.detail-item h3 {
  margin: 0;
  color: var(--emerald-900);
  font: 600 clamp(1.2rem, 2vw, 1.55rem)/1.15 var(--font-display);
}

.detail-item p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font: 500 0.73rem/1.65 var(--font-label);
}

.decorative-spray {
  position: absolute;
  top: 14%;
  width: 180px;
  height: 300px;
  opacity: 0.18;
  border-left: 2px solid var(--emerald-700);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.decorative-spray::before,
.decorative-spray::after {
  position: absolute;
  width: 37px;
  height: 65px;
  border: 1px solid var(--emerald-700);
  border-radius: 100% 0 100% 0;
  content: "";
}

.decorative-spray::before { top: 25%; left: 18px; transform: rotate(-20deg); }
.decorative-spray::after { top: 55%; left: -28px; transform: rotate(70deg); }
.spray-left { left: -75px; }
.spray-right { right: -75px; transform: scaleX(-1) rotate(-24deg); }

/* Dress code */
.dress-section {
  color: var(--ivory);
  background:
    radial-gradient(circle at 10% 50%, rgba(220, 115, 95, 0.14), transparent 26%),
    radial-gradient(circle at 90% 45%, rgba(213, 171, 94, 0.12), transparent 28%),
    var(--emerald-950);
}

.dress-section::before {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(213, 171, 94, 0.2);
  content: "";
  pointer-events: none;
}

.dress-inner {
  max-width: 850px;
  text-align: center;
}

.dress-inner .section-kicker { color: var(--gold-light); }
.dress-inner h2 { color: var(--ivory); }

.dress-inner > p:not(.section-kicker, .attire-note, .inspiration-note) {
  margin: 1.2rem 0 0;
  color: #e9ddc9;
  font: italic 500 clamp(1.1rem, 2.2vw, 1.45rem)/1.65 var(--font-display);
}

.swatches {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.8rem, 2.8vw, 2rem);
  margin: clamp(2.8rem, 6vw, 4rem) 0 2.3rem;
}

.swatch {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.swatch i {
  display: block;
  width: clamp(48px, 7vw, 70px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 240, 0.57);
  border-radius: 50% 42% 50% 44%;
  box-shadow: inset 0 0 0 4px var(--emerald-950), inset 0 0 0 5px rgba(255, 250, 240, 0.35);
  transform: rotate(22deg);
  transition: transform 240ms ease;
}

.swatch:hover i { transform: translateY(-5px) rotate(34deg); }
.swatch small { color: #f3e8d6; font: 500 0.59rem/1 var(--font-label); letter-spacing: 0.09em; text-transform: uppercase; }
.swatch.emerald i { background: #237152; }
.swatch.gold i { background: #c49746; }
.swatch.coral i { background: #d9705d; }
.swatch.marigold i { background: #e59635; }
.swatch.blush i { background: #e8b9b1; }
.swatch.ivory i { background: #f7eddc; }

.attire-note {
  margin: 0;
  color: var(--gold-light);
  font: 600 0.7rem/1.5 var(--font-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.attire-note span { padding-inline: 0.55rem; color: var(--coral); }

.inspiration-note {
  margin: 0.65rem 0 0;
  color: rgba(255, 250, 240, 0.58);
  font: italic 500 0.88rem/1.4 var(--font-display);
}

/* Venue */
.venue-section {
  background:
    radial-gradient(circle at 15% 50%, rgba(213, 171, 94, 0.09), transparent 31%),
    var(--ivory);
}

.venue-grid {
  display: grid;
  max-width: 1040px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
}

.venue-visual {
  display: grid;
  place-items: center;
}

.venue-arch {
  position: relative;
  display: grid;
  width: min(100%, 355px);
  aspect-ratio: 0.78;
  place-content: center;
  overflow: hidden;
  color: var(--ivory);
  background:
    linear-gradient(rgba(7, 42, 31, 0.87), rgba(7, 42, 31, 0.94)),
    radial-gradient(circle at 50% 25%, var(--emerald-700), var(--emerald-950));
  border: 2px solid var(--gold);
  border-radius: 50% 50% 1.4rem 1.4rem / 25% 25% 1.4rem 1.4rem;
  box-shadow: 0 24px 60px rgba(5, 38, 28, 0.23), inset 0 0 0 8px var(--emerald-900), inset 0 0 0 9px rgba(213, 171, 94, 0.54);
  text-align: center;
}

.venue-arch::before,
.venue-arch::after {
  position: absolute;
  bottom: -60px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(213, 171, 94, 0.35);
  border-radius: 50%;
  content: "";
}

.venue-arch::before { left: -70px; }
.venue-arch::after { right: -70px; }

.venue-lattice {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(45deg, transparent 45%, var(--gold-light) 46% 48%, transparent 49%),
    linear-gradient(-45deg, transparent 45%, var(--gold-light) 46% 48%, transparent 49%);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.venue-pin {
  position: relative;
  z-index: 2;
  width: 58px;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.2;
}

.venue-arch p {
  position: relative;
  z-index: 2;
  margin: 0;
  font: 600 clamp(2.2rem, 5vw, 3.8rem)/0.8 var(--font-display);
}

.venue-arch small {
  color: var(--gold-light);
  font: 500 0.68rem/1 var(--font-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.venue-copy .section-kicker { color: var(--coral-dark); }
.venue-copy h2 { margin-bottom: 0.2rem; }

.venue-subtitle {
  max-width: 440px;
  margin: 0 0 1.7rem;
  color: var(--emerald-700);
  font: italic 600 clamp(1.3rem, 2.4vw, 1.75rem)/1.35 var(--font-display);
}

.venue-copy address {
  margin: 0 0 2rem;
  color: var(--muted);
  font: normal 500 0.92rem/1.85 var(--font-label);
}

.venue-copy address span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--gold-dark);
  font: 600 0.68rem/1.5 var(--font-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.directions-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* RSVP */
.rsvp-section {
  isolation: isolate;
  color: var(--ivory);
  background:
    radial-gradient(circle at 8% 18%, rgba(220, 115, 95, 0.16), transparent 24%),
    radial-gradient(circle at 92% 82%, rgba(213, 171, 94, 0.15), transparent 27%),
    linear-gradient(135deg, var(--emerald-950), #104632);
}

.rsvp-section::before,
.rsvp-section::after {
  position: absolute;
  z-index: 0;
  width: clamp(180px, 27vw, 390px);
  aspect-ratio: 1;
  border: 1px solid rgba(213, 171, 94, 0.13);
  border-radius: 50%;
  content: "";
}

.rsvp-section::before {
  top: -18%;
  left: -9%;
  box-shadow: 0 0 0 28px rgba(213, 171, 94, 0.025), 0 0 0 58px rgba(213, 171, 94, 0.018);
}

.rsvp-section::after {
  right: -10%;
  bottom: -22%;
  box-shadow: 0 0 0 28px rgba(220, 115, 95, 0.025), 0 0 0 58px rgba(220, 115, 95, 0.018);
}

.rsvp-pattern {
  z-index: -1;
  opacity: 0.06;
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
}

.rsvp-wrap {
  max-width: 900px;
}

.rsvp-card {
  position: relative;
  width: min(100%, 820px);
  margin-inline: auto;
  padding: clamp(5rem, 9vw, 7.2rem) clamp(2rem, 8vw, 6.5rem) clamp(4.2rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 171, 94, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(17, 76, 54, 0.96), rgba(5, 39, 29, 0.98));
  border: 1px solid rgba(239, 212, 154, 0.75);
  box-shadow:
    0 32px 80px rgba(0, 18, 12, 0.34),
    inset 0 0 0 8px rgba(8, 48, 35, 0.9),
    inset 0 0 0 9px rgba(213, 171, 94, 0.27);
  text-align: center;
}

.rsvp-card::before {
  position: absolute;
  top: -86px;
  left: 50%;
  width: 300px;
  height: 150px;
  border: 1px solid rgba(239, 212, 154, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(213, 171, 94, 0.025), 0 0 0 38px rgba(213, 171, 94, 0.018);
  content: "";
  transform: translateX(-50%);
}

.rsvp-card::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--emerald-900);
  border: 1px solid var(--gold);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.rsvp-intro {
  position: relative;
  z-index: 2;
}

.rsvp-intro .section-kicker { color: var(--gold-light); }
.rsvp-intro h2 {
  max-width: none;
  margin-top: 0.55rem;
  color: var(--ivory);
}

.rsvp-intro > p:not(.section-kicker, .rsvp-date) {
  color: #e7d9c5;
  font: italic 500 clamp(1.15rem, 2.2vw, 1.5rem)/1.55 var(--font-display);
}

.rsvp-intro .floral-divider {
  width: min(190px, 62%);
  margin: 2.1rem auto;
  color: var(--gold);
}

.rsvp-date {
  margin: 0;
  color: rgba(255, 250, 240, 0.65);
  font: 500 0.72rem/1.6 var(--font-label);
  letter-spacing: 0.05em;
}

.rsvp-intro .closing-message {
  max-width: 470px;
  margin: 2rem auto 0;
  color: #f1ddca;
  font-size: clamp(1rem, 1.9vw, 1.25rem);
}

.signature-line {
  display: block;
  width: 94px;
  height: 1px;
  margin: 2rem auto 1.25rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.closing-signature {
  margin: 0 !important;
  color: var(--ivory) !important;
  font: 600 clamp(1.65rem, 3.5vw, 2.35rem)/1 var(--font-display) !important;
}

.closing-signature i {
  padding-inline: 0.2rem;
  color: var(--coral);
  font: 400 0.95em/1 var(--font-script);
}

.closing-arch {
  position: absolute;
  top: 26px;
  left: 50%;
  width: min(220px, 48%);
  height: 74px;
  border-top: 1px solid rgba(213, 171, 94, 0.42);
  border-radius: 50%;
  transform: translateX(-50%);
}

.closing-arch i {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 11px;
  height: 11px;
  background: var(--emerald-800);
  border: 1px solid var(--gold-light);
  transform: translateX(-50%) rotate(45deg);
}

.closing-corner {
  position: absolute;
  z-index: 1;
  width: 54px;
  height: 54px;
  opacity: 0.6;
  border-color: var(--gold);
}

.closing-corner::before,
.closing-corner::after {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  content: "";
}

.closing-corner::before { transform: rotate(-45deg); }
.closing-corner::after { transform: rotate(45deg); }
.closing-corner-tl { top: 20px; left: 20px; border-top: 1px solid; border-left: 1px solid; }
.closing-corner-tr { top: 20px; right: 20px; border-top: 1px solid; border-right: 1px solid; transform: scaleX(-1); }
.closing-corner-bl { bottom: 20px; left: 20px; border-bottom: 1px solid; border-left: 1px solid; transform: scaleY(-1); }
.closing-corner-br { right: 20px; bottom: 20px; border-right: 1px solid; border-bottom: 1px solid; transform: scale(-1); }

.closing-lantern {
  position: absolute;
  z-index: 1;
  top: 0;
  width: 1px;
  height: clamp(88px, 12vw, 145px);
  background: rgba(213, 171, 94, 0.35);
}

.closing-lantern::after {
  position: absolute;
  bottom: -42px;
  left: -15px;
  width: 31px;
  height: 43px;
  background: radial-gradient(circle, rgba(250, 204, 105, 0.66), rgba(213, 171, 94, 0.1) 52%);
  border: 1px solid rgba(213, 171, 94, 0.75);
  border-radius: 45% 45% 35% 35%;
  box-shadow: 0 0 28px rgba(213, 171, 94, 0.22);
  content: "";
}

.closing-lantern-left { left: 7%; }
.closing-lantern-right { right: 7%; height: clamp(62px, 9vw, 110px); }

/* Footer and music */
.site-footer {
  padding: 4.5rem 1.5rem 4rem;
  color: #ddd1ba;
  background: #05261d;
  text-align: center;
}

.site-footer .floral-divider {
  margin-top: 0;
  color: var(--gold);
}

.footer-names {
  margin: 1.3rem 0 0.15rem;
  color: var(--ivory);
  font: 600 clamp(2rem, 4vw, 3.2rem)/1 var(--font-display);
}

.footer-names i {
  padding: 0 0.25rem;
  color: var(--coral);
  font: 400 0.9em/1 var(--font-script);
}

.site-footer time {
  color: var(--gold-light);
  font: 600 0.65rem/1.4 var(--font-label);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.site-footer > p:last-child {
  margin: 1rem 0 0;
  font: italic 500 1rem/1.5 var(--font-display);
}

.music-control {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  padding: 0;
  color: var(--ivory);
  background: rgba(10, 52, 39, 0.93);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(4, 31, 23, 0.25);
  cursor: pointer;
  backdrop-filter: blur(8px);
  animation: music-enter 500ms ease both;
}

.music-control[hidden],
.music-control.is-unavailable {
  display: none;
}

@keyframes music-enter { from { opacity: 0; transform: translateY(12px) scale(0.9); } }

.music-control svg {
  position: absolute;
  width: 20px;
  fill: currentColor;
}

.music-control .icon-pause { display: none; }
.music-control.is-playing .icon-play { display: none; }
.music-control.is-playing .icon-pause { display: block; }

.music-ring {
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(239, 212, 154, 0.67);
  border-radius: 50%;
}

.music-control.is-playing .music-ring { animation: music-spin 7s linear infinite; }
@keyframes music-spin { to { transform: rotate(360deg); } }

/* Scroll reveals */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 820ms ease, transform 820ms var(--ease-elegant);
}

.js .reveal.reveal-up { transform: translateY(24px); }
.js .reveal.reveal-left { transform: translateX(-28px); }
.js .reveal.reveal-right { transform: translateX(28px); }
.js .reveal.reveal-scale { transform: translateY(12px) scale(0.96); }
.js .reveal.reveal-soft { transform: translateY(16px); }
.js .reveal.reveal-stagger { transform: translateY(18px) scale(0.985); }

.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

body.invitation-open .hero-copy { transition-delay: 260ms; }
body.invitation-open .hero-art { transition-delay: 400ms; }

/* Coordinated motion polish */
.monogram {
  transition: color 240ms ease, text-shadow 240ms ease, transform 240ms var(--ease-elegant);
}

.monogram:hover {
  color: var(--gold-dark);
  text-shadow: 0 0 15px rgba(220, 115, 95, 0.22);
  transform: translateY(-1px);
}

.music-control {
  transition: transform 220ms var(--ease-elegant), box-shadow 220ms ease, background 220ms ease;
}

.music-control:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 13px 30px rgba(4, 31, 23, 0.3), 0 0 0 3px rgba(213, 171, 94, 0.08);
}

.music-control:active { transform: scale(0.96); }

/* Opening-card load and cinematic exit */
.invitation-card {
  z-index: 2;
  transform-origin: 50% 55%;
}

.gate-open-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(760px, 92vw);
  aspect-ratio: 1;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 212, 154, 0.34), rgba(213, 171, 94, 0.1) 38%, transparent 69%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.52);
}

.js .gate-content > .arabic,
.js .gate-content > .transliteration,
.js .gate-content > .translation,
.js .gate-content > .floral-divider,
.js .gate-content > .eyebrow,
.js .gate-content > .gate-to,
.js .gate-content h1 > small,
.js .gate-content h1 > span,
.js .gate-content h1 > em,
.js .gate-content > .gate-date,
.js .gate-content > .open-button {
  animation: gate-content-in 460ms var(--ease-elegant) both;
}

.js .gate-content > .arabic { animation-delay: 40ms; }
.js .gate-content > .transliteration { animation-delay: 120ms; }
.js .gate-content > .translation { animation-delay: 200ms; }
.js .gate-content > .floral-divider { animation-delay: 280ms; }
.js .gate-content > .eyebrow { animation-delay: 360ms; }
.js .gate-content > .gate-to { animation-delay: 440ms; }
.js .gate-content h1 > small { animation-delay: 520ms; }
.js .gate-content h1 > span:first-of-type { animation-delay: 600ms; }
.js .gate-content h1 > em { animation-delay: 680ms; }
.js .gate-content h1 > span:last-of-type { animation-delay: 760ms; }
.js .gate-content > .gate-date { animation-delay: 840ms; }
.js .gate-content > .open-button { animation-delay: 920ms; }

@keyframes gate-content-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.open-button.is-pressed {
  animation: invitation-button-press 260ms var(--ease-elegant) both;
}

@keyframes invitation-button-press {
  45% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.invitation-gate.is-opening {
  visibility: visible;
  opacity: 1;
  pointer-events: none;
  animation: gate-open-away 1450ms ease both;
}

.invitation-gate.is-opening .invitation-card {
  animation: invitation-card-open 1380ms var(--ease-elegant) both;
}

.invitation-gate.is-opening .gate-open-glow {
  animation: gate-glow-expand 1100ms ease-out both;
}

.invitation-gate.is-opening .card-corner {
  animation: gate-corner-illuminate 720ms ease-out both;
}

@keyframes gate-open-away {
  0%, 30% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes invitation-card-open {
  0% { opacity: 1; transform: perspective(1200px) rotateY(0) scale(1) translateY(0); }
  20% { opacity: 1; transform: perspective(1200px) rotateY(0) scale(1.022) translateY(-2px); }
  34% { opacity: 1; transform: perspective(1200px) rotateY(-1deg) scale(1.028) translateY(-3px); }
  100% { opacity: 0; transform: perspective(1200px) rotateY(-9deg) scale(0.95) translateY(-25px); }
}

@keyframes gate-glow-expand {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  38% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.98); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}

@keyframes gate-corner-illuminate {
  0%, 100% { opacity: 0.72; filter: drop-shadow(0 0 0 rgba(213, 171, 94, 0)); }
  42% { opacity: 1; filter: drop-shadow(0 0 7px rgba(213, 171, 94, 0.78)); }
}

.opening-particle {
  position: fixed;
  z-index: 4;
  display: block;
  width: var(--particle-size, 7px);
  aspect-ratio: 1.47;
  border-radius: 70% 10% 70% 20%;
  background: var(--particle-color, var(--peach));
  box-shadow: 0 0 7px rgba(239, 212, 154, 0.24);
  opacity: 0;
  pointer-events: none;
  animation: opening-particle-drift var(--particle-duration, 850ms) var(--ease-elegant) both;
}

.opening-particle.is-spark {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(239, 212, 154, 0.72);
}

@keyframes opening-particle-drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg) scale(0.65); }
  18% { opacity: var(--particle-opacity, 0.72); }
  100% { opacity: 0; transform: translate3d(var(--particle-x), var(--particle-y), 0) rotate(var(--particle-rotate)) scale(1); }
}

/* Hero entrance, idle movement, and depth layers */
.js .hero-copy > .hero-bismillah,
.js .hero-copy > .ornament-line,
.js .hero-copy > .eyebrow,
.js .hero-copy h2 > span,
.js .hero-copy h2 > i,
.js .hero-copy > .hero-meta,
.js .hero-copy > .hero-actions {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 680ms ease, translate 760ms var(--ease-elegant);
}

body.invitation-open .hero-copy > .hero-bismillah,
body.invitation-open .hero-copy > .ornament-line,
body.invitation-open .hero-copy > .eyebrow,
body.invitation-open .hero-copy h2 > span,
body.invitation-open .hero-copy h2 > i,
body.invitation-open .hero-copy > .hero-meta,
body.invitation-open .hero-copy > .hero-actions {
  opacity: 1;
  translate: 0 0;
}

body.invitation-open .hero-copy > .hero-bismillah { transition-delay: 500ms; }
body.invitation-open .hero-copy > .ornament-line { transition-delay: 580ms; }
body.invitation-open .hero-copy > .eyebrow { transition-delay: 670ms; }
body.invitation-open .hero-copy h2 > span:first-child { transition-delay: 760ms; }
body.invitation-open .hero-copy h2 > i { transition-delay: 850ms; }
body.invitation-open .hero-copy h2 > span:last-child { transition-delay: 940ms; }
body.invitation-open .hero-copy > .hero-meta { transition-delay: 1030ms; }
body.invitation-open .hero-copy > .hero-actions { transition-delay: 1120ms; }

.js .hero-art .art-arch,
.js .hero-art img,
.js .hero-art .art-flowers {
  opacity: 0;
}

.js .hero-art .art-arch {
  scale: 0.965;
  transition: opacity 800ms ease 480ms, scale 900ms var(--ease-elegant) 480ms, transform 480ms var(--ease-elegant);
}

.js .hero-art img {
  scale: 0.985;
  translate: 0 20px;
  transition: opacity 820ms ease 660ms, scale 900ms var(--ease-elegant) 660ms, translate 900ms var(--ease-elegant) 660ms, transform 480ms var(--ease-elegant);
}

.js .hero-art .art-flowers {
  translate: 0 12px;
  transition: opacity 680ms ease 1020ms, translate 760ms var(--ease-elegant) 1020ms, transform 480ms var(--ease-elegant);
}

body.invitation-open .hero-art .art-arch,
body.invitation-open .hero-art img,
body.invitation-open .hero-art .art-flowers {
  opacity: 1;
  scale: 1;
}

body.invitation-open .hero-art img { translate: 0 0; animation: hero-art-float 7s ease-in-out 1600ms infinite; }
body.invitation-open .hero-art .art-arch { animation: hero-arch-breathe 12s ease-in-out 1500ms infinite; }
body.invitation-open .hero-art .art-flowers { translate: 0 0; }

.arch-star {
  opacity: 0;
  animation: none;
  transition: translate 480ms var(--ease-elegant);
}

body.invitation-open .arch-star { animation: star-pulse 3.2s ease-in-out 1260ms infinite; }
body.invitation-open .star-two { animation-delay: 1430ms; }
body.invitation-open .star-three { animation-delay: 1580ms; }

@keyframes hero-art-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes hero-arch-breathe {
  0%, 100% { rotate: -0.2deg; }
  50% { rotate: 0.5deg; }
}

body.invitation-open .scroll-cue { animation: scroll-cue-arrive 700ms var(--ease-elegant) 1500ms both; }

@keyframes scroll-cue-arrive {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Ambient petals stay beneath all invitation copy. */
.ambient-petal-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-petal {
  position: absolute;
  top: -8%;
  left: var(--petal-left);
  width: var(--petal-size, 9px);
  aspect-ratio: 0.72;
  border-radius: 75% 12% 72% 18%;
  background: var(--petal-color, var(--peach));
  opacity: 0;
  will-change: transform, opacity;
  animation: ambient-petal-drift var(--petal-duration, 12s) linear var(--petal-delay, 0s) infinite;
}

.ambient-petal.is-gold-point {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(239, 212, 154, 0.55);
}

@keyframes ambient-petal-drift {
  0% { opacity: 0; transform: translate3d(0, -18px, 0) rotate(0deg); }
  14% { opacity: var(--petal-opacity, 0.28); }
  82% { opacity: var(--petal-opacity, 0.28); }
  100% { opacity: 0; transform: translate3d(var(--petal-drift, 18px), var(--petal-fall, 800px), 0) rotate(var(--petal-rotate, 260deg)); }
}

/* Lanterns retain their sway while their warm light quietly breathes. */
.hero-lantern::after,
.closing-lantern::after {
  animation: lantern-glow-breathe 4.2s ease-in-out infinite;
}

.lantern-right::after,
.closing-lantern-right::after { animation-delay: -1.7s; }

.closing-lantern {
  transform-origin: top;
  animation: lantern-sway 5.8s ease-in-out infinite;
}

.closing-lantern-right { animation-delay: -2.4s; }

@keyframes lantern-glow-breathe {
  0%, 100% { opacity: 0.74; filter: drop-shadow(0 0 2px rgba(213, 171, 94, 0.15)); }
  50% { opacity: 1; filter: drop-shadow(0 0 7px rgba(213, 171, 94, 0.38)); }
}

/* Gold ornaments draw from the center and settle once. */
.js .ornament-reveal::before,
.js .ornament-reveal::after {
  scale: 0 1;
  transition: scale 720ms var(--ease-elegant) var(--ornament-delay, 0ms);
}

.js .ornament-reveal::before { transform-origin: right center; }
.js .ornament-reveal::after { transform-origin: left center; }

.js .ornament-reveal > i {
  opacity: 0;
  transform: rotate(25deg) scale(0.7);
  transition: opacity 360ms ease calc(var(--ornament-delay, 0ms) + 420ms), transform 620ms var(--ease-elegant) calc(var(--ornament-delay, 0ms) + 390ms);
}

.js .ornament-reveal.is-ornament-visible::before,
.js .ornament-reveal.is-ornament-visible::after { scale: 1 1; }

.js .ornament-reveal.is-ornament-visible > i {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.js .hero-copy .ornament-line::after { scale: 0 1; transform-origin: left center; transition: scale 680ms var(--ease-elegant) 650ms; }
.js .hero-copy .ornament-line > i { opacity: 0; transform: rotate(25deg) scale(0.7); transition: opacity 320ms ease 900ms, transform 520ms var(--ease-elegant) 860ms; }
body.invitation-open .hero-copy .ornament-line::after { scale: 1 1; }
body.invitation-open .hero-copy .ornament-line > i { opacity: 1; transform: rotate(45deg) scale(1); }

/* Deliberate blessing sequence. */
.blessing-inner blockquote span { display: block; }

.js .blessing-inner > .section-kicker,
.js .blessing-inner blockquote span,
.js .blessing-inner > .barakah-message {
  opacity: 0;
  translate: 0 13px;
  transition: opacity 680ms ease, translate 760ms var(--ease-elegant);
}

.js .blessing-inner.is-visible > .section-kicker,
.js .blessing-inner.is-visible blockquote span,
.js .blessing-inner.is-visible > .barakah-message {
  opacity: 1;
  translate: 0 0;
}

.blessing-inner.is-visible > .section-kicker { transition-delay: 50ms; }
.blessing-inner.is-visible blockquote span:nth-child(1) { transition-delay: 180ms; }
.blessing-inner.is-visible blockquote span:nth-child(2) { transition-delay: 290ms; }
.blessing-inner.is-visible blockquote span:nth-child(3) { transition-delay: 400ms; }
.blessing-inner.is-visible blockquote span:nth-child(4) { transition-delay: 510ms; }
.blessing-inner.is-visible > .barakah-message { transition-delay: 1100ms; }

.blessing-pattern { animation: blessing-pattern-drift 20s ease-in-out infinite alternate; }

@keyframes blessing-pattern-drift {
  from { transform: translate3d(-3px, -2px, 0); }
  to { transform: translate3d(4px, 4px, 0); }
}

/* Countdown items arrive left-to-right; only changing numerals pulse. */
.js .countdown .countdown-item,
.js .countdown > i {
  opacity: 0;
  scale: 0.94;
  transition: opacity 620ms ease, scale 720ms var(--ease-elegant);
}

.js .countdown.is-visible .countdown-item,
.js .countdown.is-visible > i { opacity: 1; scale: 1; }

.countdown.is-visible .countdown-item:nth-of-type(1) { transition-delay: 30ms; }
.countdown.is-visible > i:nth-of-type(1) { transition-delay: 90ms; }
.countdown.is-visible .countdown-item:nth-of-type(2) { transition-delay: 130ms; }
.countdown.is-visible > i:nth-of-type(2) { transition-delay: 190ms; }
.countdown.is-visible .countdown-item:nth-of-type(3) { transition-delay: 230ms; }
.countdown.is-visible > i:nth-of-type(3) { transition-delay: 290ms; }
.countdown.is-visible .countdown-item:nth-of-type(4) { transition-delay: 330ms; }

/* Event details reveal as one composed frame, then item-by-item. */
.js .details-frame .detail-item {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 650ms ease, translate 720ms var(--ease-elegant), background 240ms ease, box-shadow 240ms ease;
}

.js .details-frame.is-visible .detail-item { opacity: 1; translate: 0 0; }
.details-frame.is-visible .detail-item:nth-child(1) { transition-delay: 180ms, 180ms, 0ms, 0ms; }
.details-frame.is-visible .detail-item:nth-child(2) { transition-delay: 280ms, 280ms, 0ms, 0ms; }
.details-frame.is-visible .detail-item:nth-child(3) { transition-delay: 380ms, 380ms, 0ms, 0ms; }
.details-frame.is-visible .detail-item:nth-child(4) { transition-delay: 480ms, 480ms, 0ms, 0ms; }
.details-frame.is-visible .detail-item:nth-child(5) { transition-delay: 580ms, 580ms, 0ms, 0ms; }

.js .details-frame .detail-icon {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 420ms ease, transform 560ms var(--ease-elegant);
}

.js .details-frame .detail-item:nth-child(2) .detail-icon { transform: scale(0.9) rotate(-7deg); }
.js .details-frame .detail-item:nth-child(3) .detail-icon { transform: scale(0.92) translateY(6px); }
.js .details-frame .detail-item:nth-child(4) .detail-icon { transform: scale(0.92) translateY(8px); }
.js .details-frame.is-visible .detail-icon { opacity: 1; transform: scale(1) rotate(0) translateY(0); transition-delay: 120ms; }

@media (hover: hover) and (pointer: fine) {
  .detail-item:hover {
    translate: 0 -3px !important;
    background: rgba(239, 212, 154, 0.07);
    box-shadow: 0 9px 24px rgba(13, 59, 44, 0.055);
  }
}

/* Color swatches have a single festive entrance, then settle. */
.js .dress-inner .swatch {
  --swatch-enter-angle: -8deg;
  opacity: 0;
  transform: scale(0.75) rotate(var(--swatch-enter-angle));
  transition: opacity 580ms ease, transform 720ms var(--ease-elegant);
}

.js .dress-inner .swatch:nth-child(even) { --swatch-enter-angle: 8deg; }
.js .dress-inner.is-visible .swatch { opacity: 1; transform: scale(1) rotate(0); }
.dress-inner.is-visible .swatch:nth-child(1) { transition-delay: 230ms; }
.dress-inner.is-visible .swatch:nth-child(2) { transition-delay: 320ms; }
.dress-inner.is-visible .swatch:nth-child(3) { transition-delay: 410ms; }
.dress-inner.is-visible .swatch:nth-child(4) { transition-delay: 500ms; }
.dress-inner.is-visible .swatch:nth-child(5) { transition-delay: 590ms; }
.dress-inner.is-visible .swatch:nth-child(6) { transition-delay: 680ms; }

.swatch i { transition: transform 240ms var(--ease-elegant), box-shadow 240ms ease; }
.swatch:hover i { box-shadow: inset 0 0 0 4px var(--emerald-950), inset 0 0 0 5px rgba(255, 250, 240, 0.5), 0 0 0 4px rgba(213, 171, 94, 0.08), 0 8px 22px rgba(0, 15, 10, 0.2); }

.dress-arch {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(720px, 70vw);
  aspect-ratio: 1.25;
  opacity: 0.09;
  border: 1px solid var(--gold-light);
  border-radius: 50% 50% 3rem 3rem / 35% 35% 3rem 3rem;
  pointer-events: none;
  animation: dress-arch-drift 18s ease-in-out infinite alternate;
}

@keyframes dress-arch-drift {
  from { transform: translate(-50%, -50%) rotate(-0.7deg) scale(0.99); }
  to { transform: translate(-50%, calc(-50% - 7px)) rotate(0.7deg) scale(1.01); }
}

/* Venue copy and icon settle in a restrained sequence. */
.js .venue-visual .venue-pin { opacity: 0; }
.js .venue-visual .venue-arch > p { opacity: 0; translate: 0 8px; }
.js .venue-visual.is-visible .venue-pin { animation: venue-pin-arrive 860ms var(--ease-elegant) 260ms both; }
.js .venue-visual.is-visible .venue-arch > p { opacity: 1; translate: 0 0; transition: opacity 600ms ease 530ms, translate 700ms var(--ease-elegant) 530ms; }

@keyframes venue-pin-arrive {
  0% { opacity: 0; transform: translateY(15px) scale(0.96); }
  58% { opacity: 1; transform: translateY(-3px) scale(1); }
  78% { transform: translateY(1px) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.js .venue-copy > * {
  opacity: 0;
  translate: 16px 0;
  transition: opacity 620ms ease, translate 760ms var(--ease-elegant);
}

.js .venue-copy.is-visible > * { opacity: 1; translate: 0 0; }
.venue-copy.is-visible > .section-kicker { transition-delay: 100ms; }
.venue-copy.is-visible > h2 { transition-delay: 190ms; }
.venue-copy.is-visible > .venue-subtitle { transition-delay: 280ms; }
.venue-copy.is-visible > address { transition-delay: 370ms; }
.venue-copy.is-visible > .directions-button { transition-delay: 460ms; }
.directions-button svg { transition: transform 240ms var(--ease-elegant); }
.directions-button:hover svg { transform: translateY(-2px) scale(1.04); }

/* The final card reveals like warm gold foil catching the light. */
.rsvp-card { isolation: isolate; }

.js .rsvp-card.reveal {
  border-color: rgba(239, 212, 154, 0.3);
  transition: opacity 820ms ease, transform 820ms var(--ease-elegant), border-color 760ms ease 180ms;
}

.rsvp-card.is-visible {
  border-color: rgba(239, 212, 154, 0.75);
  animation: rsvp-border-warmth 8s ease-in-out 1800ms infinite;
}

.js .rsvp-card .closing-corner {
  opacity: 0;
  scale: 0.72;
  transition: opacity 600ms ease, scale 760ms var(--ease-elegant);
}

.js .rsvp-card.is-visible .closing-corner { opacity: 0.6; scale: 1; }
.rsvp-card.is-visible .closing-corner-tl { transition-delay: 240ms; }
.rsvp-card.is-visible .closing-corner-tr { transition-delay: 310ms; }
.rsvp-card.is-visible .closing-corner-bl { transition-delay: 380ms; }
.rsvp-card.is-visible .closing-corner-br { transition-delay: 450ms; }

.js .rsvp-card .closing-arch {
  opacity: 0;
  scale: 0 1;
  transform-origin: center top;
  transition: opacity 480ms ease, scale 760ms var(--ease-elegant);
}

.js .rsvp-card.is-visible .closing-arch { opacity: 1; scale: 1; transition-delay: 460ms; }

.js .rsvp-card .rsvp-intro > .section-kicker,
.js .rsvp-card .rsvp-intro > h2,
.js .rsvp-card .rsvp-intro > h2 + p,
.js .rsvp-card .rsvp-intro > .rsvp-date,
.js .rsvp-card .rsvp-intro > .closing-message,
.js .rsvp-card .rsvp-intro > .closing-signature {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 620ms ease, translate 720ms var(--ease-elegant);
}

.js .rsvp-card.is-visible .rsvp-intro > .section-kicker,
.js .rsvp-card.is-visible .rsvp-intro > h2,
.js .rsvp-card.is-visible .rsvp-intro > h2 + p,
.js .rsvp-card.is-visible .rsvp-intro > .rsvp-date,
.js .rsvp-card.is-visible .rsvp-intro > .closing-message,
.js .rsvp-card.is-visible .rsvp-intro > .closing-signature {
  opacity: 1;
  translate: 0 0;
}

.rsvp-card.is-visible .rsvp-intro > .section-kicker { transition-delay: 580ms; }
.rsvp-card.is-visible .rsvp-intro > h2 { transition-delay: 690ms; }
.rsvp-card.is-visible .rsvp-intro > h2 + p { transition-delay: 800ms; }
.rsvp-card.is-visible .rsvp-intro > .rsvp-date { transition-delay: 1040ms; }
.rsvp-card.is-visible .rsvp-intro > .closing-message { transition-delay: 1150ms; }
.rsvp-card.is-visible .rsvp-intro > .closing-signature { transition-delay: 1370ms; }

.js .rsvp-card .signature-line { scale: 0 1; transition: scale 680ms var(--ease-elegant) 1260ms; }
.js .rsvp-card.is-visible .signature-line { scale: 1 1; }

.foil-glimmer {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 1px;
  opacity: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 243, 202, 0.72) 48%, transparent 66%);
  pointer-events: none;
  transform: translateX(-115%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.rsvp-card.is-visible .foil-glimmer { animation: foil-glimmer-pass 8s ease-in-out 2200ms infinite; }

@keyframes foil-glimmer-pass {
  0%, 68% { opacity: 0; transform: translateX(-115%); }
  74% { opacity: 0.18; }
  83% { opacity: 0.68; }
  92%, 100% { opacity: 0; transform: translateX(115%); }
}

@keyframes rsvp-border-warmth {
  0%, 66%, 100% {
    box-shadow: 0 32px 80px rgba(0, 18, 12, 0.34), inset 0 0 0 8px rgba(8, 48, 35, 0.9), inset 0 0 0 9px rgba(213, 171, 94, 0.27);
  }
  80% {
    box-shadow: 0 32px 80px rgba(0, 18, 12, 0.34), 0 0 24px rgba(213, 171, 94, 0.1), inset 0 0 0 8px rgba(8, 48, 35, 0.9), inset 0 0 0 9px rgba(239, 212, 154, 0.38);
  }
}

/* Slow background life and rAF-powered decorative parallax. */
.hero-glow { animation: hero-glow-drift 18s ease-in-out infinite alternate; }
.rsvp-pattern { animation: rsvp-pattern-drift 23s ease-in-out infinite alternate; }
.venue-lattice { animation: venue-pattern-drift 16s ease-in-out infinite alternate; }
.rsvp-section::before { animation: background-circle-left 21s ease-in-out infinite alternate; }
.rsvp-section::after { animation: background-circle-right 24s ease-in-out infinite alternate; }

@keyframes hero-glow-drift { to { rotate: 1.2deg; scale: 1.015; } }
@keyframes rsvp-pattern-drift { to { transform: translate3d(6px, -5px, 0); } }
@keyframes venue-pattern-drift { to { transform: translate3d(5px, 7px, 0) scale(1.015); } }
@keyframes background-circle-left { to { transform: translate3d(8px, 5px, 0) rotate(1deg); } }
@keyframes background-circle-right { to { transform: translate3d(-7px, -5px, 0) rotate(-1deg); } }

[data-parallax] {
  translate: 0 var(--parallax-y, 0px);
  will-change: transform;
}

/* Responsive */
@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    gap: 2rem;
    padding-inline: 4vw;
  }

  .hero-art { width: min(45vw, 540px); }

  .details-frame {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 3rem;
  }

  .detail-item { grid-column: span 2; }
  .detail-item:nth-child(4) { grid-column: 2 / span 2; }
  .detail-item:nth-child(5) { grid-column: 4 / span 2; }
  .detail-item:nth-child(4) { border-left: 0; }
}

@media (max-width: 820px) {
  :root { --header-height: 66px; }

  .section-inner { width: min(100% - 32px, var(--section-width)); }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: min(78vw, 320px);
    padding: calc(var(--header-height) + 1.8rem) 2rem 2.5rem;
    color: var(--ivory);
    background: rgba(6, 41, 31, 0.98);
    border-bottom-left-radius: 1rem;
    box-shadow: var(--shadow-deep);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 200ms ease, visibility 0s linear 220ms, transform 220ms ease;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .primary-nav a { min-height: 43px; padding: 0.8rem 0; }
  .site-header:has(.primary-nav.is-open) .menu-toggle { color: var(--ivory); }

  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 3.7rem;
    padding: calc(var(--header-height) + 3.5rem) 24px 6rem;
    text-align: center;
  }

  .hero-copy {
    width: 100%;
    max-width: 650px;
    min-width: 0;
    justify-self: center;
    padding: 0;
  }

  .hero-copy .ornament-line { margin-inline: auto; }
  .hero-copy .ornament-line::before { display: block; }
  .hero-copy h2 i { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { width: min(80vw, 540px); }
  .scroll-cue { display: none; }

  .countdown { gap: 0.6rem; }
  .countdown > i { display: none; }
  .countdown-item { width: clamp(92px, 21vw, 140px); }

  .venue-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .venue-copy { grid-row: 1; }
  .venue-subtitle { margin-inline: auto; }

  .rsvp-wrap { max-width: 720px; }
}

@media (max-width: 680px) {
  .section-pad { padding-block: 5rem; }
  .section-heading { margin-bottom: 2.7rem; }

  .details-frame {
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
    padding: 1.5rem 1rem;
  }

  .detail-item,
  .detail-item:nth-child(4),
  .detail-item:nth-child(5) {
    grid-column: auto;
    padding: 1.6rem 0.7rem;
  }

  .detail-item + .detail-item { border-left: 0; }
  .detail-item:nth-child(even) { border-left: 1px solid rgba(169, 119, 48, 0.22); }
  .detail-item:nth-child(n + 3) { border-top: 1px solid rgba(169, 119, 48, 0.22); }
  .detail-item:last-child { grid-column: 1 / -1; border-left: 0; }

  .swatches {
    display: grid;
    max-width: 390px;
    grid-template-columns: repeat(3, 1fr);
    margin-inline: auto;
    row-gap: 1.7rem;
  }

  .swatch i { width: 56px; }
}

@media (max-width: 520px) {
  .section-inner { width: min(100% - 28px, var(--section-width)); }

  .hero {
    gap: 3.2rem;
    padding: calc(var(--header-height) + 2.6rem) 18px 5rem;
  }

  .hero-copy h2 span:first-child { font-size: clamp(3.3rem, 17vw, 4.7rem); }
  .hero-copy h2 span:last-child { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-copy h2 i { font-size: 2.7rem; }
  .hero-meta p { font-size: 0.69rem; letter-spacing: 0.045em; }
  .hero-meta strong { display: block; }
  .hero-meta strong::after { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .hero-actions .button { min-width: 0; padding-inline: 0.75rem; font-size: 0.65rem; }
  .hero-art { width: min(87vw, 440px); }
  .art-arch { inset: -12px -12px 11%; }
  .dress-arch { width: 90vw; }

  body.invitation-open .hero-art img { animation-name: hero-art-float-mobile; }

  .countdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 1.2rem;
    max-width: 310px;
    margin-inline: auto;
  }

  .countdown-item { width: 126px; }

  .rsvp-card { padding: 4.8rem 1.5rem 4rem; }
  .closing-corner { width: 44px; height: 44px; }
  .closing-corner-tl { top: 15px; left: 15px; }
  .closing-corner-tr { top: 15px; right: 15px; }
  .closing-corner-bl { bottom: 15px; left: 15px; }
  .closing-corner-br { right: 15px; bottom: 15px; }
  .dress-section::before { inset: 12px; }
}

@keyframes hero-art-float-mobile {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

@media (max-width: 380px) {
  .invitation-card {
    min-height: calc(100svh - 24px);
    padding-inline: 1.2rem;
  }

  .gate-content {
    min-height: calc(100svh - 24px - clamp(4rem, 10svh, 7.2rem));
  }

  .card-corner { width: 58px; height: 58px; }
  .gate-content h1 span { font-size: clamp(2.55rem, 13vw, 3.8rem); }
  .hero { padding-inline: 14px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .countdown-item { width: min(37vw, 118px); }
  .detail-item { padding-inline: 0.35rem; }
  .detail-item p { font-size: 0.68rem; }
  .attire-note span { display: none; }
  .rsvp-card { padding-inline: 1.25rem; }
  .rsvp-date { padding-inline: 0.5rem; }
}

@media (max-height: 720px) {
  .invitation-card {
    min-height: calc(100svh - 24px);
    padding-block: 1.35rem;
  }

  .gate-content {
    min-height: calc(100svh - 24px - 2.7rem);
  }

  .arabic { font-size: 1.1rem; line-height: 1.35; }
  .transliteration { font-size: 0.96rem; }
  .translation { font-size: 0.63rem; }
  .floral-divider.compact { margin-block: 0.4rem; }
  .gate-to { margin-top: 0.12rem; }
  .gate-content h1 small { margin-bottom: 0.45rem; font-size: 0.92rem; }
  .gate-content h1 span { font-size: clamp(2.75rem, 10svh, 4rem); }
  .gate-content h1 em { margin-block: 0.1rem; }
  .gate-date { margin-block: 0.8rem; }
  .open-button { min-height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .ambient-petal-layer,
  .opening-particle { display: none !important; }

  [data-parallax] {
    translate: 0 0 !important;
    will-change: auto;
  }

  .hero-art img,
  .art-arch,
  .art-flowers,
  .arch-star { transform: none !important; }

  .dress-arch { transform: translate(-50%, -50%) !important; }
}

@media (pointer: fine) {
  * {
    scrollbar-color: var(--gold-dark) var(--cream);
    scrollbar-width: thin;
  }

  *::-webkit-scrollbar { width: 10px; }
  *::-webkit-scrollbar-track { background: var(--cream); }
  *::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-dark)); border: 3px solid var(--cream); border-radius: 999px; }
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-art img,
  .hero-art .art-arch,
  .hero-art .art-flowers {
    transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 0);
  }

  .hero-art .arch-star {
    translate: var(--depth-x, 0px) var(--depth-y, 0px);
  }
}
