/* Farhan & Taqdis invitation. Palette: ivory, emerald, antique gold, warm brown. */
:root {
  --ivory: #F8F0DF;
  --ivory-2: #FDF8EE;
  --pale: #F0E3C9;
  --emerald: #7A5516;
  --emerald-deep: #3B4630;
  --gold: #C09A4B;
  --gold-light: #E6CF98;
  --gold-ink: #7A5416;
  --brown: #4A3A26;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ar: "Amiri", "Noto Naskh Arabic", "Scheherazade New", "Geeza Pro", "Traditional Arabic", serif;
  --ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Geeza Pro", "Amiri", serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%2523C5A15D' stroke-width='1' stroke-opacity='.30'%3E%0A%3Cpath d='M48.00 18.00 L56.79 26.79 L69.21 26.79 L69.21 39.21 L78.00 48.00 L69.21 56.79 L69.21 69.21 L56.79 69.21 L48.00 78.00 L39.21 69.21 L26.79 69.21 L26.79 56.79 L18.00 48.00 L26.79 39.21 L26.79 26.79 L39.21 26.79 Z'/%3E%0A%3Cpath d='M54.12 33.22 L56.66 39.34 L62.78 41.88 L60.25 48.00 L62.78 54.12 L56.66 56.66 L54.12 62.78 L48.00 60.25 L41.88 62.78 L39.34 56.66 L33.22 54.12 L35.75 48.00 L33.22 41.88 L39.34 39.34 L41.88 33.22 L48.00 35.75 Z'/%3E%0A%3Ccircle cx='48' cy='48' r='3' stroke-opacity='.4'/%3E%0A%3Cpath d='M0 0L48 18M96 0L48 18M0 96L48 78M96 96L48 78M0 0L18 48M0 96L18 48M96 0L78 48M96 96L78 48' stroke-opacity='.14'/%3E%0A%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%2523C5A15D' stroke-width='1' stroke-opacity='.22'%3E%0A%3Cpath d='M48.00 18.00 L56.79 26.79 L69.21 26.79 L69.21 39.21 L78.00 48.00 L69.21 56.79 L69.21 69.21 L56.79 69.21 L48.00 78.00 L39.21 69.21 L26.79 69.21 L26.79 56.79 L18.00 48.00 L26.79 39.21 L26.79 26.79 L39.21 26.79 Z'/%3E%0A%3Cpath d='M54.12 33.22 L56.66 39.34 L62.78 41.88 L60.25 48.00 L62.78 54.12 L56.66 56.66 L54.12 62.78 L48.00 60.25 L41.88 62.78 L39.34 56.66 L33.22 54.12 L35.75 48.00 L33.22 41.88 L39.34 39.34 L41.88 33.22 L48.00 35.75 Z'/%3E%0A%3Ccircle cx='48' cy='48' r='3' stroke-opacity='.4'/%3E%0A%3Cpath d='M0 0L48 18M96 0L48 18M0 96L48 78M96 96L48 78M0 0L18 48M0 96L18 48M96 0L78 48M96 96L78 48' stroke-opacity='.14'/%3E%0A%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ivory);
  background-image: var(--pattern);
  color: var(--brown);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
svg { max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
#top:focus { outline: none; }

/* Hide page until the language is applied (JS only), so Urdu readers never see a flash of English. */
html.js:not(.ready) body { opacity: 0; }
html.js body { transition: opacity .25s ease; }

/* ---------- Urdu ---------- */
html[lang="ur"] body { font-family: var(--ur); font-size: 1.12rem; line-height: 2.1; }
html[lang="ur"] * { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ur"] :is(p, span, a, button, h1, h2, h3) { font-family: var(--ur); }
html[lang="ur"] .bismillah, html[lang="ur"] .dua { font-family: var(--ar); }
html[lang="ur"] .cd-box b, html[lang="ur"] .num { font-family: var(--serif); }
html[lang="ur"] .langs button[lang="en"] { font-family: var(--sans); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 22px; border-radius: 999px;
  font: 500 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 1.5px solid var(--emerald); cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-solid { background: var(--emerald); color: var(--ivory); }
.btn-solid:hover { background: var(--emerald-deep); }
.btn-ghost { background: transparent; color: var(--emerald); }
.btn-ghost:hover { background: rgba(23, 77, 59, .08); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--emerald-deep); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.linkbtn {
  background: none; border: 0; color: var(--gold-light); cursor: pointer;
  font: 400 .95rem/1.4 var(--sans); text-decoration: underline; text-underline-offset: 4px;
  min-height: 44px; padding: 0 12px;
}

/* ---------- Language switch ---------- */
.langs { display: inline-flex; border: 1px solid var(--gold); border-radius: 999px; overflow: hidden; background: rgba(251, 248, 241, .94); }
.langs button {
  min-height: 44px; min-width: 56px; padding: 0 16px; border: 0; background: transparent;
  color: var(--emerald); font: 500 .95rem/1 var(--sans); cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--emerald); color: var(--ivory); }
.langs button[lang="ur"] { font-family: var(--ur); font-size: 1.05rem; padding-top: 6px; }

.topbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 14px 8px; pointer-events: none;
}
.topbar > * { pointer-events: auto; box-shadow: 0 6px 18px -10px rgba(23, 77, 59, .5); }
.music {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold);
  background: rgba(251, 248, 241, .94); color: var(--emerald); display: grid; place-items: center; cursor: pointer;
}
.music .ic { width: 22px; height: 22px; fill: currentColor; }
.music[aria-pressed="true"] { background: var(--emerald); color: var(--ivory); }

/* ---------- Envelope gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100; display: none; overflow: auto;
  background: radial-gradient(120% 80% at 50% 0%, #1D5C46 0%, var(--emerald-deep) 62%);
  color: var(--ivory);
  transition: opacity .7s ease .1s, visibility 0s linear .8s;
}
html.js:not(.no-gate) .gate { display: flex; }
.gate::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern-light); opacity: .55; pointer-events: none; }
.gate-inner { transition: opacity .3s ease; }
.gate.is-leaving .gate-inner { opacity: 0; }
.gate.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.gate :focus-visible { outline-color: var(--gold-light); }
html:not(.opened) { overflow: hidden; }
html.no-gate { overflow: auto; }

.gate-inner {
  position: relative; margin: auto; width: min(100%, 440px);
  padding: 28px 20px calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.gate-star { font-size: 2.1rem; }
.gate-kicker { font: 400 .85rem/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); }
.gate-names { font: italic 600 clamp(2.4rem, 11vw, 3.3rem)/1.05 var(--serif); color: var(--ivory); }
.gate .langs { margin-top: 6px; background: transparent; border-color: rgba(227, 203, 147, .6); }
.gate .langs button { color: var(--ivory); }
.gate .langs button[aria-pressed="true"] { background: var(--gold); color: var(--emerald-deep); }
.gate-open { margin-top: 8px; min-width: 220px; }

.gate-kicker, .gate-names { position: relative; z-index: 2; text-shadow: 0 1px 10px rgba(15, 58, 44, .85); }
.env { position: relative; z-index: 1; width: min(78vw, 340px); aspect-ratio: 3 / 2; margin: 78px 0 26px; }
.env > * { position: absolute; }
.env-ground { left: 4%; right: 4%; bottom: -16px; height: 30px; z-index: 0; background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 70%); filter: blur(5px); }
.env-back {
  inset: 0; z-index: 1; border-radius: 4px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 55%), var(--pattern-light) 0 0 / auto, var(--emerald-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25), 0 14px 22px -10px rgba(0, 0, 0, .6), 0 3px 6px rgba(0, 0, 0, .35);
}
.env-card {
  left: 6%; right: 6%; top: 12%; bottom: 8%; z-index: 2;
  background: linear-gradient(180deg, #FFFDF6, var(--ivory-2)); border: 1px solid var(--gold); border-radius: 2px;
  outline: 3px solid rgba(255, 253, 246, .0); box-shadow: inset 0 0 0 4px var(--ivory-2), inset 0 0 0 5px rgba(197, 161, 93, .55), 0 -2px 8px rgba(0, 0, 0, .25);
  display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--gold);
  transition: transform 1s cubic-bezier(.3, .7, .2, 1) .6s;
}
.nikah-mark {
  display: block; font-family: "Amiri", var(--ar); font-weight: 400; line-height: 1.5; padding: 0 .15em;
  color: #C9A24E; background: linear-gradient(170deg, #F6E3A0 0%, #D4A94E 48%, #94682A 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(60, 40, 8, .35));
}
.card-mark { font-size: 2.4rem; }
.env-mono { font: italic 600 1.45rem/1 var(--serif); color: var(--emerald); }
.env-front, .env-cast { inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.env-front { z-index: 3; filter: drop-shadow(0 .5px 0 rgba(255, 255, 255, .2)); }
.env-cast { z-index: 4; transition: opacity .35s ease; }
.env-flapwrap { left: 0; right: 0; top: 0; height: 60%; z-index: 5; perspective: 900px; }
.env-flap { position: absolute; inset: 0; transform-origin: 50% 0; transform-style: preserve-3d; }
.env-ff, .env-fb { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env-ff { filter: drop-shadow(0 2px 2.5px rgba(40, 28, 6, .45)); }
.env-fb {
  transform: rotateX(180deg); clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .05)), var(--pattern-light), var(--emerald);
}
.seal {
  position: absolute; left: 50%; bottom: calc(min(78vw, 340px) * -.15); width: 31%; aspect-ratio: 108 / 112; margin: 0 0 0 -15.5%; padding: 0;
  background: none; border: 0; cursor: pointer; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .3s ease, opacity .3s ease;
  animation: glint 2.8s ease-in-out infinite;
}
.seal:hover { transform: scale(1.06); }
.wax-art, .stamp-art { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes glint { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 224, 140, 0)); } 50% { filter: drop-shadow(0 0 6px rgba(255, 224, 140, .6)); } }

.gate.is-opening .seal { opacity: 0; transform: scale(.8); pointer-events: none; animation: none; }
.gate.is-opening .env-cast { opacity: 0; }
.gate.is-opening .env-flapwrap { animation: flapwrap 1s linear forwards; }
.gate.is-opening .env-flap { animation: flap 1s cubic-bezier(.45, 0, .25, 1) forwards; }
.gate.is-opening .env-card { transform: translateY(-62%); }
@keyframes flap { 0% { transform: rotateX(0); } 100% { transform: rotateX(-180deg); } }
@keyframes flapwrap {
  0%, 49% { z-index: 5; opacity: 1; }
  50%, 78% { z-index: 1; opacity: 1; }
  100% { z-index: 1; opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
html.js:not(.no-gate) .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 120ms + var(--base, 0ms)), transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 120ms + var(--base, 0ms));
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 8px; }
.frame {
  position: relative; width: min(100% - 28px, 600px); margin: 0 auto; padding: 60px 22px 40px; text-align: center;
  background: linear-gradient(180deg, rgba(251, 248, 241, .94), rgba(247, 242, 232, .9));
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(247, 242, 232, .92), 0 0 0 7px rgba(197, 161, 93, .5), 0 26px 50px -28px rgba(23, 77, 59, .45);
}
.corner { position: absolute; width: 58px; height: 58px; color: var(--gold); }
.c-tl { top: -10px; left: -10px; }
.c-tr { top: -10px; right: -10px; transform: scaleX(-1); }
.c-bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
.c-br { bottom: -10px; right: -10px; transform: scale(-1, -1); }

.bismillah { font: 400 clamp(2rem, 9vw, 2.8rem)/1.7 var(--ar); color: var(--emerald); }
.meaning { margin-top: 2px; font: italic 500 1rem/1.5 var(--serif); color: var(--gold-ink); }
.divider { display: block; width: 190px; height: 20px; margin: 14px auto; color: var(--gold); }
.divider.small { width: 150px; height: 16px; margin: 14px auto 12px; }
.lead { max-width: 30em; margin: 0 auto 6px; font-size: 1rem; line-height: 1.7; }

.couple { margin: 18px 0 8px; }
.name { font: 600 clamp(2.3rem, 11vw, 3.7rem)/1.08 var(--serif); color: var(--emerald); }
.line { margin-top: 4px; font: italic 500 1.12rem/1.5 var(--serif); color: var(--brown); }
.weds { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0; font: italic 500 1.4rem/1 var(--serif); color: var(--gold-ink); }
.weds i { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.weds i:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
html[lang="ur"] .name { font-size: clamp(2rem, 9vw, 3rem); line-height: 2; }
html[lang="ur"] .line, html[lang="ur"] .weds, html[lang="ur"] .meaning { font-style: normal; }

.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 6px; padding: 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border-radius: 999px;
  background: var(--pale); border: 1px solid var(--gold); color: var(--emerald); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.cue { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; color: var(--gold-ink); text-decoration: none; font-weight: 500; }
.cue .ic { width: 22px; height: 22px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Countdown ---------- */
.cd { width: min(100% - 40px, 520px); margin: 34px auto 0; text-align: center; }
.cd h2, .sec-title, .fam-title, .ct-title { font: italic 600 1.7rem/1.3 var(--serif); color: var(--emerald); }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.cd-box { background: var(--ivory-2); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 2px 10px; }
.cd-box b { display: block; font: 600 clamp(1.7rem, 8vw, 2.4rem)/1.1 var(--serif); color: var(--emerald); font-variant-numeric: tabular-nums; }
.cd-box span { display: block; margin-top: 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
html[lang="ur"] .cd-box span { font-size: .85rem; line-height: 1.6; }
.cd-msg { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--gold); border-radius: 12px; background: var(--ivory-2); font: italic 600 1.35rem/1.5 var(--serif); color: var(--emerald); }
.cd-note { margin-top: 10px; font-size: .88rem; color: var(--gold-ink); }

/* ---------- Events ---------- */
.events { padding-top: 46px; }
.sec-title { text-align: center; font-size: 2rem; }
.event { width: min(100% - 32px, 480px); margin: 30px auto 0; }
.event-in {
  position: relative; padding: 168px 24px 44px; text-align: center;
  background: linear-gradient(rgba(251, 248, 241, .9), rgba(251, 248, 241, .9)), var(--pattern), var(--ivory-2);
  border: 2px solid var(--gold);
  border-radius: 50% 50% 18px 18px / 150px 150px 18px 18px;
  box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px rgba(197, 161, 93, .7), 0 26px 44px -26px rgba(23, 77, 59, .55);
}
.event-in::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none;
  background: var(--pattern-light), var(--emerald-deep); border-top: 2px solid var(--gold); border-radius: 0 0 15px 15px;
}
.ev-crown {
  position: absolute; left: 0; right: 0; top: 0; height: 146px; pointer-events: none;
  border-radius: 50% 50% 0 0 / 146px 146px 0 0;
  background: radial-gradient(120% 90% at 50% 100%, rgba(255, 255, 255, .0), rgba(0, 0, 0, .35)), var(--pattern-light), var(--emerald-deep);
  border-bottom: 2px solid var(--gold);
}
.ev-crown::before {
  content: ""; position: absolute; inset: 9px 9px 0; border: 1px solid rgba(227, 203, 147, .75); border-bottom: 0;
  border-radius: 50% 50% 0 0 / 138px 138px 0 0;
}
.ev-ar { position: absolute; left: 0; right: 0; bottom: 16px; font-size: 2.9rem; text-align: center; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
.ev-label { font: 500 .9rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); }
.ev-day { margin-top: 6px; font: italic 500 1.3rem/1.3 var(--serif); color: var(--brown); }
.ev-date { font: 600 clamp(2rem, 9.5vw, 2.7rem)/1.15 var(--serif); color: var(--emerald); }
.ev-time { margin: 10px auto 2px; width: fit-content; max-width: 100%; padding: 4px 22px 6px; border-radius: 999px; background: var(--emerald); border: 1px solid var(--gold); box-shadow: inset 0 0 0 2px var(--emerald), inset 0 0 0 3px rgba(227, 203, 147, .5); font: italic 600 1.3rem/1.4 var(--serif); color: var(--gold-light); }
.ev-venue { font: 600 1.7rem/1.3 var(--serif); color: var(--emerald); }
.ev-addr { margin: 4px auto 0; max-width: 24em; font-size: 1rem; line-height: 1.65; }
.actions { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 440px) {
  .actions { grid-template-columns: 1fr 1fr; }
  .actions > :first-child { grid-column: 1 / -1; }
}

