/* ── SELF-HOSTED FONTS ── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/karla.woff2') format('woff2');
}

@font-face {
  font-family: 'Scheherazade New';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/scheherazade-new-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Scheherazade New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/scheherazade-new-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Scheherazade New';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/scheherazade-new-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F;
}

@font-face {
  font-family: 'Scheherazade New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/scheherazade-new-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F;
}

/* ── DESIGN TOKENS (Midnight Gold RGB) ── */
:root {
  --cream-rgb: 242, 229, 212;
  /* Champagne Cream */
  --gold-rgb: 234, 190, 96;
  /* Rich Gold */
  --copper-rgb: 184, 126, 78;
  /* Warm Bronze */
  --brown-rgb: 44, 18, 54;
  /* Deep Plum */
  --maroon-rgb: 102, 36, 76;
  /* Velvet Wine */
  --cream-dark-rgb: 212, 194, 172;
  /* Soft Tan */
  --cream-light-rgb: 250, 244, 232;
  /* Light Ivory */
  --ink-rgb: 12, 5, 20;
  /* Midnight Embers */

  --cream: rgb(var(--cream-rgb));
  --gold: rgb(var(--gold-rgb));
  --copper: rgb(var(--copper-rgb));
  --brown: rgb(var(--brown-rgb));
  --maroon: rgb(var(--maroon-rgb));
  --cream-dark: rgb(var(--cream-dark-rgb));
  --cream-light: rgb(var(--cream-light-rgb));
  --ink: rgb(var(--ink-rgb));
  --glass: rgba(255, 255, 255, 0.08);

  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans: 'Montserrat', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  background: linear-gradient(135deg, rgba(var(--ink-rgb), 0.98) 0%, rgba(44, 18, 54, 0.96) 28%, rgba(var(--maroon-rgb), 0.9) 62%, rgba(var(--ink-rgb), 0.99) 100%);
  color: var(--cream-light);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative
}

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.28
}

body::before {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.24);
  top: -120px;
  left: -140px
}

body::after {
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(var(--maroon-rgb), 0.18);
  bottom: -140px;
  right: -180px
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
textarea,
select {
  font-family: var(--ff-sans)
}

::-webkit-scrollbar {
  width: 6px
}

::-webkit-scrollbar-track {
  background: var(--cream-dark)
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.35
  }
}

.fade-up {
  animation: fadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both
}

.d1 {
  animation-delay: 0.1s
}

.d2 {
  animation-delay: 0.22s
}

.d3 {
  animation-delay: 0.36s
}

.d4 {
  animation-delay: 0.5s
}

.d5 {
  animation-delay: 0.65s
}

/* ── HEADER (Floating Glassmorphic Pill) ── */
#site-header {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1040px);
  z-index: 100;
  background: rgba(40, 18, 28, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  border-radius: 999px;
  padding: 0 1.4rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle {
  display: none;
}

#site-header.scrolled {
  top: 1rem;
  width: 85%;
  max-width: 920px;
  background: rgba(var(--cream-light-rgb), 0.88);
  border-color: rgba(var(--gold-rgb), 0.35);
  box-shadow: 0 15px 35px rgba(var(--brown-rgb), 0.12);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  gap: 1rem;
  position: relative;
}

.monogram {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.monogram {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.monogram:hover {
  color: var(--cream-light);
  transform: scale(1.05);
}

#site-header.scrolled .monogram {
  color: var(--maroon);
}

#site-header.scrolled .monogram:hover {
  color: var(--copper);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: nowrap;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
}

.menu-toggle {
  display: none;
}

.menu-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  background: none;
  border: none;
  color: var(--cream-light);
  font-size: 1.05rem;
  cursor: pointer;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  padding: 8px 10px;
  position: relative;
  transition: color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-btn {
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(var(--gold-rgb), 0.06);
  box-shadow: inset 0 -6px 18px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.035);
}

.nav-btn.active {
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.06));
  color: var(--gold);
  box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.06);
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: var(--gold);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:hover::after,
.nav-btn.active::after {
  width: 100%;
}

/* Desktop: show menu-toggle only hidden; on small screens it's visible via media query */
@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  .monogram {
    position: static;
    transform: none;
  }
}

/* Tighten header and menu styles for very small screens */
@media (max-width: 480px) {
  #site-header {
    top: 0.6rem;
    padding: 0 0.9rem;
  }

  .header-inner {
    height: 52px;
    gap: 0.5rem;
  }

  .nav-links {
    padding: 6px 8px;
    max-height: 44px;
  }

  .nav-links .nav-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .menu-toggle {
    display: none !important;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(var(--gold-rgb), 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
  }

  .monogram {
    left: 10px;
    font-size: 1rem;
  }
}

