/* =========================================================================
   Tema Afterglow — cahaya senja setelah matahari terbenam. (Exclusive)

   Titik tolaknya video: langit biru malam yang memudar ke oranye persik,
   bunga bougainvillea merah muda yang menjuntai dari atas dan tumbuh dari
   bawah, dengan ruang langit lapang di tengah.

   Gagasan utama: JENDELA LENGKUNG DI SENJA HARI. Sampul menaruh teks di
   panel gading berbentuk lengkung (kaca berembun, garis emas ganda) di atas
   langit; kelopak melayang turun pelan. Isi undangan berupa kartu kertas
   gading dengan pita tipis warna langit senja di tepi atasnya; penanda
   kecilnya adalah bunga bougainvillea tiga helai: hiasan judul, lencana
   foto mempelai (bingkai lengkung, cincin emas), penanda acara dan cerita.
   Hitung mundur = empat cakram gading bercincin emas. Penutup = langit
   senja (biru malam ke persik), berakhir di potongan bunga dari video.
   Warna: indigo-senja (utama), emas-cahaya, mawar-bunga, gading, persik.
   Huruf: Allura (nama), Italiana (judul), Cormorant (kutipan), Jost (teks).
   ========================================================================= */

:root {
    --c-paper: #F8EFE9;
    --c-ink: #2B2A4A;
    --c-accent: #4F4C80;

    --c-muted: color-mix(in srgb, var(--c-ink) 70%, var(--c-paper));
    --c-rule: color-mix(in srgb, var(--c-accent) 16%, var(--c-paper));
    --c-sunk: color-mix(in srgb, var(--c-accent) 6%, var(--c-paper));
    --c-action: var(--c-accent);

    --f-display: 'Italiana', 'Cormorant Garamond', Georgia, serif;
    --f-names: 'Allura', 'Great Vibes', cursive;
    --f-quote: 'Cormorant Garamond', Georgia, serif;
    --f-body: 'Jost', system-ui, sans-serif;
    --f-script: var(--f-names);

    --agl-glow: #D9B26F;
    --agl-gold: #C99F55;
    --agl-ivory: #FFFBF6;
    --agl-bloom: #F2B3A8;
    --agl-rose: #D98F86;
    --agl-navy: #232A52;
    --agl-navy-2: #3E3F6E;
    --agl-mauve: #8E7C8C;
    --agl-peach: #D9A98C;

    --agl-card: rgb(255 251 246 / .86);
    --agl-line: color-mix(in srgb, var(--agl-gold) 38%, transparent);
    --agl-dusk: linear-gradient(90deg, var(--agl-navy-2), var(--agl-mauve) 55%, var(--agl-peach));
    --agl-gold-grad: linear-gradient(180deg, #f3d99f 0%, #c99f55 100%);

    /* Bunga bougainvillea tiga helai, dipakai sebagai lencana & penanda. */
    --agl-flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23F2B3A8' stroke='%23D98F86' stroke-width='.6'%3E%3Cellipse cx='12' cy='7' rx='5' ry='7'/%3E%3Cellipse cx='12' cy='7' rx='5' ry='7' transform='rotate(120 12 12)'/%3E%3Cellipse cx='12' cy='7' rx='5' ry='7' transform='rotate(240 12 12)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23fbf1de' stroke='%23C99F55' stroke-width='.6'/%3E%3Ccircle cx='12' cy='12' r='1' fill='%23C99F55'/%3E%3C/svg%3E");
}

body.inv.agl {
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: .95rem;
    line-height: 1.8;
    background:
        radial-gradient(ellipse 90% 22% at 50% 0, rgb(190 190 214 / .55), transparent 72%),
        radial-gradient(ellipse 90% 26% at 50% 100%, rgb(240 188 160 / .5), transparent 72%),
        var(--c-paper);
    background-attachment: fixed;
}

/* Nama pasangan tersusun: nama · & · nama */
.agl .agl-names { display: grid; justify-items: center; align-content: center; max-width: 100%; margin: 0; font: 400 4.6rem/1.05 var(--f-names); }
.agl .agl-name {
    display: block; max-width: 100%; padding: .04em .14em; overflow-wrap: anywhere;
    color: var(--c-accent);
}
.agl .agl-amp { display: flex; align-items: center; gap: .8rem; width: min(12rem, 70%); margin: 0; }
.agl .agl-amp i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--agl-gold)); }
.agl .agl-amp i:last-child { background: linear-gradient(270deg, transparent, var(--agl-gold)); }
.agl .agl-amp em { color: var(--agl-gold); font: 400 2.1rem/1 var(--f-names); }

