/* ============================================================
   Wedding Website — Design System
   Default theme values (burgundy). Runtime overrides via config/themeConfig.js
   ============================================================ */

/* ── Font Faces ── */
@font-face {
  font-family: "Tokyo Dreams Hybrid";
  src: url("assets/fonts/TokyoDreamsHybrid.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tokyo Dreams";
  src: url("assets/fonts/TokyoDreams.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-Italic-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Mograph";
  src: url("assets/fonts/Mograph.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("assets/fonts/Amiri-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("assets/fonts/Amiri-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("assets/fonts/Amiri-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("assets/fonts/NotoSansArabic-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("assets/fonts/TheSeasons-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("assets/fonts/TheSeasons-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("assets/fonts/TheSeasons-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("assets/fonts/TheSeasons-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("assets/fonts/TheSeasons-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Theme Variables ── */
:root {
  /* Colors */
  --color-cream: #FDF6EC;
  --color-burgundy: #6B1D2A;
  --color-burgundy-dark: #521722;
  --color-gold: #C9A84C;
  --color-gold-light: #E8D5A0;
  --color-white-soft: #FFFDF8;
  --color-text: #3D2B1F;
  --color-text-muted: #7A6B5D;
  --color-navy: #1B2A4A;
  --color-olive: #5C6B3C;
  --color-sage: #7D9168;
  --color-sage-dark: #4A5A3E;
  --color-nav-bg: #4e4e3e;
  --color-nav-bg-dark: #353528;
  --color-taupe: #8B7D6B;

  /* Typography */
  --font-couple-hybrid: "Tokyo Dreams Hybrid", cursive;
  --font-couple: "Tokyo Dreams", "Tokyo Dreams Hybrid", cursive;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-welcome: "Playfair Display", Georgia, serif;
  --font-body: "Mograph", sans-serif;
  --font-invite: "Playfair Display", Georgia, serif;
  --font-heading-ar: "Amiri", "Playfair Display", serif;
  --font-body-ar: "Noto Sans Arabic", "Source Sans 3", sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --header-height: 56px;
  --nav-height: 80px;
  --max-width: 480px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(107, 29, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(107, 29, 42, 0.12);
  --shadow-lg: 0 8px 32px rgba(107, 29, 42, 0.16);
  --blur-header: blur(12px);
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 500ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-envelope: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-card: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-ar {
  font-family: var(--font-body-ar);
}

body.lang-ar .heading-serif,
body.lang-ar .page-title:not(.name-shimmer),
body.lang-ar h1:not(.name-shimmer),
body.lang-ar h2,
body.lang-ar h3 {
  font-family: var(--font-heading-ar);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.hidden {
  display: none !important;
}

/* ── Loading Spinner ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-gold-light);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-monogram {
  margin-top: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-gold);
  letter-spacing: 0.15em;
}

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

/* ── Desktop Background ── */
.desktop-bg {
  display: none;
}

@media (min-width: 1024px) {
  body {
    background: var(--color-burgundy-dark);
  }

  .desktop-bg {
    display: block;
    position: fixed;
    inset: 0;
    background: url("assets/images/hero-photo.png?v=20260791") center/cover no-repeat;
    filter: blur(20px) brightness(0.4);
    transform: scale(1.1);
    z-index: 0;
  }

  .app {
    box-shadow: var(--shadow-lg);
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    border-radius: 28px;
    overflow: hidden;
  }

  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 28px 28px;
  }
}

/* ── App Shell ── */
.app {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-cream);
  opacity: 1;
  visibility: visible;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.app.hidden {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Video Entrance Landing Screen ── */
.entrance-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.entrance-screen.exit {
  opacity: 0;
  transform: scale(1.01);
  pointer-events: none;
}

.entrance-monogram {
  position: absolute;
  top: var(--space-2xl);
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.entrance-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transform: translateZ(0);
}

.entrance-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
  opacity: 0;
  transition: none;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.entrance-video.entrance-video--active {
  opacity: 1;
}

.entrance-invite-text {
  position: absolute;
  bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  margin: 0;
  padding: 0 var(--space-lg);
  font-family: var(--font-welcome);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-white-soft);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  animation: entrancePulse 2.4s ease-in-out infinite;
}

@keyframes entrancePulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .entrance-media {
    inset: auto;
    width: min(100%, 480px);
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-lg);
  }
}

/* ── Envelope Landing Screen (legacy theme assets) ── */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  cursor: pointer;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.envelope-screen.exit {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.envelope-monogram {
  position: absolute;
  top: var(--space-2xl);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  letter-spacing: 0.2em;
}

.envelope-scene {
  width: min(92vw, 360px);
  margin-bottom: var(--space-xl);
}

.envelope {
  position: relative;
  width: 100%;
  overflow: visible;
}

.envelope--photo {
  aspect-ratio: 3 / 2;
}

.envelope-photo {
  display: block;
  user-select: none;
  pointer-events: none;
  image-rendering: auto;
}

/* All envelope art — same frame, pixel-aligned */
.envelope-photo--back,
.envelope-photo--front,
.envelope-photo--closed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Open stack — transparent PNGs on ivory, same canvas size as closed */
.envelope-open-stack {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transform: scale(1.375);
  transform-origin: center 50%;
  transition: opacity 0.65s var(--ease-envelope) 0.1s;
  overflow: visible;
}

.envelope-photo--back {
  z-index: 1;
  opacity: 0;
  transform: scaleY(0.88);
  transform-origin: center 38%;
  transition:
    opacity 0.5s ease 0.18s,
    transform 0.75s var(--ease-envelope) 0.18s;
}

.envelope-photo--front {
  z-index: 3;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s ease 0.32s,
    transform 0.65s var(--ease-envelope) 0.32s;
}

.envelope-photo--closed {
  z-index: 4;
  transition:
    opacity 0.4s ease 0.25s,
    transform 0.65s var(--ease-envelope);
}

.envelope.open .envelope-photo--closed {
  opacity: 0;
  transform: translateY(-16px) scale(1.02);
}

.envelope.open .envelope-open-stack {
  opacity: 1;
}

.envelope.open .envelope-photo--back {
  opacity: 1;
  transform: scaleY(1);
}

.envelope.open .envelope-photo--front {
  opacity: 1;
  transform: translateY(0);
}

.envelope-card {
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 58%;
  max-width: 210px;
  aspect-ratio: 5625 / 3750;
  z-index: 2;
  --date-delay: 1.8s;
  transform: translateX(-50%) translateY(42%) scale(0.9);
  opacity: 0;
  transition:
    transform 1.2s var(--ease-card) 0.5s,
    opacity 0.65s ease 0.5s;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.envelope-card-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.18));
}

.envelope-card-content {
  position: absolute;
  inset: 20% 14% 20% 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
}

.envelope-card-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  font-family: var(--font-couple);
  font-size: clamp(0.9rem, 4vw, 1.15rem);
  line-height: 1.28;
  text-align: center;
  color: var(--color-burgundy);
}

.envelope-name-line {
  display: block;
  white-space: nowrap;
}

.envelope-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.35em, 0) scale(0.96);
  filter: blur(3px);
  will-change: transform, opacity, filter;
}

.envelope-char--amp {
  font-size: 0.86em;
  margin-right: 0.1em;
}

.envelope.open .envelope-char {
  animation: envelopeCharReveal 0.82s cubic-bezier(0.16, 1, 0.3, 1) calc(0.58s + var(--i) * 0.052s) forwards;
}

@keyframes envelopeCharReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 0.4em, 0) scale(0.94);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
    text-shadow: 0 0 14px rgba(201, 168, 76, 0.15);
  }
}

.envelope-card-date {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  color: var(--color-gold);
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.65s ease var(--date-delay, 1.8s),
    transform 0.65s ease var(--date-delay, 1.8s);
}

.envelope.open .envelope-card-date {
  opacity: 1;
  transform: translateY(0);
}

.envelope.open .envelope-card {
  transform: translateX(-50%) translateY(-42%) scale(1);
  opacity: 1;
}

.envelope-invite-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  animation: pulse 2.5s ease-in-out infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.envelope-screen:has(.envelope.open) .envelope-invite-text {
  opacity: 0;
  visibility: hidden;
  animation: none;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .envelope-open-stack,
  .envelope-card,
  .envelope-photo--closed,
  .envelope-photo--back,
  .envelope-photo--front {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .envelope.open .envelope-open-stack {
    opacity: 1;
    transform: scale(1.375);
  }

  .envelope.open .envelope-photo--back {
    opacity: 1;
    transform: scaleY(1);
  }

  .envelope.open .envelope-photo--front {
    opacity: 1;
    transform: translateY(0);
  }

  .envelope.open .envelope-card {
    transform: translateX(-50%) translateY(-42%) scale(1);
    opacity: 1;
  }

  .envelope.open .envelope-char {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .envelope.open .envelope-card-date {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Global language control (header-aligned, visible on envelope too) ── */
.site-lang {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--header-height);
  padding: 0 var(--space-lg);
  box-sizing: border-box;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.site-lang__music {
  pointer-events: auto;
  flex-shrink: 0;
}

.site-lang .lang-dropdown {
  pointer-events: auto;
}

body.on-home .site-lang .header-control-btn,
body.on-entrance .site-lang .header-control-btn {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92) 0%, rgba(253, 246, 236, 0.85) 100%);
  border-color: rgba(201, 168, 76, 0.75);
}

body.on-home .site-lang:not(.lang-highlight) .lang-dropdown .header-control-btn,
body.on-entrance .site-lang:not(.lang-highlight) .lang-dropdown .header-control-btn,
body.on-home .site-lang__music,
body.on-entrance .site-lang__music {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* ── Language hint (first visit) ── */
.lang-hint[hidden] {
  display: none !important;
}

.lang-hint:not([hidden]) {
  position: absolute;
  top: calc(100% + 10px);
  right: var(--space-lg);
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  background: rgba(253, 246, 236, 0.97);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  padding: 7px 8px 7px 12px;
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.12);
  white-space: nowrap;
}

.site-lang.lang-highlight > .lang-hint:not([hidden]) {
  animation: langHintPulse 2.4s ease-in-out infinite;
}

.site-lang.lang-highlight > .lang-hint:not([hidden])::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid rgba(201, 168, 76, 0.55);
  animation: langRingPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}


.lang-hint-text {
  line-height: 1.2;
}

.lang-hint-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(107, 29, 42, 0.08);
  color: var(--color-burgundy);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.panel-close-icon {
  display: block;
  width: 12px;
  height: 12px;
}

.lang-hint-dismiss:hover {
  background: rgba(107, 29, 42, 0.14);
}

.site-lang.lang-highlight .lang-dropdown .header-control-btn {
  position: relative;
  overflow: visible;
  animation: langBtnGlow 2.4s ease-in-out infinite;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.site-lang.lang-highlight .lang-dropdown .header-control-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(201, 168, 76, 0.65);
  animation: langRingPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes langHintPulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.92;
    transform: translateY(-3px);
  }
}

@keyframes langBtnGlow {
  0%, 100% {
    border-color: var(--color-gold);
  }

  50% {
    border-color: #e0bc55;
  }
}

@keyframes langRingPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }

  70%, 100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-lang.lang-highlight > .lang-hint:not([hidden]),
  .site-lang.lang-highlight .lang-dropdown .header-control-btn,
  .site-lang.lang-highlight > .lang-hint:not([hidden])::before,
  .site-lang.lang-highlight .lang-dropdown .header-control-btn::before {
    animation: none;
  }
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--space-lg);
  padding-right: calc(var(--space-lg) + 96px);
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: var(--blur-header);
  -webkit-backdrop-filter: var(--blur-header);
  z-index: 100;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  box-sizing: border-box;
}