.nav-btn:hover,
.nav-btn.active {
  color: var(--cream-light);
}

#site-header.scrolled .nav-btn {
  color: rgba(var(--brown-rgb), 0.75);
}

#site-header.scrolled .nav-btn::after {
  background-color: var(--maroon);
}

#site-header.scrolled .nav-btn:hover,
#site-header.scrolled .nav-btn.active {
  color: var(--maroon);
}

/* ── SHARED ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 10px;
  width: 100%;
  max-width: 320px;
}

.divider-line {
  flex: 1;
  height: 1px
}

.divider-line.l {
  background: linear-gradient(to right, transparent, var(--gold))
}

.divider-line.r {
  background: linear-gradient(to left, transparent, var(--gold))
}

.divider-glyph {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  font-family: var(--ff-serif)
}

.bismillah-wrap {
  text-align: center;
  position: relative;
  z-index: 2
}

.bismillah {
  font-size: 2.6rem;
  font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
  color: var(--gold);
  letter-spacing: normal;
  opacity: 0.88;
  line-height: 1.2;
  display: block;
}

/* Responsive horizontal scrolling navigation (touch-friendly) */
@media (max-width: 900px) {
  .nav-links {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding: 0.25rem 0;
    scroll-snap-type: x proximity;
  }

  .nav-links .nav-btn {
    white-space: nowrap;
    padding: 8px 12px;
    scroll-snap-align: start;
  }

  /* subtle custom scrollbar for WebKit browsers */
  .nav-links::-webkit-scrollbar {
    height: 6px;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(var(--gold-rgb), 0.18);
    border-radius: 3px;
  }

  /* Fade indicators when nav is scrollable */
  .nav-links.scrollable::before,
  .nav-links.scrollable::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    pointer-events: none;
    z-index: 6;
  }

  .nav-links.scrollable::before {
    left: 0;
    background: linear-gradient(to right, rgba(var(--ink-rgb), 0.95), rgba(var(--ink-rgb), 0));
  }

  .nav-links.scrollable::after {
    right: 0;
    background: linear-gradient(to left, rgba(var(--ink-rgb), 0.95), rgba(var(--ink-rgb), 0));
  }
}

.bismillah-meaning {
  display: block;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  opacity: 0.45;
  margin-top: 0.35rem;
}

.page-header {
  text-align: center;
  margin-bottom: 10px;
  position: relative
}

.page-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--gold);
  letter-spacing: -0.01em;
}

.page-header::after {
  content: '';
  display: block;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.9), transparent);
  margin: 1.1rem auto 0
}

.page-subtitle {
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(var(--cream-rgb), 0.9)
}