/* ---------------------------------------------------------- sampul video */

.agl .inv-cover.agl-cover { padding: 0; display: block; overflow: hidden; background: var(--agl-navy); }

/* Panggung 4:7 (sama dengan video) selalu MENUTUPI layar — panel teks (cqw/%)
   tetap di tengah ruang langit, bunga di atas & bawah tetap terlihat,
   di ukuran layar apa pun. */
.agl-stage {
    position: absolute; left: 50%; top: 50%;
    width: max(100vw, 100dvh * 4 / 7); aspect-ratio: 4 / 7;
    transform: translate(-50%, -50%);
    container-type: inline-size;
}
.agl-stage__poster, .agl-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agl-stage.is-playing .agl-stage__poster { opacity: 0; }

/* Kelopak melayang: --x posisi mendatar, --s ukuran, --t lama jatuh, --w jeda
   awal, --r putaran, --sw ayunan. Turun dari atas ke bawah, berayun halus. */
.agl-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.agl-petals i {
    position: absolute; top: -6cqw; left: var(--x); width: var(--s, 3cqw); aspect-ratio: 1 / 1.35; opacity: 0;
    border-radius: 100% 0 100% 0; background: linear-gradient(135deg, #f8c9bf, var(--agl-bloom) 55%, #e49b92);
    box-shadow: inset 0 0 0 .2cqw rgb(217 143 134 / .5);
    animation: agl-drift var(--t, 16s) linear infinite; animation-delay: var(--w, 0s);
}
.agl-petals i:nth-child(1) { --x: 18%; --s: 3.2cqw; --t: 17s; --w: 2s;  --sw: 9cqw;  --r: 380deg; }
.agl-petals i:nth-child(2) { --x: 38%; --s: 2.4cqw; --t: 21s; --w: 7s;  --sw: -7cqw; --r: -320deg; }
.agl-petals i:nth-child(3) { --x: 58%; --s: 3.6cqw; --t: 18s; --w: 11s; --sw: 8cqw;  --r: 420deg; }
.agl-petals i:nth-child(4) { --x: 76%; --s: 2.6cqw; --t: 23s; --w: 4s;  --sw: -9cqw; --r: -400deg; }
.agl-petals i:nth-child(5) { --x: 28%; --s: 2.2cqw; --t: 25s; --w: 14s; --sw: 6cqw;  --r: 300deg; }
.agl-petals i:nth-child(6) { --x: 88%; --s: 3cqw;   --t: 19s; --w: 9s;  --sw: -6cqw; --r: -360deg; }
@keyframes agl-drift {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0); }
    8%   { opacity: .9; }
    50%  { transform: translate(var(--sw), 90cqw) rotate(calc(var(--r) * .5)); }
    92%  { opacity: .85; }
    100% { opacity: 0; transform: translate(calc(var(--sw) * -.4), 180cqw) rotate(var(--r)); }
}

