/* ==========================================================
   ADIBA & HABIB — Luxury Vintage Botanical Wedding Invitation
   Bootstrap dipakai hanya untuk grid & utility. Semua visual custom.
   ========================================================== */

:root {
  --ivory: #F6F0E2;
  --ivory-2: #FBF7EC;
  --cream: #EFE6D2;
  --beige: #E4D8BF;
  --sage: #9BA588;
  --olive: #6B7252;
  --deep: #343526;
  --brown: #3E2C20;
  --ink: #5B4636;
  --gold: #B89A62;
  --gold-d: #957A47;
  --gold-l: #D4BC8A;
  --rose: #C28E7C;

  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --f-caps: 'Cinzel', 'Times New Roman', serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;

  --col: 480px;
  --vh: 100svh;
  --pad: 1.6rem;
  --dome: 54px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
html { scroll-behavior: auto; scrollbar-gutter: stable; background: #343526; }
body {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--deep) url(../assets/ornaments/damask.svg) 0 0 / 96px;
  background-blend-mode: soft-light;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: var(--vh); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-l); color: var(--brown); }

.invite {
  position: relative;
  width: min(100%, var(--col));
  margin-inline: auto;
  background: var(--ivory);
  overflow: hidden;
  container-type: inline-size;
  box-shadow: 0 0 80px rgba(0, 0, 0, .45);
}
.fixed-col {
  position: fixed; top: 0; bottom: 0; left: 50%;
  width: min(100%, var(--col));
  transform: translateX(-50%);
}
@media (min-width: 992px) {
  .invite { margin-right: 0; }
  .fixed-col { left: auto; right: 0; transform: none; }
}

/* ---------- shared pieces ---------- */
.sec {
  position: relative;
  padding: 5.2rem var(--pad);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.sec > *:not(.deco):not(.frame-flourish):not(.sec-photo) { position: relative; z-index: 2; }
.sec:has(+ .dome) { padding-bottom: calc(5.2rem + var(--dome)); }
.dome {
  margin-top: calc(var(--dome) * -1);
  padding-top: calc(5.2rem + 1rem);
  border-radius: 50% 50% 0 0 / var(--dome) var(--dome) 0 0;
  box-shadow: 0 -14px 30px -18px rgba(40, 30, 20, .5);
}
.sec--paper, .hero { background: var(--ivory) url(../assets/textures/paper.svg); }
.sec--cream { background: var(--cream) url(../assets/textures/paper.svg); background-blend-mode: multiply; }
.sec--beige { background: var(--beige) url(../assets/textures/paper.svg); background-blend-mode: multiply; }
.sec--deep { background: var(--deep); color: #E6DCC4; }
.sec--deep::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(../assets/ornaments/damask.svg) 0 0 / 84px; opacity: .07;
}
.sec--photo { color: #F3EBD8; }
.sec-photo { position: absolute; inset: -14% 0; z-index: -2; }
.sec-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) saturate(.75); }
.sec-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(52, 53, 38, .86), rgba(52, 53, 38, .66) 45%, rgba(52, 53, 38, .9)); }

.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; max-width: none; translate: 0 var(--py, 0px); }

.frame-flourish {
  position: absolute; inset: 9px; z-index: 1; pointer-events: none;
  border: 58px solid transparent;
  border-image: url(../assets/frames/border-flourish.svg) 130 / 58px stretch;
  opacity: .85;
}
.dome > .frame-flourish { top: calc(var(--dome) - 14px); }
.frame-flourish--light { border-image-source: url(../assets/frames/border-flourish-light.svg); opacity: .6; }

.eyebrow {
  display: block;
  font-family: var(--f-caps); font-size: .64rem; font-weight: 500;
  letter-spacing: .42em; text-transform: uppercase; text-indent: .42em;
  color: var(--gold-d);
}
.eyebrow--light { color: var(--gold-l); }
.script-title {
  font-family: var(--f-script); font-weight: 400;
  font-size: clamp(2.4rem, 11.6cqw, 3.3rem); line-height: 1.1;
  color: var(--brown); margin: .5rem 0 .6rem;
}
.sec-head--light .script-title { color: #F3E9D2; }
.divider { width: 220px; margin-inline: auto; }
.sec-lead { max-width: 31ch; margin: 1.1rem auto 0; line-height: 1.55; }

.btn-inv {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.7rem; border: 0; border-radius: 999px;
  font-family: var(--f-caps); font-size: .66rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: #F5ECD8; background: linear-gradient(135deg, #4A3526, #2F2118);
  outline: 1px solid rgba(212, 188, 138, .65); outline-offset: -5px;
  box-shadow: 0 12px 24px -12px rgba(46, 32, 22, .8);
  cursor: pointer; transition: transform .5s var(--ease), box-shadow .5s, background .5s;
}
.btn-inv i { font-size: .85rem; color: var(--gold-l); }
.btn-inv:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 28px -14px rgba(46, 32, 22, .9); }
.btn-inv--ghost { background: transparent; color: var(--brown); outline: 0; border: 1px solid var(--gold); box-shadow: none; padding: .75rem 1.4rem; font-size: .6rem; }
.btn-inv--ghost i { color: var(--gold-d); }
.btn-inv--ghost:hover { background: var(--brown); color: var(--ivory); }
.btn-inv--light { background: linear-gradient(135deg, #E7D6AE, #C4A76F); color: var(--brown); outline-color: rgba(62, 44, 32, .35); }
.btn-inv--light i { color: var(--brown); }
.btn-inv--light:hover { color: var(--brown); }

/* arch photo */
.arch { position: relative; }
.arch-img { position: relative; z-index: 1; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 26px 44px -24px rgba(62, 44, 32, .7); }
.arch-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.22) saturate(.86) contrast(.97); }
.arch::before { content: ""; position: absolute; inset: -9px; border: 1px solid var(--gold); border-radius: 999px 999px 0 0; z-index: 2; pointer-events: none; }
.arch::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 999px 999px 0 0; background: var(--sage); opacity: .38; }
.arch-crest { position: absolute; z-index: 3; left: 50%; top: -50px; width: 118px; translate: -50% 0; }

