/* ==========================================================================
   Nikkah & Wedding invitation — guest experience
   ========================================================================== */
:root {
  --green-950: #07140d;
  --green-900: #0b1d14;
  --green-850: #0f2619;
  --green-800: #143323;
  --green-700: #1d4630;
  --green-600: #2b5e41;
  --green-400: #6fa27e;
  --plum-950: #150a1b;
  --plum-900: #1e0f26;
  --plum-800: #2d1638;
  --plum-700: #42204f;
  --plum-600: #5a2c6b;
  --plum-400: #9a6aab;
  --gold: #c9a96e;
  --gold-light: #e8d6a6;
  --gold-dark: #9c7a3c;
  --ivory: #f6efe0;
  --ivory-2: #ece2cb;
  --ink: #2a1f2e;
  --ink-soft: #43384a;
  --red: #b3122a;

  --script: 'Pinyon Script', cursive;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --caps: 'Cinzel', 'Cormorant Garamond', serif;
  --arabic: 'Amiri', serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-variant-numeric: lining-nums;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--green-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-envelope, body.is-card { overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--gold-light); }
::selection { background: var(--plum-600); color: var(--ivory); }

.arabic { font-family: var(--arabic); direction: rtl; }
.eyebrow {
  font-family: var(--caps);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* ---------------------------------------------------------------- backdrop */
.backdrop { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.backdrop-glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 50% 45%, rgba(90, 44, 107, .45), transparent 70%),
    radial-gradient(50% 40% at 15% 90%, rgba(43, 94, 65, .55), transparent 70%),
    radial-gradient(45% 40% at 90% 10%, rgba(66, 32, 79, .5), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, var(--green-850), var(--green-950));
  animation: glow-drift 22s ease-in-out infinite alternate;
}
.backdrop-pattern {
  position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9a96e' stroke-opacity='.08' stroke-width='.8'%3E%3Cpath d='M32 4 L60 32 L32 60 L4 32Z'/%3E%3Ccircle cx='32' cy='32' r='3'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
}
@keyframes glow-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}
#ambient { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
body.is-invite #ambient { z-index: 1; }

.scene {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 24px;
  z-index: 10;
}

/* ---------------------------------------------------------------- envelope */
.env-stage {
  position: relative;
  width: min(84vw, 560px);
  animation: env-arrive 1.6s var(--ease-out) both, env-float 7s ease-in-out 1.6s infinite;
}
@keyframes env-arrive {
  from { opacity: 0; transform: translateY(40px) rotate(-3deg) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes env-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-8px) rotate(.4deg); }
}

.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  perspective: 1600px;
  container-type: inline-size;
  cursor: pointer;
  outline: none;
  z-index: 2;
  transition: transform .5s var(--ease-out), filter .5s;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 8px 12px rgba(0, 0, 0, .35));
}
.envelope:hover:not(.open), .envelope:focus-visible:not(.open) { transform: translateY(-6px) rotate(-.6deg); }
.envelope:focus-visible .env-seal { filter: drop-shadow(0 0 14px rgba(232, 214, 166, .8)); }

.env-back {
  position: absolute; inset: 0;
  border-radius: 1.2cqw;
  background:
    radial-gradient(80% 60% at 50% 30%, #1f4a33, #11301f 70%),
    var(--green-800);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .25);
}

.env-letter {
  position: absolute;
  left: 5.5%; right: 5.5%; top: 4%; height: 90%;
  z-index: 2;
  border-radius: .8cqw;
  background:
    radial-gradient(120% 80% at 30% 20%, #fffaf0, transparent 60%),
    linear-gradient(160deg, var(--ivory), var(--ivory-2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -6px 20px rgba(0, 0, 0, .18);
  transition: transform 1.25s var(--ease-out) 1.15s, opacity .4s;
}
.env-letter::before {
  content: ''; position: absolute; inset: 3.2cqw;
  border: 1px solid rgba(156, 122, 60, .55);
  outline: 1px solid rgba(156, 122, 60, .3);
  outline-offset: .8cqw;
  border-radius: .3cqw;
}
.letter-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 7cqw;
  color: var(--plum-700);
  text-align: center;
}
.letter-arabic { font-family: var(--arabic); font-size: 3.6cqw; color: var(--gold-dark); direction: rtl; }
.letter-script { font-family: var(--script); font-size: 9.5cqw; line-height: 1.1; color: var(--plum-700); margin-top: 1cqw; }
.letter-names { font-family: var(--caps); font-size: 2.3cqw; letter-spacing: .35em; color: var(--green-700); margin-top: 1.2cqw; }

.env-pocket {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 -3px 6px rgba(0, 0, 0, .28));
}
.pocket { position: absolute; inset: 0; border-radius: 1.2cqw; }
.pocket-left {
  clip-path: polygon(0 0, 51% 53%, 0 100%);
  background: linear-gradient(100deg, #1b4832 0%, #163d2a 60%, #12331f 100%);
}
.pocket-right {
  clip-path: polygon(100% 0, 49% 53%, 100% 100%);
  background: linear-gradient(260deg, #1b4832 0%, #163d2a 60%, #12331f 100%);
}
.pocket-bottom {
  clip-path: polygon(0 100%, 50% 47%, 100% 100%);
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(255, 255, 255, .05), transparent),
    linear-gradient(0deg, #133523, #1d4b34);
}
.pocket-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.env-address {
  position: absolute; left: 0; right: 0; bottom: 9%;
  text-align: center;
}
.env-to {
  font-family: var(--script);
  font-size: 6.2cqw;
  background: linear-gradient(180deg, #f3e2b0, #c9a96e 60%, #9c7a3c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .4));
}

.env-flap {
  position: absolute; left: 0; right: 0; top: 0;
  height: 57%;
  z-index: 5;
  transform-origin: 50% 0;
  transition: transform 1s var(--ease-in-out) .35s, z-index 0s .82s;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .35));
}
.flap-face {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 1.2cqw 1.2cqw 0 0;
}
.flap-front {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%),
    linear-gradient(180deg, #215238, #173f2a);
  transition: opacity 0s .82s;
}
.flap-front::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom right, transparent 49.6%, rgba(201, 169, 110, .5) 50%, transparent 50.4%),
              linear-gradient(to bottom left, transparent 49.6%, rgba(201, 169, 110, .5) 50%, transparent 50.4%);
  background-size: 50% 100%; background-position: 0 0, 100% 0; background-repeat: no-repeat;
}
.flap-back {
  opacity: 0;
  transition: opacity 0s .82s;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23c9a96e' fill-opacity='.28'%3E%3Cpath d='M20 6c2 4 2 7 0 10-2-3-2-6 0-10z'/%3E%3Cpath d='M20 24c2 4 2 7 0 10-2-3-2-6 0-10z' transform='rotate(90 20 29)'/%3E%3Ccircle cx='0' cy='0' r='1.3'/%3E%3Ccircle cx='40' cy='40' r='1.3'/%3E%3Ccircle cx='40' cy='0' r='1.3'/%3E%3Ccircle cx='0' cy='40' r='1.3'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(80% 90% at 50% 0%, var(--plum-600), var(--plum-800));
  background-size: 7cqw 7cqw, auto;
}