.henna-box {
  position: relative;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.henna-box::before,
.henna-box::after,
.henna-box .corner-bl,
.henna-box .corner-br {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.henna-box::before {
  top: 8px;
  left: 8px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.henna-box::after {
  top: 8px;
  right: 8px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.henna-box .corner-bl {
  bottom: 8px;
  left: 8px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.henna-box .corner-br {
  bottom: 8px;
  right: 8px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.flower-svg-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 0.5rem
}

/* ══════════════════════════════════════════
   HERO — premium arched invite card layout
══════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--ink-rgb), 0.98) 0%, rgba(var(--ink-rgb), 0.92) 35%, rgba(var(--maroon-rgb), 0.92) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.16;
  pointer-events: none;
  will-change: transform;
}

.hero-bg svg {
  width: 120%;
  height: 120%;
  max-width: 900px;
  transform-origin: center;
  animation: slowSpin 240s linear infinite;
  will-change: transform;
}

@keyframes slowSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 25%, rgba(12, 5, 20, 0.85) 100%);
}

/* Floating ambient orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: blur(100px);
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero-orb-1 {
  width: 350px;
  height: 350px;
  background: rgba(var(--gold-rgb), 0.32);
  top: -10%;
  left: 15%;
  animation: orbFloat1 25s infinite alternate ease-in-out;
}

.hero-orb-2 {
  width: 450px;
  height: 450px;
  background: rgba(var(--maroon-rgb), 0.2);
  bottom: -10%;
  right: 10%;
  animation: orbFloat2 30s infinite alternate ease-in-out;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(var(--ink-rgb), 0.4);
  top: 40%;
  left: 45%;
  animation: orbFloat3 22s infinite alternate ease-in-out;
}

@keyframes orbFloat1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(120px, 90px) scale(1.15);
  }
}

@keyframes orbFloat2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-140px, -80px) scale(0.9);
  }
}

@keyframes orbFloat3 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(80px, -110px) scale(1.1);
  }
}

/* Arched Invite Card Frame */
.hero-card {
  position: relative;
  z-index: 5;
  /* background: linear-gradient(180deg, rgba(18,8,12,0.6), rgba(36,12,36,0.65)); */
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border-radius: 34px;
  padding: 3.6rem 2.6rem 3.2rem 2.6rem;
  max-width: 420px;
  width: min(92%, 420px);
  /* box-shadow: 0 40px 120px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03); */
  text-align: center;
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* border: 1px solid rgba(var(--gold-rgb),0.18); */
}

.hero-card::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 10px;
  border-radius: 26px;
  border: 1px solid rgba(var(--gold-rgb), 0.06);
  pointer-events: none;
  box-shadow: 0 0 28px rgba(var(--gold-rgb), 0.03) inset;
}

.hero-card::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  bottom: 14px;
  border-radius: 22px;
  border: 1px solid rgba(var(--gold-rgb), 0.12);
  pointer-events: none;
}

/* Decorative side lanterns (subtle) */
.hero-card .lantern {
  position: absolute;
  top: 34px;
  width: 52px;
  height: 92px;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.06), rgba(0, 0, 0, 0.08));
  border: 1px solid rgba(var(--gold-rgb), 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(var(--gold-rgb), 0.06);
  pointer-events: none;
}

.hero-card .lantern.l {
  left: -28px;
  transform: translateX(-6px)
}

.hero-card .lantern.r {
  right: -28px;
  transform: translateX(6px)
}

.hero-card .bismillah-wrap {
  margin-bottom: 2rem;
  width: 100%;
}

.hero-card .bismillah {
  font-size: 2.8rem;
  filter: drop-shadow(0 2px 10px rgba(var(--gold-rgb), 0.3));
}

.hero-card .bismillah-meaning {
  font-size: 0.65rem;
  margin-top: 0.5rem;
  opacity: 0.5;
}

/* Card content typography */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-name {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.6rem, 10.5vw, 5.6rem);
  color: var(--cream-light);
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-amp {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin: 0.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-amp::before,
.hero-amp::after {
  content: '';
  height: 1px;
  width: 25px;
  background: rgba(var(--gold-rgb), 0.25);
  display: inline-block;
  margin: 0 12px;
}

.hero-date-line {
  margin-top: 1.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  font-weight: 400;
  line-height: 1.6;
}

.hero-subtitle {
  margin-top: 0.9rem;
  max-width: 360px;
  font-size: 0.8rem;
  line-height: 1.8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  animation: pulse 2.4s ease infinite;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   COUNTDOWN — card-based countdown blocks
══════════════════════════════════════════ */
#sec-countdown {
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.98) 0%, rgba(var(--maroon-rgb), 0.95) 100%);
  padding: 20px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#sec-countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 4%, rgba(var(--gold-rgb), 0.12) 0%, transparent 36%),
    radial-gradient(circle at 20% 20%, rgba(var(--gold-rgb), 0.08), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(var(--gold-rgb), 0.06), transparent 24%);
  pointer-events: none;
}

#sec-countdown::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--gold-rgb), 0.14);
  border-radius: 40px;
  pointer-events: none;
}

.countdown-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  padding: 2rem 1.5rem 1.8rem;
  border-radius: 36px;
  background: rgba(10, 5, 14, 0.45);
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  box-shadow: 0 36px 95px rgba(0, 0, 0, 0.42);
}

.countdown-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--gold-rgb), 0.55), transparent);
  margin-top: -0.75rem;
}

.cd-eyebrow {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.countdown {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: stretch;
  align-items: stretch;
  gap: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 2rem;
  width: 100%;
}

.cd-card {
  background: linear-gradient(180deg, rgba(30, 12, 34, 0.92), rgba(28, 10, 32, 0.7));
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  border-radius: 28px;
  padding: 1.8rem 1.1rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: visible;
}

.cd-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--gold-rgb), 0.08);
  border-radius: 20px;
  pointer-events: none;
}

.cd-card::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(var(--gold-rgb), 0.98), rgba(var(--gold-rgb), 0.55) 45%, rgba(0, 0, 0, 0.12) 70%);
  box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.24);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  pointer-events: none;
}

.cd-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--gold-rgb), 0.4);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(var(--gold-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.cd-num {
  font-family: var(--ff-serif);
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--cream-light);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(var(--gold-rgb), 0.07);
}

.cd-label {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.75rem;
  font-weight: 700;
  opacity: 0.95;
}

.cd-sub-ornate {
  position: relative;
  z-index: 2;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 4rem 2rem;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(46, 12, 38, 0.8), rgba(26, 6, 20, 0.9));
  border: 2px solid rgba(var(--gold-rgb), 0.6);
  box-shadow: inset 0 0 20px rgba(var(--gold-rgb), 0.15), 0 15px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 600px;
}

.cd-sub-ornate::before,
.cd-sub-ornate::after {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background: rgba(var(--gold-rgb), 0.3);
}