/* Header over hero (home tab) */
body.on-home .site-header {
  background: rgba(253, 246, 236, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(201, 168, 76, 0.12);
}

body.on-entrance .site-header {
  visibility: hidden;
  pointer-events: none;
}

.monogram {
  font-family: var(--font-couple);
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(
    110deg,
    #3a3a2f 0%,
    #4e4e3e 10%,
    #5c5c48 18%,
    #7a7348 28%,
    #a8924a 36%,
    #c9a84c 42%,
    #e8d598 48%,
    #fff8e8 51%,
    #e8d598 54%,
    #c9a84c 60%,
    #8a7a42 68%,
    #5a5a46 78%,
    #4e4e3e 88%,
    #3a3a2f 100%
  );
  background-size: 340% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroGoldSheen 2.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  transition: filter var(--transition-base);
}

body.on-home .monogram {
  filter: drop-shadow(0 1px 12px rgba(0, 0, 0, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Shared header controls — language & music (matching height & theme) */
.header-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--color-burgundy);
  background: linear-gradient(180deg, var(--color-white-soft) 0%, var(--color-cream) 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-full);
  box-shadow:
    0 1px 3px rgba(107, 29, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

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

.header-control-btn:hover {
  border-color: #b8922e;
  box-shadow:
    0 2px 8px rgba(107, 29, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.header-control-icon {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.header-control-btn--icon {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

#lang-label {
  line-height: 1;
  color: var(--color-burgundy);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-dropdown.open .header-control-btn {
  border-color: #b8922e;
  box-shadow:
    0 0 0 3px rgba(201, 168, 76, 0.18),
    0 2px 8px rgba(107, 29, 42, 0.1);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: var(--color-cream);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(61, 43, 31, 0.12);
  overflow: hidden;
  z-index: 200;
  list-style: none;
  padding: 6px 0;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-option-label {
  flex: 1;
}

.lang-check {
  width: 14px;
  height: 14px;
  color: var(--color-burgundy);
  opacity: 0;
  flex-shrink: 0;
  margin-left: 12px;
}

.lang-option.active {
  background: rgba(201, 168, 76, 0.14);
  color: var(--color-burgundy);
  font-weight: 600;
}

.lang-option.active .lang-check {
  opacity: 1;
}

.lang-option:active:not(.active) {
  background: rgba(201, 168, 76, 0.08);
}

/* Music equalizer (inside icon button) */
#music-toggle .equalizer {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 14px;
}

#music-toggle .icon-music-muted {
  display: block;
}

#music-toggle.playing .icon-music-muted {
  display: none;
}

#music-toggle.playing .equalizer {
  display: flex;
}

.equalizer span {
  width: 3px;
  background: var(--color-gold);
  border-radius: 1px;
  animation: eq 0.8s ease-in-out infinite alternate;
}

.equalizer span:nth-child(1) { height: 6px; animation-delay: 0s; }
.equalizer span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.equalizer span:nth-child(3) { height: 8px; animation-delay: 0.4s; }

@keyframes eq {
  to { height: 14px; }
}

/* ── Music player panel ── */
.music-panel {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.music-panel:not(.hidden) {
  pointer-events: auto;
}

.music-panel__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(43, 10, 16, 0.62);
  backdrop-filter: blur(6px);
  cursor: pointer;
  animation: musicPanelFadeIn 0.3s ease;
}

.music-panel__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 28px 24px 26px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.14), transparent 55%),
    linear-gradient(180deg, var(--color-white-soft) 0%, var(--color-cream) 100%);
  border: 1.5px solid rgba(201, 168, 76, 0.55);
  border-radius: 24px;
  box-shadow:
    0 24px 48px rgba(107, 29, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: musicPanelSlideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(255, 253, 248, 0.92);
  color: var(--color-burgundy);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.music-panel__close .panel-close-icon {
  width: 14px;
  height: 14px;
}

.music-panel__close:hover {
  border-color: var(--color-gold);
}

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

.music-panel__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.music-panel__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-burgundy);
}

.music-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.music-player__disc-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-player__disc-wrap::after {
  content: "";
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.06) 24%,
    transparent 46%,
    transparent 58%,
    rgba(0, 0, 0, 0.22) 82%,
    rgba(0, 0, 0, 0.1) 100%
  );
  mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(circle, transparent 0 30%, #000 34%);
  mask-image: radial-gradient(circle, transparent 0 30%, #000 34%);
}

.music-player__platter {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-nav-bg);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.music-player__record {
  position: relative;
  z-index: 1;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at center, var(--color-nav-bg) 0, var(--color-nav-bg) 16%, #141414 17%, #0d0d0d 100%);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.18),
    inset 0 2px 5px rgba(255, 255, 255, 0.07),
    inset 0 -4px 10px rgba(0, 0, 0, 0.5);
  animation: vinylSpin 3.6s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.music-player__record::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(
    from 200deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.04) 30deg,
    rgba(255, 255, 255, 0.14) 52deg,
    rgba(255, 255, 255, 0.06) 72deg,
    transparent 105deg,
    rgba(0, 0, 0, 0.14) 175deg,
    rgba(0, 0, 0, 0.06) 210deg,
    transparent 255deg,
    rgba(255, 255, 255, 0.05) 310deg,
    transparent 360deg
  );
}

.music-player__record::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 30% 26%,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 28%,
    transparent 52%
  );
}

.music-player__record.is-spinning {
  animation-play-state: running;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.48),
    0 3px 10px rgba(201, 168, 76, 0.15),
    inset 0 2px 6px rgba(255, 255, 255, 0.09),
    inset 0 -5px 12px rgba(0, 0, 0, 0.55);
}

.music-player__record.is-spinning::before {
  background: conic-gradient(
    from 200deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.06) 30deg,
    rgba(255, 255, 255, 0.2) 52deg,
    rgba(255, 255, 255, 0.08) 72deg,
    transparent 105deg,
    rgba(0, 0, 0, 0.18) 175deg,
    rgba(0, 0, 0, 0.08) 210deg,
    transparent 255deg,
    rgba(255, 255, 255, 0.07) 310deg,
    transparent 360deg
  );
}

.music-player__grooves {
  position: absolute;
  inset: 5%;
  z-index: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.07) 0 0.5px,
    rgba(0, 0, 0, 0.42) 0.5px 2.5px
  );
  opacity: 0.88;
  pointer-events: none;
}

.music-player__record.is-spinning .music-player__grooves {
  opacity: 1;
}

.music-player__label {
  position: absolute;
  inset: 31%;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--color-gold-light), var(--color-gold) 68%, #9a7a2e 100%);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(107, 29, 42, 0.22),
    0 0 0 1px rgba(107, 29, 42, 0.15);
  pointer-events: none;
}

.music-player__label-hole {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--color-white-soft), var(--color-cream) 80%);
  box-shadow: inset 0 1px 3px rgba(107, 29, 42, 0.18);
}

.music-player__tonearm {
  position: absolute;
  top: 6px;
  right: 2px;
  width: 78px;
  height: 78px;
  z-index: 3;
  transform-origin: 82% 14%;
  transform: rotate(-32deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
}

.music-player__tonearm.is-playing {
  transform: rotate(6deg);
}

.music-player__tonearm-pivot {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0ece4 0%, #b8b0a4 55%, #8a8278 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.music-player__tonearm-arm {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 4px;
  height: 62px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a8a096 0%, #ece8e0 42%, #c9c2b8 100%);
  transform-origin: top center;
  transform: rotate(16deg);
}

.music-player__tonearm-arm::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8e4dc, #9a9288 85%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.music-player__info {
  width: 100%;
  text-align: center;
}

.music-player__track {
  margin: 0 0 8px;
  font-family: var(--font-welcome, var(--font-heading));
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--color-text);
  word-break: break-word;
}

.music-player__status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.music-player__viz {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.music-player__viz span {
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--color-gold);
  opacity: 0.45;
}

.music-player__viz.is-active span {
  opacity: 1;
  animation: eq 0.75s ease-in-out infinite alternate;
}

.music-player__viz span:nth-child(1) { animation-delay: 0s; }
.music-player__viz span:nth-child(2) { animation-delay: 0.12s; }
.music-player__viz span:nth-child(3) { animation-delay: 0.24s; }
.music-player__viz span:nth-child(4) { animation-delay: 0.08s; }
.music-player__viz span:nth-child(5) { animation-delay: 0.18s; }

.music-player__status {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.music-player__progress {
  width: 100%;
  padding: 0 4px;
}

.music-player__seek {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    to right,
    var(--color-gold) 0%,
    var(--color-gold) var(--seek-progress, 0%),
    rgba(201, 168, 76, 0.22) var(--seek-progress, 0%),
    rgba(201, 168, 76, 0.22) 100%
  );
  cursor: pointer;
}

.music-player__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-white-soft);
  background: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.45);
}

.music-player__seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-white-soft);
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.45);
}

.music-player__playpause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  height: 44px;
  padding: 0 22px;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, var(--color-cream) 100%);
  color: var(--color-burgundy);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 29, 42, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.music-player__playpause:active {
  transform: scale(0.98);
}

.music-player__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes musicPanelSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes musicPanelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .music-player__record {
    animation: none;
  }

  .music-player__record.is-spinning {
    opacity: 0.92;
  }

  .music-player__tonearm {
    transition: none;
  }

  .music-player__viz.is-active span {
    animation: none;
    height: 10px;
  }
}

/* ── Main Content ── */
.main-content {
  padding-top: var(--header-height);
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + var(--space-md));
  position: relative;
  z-index: 4;
  overflow-x: clip;
}

.page {
  display: none;
  opacity: 0;
  width: 100%;
}

.page.active,
.page.leaving {
  display: block;
}

