@font-face {
  font-family: "Mina Miremad";
  src: url("../fonts/Miremad.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Wedding Script";
  src: url("../fonts/english-font.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ivory: #f7f3ec;
  --cream: #eee6dc;
  --paper: #fffdf9;
  --paper-glass: rgba(255, 253, 249, .9);
  --ink: #514943;
  --muted: #81766e;
  --rose: #bd9b98;
  --rose-deep: #92706f;
  --sage: #7a8272;
  --sage-deep: #5e6758;
  --champagne: #b59b75;
  --line: rgba(122, 103, 84, .2);
  --soft-line: rgba(122, 103, 84, .11);
  --shadow: 0 24px 65px rgba(84, 70, 58, .1);
  --fa: Tahoma, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--fa);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
body.intro-locked { overflow: hidden; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
a { color: inherit; }

/* Opening film */
.wedding-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #251014;
  cursor: pointer;
  transition: opacity 1.05s ease, visibility 1.05s ease;
}
.intro-backdrop {
  position: absolute;
  inset: -5%;
  background-position: center;
  background-size: cover;
  filter: blur(26px) brightness(.38) saturate(.75);
  transform: scale(1.08);
}
.intro-stage {
  position: relative;
  width: min(100vw, 45svh);
  height: 100svh;
  max-height: 100vh;
  overflow: hidden;
  background: #4d1821;
  box-shadow: 0 0 90px rgba(0, 0, 0, .42);
}
.intro-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 6, 8, .2), transparent 28%, transparent 70%, rgba(20, 6, 8, .42));
}
.intro-hint {
  position: absolute;
  right: 50%;
  bottom: max(5.5%, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: .65rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: .74rem 1.1rem;
  color: #fffaf2;
  background: rgba(45, 18, 23, .58);
  border: 1px solid rgba(255, 245, 229, .48);
  border-radius: 999px;
  font-size: clamp(.82rem, 3.4vw, .95rem);
  line-height: 1.7;
  transform: translateX(50%);
  backdrop-filter: blur(8px);
  transition: opacity .45s ease, transform .45s ease;
}
.intro-hint i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #eadbc4;
  border-radius: 50%;
  animation: hintPulse 1.8s infinite;
}
.wedding-intro.playing .intro-hint { opacity: 0; transform: translate(50%, 12px); pointer-events: none; }
.intro-personal {
  position: absolute;
  top: clamp(1.3rem, 4.5svh, 3.1rem);
  left: 50%;
  display: flex;
  width: min(calc(100% - 2.5rem), 390px);
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  color: #fffaf2;
  text-align: center;
  text-shadow: 0 1px 6px rgba(31, 8, 12, .72);
  transform: translateX(-50%);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.intro-personal span,
.intro-personal strong { display: block; font-family: "Mina Miremad", var(--fa); font-weight: 400; line-height: 1.65; }
.intro-personal span { font-size: clamp(1.2rem, 5vw, 1.6rem); }
.intro-personal strong { color: #ead2a2; font-size: clamp(1.6rem, 6.4vw, 2.25rem); overflow-wrap: anywhere; }
.wedding-intro.playing .intro-personal { opacity: 0; transform: translate(-50%, -10px); }
.wedding-intro.finishing { opacity: 0; pointer-events: none; }
.wedding-intro.done { visibility: hidden; }

/* Shared layout and motion */
#invitation, .site-footer { width: 100%; opacity: 0; transition: opacity .85s ease; }
body.entered #invitation,
body.entered .site-footer { opacity: 1; }
#invitation { background: var(--ivory); }
.section-pad { position: relative; padding: clamp(5.2rem, 11vw, 8rem) clamp(1rem, 6vw, 4rem); }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2, .72, .2, 1), transform 1s cubic-bezier(.2, .72, .2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }
.section-heading { position: relative; z-index: 2; margin: 0 auto 2.5rem; text-align: center; }
.section-heading > p,
.section-kicker { margin: 0 0 .35rem; color: var(--rose-deep); font-size: clamp(.75rem, 2.2vw, .88rem); line-height: 1.9; letter-spacing: .02em; }
.section-heading h2,
.message-card h2,
.venue-card h2 {
  margin: 0;
  padding: .12em .05em .2em;
  color: var(--ink);
  font-family: "Mina Miremad", var(--fa);
  font-size: clamp(2.45rem, 7vw, 4.15rem);
  font-weight: 400;
  line-height: 1.65;
}

/* Ivory editorial hero */
.hero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.95), transparent 33%),
    linear-gradient(180deg, #faf7f2, #eee7de);
}
.hero-media {
  position: absolute;
  inset: clamp(.8rem, 2.2vw, 1.5rem) auto;
  left: 50%;
  z-index: -2;
  width: min(calc(100% - 1.5rem), 760px);
  margin: 0;
  overflow: hidden;
  background: #d8cec3;
  border: 8px solid rgba(255, 253, 249, .9);
  border-radius: min(30vw, 220px) min(30vw, 220px) 26px 26px;
  box-shadow: 0 25px 80px rgba(70, 57, 48, .17);
  transform: translateX(-50%);
}
.hero-media img,
.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 50%; filter: saturate(.72) contrast(.96) brightness(1.03); }
.hero-shade {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, .18), transparent 32%, rgba(59, 49, 44, .08) 56%, rgba(52, 43, 39, .6) 100%),
    linear-gradient(90deg, rgba(255,255,255,.16), transparent 26%, transparent 74%, rgba(255,255,255,.13));
}
.hero-frame { position: absolute; inset: 1.55rem; z-index: -1; border: 1px solid rgba(181, 155, 117, .3); border-radius: 30px; pointer-events: none; }
.hero-lace { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-lace span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(62px, 10vw, 112px);
  opacity: 0;
  background: url("../img/lace-theme/lace-border.jpg") center / auto 100% no-repeat;
  mix-blend-mode: screen;
  filter: contrast(.92) brightness(1.04);
}
.hero-lace span:first-child { right: -18px; transform: translateY(-55px); }
.hero-lace span:last-child { left: -18px; transform: scaleX(-1) translateY(55px); }
body.entered .hero-lace span:first-child { animation: laceEnterTop 1.7s .15s ease-out both; }
body.entered .hero-lace span:last-child { animation: laceEnterBottom 1.7s .28s ease-out both; }
.hero-flower {
  position: absolute;
  z-index: 1;
  width: clamp(120px, 22vw, 220px);
  aspect-ratio: 1;
  opacity: 0;
  background: url("../img/lace-theme/floral-sprigs.jpg") 17% 22% / 350% auto no-repeat;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: saturate(.7) contrast(.95);
  pointer-events: none;
}
.hero-flower-one { top: 2%; left: -3%; transform: rotate(-10deg) scale(.65); }
.hero-flower-two { right: -4%; bottom: 4%; background-position: 82% 78%; transform: rotate(12deg) scale(.65); }
body.entered .hero-flower-one { animation: flowerArriveLeft 1.45s .5s cubic-bezier(.2,.72,.2,1) both, floralBreeze 8s 2.2s ease-in-out infinite; }
body.entered .hero-flower-two { animation: flowerArriveRight 1.45s .7s cubic-bezier(.2,.72,.2,1) both, floralBreezeReverse 9s 2.4s ease-in-out infinite; }
.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 3rem), 620px);
  margin-top: auto;
  margin-bottom: clamp(6.2rem, 13vh, 8.5rem);
  padding: 1.1rem 1rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,253,249,.91), rgba(255,253,249,.72));
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(54, 44, 39, .11);
  backdrop-filter: blur(10px);
}
.hero-kicker { margin: 0; color: var(--sage-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(.68rem, 2vw, .85rem); letter-spacing: .3em; line-height: 1.8; }
.hero-content h1,
.footer-couple {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  column-gap: .16em;
  width: 100%;
  margin: .1rem 0 0;
  padding: .22em .02em .12em;
  color: #61534d;
  font-family: "Wedding Script", "Brush Script MT", cursive;
  font-size: clamp(2.8rem, 8.3vw, 6.6rem);
  font-weight: 400;
  line-height: 1.08;
  white-space: nowrap;
}
.hero-content h1 span,
.footer-couple span { display: inline-block; width: max-content; padding-inline: .13em; }
.hero-content h1 span:first-child,
.footer-couple span:first-child { justify-self: end; }
.hero-content h1 span:last-child,
.footer-couple span:last-child { justify-self: start; }
.hero-content h1 b,
.footer-couple b { margin: 0; color: var(--champagne); font-family: Georgia, serif; font-size: .46em; font-style: normal; font-weight: 400; line-height: 1.2; }
.hero-date { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--muted); font-family: Georgia, serif; font-size: clamp(.72rem, 2.4vw, .88rem); letter-spacing: .1em; line-height: 1.9; }
.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: #5e544f;
  font-size: clamp(.68rem, 2.4vw, .8rem);
  line-height: 1.7;
  text-decoration: none;
  transform: translateX(50%);
}
.scroll-cue > i { position: relative; display: block; width: 21px; height: 32px; border: 1px solid rgba(91,77,69,.42); border-radius: 20px; background: rgba(255,253,249,.45); }
.scroll-cue > i b { position: absolute; top: 6px; left: 50%; width: 3px; height: 6px; background: var(--rose-deep); border-radius: 4px; transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }

/* Angels and flowers bridge */
.fairy-bridge { position: relative; height: clamp(210px, 46vw, 390px); margin-top: -1px; overflow: hidden; background: linear-gradient(180deg, #eee7de 0%, #f7f3ec 30%, #f7f3ec 100%); }
.fairy-scene { position: absolute; inset: 0; overflow: hidden; }
.fairy-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mix-blend-mode: multiply;
  filter: saturate(.72) contrast(.95) brightness(1.03);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.3) 15%, #000 42%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.3) 15%, #000 42%, #000 100%);
  animation: fairyFloat 7s 1.1s ease-in-out infinite;
}
.fairy-spark { position: absolute; width: 5px; height: 5px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(196,166,130,.8); animation: sparkFloat 4.5s ease-in-out infinite; }
.fairy-spark-one { right: 25%; bottom: 35%; }
.fairy-spark-two { left: 28%; bottom: 28%; animation-delay: 1.2s; }
.fairy-spark-three { left: 52%; bottom: 18%; animation-delay: 2.1s; }

/* Invitation text */
.invitation-message { display: grid; min-height: 760px; place-items: center; overflow: hidden; isolation: isolate; background: #f8f4ee; }
.invitation-message::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/lace-theme/lace-frame.jpg") center / cover no-repeat;
  opacity: .22;
  filter: saturate(.25) contrast(.85) brightness(1.06);
  content: "";
}
.invitation-message::after { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(255,253,249,.97) 0 38%, rgba(248,244,238,.7) 72%, rgba(248,244,238,.4)); content: ""; }
.lace-curtain { position: absolute; top: 4%; bottom: 4%; width: clamp(74px, 13vw, 150px); opacity: .46; background: url("../img/lace-theme/lace-border.jpg") center / auto 100% no-repeat; mix-blend-mode: multiply; pointer-events: none; }
.lace-curtain-right { right: -26px; }
.lace-curtain-left { left: -26px; transform: scaleX(-1); }
.message-card {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
  padding: clamp(3.2rem, 9vw, 5.2rem) clamp(1.35rem, 7vw, 4.6rem);
  text-align: center;
  background: rgba(255,253,249,.88);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.message-card::before { position: absolute; inset: 9px; border: 1px solid rgba(181,155,117,.2); border-radius: 19px; content: ""; pointer-events: none; }
.message-card::after { position: absolute; top: -1px; right: 18%; left: 18%; height: 18px; background: url("../img/lace-theme/lace-border.jpg") center 48% / 100% auto no-repeat; opacity: .55; content: ""; }
.message-monogram { display: grid; width: 82px; height: 82px; margin: 0 auto 1rem; place-content: center; color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid rgba(181,155,117,.48); border-radius: 50%; font-family: Georgia, serif; line-height: 1; box-shadow: 0 8px 24px rgba(84,70,58,.08); }
.message-monogram span { display: block; line-height: .92; }
.message-monogram .monogram-letter { font-size: 1rem; }
.message-monogram .monogram-amp { margin: 2px 0; color: var(--champagne); font-family: "Wedding Script", Georgia, serif; font-size: 1.1rem; }
.message-card h2 { padding: .16em .05em .36em; line-height: 1.82; }
.ornament { display: block; margin: .25rem 0 1rem; color: var(--champagne); letter-spacing: .16em; }
.invitation-copy { margin: 0 auto 1.2rem; color: #655b55; font-size: clamp(.96rem, 3.1vw, 1.08rem); line-height: 2.35; }
.message-card > strong { display: block; color: var(--rose-deep); font-size: .86rem; font-weight: 500; line-height: 2; }
.flower-sprig {
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(140px, 27vw, 280px);
  aspect-ratio: 1.05;
  background: url("../img/lace-theme/floral-sprigs.jpg") 12% 16% / 310% auto no-repeat;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: saturate(.72) contrast(.94);
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 72%);
  mask-image: radial-gradient(circle, #000 45%, transparent 72%);
}
.flower-sprig-top { top: 4%; left: -2%; transform-origin: 20% 100%; }
.flower-sprig-bottom { right: -3%; bottom: 2%; background-position: 88% 84%; transform-origin: 80% 100%; }
.flower-sprig.visible { animation: sprigSettle 1.25s cubic-bezier(.18,.76,.24,1) both, floralBreeze 8s 1.35s ease-in-out infinite; }

/* Program */
.program-section { overflow: hidden; background: linear-gradient(180deg, #f2ece4, #faf7f2 18%, #faf7f2 82%, #f0e9e0); }
.program-paper {
  position: relative;
  width: min(100%, 780px);
  margin: auto;
  padding: clamp(3rem, 8vw, 4.8rem) clamp(.65rem, 5vw, 3rem);
  overflow: hidden;
  background: rgba(255,253,249,.95);
  border: 1px solid var(--soft-line);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(84,70,58,.08);
}
.program-paper::before,
.program-paper::after { position: absolute; top: 0; bottom: 0; width: clamp(48px, 10vw, 86px); background: url("../img/lace-theme/lace-border.jpg") center / auto 100% no-repeat; opacity: .28; mix-blend-mode: multiply; content: ""; pointer-events: none; }
.program-paper::before { right: -24px; }
.program-paper::after { left: -24px; transform: scaleX(-1); }
.line-bow { display: block; width: clamp(58px, 9vw, 78px); margin: 0 auto .8rem; opacity: .72; filter: grayscale(.28) sepia(.16); }
.line-bow img { display: block; width: 100%; height: auto; }
.section-heading.visible .line-bow img { animation: ribbonAppear 1s ease-out both; }
.program-timeline { --timeline-y: 0%; position: relative; z-index: 2; width: min(100%, 630px); margin: auto; padding: .3rem 1rem; }
.timeline-track { position: absolute; top: 54px; bottom: 54px; left: calc(1rem + 88px); width: 1px; background: #ded5ca; }
.timeline-progress { position: absolute; top: 0; left: 0; width: 100%; height: var(--timeline-y); background: linear-gradient(var(--rose), var(--sage)); }
.timeline-runner {
  position: absolute;
  top: var(--timeline-y);
  left: 50%;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: rgba(255,253,249,.95);
  border: 1px solid rgba(181,155,117,.52);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(84,70,58,.13);
  transform: translate(-50%, -50%);
  transition: top .12s linear;
}
.timeline-runner svg { width: 27px; height: 27px; overflow: visible; fill: rgba(190,155,154,.72); stroke: #807968; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; animation: runnerFlower 4.8s ease-in-out infinite; }
.timeline-runner circle { fill: #c9ab78; }
.timeline-runner .runner-stem { fill: none; stroke: #73806c; }
.program-item { direction: ltr; display: grid; grid-template-columns: 70px 36px minmax(0,1fr); align-items: center; min-height: 128px; }
.program-icon { display: grid; width: 54px; height: 54px; place-items: center; justify-self: center; color: #898177; background: transparent; border: 1px solid #ddd4c9; border-radius: 50%; transition: color .45s ease, background .45s ease, border-color .45s ease, transform .45s ease; }
.program-icon svg { width: 27px; height: 27px; }
.program-marker { position: relative; z-index: 3; display: block; width: 9px; height: 9px; justify-self: center; background: var(--paper); border: 1px solid #bfb4a7; border-radius: 50%; box-shadow: 0 0 0 5px var(--paper); transition: background .35s ease, border-color .35s ease, transform .35s ease; }
.program-copy { direction: rtl; min-width: 0; padding: 1rem 1.1rem; text-align: right; }
.program-copy time { display: inline-block; color: var(--rose-deep); font-family: Georgia, var(--fa); font-size: .9rem; font-weight: 700; line-height: 1.8; }
.program-copy h3 { margin: .05rem 0 .2rem; padding: .08em 0 .14em; color: var(--ink); font-family: "Mina Miremad", var(--fa); font-size: clamp(1.6rem, 4.2vw, 2.05rem); font-weight: 400; line-height: 1.65; }
.program-copy p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.9; }
.program-item.passed .program-icon { color: #fffdf9; background: var(--sage); border-color: var(--sage); transform: scale(1.04); }
.program-item.passed .program-marker { background: var(--rose); border-color: var(--rose); transform: scale(1.16); }

/* Venue */
.venue-section { isolation: isolate; overflow: hidden; background: #f5efe8; }
.venue-section::before { position: absolute; inset: 0; z-index: -2; background: url("../img/lace-theme/floral-sprigs.jpg") center / cover; opacity: .13; filter: saturate(.65); content: ""; }
.venue-section::after { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(247,243,236,.96) 0 38%, rgba(247,243,236,.78) 75%); content: ""; }
.venue-card { position: relative; width: min(100%, 680px); margin: auto; padding: clamp(2.4rem, 7vw, 4rem) clamp(1.05rem, 6vw, 3.2rem); text-align: center; background: rgba(255,253,249,.9); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.venue-card::before { position: absolute; top: 0; right: 18%; left: 18%; height: 17px; background: url("../img/lace-theme/lace-border.jpg") center / 100% auto no-repeat; opacity: .48; content: ""; }
.venue-card h2 { max-width: 100%; margin-inline: auto; padding: .18em .05em .4em; font-size: clamp(2.2rem, 7vw, 3.9rem); line-height: 1.8; overflow-wrap: anywhere; }
.venue-pin { display: grid; width: 48px; height: 48px; margin: .65rem auto .9rem; place-items: center; color: #fff; background: var(--sage); border: 3px solid #ece2d5; border-radius: 50%; font-size: 1.3rem; box-shadow: 0 0 0 4px rgba(122,130,114,.1); }
.venue-card address { max-width: 470px; margin: 1.2rem auto 1.5rem; color: var(--muted); font-size: .88rem; font-style: normal; line-height: 2; }
.map-preview { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border: 6px solid #fff; border-radius: 20px; box-shadow: 0 14px 34px rgba(79,64,52,.1); }
.map-preview iframe { display: block; width: 100%; height: 100%; pointer-events: none; border: 0; filter: sepia(.16) saturate(.55); }
.map-click-layer { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: .7rem; color: #fff; text-decoration: none; background: linear-gradient(180deg, transparent 48%, rgba(78,72,65,.58)); }
.map-click-layer span { padding: .44rem .85rem; background: rgba(94,103,88,.88); border: 1px solid rgba(255,255,255,.38); border-radius: 999px; font-size: .73rem; line-height: 1.7; backdrop-filter: blur(6px); }
.neshan-route { display: flex; width: min(100%, 350px); align-items: center; gap: .8rem; margin: 1.2rem auto 0; padding: .72rem 1rem; color: #fff; text-align: right; text-decoration: none; background: linear-gradient(135deg, #808a78, #5d6658); border: 1px solid rgba(255,255,255,.34); border-radius: 999px; box-shadow: 0 10px 24px rgba(77,84,72,.18); transition: transform .25s ease, box-shadow .25s ease; }
.neshan-route:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(77,84,72,.23); }
.neshan-route svg { width: 28px; height: 28px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.45; }
.neshan-route span { display: flex; min-width: 0; flex-direction: column; }
.neshan-route b { font-size: .8rem; line-height: 1.7; }
.neshan-route small { color: rgba(255,255,255,.75); font-size: .66rem; line-height: 1.6; }
.neshan-route i { margin-right: auto; font-style: normal; }

/* Gallery */
.gallery-section { background: #faf7f2; }
.gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: .75rem; width: min(100%,760px); margin: auto; }
.gallery-card { grid-column: span 6; position: relative; aspect-ratio: 4/5; padding: 0; overflow: hidden; background: #ddd4ca; border: 7px solid #fffdf9; border-radius: 22px; box-shadow: 0 15px 34px rgba(73,59,49,.1); cursor: zoom-in; }
.gallery-card:nth-child(3n + 1) { grid-column: span 12; aspect-ratio: 7/5; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86); transition: transform .7s ease, filter .5s ease; }
.gallery-card:hover img { transform: scale(1.035); filter: saturate(1); }
.empty-album { display: grid; min-height: 220px; width: min(100%,620px); margin: auto; place-items: center; align-content: center; color: var(--muted); background: rgba(255,253,249,.68); border: 1px dashed rgba(122,103,84,.28); border-radius: 24px; }
.empty-album span { color: var(--rose-deep); font-size: 2.2rem; }
.empty-album p { margin: .3rem 0 0; font-size: .86rem; text-align: center; }

/* RSVP and guestbook */
.participation { overflow: hidden; background: linear-gradient(180deg, #ece5dc, #f8f4ee); }
.participation::before { position: absolute; right: 0; left: 0; bottom: 0; height: min(36vw,310px); background: url("../img/lace-theme/fairy-garden.jpg") center bottom / cover no-repeat; opacity: .12; mix-blend-mode: multiply; content: ""; pointer-events: none; }
.forms-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: min(100%,760px); margin: auto; }
.forms-layout > form:only-child { grid-column: 1/-1; width: min(100%,520px); margin: auto; }
.wedding-form { padding: clamp(1.3rem,4vw,2rem); background: rgba(255,253,249,.92); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 44px rgba(78,64,53,.08); backdrop-filter: blur(8px); }
.wedding-form h3 { margin: 0 0 1rem; padding: .1em 0 .18em; color: var(--ink); font-family: "Mina Miremad", var(--fa); font-size: 2rem; font-weight: 400; line-height: 1.6; }
.wedding-form label,
.wedding-form legend { display: block; color: #675f59; font-size: .8rem; line-height: 1.8; }
.wedding-form label { margin: .82rem 0; }
.wedding-form input,
.wedding-form textarea { width: 100%; margin-top: .38rem; padding: .68rem .15rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(122,103,84,.26); border-radius: 0; outline: none; }
.wedding-form textarea { resize: vertical; line-height: 1.9; }
.wedding-form input:focus,
.wedding-form textarea:focus { border-color: var(--sage); }
.wedding-form fieldset { margin: 1rem 0; padding: 0; border: 0; }
.wedding-form .choice { display: inline-flex; align-items: center; gap: .4rem; margin: .65rem 0 0 .6rem; }
.wedding-form .choice input { width: auto; margin: 0; accent-color: var(--sage); }
.wedding-form button { margin-top: .8rem; padding: .72rem 1.4rem; color: #fff; background: var(--sage); border: 1px solid var(--sage); border-radius: 999px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.wedding-form button:hover { background: var(--sage-deep); transform: translateY(-1px); }
.wedding-form button:disabled { opacity: .55; }
.form-result { min-height: 1.5rem; margin: .7rem 0 0; color: var(--sage-deep); font-size: .76rem; line-height: 1.8; }
.guestbook-wall { position: relative; z-index: 2; width: min(100%,760px); margin: 1.3rem auto 0; padding: 1.35rem 1rem 1rem; background: rgba(255,253,249,.72); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 40px rgba(78,64,53,.07); backdrop-filter: blur(8px); }
.guestbook-wall > header { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 1rem; color: var(--rose); text-align: center; }
.guestbook-wall header p { margin: 0; color: var(--rose-deep); font-size: .7rem; line-height: 1.8; }
.guestbook-wall header h3 { margin: 0; padding: .1em 0 .18em; color: var(--ink); font-family: "Mina Miremad", var(--fa); font-size: 2rem; font-weight: 400; line-height: 1.55; }
.guest-notes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px,calc((100% - .8rem)/2)); gap: .8rem; padding: .2rem .1rem .55rem; overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-color: rgba(181,155,117,.38) transparent; scrollbar-width: thin; }
.guest-notes blockquote { position: relative; min-height: 130px; margin: 0; padding: 1.15rem; overflow: hidden; color: #655b55; background: rgba(255,253,249,.95); border-right: 2px solid var(--rose); border-radius: 16px; scroll-snap-align: start; }
.guest-notes p { margin: 0 0 .5rem; font-size: .84rem; line-height: 1.9; }
.guest-notes cite { color: var(--sage-deep); font-size: .74rem; font-style: normal; }
.guestbook-empty { width: min(100%,390px); margin: .2rem auto .5rem !important; padding: 1rem; color: var(--muted); text-align: center; border: 1px dashed rgba(122,103,84,.3); border-radius: 15px; }
.guest-note-new { animation: newNote 1.2s ease both; }

/* Footer and controls */
.site-footer { position: relative; padding: 4rem 1rem; overflow: hidden; color: #756a63; text-align: center; background: linear-gradient(rgba(247,243,236,.82),rgba(247,243,236,.95)), url("../img/lace-theme/floral-sprigs.jpg") center / cover; border-top: 1px solid var(--soft-line); }
.site-footer::before { position: absolute; top: 0; right: 10%; left: 10%; height: 22px; background: url("../img/lace-theme/lace-border.jpg") center / 100% auto no-repeat; opacity: .4; content: ""; }
.footer-couple { width: min(100%,620px); margin: 0 auto .35rem; font-size: clamp(2.45rem,8vw,3.9rem); }
.footer-stars { color: var(--champagne); font-size: .82rem; }
.footer-logo-link { display: grid; width: 92px; height: 92px; margin: .75rem auto .65rem; place-items: center; background: rgba(255,253,249,.68); border: 1px solid rgba(181,155,117,.32); border-radius: 50%; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.footer-logo-link img { width: 80px; height: 80px; object-fit: contain; mix-blend-mode: multiply; }
.footer-logo-link:hover { transform: translateY(-2px); box-shadow: 0 11px 28px rgba(77,61,50,.1); }
.footer-instagram { display: inline-block; margin-top: .3rem; padding: .24rem .6rem; color: var(--sage-deep); font-family: Georgia, serif; font-size: .82rem; text-decoration: none; border-bottom: 1px solid rgba(94,103,88,.26); }
.music-toggle { position: fixed; right: max(1rem,env(safe-area-inset-right)); bottom: max(1rem,env(safe-area-inset-bottom)); z-index: 20; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; color: #fff; background: rgba(94,103,88,.9); border: 1px solid rgba(255,255,255,.6); border-radius: 50%; box-shadow: 0 9px 25px rgba(63,68,58,.2); cursor: pointer; backdrop-filter: blur(8px); }
.music-toggle[aria-pressed="true"] { opacity: .58; }
.lightbox { max-width: min(94vw,920px); max-height: 90vh; padding: 0; overflow: visible; background: transparent; border: 0; }
.lightbox::backdrop { background: rgba(40,34,31,.9); backdrop-filter: blur(8px); }
.lightbox img { max-height: 88vh; object-fit: contain; border-radius: 14px; }
.lightbox button { position: absolute; top: -46px; left: 0; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

@keyframes hintPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(234,219,196,.42); } 50% { box-shadow: 0 0 0 9px rgba(234,219,196,0); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 25%,75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,12px); } }
@keyframes laceEnterTop { from { opacity: 0; transform: translateY(-55px); } to { opacity: .62; transform: none; } }
@keyframes laceEnterBottom { from { opacity: 0; transform: scaleX(-1) translateY(55px); } to { opacity: .62; transform: scaleX(-1); } }
@keyframes flowerArriveLeft { from { opacity: 0; transform: translate(-40px,-25px) rotate(-18deg) scale(.65); } to { opacity: .72; transform: rotate(-4deg) scale(1); } }
@keyframes flowerArriveRight { from { opacity: 0; transform: translate(40px,25px) rotate(20deg) scale(.65); } to { opacity: .72; transform: rotate(5deg) scale(1); } }
@keyframes floralBreeze { 0%,100% { rotate: -1.2deg; } 50% { rotate: 1.4deg; } }
@keyframes floralBreezeReverse { 0%,100% { rotate: 1.2deg; } 50% { rotate: -1.4deg; } }
@keyframes fairyFloat { 0%,100% { transform: translateY(0) scale(1.01); } 50% { transform: translateY(-5px) scale(1.012); } }
@keyframes sparkFloat { 0%,100% { opacity: .15; transform: translateY(5px) scale(.7); } 50% { opacity: .85; transform: translateY(-12px) scale(1.1); } }
@keyframes sprigSettle { from { opacity: 0; translate: 0 30px; scale: .82; } to { opacity: .76; translate: 0 0; scale: 1; } }
@keyframes ribbonAppear { from { opacity: 0; transform: translateY(-7px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes runnerFlower { 0%,100% { transform: rotate(-4deg) scale(.96); } 50% { transform: rotate(5deg) scale(1.04); } }
@keyframes newNote { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .section-pad { padding-inline: 1rem; }
  .intro-stage { width: 100vw; }
  .hero-media { width: calc(100% - 1rem); inset-block: .5rem; border-width: 5px; }
  .hero-frame { inset: .95rem; }
  .hero-content { width: calc(100% - 2.4rem); margin-bottom: max(6.3rem,13vh); padding-inline: .65rem; }
  .hero-content h1 { font-size: clamp(2.55rem,12vw,3.85rem); }
  .hero-lace span { width: 72px; opacity: .55; }
  .hero-flower { width: 125px; }
  .fairy-bridge { height: 245px; }
  .lace-curtain { width: 82px; opacity: .34; }
  .message-card { width: calc(100% - .5rem); }
  .forms-layout { grid-template-columns: 1fr; }
  .program-paper { border-radius: 24px; }
  .program-timeline { padding-inline: .35rem; }
  .timeline-track { left: calc(.35rem + 67px); }
  .program-item { grid-template-columns: 53px 28px minmax(0,1fr); min-height: 120px; }
  .program-icon { width: 45px; height: 45px; }
  .program-icon svg { width: 23px; height: 23px; }
  .program-copy { padding-inline: .75rem .35rem; }
  .timeline-runner { width: 34px; height: 34px; }
  .timeline-runner svg { width: 24px; height: 24px; }
}

@media (max-width: 430px) {
  .hero-content h1 { font-size: clamp(2.3rem,11.5vw,3.1rem); }
  .hero-date { flex-direction: column; gap: 0; }
  .fairy-bridge { height: 220px; }
  .message-card { padding-inline: 1.15rem; }
  .flower-sprig { width: 150px; }
  .gallery-grid { gap: .5rem; }
  .gallery-card { border-width: 4px; }
  .guest-notes { grid-auto-columns: minmax(230px,88%); }
  .footer-couple { font-size: clamp(2.1rem,11.5vw,2.9rem); }
}

@media (max-height: 640px) and (orientation: landscape) {
  .intro-stage { width: 45svh; }
  .hero-content { margin-bottom: 4.5rem; }
  .scroll-cue { bottom: .55rem; }
  .scroll-cue > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal, .hero-lace span, .hero-flower { opacity: 1; transform: none; transition: none; }
  .hero-lace span:last-child { transform: scaleX(-1); }
  .timeline-runner { transition: none; }
}

/* v2.2.1 — framed portrait, seamless florals and a continuous-flight butterfly */
.hero {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 3.3svh, 2.35rem) 1rem clamp(5.1rem, 10svh, 6.5rem);
  color: var(--ink);
  background:
    radial-gradient(circle at 54% 18%, rgba(255,255,255,.98), transparent 42%),
    linear-gradient(155deg, #fffdfa 0%, #f8f3ec 56%, #eee6dc 100%);
}
.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  background: linear-gradient(transparent, rgba(224,212,199,.34));
  content: "";
  pointer-events: none;
}
.hero-media {
  position: relative;
  inset: auto;
  left: auto;
  z-index: 2;
  width: min(72vw, 40svh, 390px);
  max-height: none;
  aspect-ratio: 2 / 3;
  flex: 0 1 auto;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.hero-media img { filter: none; }
#top .hero-couple-photo,
#top .hero-couple-photo-backdrop {
  position: absolute;
  top: 18%;
  left: 22%;
  width: 58%;
  height: 61%;
  border-radius: 2px;
}
#top .hero-couple-photo-backdrop {
  z-index: 0;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: .28;
  filter: blur(6px) saturate(.58) brightness(1.08);
  clip-path: inset(0);
  transform: scale(1.025);
}
#top .hero-couple-photo {
  z-index: 1;
  object-fit: contain !important;
  object-position: 50% 50%;
  box-shadow: inset 0 0 20px rgba(75,60,48,.08);
}
}
#top .hero-photo-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 2rem), 640px);
  margin: clamp(-.45rem, -1vw, -.15rem) auto 0;
  padding: .1rem .4rem .25rem;
  color: var(--ink);
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.hero-content::before { display: none; }
.hero-kicker { display: none; }
.hero-content h1 {
  margin: 0;
  padding: .14em .02em .08em;
  color: #5c5049;
  font-size: clamp(2.65rem, 10vw, 5.2rem);
  text-shadow: none;
}
.hero-date {
  gap: 0;
  color: #8d7865;
  font-size: clamp(.72rem, 2.5vw, .9rem);
  letter-spacing: .16em;
}
.scroll-cue { z-index: 7; bottom: max(.85rem, env(safe-area-inset-bottom)); color: #665d57; }
.scroll-cue > i { background: rgba(255,253,249,.72); }
.butterfly-companion {
  position: absolute !important;
  top: -2% !important; /* تنظیم ارتفاع برای نشستن روی حاشیه بالایی */
  right: -2% !important; /* قرارگیری در گوشه راست */
  left: auto !important; /* جلوگیری از پرواز به سمت چپ */
  z-index: 5;
  display: block;
  width: clamp(140px, 28vw, 180px) !important; /* بزرگ کردن ابعاد پروانه */
  height: clamp(112px, 22.5vw, 145px) !important; /* بزرگ کردن ابعاد پروانه */
  overflow: hidden;
  opacity: 1 !important;
  pointer-events: none;
  transform-origin: 50% 70%;
  transform: rotate(15deg) !important; /* چرخش ملایم برای نشستن طبیعی روی حاشیه */
}

.butterfly-companion video {
  position: absolute;
  top: 0;
  left: -50%;
  display: block;
  width: 200%;
  max-width: none;
  height: auto;
  mix-blend-mode: screen;
  filter: brightness(1.14) contrast(.9) saturate(.82);
  animation: butterflyRest 4s ease-in-out infinite !important; /* فقط آرام بال می‌زند */
}

/* غیرفعال کردن کدهای پرواز که جاوااسکریپت به آن می‌دهد */
.butterfly-companion.is-flight-mode {
  display: none !important;
}
.invitation-message {
  z-index: 2;
  min-height: clamp(690px, 106svh, 860px);
  padding-top: clamp(7.2rem, 18vw, 10rem);
  padding-bottom: clamp(7.2rem, 18vw, 10rem);
  overflow: visible;
  background: linear-gradient(180deg, #faf7f2, #fffdfa 50%, #f7f2eb);
}
.invitation-message::before,
.invitation-message::after { display: none; }
.invitation-floral-line {
  position: absolute;
  right: 50%;
  z-index: 5;
  display: block;
  width: min(1120px, 116vw);
  max-width: none;
  height: auto;
  opacity: 0;
  filter: saturate(.82) brightness(1.03);
  pointer-events: none;
}
.invitation-floral-top { top: 0; transform: translate(50%, -50%); }
.invitation-floral-bottom { bottom: 0; transform: translate(50%, 50%) rotate(180deg); }
.invitation-floral-top.visible { animation: floralLineTop 1.15s cubic-bezier(.2,.72,.2,1) both; }
.invitation-floral-bottom.visible { animation: floralLineBottom 1.15s cubic-bezier(.2,.72,.2,1) both; }
.message-card { z-index: 6; }

.calendar-section {
  position: relative;
  z-index: 1;
}

.program-paper::before,
.program-paper::after {
  top: 0;
  bottom: 0;
  z-index: 0;
  width: clamp(128px, 18vw, 178px);
  height: auto;
  background: url("../img/lace-theme/program-lace-vertical.webp") center / 100% 100% no-repeat;
  opacity: .8;
  mix-blend-mode: multiply;
}
.program-paper::before {
  right: -20px;
  transform: none;
  -webkit-mask-image: linear-gradient(to left, #000 0 74%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0 74%, transparent 100%);
}
.program-paper::after {
  left: -20px;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to right, #000 0 74%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0 74%, transparent 100%);
}
.program-paper > * { position: relative; z-index: 2; }

.venue-section { background: linear-gradient(180deg, #f5efe8, #fbf8f4); }
.venue-section::before,
.venue-section::after { display: none; }

.participation {
  isolation: isolate;
  background: #f4e9df;
}
.participation::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: auto;
  background: url("../img/lace-theme/forms-floral-bg.jpg") center / cover repeat-y;
  opacity: 1;
  mix-blend-mode: normal;
}
.participation::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,250,245,.4);
  content: "";
  pointer-events: none;
}
.site-footer { background: #faf7f2; }
.site-footer::before { display: none; }

@keyframes butterflyRest {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-1.5px) rotate(.7deg); }
}
@keyframes floralLineTop {
  from { opacity: 0; transform: translate(50%, calc(-50% - 30px)) scale(.97); }
  to { opacity: .94; transform: translate(50%, -50%) scale(1); }
}
@keyframes floralLineBottom {
  from { opacity: 0; transform: translate(50%, calc(50% + 30px)) rotate(180deg) scale(.97); }
  to { opacity: .94; transform: translate(50%, 50%) rotate(180deg) scale(1); }
}

@media (max-width: 720px) {
  .hero { padding-top: max(1rem, 2.5svh); }
  .hero-media { width: min(73vw, 38.7svh, 350px); max-height: none; }
  .hero-content { width: calc(100% - 1.4rem); margin-top: -.3rem; padding-inline: .2rem; }
  .hero-content h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .invitation-floral-line { width: 146vw; }
  .program-paper { padding-inline: clamp(3.4rem, 15vw, 4.6rem); }
  .program-paper::before,
  .program-paper::after { width: 132px; height: auto; opacity: .78; }
  .program-paper::before { right: -24px; }
  .program-paper::after { left: -24px; }
}

@media (max-width: 430px) {
  .hero-media { width: min(75vw, 38svh, 330px); max-height: none; }
  .hero-content h1 { font-size: clamp(2.25rem, 11.7vw, 3.15rem); }
  .butterfly-companion { top: 1%; right: 0; width: 92px; height: 74px; }
  .invitation-message { padding-top: 7rem; padding-bottom: 7rem; }
  .invitation-floral-line { width: 168vw; }
}

@media (max-height: 700px) {
  .hero { padding-top: .65rem; padding-bottom: 4.4rem; }
  .hero-media { width: min(61vw, 36svh, 300px); max-height: none; }
  .hero-content h1 { font-size: clamp(2.15rem, 8vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .butterfly-companion.is-perched video { animation: none; }
  .invitation-floral-line { opacity: .94; }
  .invitation-floral-top { transform: translate(50%, -50%); }
  .invitation-floral-bottom { transform: translate(50%, 50%) rotate(180deg); }
}