/* monogram */
.monogram { position: relative; width: 150px; margin: 0 auto 1.6rem; }
.monogram img { width: 100%; animation: spin 90s linear infinite; }
.monogram span { position: absolute; inset: 0; display: grid; place-items: center; grid-auto-flow: column; justify-content: center; gap: .15em; font-family: var(--f-caps); font-size: 1.5rem; letter-spacing: .08em; color: #F0E6CD; }
.monogram i { font-family: var(--f-script); font-size: 1.5rem; color: var(--gold-l); }
.monogram--sm { width: 112px; }
.monogram--sm span { font-size: 1.1rem; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1.2s ease, transform 1.3s var(--ease), clip-path 1.4s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="zoom"] { transform: scale(.93); }
[data-reveal="fade"] { transform: none; }
[data-reveal="img"] { transform: none; clip-path: inset(0 0 100% 0); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }
.deco[data-reveal].is-in { opacity: var(--o, 1); }

/* ==========================================================
   COVER
   ========================================================== */
.cover { z-index: 1000; overflow: hidden; container-type: size; }
.cover-scene { position: absolute; inset: 0; overflow: hidden; background: var(--ivory); }
.cover-bg { position: absolute; inset: 0; background: url(../assets/textures/paper.svg); }
.cover-bg::after { content: ""; position: absolute; inset: 0; background: url(../assets/ornaments/damask.svg) 0 0 / 72px; opacity: .1; -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 100%); mask-image: radial-gradient(ellipse at center, transparent 30%, #000 100%); }
.cover-shadow { width: 130%; left: -15%; bottom: -8%; opacity: .55; }
.cover-fl { width: 76%; filter: drop-shadow(0 10px 12px rgba(62, 44, 32, .22)); z-index: 4; }
.cover-fl--tl { left: -13%; top: -7%; animation: sway 9s ease-in-out infinite; transform-origin: 0 0; }
.cover-fl--br { right: -13%; bottom: -7%; scale: -1 -1; animation: sway 11s ease-in-out infinite reverse; }
.cover-sprig { width: 56%; z-index: 2; opacity: .85; }
.cover-sprig--tr { right: -16%; top: 9%; rotate: 118deg; }
.cover-sprig--bl { left: -20%; bottom: 13%; rotate: -62deg; }

.cover-body {
  position: relative; z-index: 5; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1.5rem; text-align: center;
}
.cover-arch { width: min(56%, calc(37cqh * .75)); margin: 4.2rem 0 0; }
.cover-arch-bloom { width: 150%; left: -25%; bottom: -17%; z-index: 3; filter: drop-shadow(0 6px 8px rgba(62, 44, 32, .25)); }
.cover-names { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.9rem, 15cqw, 4rem); line-height: 1; color: var(--brown); margin-top: clamp(2rem, 5.5cqh, 3rem); }
.cover-names span { font-size: .6em; color: var(--gold); margin: 0 .08em; }
.cover-date { display: flex; align-items: center; gap: .9rem; margin-top: .7rem; font-family: var(--f-caps); font-size: .72rem; letter-spacing: .5em; text-indent: .5em; color: var(--gold-d); }
.cover-date i { width: 34px; height: 1px; background: var(--gold); }
.cover-guest { margin-top: clamp(.9rem, 3cqh, 1.7rem); display: flex; flex-direction: column; gap: .1rem; }
.cover-guest span { font-size: .92rem; font-style: italic; }
.cover-guest strong { font-size: 1.4rem; font-weight: 600; color: var(--brown); line-height: 1.2; }
.cover .btn-inv { margin-top: clamp(.9rem, 2.6cqh, 1.4rem); }

.cv-a { animation: cvIn 1.3s var(--ease) both; animation-delay: calc(.35s + var(--i) * .16s); }
@keyframes cvIn { from { opacity: 0; transform: translateY(20px); } }
@keyframes sway { 50% { transform: rotate(1.6deg); } }

/* door-opening transition */
.cover-half { position: absolute; inset: 0; transition: transform 1.9s cubic-bezier(.72, 0, .18, 1), filter 1.9s; will-change: transform; }
.cover-half * { animation: none !important; }
.cover-half--l { clip-path: inset(0 50% 0 0); }
.cover-half--r { clip-path: inset(0 0 0 50%); }
.cover-half::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; left: 50%; background: linear-gradient(transparent, var(--gold), transparent); opacity: 0; transition: opacity .4s; z-index: 9; }
.cover.is-seam .cover-half::after { opacity: 1; }
.cover.is-opening .cover-half--l { transform: translateX(-51%); filter: drop-shadow(14px 0 20px rgba(40, 30, 20, .5)); }
.cover.is-opening .cover-half--r { transform: translateX(51%); filter: drop-shadow(-14px 0 20px rgba(40, 30, 20, .5)); }
.cover.is-opening { pointer-events: none; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { min-height: max(var(--vh), 800px); padding: 4.4rem 2.5rem calc(4.6rem + var(--dome)); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-shadow { width: 120%; opacity: .6; }
.hero-shadow--l { left: -50%; top: 30%; rotate: 24deg; }
.hero-shadow--r { right: -52%; top: -8%; rotate: 200deg; }
.hero-side { top: 50%; font-family: var(--f-caps); font-size: .5rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-d); writing-mode: vertical-rl; white-space: nowrap; z-index: 2; }
.hero-side--l { left: 25px; rotate: 180deg; translate: 0 -50%; }
.hero-side--r { right: 25px; translate: 0 -50%; }
.hero-crest { width: 130px; margin-bottom: .8rem; }

.hero-stage { width: 100%; margin: 2.5rem 0 2.4rem; display: flex; justify-content: center; }
.hero-arch { width: min(66%, 292px); }
.kenburns { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translateY(-2%); } }
.hero-branch { z-index: 0; }
.hero-branch--tr { width: 66%; right: -17%; top: 1%; rotate: -42deg; }
.hero-branch--tl { width: 50%; left: -11%; top: 14%; scale: -1 1; rotate: 46deg; }
.hero-fl { z-index: 3; filter: drop-shadow(0 10px 10px rgba(62, 44, 32, .25)); }
.hero-fl--bl { width: 66%; left: -13%; bottom: -13%; scale: 1 -1; }
.hero-fl--r { width: 30%; right: -4%; bottom: -9%; rotate: 9deg; }

