:root {
    --ruby: #700f06;
    --ruby-dark: #4d0b04;
    --cream: #fff0e5;
    --cream-2: #e8d5c4;
    --green: #3c4034;
    --sage: #585c4c;
    --gold: #ceb172;
    --gold-2: #e1bf7c;
    --ink-cover: #2c1e11;
    --paper: #fff9f0;
}

* { box-sizing: border-box; }
html {
    min-height: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    min-height: 100%;
    background: var(--cream);
    color: var(--ruby);
    font-family: "Inter", Arial, sans-serif;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.font-section-judul { font-family: "Vesper Libre", serif; font-weight: 400; }
.font-vidaloka { font-family: "Vidaloka", serif; }
.font-belleza { font-family: "Belleza", sans-serif; }
.font-libreCaslon { font-family: "Libre Caslon Display", serif; }
.font-aboreto { font-family: "Aboreto", serif; }
.font-poppins { font-family: "Poppins", sans-serif; }
.font-inter { font-family: "Inter", sans-serif; }
.font-imperial { font-family: "Imperial Script", cursive; }
.text-gold-trj { color: var(--ink-cover); }
.bg-gold-trj { background-color: var(--ink-cover); }

.cover-gate {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    z-index: 2000;
    background: var(--cream);
    transition: transform .72s ease-in-out, opacity .72s ease-in-out, visibility .72s;
    will-change: transform, opacity;
}

.cover-gate.is-open {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.cover-gate__image {
    position: absolute;
    inset: 0;
    background-image: var(--trj-cover-image);
    background-position: center;
    background-size: cover;
}

.trj-cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-color: var(--cream);
    opacity: .25;
    pointer-events: none;
}

.cover-gate__content {
    position: relative;
    z-index: 3;
    height: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    text-align: center;
}

.cover-gate__inner {
    width: min(100%, 900px);
    margin-top: -3rem;
}

.cover-title {
    margin: 0 0 1.25rem;
    color: var(--ink-cover);
    text-transform: uppercase;
    font-size: clamp(.78rem, 2.5vw, 1.25rem);
    font-weight: 500;
    letter-spacing: .04em;
}

.cover-names,
.desktop-names,
.inline-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.cover-names h1,
.cover-names span {
    margin: 0;
    color: var(--ink-cover);
    font-family: "Vidaloka", serif;
    font-size: clamp(2.5rem, 12vw, 6rem);
    line-height: 1;
    text-transform: capitalize;
    font-weight: 400;
}

.cover-date,
.cover-dear,
.cover-guest {
    margin: 1rem 0 0;
    color: var(--ink-cover);
    font-size: clamp(.78rem, 2.5vw, 1.25rem);
}

.cover-guest { font-weight: 700; }
.trj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    min-height: 2rem;
    margin-top: .85rem;
    padding: .44rem .95rem .4rem;
    border-radius: .55rem;
    border: 0;
    background: linear-gradient(180deg, var(--gold-2), #b69f65);
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 6px 14px rgb(44 30 17 / .14);
    transition: filter .2s ease, transform .2s ease;
}

.cover-gate .trj-btn {
    background: var(--ink-cover);
    min-height: 2.15rem;
    padding: .48rem 1.08rem .44rem;
    border-radius: .65rem;
}

.trj-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

.invitation-shell {
    min-height: 100vh;
    display: flex;
    opacity: 0;
    transition: opacity .45s ease;
}

.invitation-shell.is-visible { opacity: 1; }

.desktop-hero {
    display: none;
    position: sticky;
    top: 0;
    width: 66.666%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: #fff;
}

.desktop-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / .5);
}

.desktop-hero__text {
    position: absolute;
    left: 5rem;
    bottom: 12rem;
    z-index: 2;
}

.desktop-hero__text p {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #fff;
}

.desktop-names h1 {
    margin: 0;
    font-size: clamp(3.5rem, 5.5vw, 5rem);
    font-family: "Belleza", sans-serif;
    font-weight: 500;
    color: #fff;
}

.mobile-scroll {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream);
}

.trj-inline-cover {
    height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: #f4f2ee;
}

.trj-inline-cover__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #f4f2ee;
}

.trj-inline-cover__media video,
.trj-inline-cover__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.trj-inline-cover__video {
    opacity: 0;
    transition: opacity .28s ease;
}

