/* ================= Tokens ================= */
:root {
  --deep-900: #2a3d25;
  --deep-800: #354c2f;
  --deep-700: #46633c;
  --deep-600: #5f7f52;
  --pista-50: #f6f9ee;
  --pista-100: #ecf2de;
  --pista-200: #dfeaca;
  --pista-300: #cadcad;
  --gold-600: #94702f;
  --gold-500: #c09a57;
  --gold-300: #e4cf9e;
  --gold-100: #f8f1e0;
  --ivory: #fafaf3;
  --paper: #fffffa;
  --ink: #2d3a28;
  --ink-soft: #5d6a56;
  --line: rgba(148, 112, 47, 0.26);
  --blush: #f3dcd6;

  --f-script: "Great Vibes", "Snell Roundhand", cursive;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Jost", system-ui, sans-serif;
  --f-arabic: "Amiri", "Traditional Arabic", serif;
  --f-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", var(--f-arabic);

  --gutter: clamp(16px, 5vw, 40px);
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(53, 76, 47, 0.3);
  /* gold-foil fill for premium text; tiles seamlessly so the shine can loop */
  --gold-foil: linear-gradient(100deg, #6e4f17 0%, #a67c2e 24%, #dcbc72 44%, #b08634 60%, #8a6424 80%, #6e4f17 100%);

  /* faint islamic 8-point star pattern */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%237f9d64' stroke-width='0.7' opacity='0.3'%3E%3Cpath d='M40 10l8.5 21.5L70 40l-21.5 8.5L40 70l-8.5-21.5L10 40l21.5-8.5z'/%3E%3Cpath d='M18.8 18.8h42.4v42.4H18.8z' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23cfae72' stroke-width='0.7' opacity='0.16'%3E%3Cpath d='M40 10l8.5 21.5L70 40l-21.5 8.5L40 70l-8.5-21.5L10 40l21.5-8.5z'/%3E%3Cpath d='M18.8 18.8h42.4v42.4H18.8z' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
body.locked { overflow: hidden; height: 100vh; height: 100dvh; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 680px; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow.light { color: var(--gold-600); }
.eyebrow.center { text-align: center; }

.section { padding: clamp(72px, 12vw, 120px) 0; position: relative; }
.section-title {
  font-family: var(--f-script);
  font-size: clamp(42px, 9vw, 64px);
  line-height: 1.15;
  color: var(--deep-700);
  text-align: center;
  margin: 8px 0 clamp(36px, 6vw, 56px);
}

/* ================= Petals canvas ================= */
#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* ================= Royal doors (opening screen) ================= */
.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  perspective: 1600px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gate.gone { visibility: hidden; }

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 1;
  background:
    var(--pattern-light) center / 80px,
    linear-gradient(170deg, var(--pista-100), var(--pista-300));
  transition: transform 1.8s cubic-bezier(.65, 0, .25, 1), filter 1.8s ease;
  will-change: transform;
}
.door-left {
  left: 0;
  transform-origin: left center;
  box-shadow: inset -1px 0 0 var(--gold-500), inset -14px 0 24px -14px rgba(53, 76, 47, .3);
}
.door-right {
  right: 0;
  transform-origin: right center;
  box-shadow: inset 1px 0 0 var(--gold-500), inset 14px 0 24px -14px rgba(53, 76, 47, .3);
}
/* soft light falling on the doors from the centre */
.door::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 100% 45%, rgba(255, 255, 255, .65), transparent 70%);
}
.door-right::before { transform: scaleX(-1); }

.door-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.door-right .door-art { transform: scaleX(-1); }
.d-line { fill: none; stroke: url(#goldFoil); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.d-line.thin { stroke-width: 1; opacity: .7; }
.d-arch { fill: rgba(255, 255, 250, .38); stroke: url(#goldFoil); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.d-finial { fill: url(#goldFoil); }

.gate-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 60px;
  height: 100%;
  margin-left: -30px;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1), rgba(248, 241, 224, .7) 35%, transparent 70%);
}

.gate-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: calc(4svh + env(safe-area-inset-top)) 24px calc(4svh + env(safe-area-inset-bottom));
  transition: opacity .5s ease, transform .7s ease;
}