.hero-names { display: flex; flex-direction: column; width: 100%; font-weight: 400; }
.hn { font-family: var(--f-script); font-size: clamp(4rem, 21cqw, 5.8rem); line-height: .95; color: var(--brown); }
.hn--a { align-self: flex-start; margin-left: 5%; }
.hn--b { align-self: flex-end; margin-right: 5%; margin-top: -.12em; }
.hn-amp { font-family: var(--f-serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--gold); margin: -.35em 0 0; }

.hero-date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(100%, 300px); margin-top: 1.6rem; }
.hero-date span { font-family: var(--f-caps); font-size: .62rem; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--ink); padding: .55rem 0; border-block: 1px solid var(--gold); }
.hero-date strong { font-size: 3.2rem; font-weight: 500; line-height: 1; padding: 0 .9rem; color: var(--brown); font-variant-numeric: lining-nums; }
.hero-note { margin-top: 1.2rem; font-style: italic; font-size: 1rem; line-height: 1.5; }
.scroll-cue { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; font-family: var(--f-caps); font-size: .5rem; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--gold-d); }
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================
   QUOTE
   ========================================================== */
.quote { padding-inline: 2.7rem; padding-bottom: calc(6rem + var(--dome)); }
.quote-fl--br { width: 86%; right: -18%; bottom: -6%; scale: -1 -1; opacity: .5; }
.quote-fl--tl { width: 70%; left: -30%; top: 90px; rotate: 62deg; opacity: .3; }
.quote-main { margin: 0; font-size: clamp(1.75rem, 8.4cqw, 2.1rem); line-height: 1.22; color: #F3E9D2; }
.quote-main em { color: var(--gold-l); }
.quote-mark { display: block; font-size: 4.6rem; line-height: .7; height: 2.1rem; color: var(--gold); }
.quote .divider { margin-block: 1.8rem 1.5rem; }
.quote-verse { font-style: italic; font-size: 1.04rem; line-height: 1.6; opacity: .82; margin-bottom: 1.2rem; }

/* ==========================================================
   COUPLE
   ========================================================== */
.couple-shadow { width: 130%; left: -15%; top: 28%; opacity: .5; }
.person { display: flex; flex-direction: column; margin-top: 3.4rem; }
.person-photo { position: relative; width: 62%; z-index: 2; }
.person--bride .person-photo { margin-left: 3%; }
.person--groom .person-photo { margin-left: auto; margin-right: 3%; }
.oval { position: relative; }
.oval-img { margin: 5.2%; aspect-ratio: 10 / 13; border-radius: 50%; overflow: hidden; box-shadow: 0 22px 36px -22px rgba(62, 44, 32, .7); }
.oval-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.3) saturate(.75) contrast(.96); transition: transform 2s var(--ease); }
.person-photo:hover .oval-img img { transform: scale(1.05); }
.oval-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.person-tag { position: absolute; top: 50%; writing-mode: vertical-rl; font-family: var(--f-caps); font-size: .56rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-d); white-space: nowrap; display: flex; align-items: center; gap: .8rem; translate: 0 -50%; }
.person-tag::before, .person-tag::after { content: ""; width: 1px; height: 34px; background: var(--gold); }
.person--bride .person-tag { right: -2.3rem; }
.person--groom .person-tag { left: -2.3rem; rotate: 180deg; }
.person-fl { width: 96%; z-index: 3; filter: drop-shadow(0 8px 8px rgba(62, 44, 32, .22)); }
.person-fl--a { left: -30%; bottom: -14%; scale: 1 -1; }
.person-fl--b { right: -34%; top: -12%; scale: -1 1; }
.person-leaf { width: 84%; z-index: -1; }
.person-leaf--a { right: -52%; top: 8%; rotate: -58deg; }
.person-leaf--b { left: -52%; top: 8%; scale: -1 1; rotate: 58deg; }
.person-info { margin-top: -1.2rem; }
.person--bride .person-info { text-align: right; padding-right: 2%; }
.person--groom .person-info { text-align: left; padding-left: 2%; }
.person-ghost { position: absolute; top: -3.4rem; font-family: var(--f-script); font-size: 6.6rem; line-height: 1; color: rgba(184, 154, 98, .16); z-index: -1; pointer-events: none; }
.person--bride .person-ghost { right: -4%; }
.person--groom .person-ghost { left: -2%; }
.person-name { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.8rem, 13.5cqw, 3.5rem); line-height: 1.1; color: var(--brown); }
.person-role { font-family: var(--f-caps); font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-d); margin-top: .7rem; }
.person-parents { font-size: 1.14rem; line-height: 1.4; margin-top: .25rem; }
.person-ig { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; padding: .35rem .95rem; border: 1px solid rgba(184, 154, 98, .7); border-radius: 999px; font-size: .92rem; font-style: italic; transition: background .4s, color .4s; }
.person-ig:hover { background: var(--olive); color: var(--ivory); border-color: var(--olive); }
.couple-amp { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 2.6rem; }
.couple-amp img { width: 31%; opacity: .9; }
.couple-amp span { font-family: var(--f-script); font-size: 4.2rem; line-height: .9; color: var(--gold); }

