/* ==========================================================================
   THEME: DESAIN 21 - KUPU GALAKSI
   KitoNgundang Wedding Invitation
   Konsep: kupu-kupu di langit galaksi. Satu gradasi ungu malam bertabur kilau tanpa kartu, foto dalam lengkung berbingkai garis putih
   dengan pita lila-emas, kupu-kupu pastel bercahaya (merah muda, biru langit, lila), karangan daun di pojok, tepi kelopak besar antar-bagian,
   dan balok violet datar bertepi gelombang untuk Save the Date. Satu momen gerak: pita membentang dari tengah, kupu-kupu
   mengudara berputar dan hinggap kembali, kilau bintang menyala saat undangan dibuka.
   ========================================================================== */

:root {
    --bg: #ffffff;
    --ink: #3a2a2a;
    --ink-soft: #6a5a5a;
    --accent: #b0243a;
    --accent-deep: #7a1226;
    --accent-soft: #f6dde0;
    --line: rgba(120, 60, 70, 0.35);
    --card: rgba(255, 255, 255, 0.86);
    --card-edge: #ffffff;
    --sh: 60, 30, 36;
    --btn-a: #c9384f;
    --btn-b: #a01c32;
    --btn-ink: #ffffff;
    --btn-hi: rgba(255, 255, 255, 0.4);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-line: rgba(120, 60, 70, 0.4);
    --nav-ink: #5a3a40;
    --nav-on: #7a1226;
    --nav-ico: #b0243a;
    --music-bg: rgba(255, 255, 255, 0.96);
    --music-ink: #7a1226;
    --music-line: rgba(176, 36, 58, 0.7);
    --lb-bg: rgba(24, 12, 14, 0.94);
    --lb-btn: rgba(122, 18, 38, 0.92);
    --lb-line: rgba(255, 255, 255, 0.55);
    --ok: #1f6a52;
    --no: #9b3a2c;

    --font-display: Georgia, serif;
    --font-body: Georgia, serif;
    --font-arab: 'Amiri', serif;
    --fs: 1.1rem;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.25, 1);
    --spring: cubic-bezier(0.34, 1.35, 0.5, 1);

    --vh: 1vh;
    --cover-delay: 2.6s;
}

@supports (height: 100dvh) {
    :root { --vh: 1dvh; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs);
    font-weight: 500;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.locked {
    overflow: hidden;
    height: 100vh;
}

img {
    display: block;
    max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.deco {
    pointer-events: none;
    user-select: none;
}

/* ---------- Tombol ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, var(--btn-a) 0%, var(--btn-b) 100%);
    color: var(--btn-ink);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    line-height: 1.3;
    padding: 0.62rem 1.7rem;
    border: 0;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 10px 20px rgba(var(--sh), 0.3),
        inset 0 1px 0 var(--btn-hi);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.btn-small {
    font-size: 0.98rem;
    padding: 0.4rem 1.15rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   SAMPUL (cangkang bersama)
   ========================================================================== */
#cover {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    transform: translateX(-50%);
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.8s ease var(--cover-delay), visibility 0s linear calc(var(--cover-delay) + 0.8s);
}

.cover-stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

#cover.opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cover-guest {
    position: relative;
    z-index: 5;
    width: 100%;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.7s var(--ease);
}

.cover-to {
    font-size: 1.05rem;
    line-height: 1.3;
}

.cover-guest-name {
    max-width: 15ch;
    margin: 0 auto;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.cover-note {
    max-width: 27ch;
    margin: 0.25rem auto 0.9rem;
    font-size: 0.98rem;
    line-height: 1.4;
}

.cover-guest > * {
    animation: coverIn 1.2s var(--ease) var(--d, 0.9s) backwards;
}

.cover-guest > :nth-child(1) { --d: 0.9s; }
.cover-guest > :nth-child(2) { --d: 1.05s; }
.cover-guest > :nth-child(3) { --d: 1.2s; }
.cover-guest > :nth-child(4) { --d: 1.35s; }

#cover.opened .cover-guest {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

/* ==========================================================================
   LAYOUT UMUM
   ========================================================================== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    box-shadow: 0 0 50px rgba(var(--sh), 0.28);
}

section,
.closing {
    position: relative;
    padding: 6rem 1.75rem 4.8rem;
    text-align: center;
    overflow: hidden;
}

section > *:not(.deco),
.closing > *:not(.deco) {
    position: relative;
    z-index: 3;
}

.sec-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 12.5vw, 3.4rem);
    line-height: 1.15;
    color: var(--accent-deep);
}

.sec-date {
    margin: 0.2rem 0 2.2rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.lead {
    max-width: 30ch;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ---------- Hero (isi bawah) ---------- */
.hero-rest {
    position: relative;
    z-index: 3;
    padding: 0 1.5rem;
    text-align: center;
}

.ayat {
    width: min(340px, 100%);
    margin: 0 auto;
    padding: 1.3rem 1.2rem 1.1rem;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(var(--sh), 0.12);
}

.ayat-ar {
    font-family: var(--font-arab);
    font-size: 1.25rem;
    line-height: 2.1;
}

.ayat-id {
    margin-top: 0.5rem;
    font-size: 1.03rem;
    line-height: 1.55;
    font-style: italic;
}

.ayat cite {
    display: block;
    margin-top: 0.6rem;
    font-style: normal;
    font-weight: 700;
    color: var(--accent);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 1.8rem 0 1.4rem;
}

.cd-item {
    width: 68px;
    padding: 0.5rem 0 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    background: var(--card);
    border: 1.5px solid var(--card-edge);
    box-shadow: 0 8px 16px rgba(var(--sh), 0.14);
}

.cd-number {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--accent);
}

