/* ==========================================================================
   THEME: DESAIN 26 - ELEGAN GOLD (MARMER MUTIARA & LILY)
   KitoNgundang Wedding Invitation
   ========================================================================== */

:root {
    --pearl: #fbf8f3;
    --vein: #d9d3c8;
    --gold: #b08a3e;
    --gold-light: #d9b866;
    --gold-dark: #8c6a2b;
    --gold-line: rgba(176, 138, 62, 0.55);
    --bronze: #6e5426;
    --ink: #3b3224;
    --muted: #6b5e49;
    --sage: #a9ae86;
    --btn: #8a6230;
    --btn-dark: #6e4d22;
    --bg-body: #d9d2c5;

    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
    --font-arab: 'Amiri', serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--ink);
    line-height: 1.7;
    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(--gold-dark);
    outline-offset: 3px;
}

/* huruf sambung butuh jarak antarkata lebih lega */
.cover-script,
.cover-guest-name,
.script-sm,
.sec-title,
.person-name,
.event-title {
    word-spacing: 0.14em;
}

/* ---------- Ornamen lily (dipakai di sampul dan hero) ---------- */
.orn {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    animation: float var(--dur, 11s) ease-in-out var(--dl, 0s) infinite;
}

.orn-cover-bottom,
.orn-hero-left {
    --dur: 13s;
    --dl: -4s;
}

/* ---------- Tombol emas ---------- */
.btn-gold {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--btn) 0%, var(--btn-dark) 100%);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.85rem 2.1rem;
    border-radius: 10px;
    border: 1px solid rgba(217, 184, 102, 0.7);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(110, 84, 38, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.9s var(--ease);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(110, 84, 38, 0.36);
}

.btn-gold:hover::before {
    transform: translateX(130%);
}

.btn-gold:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   COVER
   ========================================================================== */
#cover {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    transform: translateX(-50%);
    z-index: 9999;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 36%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 62%),
        var(--pearl) url('../images/marble.svg') center top / 480px 720px;
    transition: transform 1.4s var(--ease-io), opacity 1.1s var(--ease-io) 0.15s, visibility 0s linear 1.4s;
}

#cover.opened {
    transform: translateX(-50%) scale(1.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* isi sampul bergerak lebih dulu: foto "ditembus", teks turun pelan */
#cover.opened .ring-photo {
    transform: scale(1.45);
    opacity: 0;
    transition: transform 1.3s var(--ease-io), opacity 0.9s ease 0.1s;
}

#cover.opened .cover-guest,
#cover.opened #btn-open,
#cover.opened .cover-names {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.8s var(--ease);
}

