/* ═══════════════════════════════════════════════════════
   KHADIJA & HATIM — WEDDING INVITATION
   Main Stylesheet (Royal Garnet, Warm Ivory & Radiant Gold)
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────────────── */
:root {
  /* Color palette — luxury garnet & gold */
  --ivory: #f7f2e8;
  --ivory-warm: #fcf9f2;
  --paper: #eee5d5;
  --paper-deep: #ddceb6;
  --ink: #221814;
  --ink-soft: #4a3b32;
  --garnet: #7d1f2a;
  --garnet-deep: #470f17;
  --garnet-light: #9c2738;
  --gold: #b68a3a;
  --gold-light: #dfc480;
  --gold-pale: #f6e8c4;
  --gold-deep: #785016;
  --gold-glow: rgba(223, 196, 128, 0.4);
  --shadow-subtle: 0 4px 20px rgba(71, 15, 23, 0.08);
  --shadow-card: 0 16px 40px rgba(71, 15, 23, 0.14), 0 2px 6px rgba(182, 138, 58, 0.12);

  /* Typography */
  --display: 'Playfair Display', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Palatino, Georgia, serif;
  --arabic: 'Amiri', 'Traditional Arabic', 'Noto Naskh Arabic', serif;
  --arabic-title: 'Reem Kufi', 'Amiri', serif;

  /* Sizing & Transitions */
  --ease-spring: cubic-bezier(0.18, 0.8, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Arabic RTL Overrides ──────────────────────────── */
html[dir="rtl"] {
  font-family: var(--arabic);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: var(--arabic-title), var(--arabic);
  letter-spacing: 0;
}

html[dir="rtl"] .reveal-kicker,
html[dir="rtl"] .card-invitation-kicker,
html[dir="rtl"] .countdown-kicker,
html[dir="rtl"] .section-kicker,
html[dir="rtl"] .map-kicker,
html[dir="rtl"] .detail-label,
html[dir="rtl"] .countdown-label {
  letter-spacing: 0.05em;
  font-family: var(--arabic);
}

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

html {
  background: var(--ivory);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: var(--ivory);
}

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

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

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

/* ─── Grain Texture Overlay ─────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

/* ─── 4-Second Animation Timer Progress Bar ─────────── */
.reveal-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  background: rgba(182, 138, 58, 0.12);
  pointer-events: none;
}

.reveal-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
  animation: progressCountdown 4s linear 0s 1 forwards;
}

/* ═══════════════════════════════════════════════════════
   TOP CONTROLS BAR (Header with Language & Sound)
   ═══════════════════════════════════════════════════════ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 80;
  padding: 1rem 1.5rem;
  pointer-events: none;
}

.top-bar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.monogram-badge {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(182, 138, 58, 0.5);
  background: rgba(247, 242, 232, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--garnet-deep);
  box-shadow: 0 4px 12px rgba(71, 15, 23, 0.08);
}

.top-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  background: rgba(247, 242, 232, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(182, 138, 58, 0.4);
  color: var(--garnet-deep);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(71, 15, 23, 0.06);
}

.control-btn:hover {
  background: #ffffff;
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(182, 138, 58, 0.25);
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  background: rgba(71, 15, 23, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(223, 196, 128, 0.5);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-switch-btn:hover {
  background: var(--garnet);
  border-color: var(--gold-pale);
  transform: translateY(-1px);
}

.lang-switch-btn span.active {
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.lang-divider {
  opacity: 0.4;
  font-size: 0.65rem;
}

/* ═══════════════════════════════════════════════════════
   SECTION 1: 4-SECOND OPENING ANIMATION STAGE
   ═══════════════════════════════════════════════════════ */
.reveal-page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 4.5rem 1.5rem 2rem;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 45%, #fffdf8 0%, #f6edd9 48%, #ebd9be 85%),
    linear-gradient(150deg, #dfceb2, var(--ivory) 40%, #e5d5be);
}

/* Luxury outer and inner borders */
.reveal-border {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: bismillahReveal 0.8s ease-out 0.2s forwards;
}

.reveal-border-outer {
  inset: 18px;
  border: 1px solid rgba(125, 31, 42, 0.25);
}

.reveal-border-inner {
  inset: 26px;
  border: 1px solid rgba(182, 138, 58, 0.38);
}

/* Ambient glow blobs */
.ambient {
  position: absolute;
  width: 45vw;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(80px);
  pointer-events: none;
}