.cd-label {
    font-size: 0.92rem;
    line-height: 1.3;
}

/* ---------- Pembukaan ---------- */
.salam {
    font-family: var(--font-arab);
    font-size: 1.75rem;
    line-height: 1.9;
    color: var(--accent-deep);
    margin-bottom: 0.7rem;
}

.arch-photo {
    width: min(68vw, 270px);
    aspect-ratio: 3 / 4;
    margin: 2.2rem auto 0;
    padding: 7px;
    border-radius: 999px 999px 16px 16px;
    background: var(--card-edge);
    box-shadow:
        0 0 0 1px var(--line),
        0 18px 30px rgba(var(--sh), 0.24);
}

.arch-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px 999px 10px 10px;
    background: var(--accent-soft);
}

/* ---------- Mempelai ---------- */
.round-photo {
    position: relative;
    width: min(58vw, 224px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.round-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 5px solid var(--card-edge);
    box-shadow: 0 0 0 1px var(--line), 0 14px 24px rgba(var(--sh), 0.26);
}

.person-name {
    margin-top: 0.8rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 3.2rem;
    line-height: 1.15;
    color: var(--accent-deep);
}

.person-full {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.person-parents {
    font-size: 1.05rem;
    line-height: 1.55;
}

.person-parents strong {
    font-weight: 700;
}

.person .btn {
    margin-top: 0.9rem;
}

.amp {
    font-family: var(--font-display);
    font-size: 3.6rem;
    line-height: 1;
    color: var(--accent);
    margin: 1.8rem 0 1.5rem;
}

/* ---------- Acara ---------- */
.event-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.event-card {
    position: relative;
    width: min(88vw, 340px);
    padding: 2.4rem 1.7rem 2.2rem;
    border-radius: 18px;
    background: var(--card);
    border: 1.5px solid var(--card-edge);
    box-shadow: 0 16px 30px rgba(var(--sh), 0.2);
    text-align: center;
}

.event-emblem {
    margin: 0 auto 0.3rem;
}

.event-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.3rem;
    line-height: 1.2;
    color: var(--accent-deep);
}

.event-day {
    font-weight: 700;
}

.event-time i {
    margin-right: 6px;
    color: var(--accent);
}

.event-place {
    margin-top: 0.5rem;
    font-weight: 700;
}

.event-addr {
    max-width: 24ch;
    margin: 0 auto 0.95rem;
    font-size: 1rem;
    line-height: 1.4;
}

/* ---------- Susunan acara ---------- */
.rundown {
    list-style: none;
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    padding-left: 1.9rem;
    text-align: left;
}

.rundown::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(0, 0, 0, 0.08));
    transform-origin: 50% 0;
}

.rundown li {
    position: relative;
    padding-bottom: 1.6rem;
}

.rundown li:last-child {
    padding-bottom: 0;
}

.rundown li::before {
    content: '';
    position: absolute;
    left: -1.9rem;
    top: 8px;
    width: 12px;
    height: 12px;
    margin: -1px 0 0 -1px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--bg);
}

.rd-time {
    display: block;
    font-weight: 700;
    font-size: 1.02rem;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--accent);
}

.rd-body h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.15;
}

.rd-body p {
    font-size: 1.02rem;
    line-height: 1.45;
}

/* ---------- Kisah ---------- */
.story-card {
    max-width: 330px;
    margin: 0 auto 2.6rem;
    padding: 0.9rem 0.9rem 1.2rem;
    border-radius: 16px;
    background: var(--card);
    border: 1.5px solid var(--card-edge);
    box-shadow: 0 14px 28px rgba(var(--sh), 0.16);
}

.story-card:last-child {
    margin-bottom: 0;
}

.story-photo {
    position: relative;
    aspect-ratio: 7 / 5;
    border-radius: 10px;
}

.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background: var(--accent-soft);
}

.story-year {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 0.05rem 0.85rem;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.6;
}

.story-card h3 {
    margin-top: 0.8rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--accent-deep);
}

.story-card p {
    margin-top: 0.2rem;
    font-size: 1.03rem;
    line-height: 1.5;
}

/* ---------- Galeri + lightbox ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
}

.g-item {
    padding: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 0;
    border-radius: 12px;
    background: var(--card-edge);
    box-shadow: 0 10px 18px rgba(var(--sh), 0.24);
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
    transition: transform 0.7s var(--ease);
}

.g-item:hover img {
    transform: scale(1.06);
}

.g-tall {
    grid-row: span 2;
}

.g-wide {
    grid-column: span 2;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lb-bg);
}

.lightbox[hidden] {
    display: none;
}

.lb-img {
    max-width: 92vw;
    max-height: 82dvh;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lb-img.swap {
    animation: lbImg 0.45s var(--ease);
}

.lightbox button {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 1px solid var(--lb-line);
    border-radius: 50%;
    background: var(--lb-btn);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.lightbox button:hover {
    transform: scale(1.08);
}

.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 12px; top: 50%; margin-top: -23px; }
.lb-next { right: 12px; top: 50%; margin-top: -23px; }

/* ---------- Tanda kasih ---------- */
.bank-list {
    display: grid;
    gap: 1.2rem;
    max-width: 330px;
    margin: 2rem auto 0;
}