.cd-sub-ornate::before {
  left: 15px;
}

.cd-sub-ornate::after {
  right: 15px;
}

.ornament-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  padding: 0 10px;
}

.leaf-left {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.leaf-right {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.cd-sub-day {
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.cd-line-dash {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: rgba(var(--gold-rgb), 0.5);
}

.cd-sub-date {
  font-family: var(--ff-serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.cd-sub-bottom-icon {
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width:900px) {
  .countdown-wrap {
    max-width: 720px;
    padding: 1.8rem 1.2rem 1.6rem
  }
}

@media (max-width:700px) {
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem
  }

  .cd-card {
    padding: 1rem 0.45rem;
    min-height: 110px;
    border-radius: 18px
  }

  .cd-card::after {
    right: 8px;
    width: 10px;
    height: 10px
  }

  .cd-sub-ornate {
    padding: 1.8rem 1.5rem 1.5rem;
    border-radius: 30px;
    max-width: 90%;
  }

  .cd-sub-date {
    font-size: 2.2rem;
  }
}

@media (max-width:520px) {
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem
  }

  .cd-card {
    padding: 0.8rem 0.3rem;
    min-height: 96px;
    border-radius: 16px
  }

  .cd-num {
    font-size: 1.45rem
  }

  .cd-label {
    font-size: 0.54rem;
    margin-top: 0.35rem;
    letter-spacing: 0.12em
  }

  .cd-sub-ornate {
    padding: 1.8rem 1.5rem 1.2rem;
    border-radius: 24px;
    margin-top: 2rem;
    max-width: 100%;
  }

  .cd-sub-date {
    font-size: 1.8rem;
  }

  .cd-sub-day {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
  }

  .leaf-left,
  .leaf-right {
    display: none;
  }
}



/* ══════════════════════════════════════════
   STORY
══════════════════════════════════════════ */
/* ── SCROLL REVEAL ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── THE COUPLE SECTION ── */
#sec-couple {
  padding: 20px 10px;
  background: linear-gradient(180deg, rgba(24, 9, 30, 0.98) 0%, rgba(36, 12, 40, 0.94) 100%);
  position: relative;
}

.couple-section-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0 1rem;
}

.ornamental-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.album-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.album-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(var(--gold-rgb), 0.16);
  border-radius: 20px;
  pointer-events: none;
}

.album-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
  border-color: rgba(var(--gold-rgb), 0.55);
}

.album-card.couple-card {
  grid-column: 1 / -1;
  max-width: 100%;
}

.album-card.profile-card {
  max-width: 100%;
}

.album-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(var(--gold-rgb), 0.14);
  position: relative;
}

.album-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.album-card:hover .album-img-wrap img {
  transform: scale(1.05);
}

.album-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.2rem;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 5, 20, 0.65) 100%);
}

.album-overlay span {
  background: rgba(34, 10, 43, 0.82);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.album-details {
  z-index: 2;
  width: 100%;
}

.album-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--cream-light);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.album-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}

.album-tag {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: block;
}

.album-parents {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
  padding-top: 0.75rem;
  width: 100%;
}

.album-parents .relation {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.85);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.25rem;
}

.album-parents .parent-names {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--cream-light);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.album-parents .origin {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  display: block;
}

.ornamental-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ══════════════════════════════════════════
   STORY
══════════════════════════════════════════ */
#sec-story {
  padding: 20px 10px;
  background: linear-gradient(180deg, rgba(18, 7, 27, 0.98) 0%, rgba(37, 14, 40, 0.96) 100%);
}

.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.tl-rail-wrap {
  border-left: 1px solid rgba(var(--gold-rgb), 0.45);
  margin-left: 7px;
  padding-left: 1.75rem;
}

.tl-item {
  position: relative;
  padding-bottom: 3rem;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  margin-left: calc(-1.75rem - 7px);
}

.tl-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(var(--gold-rgb), 0.9);
  background: rgba(var(--cream-rgb), 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tl-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.95);
}

.tl-year {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--ff-sans);
  line-height: 1;
}

.tl-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  border-radius: 22px;
  padding: 10px 0px 0px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-top: 0.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tl-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(var(--gold-rgb), 0.12);
  border-radius: 18px;
  pointer-events: none;
}

.tl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.tl-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: var(--cream-light);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.tl-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(var(--cream-rgb), 0.85);
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════
   EVENTS
══════════════════════════════════════════ */
#sec-events {
  padding: 20px 10px;
  max-width: 1000px;
  margin: 0 auto;
}