.ambient-one {
  top: -15vw;
  left: -20vw;
  background: var(--garnet);
}

.ambient-two {
  bottom: -15vw;
  right: -20vw;
  background: var(--garnet);
}

.ambient-three {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55vw;
  background: var(--gold);
  opacity: 0.12;
  filter: blur(90px);
}

/* Particles container */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Stage content wrapper */
.reveal-stage-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

/* 1. Bismillah Wrap & Calligraphy (0.0s) */
.reveal-bismillah-wrap {
  margin-bottom: clamp(0.5rem, 1.5vh, 1.2rem);
}

.reveal-bismillah {
  font-family: var(--arabic);
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: bismillahReveal 0.8s ease-out 0.1s forwards;
  text-shadow: 0 1px 3px rgba(182, 138, 58, 0.2);
}

/* 2. Ring Stage — The Main Focus of the Design (0.6s - 2.0s) */
.ring-stage {
  position: relative;
  z-index: 3;
  width: min(90vw, 880px);
  perspective: 1200px;
  opacity: 0;
  animation: ringHeroArrival 1.4s var(--ease-spring) 0.6s forwards;
  margin: 0 auto clamp(0.6rem, 2vh, 1.6rem);
}

.ring-scene {
  position: relative;
  transform-style: preserve-3d;
  animation: ringFloat 6s ease-in-out infinite;
  animation-delay: 2.2s;
  transition: transform 0.2s ease-out;
}

.ceremonial-ring {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(71, 15, 23, 0.22));
  transform: translateZ(0);
}

/* Golden Halo behind Ring */
.ring-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48%;
  aspect-ratio: 1.15;
  border-radius: 50%;
  border: 1.5px solid rgba(182, 138, 58, 0.6);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, 0.25),
    0 0 50px rgba(182, 138, 58, 0.25),
    0 25px 70px rgba(71, 15, 23, 0.2);
  animation: haloBloom 1s ease-out 0.9s forwards;
  pointer-events: none;
}

/* Glow aura */
.ring-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 232, 196, 0.5) 0%, rgba(182, 138, 58, 0.18) 50%, transparent 75%);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: glowPulse 3s ease-in-out infinite;
  animation-delay: 2.2s;
  pointer-events: none;
  mix-blend-mode: color-dodge;
}

.ring-reflection-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25%;
  height: 20%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 245, 220, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}

/* Dynamic Glint Rays */
.ring-glint {
  position: absolute;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  opacity: 0;
  transform: rotate(-35deg) scaleX(0);
  animation: glintPass 0.5s ease-out 1.8s forwards;
  filter: drop-shadow(0 0 4px #ffffff);
}

.glint-one { top: 28%; left: 30%; }
.glint-two { bottom: 24%; right: 28%; animation-delay: 2.1s; }
.glint-three { top: 44%; right: 20%; animation-delay: 2.4s; transform: rotate(25deg) scaleX(0); }

/* Golden Sparkle Twinkles */
.ring-sparkle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0;
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
  box-shadow: 0 0 8px #ffffff, 0 0 16px var(--gold-light);
}

.sparkle-1 { top: 24%; left: 34%; animation-delay: 2.2s; }
.sparkle-2 { top: 38%; right: 32%; animation-delay: 2.9s; }
.sparkle-3 { bottom: 28%; left: 38%; animation-delay: 3.6s; }
.sparkle-4 { bottom: 22%; right: 36%; animation-delay: 4.3s; }

/* 3. Clean Staggered Couple Names (2.0s - 3.8s, No Overlap) */
.reveal-names-block {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 1rem;
}

.reveal-arabic-names {
  font-family: var(--arabic);
  color: var(--gold-deep);
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  opacity: 0;
  animation: arabicNamesReveal 0.8s ease-out 1.8s forwards;
  text-shadow: 0 1px 3px rgba(182, 138, 58, 0.15);
}

.reveal-arabic-names .ar-amp {
  color: var(--garnet);
  margin-inline: 0.35em;
  font-style: italic;
}

.reveal-english-names {
  font-family: var(--display);
  color: var(--garnet-deep);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  opacity: 0;
  animation: englishNamesRise 0.8s var(--ease-spring) 2.2s forwards;
}

.reveal-english-names .amp {
  color: var(--gold);
  font-size: 0.7em;
  font-style: italic;
  display: inline-block;
  margin-inline: 0.25em;
}