.bank-card {
    padding: 1.3rem 1.2rem 1.4rem;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(var(--sh), 0.16);
}

.bank-name {
    font-weight: 700;
}

.bank-name i {
    margin-right: 6px;
    color: var(--accent);
}

.bank-number {
    margin-top: 0.15rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--accent-deep);
}

.bank-address {
    margin: 0.3rem auto 0;
    max-width: 22ch;
    line-height: 1.4;
}

.bank-holder {
    margin-bottom: 0.85rem;
    font-size: 1.02rem;
}

/* ---------- RSVP & ucapan ---------- */
.rsvp-form {
    max-width: 330px;
    margin: 0 auto;
    padding: 1.3rem 1.2rem 1.4rem;
    border-radius: 18px;
    background: var(--card);
    border: 1.5px solid var(--card-edge);
    box-shadow: 0 12px 24px rgba(var(--sh), 0.18);
    text-align: left;
}

.field {
    margin-bottom: 1rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.field label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #8a7a7a;
}

.field textarea {
    resize: vertical;
}

.wishes-feed {
    max-width: 330px;
    max-height: 380px;
    margin: 2rem auto 0;
    padding: 0.2rem;
    overflow-y: auto;
    display: grid;
    gap: 0.8rem;
    text-align: left;
}

.wish-card {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    color: var(--ink);
}

.wish-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
}

.wish-author {
    font-weight: 700;
    color: var(--accent-deep);
}

.wish-status {
    flex-shrink: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ok);
}

.wish-status-no {
    color: var(--no);
}

.wish-text {
    margin-top: 0.15rem;
    font-size: 1.02rem;
    line-height: 1.45;
}

.wish-new {
    animation: newWish 0.8s var(--ease);
}

/* ---------- Penutup ---------- */
.closing {
    padding: 6rem 1.75rem 11rem;
}

.closing-text {
    max-width: 28ch;
    margin: 0 auto;
}

.closing-salam {
    margin-top: 1rem;
    font-family: var(--font-arab);
    font-size: 1.5rem;
    line-height: 1.9;
    color: var(--accent-deep);
}

.closing-regards {
    margin-top: 0.9rem;
}

.closing-names {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 13vw, 3.6rem);
    line-height: 1.2;
    white-space: nowrap;
    color: var(--accent-deep);
}

.footer-credit {
    margin-top: 1.2rem;
    font-size: 0.96rem;
    line-height: 1.4;
}

.footer-credit .fa-heart {
    color: var(--accent);
}

.footer-credit a {
    color: var(--accent-deep);
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   MUSIK & NAVIGASI BAWAH (gaya sama dengan desain 16-35)
   ========================================================================== */
#music-btn {
    position: fixed;
    top: 18px;
    right: max(18px, calc(50% - 240px + 18px));
    width: 42px;
    height: 42px;
    border: 1px solid var(--music-line);
    border-radius: 50%;
    background: var(--music-bg);
    color: var(--music-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(var(--sh), 0.32);
    animation: rotateMusic 4s linear infinite;
}

#music-btn.paused {
    animation-play-state: paused;
    opacity: 0.94;
}

#music-btn::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid var(--music-line);
    opacity: 0;
    pointer-events: none;
}

#music-btn:not(.paused)::after {
    animation: ripple 2.4s var(--ease) infinite;
}

.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nav-line);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    display: flex;
    gap: clamp(0.7rem, 3.6vw, 1.5rem);
    z-index: 998;
    box-shadow: 0 8px 25px rgba(var(--sh), 0.3);
}

.nav-item {
    color: var(--nav-ink);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    opacity: 0.84;
    transition: color 0.3s, transform 0.3s, opacity 0.3s;
}

.nav-item i {
    font-size: 1.1rem;
}

.nav-item.active,
.nav-item:hover {
    color: var(--nav-on);
    opacity: 1;
    transform: translateY(-2px);
}

.nav-item.active i {
    color: var(--nav-ico);
    animation: navPop 0.55s cubic-bezier(0.34, 1.8, 0.64, 1);
}

body.opened .bottom-nav {
    animation: navIn 1.2s cubic-bezier(0.34, 1.45, 0.64, 1) calc(var(--cover-delay) - 0.4s) backwards;
}

/* ==========================================================================
   ANIMASI
   ========================================================================== */
@keyframes coverIn {
    from { opacity: 0; transform: translateY(18px); filter: blur(5px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(22px) scale(0.82); }
    to   { opacity: 1; transform: none; }
}

@keyframes lbImg {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: none; }
}

@keyframes newWish {
    from { opacity: 0; transform: translateY(-14px); background: var(--accent-soft); }
    to   { opacity: 1; transform: none; }
}

@keyframes tick {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
}