.foil {
  background: var(--gold-foil);
  background-size: 420px 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil 6s linear infinite;
}
@keyframes foil { to { background-position: 420px 0; } }

.gate-sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .6s ease; }
.gate.open .gate-sparkles { opacity: 0; }
.sparkle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe8 0 30%, #e9cf8c 60%, transparent 72%);
  box-shadow: 0 0 8px 2px rgba(233, 207, 140, .55);
  opacity: 0;
  animation: twinkle var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

.frame-wrap { position: relative; display: grid; place-items: center; }
.frame-rays {
  position: absolute;
  width: 190%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .7) 0deg 5deg, rgba(255, 255, 255, 0) 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%);
  mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 50s linear infinite;
  pointer-events: none;
}

.gate-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gate-urdu {
  font-family: var(--f-urdu);
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.9;
  color: var(--deep-700);
}
.gate-main .eyebrow { margin-top: 8px; color: var(--gold-600); }
.gate-main .frame-wrap { margin-top: clamp(14px, 3svh, 30px); }
.gate-divider { display: flex; align-items: center; gap: 12px; margin: clamp(18px, 3svh, 30px) 0 2px; color: #d23f58; }
.gate-divider span { width: 70px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.gate-divider span:last-child { transform: scaleX(-1); }
.gate-divider svg { width: 18px; height: 18px; }
/* short screens: drop the Urdu line so everything stays on one screen */
@media (max-height: 640px) { .gate-urdu { display: none; } }

.env-bismillah {
  font-family: var(--f-arabic);
  font-size: clamp(24px, 7.2vw, 38px);
  line-height: 1.9;
  margin-bottom: 2px;
  white-space: nowrap;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7));
}
.env-guest {
  margin-top: 12px;
  font-family: var(--f-script);
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.2;
  color: var(--deep-700);
}

.monogram {
  --m: clamp(150px, min(54vw, 29svh), 230px);
  position: relative;
  width: var(--m);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .5s ease;
  -webkit-tap-highlight-color: transparent;
}
.monogram:hover { transform: scale(1.04); }
.monogram:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 10px; border-radius: 50%; }
.mono-star {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(138, 100, 36, .28));
  animation: spin 90s linear infinite;
}
.m-fill { fill: rgba(255, 255, 250, .92); }
.m-line { fill: none; stroke: url(#goldFoil); stroke-width: 2.4; stroke-linejoin: round; }
.m-ring { fill: none; stroke: url(#goldFoil); stroke-width: 1.2; opacity: .85; }
.m-dots { fill: none; stroke: url(#goldFoil); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 8; }
.mono-letters {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--m) * .025);
  padding-top: calc(var(--m) * .05);
  font-family: var(--f-script);
  font-size: calc(var(--m) * .25);
  line-height: 1;
  white-space: nowrap;
}
.mono-letters i { font-style: normal; font-size: .5em; }
.mono-photo {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #c29a4e;
}

.gate-names {
  font-family: var(--f-script);
  font-size: clamp(42px, 13vw, 84px);
  line-height: 1.2;
  white-space: nowrap;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)) drop-shadow(0 6px 14px rgba(138, 100, 36, .18));
}
.gate-date {
  margin-top: 8px;
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--deep-800);
}
.tap-hint {
  margin-top: clamp(10px, 2svh, 18px);
  animation: breathe 2.6s ease-in-out infinite;
}
.tap-hint span {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(rgba(255, 255, 250, .85), rgba(255, 255, 250, .85)) padding-box,
    linear-gradient(120deg, #8a6424, #f3dfa6, #b8903f) border-box;
  box-shadow: 0 10px 24px -12px rgba(138, 100, 36, .55);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--deep-700);
}
@keyframes breathe { 50% { transform: scale(1.05); } }

/* opened state: doors swing inward, light pours out */
.gate.open { cursor: default; pointer-events: none; }
.gate.open .gate-content { opacity: 0; transform: scale(1.08); }
.gate.open .door-left { transform: rotateY(88deg); filter: brightness(.8); }
.gate.open .door-right { transform: rotateY(-88deg); filter: brightness(.8); }
.gate.open .gate-glow { animation: glow 1.8s ease-out forwards; }

@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
@keyframes glow {
  0% { opacity: 0; transform: scaleX(.4); }
  30% { opacity: 1; transform: scaleX(4); }
  100% { opacity: 0; transform: scaleX(22); }
}
@keyframes pulse { 50% { opacity: .45; } }

/* ================= Hero ================= */
.hero {
  /* exactly one phone screen; grows only if content can't fit */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(56px + env(safe-area-inset-bottom));
  position: relative;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.7), transparent 55%),
    var(--pattern) center / 80px,
    linear-gradient(170deg, var(--pista-100), var(--pista-300));
  color: var(--ink);
  text-align: center;
}