.events-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.event-card {
  background: linear-gradient(180deg, #1f0b1b 0%, #3a1626 40%, #170710 100%);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(var(--gold-rgb), 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(var(--maroon-rgb), 0.14), transparent 30%);
  pointer-events: none;
}

.event-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(var(--gold-rgb), 0.3);
  border-radius: 14px;
  pointer-events: none;
  z-index: 1;
}

.event-card:hover {
  transform: translateY(-10px);
  border-color: rgba(var(--gold-rgb), 0.65);
  box-shadow: 0 34px 75px rgba(0, 0, 0, 0.3);
}

.event-card-content {
  position: relative;
  z-index: 2;
  padding: 20px 5px;
}

.event-card-label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.event-header-center {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.event-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  background: rgba(30, 10, 20, 0.6);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--ff-serif);
}

.event-name {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.event-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.event-info-list {
  display: flex;
  flex-direction: column;
  margin: 10px 0px 0px;
  padding: 0 1rem;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
  color: rgba(var(--cream-rgb), 0.9);
}

.event-detail.no-border {
  border-bottom: none;
}

.event-detail-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-detail-text {
  font-size: 1.05rem;
  line-height: 1.4;
  font-family: var(--ff-sans);
}

.event-detail-sub {
  display: block;
  color: rgba(var(--cream-rgb), 0.73);
  font-size: 0.84rem;
  margin-top: 0.2rem;
}

.event-desc {
  color: rgba(var(--cream-rgb), 0.86);
  font-size: 0.96rem;
  line-height: 1.85;
}

.event-action-wrap {
  display: flex;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 1rem;
}

.event-location-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.8rem;
  background: rgba(20, 5, 15, 0.4);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  border-radius: 25px;
  color: var(--gold);
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.event-location-btn:hover {
  background: rgba(var(--gold-rgb), 0.1);
  transform: translateY(-2px);
}

.event-location-btn .loc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.event-card-media {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  /* Scalloped cutout mask */
}

.event-media-mehndi {
  background-image: url('../assets/images/10047.jpg');
}

.event-media-wedding {
  background-image: url('../assets/images/10048.jpg');
}

.event-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 1.3rem 0 1.6rem;
}

.event-footer-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  color: var(--gold);
  background: rgba(var(--cream-rgb), 0.06);
}

.event-card.event-mehndi {
  background: linear-gradient(180deg, rgba(63, 13, 46, 0.98) 0%, rgba(103, 33, 72, 0.98) 100%);
}

.event-card.event-wedding {
  background: linear-gradient(180deg, rgba(37, 21, 46, 0.98) 0%, rgba(82, 36, 66, 0.98) 100%);
}

.event-card.event-reception {
  background: linear-gradient(180deg, rgba(31, 13, 40, 0.98) 0%, rgba(96, 33, 63, 0.98) 100%);
}

.dress-box {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(var(--ink-rgb), 0.96) 0%, rgba(var(--maroon-rgb), 0.9) 100%);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: 24px;
  color: var(--cream-light);
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.dress-box::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(var(--gold-rgb), 0.16);
  border-radius: 20px;
  pointer-events: none;
}

.dress-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.dress-body {
  font-size: 0.95rem;
  line-height: 1.85;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .event-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-card-crest {
    margin-top: 1rem;
  }

  .event-action {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 520px) {
  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    border-radius: 24px;
  }

  .event-card-body {
    padding-bottom: 3.5rem;
  }
}

/* ══════════════════════════════════════════
   TRAVEL
══════════════════════════════════════════ */
#sec-travel {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, rgba(18, 7, 27, 0.98) 0%, rgba(37, 14, 40, 0.96) 100%)
}

.travel-inner {
  max-width: 860px;
  margin: 0 auto
}

.section-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.35);
  padding-bottom: 0.5rem;
}

.transport-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 3.5rem;
}

.transport-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 2.25rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.transport-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(var(--gold-rgb), 0.12);
  border-radius: 14px;
  pointer-events: none;
}

.transport-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  border-color: rgba(var(--gold-rgb), 0.45);
}

.transport-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--gold-rgb), 0.18);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.transport-card:hover .transport-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(var(--copper-rgb), 0.2);
  border-color: rgba(var(--copper-rgb), 0.35);
}

.transport-mode {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream-light);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.transport-text {
  font-size: 0.88rem;
  line-height: 1.8;
  opacity: 0.82;
  color: rgba(var(--cream-rgb), 0.92);
}

.hotel-list {
  margin-bottom: 3rem
}

.hotel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.hotel-row:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(var(--gold-rgb), 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hotel-name {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream-light)
}

.hotel-stars {
  font-size: 0.73rem;
  color: var(--gold);
  margin: 0.1rem 0
}

.hotel-note {
  font-size: 0.76rem;
  opacity: 0.72;
  color: rgba(var(--cream-rgb), 0.9)
}