@keyframes rotateMusic {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes ripple {
    from { transform: scale(1); opacity: 0.7; }
    to   { transform: scale(1.9); opacity: 0; }
}

@keyframes navIn {
    from { transform: translate(-50%, 160%); opacity: 0; }
    to   { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes navPop {
    0%   { transform: scale(0.7); }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ---------- muncul saat digulir ---------- */
.js [data-reveal] {
    opacity: 0;
    transition:
        opacity 1.2s var(--ease) var(--d, 0s),
        transform 1.4s var(--ease) var(--d, 0s),
        filter 1.2s var(--ease) var(--d, 0s),
        clip-path 1.8s var(--ease) var(--d, 0s);
}

.js [data-reveal="up"] {
    transform: translateY(28px);
    filter: blur(6px);
}

.js [data-reveal="slide"] {
    transform: translateX(-22px);
    filter: blur(4px);
}

.js [data-reveal="card"] {
    transform: translateY(46px) scale(0.95);
    filter: blur(4px);
}

.js [data-reveal="pop"] {
    transform: translateY(22px) scale(0.9);
}

/* irisan awal 1px agar IntersectionObserver selalu menganggapnya berpotongan */
.js [data-reveal="oval"] {
    clip-path: inset(calc(100% - 1px) 0 0 0 round 50%);
}

.js [data-reveal="oval"] img {
    transform: scale(1.18);
    transition: transform 2.4s var(--ease) var(--d, 0s);
}

.js [data-reveal="arch"] {
    clip-path: inset(calc(100% - 1px) 0 0 0 round 999px 999px 16px 16px);
}

.js [data-reveal="arch"] img {
    transform: scale(1.14);
    transition: transform 2.4s var(--ease) var(--d, 0s);
}

.js [data-reveal="write"] {
    clip-path: inset(-30% calc(100% - 1px) -30% -6%);
    transition-duration: 1.2s, 1.4s, 1.2s, 2.2s;
    transition-timing-function: var(--ease), var(--ease), var(--ease), cubic-bezier(0.45, 0.05, 0.25, 1);
}

.js [data-reveal="line"] {
    opacity: 1;
}

.js [data-reveal="line"]::before {
    transform: scaleY(0);
    transition: transform 2.8s var(--ease) var(--d, 0s);
}

.js [data-reveal].in {
    opacity: 1;
}

.js [data-reveal="up"].in,
.js [data-reveal="slide"].in,
.js [data-reveal="card"].in,
.js [data-reveal="pop"].in {
    transform: none;
    filter: none;
}

.js [data-reveal="oval"].in {
    clip-path: inset(0 0 0 0 round 50%);
}

.js [data-reveal="arch"].in {
    clip-path: inset(0 0 0 0 round 999px 999px 16px 16px);
}

.js [data-reveal="oval"].in img,
.js [data-reveal="arch"].in img {
    transform: none;
}

.js [data-reveal="write"].in {
    clip-path: inset(-30% -6% -30% -6%);
}

.js [data-reveal="line"].in::before {
    transform: none;
}

.cd-number.tick {
    animation: tick 0.55s var(--ease);
}

/* ==========================================================================
   KHUSUS DESAIN 21
   ========================================================================== */

:root {
    --bg: #3a2a4a;
    --ink: #ffffff;
    --ink-soft: #b39eb5;
    --accent: #e7c46a;
    --accent-deep: #ffffff;
    --accent-soft: #6b3a85;
    --line: rgba(255, 255, 255, 0.35);
    --card: transparent;
    --card-edge: transparent;
    --sh: 12, 4, 26;
    --btn-a: #c98bd6;
    --btn-b: #a766bd;
    --btn-ink: #2a0f4a;
    --btn-hi: rgba(255, 255, 255, 0.5);
    --nav-bg: rgba(52, 22, 86, 0.94);
    --nav-line: rgba(231, 196, 106, 0.55);
    --nav-ink: #cdb7e0;
    --nav-on: #ffffff;
    --nav-ico: #e7c46a;
    --music-bg: #c98bd6;
    --music-ink: #2a0f4a;
    --music-line: rgba(255, 255, 255, 0.8);
    --lb-bg: rgba(18, 6, 36, 0.96);
    --lb-btn: rgba(107, 46, 143, 0.95);
    --lb-line: rgba(231, 196, 106, 0.7);
    --font-display: 'Great Vibes', 'Brush Script MT', cursive;
    --font-body: 'Didact Gothic', 'Segoe UI', sans-serif;
    --font-ui: 'Work Sans', 'Segoe UI', sans-serif;
    --fs: 1.08rem;
    --cover-delay: 3.4s;

    --gold: #e7c46a;
    --lilac: #c98bd6;
    --arch-w: min(62vw, calc(var(--vh) * 29), 252px);
    --stage-top: clamp(44px, calc(var(--vh) * 7.5), 78px);
}

body {
    font-weight: 400;
    background: #2a0f4a;
}

.btn,
.nav-item,
.cd-number,
.rd-time,
.event-day,
.event-place,
.person-full,
.bank-name,
.bank-number,
.wish-author,
.wish-status,
.field label,
.story-year,
.sec-date,
.ayat cite,
.person-parents strong,
.footer-credit a {
    font-family: var(--font-ui);
}

.btn,
.nav-item,
.cd-number,
.person-full,
.bank-name,
.bank-number,
.wish-author,
.story-year {
    font-weight: 600;
}

/* ---------- Permukaan: satu langit malam yang menggelap ke bawah ---------- */
.night {
    background:
        radial-gradient(ellipse 70% 30% at 82% 22%, rgba(201, 139, 214, 0.34), transparent 70%),
        radial-gradient(ellipse 60% 26% at 12% 60%, rgba(143, 184, 240, 0.22), transparent 70%),
        linear-gradient(180deg, #2a0f4a 0%, #45206e 55%, #6b2e8f 100%);
    color: #ffffff;
}

#opening { background: url('../images/stars-c.svg') 0 0 / 280px 280px repeat, linear-gradient(180deg, #33165a 0%, #3b1a62 100%); }
#opening .edge { background: #6b2e8f; }
#couple { background: url('../images/stars-c.svg') 0 0 / 280px 280px repeat, linear-gradient(180deg, #5a2a82 0%, #4a2273 100%); }
#couple .edge { background: #3b1a62; }
#event { background: url('../images/stars-c.svg') 0 0 / 280px 280px repeat, linear-gradient(180deg, #6b3a85 0%, #6b3a85 100%); }
#event .edge { background: #4a2273; -webkit-mask-image: url('../images/wave-mask.svg'); mask-image: url('../images/wave-mask.svg'); aspect-ratio: 480 / 34; }
#rundown { background: url('../images/stars-c.svg') 0 0 / 280px 280px repeat, linear-gradient(180deg, #3d1f60 0%, #391c5a 100%); }
#rundown .edge { background: #6b3a85; -webkit-mask-image: url('../images/wave-mask.svg'); mask-image: url('../images/wave-mask.svg'); aspect-ratio: 480 / 34; }
#story { background: url('../images/stars-c.svg') 0 0 / 280px 280px repeat, linear-gradient(180deg, #4b2874 0%, #432660 100%); }
#story .edge { background: #391c5a; }
#gallery { background: url('../images/stars-c.svg') 0 0 / 280px 280px repeat, linear-gradient(180deg, #392252 0%, #35204d 100%); }
#gallery .edge { background: #432660; }
#gift { background: url('../images/stars-c.svg') 0 0 / 280px 280px repeat, linear-gradient(180deg, #432d5d 0%, #3e2b56 100%); }
#gift .edge { background: #35204d; }
#wishes { background: url('../images/stars-c.svg') 0 0 / 280px 280px repeat, linear-gradient(180deg, #3a2a4a 0%, #33233f 100%); }
#wishes .edge { background: #3e2b56; }
.closing { background: url('../images/stars-c.svg') 0 0 / 280px 280px repeat, linear-gradient(180deg, #2c1c3c 0%, #1e1130 100%); }
.closing .edge { background: #33233f; }

section,
.closing {
    color: #ffffff;
    padding-top: 6.6rem;
}

/* tepi: kelopak besar menjuntai dari bagian sebelumnya */
.edge {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    z-index: 4;
    width: 100%;
    aspect-ratio: 480 / 48;
    -webkit-mask: url('../images/scallop-mask.svg') 0 0 / 100% 100% no-repeat;
    mask: url('../images/scallop-mask.svg') 0 0 / 100% 100% no-repeat;
}

.sec-garland {
    position: absolute;
    top: 2.6rem;
    width: clamp(86px, 26vw, 120px);
    height: auto;
    opacity: 0.85;
    z-index: 2;
}

.sec-garland.garland-l { left: -6px; }
.sec-garland.garland-r { right: -6px; transform: scaleX(-1); }

.spk {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: twk 3.6s ease-in-out infinite;
    z-index: 2;
}

.spk-a { top: 9rem; left: 9%; }
.spk-b { top: 13rem; right: 10%; width: 14px; height: 14px; animation-delay: -1.7s; }

/* ---------- Judul ---------- */
.sec-title {
    font-weight: 400;
    font-size: clamp(3rem, 14vw, 3.7rem);
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(201, 139, 214, 0.55);
}

.sec-title::after {
    content: '';
    display: block;
    width: 190px;
    height: 30px;
    margin: 0.1rem auto 1.6rem;
    background: url('../images/divider.svg') center / contain no-repeat;
}

.sec-date {
    color: #ecd6f4;
}

.lead {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

/* ==========================================================================
   PANGGUNG: lengkung + pita emas-lila + kupu-kupu bercahaya
   ========================================================================== */
.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--stage-top) 1.1rem 0;
    overflow: hidden;
}

#home {
    padding: 0 0 3.4rem;
}

#home .stage {
    position: relative;
    height: calc(var(--vh) * 100);
    min-height: 580px;
}

.scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.sky {
    position: absolute;
    inset: 0;
}

.sky::before,
.sky::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/stars-a.svg') 0 0 / 240px 240px repeat;
    animation: twkSky 4.2s ease-in-out infinite alternate;
}

.sky::after {
    background: url('../images/stars-b.svg') 70px 40px / 200px 200px repeat;
    animation-duration: 5.6s;
    animation-delay: -2s;
}

#cover .sky {
    opacity: 0.42;
    transition: opacity 2.4s ease 0.2s;
}

#cover.opened .sky {
    opacity: 1;
}

.garland {
    position: absolute;
    top: -4px;
    width: clamp(90px, 28vw, 128px);
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(201, 139, 214, 0.5));
}

.garland-l { left: 0; }
.garland-r { right: 0; transform: scaleX(-1); }

.bf {
    position: absolute;
    z-index: 4;
    width: var(--w, 52px);
    animation: bfFloat 6s ease-in-out infinite;
    animation-delay: var(--dl, 0s);
}

.bf img {
    width: 100%;
    height: auto;
    animation: flap 1.1s ease-in-out infinite;
    animation-delay: var(--dl, 0s);
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.35));
}