.trj-inline-cover__video.is-playing {
    opacity: 1;
}

.trj-inline-cover__freeze {
    display: none !important;
}

.trj-inline-cover__freeze.is-visible {
    display: block !important;
}

.trj-inline-cover__fallback {
    opacity: 0;
    transition: opacity .24s ease;
}

.trj-inline-cover__fallback.is-visible {
    opacity: 1;
}

.trj-inline-cover__video.is-hidden {
    display: none !important;
}

.trj-inline-cover.is-static .trj-inline-cover__video {
    display: none !important;
}

.inline-cover__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--green);
}

.inline-cover__content.trj-inline-cover-text {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.22, 1, .36, 1);
}

.inline-cover__content.trj-inline-cover-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.inline-cover__content p {
    margin: 0 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--green);
}

.inline-names h1,
.inline-names span {
    margin: 0;
    font-family: "Vidaloka", serif;
    font-weight: 400;
    color: var(--green);
    font-size: clamp(2.5rem, 10vw, 4rem);
}

.section {
    position: relative;
    width: 100%;
    padding: 3.5rem 1.25rem;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
    contain: paint; /* Membatasi render browser hanya di dalam kotak section ini */
}

.bg-quotes-section {
    background-image: radial-gradient(at center right, #fff0e5 0%, #e8d5c4 100%);
}

.section-cover1 {
    background-image:
        linear-gradient(rgb(255 240 229 / .26), rgb(255 240 229 / .26)),
        var(--trj-cover1-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section-cover2 {
    background-image: var(--trj-cover2-image);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section-cover4 {
    background-image: var(--trj-cover4-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section-title {
    margin: 0 0 1rem;
    text-align: center;
    font-family: "Vesper Libre", serif;
    font-weight: 400;
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.1;
    color: var(--ruby);
}

.section-copy {
    width: min(100%, 38rem);
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: .95rem;
    color: var(--ruby);
}

.quotes-card {
    position: relative;
    width: min(100%, 31rem);
    margin: 0 auto;
    padding: 2.25rem 1.5rem;
    text-align: center;
}

.quotes-photo {
    width: 100%;
    height: 28rem;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.quotes-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trj-flower {
    position: absolute;
    width: min(52vw, 240px);
    z-index: 2;
    pointer-events: none;
    animation: trj-flower-sway 5.5s ease-in-out infinite;
}

.trj-flower.left { left: -7rem; bottom: 8rem; }
.trj-flower.right { right: -7rem; top: 1rem; transform: scaleX(-1); animation-delay: -2.75s; }

@keyframes trj-flower-sway {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    33% { translate: 0 -12px; rotate: 2.5deg; }
    66% { translate: 0 -5px; rotate: -2deg; }
}

.trj-mempelai-panel {
    width: min(100%, 38rem);
    margin: 0 auto;
    padding: 2.5rem 1rem;
    border: 4px solid var(--ruby);
    border-radius: 3.125rem;
    background: rgb(255 240 229 / .82);
    box-shadow: 0 4px 20px rgb(0 0 0 / .06);
}

.couple-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.couple-card {
    width: 100%;
    text-align: center;
    color: var(--ruby);
}

.couple-photo-shell {
    position: relative;
    width: min(76%, 320px);
    margin: 1.5rem auto 1rem;
}

.couple-photo {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 999px;
    border: 4px solid var(--ruby);
    overflow: hidden;
    background: var(--paper);
}

.couple-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.couple-photo-shell .flower {
    position: absolute;
    right: -38%;
    bottom: -5%;
    width: clamp(190px, 80%, 340px);
    z-index: 2;
    pointer-events: none;
}

.couple-nick {
    margin: .5rem 0;
    font-family: "Imperial Script", cursive;
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    font-weight: 400;
}

.couple-full {
    margin: .75rem 0;
    font-family: "Vidaloka", serif;
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    font-weight: 400;
}

.couple-profile {
    margin: 0 auto;
    max-width: 24rem;
    line-height: 1.8;
    font-size: .9rem;
}

.couple-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: .85rem;
    padding: .35rem .75rem;
    border: 1px solid rgb(112 15 6 / .22);
    border-radius: 999px;
    color: var(--ruby);
    font-family: "Inter", sans-serif;
    font-size: .82rem;
    text-decoration: none;
    background: rgb(255 255 255 / .34);
    transition: filter .2s ease, transform .2s ease;
}

.couple-instagram:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.couple-and {
    margin: .25rem 0;
    font-family: "Vidaloka", serif;
    font-size: 4rem;
}

.countdown-section {
    height: 500px;
    padding: 0;
    background: var(--sage);
    color: #fff;
}

.countdown-bg {
    position: absolute;
    inset: 0;
}

.countdown-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.countdown-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(112 15 6 / .38);
}

.countdown-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: 1rem;
    text-align: center;
}

.widget-eyebrow {
    margin: 0;
    color: rgb(255 255 255 / .82);
    font-family: "Inter", sans-serif;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.countdown-title {
    margin: 0;
    color: #fff;
    font-family: "Vesper Libre", serif;
    font-size: clamp(1.65rem, 7vw, 2.35rem);
    line-height: 1.05;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .45rem;
    width: min(100%, 27rem);
}

.count-box {
    padding: .7rem .35rem .6rem;
    font-family: "Aboreto", serif;
    border: 1px solid rgb(255 255 255 / .42);
    border-radius: .65rem;
    background: rgb(255 255 255 / .1);
    backdrop-filter: blur(2px);
}

.count-box strong {
    display: block;
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
}

.count-box span {
    display: block;
    color: #fff;
    margin-top: .45rem;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.schedule-stack {
    width: min(100%, 34rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.schedule-card {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 4px solid var(--gold);
    background: var(--paper);
    color: var(--ruby);
    box-shadow: 0 2px 0 rgb(206 177 114 / .35), 0 16px 40px rgb(0 0 0 / .12);
}

.schedule-card > img {
    width: 100%;
    height: auto;
}

.schedule-card__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(7.5rem, 32%, 14rem) 1.05rem 1.5rem;
    overflow-y: auto;
    text-align: center;
}

.schedule-card h3 {
    margin: 0 0 1rem;
    font-family: "Vesper Libre", serif;
    font-size: clamp(1.75rem, 8vw, 3rem);
    font-weight: 400;
    text-transform: uppercase;
}

.schedule-card h3,
.schedule-card p {
    text-shadow: 0 0 1px rgb(255 249 240 / .98), 0 1px 3px rgb(255 249 240 / .95), 0 0 18px rgb(255 249 240 / .65);
}

.schedule-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    margin-bottom: 1rem;
}

.schedule-date-block p { margin: 0; }
.date-day,
.date-mmyy {
    font-family: "Vesper Libre", serif;
    font-weight: 700;
    font-size: clamp(.9rem, 2.8vw, 1.12rem);
    letter-spacing: .12em;
    line-height: 1.3;
}

.date-num {
    font-family: "Vidaloka", serif;
    font-size: clamp(3.5rem, 14vw, 5.25rem);
    line-height: 1;
    letter-spacing: .03em;
}

.schedule-info {
    margin: 0 0 1rem;
    font-size: clamp(.9rem, 2.8vw, 1.1rem);
    line-height: 1.5;
}

.location-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    margin: .2rem auto .75rem;
    color: var(--ruby);
}

.location-divider::before,
.location-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
}

.story-list,
.gift-list {
    width: min(100%, 34rem);
    margin: 1.5rem auto 0;
    display: grid;
    gap: 1rem;
}

.story-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    min-height: 9rem;
    text-align: left;
    border: 1px solid rgb(112 15 6 / .16);
    border-radius: .9rem;
    background: rgb(255 255 255 / .38);
    box-shadow: 0 10px 28px rgb(112 15 6 / .08);
}

.story-card--text-only {
    grid-template-columns: 1fr;
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card__body {
    position: relative;
    padding: 1rem 1rem 1.1rem;
}

.story-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: .55rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--ruby);
    background: rgb(255 255 255 / .52);
    font-family: "Inter", sans-serif;
    font-size: .68rem;
}

.story-card h3 {
    margin: 0 0 .35rem;
    font-family: "Vesper Libre", serif;
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.15;
}

.story-card p {
    margin: 0;
    font-size: .86rem;
    line-height: 1.65;
}

/* --- GAYA BARU GALERI (MASONRY / PINTEREST STYLE) --- */
.gallery-grid {
    width: min(100%, 30rem); /* Sedikit dilebarkan agar foto terlihat lebih jelas */
    margin: 1.5rem auto 0;
    column-count: 2; /* Membuat 2 kolom sejajar */
    column-gap: 0.5rem; /* Jarak antar kolom (Kiri-Kanan) */
}

.gallery-grid button {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem; /* Jarak antar foto (Atas-Bawah) */
    break-inside: avoid; /* Mencegah foto terpotong di tengah-tengah kolom */
    padding: 0;
    border: 0;
    overflow: hidden;
    border-radius: 0.65rem; /* Efek membulat yang lebih elegan */
    background: var(--ruby);
    cursor: zoom-in;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Tambahan bayangan halus */
}

.gallery-grid img {
    width: 100%;
    height: auto; /* KUNCI UTAMA: Membiarkan tinggi foto menyesuaikan aslinya (potrait/landscape) */
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-grid button:hover img { 
    transform: scale(1.05); /* Sedikit dikurangi agar tidak terlalu agresif saat foto besar */
}

.gallery-grid button:hover img { transform: scale(1.08); }

.gallery-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgb(18 12 8 / .88);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox__image {
    max-width: min(92vw, 38rem);
    max-height: 82vh;
    max-height: 82dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: .75rem;
    box-shadow: 0 18px 50px rgb(0 0 0 / .45);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / .45);
    color: #fff;
    background: rgb(112 15 6 / .82);
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
    filter: brightness(1.08);
}

.gallery-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
}

.gallery-lightbox__nav {
    top: 50%;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    transform: translateY(-50%);
    font-size: 1.65rem;
    line-height: 1;
}

.gallery-lightbox__nav--prev {
    left: .75rem;
}

.gallery-lightbox__nav--next {
    right: .75rem;
}

.guest-card {
    width: min(100%, 36rem);
    margin: 0 auto 1.5rem;
    padding: 2rem 1rem;
    border: 4px solid #a6a69a;
    border-radius: 2rem;
    color: var(--green);
    text-align: center;
    background-image:
        linear-gradient(165deg, rgb(255 252 247 / .78) 0%, rgb(255 242 228 / .72) 42%, rgb(250 234 220 / .7) 100%),
        var(--trj-cover1-image);
    background-position: center;
    background-size: cover;
    box-shadow: 0 0 10px rgb(0 0 0 / .5);
}

.guest-card h2 {
    color: var(--green);
    margin: 0 0 1rem;
}

.gift-card {
    overflow: hidden;
    border-radius: 18px;
    background-image:
        linear-gradient(155deg, rgb(255 248 240 / .09) 0%, transparent 42%),
        repeating-linear-gradient(-11deg, transparent, transparent 4px, rgb(0 0 0 / .045) 4px, rgb(0 0 0 / .045) 5px),
        linear-gradient(152deg, #671007 0%, var(--ruby) 52%, var(--ruby-dark) 100%);
    color: #fff5eb;
    box-shadow: inset 0 1px 0 rgb(255 239 225 / .14), 0 8px 24px rgb(0 0 0 / .3);
}

.gift-location-card {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid rgb(206 177 114 / .8);
    border-radius: 1rem;
    color: var(--ruby);
    background: rgb(255 255 255 / .46);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 8px 24px rgb(60 64 52 / .08);
    text-align: left;
}

.gift-location-card__icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--ruby);
    box-shadow: 0 8px 18px rgb(112 15 6 / .18);
}