.page.leaving {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.page.is-section-disabled {
  display: none !important;
}

.nav-tab[hidden],
[data-goto][hidden] {
  display: none !important;
}

.page.active {
  opacity: 1;
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

.page.slide-in-right {
  animation: slideInRight var(--transition-base) forwards;
}

.page.slide-in-left {
  animation: slideInLeft var(--transition-base) forwards;
}

.page.slide-out-left {
  animation: slideOutLeft var(--transition-base) forwards;
}

.page.slide-out-right {
  animation: slideOutRight var(--transition-base) forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

/* ── Typography Helpers ── */
.heading-serif {
  font-family: var(--font-heading);
  font-weight: 400;
  text-align: center;
  color: var(--color-burgundy);
  letter-spacing: 0.05em;
}

.heading-serif em {
  display: block;
  font-style: italic;
  font-size: 1.1em;
  color: var(--color-gold);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.page-header__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
}

.page-header__divider {
  margin: 0;
  opacity: 0.88;
}

.page-side-floral {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(72px, 24vw, 108px);
  height: 100%;
  object-fit: contain;
  object-position: top center;
  pointer-events: none;
  z-index: 3;
  user-select: none;
}

.page-side-floral--left {
  left: 0;
}

.page-side-floral--right {
  right: 0;
  transform: scaleX(-1);
}

.app:has(#page-home.active) .page-side-floral {
  display: none;
}

.page-title {
  font-family: var(--font-couple);
  font-size: clamp(1.65rem, 7.2vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.1;
  color: var(--color-burgundy);
}

.page-title.name-shimmer {
  display: inline-block;
  color: transparent;
}

/* Olive base with gold-accent sheen on hero couple names, page titles, invite names */
.hero-names .name-shimmer,
.page-title.name-shimmer,
.home-invite .invite-name-shimmer {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.hero-names .name-shimmer .name-initial,
.hero-names .name-shimmer .name-rest,
.page-title.name-shimmer .name-initial,
.page-title.name-shimmer .name-rest,
.home-invite .invite-name-shimmer .name-initial,
.home-invite .invite-name-shimmer .name-rest {
  background-image: linear-gradient(
    110deg,
    #3a3a2f 0%,
    #4e4e3e 10%,
    #5c5c48 18%,
    #7a7348 28%,
    #a8924a 36%,
    #c9a84c 42%,
    #e8d598 48%,
    #fff8e8 51%,
    #e8d598 54%,
    #c9a84c 60%,
    #8a7a42 68%,
    #5a5a46 78%,
    #4e4e3e 88%,
    #3a3a2f 100%
  );
  background-size: 340% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: heroGoldSheen 2.6s ease-in-out infinite;
}

.hero-names .name-shimmer .name-rest,
.page-title.name-shimmer .name-rest,
.home-invite .invite-name-shimmer .name-rest {
  animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-names .name-shimmer .name-initial,
  .hero-names .name-shimmer .name-rest,
  .page-title.name-shimmer .name-initial,
  .page-title.name-shimmer .name-rest,
  .home-invite .invite-name-shimmer .name-initial,
  .home-invite .invite-name-shimmer .name-rest,
  .monogram {
    animation: none;
    background-position: 50% center;
  }
}

/* Home hero bleeds under header */
#page-home .hero {
  margin-top: calc(-1 * var(--header-height));
}

.name-line {
  display: block;
  font-size: clamp(2.8rem, 12vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  position: relative;
}

.name-initial {
  font-family: var(--font-couple-hybrid);
  font-size: 1.15em;
  vertical-align: baseline;
}

.name-rest {
  font-family: var(--font-couple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Real-gold shimmer — clipped to letter shapes only */
.name-shimmer {
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 14px rgba(201, 168, 76, 0.2));
}

.name-shimmer .name-initial,
.name-shimmer .name-rest {
  background-image: linear-gradient(
    110deg,
    #c9a84c 0%,
    #d4b55a 10%,
    #dfc068 20%,
    #e8d598 32%,
    #f5e6b8 42%,
    #fffef8 49%,
    #fffef8 51%,
    #f5e6b8 58%,
    #e8d598 68%,
    #dfc068 80%,
    #d4b55a 90%,
    #c9a84c 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldSheen 4.5s ease-in-out infinite;
}

.name-shimmer .name-rest {
  animation-delay: 0.12s;
}

@keyframes heroGoldSheen {
  0%, 100% { background-position: 115% center; }
  50% { background-position: -15% center; }
}

@keyframes goldSheen {
  0%, 100% { background-position: 90% center; }
  50% { background-position: 10% center; }
}

@media (prefers-reduced-motion: reduce) {
  .name-shimmer .name-initial,
  .name-shimmer .name-rest {
    animation: none;
    background-position: 50% center;
  }
}

@keyframes heroJewelReveal {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroNameReveal {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.86);
  }
  55% {
    opacity: 1;
    transform: translateY(-6px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroAndReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroDateReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-animate .hero-names > .name-line {
  opacity: 0;
  animation: heroNameReveal 1.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-overlay:not(.hero-animate) .name-line,
.hero-overlay:not(.hero-animate) .name-and,
.hero-date-block:not(.hero-animate) .hero-date-plaque {
  opacity: 0;
}

.hero-animate .hero-names > .name-line:first-child {
  animation-delay: 0.35s;
}

.hero-animate .hero-names > .name-and {
  opacity: 0;
  animation: heroAndReveal 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.95s;
}

.hero-animate .hero-names > .name-line:last-child {
  animation-delay: 1.45s;
}

.hero-date-block.hero-animate .hero-date-plaque {
  opacity: 0;
  animation: heroDateReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 2.45s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate .hero-names > .name-line,
  .hero-animate .hero-names > .name-and,
  .hero-date-block.hero-animate .hero-date-plaque,
  .hero-overlay:not(.hero-animate) .name-line,
  .hero-overlay:not(.hero-animate) .name-and,
  .hero-date-block:not(.hero-animate) .hero-date-plaque {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-overlay {
    opacity: 1;
  }
}

/* Admin preview — show hero content immediately (skip entrance timing) */
.preview-mode .hero-overlay .name-line,
.preview-mode .hero-overlay .name-and,
.preview-mode .hero-date-block .hero-date-plaque {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

.preview-mode .hero-date-block {
  opacity: 1;
}

.name-and {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-gold-light);
  display: block;
  margin: 6px 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  width: 100%;
  height: calc(78svh + var(--header-height));
  min-height: calc(78svh + var(--header-height));
  overflow: hidden;
  background: #0d0d0d;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-portrait {
  --hero-crop-x: 50%;
  --hero-crop-y: 46%;
  --hero-crop-scale: 1.02;
  --hero-crop-anchor-y: 44%;
  --hero-frame-offset-x: 0px;
  --hero-frame-offset-y: 0px;
  position: relative;
  width: min(92vw, 440px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  margin-top: clamp(0.85rem, 2.5vh, 1.35rem);
  margin-bottom: clamp(1rem, 3.5vh, 1.75rem);
  flex-shrink: 0;
  isolation: isolate;
  overflow: hidden;
  transform: translate3d(var(--hero-frame-offset-x), var(--hero-frame-offset-y), 0);
}

/* Photo clipped to the frame opening; ornate frame overlays on top */
.hero-portrait__photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #0d0d0d;
  -webkit-mask-image: url("/assets/images/hero-portrait-mask.png?v=20260913");
  mask-image: url("/assets/images/hero-portrait-mask.png?v=20260913");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}

.hero-portrait__photo,
#hero-image.hero-portrait__photo {
  position: absolute;
  width: calc(100% * var(--hero-crop-scale, 1.02));
  height: calc(100% * var(--hero-crop-scale, 1.02));
  left: calc(50% - (100% * var(--hero-crop-scale, 1.02)) / 2);
  top: calc(var(--hero-crop-anchor-y, 44%) - (100% * var(--hero-crop-scale, 1.02)) / 2);
  display: block;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  transform: none !important;
  object-fit: cover;
  object-position: var(--hero-crop-x, 50%) var(--hero-crop-y, 46%);
  pointer-events: none;
}

.hero-portrait__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

/* Live crop editor — open with ?heroCropEdit=1 on the home tab */
.hero-crop-editor {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(var(--nav-height, 72px) + 12px + env(safe-area-inset-bottom));
  z-index: 10050;
  width: min(92vw, 320px);
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(253, 246, 236, 0.97);
  border: 1px solid rgba(201, 168, 76, 0.65);
  box-shadow: 0 12px 40px rgba(61, 43, 31, 0.22);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-text);
}

.hero-crop-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-crop-editor__close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.5);
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.hero-crop-editor__hint {
  margin: 0 0 10px;
  line-height: 1.45;
  opacity: 0.85;
}

.hero-crop-editor__hint code {
  font-size: 0.72rem;
}

.hero-crop-editor__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  margin-bottom: 8px;
}

.hero-crop-editor__row input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
}

.hero-crop-editor__val {
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: right;
}

.hero-crop-editor__output {
  margin: 10px 0 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(61, 43, 31, 0.06);
  font-size: 0.68rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 120px;
}

.hero-crop-editor__copy {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.75);
  background: linear-gradient(180deg, #fffdf8 0%, #fdf6ec 100%);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── Send Love widget ── */
.home-invite__countdown-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: clamp(0.75rem, 2.5vw, 1.25rem) auto 0;
  padding: 0 var(--space-md) clamp(0.35rem, 1.4vw, 0.65rem);
  box-sizing: border-box;
}

.home-invite__countdown-stack .home-invite__countdown {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 420px;
}

.send-love-band {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: clamp(0.35rem, 1.4vw, 0.65rem);
  pointer-events: none;
}

.send-love-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 2vw, 0.65rem);
  width: max-content;
  max-width: min(100%, 18.5rem);
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: auto;
  text-align: center;
}

.send-love__hint {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(0.74rem, 2.9vw, 0.9rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #4e4e3e;
  pointer-events: none;
}

.send-love__hint::after {
  content: "";
  display: block;
  width: clamp(1.35rem, 5vw, 1.75rem);
  height: clamp(0.85rem, 3.2vw, 1.05rem);
  margin: 0.18rem auto 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(201, 168, 76, 0.95) 0 1.5px, transparent 2px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32' fill='none'%3E%3Cpath d='M12 2 C12 2, 4 14, 4 20 C4 26, 12 30, 12 30 C12 30, 20 26, 20 20 C20 14, 12 2, 12 2Z' stroke='%23A8842E' stroke-width='0' fill='none'/%3E%3Cpath d='M12 4 L12 24' stroke='%23A8842E' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M8 20 L12 24 L16 20' stroke='%23A8842E' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.send-love__btn {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  width: clamp(4.85rem, 19vw, 5.55rem);
  height: clamp(4.85rem, 19vw, 5.55rem);
  padding: 0.55rem 0.35rem;
  border: 1.5px solid rgba(201, 168, 76, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 22%, rgba(125, 145, 104, 0.28) 0%, transparent 58%),
    linear-gradient(165deg, var(--color-nav-bg) 0%, var(--color-nav-bg-dark) 100%);
  box-shadow:
    0 4px 14px rgba(53, 53, 40, 0.28),
    inset 0 1px 0 rgba(255, 253, 248, 0.1);
  color: var(--color-gold-light);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.send-love__btn:hover,
.send-love__btn:focus-visible {
  transform: scale(1.03);
  border-color: rgba(232, 213, 160, 0.75);
  box-shadow:
    0 6px 18px rgba(53, 53, 40, 0.32),
    0 0 12px rgba(201, 168, 76, 0.16),
    inset 0 1px 0 rgba(255, 253, 248, 0.14);
  outline: none;
}

.send-love__btn--pulse {
  animation: sendLovePulse 0.42s ease;
}

@keyframes sendLovePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.send-love__heart-icon {
  width: clamp(1.35rem, 5.2vw, 1.65rem);
  height: clamp(1.35rem, 5.2vw, 1.65rem);
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.55));
  pointer-events: none;
}

.send-love__label {
  font-family: var(--font-invite);
  font-size: clamp(0.52rem, 2.05vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--color-gold-light);
  pointer-events: none;
}

.send-love__total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  margin: 0;
  line-height: 1.05;
}

.send-love__count {
  font-family: var(--font-invite);
  font-size: clamp(0.92rem, 3.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-burgundy);
}

.send-love__count-label {
  font-family: var(--font-invite);
  font-size: clamp(0.52rem, 2vw, 0.58rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #6b5c38;
}

.send-love-burst {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  overflow: hidden;
}

.send-love-heart {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(1.35rem, 5.2vw, 2.05rem);
  height: clamp(1.25rem, 4.8vw, 1.9rem);
  margin-left: -0.5em;
  margin-top: -0.5em;
  transform: scale(var(--scale, 1)) rotate(var(--rot-start, 0deg));
  opacity: 0;
  isolation: isolate;
  filter: drop-shadow(0 0 3px rgba(201, 168, 76, 0.35));
  animation: sendLoveFloat var(--duration, 6.5s) cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s) forwards;
}

.send-love-heart::before {
  content: "";
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 248, 220, 0.28) 0%,
    rgba(232, 213, 160, 0.14) 40%,
    transparent 68%
  );
  filter: blur(4px);
  opacity: 0;
  z-index: -1;
  animation: sendLoveGlow var(--duration, 6.5s) ease-in-out var(--delay, 0s) forwards;
}

.send-love-heart__svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: none;
}

@keyframes sendLoveFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(calc(var(--scale, 1) * 0.35)) rotate(var(--rot-start, 0deg));
  }
  16% {
    opacity: 1;
  }
  62% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift-x, 80px), var(--drift-y, -120px))
      scale(calc(var(--scale, 1) * 1.06))
      rotate(var(--rot-end, 12deg));
  }
}