.hotel-dist {
  font-size: 0.7rem;
  color: var(--gold);
  text-align: right;
  flex-shrink: 0;
  margin-left: 1rem
}

.tips-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 3rem
}

.tip-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0.78;
  color: rgba(var(--cream-rgb), 0.92)
}

.tip-bullet {
  color: var(--gold);
  flex-shrink: 0
}

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */
#sec-gallery {
  padding: 20px 10px;
  max-width: 1100px;
  margin: 0 auto
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.gallery-thumb {
  width: 100%;
  display: block;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
  aspect-ratio: 3/4;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-cell {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  overflow: hidden
}

.gallery-thumb {
  width: 100%;
  display: block;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
}

.gallery-thumb:hover {
  transform: scale(1.02)
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(var(--brown-rgb), 0.7));
  padding: 1rem 0.75rem 0.75rem;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-thumb:hover .gallery-label {
  opacity: 1
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 15, 22, 0.94);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex
}

.lb-inner {
  width: min(500px, 90vw);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.lb-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream)
}

.lb-sub {
  font-size: 0.7rem;
  color: var(--cream);
  opacity: 0.45;
  letter-spacing: 0.1em
}

/* ══════════════════════════════════════════
   RSVP
══════════════════════════════════════════ */
#sec-rsvp {
  padding: 20px 10px;
  background: linear-gradient(180deg, rgba(12, 5, 20, 0.98) 0%, rgba(26, 11, 33, 0.96) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.rsvp-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.95fr);
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(var(--ink-rgb), 0.14));
  backdrop-filter: blur(10px);
}

.rsvp-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 38px;
  box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.12);
}

.rsvp-left,
.rsvp-right {
  position: relative;
}

.rsvp-left {
  background: linear-gradient(135deg, rgba(18, 7, 27, 0.96) 0%, rgba(44, 18, 54, 0.96) 100%);
  padding: 5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(var(--gold-rgb), 0.1);
}

.rsvp-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(var(--gold-rgb), 0.08), transparent 22%);
  pointer-events: none;
}

.rsvp-left-inner {
  position: relative;
  z-index: 1;
}

.rsvp-left-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.rsvp-left-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--cream-light);
  line-height: 1.02;
  margin-bottom: 0.95rem;
}

.rsvp-left-date {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.8);
  margin-bottom: 1.8rem;
}

.rsvp-left-note {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(var(--cream-rgb), 0.82);
  line-height: 1.95;
  max-width: 420px;
  margin-bottom: 2.25rem;
}

.rsvp-deadline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  background: rgba(var(--gold-rgb), 0.08);
}

.rsvp-deadline-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.75);
}

.rsvp-deadline-date {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
}

.rsvp-right {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(var(--gold-rgb), 0.08) 100%);
  opacity: 0.2;
  pointer-events: none;
}

#rsvp-form-wrap {
  width: 100%;
  max-width: 520px;
}

.field-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.75);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.field-group {
  margin-bottom: 1.35rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--gold-rgb), 0.12);
  border-radius: 16px;
  font-size: 0.95rem;
  color: var(--cream-light);
  outline: none;
  font-family: var(--ff-sans);
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(var(--cream-rgb), 0.6);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--gold-rgb), 0.4);
  box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.14);
}

.form-input option {
  background: rgb(37 25 41);
  color: var(--cream-light);
}

select.form-input {
  cursor: pointer;
}

textarea.form-input {
  min-height: 130px;
  resize: vertical;
}

.attend-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.attend-btn {
  min-height: 56px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  color: rgba(var(--cream-rgb), 0.9);
  padding: 0.95rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  font-family: var(--ff-sans);
}

.attend-btn:hover {
  background: rgba(var(--gold-rgb), 0.08);
  border-color: rgba(var(--gold-rgb), 0.35);
}

.attend-btn.selected {
  background: linear-gradient(135deg, rgba(var(--maroon-rgb), 0.95), rgba(var(--gold-rgb), 0.2));
  color: var(--cream);
  border-color: rgba(var(--gold-rgb), 0.8);
  box-shadow: 0 12px 30px rgba(var(--maroon-rgb), 0.2);
}

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, rgba(var(--maroon-rgb), 0.96), rgba(var(--gold-rgb), 0.95));
  color: var(--cream-light);
  border: none;
  padding: 1.1rem 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 30px rgba(var(--maroon-rgb), 0.24);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(var(--maroon-rgb), 0.3);
}

.thankyou {
  padding: 5rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 1/-1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(var(--gold-rgb), 0.2);
}

.thankyou-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.thankyou-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--maroon);
  margin-bottom: 1rem;
}

.thankyou-msg {
  max-width: 480px;
  opacity: 0.68;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--brown);
}

.thankyou-sig {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 0.5rem;
}