.gift-location-card__text {
    min-width: 0;
    flex: 1 1 auto;
}

.gift-location-card__text h3,
.gift-location-card__text p {
    margin: 0;
    color: var(--ruby);
}

.gift-location-card__text h3 {
    font-family: "Vesper Libre", serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.15;
}

.gift-location-card__text p {
    margin-top: .35rem;
    font-size: .86rem;
    line-height: 1.55;
}

.gift-location-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
    min-width: 0;
}

.gift-location-card__actions button,
.gift-location-card__actions a {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    border: 0;
    border-radius: .5rem;
    padding: .34rem .66rem;
    color: #fff;
    background: var(--ruby);
    font-family: "Vesper Libre", serif;
    font-size: .74rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.gift-card__inner {
    min-height: 7rem;
    display: flex;
    align-items: stretch;
}

.gift-card__text {
    flex: 1;
    min-width: 0;
    padding: 1.15rem .75rem 1.15rem 1.35rem;
    text-align: left;
}

.gift-card__text h3,
.gift-card__text p {
    margin: 0;
    color: #fff5eb;
    line-height: 1.5;
}

.gift-card__text h3 {
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: .25rem;
}

.gift-card__aside {
    position: relative;
    flex-shrink: 0;
    width: clamp(128px, 33vw, 200px);
    min-height: 7.85rem;
}

.gift-card__aside img {
    position: absolute;
    right: -4px;
    bottom: -2px;
    height: calc(100% + 26px);
    max-height: 168px;
    width: auto;
    pointer-events: none;
}

.copy-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-62%, -50%);
    z-index: 2;
    border: 0;
    border-radius: .5rem;
    padding: .34rem .82rem;
    background: linear-gradient(180deg, #e9d5a8 0%, #c9a065 92%);
    color: #3d1508;
    font-family: "Vesper Libre", serif;
    font-size: .76rem;
    line-height: 1;
    box-shadow: 0 3px 10px rgb(0 0 0 / .16);
}