@keyframes sendLoveGlow {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  22% {
    opacity: 0.42;
    transform: scale(1);
  }
  72% {
    opacity: 0.28;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

body.on-entrance .send-love-band,
body.on-entrance .send-love-burst,
#app.hidden ~ .send-love-burst {
  visibility: hidden;
}

body:not(.on-home) .send-love-burst {
  display: none;
}

.hero-strands {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-strand {
  position: absolute;
  top: calc(var(--header-height) - 0.25rem);
}

.hero-strand-art {
  position: relative;
  display: block;
  width: clamp(78px, 24vw, 118px);
  max-height: min(46svh, 340px);
  line-height: 0;
}

.hero-strand-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(46svh, 340px);
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.22));
}

.hero-strand--left {
  left: 0;
  transform: translateX(clamp(-20px, -4vw, -10px));
}

.hero-strand--right {
  right: 0;
  transform: translateX(clamp(10px, 4vw, 20px));
}

.hero-strand--left .hero-strand-img {
  object-position: top left;
}

.hero-strand--right .hero-strand-img {
  object-position: top right;
}

.hero-sparkle {
  --sparkle-top: 50%;
  --sparkle-left: 50%;
  --sparkle-delay: 0s;
  position: absolute;
  top: var(--sparkle-top);
  left: var(--sparkle-left);
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) scale(0.65);
  opacity: 0.25;
  animation: jewelSparkle 5.5s ease-in-out infinite;
  animation-delay: var(--sparkle-delay);
  filter: drop-shadow(0 0 3px rgba(255, 250, 235, 0.85));
}

.hero-sparkle--lg {
  width: 13px;
  height: 13px;
}

.hero-sparkle::before,
.hero-sparkle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fffef8;
  border-radius: 1px;
}

.hero-sparkle::before {
  width: 100%;
  height: 2px;
  box-shadow:
    0 0 5px 1px rgba(255, 252, 240, 0.85),
    0 0 14px 3px rgba(201, 168, 76, 0.5);
}

.hero-sparkle::after {
  width: 2px;
  height: 100%;
  box-shadow:
    0 0 5px 1px rgba(255, 252, 240, 0.85),
    0 0 14px 3px rgba(201, 168, 76, 0.5);
}

.hero-sparkle--lg::before {
  height: 2.5px;
  box-shadow:
    0 0 7px 2px rgba(255, 255, 250, 0.95),
    0 0 18px 4px rgba(201, 168, 76, 0.58);
}

.hero-sparkle--lg::after {
  width: 2.5px;
  box-shadow:
    0 0 7px 2px rgba(255, 255, 250, 0.95),
    0 0 18px 4px rgba(201, 168, 76, 0.58);
}

@keyframes jewelSparkle {
  0%, 100% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(0.62) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1) rotate(12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sparkle {
    animation: none;
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

@media (max-width: 374px) {
  .hero-strand-art {
    width: clamp(64px, 21vw, 88px);
  }
}

/* Soft top vignette + lighter bottom fade so swans stay visible when scrolling */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.08) 14%,
      transparent 32%,
      transparent 72%,
      rgba(253, 246, 236, 0.12) 88%,
      rgba(253, 246, 236, 0.42) 96%,
      var(--color-cream) 100%
    );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: calc(var(--header-height) + 0.35rem) var(--space-lg) clamp(0.5rem, 2vh, 0.85rem);
  text-align: center;
  pointer-events: none;
}

.hero-overlay > * {
  pointer-events: auto;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  max-height: min(54svh, 480px);
  overflow: visible;
  transform: translateY(clamp(-0.65rem, -2.2vh, -0.2rem));
}

.hero-names-block {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  margin-top: clamp(-2.1rem, -4.8vh, -1.35rem);
  padding-bottom: 0;
  position: relative;
}

.hero-names-block::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(98vw, 400px);
  height: 130%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 252, 245, 0.5) 0%,
    rgba(255, 248, 236, 0.28) 42%,
    transparent 70%
  );
}

.hero-names-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
  padding: 0.35rem 1.25rem 0.45rem;
}

.hero-date-block {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  margin-bottom: clamp(0.5rem, 2vh, 1rem);
  padding: 0 var(--space-lg) 0.35rem;
  pointer-events: none;
}