.env-seal {
  position: absolute;
  left: 50%; top: 57%;
  width: 21%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 6;
  transition: filter .4s;
}
.env-seal::before {
  content: ''; position: absolute; inset: -8%;
  border-radius: 50%;
  border: 1px solid rgba(232, 214, 166, .5);
  animation: seal-ping 2.6s var(--ease-out) 2s infinite;
}
@keyframes seal-ping {
  0%   { transform: scale(.9); opacity: .9; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}
.seal-half { position: absolute; inset: 0; transition: transform .9s var(--ease-in-out), opacity .7s .2s; }
.seal-half svg { width: 100%; height: 100%; display: block; }
.seal-l { clip-path: polygon(0 0, 52% 0, 46% 30%, 54% 55%, 47% 75%, 52% 100%, 0 100%); }
.seal-r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 52% 100%, 47% 75%, 54% 55%, 46% 30%); }

.env-flora { position: absolute; pointer-events: none; }
.env-flora svg { width: 100%; height: 100%; overflow: visible; }
.env-flora-back  { width: 52%; left: -20%; top: -36%; z-index: 1; transform: rotate(-12deg); }
.env-flora-front { width: 42%; left: -16%; bottom: -24%; z-index: 3; transform: rotate(4deg); }
.env-flora-side  { width: 38%; right: -14%; bottom: -16%; z-index: 3; transform: scaleX(-1) rotate(-8deg); }
.env-flora .flora { animation: sway 7s ease-in-out infinite alternate; transform-origin: 10% 100%; }
.env-flora-side .flora { animation-duration: 8.5s; animation-delay: -2s; }
@keyframes sway {
  from { transform: rotate(-1.6deg); }
  to   { transform: rotate(1.8deg); }
}

.env-hint {
  position: absolute; left: 0; right: 0; bottom: max(6vh, 28px);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0;
  font-family: var(--caps); font-size: .74rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  animation: fade-in 1s ease 1.8s forwards;
}
.hint-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes fade-in { to { opacity: .85; } }

/* opening sequence */
.envelope.open { cursor: default; }
.envelope.open .seal-l { transform: translate(-60%, 70%) rotate(-38deg); opacity: 0; }
.envelope.open .seal-r { transform: translate(60%, 80%) rotate(34deg); opacity: 0; }
.envelope.open .env-seal::before { animation: none; opacity: 0; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .flap-front { opacity: 0; }
.envelope.open .flap-back { opacity: 1; }
.envelope.open .env-letter { transform: translateY(-58%); }
.env-stage.opened { animation: none; }
#envelope-scene.leaving .env-hint { opacity: 0 !important; transition: opacity .3s; animation: none; }
#envelope-scene.leaving .envelope,
#envelope-scene.leaving .env-flora { transition: transform 1s var(--ease-in-out), opacity .8s ease; transform: translateY(45vh) scale(.92); opacity: 0; }
#envelope-scene.leaving .env-flora-back { transform: translateY(-30vh) rotate(-20deg); }

/* ---------------------------------------------------------------- paper card */
.card-scene { overflow-y: auto; z-index: 20; }
.paper-card {
  position: relative;
  width: min(92vw, 540px);
  padding: clamp(48px, 9vw, 70px) clamp(28px, 7vw, 60px) clamp(40px, 7vw, 56px);
  border-radius: 6px;
  color: var(--ink);
  text-align: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 80% at 30% 10%, #fffbf2, transparent 60%),
    linear-gradient(165deg, var(--ivory), var(--ivory-2));
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 10px 20px rgba(0, 0, 0, .3);
  transform-origin: 50% 50%;
  will-change: transform;
}
.paper-card::before {
  content: ''; position: absolute; inset: 14px;
  border: 1px solid rgba(156, 122, 60, .6);
  outline: 1px solid rgba(156, 122, 60, .3); outline-offset: 5px;
  pointer-events: none;
}
.card-flora { position: absolute; width: 46%; pointer-events: none; }
.card-flora svg { width: 100%; height: auto; display: block; overflow: visible; }
.card-flora.tl { left: -11%; top: -12%; transform: rotate(180deg) scaleX(-1); }
.card-flora.br { right: -11%; bottom: -12%; }
.card-content { position: relative; z-index: 1; }
.card-arabic { font-size: 1.5rem; color: var(--gold-dark); margin-bottom: 10px; }
.card-names {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1.15;
  color: var(--plum-700);
  margin: 8px 0 4px;
}
.card-names .amp { font-family: var(--serif); font-style: italic; font-size: .55em; color: var(--gold-dark); padding: 0 .15em; }
.card-rule { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 6px auto 18px; color: var(--gold-dark); }
.card-rule span { height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold-dark)); }
.card-rule span:last-child { transform: scaleX(-1); }
.card-lead { font-size: 1.12rem; color: var(--ink-soft); margin: 0 auto 22px; max-width: 34ch; font-style: italic; }
.card-step { animation: step-in .7s var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } }

.field { position: relative; display: block; margin: 0 auto 24px; max-width: 340px; text-align: left; }
.field input {
  width: 100%;
  padding: 18px 2px 8px;
  font: 500 1.3rem var(--serif);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(66, 32, 79, .35);
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
}
.field span {
  position: absolute; left: 2px; top: 20px;
  font-size: 1.15rem; color: var(--ink-soft); font-style: italic;
  pointer-events: none;
  transition: transform .3s var(--ease-out), color .3s, font-size .3s;
  transform-origin: left;
}
.field input:focus + span, .field input:not(:placeholder-shown) + span { transform: translateY(-20px) scale(.72); color: var(--plum-600); }
.field::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--plum-600), var(--gold));
  transform: scaleX(0); transition: transform .5s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px;
  border: 0; border-radius: 999px;
  font-family: var(--caps); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease-out);
}
.btn:hover::after { left: 120%; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-plum { background: linear-gradient(135deg, var(--plum-600), var(--plum-800)); color: var(--gold-light); box-shadow: 0 10px 24px rgba(45, 22, 56, .35); }
.btn-gold { background: linear-gradient(135deg, #e7d3a0, var(--gold) 50%, var(--gold-dark)); color: var(--plum-900); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.btn-ghost { background: transparent; color: var(--gold-light); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-light); }
.btn-sm { padding: 10px 18px; font-size: .68rem; letter-spacing: .18em; }
.btn.loading span { opacity: .4; }

.link-btn { display: block; margin: 16px auto 0; background: none; border: 0; color: var(--plum-600); font-style: italic; text-decoration: underline; text-underline-offset: 3px; }
.form-error { min-height: 1.4em; margin: 14px auto 0; color: #8e1b2c; font-style: italic; max-width: 36ch; }
.shake { animation: shake .55s var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-10px) rotate(-.6deg); }
  40% { transform: translateX(8px) rotate(.4deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.welcome-name { font-family: var(--script); font-size: clamp(2.2rem, 8vw, 3rem); color: var(--plum-700); margin: -6px 0 22px; line-height: 1.2; }
.found-sparkle { height: 2px; width: 0; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: sparkle-line 1.2s var(--ease-out) forwards .2s; }
@keyframes sparkle-line { to { width: 70%; } }
.card-scene.leaving .paper-card { transition: transform 1.1s var(--ease-in-out), opacity .9s ease .2s; transform: translateY(-30px) scale(1.08); opacity: 0; }

/* ---------------------------------------------------------------- invitation page */
body.is-invite .scene { display: none; }
#invitation { position: relative; z-index: 2; }
#invitation.entering .hero > * { animation: none; }

.section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 22px;
  overflow: hidden;
}
.section.alt { background: linear-gradient(180deg, transparent, rgba(30, 15, 38, .55) 12%, rgba(30, 15, 38, .55) 88%, transparent); }
.wrap { max-width: 1080px; margin: 0 auto; position: relative; }
.narrow { max-width: 720px; margin: 0 auto; }
.center { text-align: center; }

.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: 6px; }
.section-title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3rem, 8vw, 4.6rem); line-height: 1.1;
  margin: 0;
  background: linear-gradient(180deg, #f6e9c4, var(--gold) 70%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .2em;
}
.section-head .flora.divider { width: min(420px, 80vw); height: auto; margin: 6px auto 0; display: block; }
.section-sub { font-size: 1.15rem; color: rgba(246, 239, 224, .94); font-style: italic; max-width: 44ch; margin: 14px auto 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.from-left { transform: translateX(-46px); }
.reveal.from-right { transform: translateX(46px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* flora grow-in */
.flora .f-stem { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-in-out) var(--d, 0s); }
.flora .f-bloom, .flora .f-leaf { transform-box: fill-box; opacity: 0; transform: scale(.2) rotate(-25deg); transition: transform 1.3s var(--ease-spring) var(--d, 0s), opacity .7s ease var(--d, 0s); }
.flora .f-bloom { transform-origin: 50% 0%; }
.flora .f-leaf { transform-origin: 50% 100%; transform: scaleY(0); }
.flora.grown .f-stem { stroke-dashoffset: 0; }
.flora.grown .f-bloom, .flora.grown .f-leaf { opacity: 1; transform: none; }

/* ---- hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 100px 22px 120px;
  text-align: center;
  overflow: hidden;
}
.hero-flora { position: absolute; pointer-events: none; will-change: transform; }
.hero-flora svg { width: 100%; height: 100%; overflow: visible; }
.hero-flora.left  { width: clamp(220px, 32vw, 440px); left: -4vw; bottom: -6vh; }
.hero-flora.right { width: clamp(200px, 28vw, 380px); right: -3vw; bottom: -4vh; }
.hero-flora.top   { width: clamp(180px, 22vw, 300px); right: 2vw; top: -6vh; transform: rotate(180deg); opacity: .8; }
.hero-flora .flora { animation: sway 8s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-arabic { font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--gold-light); margin-bottom: 18px; text-shadow: 0 0 30px rgba(201, 169, 110, .35); }
.hero-dear { font-family: var(--caps); letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: var(--gold); margin: 0 0 22px; }
.hero-dear b { font-weight: 500; color: var(--gold-light); }
.hero-names {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(4.2rem, 15vw, 9.5rem); line-height: .95;
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
}
.hero-names .n {
  background: linear-gradient(180deg, #fbf1d6 10%, var(--gold) 65%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .25em;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45));
}
.hero-names .amp { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: .38em; color: var(--plum-400); margin: .1em 0; }
.hero-line { font-size: clamp(1.1rem, 2.6vw, 1.4rem); font-style: italic; color: rgba(246, 239, 224, .94); max-width: 36ch; margin: 26px auto 34px; }
.hero-events { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chip {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(20, 51, 35, .55);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .4);
  backdrop-filter: blur(6px);
  text-decoration: none; color: var(--ivory);
  transition: transform .4s var(--ease-spring), background .3s;
}
.chip:hover { transform: translateY(-3px); background: rgba(66, 32, 79, .6); }
.chip small { font-family: var(--caps); font-size: .62rem; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; }
.chip span { font-size: 1.1rem; }

.hero > .hero-inner > * { opacity: 0; animation: hero-in 1.4s var(--ease-out) forwards; }
.hero-inner > :nth-child(1) { animation-delay: .3s !important; }
.hero-inner > :nth-child(2) { animation-delay: .55s !important; }
.hero-inner > :nth-child(3) { animation-delay: .8s !important; }
.hero-inner > :nth-child(4) { animation-delay: 1.15s !important; }
.hero-inner > :nth-child(5) { animation-delay: 1.4s !important; }
.hero-inner > :nth-child(6) { animation-delay: 1.6s !important; }
.hero-full { font-family: var(--caps); font-size: clamp(.7rem, 1.8vw, .85rem); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); margin: 22px 0 0; opacity: .9; }
.hero-full i { font-family: var(--serif); text-transform: none; color: var(--plum-400); letter-spacing: 0; padding: 0 .3em; }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-names .n, .hero-names .amp { display: inline-block; animation: name-in 1.8s var(--ease-out) both; }
.hero-names .n:first-child { animation-delay: .9s; }
.hero-names .amp { animation-delay: 1.25s; }
.hero-names .n:last-child { animation-delay: 1.5s; }
@keyframes name-in { from { opacity: 0; letter-spacing: .12em; filter: blur(12px); transform: translateY(14px); } to { opacity: 1; letter-spacing: 0; filter: none; transform: none; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--caps); font-size: .62rem; letter-spacing: .3em; color: var(--gold); text-transform: uppercase;
  text-decoration: none;
  opacity: 0; animation: fade-in 1s ease 2.6s forwards;
  z-index: 3;
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-light); animation: drip 2s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

/* ---- top nav */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(7, 20, 13, .92), rgba(7, 20, 13, .7));
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 169, 110, .18);
  transform: translateY(-110%);
  transition: transform .6s var(--ease-out);
  overflow-x: auto; scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav.show { transform: none; }
.topnav .mono { font-family: var(--script); font-size: 1.6rem; color: var(--gold-light); margin-right: 18px; text-decoration: none; white-space: nowrap; line-height: 1; }
.topnav a.nl {
  font-family: var(--caps); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(246, 239, 224, .94); text-decoration: none;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  transition: color .3s, background .3s;
}
.topnav a.nl:hover, .topnav a.nl.active { color: var(--gold-light); background: rgba(201, 169, 110, .12); }
.topnav a.nl.rsvp { color: var(--plum-900); background: linear-gradient(135deg, #e7d3a0, var(--gold)); margin-left: 6px; }
@media (max-width: 760px) {
  .topnav { justify-content: flex-start; }
  .topnav .mono { display: none; }
}

/* ---- quote */
.quote-block { max-width: 760px; margin: 0 auto; text-align: center; }
.quote-block .arabic-mark { font-family: var(--arabic); font-size: 3rem; color: var(--gold); line-height: 1; opacity: .9; }
.quote-block blockquote { margin: 18px 0 14px; font-size: clamp(1.35rem, 3.2vw, 1.85rem); font-style: italic; font-weight: 300; line-height: 1.5; color: var(--ivory); }
.quote-block cite { font-family: var(--caps); font-style: normal; letter-spacing: .26em; text-transform: uppercase; font-size: .72rem; color: var(--gold); }

/* ---- countdown */
.countdown { display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); margin-top: 10px; }
.cd-unit {
  width: clamp(72px, 18vw, 120px);
  padding: 18px 0 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(66, 32, 79, .55), rgba(20, 51, 35, .55));
  box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .3), 0 18px 30px rgba(0, 0, 0, .25);
  text-align: center;
}
.cd-num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1; color: var(--gold-light); display: block; font-variant-numeric: tabular-nums; }
.cd-num.tick { animation: tick .6s var(--ease-out); }
@keyframes tick { from { transform: translateY(-30%); opacity: 0; } }
.cd-label { font-family: var(--caps); font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(246, 239, 224, .94); }
.cd-caption { text-align: center; margin-top: 22px; font-style: italic; color: rgba(246, 239, 224, .94); }

