/* =========================================================
   Wedding Invitation — modern & romantic
   Palette taken from our photo: navy, dusty blue, ivory, gold
   ========================================================= */

:root {
  --navy: #1f2a44;
  --navy-2: #2c3a5c;
  --blue: #6b86b8;
  --blue-soft: #c9d6ec;
  --blue-mist: #e8eef8;
  --ivory: #fbf8f3;
  --blush: #f4e6e2;
  --gold: #c8a96a;
  --gold-light: #e9d9b4;
  --text: #2d3350;
  --muted: #6c7390;

  --f-script: "Aref Ruqaa", "Amiri", serif;
  --f-serif: "Tajawal", "Segoe UI", sans-serif;
  --f-ar-title: "Aref Ruqaa", serif;
  --f-ar: "Tajawal", "Segoe UI", sans-serif;

  --shadow: 0 20px 50px -20px rgba(31, 42, 68, 0.35);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { max-width: 100%; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  font-family: var(--f-serif);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.locked { overflow: hidden; height: 100vh; }

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

[hidden] { display: none !important; }

.ar { font-family: var(--f-ar); line-height: 2; }

/* ---------- petals canvas & progress ---------- */
#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: right;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 50;
}

/* =========================================================
   ENVELOPE INTRO
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 16px;
  background: radial-gradient(circle at 50% 40%, var(--navy-2), var(--navy) 70%);
  transition: opacity 1s var(--ease) 1.6s, visibility 0s linear 2.6s;
  overflow: hidden;
}

.intro-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.25), transparent 60%);
  animation: pulseGlow 4s ease-in-out infinite;
}

.intro-hint {
  color: var(--gold-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-align: center;
  animation: fadeDown 1.2s var(--ease) both;
}

.intro-tap {
  color: var(--blue-soft);
  font-style: italic;
  font-size: 1.1rem;
  animation: blink 2s ease-in-out infinite;
}

.envelope {
  position: relative;
  width: min(340px, 86vw);
  aspect-ratio: 3 / 2;
  perspective: 1200px;
  animation: floatY 4s ease-in-out infinite, popIn 1.2s var(--ease) both;
}

.env-back,
.env-front,
.env-flap {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}

.env-back { background: #e9e1d3; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }

.env-front {
  z-index: 3;
  background:
    linear-gradient(to top right, #f7f1e6 50%, transparent 50.5%) left / 50.5% 100% no-repeat,
    linear-gradient(to top left,  #f3ecdf 50%, transparent 50.5%) right / 50.5% 100% no-repeat;
}

.env-flap {
  z-index: 4;
  height: 60%;
  background: #efe7d8;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform 0.9s var(--ease), z-index 0s 0.45s;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

.env-letter {
  position: absolute;
  z-index: 2;
  left: 7%; right: 7%;
  top: 8%; bottom: 8%;
  background: #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1px solid var(--gold-light);
  transition: transform 1s var(--ease) 0.7s;
}

.env-letter .script { font-family: var(--f-script); font-size: 2.2rem; color: var(--navy); }
.letter-date { letter-spacing: 0.3em; color: var(--gold); font-weight: 600; }

.seal {
  position: absolute;
  z-index: 5;
  left: 50%; top: 60%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #d9bf86, var(--gold) 55%, #9c7f43);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 -4px 8px rgba(0,0,0,0.2);
  color: #fff;
  font-family: var(--f-script);
  font-size: 1.6rem;
  transition: transform 0.4s var(--ease), opacity 0.4s;
  animation: sealPulse 2s ease-in-out infinite;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.6);
}

@media (hover: hover) {
.seal:hover { transform: scale(1.08) rotate(-6deg); }
}

/* opened state */
.intro.open .seal { transform: scale(0) rotate(90deg); opacity: 0; animation: none; }
.intro.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.intro.open .env-letter { transform: translateY(-55%); }
.env-letter > * { opacity: 0; transition: opacity 0.6s 0.8s; }
.intro.open .env-letter > * { opacity: 1; }
.intro.open .envelope { animation: none; }
.intro.open { opacity: 0; visibility: hidden; }
.intro.open .intro-tap,
.intro.open .intro-hint { opacity: 0; transition: opacity 0.4s; }

/* =========================================================
   GENERIC
   ========================================================= */
section { position: relative; padding: clamp(4rem, 10vw, 7rem) 16px; }

.section-title {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  color: var(--navy);
  text-align: center;
  line-height: 1.1;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  margin-bottom: 3rem;
}

.section-sub::after {
  content: "❦";
  display: block;
  color: var(--gold);
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left 0.7s var(--ease);
}

@media (hover: hover) {
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:hover::after { left: 130%; }
}

.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 15% 20%, var(--blue-mist), transparent 40%),
    radial-gradient(circle at 85% 30%, var(--blush), transparent 40%),
    radial-gradient(circle at 50% 90%, var(--blue-soft), transparent 45%),
    var(--ivory);
  animation: bgShift 16s ease-in-out infinite alternate;
  z-index: -1;
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; width: 100%; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: var(--muted);
}

