:root {
    --pine-dark: #16271F;
    --pine: #2F6B4F;
    --pine-deep: #183A2B;
    --pine-soft: #DDEADC;

    --sage: #8EA889;
    --sage-dark: #6F876A;
    --sage-soft: #EEF4E7;
    --sage-mist: #F3F7EC;

    --rattan: #D6A95D;
    --rattan-dark: #956B2E;
    --rattan-soft: #F4E3B6;
    --gold-pale: #FAEAC4;

    --clay: #A85638;
    --clay-dark: #753721;

    --ivory: #FFF9ED;
    --ivory-muted: rgba(255, 249, 237, 0.76);
    --paper: #FFFCF4;
    --cream: #F8F0DD;

    --ink: #1D211B;
    --muted: #6E7162;
    --line: rgba(47, 107, 79, 0.18);
    --gold-line: rgba(214, 169, 93, 0.35);

    --shadow: 0 18px 52px rgba(22, 39, 31, 0.12);
    --shadow-soft: 0 12px 32px rgba(22, 39, 31, 0.09);
    --shadow-gold: 0 18px 50px rgba(149, 107, 46, 0.14);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Override global ornament untuk tema Adat Sunda */
    --ornament-cover-width: min(24vw, 230px);
    --ornament-cover-max-width: 320px;
    /* --ornament-cover-opacity: 0.9; */
    --ornament-cover-z: 3;
    --ornament-cover-filter:
        drop-shadow(0 12px 24px rgba(22, 39, 31, 0.22))
        drop-shadow(0 0 14px rgba(214, 169, 93, 0.12));

    --ornament-cover-tl-top: 0px;
    --ornament-cover-tl-left: 0px;
    --ornament-cover-tl-transform: none;
    --ornament-cover-tl-transform-mid: none;
    --ornament-cover-tl-duration: 0s;

    --ornament-cover-tr-top: 0px;
    --ornament-cover-tr-right: 0px;
    --ornament-cover-tr-transform: scaleX(-1);
    --ornament-cover-tr-transform-mid: scaleX(-1);
    --ornament-cover-tr-duration: 0s;

    --ornament-main-width: min(18vw, 180px);
    --ornament-main-max-width: 240px;
    /* --ornament-main-opacity: 0.84; */
    --ornament-main-z: 42;
    --ornament-main-filter:
        drop-shadow(0 10px 22px rgba(22, 39, 31, 0.18))
        drop-shadow(0 0 12px rgba(214, 169, 93, 0.12));

    --ornament-main-tl-top: 0px;
    --ornament-main-tl-left: 0px;
    --ornament-main-tl-transform: none;
    --ornament-main-tl-transform-mid: none;
    --ornament-main-tl-duration: 0s;

    --ornament-main-tr-top: 0px;
    --ornament-main-tr-right: 0px;
    --ornament-main-tr-transform: scaleX(-1);
    --ornament-main-tr-transform-mid: scaleX(-1);
    --ornament-main-tr-duration: 0s;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body.invitation-locked {
    overflow: hidden;
}

.font-script {
    font-family: 'Great Vibes', cursive;
}

.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================================
   Global Ornament Compatibility
========================================================= */

.cover-corner,
.corner-art,
.main-ornament,
.ornament-main,
.botanical-ornament {
    display: block !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
    pointer-events: none !important;
    user-select: none !important;
}

#invitation-cover .cover-corner {
    z-index: var(--ornament-cover-z) !important;
}

.corner-art,
.main-ornament,
.ornament-main,
.botanical-ornament {
    z-index: var(--ornament-main-z) !important;
}

/* =========================================================
   Cover Pembuka - mobile first, full screen, soft premium
========================================================= */

.invitation-content {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 520ms ease;
}

.invitation-content.is-open {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
}

#invitation-cover {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    background: var(--pine-dark);
    transition:
        opacity 620ms ease,
        visibility 620ms ease,
        transform 620ms ease;
}

#invitation-cover.cover-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    pointer-events: none;
}

.cover-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    opacity: 0.78;
    pointer-events: none;
    user-select: none;
}