/* ---- story */
.story-card { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; text-align: center; }
.story-text { font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.85; color: rgba(246, 239, 224, .9); white-space: pre-line; }
.story-text::first-letter { font-family: var(--script); font-size: 3.4em; float: left; line-height: .9; margin: .05em .12em 0 0; color: var(--gold); }

/* ---- event cards */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 4vw, 44px); }
.events.single { max-width: 560px; margin: 0 auto; }
.event-card {
  position: relative;
  padding: clamp(46px, 7vw, 64px) clamp(26px, 5vw, 48px) clamp(36px, 5vw, 46px);
  border-radius: 8px;
  color: var(--ink);
  text-align: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 70% at 50% 0%, #fffaf0, transparent 70%),
    linear-gradient(170deg, var(--ivory), var(--ivory-2));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  transition: transform .6s var(--ease-out), box-shadow .6s;
  overflow: hidden;
}
.event-card:hover { transform: translateY(-6px) rotate(-.3deg); box-shadow: 0 40px 70px rgba(0, 0, 0, .5); }
.event-card::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(156, 122, 60, .5); border-radius: 4px; pointer-events: none; }
.event-card .ec-flora { position: absolute; width: 150px; top: -26px; right: -30px; transform: rotate(180deg) scaleX(-1); opacity: .95; pointer-events: none; }
.event-card .ec-flora.bl { top: auto; right: auto; bottom: -30px; left: -34px; transform: none; width: 130px; }
.event-card .ec-flora svg { width: 100%; height: auto; display: block; }
.ec-label { font-family: var(--caps); font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dark); }
.ec-title { font-family: var(--script); font-weight: 400; font-size: clamp(2.8rem, 7vw, 3.6rem); line-height: 1.1; color: var(--plum-700); margin: 6px 0 2px; }
.ec-tagline { font-style: italic; color: var(--ink-soft); margin: 0 0 24px; }
.ec-date { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 auto 22px; }
.ec-date .side { font-family: var(--caps); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--green-700); width: 90px; padding: 8px 0; border-top: 1px solid rgba(156, 122, 60, .5); border-bottom: 1px solid rgba(156, 122, 60, .5); }
.ec-date .day { font-size: 3.4rem; font-weight: 500; line-height: 1; color: var(--plum-700); }
.ec-date .my { display: block; font-family: var(--caps); font-size: .7rem; letter-spacing: .26em; color: var(--gold-dark); margin-top: 6px; }
.ec-venue { font-size: 1.3rem; font-weight: 600; color: var(--green-800); margin: 0; }
.ec-address { color: var(--ink-soft); margin: 2px 0 16px; }
.ec-desc { color: var(--ink); margin: 0 auto 26px; max-width: 40ch; }
.ec-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ec-actions .btn-ghost { color: var(--plum-700); box-shadow: inset 0 0 0 1px rgba(90, 44, 107, .4); }
.ec-actions .btn-ghost:hover { background: rgba(90, 44, 107, .08); }
.cal-menu { position: relative; }
.cal-pop {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 190px; padding: 6px;
  background: var(--plum-800); border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease-out);
  z-index: 5;
}
.cal-menu.open .cal-pop { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.cal-pop button, .cal-pop a { display: block; width: 100%; padding: 10px 14px; border: 0; background: none; color: var(--ivory); text-align: left; font-size: 1rem; border-radius: 8px; text-decoration: none; }
.cal-pop button:hover, .cal-pop a:hover { background: rgba(255, 255, 255, .08); }

/* schedule timeline */
.schedule { margin-top: clamp(56px, 8vw, 80px); }
.schedule-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 60px; }
.schedule h3 { font-family: var(--caps); font-weight: 500; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); text-align: center; margin: 0 0 28px; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 34px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), rgba(201, 169, 110, .1)); transform-origin: top; transform: scaleY(0); transition: transform 2s var(--ease-in-out) .2s; }
.timeline.in::before { transform: scaleY(1); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before { content: ''; position: absolute; left: -31px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--green-900); box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px rgba(201, 169, 110, .12); }
.timeline .t { font-family: var(--caps); font-size: .74rem; letter-spacing: .2em; color: var(--gold); }
.timeline .tt { font-size: 1.25rem; font-weight: 500; display: block; color: var(--ivory); }
.timeline .td { color: rgba(246, 239, 224, .94); font-style: italic; }