/* ==========================================================
   EVENT
   ========================================================== */
.event-fl { width: 66%; filter: drop-shadow(0 8px 10px rgba(62, 44, 32, .2)); }
.event-fl--tr { right: -15%; top: -4%; scale: -1 1; }
.event-fl--bl { left: -15%; bottom: -3%; scale: 1 -1; }
.event-shadow { width: 140%; left: -20%; top: 34%; opacity: .55; }
.event-card {
  max-width: 350px; margin: 3rem auto 0; padding: 3rem 1.5rem 2.4rem;
  background: var(--ivory-2) url(../assets/textures/paper.svg);
  border-radius: 999px 999px 8px 8px;
  box-shadow: 0 30px 50px -30px rgba(62, 44, 32, .6);
}
.event-card::before, .event-card::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; }
.event-card::before { inset: 8px; border: 1px solid var(--gold); }
.event-card::after { inset: 13px; border: 1px solid rgba(184, 154, 98, .4); }
.event-medal { width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); box-shadow: 0 0 0 5px var(--ivory-2), 0 0 0 6px rgba(184, 154, 98, .45); }
.event-medal img { width: 40px; }
.event-title { font-family: var(--f-script); font-weight: 400; font-size: 3rem; line-height: 1.1; color: var(--brown); margin: .35rem 0 1rem; }
.event-date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.event-date span { font-family: var(--f-caps); font-size: .6rem; letter-spacing: .26em; line-height: 1.7; text-transform: uppercase; padding: .5rem 0; border-block: 1px solid var(--gold); min-height: 3.2rem; display: grid; place-items: center; }
.event-date strong { font-size: 4.2rem; font-weight: 500; line-height: 1; padding: 0 .8rem; color: var(--olive); font-variant-numeric: lining-nums; }
.event-rule { width: 150px; margin: 1.2rem auto .9rem; }
.event-time { font-family: var(--f-caps); font-size: .68rem; letter-spacing: .22em; color: var(--brown); }
.event-time i { color: var(--gold-d); margin-right: .3rem; }
.event-place { font-size: 1.5rem; font-style: italic; font-weight: 500; color: var(--brown); margin-top: .8rem; line-height: 1.2; }
.event-addr { font-size: 1rem; line-height: 1.45; margin: .3rem auto 1.3rem; max-width: 24ch; }
.event-join { height: 92px; display: grid; place-items: center; margin-bottom: -3rem; }
.event-join::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(transparent, var(--gold) 30%, var(--gold) 70%, transparent); }
.event-join img { width: 40px; position: relative; animation: spin 40s linear infinite; }

/* ==========================================================
   COUNTDOWN
   ========================================================== */
.countdown { padding-top: 6.4rem; }
.count-swag { width: 120%; left: -10%; top: -46px; opacity: .4; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; max-width: 350px; margin: 1.6rem auto 1.8rem; }
.count-unit { position: relative; padding: 1.7rem 0 .9rem; border: 1px solid rgba(212, 188, 138, .7); border-radius: 999px 999px 0 0; background: rgba(246, 240, 226, .07); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.count-unit::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(212, 188, 138, .28); border-radius: inherit; }
.count-unit strong { display: block; font-size: 2.3rem; font-weight: 500; line-height: 1; color: #F8F1DE; font-variant-numeric: lining-nums tabular-nums; }
.count-unit span { display: block; margin-top: .5rem; font-family: var(--f-caps); font-size: .48rem; letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; color: var(--gold-l); }
.count-note { font-family: var(--f-caps); font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 1.6rem; color: #E6DCC4; }

/* ==========================================================
   LOVE STORY
   ========================================================== */
.story-fl { width: 31%; right: -9%; top: -70px; scale: 1 -1; rotate: -10deg; }
.story-shadow { width: 130%; left: -55%; bottom: -4%; opacity: .5; rotate: 20deg; }
.timeline { list-style: none; padding: 0; margin: 3rem 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: repeating-linear-gradient(var(--gold) 0 5px, transparent 5px 10px); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; align-items: center; padding-bottom: 2.8rem; }
.tl-node { position: absolute; left: 50%; top: calc(50% - 1.4rem); width: 30px; translate: -50% -50%; z-index: 2; filter: drop-shadow(0 0 0 var(--ivory)); background: var(--ivory); border-radius: 50%; padding: 2px; }
.tl-photo { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 0 0 5px var(--ivory-2), 0 0 0 6px var(--gold), 0 24px 30px -18px rgba(62, 44, 32, .6); margin: 6px; }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.3) saturate(.8); }
.tl-text { text-align: left; }
.tl-item--alt .tl-photo { order: 2; }
.tl-item--alt .tl-text { text-align: right; }
.tl-year { display: block; font-style: italic; font-size: 3rem; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold-d); font-variant-numeric: lining-nums; }
.tl-text h3 { font-size: 1.28rem; font-style: italic; font-weight: 600; line-height: 1.2; color: var(--brown); margin: .3rem 0 .4rem; }
.tl-text p { font-size: .96rem; line-height: 1.45; }
.tl-end { width: 130px; margin: 0 auto; }

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery { padding-inline: 1.2rem; }
.gallery-leaf--a { width: 80%; right: -34%; top: 2%; rotate: 118deg; opacity: .8; }
.gallery-leaf--b { width: 80%; left: -40%; bottom: 3%; rotate: -64deg; opacity: .7; }
.album { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; margin-top: 2.6rem; }
.ph { position: relative; display: block; overflow: hidden; align-self: start; box-shadow: 0 22px 30px -20px rgba(62, 44, 32, .65); cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.28) saturate(.82) contrast(.97); transition: transform 1.6s var(--ease), filter 1s; }
.ph:hover img { transform: scale(1.06); filter: sepia(.1) saturate(.95); }
.ph--frame { overflow: visible; background: var(--ivory-2); padding: 8px 8px 0; z-index: 3; box-shadow: 0 24px 34px -18px rgba(62, 44, 32, .7), 0 0 0 1px rgba(184, 154, 98, .35); }
.ph--frame img { aspect-ratio: 4 / 3; height: auto; }
.ph--frame span { display: block; font-family: var(--f-script); font-size: 1.25rem; color: var(--ink); padding: .25rem 0 .35rem; line-height: 1.2; }
.ph--frame:hover img { transform: none; }
.ph--arch { border-radius: 999px 999px 0 0; box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--gold), 0 24px 30px -18px rgba(62, 44, 32, .6); }
.ph--1 { grid-column: 1 / 9; aspect-ratio: 4 / 5; }
.ph--2 { grid-column: 9 / 13; aspect-ratio: 3 / 5.2; margin-top: 3rem; }
.ph--3 { grid-column: 6 / 13; margin-top: -1.8rem; rotate: 3deg; }
.ph--4 { grid-column: 1 / 6; aspect-ratio: 3 / 4; margin-top: -3.4rem; }
.ph--5 { grid-column: 6 / 13; aspect-ratio: 1; margin-top: 1rem; }
.ph--6 { grid-column: 3 / 11; aspect-ratio: 4 / 5; margin-block: .6rem 1.2rem; }
.ph--7 { grid-column: 1 / 7; aspect-ratio: 1; }
.ph--8 { grid-column: 7 / 13; aspect-ratio: 1; margin-top: 2.2rem; }
.ph--9 { grid-column: 1 / 9; margin-top: -1.2rem; rotate: -3deg; }
.album-note { font-family: var(--f-script); font-size: 1.7rem; line-height: 1.05; color: var(--gold-d); align-self: center; }
.album-note--a { grid-column: 1 / 6; rotate: -7deg; margin-top: -1rem; }
.album-note--b { grid-column: 9 / 13; rotate: 6deg; }
.album-bloom { z-index: 4; filter: drop-shadow(0 8px 8px rgba(62, 44, 32, .25)); }
.album-bloom--a { width: 60%; left: -22%; top: 43.5%; }
.album-bloom--b { width: 18%; right: 2%; top: 41%; animation: spin 70s linear infinite; }