.cover-shade {
    z-index: 1;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 249, 237, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 249, 237, 0.04), rgba(22, 39, 31, 0.48)),
        linear-gradient(135deg, rgba(238, 244, 231, 0.10), rgba(214, 169, 93, 0.10));
}

.woven-overlay {
    z-index: 2;
    opacity: 0.22;
    background:
        linear-gradient(45deg, rgba(255, 249, 237, 0.12) 25%, transparent 25% 50%, rgba(255, 249, 237, 0.12) 50% 75%, transparent 75%),
        linear-gradient(-45deg, rgba(214, 169, 93, 0.11) 25%, transparent 25% 50%, rgba(214, 169, 93, 0.11) 50% 75%, transparent 75%);
    background-size: 42px 42px;
}

.cover-card {
    width: min(100%, 34rem);
    max-height: calc(100svh - 2rem);
    overflow-y: auto;
    animation: coverFadeUp 900ms var(--ease) both;
}

.cover-card.sunda-card {
    background:
        linear-gradient(180deg, rgba(255, 252, 244, 0.86), rgba(255, 249, 237, 0.74)),
        radial-gradient(circle at 50% 0%, rgba(214, 169, 93, 0.18), transparent 36%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(214, 169, 93, 0.36);
    box-shadow:
        0 26px 80px rgba(22, 39, 31, 0.22),
        inset 0 1px 0 rgba(255, 249, 237, 0.60);
}

.cover-card.sunda-card::before {
    border-color: rgba(214, 169, 93, 0.34);
}

.cover-card .font-script {
    font-size: clamp(3.9rem, 15vw, 7.4rem);
}

.guest-panel,
.guest-chip {
    background: rgba(238, 244, 231, 0.72);
    border: 1px solid rgba(47, 107, 79, 0.18);
    border-radius: 1.35rem;
    padding: 1.15rem;
}

/* =========================================================
   Backgrounds
========================================================= */

.section-pad {
    padding: 6rem 1.25rem;
}

main > section {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

#hero {
    content-visibility: visible;
}

.bg-sunda-hero {
    background:
        linear-gradient(180deg, rgba(255, 249, 237, 0.24), rgba(255, 249, 237, 0.10)),
        radial-gradient(circle at 12% 14%, rgba(214, 169, 93, 0.18), transparent 32%),
        radial-gradient(circle at 88% 86%, rgba(47, 107, 79, 0.20), transparent 34%),
        url('/storage/assets/adat-sunda/hero-bg.png'),
        linear-gradient(135deg, #16271F, #2F6B4F 58%, #8EA889);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.bg-sunda-paper {
    background-color: var(--cream);
    background-image:
        radial-gradient(circle at 20px 20px, rgba(47, 107, 79, 0.055) 0 3px, transparent 4px),
        linear-gradient(180deg, rgba(255, 252, 244, 0.82), rgba(248, 240, 221, 0.70)),
        url('/storage/assets/adat-sunda/bg-1.png');
    background-size:
        56px 56px,
        cover,
        cover;
    background-repeat:
        repeat,
        no-repeat,
        no-repeat;
    background-position:
        center center,
        center center,
        center center;
}

.bg-sunda-muted {
    background:
        linear-gradient(90deg, rgba(47, 107, 79, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(47, 107, 79, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, #F4E8CD, #F8F0DD);
    background-size: 42px 42px, 42px 42px, cover;
}

.bg-sunda-forest,
.footer-sunda {
    background:
        linear-gradient(90deg, rgba(214, 169, 93, 0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(214, 169, 93, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 16% 18%, rgba(214, 169, 93, 0.16), transparent 28%),
        radial-gradient(circle at 82% 80%, rgba(168, 86, 56, 0.18), transparent 32%),
        linear-gradient(135deg, #16271F, #244734 56%, #173326);
    background-size: 44px 44px, 44px 44px, cover, cover, cover;
}

/* =========================================================
   Labels and Type
========================================================= */

.section-heading {
    margin-bottom: 4.5rem;
}

.section-kicker,
.micro-label,
.event-label,
.form-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pine);
}

.section-kicker {
    letter-spacing: 0.34em;
}

.section-kicker-light,
.micro-label-light {
    color: var(--rattan-soft);
}

/* =========================================================
   Cards and Frame
========================================================= */

.sunda-card,
.woven-card,
.event-card,
.map-shell,
.gallery-card,
.gift-card,
.guest-message {
    position: relative;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.sunda-card,
.woven-card,
.event-card,
.gift-card {
    overflow: hidden;
}

.sunda-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 249, 237, 0.94)),
        radial-gradient(circle at 0 0, rgba(214, 169, 93, 0.14), transparent 28%);
}

.woven-card,
.event-card,
.gift-card {
    background:
        linear-gradient(45deg, rgba(47, 107, 79, 0.045) 25%, transparent 25% 50%, rgba(47, 107, 79, 0.045) 50% 75%, transparent 75%),
        linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(244, 232, 205, 0.94));
    background-size: 36px 36px, cover;
}

.sunda-card::before,
.woven-card::before,
.event-card::before,
.gift-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(47, 107, 79, 0.14);
    border-radius: inherit;
    pointer-events: none;
}

.sunda-card::after,
.woven-card::after,
.event-card::after,
.gift-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -64px;
    bottom: -64px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(214, 169, 93, 0.18), transparent 68%);
    pointer-events: none;
}