.b1 { --w: 54px; --dl: 0s; --x1: 46px; --y1: -80px; --x2: -26px; --y2: -150px; left: 5%; top: 30%; }
.b2 { --w: 46px; --dl: -2s; --x1: -50px; --y1: -60px; --x2: 20px; --y2: -140px; right: 6%; top: 22%; }
.b3 { --w: 38px; --dl: -3.4s; --x1: 60px; --y1: -50px; --x2: 30px; --y2: -120px; left: 11%; top: 54%; }
.b4 { --w: 42px; --dl: -1.2s; --x1: -44px; --y1: -90px; --x2: -10px; --y2: -170px; right: 9%; top: 50%; }

#cover.opened .bf {
    animation: bfLoop 3s cubic-bezier(0.45, 0.05, 0.4, 1) 0.25s both;
}

#cover.opened .bf img {
    animation-duration: 0.32s;
}

.flyers {
    position: absolute;
    inset: 0;
    z-index: 6;
    overflow: hidden;
    pointer-events: none;
}

.fl {
    position: absolute;
    width: var(--w, 44px);
    animation: bfFloat 5.4s ease-in-out infinite;
    animation-delay: var(--dl, 0s);
}

.fl img {
    width: 100%;
    height: auto;
    animation: flap 1.1s ease-in-out infinite;
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.35));
}