.hero-date-block .hero-date-plaque {
  pointer-events: auto;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-names .name-line {
  font-size: clamp(2rem, 8.8vw, 2.85rem);
  line-height: 0.95;
}

.hero-names .name-and {
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  margin: 4px 0 2px;
  color: #6b5c38;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hero-date-plaque {
  width: min(88%, 320px);
  min-height: 64px;
  background: url("/assets/images/btn-banner.png") center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
}

.hero-date-display {
  text-align: center;
}

.date-shimmer {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.date-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.35em;
  line-height: 1.2;
  white-space: nowrap;
}

.date-day,
.date-month,
.date-year {
  font-family: var(--font-couple);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.date-shimmer .date-part {
  background-image: linear-gradient(
    110deg,
    #c9a84c 0%,
    #d4b55a 10%,
    #dfc068 20%,
    #e8d598 32%,
    #f5e6b8 42%,
    #fffef8 49%,
    #fffef8 51%,
    #f5e6b8 58%,
    #e8d598 68%,
    #dfc068 80%,
    #d4b55a 90%,
    #c9a84c 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldSheen 4.5s ease-in-out infinite;
}

.date-shimmer .date-month {
  animation-delay: 0.12s;
}

.date-shimmer .date-year {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .date-shimmer .date-part {
    animation: none;
    background-position: 50% center;
  }
}

/* ── Home invite (cordial + names + date + countdown) ── */
.home-invite.section {
  padding-inline: 0;
}

.home-invite {
  text-align: center;
  padding-top: clamp(1.25rem, 3.5vw, 2rem);
  padding-bottom: var(--space-lg);
  background: var(--color-cream);
  position: relative;
  z-index: 2;
  overflow: visible;
}

.home-invite__stage {
  position: relative;
  z-index: 2;
  max-width: min(76%, 19rem);
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 3vw, 1rem);
}

.home-invite__content {
  position: relative;
  z-index: 2;
}

.home-invite__polaroid {
  position: absolute;
  z-index: 3;
  margin: 0;
  width: clamp(86px, 24vw, 118px);
  padding: 0;
  background: none;
  border: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(62, 52, 38, 0.16));
}

.home-invite__polaroid-shell {
  padding: 2px;
  background: linear-gradient(
    145deg,
    #e8d598 0%,
    #c9a84c 22%,
    #a8924a 48%,
    #c9a84c 72%,
    #e8d598 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 232, 0.55),
    inset 0 -1px 0 rgba(90, 74, 40, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.16);
}

.home-invite__polaroid-mat {
  position: relative;
  padding: 0.38rem 0.38rem 1.15rem;
  background: linear-gradient(180deg, #fffef8 0%, var(--color-cream) 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.14);
}

.home-invite__polaroid-mat::after {
  content: "✦";
  position: absolute;
  left: 50%;
  bottom: 0.38rem;
  transform: translateX(-50%);
  font-size: 0.42rem;
  line-height: 1;
  color: #c9a84c;
  opacity: 0.72;
  text-shadow: 0 0 6px rgba(201, 168, 76, 0.35);
}

.home-invite__polaroid-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 12px rgba(78, 78, 62, 0.08);
}

.home-invite__polaroid--left .home-invite__polaroid-img {
  object-position: center 42%;
}

.home-invite__polaroid--right {
  top: clamp(0.35rem, 1.8vw, 0.95rem);
  right: clamp(-1.75rem, -9.5vw, -0.85rem);
  transform: rotate(9deg) translate3d(0, var(--parallax-y, 0), 0);
  transform-origin: center center;
  will-change: transform;
}

.home-invite__polaroid--left {
  top: clamp(8.75rem, 37vw, 12rem);
  left: clamp(-1.75rem, -9.5vw, -0.85rem);
  transform: rotate(-8deg) translate3d(0, var(--parallax-y, 0), 0);
  transform-origin: center center;
  will-change: transform;
}

.home-invite__lead {
  font-family: var(--font-invite);
  font-size: clamp(0.72rem, 3vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4e4e3e;
  line-height: 1.7;
  max-width: min(92%, 22rem);
  margin: 0 auto clamp(1.1rem, 3.5vw, 1.65rem);
}

.home-invite__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto clamp(1rem, 3vw, 1.45rem);
  max-width: 100%;
}

.home-invite__first {
  display: inline-block;
  font-size: clamp(1.55rem, 7vw, 2.25rem);
  line-height: 0.94;
  letter-spacing: 0.03em;
  max-width: 100%;
}

.home-invite__amp {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 4.8vw, 1.55rem);
  color: #c9a84c;
  line-height: 1;
  margin: 0.12rem 0 0.08rem;
  text-shadow: 0 1px 10px rgba(201, 168, 76, 0.28);
}

.home-invite__date {
  font-family: var(--font-invite);
  font-size: clamp(0.72rem, 3vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4e4e3e;
  margin: 0 auto 0.35rem;
  line-height: 1.5;
}

.home-invite__time {
  font-family: var(--font-invite);
  font-size: clamp(0.72rem, 3vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4e4e3e;
  margin: 0 auto 0;
  line-height: 1.5;
}

.home-invite__date-stack {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: clamp(0.5rem, 2vw, 0.85rem);
  padding: 0 var(--space-lg) clamp(0.35rem, 1.5vw, 0.65rem);
  box-sizing: border-box;
}

.home-invite__date-stack .hero-date-block {
  margin-top: clamp(0.65rem, 2.5vw, 1rem);
  margin-bottom: 0;
  padding: 0;
}

.home-invite__countdown {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.home-invite__countdown .countdown-label {
  color: #4e4e3e;
}

.home-invite__decoration-wrap {
  width: calc(100% + 2 * var(--space-lg));
  margin: clamp(0.35rem, 1.5vw, 0.65rem) calc(-1 * var(--space-lg)) 0;
  overflow: visible;
  line-height: 0;
}

.home-invite__decoration {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 360px) {
  .home-invite__lead {
    letter-spacing: 0.1em;
  }

  .home-invite__date {
    letter-spacing: 0.08em;
  }

  .home-invite__first {
    font-size: clamp(1.4rem, 6.5vw, 1.95rem);
  }

  .home-invite__amp {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
  }

  .home-invite__polaroid {
    width: clamp(78px, 22vw, 96px);
  }

  .home-invite__polaroid-mat {
    padding-bottom: 1rem;
  }

  .home-invite__polaroid--right {
    right: clamp(-1.45rem, -8.5vw, -0.65rem);
  }

  .home-invite__polaroid--left {
    top: clamp(8rem, 35vw, 11rem);
    left: clamp(-1.45rem, -8.5vw, -0.65rem);
  }
}

/* ── Sections ── */
.section {
  padding: var(--space-2xl) var(--space-lg);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.flourish {
  width: 180px;
  margin: 0 auto;
  opacity: 0.85;
}

.flourish-top {
  margin-bottom: var(--space-md);
}

.flourish-bottom {
  margin-top: var(--space-md);
  transform: rotate(180deg);
}

/* ── Section Headings & Dividers ── */
.section-heading-elegant {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-countdown .section-heading-elegant {
  margin-bottom: var(--space-sm);
}

.divider-ornate {
  display: block;
  width: min(88%, 320px);
  height: auto;
  margin: var(--space-md) auto;
  object-fit: contain;
}

.section-countdown .divider-ornate {
  margin: 0 auto 6px;
}

.heading-countdown {
  padding: var(--space-sm) 0;
}

.section-countdown .heading-countdown {
  padding: 0;
  margin-bottom: 0;
}

.countdown-line1 {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-burgundy);
  margin-bottom: 4px;
}

.countdown-script {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

.section-countdown {
  padding-top: var(--space-md);
  padding-bottom: var(--space-sm);
  margin-top: calc(-1 * var(--space-2xl));
  position: relative;
  z-index: 3;
}

/* ── Ornate Countdown Frame ── */
.countdown-block {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.countdown-ornate {
  --cd-digit-h: clamp(22px, 6.8cqi, 30px);
  --cd-digit-overlap: clamp(-4px, -0.75cqi, -2px);
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  container-type: inline-size;
  font-size: clamp(10px, 2.5cqi, 12px);
}

.countdown-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.countdown-cells {
  position: absolute;
  inset: 30% 16% 28% 16%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.42fr 1fr 1fr 1fr;
  column-gap: 0.32em;
  align-items: center;
}

.countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.countdown-digits {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--cd-digit-h);
  max-width: 100%;
  overflow: hidden;
  contain: layout style;
}

.countdown-digit {
  display: block;
  height: 100%;
  max-height: var(--cd-digit-h);
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  margin-left: var(--cd-digit-overlap);
  object-fit: contain;
  object-position: center bottom;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.countdown-digit:first-child {
  margin-left: 0;
}

.countdown-label {
  display: block;
  width: 100%;
  font-family: var(--font-invite);
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4e4e3e;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.home-invite__countdown .countdown-label {
  color: #4e4e3e;
}

.home-invite__countdown.countdown-block {
  width: min(100%, 420px);
  max-width: min(100%, 420px);
  margin-inline: auto;
}

/* ── Venue Preview ── */
.venue-preview {
  text-align: center;
  overflow: visible;
}

.venue-framed-photo {
  position: relative;
  width: 100%;
  margin: 0 0 var(--space-lg);
  aspect-ratio: 1536 / 1024;
  isolation: isolate;
  overflow: hidden;
  --venue-crop-x: 50%;
  --venue-crop-y: 45%;
  --venue-crop-scale: 1.05;
  --venue-crop-anchor-y: 50%;
}

#page-home .section:has(.venue-preview) {
  padding-inline: var(--space-xs);
}

#page-home .venue-preview .venue-framed-photo,
#page-details .details-venue-preview .venue-framed-photo {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

#page-home .venue-preview .venue-framed-photo {
  margin-bottom: var(--space-lg);
}

.venue-framed-photo__photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--color-cream);
  -webkit-mask-image: url("/assets/images/venue-frame-mask.png?v=20260913");
  mask-image: url("/assets/images/venue-frame-mask.png?v=20260913");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}

.venue-framed-photo__img {
  position: absolute;
  width: calc(100% * var(--venue-crop-scale, 1.05));
  height: calc(100% * var(--venue-crop-scale, 1.05));
  left: calc(50% - (100% * var(--venue-crop-scale, 1.05)) / 2);
  top: calc(var(--venue-crop-anchor-y, 50%) - (100% * var(--venue-crop-scale, 1.05)) / 2);
  display: block;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  transform: none !important;
  object-fit: cover;
  object-position: var(--venue-crop-x, 50%) var(--venue-crop-y, 45%);
  pointer-events: none;
}

.venue-framed-photo__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.venue-preview__copy {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.venue-name {
  font-family: var(--font-invite);
  font-size: clamp(0.92rem, 3.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-burgundy);
  margin: 0 0 var(--space-xs);
  padding: 0 var(--space-xs);
}

.venue-location {
  font-family: var(--font-invite);
  font-size: clamp(0.72rem, 3vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
  padding: 0 var(--space-xs);
}

.venue-maps-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin-top: 0.55rem;
  padding: 0;
  font-family: var(--font-invite);
  font-size: clamp(0.62rem, 2.6vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 45, 60, 0.35);
  line-height: 1.15;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.venue-maps-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.venue-maps-link::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Details Page ── */
#page-details {
  padding-bottom: var(--space-3xl);
}

#page-details .page-header {
  padding-bottom: var(--space-md);
  margin-bottom: 0;
}

#page-details .section.details-section {
  max-width: min(100%, 540px);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}

#page-details .details-section-head {
  margin-bottom: var(--space-md);
}

#page-details .details-section.details-venue {
  padding-inline: var(--space-xs);
  padding-top: var(--space-md);
}

.details-section-sep {
  width: min(76%, 300px);
  height: 1px;
  margin: 0 auto var(--space-xl);
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.42), transparent);
}

.details-swan-divider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-md) 0 var(--space-lg);
  pointer-events: none;
  line-height: 0;
  overflow: visible;
}

.details-swan-divider__art {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.94;
  filter: drop-shadow(0 8px 20px rgba(107, 45, 60, 0.1));
  user-select: none;
}

.details-section-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.details-section-head .divider-ornate {
  width: min(88%, 280px);
  margin: 0 auto var(--space-md);
  opacity: 0.9;
}

#page-details .details-section-head .page-title {
  display: inline-block;
  font-size: clamp(1.12rem, 5.2vw, 1.68rem);
  letter-spacing: 0.08em;
  margin: 0;
}

.details-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto var(--space-md);
  padding: var(--space-sm);
  border: 1.5px solid rgba(201, 168, 76, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.96), rgba(201, 168, 76, 0.1));
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.08);
}

.details-icon-wrap--art {
  width: min(46vw, 168px);
  height: min(46vw, 168px);
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.details-icon-wrap img.details-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.details-icon-wrap--art img.details-icon-img {
  filter: drop-shadow(0 8px 18px rgba(107, 45, 60, 0.14));
}

.details-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-gold);
}

.details-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

#page-details .details-section .detail-text,
#page-details .details-section .detail-note,
#page-details .details-section .dress-code,
#page-details .details-section .info-list,
#page-details .details-section .accordion,
#page-details .details-section .wedding-program,
#page-details .details-section #details-hotels-list,
#page-details .details-section-body {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

#page-details .details-section-body {
  text-align: center;
}

#page-details .details-lead {
  font-family: var(--font-invite);
  font-size: clamp(0.86rem, 3.4vw, 0.98rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0 auto var(--space-md);
  max-width: 28rem;
}

#page-details .details-footnote {
  position: relative;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  font-family: var(--font-invite);
  font-size: clamp(0.74rem, 3vw, 0.86rem);
  font-style: italic;
  letter-spacing: 0.05em;
  line-height: 1.65;
  color: var(--color-text-muted);
  opacity: 0.92;
}

#page-details .details-footnote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(42%, 128px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.38), transparent);
}

#page-details .details-section-body--dress .dress-code {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

#page-details .details-section-body--dress .color-swatches {
  margin-top: var(--space-xl);
}

#page-details .details-venue-preview {
  text-align: center;
}

#page-details .details-venue-preview .venue-framed-photo {
  margin-bottom: var(--space-md);
}

.details-venue-desc {
  font-family: var(--font-invite);
  font-size: clamp(0.86rem, 3.4vw, 0.96rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: var(--space-md) auto var(--space-sm);
  max-width: 28rem;
  padding: 0 var(--space-xs);
}

#page-details .venue-name {
  font-size: clamp(0.98rem, 3.5vw, 1.12rem);
}

#page-details .venue-location {
  font-size: clamp(0.78rem, 3.2vw, 0.94rem);
}

#page-details .detail-address {
  justify-content: center;
  text-align: left;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
  font-size: clamp(0.82rem, 3.2vw, 0.92rem);
}

.details-venue-maps.btn-burgundy {
  margin-top: var(--space-xs);
  font-family: var(--font-invite);
  font-weight: 400;
  background: var(--color-burgundy);
  background-image: none;
  box-shadow: none;
  border-radius: var(--radius-md);
  text-shadow: none;
  filter: none;
}

.details-venue-maps.btn-burgundy:hover {
  background: var(--color-burgundy-dark);
  box-shadow: none;
  filter: none;
}

#page-details #details-hotels-list {
  display: grid;
  gap: var(--space-xl);
  text-align: left;
}

#page-details .hotel-card {
  margin-bottom: 0;
  padding: 0 0 var(--space-lg);
  overflow: visible;
  text-align: left;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

#page-details .hotel-card:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

#page-details .hotel-card:hover {
  transform: none;
  box-shadow: none;
}

#page-details .hotel-card__media {
  padding: 0;
  background: none;
  border: none;
}

#page-details .hotel-card__img,
#page-details .hotel-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.45);
}

#page-details .hotel-card__body {
  padding: var(--space-md) 0 0;
}

#page-details .hotel-card__name {
  font-family: var(--font-invite);
  font-size: clamp(0.88rem, 3.4vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin: 0 0 0.35rem;
}

#page-details .hotel-card__desc {
  font-family: var(--font-body);
  font-size: clamp(0.86rem, 3.3vw, 0.96rem);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

#page-details .hotel-card__actions {
  padding: var(--space-md) 0 0;
  text-align: center;
}

#page-details .hotel-card__link {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  font-family: var(--font-invite);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-burgundy);
  background-image: none;
  box-shadow: none;
  text-shadow: none;
  filter: none;
}

#page-details .hotel-card__link:hover {
  background: var(--color-burgundy-dark);
  box-shadow: none;
  filter: none;
}

#page-details .detail-text,
#page-details .detail-note {
  text-align: center;
}

#page-details .info-list {
  display: grid;
  gap: 0;
  margin-top: 0;
  text-align: left;
}

#page-details .details-info-card {
  padding: var(--space-md) 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