.names {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 7rem);
  line-height: 1.05;
  color: var(--navy);
  margin: 0.5rem 0;
  animation: glow 4s ease-in-out infinite;
}

.names .amp {
  display: inline-block;
  font-size: 0.7em;
  margin: 0 0.15em;
  color: var(--gold);
  animation: heartbeat 2.4s ease-in-out infinite;
}

.tagline {
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--navy-2);
  min-height: 2em;
}

.caret { color: var(--gold); animation: blink 1s steps(1) infinite; margin-inline-start: 2px; }

/* photo */
.photo-wrap {
  position: relative;
  width: min(330px, 78vw);
  margin: 2rem auto 2.5rem;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.4s ease-out;
}

.photo-arch {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-mist), var(--blue-soft));
  border: 6px solid #fff;
  box-shadow: var(--shadow), 0 0 0 1px var(--gold-light);
}

.photo-arch img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 104%;
  transform: translateX(-50%);
  animation: gentleZoom 10s ease-in-out infinite alternate;
}

.photo-ring {
  position: absolute;
  border-radius: 999px 999px 30px 30px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.ring-1 { inset: -14px; opacity: 0.7; animation: ringPulse 4s ease-in-out infinite; }
.ring-2 { inset: -28px; opacity: 0.35; border-style: dashed; animation: ringPulse 4s ease-in-out 1s infinite; }

.sparkle {
  position: absolute;
  color: var(--gold);
  font-size: 1.6rem;
  animation: twinkle 2.5s ease-in-out infinite;
  pointer-events: none;
}
.s1 { top: 6%; left: -12%; }
.s2 { top: 30%; right: -14%; animation-delay: 0.6s; font-size: 1.2rem; }
.s3 { bottom: 18%; left: -10%; animation-delay: 1.2s; font-size: 1rem; }
.s4 { bottom: 4%; right: -8%; animation-delay: 1.8s; }

/* date badge */
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 1.6rem);
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(0.75rem, 2.4vw, 0.95rem);
  color: var(--navy-2);
}

.date-badge strong {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.date-badge em { font-style: italic; color: var(--gold); text-transform: none; }

/* floating hearts */
.floating-hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floating-hearts span {
  position: absolute;
  bottom: -40px;
  color: var(--blue);
  opacity: 0;
  animation: rise linear infinite;
}

.scroll-down {
  position: relative;
  display: block;
  margin-top: 2.5rem;
  flex-shrink: 0;
  width: 26px; height: 42px;
  border: 2px solid var(--navy-2);
  border-radius: 20px;
  z-index: 3;
}
.scroll-down span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown-section {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  overflow: hidden;
}
.countdown-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(233, 217, 180, 0.35) 1px, transparent 1.5px);
  background-size: 32px 32px;
  animation: drift 30s linear infinite;
  opacity: 0.5;
}
.countdown-section .section-title { color: #fff; }
.countdown-section .section-sub { color: var(--blue-soft); }

.countdown {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 2.5vw, 1.5rem);
  max-width: 720px;
  margin: 0 auto;
}

.cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.6rem) 0.3rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(233, 217, 180, 0.35);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) {
.cd:hover { transform: translateY(-6px); }
}

.num {
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.num.tick { animation: tick 0.6s var(--ease); }

.lbl {
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  color: var(--blue-soft);
}

.married-msg {
  position: relative;
  text-align: center;
  font-family: var(--f-script);
  font-size: 3rem;
  color: var(--gold-light);
}

/* =========================================================
   VERSE
   ========================================================= */
.verse { background: var(--blush); text-align: center; overflow: hidden; }
.verse-inner { position: relative; max-width: 640px; margin: 0 auto; }
.quote-mark {
  position: absolute;
  top: -3rem; left: 50%;
  transform: translateX(-50%);
  font-size: 9rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
}
.verse-text {
  font-family: var(--f-ar-title);
  font-size: clamp(2rem, 7vw, 3.2rem);
  color: var(--navy);
  line-height: 1.5;
}
.verse .ref { display: inline-block; margin-top: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold); }

/* =========================================================
   STORY TIMELINE
   ========================================================= */
.story { background: var(--ivory); }

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0;
}