.wish-form {
    display: grid;
    gap: .7rem;
    margin-top: 1.2rem;
}

.wish-meta {
    display: block;
}

.field {
    width: 100%;
    border: 1px solid rgb(206 177 114 / .9);
    border-radius: .55rem;
    padding: .68rem .82rem;
    color: var(--ruby);
    background: #fff;
    font-size: .86rem;
}

textarea.field { min-height: 6rem; resize: vertical; }

.wish-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .7rem;
    font-family: "Inter", sans-serif;
    font-size: .82rem;
    color: var(--ruby);
}

.wish-stats span {
    padding: .35rem .7rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: rgb(255 255 255 / .38);
}

.wish-list {
    display: grid;
    gap: .65rem;
    max-height: 20rem;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: .2rem;
    text-align: left;
    overscroll-behavior: contain;
}

.wish-item {
    display: flex;
    gap: .72rem;
    padding: .78rem .82rem;
    border: 1px solid rgb(206 177 114 / .75);
    border-radius: .9rem;
    background: rgb(255 255 255 / .42);
    color: var(--ruby);
}

.wish-avatar {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(160deg, var(--ruby) 0%, #4d0b04 100%);
    font-family: "Inter", sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.wish-item__content {
    min-width: 0;
    flex: 1;
}

.wish-item__head {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: baseline;
}

.wish-item strong,
.wish-item p,
.wish-item small {
    margin: 0;
    color: inherit;
}

.wish-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .86rem;
    line-height: 1.35;
}

.wish-item small {
    flex: 0 0 auto;
    color: rgb(112 15 6 / .62);
    font-size: .68rem;
}

.wish-item p {
    margin-top: .28rem;
    font-size: .82rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.wish-empty {
    display: grid;
    justify-items: center;
    gap: .45rem;
    padding: 1.1rem .9rem;
    border: 1px dashed rgb(206 177 114 / .85);
    border-radius: .9rem;
    color: var(--ruby);
    background: rgb(255 255 255 / .35);
    text-align: center;
}

.wish-empty i {
    color: var(--ruby);
}

.wish-empty p {
    margin: 0;
    font-size: .82rem;
    line-height: 1.55;
}

/* Scoped widget polish: keep these rules close to the real widget markup so
   dashboard/plugin-wide styles cannot flatten the gift and wish cards. */
#section-guest .guest-card {
    position: relative;
    overflow: hidden;
    border-color: var(--gold);
    background-image:
        linear-gradient(165deg, rgb(255 252 247 / .9) 0%, rgb(255 242 228 / .84) 48%, rgb(250 234 220 / .82) 100%),
        var(--trj-cover1-image);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / .72),
        0 16px 38px rgb(44 30 17 / .18);
}