@media(max-width:900px) {
  #site-header {
    width: min(96%, 1040px);
    padding: 0 1rem
  }

  .header-inner {
    height: auto;
    padding: 0.75rem 0;
    flex-wrap: wrap;
    justify-content: center
  }

  .nav-links {
    justify-content: center;
    gap: 0.8rem 1rem
  }
}

@media(max-width:700px) {
  .rsvp-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rsvp-left {
    padding: 2.5rem 1.6rem;
    border-right: none;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
  }

  .rsvp-left::after {
    background: radial-gradient(circle at 95% 15%, rgba(var(--gold-rgb), 0.06), transparent 28%);
  }

  .rsvp-right {
    padding: 2.5rem 1.6rem;
    min-height: auto;
  }

  #rsvp-form-wrap {
    width: 100%;
  }

  .field-group {
    margin-bottom: 1.25rem;
  }

  .form-input {
    border-radius: 14px;
  }

  .attend-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .attend-btn {
    min-height: 54px;
  }

  .form-submit {
    padding: 1rem 1.25rem;
  }

  .thankyou {
    padding: 4rem 2rem;
  }

  .hero-card {
    padding: 3.6rem 1.4rem 3rem 1.4rem;
    border-radius: 120px 120px 24px 24px;
  }

  .hero-name {
    font-size: clamp(2.7rem, 11vw, 3.8rem);
  }

  .hero-date-line {
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }

  .hero-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
}

/* ══════════════════════════════════════════
   WISHES
══════════════════════════════════════════ */
#sec-wishes {
  padding: 20px 10px;
  max-width: 860px;
  margin: 0 auto;
}

.wishes-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.wish-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all 0.4s ease;
}

.wish-quote-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.18
}

.wish-msg {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cream-light);
  margin-bottom: 1rem
}

.wish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.wish-name {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--gold)
}

.wish-date {
  font-size: 0.68rem;
  opacity: 0.55;
  color: rgba(var(--cream-rgb), 0.82)
}

.wishes-empty {
  text-align: center;
  opacity: 0.38;
  padding: 0px;
}

.empty-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 1rem
}

.success-msg {
  color: var(--gold);
  font-size: 0.8rem;
  animation: fadeIn 0.4s ease;
  display: none
}

.success-msg.show {
  display: inline
}

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, rgba(18, 7, 27, 0.97) 0%, rgba(53, 17, 54, 0.95) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-inner {
  position: relative;
  z-index: 1
}

.cta-eyebrow {
  font-family: var(--ff-serif);
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem
}

.cta-date {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--cream-light);
  font-weight: 300
}

.cta-loc {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.85)
}

.cta-btn {
  margin-top: 2rem;
  background: none;
  border: 1px solid rgba(var(--gold-rgb), 0.85);
  color: var(--gold);
  padding: 0.75rem 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.cta-btn:hover {
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--cream-light)
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: linear-gradient(180deg, rgba(44, 18, 54, 0.96), rgba(18, 7, 27, 0.98));
  color: var(--cream-light);
  text-align: center;
  padding: 20px 10px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.18);
  position: relative;
}

.footer-top-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2.5rem;
  width: 100%;
  max-width: 200px;
  opacity: 0.7;
}

.footer-top-divider .divider-line {
  flex: 1;
  height: 1px;
}

.footer-top-divider .divider-line.l {
  background: linear-gradient(to right, transparent, var(--gold));
}

.footer-top-divider .divider-line.r {
  background: linear-gradient(to left, transparent, var(--gold));
}

.footer-top-divider .divider-glyph {
  color: var(--gold);
  font-size: 0.8rem;
}