#page-details .details-info-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#page-details .details-info-card:first-child {
  padding-top: 0;
}

#page-details .details-info-card__label {
  display: block;
  font-family: var(--font-invite);
  font-size: clamp(0.74rem, 3vw, 0.84rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
}

#page-details .details-info-card__text {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 3.4vw, 0.98rem);
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}

#page-details .dress-code {
  font-family: var(--font-invite);
  font-size: clamp(1rem, 3.9vw, 1.16rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-align: center;
}

#page-details .accordion {
  margin-top: 0;
  text-align: left;
  border: none;
  border-radius: 0;
  background: none;
  overflow: visible;
}

#page-details .accordion-item {
  padding: 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

#page-details .accordion-item:first-child .accordion-trigger {
  padding-top: 0;
}

#page-details .accordion-item:last-child {
  border-bottom: none;
}

#page-details .accordion-item:last-child.open .accordion-panel__inner {
  padding-bottom: 0;
}

#page-details .accordion-trigger {
  font-family: var(--font-invite);
  font-size: clamp(0.8rem, 3.2vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: var(--space-md) 0;
  padding-inline: 0;
}

#page-details .accordion-icon {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.1rem;
  border-right: 1px solid rgba(201, 168, 76, 0.75);
  border-bottom: 1px solid rgba(201, 168, 76, 0.75);
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
  font-size: 0;
  color: transparent;
}

#page-details .accordion-item.open .accordion-icon {
  transform: rotate(-135deg);
  border-color: var(--color-burgundy);
}

#page-details .accordion-panel__inner p {
  font-family: var(--font-body);
  font-size: clamp(0.86rem, 3.3vw, 0.96rem);
  line-height: 1.75;
  color: var(--color-text-muted);
  padding-top: 0.15rem;
}

#page-details .details-program .wedding-program {
  margin-top: 0;
  text-align: left;
}

#page-details .wedding-program__title {
  font-family: var(--font-invite);
  font-size: clamp(0.8rem, 3.2vw, 0.9rem);
  letter-spacing: 0.12em;
}

#page-details .wedding-program__desc {
  font-size: clamp(0.88rem, 3.4vw, 0.96rem);
  line-height: 1.75;
}

#page-details .wedding-program__time {
  font-size: clamp(0.74rem, 3vw, 0.84rem);
  letter-spacing: 0.14em;
}

#page-details .hotel-card__placeholder {
  height: auto;
  min-height: 0;
  opacity: 0.92;
  background: linear-gradient(135deg, rgba(107, 45, 60, 0.92) 0%, rgba(74, 30, 42, 0.96) 100%);
}

/* ── Wedding Program ── */
.wedding-program {
  position: relative;
  text-align: left;
  margin-top: var(--space-lg);
  padding-left: 0.25rem;
}

.wedding-program__track {
  position: absolute;
  left: 0.82rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.42), rgba(201, 168, 76, 0.08));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.details-program.visible .wedding-program__track {
  transform: scaleY(1);
}

.wedding-program__item {
  position: relative;
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
  padding-bottom: var(--space-lg);
  transition-delay: var(--program-delay, 0s);
}

.wedding-program__item:last-child {
  padding-bottom: 0;
}

.wedding-program__icon-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.45rem;
}

.wedding-program__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  background: none;
  color: var(--color-gold);
  box-shadow: none;
  transform: none;
  opacity: 0.92;
  transition: opacity 0.35s ease;
  transition-delay: calc(var(--program-delay, 0s) + 0.08s);
}

.wedding-program__item.visible .wedding-program__icon {
  transform: none;
  opacity: 1;
}

.wedding-program__icon svg {
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.88;
}

.wedding-program__time {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 3.6vw, 1.05rem);
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: 0.15rem;
}

.wedding-program__title {
  font-family: var(--font-invite);
  font-size: clamp(0.78rem, 3.1vw, 0.88rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin: 0 0 0.2rem;
}

.wedding-program__desc {
  margin: 0;
  font-size: clamp(0.84rem, 3.2vw, 0.92rem);
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .wedding-program__track {
    left: 0.72rem;
  }

  .wedding-program__item {
    grid-template-columns: 1.55rem minmax(0, 1fr);
    gap: var(--space-sm);
  }
}

body.lang-ar .wedding-program {
  text-align: right;
  padding-left: 0;
  padding-right: 0.25rem;
}

body.lang-ar .wedding-program__track {
  left: auto;
  right: 0.82rem;
}

body.lang-ar .wedding-program__item {
  direction: rtl;
}

@media (max-width: 767px) {
  body.lang-ar .wedding-program__track {
    right: 0.72rem;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active {
  transform: scale(0.96);
}

.btn-burgundy {
  background: url("assets/images/btn-banner.png") center / 100% 100% no-repeat;
  background-color: transparent;
  color: var(--color-gold-light);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  min-height: 52px;
  padding: 14px 28px;
}

.btn-burgundy:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  transform: scale(1.02);
}

.btn-burgundy:active {
  transform: scale(0.96);
  filter: brightness(0.98);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ── RSVP CTA ── */
.rsvp-cta {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.06));
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding-top: var(--space-xl);
}

.rsvp-cta__illustration-wrap {
  width: min(100%, 26rem);
  margin: 0 auto var(--space-md);
  line-height: 0;
}

.rsvp-cta__illustration {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.rsvp-cta .page-title {
  font-size: clamp(1.15rem, 5vw, 1.65rem);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.rsvp-cta p {
  margin: var(--space-md) 0 var(--space-lg);
  font-family: var(--font-invite);
  font-size: clamp(0.72rem, 3vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.rsvp-cta .btn {
  font-family: var(--font-invite);
  font-weight: 400;
}

.rsvp-cta .btn-burgundy {
  width: auto;
  min-width: min(100%, 14rem);
  background: var(--color-burgundy);
  background-image: none;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: none;
  text-shadow: none;
  filter: none;
}

.rsvp-cta .btn-burgundy:hover {
  background: var(--color-burgundy-dark);
  box-shadow: none;
  filter: none;
  transform: scale(1.02);
}

.rsvp-cta .btn-burgundy:active {
  filter: none;
}

/* ── Home closing couple (faded, like story page) ── */
.home-closing {
  position: relative;
  margin-top: calc(-1 * var(--space-sm));
}

.home-closing-hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: min(72vh, 520px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--color-cream);
}

.home-closing-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.home-closing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      var(--color-cream) 0%,
      rgba(253, 246, 236, 0.35) 8%,
      transparent 22%,
      transparent 58%,
      rgba(253, 246, 236, 0.5) 80%,
      var(--color-cream) 100%
    );
}

.home-closing__entry {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.35rem, 5.5vw, 2.5rem);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.65rem, 3vw, 1rem);
  flex-wrap: wrap;
  padding: 0 var(--space-md);
}

.home-closing__link {
  font-family: var(--font-invite);
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  background: rgba(253, 246, 236, 0.86);
  border: 1px solid rgba(201, 168, 76, 0.42);
  border-radius: var(--radius-md);
  padding: 0.72rem 1.2rem;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.home-closing__link:hover {
  background: rgba(255, 253, 248, 0.96);
  border-color: rgba(201, 168, 76, 0.62);
  transform: translateY(-1px);
}

.home-closing__link:active {
  transform: scale(0.98);
}

.home-closing__link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.site-footer {
  text-align: center;
  padding: var(--space-sm) var(--space-lg) var(--space-md);
}

.site-footer-link {
  font-family: var(--font-heading);
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  opacity: 0.55;
}

.site-footer-link:hover {
  opacity: 0.75;
}

.floral-deco {
  display: none;
}

/* ── Details Page ── */
.detail-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.detail-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
}

.detail-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.detail-address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.detail-address svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 2px;
}

.map-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #E8E0D0, #D4C8B8);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-gold-light);
}

.section .btn-burgundy {
  width: 100%;
}

.section.rsvp-cta .btn-burgundy,
.section.details-section.details-venue .details-venue-maps.btn-burgundy,
#page-registry .registry-card__link,
#page-registry .registry-give-link {
  width: auto;
  min-width: min(100%, 14rem);
}

/* ── Hotel Cards ── */
.hotel-card {
  background: var(--color-white-soft);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.hotel-card__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.hotel-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-burgundy);
  margin: var(--space-md) 0 var(--space-sm);
  letter-spacing: 0.05em;
}

.hotel-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.booking-code {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(201, 168, 76, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-burgundy);
  letter-spacing: 0.05em;
}

.detail-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Placeholder Images ── */
.placeholder-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--color-burgundy) 0%, var(--color-burgundy-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white-soft);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Ornate Sections ── */
.ornate-section {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  margin: var(--space-lg);
  background: var(--color-white-soft);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-lg);
  position: relative;
}

.ornate-frame {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  padding: var(--space-md);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  background: rgba(201, 168, 76, 0.08);
}

.ornate-frame-circle {
  border-radius: 50%;
}

.section-icon {
  width: 100%;
  height: 100%;
  color: var(--color-gold);
}

.info-list {
  text-align: left;
  margin-top: var(--space-lg);
}

.info-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-burgundy);
  margin-bottom: var(--space-xs);
}

.info-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Dress Code ── */
.dress-code {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--color-burgundy);
  margin: var(--space-md) 0;
}

.color-swatches {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.32);
  box-shadow: none;
}

.swatch:nth-child(2) {
  border-color: var(--color-gold-light);
}

/* ── FAQ Accordion ── */
.accordion {
  text-align: left;
  margin-top: var(--space-lg);
}

.accordion-item {
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-burgundy);
  text-align: left;
  gap: var(--space-md);
}

.accordion-icon {
  font-size: 1.25rem;
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel__inner {
  overflow: hidden;
  min-height: 0;
}

.accordion-panel p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-bottom: 0;
}

.accordion-item.open .accordion-panel p {
  padding-bottom: var(--space-md);
}

/* ── Side floral borders (replaces legacy roses-deco) ── */

/* ── Timeline ── */
.timeline {
  position: relative;
  padding: var(--space-lg) var(--space-md) var(--space-2xl);
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 var(--space-md) var(--space-2xl);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item[data-side="left"] {
  left: 0;
  text-align: right;
  padding-right: var(--space-xl);
}

.timeline-item[data-side="right"] {
  left: 50%;
  text-align: left;
  padding-left: var(--space-xl);
}

.timeline-marker {
  position: absolute;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--color-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
  z-index: 1;
}

.timeline-item[data-side="left"] .timeline-marker {
  right: -6px;
}

.timeline-item[data-side="right"] .timeline-marker {
  left: -6px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-xs);
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
}

.timeline-content p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.timeline-img {
  height: 120px;
  margin: var(--space-sm) 0;
  font-size: 0.7rem;
}

/* Mobile: stack timeline on one side */
@media (max-width: 767px) {
  .timeline-line {
    left: 20px;
  }

  .timeline-item,
  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 48px;
    padding-right: var(--space-md);
  }

  .timeline-item[data-side="left"] .timeline-marker,
  .timeline-item[data-side="right"] .timeline-marker {
    left: 14px;
    right: auto;
  }
}