.tl-line {
  position: absolute;
  top: 0; bottom: 0;
  right: 26px;
  width: 2px;
  margin-right: -1px;
  background: var(--blue-soft);
  border-radius: 2px;
}
.tl-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--blue), var(--gold));
  transform-origin: top;
  transform: scaleY(0);
}

.tl-item {
  position: relative;
  padding: 0 5rem 3rem 0;
}

.tl-dot {
  position: absolute;
  top: 0.8rem;
  right: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px var(--ivory), var(--shadow);
  z-index: 2;
  transform: scale(0);
  transition: transform 0.7s var(--ease) 0.2s;
}

.tl-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(200, 169, 106, 0.25);
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow 0.4s;
}

.tl-item.in .tl-card { opacity: 1; transform: none; }
.tl-item.in .tl-dot { transform: scale(1); animation: dotPop 2.5s ease-in-out 1s infinite; }

@media (hover: hover) {
.tl-card:hover { box-shadow: 0 30px 60px -20px rgba(31, 42, 68, 0.45); }
}

.tl-card::before {
  content: "";
  position: absolute;
  top: 1.9rem;
  right: -9px;
  width: 18px; height: 18px;
  background: #fff;
  transform: rotate(45deg);
  border-top: 1px solid rgba(200, 169, 106, 0.25);
  border-right: 1px solid rgba(200, 169, 106, 0.25);
}

.tl-year {
  display: inline-block;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: var(--blue-mist);
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

.tl-card h3 {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--navy);
  margin: 0.4rem 0 0.6rem;
  line-height: 1.2;
}

.tl-card p { font-size: 1.02rem; color: var(--text); margin-bottom: 0.6rem; line-height: 2; }
.tl-card p:last-child { margin-bottom: 0; }
.tl-card strong { color: var(--navy); font-weight: 500; }

.tl-card.highlight {
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  color: #fff;
}
.tl-card.highlight::before { background: var(--navy); }
.tl-card.highlight h3 { color: var(--gold-light); }
.tl-card.highlight p { color: var(--blue-mist); }
.tl-card.highlight strong { color: #fff; }
.tl-card.highlight .tl-year { background: rgba(255,255,255,0.12); color: var(--gold-light); }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
}
.stat-num {
  display: block;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.stat-num.infinity { color: var(--gold); animation: heartbeat 2.4s ease-in-out infinite; }
.stat-lbl { display: block; margin-top: 0.5rem; color: var(--muted); font-style: italic; }

/* =========================================================
   DETAILS
   ========================================================= */
.details {
  background:
    radial-gradient(circle at 10% 10%, var(--blue-mist), transparent 40%),
    radial-gradient(circle at 90% 90%, var(--blush), transparent 40%),
    var(--ivory);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.event-card {
  flex: 1 1 320px;
  max-width: 440px;
  text-align: center;
  background: #fff;
  border-radius: 200px 200px var(--radius) var(--radius);
  padding: 3rem 1.8rem 2.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(200, 169, 106, 0.35);
  position: relative;
  overflow: hidden;
}
.event-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 190px 190px 16px 16px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
}
.event-card.reveal.in { transition-delay: var(--d, 0s); }
@media (hover: hover) {
.event-card:hover .card-icon { transform: translateY(-6px) rotate(-4deg); }
}

.card-icon {
  width: 76px; height: 76px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-mist);
  color: var(--navy);
  transition: transform 0.5s var(--ease);
}
.card-icon svg { width: 44px; height: 44px; }
.card-icon svg { animation: floatY 3s ease-in-out infinite; }

.event-card h3 {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 2.3rem;
  color: var(--navy);
  line-height: 1.2;
}
.venue { font-size: 1.35rem; font-weight: 600; color: var(--navy-2); margin-top: 0.4rem; }
.venue-ar { font-family: var(--f-ar); color: var(--muted); margin-bottom: 1rem; }

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 1rem 0 1.6rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--gold-light);
  border-bottom: 1px dashed var(--gold-light);
  font-size: 1.1rem;
}

