:root {
    --bg: #160a03;
    --bg-soft: #251408;
    --ivory: #fcf6eb;
    --mist: #ffffffb3;
    --text: #fcf6eb;
    --text-soft: #d3c2af;
    --accent: #b38e5d;
    --accent-deep: #805c33;
    --line: #523924;
    --radius: 22px;
    --shadow: 0 20px 50px #0000003d;
}
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body.landing-locked {
    overflow: hidden;
    height: 100vh;
}
body {
    font-family: "Manrope", "Abhaya Libre", serif;
    color: var(--text);
    background: radial-gradient(circle at top, #2f2f2f, var(--bg));
}

.cover {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    overflow: hidden;
    --loading-progress: 0;
    transition: transform 1.2s ease, opacity 1.2s ease;
}
.cover__bg {
    position: absolute;
    inset: 0;
    background: var(--cover-bg-image, url("../assets/landing.webp")) center center/cover no-repeat, #111;
    opacity: 1;
    transform: scale(calc(1.06 - (var(--loading-progress) * 0.0006)));
    transition: transform 240ms ease;
}
.cover__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000000b8;
    transform-origin: bottom;
    transform: scaleY(calc(1 - (var(--loading-progress) / 100)));
    transition: transform 240ms ease;
}
.cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #00000073, #1a1a1af2);
}
.cover__content {
    position: relative;
    width: min(92vw, 560px);
    min-height: min(90vh, 760px);
    text-align: center;
    color: #fff;
    padding: clamp(4.2rem, 9vw, 5.4rem) 1.5rem 2rem;
    text-shadow: 0 2px 14px #000000a8;
    display: grid;
    place-content: center;
}
.cover__meta {
    position: absolute;
    top: 1.1rem;
    left: 1.2rem;
    right: 1.2rem;
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: #fff;
}
.cover__eyebrow, .cover__date {
    font-family: "Manrope", "Abhaya Libre", serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mist);
}
.cover__title {
    margin: 0.25rem 0 0.5rem;
    font-family: "Kaushan Script", "Caveat", "Brush Script MT", "Segoe Script", "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 8vw, 4.2rem);
    font-weight: 700;
    letter-spacing: 0;
}
.cover__title--landing {
    transform: rotate(-7deg);
}
.cover__title--desktop {
    transform: none;
    font-family: "Kaushan Script", "Caveat", "Brush Script MT", "Segoe Script", "Cormorant Garamond", serif;
    font-weight: 600;
    letter-spacing: 0;
}
.cover__guest {
    margin: 1.25rem 0;
    font-size: 1.1rem;
    color: #fff;
}
.cover__invite {
    margin: 0.9rem 0 1.1rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #f6efe4;
}
.progress-container {
    width: min(300px, 80vw);
    margin: 0 auto 1rem;
    height: 3px;
    background: #ffffff2e;
}
.progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #fff, #d7c8b4);
}
.open-btn {
    border: 1px solid #ffffffad;
    background: #ffffff22;
    color: #fff;
    padding: 0.78rem 1.45rem;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}
.open-btn:hover { background: #fff; color: #1a1a1a; transform: translateY(-1px); }

.layout-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    position: relative;
}
.layout-left {
    width: 66.666%;
    min-width: 620px;
    position: relative;
}
.layout-left__cover {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--desktop-cover-bg-image, url("../assets/bg_2.webp")) center center/cover no-repeat #111 !important;
}
.layout-left__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0000004d 0%, #000000c7 100%);
}
.layout-left__content {
    position: absolute;
    inset: auto 0 8vh 0;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: #fff;
}
.layout-left__verse {
    margin: 1rem auto 0;
    max-width: 620px;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.7;
    color: #f6efe4;
    text-shadow: 0 2px 16px #000000c2;
}
.layout-left__verse-ref {
    margin: 0.65rem auto 0;
    font-size: clamp(0.88rem, 1.1vw, 0.98rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f1dcc1;
    text-shadow: 0 2px 14px #000000b3;
}
.layout-left__ornament {
    width: min(260px, 65%);
    opacity: 0.35;
}

.main-content {
    display: none;
    width: 33.334%;
}
.main-content.show { display: block; }
.layout-right {
    position: relative;
    z-index: 2;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.shared-cinematic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 280ms ease;
}
.shared-cinematic-bg.is-visible {
    opacity: 1;
}
.shared-cinematic-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, #00000026 0%, #00000059 62%, #00000080 100%),
        linear-gradient(180deg, #0000004d 0%, #00000040 38%, #00000066 100%);
}
.shared-cinematic-bg-image,
.shared-cinematic-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: translateZ(0);
}
.shared-cinematic-bg-video {
    opacity: 0;
    pointer-events: none;
}
.shared-cinematic-bg-video.is-ready {
    opacity: 1;
}
.layout-right::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #fff, #c7b39c);
    z-index: 1001;
    display: none;
}
.top-progress-bar.show { display: block; }