/* RTL Timeline */
body.lang-ar .timeline-line {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

body.lang-ar .timeline-item[data-side="left"] {
  left: auto;
  right: 0;
  text-align: left;
  padding-left: var(--space-xl);
  padding-right: var(--space-md);
}

body.lang-ar .timeline-item[data-side="right"] {
  left: auto;
  right: 50%;
  text-align: right;
  padding-right: var(--space-xl);
  padding-left: var(--space-md);
}

@media (max-width: 767px) {
  body.lang-ar .timeline-line {
    right: 20px;
    left: auto;
  }

  body.lang-ar .timeline-item,
  body.lang-ar .timeline-item[data-side="left"],
  body.lang-ar .timeline-item[data-side="right"] {
    text-align: right;
    padding-right: 48px;
    padding-left: var(--space-md);
  }
}

/* ── Story Masonry ── */
.story-masonry {
  column-count: 2;
  column-gap: 10px;
  padding: 0 var(--space-md) var(--space-lg);
}

.story-masonry__item {
  break-inside: avoid;
  margin-bottom: 10px;
}

.story-masonry__photo {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.story-masonry__photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.story-masonry__photo:hover img,
.story-masonry__photo:focus-visible img {
  transform: scale(1.02);
  filter: brightness(1.03);
}

.story-masonry__photo:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.story-masonry__text {
  column-span: all;
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
}

.story-masonry__text p {
  font-family: var(--font-welcome);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 34ch;
  margin: 0 auto;
}

/* ── Story Lightbox ── */
.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(26, 10, 14, 0.94);
  backdrop-filter: blur(6px);
}

.story-lightbox.hidden {
  display: none;
}

.story-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  max-height: calc(100vh - 120px);
}

.story-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.story-lightbox__close {
  position: absolute;
  top: max(var(--space-md), env(safe-area-inset-top));
  right: max(var(--space-md), env(safe-area-inset-right));
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-gold-light);
  cursor: pointer;
}

.story-lightbox__close .panel-close-icon {
  width: 22px;
  height: 22px;
}

.story-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-gold-light);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-lightbox__prev {
  left: max(var(--space-sm), env(safe-area-inset-left));
}

.story-lightbox__next {
  right: max(var(--space-sm), env(safe-area-inset-right));
}

.story-lightbox__counter {
  margin-top: var(--space-md);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.story-lightbox__close:hover,
.story-lightbox__nav:hover {
  color: var(--color-cream);
  border-color: var(--color-gold);
}

/* ── Story closing hero (full-bleed, like home) ── */
.story-closing-hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: min(72vh, 520px);
  margin: 0;
  padding: 0;
  border: none;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--color-cream);
}

.story-closing-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.story-closing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      var(--color-cream) 0%,
      rgba(253, 246, 236, 0.35) 8%,
      transparent 22%,
      transparent 62%,
      rgba(253, 246, 236, 0.45) 82%,
      var(--color-cream) 100%
    );
}

.story-closing-hero:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: -4px;
}

/* ── Story Quote ── */
.story-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  text-align: center;
}

.quote-text {
  font-family: var(--font-welcome);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-burgundy);
  max-width: 280px;
  line-height: 1.5;
}

.quote-floral {
  color: var(--color-gold);
  font-size: 0.8rem;
}

/* ── RSVP Page deadline ── */
.rsvp-deadline {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  padding: 0 var(--space-lg) var(--space-xl);
}

/* ── RSVP Multi-Step Flow ── */
.rsvp-flow {
  --rsvp-plaque: url("assets/images/btn-banner.png") center / 100% 100% no-repeat;
  --rsvp-gold-gradient: linear-gradient(
    110deg,
    #c9a84c 0%,
    #d4b55a 10%,
    #dfc068 20%,
    #e8d598 32%,
    #f5e6b8 42%,
    #fffef8 49%,
    #fffef8 51%,
    #f5e6b8 58%,
    #e8d598 68%,
    #dfc068 80%,
    #d4b55a 90%,
    #c9a84c 100%
  );
  --rsvp-gold-outline-width: 2px;
  padding: var(--space-md) var(--space-lg) var(--space-3xl);
  min-height: 340px;
  position: relative;
  overflow: visible;
}

.rsvp-flow--transitioning .rsvp-step {
  opacity: 0;
  transform: translateY(10px);
}

.rsvp-step {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
  overflow: visible;
}

.rsvp-step--active {
  animation: rsvpStepIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rsvp-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--color-gold);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.rsvp-flourish::before,
.rsvp-flourish::after {
  content: "";
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.55), transparent);
}

.rsvp-flourish--sm {
  font-size: 0.65rem;
  margin: var(--space-2xl) 0 var(--space-md);
}

.rsvp-flourish--sm::before,
.rsvp-flourish--sm::after {
  max-width: 32px;
}

.rsvp-step-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4.6vw, 1.75rem);
  font-weight: 400;
  font-style: normal;
  color: var(--color-burgundy);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

.rsvp-intro-panel {
  border: 1px solid rgba(201, 168, 76, 0.38);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94) 0%, rgba(253, 246, 236, 0.72) 100%);
  padding: clamp(1.35rem, 4.5vw, 1.85rem) clamp(1rem, 4vw, 1.35rem);
}

.rsvp-step-lead {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  font-style: normal;
  color: #4e4e3e;
  line-height: 1.65;
  margin-bottom: var(--space-xl);
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-greeting {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.rsvp-search {
  text-align: left;
  position: relative;
  z-index: 5;
  overflow: visible;
  margin-bottom: 0;
}

.rsvp-search-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4e4e3e;
}

.rsvp-input-wrap {
  position: relative;
}

.rsvp-input {
  width: 100%;
  padding: 0.82rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-white-soft);
  border: 1.5px solid rgba(201, 168, 76, 0.42);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, background 0.25s ease;
  box-shadow: none;
}

.rsvp-input::placeholder {
  color: rgba(122, 107, 93, 0.72);
}

.rsvp-input:focus {
  outline: none;
  border-color: var(--color-gold);
  background: #fffdf8;
  box-shadow: none;
}

.rsvp-flow select.rsvp-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(201, 168, 76, 0.85) 50%),
    linear-gradient(135deg, rgba(201, 168, 76, 0.85) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.rsvp-input option {
  background: var(--color-cream);
  color: var(--color-text);
}

.rsvp-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 200;
  background: var(--color-white-soft);
  border: 1.5px solid rgba(201, 168, 76, 0.42);
  border-radius: var(--radius-md);
  box-shadow: none;
  overflow: hidden;
  animation: rsvpDropdownIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-result-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.rsvp-result-item:last-child {
  border-bottom: none;
}

.rsvp-result-item:hover,
.rsvp-result-item:focus {
  background: rgba(201, 168, 76, 0.1);
  outline: none;
}

.rsvp-result-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--color-burgundy);
  letter-spacing: 0.02em;
}

.rsvp-result-group {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.rsvp-search-empty,
.rsvp-search-hint {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  font-style: normal;
  color: var(--color-text-muted);
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(201, 168, 76, 0.22);
  text-align: center;
}

.rsvp-search-empty a {
  color: var(--color-burgundy);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.45);
}

.rsvp-events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: left;
}

.rsvp-event-card,
.rsvp-gold-panel {
  position: relative;
  isolation: isolate;
  padding: var(--space-lg) var(--space-md);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
}

.rsvp-flow .rsvp-toggle-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: var(--rsvp-gold-outline-width);
  background: var(--rsvp-gold-gradient);
  background-size: 280% 100%;
  animation: goldSheen 4.5s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.rsvp-event-card > *,
.rsvp-gold-panel > * {
  position: relative;
  z-index: 1;
}

.rsvp-event-card__head {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  margin-bottom: var(--space-md);
}

.rsvp-event-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: var(--space-md);
}

.rsvp-event-card__response {
  padding-top: var(--space-xs);
}

.rsvp-field-label--attend {
  margin-bottom: var(--space-sm);
}

.rsvp-event-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-burgundy);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.rsvp-event-card__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.rsvp-event-card__venue {
  font-family: var(--font-welcome);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.rsvp-event-card__desc {
  font-family: var(--font-welcome);
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  line-height: 1.6;
}

/* Choice chips — gold animated outline only */
.rsvp-flow .rsvp-attend-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.rsvp-flow .rsvp-attend-toggle--sm {
  margin-top: var(--space-xs);
}

.rsvp-flow .rsvp-toggle-btn {
  position: relative;
  isolation: isolate;
  min-height: 56px;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: center;
  color: var(--color-burgundy);
  background: rgba(255, 253, 248, 0.98) !important;
  background-image: none !important;
  border: none !important;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  transition: color 0.2s ease, background 0.2s ease;
}

.rsvp-flow .rsvp-toggle-btn:hover:not(.is-active) {
  color: var(--color-burgundy-dark);
}

.rsvp-flow .rsvp-toggle-btn.is-active {
  color: var(--color-cream);
  background: var(--color-burgundy) !important;
  animation: none;
  filter: none !important;
  text-shadow: none !important;
  transform: none;
  font-weight: 700;
}

.rsvp-flow .rsvp-toggle-btn.is-active::before {
  opacity: 0;
  animation: none;
}

.rsvp-flow .rsvp-attend-toggle:has(.rsvp-toggle-btn.is-active) .rsvp-toggle-btn:not(.is-active)::before {
  opacity: 0;
  animation: none;
}

.rsvp-flow .rsvp-attend-toggle:has(.rsvp-toggle-btn.is-active) .rsvp-toggle-btn:not(.is-active) {
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.42) !important;
}

.rsvp-flow .rsvp-toggle-btn.is-active:hover {
  background: var(--color-burgundy-dark) !important;
}

.rsvp-flow .rsvp-toggle-btn:active {
  opacity: 0.94;
}

.rsvp-flow .rsvp-toggle-btn + .rsvp-toggle-btn::before {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-flow .rsvp-toggle-btn::before {
    animation: none;
    background-position: 50% center;
  }
}

.rsvp-flow .rsvp-attend-toggle.rsvp-field-error .rsvp-toggle-btn::before {
  background: var(--color-burgundy);
  animation: rsvpFieldShake 0.45s ease;
}

.rsvp-flow .rsvp-attend-toggle.rsvp-field-error .rsvp-toggle-btn {
  animation: rsvpFieldShake 0.45s ease;
}

.rsvp-field-group--attend:has(.rsvp-attend-toggle.rsvp-field-error) .rsvp-field-label-text {
  color: var(--color-burgundy);
}

.rsvp-event-details,
.rsvp-plus-one {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  animation: rsvpExpandIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-field-label {
  display: block;
  margin-bottom: var(--space-sm);
}

.rsvp-field-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
}

.rsvp-field-label-text {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}

.rsvp-field-tag {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
}

.rsvp-field-tag--optional {
  color: var(--color-text-muted);
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: transparent;
}

.rsvp-field-tag--required {
  color: var(--color-burgundy);
  border: 1px solid rgba(107, 29, 42, 0.2);
  background: rgba(107, 29, 42, 0.04);
}

.rsvp-event-details .rsvp-input,
.rsvp-custom-field .rsvp-input {
  margin-bottom: var(--space-lg);
}

.rsvp-custom-questions {
  text-align: left;
  margin-bottom: var(--space-xl);
  padding-top: var(--space-sm);
}

.rsvp-custom-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.rsvp-custom-subtitle {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  font-style: normal;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-xl);
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.rsvp-custom-field {
  margin-bottom: var(--space-xl);
}