.arch {
  position: relative;
  flex: 1;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 8svh, 80px) clamp(16px, 5vw, 44px) clamp(24px, 4svh, 52px);
  border: 2.5px solid transparent;
  border-radius: 50% 50% 18px 18px / 190px 190px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,250,.92), rgba(255,255,250,.7)) padding-box,
    linear-gradient(135deg, #8a6424, #f3dfa6 30%, #b8903f 55%, #f3dfa6 78%, #8a6424) border-box;
  box-shadow: 0 0 0 7px rgba(255,255,255,.45), 0 0 0 8px rgba(192,154,87,.5), 0 30px 80px -30px rgba(53,76,47,.4);
}
.arch::before { /* fine inner gold line */
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(184, 144, 63, .45);
  border-radius: inherit;
  pointer-events: none;
}
.arch-lamp {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 26px;
  transform: translateX(-50%);
  color: var(--gold-500);
  animation: sway 5s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes sway { 0%,100% { transform: translateX(-50%) rotate(-4deg); } 50% { transform: translateX(-50%) rotate(4deg); } }

.bismillah {
  font-family: var(--f-arabic);
  font-size: clamp(20px, min(6.4vw, 3.8svh), 32px);
  color: var(--gold-600);
  margin: 0 0 clamp(8px, 2svh, 22px);
  line-height: 1.65;
}
.bismillah.small { font-size: clamp(18px, 4.6vw, 24px); margin: 0 0 18px; }
.hero .bismillah { margin-bottom: 4px; line-height: 1.55; }
.salawat {
  margin-bottom: clamp(8px, 1.8svh, 18px);
  font-family: var(--f-arabic);
  font-size: clamp(15px, 2.4svh, 20px);
  line-height: 1.7;
  color: var(--deep-700);
}
@media (max-height: 800px) { .hero .eyebrow { display: none; } }

.guest-line {
  font-style: italic;
  font-size: clamp(17px, 2.6svh, 21px);
  color: var(--ink);
  margin-bottom: clamp(6px, 1.4svh, 12px);
}
.guest-line strong { font-weight: 600; color: var(--deep-700); font-style: normal; }
.hero .eyebrow { color: var(--gold-600); }

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(44px, min(17vw, 9.5svh), 96px);
  line-height: 1.05;
  margin: clamp(6px, 1.6svh, 14px) 0 clamp(4px, 1.2svh, 10px);
  background: var(--gold-foil);
  background-size: 420px 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil 6s linear infinite;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)) drop-shadow(0 6px 14px rgba(138, 100, 36, .16));
}
.names .amp { font-size: 0.55em; line-height: 1.2; }
@keyframes shimmer { to { background-position: -250% 0; } }

.subtitle { font-size: clamp(16px, 2.5svh, 20px); font-style: italic; color: var(--ink-soft); }
.urdu {
  margin-top: clamp(2px, .8svh, 8px);
  font-family: var(--f-urdu);
  font-size: clamp(15px, 2.4svh, 20px);
  line-height: 1.95;
  color: var(--gold-600);
}
.arch-rings {
  width: clamp(46px, 7.5svh, 66px);
  margin-bottom: clamp(4px, 1.4svh, 14px);
}
/* short screens: keep the essentials on one screen */
@media (max-height: 800px) { .arch-rings { display: none; } }
@media (max-height: 600px) { .urdu { line-height: 1.6; } .names { margin-top: 2px; } .salawat { margin-bottom: 4px; } }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(10px, 2.6svh, 22px) auto;
  color: var(--gold-500);
}
.divider span { height: 1px; width: 70px; background: linear-gradient(90deg, transparent, currentColor); }
.divider span:last-child { transform: scaleX(-1); }
.divider svg { width: 16px; }