/* butiran emas */
#cover::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 78% 30%, #c7a24e 0 2.5px, transparent 3px),
        radial-gradient(circle at 12% 44%, #c7a24e 0 1.8px, transparent 2.3px),
        radial-gradient(circle at 90% 62%, #c7a24e 0 1.6px, transparent 2px),
        radial-gradient(circle at 30% 12%, #c7a24e 0 1.4px, transparent 1.9px),
        radial-gradient(circle at 66% 80%, #c7a24e 0 2px, transparent 2.5px);
    animation: twinkle 4s ease-in-out infinite alternate;
}

.orn-cover-top {
    top: -108px;
    right: -146px;
    width: 300px;
    transform: rotate(180deg);
}

.orn-cover-bottom {
    bottom: -134px;
    left: -128px;
    width: 300px;
}

.cover-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2dvh, 1.2rem);
    padding: 3dvh 1.5rem;
    text-align: center;
}

/* lengkung emas ganda: elemen yang paling diingat di halaman ini */
.cover-stage {
    --ring: min(58vw, clamp(150px, 27dvh, 232px));
    position: relative;
    width: min(100%, 340px);
    padding: clamp(20px, 4dvh, 36px) 1.5rem clamp(8px, 3dvh, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-stage::before,
.cover-stage::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border: 1.5px solid rgba(176, 138, 62, 0.85);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    -webkit-mask-image: linear-gradient(#000 74%, transparent);
    mask-image: linear-gradient(#000 74%, transparent);
}

.cover-stage::before {
    inset: 0 0 -5dvh;
    animation: archDraw 2.2s var(--ease) 0.2s backwards;
}

.cover-stage::after {
    inset: 9px 9px -5dvh;
    border-width: 1px;
    opacity: 0.55;
    animation: archDraw 2.2s var(--ease) 0.45s backwards;
}

.cover-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold-dark);
    padding-left: 0.42em;
}

.cover-script {
    font-family: var(--font-script);
    font-size: clamp(2rem, 5.6dvh, 2.6rem);
    line-height: 1.2;
    color: var(--bronze);
    margin-top: 0.1rem;
}

.ring-photo {
    position: relative;
    width: var(--ring);
    height: var(--ring);
    margin: clamp(1rem, 3.4dvh, 1.8rem) 0 clamp(1.1rem, 3.6dvh, 2rem);
}

.ring-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px var(--pearl),
        0 0 0 6px var(--gold),
        0 16px 34px rgba(110, 84, 38, 0.3);
}

/* cincin emas tipis yang saling menyilang, seperti goresan tangan */
.ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(from 30deg, #8c6a2b, #ecd28b, #8c6a2b, #e6c677, #8c6a2b);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.4px));
}

.ring {
    animation:
        ringIn 1.6s var(--ease) var(--d, 0s) backwards,
        spin var(--spin, 50s) linear infinite var(--dir, normal);
}

.ring-a {
    --o: 1;
    --spin: 46s;
    inset: -14px;
    transform: rotate(-14deg) scaleY(0.96);
}

.ring-b {
    --o: 0.7;
    --spin: 64s;
    --dir: reverse;
    inset: -23px;
    transform: rotate(26deg) scaleY(0.93);
    opacity: 0.7;
}

.ring-c {
    --o: 0.4;
    --spin: 80s;
    inset: -32px;
    transform: rotate(72deg) scaleY(0.9);
    opacity: 0.4;
}

.cover-names,
.hero-names,
.closing-names {
    font-family: var(--font-script);
    font-weight: 400;
    line-height: 1.15;
    background: linear-gradient(100deg, #6e5426 0%, #b08a3e 30%, #c39a46 42%, #b08a3e 54%, #6e5426 100%);
    background-size: 220% 100%;
    animation: sheen 9s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--bronze);
    word-spacing: 0.14em;
}

.cover-names {
    font-size: clamp(2.4rem, 12.5vw, 3.2rem);
    padding: 0.1em 0.15em;
    white-space: nowrap;
}

.cover-guest {
    max-width: 300px;
}

.cover-to {
    font-size: 0.8rem;
    color: var(--muted);
}

.cover-guest-name {
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 5dvh, 2.2rem);
    line-height: 1.25;
    color: var(--bronze);
    word-break: break-word;
}

.cover-note {
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 0.2rem;
}

/* ==========================================================================
   LAYOUT UMUM
   ========================================================================== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--pearl) url('../images/marble.svg') center top / 480px 720px;
    box-shadow: 0 0 50px rgba(59, 50, 36, 0.28);
}

section {
    position: relative;
    padding: 4.5rem 1.75rem;
    text-align: center;
    overflow: hidden;
}

section > *:not(.orn) {
    position: relative;
    z-index: 1;
}

.sec-title {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.15;
    color: var(--bronze);
}

.gold-rule {
    position: relative;
    display: block;
    width: 150px;
    height: 1px;
    margin: 0.9rem auto 1.8rem;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-rule::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 0 4px var(--pearl);
}

.lead {
    font-size: 0.92rem;
    color: var(--muted);
    max-width: 340px;
    margin: 0 auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */
#home {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3.5rem;
    padding-bottom: 5.5rem;
}

.orn-hero-right {
    top: -118px;
    right: -92px;
    width: 215px;
    transform: rotate(180deg);
}

.orn-hero-left {
    bottom: -124px;
    left: -124px;
    width: 300px;
}