.card-step {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

/* programme (hall version) */
.program {
  max-width: 560px;
  margin: 3.5rem auto 0;
  list-style: none;
  position: relative;
}
.program li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.8rem;
  background: rgba(255,255,255,0.8);
  border-radius: 14px;
  border: 1px solid rgba(200,169,106,0.3);
}
.program .p-ico { font-size: 1.5rem; }
.program .p-time { margin-inline-start: auto; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  text-align: center;
  padding: 5rem 16px 2.5rem;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.closing { font-style: italic; font-size: clamp(1.3rem, 4vw, 1.8rem); color: var(--blue-soft); }
.footer-names {
  font-family: var(--f-script);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--gold-light);
  margin: 0.5rem 0;
  line-height: 1.2;
}
.footer-names .amp { color: #fff; }
.footer-date { letter-spacing: 0.4em; color: var(--blue-soft); }
.footer-heart { margin-top: 3rem; font-size: 0.9rem; color: var(--muted); }
.footer-heart span { color: #e57f95; display: inline-block; animation: heartbeat 1.4s ease-in-out infinite; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 150%);
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.4s, visibility 0s 0.5s;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }

/* cursor trail hearts */
.trail {
  position: fixed;
  pointer-events: none;
  z-index: 90;
  color: var(--blue);
  font-size: 14px;
  animation: trail 1s ease-out forwards;
}

/* click burst */
.burst {
  position: fixed;
  pointer-events: none;
  z-index: 95;
  font-size: 18px;
  animation: burst 1.1s var(--ease) forwards;
}

/* =========================================================
   ARABIC TYPOGRAPHY
   letter-spacing breaks joined Arabic letters, and italics
   are faked by the browser — switch both off for Arabic text.
   ========================================================= */
.intro-hint, .eyebrow, .section-sub, .date-badge, .lbl, .tl-year,
.card-step, .ref, .btn, .stat-lbl, .intro-tap, .tagline, .closing {
  letter-spacing: 0;
  font-style: normal;
}
.intro-hint { font-size: 1.1rem; }
.eyebrow { font-size: clamp(1rem, 3vw, 1.2rem); }
.date-badge { font-size: clamp(1rem, 3vw, 1.15rem); }
.date-badge em { font-style: normal; }
.lbl { font-size: clamp(0.85rem, 2.5vw, 1rem); }
.names { padding: 0.2em 0; line-height: 1.4; }
.section-title { line-height: 1.5; }
.tl-card h3, .event-card h3 { font-size: 1.9rem; line-height: 1.6; }
.married-msg { font-size: 2.4rem; }
.env-letter .script { font-size: 1.9rem; }
.letter-date, .footer-date, .num, .stat-num, .tl-year { direction: ltr; unicode-bidi: isolate; }
.seal { font-family: var(--f-ar-title); font-size: 1.25rem; }

/* personalised guest name */
.intro-guest {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeDown 1.2s var(--ease) both;
}
.intro-guest .to { color: var(--blue-soft); font-size: 1rem; }
.intro-guest .guest-name {
  font-family: var(--f-ar-title);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.5;
  color: var(--gold-light);
  text-shadow: 0 0 24px rgba(200, 169, 106, 0.5);
}
.intro.open .intro-guest { opacity: 0; transition: opacity 0.4s; }

.guest-line {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gold-light);
  color: var(--navy);
  font-weight: 500;
  font-size: clamp(1rem, 3.2vw, 1.2rem);
}
.guest-line [data-guest] { color: var(--gold); font-weight: 700; }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0.2; } }
@keyframes pulseGlow { 0%,100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes sealPulse { 0%,100% { box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 0 0 rgba(200,169,106,0.6); } 50% { box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 0 16px rgba(200,169,106,0); } }
@keyframes glow { 0%,100% { text-shadow: 0 0 0 rgba(200,169,106,0); } 50% { text-shadow: 0 0 22px rgba(200,169,106,0.55); } }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes bgShift { to { transform: translate(3%, -3%) scale(1.05); } }
@keyframes gentleZoom { to { transform: translateX(-50%) scale(1.05); } }
@keyframes ringPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes twinkle { 0%,100% { opacity: 0.2; transform: scale(0.6) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(90deg); } }
@keyframes rise {
  0% { opacity: 0; transform: translateY(0) translateX(0) rotate(0); }
  10% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-110vh) translateX(var(--sway, 30px)) rotate(var(--rot, 40deg)); }
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes drift { to { background-position: 320px 320px; } }
@keyframes tick { 0% { opacity: 0.35; } 100% { opacity: 1; } }
@keyframes dotPop { 0%,100% { box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px rgba(200,169,106,0.5); } 50% { box-shadow: 0 0 0 6px var(--ivory), 0 0 0 16px rgba(200,169,106,0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes trail { to { opacity: 0; transform: translateY(-30px) scale(0.3); } }
@keyframes burst { to { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.4) rotate(var(--r)); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 760px) {
  .tl-item { padding: 0 4.2rem 2.5rem 0; }
  .tl-card { padding: 1.3rem 1.2rem 1.1rem; }
  .tl-card h3 { font-size: 1.9rem; }
}

@media (max-width: 520px) {
  .date-badge { flex-direction: column; gap: 0.3rem; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 2.2rem; }
  .event-card { padding: 2.6rem 1.2rem 2rem; }
  .actions .btn { width: 100%; }
  .program li { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