.f1 { --w: 40px; --dl: -0.6s; --fx: -260px; --fy: -420px; left: 22%; top: 42%; }
.f2 { --w: 34px; --dl: -2.6s; --fx: 250px; --fy: -460px; right: 24%; top: 38%; }
.f3 { --w: 30px; --dl: -4s; --fx: 40px; --fy: -560px; left: 46%; top: 60%; }

#cover.opened .fl {
    animation: flyAway 2.6s cubic-bezier(0.4, 0.1, 0.6, 1) 0.1s forwards;
}

#cover.opened .fl img {
    animation-duration: 0.28s;
}

.tag {
    position: relative;
    z-index: 3;
    margin-top: auto;
    margin-bottom: 0.7rem;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.96rem;
    letter-spacing: 0.28em;
    color: #ecd6f4;
}

.arch {
    position: relative;
    z-index: 3;
    flex: none;
    width: var(--arch-w);
    margin-bottom: 2.5rem;
}

.arch-frame {
    width: 100%;
    aspect-ratio: 4 / 5.3;
    padding: 6px;
    border-radius: 999px 999px 10px 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 26px rgba(201, 139, 214, 0.55), inset 0 0 18px rgba(201, 139, 214, 0.35);
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px 999px 4px 4px;
    background: #6b3a85;
}

.ribbon {
    position: absolute;
    left: 50%;
    bottom: -12%;
    width: 156%;
    max-width: none;
    height: auto;
    translate: -50% 0;
    filter: drop-shadow(0 6px 8px rgba(20, 6, 40, 0.5));
}

#cover .ribbon {
    scale: 0.36 0.9;
    transition: scale 1.9s cubic-bezier(0.5, 0, 0.2, 1) 0.2s;
}

#cover.opened .ribbon {
    scale: 1 1;
}

.names {
    position: relative;
    z-index: 3;
    margin-top: 0.2rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 13.5vw, 3.7rem);
    line-height: 1.12;
    white-space: nowrap;
    color: #ffffff;
    text-shadow: 0 0 16px rgba(201, 139, 214, 0.75);
}

/* ---------- Sampul ---------- */
.cover-stage {
    padding-top: var(--stage-top);
}

.cover-guest {
    margin-top: auto;
    margin-bottom: clamp(30px, calc(var(--vh) * 5), 56px);
    padding: 0 1rem;
}

.cover-to {
    color: #d9c4e8;
}

.cover-guest-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 10vw, 2.8rem);
    color: #ffffff;
    text-shadow: 0 0 14px rgba(201, 139, 214, 0.6);
}

.cover-note {
    max-width: 30ch;
    color: #ffffff;
}