#section-guest .guest-card::before {
    content: "";
    position: absolute;
    inset: .65rem;
    border: 1px solid rgb(206 177 114 / .48);
    border-radius: 1.55rem;
    pointer-events: none;
}

#section-guest .guest-card > * {
    position: relative;
    z-index: 1;
}

#section-guest .section-title {
    margin-bottom: .55rem;
    color: var(--ruby);
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.05;
}

#section-guest .section-copy {
    width: min(100%, 28rem);
    margin-right: auto;
    margin-left: auto;
    color: rgb(112 15 6 / .82);
    font-size: .84rem;
    line-height: 1.7;
}

#section-guest .gift-list {
    gap: .85rem;
}

#section-guest .gift-location-card {
    align-items: stretch;
    padding: .85rem;
    border: 1px solid rgb(206 177 114 / .95);
    background:
        linear-gradient(135deg, rgb(255 255 255 / .78), rgb(255 246 238 / .58));
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / .8),
        0 8px 20px rgb(112 15 6 / .08);
}

#section-guest .gift-location-card__icon {
    width: 2.7rem;
    height: 2.7rem;
    margin-top: .1rem;
    background:
        linear-gradient(160deg, var(--ruby) 0%, var(--ruby-dark) 100%);
}

#section-guest .gift-location-card__text h3 {
    color: var(--ruby);
}

