:root {
  --wine: #741d27;
  --wine-deep: #3b1219;
  --gold: #d4b16a;
  --gold-light: #f2dca7;
  --ink: #291e1d;
  --paper: #f7f3eb;
  --line: #ddd0bd;
  --serif: "Playfair Display", Georgia, serif;
  --script: "Cormorant Garamond", Georgia, serif;
  --calligraphy: "Great Vibes", "Brush Script MT", cursive;
  --sans: "DM Sans", Arial, sans-serif;
  --story-serif: "Cormorant", Georgia, serif;
  --story-name: "Cormorant Infant", Georgia, serif;
  --story-script: "Pinyon Script", "Great Vibes", cursive;
  --nav-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }
::selection { background: #d6ad75; color: #32131a; }
section[id] { scroll-margin-top: 74px; }

/* Invitation gate: an illustrated poster with live, personalized lettering. */
.cover {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  isolation: isolate;
  perspective: 1200px;
  color: #fff5df;
  background: radial-gradient(circle at 50% 40%, #6b2228, #23080e 78%);
  transition: opacity 1.25s cubic-bezier(.2,.68,.2,1) .08s;
}
.cover-poster {
  position: relative;
  width: min(100%, 66.67vh, 680px);
  width: min(100%, 66.67svh, 680px);
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #3b0710;
  box-shadow: 0 0 80px rgba(11,2,6,.55);
}
.cover-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  animation: cover-art-arrive 1.1s ease-out both;
}
.cover-gleam {
  position: absolute;
  z-index: 1;
  top: 5%;
  left: 23%;
  width: 54%;
  height: 41%;
  pointer-events: none;
  background: radial-gradient(ellipse at 61% 24%, rgba(255,228,161,.25), transparent 52%);
  opacity: .4;
  animation: cover-gleam-breathe 6s ease-in-out 1s infinite alternate;
}
.cover-card {
  position: absolute;
  z-index: 4;
  top: 56%;
  bottom: 16%;
  left: 8%;
  right: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.cover-card.has-personal-guest { bottom: 12%; }
.cover-card.has-long-guest { bottom: 9%; }
.cover-card.has-very-long-guest { top: 55%; bottom: 7%; }
.eyebrow { margin: 0 0 1.15rem; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.cover h1, .hero h1, .closing h2 { font-family: var(--serif); font-weight: 400; line-height: 1.07; }
.cover h1 {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  font-size: clamp(2.4rem, 6.5vh, 5.8rem);
  font-size: clamp(2.4rem, 6.5svh, 5.8rem);
  line-height: 1;
  letter-spacing: .01em;
  font-weight: 600;
  color: #f5d48f;
  text-shadow: 0 1px 0 #fff0c2, 0 3px 0 #a96936, 0 5px 18px rgba(31, 5, 9, .75);
}
.cover-initial { display: inline-block; animation: initial-unveil 1s cubic-bezier(.16,.85,.24,1) .55s both; }
.cover-initial:last-child { animation-delay: .75s; }
.name-amp { position: relative; display: inline-block; margin: 0 .06em; color: var(--gold-light); font: italic 500 .96em/1 var(--script); transform: translateY(.06em) rotate(-7deg); }
.cover .name-amp { margin: 0 .03em; color: #f5d48f; font-size: .86em; }
.name-amp::after { content: ""; position: absolute; left: 19%; right: 5%; bottom: .04em; height: .06em; border-radius: 50%; background: currentColor; opacity: .58; transform: rotate(-8deg); }
.cover-divider { display: flex; align-items: center; justify-content: center; gap: .65em; width: 58%; margin: -.1svh 0 .1svh; color: #ebc77e; font-size: clamp(.75rem, 1.8vh, 1.4rem); font-size: clamp(.75rem, 1.8svh, 1.4rem); }
.cover-divider i { flex: 1; height: 1px; background: rgba(243, 211, 150, .85); transform: scaleX(0); transform-origin: right; animation: frame-horizontal .7s ease .9s forwards; }
.cover-divider i:last-child { transform-origin: left; }
.cover-divider span { animation: cover-item-in .6s ease .95s both; }
.guest-label, .guest-name { color: #fff; font: 400 clamp(1.2rem, 2.6vh, 2.4rem)/1.15 var(--calligraphy); font: 400 clamp(1.2rem, 2.6svh, 2.4rem)/1.15 var(--calligraphy); letter-spacing: .01em; text-shadow: 0 2px 7px rgba(22, 3, 8, .72); }
.guest-label { margin: auto 0 0; }
.guest-name { max-width: 100%; margin: .25rem 0 0; text-transform: none; overflow-wrap: anywhere; text-wrap: balance; }
.guest-recipient { max-width: 100%; margin: .2rem 0 0; color: #ffe6b2; font: 600 clamp(1rem, 2.35vh, 1.75rem)/1.25 var(--sans); font: 600 clamp(1rem, 2.35svh, 1.75rem)/1.25 var(--sans); letter-spacing: .015em; overflow-wrap: anywhere; text-wrap: balance; text-shadow: 0 2px 6px rgba(22, 3, 8, .72); }
.guest-recipient.long { font-size: clamp(1rem, 2.1vh, 1.5rem); font-size: clamp(1rem, 2.1svh, 1.5rem); }
.guest-recipient.very-long { font-size: clamp(1rem, 1.9vh, 1.3rem); font-size: clamp(1rem, 1.9svh, 1.3rem); }
.guest-place { margin: .25rem 0 0; color: #fff; font: 400 clamp(1.2rem, 2.6vh, 2.4rem)/1.15 var(--calligraphy); font: 400 clamp(1.2rem, 2.6svh, 2.4rem)/1.15 var(--calligraphy); letter-spacing: .01em; text-shadow: 0 2px 8px rgba(22, 3, 8, .72); }
.button { border: 0; padding: .88rem 1.35rem; font-weight: 700; transition: transform .3s ease, background .3s ease, box-shadow .3s ease; }
.button:hover { transform: translateY(-3px); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.button-gold {
  position: relative;
  width: min(76%, 28vh);
  width: min(76%, 28svh);
  min-height: clamp(40px, 5.4vh, 58px);
  min-height: clamp(40px, 5.4svh, 58px);
  padding: .35rem 1rem;
  overflow: hidden;
  border: 2px solid #f8d799;
  border-radius: 15px;
  background: linear-gradient(160deg, #ffe8b0 0%, #e9b968 48%, #f8d797 100%);
  color: #410b17;
  box-shadow: inset 0 0 0 2px #6c2920, inset 0 0 0 4px rgba(255,236,190,.55), 0 7px 18px rgba(14,3,7,.32);
  font: 600 clamp(.88rem, 2vh, 1.45rem)/1.1 var(--serif);
  font: 600 clamp(.88rem, 2svh, 1.45rem)/1.1 var(--serif);
  white-space: nowrap;
  margin-top: clamp(.75rem, 1.7vh, 1.3rem);
  margin-top: clamp(.75rem, 1.7svh, 1.3rem);
  animation: cover-item-in .75s cubic-bezier(.2,.72,.2,1) 1.15s both;
}
.button-gold::after { content: ""; position: absolute; inset: 0; transform: translateX(-145%) skewX(-25deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.47), transparent); animation: button-glint 6.5s ease-in-out 2s infinite; pointer-events: none; }
.button-gold:hover { box-shadow: inset 0 0 0 2px #6c2920, inset 0 0 0 4px rgba(255,236,190,.55), 0 9px 24px rgba(14,3,7,.44); }
.button-gold span { margin-left: .5em; font-size: 1.15em; }
.cover-card > .guest-label { animation: cover-item-in .7s ease .82s both; }
.cover-card > .guest-name { animation: cover-item-in .7s ease .93s both; }
.cover-card > .guest-recipient { animation: cover-item-in .7s ease .98s both; }
.cover-card > .guest-place { animation: cover-item-in .7s ease 1.04s both; }
.cover-flare { position: absolute; z-index: 5; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 51%, rgba(255,231,172,.37), transparent 67%); }
.cover-closing { opacity: 0; pointer-events: none; }
.cover-closing .cover-flare { animation: opening-flare 1s ease-out both; }
.cover-closing .cover-poster { animation: poster-recede 1.12s cubic-bezier(.2,.72,.2,1) both; }
.invitation-entering { perspective: 1200px; }

@keyframes cover-art-arrive { from { opacity: .4; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes frame-horizontal { to { transform: scaleX(1); } }
@keyframes cover-gleam-breathe { from { opacity: .25; } to { opacity: .7; } }
@keyframes initial-unveil { from { transform: translate3d(0,.25em,0) scale(.92); } to { transform: none; } }
@keyframes shine-sweep { 0% { opacity: 0; transform: translate3d(-120%,0,0); } 30% { opacity: .8; } 100% { opacity: 0; transform: translate3d(120%,0,0); } }
@keyframes button-glint { 0%,10% { transform: translateX(-145%) skewX(-25deg); } 24%,100% { transform: translateX(145%) skewX(-25deg); } }
@keyframes opening-flare { 0% { opacity: 0; } 45% { opacity: .3; } 100% { opacity: 0; } }
@keyframes cover-item-in { from { transform: translate3d(0,10px,0); } to { transform: none; } }
@keyframes poster-recede { to { transform: translate3d(0,-18px,-160px) rotateX(-4deg) scale(.96); } }

/* Music and navigation */
.music-player { position: fixed; width: 1px; height: 1px; left: -8px; bottom: 0; opacity: 0; pointer-events: none; border: 0; }
.music-toggle { position: fixed; z-index: 30; right: 1.3rem; bottom: 1.2rem; display: flex; align-items: center; gap: .55rem; padding: .72rem 1rem; border: 1px solid rgba(212,177,106,.75); border-radius: 999px; background: rgba(66,21,26,.95); color: #f3ddb1; box-shadow: 0 8px 26px rgba(30,12,13,.2); }
.music-toggle:hover { background: #5a1b24; }
.music-toggle span { font-size: .78rem; font-weight: 600; }
.scroll-progress { position: fixed; z-index: 80; inset: 0 0 auto; height: 3px; pointer-events: none; background: linear-gradient(90deg,#b78042,#f1d28e,#b78042); transform: scaleX(0); transform-origin: left center; box-shadow: 0 1px 10px rgba(98,46,21,.26); }
@supports (animation-timeline: scroll(root block)) {
  .invitation-open .scroll-progress {
    animation: invitation-progress auto linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes invitation-progress { to { transform: scaleX(1); } }

.topbar { position: sticky; z-index: 20; top: 0; height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 clamp(1.2rem,7vw,7rem); background: rgba(247,243,235,.97); border-bottom: 1px solid rgba(159,125,82,.18); }
.brand { white-space: nowrap; text-decoration: none; color: var(--wine-deep); font: 600 1.95rem/1 var(--story-name); letter-spacing: .01em; }
.brand-amp { position: relative; display: inline-block; margin: 0 .03em; color: #ac7937; font-style: italic; font-size: .88em; transform: translateY(.07em) rotate(-7deg); }
.brand-amp::after { content: ""; position: absolute; left: 20%; right: 0; bottom: -.03em; border-bottom: 1px solid currentColor; transform: rotate(-8deg); }
.nav-links { display: flex; gap: clamp(1rem,3vw,2.3rem); }
.nav-links a, .nav-date { white-space: nowrap; text-decoration: none; font-size: .84rem; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.3rem; border-bottom: 1px solid var(--wine); transition: right .3s ease; }
.nav-links a:hover::after { right: 0; }
.nav-date { color: var(--wine); letter-spacing: .1em; }

/* Original full-bleed invitation layout, with depth confined to its layers. */
.hero { position: relative; isolation: isolate; min-height: calc(100vh - var(--nav-height)); min-height: calc(100svh - var(--nav-height)); overflow: hidden; perspective: 1100px; color: #fff8ed; background: #391119; }
.hero-image { position: absolute; z-index: -2; inset: -8%; background: url("assets/minang-ceremony.webp") center 57%/cover no-repeat; transform: translate3d(0,0,-90px) scale(1.2); }
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(38,7,17,.66),rgba(38,7,17,.26) 58%,rgba(38,7,17,.12)),linear-gradient(0deg,rgba(34,5,14,.62),transparent 34%,rgba(34,5,14,.12)); }
.hero-portal { position: absolute; z-index: 5; inset: 0; display: none; pointer-events: none; perspective: 900px; }
.hero-portal span { position: absolute; top: 0; bottom: 0; width: 50.4%; background: repeating-linear-gradient(45deg,transparent 0 29px,rgba(237,184,99,.1) 30px 31px,transparent 32px 60px),linear-gradient(90deg,#3b111a,#692633 52%,#310c16); backface-visibility: hidden; box-shadow: 0 0 42px rgba(15,2,8,.4); }
.hero-portal span::before { content: ""; position: absolute; inset: 12px; border: 2px solid rgba(238,194,121,.7); box-shadow: inset 0 0 0 5px rgba(58,16,25,.75),inset 0 0 0 6px rgba(238,194,121,.35); }
.hero-portal-left { left: 0; transform-origin: left center; border-right: 3px solid #e6bd77; }
.hero-portal-right { right: 0; transform-origin: right center; border-left: 3px solid #e6bd77; }
.invitation-entering .hero-portal { display: block; }
.invitation-entering .hero-portal-left { animation: portal-left-open 1.38s cubic-bezier(.2,.72,.16,1) both; }
.invitation-entering .hero-portal-right { animation: portal-right-open 1.38s cubic-bezier(.2,.72,.16,1) both; }
@keyframes portal-left-open { 0%,22% { transform: rotateY(0); opacity: 1; } 72% { opacity: 1; } 100% { transform: rotateY(-105deg); opacity: 0; } }
@keyframes portal-right-open { 0%,22% { transform: rotateY(0); opacity: 1; } 72% { opacity: 1; } 100% { transform: rotateY(105deg); opacity: 0; } }
.hero-content { position: relative; z-index: 1; width: min(100%,760px); padding: clamp(5rem,11vh,9rem) clamp(2rem,7vw,7rem) 8rem; text-shadow: 0 3px 22px rgba(23,4,12,.46); }
.hero h1 { margin: 0; font: 600 clamp(5rem,10vw,9.5rem)/.82 var(--story-name); letter-spacing: .01em; }
.hero h1 span { display: inline-block; margin-left: .12em; color: #e7bf80; font-size: .77em; }
.hero-content > p { max-width: 540px; margin: 0 0 3.5rem; font: 500 clamp(1.5rem,2.5vw,2rem)/1.28 var(--story-serif); }
.hero-content > a { display: inline-flex; align-items: center; gap: .7rem; border-bottom: 1px solid rgba(255,247,228,.75); padding-bottom: .3rem; color: #fff8ed; font-weight: 700; text-decoration: none; }
.hero-content > a span { font-size: 1.4rem; line-height: 1; }
.hero-scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: #f9dfad; font-size: .65rem; font-weight: 700; letter-spacing: .2em; white-space: nowrap; }
.invitation-entering .hero-image { animation: hero-depth-arrive 1.2s cubic-bezier(.16,.75,.18,1) both; }
.invitation-entering .hero-content { animation: hero-copy-arrive 1.15s cubic-bezier(.16,.75,.18,1) .12s both; }
@keyframes hero-depth-arrive { from { opacity: .48; transform: translate3d(0,42px,-270px) scale(1.38) rotateX(3deg); } to { opacity: 1; transform: translate3d(0,0,-90px) scale(1.2); } }
@keyframes hero-copy-arrive { from { opacity: 0; transform: translate3d(0,58px,-230px) rotateX(11deg); } to { opacity: 1; transform: none; } }

/* Shared sections and one-time choreography. Reading surfaces stay still while scrolling. */
.section { padding: clamp(4.5rem,9vw,8rem) max(1.2rem,calc(50vw - 550px)); }
.intro,.countdown-band,.events,.wishes,.closing { perspective: 1200px; }
.section-heading { max-width: 850px; margin: 0 auto 3rem; text-align: center; }
.section-heading::before { content: ""; display: block; width: 140px; height: 30px; margin: 0 auto 1.7rem; background: url("assets/gonjong-ornament.svg") center/contain no-repeat; opacity: .88; }
.events .section-heading::before,.wishes .section-heading::before { display: none; }
.section-roof { display: block; width: min(270px,70vw); height: 58px; margin: 0 auto 1.2rem; overflow: visible; fill: none; stroke: #aa7b3d; stroke-width: 2.4; stroke-linecap: round; }
.section-roof path { stroke-dasharray: 600; stroke-dashoffset: 0; }
.motion-ready .section-roof path { stroke-dashoffset: 600; transition: stroke-dashoffset 1.5s cubic-bezier(.25,.7,.2,1) .12s; }
.motion-ready .section-heading.is-visible .section-roof path { stroke-dashoffset: 0; }
.section-heading::after { content: ""; display: block; width: 0; height: 1px; margin: 2rem auto 0; background: var(--gold); transition: width 1.1s cubic-bezier(.2,.72,.2,1) .28s; }
.section-heading.is-visible::after { width: 76px; }
.section-heading .eyebrow, .wishes .eyebrow { color: var(--wine); }
.section-heading h2 { margin: 0; font: 600 clamp(2.4rem,4.3vw,3.55rem)/1.08 var(--story-name); }
.motion-ready [data-reveal] { transition: opacity .85s cubic-bezier(.2,.72,.2,1), transform .85s cubic-bezier(.2,.72,.2,1); transition-delay: var(--reveal-delay,0ms); }
.motion-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translate3d(0,30px,0); }
.motion-ready .event-depth:first-child .event-card[data-reveal]:not(.is-visible) { transform: translate3d(0,22px,-65px) rotateY(-4deg); }
.motion-ready .event-depth:last-child .event-card[data-reveal]:not(.is-visible) { transform: translate3d(0,22px,-65px) rotateY(4deg); }
.motion-ready .countdown > div[data-reveal]:not(.is-visible) { transform: translate3d(0,18px,0) scale(.85); }
.motion-ready .wishes-form[data-reveal]:not(.is-visible) { transform: translate3d(-25px,24px,0); }
.motion-ready .wishes-list[data-reveal]:not(.is-visible) { transform: translate3d(25px,24px,0); }
.motion-ready .section-heading::before { opacity: 0; transform: translate3d(0,12px,0) scale(.82); transition: opacity .8s ease .15s,transform .8s cubic-bezier(.2,.72,.2,1) .15s; }
.motion-ready .section-heading.is-visible::before { opacity: .88; transform: none; }
.motion-ready .section-heading > * { opacity: 0; transform: translate3d(0,20px,0); transition: opacity .75s ease,transform .85s cubic-bezier(.2,.72,.2,1); }
.motion-ready .section-heading.is-visible > * { opacity: 1; transform: none; }
.motion-ready .section-heading.is-visible > .eyebrow { transition-delay: .12s; }
.motion-ready .section-heading.is-visible > h2 { transition-delay: .22s; }
.motion-ready .section-heading.is-visible > p:last-child:not(.eyebrow) { transition-delay: .35s; }

/* One-time color and gold-line transition between chapters. */
.intro,.events,.wishes { position: relative; isolation: isolate; }
.intro::after,.events::after,.wishes::after { content: ""; position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 8px; transform-origin: center; background: repeating-linear-gradient(45deg,transparent 0 7px,rgba(96,43,26,.45) 8px 9px,transparent 10px 16px),linear-gradient(90deg,transparent,#c49a55 22%,#f1d49b 50%,#c49a55 78%,transparent); transition: transform 1.25s cubic-bezier(.2,.72,.2,1); pointer-events: none; }
.motion-ready .intro::after,.motion-ready .events::after,.motion-ready .wishes::after { transform: scaleX(0); }
.motion-ready .intro.section-visible::after,.motion-ready .events.section-visible::after,.motion-ready .wishes.section-visible::after { transform: scaleX(1); }

/* Couple */
.intro { overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 25%,#fffdf7 0%,#faf4e9 58%,#eee2d1 100%); }
.intro::before { content: ""; position: absolute; top: -150px; right: -170px; width: 380px; height: 380px; border: 1px solid rgba(174,133,79,.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(174,133,79,.035),0 0 0 90px rgba(174,133,79,.028); transform: translateZ(-140px); pointer-events: none; }
.intro .eyebrow { color: var(--wine); }
.quote-depth { max-width: 690px; margin: 0 auto; }
.quote { max-width: 690px; margin: 0 auto; font: 500 clamp(1.75rem,3.5vw,2.6rem)/1.22 var(--story-serif); }
.verse { margin: .7rem 0 2rem; color: #76675f; font: 500 1.1rem var(--story-serif); }
.intro-copy { max-width: 560px; margin: 0 auto; color: #625653; font: 500 clamp(1.25rem,2vw,1.55rem)/1.38 var(--story-serif); }
.couple-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem,3vw,2rem); max-width: 940px; margin: 4.5rem auto 0; perspective: 1200px; }
.person-depth { min-width: 0; }
.person-card { position: relative; min-width: 0; padding: clamp(1rem,2vw,1.7rem); border: 1px solid #d9bd8f; background: linear-gradient(145deg,#fffdfa,#f4e9d7); box-shadow: 0 18px 44px rgba(74,39,31,.1),0 30px 64px rgba(74,39,31,.09); text-align: center; backface-visibility: hidden; transform-style: preserve-3d; }
.person-card::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(171,118,58,.28); pointer-events: none; }
.person-art { position: relative; height: clamp(270px,36vw,420px); overflow: hidden; background: radial-gradient(circle at 50% 28%,#fbf4e7,#e4cbaa 70%,#8b564f); }
.person-card-groom .person-art { background: radial-gradient(circle at 50% 28%,#faf0dc,#cfb99b 70%,#70504b); }
.person-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 12px 15px rgba(44,16,16,.17)); }
.motion-ready .person-card[data-reveal] .person-art img { transform: translate3d(0,8px,0) scale(.97); transition: transform 1.15s cubic-bezier(.2,.72,.2,1) .12s; }
.motion-ready .person-card[data-reveal].is-visible .person-art img { transform: none; }
.person-role { margin: 1.5rem 0 .45rem; color: #8a4a34; font: 700 .7rem/1.3 var(--sans); letter-spacing: .22em; }
.person-card h2 { max-width: 100%; margin: 0 auto; color: #4a2226; font: 600 clamp(1.55rem,2.55vw,1.9rem)/1.08 var(--story-name); letter-spacing: -.025em; text-wrap: balance; }
.person-card h2 span { font: inherit; white-space: nowrap; }
.person-card > p:last-child { max-width: 340px; margin: .85rem auto .5rem; color: #62504a; font: 500 clamp(.98rem,1.3vw,1.08rem)/1.35 var(--story-serif); }
.motion-ready .person-card[data-reveal]:not(.is-visible) { opacity: 0; transform: translate3d(0,24px,-70px) rotateY(-4deg); }
.motion-ready .person-card-groom[data-reveal]:not(.is-visible) { transform: translate3d(0,24px,-70px) rotateY(4deg); }
.motion-ready .person-card[data-reveal].is-visible { opacity: 1; transform: none; }
.motion-ready .person-card[data-reveal] { transition-duration: 1.1s; }
/* Rumah Gadang vignette with quiet side framing. */
.heritage { position: relative; min-height: 560px; overflow: hidden; isolation: isolate; display: flex; align-items: center; padding: 4.5rem max(1.2rem,calc(50vw - 550px)); perspective: 1100px; color: #fff6e9; background: linear-gradient(115deg,#31131b 0%,#57242a 58%,#34151d 100%); }
.heritage::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 78% 38%,rgba(218,158,89,.18),transparent 38%); }
.heritage::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(225,186,116,.24); pointer-events: none; }
.heritage-aura { position: absolute; right: -8%; top: -50%; width: 60%; aspect-ratio: 1; border: 1px solid rgba(223,178,107,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(223,178,107,.035),0 0 0 110px rgba(223,178,107,.02); pointer-events: none; }
.motion-ready .heritage-aura { opacity: 0; transform: scale(.7); transition: opacity 1.2s ease .15s,transform 1.3s cubic-bezier(.2,.72,.2,1) .15s; }
.motion-ready .heritage.is-visible .heritage-aura { opacity: 1; transform: none; }
.heritage-stage { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.heritage-stage::before { content: ""; position: absolute; inset: 9% -5% 0 34%; background: radial-gradient(ellipse at 62% 63%,rgba(211,134,70,.28),rgba(148,64,48,.1) 42%,transparent 70%); pointer-events: none; }
.heritage-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#31131b 3%,rgba(49,19,27,.88) 29%,transparent 67%); pointer-events: none; }
.heritage-house { position: absolute; right: -3%; bottom: -12px; width: min(70vw,800px); max-width: none; height: auto; opacity: .98; transform-origin: center bottom; }
.heritage-sheen { position: absolute; z-index: 1; top: 0; bottom: 0; left: 12%; width: 76%; pointer-events: none; opacity: 0; background: linear-gradient(105deg,transparent 38%,rgba(248,216,154,.28) 49%,transparent 61%); transform: translate3d(-125%,0,0) skewX(-12deg); }
@keyframes heritage-sheen-pass { 0% { opacity: 0; transform: translate3d(-125%,0,0) skewX(-12deg); } 22% { opacity: .65; } 100% { opacity: 0; transform: translate3d(135%,0,0) skewX(-12deg); } }
.heritage-gateway { position: absolute; z-index: 2; inset: 3% 2.5% 5%; pointer-events: none; transform: translateZ(90px); }
.heritage-gateway-inner { position: relative; width: 100%; height: 100%; }
.heritage-gateway-inner::before,.heritage-gateway-inner::after { content: ""; position: absolute; top: 13%; bottom: 12%; width: clamp(18px,3.8vw,48px); border: 1px solid rgba(244,201,126,.62); background: repeating-linear-gradient(45deg,transparent 0 8px,rgba(242,198,125,.18) 9px 10px,transparent 11px 19px),linear-gradient(90deg,rgba(178,117,62,.24),rgba(43,13,21,.63)); box-shadow: 8px 8px 25px rgba(19,4,11,.22); }
.heritage-gateway-inner::before { left: 0; transform: perspective(550px) rotateY(18deg); transform-origin: left center; }
.heritage-gateway-inner::after { right: 0; transform: perspective(550px) rotateY(-18deg); transform-origin: right center; }
.motion-ready .heritage-gateway-inner::before,.motion-ready .heritage-gateway-inner::after { opacity: .58; transition: transform 1.05s cubic-bezier(.2,.72,.2,1) .18s,opacity .8s ease .18s; }
.motion-ready .heritage-gateway-inner::before { transform: perspective(550px) rotateY(38deg) scaleY(.94); }
.motion-ready .heritage-gateway-inner::after { transform: perspective(550px) rotateY(-38deg) scaleY(.94); }
.motion-ready .heritage.is-visible .heritage-gateway-inner::before { opacity: 1; transform: perspective(550px) rotateY(18deg); }
.motion-ready .heritage.is-visible .heritage-gateway-inner::after { opacity: 1; transform: perspective(550px) rotateY(-18deg); }
.motion-ready .heritage-house { opacity: .5; transform: translate3d(0,14px,0) scale(1.035); transition: opacity 1.15s ease .12s,transform 1.25s cubic-bezier(.2,.72,.2,1) .12s; }
.motion-ready .heritage.is-visible .heritage-house { opacity: .98; transform: none; }
.motion-ready .heritage.is-visible .heritage-sheen { animation: heritage-sheen-pass .9s ease-out .32s backwards; }
.motion-ready .heritage-gateway-inner { opacity: 0; transform: translate3d(0,34px,70px) scale(1.04); transition: opacity 1s ease .18s,transform 1.2s cubic-bezier(.2,.72,.2,1) .18s; }
.motion-ready .heritage.is-visible .heritage-gateway-inner { opacity: 1; transform: none; }
.heritage-copy-depth { position: relative; z-index: 3; width: min(100%,450px); }
.heritage-copy { position: relative; width: 100%; text-shadow: 0 3px 18px rgba(24,8,13,.4); }
.heritage-copy .eyebrow { color: #f2d699; }
.heritage-copy h2 { margin: 0 0 1.1rem; font: 600 clamp(2.8rem,5vw,4.4rem)/1.05 var(--story-name); }
.heritage-copy > p:last-child { max-width: 360px; margin: 0; color: #ead4c1; font: 500 1.45rem/1.3 var(--story-serif); }
.heritage-floor { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 13px; background: repeating-linear-gradient(45deg,rgba(218,172,99,.72) 0 1px,transparent 1px 17px),repeating-linear-gradient(-45deg,rgba(218,172,99,.72) 0 1px,transparent 1px 17px); opacity: .68; }
.motion-ready .heritage-copy { opacity: 0; transform: translateY(10px); transition: opacity .55s ease .08s, transform .65s cubic-bezier(.22,1,.36,1) .08s; }
.motion-ready .heritage.is-visible .heritage-copy { opacity: 1; transform: none; }

/* Countdown and celebration details */
.countdown-band { position: relative; overflow: hidden; padding: 3.7rem 1rem 4rem; background: linear-gradient(125deg,#491821,#822a34 52%,#4a1721); text-align: center; color: #fff; }
.countdown-band::before { content: ""; position: absolute; inset: -30%; opacity: .3; transform: scale(.85); background: radial-gradient(circle at 50% 50%,rgba(250,201,126,.18),transparent 45%); transition: opacity 1.25s ease,transform 1.5s cubic-bezier(.2,.72,.2,1); }
.countdown-band.section-visible::before { opacity: 1; transform: none; }
.countdown-band::after { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(242,210,143,.24); pointer-events: none; }
.countdown-band > * { position: relative; z-index: 1; }
.countdown { display: flex; justify-content: center; align-items: center; gap: clamp(.6rem,3vw,2.2rem); }
.countdown div { min-width: 55px; display: grid; }
.countdown strong { display: inline-block; color: #f2d99e; font: 600 clamp(2.4rem,6vw,4rem) var(--story-name); font-variant-numeric: tabular-nums; }
.countdown span { color: #eadbd1; font-size: .75rem; }
.countdown i { color: #c99565; font-size: 1.5rem; font-style: normal; }
.events { overflow: hidden; background: linear-gradient(155deg,#f8f1e6 0%,#efe3d0 51%,#e8d7c0 100%); }
.events::before { content: ""; position: absolute; inset: -7% 0; opacity: .17; background-image: repeating-linear-gradient(45deg, transparent 0 33px, rgba(173,136,78,.25) 34px 35px, transparent 36px 68px); mask-image: linear-gradient(90deg,#000,transparent 40%,transparent 60%,#000); transform: translateZ(-140px); pointer-events: none; }
.events > * { position: relative; }
.event-grid { max-width: 930px; margin: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; perspective: 1200px; }
.event-depth { min-width: 0; }
.event-card { position: relative; overflow: hidden; min-width: 0; height: 100%; padding: clamp(1.7rem,4vw,3rem); background: #fffdf8; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(50,28,20,.05); transition: transform .45s ease, box-shadow .45s ease; }
.event-roof { display: block; width: 92px; height: 32px; margin-bottom: 1.25rem; overflow: visible; fill: none; stroke: #a68042; stroke-width: 2.4; stroke-linecap: round; }
.event-card-dark .event-roof { stroke: #e3c17b; }
.event-roof path { stroke-dasharray: 320; stroke-dashoffset: 0; }
.motion-ready .event-roof path { stroke-dashoffset: 320; transition: stroke-dashoffset 1.25s cubic-bezier(.24,.7,.2,1) .3s; }
.motion-ready .event-card.is-visible .event-roof path { stroke-dashoffset: 0; }
.event-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg,transparent 35%,rgba(238,198,122,.24) 50%,transparent 65%); opacity: 0; transform: translate3d(-120%,0,0); }
.motion-ready .event-card.is-visible::after { animation: shine-sweep 1.25s ease-in-out .52s both; }
.event-card:hover { transform: translateY(-7px) rotateX(1deg); box-shadow: 0 23px 42px rgba(53,27,24,.14); }
.event-card-dark { background: var(--wine-deep); color: #fff; }
.event-index { margin: 0; color: #987e5a; font-size: .7rem; letter-spacing: .18em; }
.event-card-dark .event-index { color: #e3c17b; }
.motion-ready .event-card > :not(.event-roof) { transition: opacity .7s ease,transform .7s cubic-bezier(.2,.72,.2,1); }
.motion-ready .event-card:not(.is-visible) > :not(.event-roof) { opacity: 0; transform: translate3d(0,13px,0); }
.motion-ready .event-card.is-visible > .event-index { transition-delay: .14s; }
.motion-ready .event-card.is-visible > h3 { transition-delay: .25s; }
.motion-ready .event-card.is-visible > .event-date,.motion-ready .event-card.is-visible > .event-time { transition-delay: .34s; }
.motion-ready .event-card.is-visible > .event-rule { transition-delay: .42s; }
.motion-ready .event-card.is-visible > .event-place,.motion-ready .event-card.is-visible > .text-link { transition-delay: .5s; }
.event-card h3 { margin: .6rem 0 1.2rem; font: 700 2.25rem/1.08 var(--story-name); }
.event-date { margin: 0; font: 600 1.45rem/1.2 var(--story-name); }
.event-time { margin: .1rem 0; color: #7e6e64; font: 500 1.2rem/1.2 var(--story-serif); }
.event-card-dark .event-time, .event-card-dark .event-place span { color: #dfc8b5; }
.event-rule { height: 1px; margin: 1.4rem 0; background: var(--line); }
.motion-ready .event-card:not(.is-visible) > .event-rule { transform: scaleX(0); }
.motion-ready .event-card > .event-rule { transform-origin: left; }
.event-card-dark .event-rule { background: #664048; }
.event-place { font: 600 1.35rem/1.25 var(--story-name); }
.event-place span { color: #7e6e64; font-size: .9rem; font-weight: 400; }
.event-card .text-link { margin-top: .8rem; }
.event-bridge { display: none; }

/* Wishes */
.events { background: radial-gradient(ellipse at 0% 22%,rgba(139,61,42,.13),transparent 28%),radial-gradient(ellipse at 100% 76%,rgba(65,100,62,.12),transparent 28%),linear-gradient(155deg,#faf7f0 0%,#f2eadc 52%,#e9ddcb 100%); }
.event-grid { gap: clamp(1rem,3vw,2rem); }
.event-card { border: 1px solid #cbb792; box-shadow: 0 18px 45px rgba(62,38,28,.09); }
.event-card-dark { border-color: #8d684c; }
.event-place span { display: inline-block; margin-top: .35rem; line-height: 1.5; }
.family { position: relative; overflow: hidden; background: radial-gradient(ellipse at -6% 4%,rgba(148,66,48,.16),transparent 26%),radial-gradient(ellipse at 106% 94%,rgba(48,91,63,.15),transparent 28%),#fbf9f3; text-align: center; }
.family::before,.family::after { content: ""; position: absolute; width: 280px; height: 430px; opacity: .23; pointer-events: none; background: radial-gradient(ellipse at 22% 15%,#7f382f 0 9%,transparent 10%),radial-gradient(ellipse at 60% 26%,#b7783f 0 12%,transparent 13%),radial-gradient(ellipse at 29% 43%,#864a35 0 12%,transparent 13%),radial-gradient(ellipse at 70% 55%,#4c6e4e 0 11%,transparent 12%),radial-gradient(ellipse at 34% 73%,#825139 0 13%,transparent 14%); }
.family::before { left: -140px; top: 4%; transform: rotate(-19deg); }
.family::after { right: -140px; bottom: 0; transform: rotate(154deg); }
.family-inner { position: relative; max-width: 870px; margin: auto; padding: clamp(2rem,5vw,4rem); border: 1px solid rgba(169,128,70,.42); background: rgba(255,253,248,.72); box-shadow: 0 20px 70px rgba(81,54,37,.07); }
.family .eyebrow { margin-bottom: .65rem; color: #8f5f31; }
.family h2 { margin: 0; color: #4b2526; font: 600 clamp(2.3rem,5vw,3.6rem)/1.07 var(--story-name); }
.family-intro { max-width: 620px; margin: 1.25rem auto 2.5rem; color: #645751; font: 500 clamp(1.2rem,2vw,1.5rem)/1.35 var(--story-serif); }
.family-grid { display: grid; grid-template-columns: minmax(0,1fr) 100px minmax(0,1fr); align-items: center; gap: clamp(.7rem,3vw,2.5rem); }
.family-side { display: grid; gap: .55rem; }
.family-side > span { color: #956936; font: 700 .72rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.family-side strong { color: #46272a; font: 600 clamp(1.4rem,2.5vw,2rem)/1.18 var(--story-name); }
.family-emblem { display: grid; justify-items: center; gap: .3rem; color: #ad8045; }
.family-emblem img { width: 85px; height: 54px; object-fit: contain; }
.family-emblem span { font-size: .95rem; }
.family-signoff { max-width: 530px; margin: 2.6rem auto .3rem; padding-top: 1.3rem; border-top: 1px solid #dac9a8; color: #6d5d55; font: 500 1.22rem/1.4 var(--story-serif); }
.family-salam { margin: .8rem auto 0; color: #8d5f38; font: italic 500 1.18rem/1.3 var(--story-serif); }
.wishes { background: linear-gradient(145deg,#f9f3e9 0%,#efe2ce 72%,#e9d8c1 100%); }
.wishes .section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.wishes .section-heading > p:last-child { margin: 1rem auto 0; color: #74665d; font: 500 1.4rem/1.3 var(--story-serif); }
.wishes-layout { max-width: 980px; margin: auto; display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(1.5rem,5vw,4rem); align-items: start; }
.wishes-form { color-scheme: light; color: #291e1d; display: grid; gap: .55rem; padding: clamp(1.3rem,3vw,2rem); background: #fffdf8; border: 1px solid #d9c8a8; box-shadow: 0 15px 40px rgba(72,44,30,.06); }
.wishes-form label { margin-top: .5rem; font-size: .86rem; font-weight: 600; }
.wishes-form input, .wishes-form textarea { width: 100%; padding: .85rem 1rem; border: 1px solid #c9bca9; border-radius: 0; background: #fffdf8; color: #291e1d; caret-color: #291e1d; font-size: 1rem; }
.wishes-form input::placeholder, .wishes-form textarea::placeholder { color: #66544c; opacity: 1; }
.wishes-form input:-webkit-autofill { -webkit-text-fill-color: #291e1d; }
.wishes-form textarea { min-height: 135px; resize: vertical; }
.wishes-form input:focus-visible, .wishes-form textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.button-red { margin-top: .8rem; background: var(--wine); color: #fff; }
.button-red:hover { background: #53151d; box-shadow: 0 8px 23px rgba(74,20,28,.2); }
.form-note { margin: 0; color: #542026; font-size: .86rem; overflow-wrap: anywhere; }
.wishes-panel { min-width: 0; padding: clamp(1.3rem,3vw,2rem); color: #291e1d; background: #fffdf8; border: 1px solid #d9c8a8; }
.wishes-panel h3 { margin: 0 0 1rem; color: #542026; font: 600 1.65rem var(--story-name); }
.wishes-list { max-height: 430px; overflow: auto; padding-right: .55rem; scrollbar-color: #8f7249 transparent; }
.wishes-status { margin: .85rem 0 0; color: #5c4940; font-size: .9rem; }
.wishes-pages { display: flex; flex-wrap: wrap; gap: .55rem; }
.wishes-pages button { min-height: 44px; margin-top: .65rem; padding: .45rem .85rem; background: #fffdf8; border: 1px solid #8f7249; border-radius: .25rem; color: #542026; font-weight: 600; cursor: pointer; }
.wishes-pages button:focus-visible { outline: 2px solid #542026; outline-offset: 2px; }
.wishes-pages button:disabled { opacity: .65; cursor: wait; }
.wish-card { padding: 1rem 0 1.25rem; border-bottom: 1px solid #dfd4c2; text-align: left; overflow-wrap: anywhere; }
.motion-ready .wishes-list.is-visible .wish-card { animation: wish-rise .65s cubic-bezier(.2,.72,.2,1) both; }
.motion-ready .wishes-list.is-visible .wish-card:nth-child(2) { animation-delay: .1s; }
.motion-ready .wishes-list.is-visible .wish-card:nth-child(3) { animation-delay: .2s; }
@keyframes wish-rise { from { opacity: 0; transform: translate3d(0,12px,0); } to { opacity: 1; transform: none; } }
.wish-card:first-child { padding-top: 0; }
.wish-card strong { display: block; color: #542026; font: 600 1.45rem var(--story-name); }
.wish-card time { display: block; margin-top: .15rem; color: #67544b; font-size: .85rem; }
.wish-card p { margin: .65rem 0 0; color: #352721; font: 400 1rem/1.55 var(--sans, sans-serif); white-space: pre-wrap; }

/* Farewell */
.closing { position: relative; overflow: hidden; padding: 5.5rem 1rem; background: linear-gradient(145deg,#2c1119,#59212a 54%,#2b1119); text-align: center; color: #fff; }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%,rgba(217,165,89,.12),transparent 48%); pointer-events: none; }
.closing::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(224,180,109,.24); pointer-events: none; }
.closing > * { position: relative; z-index: 1; }
.closing-ornament { width: min(270px,70vw); height: 58px; margin: 0 auto; }
.closing-ornament svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #eed29b; stroke-width: 2.4; stroke-linecap: round; }
.closing-ornament path { stroke-dasharray: 600; stroke-dashoffset: 0; }
.motion-ready .closing-ornament path { stroke-dashoffset: 600; transition: stroke-dashoffset 1.5s cubic-bezier(.25,.7,.2,1) .1s; }
.motion-ready .closing-ornament.is-visible path { stroke-dashoffset: 0; }
.closing .eyebrow { margin: .8rem 0 1rem; }
.closing h2 { margin: .4rem 0 1.2rem; font: 600 clamp(1.9rem,4vw,3.1rem)/1.15 var(--story-name); }
.closing > p:last-of-type { color: #f0d499; font: 600 clamp(2.4rem,5vw,3.5rem)/1 var(--story-name); letter-spacing: .01em; }
.closing > span { color: #d9c3ae; font-size: .78rem; letter-spacing: .15em; }
footer { padding: 1.2rem; background: #211517; color: #cbb9ac; font-size: .75rem; text-align: center; }

@media (max-width: 680px) {
  :root { --nav-height: 64px; }
  section[id] { scroll-margin-top: 64px; }
  .cover-poster { box-shadow: none; }
  .music-toggle { right: .8rem; bottom: .8rem; }
  .topbar { height: 64px; gap: .8rem; }
  .nav-links { gap: .85rem; }
  .nav-links a { font-size: .76rem; }
  .nav-date { display: none; }
  .hero-image { background-position: center 56%; }
  .hero-shade { background: linear-gradient(90deg,rgba(38,7,17,.56),rgba(38,7,17,.16)),linear-gradient(0deg,rgba(34,5,14,.63),transparent 42%,rgba(34,5,14,.16)); }
  .hero-content { padding: clamp(5rem,12svh,7rem) 8% 7rem; }
  .hero h1 { font-size: clamp(4.4rem,16vw,6.5rem); }
  .hero-content > p { max-width: 320px; margin-bottom: 2.8rem; font-size: clamp(1.35rem,5vw,1.7rem); }
  .couple-grid { grid-template-columns: 1fr; max-width: 470px; margin-top: 3.5rem; }
  .person-art { height: clamp(280px,90vw,400px); }
  .person-card h2 { font-size: clamp(1.5rem,5.4vw,1.8rem); }
  .person-card-groom h2 { font-size: clamp(1.45rem,5.1vw,1.7rem); }
  .person-card > p:last-child { font-size: 1rem; }
  .motion-ready .person-card[data-reveal]:not(.is-visible),.motion-ready .person-card-groom[data-reveal]:not(.is-visible) { transform: translate3d(0,20px,-55px) rotateX(3deg); }
  .heritage { min-height: clamp(580px,98vw,680px); align-items: flex-start; padding: 4rem 2rem 13rem; }
  .heritage::before { background: linear-gradient(180deg,rgba(38,13,20,.65),transparent 65%); }
  .heritage-stage::after { background: linear-gradient(180deg,#31131b 1%,rgba(49,19,27,.9) 24%,transparent 68%); }
  .heritage-house { width: min(115vw,580px); right: -7%; bottom: -12px; opacity: .95; }
  .heritage-gateway { inset: 3% 3% 6%; }
  .heritage-gateway-inner::before,.heritage-gateway-inner::after { width: 18px; }
  .heritage-copy h2 { font-size: clamp(2.7rem,9vw,4rem); }
  .motion-ready .event-depth:first-child .event-card[data-reveal]:not(.is-visible),.motion-ready .event-depth:last-child .event-card[data-reveal]:not(.is-visible) { transform: translate3d(0,20px,-50px) rotateX(3deg); }
  .countdown { gap: .5rem; }
  .countdown div { min-width: 47px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-bridge { display: flex; justify-content: center; align-items: center; gap: .65rem; height: 58px; margin: -.35rem 0; color: #ae8249; }
  .event-bridge i { display: block; width: min(20vw,65px); height: 1px; background: linear-gradient(90deg,transparent,currentColor); transform-origin: right; }
  .event-bridge i:last-child { transform: rotate(180deg); }
  .event-bridge svg { width: 62px; height: 36px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .motion-ready .event-bridge i { transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.72,.2,1) .12s; }
  .motion-ready .event-bridge i:last-child { transform: rotate(180deg) scaleX(0); }
  .motion-ready .event-bridge.is-visible i { transform: scaleX(1); }
  .motion-ready .event-bridge.is-visible i:last-child { transform: rotate(180deg) scaleX(1); }
  .motion-ready .event-bridge svg { opacity: 0; transform: translate3d(0,10px,0); transition: opacity .75s ease .25s,transform .75s cubic-bezier(.2,.72,.2,1) .25s; }
  .motion-ready .event-bridge.is-visible svg { opacity: 1; transform: none; }
  .wishes-layout { grid-template-columns: 1fr; }
  .family-inner { padding: 2rem 1.15rem; }
  .family-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .family-emblem { order: 0; }
  .family-side:first-child { order: -1; }
  .family-side:last-child { order: 1; }
  .family-emblem img { width: 65px; height: 36px; }
  .wishes-list { max-height: 340px; }
  footer { flex-direction: column; gap: .2rem; text-align: center; }
}

@media (max-width: 380px) {
  .cover h1 { font-size: 6.4vh; font-size: 6.4svh; }
  .hero h1 { font-size: 4.25rem; }
  .nav-links { gap: .6rem; }
  .nav-links a { font-size: .72rem; }
}

@media (max-height: 620px) {
  .cover-card { top: 54%; bottom: 13%; }
  .cover h1 { margin-top: 0; font-size: clamp(2.1rem, 6.2vh, 3.2rem); font-size: clamp(2.1rem, 6.2svh, 3.2rem); }
  .button-gold { min-height: 36px; }
  .hero-content { padding-top: 3.5rem; }
  .hero-content > p { margin-bottom: 1.5rem; }
  .hero-scroll-cue { display: none; }
}

@media (max-width: 899px) and (max-height: 620px) {
  .cover-card.has-personal-guest { top: 54%; bottom: 9%; }
  .cover-card.has-long-guest { top: 53%; bottom: 7%; }
  .cover-card.has-very-long-guest { top: 52%; bottom: 5%; }
}

@media (max-width: 899px) and (max-height: 520px) {
  .cover-card { top: 54%; bottom: 10%; }
  .cover-card.has-personal-guest { top: 54%; bottom: 8%; }
  .cover-card.has-long-guest { top: 54%; bottom: 4%; }
  .cover-card.has-very-long-guest { top: 53%; bottom: 2%; }
  .cover-card.has-very-long-guest .cover-divider { display: none; }
  .cover h1 { font-size: 1.95rem; }
  .guest-label, .guest-name { font-size: 1.05rem; }
  .guest-place { font-size: 1.05rem; }
  .guest-name { margin-top: .2rem; }
  .guest-place { margin-top: .2rem; }
  .button-gold { min-height: 32px; margin-top: .5rem; }
}

@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .cover { padding: 2vh 2vw; }
  .cover-poster {
    width: min(94vw, 142vh, 1500px);
    width: min(94vw, 142svh, 1500px);
    height: min(62.67vw, 94.67vh, 1000px);
    height: min(62.67vw, 94.67svh, 1000px);
    min-height: 0;
    box-shadow: 0 24px 80px rgba(12, 2, 6, .62);
  }
  .cover-card {
    top: 14%;
    bottom: 14%;
    left: 61%;
    right: 5%;
    justify-content: center;
    gap: clamp(.5rem, 1.4vh, 1.2rem);
    gap: clamp(.5rem, 1.4svh, 1.2rem);
  }
  .cover-card.has-personal-guest { bottom: 14%; }
  .cover-card.has-long-guest, .cover-card.has-very-long-guest { top: 14%; bottom: 14%; }
  .cover h1 { margin-top: 0; font-size: clamp(3.9rem, 7.6vh, 6.2rem); font-size: clamp(3.9rem, 7.6svh, 6.2rem); }
  .cover-divider { width: 70%; margin: .1rem 0 .3rem; }
  .guest-label { margin-top: 0; }
  .guest-recipient { font-size: clamp(1.15rem, 2.5vh, 1.9rem); font-size: clamp(1.15rem, 2.5svh, 1.9rem); }
  .guest-recipient.long { font-size: clamp(1.05rem, 2.2vh, 1.65rem); font-size: clamp(1.05rem, 2.2svh, 1.65rem); }
  .guest-recipient.very-long { font-size: clamp(.95rem, 1.9vh, 1.4rem); font-size: clamp(.95rem, 1.9svh, 1.4rem); }
  .button-gold {
    width: min(82%, 340px);
    min-height: clamp(44px, 5.8vh, 58px);
    min-height: clamp(44px, 5.8svh, 58px);
    margin-top: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready [data-reveal], .motion-ready [data-reveal]:not(.is-visible) { opacity: 1 !important; transform: none !important; }
  .section-heading::after, .section-heading.is-visible::after { width: 76px; }
  .cover-closing { opacity: 0; }
  .hero-portal { display: none !important; }
  .motion-ready .heritage-copy { opacity: 1 !important; transform: none !important; }
  .hero-image,.hero-content,.person-card,.heritage-gateway,.heritage-gateway-inner { opacity: 1 !important; transform: none !important; }
  .heritage-house,.heritage-gateway-inner::before,.heritage-gateway-inner::after { opacity: 1 !important; transform: none !important; }
  .heritage-sheen { display: none !important; }
  .event-roof path { stroke-dashoffset: 0 !important; }
  .motion-ready .event-card > :not(.event-roof),.motion-ready .event-bridge svg { opacity: 1 !important; transform: none !important; }
  .motion-ready .event-bridge i { transform: none !important; }
  .motion-ready .section-heading > *,.motion-ready .heritage-aura { opacity: 1 !important; transform: none !important; }
  .closing-ornament path,.section-roof path { stroke-dashoffset: 0 !important; }
  .countdown-band::before { opacity: 1 !important; transform: none !important; }
}

.low-power .cover-gleam { animation: none; }
.low-power .hero-portal { display: none !important; }
.low-power .button-gold::after { animation: none; }
.low-power .motion-ready .event-card.is-visible::after { animation: none; }
.low-power .invitation-entering .hero-image,.low-power .invitation-entering .hero-content,.low-power .motion-ready .wishes-list.is-visible .wish-card { animation: none; }
.low-power .cover-closing .cover-poster { animation: none; }
.low-power .hero-image,.low-power .hero-content,.low-power .heritage-gateway { transform: none; }
.low-power .motion-ready .heritage-gateway-inner { opacity: 1; transform: none; transition: none; }
.low-power .motion-ready .heritage-gateway-inner::before,.low-power .motion-ready .heritage-gateway-inner::after { opacity: 1; transform: none; transition: none; }
.low-power .motion-ready .heritage-house { opacity: .98; transform: none; transition: none; }
.low-power .motion-ready .heritage-sheen { display: none; }
.low-power .motion-ready .event-depth:first-child .event-card[data-reveal]:not(.is-visible),.low-power .motion-ready .event-depth:last-child .event-card[data-reveal]:not(.is-visible) { transform: translate3d(0,18px,0); }
.low-power .countdown-band::before { opacity: 1; transform: none; }
.low-power .cover-flare { display: none; }

/* Main invitation: quiet editorial type above the Rumah Gadang scene. */
.hero-shade { background: linear-gradient(180deg,rgba(29,8,15,.75) 0%,rgba(29,8,15,.14) 32%,transparent 52%,rgba(29,8,15,.24) 70%,rgba(29,8,15,.9) 100%); }
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 100%; min-height: calc(100vh - var(--nav-height)); min-height: calc(100svh - var(--nav-height)); padding: clamp(2.6rem,6vh,4.5rem) 1.4rem clamp(2rem,5vh,3.7rem); text-align: center; text-shadow: 0 3px 22px rgba(23,4,12,.7); }
.hero-heading { max-width: 980px; }
.hero-kicker { margin: 0 0 .8rem; color: #f7e7c4; font: 700 .68rem/1.3 var(--sans); letter-spacing: .28em; }
.hero h1 { margin: 0; font: 600 clamp(4rem,9vw,8rem)/.96 var(--story-name); letter-spacing: -.025em; white-space: nowrap; }
.hero h1 span { margin: 0 .04em; font-size: .75em; }
.hero-invitation { max-width: 590px; margin-top: 3rem; }
.hero-invitation p { margin: 0 auto 1.35rem; font: 500 clamp(1.3rem,2.2vw,1.7rem)/1.28 var(--story-serif); text-wrap: balance; }
.hero-invitation a { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; min-height: 48px; padding: .7rem 1.4rem; border: 1px solid rgba(244,214,157,.75); border-radius: 999px; background: rgba(61,17,26,.84); box-shadow: 0 12px 32px rgba(20,5,10,.25); color: #fff8ed; font: 600 .84rem/1 var(--sans); text-decoration: none; transition: background .25s ease,transform .25s ease; }
.hero-invitation a:hover { background: #67232d; transform: translateY(-2px); }
.hero-invitation a span { color: #f1d398; font-size: 1.2rem; line-height: 1; }
@media (max-width: 680px) {
  .hero-shade { background: linear-gradient(180deg,rgba(29,8,15,.77),rgba(29,8,15,.13) 30%,transparent 50%,rgba(29,8,15,.16) 64%,rgba(29,8,15,.9) 88%); }
  .hero-content { padding: clamp(2.4rem,6svh,3.5rem) 1rem clamp(5.4rem,11svh,6.4rem); }
  .hero-kicker { font-size: .61rem; letter-spacing: .22em; }
  .hero h1 { font-size: clamp(2.85rem,11.3vw,4.8rem); }
  .hero-invitation { max-width: 350px; }
  .hero-invitation p { max-width: 320px; font-size: clamp(1.22rem,4.6vw,1.5rem); }
}
@media (max-height: 620px) { .hero-content { padding-top: 1.4rem; padding-bottom: 4.2rem; } .hero-invitation p { margin-bottom: .65rem; } }

/* A quieter palette and a single, measured entrance for each reading surface. */
.family::before,.family::after { display: none; }
.family { background: linear-gradient(155deg,#faf7ef,#f1eadc); }
.family-inner { background: #fffdf8; box-shadow: 0 14px 40px rgba(81,54,37,.05); }
.intro::after,.events::after,.wishes::after { height: 1px; background: linear-gradient(90deg,transparent,#b99561 25%,#d7bc89 50%,#b99561 75%,transparent); }
.events::before { opacity: .07; }
.person-card { box-shadow: 0 12px 32px rgba(74,39,31,.08); }
.event-card:hover { transform: translateY(-3px); }
.motion-ready [data-reveal] { transition-duration: .65s; transition-timing-function: cubic-bezier(.22,1,.36,1); }
.motion-ready [data-reveal]:not(.is-visible) { transform: translate3d(0,22px,0); }
.motion-ready .family-side[data-reveal]:not(.is-visible) { transform: translate3d(0,18px,0); }
.motion-ready .family-emblem[data-reveal]:not(.is-visible) { transform: translate3d(0,12px,0) scale(.94); }
.motion-ready .person-card[data-reveal].is-visible .person-role,
.motion-ready .person-card[data-reveal].is-visible h2,
.motion-ready .person-card[data-reveal].is-visible > p:last-child { animation: detail-arrive .8s cubic-bezier(.22,1,.36,1) both; }
.motion-ready .person-card[data-reveal].is-visible h2 { animation-delay: .12s; }
.motion-ready .person-card[data-reveal].is-visible > p:last-child { animation-delay: .22s; }
@keyframes detail-arrive { from { opacity: 0; transform: translate3d(0,10px,0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .motion-ready .person-card[data-reveal].is-visible .person-role,.motion-ready .person-card[data-reveal].is-visible h2,.motion-ready .person-card[data-reveal].is-visible > p:last-child { animation: none; } }
.low-power .motion-ready .person-card[data-reveal].is-visible .person-role,.low-power .motion-ready .person-card[data-reveal].is-visible h2,.low-power .motion-ready .person-card[data-reveal].is-visible > p:last-child { animation: none; }

/* Gonjong chapter accents arrive as the guest reaches each section. */
.countdown-band > .countdown-house { position: absolute; z-index: 0; inset: auto 0 -20px; height: 160px; opacity: .12; pointer-events: none; background: url("assets/rumah-gadang.svg") center bottom / auto 100% no-repeat; }
.motion-ready .countdown-band .countdown-house { opacity: 0; transform: translate3d(0,30px,0) scale(.96); transition: opacity 1.3s ease,transform 1.4s cubic-bezier(.22,1,.36,1); }
.motion-ready .countdown-band.section-visible .countdown-house { opacity: .12; transform: none; }
.chapter-gadang { position: relative; display: grid; justify-items: center; width: min(160px,45vw); margin: 0 auto 2rem; color: #b48b54; }
.chapter-gadang img { display: block; width: 100%; height: 76px; object-fit: contain; }
.chapter-gadang span { width: 75%; height: 1px; margin-top: .6rem; background: linear-gradient(90deg,transparent,#b48b54,transparent); transform-origin: center; }
.motion-ready .chapter-gadang img { transition: transform 1.2s cubic-bezier(.22,1,.36,1),opacity 1.2s ease; transform: translate3d(0,16px,0) scale(.92); opacity: .45; }
.motion-ready .chapter-gadang.is-visible img { transform: none; opacity: 1; }
.motion-ready .chapter-gadang span { transform: scaleX(0); transition: transform 1s cubic-bezier(.22,1,.36,1) .2s; }
.motion-ready .chapter-gadang.is-visible span { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .chapter-gadang img,.chapter-gadang span,.countdown-house { transition: none !important; animation: none !important; transform: none !important; } }
.low-power .motion-ready .chapter-gadang img,.low-power .motion-ready .countdown-house { transition: opacity .6s ease; transform: none; }

/* Scroll choreography is confined to decorative layers; all reading surfaces settle. */
.heritage-house-depth { position: absolute; inset: 0; transform-origin: 70% bottom; }
.chapter-gadang { width: min(200px,50vw); margin-bottom: 2.5rem; }
.chapter-gadang img { height: 112px; }
.scroll-depth-ready .chapter-gadang.is-visible img { transform: translate3d(0,calc((.5 - var(--depth-progress,.5)) * 18px),0) scale(calc(1 + var(--depth-progress,0) * .045)); transition: opacity .8s ease; }
.heritage-curtain { display: none; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 50.5%; pointer-events: none; background: linear-gradient(90deg,#32131b,#55232b); border-right: 1px solid #b48b54; transform-origin: left center; }
.heritage-curtain::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(222,177,103,.3); background: repeating-linear-gradient(45deg,transparent 0 28px,rgba(222,177,103,.08) 29px 30px,transparent 31px 58px); }
.heritage-curtain-right { left: auto; right: 0; transform-origin: right center; border-right: 0; border-left: 1px solid #b48b54; }
.motion-ready .heritage-curtain { display: block; }
.motion-ready .heritage.is-visible .heritage-curtain-left { animation: heritage-unfold-left .9s cubic-bezier(.22,1,.36,1) both; }
.motion-ready .heritage.is-visible .heritage-curtain-right { animation: heritage-unfold-right .9s cubic-bezier(.22,1,.36,1) .05s both; }
@keyframes heritage-unfold-left { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-101%); opacity: 0; visibility: hidden; } }
@keyframes heritage-unfold-right { from { transform: translateX(0); opacity: 1; } to { transform: translateX(101%); opacity: 0; visibility: hidden; } }
.heritage-lights { position: absolute; z-index: 1; inset: 15% 7% 5% 35%; pointer-events: none; }
.heritage-lights i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #f8d89a; box-shadow: 0 0 14px 3px rgba(248,216,154,.2); opacity: 0; }
.heritage-lights i:nth-child(1) { left: 12%; top: 68%; }
.heritage-lights i:nth-child(2) { left: 83%; top: 56%; animation-delay: .8s !important; }
.heritage-lights i:nth-child(3) { left: 48%; top: 29%; animation-delay: 1.2s !important; }
.heritage-lights i:nth-child(4) { left: 65%; top: 79%; animation-delay: 1.5s !important; }
.motion-ready .heritage.is-visible .heritage-lights i { animation: courtyard-light 3s ease .5s both; }
@keyframes courtyard-light { 0% { opacity: 0; transform: translateY(12px) scale(.4); } 35% { opacity: .8; } 100% { opacity: 0; transform: translateY(-22px) scale(.7); } }
.invitation-entering .hero-heading { animation: detail-arrive 1.05s cubic-bezier(.22,1,.36,1) .35s both; }
.invitation-entering .hero-invitation { animation: detail-arrive 1.05s cubic-bezier(.22,1,.36,1) .6s both; }
@media (max-width: 680px) { .heritage-lights { inset: 40% 6% 5%; } .chapter-gadang img { height: 96px; } }
@media (prefers-reduced-motion: reduce) {
  .heritage-curtain,.heritage-lights { display: none !important; }
  .heritage-house-depth,.chapter-gadang img { transform: none !important; }
  .invitation-entering .hero-heading,.invitation-entering .hero-invitation { animation: none; }
}
.low-power .heritage-curtain,.low-power .heritage-lights { display: none; }
.low-power .invitation-entering .hero-heading,.low-power .invitation-entering .hero-invitation { animation: none; }

/* Botanical and engraved artwork adapted from the printed invitation. */
.family { isolation: isolate; }
.intro::before { display: none; }
.section > .botanical-scene { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.botanical-scene::after { content: ""; position: absolute; width: min(580px,80vw); height: 650px; top: 0; left: 5%; background: url("assets/minang-trees.webp") center / contain no-repeat; filter: grayscale(1); opacity: .045; }
.botanical-tree { position: absolute; top: 55px; width: clamp(190px,24vw,340px); opacity: .7; transform-origin: center bottom; }
.botanical-tree-left { left: clamp(-170px,-12vw,-95px); }
.botanical-tree-right { right: clamp(-170px,-12vw,-95px); top: 210px; --tree-facing: -1; }
.botanical-tree img { display: block; width: 100%; height: auto; transform: scaleX(var(--tree-facing,1)); transform-origin: 50% 95%; }
.scroll-depth-ready .botanical-tree { transform: translate3d(0,calc((.5 - var(--depth-progress,.5)) * 48px),0); }
.motion-ready .botanical-tree img { animation: botanical-sway 8s ease-in-out infinite alternate; animation-play-state: paused; }
.motion-ready .botanical-tree.is-in-view img { animation-play-state: running; }
@media (pointer: coarse), (max-width: 799px) {
  .motion-ready .botanical-tree:not(.botanical-tree-left):not(.botanical-tree-right):not(.botanical-tree-canopy-left):not(.botanical-tree-canopy-right) img { animation: none; }
  .heritage .hanging-ornament { animation: none; }
}
.motion-ready .botanical-tree-right img { animation-delay: -3s; animation-duration: 10s; }
@keyframes botanical-sway { from { transform: scaleX(var(--tree-facing,1)) rotate(-1deg); } to { transform: scaleX(var(--tree-facing,1)) rotate(1deg); } }
.botanical-scene-family .botanical-tree-left { top: 22%; }
.botanical-scene-family .botanical-tree-right { top: 8%; }
.chapter-engraving { width: min(350px,75vw); margin-bottom: 1.8rem; }
.chapter-engraving img { height: auto; aspect-ratio: 3 / 2; }
.chapter-engraving span { width: 50%; }
@media (max-width: 680px) {
  .botanical-tree { width: 160px; opacity: .6; }
  .botanical-tree-left { left: -115px; top: 85px; }
  .botanical-tree-right { right: -115px; top: 230px; }
  .botanical-scene::after { left: -12%; opacity: .035; height: 450px; }
  .chapter-engraving { width: min(280px,72vw); }
  .chapter-engraving img { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .botanical-tree { transform: none !important; }
  .motion-ready .botanical-tree img { animation: none !important; }
}
.low-power .motion-ready .botanical-tree img { animation: none; }
.page-hidden .botanical-tree img { animation-play-state: paused !important; }

/* Every chapter shares the botanical frame, with quieter layers behind dark scenes. */
.wishes { position: relative; overflow: hidden; }
.heritage > .botanical-scene,.countdown-band > .botanical-scene,.closing > .botanical-scene { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.botanical-scene-dark .botanical-tree { opacity: .32; }
.botanical-scene-dark::after { display: none; }
.countdown-band .botanical-tree { width: 210px; top: -30px; opacity: .22; }
.countdown-band .botanical-tree-right { top: -110px; }
.events .botanical-tree-left { top: 15%; }
.events .botanical-tree-right { top: 58%; }
.wishes .botanical-tree-left { top: 10%; }
.wishes .botanical-tree-right { top: 43%; }
.chapter-mini { width: min(185px,46vw); margin-bottom: 1.8rem; }
.chapter-mini img { height: auto; aspect-ratio: 3 / 2; }
.closing > .closing-ornament { display: none; }
.closing .chapter-on-dark { margin-bottom: 1rem; }
@media (max-width: 680px) {
  .botanical-scene-dark .botanical-tree { opacity: .3; }
  .countdown-band .botanical-tree { width: 160px; }
  .chapter-mini { width: 150px; }
}

/* Continuous motion: visible chapter only, with a clear center for reading. */
.ambient-host { position: relative; overflow: hidden; }
.ambient-host > .ambient-scene { position: absolute; z-index: 4; inset: 0; pointer-events: none; overflow: hidden; }
.ambient-leaf { position: absolute; width: 9px; height: 16px; border-radius: 85% 5% 85% 5%; background: linear-gradient(130deg,#ac733d,#dab77e); opacity: 0; animation: leaf-fall var(--leaf-duration,9s) linear var(--leaf-delay,0s) infinite; animation-play-state: paused; }
.ambient-leaf::after { content: ""; position: absolute; width: 1px; height: 85%; top: 8%; left: 48%; background: rgba(255,244,214,.6); transform: rotate(27deg); }
.leaf-1 { left: 3%; top: 5%; }
.leaf-2 { right: 5%; top: 12%; background: linear-gradient(130deg,#6b3934,#b57854); }
.leaf-3 { left: 7%; top: 42%; width: 7px; height: 12px; }
.leaf-4 { right: 3%; top: 46%; }
.leaf-5 { left: 2%; top: 70%; background: linear-gradient(130deg,#45684a,#a3ac79); }
.leaf-6 { right: 8%; top: 72%; width: 7px; height: 12px; }
@keyframes leaf-fall {
  0% { opacity: 0; transform: translate3d(0,-25px,0) rotate(-30deg); }
  18% { opacity: .7; }
  45% { transform: translate3d(15px,55px,0) rotate(60deg); }
  75% { opacity: .5; transform: translate3d(-8px,120px,0) rotate(145deg); }
  100% { opacity: 0; transform: translate3d(8px,175px,0) rotate(230deg); }
}
.hanging-ornament { position: absolute; top: -8px; width: 30px; height: 150px; color: #d6af6d; transform-origin: center top; animation: pendant-sway 5.4s ease-in-out infinite alternate; animation-play-state: paused; }
.hanging-left { left: 3%; }
.hanging-right { right: 3%; height: 125px; animation-delay: -2s; animation-duration: 6.5s; }
.hanging-ornament::before { content: ""; position: absolute; top: 0; left: 50%; height: 65%; border-left: 1px solid currentColor; }
.hanging-ornament > i { position: absolute; left: 5px; bottom: 28px; width: 20px; height: 20px; border: 1px solid currentColor; transform: rotate(45deg); box-shadow: inset 0 0 0 4px rgba(212,177,106,.12); }
.hanging-ornament > i::after { content: ""; position: absolute; inset: 5px; background: currentColor; }
.hanging-ornament::after { content: ""; position: absolute; width: 11px; height: 24px; bottom: 0; left: 10px; background: repeating-linear-gradient(90deg,currentColor 0 1px,transparent 1px 3px); opacity: .75; }
@keyframes pendant-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.ambient-active > .ambient-scene .ambient-leaf,.ambient-active > .ambient-scene .hanging-ornament { animation-play-state: running; }
.motion-ready .heritage.is-visible .heritage-lights i { animation-name: courtyard-light; animation-duration: 6s; animation-iteration-count: infinite; animation-play-state: paused; }
.motion-ready .heritage.is-visible.ambient-active .heritage-lights i { animation-play-state: running; }
.motion-ready .event-card.is-visible::after { animation: event-glimmer 8s ease-in-out infinite; animation-play-state: paused; }
.motion-ready .event-card.is-visible.ambient-active::after { animation-play-state: running; }
@keyframes event-glimmer { 0%,65% { opacity: 0; transform: translate3d(-120%,0,0); } 78% { opacity: .5; } 100% { opacity: 0; transform: translate3d(120%,0,0); } }
.chapter-gadang > span { position: relative; }
.chapter-gadang > span::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; background: #d4b16a; transform: rotate(45deg); animation: thread-spark 5s ease-in-out infinite; animation-play-state: paused; }
.chapter-gadang.ambient-active > span::after { animation-play-state: running; }
@keyframes thread-spark { 0%,10% { opacity: 0; transform: translateX(0) rotate(45deg); } 35% { opacity: .8; } 90%,100% { opacity: 0; transform: translateX(60px) rotate(225deg); } }
.family-emblem img { animation: emblem-float 5s ease-in-out infinite alternate; animation-play-state: paused; }
.family-emblem.ambient-active img { animation-play-state: running; }
@keyframes emblem-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes botanical-sway { from { transform: scaleX(var(--tree-facing,1)) rotate(-1.8deg); } to { transform: scaleX(var(--tree-facing,1)) rotate(1.8deg); } }
@media (max-width: 680px) {
  .leaf-3 { left: 2%; } .leaf-2 { right: 2%; }
  .hanging-ornament { width: 24px; height: 76px; opacity: .8; }
  .hanging-left { left: 10px; } .hanging-right { right: 10px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-scene { display: none !important; }
  .heritage-stage::before,.family-emblem img,.chapter-gadang > span::after,.motion-ready .event-card.is-visible::after { animation: none !important; }
  .chapter-gadang > span::after { display: none; }
}
.low-power .ambient-scene,.low-power .chapter-gadang > span::after { display: none; }
.low-power .heritage-stage::before,.low-power .family-emblem img,.low-power .motion-ready .event-card.is-visible::after { animation: none; }
.page-hidden .ambient-leaf,.page-hidden .hanging-ornament,.page-hidden .heritage-lights i,.page-hidden .heritage-stage::before,.page-hidden .event-card::after,.page-hidden .chapter-gadang > span::after,.page-hidden .family-emblem img { animation-play-state: paused !important; }

/* Responsive density: layered movement around the edges, a quiet reading column. */
.leaf-7 { left: 4%; top: 25%; width: 12px; height: 20px; }
.leaf-8 { right: 6%; top: 30%; width: 8px; height: 14px; }
.leaf-9 { left: 8%; top: 60%; background: #92704d; }
.leaf-10 { right: 2%; top: 84%; width: 6px; height: 10px; }
.ambient-spark { position: absolute; width: 4px; height: 4px; background: #c69c54; border-radius: 50%; box-shadow: 0 0 8px 2px rgba(212,177,106,.2); opacity: 0; animation: ambient-spark-rise 7s ease-in-out var(--spark-delay,0s) infinite; animation-play-state: paused; }
.spark-1 { left: 9%; top: 19%; }
.spark-2 { right: 4%; top: 38%; }
.spark-3 { left: 3%; top: 68%; }
.spark-4 { right: 9%; top: 80%; }
.hero .ambient-spark,.heritage .ambient-spark,.closing .ambient-spark { background: #ffe4af; }
.ambient-active > .ambient-scene .ambient-spark { animation-play-state: running; }
@keyframes ambient-spark-rise { 0%,100% { opacity: 0; transform: translate3d(0,18px,0) scale(.5); } 35% { opacity: .8; transform: translate3d(9px,-12px,0) scale(1); } 75% { opacity: .3; transform: translate3d(-4px,-42px,0) scale(.7); } }
.chapter-art { width: 100%; transform-origin: center bottom; animation: chapter-art-float 6s ease-in-out infinite alternate; animation-play-state: paused; }
.chapter-gadang.ambient-active .chapter-art { animation-play-state: running; }
@keyframes chapter-art-float { from { transform: perspective(800px) translate3d(0,3px,0) rotateY(-2deg); } to { transform: perspective(800px) translate3d(0,-5px,0) rotateY(2deg); } }
.event-roof { animation: roof-light 5s ease-in-out infinite alternate; animation-play-state: paused; }
.event-card.ambient-active .event-roof { animation-play-state: running; }
@keyframes roof-light { from { opacity: .55; } to { opacity: 1; } }
@media (min-width: 681px) {
  .hanging-left { left: 4%; } .hanging-right { right: 4%; }
  .ambient-leaf { width: 11px; height: 18px; }
}
@media (max-width: 680px) {
  .leaf-5 { left: 1%; } .leaf-6 { right: 2%; }
  .leaf-7 { left: 3%; } .leaf-8 { right: 3%; }
  .leaf-9 { left: 2%; } .leaf-10 { right: 1%; }
  .spark-1 { left: 3%; } .spark-2 { right: 3%; }
  .spark-3 { left: 2%; } .spark-4 { right: 2%; }
  .ambient-leaf { width: 7px; height: 12px; }
}
@media (max-width: 380px), (max-height: 520px) {
  .hanging-ornament { height: 62px; width: 22px; }
}
@media (prefers-reduced-motion: reduce) { .chapter-art,.event-roof { animation: none !important; transform: none !important; } }
.low-power .chapter-art,.low-power .event-roof { animation: none; }
.page-hidden .ambient-spark,.page-hidden .chapter-art,.page-hidden .event-roof { animation-play-state: paused !important; }

/* Three botanical depths on each side; all six remain present on phones. */
.botanical-tree { opacity: .82; }
.botanical-tree-left { left: clamp(-150px,-10vw,-75px); }
.botanical-tree-right { right: clamp(-150px,-10vw,-75px); }
.botanical-tree-back-left,.botanical-tree-back-right { width: clamp(210px,28vw,390px); opacity: .16; top: 38%; }
.botanical-tree-back-left { left: clamp(-150px,-10vw,-80px); --tree-facing: -1; }
.botanical-tree-back-right { right: clamp(-160px,-11vw,-90px); top: 12%; }
.botanical-tree-lower-left,.botanical-tree-lower-right { width: clamp(170px,22vw,300px); top: auto; bottom: -65px; opacity: .65; }
.botanical-tree-lower-left { left: clamp(-120px,-9vw,-65px); }
.botanical-tree-lower-right { right: clamp(-120px,-9vw,-65px); bottom: 6%; --tree-facing: -1; }
.motion-ready .botanical-tree-back-left img,.motion-ready .botanical-tree-back-right img { animation-duration: 12s; animation-delay: -5s; }
.motion-ready .botanical-tree-lower-left img,.motion-ready .botanical-tree-lower-right img { animation-duration: 9s; animation-delay: -2s; }
.botanical-scene-dark .botanical-tree-back-left,.botanical-scene-dark .botanical-tree-back-right { opacity: .15; }
.botanical-scene-dark .botanical-tree-lower-left,.botanical-scene-dark .botanical-tree-lower-right { opacity: .36; }
.countdown-band .botanical-tree-back-left,.countdown-band .botanical-tree-back-right { width: 250px; top: -80px; }
.countdown-band .botanical-tree-lower-left,.countdown-band .botanical-tree-lower-right { width: 190px; top: auto; bottom: -100px; }
@media (max-width: 680px) {
  .botanical-tree-left { left: -82px; }
  .botanical-tree-right { right: -82px; }
  .botanical-tree-back-left,.botanical-tree-back-right { width: 190px; opacity: .21; }
  .botanical-tree-back-left { left: -105px; }
  .botanical-tree-back-right { right: -105px; }
  .botanical-tree-lower-left,.botanical-tree-lower-right { width: 175px; opacity: .7; }
  .botanical-tree-lower-left { left: -90px; }
  .botanical-tree-lower-right { right: -90px; }
  .countdown-band .botanical-tree-back-left,.countdown-band .botanical-tree-back-right { width: 190px; }
  .countdown-band .botanical-tree-lower-left,.countdown-band .botanical-tree-lower-right { width: 155px; }
}

/* Fuller canopy framing: crowns above, groves at mid-height, open center. */
.botanical-tree-canopy-left,.botanical-tree-canopy-right { top: -26px; width: clamp(190px,26vw,340px); height: clamp(130px,19vw,220px); overflow: hidden; opacity: .72; -webkit-mask-image: linear-gradient(to bottom,#000 0 62%,transparent 100%); mask-image: linear-gradient(to bottom,#000 0 62%,transparent 100%); }
.botanical-tree-canopy-left { left: -75px; --tree-facing: -1; }
.botanical-tree-canopy-right { right: -75px; top: -20px; }
.botanical-tree-grove-left,.botanical-tree-grove-right { width: clamp(190px,25vw,350px); height: clamp(170px,25vw,300px); overflow: hidden; top: 49%; opacity: .45; -webkit-mask-image: linear-gradient(to bottom,transparent,#000 10% 60%,transparent 100%); mask-image: linear-gradient(to bottom,transparent,#000 10% 60%,transparent 100%); }
.botanical-tree-grove-left { left: clamp(-160px,-12vw,-90px); }
.botanical-tree-grove-right { right: clamp(-160px,-12vw,-90px); top: 61%; --tree-facing: -1; }
.motion-ready .botanical-tree-canopy-left img,.motion-ready .botanical-tree-canopy-right img { animation-duration: 11s; animation-delay: -4s; transform-origin: 50% 40%; }
.motion-ready .botanical-tree-grove-left img,.motion-ready .botanical-tree-grove-right img { animation-duration: 13s; animation-delay: -7s; }
.botanical-scene-dark .botanical-tree-canopy-left,.botanical-scene-dark .botanical-tree-canopy-right { opacity: .48; }
.botanical-scene-dark .botanical-tree-grove-left,.botanical-scene-dark .botanical-tree-grove-right { opacity: .28; }
.family-inner { background: rgba(255,253,248,.94); }
.countdown-band .botanical-tree-canopy-left,.countdown-band .botanical-tree-canopy-right { width: 230px; top: -45px; }
.countdown-band .botanical-tree-grove-left,.countdown-band .botanical-tree-grove-right { width: 220px; top: 46%; }
@media (max-width: 680px) {
  .botanical-tree-canopy-left,.botanical-tree-canopy-right { width: 175px; height: 130px; top: -18px; }
  .botanical-tree-canopy-left { left: -80px; }
  .botanical-tree-canopy-right { right: -80px; top: -15px; }
  .botanical-tree-grove-left,.botanical-tree-grove-right { width: 170px; height: 175px; opacity: .42; }
  .botanical-tree-grove-left { left: -105px; }
  .botanical-tree-grove-right { right: -105px; }
  .countdown-band .botanical-tree-canopy-left,.countdown-band .botanical-tree-canopy-right { width: 175px; }
  .countdown-band .botanical-tree-grove-left,.countdown-band .botanical-tree-grove-right { width: 170px; }
}

/* Fade illustration boundaries so foliage never ends in a straight cut. */
.botanical-scene { -webkit-mask-image: linear-gradient(to bottom,transparent,#000 32px,#000 calc(100% - 32px),transparent); mask-image: linear-gradient(to bottom,transparent,#000 32px,#000 calc(100% - 32px),transparent); }
.botanical-tree-back-left,.botanical-tree-back-right { -webkit-mask-image: linear-gradient(to bottom,#000 65%,transparent 100%); mask-image: linear-gradient(to bottom,#000 65%,transparent 100%); }
@supports not ((mask-image: linear-gradient(#000,transparent)) or (-webkit-mask-image: linear-gradient(#000,transparent))) {
  .botanical-tree-canopy-left,.botanical-tree-canopy-right,.botanical-tree-grove-left,.botanical-tree-grove-right { height: auto; overflow: visible; }
}

/* Selected cover: Ivory Botanical, live typography over a clean illustration. */
.cover-ivory { background: radial-gradient(ellipse at center,#faf6ed,#ded2bb); color: #671e26; }
.cover-ivory .cover-poster { background: #fbf3e6; box-shadow: 0 16px 65px rgba(89,66,37,.17); }
.cover-ivory .cover-card,.cover-ivory .cover-card.has-personal-guest,.cover-ivory .cover-card.has-long-guest,.cover-ivory .cover-card.has-very-long-guest { top: 23%; bottom: 34%; left: 18%; right: 18%; justify-content: center; gap: .3rem; }
.cover-ivory h1 { font-weight: 400; color: #a77a31; text-shadow: none; font-size: clamp(3rem,8vh,6rem); font-size: clamp(3rem,8svh,6rem); }
.cover-ivory .name-amp { color: #a77a31; }
.cover-ivory .cover-divider { margin: .6rem 0 .9rem; width: 75%; color: #b49355; }
.cover-ivory .cover-divider i { background: #b49355; }
.cover-ivory .guest-label,.cover-ivory .guest-name,.cover-ivory .guest-place { color: #701f29; text-shadow: none; margin: 0; font-size: clamp(1.2rem,3.1vh,2.2rem); font-size: clamp(1.2rem,3.1svh,2.2rem); }
.cover-ivory .guest-recipient { color: #621c25; text-shadow: none; margin: .6rem 0; font: 600 clamp(1rem,2.7vh,1.9rem)/1.15 var(--story-name); font: 600 clamp(1rem,2.7svh,1.9rem)/1.15 var(--story-name); }
.cover-ivory .guest-recipient.long { font-size: clamp(1rem,2.2vh,1.45rem); }
.cover-ivory .guest-recipient.very-long { font-size: clamp(.95rem,1.9vh,1.25rem); }
.cover-ivory .button-gold { width: 100%; min-height: 45px; margin-top: 1rem; padding: .7rem .8rem; border: 1px solid #b68b3c; background: linear-gradient(135deg,#812536,#601522); color: #fff5df; box-shadow: inset 0 0 0 2px #f5e3b4,0 5px 16px rgba(91,42,37,.12); border-radius: 999px; font-size: clamp(.95rem,2.1vh,1.45rem); }
.cover-ivory .button-gold:hover { background: #8b2a3b; }
.cover-garden { position: absolute; z-index: 2; inset: 3%; overflow: hidden; pointer-events: none; }
.cover-branch { position: absolute; width: 30%; height: auto; top: 24%; opacity: .65; transform-origin: center bottom; animation: cover-branch-sway 8s ease-in-out infinite alternate; }
.cover-branch-left { left: -18%; }
.cover-branch-right { right: -18%; top: 38%; --cover-facing: -1; animation-delay: -3s; }
@keyframes cover-branch-sway { from { transform: scaleX(var(--cover-facing,1)) rotate(-2deg); } to { transform: scaleX(var(--cover-facing,1)) rotate(2deg); } }
.cover-garden > i { position: absolute; width: 4px; height: 4px; background: #c49b51; border-radius: 50%; opacity: 0; animation: ambient-spark-rise 7s ease-in-out infinite; }
.cover-garden > i:nth-of-type(1) { left: 15%; top: 35%; }
.cover-garden > i:nth-of-type(2) { right: 16%; top: 57%; animation-delay: -2s; }
.cover-garden > i:nth-of-type(3) { left: 25%; top: 73%; animation-delay: -4s; }
.cover-garden > i:nth-of-type(4) { right: 22%; top: 15%; animation-delay: -5s; }
.cover-closing .cover-garden *,.page-hidden .cover-garden * { animation-play-state: paused !important; }
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .cover-ivory .cover-poster { border: 1px solid #c2a567; }
  .cover-ivory .cover-art { width: 49%; object-fit: fill; }
  .cover-ivory .cover-card,.cover-ivory .cover-card.has-personal-guest,.cover-ivory .cover-card.has-long-guest,.cover-ivory .cover-card.has-very-long-guest { top: 10%; bottom: 10%; left: 56%; right: 7%; gap: .5rem; }
  .cover-ivory .cover-garden { left: 48%; }
  .cover-ivory .cover-branch { width: 45%; opacity: .3; }
  .cover-ivory .cover-branch-left { left: -25%; top: -7%; }
  .cover-ivory .cover-branch-right { right: -25%; top: 50%; }
}
@media (max-width: 899px) and (max-height: 620px) {
  .cover-ivory .cover-poster { height: 640px; min-height: 640px; width: min(100%,426px); }
  .cover-ivory .cover-card,.cover-ivory .cover-card.has-personal-guest,.cover-ivory .cover-card.has-long-guest,.cover-ivory .cover-card.has-very-long-guest { top: 22%; bottom: 32%; gap: .2rem; }
  .cover-ivory h1 { font-size: 3rem; }
  .cover-ivory .guest-label,.cover-ivory .guest-name,.cover-ivory .guest-place { font-size: 1.35rem; }
  .cover-ivory .guest-recipient { font-size: 1.15rem; }
  .cover-ivory .cover-divider { margin: .3rem 0 .5rem; }
}
@media (prefers-reduced-motion: reduce) { .cover-garden * { animation: none !important; } }
.low-power .cover-garden * { animation: none; }
.cover-leaf { position: absolute; width: 9px; height: 16px; border-radius: 85% 5% 85% 5%; background: linear-gradient(135deg,#638052,#a6a96c); opacity: 0; animation: leaf-fall 9s linear infinite; }
.cover-leaf::after { content: ""; position: absolute; left: 48%; top: 10%; height: 80%; width: 1px; background: #ddc89c; transform: rotate(25deg); }
.cover-leaf-1 { left: 9%; top: 15%; animation-delay: -2s; }
.cover-leaf-2 { right: 9%; top: 24%; animation-delay: -5s; background: linear-gradient(135deg,#793b3a,#b07550); }
.cover-leaf-3 { left: 13%; top: 46%; animation-delay: -7s; animation-duration: 11s; }
.cover-leaf-4 { right: 12%; top: 53%; animation-delay: -3s; animation-duration: 10s; }
.cover-leaf-5 { left: 8%; top: 68%; animation-delay: -6s; background: linear-gradient(135deg,#894d38,#b99b60); }
.cover-leaf-6 { right: 6%; top: 74%; animation-delay: -1s; animation-duration: 12s; }
@media (prefers-reduced-motion: reduce) { .cover-leaf { display: none; } }
.low-power .cover-leaf { display: none; }

/* Guest names wrap naturally, on a soft ivory clearing in the garden. */
.cover-ivory .cover-address { position: relative; isolation: isolate; display: grid; gap: .4rem; width: 100%; min-width: 0; padding: .55rem 0; animation: cover-item-in .7s ease .82s both; }
.cover-ivory .cover-address::before { content: ""; position: absolute; z-index: -1; inset: -15px -30px; pointer-events: none; background: radial-gradient(ellipse at center,rgba(255,247,232,.99) 0%,rgba(255,247,232,.97) 52%,rgba(255,247,232,.68) 70%,transparent 100%); }
.cover-ivory .cover-address > p { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; text-wrap: balance; }
.cover-ivory .guest-name { font-size: clamp(1.1rem,2.8vh,2rem); font-size: clamp(1.1rem,2.8svh,2rem); line-height: 1.25; }
.cover-ivory .cover-address .guest-recipient { width: 100%; margin: .3rem 0; line-height: 1.3; }
.cover-ivory .cover-card > * { flex-shrink: 0; }
.cover-ivory .cover-divider { margin: .4rem 0 .55rem; }
.cover-ivory .button-gold { margin-top: .7rem; }
@media (max-width: 899px) {
  .cover-ivory .cover-card,.cover-ivory .cover-card.has-personal-guest,.cover-ivory .cover-card.has-long-guest,.cover-ivory .cover-card.has-very-long-guest { top: 24%; bottom: auto; justify-content: flex-start; }
  .cover-ivory h1 { font-size: clamp(2.8rem,7vh,5.2rem); font-size: clamp(2.8rem,7svh,5.2rem); }
  .cover-ivory .cover-address .guest-recipient.long { font-size: 1.15rem; }
  .cover-ivory .cover-address .guest-recipient.very-long { font-size: 1rem; }
}

/* A short paper fold connects the ivory cover to the Rumah Gadang entrance. */
.cover-ivory { transition: opacity .82s cubic-bezier(.22,.7,.2,1) .5s; }
.cover-fold { position: absolute; z-index: 4; inset: 0; display: none; pointer-events: none; perspective: 900px; }
.cover-fold span { width: 50%; height: 100%; background: linear-gradient(110deg,rgba(255,250,236,.93),rgba(239,223,189,.96)); backface-visibility: hidden; }
.cover-fold span:first-child { transform-origin: left center; border-right: 1px solid #b9904e; }
.cover-fold span:last-child { transform-origin: right center; border-left: 1px solid #b9904e; }
.cover-closing .cover-fold { display: flex; }
.cover-closing .cover-fold span:first-child { animation: cover-fold-left 1.22s cubic-bezier(.2,.75,.18,1) both; }
.cover-closing .cover-fold span:last-child { animation: cover-fold-right 1.22s cubic-bezier(.2,.75,.18,1) both; }
@keyframes cover-fold-left { 0%,14% { transform: rotateY(0); opacity: 1; } 100% { transform: rotateY(-102deg); opacity: 0; } }
@keyframes cover-fold-right { 0%,14% { transform: rotateY(0); opacity: 1; } 100% { transform: rotateY(102deg); opacity: 0; } }
.cover-ivory .cover-branch { animation-name: cover-branch-breathe; }
.cover-branch-upper-left { left: -23%; top: -17%; width: 46%; opacity: .32; animation-duration: 11s; animation-delay: -4s; transform-origin: left top; }
.cover-branch-upper-right { right: -23%; top: -13%; width: 43%; opacity: .34; animation-duration: 12s; animation-delay: -6s; transform-origin: right top; --cover-facing: -1; }
@keyframes cover-branch-breathe { from { transform: scaleX(var(--cover-facing,1)) translate3d(-3px,2px,0) rotate(-1.7deg); } to { transform: scaleX(var(--cover-facing,1)) translate3d(3px,-3px,0) rotate(1.7deg); } }
.cover-leaf-7 { left: 19%; top: 8%; animation-delay: -4s; animation-duration: 12s; background: linear-gradient(135deg,#648261,#b4aa74); }
.cover-leaf-8 { right: 18%; top: 10%; animation-delay: -8s; animation-duration: 13s; background: linear-gradient(135deg,#7b4740,#b98d61); }
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .cover-branch-upper-left { left: -17%; top: -21%; width: 55%; }
  .cover-branch-upper-right { right: -20%; top: -19%; width: 48%; }
}
@media (prefers-reduced-motion: reduce) { .cover-closing .cover-fold { display: none; } .cover-ivory .cover-branch { animation: none; } }
.low-power .cover-closing .cover-fold { display: none; }

/* Let the living garden part before the paper fades into the invitation. */
.cover-ivory { transition: opacity .48s cubic-bezier(.22,.7,.2,1) .64s; }
.cover-ivory.cover-closing .cover-fold { display: none; }
.cover-ivory.cover-closing .cover-card { animation: cover-words-exit .36s ease-in both; }
.cover-ivory.cover-closing .cover-branch-left,
.cover-ivory.cover-closing .cover-branch-upper-left { animation: cover-tree-open-left .96s cubic-bezier(.22,.7,.22,1) both !important; }
.cover-ivory.cover-closing .cover-branch-right,
.cover-ivory.cover-closing .cover-branch-upper-right { animation: cover-tree-open-right .96s cubic-bezier(.22,.7,.22,1) both !important; }
.cover-ivory.cover-closing .cover-leaf { animation: cover-leaf-release .95s ease-out both !important; }
.cover-ivory.cover-closing .cover-branch,.cover-ivory.cover-closing .cover-leaf { animation-play-state: running !important; }

/* Small, typographic scenes punctuate the story as it comes into view. */
.love-story {
  padding: clamp(3.5rem, 8vw, 7.5rem) clamp(1.35rem, 5vw, 4rem);
  background: #faf6ed;
  color: #453832;
}
.love-story-inner { max-width: 56rem; margin-inline: auto; }
.love-story-heading, .story-ending {
  max-width: 35rem;
  margin-inline: auto;
  text-align: center;
}
.love-story-heading h2 {
  margin: 0 0 .8rem;
  color: var(--wine-deep);
  font: 600 clamp(2.7rem, 5vw, 4.3rem)/1.04 var(--story-name);
}
.story-prologue, .story-ending p {
  margin: 0;
  color: #70494a;
  font: italic 500 clamp(1.3rem, 2.2vw, 1.65rem)/1.4 var(--script);
}
.story-moments {
  list-style: none;
  margin: clamp(2rem, 6vw, 4rem) 0;
  padding: 0;
  border-inline-start: 1px solid #dbccb1;
}
.story-moment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1.25rem, 5vw, 4rem);
  padding-block: clamp(1.4rem, 4vw, 2.7rem);
  padding-inline-start: clamp(1.1rem, 4vw, 2.5rem);
}
.story-moment + .story-moment { border-top: 1px solid #e7dcc7; }
.story-moment::before, .story-moment::after {
  position: absolute;
  inset-inline-start: 0;
  content: "";
}
.story-moment::before {
  inset-block: 0;
  width: 1px;
  margin-inline-start: -1px;
  background: #a67c40;
  transform-origin: top;
}
.story-moment::after {
  top: 50%;
  width: .44rem;
  height: .44rem;
  background: #a67c40;
  transform: translate(-58%, -50%) rotate(45deg);
}
.story-narration h3 {
  margin: 0 0 .3rem;
  color: var(--wine-deep);
  font: 600 clamp(1.55rem, 3vw, 2.05rem)/1.12 var(--story-name);
}
.story-narration p {
  margin: 0;
  font: 500 clamp(1.22rem, 2vw, 1.4rem)/1.48 var(--story-serif);
}
.story-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  height: 5.4rem;
  color: #815e2e;
}
.story-letter {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #c4a978;
  border-radius: 50%;
  background: #faf6ed;
  color: var(--wine);
  font: 600 1.45rem/1 var(--story-name);
}
.story-letter--second { color: #815e2e; }
.story-thread {
  position: absolute;
  inset-inline: 9%;
  top: 50%;
  height: 1px;
  background: #c4a978;
}
.story-moment--first .story-letter {
  width: 3.2rem;
  height: 2.25rem;
  border-radius: .2rem;
  box-shadow: 0 2px 0 #d9c6a4;
  transform: rotate(-9deg);
}
.story-moment--first .story-letter--second { transform: rotate(9deg); }
.story-moment--again .story-thread {
  height: 0;
  border-top: 1px dashed #ab8a58;
  background: none;
}
.story-moment--family .story-thread {
  top: auto;
  bottom: .75rem;
}
.story-house {
  position: relative;
  width: 7.25rem;
  max-width: 75%;
  height: auto;
  display: block;
}
.story-art--couple {
  width: min(100%, 14rem);
  height: 6rem;
  align-items: flex-end;
  gap: .3rem;
  margin: 0 auto 1.35rem;
}
.story-art--couple::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b49a6d 30% 70%, transparent);
}
.story-person {
  position: relative;
  display: block;
  width: 2.3rem;
  height: 4.8rem;
}
.story-person--shatfi { color: var(--wine); }
.story-person--rizki { color: #454b3c; }
.story-person-head, .story-person-outfit, .story-person-feet {
  position: absolute;
  display: block;
}
.story-person-head {
  top: .15rem;
  left: .73rem;
  width: .9rem;
  height: 1.06rem;
  z-index: 1;
  border-radius: 48%;
  background: currentColor;
}
.story-person--shatfi .story-person-head {
  left: .56rem;
  width: 1.22rem;
  height: 1.65rem;
  border-radius: 55% 54% 35% 22%;
  transform: rotate(10deg);
}
.story-person--rizki .story-person-head::before {
  content: "";
  position: absolute;
  inset: -.12rem -.04rem auto;
  height: .35rem;
  border-radius: .14rem .14rem .03rem .03rem;
  background: currentColor;
  transform: rotate(-7deg);
}
.story-person-outfit {
  inset: 1.13rem 0 .48rem;
  z-index: 1;
  background: currentColor;
  clip-path: polygon(33% 0, 67% 0, 83% 13%, 89% 40%, 74% 46%, 84% 100%, 16% 100%, 26% 46%, 11% 40%, 17% 13%);
}
.story-person--shatfi .story-person-outfit {
  inset-block-end: .15rem;
  clip-path: polygon(33% 0, 67% 0, 80% 15%, 72% 43%, 100% 98%, 57% 100%, 0 97%, 27% 43%, 21% 15%);
}
.story-person-feet {
  inset: auto .58rem 0;
  height: 1rem;
}
.story-person-feet::before, .story-person-feet::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: .38rem;
  height: 100%;
  border-radius: 0 0 .17rem .17rem;
  background: currentColor;
  transform-origin: top;
}
.story-person-feet::before { left: 0; }
.story-person-feet::after { right: 0; }
.motion-ready .story-moment[data-reveal],
.motion-ready .story-art--couple[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready:not(.low-power) .story-moment:not(.is-visible)::before { transform: scaleY(0); }
  .motion-ready:not(.low-power) .story-moment.is-visible::before {
    animation: story-trace .9s cubic-bezier(.22,.75,.25,1) backwards;
  }
  .motion-ready:not(.low-power) .story-moment.is-visible .story-narration {
    animation: story-narration-in .65s ease-out backwards;
  }
  .motion-ready:not(.low-power) .story-moment--first.is-visible .story-letter {
    --card-angle: -9deg;
    animation: story-card-in .85s cubic-bezier(.22,.75,.25,1) both;
  }
  .motion-ready:not(.low-power) .story-moment--first.is-visible .story-letter--second {
    --card-angle: 9deg;
    animation-delay: .22s;
  }
  .motion-ready:not(.low-power) .story-moment.is-visible .story-letter {
    --story-from: -1.85rem;
    animation: story-meet 1.3s cubic-bezier(.22,.75,.25,1) both;
  }
  .motion-ready:not(.low-power) .story-moment.is-visible .story-letter--second {
    --story-from: 1.85rem;
  }
  .motion-ready:not(.low-power) .story-moment.is-visible .story-thread {
    animation: story-thread-grow 1s ease-out backwards;
  }
  .motion-ready:not(.low-power) .story-moment.is-visible .story-house {
    animation: story-house-in 1.05s cubic-bezier(.22,.75,.25,1) .2s backwards;
  }
  .motion-ready:not(.low-power) .story-art--couple.is-visible .story-person {
    animation: story-walk-in 1.45s cubic-bezier(.28,.63,.34,1) backwards;
  }
  .story-person--shatfi { --walk-from: -2.3rem; }
  .story-person--rizki { --walk-from: 2.3rem; }
  .motion-ready:not(.low-power) .story-art--couple.is-visible .story-person-feet::before,
  .motion-ready:not(.low-power) .story-art--couple.is-visible .story-person-feet::after {
    animation: story-step .56s ease-in-out 2;
  }
  .motion-ready:not(.low-power) .story-art--couple.is-visible .story-person-feet::after {
    animation-direction: reverse;
  }
}
@keyframes story-trace {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes story-narration-in {
  from { opacity: .82; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes story-walk-in {
  from { opacity: .25; transform: translateX(var(--walk-from)); }
  32% { transform: translateX(calc(var(--walk-from) * .57)) translateY(-2px); }
  67% { transform: translateX(calc(var(--walk-from) * .17)) translateY(-1px); }
  to { opacity: 1; transform: none; }
}
@keyframes story-step {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(22deg); }
  75% { transform: rotate(-22deg); }
}
@keyframes story-card-in {
  from { opacity: 0; transform: translateY(12px) rotate(0); }
  to { opacity: 1; transform: rotate(var(--card-angle)); }
}
@keyframes story-meet {
  from { opacity: .3; transform: translateX(var(--story-from)); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes story-thread-grow {
  from { transform: scaleX(.15); opacity: .35; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes story-house-in {
  from { opacity: 0; transform: translateY(9px) scale(.93); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .story-moment { grid-template-columns: minmax(0, 1fr); row-gap: .55rem; }
  .story-moment::after { top: 3.2rem; }
  .story-moment .story-art { width: min(100%, 12rem); height: 4rem; justify-self: center; }
  .story-house { width: 6.1rem; }
  .story-moment--family .story-thread { bottom: 0; }
}
@keyframes cover-words-exit { to { opacity: 0; transform: translateY(-10px); } }
@keyframes cover-tree-open-left { to { opacity: 0; transform: translate3d(-48%,0,0) rotate(-12deg); } }
@keyframes cover-tree-open-right { to { opacity: 0; transform: scaleX(-1) translate3d(-48%,0,0) rotate(-12deg); } }
@keyframes cover-leaf-release { from { opacity: .6; } to { opacity: 0; transform: translate3d(0,75px,0) rotate(140deg); } }

/* Desktop uses a framed landscape invitation rather than an enlarged portrait. */
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .cover-ivory { padding: 24px; background: radial-gradient(ellipse at 50% 43%,#ede1c9 0%,#d7c5a6 55%,#bca37c 100%); }
  .cover-ivory .cover-poster {
    width: min(92vw, 1200px, 136svh);
    height: min(61.4vw, 800px, calc(100svh - 48px));
    min-height: 0;
    background: linear-gradient(112deg,#fcf7ed 50%,#f8efdf 50%,#fbf7ee 100%);
    border: 1px solid #b99b62;
    border-radius: 3px;
    box-shadow: 0 28px 85px rgba(71,44,30,.27),inset 0 0 0 9px #fbf6e9,inset 0 0 0 10px #d7be89;
  }
  .cover-ivory .cover-poster::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 4% 3.5% 4% 53%;
    border: 1px solid rgba(167,122,49,.42);
    pointer-events: none;
  }
  .cover-ivory .cover-art { width: 50%; height: 100%; object-fit: cover; object-position: center; }
  .cover-ivory .cover-card,.cover-ivory .cover-card.has-personal-guest,.cover-ivory .cover-card.has-long-guest,.cover-ivory .cover-card.has-very-long-guest {
    top: 8%; bottom: 8%; left: 57%; right: 7.5%; gap: .15rem;
  }
  .cover-ivory h1 { font-size: clamp(3.3rem,6.3svh,5.2rem); }
  .cover-ivory .cover-address { gap: .3rem; }
  .cover-ivory .cover-divider { margin: .25rem 0 .45rem; }
  .cover-ivory .cover-garden { left: 0; }
  .cover-ivory .cover-branch { width: 25%; opacity: .34; }
  .cover-ivory .cover-branch-left { left: -11%; top: 36%; }
  .cover-ivory .cover-branch-right { right: -11%; top: 42%; }
  .cover-ivory .cover-branch-upper-left { left: -11%; top: -22%; width: 35%; }
  .cover-ivory .cover-branch-upper-right { right: -11%; top: -20%; width: 32%; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-ivory.cover-closing .cover-card,.cover-ivory.cover-closing .cover-branch,.cover-ivory.cover-closing .cover-leaf { animation: none !important; }
}