.btn {
    border-radius: 14px;
    font-family: var(--font-ui);
    background: #ffffff;
    color: #453556;
    box-shadow: 0 10px 22px rgba(16, 4, 34, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.btn i {
    color: #8c8097;
}

/* ---------- Hero ---------- */
.hero-date {
    position: relative;
    z-index: 5;
    margin-top: auto;
    margin-bottom: clamp(36px, calc(var(--vh) * 6), 64px);
    text-align: center;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 1.1rem;
    color: #ffffff;
}

.hero-date i {
    display: block;
    margin-top: 0.3rem;
    color: var(--gold);
    animation: nudge 1.9s ease-in-out infinite;
}

.hero-rest {
    margin-top: 2.2rem;
}

.ayat {
    padding: 0.4rem 0.4rem 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
}

.ayat-ar {
    color: #ffffff;
}

.ayat-id {
    font-style: normal;
}

.ayat cite {
    color: var(--gold);
}

.countdown {
    gap: 9px;
}

.cd-item {
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    color: #453556;
    box-shadow: 0 10px 20px rgba(16, 4, 34, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.cd-number {
    color: #453556;
}

.cd-label {
    color: #6b5a7c;
}

#btn-calendar {
    background: #d9d1e0;
    color: #453556;
    box-shadow: 0 8px 16px rgba(16, 4, 34, 0.35);
}

/* ---------- Pembukaan ---------- */
#opening {
    padding-bottom: 6.6rem;
}

.salam {
    color: #ffffff;
}

.arch-photo {
    position: relative;
    width: min(56vw, 226px);
    aspect-ratio: 4 / 5.3;
    margin-top: 2.4rem;
    padding: 6px;
    border-radius: 999px 999px 10px 10px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 26px rgba(201, 139, 214, 0.55), inset 0 0 18px rgba(201, 139, 214, 0.35);
}

.arch-photo img {
    border-radius: 999px 999px 4px 4px;
}

.arch-photo::after,
.round-photo::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -9%;
    width: 150%;
    aspect-ratio: 440 / 112;
    translate: -50% 0;
    background: url('../images/ribbon.svg') center / 100% 100% no-repeat;
    filter: drop-shadow(0 6px 8px rgba(20, 6, 40, 0.5));
    pointer-events: none;
}

.arch-photo::before,
.round-photo::before {
    content: '';
    position: absolute;
    right: -26px;
    top: 14%;
    width: 46px;
    aspect-ratio: 140 / 112;
    background: url('../images/bf-sky.svg') center / contain no-repeat;
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.4));
    animation: bfFloat 6s ease-in-out infinite;
    z-index: 4;
}

.round-photo::before {
    right: auto;
    left: -24px;
    top: 10%;
    width: 40px;
    background-image: url('../images/bf-pink.svg');
}

/* ---------- Mempelai ---------- */
.person {
    padding-bottom: 0.4rem;
}

.round-photo {
    width: min(50vw, 200px);
    aspect-ratio: 4 / 5.3;
    margin-bottom: 2.6rem;
    padding: 6px;
    border-radius: 999px 999px 10px 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 24px rgba(201, 139, 214, 0.5), inset 0 0 16px rgba(201, 139, 214, 0.3);
}

.round-photo img {
    border: 0;
    border-radius: 999px 999px 4px 4px;
    box-shadow: none;
}

.person-name {
    margin-top: 1.8rem;
    font-weight: 400;
    font-size: 3.5rem;
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(201, 139, 214, 0.6);
}

.person-full {
    color: #ecd6f4;
}

.person-parents {
    color: rgba(255, 255, 255, 0.92);
}

.person .btn {
    background: #ffffff;
}

.amp {
    margin: 2.4rem 0 2rem;
    font-size: 3.8rem;
    color: var(--gold);
    text-shadow: 0 0 16px rgba(231, 196, 106, 0.55);
}

/* ---------- Acara: balok violet datar bertepi gelombang ---------- */
.s-event {
    padding-bottom: 5.8rem;
}

.event-list {
    gap: 0;
}

.event-card {
    width: min(100%, 310px);
    padding: 0.2rem 0.6rem 2.6rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
}

.event-card:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.4rem;
    width: 150px;
    height: 24px;
    translate: -50% 0;
    background: url('../images/divider.svg') center / contain no-repeat;
}

.event-emblem {
    width: 46px;
    height: 46px;
    margin: 0 auto 0.2rem;
}

.event-title {
    font-weight: 400;
    font-size: 2.7rem;
    line-height: 1.15;
    color: #ffffff;
}

.event-day {
    color: #ecd6f4;
}

.event-time i {
    color: var(--gold);
}

.event-card .btn {
    background: #ffffff;
    color: #453556;
    border-radius: 999px;
}

/* ---------- Susunan acara ---------- */
.rundown::before {
    left: 6px;
    width: 1.5px;
    background: linear-gradient(180deg, var(--gold), rgba(231, 196, 106, 0.1));
}

.rundown li::before {
    left: calc(-1.9rem - 4px);
    top: 4px;
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 0;
    background: var(--gold);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    box-shadow: none;
}

.rd-time {
    color: var(--gold);
}

.rd-body h3 {
    font-weight: 400;
    font-size: 2.1rem;
    line-height: 1.15;
    color: #ffffff;
}