#section-guest .gift-location-card__text p {
    color: rgb(112 15 6 / .86);
}

#section-guest .gift-location-card__actions button,
#section-guest .gift-location-card__actions a {
    min-height: 1.55rem;
    border: 1px solid rgb(112 15 6 / .18);
    background:
        linear-gradient(180deg, #e1bf7c 0%, #b69f65 100%);
    color: #fff;
    box-shadow: 0 3px 9px rgb(112 15 6 / .1);
}

#section-guest-book.wish-card {
    padding-bottom: 1.35rem;
}

#section-guest-book .wish-stats span {
    border-color: rgb(206 177 114 / .95);
    color: var(--ruby);
    background: rgb(255 255 255 / .62);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .7);
}

#section-guest-book .wish-form {
    padding: .95rem;
    border: 1px solid rgb(206 177 114 / .8);
    border-radius: 1rem;
    background: rgb(255 255 255 / .48);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .68);
}

#section-guest-book .field {
    border-color: rgb(206 177 114 / .88);
    background: rgb(255 255 255 / .9);
    box-shadow: inset 0 1px 2px rgb(112 15 6 / .04);
}

#section-guest-book .wish-list {
    max-height: 20rem;
    padding: .2rem .25rem .2rem 0;
}

#section-guest-book .wish-list::-webkit-scrollbar {
    width: 5px;
}

#section-guest-book .wish-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgb(112 15 6 / .28);
}

#section-guest-book .wish-item,
#section-guest-book .wish-empty {
    background:
        linear-gradient(135deg, rgb(255 255 255 / .74), rgb(255 246 238 / .48));
    box-shadow: 0 7px 18px rgb(112 15 6 / .06);
}

#section-guest-book .wish-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#section-guest-book .wish-item + .wish-item {
    border-top: 1px solid rgb(206 177 114 / .45);
}

/* Compact production rhythm for invitation widgets. */
.mobile-scroll .section {
    padding-top: 2.65rem;
    padding-bottom: 2.65rem;
}

.mobile-scroll .section-title {
    margin-bottom: .55rem;
    font-size: clamp(1.7rem, 7vw, 2.7rem);
    line-height: 1.02;
}

.mobile-scroll .section-copy {
    font-size: .84rem;
    line-height: 1.52;
}

#section-quotes .quotes-card {
    padding: 1.35rem .85rem;
}

#section-quotes .quotes-photo {
    height: 24rem;
    margin-bottom: 1.2rem;
    border-radius: 1.25rem;
}

#section-mempelai .trj-mempelai-panel {
    padding: 1.85rem .9rem;
    border-radius: 2rem;
}

#section-mempelai .couple-stack {
    gap: 1.25rem;
}

#section-mempelai .couple-photo-shell {
    margin-top: 1rem;
    margin-bottom: .65rem;
}

#section-mempelai .couple-nick {
    margin: .25rem 0;
}

#section-mempelai .couple-full {
    margin: .45rem 0;
    line-height: 1.15;
}

#section-mempelai .couple-profile {
    font-size: .84rem;
    line-height: 1.48;
}

#section-countdown .countdown-content {
    gap: .72rem;
}

#section-countdown .count-box {
    padding: .55rem .25rem .48rem;
}

#section-countdown .count-box span {
    margin-top: .28rem;
}

#section-schedule .schedule-stack {
    gap: 1.25rem;
}

#section-schedule .schedule-card h3 {
    margin-bottom: .65rem;
}