/* ---- dress code */
.dress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 36px; }
.dress-card {
  position: relative;
  padding: clamp(32px, 5vw, 46px);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(66, 32, 79, .38), rgba(11, 29, 20, .6));
  box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .25);
  text-align: center;
}
.dress-card .ec-label { color: var(--gold); }
.dress-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 8px 0 14px; color: var(--ivory); }
.dress-card p { color: rgba(246, 239, 224, .94); margin: 0 auto 22px; max-width: 46ch; }
.palette { display: flex; justify-content: center; gap: 12px; margin: 0 0 24px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(7, 20, 13, .9), 0 0 0 4px rgba(201, 169, 110, .45), 0 8px 18px rgba(0, 0, 0, .4); transform: scale(0); transition: transform .8s var(--ease-spring); transition-delay: calc(var(--i) * 90ms + 300ms); }
.reveal.in .swatch { transform: scale(1); }
.tips { list-style: none; margin: 0 auto; padding: 0; text-align: left; max-width: 380px; }
.tips li { position: relative; padding: 6px 0 6px 30px; color: rgba(246, 239, 224, .94); }
.tips li::before { content: '❧'; position: absolute; left: 0; top: 5px; color: var(--gold); }

/* ---- travel */
.travel-group + .travel-group { margin-top: 56px; }
.travel-group h3 { font-family: var(--caps); font-weight: 500; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); text-align: center; margin: 0 0 26px; }
.travel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.travel-card {
  padding: 30px 28px;
  border-radius: 16px;
  background: rgba(15, 38, 25, .7);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .2);
  transition: transform .5s var(--ease-out), box-shadow .5s, background .5s;
}
.travel-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .5), 0 20px 40px rgba(0, 0, 0, .3); background: rgba(45, 22, 56, .55); }
.travel-card .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(201, 169, 110, .12); color: var(--gold-light); margin-bottom: 16px; }
.travel-card .ic svg { width: 22px; height: 22px; }
.travel-card h4 { font-size: 1.35rem; font-weight: 500; margin: 0 0 8px; color: var(--ivory); }
.travel-card p { margin: 0; color: rgba(246, 239, 224, .94); white-space: pre-line; }
.travel-card a { display: inline-block; margin-top: 12px; font-family: var(--caps); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }

/* ---- RSVP */
.rsvp-card {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: clamp(46px, 7vw, 70px) clamp(22px, 6vw, 64px);
  border-radius: 8px;
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, var(--ivory), var(--ivory-2));
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}
.rsvp-card::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(156, 122, 60, .5); pointer-events: none; border-radius: 4px; }
.rsvp-card .card-flora { width: 200px; }
.rsvp-card .card-flora.tl { left: -40px; top: -40px; }
.rsvp-card .card-flora.br { right: -40px; bottom: -40px; }
.rsvp-intro { text-align: center; margin-bottom: 34px; position: relative; }
.rsvp-intro h3 { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 7vw, 3.4rem); color: var(--plum-700); margin: 0; line-height: 1.1; }
.rsvp-intro p { color: var(--ink-soft); font-style: italic; margin: 8px auto 0; max-width: 46ch; }
.rsvp-deadline { display: inline-block; margin-top: 14px; padding: 6px 18px; border-radius: 999px; font-family: var(--caps); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; background: rgba(90, 44, 107, .1); color: var(--plum-700); }
.rsvp-event { position: relative; padding: 26px 0; border-top: 1px solid rgba(156, 122, 60, .35); }
.rsvp-event h4 { margin: 0; font-size: 1.45rem; font-weight: 600; color: var(--green-800); text-align: center; }
.rsvp-event .when { text-align: center; color: var(--ink-soft); font-style: italic; margin: 0 0 18px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 0 auto; }
.choice button {
  position: relative;
  padding: 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(90, 44, 107, .3);
  background: rgba(255, 255, 255, .45);
  color: var(--plum-700);
  font-size: 1.1rem;
  transition: all .35s var(--ease-out);
}
.choice button small { display: block; font-family: var(--caps); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 2px; }
.choice button:hover { border-color: var(--plum-600); transform: translateY(-2px); }
.choice button.on { background: linear-gradient(135deg, var(--plum-600), var(--plum-800)); color: var(--gold-light); border-color: transparent; box-shadow: 0 12px 24px rgba(45, 22, 56, .3); }
.choice button.on small { color: var(--gold); }
.choice button[data-v="no"].on { background: linear-gradient(135deg, #3d4a42, #26302a); }
.yes-only { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.yes-only > div { overflow: hidden; }
.rsvp-event.yes .yes-only { grid-template-rows: 1fr; }
.rsvp-fields { padding-top: 22px; display: grid; gap: 14px; max-width: 520px; margin: 0 auto; }
.lbl { display: block; font-family: var(--caps); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--plum-600); margin-bottom: 6px; }
.inp, .sel, .ta {
  width: 100%;
  padding: 12px 14px;
  font: 1.08rem var(--serif);
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(90, 44, 107, .22);
  border-radius: 10px;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.inp:focus, .sel:focus, .ta:focus { border-color: var(--plum-600); background: #fff; box-shadow: 0 0 0 4px rgba(90, 44, 107, .12); }
.ta { min-height: 110px; resize: vertical; }
.counter { display: inline-flex; align-items: center; gap: 0; border: 1px solid rgba(90, 44, 107, .25); border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .6); }
.counter button { width: 44px; height: 42px; border: 0; background: none; color: var(--plum-700); font-size: 1.3rem; }
.counter button:hover { background: rgba(90, 44, 107, .08); }
.counter output { min-width: 54px; text-align: center; font-size: 1.2rem; font-weight: 600; color: var(--plum-700); }
.counter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.counter-row .of { font-style: italic; color: var(--ink-soft); }
.names-list { display: grid; gap: 8px; }
.names-list .inp { animation: step-in .45s var(--ease-out) both; }
.rsvp-general { padding-top: 26px; border-top: 1px solid rgba(156, 122, 60, .35); display: grid; gap: 16px; max-width: 520px; margin: 0 auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.rsvp-submit { text-align: center; margin-top: 30px; }
.rsvp-error { text-align: center; color: #8e1b2c; font-style: italic; min-height: 1.5em; margin-top: 12px; }

.rsvp-done { text-align: center; padding: 10px 0; animation: step-in .8s var(--ease-out) both; position: relative; }
.stamp {
  width: 120px; height: 120px; margin: 0 auto 18px;
  animation: stamp 1s var(--ease-spring) both .1s;
}
.stamp svg { width: 100%; height: 100%; }
@keyframes stamp { from { transform: scale(2.4) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1) rotate(-8deg); } }
.rsvp-done h3 { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 7vw, 3.4rem); color: var(--plum-700); margin: 0; line-height: 1.1; }
.rsvp-done p { color: var(--ink-soft); font-style: italic; max-width: 44ch; margin: 8px auto 20px; }
.rsvp-summary { display: grid; gap: 10px; max-width: 460px; margin: 0 auto 24px; text-align: left; }
.rsvp-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 12px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(156, 122, 60, .25); }
.rsvp-summary .row b { color: var(--green-800); font-weight: 600; }
.badge { font-family: var(--caps); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; align-self: center; white-space: nowrap; }
.badge.yes { background: rgba(43, 94, 65, .15); color: var(--green-700); }
.badge.no { background: rgba(90, 44, 107, .12); color: var(--plum-700); }
.rsvp-done .btn-ghost { color: var(--plum-700); box-shadow: inset 0 0 0 1px rgba(90, 44, 107, .4); }
.rsvp-closed { text-align: center; font-style: italic; color: var(--ink-soft); }

/* ---- FAQ */
.faq-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.faq-filter button { padding: 9px 18px; border-radius: 999px; border: 0; background: rgba(201, 169, 110, .08); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .3); color: rgba(246, 239, 224, .94); font-family: var(--caps); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; transition: all .3s; }
.faq-filter button.on, .faq-filter button:hover { background: var(--gold); color: var(--plum-900); box-shadow: none; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(201, 169, 110, .2); transition: opacity .4s, transform .4s; }
.faq-item.hide { display: none; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 22px 4px; border: 0; background: none; text-align: left; font-size: clamp(1.15rem, 2.4vw, 1.35rem); color: var(--ivory); }
.faq-q:hover { color: var(--gold-light); }
.faq-q .pm { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .5); transition: transform .5s var(--ease-out), background .3s; }
.faq-q .pm::before, .faq-q .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--gold-light); transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .pm { transform: rotate(180deg); background: rgba(201, 169, 110, .15); }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 4px 24px; color: rgba(246, 239, 224, .94); white-space: pre-line; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-tag { font-family: var(--caps); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--plum-400); display: block; margin-bottom: 3px; }

/* ---- gifts & contact */
.gift-text { font-size: clamp(1.15rem, 2.4vw, 1.3rem); color: rgba(246, 239, 224, .94); white-space: pre-line; }
.gift-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.contact-lines a { text-decoration: none; }