.rsvp-flow .rsvp-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
  padding: 0;
  background: none;
  box-shadow: none;
}

/* Submit — banner plaque sized to content, no shadow or white box */
.rsvp-flow .rsvp-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  min-height: 56px;
  padding: 18px 36px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  background: var(--rsvp-plaque);
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: none !important;
  filter: none !important;
  cursor: pointer;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.rsvp-flow .rsvp-submit-btn:hover {
  filter: brightness(1.05);
  box-shadow: none !important;
  transform: none;
}

.rsvp-flow .rsvp-submit-btn:active {
  transform: none;
  opacity: 0.92;
}

.rsvp-flow .rsvp-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.rsvp-error {
  font-family: var(--font-welcome);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-burgundy);
  background: rgba(107, 29, 42, 0.04);
  padding: var(--space-md);
  border: 1px solid rgba(107, 29, 42, 0.15);
  border-left: 2px solid var(--color-burgundy);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  text-align: left;
}

.rsvp-error-summary-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.rsvp-error-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.rsvp-error-list li {
  margin-bottom: 0.25rem;
}

.rsvp-field-group {
  margin-bottom: var(--space-md);
}

.rsvp-field-group--attend .rsvp-field-label {
  margin-bottom: var(--space-sm);
}

.rsvp-field-group.rsvp-field-error .rsvp-field-label-text {
  color: var(--color-burgundy);
}

.rsvp-input.rsvp-field-error,
.rsvp-flow select.rsvp-field-error {
  border-color: var(--color-burgundy) !important;
  background: rgba(107, 29, 42, 0.04) !important;
  outline: none;
  box-shadow: none;
  animation: rsvpFieldShake 0.45s ease;
}

@keyframes rsvpFieldShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.rsvp-progress-line {
  height: 1px;
  background: rgba(201, 168, 76, 0.15);
  margin-top: var(--space-3xl);
  overflow: hidden;
}

.rsvp-progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-checkmark {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-xl);
  color: var(--color-gold);
  filter: none;
}

.rsvp-checkmark svg {
  width: 100%;
  height: 100%;
}

.rsvp-checkmark path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: rsvpCheckDraw 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.rsvp-summary-list {
  list-style: none;
  text-align: left;
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) 0;
  background: transparent;
  border-top: 1px solid rgba(201, 168, 76, 0.22);
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}

.rsvp-summary-list li {
  font-family: var(--font-welcome);
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  line-height: 1.55;
}

.rsvp-summary-list li strong {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-burgundy);
}

.rsvp-closing {
  font-family: var(--font-welcome);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: var(--space-xl) 0;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-link-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.45);
  cursor: pointer;
  padding: var(--space-xs) 0;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.rsvp-link-btn:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.rsvp-loading {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.rsvp-loading p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}

.rsvp-loading-line {
  width: 80px;
  height: 1px;
  margin: 0 auto;
  background: rgba(201, 168, 76, 0.2);
  overflow: hidden;
  position: relative;
}

.rsvp-loading-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--color-gold);
  animation: rsvpLoadingPulse 1.4s ease infinite;
}

.rsvp-dev-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(201, 168, 76, 0.08);
  border-radius: var(--radius-sm);
  text-align: left;
}

.rsvp-dev-hint ol {
  margin: var(--space-sm) 0 0;
  padding-left: 1.25rem;
}

.rsvp-dev-hint li {
  margin-bottom: 0.35rem;
}

.rsvp-dev-hint a {
  color: var(--color-burgundy);
}

.rsvp-dev-hint code {
  font-size: 0.72rem;
  background: rgba(107, 29, 42, 0.06);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.rsvp-dev-hint strong {
  color: var(--color-burgundy);
  font-weight: 600;
}

.rsvp-animate-in {
  animation: rsvpStepIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rsvp-animate-in--2 { animation-delay: 0.15s; }
.rsvp-animate-in--3 { animation-delay: 0.3s; }

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

@keyframes rsvpStepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rsvpDropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rsvpExpandIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rsvpCheckDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes rsvpLoadingPulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.invitation-card {
  position: relative;
  margin: 0 var(--space-lg) var(--space-2xl);
  padding: var(--space-2xl) var(--space-lg);
}

.card-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  opacity: 0.9;
}

.card-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.card-envelope-icon {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
  margin: 0 auto var(--space-md);
}

.card-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
}

.card-inner p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* ── RSVP Form ── */
.rsvp-form {
  padding: 0 var(--space-lg) var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label,
.form-group legend {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-white-soft);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group fieldset {
  border: none;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--color-white-soft);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.radio-label:has(input:checked) {
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.08);
}

.radio-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.radio-label input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--color-burgundy);
  border-radius: 50%;
}

.btn-submit {
  width: 100%;
  margin-top: var(--space-md);
}

.rsvp-thankyou {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  animation: fadeUp 0.8s ease;
}

.rsvp-thankyou svg {
  width: 48px;
  height: 48px;
  color: var(--color-burgundy);
  margin: 0 auto var(--space-lg);
}

.rsvp-thankyou p {
  font-family: var(--font-welcome);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-burgundy);
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Registry ── */
#page-registry .page-header {
  padding: var(--space-xl) var(--space-md) var(--space-sm);
}

#page-registry .registry-section {
  max-width: min(100%, 540px);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  text-align: center;
}

#page-registry .registry-section__title {
  display: inline-block;
  font-size: clamp(1rem, 4.6vw, 1.32rem);
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-md);
}

#page-registry .registry-section__text {
  font-family: var(--font-invite);
  font-size: clamp(0.84rem, 3.2vw, 0.96rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 auto var(--space-md);
  max-width: 28rem;
}

#page-registry .registry-feature-card {
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(201, 168, 76, 0.34);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 247, 236, 0.94));
  box-shadow: 0 6px 22px rgba(107, 45, 60, 0.08);
}

#page-registry .registry-feature-card__media {
  padding: var(--space-sm);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.02));
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
}

#page-registry .registry-feature-card__img,
#page-registry .registry-feature-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  border-radius: calc(var(--radius-md) - 2px);
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.22);
}

#page-registry .registry-feature-card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

#page-registry .registry-feature-card__body .registry-section__text {
  margin-bottom: var(--space-md);
}

#page-registry .registry-feature-card__actions {
  text-align: center;
}

#page-registry .registry-card__link,
#page-registry .registry-give-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  font-family: var(--font-invite);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-burgundy);
  background-image: none;
  box-shadow: none;
  text-shadow: none;
  filter: none;
}

#page-registry .registry-card__link:hover,
#page-registry .registry-give-link:hover {
  background: var(--color-burgundy-dark);
  box-shadow: none;
  filter: none;
}

#page-registry .registry-give-list {
  display: grid;
  gap: var(--space-sm);
  max-width: min(100%, 22rem);
  margin: 0 auto;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.94);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-stagger > .reveal-stagger__item {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger-index, 0) * 0.07s);
}

.reveal-stagger.visible > .reveal-stagger__item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-invite__polaroid[data-parallax] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > .reveal-stagger__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  min-height: var(--nav-height);
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: stretch;
  background: var(--color-nav-bg);
  z-index: 9990;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  isolation: isolate;
}

.nav-tab {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: rgba(201, 168, 76, 0.55);
  transition: color var(--transition-fast), transform var(--transition-fast);
  padding: 10px 4px 12px;
  min-width: 0;
  min-height: 56px;
  border: none;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
}

.nav-tab::after {
  content: "";
  position: absolute;
  inset: -6px 0;
}

.nav-tab.active {
  color: var(--color-gold-light);
}

.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.nav-tab.active .nav-icon-wrap::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.35) 0%, rgba(201, 168, 76, 0.08) 70%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.4);
}

.nav-icon-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  mix-blend-mode: screen;
  filter: brightness(1.05);
  transition: transform var(--transition-fast);
  pointer-events: none;
}

.nav-tab.active .nav-icon-img {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.nav-label {
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 2px;
  pointer-events: none;
}

/* RTL nav order mirroring */
body.lang-ar .bottom-nav {
  flex-direction: row-reverse;
}

body.lang-ar .header-actions {
  flex-direction: row-reverse;
}

/* ── Responsive: Tablet ── */
@media (min-width: 768px) {
  .section {
    padding: var(--space-3xl) var(--space-2xl);
  }
}

/* ── Responsive: Small phones ── */
@media (max-width: 374px) {
  .countdown-block {
    max-width: 100%;
  }

  .countdown-cells {
    inset: 29% 14% 29% 14%;
    column-gap: 0.24em;
    grid-template-columns: 1.48fr 1fr 1fr 1fr;
  }

  .countdown-ornate {
    --cd-digit-h: clamp(20px, 6.2cqi, 28px);
    --cd-digit-overlap: clamp(-3px, -0.65cqi, -2px);
  }

  .countdown-cell {
    gap: 0.35em;
  }

  .countdown-label {
    font-size: 0.56em;
    letter-spacing: 0.12em;
  }

  .nav-label {
    font-size: 0.45rem;
  }

  .nav-icon-img {
    width: 32px;
    height: 32px;
  }

  .page-side-floral {
    width: clamp(56px, 20vw, 72px);
  }

  .page-title {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    letter-spacing: 0.05em;
  }
}

/* ── Responsive: phones — keep frames and decor inside the shell ── */
@media (max-width: 767px) {
  .main-content {
    overflow-x: clip;
  }

  .hero-overlay {
    padding-inline: var(--space-md);
  }

  .hero-top {
    max-height: none;
    overflow: hidden;
  }

  .hero-portrait {
    width: min(86vw, 360px);
    margin-top: clamp(0.35rem, 1.2vh, 0.85rem);
    margin-bottom: clamp(0.65rem, 2vh, 1.1rem);
  }

  .venue-framed-photo {
    width: 100%;
    max-width: 100%;
  }

  .hero-names-block {
    margin-top: clamp(-1.35rem, -3.5vh, -0.85rem);
  }

  .hero-strand--left {
    transform: translateX(0);
  }

  .hero-strand--right {
    transform: translateX(0);
  }

  .hero-strand-art {
    width: clamp(52px, 16vw, 72px);
  }

  .home-invite {
    overflow-x: clip;
    padding-inline: var(--space-md);
  }

  .home-invite__stage {
    max-width: min(88%, 18.5rem);
  }

  .home-invite__polaroid {
    width: clamp(68px, 19vw, 92px);
  }

  .home-invite__polaroid--right {
    top: 0.35rem;
    right: 0.1rem;
    transform: rotate(6deg) translate3d(0, var(--parallax-y, 0), 0);
  }

  .home-invite__polaroid--left {
    top: clamp(7rem, 30vw, 9.5rem);
    left: 0.1rem;
    transform: rotate(-6deg) translate3d(0, var(--parallax-y, 0), 0);
  }

  .home-invite__decoration-wrap {
    width: 100%;
    margin-inline: 0;
  }

  .venue-preview,
  .venue-framed-photo,
  .story-masonry__photo {
    overflow: hidden;
  }

  .section {
    padding-inline: var(--space-md);
  }

  .nav-icon-img {
    mix-blend-mode: normal;
    filter: none;
  }

  .nav-tab {
    padding-inline: 2px;
    min-height: 58px;
  }

  .nav-tab::after {
    inset: -10px 0;
  }
}