#section-schedule .schedule-date-block {
    margin-bottom: .65rem;
}

#section-schedule .schedule-info {
    margin-bottom: .65rem;
    line-height: 1.34;
}

#section-story .story-list,
#section-guest .gift-list {
    margin-top: 1rem;
    gap: .72rem;
}

#section-story .story-card {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    min-height: 7.75rem;
}

#section-story .story-card__body {
    padding: .72rem .78rem .78rem;
}

#section-story .story-card__step {
    width: 1.65rem;
    height: 1.65rem;
    margin-bottom: .38rem;
    font-size: .6rem;
}

#section-story .story-card h3 {
    margin-bottom: .24rem;
    font-size: 1.18rem;
}

#section-story .story-card p {
    font-size: .8rem;
    line-height: 1.42;
}

#section-gallery .gallery-grid {
    margin-top: 1rem;
    gap: .28rem;
}

#section-guest .guest-card {
    margin-bottom: 1rem;
    padding: 1.35rem .78rem 1.15rem;
    border-width: 3px;
    border-radius: 1.45rem;
}

#section-guest .guest-card::before {
    inset: .42rem;
    border-radius: 1.12rem;
}

#section-guest .section-title {
    margin-bottom: .36rem;
}

#section-guest .section-copy {
    font-size: .8rem;
    line-height: 1.45;
}

#section-guest .gift-card {
    border-radius: .95rem;
}

#section-guest .gift-card__inner {
    min-height: 6rem;
}

#section-guest .gift-card__text {
    padding: .82rem .58rem .82rem .95rem;
}

#section-guest .gift-card__text h3 {
    margin-bottom: .12rem;
    font-size: .95rem;
}

#section-guest .gift-card__text p {
    font-size: .82rem;
    line-height: 1.34;
}

#section-guest .gift-card__aside {
    width: clamp(108px, 30vw, 170px);
    min-height: 6.25rem;
}

#section-guest .gift-card__aside img {
    max-height: 138px;
}

#section-guest .copy-btn {
    padding: .3rem .68rem;
    font-size: .7rem;
}

#section-guest .gift-location-card {
    gap: .6rem;
    padding: .72rem;
    border-radius: .82rem;
}

#section-guest .gift-location-card__icon {
    width: 2.15rem;
    height: 2.15rem;
}

#section-guest .gift-location-card__text h3 {
    font-size: 1.05rem;
}

#section-guest .gift-location-card__text p {
    margin-top: .22rem;
    font-size: .8rem;
    line-height: 1.38;
}

#section-guest .gift-location-card__actions {
    gap: .36rem;
    margin-top: .5rem;
}

#section-guest .gift-location-card__actions button,
#section-guest .gift-location-card__actions a {
    min-height: 1.45rem;
    padding: .24rem .5rem;
    font-size: .67rem;
}

#section-guest-book.wish-card {
    padding-bottom: 1rem;
}

#section-guest-book .wish-stats {
    margin-top: .45rem;
}

#section-guest-book .wish-stats span {
    padding: .24rem .55rem;
    font-size: .76rem;
}

#section-guest-book .wish-form {
    gap: .48rem;
    margin-top: .8rem;
    padding: .68rem;
    border-radius: .82rem;
}

#section-guest-book .field {
    padding: .55rem .68rem;
    font-size: .8rem;
}

#section-guest-book .trj-btn {
    min-height: 1.75rem;
    margin-top: .12rem;
    padding: .36rem .82rem .32rem;
    border-radius: .5rem;
    box-shadow: 0 4px 11px rgb(44 30 17 / .12);
}

#section-guest-book textarea.field {
    min-height: 4.8rem;
}

#section-guest-book .wish-list {
    gap: .18rem;
    margin-top: .72rem;
}

#section-guest-book .wish-item {
    gap: .55rem;
    padding: .46rem .08rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#section-guest-book .wish-item + .wish-item {
    border-top: 1px solid rgb(206 177 114 / .45);
}

#section-guest-book .wish-avatar {
    width: 1.9rem;
    height: 1.9rem;
    font-size: .68rem;
}

#section-guest-book .wish-item strong {
    font-size: .8rem;
}

#section-guest-book .wish-item small {
    font-size: .62rem;
}