.hero-date {
  font-family: var(--f-sans);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--deep-800);
}
.hero-city { margin-top: 6px; font-style: italic; color: var(--gold-600); }
.hero-hint {
  margin-top: clamp(14px, 3svh, 28px);
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--deep-600);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (max-height: 700px) { .hero-hint { display: none; } }

.scroll-cue {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid var(--deep-600);
  border-radius: 20px;
  opacity: .8;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--deep-600);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ================= Ayah ================= */
.ayah { text-align: center; background: var(--paper) var(--pattern-light) center / 80px; }
.ayah::before, .ayah::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--gold-500), transparent);
}
.ayah::before { top: 0; }
.ayah::after { bottom: 0; transform: scaleY(-1); }
.arabic {
  font-family: var(--f-arabic);
  font-size: clamp(24px, 6vw, 34px);
  line-height: 2;
  color: var(--deep-700);
}
.translation {
  margin-top: 22px;
  font-size: clamp(19px, 4.4vw, 22px);
  font-style: italic;
  color: var(--ink-soft);
}
.ref {
  margin-top: 16px;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-600);
}

/* ================= Couple ================= */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.person {
  text-align: center;
  padding: 36px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.portrait {
  width: 100px;
  height: 132px;
  margin: 0 auto 18px;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 50px 50px 12px 12px;
  background: radial-gradient(ellipse at 50% 30%, #fffffa, var(--pista-100) 80%);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold-500);
}
.portrait svg { height: 100%; width: auto; max-width: none; }
.role { font-family: var(--f-sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-600); }
.person h3 { font-size: clamp(26px, 5vw, 32px); color: var(--deep-700); margin: 6px 0 8px; font-weight: 600; }
.parents { font-style: italic; color: var(--ink-soft); }
.couple-amp { font-family: var(--f-script); font-size: 64px; color: var(--gold-500); }
.couple-grid.solo { grid-template-columns: minmax(0, 440px); justify-content: center; }

/* ================= Countdown ================= */
.countdown-label {
  margin-top: 34px;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.after-reveal { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.5vw, 20px);
  max-width: 620px;
  margin: 16px auto 0;
}
.unit {
  padding: clamp(14px, 4vw, 24px) 4px;
  border: 1px solid rgba(148,112,47,.3);
  border-radius: 14px;
  background: rgba(255,255,250,.65);
  box-shadow: 0 10px 24px -16px rgba(53,76,47,.35);
}
.unit span {
  display: block;
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 500;
  line-height: 1;
  color: var(--deep-700);
  font-variant-numeric: tabular-nums;
}
.unit small {
  display: block;
  margin-top: 8px;
  font-family: var(--f-sans);
  font-size: clamp(9px, 2.4vw, 12px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.countdown-done { font-size: 24px; font-style: italic; margin-top: 20px; color: var(--deep-700); }

/* ================= Events ================= */
.events { background: var(--ivory); }
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 400px));
  justify-content: center;
  gap: 24px;
}
.event {
  position: relative;
  text-align: center;
  padding: 44px 26px 30px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.event::before { /* inner gold frame */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  pointer-events: none;
}
.event:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -22px rgba(53,76,47,.4); }
.event.main { background: linear-gradient(180deg, #fbf7ee, var(--paper)); }
.event.main::after {
  content: "The Main Event";
  position: absolute;
  top: 18px;
  right: -38px;
  transform: rotate(45deg);
  width: 150px;
  padding: 3px 0;
  font-family: var(--f-sans);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--deep-700);
  color: var(--gold-100);
}
.event-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--pista-100);
  box-shadow: 0 0 0 1px var(--gold-500);
}
.event h3 { font-family: var(--f-script); font-size: 46px; color: var(--deep-700); line-height: 1.2; }
.event-date { font-family: var(--f-sans); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-top: 4px; }
.event-time { font-size: 20px; margin-top: 2px; }
.event-venue { margin-top: 16px; font-size: 21px; font-weight: 600; color: var(--deep-700); }
.event-address { color: var(--ink-soft); font-size: 17px; line-height: 1.4; }
.event-note { margin-top: 12px; font-style: italic; font-size: 16px; color: var(--gold-600); }
.event-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.event-actions .btn { flex: 0 1 170px; min-width: 0; padding: 10px 12px; font-size: 12px; letter-spacing: .08em; }