.hero-seq {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.script-sm {
    font-family: var(--font-script);
    font-size: 2.1rem;
    line-height: 1.2;
    color: var(--bronze);
}

.arch-photo {
    position: relative;
    width: min(66vw, 280px);
    aspect-ratio: 3 / 4;
    margin: 1.3rem auto 2rem;
}

.arch-photo img,
.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px 999px 16px 16px;
    box-shadow:
        0 0 0 4px var(--pearl),
        0 0 0 5.5px var(--gold),
        0 18px 36px rgba(110, 84, 38, 0.28);
}

.arch-photo::before,
.arch-frame::before {
    content: '';
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(176, 138, 62, 0.6);
    border-radius: 999px 999px 24px 24px;
    pointer-events: none;
}

.hero-names {
    font-size: clamp(2.4rem, 12.5vw, 3.2rem);
    padding: 0.1em 0.15em;
    white-space: nowrap;
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    font-style: italic;
    color: var(--gold-dark);
    margin-top: 0.3rem;
}

/* satu momen gerak: hero muncul bertahap setelah sampul terangkat */
body.locked .hero-seq > * {
    opacity: 0;
}

body.opened .hero-seq > * {
    animation: riseSoft 1.4s var(--ease) backwards;
}

body.opened .hero-seq > :nth-child(1) { animation-delay: 0.6s; }
body.opened .hero-seq > :nth-child(2) { animation-delay: 0.8s; }
body.opened .hero-seq > :nth-child(3) { animation-delay: 1.15s; }
body.opened .hero-seq > :nth-child(4) { animation-delay: 1.3s; }

/* garis lengkung kedua menutup pelan di sekeliling foto */
body.opened .arch-photo::before {
    animation: outlineIn 1.9s var(--ease) 1s backwards;
}

@keyframes riseSoft {
    from { opacity: 0; transform: translateY(28px) scale(0.98); filter: blur(7px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes outlineIn {
    from { inset: -36px; opacity: 0; }
    to   { inset: -14px; opacity: 1; }
}

/* ==========================================================================
   PEMBUKAAN
   ========================================================================== */
#opening {
    padding-top: 2rem;
}

.salam {
    font-family: var(--font-arab);
    font-size: 1.7rem;
    line-height: 1.9;
    color: var(--bronze);
    margin-bottom: 1rem;
}

.ayat {
    margin: 2.4rem auto 0;
    padding: 1.8rem 0;
    max-width: 360px;
    border-top: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
}

.ayat-ar {
    font-family: var(--font-arab);
    font-size: 1.45rem;
    line-height: 2.3;
    color: var(--ink);
}

.ayat-id {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--muted);
    margin-top: 0.9rem;
}

.ayat cite {
    display: block;
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gold-dark);
    margin-top: 1rem;
}

/* ==========================================================================
   MEMPELAI
   ========================================================================== */
.person {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arch-frame {
    position: relative;
    width: 190px;
    height: 245px;
    margin-bottom: 1.8rem;
}

.arch-frame::before {
    inset: -12px;
}

.person-name {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--bronze);
}

.person-full {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    color: var(--gold-dark);
    margin-bottom: 0.7rem;
}

.person-parents {
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--muted);
}

.person-parents strong {
    font-weight: 500;
    color: var(--ink);
}

.person-ig {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 1rem;
    padding-bottom: 2px;
    font-size: 0.82rem;
    color: var(--bronze);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-line);
    transition: color 0.3s, border-color 0.3s;
}

.person-ig:hover {
    color: var(--gold-dark);
    border-color: var(--gold-dark);
}

.amp {
    font-family: var(--font-script);
    font-size: 4.2rem;
    line-height: 1;
    color: var(--gold);
    margin: 1.8rem 0;
}

/* ==========================================================================
   ACARA
   ========================================================================== */
.sec-date {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    color: var(--bronze);
    margin-top: -0.6rem;
}

.countdown {
    display: flex;
    justify-content: center;
    margin: 1.6rem 0 1rem;
}

.cd-item {
    min-width: 66px;
    padding: 0 0.7rem;
    border-left: 1px solid var(--gold-line);
}