.reveal-kicker {
  font-family: var(--serif);
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  opacity: 0;
  animation: subtitleFadeIn 0.8s ease-out 2.8s forwards;
}

/* 4. Action Wrap & Scroll Prompt (3.4s - 4.0s) */
.reveal-action-wrap {
  margin-top: clamp(1rem, 2.5vh, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.8rem;
  background: var(--garnet-deep);
  color: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: 30px;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(71, 15, 23, 0.25);
  opacity: 0;
  animation: controlsFadeIn 0.6s ease-out 3.4s forwards, btnPulse 3s infinite 4.2s;
  transition: all 0.3s ease;
}

.btn-explore:hover {
  background: var(--garnet);
  color: #ffffff;
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(71, 15, 23, 0.35);
}

.scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--ink-soft);
  opacity: 0;
  animation: controlsFadeIn 0.6s ease-out 3.6s forwards;
}

.scroll-text {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator-arrow {
  color: var(--gold);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   SECTION 2: ATTACHED EVENT DETAILS CARD
   ═══════════════════════════════════════════════════════ */
.event-card-section {
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 50% 10%, rgba(223, 196, 128, 0.15) 0%, transparent 60%),
    var(--ivory);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The Royal Attached Card Container */
.attached-card-container {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: var(--ivory-warm);
  border: 1px solid rgba(182, 138, 58, 0.45);
  box-shadow: var(--shadow-card);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: 4px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.attached-card-container.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Ornate Corners on the Card */
.card-ornate-border {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(182, 138, 58, 0.3);
  pointer-events: none;
}

.corner-flourish {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
}

.corner-flourish.top-left { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-flourish.top-right { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner-flourish.bottom-left { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner-flourish.bottom-right { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Card Header */
.card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.card-bismillah {
  font-family: var(--arabic);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.card-monogram-seal {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--garnet-deep);
  color: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(71, 15, 23, 0.2);
}

.card-invitation-kicker {
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-family: var(--serif);
  color: var(--garnet-deep);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-couple-heading {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 500;
  color: var(--garnet-deep);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.card-couple-heading .amp {
  color: var(--gold);
  font-style: italic;
  font-size: 0.7em;
  margin-inline: 0.25em;
}

.card-arabic-heading {
  font-family: var(--arabic);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.card-arabic-heading span {
  color: var(--garnet);
  font-style: italic;
  margin-inline: 0.3em;
}

.card-invitation-message {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.card-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  margin-top: 1.8rem;
}

.card-divider-ornament::before,
.card-divider-ornament::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ─── Card Countdown Block ──────────────────────────── */
.card-countdown-block {
  text-align: center;
  background: rgba(182, 138, 58, 0.06);
  border: 1px solid rgba(182, 138, 58, 0.3);
  padding: 1.8rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 2.8rem;
}

.countdown-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--garnet-deep);
  margin-bottom: 1rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.4rem, 2vw, 1.2rem);
  margin-bottom: 1rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(54px, 12vw, 75px);
}

.countdown-number {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 600;
  color: var(--garnet-deep);
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.countdown-separator {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--gold);
  margin-top: -0.8rem;
  opacity: 0.6;
}

.countdown-date-hijri {
  font-family: var(--arabic);
  color: var(--gold-deep);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.countdown-date-gregorian {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ─── Card Details Grid (Date, Time, Venue) ─────────── */
.card-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.detail-card {
  background: #ffffff;
  border: 1px solid rgba(182, 138, 58, 0.3);
  padding: 1.8rem 1.2rem;
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 14px rgba(71, 15, 23, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(182, 138, 58, 0.16);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(182, 138, 58, 0.1);
  color: var(--garnet-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.detail-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}

.detail-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--garnet-deep);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.detail-sub {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.detail-note {
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-style: italic;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--garnet);
  font-weight: 500;
  font-style: normal;
  transition: color 0.2s ease;
}

.map-link:hover {
  color: var(--garnet-deep);
  text-decoration: underline;
}

/* ─── Card Quick Actions ────────────────────────────── */
.card-action-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid var(--gold);
  color: var(--garnet-deep);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(71, 15, 23, 0.06);
  transition: all 0.3s ease;
}

.btn-card-action:hover {
  background: var(--garnet-deep);
  color: var(--gold-pale);
  border-color: var(--garnet-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(71, 15, 23, 0.2);
}

.btn-card-action.highlight-btn {
  background: var(--garnet-deep);
  color: var(--gold-pale);
}

.btn-card-action.highlight-btn:hover {
  background: var(--garnet);
  color: #ffffff;
}

/* ─── Timeline / Programme Block ────────────────────── */
.card-timeline-block {
  margin-bottom: 3rem;
  padding-top: 1rem;
}

.section-kicker {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}

.timeline-title {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--garnet-deep);
  margin-bottom: 2rem;
}

.timeline-list {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 95px;
  width: 1px;
  background: rgba(182, 138, 58, 0.35);
}

html[dir="rtl"] .timeline-list::before {
  left: auto;
  right: 95px;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.timeline-time {
  width: 85px;
  text-align: right;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--garnet-deep);
  padding-top: 0.15rem;
}

html[dir="rtl"] .timeline-time {
  text-align: left;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ivory-warm);
  flex-shrink: 0;
  margin-top: 0.3rem;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(182, 138, 58, 0.2);
}

.timeline-item.highlight .timeline-dot {
  background: var(--garnet-deep);
  box-shadow: 0 0 0 4px rgba(125, 31, 42, 0.25);
}

.timeline-content {
  flex: 1;
  background: #ffffff;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(182, 138, 58, 0.25);
  border-radius: 4px;
}

.timeline-item.highlight .timeline-content {
  border-color: var(--gold);
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 4px 14px rgba(182, 138, 58, 0.12);
}

.timeline-content h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--garnet-deep);
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ─── Map & Venue Block ─────────────────────────────── */
.card-map-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(182, 138, 58, 0.3);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  align-items: center;
}

.map-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}

.map-info h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--garnet-deep);
  margin-bottom: 0.3rem;
}

.map-address {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.btn-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 20px;
  background: var(--garnet-deep);
  color: var(--gold-pale);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-map-link:hover {
  background: var(--garnet);
  color: #ffffff;
}

.map-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(182, 138, 58, 0.25);
}

/* ─── RSVP Section ──────────────────────────────────── */
.card-rsvp-block {
  text-align: center;
  background: rgba(182, 138, 58, 0.05);
  border: 1px solid rgba(182, 138, 58, 0.35);
  border-radius: 4px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
}

.rsvp-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--garnet-deep);
  margin-bottom: 0.4rem;
}

.rsvp-subtitle {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.rsvp-form {
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

html[dir="rtl"] .rsvp-form {
  text-align: right;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--garnet-deep);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(182, 138, 58, 0.4);
  background: #ffffff;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--garnet);
  box-shadow: 0 0 0 3px rgba(125, 31, 42, 0.12);
}

.btn-rsvp {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--garnet-deep);
  color: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(71, 15, 23, 0.2);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-rsvp:hover {
  background: var(--garnet);
  color: #ffffff;
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(71, 15, 23, 0.3);
}

.btn-rsvp.is-loading .btn-text {
  opacity: 0;
}

.btn-rsvp .btn-loading {
  position: absolute;
  display: none;
}

.btn-rsvp.is-loading .btn-loading {
  display: block;
}

.rsvp-confirmation.success {
  margin-top: 1.2rem;
  padding: 1rem;
  background: rgba(182, 138, 58, 0.1);
  border: 1px solid var(--gold);
  color: var(--garnet-deep);
  border-radius: 4px;
}

.rsvp-confirmation.error {
  margin-top: 1.2rem;
  padding: 0.8rem;
  background: rgba(125, 31, 42, 0.1);
  border: 1px solid var(--garnet);
  color: var(--garnet-deep);
  border-radius: 4px;
}

/* ─── Card Footer ───────────────────────────────────── */
.card-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(182, 138, 58, 0.25);
}

.footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-ornament span:first-child,
.footer-ornament span:last-child {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.footer-blessing-arabic {
  font-family: var(--arabic);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.footer-blessing-english {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 1.2rem;
  line-height: 1.6;
}

.footer-couple-names {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--garnet-deep);
  margin-bottom: 0.3rem;
}

.footer-couple-names i {
  color: var(--gold);
  margin-inline: 0.3em;
}

.footer-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.footer-credit {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ═══════════════════════════════════════════════════════
   FLOATING NAVIGATION DOTS
   ═══════════════════════════════════════════════════════ */
.floating-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.floating-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

html[dir="rtl"] .floating-nav {
  right: auto;
  left: 1.5rem;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: var(--garnet-deep);
  border-color: var(--garnet-deep);
  transform: scale(1.3);
}

/* ═══════════════════════════════════════════════════════
   QR CODE MODAL
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(34, 24, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--ivory-warm);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-spring);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--garnet-deep);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 14px;
}

.modal-close:hover {
  opacity: 1;
}

.modal-ornament {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.modal-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--garnet-deep);
  margin-bottom: 0.3rem;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.qr-box {
  display: inline-block;
  padding: 0.8rem;
  background: #ffffff;
  border: 1px solid rgba(182, 138, 58, 0.4);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(71, 15, 23, 0.08);
  margin-bottom: 1.2rem;
}

.modal-link {
  font-size: 0.82rem;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1.5rem;
  word-break: break-all;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-copy-link,
.btn-open-physical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-copy-link {
  background: var(--garnet-deep);
  color: var(--gold-pale);
  border: 1px solid var(--gold);
}

.btn-copy-link:hover {
  background: var(--garnet);
  color: #ffffff;
}

.btn-open-physical {
  background: #ffffff;
  color: var(--garnet-deep);
  border: 1px solid rgba(182, 138, 58, 0.5);
}

.btn-open-physical:hover {
  background: rgba(182, 138, 58, 0.1);
  border-color: var(--gold);
}


/* ═══════════════════════════════════════════════════════
   KHADIJA & HATIM — WEDDING INVITATION
   4-Second Cinematic Keyframe Animations & Transitions
   ═══════════════════════════════════════════════════════ */

/* ─── 4-Second Opening Animation Timeline Keyframes ─── */

/* 0.0s – 0.8s: Bismillah Calligraphy Fade & Glow */
@keyframes bismillahReveal {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* 0.6s – 2.0s: Ceremonial Ring Hero Arrival */
@keyframes ringHeroArrival {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(24px);
    filter: drop-shadow(0 10px 20px rgba(58, 34, 21, 0.1));
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 26px 36px rgba(58, 34, 21, 0.28));
  }
}

/* Golden Halo Bloom behind Ring */
@keyframes haloBloom {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  70% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Golden Glow Pulse */
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.95);
  }
  50% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Continuous Ring Subtle Organic Float */
@keyframes ringFloat {
  0%, 100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateY(-6px) rotateX(1.2deg) rotateY(-0.8deg);
  }
  50% {
    transform: translateY(-3px) rotateX(0deg) rotateY(1.2deg);
  }
  75% {
    transform: translateY(-8px) rotateX(-0.8deg) rotateY(0deg);
  }
}