/* ================= Save the date: scratch card + calendar ================= */
.save-date { background: var(--paper) var(--pattern-light) center / 80px; text-align: center; }
/* heart-shaped scratch card: a heart mask over the date, plus a gold outline */
.scratch {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 35 / 32;
  margin: 0 auto;
  filter: drop-shadow(0 18px 22px rgba(142, 16, 36, .25));
}
.scratch-heart {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 38%, #fffafa 30%, #fbdfe3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2.5 3.5 35 32' preserveAspectRatio='none'%3E%3Cpath d='M20 35C8 27 3 20 3 13 3 7.5 7 4 11.5 4 15 4 18 6 20 9.5 22 6 25 4 28.5 4 33 4 37 7.5 37 13 37 20 32 27 20 35z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2.5 3.5 35 32' preserveAspectRatio='none'%3E%3Cpath d='M20 35C8 27 3 20 3 13 3 7.5 7 4 11.5 4 15 4 18 6 20 9.5 22 6 25 4 28.5 4 33 4 37 7.5 37 13 37 20 32 27 20 35z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.scratch-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  pointer-events: none;
}
.scratch-outline path { fill: none; stroke: #b3182f; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.scratch-under {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 14% 20%;   /* sit in the wide upper part of the heart */
}
.scratch-day { font-family: var(--f-sans); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-600); }
.scratch-date { font-family: var(--f-script); font-size: clamp(40px, 11.5vw, 60px); line-height: 1.15; color: #a3172f; white-space: nowrap; }
.scratch-year { font-style: italic; color: var(--ink-soft); }
.scratch canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  touch-action: none;
  cursor: grab;
  transition: opacity .8s ease;
}
.scratch.done canvas { opacity: 0; pointer-events: none; }
.scratch-help { margin-top: 14px; font-size: 16px; font-style: italic; color: var(--ink-soft); }
.scratch-help button { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-600); text-decoration: underline; cursor: pointer; }

.calendar { max-width: 420px; margin: 28px auto 0; padding: 22px 18px 18px; }
.cal-title { font-family: var(--f-script); font-size: 36px; line-height: 1.2; color: var(--deep-700); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.cal-grid span {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--ink);
}
.cal-grid .dow { aspect-ratio: auto; padding-bottom: 6px; font-size: 11px; letter-spacing: .1em; color: var(--gold-600); }
.cal-grid .mark { font-weight: 500; color: var(--deep-700); }
.cal-grid .mark svg { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); max-width: none; overflow: visible; }
.cal-grid .mark path {
  fill: #e5858f;
  fill-opacity: 0;
  stroke: #e5858f;
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s ease .3s, fill-opacity .6s ease 1.5s;
}
.calendar.revealed .mark { color: #fff; transition: color .4s ease 1.6s; }
.calendar.revealed .mark path { stroke-dashoffset: 0; fill-opacity: 1; }
.cal-grid .mark b { position: relative; z-index: 1; font-weight: 500; }

/* ================= Falling rose petals (scratch card) ================= */
.petal-fall {
  position: fixed;
  z-index: 70;
  width: 13px;
  height: 17px;
  margin: -8px 0 0 -6px;
  pointer-events: none;
  animation: petal-fall 1.6s cubic-bezier(.35, .1, .65, 1) forwards;
}
.petal-fall svg { width: 100%; height: 100%; }
@keyframes petal-fall {
  0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); opacity: 0; }
}

/* ================= Flying hearts ================= */
.heart-fly {
  position: fixed;
  z-index: 70;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  pointer-events: none;
  animation: heart-fly 1.7s cubic-bezier(.2, .7, .3, 1) forwards;
}
.heart-fly svg { width: 100%; height: 100%; }
@keyframes heart-fly {
  0% { transform: translate(0, 0) scale(.3); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(var(--s)) rotate(var(--r)); opacity: 0; }
}