.cd-item:first-child {
    border-left: 0;
}

.cd-number.tick {
    animation: tick 0.55s var(--ease);
}

.cd-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--bronze);
    font-variant-numeric: tabular-nums;
}

.cd-label {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 2.4rem;
}

.event-card,
.bank-card {
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.event-card:hover,
.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(110, 84, 38, 0.16);
}

.event-card {
    padding: 2.6rem 1.5rem 2.2rem;
    border: 1px solid var(--gold-line);
    border-radius: 190px 190px 22px 22px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 34px rgba(110, 84, 38, 0.1);
}

.event-crest {
    width: 54px;
    height: 54px;
    margin: 0 auto 0.6rem;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 1.2rem;
    background: var(--pearl);
    box-shadow: 0 0 0 5px rgba(176, 138, 62, 0.14);
}

.event-title {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 2.7rem;
    line-height: 1.2;
    color: var(--bronze);
}

.event-time {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-top: 0.2rem;
}

.event-place {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.9rem;
}

.event-addr {
    font-size: 0.83rem;
    color: var(--muted);
    max-width: 260px;
    margin: 0.1rem auto 1.3rem;
}

/* ==========================================================================
   KISAH (urutan nyata, jadi memakai garis waktu)
   ========================================================================== */
.timeline {
    position: relative;
    list-style: none;
    max-width: 340px;
    margin: 0 auto;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}

.timeline li {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 2.1rem;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: var(--pearl);
    box-shadow: 0 0 0 4px var(--pearl);
}

.tl-year {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    font-style: italic;
    color: var(--gold-dark);
    line-height: 1.3;
}

.timeline h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
}

.timeline p {
    font-size: 0.87rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* ==========================================================================
   GALERI
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.g-item {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1;
    background: var(--vein);
    box-shadow: 0 6px 18px rgba(110, 84, 38, 0.14);
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.g-item:hover img {
    transform: scale(1.06);
}

.g-tall {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
}

.g-wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 24, 14, 0.93);
}

.lightbox[hidden] {
    display: none;
}

.lightbox:not([hidden]) {
    animation: fadeIn 0.4s ease;
}

.lb-img.swap {
    animation: lbImg 0.6s var(--ease);
}

.lb-img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(217, 184, 102, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #f3d98b;
    font-size: 1rem;
    cursor: pointer;
}

.lb-close { top: 16px; right: 16px; }
.lb-prev  { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 10px; top: 50%; transform: translateY(-50%); }

.lb-close:focus-visible,
.lb-prev:focus-visible,
.lb-next:focus-visible {
    outline-color: #f3d98b;
}

/* ==========================================================================
   TANDA KASIH
   ========================================================================== */
.bank-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 340px;
    margin: 1.8rem auto 0;
}

.bank-card {
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--gold-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
}

.bank-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bronze);
    line-height: 1.2;
}

.bank-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    margin-top: 0.5rem;
}

.bank-holder {
    font-size: 0.85rem;
    color: var(--muted);
}

.btn-copy {
    margin-top: 1rem;
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    border: 1px solid var(--btn);
    background: transparent;
    color: var(--btn);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn-copy:hover {
    background: var(--btn);
    color: #ffffff;
}

/* ==========================================================================
   RSVP & UCAPAN
   ========================================================================== */
.rsvp-form {
    max-width: 380px;
    margin: 0 auto;
    text-align: left;
}

.field {
    margin-bottom: 1.1rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bronze);
    margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--gold-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
}

.field textarea {
    resize: vertical;
}

.wishes-feed {
    max-width: 380px;
    max-height: 420px;
    margin: 2.4rem auto 0;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    overflow-y: auto;
    text-align: left;
}

.wish-card {
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--gold);
    border-radius: 4px 14px 14px 4px;
    background: rgba(255, 255, 255, 0.68);
}

.wish-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.wish-author {
    font-size: 0.9rem;
    font-weight: 500;
}

.wish-status {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gold-dark);
}

.wish-status-no {
    color: #8a5a4a;
}

.wish-new {
    animation: wishIn 0.9s var(--ease);
}