/* Panel lengkung: kaca berembun gading + garis emas ganda. */
.agl-cover__text {
    position: absolute; top: 16%; bottom: 15%; left: 14cqw; right: 14cqw;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: .6cqw;
    padding: 12cqw 5cqw 6cqw; text-align: center; color: var(--c-ink);
    border: 1px solid rgb(201 159 85 / .85); border-radius: 999px 999px 5cqw 5cqw;
    background: linear-gradient(180deg, rgb(255 251 246 / .56), rgb(255 247 240 / .5));
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    box-shadow: 0 0 0 1.2cqw rgb(255 251 246 / .22), 0 4cqw 8cqw -3cqw rgb(35 42 82 / .5), inset 0 1px 0 rgb(255 255 255 / .8);
    animation: agl-rise 1.2s var(--ease) both;
}
.agl-cover__text::before {
    content: ''; position: absolute; inset: 1.8cqw; border: 1px solid rgb(201 159 85 / .45);
    border-radius: 999px 999px 3.4cqw 3.4cqw; pointer-events: none;
}
.agl-stage.is-playing .agl-cover__text { animation-delay: 3s; }
@keyframes agl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.agl-cover__bloom { width: 24cqw; height: auto; margin-bottom: .6cqw; }
.agl-cover__label { margin: 0; font: 500 2.5cqw/1.2 var(--f-body); letter-spacing: .36em; text-transform: uppercase; color: #8a6a2f; }
.agl-cover__names { font-size: 16cqw; margin-top: .6cqw; }
.agl-cover__names .agl-amp { margin: -1.2cqw 0; gap: 3cqw; }
.agl-cover__names .agl-amp em { font-size: 8cqw; line-height: .8; }
.agl-cover__date {
    display: flex; align-items: center; gap: 2cqw; margin: 1.2cqw 0 0; white-space: nowrap;
    font: 400 4.2cqw/1.25 var(--f-display); letter-spacing: .08em; color: var(--c-ink);
}
.agl-cover__date::before, .agl-cover__date::after { content: ''; width: 5cqw; height: 1px; background: linear-gradient(90deg, transparent, var(--agl-gold)); }
.agl-cover__date::after { background: linear-gradient(270deg, transparent, var(--agl-gold)); }
.agl-cover__to { margin: 1.6cqw 0 0; }
.agl-cover__to p { margin: 0; font-size: 2.6cqw; line-height: 1.35; color: color-mix(in srgb, var(--c-ink) 78%, transparent); }
.agl-cover__guest { margin-top: .4cqw !important; font: 400 5cqw/1.2 var(--f-display) !important; color: var(--c-ink) !important; overflow-wrap: anywhere; }

.agl-open {
    margin-top: 1.8cqw; padding: 2.5cqw 7cqw; border: 1px solid var(--agl-navy); border-radius: 999px;
    background: linear-gradient(180deg, var(--agl-navy-2), var(--agl-navy)); color: #fff7e8; font: 600 2.8cqw/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
    box-shadow: 0 0 0 1cqw rgb(201 159 85 / .25), 0 2.6cqw 4.6cqw -2.4cqw rgb(35 42 82 / .8);
    transition: transform .25s ease, box-shadow .25s ease;
}
.agl-open:hover { transform: translateY(-2px); box-shadow: 0 0 0 1cqw rgb(201 159 85 / .45), 0 3cqw 5cqw -2.4cqw rgb(35 42 82 / .9); }
.agl-open:focus-visible { outline: 2px solid var(--agl-gold); outline-offset: 4px; }

/* ---------------------------------------------------------------- isi */

.agl-frame { position: relative; }
.agl-blossom {
    display: block; width: 100%; max-width: 34rem; height: 10.5rem; margin: 0 auto -3.4rem; object-fit: cover; object-position: top;
    -webkit-mask-image: linear-gradient(#000 40%, transparent);
            mask-image: linear-gradient(#000 40%, transparent);
}
.agl .inv__main { position: relative; max-width: 34rem; padding-inline: 1.25rem; }

/* Kartu kertas gading berpita senja */
.agl .inv-section {
    position: relative; margin: 0 0 1.5rem; padding: 3.25rem 1.6rem 3rem; text-align: center;
    border: 1px solid var(--agl-line); border-radius: 1.3rem; border-bottom: 1px solid var(--agl-line);
    background: linear-gradient(180deg, rgb(255 253 249 / .92), var(--agl-card));
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 26px 50px -36px rgb(80 50 70 / .5), inset 0 1px 0 rgb(255 255 255 / .9);
}
.agl .inv-section:not(.agl-closing)::before {
    content: ''; position: absolute; top: -1px; left: 1.6rem; right: 1.6rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--agl-dusk);
}

.agl-bloomline, .agl .agl-bloomline { display: block; margin: 0 auto .9rem; filter: drop-shadow(0 0 .35rem rgb(217 178 111 / .55)); }
.agl-head { margin-bottom: 2.2rem; text-align: center; }
.agl-head__title { margin: 0; font: 400 clamp(1.75rem, 7.6vw, 2.15rem)/1.2 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink); }
.agl-head__lead { max-width: 24rem; margin: .9rem auto 0; color: var(--c-muted); }

/* Pembuka */
.agl .inv-bismillah { color: var(--c-accent); }
.agl-verse { margin: 0 0 1.9rem; padding: 1.4rem 0 1.5rem; border-block: 1px solid var(--agl-line); }
.agl-verse__text { margin: 0; font: 500 1.34rem/1.6 var(--f-quote); font-style: italic; color: var(--c-ink); }
.agl-verse__source { margin-top: .8rem; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8a6a2f; }
.agl-lede { max-width: 25rem; margin: 0 auto; color: var(--c-muted); }

/* Mempelai: bingkai lengkung bercincin emas + lencana bunga */
.agl-couple__grid { display: grid; gap: .5rem; }
.agl-couple__amp { margin: .3rem 0; font: 400 3.8rem/1.1 var(--f-names); color: var(--agl-gold); }
.agl-person { display: grid; justify-items: center; }
.agl-photo {
    position: relative; width: 10.5rem; aspect-ratio: 4 / 5; margin: 1.3rem 0 1.9rem; padding: 5px;
    border-radius: 999px 999px 1rem 1rem; background: var(--agl-gold-grad);
    box-shadow: 0 0 0 .45rem rgb(255 251 246 / .8), 0 0 0 calc(.45rem + 1px) var(--agl-line), 0 18px 34px -16px rgb(80 50 70 / .55);
}
.agl-photo__halo { position: absolute; inset: -1.1rem; border: 1px dashed color-mix(in srgb, var(--agl-gold) 60%, transparent); border-radius: 999px 999px 1.7rem 1.7rem; pointer-events: none; }
.agl-photo__badge {
    position: absolute; bottom: .9rem; right: -1rem; width: 2.5rem; aspect-ratio: 1; border-radius: 50%;
    background: var(--agl-flower) center / 78% no-repeat, var(--agl-ivory);
    box-shadow: 0 0 0 2px var(--agl-gold), 0 0 0 5px rgb(255 251 246 / .85), 0 6px 14px -4px rgb(80 50 70 / .5);
}
.agl-photo img, .agl-photo__initial { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px .7rem .7rem; }
.agl-photo__initial {
    display: grid; place-items: center; font: 400 5.4rem/1 var(--f-names); color: var(--c-accent);
    background: linear-gradient(180deg, #d9d8e8 0%, #f1e4e1 55%, #f6d8c6 100%);
}
.agl-person__name { margin: 0; font: 400 2.9rem/1.15 var(--f-names); color: var(--c-accent); }
.agl-person__family { margin: .5rem 0 0; font-size: .9rem; color: var(--c-muted); }
.agl-person__bio { max-width: 22rem; margin: .7rem 0 0; font-size: .9rem; color: var(--c-muted); }
.agl-person__ig { margin-top: .7rem; color: var(--c-accent); font-size: .84rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--agl-line); }

/* Hitung mundur: empat cakram gading bercincin emas */
.agl-countdown { display: flex; justify-content: center; gap: .65rem; margin: 0 auto 2.4rem; }
.agl .agl-countdown .inv-countdown__cell {
    display: grid; place-content: center; gap: .05rem; width: 4.3rem; aspect-ratio: 1; min-width: 0; padding: 0;
    border: 0; border-radius: 50%;
    background: radial-gradient(circle at 34% 26%, #ffffff 0, #fff7ee 50%, #f3dfd0 100%);
    box-shadow: 0 0 0 1px var(--agl-gold), 0 0 0 4px rgb(255 251 246 / .9), 0 0 0 5px var(--agl-line), 0 12px 22px -12px rgb(80 50 70 / .6);
}
.agl .agl-countdown b { font: 400 1.6rem/1 var(--f-display); color: var(--c-accent); }
.agl .agl-countdown span { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); }

/* Acara */
.agl-events__list { display: grid; gap: 1.5rem; }
.agl-event {
    position: relative; padding: 2.9rem 1.4rem 1.8rem; border: 1px solid var(--agl-line); border-radius: 1.2rem;
    background: linear-gradient(180deg, rgb(246 224 214 / .7), rgb(255 255 255 / .8) 48%);
}
.agl-event::before {
    content: ''; position: absolute; top: -1.3rem; left: 50%; width: 2.6rem; aspect-ratio: 1; margin-left: -1.3rem; border-radius: 50%;
    background: var(--agl-flower) center / 78% no-repeat, var(--agl-ivory);
    box-shadow: 0 0 0 2px var(--agl-gold), 0 0 0 5px rgb(255 251 246 / .9), 0 6px 14px -4px rgb(80 50 70 / .5);
}
.agl-event.is-past { opacity: .55; }
.agl-event__title { margin: 0 0 .35rem; font: 400 2.6rem/1.15 var(--f-names); color: var(--c-accent); }
.agl-event__date { margin: 0; font: 400 1.18rem/1.4 var(--f-display); letter-spacing: .06em; }
.agl-event__time { margin: 0; color: var(--c-muted); letter-spacing: .04em; }
.agl-event__venue { margin: 1rem 0 0; font-weight: 600; }
.agl-event__address { margin: .1rem 0 0; font-size: .88rem; color: var(--c-muted); }
.agl-event__meta { margin: .4rem 0 0; font-size: .84rem; color: var(--c-muted); }
.agl-event__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.agl-event__actions .inv-btn { flex: 1 1 8.5rem; text-align: center; }

/* Tombol */
.agl .inv-btn { border-radius: 999px; padding: .76rem 1.25rem; font: 600 .8rem/1.2 var(--f-body); letter-spacing: .04em; text-transform: none; }
.agl .inv-btn--solid { background: var(--c-accent); border-color: var(--c-accent); color: #fff; box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--c-accent) 90%, transparent); }
.agl .inv-btn--ghost { background: rgb(255 255 255 / .6); border-color: color-mix(in srgb, var(--c-accent) 32%, transparent); color: var(--c-ink); }
.agl .inv-btn:hover { filter: none; background: var(--agl-navy); border-color: var(--agl-navy); color: #fff; }

/* Cerita: bunga tiga helai di tiap babak, berputar sedikit demi sedikit,
   dihubungkan garis emas bertitik */
.agl-story__list { display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; }
.agl-story__item { display: grid; justify-items: center; }
.agl-story__item + .agl-story__item::before {
    content: ''; height: 2.6rem; margin: -1rem 0 .4rem; border-left: 1px dotted var(--agl-gold);
}
.agl-story__bloom {
    width: 2.2rem; aspect-ratio: 1; margin-bottom: .55rem; background: var(--agl-flower) center / contain no-repeat;
    filter: drop-shadow(0 2px 4px rgb(217 143 134 / .5)); transform: rotate(var(--rot, 0deg));
}
.agl-story__item:nth-child(4n+2) .agl-story__bloom { --rot: 40deg; }
.agl-story__item:nth-child(4n+3) .agl-story__bloom { --rot: 80deg; }
.agl-story__item:nth-child(4n) .agl-story__bloom { --rot: 120deg; }
.agl-story__period { margin: 0; font: 400 2.1rem/1.2 var(--f-names); color: var(--c-accent); }
.agl-story__title { margin: .1rem 0 0; font: 400 1.4rem/1.3 var(--f-display); letter-spacing: .06em; color: var(--c-ink); }
.agl-story__img { width: 100%; aspect-ratio: 4 / 3; margin-top: .9rem; object-fit: cover; border-radius: 1rem; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--agl-line), 0 16px 30px -18px rgb(80 50 70 / .55); }
.agl-story__text { max-width: 25rem; margin: .6rem 0 0; font-size: .9rem; color: var(--c-muted); }

/* Galeri (markup _base): pertama berbentuk lengkung bercincin emas */
.agl .inv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.agl .inv-gallery__cell { padding: 0; border: 0; border-radius: .9rem; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-sunk); cursor: zoom-in; }
.agl .inv-gallery__cell:first-child { grid-column: 1 / -1; width: 72%; margin: .5rem auto 1rem; aspect-ratio: 4 / 5; border-radius: 999px 999px 1rem 1rem; box-shadow: 0 0 0 3px var(--agl-gold), 0 0 0 .5rem rgb(255 251 246 / .85), 0 18px 34px -16px rgb(80 50 70 / .55); }
.agl .inv-gallery__cell img { width: 100%; height: 100%; object-fit: cover; }

/* Video & siaran langsung */
.agl .inv-video { padding: 0; border: 0; border-radius: 1rem; overflow: hidden; background: #000; }
.agl .inv-video iframe { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Form RSVP & ucapan (markup _base) */
.agl .inv-form { gap: 1.3rem; text-align: left; }
.agl .inv-label { font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: none; color: var(--c-ink); }
.agl .inv-input { padding: .8rem 1rem; border: 1px solid var(--agl-line); border-radius: .9rem; background: rgb(255 255 255 / .92); font-size: .95rem; }
.agl .inv-input:focus, .agl .inv-input:focus-visible { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 16%, transparent); }
.agl .inv-choice { border-color: var(--agl-line); border-radius: .9rem; background: rgb(255 255 255 / .92); }
.agl .inv-choice:has(:checked) { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 8%, #fff); color: var(--c-accent); }
.agl .inv-choice input { accent-color: var(--c-accent); }
.agl .inv-form .inv-btn--solid { width: 100%; padding-block: .95rem; }
.agl .inv-tally div { border: 1px solid var(--agl-line); border-radius: .9rem; background: rgb(255 255 255 / .8); }
.agl .inv-tally dd { font-family: var(--f-display); font-size: 1.9rem; color: var(--c-accent); }
.agl .inv-wish { padding: 1rem 1.1rem; border: 0; border-radius: .9rem; background: rgb(246 224 214 / .55); box-shadow: inset 3px 0 0 var(--agl-bloom); text-align: left; }
.agl .inv-wish__name { font-weight: 600; color: var(--c-accent); }

/* Hadiah: kartu langit senja, biru malam di atas, persik di dasar */
.agl .inv-gifts { display: grid; gap: 1rem; }
.agl .inv-gift {
    padding: 1.9rem 1.5rem; border: 0; border-radius: 1.2rem; text-align: center; color: #fff;
    background:
        radial-gradient(circle at 14% 16%, rgb(255 255 255 / .9) 0 1px, transparent 1.6px),
        radial-gradient(circle at 86% 22%, rgb(255 255 255 / .8) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 62% 12%, rgb(243 217 160 / .85) 0 1.1px, transparent 1.7px),
        radial-gradient(ellipse 90% 45% at 50% 108%, rgb(240 170 130 / .75), transparent 72%),
        linear-gradient(170deg, var(--agl-navy), var(--agl-navy-2) 60%, #7b6a85);
    box-shadow: 0 22px 40px -26px rgb(35 42 82 / .9), inset 0 0 0 1px rgb(217 178 111 / .4);
}
.agl .inv-gift__logo { max-height: 1.6rem; margin-inline: auto; filter: brightness(0) invert(1); opacity: .92; }
.agl .inv-gift__label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #f3d99f; }
.agl .inv-gift__account { font: 400 1.75rem/1.3 var(--f-display); letter-spacing: .1em; color: #fff; text-shadow: 0 0 1rem rgb(243 217 160 / .4); }
.agl .inv-gift__holder, .agl .inv-gift__address { color: rgb(255 255 255 / .88); }
.agl .inv-gift .inv-btn--ghost { margin-top: 1rem; background: transparent; border-color: rgb(243 217 160 / .7); color: #fff; }
.agl .inv-gift .inv-btn--ghost:hover { background: rgb(255 255 255 / .16); border-color: #fff; }
.agl .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .6rem; }

/* Penutup: langit senja (biru malam ke persik), berakhir di potongan bunga dari video */
.agl .agl-closing {
    margin: 2rem -1.25rem 0; padding: 3.5rem 1.6rem 0; overflow: hidden; color: #f1e6ea;
    border: 0; border-radius: 2rem 2rem 0 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    background:
        radial-gradient(circle at 14% 10%, rgb(255 255 255 / .9) 0 1px, transparent 1.6px),
        radial-gradient(circle at 82% 7%, rgb(255 255 255 / .8) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 60% 16%, rgb(243 217 160 / .9) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 30% 5%, rgb(255 255 255 / .7) 0 1px, transparent 1.6px),
        radial-gradient(circle at 92% 22%, rgb(255 255 255 / .6) 0 1px, transparent 1.6px),
        linear-gradient(180deg, var(--agl-navy) 0%, #46456f 38%, #7f6f86 68%, #cba68f 100%);
    box-shadow: 0 -20px 50px -30px rgb(35 42 82 / .5);
}
.agl .agl-closing > * { position: relative; z-index: 1; }
.agl .agl-closing .agl-bloomline { filter: drop-shadow(0 0 .6rem rgb(243 217 160 / .7)); }
.agl-closing__text { max-width: 24rem; margin: 0 auto; color: #ece0e6; }
.agl-closing__salutation { margin: 1.8rem 0; font: 400 .78rem/1.3 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: #f3d99f; }
.agl-closing__names { margin-top: .4rem; font-size: clamp(3.8rem, 17vw, 4.9rem); }
.agl .agl-closing .agl-name { background: var(--agl-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 .04em .1em rgb(20 22 50 / .55)); }
.agl .agl-closing .agl-amp em { color: #f3d99f; }
.agl-closing__names .agl-amp em { font-size: 1.8rem; }
.agl-closing__tag { margin: 1rem 0 0; font-size: .86rem; letter-spacing: .1em; color: #f4e4e8; text-shadow: 0 1px 6px rgb(35 30 70 / .6); }
.agl .agl-blossomfoot {
    display: block; width: calc(100% + 3.2rem); max-width: none; height: auto; margin: 1.2rem -1.6rem 0;
    -webkit-mask-image: linear-gradient(transparent, #000 36%);
            mask-image: linear-gradient(transparent, #000 36%);
}
.agl .agl-footer { margin: 0 -1.25rem; padding: 1rem; background: #1b1d3b; color: rgb(255 255 255 / .7); font-size: .75rem; text-align: center; }
.agl .agl-footer a { color: #f3dfe5; }

/* Musik & tombol QR */
.agl .inv-music { background: var(--agl-navy); box-shadow: 0 0 1rem rgb(217 178 111 / .6); }
.agl .inv-checkin-btn { background: var(--agl-navy); color: #fff; }

/* Muncul halus saat digulir (kelas dipasang oleh theme.js). */
.agl .agl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.agl .agl-reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ layar lebar */

@media (min-width: 900px) {
    body.inv.agl { background: color-mix(in srgb, var(--c-paper) 82%, var(--agl-navy)); }

    /* Sampul menutup SELURUH layar; panggung video berdiri di tengah di atas
       poster yang sama, diburamkan & digelapkan. */
    .agl .inv-cover.agl-cover { left: 0; right: 0; width: auto; isolation: isolate; }
    .agl .inv-cover.agl-cover::before {
        content: ''; position: absolute; inset: -40px; z-index: -1;
        background: url('opening-poster.jpg') center / cover; filter: blur(34px) brightness(.8) saturate(1.25);
    }
    .agl-stage { width: calc(100dvh * 4 / 7); height: 100dvh; aspect-ratio: auto; box-shadow: 0 0 80px -10px rgb(0 0 0 / .6); }

    .agl-frame { width: 34rem; margin: 0 auto; min-height: 100dvh; background: color-mix(in srgb, var(--c-paper) 92%, #fff); box-shadow: 0 0 70px -20px rgb(35 42 82 / .5); }
}

@media (prefers-reduced-motion: reduce) {
    .agl-cover__text { animation: none; }
    .agl-open { transition: none; }
    .agl-petals { display: none; }
    .agl .agl-reveal { opacity: 1; transform: none; transition: none; }
}