/* ================= Our journey ================= */
.journey { margin-top: clamp(56px, 10vw, 80px); }
.sub-title {
  margin-bottom: 26px;
  font-family: var(--f-script);
  font-size: clamp(36px, 8vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: var(--deep-700);
}
.timeline { position: relative; max-width: 560px; margin: 0 auto; padding-left: 36px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--gold-300), var(--gold-500), var(--gold-300));
}
.moment { position: relative; margin-bottom: 22px; padding: 18px 22px; }
.moment:last-child { margin-bottom: 0; }
.moment::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 0 4px var(--paper);
}
.moment.now::before { background: #e5858f; border-color: #e5858f; }
.moment-date { font-family: var(--f-sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); }
.moment h3 { font-family: var(--f-script); font-size: 36px; line-height: 1.2; color: var(--deep-700); }
.moment-text { color: var(--ink-soft); }

/* ================= Good to know ================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 24px auto 0;
}
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.info-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--pista-100);
  box-shadow: 0 0 0 1px var(--gold-500);
}
.info-item h3 { font-size: 21px; font-weight: 600; color: var(--deep-700); }
.info-item p { font-size: 17px; line-height: 1.5; color: var(--ink-soft); }

/* ================= Dua + Ameen ================= */
.dua-card { max-width: 620px; margin: 0 auto 24px; text-align: center; }
.dua-card .arabic { font-size: clamp(24px, 6.4vw, 32px); }
.translit { margin-top: 10px; font-style: italic; color: var(--deep-600); }
.dua-card .translation { margin-top: 10px; font-size: 19px; }
.ameen-btn {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 28px auto 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #f3b3b8, #e5858f 60%, #cf6874);
  box-shadow: 0 12px 26px -8px rgba(207, 104, 116, .6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ameen-btn svg { width: 38px; height: 38px; }
.ameen-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid #e5858f;
  animation: ripple 2.4s ease-out infinite;
}
.ameen-btn.beat { animation: beat .45s ease; }
.ameen-btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 8px; }
.ameen-label { margin-top: 12px; font-family: var(--f-sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); }
.ameen-count { margin-top: 4px; min-height: 1.6em; font-style: italic; color: var(--ink-soft); }
@keyframes beat { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }

/* ================= Marriage in the Qur'an (carousel) ================= */
.quran { background: var(--paper) var(--pattern-light) center / 80px; }
.ayah-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ayah-track::-webkit-scrollbar { display: none; }
.ayah-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 32px 22px 26px;
  text-align: center;
}
.ayah-slide .arabic { font-size: clamp(24px, 6.4vw, 32px); }
.slide-urdu { margin-top: 10px; font-family: var(--f-urdu); font-size: clamp(16px, 4.4vw, 20px); line-height: 2.1; color: var(--deep-600); }
.ayah-slide .translation { margin-top: 8px; font-size: 18px; }
.ayah-dots { display: flex; justify-content: center; gap: 10px; }
.ayah-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--gold-300);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.ayah-dots button[aria-current="true"] { width: 26px; background: var(--gold-600); }

/* ================= Venue map ================= */
.map-embed {
  max-width: 400px;
  margin: 20px auto 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--pista-50);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed:empty { display: none; }

/* ================= A blessed tradition (Ahlulbayt) ================= */
.tradition { background: var(--ivory); text-align: center; }
.tradition-card { padding: 30px 24px; }
.tradition-urdu { font-family: var(--f-urdu); font-size: clamp(18px, 5vw, 23px); line-height: 2.2; color: var(--deep-700); }
.tradition-en { margin-top: 10px; font-size: 19px; font-style: italic; color: var(--ink-soft); }
.tradition-en strong { font-style: normal; font-weight: 600; color: var(--deep-700); }
.hadith-grid { display: grid; gap: 16px; margin-top: 16px; }
.hadith { padding: 26px 22px; }
.hadith .arabic { font-size: clamp(21px, 5.6vw, 27px); }
.hadith .translation { margin-top: 8px; font-size: 18px; }
.hadith .ref { margin-top: 12px; }