/* ==========================================================
   VIDEO
   ========================================================== */
.video { padding-bottom: calc(5.6rem + var(--dome)); }
.video-fl { width: 68%; opacity: .42; }
.video-fl--tl { left: -18%; top: -3%; }
.video-fl--br { right: -18%; bottom: -3%; scale: -1 -1; }
.film { display: block; width: 100%; margin-top: 2.4rem; padding: 14px; border: 0; background: none; cursor: pointer; }
.film-img { display: block; aspect-ratio: 16 / 11.5; overflow: hidden; box-shadow: 0 30px 44px -22px rgba(0, 0, 0, .8); }
.film-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.4) saturate(.7) brightness(.78); transition: transform 2.4s var(--ease); }
.film:hover .film-img img { transform: scale(1.06); }
.film-frame { position: absolute; inset: 0; border: 44px solid transparent; border-image: url(../assets/frames/border-flourish-light.svg) 130 / 44px stretch; }
.film-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-l); background: rgba(52, 53, 38, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #F6EDD7; font-size: 1rem; padding-left: 4px; }
.film-play::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(212, 188, 138, .5); animation: ring 3.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.film-cap { position: absolute; left: 0; right: 0; bottom: 30px; font-family: var(--f-caps); font-size: .5rem; letter-spacing: .28em; text-transform: uppercase; color: #F3EBD8; }
.video-note { margin-top: 1.4rem; font-style: italic; opacity: .82; }

/* ==========================================================
   LIVE STREAMING
   ========================================================== */
.live-leaf--l { width: 70%; left: -40%; top: 20%; rotate: 62deg; opacity: .85; }
.live-leaf--r { width: 60%; right: -34%; top: 34%; scale: -1 1; rotate: -56deg; }
.live-disc { width: 214px; height: 214px; margin: 0 auto 1.8rem; }
.live-ring { position: absolute; inset: 0; animation: spin 46s linear infinite; }
.live-ring text { font-family: var(--f-caps); font-size: 9.4px; fill: var(--gold-d); letter-spacing: 2px; }
.live-img { position: absolute; inset: 31px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--gold), 0 18px 30px -16px rgba(62, 44, 32, .7); }
.live-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.3) saturate(.8); }
.live-dot { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px; background: var(--deep); color: #F3EBD8; font-family: var(--f-caps); font-size: .5rem; letter-spacing: .3em; text-transform: uppercase; }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: #D07A5E; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.live-time { font-family: var(--f-caps); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; margin: 1.3rem 0 1.5rem; color: var(--brown); }

/* ==========================================================
   RSVP
   ========================================================== */
.rsvp { padding-top: 6.6rem; }
.rsvp-fl--tl { width: 56%; left: -15%; top: -3%; filter: drop-shadow(0 8px 10px rgba(62, 44, 32, .2)); }
.rsvp-shadow { width: 120%; right: -50%; bottom: -6%; opacity: .6; rotate: -18deg; }
.note-card { margin-top: 2.4rem; padding: 2.8rem 1.9rem 2.6rem; text-align: left; background: var(--ivory-2) url(../assets/textures/paper.svg); box-shadow: 0 30px 50px -30px rgba(62, 44, 32, .65); }
.note-card::before { content: ""; position: absolute; inset: 7px; pointer-events: none; border: 30px solid transparent; border-image: url(../assets/frames/border-ornate.svg) 50 / 30px stretch; }
.fld-label { display: block; font-family: var(--f-caps); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-d); margin-bottom: .35rem; }
.fld { width: 100%; padding: .4rem 0; border: 0; border-bottom: 1px solid rgba(91, 70, 54, .4); border-radius: 0; background: transparent; font-family: var(--f-serif); font-size: 1.2rem; color: var(--brown); outline: 0; transition: border-color .4s, box-shadow .4s; }
.fld::placeholder { color: rgba(91, 70, 54, .45); font-style: italic; }
.fld:focus { border-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.fld.is-invalid { border-color: #B4654A; box-shadow: 0 1px 0 #B4654A; }
textarea.fld { resize: none; line-height: 2rem; padding: 0; border: 0; background: repeating-linear-gradient(transparent 0 calc(2rem - 1px), rgba(91, 70, 54, .32) calc(2rem - 1px) 2rem); box-shadow: none !important; }
.choice { display: flex; gap: .45rem; }
.choice label { flex: 1; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; text-align: center; padding: .65rem .2rem; border: 1px solid rgba(184, 154, 98, .75); border-radius: 999px; font-family: var(--f-caps); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: background .4s, color .4s, border-color .4s; }
.choice span i { margin-right: .15rem; color: var(--gold-d); transition: color .4s; }
.choice input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--ivory); }
.choice input:checked + span i { color: var(--gold-l); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.stepper { display: flex; align-items: center; gap: .3rem; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; font-size: 1.3rem; line-height: 1; color: var(--brown); transition: background .3s, color .3s; }
.stepper button:hover { background: var(--olive); color: var(--ivory); border-color: var(--olive); }
.stepper output { width: 3rem; text-align: center; font-size: 1.8rem; font-weight: 500; line-height: 1; color: var(--brown); font-variant-numeric: lining-nums; }
.stepper em { margin-left: .4rem; }
.rsvp-done { text-align: center; padding: .6rem 0; animation: cvIn 1s var(--ease) both; }
.rsvp-done img { width: 92px; margin: 0 auto .6rem; }
.rsvp-done h3 { font-family: var(--f-script); font-weight: 400; font-size: 2.8rem; color: var(--brown); }
.rsvp-done p { max-width: 26ch; margin: .4rem auto 1rem; }
.link-btn { border: 0; background: none; font-style: italic; text-decoration: underline; text-underline-offset: 4px; color: var(--gold-d); }

/* ==========================================================
   WISHES
   ========================================================== */
.wishes { padding-top: 4.4rem; }
.wishes-leaf { width: 70%; right: -46%; top: -1%; scale: -1 1; rotate: -30deg; opacity: .85; }
.book { margin-top: 2.4rem; padding: 1.5rem 1.3rem .6rem; text-align: left; background: var(--ivory-2); border: 1px solid rgba(184, 154, 98, .7); outline: 1px solid rgba(184, 154, 98, .35); outline-offset: 5px; box-shadow: 0 30px 50px -30px rgba(62, 44, 32, .6); }
.book-head { display: flex; align-items: center; gap: .8rem; font-family: var(--f-caps); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-d); white-space: nowrap; }
.book-head::before, .book-head::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .6; }
.book-list { list-style: none; margin: .4rem 0 0; padding: 0 .5rem 0 0; max-height: 440px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.wish { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; padding: 1.15rem 0; border-bottom: 1px dashed rgba(184, 154, 98, .6); }
.wish:last-child { border-bottom: 0; }
.wish.is-new { animation: cvIn 1s var(--ease) both; }
.wish-init { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--cream); font-family: var(--f-script); font-size: 1.7rem; line-height: 1; color: var(--olive); box-shadow: 0 0 0 3px var(--ivory-2), 0 0 0 4px rgba(184, 154, 98, .35); }
.wish-name { font-size: 1.14rem; font-weight: 600; color: var(--brown); line-height: 1.3; }
.tag { display: inline-block; vertical-align: middle; margin-left: .3rem; padding: .18rem .55rem; border-radius: 999px; background: rgba(155, 165, 136, .3); color: #535A3E; font-family: var(--f-caps); font-size: .46rem; font-style: normal; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.tag--no { background: rgba(194, 142, 124, .28); color: #8E5646; }
.tag--maybe { background: rgba(184, 154, 98, .25); color: var(--gold-d); }
.wish-text { font-style: italic; line-height: 1.5; margin-top: .25rem; }
.wish-time { font-family: var(--f-caps); font-size: .5rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d); margin-top: .45rem; }