.leaf-divider {
    width: 100%;
    max-width: 300px;
    margin: 1.2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--pine);
}

.leaf-divider::before,
.leaf-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, transparent, rgba(47, 107, 79, 0.26), transparent);
}

.leaf-divider span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(47, 107, 79, 0.22);
    background: rgba(255, 252, 244, 0.86);
    font-size: 10px;
}

.leaf-divider-light {
    color: var(--rattan-soft);
}

.leaf-divider-light::before,
.leaf-divider-light::after {
    background: linear-gradient(to right, transparent, rgba(244, 227, 182, 0.36), transparent);
}

.leaf-divider-light span {
    border-color: rgba(244, 227, 182, 0.28);
    background: rgba(255, 249, 237, 0.12);
}

/* =========================================================
   Hero
========================================================= */

.hero-shell {
    min-height: 730px;
    border-radius: 2rem;
    background: rgba(255, 252, 244, 0.92);
    border: 1px solid rgba(244, 227, 182, 0.35);
    box-shadow: 0 28px 90px rgba(10, 19, 15, 0.22);
}

.hero-ribbon {
    position: relative;
    color: var(--ivory);
    background:
        linear-gradient(45deg, rgba(214, 169, 93, 0.08) 25%, transparent 25% 50%, rgba(214, 169, 93, 0.08) 50% 75%, transparent 75%),
        linear-gradient(180deg, var(--pine-dark), var(--pine));
    background-size: 34px 34px, cover;
}

.hero-ribbon::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(244, 227, 182, 0.22);
    border-radius: 1.4rem;
    pointer-events: none;
}

.date-card {
    padding: 1.35rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(244, 227, 182, 0.22);
    background: rgba(255, 249, 237, 0.08);
}

.divider-line {
    width: 92px;
    height: 1px;
    background: rgba(244, 227, 182, 0.42);
}

.hero-main {
    background:
        radial-gradient(circle at 50% 0%, rgba(214, 169, 93, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(248, 240, 221, 0.92));
}

.hero-panel {
    position: relative;
    padding: clamp(2.2rem, 5vw, 4.5rem) 1.2rem;
    border-radius: 999px 999px 2rem 2rem;
    border: 1px solid rgba(47, 107, 79, 0.15);
    background:
        radial-gradient(circle at 50% 8%, rgba(214, 169, 93, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(244, 232, 205, 0.62));
    box-shadow: inset 0 0 0 1px rgba(214, 169, 93, 0.10);
}

/* =========================================================
   Couple, Event, Story, Gallery, Gift
========================================================= */

.couple-grid {
    position: relative;
}

.couple-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 7%;
    bottom: 7%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(47, 107, 79, 0.18), transparent);
    pointer-events: none;
}

.profile-frame {
    position: relative;
    padding: 12px;
    border-radius: 999px 999px 1.4rem 1.4rem;
    border: 1px solid rgba(47, 107, 79, 0.18);
    background: linear-gradient(135deg, rgba(214, 169, 93, 0.64), rgba(47, 107, 79, 0.18));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.profile-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 252, 244, 0.62);
    border-radius: 999px 999px 1rem 1rem;
    pointer-events: none;
    z-index: 2;
}