.section {
    min-height: auto;
    scroll-snap-align: none;
    padding: clamp(2.1rem, 6vh, 3.2rem) 1.1rem;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #111;
}
.section--shared-bg {
    z-index: 1;
    background: transparent;
}
.section--shared-bg::after,
.section--shared-bg + .section--shared-bg::before,
.section + .section::before,
.section::after {
    content: none;
}
.section--shared-bg .cinematic-bg {
    display: none;
}
.cinematic-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}
.cinematic-bg-image,
.cinematic-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: translateZ(0);
}
.cinematic-bg-video {
    opacity: 0;
    pointer-events: none;
}
.cinematic-bg-video.is-ready { opacity: 1; }
.container { width: min(960px, 100%); }
.container {
    position: relative;
    z-index: 2;
    padding: clamp(1.2rem, 3vw, 2rem);
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
}
.ornament { width: min(220px, 60%); opacity: 0.25; }

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #f4e8d5;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 14px #000000a8;
}
.section-title {
    margin: 0;
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 4px 24px #0000008a;
    line-height: 1.05;
}
.section-kicker, .section-text, .person__parents, .event-card p, .gallery-scroll-hint {
    color: #f6efe4;
    text-shadow: 0 2px 14px #000000b3;
}
.opening-verse {
    margin: 1.15rem auto 0;
    max-width: 700px;
    padding: 0.9rem 1rem 0.75rem;
    border-top: 1px solid #ffffff59;
    border-bottom: 1px solid #ffffff2e;
    background: linear-gradient(180deg, #ffffff14, #ffffff08);
    text-align: center;
    color: #f8f2e6;
    text-shadow: 0 2px 12px #000000a6;
}
.opening-verse__text {
    margin: 0;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.8;
    font-style: italic;
}
.opening-verse__ref {
    margin-top: 0.5rem;
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f2e4ca;
    font-style: normal;
}
.opening-verse--delayed {
    transition-delay: calc((var(--stagger, 0) * 150ms) + 260ms);
}

.couple-grid {
    margin-top: 1.4rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.couple-grid--single {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    max-width: 440px;
    margin-inline: auto;
}
.person { text-align: center; }
.person__card {
    width: min(100%, 380px);
    margin: 0 auto 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    padding: 14px 14px 18px;
    background: linear-gradient(135deg, rgba(37, 20, 8, 0.85) 0%, rgba(22, 10, 3, 0.9) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 38px #00000066;
}
.person__card-image {
    width: 100%;
    aspect-ratio: 4/4.9;
    object-fit: cover;
    object-position: center center;
    background: #eee;
    display: block;
}
.person__card-body {
    text-align: center;
    color: var(--ivory);
    padding: 0.9rem 0.7rem 0.3rem;
}
.person__card-name {
    margin: 0.3rem 0 0.6rem;
    font-family: "Kaushan Script", "Caveat", "Cormorant Garamond", serif;
    font-size: clamp(1.35rem, 4.5vw, 1.95rem);
    line-height: 1.1;
    color: var(--accent);
    word-wrap: break-word;
}
.person__card-role {
    margin: 0 0 0.5rem;
    font-family: "Manrope", "Abhaya Libre", serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 0.9rem;
    color: var(--text-soft);
}
.person__card-parents {
    margin: 0;
    font-family: "Manrope", "Abhaya Libre", serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--ivory);
    min-height: 4.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.person__card-parents span {
    display: block;
}
.person__card-parents span + span {
    margin-top: 0.35rem;
    padding-left: 0.8rem;
}
.person__card-instagram {
    margin: 0.85rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.05rem;
    color: var(--accent);
}
.person__card-instagram i {
    width: 1.05rem;
    height: 1.05rem;
}
.person__card-instagram svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}
.person__card-instagram a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.person__card-instagram a:hover {
    border-bottom-color: var(--accent);
}

.critical-notice {
    margin-top: 1.8rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(140, 103, 61, 0.25);
    border: 1px solid var(--accent);
    color: #f7eed5;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.critical-notice strong {
    color: var(--accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.critical-notice p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.wishes-list {
    display: grid;
    gap: 0.7rem;
}
.wish-item {
    border: 1px solid #ffffff42;
    background: linear-gradient(180deg, #ffffff24, #ffffff12);
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    color: #fff;
    text-align: left;
}
.wish-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}
.wish-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.wish-name {
    font-size: 1.05rem;
}
.wish-date {
    font-size: 0.85rem;
    color: #e7dece;
}
.wish-message {
    margin: 0;
    line-height: 1.55;
    color: #f7f1e6;
    text-align: justify;
    text-justify: inter-word;
}
.section-title--thanks {
    font-family: "Kaushan Script", "Caveat", "Brush Script MT", "Segoe Script", "Cormorant Garamond", serif;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
}
.thanks-footer {
    margin-top: 2.2rem;
    font-size: clamp(1.2rem, 2.1vw, 1.7rem);
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 2px 16px #000000ad;
}
.thanks-footer__couple {
    font-family: "Kaushan Script", "Caveat", "Brush Script MT", "Segoe Script", "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.05;
}
.thanks-footer__family {
    font-family: "Caveat", "Kaushan Script", "Cormorant Garamond", serif;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    letter-spacing: 0.02em;
}
.section--thanks .container {
    padding-top: clamp(2.8rem, 8vh, 5rem);
    padding-bottom: clamp(2.8rem, 8vh, 5rem);
}
.section--thanks {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    place-items: center;
    align-content: center;
}
.section--opening {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    place-items: center;
    align-content: center;
}
.section--thanks .section-text {
    max-width: 760px;
    margin: 1.2rem auto 0;
    line-height: 1.9;
}
.person__photo { border: 0; background: none; cursor: pointer; padding: 0; }
.person__photo img {
    width: clamp(160px, 24vw, 240px);
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid #ffffffb5;
    box-shadow: 0 0 0 6px #ffffff1f, 0 14px 34px #00000059;
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.person__photo:hover img {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 0 8px #ffffff26, 0 16px 38px #00000073;
}
.person__name {
    margin: 0.9rem 0 0.3rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    color: #fff;
    text-shadow: 0 2px 12px #000000b3;
}
.couple-divider { font-size: 2rem; color: var(--accent); }
.person__parents { color: #f6efe4; margin: 0; }
.section--mempelai-bride .section-title,
.section--mempelai-groom .section-title,
.section--mempelai-bride .person__name,
.section--mempelai-groom .person__name,
.section--mempelai-bride .person__parents,
.section--mempelai-groom .person__parents {
    text-shadow: 0 2px 18px #000000d1;
}
.section--mempelai {
    align-items: end;
}
.section--mempelai .container {
    text-align: left;
    padding-bottom: clamp(2rem, 9vh, 4rem);
}
.section--mempelai .section-title {
    text-align: left;
}
.section--mempelai .person {
    text-align: left;
}

.countdown {
    margin: 1.5rem 0;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.countdown-item {
    position: relative;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff2b, #ffffff12);
    border: 1px solid #ffffff66;
    color: #fff;
    text-align: center;
    padding: 0.8rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 12px 24px #00000033;
}
.countdown-number {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
}
.countdown-label {
    display: block;
    margin-top: 0.16rem;
    line-height: 1.06;
}
.countdown-label-id,
.countdown-label-en {
    display: block;
}
.countdown-label-en {
    font-size: 0.78em;
    opacity: 0.9;
}
.countdown-item:last-child .countdown-number {
    color: #ff3b30;
    text-shadow: 0 0 14px #ff3b308c;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.section--map .event-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
    margin: 0 auto 1rem;
}
.location-list {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    display: grid;
    gap: 1.8rem;
}
.location-item {
    text-align: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.location-item h3 {
    margin: 0 0 0.8rem;
    color: #fff;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}
.location-item .event-row {
    margin: 0.46rem 0;
    font-size: 1.06rem;
}
.location-item--public h3 {
    color: #fff;
}
.location-awareness {
    margin: 0 0 0.7rem;
    font-size: 0.84rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #ffe8ad;
}
.section-text--location-note {
    max-width: 680px;
    margin: 0.7rem auto 1.9rem;
    font-size: clamp(0.95rem, 1.5vw, 1.06rem);
    color: #fff2cb;
}
.section--photobooth .container {
    max-width: 760px;
}
.section--photobooth .section-text {
    max-width: 620px;
    margin: 1rem auto 1.8rem;
    line-height: 1.8;
}
.event-card {
    border: 0;
    border-radius: 0;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff1f, #ffffff0a);
    border-top: 1px solid #ffffff52;
    border-bottom: 1px solid #ffffff1f;
}
.event-card h3 { margin: 0 0 0.4rem; color: #fff; }
.event-card p { margin: 0.15rem 0; color: #f6efe4; }
.event-row {
    margin: 0.25rem 0;
    color: #f0debf;
}
.event-map-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.event-map-link:hover {
    opacity: 0.9;
}
.location-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    border: 1px solid #ffffffb5;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    background: #ffffff1f;
    transition: background 180ms ease, color 180ms ease;
}
.location-map-btn:hover {
    background: #fff;
    color: #1a1a1a;
}
.calendar-btn {
    margin-top: 1rem;
}
.details-location-block {
    margin-top: clamp(1.7rem, 4vh, 2.4rem);
}

.map-wrapper, .video-wrapper {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #ffffff3d;
    box-shadow: 0 16px 34px #00000047;
}
.map-wrapper iframe { width: 100%; min-height: 360px; border: 0; }
.map-wrapper--hidden {
    display: none;
}
.video-wrapper iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.video-wrapper video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: 0;
    background: #000;
    object-fit: cover;
}
.video-stack {
    margin-top: 1.1rem;
    display: grid;
    gap: 1.35rem;
}
.video-card {
    display: grid;
    gap: 0.55rem;
}
.video-card__title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    letter-spacing: 0.04em;
    color: #fff4dd;
    text-transform: uppercase;
    text-align: left;
}
.video-card__desc {
    margin: 0 0 0.2rem;
    color: #f4ead6;
    font-size: clamp(0.94rem, 1.5vw, 1.03rem);
    line-height: 1.7;
    text-align: left;
}

.gallery-grid {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.2rem;
}
.gallery-row {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-row--single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
}
.gallery-row--single .gallery-item {
    grid-column: 1 / -1;
}
.gallery-item {
    border: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #d9d0c2;
    border: 1px solid #ffffff38;
    box-shadow: 0 10px 22px #00000033;
    transition: transform 250ms ease, box-shadow 250ms ease;
    align-self: start;
}
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px #00000066;
}
.gallery-scroll-hint { text-align: center; color: #f6efe4; margin-top: 0.7rem; }

.countdown-item span:not(.countdown-number),
.form-group label,
.form-group span,
.radio-group label {
    color: #fff;
    text-shadow: 0 1px 10px #00000099;
}

.gift-buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.gift-btn {
    border: 1px solid #ffffffa8;
    background: linear-gradient(180deg, #ffffff3b, #ffffff1a);
    color: #fff;
    border-radius: 999px;
    padding: 0.72rem 1.35rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 22px #00000038;
    transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}
.gift-btn:hover { background: #fff; color: #1a1a1a; border-color: #fff; }

.rsvp-form { margin-top: 1rem; }
.form-group { margin-bottom: 0.9rem; }
.form-group label, .form-group span { display: block; margin-bottom: 0.4rem; }
input, textarea {
    width: 100%;
    border: 1px solid #ffffff94;
    border-radius: 12px;
    padding: 0.78rem 0.9rem;
    font: inherit;
    background: #ffffff1c;
    color: #fff;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
input::placeholder, textarea::placeholder { color: #efe7da; }
textarea { min-height: 90px; resize: vertical; }
.radio-group {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.radio-group label {
    margin: 0;
    display: flex;
}
.radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.radio-group label span {
    width: 100%;
    display: block;
    text-align: center;
    padding: 0.8rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #ffffff7a;
    background: linear-gradient(180deg, #ffffff24, #ffffff0f);
    color: #fff;
    text-shadow: 0 2px 10px #00000080;
    transition: all 220ms ease;
}
.radio-group input[type="radio"]:checked + span {
    border-color: #ffe5bf;
    background: linear-gradient(180deg, #f6d7ab, #d8b384);
    color: #2f2316;
    text-shadow: none;
    box-shadow: 0 10px 24px #00000052;
}
.radio-group input[type="radio"]:focus-visible + span,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: #ffe5bf;
    box-shadow: 0 0 0 3px #f6d7ab52;
}
.submit-btn {
    border: 0;
    background: linear-gradient(180deg, #f4d9b5, #d4ac79);
    color: #fff;
    border: 1px solid #f3dbbb;
    border-radius: 999px;
    padding: 0.78rem 1.45rem;
    cursor: pointer;
    color: #2f2316;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 14px 30px #0000004d;
    transition: transform 220ms ease, filter 220ms ease;
}
.submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}
.hidden { display: none; }

.message-item {
    border: 0;
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.65rem;
    background: linear-gradient(180deg, #ffffff1f, #ffffff0f);
    border: 1px solid #ffffff38;
    color: #fff;
}
.message-name { font-weight: 700; }
.message-date { color: #e7dece; font-size: 0.9rem; }

.messages-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.messages-table {
    width: 100%;
    border-collapse: collapse;
    background: #0f131bb3;
    border: 1px solid #ffffff38;
    table-layout: fixed;
    backdrop-filter: blur(4px);
}
.messages-table th,
.messages-table td {
    border: 1px solid #ffffff2e;
    padding: 0.65rem 0.7rem;
    text-align: left;
    color: #fff;
    vertical-align: top;
    text-shadow: 0 1px 10px #00000080;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.messages-table th {
    background: #ffffff30;
    font-weight: 700;
}
.messages-table td {
    background: #00000030;
}
.messages-pagination {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    color: #f6efe4;
    text-shadow: 0 1px 10px #00000099;
}
.page-btn {
    border: 1px solid #ffffff75;
    background: #ffffff1f;
    color: #fff;
    border-radius: 999px;
    padding: 0.34rem 0.82rem;
    cursor: pointer;
}
.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.status-badge__icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    line-height: 0;
    background: #ffffff26;
}
.status-badge__icon svg {
    width: 0.78rem;
    height: 0.78rem;
    display: block;
}
.status-badge__text {
    display: inline;
}
.status-badge--yes {
    color: #d2ffe4;
    background: #1f4a34d9;
    border-color: #5bc38a9e;
}
.status-badge--maybe {
    color: #fff6d1;
    background: #6d5416d9;
    border-color: #d8b559b0;
}
.status-badge--no {
    color: #ffd7dc;
    background: #682730d9;
    border-color: #db7f8a9e;
}

.music-control {
    position: fixed;
    right: 1.05rem;
    bottom: 1.05rem;
    top: auto;
    z-index: 91;
    width: 50px;
    height: 50px;
    border: 1px solid #ffffff91;
    border-radius: 999px;
    display: none;
    place-items: center;
    background: linear-gradient(145deg, #fffefcf2, #f5efe5e8);
    color: #7a6651;
    box-shadow: 0 12px 28px #00000047, inset 0 1px 0 #ffffffbf;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.music-control::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 1px solid #f8dfb680;
    opacity: 0;
    transform: scale(0.94);
    transition: transform 260ms ease, opacity 260ms ease;
}
.music-control__vinyl {
    width: 1.34rem;
    height: 1.34rem;
    border-radius: 50%;
    position: relative;
    display: block;
    background:
        radial-gradient(circle at center, #ffffff 0 8%, #f6f0e5 8% 14%, #d6c5ae 14% 20%, #fdfaf5 20% 100%);
    box-shadow: 0 0 0 1px #c9b4969c, inset 0 0 0 1px #ffffff8c;
}
.music-control__vinyl::before {
    content: "";
    position: absolute;
    inset: 16%;
    border-radius: 50%;
    border: 1px solid #d9c7b1;
    box-shadow:
        0 0 0 1px #ffffffa3 inset,
        0 0 0 3px #e8dac8 inset;
}
.music-control__vinyl::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fffdf9;
    box-shadow: 0 0 0 1px #bca589;
}
.music-control:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(145deg, #ffffff, #f7f1e8);
    box-shadow: 0 16px 34px #00000059, inset 0 1px 0 #ffffffd6;
}
.music-control:hover::before {
    opacity: 1;
    transform: scale(1);
}
.music-control:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #f3d3a773, 0 12px 28px #00000047, inset 0 1px 0 #ffffffbf;
}
.music-control.is-playing {
    border-color: #f2cc8c;
    color: #7a6651;
    background: linear-gradient(145deg, #fffaf0f2, #efe4d1eb);
    box-shadow: 0 16px 36px #00000061, 0 0 0 3px #f2cc8c4f, inset 0 1px 0 #fff7e8;
}
.music-control.is-playing::before {
    opacity: 1;
    transform: scale(1);
}
.menu-control {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 92;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff91;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #fffefcf2, #f5efe5e8);
    color: #7a6651;
    box-shadow: 0 12px 28px #00000047, inset 0 1px 0 #ffffffbf;
    cursor: pointer;
}
.music-control.show { display: grid; }
.section-menu {
    position: fixed;
    top: 3.9rem;
    right: 1rem;
    z-index: 92;
    width: min(84vw, 270px);
    background: #0f1520eb;
    border: 1px solid #ffffff2e;
    border-radius: 14px;
    padding: 0.45rem;
    display: none;
    backdrop-filter: blur(8px);
}
.section-menu.is-open {
    display: grid;
}
.section-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.58rem 0.72rem;
    border-radius: 9px;
}
.section-menu a:hover {
    background: #ffffff1f;
}
.scroll-hint {
    position: fixed;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    z-index: 90;
    border: 1px solid #ffffff9c;
    border-radius: 999px;
    padding: 0.4rem 0.78rem 0.46rem;
    background: #0f1520b5;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px #00000052;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
}
.scroll-hint.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-hint__arrow {
    font-size: 0.95rem;
    line-height: 1;
    animation: scrollHintBounce 1.15s ease-in-out infinite;
}
@keyframes scrollHintBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}
#musicIcon.playing { animation: spin 2.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.section-dots {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 80;
}
.section-dots.show { display: none !important; }
.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #fff9;
    border: 1px solid #fff;
}
.dot.active { background: #fff; }

.desktop-arrows {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}
.desktop-arrows,
.desktop-arrows.show {
    display: none !important;
}
.arrow-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #ffffffd1;
    cursor: pointer;
}

.modal {
    position: fixed;
    inset: 0;
    background: #00000080;
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}
.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.modal-content {
    width: min(560px, 96vw);
    background: var(--ivory);
    border-radius: 18px;
    padding: 1.2rem;
    position: relative;
    transform: translateY(10px) scale(0.985);
    opacity: 0.96;
    transition: transform 220ms ease, opacity 220ms ease;
}
.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.modal-content--gallery #galleryImage {
    width: 100%;
    border-radius: 12px;
    margin: 0;
    max-height: min(82vh, 980px);
    object-fit: contain;
}
.modal-content--gallery {
    width: min(1060px, 98vw);
    padding: 1.2rem;
}
.gallery-modal-stage {
    margin: 0.8rem 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 0.55rem;
    align-items: center;
}
.gallery-nav {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #0000002e;
    background: #ffffffd9;
    color: #111;
    cursor: pointer;
    font-size: 1.15rem;
    display: grid;
    place-items: center;
}
.gallery-nav:hover {
    background: #fff;
}
.modal-close {
    position: absolute;
    right: 0.6rem;
    top: 0.3rem;
    border: 0;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
}
.bank-logo {
    width: 82px;
    height: 82px;
    margin: 0 auto 0.7rem;
    display: grid;
    place-items: center;
}
.bank-info {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem;
}
.bank-copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.copy-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
}

.scroll-paused-indicator {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    background: #1a1a1adb;
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.scroll-paused-indicator.show { opacity: 1; }

.toast-container {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1300;
    display: grid;
    gap: 0.55rem;
    width: min(92vw, 360px);
}
.toast {
    border-radius: 12px;
    padding: 0.72rem 0.85rem;
    color: #fff;
    background: #1e1e1ee3;
    border: 1px solid #ffffff2e;
    box-shadow: 0 10px 30px #00000052;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
    backdrop-filter: blur(6px);
}
.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.toast--success {
    background: #1f4a34f2;
    border-color: #7de7ac70;
}
.toast--error {
    background: #5a1f27f2;
    border-color: #ff9ca870;
}
.toast--info {
    background: #26384df2;
    border-color: #a9cdf570;
}

.fade-in,
.slide-up,
.zoom-in {
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--stagger, 0) * 150ms);
}
.fade-in { transform: translateY(8px); }
.slide-up { transform: translateY(24px); }
.zoom-in { transform: scale(0.97); }
.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-up,
    .zoom-in {
        opacity: 1 !important;
        transform: none !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
    }
    .scroll-hint__arrow {
        animation: none !important;
    }
}

@media (min-width: 992px) {
    .desktop-arrows { display: none !important; }
    .cover__bg {
        background: var(--cover-bg-image, url("../assets/landing.webp")) center 78%/cover no-repeat, #111;
        transform: none;
    }
    .cover__overlay {
        background:
            linear-gradient(180deg, #00000075 0%, #0000008c 55%, #000000b8 100%),
            radial-gradient(circle at 50% 45%, #ffffff1a 0%, #ffffff08 35%, #00000000 70%);
    }
    .cover__content {
        width: min(92vw, 640px);
        min-height: 100vh;
        display: grid;
        place-content: center;
        padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.4rem);
        background: transparent;
        border: 0;
        backdrop-filter: none;
    }
}

@media (max-width: 991px) {
    .cover__bg {
        background: var(--cover-bg-image, url("../assets/landing.webp")) center/cover no-repeat, #111;
        opacity: 1;
    }
    .cover__overlay {
        background: linear-gradient(180deg, #00000052 0%, #000000cc 100%);
    }
    .cover__meta {
        top: 0.9rem;
        left: 1rem;
        right: 1rem;
        font-size: 1.45rem;
    }
    .layout-wrapper {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    .layout-left {
        display: none;
    }
    .layout-left,
    .layout-right {
        width: 100%;
        min-width: 0;
        height: auto !important;
        position: static !important;
        overflow: visible !important;
    }
    .layout-left__cover {
        position: static !important;
        height: min(82vh, 540px);
    }
    .main-content {
        display: block;
        width: 100%;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: none;
        touch-action: pan-y;
    }
    .shared-cinematic-bg {
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100svh !important;
        height: 100dvh !important;
    }
    .section {
        min-height: auto;
        padding: 1.35rem 0.9rem 1.75rem;
        padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
        scroll-snap-align: none;
        overflow: hidden;
        background: #000;
        place-items: start center;
        align-content: start;
        contain: layout paint;
    }
    .section--thanks {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        min-height: calc(var(--vh, 1vh) * 100);
        place-items: center;
        align-content: center;
    }
    .section--shared-bg {
        background: transparent !important;
    }
    .section--opening {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        min-height: calc(var(--vh, 1vh) * 100);
        place-items: center;
        align-content: center;
    }
    .opening-verse {
        margin-top: 0.95rem;
        padding: 0.75rem 0.85rem 0.65rem;
    }
    .opening-verse__text {
        font-size: 0.92rem;
        line-height: 1.7;
    }
    .opening-verse__ref {
        font-size: 0.76rem;
    }
    .cinematic-bg-image,
    .cinematic-bg-video {
        object-position: 50% 50%;
    }
    .couple-grid { grid-template-columns: 1fr; }
    .couple-divider { display: none; }
    .section--mempelai .container {
        text-align: left;
        padding-bottom: clamp(1.2rem, 6vh, 2.2rem);
    }
    .container { padding: 1.05rem; }
    .countdown {
        margin: 1rem 0 0.7rem;
        gap: 0.45rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .countdown-item {
        padding: 0.66rem 0.38rem;
    }
    .calendar-btn {
        margin-top: 0.55rem;
    }
    .countdown-number {
        font-size: clamp(1.08rem, 4.5vw, 1.34rem);
    }
    .countdown-label {
        display: block;
        margin-top: 0.15rem;
        line-height: 1.06;
    }
    .countdown-label-id {
        display: block;
        font-size: 0.68rem;
    }
    .countdown-label-en {
        display: block;
        font-size: 0.52rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        opacity: 0.92;
    }
    .event-list {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .location-list {
        gap: 1.9rem;
        margin-bottom: 1.6rem;
    }
    .location-item h3 {
        margin-bottom: 0.62rem;
    }
    .location-item .event-row {
        margin: 0.45rem 0;
        font-size: 0.98rem;
    }
    .section-text--location-note {
        margin-bottom: 1.6rem;
    }
    .event-row {
        font-size: 0.93rem;
    }
    .gallery-row--single {
        width: 100%;
    }
    .radio-group { grid-template-columns: 1fr; }
    .messages-table th,
    .messages-table td {
        padding: 0.52rem;
        font-size: 0.86rem;
    }
    .messages-table th:nth-child(2),
    .messages-table td:nth-child(2) {
        width: 58px;
        text-align: center;
    }
    .status-badge {
        padding: 0.2rem;
        min-width: 28px;
        justify-content: center;
    }
    .status-badge__text {
        display: none;
    }
    .messages-pagination {
        justify-content: center;
    }
    .section-dots, .desktop-arrows { display: none !important; }
    .toast-container {
        left: 0.9rem;
        right: 0.9rem;
        width: auto;
        bottom: 0.9rem;
    }
    .music-control {
        width: 46px;
        height: 46px;
        right: 0.88rem;
        bottom: 0.88rem;
    }
    .scroll-hint {
        bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px));
        padding-inline: 0.72rem;
    }
    .video-stack {
        gap: 1.1rem;
    }
    .video-card__title {
        text-align: center;
        font-size: 1.02rem;
    }
    .person__card {
        width: min(100%, 350px);
        padding: 10px 10px 14px;
    }
    .person__card-role {
        letter-spacing: 0.18em;
        font-size: 0.8rem;
    }
    .person__card-name {
        font-size: clamp(1.35rem, 6.1vw, 1.95rem);
    }
    .person__card-parents {
        font-size: 1rem;
        min-height: 4.2rem;
    }
    .person__card-parents span + span {
        padding-left: 0.55rem;
    }
    .wish-head {
        grid-template-columns: 1fr auto;
    }
    .gallery-modal-stage {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 0.35rem;
    }
    .gallery-nav {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}

.open-btn:disabled { opacity: 0.72; cursor: wait; }