/* ==========================================================
   GIFT
   ========================================================== */
.gift { padding-bottom: calc(6rem + var(--dome)); padding-inline: 2rem; }
.gift-fl { width: 76%; right: -20%; top: -3%; scale: -1 1; opacity: .35; }
.bank {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  max-width: 336px; aspect-ratio: 1.586; margin: 2.4rem auto 0; padding: 1.15rem 1.3rem 1.05rem;
  border-radius: 16px; text-align: left; color: var(--brown);
  background: linear-gradient(128deg, #EBDDB8 0%, #C9AE7A 38%, #EAD9B0 62%, #B3955C 100%);
  box-shadow: 0 30px 44px -22px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.bank::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .34) 50%, transparent 62%); pointer-events: none; }
.bank > * { position: relative; z-index: 1; }
.bank-orn { position: absolute !important; z-index: 0 !important; width: 190px; right: -50px; top: -46px; opacity: .3; mix-blend-mode: multiply; }
.bank-top { display: flex; justify-content: space-between; align-items: center; }
.bank-chip { width: 44px; }
.bank-name { font-family: var(--f-caps); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; }
.bank-name b { font-size: 1.2rem; font-weight: 600; letter-spacing: .1em; }
.bank-label { margin-top: auto; font-family: var(--f-caps); font-size: .48rem; letter-spacing: .32em; text-transform: uppercase; opacity: .8; }
.bank-no { font-size: clamp(1.6rem, 8cqw, 1.95rem); font-weight: 600; letter-spacing: .1em; line-height: 1.2; font-variant-numeric: lining-nums; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.bank-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: .35rem; }
.bank-holder { font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.bank-holder span { display: block; font-family: var(--f-caps); font-size: .44rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.bank-copy { border: 0; border-radius: 999px; padding: .5rem .95rem; background: var(--brown); color: #F3EBD8; font-family: var(--f-caps); font-size: .52rem; letter-spacing: .22em; text-transform: uppercase; transition: background .3s; }
.bank-copy:hover { background: var(--deep); }
.send { margin-top: 2.8rem; }
.send-icon { width: 54px; height: 54px; margin: 0 auto .5rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-l); color: var(--gold-l); box-shadow: 0 0 0 5px var(--deep), 0 0 0 6px rgba(212, 188, 138, .35); }
.send h3 { font-family: var(--f-script); font-weight: 400; font-size: 2.5rem; color: #F3E9D2; }
.send p { max-width: 27ch; margin: .2rem auto 1.3rem; line-height: 1.5; opacity: .88; }

/* ==========================================================
   LOCATION
   ========================================================== */
.loc-shadow { width: 130%; left: -15%; top: 30%; opacity: .5; }
.map { width: 78%; margin: 5rem auto 0; }
.map-img { position: relative; aspect-ratio: 4 / 4.9; border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 0 0 7px var(--ivory-2), 0 0 0 8px var(--gold), 0 0 0 13px var(--ivory), 0 0 0 14px rgba(184, 154, 98, .45), 0 34px 44px -22px rgba(62, 44, 32, .6); }
.map-img > img { width: 100%; height: 100%; object-fit: cover; }
.map-pin { position: absolute; left: 50%; top: 50%; translate: -50% -90%; font-size: 2.5rem; line-height: 1; color: var(--brown); filter: drop-shadow(0 6px 5px rgba(62, 44, 32, .4)); animation: pin 3s ease-in-out infinite; }
@keyframes pin { 50% { transform: translateY(-7px); } }
.map-crest { position: absolute; width: 124px; left: 50%; top: -66px; translate: -50% 0; }
.map-venue { position: absolute; z-index: 3; width: 40%; aspect-ratio: 1; right: -11%; bottom: -8%; border-radius: 50%; overflow: hidden; border: 5px solid var(--ivory-2); box-shadow: 0 0 0 1px var(--gold), 0 18px 26px -14px rgba(62, 44, 32, .7); }
.map-venue img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.3) saturate(.8); }
.map-fl { width: 70%; left: -30%; bottom: -13%; scale: 1 -1; z-index: 4; filter: drop-shadow(0 8px 8px rgba(62, 44, 32, .22)); }
.loc-info { margin-top: 4rem; }
.loc-info h3 { font-family: var(--f-script); font-weight: 400; font-size: 2.7rem; line-height: 1.1; color: var(--brown); }
.loc-info p { margin: .5rem 0 1.5rem; line-height: 1.5; }

/* ==========================================================
   CLOSING + FOOTER
   ========================================================== */
.closing { min-height: max(var(--vh), 760px); padding: 6.4rem 2.4rem 5rem; display: flex; flex-direction: column; align-items: center; }
.closing .sec-photo img { object-position: 50% 100%; filter: sepia(.3) saturate(.8); }
.closing .sec-photo::after { background: linear-gradient(rgba(42, 43, 30, .92), rgba(42, 43, 30, .82) 56%, rgba(42, 43, 30, .1) 80%, rgba(42, 43, 30, .7)); }
.closing-swag { width: 124%; left: -12%; bottom: -34px; scale: 1 -1; opacity: .7; }
.closing-crest { width: 140px; margin: 0 auto .4rem; }
.closing-title { font-family: var(--f-script); font-weight: 400; font-size: clamp(4.4rem, 23cqw, 6rem); line-height: 1; color: #F8F0DC; }
.closing-sub { font-style: italic; font-size: 1.5rem; color: var(--gold-l); margin-top: .2rem; }
.closing-text { max-width: 29ch; margin: 1.2rem auto 0; line-height: 1.55; opacity: .88; }
.closing-sign { margin-top: 1.8rem; }
.closing-names { font-family: var(--f-script); font-size: 2.9rem; line-height: 1.1; color: #F8F0DC; }
.closing-names span { color: var(--gold-l); font-size: .7em; }
.closing-date { font-family: var(--f-caps); font-size: .68rem; letter-spacing: .55em; text-indent: .55em; color: #F3E9D2; margin-top: .5rem; }

.footer { position: relative; overflow: hidden; padding: 4.6rem var(--pad) 7rem; text-align: center; background: #2A2B1E; color: #E6DCC4; }
.footer > *:not(.deco) { position: relative; }
.footer-fl { width: 120%; left: -10%; top: -44px; opacity: .3; }
.footer .monogram { margin-bottom: 1rem; }
.footer-names { font-family: var(--f-script); font-size: 2.7rem; line-height: 1.1; color: #F3E9D2; }
.footer-date { font-family: var(--f-caps); font-size: .64rem; letter-spacing: .45em; text-indent: .45em; text-transform: uppercase; color: var(--gold-l); margin: .5rem 0 1.4rem; }
.footer .divider { width: 190px; opacity: .8; }
.footer-credit { margin-top: 1.3rem; font-size: .86rem; font-style: italic; opacity: .5; }

/* ==========================================================
   FLOATING UI
   ========================================================== */
.ui { z-index: 800; pointer-events: none; opacity: 0; transition: opacity 1.2s ease .8s; overflow: hidden; }
body.is-open .ui { opacity: 1; }
.ui > *:not(.leaves) { pointer-events: auto; }
.dock { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: .15rem; padding: .34rem .45rem; border-radius: 999px; background: rgba(52, 53, 38, .9); border: 1px solid rgba(212, 188, 138, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7); }
.dock a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #D6CAAC; transition: background .4s, color .4s; }
.dock a:hover { color: #fff; }
.dock a.is-active { background: var(--gold); color: var(--deep); }
.fab { position: absolute; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--ivory-2); color: var(--brown); font-size: .9rem; box-shadow: 0 0 0 4px rgba(251, 247, 236, .5), 0 14px 22px -10px rgba(40, 30, 20, .7); transition: opacity .5s, transform .5s var(--ease), visibility .5s; }
.fab--music { bottom: 76px; }
.fab--music.is-playing i { animation: spin 5s linear infinite; }
.fab--music:not(.is-playing)::after { content: ""; position: absolute; width: 22px; height: 1px; background: var(--brown); rotate: -45deg; }
.fab--top { bottom: 132px; opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab--top.is-show { opacity: 1; visibility: visible; transform: none; }
.toast-inv { position: absolute; left: 50%; bottom: 78px; translate: -50% 0; max-width: 78%; padding: .55rem 1.2rem; border-radius: 999px; background: var(--deep); border: 1px solid rgba(212, 188, 138, .6); color: #F3EBD8; font-style: italic; font-size: 1rem; line-height: 1.3; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none !important; }
.toast-inv.is-show { opacity: 1; transform: none; }

.leaves { position: absolute; inset: 0; }
.leaves img { position: absolute; top: -50px; width: 26px; opacity: 0; }
body.is-open .leaves img { animation: fall 16s linear infinite; }
.leaves img:nth-child(1) { left: 8%; animation-duration: 17s !important; }
.leaves img:nth-child(2) { left: 28%; width: 20px; animation-duration: 22s !important; animation-delay: 4s !important; }
.leaves img:nth-child(3) { left: 52%; animation-duration: 19s !important; animation-delay: 9s !important; }
.leaves img:nth-child(4) { left: 70%; width: 22px; animation-duration: 24s !important; animation-delay: 2s !important; }
.leaves img:nth-child(5) { left: 86%; animation-duration: 20s !important; animation-delay: 12s !important; }
.leaves img:nth-child(6) { left: 40%; width: 18px; animation-duration: 26s !important; animation-delay: 15s !important; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(20deg); opacity: 0; }
  8% { opacity: .55; }
  50% { transform: translate3d(46px, 55vh, 0) rotate(190deg); }
  92% { opacity: .55; }
  100% { transform: translate3d(-10px, 112vh, 0) rotate(380deg); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.grain { position: fixed; inset: 0; z-index: 3000; pointer-events: none; background: url(../assets/textures/grain.svg) 0 0 / 300px; opacity: .28; mix-blend-mode: multiply; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(34, 34, 24, .95); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-fig { margin: 0; text-align: center; transform: scale(.96); transition: transform .8s var(--ease); }
.lightbox.is-open .lb-fig { transform: none; }
.lb-media img { max-width: min(88vw, 900px); max-height: 74vh; border: 8px solid var(--ivory-2); box-shadow: 0 0 0 1px var(--gold), 0 40px 60px -30px #000; }
.lb-media iframe { display: block; width: min(92vw, 960px); aspect-ratio: 16 / 9; border: 8px solid var(--ivory-2); background: #000; }
.lb-fig figcaption { margin-top: 1rem; color: #F3EBD8; }
.lb-cap { display: block; font-family: var(--f-script); font-size: 1.9rem; line-height: 1.1; }
.lb-count { display: block; margin-top: .3rem; font-family: var(--f-caps); font-size: .55rem; letter-spacing: .4em; color: var(--gold-l); }
.lb-btn { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-l); background: rgba(52, 53, 38, .7); color: #F3EBD8; display: grid; place-items: center; transition: background .3s; }
.lb-btn:hover { background: var(--gold); color: var(--deep); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox.is-video .lb-prev, .lightbox.is-video .lb-next, .lightbox.is-video figcaption { display: none; }

/* ==========================================================
   DESKTOP SIDE PANEL
   ========================================================== */
.side-panel { position: fixed; left: 0; top: 0; bottom: 0; width: calc(100% - var(--col)); flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #F3EBD8; overflow: hidden; background: var(--deep); }
.side-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) saturate(.8); animation: kenburns 30s ease-in-out infinite alternate; }
.side-panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(42, 43, 30, .66), rgba(42, 43, 30, .88)); }
.side-panel .frame-flourish { inset: 22px; border-width: 84px; border-image-width: 84px; z-index: 2; }
.side-body { position: relative; z-index: 3; }
.side-crest { width: 170px; margin: 0 auto 1.2rem; }
.side-names { font-family: var(--f-script); font-size: clamp(4.4rem, 7.4vw, 8.4rem); line-height: 1.05; margin: .5rem 0 .2rem; text-shadow: 0 6px 30px rgba(0, 0, 0, .4); }
.side-names span { color: var(--gold-l); font-size: .6em; }
.side-flourish { width: 260px; margin: 0 auto 1rem; }
.side-date { font-family: var(--f-caps); font-size: .78rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-l); }
.side-quote { position: absolute; z-index: 3; bottom: 62px; left: 0; right: 0; font-style: italic; font-size: 1.15rem; opacity: .85; }

/* ---------- small phones ---------- */
@media (max-width: 374px) {
  :root { --pad: 1.3rem; }
  .hero { padding-inline: 2.2rem; }
  .quote { padding-inline: 2.3rem; }
  .note-card { padding-inline: 1.6rem; }
  .gift { padding-inline: 1.5rem; }
  .tl-item { gap: 0 1.7rem; }
  .tl-year { font-size: 2.6rem; }
  .dock a { width: 35px; height: 35px; }
}

/* screenshot / review helper: index.html?shot=1 */
.is-shot .ui, .is-shot .grain { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  [data-reveal] { transition-duration: .01s; }
}