/* ---------- Family / contact / footer ---------- */
.family { width: min(100% - 40px, 520px); margin: 52px auto 0; text-align: center; }
.family .divider { margin-bottom: 20px; }
.fam-title { font-size: 1.5rem; }
.fam-hosts { margin-top: 8px; font: 600 clamp(1.7rem, 7.5vw, 2.2rem)/1.25 var(--serif); color: var(--emerald); }
.fam-closing { margin-top: 10px; font: italic 500 1.2rem/1.5 var(--serif); color: var(--gold-ink); }
html[lang="ur"] .fam-closing { font-style: normal; }

.contact { width: min(100% - 40px, 520px); margin: 46px auto 0; text-align: center; }
.ct-title { font-size: 1.5rem; }
.ct-list { display: grid; gap: 14px; margin-top: 16px; }
.ct-card { padding: 16px; background: var(--ivory-2); border: 1px solid var(--gold); border-radius: 14px; display: grid; gap: 10px; justify-items: center; }
.ct-name { font: 600 1.35rem/1.3 var(--serif); color: var(--emerald); }
.ct-card .btn { width: 100%; max-width: 320px; }
.num { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.share { margin-top: 22px; }

.foot { margin-top: 56px; padding: 40px 20px calc(40px + env(safe-area-inset-bottom)); text-align: center; background: var(--emerald-deep) var(--pattern-light); color: var(--ivory); }
.foot-star { font-size: 1.9rem; }
.credit { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(227, 203, 147, .25); font: 400 .8rem/1.6 var(--sans); letter-spacing: .04em; color: rgba(247, 242, 232, .78); }
.credit a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 4px; }
.dua { margin-top: 12px; font: 400 clamp(1.5rem, 6.5vw, 2rem)/1.9 var(--ar); color: var(--gold-light); }
.dua-trans { max-width: 28em; margin: 6px auto 0; font: italic 500 1.1rem/1.6 var(--serif); color: var(--ivory); }
html[lang="ur"] .dua-trans { font-style: normal; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 120; max-width: min(90vw, 360px);
  padding: 12px 20px; border-radius: 999px; background: var(--emerald-deep); color: var(--ivory); font-size: .95rem; text-align: center;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .hero { padding-top: 84px; }
  .frame { padding: 72px 56px 52px; }
  .gate-inner { width: 480px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gate, .gate * { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .seal, .cue .ic { animation: none !important; }
  html.js body { transition: none; }
}

/* ---------- Calmer buttons, legible Arabic marks, roomier Urdu cards ---------- */
html[lang="ur"] .nikah-mark { font-family: "Amiri", var(--ar); }
.ev-ar { font-size: 2.6rem; }
.event .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 8px; margin-top: 20px; }
.event .actions .btn-solid { min-height: 44px; padding: 6px 24px; font-size: .95rem; font-weight: 500; }
.event .actions .btn-ghost { min-height: 44px; padding: 4px 10px; gap: 5px; font-size: .82rem; border-color: transparent; background: rgba(23, 77, 59, .07); }
.event .actions .btn-ghost:hover { background: rgba(23, 77, 59, .14); }
.event .actions .ic { width: 16px; height: 16px; }
.ct-card { padding: 14px 16px 16px; gap: 8px; }
.ct-card .btn { width: auto; max-width: none; min-width: 210px; min-height: 44px; padding: 6px 22px; font-size: .95rem; }
.ct-card .btn-solid { background: transparent; color: var(--emerald); border-color: var(--gold); }
.ct-card .btn-solid:hover { background: rgba(197, 161, 93, .16); }
html[lang="ur"] .ev-label { font-size: 1.05rem; line-height: 2; }
html[lang="ur"] .ev-day { font-size: 1.2rem; line-height: 1.9; font-style: normal; }
html[lang="ur"] .ev-date { font-size: clamp(1.8rem, 8vw, 2.3rem); line-height: 1.6; }
html[lang="ur"] .ev-time { font-size: 1.15rem; line-height: 1.9; padding: 2px 22px 4px; font-style: normal; }
html[lang="ur"] .ev-venue { font-size: 1.6rem; line-height: 1.9; }
html[lang="ur"] .ev-addr { font-size: 1.05rem; line-height: 2; }
html[lang="ur"] .event .actions .btn { font-size: 1rem; line-height: 1.7; }
.ct-card[hidden] { display: none; }
html[lang="ur"] .gate-names { font-style: normal; font-weight: 400; line-height: 2; font-size: clamp(2rem, 9vw, 2.8rem); }
html[lang="ur"] .gate-kicker { font-size: 1rem; line-height: 2; }
.host { margin-top: 4px; font: 600 clamp(1.35rem, 6vw, 1.7rem)/1.3 var(--serif); color: var(--emerald); }
.host-line { margin-bottom: 10px; }
html[lang="ur"] .host { line-height: 2; }
.ev-hijri { margin-top: 2px; font: italic 500 1rem/1.5 var(--serif); color: var(--brown); }
html[lang="ur"] .ev-hijri { font-style: normal; font-size: 1.05rem; line-height: 1.9; }
.fam-request { margin-top: 12px; max-width: 24em; margin-left: auto; margin-right: auto; font-size: 1.02rem; line-height: 1.7; }
.family .line { margin-top: 2px; }
.foot-closing { margin-top: 18px; font: italic 500 1.15rem/1.6 var(--serif); color: var(--gold-light); }
html[lang="ur"] .foot-closing { font-style: normal; }
html[lang="ur"] .fam-title { line-height: 2.4; margin-bottom: 6px; }
html[lang="ur"] .fam-hosts { line-height: 2.3; margin-top: 10px; }
html[lang="ur"] .family .line { line-height: 2.4; margin-top: 10px; }
html[lang="ur"] .fam-request { line-height: 2.3; margin-top: 18px; }
html[lang="ur"] .ct-title { line-height: 2.3; }
.foot { padding-top: 34px; }
.fam-addr { margin: 8px auto 0; max-width: 24em; font-size: .95rem; line-height: 1.65; color: var(--brown); }
html[lang="ur"] .fam-addr { line-height: 2.1; font-size: 1rem; }
.firm { margin: 22px auto 0; width: min(100%, 360px); padding: 18px 18px 20px; text-align: center; background: var(--ivory-2); border: 1px solid var(--gold); border-radius: 14px; box-shadow: inset 0 0 0 4px var(--ivory-2), inset 0 0 0 5px rgba(197, 161, 93, .45); }
.firm-label { font: 500 .8rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); }
.firm-type { margin-top: 2px; font: italic 600 1.2rem/1.4 var(--serif); color: var(--gold-ink); }
.firm-addr { margin: 10px auto 0; max-width: 22em; font-size: .95rem; line-height: 1.65; }
html[lang="ur"] .firm-type { font-style: normal; line-height: 2; }
html[lang="ur"] .firm-label { line-height: 2; }
html[lang="ur"] .firm-addr { line-height: 2.1; }
.share { margin-top: 22px; }
.firm-label { margin-bottom: 2px; }
.firm-mark { display: block; width: auto; height: 86px; margin: 8px auto 6px; }
.firm-name { font: 800 1.9rem/1.2 var(--sans); letter-spacing: .08em; color: #01451C; }
.firm-type { margin-top: 0; font: 700 1rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #01451C; font-style: normal; }
/* Urdu (Nastaliq) needs more room: tall letterforms collided with buttons and borders */
html[lang="ur"] .ct-card { padding: 22px 18px 24px; gap: 14px; }
html[lang="ur"] .ct-name { line-height: 2.2; padding-top: 6px; }
html[lang="ur"] .ct-card .btn, html[lang="ur"] .share, html[lang="ur"] .event .actions .btn { padding-top: 12px; padding-bottom: 12px; min-height: 52px; line-height: 2; }
html[lang="ur"] .ct-list { gap: 20px; }
html[lang="ur"] .firm { padding: 24px 20px 28px; }
html[lang="ur"] .firm-name { font-family: var(--ur); font-weight: 400; font-size: 2.2rem; line-height: 2; letter-spacing: 0; }
html[lang="ur"] .firm-type { font-family: var(--ur); font-size: 1.2rem; line-height: 2.2; letter-spacing: 0; }
html[lang="ur"] .firm-addr { line-height: 2.4; margin-top: 12px; }
html[lang="ur"] .firm-label { margin-bottom: 8px; }
html[lang="ur"] .share { margin-top: 26px; }
.bismillah { font-size: clamp(1.45rem, 7vw, 2.8rem); }
@media (max-width: 400px) {
  .event-in { padding-left: 14px; padding-right: 14px; }
  .event .actions { gap: 8px 6px; }
  .event .actions .btn-ghost { padding: 4px 8px; font-size: .78rem; gap: 4px; }
  .event .actions .ic { width: 15px; height: 15px; }
}
.event .actions { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 8px 8px; }
.event .actions > .btn-solid { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 340px) { .event .actions .btn-ghost { padding: 4px 6px; font-size: .74rem; } }
.contact .firm { width: 100%; margin: 14px 0 0; }
html[lang="ur"] .contact .firm { margin-top: 20px; }

/* ---------- Urdu (Nastaliq) vertical rhythm: tall script needs far more line space ---------- */
html[lang="ur"] body { line-height: 2.5; }
html[lang="ur"] .meaning { font-size: 1.1rem; line-height: 2.5; margin: 8px 0 4px; }
html[lang="ur"] .host { margin-top: 18px; line-height: 2.4; }
html[lang="ur"] .line, html[lang="ur"] .host-line { font-size: 1.15rem; line-height: 2.6; margin-top: 6px; }
html[lang="ur"] .host-line { margin-bottom: 12px; }
html[lang="ur"] .lead { font-size: 1.15rem; line-height: 2.7; margin: 0 auto 22px; }
html[lang="ur"] .name { line-height: 2.3; margin-top: 8px; }
html[lang="ur"] .weds { font-size: 1.35rem; line-height: 2.4; margin: 18px 0; }
html[lang="ur"] .couple .line { margin-bottom: 4px; }
html[lang="ur"] .chips { margin-top: 30px; }
html[lang="ur"] .chips a { line-height: 2.2; padding-top: 8px; padding-bottom: 8px; }
html[lang="ur"] .cue { line-height: 2.4; margin-top: 16px; }
html[lang="ur"] .cd h2 { line-height: 2.5; margin-bottom: 18px; }
html[lang="ur"] .cd-box span { line-height: 2.4; margin-top: 6px; font-size: .95rem; }
html[lang="ur"] .cd-note { line-height: 2.6; margin-top: 16px; }
html[lang="ur"] .sec-title { line-height: 2.5; margin-bottom: 14px; }
html[lang="ur"] .fam-closing, html[lang="ur"] .foot-closing { line-height: 2.6; margin-top: 24px; }
html[lang="ur"] .dua { line-height: 2.3; }
html[lang="ur"] .dua-trans { font-size: 1.1rem; line-height: 2.7; margin-top: 12px; }
html[lang="ur"] .credit { line-height: 1.8; }
