/* ==================================================================
   Pristage Hjr — "Laman" cinematic wedding website (5.4)
   Container-query layout (.wb is the container): phone-like in a narrow
   frame, a full website on a wide screen. Motion = transform / opacity.
   ================================================================== */
.pr-phone.wb-phone{ aspect-ratio:390 / 844; }
.pr-card.wb-host{ aspect-ratio:auto; height:100%; overflow:hidden; background:var(--wb-paper); color:var(--wb-ink); }
.wb-scroll{ position:absolute; inset:0; overflow-y:auto; overflow-x:hidden; scroll-behavior:smooth; overscroll-behavior:contain; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.wb{
    container-type:inline-size; container-name:wb; position:relative; overflow:hidden;
    font-family:var(--wb-display), "Cormorant Garamond", Georgia, serif; color:var(--wb-ink);
    --wb-pad:clamp(20px, 6cqi, 88px);
}
.wb *, .wb *::before, .wb *::after{ box-sizing:border-box; }
.wb img{ max-width:100%; display:block; }
.wb a{ color:inherit; }
.wb-wrap{ position:relative; z-index:2; max-width:1180px; margin:0 auto; padding:0 var(--wb-pad); }
.wb-kicker{ margin:0 0 10px; font:500 clamp(10px, 1.6cqi, 13px)/1.2 "Cinzel", Georgia, serif; letter-spacing:.32em; text-transform:uppercase; color:var(--wb-accent); }
.wb h2{ margin:0 0 14px; font-weight:400; font-size:clamp(30px, 6cqi, 56px); line-height:1.08; letter-spacing:-.01em; }
.wb-text{ margin:0 0 18px; font-size:clamp(16px, 2.6cqi, 19px); line-height:1.7; opacity:.86; max-width:34em; }
.wb-small{ font-size:15px; opacity:.85; }
.wb-sub{ margin:-4px 0 0; font-style:italic; opacity:.75; font-size:clamp(15px, 2.4cqi, 18px); }
.wb-center{ text-align:center; }
.wb-center .wb-text{ margin-left:auto; margin-right:auto; }
.wb-head{ text-align:center; margin-bottom:clamp(24px, 5cqi, 48px); }
.wb-sec{ position:relative; }
.wb-sec[data-hidden="1"]{ display:none !important; }
.pr-card.pr-hide-premium .wb-sec[data-prem="1"]{ display:none; }

/* buttons */
.wb-btn{
    display:inline-flex; align-items:center; gap:12px; padding:13px 26px; border-radius:99px;
    background:rgba(255,255,255,.92); color:#2a211c !important; text-decoration:none;
    font:600 13px/1 "Cinzel", Georgia, serif; letter-spacing:.14em; text-transform:uppercase;
    box-shadow:0 12px 30px rgba(0,0,0,.18); transition:transform .3s ease, box-shadow .3s ease;
}
.wb-btn:hover{ transform:translateY(-2px); box-shadow:0 18px 38px rgba(0,0,0,.24); }
.wb-btn span{ transition:transform .3s ease; }
.wb-btn:hover span{ transform:translateX(4px); }
.wb-btn-ghost{ background:transparent; color:#fff !important; border:1px solid rgba(255,255,255,.55); box-shadow:none; }
.wb-btn-light{ background:rgba(255,255,255,.88); }
.wb-link{ display:inline-block; margin-top:10px; font:600 12px/1 "Cinzel", Georgia, serif; letter-spacing:.12em; text-transform:uppercase; text-decoration:none; border-bottom:1px solid currentColor; padding-bottom:3px; }

/* nav */
.wb-nav{
    position:sticky; top:0; z-index:40; height:72px; margin-bottom:-72px;
    display:flex; align-items:center; justify-content:space-between; padding:0 var(--wb-pad);
    color:#fff; transition:background .45s ease, color .45s ease, box-shadow .45s ease;
}
.wb-nav.is-solid{ background:color-mix(in srgb, var(--wb-paper) 82%, transparent); color:var(--wb-ink); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:0 1px 0 color-mix(in srgb, var(--wb-ink) 10%, transparent); }
.wb-brand{ display:flex; align-items:center; gap:10px; font:400 24px/1 var(--wb-display), Georgia, serif; letter-spacing:.06em; }
.wb-brand i{ width:1px; height:26px; background:currentColor; opacity:.6; }
.wb-links{ display:flex; gap:clamp(18px, 3cqi, 36px); font:500 13px/1 var(--wb-display), Georgia, serif; letter-spacing:.06em; }
.wb-links a{ text-decoration:none; opacity:.85; padding:6px 0; border-bottom:1px solid transparent; transition:opacity .2s, border-color .2s; }
.wb-links a:hover{ opacity:1; border-bottom-color:currentColor; }
.wb-burger{ display:none; width:36px; height:36px; border:0; background:transparent; color:inherit; padding:8px; cursor:pointer; }
.wb-burger i{ display:block; height:1.5px; background:currentColor; margin:5px 0; }
@container wb (max-width:720px){
    .wb-links{ position:absolute; top:64px; right:12px; flex-direction:column; gap:4px; padding:10px 18px; border-radius:14px;
        background:color-mix(in srgb, var(--wb-paper) 94%, transparent); color:var(--wb-ink); box-shadow:0 16px 40px rgba(0,0,0,.18);
        opacity:0; transform:translateY(-8px); pointer-events:none; transition:opacity .25s, transform .25s; }
    .wb-links.is-open{ opacity:1; transform:none; pointer-events:auto; }
    .wb-links a{ padding:10px 0; font-size:15px; }
    .wb-burger{ display:block; }
}

/* hero */
.wb-hero{ min-height:max(640px, 100svh); display:flex; align-items:center; overflow:hidden; color:#fff; }
.wb-photo{ position:absolute; inset:-6% 0; z-index:0; will-change:transform; }
.wb-photo img{ width:100%; height:100%; object-fit:cover; animation:wb-kenburns 18s ease-out both; }
.wb-photo.is-empty{ display:none; }
@keyframes wb-kenburns{ from{ transform:scale(1.12); } to{ transform:scale(1); } }
.wb-veil{ position:absolute; inset:0; z-index:1; pointer-events:none;
    background:linear-gradient(90deg, rgba(20,12,8,.55) 0%, rgba(20,12,8,.18) 55%, rgba(20,12,8,0) 80%), linear-gradient(0deg, rgba(20,12,8,.35), transparent 40%); }
.wb-hero-in{ position:relative; z-index:3; width:100%; max-width:1180px; margin:0 auto; padding:120px var(--wb-pad) 140px; }
.wb-hero .wb-kicker{ color:rgba(255,255,255,.85); }
.wb-names{ margin:0 0 14px; font-weight:400; font-size:clamp(42px, 10cqi, 104px); line-height:1; letter-spacing:.01em; text-shadow:0 4px 30px rgba(0,0,0,.25); }
.wb-names em{ font-family:var(--px-script), "Great Vibes", cursive; font-style:normal; font-size:.72em; color:var(--wb-metal); padding:0 .06em; }
.wb-tagline{ margin:0 0 26px; max-width:22em; font-style:italic; font-size:clamp(17px, 3cqi, 24px); opacity:.92; }
.wb-when{ display:flex; align-items:center; gap:14px; margin:0 0 8px; font-size:clamp(17px, 3cqi, 24px); letter-spacing:.08em; }
.wb-when i{ width:40px; height:1px; background:currentColor; opacity:.7; }
.wb-where{ display:flex; align-items:center; gap:8px; margin:0 0 30px; font-size:16px; opacity:.9; }
.wb-where svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; }
.wb-hero-in > *{ animation:wb-rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.wb-hero-in > :nth-child(2){ animation-delay:.12s; } .wb-hero-in > :nth-child(3){ animation-delay:.24s; }
.wb-hero-in > :nth-child(4){ animation-delay:.36s; } .wb-hero-in > :nth-child(5){ animation-delay:.46s; } .wb-hero-in > :nth-child(6){ animation-delay:.58s; }
@keyframes wb-rise{ from{ opacity:0; transform:translate3d(0,26px,0); } to{ opacity:1; transform:none; } }
.wb-scrolldown{ position:absolute; z-index:3; left:50%; bottom:26px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px; color:#fff; text-decoration:none; font-size:12px; letter-spacing:.2em; text-transform:uppercase; opacity:.85; }
.wb-scrolldown i{ width:24px; height:38px; border:1.5px solid currentColor; border-radius:14px; position:relative; }
.wb-scrolldown i::after{ content:''; position:absolute; left:50%; top:7px; width:3px; height:8px; margin-left:-1.5px; border-radius:2px; background:currentColor; animation:wb-wheel 1.8s ease-in-out infinite; }
@keyframes wb-wheel{ 0%{ transform:none; opacity:1; } 70%{ transform:translateY(12px); opacity:0; } 100%{ opacity:0; } }

/* painted scenes (used when there is no couple photo, and behind event / RSVP):
   one still bitmap each, cheap to draw while scrolling */
.wb-scene{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.wb-scene i{ position:absolute; inset:0; display:block; background:center / cover no-repeat; }
.wb-scene-hero .wb-sky{ inset:-8% 0; will-change:transform; }
.wb-scene-sunset .wb-sky{ background-image:url(../garden/scene-sunset.webp); background-position:70% 50%; }
.wb-scene-garden .wb-sky{ background-image:url(../garden/scene-garden.webp); }
.wb-scene-night .wb-sky{ background-image:url(../garden/scene-night.webp); background-position:40% 50%; }
.wb-night .wb-veil{ background:linear-gradient(90deg, rgba(8,10,28,.6), rgba(8,10,28,.15) 60%, transparent), linear-gradient(0deg, rgba(8,10,28,.45), transparent 45%); }
.wb-garden .wb-hero{ color:#2f3326; }
.wb-garden .wb-hero .wb-veil{ background:linear-gradient(90deg, rgba(250,248,240,.78) 0%, rgba(250,248,240,.35) 55%, transparent 80%); }
.wb-garden .wb-hero .wb-kicker{ color:var(--wb-accent); }
.wb-garden .wb-hero:has(.wb-photo:not(.is-empty)){ color:#fff; }
.wb-garden .wb-hero:has(.wb-photo:not(.is-empty)) .wb-veil{ background:linear-gradient(90deg, rgba(20,24,16,.55), transparent 75%); }
.wb-garden .wb-scrolldown{ color:var(--wb-deep); }
.wb-garden .wb-nav:not(.is-solid){ color:var(--wb-ink); }

/* florals framing a section */
.wb-flora{ position:absolute; inset:0; z-index:2; pointer-events:none; }
.wb-fl{ position:absolute; }
.wb-flora-hero .wb-fl{ will-change:transform; }
.wb-flora-hero .wb-fl-a{ width:min(30cqi, 320px); left:-4%; bottom:-6%; }
.wb-flora-hero .wb-fl-b{ width:min(20cqi, 210px); left:17%; bottom:-5%; }
.wb-flora-hero .wb-fl-c{ width:min(26cqi, 280px); right:-4%; bottom:-6%; }
.wb-flora-hero .wb-fl-d{ width:min(12cqi, 120px); right:18%; bottom:-2%; }
.wb-flora-hero .wb-fl-e{ width:min(11cqi, 110px); left:-2%; bottom:16%; opacity:.85; }
.wb-flora-story{ inset:-10% -8%; }
.wb-flora-story .wb-fl-a{ width:36%; left:-6%; top:-4%; }
.wb-flora-story .wb-fl-b{ width:30%; right:-4%; bottom:-2%; }
.wb-flora-story .wb-fl-c{ width:26%; left:4%; bottom:0; }
.wb-flora-story .wb-fl-d{ width:18%; right:6%; top:2%; }
.wb-flora-story .wb-fl-e{ display:none; }

/* torn paper edges */
.wb-edge{ position:absolute; left:0; width:100%; height:clamp(26px, 5cqi, 54px); z-index:3; fill:var(--wb-paper); }
.wb-edge-top{ top:0; transform:translateY(-98%) scaleY(-1); }

/* story */
.wb-story{ padding:clamp(64px, 12cqi, 140px) 0; background:radial-gradient(90% 60% at 80% 30%, color-mix(in srgb, var(--wb-soft) 70%, transparent), transparent 70%), var(--wb-paper); }
.wb-split{ display:grid; grid-template-columns:1fr; gap:clamp(36px, 7cqi, 80px); align-items:center; }
@container wb (min-width:760px){ .wb-split{ grid-template-columns:1fr 1fr; } }
.wb-polaroids{ position:relative; min-height:clamp(300px, 52cqi, 460px); }
.wb-pola{ position:absolute; z-index:3; margin:0; padding:12px 12px 46px; background:#fff; box-shadow:0 22px 50px rgba(40,24,12,.22); }
.wb-pola img, .wb-pola .wb-ph{ width:100%; aspect-ratio:4 / 5; object-fit:cover; display:grid; place-items:center; }
.wb-pola.a{ width:min(62%, 300px); left:12%; top:6%; transform:rotate(-5deg); }
.wb-pola.b{ width:min(48%, 230px); right:6%; top:26%; transform:rotate(6deg); z-index:4; }
.wb-pola figcaption{ position:absolute; left:0; right:0; bottom:10px; text-align:center; font:26px/1 var(--px-script), cursive; color:#6b5a4d; }
.wb-ph{ background:linear-gradient(160deg, color-mix(in srgb, var(--wb-accent) 22%, #fff), color-mix(in srgb, var(--wb-soft) 80%, #fff)); }
.wb-ph b{ font:400 64px/1 var(--px-script), cursive; color:var(--wb-accent); }
.wb-night .wb-story{ background:radial-gradient(90% 60% at 80% 30%, rgba(90,80,140,.35), transparent 70%), var(--wb-paper); }

/* event */
.wb-event{ padding:clamp(80px, 14cqi, 160px) 0 clamp(70px, 12cqi, 130px); color:#fff; overflow:hidden; }
.wb-event .wb-veil{ background:linear-gradient(180deg, rgba(20,12,8,.25), rgba(20,12,8,.45)); }
.wb-garden .wb-event{ color:var(--wb-ink); }
.wb-garden .wb-event .wb-veil{ background:linear-gradient(180deg, rgba(250,248,240,.45), rgba(250,248,240,.6)); }
.wb-event .wb-kicker{ color:rgba(255,255,255,.85); }
.wb-garden .wb-event .wb-kicker{ color:var(--wb-accent); }
.wb-cards{ display:grid; grid-template-columns:1fr; gap:18px; max-width:980px; margin:0 auto; }
@container wb (min-width:700px){ .wb-cards{ grid-template-columns:repeat(3, 1fr); } }
.wb-glass{
    padding:28px 22px; text-align:center; border-radius:18px;
    background:color-mix(in srgb, #ffffff 16%, transparent); border:1px solid rgba(255,255,255,.35);
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
    box-shadow:0 20px 50px rgba(0,0,0,.14);
}
.wb-garden .wb-glass{ background:color-mix(in srgb, #ffffff 62%, transparent); border-color:rgba(255,255,255,.8); }
.wb-glass svg{ width:34px; height:34px; margin:0 auto 10px; display:block; fill:none; stroke:currentColor; stroke-width:1.3; opacity:.9; }
.wb-glass h3{ margin:0 0 10px; font-weight:500; font-size:24px; }
.wb-glass p{ margin:0 0 4px; }
.wb-countdown{ --pr-u:clamp(1.1px, .3cqi, 1.7px); margin:34px auto 26px; max-width:520px; }
.wb-countdown .pr-countdown{ color:inherit; }

/* gallery */
.wb-gallery{ padding:clamp(70px, 12cqi, 140px) 0; background:var(--wb-paper); }
.wb-galwrap{ --pr-u:clamp(1.05px, .26cqi, 1.5px); max-width:760px; margin:0 auto; }

/* RSVP */
.wb-rsvp{ padding:clamp(90px, 15cqi, 170px) 0; color:#fff; overflow:hidden; }
.wb-rsvp .wb-veil{ background:linear-gradient(180deg, rgba(20,12,8,.35), rgba(20,12,8,.6)); }
.wb-garden .wb-rsvp{ color:var(--wb-ink); }
.wb-garden .wb-rsvp .wb-veil{ background:linear-gradient(180deg, rgba(250,248,240,.55), rgba(250,248,240,.75)); }
.wb-rsvp .wb-kicker{ color:rgba(255,255,255,.85); }
.wb-garden .wb-rsvp .wb-kicker{ color:var(--wb-accent); }
.wb-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:8px 0 28px; }
.wb-garden .wb-btn-ghost{ color:var(--wb-ink) !important; border-color:color-mix(in srgb, var(--wb-ink) 40%, transparent); }
.wb-gift{ max-width:340px; margin:0 auto; }
.wb-gift img{ max-width:170px; margin:6px auto 12px; border-radius:10px; background:#fff; padding:8px; }

/* footer */
.wb-foot{ position:relative; z-index:2; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:14px 18px; padding:28px var(--wb-pad); background:color-mix(in srgb, var(--wb-deep) 92%, #000); color:rgba(255,255,255,.8); font-size:15px; letter-spacing:.06em; }
.wb-foot-names{ font:28px/1 var(--px-script), cursive; color:#fff; }
.wb-foot-line{ width:50px; height:1px; background:currentColor; opacity:.6; }
.wb-tag{ color:var(--wb-metal); }

/* floating petals / lanterns (added by web.js) */
.wb-airbox{ position:absolute; inset:0; z-index:2; pointer-events:none; overflow:hidden; }
.wb-petal{ position:absolute; top:-6%; width:18px; will-change:transform, opacity; animation:wb-fall var(--dur) linear var(--dl) infinite; }
.wb-petal img{ width:100%; }
@keyframes wb-fall{ 0%{ transform:translate3d(0,0,0) rotate(0); opacity:0; } 10%{ opacity:.9; } 50%{ transform:translate3d(calc(var(--dx) * .6),calc(var(--fall, 700px) * .5),0) rotate(150deg) scaleX(.7); } 100%{ transform:translate3d(var(--dx),var(--fall, 700px),0) rotate(300deg); opacity:0; } }
.wb-lantern{
    position:absolute; bottom:-10%; width:14px; height:18px; border-radius:6px 6px 8px 8px;
    background:radial-gradient(circle at 50% 60%, #fff3c4, #ffb45a 55%, #d9702a);
    box-shadow:0 0 18px 6px rgba(255,170,80,.45);
    will-change:transform, opacity; animation:wb-rise-l var(--dur) linear var(--dl) infinite;
}
@keyframes wb-rise-l{ 0%{ transform:translate3d(0,0,0) scale(var(--s)); opacity:0; } 12%{ opacity:1; } 100%{ transform:translate3d(var(--dx),calc(var(--fall, 700px) * -1),0) scale(var(--s)); opacity:0; } }

/* reveal on scroll (web.js adds .is-in) */
.wb [data-wb-reveal]{ opacity:0; transform:translate3d(0,42px,0); transition:opacity 1s cubic-bezier(.2,.8,.2,1) var(--d, 0s), transform 1.1s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.wb [data-wb-reveal="left"]{ transform:translate3d(-60px,0,0); }
.wb [data-wb-reveal="right"]{ transform:translate3d(60px,0,0); }
.wb [data-wb-reveal="zoom"]{ transform:scale(.92); }
.wb [data-wb-reveal].is-in{ opacity:1; transform:none; }
.pr-card.is-static .wb [data-wb-reveal], .pr-card.pr-flat .wb [data-wb-reveal]{ opacity:1; transform:none; transition:none; }
.pr-card.is-static .wb-scroll{ overflow:hidden; }
.pr-card.is-static .wb-hero{ min-height:844px; }
/* thumbnails: the phone-size Laman (390 x 844) scaled down whole by web.js */
.wb-stage.is-thumb{ position:relative; display:block; overflow:hidden; }
.wb-stage.is-thumb > .wb-phone{ width:390px !important; max-width:none !important; height:844px !important; aspect-ratio:auto; transform-origin:0 0; }
@container wb (max-width:560px){ .wb-hero{ min-height:max(560px, calc(100cqi * 1.9)); } }

/* guest page: the Laman fills the whole screen */
.pg-guest:has(.wb-host) .pr-phone.wb-phone,
.pg-guest .pr-phone.wb-phone{ width:100vw; max-width:none; height:100svh; aspect-ratio:auto; border-radius:0; box-shadow:none; }
.pg-guest:has(.wb-host) .pg-guest-stage{ padding:0; }

/* dialogs inside a Laman sit over the whole screen */
.wb-host > .px-dlg{ position:fixed; }
.wb-host .px-lb{ position:fixed; }

@media (prefers-reduced-motion:reduce){
    .wb [data-wb-reveal]{ opacity:1 !important; transform:none !important; }
    .wb-petal, .wb-lantern, .wb-photo img{ animation:none !important; }
    .wb-petal, .wb-lantern{ display:none; }
}

/* particles rest while their section is off screen (web.js toggles .is-vis) */
.wb-sec:not(.is-vis) .wb-petal, .wb-sec:not(.is-vis) .wb-lantern{ animation-play-state:paused; }

/* ---- 5.5: each Laman has its own entrance and reveal language ---- */
/* Taman Kaca: words come out of soft focus; motes of light rise slowly */
.wb-garden .wb-hero-in > *{ animation-name:wb-focus; animation-duration:1.6s; }
@keyframes wb-focus{ from{ opacity:0; filter:blur(8px); transform:translate3d(0,8px,0); } to{ opacity:1; filter:none; transform:none; } }
.wb-garden [data-wb-reveal]{ filter:blur(6px); transition:opacity 1.2s ease var(--d, 0s), transform 1.3s cubic-bezier(.2,.8,.2,1) var(--d, 0s), filter 1.2s ease var(--d, 0s); }
.wb-garden [data-wb-reveal].is-in{ filter:none; }
.wb-mote{
    position:absolute; bottom:-4%; width:6px; height:6px; border-radius:50%;
    background:radial-gradient(circle, #fffef2 0 30%, rgba(255,250,215,.55) 55%, rgba(255,250,215,0) 72%);
    opacity:0; will-change:transform, opacity;
    animation:wb-mote var(--dur) ease-in-out var(--dl) infinite;
}
@keyframes wb-mote{ 0%{ transform:translate3d(0,0,0) scale(var(--s)); opacity:0; } 15%{ opacity:.9; } 100%{ transform:translate3d(var(--dx),calc(var(--fall, 700px) * -1),0) scale(var(--s)); opacity:0; } }
.wb-sec:not(.is-vis) .wb-mote{ animation-play-state:paused; }
/* Malam Tanglung: names kindle out of the dark */
.wb-night .wb-hero-in > *{ animation-name:wb-kindle; animation-duration:1.9s; }
@keyframes wb-kindle{ from{ opacity:0; text-shadow:0 0 34px rgba(255,210,150,.95); } to{ opacity:1; text-shadow:0 4px 30px rgba(0,0,0,.25); } }
.wb-night [data-wb-reveal]{ transform:scale(.97); }
.wb-night [data-wb-reveal].is-in{ transform:none; }
/* Senja: the default — a long, warm rise (kept) */
@media (prefers-reduced-motion:reduce){ .wb-mote{ display:none; } .wb-garden [data-wb-reveal]{ filter:none !important; } }

/* 6.1.0: the song's button on a Laman sits low on the right, clear of the menu */
.pr-card.wb-host > .pr-music-toggle{ top:auto; bottom:18px; right:18px; z-index:35; }