.profile-photo {
    height: 430px;
    border-radius: 999px 999px 1rem 1rem;
    overflow: hidden;
    background: var(--sage-soft);
}

.profile-photo img,
.gallery-card img {
    transition: transform 520ms var(--ease);
}

.profile-frame:hover .profile-photo img,
.gallery-card:hover img {
    transform: scale(1.025);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pine);
    background: var(--sage-soft);
}

.event-value {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pine-dark);
}

.location-box {
    background: rgba(255, 252, 244, 0.7);
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    padding: 1.15rem;
}

.map-shell {
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(244, 232, 205, 0.94));
    padding: 10px;
    border-radius: 2rem;
}

.story-line::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(47, 107, 79, 0.24), transparent);
}

.story-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--pine);
    color: var(--pine);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.story-dot span {
    font-size: 10px;
    font-weight: 700;
}

.gallery-track {
    scroll-padding-inline: 1.25rem;
    overscroll-behavior-x: contain;
}

.gallery-card {
    padding: 10px;
    border-radius: 999px 999px 1.5rem 1.5rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(244, 232, 205, 0.92));
}

.gallery-card::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(47, 107, 79, 0.18);
    border-radius: 999px 999px 1.1rem 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.gallery-card img {
    border-radius: 999px 999px 1rem 1rem;
}

/* =========================================================
   RSVP
========================================================= */

.form-control {
    width: 100%;
    background: rgba(255, 252, 244, 0.94);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.875rem;
    border-radius: 1rem;
    padding: 1rem;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
    outline: none;
}

.form-control:focus {
    border-color: rgba(47, 107, 79, 0.62);
    box-shadow: 0 0 0 4px rgba(47, 107, 79, 0.12);
    background: #fff;
}

.guest-message {
    background: rgba(255, 252, 244, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.avatar-initial,
.empty-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--pine);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid var(--line);
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid transparent;
}

.status-present {
    color: #17613A;
    background: #EBF8EF;
    border-color: #CDEDD8;
}

.status-present span {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #22A35A;
}

.status-absent {
    color: #B13B35;
    background: #FFF0EE;
    border-color: #FFD6D0;
}

.status-maybe {
    color: #9D651E;
    background: #FFF6E4;
    border-color: #F6DCAC;
}

.guest-bubble {
    background: var(--sage-soft);
    border: 1px solid var(--line);
}

/* =========================================================
   Buttons
========================================================= */

.btn-primary,
.btn-outline {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pine), var(--pine-dark));
    color: white;
    border: 1px solid rgba(244, 227, 182, 0.46);
    box-shadow: 0 14px 28px rgba(22, 39, 31, 0.16);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(22, 39, 31, 0.2);
}

.btn-primary:active {
    transform: translateY(0) scale(0.99);
}

.btn-outline {
    background: transparent;
    color: var(--pine);
    border: 1px solid var(--pine);
}

.btn-outline:hover,
.btn-outline.copied {
    background: var(--pine);
    color: white;
}

/* =========================================================
   Optional bottom sirih leaves
========================================================= */

.sunda-leaf {
    position: fixed !important;
    bottom: 0 !important;
    width: clamp(96px, 18vw, 210px) !important;
    height: auto !important;
    z-index: 36 !important;
    pointer-events: none !important;
    user-select: none !important;
    /* opacity: 0.78 !important; */
    filter:
        drop-shadow(0 12px 24px rgba(22, 39, 31, 0.16))
        drop-shadow(0 0 12px rgba(214, 169, 93, 0.10));
    transform-origin: bottom center !important;
}

.sundanese-leaf-left {
    left: 0 !important;
    right: auto !important;
    transform: translate(-12%, 10%) rotate(-2deg) !important;
    animation: sundaLeafLeft 7.2s ease-in-out infinite;
}

.sundanese-leaf-right {
    right: -10px !important;
    left: auto !important;
    transform: translate(12%, 10%) scaleX(-1) rotate(-2deg) !important;
    animation: sundaLeafRight 7.8s ease-in-out infinite;
}