/* 1.8s – 3.0s: Arabic Names Fade In (Khadija first) */
@keyframes arabicNamesReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* 2.2s – 3.6s: English Names Rise (Khadija & Hatim) */
@keyframes englishNamesRise {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3.0s – 4.0s: Subtitle / Kicker Fade In */
@keyframes subtitleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3.4s – 4.0s: Action Controls & Scroll Prompt */
@keyframes controlsFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4-Second Timer Progress Bar */
@keyframes progressCountdown {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* ─── Shimmering Glints & Sparkles ──────────────────── */
@keyframes glintPass {
  0% {
    opacity: 0;
    transform: rotate(-35deg) scaleX(0);
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: rotate(-35deg) scaleX(1.3);
  }
}

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  30% {
    opacity: 0.95;
    transform: scale(1.1) rotate(90deg);
  }
  60% {
    opacity: 0.4;
    transform: scale(0.7) rotate(180deg);
  }
  80% {
    opacity: 0.9;
    transform: scale(1.2) rotate(270deg);
  }
}

/* ─── Scroll Prompt Bounce ──────────────────────────── */
@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ─── Floating Gold Dust Particles ──────────────────── */
@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-15vh) translateX(var(--drift, 40px)) rotate(var(--spin, 360deg));
    opacity: 0;
  }
}