.wish-text {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   PENUTUP
   ========================================================================== */
.closing {
    position: relative;
    margin-top: 1rem;
    padding: 6rem 1.75rem 7.5rem;
    text-align: center;
    color: #f4ecd8;
    background: linear-gradient(180deg, #6e5426 0%, #3b3224 100%);
    border-radius: 220px 220px 0 0;
}

.closing::before {
    content: '';
    position: absolute;
    inset: 10px 10px 0;
    border: 1px solid rgba(217, 184, 102, 0.45);
    border-bottom: 0;
    border-radius: 210px 210px 0 0;
    pointer-events: none;
}

.closing-text {
    max-width: 330px;
    margin: 0 auto 1.8rem;
    font-size: 0.88rem;
    line-height: 1.75;
    opacity: 0.92;
}

.closing-regards {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gold-light);
}

.closing .closing-names {
    font-size: clamp(2.5rem, 12.5vw, 3.3rem);
    white-space: nowrap;
    background: linear-gradient(100deg, #e8cc82 0%, #f6e3a8 50%, #e8cc82 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    padding: 0.1em 0.15em;
}

.footer-credit {
    margin-top: 2.2rem;
    font-size: 0.75rem;
    color: rgba(244, 236, 216, 0.7);
}

.footer-credit i {
    color: var(--gold-light);
}

.footer-credit a {
    color: var(--gold-light);
    font-weight: 500;
    text-decoration: none;
}

/* ==========================================================================
   MUSIK & NAVIGASI BAWAH (gaya sama dengan desain 16-25)
   ========================================================================== */
#music-btn {
    position: fixed;
    top: 18px;
    right: max(18px, calc(50% - 240px + 18px));
    width: 42px;
    height: 42px;
    border: 1px solid rgba(217, 184, 102, 0.7);
    border-radius: 50%;
    background: rgba(110, 84, 38, 0.92);
    color: #f3d98b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(59, 50, 36, 0.35);
    animation: rotateMusic 4s linear infinite;
}

#music-btn.paused {
    animation-play-state: paused;
    opacity: 0.78;
}

#music-btn::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid rgba(217, 184, 102, 0.85);
    opacity: 0;
    pointer-events: none;
}

#music-btn:not(.paused)::after {
    animation: ripple 2.4s var(--ease) infinite;
}

@keyframes rotateMusic {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(110, 84, 38, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(217, 184, 102, 0.4);
    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(59, 50, 36, 0.4);
}

.nav-item {
    color: #e9ddc0;
    text-decoration: none;
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: color 0.3s, transform 0.3s;
}

.nav-item i {
    font-size: 1.1rem;
}

.nav-item.active,
.nav-item:hover {
    color: #f3d98b;
    transform: translateY(-2px);
}

.nav-item:focus-visible {
    outline-color: #f3d98b;
}

body.opened .bottom-nav {
    animation: navIn 1.2s cubic-bezier(0.34, 1.45, 0.64, 1) 1.6s backwards;
}

.nav-item.active i {
    animation: navPop 0.55s cubic-bezier(0.34, 1.8, 0.64, 1);
}

/* ==========================================================================
   ANIMASI
   Prinsip: gerak masuk memakai easing "keluar cepat, berhenti pelan",
   tiap jenis elemen punya gerak sendiri, dan jeda diatur berurutan.
   ========================================================================== */
@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

.cv {
    animation: rise 1.1s var(--ease) var(--d, 0s) backwards;
}

.ring-photo {
    animation: popIn 1.5s var(--ease) 0.4s backwards;
}

/* nama: animasi masuk lalu kilau emas; ditulis ulang karena .cv dan hero-seq menimpa properti animation */
.cover-names.cv {
    animation:
        rise 1.1s var(--ease) var(--d, 0s) backwards,
        sheen 9s ease-in-out 2.6s infinite;
}

body.opened .hero-seq > .hero-names {
    animation:
        riseSoft 1.4s var(--ease) 1.15s backwards,
        sheen 9s ease-in-out 3s infinite;
}

#btn-open.cv {
    animation:
        rise 1.1s var(--ease) var(--d, 0s) backwards,
        glow 2.8s ease-in-out 3s infinite;
}