/* ---- footer */
.footer { position: relative; padding: 120px 22px 70px; text-align: center; overflow: hidden; }
.footer .footer-flora { width: min(560px, 100%); margin: 0 auto -10px; display: flex; justify-content: center; align-items: flex-end; }
.footer .footer-flora > div { width: 50%; }
.footer .footer-flora svg { width: 100%; height: auto; display: block; }
.footer-names { font-family: var(--script); font-size: clamp(3rem, 9vw, 4.6rem); line-height: 1.1; margin: 10px 0 0; background: linear-gradient(180deg, #f6e9c4, var(--gold) 70%, var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer p { color: rgba(246, 239, 224, .94); margin: 8px 0; }
.footer .hashtag { font-family: var(--caps); letter-spacing: .3em; color: var(--gold); font-size: .8rem; }
.footer .switch { margin-top: 30px; background: none; border: 0; color: rgba(246, 239, 224, .45); font-style: italic; text-decoration: underline; text-underline-offset: 3px; }

/* ---- toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 220%); opacity: 0; z-index: 100; padding: 12px 22px; border-radius: 999px; background: var(--plum-800); color: var(--gold-light); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); transition: transform .5s var(--ease-spring), opacity .3s; font-size: 1rem; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .env-hint { font-size: .64rem; }
  .ec-date .side { width: 74px; font-size: .62rem; }
  .choice button { font-size: 1rem; padding: 14px 8px; }
}

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

@media (max-width: 560px) {
  .event-card { padding-top: 58px; }
  .event-card .ec-flora { width: 96px; top: -34px; right: -38px; }
  .event-card .ec-flora.bl { width: 78px; bottom: -40px; left: -34px; opacity: .85; }
  .rsvp-card .card-flora { width: 130px; }
}

/* ================================================================ whimsy */
/* crescent moon & twinkling stars */
.moon { position: absolute; top: 12vh; right: 9vw; width: clamp(46px, 6vw, 78px); filter: drop-shadow(0 0 18px rgba(246, 226, 170, .55)) drop-shadow(0 0 50px rgba(246, 226, 170, .25)); animation: moon-float 9s ease-in-out infinite alternate; }
@keyframes moon-float { to { transform: translateY(10px) rotate(-6deg); } }
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #f6e9c4; box-shadow: 0 0 6px #f6e9c4; opacity: .2; animation: twinkle var(--t) ease-in-out var(--d) infinite; }
.stars i.big { width: 3px; height: 3px; }
.stars i.big::before, .stars i.big::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: linear-gradient(90deg, transparent, #f6e9c4, transparent); transform: translate(-50%, -50%); }
.stars i.big::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes twinkle { 50% { opacity: 1; transform: scale(1.3); } }

/* sparkle trail */
.spark { position: fixed; z-index: 90; pointer-events: none; color: #f3e2b0; font-size: 12px; line-height: 1; text-shadow: 0 0 8px rgba(246, 226, 170, .9); transform: translate(-50%, -50%) scale(var(--s)); animation: spark-fade .9s ease-out forwards; }
@keyframes spark-fade { to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + 22px)) scale(0) rotate(90deg); } }

/* seal wiggles every few seconds to say "open me" */
.env-seal { animation: seal-wiggle 4.6s ease-in-out 2.6s infinite; }
@keyframes seal-wiggle {
  0%, 84%, 100% { transform: translate(-50%, -50%) rotate(0) scale(1); }
  87% { transform: translate(-50%, -50%) rotate(-9deg) scale(1.06); }
  90% { transform: translate(-50%, -50%) rotate(8deg) scale(1.06); }
  93% { transform: translate(-50%, -50%) rotate(-5deg); }
  96% { transform: translate(-50%, -50%) rotate(3deg); }
}
.envelope.open .env-seal { animation: none; }

/* lily-of-the-valley bells sway; flowers shiver when tapped */
.flora.grown .bell { animation: bell-sway 3.4s ease-in-out calc(var(--d) + 1.4s) infinite alternate; }
@keyframes bell-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.hero-flora svg, .footer-flora svg { pointer-events: auto; cursor: pointer; }
.hero-flora .flora > *, .footer-flora .flora > * { pointer-events: visiblePainted; }
.shiver .flora { animation: shiver .7s var(--ease-out) !important; }
@keyframes shiver { 20% { transform: rotate(-4deg) scale(1.03); } 45% { transform: rotate(3deg); } 70% { transform: rotate(-1.5deg); } }

/* name suggestions */
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.suggest button { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(90, 44, 107, .35); background: rgba(255, 255, 255, .55); color: var(--plum-700); font-size: 1.1rem; animation: step-in .5s var(--ease-out) both; animation-delay: calc(var(--i) * 80ms); transition: background .25s, transform .25s var(--ease-spring); }
.suggest button:hover { background: var(--plum-600); color: var(--gold-light); transform: translateY(-2px); }
.form-error:empty + .suggest { margin-top: 0; }

/* polaroid gallery */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(18px, 3vw, 34px); padding: 10px 0 20px; }
.polaroid {
  position: relative; margin: 0;
  width: clamp(150px, 26vw, 270px);
  padding: 12px 12px 14px;
  background: #fbf7ee;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .3);
  cursor: zoom-in;
  transform: rotate(var(--r));
  transition: transform .6s var(--ease-spring), box-shadow .5s;
}
.polaroid.reveal { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) * 4)) scale(1.1); filter: none; transition: opacity .7s ease, transform 1.1s var(--ease-spring), box-shadow .5s; transition-delay: calc(var(--i) * 120ms); }
.polaroid.reveal.in { opacity: 1; transform: rotate(var(--r)); }
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0) scale(1.05) translateY(-6px) !important; box-shadow: 0 28px 50px rgba(0, 0, 0, .5); z-index: 2; outline: none; transition-delay: 0s; }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: cover; background: #e8e1d2; }
.polaroid figcaption { font-family: var(--script); font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: var(--plum-700); text-align: center; margin-top: 8px; line-height: 1.2; }
.tape { position: absolute; top: -12px; left: 50%; width: 84px; height: 26px; transform: translateX(-50%) rotate(var(--t)); background: linear-gradient(90deg, rgba(154, 106, 171, .55), rgba(201, 169, 110, .55)); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); mask-image: linear-gradient(90deg, transparent 0, #000 4px, #000 calc(100% - 4px), transparent 100%); }
@media (max-width: 560px) { .polaroid { width: calc(50% - 12px); padding: 8px 8px 10px; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(7, 20, 13, .92); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lightbox figure.swap { animation: lb-in .55s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94) rotate(-1.5deg); } }
.lightbox img { max-width: 100%; max-height: 80vh; border: 10px solid #fbf7ee; border-bottom-width: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.lightbox figcaption { font-family: var(--script); font-size: 2rem; color: var(--gold-light); margin-top: 8px; }
.lb-close { position: absolute; top: 14px; right: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--gold-light); font-size: 2rem; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--gold-light); font-size: 2.2rem; line-height: 1; }
.lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
.lb-close:hover, .lb-nav:hover { background: rgba(201, 169, 110, .25); }