/* ─── Attached Card Unfold / Reveal Animation ───────── */
@keyframes cardRevealGlide {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Button Subtle Pulse */
@keyframes btnPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(182, 138, 58, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(182, 138, 58, 0);
  }
}

/* ─── Reduced Motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .ring-scene {
    animation: none !important;
  }

  .ring-sparkle,
  .ring-glow,
  .ring-glint,
  .particles {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════
   KHADIJA & HATIM — WEDDING INVITATION
   Responsive Stylesheet & Breakpoints
   ═══════════════════════════════════════════════════════ */

/* ─── Tablet (≤ 1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  .attached-card-container {
    padding: 3.5rem 2.5rem;
  }

  .card-map-block {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* ─── Tablet Portrait & Large Phone (≤ 768px) ────────── */
@media (max-width: 768px) {
  .top-bar {
    padding: 0.75rem 1rem;
  }

  .btn-tooltip {
    display: none;
  }

  .reveal-page {
    padding: 4rem 1rem 2rem;
  }

  .ring-stage {
    width: 95vw;
    margin-bottom: 1rem;
  }

  .reveal-names-block {
    padding: 0 0.5rem;
  }

  .reveal-english-names {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .reveal-arabic-names {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  /* Attached Card */
  .event-card-section {
    padding: 2rem 0.8rem;
  }

  .attached-card-container {
    padding: 2.5rem 1.2rem;
  }

  .card-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-card {
    padding: 1.5rem 1rem;
  }

  .card-map-block {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
  }

  .timeline-list::before {
    left: 80px;
  }

  html[dir="rtl"] .timeline-list::before {
    left: auto;
    right: 80px;
  }

  .timeline-time {
    width: 70px;
    font-size: 0.85rem;
  }

  .timeline-content {
    padding: 0.85rem 1rem;
  }

  .card-action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-card-action {
    justify-content: center;
  }
}

/* ─── Mobile Portrait (≤ 480px) ──────────────────────── */
@media (max-width: 480px) {
  .monogram-badge {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }

  .control-btn {
    padding: 0.4rem 0.65rem;
  }

  .lang-switch-btn {
    padding: 0.4rem 0.75rem;
  }

  .reveal-bismillah {
    font-size: 1.05rem;
  }

  .countdown-grid {
    gap: 0.3rem;
  }

  .countdown-unit {
    min-width: 48px;
  }

  .countdown-number {
    font-size: 1.6rem;
  }

  .countdown-label {
    font-size: 0.58rem;
  }

  .card-couple-heading {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .card-arabic-heading {
    font-size: 1.3rem;
  }

  .timeline-list::before {
    left: 12px;
  }

  html[dir="rtl"] .timeline-list::before {
    left: auto;
    right: 12px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 28px;
  }

  html[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 28px;
  }

  .timeline-time {
    width: auto;
    text-align: left;
    padding-top: 0;
  }

  html[dir="rtl"] .timeline-time {
    text-align: right;
  }

  .timeline-dot {
    position: absolute;
    left: 7px;
    top: 4px;
    margin-top: 0;
  }

  html[dir="rtl"] .timeline-dot {
    left: auto;
    right: 7px;
  }

  .floating-nav {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   Hostinger deployment polish: responsive, performance & a11y
   ═══════════════════════════════════════════════════════ */
.family-lineage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.35rem;
  font-family: var(--serif);
  font-size: clamp(0.82rem, 2vw, 1.05rem);
  line-height: 1.35;
  color: var(--ink-soft);
}
.family-side {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
.family-gap { width: 50px; }

.ring-scene picture,
.ring-scene .ceremonial-ring {
  width: 100%;
}

/* Avoid accidental text/image selection during the interactive hero tilt. */
.ring-stage {
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

/* Stable anchors when browser UI or fixed controls are present. */
#invitation { scroll-margin-top: 0.5rem; }

/* Strong visible keyboard focus without altering mouse styling. */
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .reveal-page {
    padding: 4rem 0.75rem 1.5rem;
  }

  .reveal-border-outer { inset: 10px; }
  .reveal-border-inner { inset: 16px; }

  .family-lineage {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 290px;
    font-size: 0.86rem;
    margin-bottom: 0.45rem;
  }

  .family-gap { display: none; }

  .attached-card-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-ornate-border { inset: 8px; }

  .btn-card-action,
  .btn-map-link {
    min-height: 44px;
  }
}

/* Short mobile screens: keep the entire opening interaction reachable. */
@media (max-width: 480px) and (max-height: 700px) {
  .reveal-page { padding-top: 3.4rem; padding-bottom: 1rem; }
  .ring-stage { width: min(88vw, 620px); margin-bottom: 0.35rem; }
  .reveal-bismillah-wrap { margin-bottom: 0.25rem; }
  .reveal-action-wrap { margin-top: 0.55rem; gap: 0.35rem; }
  .scroll-prompt { display: none; }
}

/* Respect data-saving / reduced-motion preferences more aggressively. */
@media (prefers-reduced-motion: reduce) {
  .reveal-progress-container { display: none; }
}
.ring-scene picture {
  display: block;
}