@keyframes sundaLeafLeft {
    0%, 100% {
        transform: translate(-12%, 10%) rotate(-2deg);
    }

    50% {
        transform: translate(-9%, 8%) rotate(2deg);
    }
}

@keyframes sundaLeafRight {
    0%, 100% {
        transform: translate(12%, 10%) scaleX(-1) rotate(-2deg);
    }

    50% {
        transform: translate(9%, 8%) scaleX(-1) rotate(2deg);
    }
}

/* =========================================================
   Animation / Reveal
========================================================= */

.sunda-card,
.woven-card,
.profile-frame,
.event-card,
.map-shell,
.gallery-card,
.gift-card,
.guest-message {
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.sunda-card:hover,
.woven-card:hover,
.event-card:hover,
.map-shell:hover,
.gallery-card:hover,
.gift-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 58px rgba(22, 39, 31, 0.14);
    border-color: rgba(47, 107, 79, 0.28);
}

.reveal,
.reveal-stagger > *,
.stagger > * {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 620ms var(--ease),
        transform 620ms var(--ease);
    transition-delay: calc(var(--stagger-index, 0) * 70ms);
    will-change: opacity, transform;
}

.reveal.is-visible,
.reveal-stagger.is-visible > *,
.stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-22px);
}

.reveal-right {
    transform: translateX(22px);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
    transform: translateX(0);
}

@keyframes coverFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {
    :root {
        --ornament-cover-width: 180px;
        --ornament-main-width: 150px;
    }

    .hero-shell {
        min-height: auto;
    }

    .hero-ribbon {
        min-height: 360px;
    }

    .hero-panel {
        border-radius: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --ornament-cover-width: 150px;
        --ornament-main-width: 120px;
    }

    .section-pad {
        padding: 4.75rem 1rem;
    }

    .section-heading {
        margin-bottom: 3rem;
    }

    .hero-shell {
        border-radius: 1.4rem;
    }

    .hero-ribbon,
    .hero-main {
        padding: 2.25rem 1.35rem;
    }

    .hero-ribbon::before {
        inset: 12px;
        border-radius: 1rem;
    }

    .profile-photo {
        height: 360px;
    }

    .couple-grid::before {
        display: none;
    }

    .sunda-leaf {
        width: clamp(82px, 26vw, 150px) !important;
        z-index: 24 !important;
        /* opacity: 0.62 !important; */
    }

    .sundanese-leaf-right {
        transform: translate(-4%, 10%) scaleX(-1) rotate(-2deg) !important;
    }

    @keyframes sundaLeafRight {
        0%, 100% {
            transform: translate(-4%, 10%) scaleX(-1) rotate(-2deg);
        }

        50% {
            transform: translate(-8%, 8%) scaleX(-1) rotate(2deg);
        }
    }

    .sunda-card:hover,
    .woven-card:hover,
    .event-card:hover,
    .map-shell:hover,
    .gallery-card:hover,
    .gift-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    #invitation-cover {
        padding: 1rem !important;
        align-items: center;
    }

    .cover-card {
        padding-inline: 1.35rem !important;
        padding-block: 2.3rem !important;
        border-radius: 1.5rem;
    }

    .cover-card .font-script {
        font-size: clamp(3.55rem, 17vw, 5.8rem);
    }
}

@media (max-width: 480px) {
    :root {
        --ornament-cover-width: 126px;
        --ornament-main-width: 104px;
    }

    .section-kicker,
    .micro-label,
    .event-label,
    .form-label {
        letter-spacing: 0.22em;
    }

    .hero-panel {
        padding-block: 2.2rem;
        border-radius: 1.4rem;
    }

    .profile-frame {
        padding: 9px;
    }

    .profile-photo {
        height: 310px;
    }

    .event-card,
    .sunda-card,
    .woven-card,
    .gift-card {
        border-radius: 1.45rem;
    }

    .story-line {
        padding-left: 2.25rem;
    }

    .gallery-item {
        width: 76vw;
        height: 24rem;
    }
}

@media (max-height: 680px) {
    #invitation-cover {
        align-items: flex-start;
        overflow-y: auto;
    }

    .cover-card {
        margin-block: 1rem;
        max-height: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-stagger > *,
    .stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}