/* ================================================================ readability */
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .26em; color: var(--gold-light); }
.section-sub, .hero-line, .card-lead, .ec-tagline, .cd-caption, .rsvp-intro p, .rsvp-done p, .when { font-weight: 500; }
.hero-dear { font-size: .86rem; font-weight: 600; }
.hero-full { font-size: clamp(.78rem, 1.9vw, .92rem); font-weight: 600; }
.chip small, .ec-label, .lbl, .cd-label, .faq-tag, .rsvp-deadline, .timeline .t { font-weight: 600; }
.ec-label { font-size: .76rem; }
.lbl { font-size: .7rem; color: var(--plum-700); }
.ec-date .side { font-weight: 600; color: var(--green-800); }
.ec-address, .ec-desc, .story-text, .gift-text, .travel-card p, .faq-a p, .dress-card p, .tips li, .timeline .td { font-weight: 500; }
.timeline .tt, .travel-card h4, .faq-q { font-weight: 600; }
.topnav a.nl { font-size: .7rem; font-weight: 600; color: rgba(246, 239, 224, .92); }
.field span { color: var(--ink-soft); }
.inp, .sel, .ta { font-weight: 500; }
.section-title, .hero-names .n, .footer-names { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }

/* ================================================================ nikkah guide */
.guide-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 16px; counter-reset: none; }
.guide-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 20px 24px; border-radius: 18px; background: linear-gradient(150deg, rgba(66, 32, 79, .42), rgba(15, 38, 25, .6)); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .25); }
.gs-num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--script); font-size: 2rem; color: var(--plum-900); background: radial-gradient(circle at 35% 30%, #f6e9c4, var(--gold) 70%, var(--gold-dark)); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.guide-steps h4 { margin: 4px 0 4px; font-size: 1.35rem; font-weight: 600; color: var(--gold-light); }
.guide-steps p { margin: 0; color: rgba(246, 239, 224, .94); }
.guide-etiquette { max-width: 820px; margin: 44px auto 0; padding: clamp(26px, 5vw, 40px); border-radius: 10px; color: var(--ink); background: linear-gradient(170deg, var(--ivory), var(--ivory-2)); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); position: relative; }
.guide-etiquette::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(156, 122, 60, .5); border-radius: 6px; pointer-events: none; }
.guide-etiquette h3, .glossary h3 { font-family: var(--script); font-weight: 400; font-size: clamp(2.2rem, 6vw, 2.8rem); line-height: 1.1; margin: 0 0 14px; text-align: center; }
.guide-etiquette h3 { color: var(--plum-700); }
.guide-etiquette ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-etiquette li { position: relative; padding-left: 32px; font-weight: 500; }
.guide-etiquette li::before { content: '☾'; position: absolute; left: 4px; top: 0; color: var(--plum-600); }
.glossary { max-width: 900px; margin: 56px auto 0; }
.glossary h3 { color: var(--gold-light); }
.glossary dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 18px 0 0; }
.glossary dl > div { padding: 16px 18px; border-radius: 14px; background: rgba(15, 38, 25, .7); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .22); }
.glossary dt { font-family: var(--caps); font-weight: 600; font-size: .85rem; letter-spacing: .12em; color: var(--gold-light); }
.glossary dd { margin: 4px 0 0; color: rgba(246, 239, 224, .94); font-weight: 500; }

/* ================================================================ travel questions */
.travel-fields { display: grid; gap: 12px; margin-top: 6px; padding: 18px; border-radius: 14px; background: rgba(43, 94, 65, .08); border: 1px dashed rgba(43, 94, 65, .35); }
.tf-head { margin: 0; font-family: var(--script); font-size: 1.9rem; line-height: 1.1; color: var(--green-700); }
.tf-note { margin: -6px 0 4px; font-style: italic; color: var(--ink-soft); font-size: .95rem; }
.mini-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-choice button { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(90, 44, 107, .3); background: rgba(255, 255, 255, .6); color: var(--plum-700); font-weight: 600; font-size: .95rem; transition: all .25s; }
.mini-choice button.on { background: var(--green-700); border-color: var(--green-700); color: var(--ivory); }

/* ================================================================ quick RSVP */
.section[id] { scroll-margin-top: 64px; }
.hero-rsvp-wrap { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-inner > :nth-child(7) { animation-delay: 1.75s !important; }
.hero-rsvp { padding: 17px 46px; font-size: .9rem; font-weight: 600; letter-spacing: .28em; animation: rsvp-glow 3s ease-in-out 3s infinite; }
@keyframes rsvp-glow { 50% { box-shadow: 0 10px 30px rgba(201, 169, 110, .55), 0 0 0 6px rgba(201, 169, 110, .12); } }
.hero-rsvp-by { font-style: italic; color: var(--gold-light); font-size: 1.05rem; font-weight: 600; text-shadow: 0 1px 3px #07140d, 0 0 12px #07140d, 0 0 20px #07140d; position: relative; z-index: 2; }
.rsvp-fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--plum-600), var(--plum-800)); color: var(--gold-light);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(232, 214, 166, .45);
  font-family: var(--caps); font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-decoration: none;
  transform: translateY(140%) scale(.8); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease-spring), opacity .4s;
}
.rsvp-fab.show { transform: none; opacity: 1; pointer-events: auto; animation: fab-bob 4s ease-in-out .8s infinite; }
.rsvp-fab svg { width: 22px; height: 22px; }
.rsvp-fab:hover { background: linear-gradient(135deg, #6c3680, var(--plum-700)); }
@keyframes fab-bob { 50% { transform: translateY(-4px); } }
body:not(.is-invite) .rsvp-fab { display: none; }
.topnav a.nl.rsvp { position: sticky; right: 0; box-shadow: -14px 0 14px rgba(7, 20, 13, .95); }
.rsvp-card.beckon { animation: beckon 1.4s var(--ease-out); }
@keyframes beckon { 30% { box-shadow: 0 0 0 6px rgba(232, 214, 166, .55), 0 40px 80px rgba(0, 0, 0, .5); transform: scale(1.012); } }
.food-note { display: inline-flex; gap: 8px; align-items: center; margin: 16px auto 0 !important; padding: 8px 18px; border-radius: 12px; background: rgba(43, 94, 65, .1); color: var(--green-800) !important; font-style: normal !important; font-weight: 600; }
.food-note span { color: var(--gold-dark); }

/* full names as the main heading */
.hero-names.full { font-size: clamp(2.9rem, 7.2vw, 6.4rem); line-height: 1.12; }
.hero-names.full .n { text-wrap: balance; max-width: 15ch; }
.hero-names.full .amp { font-size: .5em; margin: .05em 0 .1em; }
.hero-arabic + .hero-names { margin-top: 8px; }