.rd-body p {
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- Kisah ---------- */
.story-card {
    max-width: 300px;
    padding: 0 0 0.4rem;
    margin-bottom: 3.4rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
}

.story-photo {
    aspect-ratio: 5 / 5.2;
    padding: 6px;
    border-radius: 999px 999px 10px 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 22px rgba(201, 139, 214, 0.5), inset 0 0 14px rgba(201, 139, 214, 0.3);
}

.story-photo img {
    border-radius: 999px 999px 4px 4px;
}

.story-year {
    left: 50%;
    bottom: -13px;
    translate: -50% 0;
    padding: 0.1rem 1.9rem;
    border-radius: 0;
    background: linear-gradient(90deg, #c98bd6, #e7c46a);
    color: #2a0f4a;
    clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
}

.story-card h3 {
    margin-top: 1.6rem;
    font-weight: 400;
    font-size: 2.4rem;
    color: #ffffff;
}

.story-card p {
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- Galeri: ubin berbentuk sayap ---------- */
.g-item {
    padding: 0;
    border-radius: 36px 6px 36px 6px;
    background: transparent;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.6), 0 0 22px rgba(201, 139, 214, 0.45);
}

.g-item:nth-child(even) {
    border-radius: 6px 36px 6px 36px;
}

.g-item img {
    border-radius: inherit;
}

/* ---------- Tanda kasih ---------- */
.bank-card {
    padding: 1.3rem 1rem 1.4rem;
    border: 0;
    border-radius: 0;
    background: radial-gradient(ellipse 80% 90% at 50% 0%, rgba(201, 139, 214, 0.3), transparent 72%);
    box-shadow: none;
    color: #ffffff;
}

.bank-card:not(:last-child)::after {
    content: '';
    display: block;
    width: 130px;
    height: 22px;
    margin: 1.3rem auto -0.5rem;
    background: url('../images/divider.svg') center / contain no-repeat;
}

.bank-name {
    color: #ecd6f4;
}

.bank-name i {
    color: var(--gold);
}

.bank-number {
    color: #ffffff;
}

.bank-holder,
.bank-address {
    color: rgba(255, 255, 255, 0.92);
}

.bank-card .btn {
    background: #ffffff;
    color: #453556;
    border-radius: 999px;
}

/* ---------- RSVP ---------- */
.rsvp-form {
    padding: 0.4rem 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
}

.field label {
    color: #ecd6f4;
}

.field input,
.field select,
.field textarea {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(18, 6, 36, 0.55);
    color: #ffffff;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #b9a5cc;
}

.field select option {
    color: #1a0830;
}

.rsvp-form .btn {
    background: linear-gradient(180deg, #d6a0e2, #b873ca);
    color: #2a0f4a;
}

.wish-card {
    border: 0;
    border-radius: 14px;
    background: rgba(18, 6, 36, 0.5);
    color: #ffffff;
}

.wish-author {
    color: #ecd6f4;
}

.wish-status {
    color: var(--gold);
}

.wish-status-no {
    color: #e8a0b8;
}

/* ---------- Penutup ---------- */
.closing {
    padding-bottom: 7rem;
}

.arch-end {
    width: min(50vw, 196px);
    margin: 0.2rem auto 3.2rem;
}

.arch-end .arch-frame img {
    border-radius: 999px 999px 4px 4px;
}

.arch-end .bf.b1 { left: -34px; top: 10%; }
.arch-end .bf.b2 { right: -30px; top: 30%; }

.closing-names {
    font-weight: 400;
    font-size: clamp(3.2rem, 15vw, 4rem);
    color: #ffffff;
    text-shadow: 0 0 16px rgba(201, 139, 214, 0.65);
}

.closing-text,
.closing-regards,
.closing-salam,
.footer-credit,
.footer-credit a {
    color: rgba(255, 255, 255, 0.95);
}

.footer-credit .fa-heart {
    color: #f4a3c8;
}

/* ==========================================================================
   GERAK
   ========================================================================== */
@keyframes bfFloat {
    0%, 100% { translate: 0 0; rotate: -4deg; }
    50%      { translate: 6px -12px; rotate: 5deg; }
}

@keyframes flap {
    0%, 100% { scale: 1 1; }
    50%      { scale: 0.52 1; }
}

@keyframes bfLoop {
    0%   { translate: 0 0; rotate: 0deg; }
    28%  { translate: var(--x1) var(--y1); rotate: 22deg; }
    62%  { translate: var(--x2) var(--y2); rotate: -18deg; }
    100% { translate: 0 0; rotate: 0deg; }
}

@keyframes flyAway {
    0%   { translate: 0 0; rotate: 0deg; opacity: 1; }
    35%  { translate: calc(var(--fx) * 0.18) calc(var(--fy) * 0.3); rotate: 14deg; opacity: 1; }
    100% { translate: var(--fx) var(--fy); rotate: -18deg; opacity: 0; }
}

@keyframes twk {
    0%, 100% { opacity: 0.25; scale: 0.7; }
    50%      { opacity: 1; scale: 1.15; }
}

@keyframes twkSky {
    from { opacity: 0.35; }
    to   { opacity: 1; }
}

@keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@media (max-width: 360px) {
    .cd-item {
        width: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fl {
        display: none;
    }
}

/* ==========================================================================
   RESPONSIF & AKSESIBILITAS
   ========================================================================== */
@media (max-height: 700px) {
    .cover-note {
        display: none;
    }
}

@media (max-width: 360px) {
    section,
    .closing {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .bottom-nav {
        padding: 0.45rem 0.9rem;
    }

    .nav-item {
        font-size: 0.78rem;
    }

    .cd-item {
        width: 60px;
    }

    .cd-number {
        font-size: 1.4rem;
    }

    .event-card {
        padding-left: 1.3rem;
        padding-right: 1.3rem;
    }

    .bank-number {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    #cover.opened {
        display: none;
    }

    .js [data-reveal] {
        opacity: 1;
        clip-path: none;
        transform: none;
        filter: none;
    }

    .js [data-reveal="oval"] img,
    .js [data-reveal="arch"] img,
    .js [data-reveal="line"]::before {
        transform: none;
    }
}