/* ================= Buttons & forms ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--gold-500);
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn.outline { background: transparent; color: var(--deep-700); }
.btn.outline:hover { background: var(--pista-100); }
.btn.gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--deep-900); border-color: transparent; }
.btn.deep { background: var(--deep-700); color: var(--gold-100); border-color: var(--deep-700); }
.btn.gold:hover, .btn.deep:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn svg { width: 16px; height: 16px; }

.rsvp { background: var(--paper) var(--pattern-light) center / 80px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 40px);
}
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-600);
  padding: 0;
}
.field em { text-transform: none; letter-spacing: 0; font-style: italic; }
input[type="text"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; }
input[type="text"]:focus, select:focus, textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(207,174,114,.2);
}
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { margin-bottom: 6px; grid-column: 1 / -1; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label span {
  display: block;
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  transition: all .2s ease;
}
.choice input:checked + span { background: var(--deep-700); color: var(--gold-100); border-color: var(--deep-700); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(207,174,114,.4); }
.form-note { margin-top: -8px; text-align: center; font-size: 15px; font-style: italic; color: var(--ink-soft); }
.form-status { text-align: center; font-style: italic; color: var(--deep-700); min-height: 1.6em; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }

/* ================= Wishes ================= */
.wishes { background: var(--ivory); }
.wish-form { max-width: 620px; margin: 0 auto 56px; }
.wishes .sub-title { margin-bottom: 20px; }
.wish-wall {
  columns: 3 280px;
  column-gap: 20px;
}
.wish {
  break-inside: avoid;
  margin: 0 0 20px;
  padding: 22px 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -18px rgba(53,76,47,.3);
  position: relative;
  animation: pop .5s ease both;
}
.wish::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 14px;
  font-size: 60px;
  line-height: 1;
  color: var(--gold-500);
  font-family: var(--f-serif);
}
.wish p { font-size: 18px; font-style: italic; white-space: pre-line; word-wrap: break-word; }
.wish footer { margin-top: 12px; font-family: var(--f-sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.chips {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  max-width: 250px;
  padding: 8px 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pista-50);
  font: inherit;
  font-size: 16px;
  color: var(--deep-700);
  cursor: pointer;
}
.chip:hover { background: var(--pista-100); }

/* ================= Footer ================= */
.footer {
  text-align: center;
  padding: 80px 16px 110px;
  background:
    var(--pattern) center / 80px,
    linear-gradient(170deg, var(--pista-100), var(--pista-300));
  color: var(--ink);
}
.footer-note { font-size: 21px; font-style: italic; max-width: 520px; margin: 0 auto 30px; }
.iltemas { margin: -14px 0 26px; font-family: var(--f-urdu); font-size: 22px; line-height: 2; color: var(--gold-600); }
.hosts { font-family: var(--f-script); font-size: clamp(34px, 8vw, 46px); color: var(--deep-700); margin-top: 6px; line-height: 1.3; }
.hashtag { margin-top: 18px; font-family: var(--f-sans); letter-spacing: .12em; color: var(--gold-600); }

.share-btn { margin-top: 26px; }

.credit {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.credit a { color: var(--deep-700); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(70, 99, 60, .35); }
.credit a:hover { border-bottom-color: var(--deep-700); }
.credit span { margin: 0 6px; color: var(--gold-500); }

/* ================= Quick-action bar ================= */
.action-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(calc(100% - 24px), 440px);
  display: flex;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 250, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(53, 76, 47, .35);
  transform: translate(-50%, 140%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.action-bar.show { transform: translate(-50%, 0); }
.action-bar a {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--deep-700);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.action-bar a:hover { background: var(--pista-100); }
.action-bar a:last-child { background: var(--deep-700); color: var(--gold-100); }
.action-bar svg { width: 18px; height: 18px; flex: none; }
.action-bar[data-no-rsvp] a:last-child { display: none; }

/* ================= Music button ================= */
.music-btn {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  background: var(--paper);
  color: var(--deep-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(53,76,47,.25);
}
.music-btn svg { width: 22px; height: 22px; }
body.bar-on .music-btn { bottom: calc(80px + env(safe-area-inset-bottom)); }
.music-btn.playing svg { animation: spin 4s linear infinite; }
.music-btn:not(.playing)::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= Scroll reveal ================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .couple-grid { grid-template-columns: 1fr; gap: 8px; }
  .couple-amp { font-size: 52px; text-align: center; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