#cover .orn {
    animation:
        ornIn 2s var(--ease) 0.1s backwards,
        float var(--dur, 11s) ease-in-out var(--dl, 0s) infinite;
}

body.locked .orn-hero-left,
body.locked .orn-hero-right {
    opacity: 0;
}

body.opened .orn-hero-left,
body.opened .orn-hero-right {
    animation:
        ornIn 2s var(--ease) 0.7s backwards,
        float var(--dur, 11s) ease-in-out var(--dl, 0s) infinite;
}

@keyframes archDraw {
    from { clip-path: inset(100% 0 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.86); }
    to   { opacity: 1; transform: none; }
}

@keyframes ringIn {
    from { opacity: 0; scale: 0.7; }
    to   { opacity: var(--o, 1); scale: 1; }
}

@keyframes spin {
    to { rotate: 360deg; }
}

@keyframes ornIn {
    from { opacity: 0; scale: 0.82; }
    to   { opacity: 1; scale: 1; }
}

@keyframes float {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50%      { translate: 7px -9px; rotate: 2.6deg; }
}

@keyframes sheen {
    0%, 100% { background-position: 100% 0; }
    50%      { background-position: 0% 0; }
}

@keyframes twinkle {
    from { opacity: 0.35; }
    to   { opacity: 1; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 8px 20px rgba(110, 84, 38, 0.28), 0 0 0 0 rgba(176, 138, 62, 0.4); }
    50%      { box-shadow: 0 8px 20px rgba(110, 84, 38, 0.28), 0 0 0 11px rgba(176, 138, 62, 0); }
}

@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); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes lbImg {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: none; }
}

@keyframes wishIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); background: rgba(217, 184, 102, 0.4); }
    to   { opacity: 1; transform: none; }
}

@keyframes tick {
    from { opacity: 0.25; transform: translateY(-9px); }
    to   { opacity: 1; transform: none; }
}

/* muncul saat digulir: kelas .js dipasang oleh script.js, atribut data-reveal diberi otomatis */
.js [data-reveal] {
    opacity: 0;
    transition:
        opacity 1s var(--ease) var(--d, 0s),
        transform 1.2s var(--ease) var(--d, 0s),
        filter 1s var(--ease) var(--d, 0s),
        clip-path 1.4s var(--ease) var(--d, 0s);
}

.js [data-reveal="up"]    { transform: translateY(28px); }
.js [data-reveal="title"] { transform: translateY(18px); filter: blur(9px); }
.js [data-reveal="card"]  { transform: translateY(46px) scale(0.96); }
.js [data-reveal="arch"]  { transform: translateY(48px) scale(0.93); }
.js [data-reveal="pop"]   { transform: scale(0.9); }
.js [data-reveal="amp"]   { transform: scale(0.5) rotate(-14deg); }
.js [data-reveal="rule"]  { opacity: 1; clip-path: inset(-8px 50% -8px 50%); }
.js [data-reveal="line"]  { opacity: 1; }

.js [data-reveal="line"]::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 2s var(--ease-io) var(--d, 0s);
}

.js [data-reveal].in {
    opacity: 1;
    transform: none;
    filter: none;
}

.js [data-reveal="rule"].in {
    clip-path: inset(-8px 0 -8px 0);
}

.js [data-reveal="line"].in::before {
    transform: scaleY(1);
}

/* ==========================================================================
   RESPONSIF & AKSESIBILITAS
   ========================================================================== */
@media (max-width: 360px) {
    section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .bottom-nav {
        padding: 0.45rem 0.9rem;
    }

    .nav-item {
        font-size: 0.66rem;
    }

    .cd-item {
        min-width: 58px;
        padding: 0 0.5rem;
    }

    .cd-number {
        font-size: 2.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    body.locked .hero-seq > *,
    body.locked .orn-hero-left,
    body.locked .orn-hero-right,
    .js [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
    }
}