.footer-name {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 2.25rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.footer-date {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  margin-bottom: 2.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-nav a {
  color: var(--cream);
  opacity: 0.55;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-nav a:hover::after {
  width: 100%;
  left: 0;
}

.footer-blessing {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.75;
  margin-top: 1.5rem;
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media(max-width:700px) {
  #site-header {
    width: 92%;
    padding: 0 1.15rem;
    top: 0.95rem;
    border-radius: 30px;
  }

  #site-header.scrolled {
    width: 92%;
    top: 0.65rem;
  }

  .header-inner {
    position: relative;
    height: auto;
    gap: 0.5rem;
    padding: 0.85rem 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  .monogram {
    font-size: 1.1rem;
  }

  .menu-toggle:hover {
    transform: scale(1.03);
    background: rgba(var(--brown-rgb), 0.24);
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--cream);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .menu-toggle span+span {
    margin-top: 5px;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }


  .nav-links.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-btn {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    padding: 0.7rem 0.9rem;
    white-space: nowrap;
    width: calc(100% - 1.8rem);
    text-align: center;
    border-radius: 14px;
  }

  .nav-btn:hover,
  .nav-btn.active {
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-btn::after {
    display: none;
  }

  .tl-item.left,
  .tl-item.right {
    justify-content: flex-end
  }

  .tl-line {
    left: 12px
  }

  .tl-dot {
    left: 12px
  }

  .tl-card {
    width: calc(100% - 40px);
    margin-left: 40px
  }

  .gallery-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attend-group {
    flex-wrap: wrap
  }

  .cd-sep {
    font-size: 2rem
  }

  .hero-card {
    padding: 3.5rem 1.5rem 2.5rem 1.5rem;
    width: calc(100% - 2rem);
  }

  .hero-card .bismillah {
    font-size: 2.2rem;
    letter-spacing: normal !important;
  }

  .couple-section-inner {
    grid-template-columns: 1fr;
  }

  .album-card.couple-card,
  .album-card.profile-card {
    max-width: 100%;
  }

  .album-card {
    padding: 1.5rem;
  }

  .album-img-wrap {
    aspect-ratio: 4 / 5;
  }

  .album-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }
}

/* ── MUSIC BUTTON ── */
#music-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brown);
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(var(--brown-rgb), 0.35);
}

#music-btn:hover {
  background: var(--maroon);
  transform: scale(1.08)
}

#music-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--gold)
}

@keyframes spin {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

#music-btn.playing .note-icon {
  animation: spin 4s linear infinite
}

/* ── PAGE LOADER ── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(var(--ink-rgb), 0.98) 0%, rgba(var(--maroon-rgb), 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#page-loader.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-mandala {
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  animation: slowSpin 30s linear infinite;
  filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.25));
}

.loader-monogram {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: pulse 2s ease infinite;
}

.loader-text {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cream-light);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.loader-bar-wrap {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(var(--gold-rgb), 0.95), transparent);
  animation: loadingAnim 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes loadingAnim {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.confetti-particle {
  transition: none !important;
}

/* ── OPEN INVITATION BUTTON ── */
.open-inv-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.85rem 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--ff-sans);
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
  box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.1);
}

.open-inv-btn:hover {
  background: var(--gold);
  color: #1f0b15;
  box-shadow: 0 0 25px rgba(var(--gold-rgb), 0.35);
  transform: translateY(-2px);
}

.open-inv-btn:active {
  transform: translateY(0);
}

/* ── INTRO CARD (full-screen landing) ── */
.loader-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-card {
  width: min(520px, 92%);
  border-radius: 28px;
  padding: 2.25rem 2.4rem;
  background: linear-gradient(180deg, rgba(18, 8, 18, 0.92), rgba(44, 18, 36, 0.94));
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  position: relative;
}

.intro-card-inner {
  text-align: center
}

.intro-monogram {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  color: var(--gold);
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(var(--gold-rgb), 0.06);
}

.intro-sub {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.75);
  margin-bottom: 0.6rem
}

.intro-names {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 2.4rem;
  color: var(--cream);
  margin: 0 0 0.65rem;
  line-height: 1
}

.intro-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(var(--cream-rgb), 0.8);
  font-size: 0.86rem;
  margin-bottom: 0.9rem
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem
}

.meta-icon {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--gold-rgb), 0.06);
}

.intro-note {
  font-size: 0.92rem;
  color: rgba(var(--cream-rgb), 0.68);
  opacity: 0.9;
  margin-bottom: 1.1rem
}

.intro-cta {
  display: inline-block;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--maroon-rgb), 0.96), rgba(var(--gold-rgb), 0.9));
  color: var(--cream-light);
  font-weight: 700;
  letter-spacing: 0.14em;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(var(--maroon-rgb), 0.22);
}

.intro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(var(--maroon-rgb), 0.28)
}

@media (max-width:420px) {
  .intro-names {
    font-size: 1.6rem
  }

  .intro-card {
    padding: 1.5rem;
    border-radius: 20px
  }

  .intro-monogram {
    width: 72px;
    height: 72px;
    font-size: 1.25rem
  }
}

@media (max-width:700px) {
  .hero-card .lantern {
    display: none
  }

  .hero-card {
    max-width: 92%;
    padding: 2.4rem 1.6rem
  }

  .hero-name {
    font-size: 2.6rem
  }
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation */
.nav-links {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE & Edge */
}

/* Chrome, Safari, Opera */
.nav-links::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nav-links.scrollable::before,
.nav-links.scrollable::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.footer-credit {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, .15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .8px;
  font-family: 'Montserrat', sans-serif;
}

.footer-credit a {
  color: #D4AF37;
  text-decoration: none;
  font-weight: 600;
  transition: .3s ease;
}

.footer-credit a:hover {
  color: #F5D77B;
  text-shadow: 0 0 10px rgba(212, 175, 55, .4);
}