#section-guest-book .wish-item p {
    margin-top: .18rem;
    font-size: .76rem;
    line-height: 1.38;
}

#section-penutup .section-copy {
    line-height: 1.5;
}

.section-penutup {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--trj-cover1-image);
    background-position: center;
    background-size: cover;
    text-align: center;
}

.section-penutup::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(255 240 229 / .45);
}

.section-penutup__content {
    position: relative;
    z-index: 2;
    width: min(100%, 36rem);
}

.penutup-photo {
    width: 200px;
    height: 300px;
    margin: 0 auto 2rem;
    border: 4px solid var(--ruby);
    border-radius: 999px;
    overflow: hidden;
}

.penutup-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer {
    width: 100%;
    padding: 1.2rem;
    text-align: center;
    color: #fff;
    background: var(--ruby);
}

footer p {
    margin: 0;
    color: rgb(255 255 255 / .78);
    font-size: .68rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .02em;
}

footer a {
    color: rgb(255 255 255 / .9);
    font-weight: 500;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 5%;
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: .75rem;
}

.floating-actions.is-visible { display: flex; }

.floating-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ruby);
    color: #fff;
    box-shadow: 0 4px 12px rgb(112 15 6 / .3);
}

/* Efek animasi utama dibuat lebih lambat dan jarak travel sedikit ditambah */
.reveal {
    opacity: 0;
    transform: translateY(30px); /* Jarak awal diperbesar agar efek masuknya lebih nyata */
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 1, 0.35, 1); /* Durasi diperpanjang */
    transition-delay: 0.1s;
    will-change: transform, opacity; /* Bantuan hardware acceleration untuk HP low-end */
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .desktop-hero { display: block; }
    .mobile-scroll {
        width: 33.333%;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .cover-gate__inner { margin-top: -5rem; }
    .section { padding-inline: 1.35rem; }
    .trj-mempelai-panel { padding: 2rem 1rem; }
    .gallery-grid { width: min(100%, 26rem); }
    .penutup-photo { width: 260px; height: 400px; }
}

@media (max-width: 520px) {
    .cover-gate__inner {
        margin-top: -1.75rem;
    }

    .cover-names h1,
    .cover-names span {
        font-size: clamp(2.25rem, 11vw, 3.65rem);
    }

    .mobile-scroll .section {
        padding: 2.25rem .9rem;
    }

    #section-quotes .quotes-photo {
        height: 21rem;
    }

    #section-guest .guest-card {
        width: 100%;
        padding-right: .68rem;
        padding-left: .68rem;
    }

    #section-guest .gift-card__inner {
        flex-direction: row;
        min-height: 5.8rem;
    }

    #section-guest .gift-card__aside {
        width: 6.1rem;
        min-height: 5.8rem;
    }

    #section-guest .gift-card__aside img {
        right: -16px;
        max-height: 118px;
    }

    #section-guest .copy-btn {
        left: auto;
        right: .45rem;
        transform: translate(0, -50%);
        padding: .28rem .58rem;
        border-radius: .45rem;
    }

    #section-guest .gift-location-card {
        display: grid;
        grid-template-columns: 2.15rem minmax(0, 1fr);
        align-items: flex-start;
    }

    #section-guest .gift-location-card__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .32rem;
    }

    #section-guest .gift-location-card__actions button,
    #section-guest .gift-location-card__actions a {
        width: 100%;
        min-height: 1.5rem;
        justify-content: center;
        text-align: center;
    }

    #section-guest-book .wish-item__head {
        align-items: flex-start;
        flex-direction: column;
        gap: .08rem;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-card__inner {
        padding-top: 7rem;
    }
}

@media (max-width: 520px), (prefers-reduced-data: reduce) {
    .trj-flower {
        animation: none !important;
    }

    .reveal {
        transform: translateY(20px);
        transition-duration: 1s; /* Sebelumnya 0.48s, ini biang keroknya. Ubah minimal ke 1s */
    }
}

@media (max-width: 360px) {
    #section-guest .gift-location-card {
        grid-template-columns: 1fr;
    }

    #section-guest .gift-location-card__icon {
        display: none;
    }

    #section-story .story-card {
        grid-template-columns: 5.4rem minmax(0, 1fr);
    }

    #section-guest .gift-card__aside {
        width: 5.4rem;
    }

    #section-guest .gift-location-card__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
