/*
 * Sunda Wayang Golek: a Sundanese wedding staged like a wayang golek show. Warm teak wood, carved gold,
 * red and deep green. Ornaments are inline SVG (sections/_defs, _gate): two rod puppets that sway, nod and
 * move their arm sticks; a gapura with spreading eaves whose carved doors swing open on the cover;
 * ukiran vine corners; a kacapi divider; batik lereng/kumeli bands. Wood grain and the carved lattice
 * are CSS gradients.
 * Sections rotate between cream (default tokens), tinted (.swg-section--tint), the dark teak stage
 * (.swg-section--dark), the veiled photo (events) and the full photo (closing).
 * Colors from the variant: --inv-primary, --inv-accent, --inv-background, --inv-text, --inv-red,
 * --inv-green, --inv-wood, --inv-surface, --inv-ink. All classes start with "swg-".
 */

:root {
    --inv-primary: #7a4524;
    --inv-accent: #c99a3c;
    --inv-background: #f6ecda;
    --inv-text: #3a2516;
    --inv-red: #a8282a;
    --inv-green: #2b5a3b;
    --inv-wood: #4e2e16;
    --inv-surface: #fffaf0;
    --inv-ink: #22150b;
    --inv-radius: 14px;

    --swg-w: 460px;
    /* distance from the viewport edge to the column (0 on phones) */
    --swg-edge: max(0px, calc((100vw - var(--swg-w)) / 2));
    --swg-title: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --swg-script: 'Pinyon Script', 'Great Vibes', 'Brush Script MT', cursive;
    --swg-serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    --swg-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --swg-mono: 'DM Mono', ui-monospace, Consolas, monospace;

    --swg-gold-bg: linear-gradient(120deg, color-mix(in srgb, var(--inv-accent) 50%, #fff) 0%, var(--inv-accent) 32%, color-mix(in srgb, var(--inv-accent) 72%, #3d2200) 58%, color-mix(in srgb, var(--inv-accent) 65%, #fff) 82%, var(--inv-accent) 100%);
    /* gold dark enough to read on cream, light enough to read on teak */
    --swg-gold-text: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-ink));
    --swg-gold-light: color-mix(in srgb, var(--inv-accent) 72%, #fff);
    --swg-red-deep: color-mix(in srgb, var(--inv-red) 70%, var(--inv-ink));
    --swg-green-deep: color-mix(in srgb, var(--inv-green) 70%, var(--inv-ink));

    /* the teak stage: board grain, a warm spotlight from above, dark wood */
    --swg-grain:
        repeating-linear-gradient(90deg, rgb(0 0 0 / .07) 0 1px, transparent 1px 7px, rgb(255 255 255 / .025) 7px 8px, transparent 8px 19px),
        repeating-linear-gradient(90deg, transparent 0 58px, rgb(0 0 0 / .14) 58px 60px);
    --swg-stage:
        var(--swg-grain),
        radial-gradient(75% 45% at 50% 18%, color-mix(in srgb, var(--inv-wood) 55%, #e3a25a) 0%, transparent 72%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-wood) 80%, #000), var(--inv-wood) 40%, color-mix(in srgb, var(--inv-wood) 85%, #000));
    /* the carved lattice (kerawang) faintly behind light sections */
    --swg-lattice-c: color-mix(in srgb, var(--inv-accent) 13%, transparent);
    --swg-lattice:
        repeating-linear-gradient(45deg, transparent 0 21px, var(--swg-lattice-c) 21px 22px),
        repeating-linear-gradient(-45deg, transparent 0 21px, var(--swg-lattice-c) 21px 22px);

    /* context tokens: cream by default, redefined for the dark stage and over photos */
    --swg-fg: var(--inv-text);
    --swg-muted: color-mix(in srgb, var(--inv-text) 82%, transparent);
    --swg-title-c: var(--inv-primary);
    --swg-label: var(--swg-gold-text);
    --swg-line: color-mix(in srgb, var(--inv-accent) 65%, transparent);
    --swg-line-soft: color-mix(in srgb, var(--inv-accent) 30%, transparent);
    --swg-key: var(--inv-red);
    --swg-btn-bg: linear-gradient(135deg, color-mix(in srgb, var(--inv-primary) 88%, #fff 12%), color-mix(in srgb, var(--inv-primary) 70%, var(--inv-ink)));
    --swg-btn-fg: #fff;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--inv-wood); scroll-behavior: smooth; }

body.swg-body {
    margin: 0;
    background: var(--inv-wood);
    color: var(--inv-text);
    font: 400 1.06rem/1.65 var(--swg-serif);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }

.swg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.swg-icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- backdrop (wide screens) and the column ---------- */

.swg-backdrop {
    position: fixed; inset: 0; z-index: 0;
    background:
        var(--swg-lattice),
        var(--swg-stage);
    --swg-lattice-c: color-mix(in srgb, var(--inv-accent) 10%, transparent);
}

.swg-page {
    position: relative; z-index: 1;
    width: min(100%, var(--swg-w)); min-height: 100vh; margin: 0 auto;
    background: var(--inv-background);
    overflow-x: clip;
}
@media (min-width: 520px) {
    .swg-page { box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 9px color-mix(in srgb, var(--inv-wood) 80%, #000), 0 0 0 10px var(--swg-line), 0 30px 90px rgb(0 0 0 / .5); }
}
@media (max-width: 519px) {
    .swg-backdrop { display: none; }
}

.swg-preview {
    position: fixed; z-index: 60; top: 0; left: 0; right: 0;
    width: min(100%, var(--swg-w)); margin: 0 auto; padding: .35rem .75rem;
    background: var(--inv-red); color: #fff;
    font: 500 .68rem/1.3 var(--swg-sans); text-align: center; letter-spacing: .03em;
}

/* ---------- ornaments: batik band, corners, kacapi ---------- */

.swg-band {
    height: 22px; line-height: 0; padding: 3px 0;
    background: var(--swg-gold-bg);
    box-shadow: 0 5px 10px -7px rgb(0 0 0 / .45);
}
.swg-band svg { display: block; }

.swg-corners { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.swg-corner { position: absolute; width: clamp(92px, 27vw, 124px); aspect-ratio: 1; opacity: .9; }
.swg-corner svg {
    display: block; width: 100%; height: 100%; overflow: visible;
    transform-origin: 6% 6%;
    animation: swg-vine 7s ease-in-out infinite alternate;
    will-change: transform;
}
.swg-corner--tl { top: 4px; left: 4px; }
.swg-corner--tr { top: 4px; right: 4px; transform: scaleX(-1); }
.swg-corner--bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.swg-corner--br { bottom: 4px; right: 4px; transform: scale(-1, -1); }
.swg-corner--tr svg { animation-delay: -2.6s; animation-duration: 8s; }
.swg-corner--bl svg { animation-delay: -4s; }
.swg-corner--br svg { animation-delay: -1.4s; animation-duration: 8.4s; }
@keyframes swg-vine {
    from { transform: rotate(-1.8deg) scale(1); }
    to { transform: rotate(1.6deg) scale(1.03); }
}

/* kacapi divider: the zither between two fading gold lines; its strings shiver once on reveal */
.swg-kacapi { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .8rem auto 0; }
.swg-kacapi__line { width: 3.6rem; height: 1px; background: linear-gradient(90deg, transparent, var(--swg-line)); }
.swg-kacapi__line--end { transform: scaleX(-1); }
.swg-kacapi__svg { display: block; width: 5.4rem; height: auto; aspect-ratio: 160 / 44; overflow: visible; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .18)); }
.swg-kacapi__strings { transform-box: fill-box; transform-origin: 50% 50%; }
html.inv-anim .is-revealed .swg-kacapi__strings,
html.inv-anim .swg-kacapi.is-revealed .swg-kacapi__strings { animation: swg-pluck .9s ease-out .5s 1; }
@keyframes swg-pluck {
    0%, 100% { transform: none; }
    12% { transform: translateY(.7px); }
    24% { transform: translateY(-.6px); }
    38% { transform: translateY(.45px); }
    52% { transform: translateY(-.3px); }
    70% { transform: translateY(.15px); }
}

.swg-kicker {
    position: relative; z-index: 2;
    font: 500 .74rem/1.4 var(--swg-sans); letter-spacing: .4em; text-transform: uppercase;
    color: var(--swg-label);
}

/* ---------- the wayang golek puppets ---------- */

.swg-golek { display: block; width: 100%; height: auto; aspect-ratio: 120 / 344; overflow: visible; filter: drop-shadow(0 12px 10px rgb(0 0 0 / .35)); }
/* played: the figure sways on its rod, the head nods, the arm stick lifts the hand */
.swg-golek__all { transform-origin: 60px 340px; animation: swg-sway 4.8s ease-in-out infinite alternate; }
.swg-golek__head { transform-origin: 60px 92px; animation: swg-nod 3.2s ease-in-out infinite; }
.swg-golek__arm { transform-origin: 88px 108px; animation: swg-arm 3.6s ease-in-out infinite alternate; }
.swg-golek--bride .swg-golek__all { animation-delay: -2.1s; animation-duration: 5.2s; }
.swg-golek--bride .swg-golek__head { animation-delay: -1.3s; animation-duration: 3.6s; }
.swg-golek--bride .swg-golek__arm { transform-origin: 86px 109px; animation-delay: -1.7s; animation-duration: 4s; }
@keyframes swg-sway {
    from { transform: rotate(-2.6deg); }
    to { transform: rotate(2.6deg); }
}
@keyframes swg-nod {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-7deg); }
    48% { transform: rotate(3deg); }
    70% { transform: rotate(-2deg); }
}
@keyframes swg-arm {
    from { transform: rotate(5deg); }
    to { transform: rotate(-15deg); }
}

/* a puppet popping up from the bottom edge of a section (data-reveal="peek", head and shoulders) */
html.inv-anim .swg-peek[data-reveal] { opacity: 1; transform: none; }
.swg-peek {
    position: absolute !important; z-index: 2 !important; bottom: 0;
    width: 3.8rem; aspect-ratio: 120 / 176; overflow: hidden; pointer-events: none;
}
.swg-peek--left { left: .7rem; }
.swg-peek--right { right: .7rem; }
.swg-peek__fig { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 -2px 6px rgb(0 0 0 / .2)); }
.swg-peek__head { transform-origin: 60px 92px; }
html.inv-anim .swg-peek .swg-peek__fig { transform: translateY(105%); transition: transform 1s cubic-bezier(.34, 1.5, .64, 1) .35s; }
html.inv-anim .swg-peek.is-revealed .swg-peek__fig { transform: none; }
html.inv-anim .swg-peek.is-revealed .swg-peek__head { animation: swg-nod 3.2s ease-in-out 1.3s infinite; }
.swg-peek--left .swg-peek__fig { transform-origin: 50% 100%; }

/* ---------- the gapura ---------- */

.swg-gapura { position: relative; width: min(64%, 250px); aspect-ratio: 260 / 300; margin: 0 auto; }
.swg-gapura__opening, .swg-gapura__doors { position: absolute; left: 24.6154%; top: 40%; width: 50.7692%; height: 57.6667%; }
.swg-gapura__opening { z-index: 1; overflow: hidden; background: color-mix(in srgb, var(--inv-wood) 80%, #000); }
.swg-gapura__photo {
    position: absolute; inset: 0;
    background:
        var(--swg-photo, none) center 30% / cover no-repeat,
        linear-gradient(160deg, var(--inv-red), var(--swg-red-deep));
}
.swg-gapura__photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--inv-accent) 70%, transparent), inset 0 0 26px rgb(0 0 0 / .45); }
.swg-gapura__photo--empty { display: flex; align-items: center; justify-content: center; gap: .2rem; font: 600 2.6rem/1 var(--swg-title); color: var(--swg-gold-light); }
.swg-gapura__frame { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 16px rgb(0 0 0 / .4)); pointer-events: none; }

/* the carved doors (cover only), closed until the guest opens the invitation */
.swg-gapura__doors { z-index: 3; display: flex; perspective: 380px; }
.swg-door {
    position: relative; flex: 1; display: flex; flex-direction: column; gap: 6%; padding: 9% 11%;
    background:
        repeating-linear-gradient(90deg, rgb(0 0 0 / .1) 0 1px, transparent 1px 5px, rgb(255 255 255 / .04) 5px 6px, transparent 6px 11px),
        linear-gradient(90deg, color-mix(in srgb, var(--inv-wood) 75%, #c98a4a), var(--inv-wood));
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-accent) 75%, transparent), inset 0 0 14px rgb(0 0 0 / .35);
}
.swg-door--l { transform-origin: 0 50%; }
.swg-door--r { transform-origin: 100% 50%; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .1) 0 1px, transparent 1px 5px, rgb(255 255 255 / .04) 5px 6px, transparent 6px 11px), linear-gradient(270deg, color-mix(in srgb, var(--inv-wood) 75%, #c98a4a), var(--inv-wood)); }
.swg-door__panel {
    display: grid; place-items: center; border-radius: 3px;
    background: color-mix(in srgb, var(--inv-wood) 70%, #000);
    box-shadow: inset 0 0 0 1px var(--inv-accent), inset 0 0 0 3px color-mix(in srgb, var(--inv-wood) 70%, #000), inset 0 0 0 4px color-mix(in srgb, var(--inv-accent) 55%, transparent), inset 0 6px 10px rgb(0 0 0 / .45);
}
.swg-door__panel--top { flex: 1.5; }
.swg-door__panel--bottom { flex: 1; }
.swg-door__panel svg { width: 62%; height: auto; aspect-ratio: 1; overflow: visible; }
.swg-door__letter { display: flex; gap: .1rem; font: 600 clamp(1.5rem, 7vw, 2rem)/1 var(--swg-title); color: var(--swg-gold-light); text-shadow: 0 2px 4px rgb(0 0 0 / .5); }
.swg-door__ring {
    position: absolute; top: 52%; width: 9px; height: 9px; border-radius: 50%;
    border: 1.6px solid var(--swg-gold-light); box-shadow: 0 1px 2px rgb(0 0 0 / .5);
}
.swg-door--l .swg-door__ring { right: 4px; }
.swg-door--r .swg-door__ring { left: 4px; }

/* ---------- cover: the stage before the show ---------- */

.swg-cover {
    position: fixed; inset: 0; z-index: 30;
    width: min(100%, var(--swg-w)); margin: 0 auto;
    display: flex; overflow-x: hidden; overflow-y: auto;
    color: var(--inv-surface);
    background: var(--swg-stage);
    --swg-label: var(--swg-gold-light);
}
.swg-cover > .swg-corners { inset: 0 0 22px; }
.swg-cover__inner {
    position: relative; z-index: 2;
    width: 100%; margin: auto; padding: 2.2rem 1.4rem 3.4rem;
    display: flex; flex-direction: column; align-items: center; gap: .65rem;
    text-align: center;
}
.swg-cover__inner > .swg-fade { display: flex; flex-direction: column; align-items: center; gap: .55rem; width: 100%; }
.swg-gapura--cover { width: min(64vw, 236px, 34svh); margin-top: .3rem; }
.swg-cover__names {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .5rem;
    margin-top: .2rem;
    font: 400 clamp(2.6rem, 12vw, 3.3rem)/1.15 var(--swg-script); color: var(--inv-surface);
    text-shadow: 0 3px 14px rgb(0 0 0 / .5);
}
.swg-cover__amp { font: 500 .45em/1 var(--swg-title); color: var(--swg-gold-light); }
.swg-cover__date {
    display: flex; align-items: center; gap: .65rem;
    font: 500 .76rem/1.4 var(--swg-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--swg-gold-light);
}
.swg-cover__date::before, .swg-cover__date::after { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--inv-red); box-shadow: 0 0 0 1.5px var(--swg-gold-light); }
.swg-cover__quote { max-width: 18rem; font: italic 400 .98rem/1.5 var(--swg-serif); color: color-mix(in srgb, var(--inv-surface) 88%, transparent); }

.swg-guest {
    position: relative; z-index: 2; width: min(100%, 15.5rem); margin-top: .35rem; padding: .85rem 1rem .9rem;
    border-radius: 4px; color: var(--inv-text);
    background: var(--inv-surface);
    box-shadow: inset 0 0 0 1px var(--inv-accent), inset 0 0 0 4px var(--inv-surface), inset 0 0 0 5px var(--swg-line-soft), 0 18px 30px -16px rgb(0 0 0 / .6);
}
.swg-guest::before, .swg-guest::after {
    content: ''; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; transform: rotate(45deg);
    background: var(--inv-accent); box-shadow: 0 0 0 2px var(--inv-surface);
}
.swg-guest::before { left: -5px; }
.swg-guest::after { right: -5px; }
.swg-guest__label { font: 500 .66rem/1.4 var(--swg-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--swg-gold-text); }
.swg-guest__name { margin-top: .2rem; font: 600 1.2rem/1.3 var(--swg-serif); color: var(--inv-ink); overflow-wrap: anywhere; }

.swg-open { margin-top: .45rem; position: relative; z-index: 2; }
.swg-cover .swg-open { background: var(--swg-gold-bg); color: var(--inv-ink); box-shadow: 0 12px 24px -12px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .4); }

.swg-cover__puppet { position: absolute; z-index: 1; bottom: -2.6rem; width: clamp(80px, 24vw, 108px); pointer-events: none; }
.swg-cover__puppet--left { left: -.6rem; }
.swg-cover__puppet--right { right: -.6rem; }
.swg-cover > .swg-band { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; }
html.inv-anim .swg-cover__puppet { animation: swg-rise 1.2s cubic-bezier(.34, 1.4, .64, 1) .9s both; }
html.inv-anim .swg-cover__puppet--right { animation-delay: 1.05s; }
@keyframes swg-rise { from { transform: translateY(60%); } to { transform: none; } }

/* opening: the doors swing outwards, the text fades, the gate comes closer, then the cover fades */
.swg-cover--leave { transition: opacity .55s ease .7s; }
.swg-cover--gone { opacity: 0; }
.swg-cover--leave .swg-fade, .swg-cover--leave .swg-cover__puppet { opacity: 0; transition: opacity .35s ease; }
html.inv-anim .swg-cover--leave .swg-gapura { transform: scale(1.08); transition: transform 1.25s cubic-bezier(.4, 0, .2, 1); }
html.inv-anim .swg-cover--leave .swg-door--l { animation: swg-door-l .95s cubic-bezier(.55, .05, .3, 1) forwards; }
html.inv-anim .swg-cover--leave .swg-door--r { animation: swg-door-r .95s cubic-bezier(.55, .05, .3, 1) forwards; }
@keyframes swg-door-l { to { transform: rotateY(-72deg); } }
@keyframes swg-door-r { to { transform: rotateY(72deg); } }

/* ---------- hero: the show begins ---------- */

.swg-hero {
    position: relative; overflow: hidden;
    min-height: min(100vh, 860px); min-height: min(100svh, 860px); padding: 3rem 1rem 4.4rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--inv-surface);
    background: var(--swg-stage);
    --swg-label: var(--swg-gold-light);
}
.swg-hero__stage { position: relative; width: 100%; margin-top: .8rem; }
.swg-gapura--hero { width: min(68%, 280px); }
.swg-hero__puppet { position: absolute; z-index: 3; bottom: -3rem; width: clamp(74px, 23vw, 100px); pointer-events: none; }
.swg-hero__puppet--left { left: 1%; }
.swg-hero__puppet--right { right: 1%; }
.swg-hero__names {
    position: relative; z-index: 4; margin-top: 2.6rem;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .5rem;
    font: 400 clamp(2.6rem, 12vw, 3.3rem)/1.2 var(--swg-script); color: var(--inv-surface);
    text-shadow: 0 3px 14px rgb(0 0 0 / .5);
}
.swg-hero__amp { font: 500 .45em/1 var(--swg-title); color: var(--swg-gold-light); }
.swg-hero__date { position: relative; z-index: 4; margin-top: .3rem; font: 500 .78rem/1.4 var(--swg-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--swg-gold-light); }
.swg-hero > .swg-band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; }
/* the photo comes alive a moment after opening */
html.inv-anim.inv-opened .swg-gapura--hero .swg-gapura__photo { animation: swg-glow 2.4s ease-out both; }
@keyframes swg-glow { from { transform: scale(1.12); filter: brightness(1.6) saturate(.6); } to { transform: none; filter: none; } }

/* ---------- sections ---------- */

.swg-main { position: relative; }

/* cream with the faint carved lattice */
.swg-section {
    position: relative; overflow: hidden;
    padding: 4.4rem 1.4rem;
    text-align: center; color: var(--swg-fg);
    background:
        var(--swg-lattice),
        linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-background) 94%, var(--inv-accent)));
}
.swg-section--tint {
    --swg-lattice-c: color-mix(in srgb, var(--inv-green) 9%, transparent);
    background:
        var(--swg-lattice),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-green) 10%, var(--inv-background)), color-mix(in srgb, var(--inv-green) 6%, var(--inv-background)));
}
/* the dark teak stage: cream text, gold labels, gold buttons */
.swg-section--dark {
    --swg-fg: var(--inv-surface);
    --swg-muted: color-mix(in srgb, var(--inv-surface) 86%, transparent);
    --swg-title-c: var(--inv-surface);
    --swg-label: var(--swg-gold-light);
    --swg-line: color-mix(in srgb, var(--inv-accent) 80%, #fff 10%);
    --swg-line-soft: color-mix(in srgb, var(--inv-accent) 40%, transparent);
    --swg-key: var(--swg-gold-light);
    --swg-btn-bg: var(--swg-gold-bg);
    --swg-btn-fg: var(--inv-ink);
    background: var(--swg-stage);
}
.swg-section--dark .inv-button--outline { color: var(--inv-surface); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-accent) 70%, transparent); }

.swg-section > * { position: relative; z-index: 1; }
.swg-section > .swg-corners { position: absolute; z-index: 0; }
.swg-section > .swg-band--top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; }
.swg-section:has(> .swg-band--top) { padding-top: 5.6rem; }
.swg-section:has(> .swg-peek) { padding-bottom: 6.6rem; }

.swg-heading { margin-bottom: 2rem; }
.swg-heading__label { font: 500 .7rem/1.4 var(--swg-sans); letter-spacing: .36em; text-transform: uppercase; color: var(--swg-label); }
.swg-heading__title { margin-top: .35rem; font: 600 clamp(1.6rem, 7.4vw, 1.95rem)/1.25 var(--swg-title); letter-spacing: .04em; color: var(--swg-title-c); overflow-wrap: anywhere; }

.swg-lead { max-width: 24rem; margin: -.6rem auto 1.8rem; color: var(--swg-muted); }

.swg-card {
    position: relative;
    background: var(--inv-surface); color: var(--inv-text);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px var(--swg-line-soft), inset 0 0 0 5px var(--inv-surface), inset 0 0 0 6px color-mix(in srgb, var(--inv-accent) 18%, transparent), 0 24px 44px -30px rgb(0 0 0 / .5);
}

/* ---------- buttons (shared components) ---------- */

.inv-button {
    gap: .5rem; padding: .85rem 1.45rem; border-radius: 999px;
    background: var(--swg-btn-bg); color: var(--swg-btn-fg);
    font: 600 .74rem/1.2 var(--swg-sans); letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 12px 22px -14px rgb(0 0 0 / .55), inset 0 1px 0 rgb(255 255 255 / .25), 0 0 0 1px color-mix(in srgb, var(--inv-accent) 55%, transparent);
}
.inv-button--outline {
    background: color-mix(in srgb, var(--inv-surface) 75%, transparent); color: var(--inv-primary);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-primary) 55%, transparent);
}
.inv-button--outline:hover { background: color-mix(in srgb, var(--inv-primary) 8%, var(--inv-surface)); }
.inv-button .swg-icon { width: 1.15rem; height: 1.15rem; }

.swg-pill {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; padding: .45rem .95rem;
    border-radius: 999px; color: var(--inv-primary); text-decoration: none;
    background: var(--inv-surface);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 40%, transparent), 0 6px 12px -8px rgb(0 0 0 / .4);
    font: 500 .78rem/1 var(--swg-sans); letter-spacing: .03em;
}

/* ---------- opening ---------- */
.swg-arabic { font: 400 1.75rem/1.8 'Amiri', serif; color: var(--inv-primary); margin-bottom: .4rem; }
.swg-opening { padding-top: 4.8rem; }
.swg-opening__greeting { font: 600 1.2rem/1.45 var(--swg-title); letter-spacing: .03em; color: var(--swg-title-c); }
.swg-opening .swg-kacapi { margin-bottom: 1.2rem; }
.swg-opening__message { max-width: 24rem; margin: 0 auto; color: var(--swg-muted); }
/* the quote on a carved teak plaque with gold rim and pegs */
.swg-plaque {
    position: relative; max-width: 22rem; margin: 2.4rem auto 0; padding: 1.5rem 1.4rem 1.3rem;
    border-radius: 6px; color: var(--inv-surface);
    background: var(--swg-grain), linear-gradient(160deg, color-mix(in srgb, var(--inv-wood) 80%, #c98a4a), var(--inv-wood));
    box-shadow: inset 0 0 0 1.5px var(--inv-accent), inset 0 0 0 5px color-mix(in srgb, var(--inv-wood) 70%, #000), inset 0 0 0 6px color-mix(in srgb, var(--inv-accent) 55%, transparent), 0 22px 36px -22px rgb(0 0 0 / .6);
}
.swg-plaque::before, .swg-plaque::after {
    content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
    background: var(--swg-gold-bg); box-shadow: 0 1px 2px rgb(0 0 0 / .5);
}
.swg-plaque::before { left: 9px; }
.swg-plaque::after { right: 9px; }
.swg-plaque blockquote { margin: 0; font: italic 400 1.04rem/1.65 var(--swg-serif); }
.swg-plaque figcaption { margin-top: .7rem; font: 500 .68rem/1.4 var(--swg-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--swg-gold-light); }

/* ---------- couple: zig-zag (R3) ---------- */
.swg-person {
    display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); align-items: center; gap: 1rem;
    max-width: 26rem; margin: 0 auto; text-align: left;
}
.swg-person--right { grid-template-columns: minmax(0, 1fr) 8.2rem; text-align: right; }
.swg-person--right .swg-person__frame { order: 2; }
/* a carved bead ring around the round photo */
.swg-person__frame {
    position: relative; padding: 6px; border-radius: 50%;
    background: repeating-conic-gradient(var(--inv-accent) 0 5deg, color-mix(in srgb, var(--inv-accent) 55%, var(--inv-wood)) 5deg 10deg);
    box-shadow: 0 0 0 1.5px var(--inv-wood), 0 0 0 4px var(--inv-background), 0 0 0 5px var(--swg-line), 0 22px 30px -18px rgb(0 0 0 / .6);
}
.swg-person__photo {
    display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--inv-surface);
}
.swg-person__photo--empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--inv-red), var(--swg-red-deep)); font: 400 3.4rem/1 var(--swg-script); color: var(--inv-surface); }
.swg-person__text { min-width: 0; }
.swg-person__role { font: 500 .62rem/1.4 var(--swg-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--swg-label); }
.swg-person__nick { font: 400 2.5rem/1.15 var(--swg-script); color: var(--inv-primary); overflow-wrap: anywhere; }
.swg-person__name { margin-top: .1rem; font: 600 1.08rem/1.35 var(--swg-serif); color: var(--inv-ink); overflow-wrap: anywhere; }
.swg-person__parents { margin-top: .4rem; font-size: .9rem; line-height: 1.5; color: var(--swg-muted); }
.swg-person__parents strong { color: var(--swg-fg); font-weight: 600; }

.swg-amp { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 1.6rem 0; }
.swg-amp svg { width: 1.4rem; height: 1.4rem; overflow: visible; }
.swg-amp::before, .swg-amp::after { content: ''; order: -1; width: 3.4rem; height: 1px; background: linear-gradient(90deg, transparent, var(--swg-line)); }
.swg-amp::after { order: 5; transform: scaleX(-1); }
.swg-amp span { font: italic 500 2.6rem/1 var(--swg-serif); color: var(--swg-gold-text); }

/* ---------- countdown: calendar + compact carved boxes (A) ---------- */
.swg-cal.inv-cal {
    --inv-cal-bg: var(--inv-surface);
    --inv-cal-text: var(--inv-text);
    --inv-cal-mark: var(--inv-red);
    width: min(100%, 20rem); margin-bottom: 1.6rem; border-radius: 6px;
    box-shadow: inset 0 0 0 1px var(--swg-line-soft), 0 0 0 4px color-mix(in srgb, var(--inv-wood) 50%, #c98a4a), 0 0 0 5px var(--inv-accent), 0 24px 40px -18px rgb(0 0 0 / .65);
}
.swg-cal .inv-cal__month { font: 400 2.1rem/1 var(--swg-script); color: var(--inv-primary); }
.swg-cal .inv-cal__year { font-family: var(--swg-title); color: var(--swg-gold-text); opacity: 1; }
.swg-cal .inv-cal__dow { font-family: var(--swg-sans); }
.swg-cal .inv-cal__day { font-family: var(--swg-sans); font-size: .9rem; }
.swg-cal .inv-cal__note { font: 600 .82rem/1.4 var(--swg-sans); letter-spacing: .06em; color: var(--inv-primary); }

.inv-countdown { gap: .5rem; }
.inv-countdown__item {
    flex: 1; min-width: 0; max-width: 4.6rem; padding: .7rem .2rem .6rem; border-radius: 8px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-wood) 70%, #000), color-mix(in srgb, var(--inv-wood) 85%, #000));
    box-shadow: inset 0 0 0 1px var(--inv-accent), inset 0 0 0 3px color-mix(in srgb, var(--inv-wood) 80%, #000), inset 0 0 0 4px color-mix(in srgb, var(--inv-accent) 40%, transparent), 0 12px 20px -12px rgb(0 0 0 / .7);
}
.inv-countdown__value { font: 600 1.55rem/1.1 var(--swg-title); color: var(--swg-gold-light); }
.inv-countdown__label { margin-top: .25rem; font: 500 .58rem/1.2 var(--swg-sans); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--inv-surface) 85%, transparent); opacity: 1; }
.inv-countdown__done { font-style: italic; color: var(--swg-muted); }
.inv-countdown__actions { margin-top: 1.5rem; }
.inv-countdown__actions .inv-button { padding: .7rem 1rem; font-size: .6rem; letter-spacing: .1em; }

/* ---------- events: cards with a header band over the veiled couple photo (W) ---------- */
.swg-events {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 88%, transparent), color-mix(in srgb, var(--inv-background) 80%, transparent) 50%, color-mix(in srgb, var(--inv-background) 92%, transparent)),
        var(--swg-photo, none) center 30% / cover no-repeat,
        var(--inv-background);
}
.swg-event {
    max-width: 23rem; margin: 0 auto; overflow: hidden;
    border-radius: 30px; background: color-mix(in srgb, var(--inv-surface) 95%, transparent);
    box-shadow: inset 0 0 0 1px var(--swg-line-soft), 0 26px 44px -26px rgb(0 0 0 / .5);
}
.swg-event + .swg-event { margin-top: 1.8rem; }
.swg-event__band {
    position: relative; padding: 1.25rem 1rem 0; border-radius: 30px 30px 0 0;
    background: var(--swg-grain), linear-gradient(135deg, var(--inv-red), var(--swg-red-deep));
    color: var(--inv-surface);
}
.swg-event--green .swg-event__band { background: var(--swg-grain), linear-gradient(135deg, var(--inv-green), var(--swg-green-deep)); }
.swg-event__name { padding-bottom: 1.75rem; font: 600 1.45rem/1.25 var(--swg-title); letter-spacing: .05em; overflow-wrap: anywhere; }
.swg-band--event { margin: 0 -1rem; height: 18px; padding: 2px 0; }
.swg-event__medal {
    position: relative; z-index: 1; width: 5.2rem; aspect-ratio: 1; margin: -2.1rem auto 0; padding: 4px; border-radius: 50%;
    background: repeating-conic-gradient(var(--inv-accent) 0 6deg, color-mix(in srgb, var(--inv-accent) 55%, var(--inv-wood)) 6deg 12deg);
    box-shadow: 0 0 0 3px var(--inv-surface), 0 12px 20px -10px rgb(0 0 0 / .55);
}
.swg-event__photo { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--inv-surface); background: var(--swg-photo) center 30% / cover no-repeat; }
.swg-event__body { padding: .9rem 1.2rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.swg-event__body p { display: flex; align-items: flex-start; justify-content: center; gap: .4rem; overflow-wrap: anywhere; }
.swg-event__body p .swg-icon { margin-top: .22rem; color: var(--inv-primary); }
.swg-event__time { font: 600 1rem/1.5 var(--swg-sans); color: var(--swg-key); }
.swg-event__time .swg-icon { color: var(--swg-key) !important; }
.swg-event__date { font: 500 .92rem/1.5 var(--swg-sans); color: var(--inv-ink); }
.swg-event__place {
    width: 100%; margin-top: .7rem; padding: .8rem .9rem; border-radius: 16px;
    border: 1.5px dashed color-mix(in srgb, var(--inv-primary) 40%, transparent);
}
.swg-event__venue { font: 700 1.12rem/1.35 var(--swg-serif); color: var(--inv-ink); }
.swg-event__address { display: block !important; margin-top: .2rem; font-size: .92rem; line-height: 1.55; color: var(--swg-muted); }
.swg-event__dress {
    margin-top: .6rem; padding: .3rem .85rem; border-radius: 999px; font: 500 .8rem/1.5 var(--swg-sans);
    background: color-mix(in srgb, var(--inv-green) 10%, var(--inv-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-green) 30%, transparent);
}
.swg-event__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; width: 100%; margin-top: 1rem; }
.swg-event__actions .inv-button { width: 100%; padding: .75rem .5rem; font-size: .6rem; letter-spacing: .08em; text-decoration: none; }
.swg-event__maps { margin: 0; }

/* ---------- love story: compact zig-zag (L) ----------
   Default: text left (aligned right, toward the line), meta right. .is-flip swaps the sides. */
.swg-story { padding-left: 1rem; padding-right: 1rem; }
.swg-zig { position: relative; max-width: 25rem; margin: 0 auto; padding: 0; list-style: none; }
.swg-zig::before {
    content: ''; position: absolute; left: 50%; top: .2rem; bottom: 0; width: 1px; transform: translateX(-50%);
    background: linear-gradient(180deg, var(--inv-accent), var(--inv-accent) 85%, transparent);
}
.swg-zig__item {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) 2.2rem minmax(0, 1fr); column-gap: .65rem; align-items: start;
    grid-template-areas: "text num meta";
}
.swg-zig__item + .swg-zig__item { margin-top: 2rem; }
.swg-zig__item.is-flip { grid-template-areas: "meta num text"; }
.swg-zig__num {
    grid-area: num; justify-self: center; display: grid; place-items: center;
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    background: var(--inv-surface); color: var(--inv-primary);
    font: 600 .72rem/1 var(--swg-title);
    box-shadow: inset 0 0 0 1px var(--inv-accent), 0 0 0 3px var(--inv-background), 0 6px 12px -6px rgb(0 0 0 / .4);
}
.swg-zig__text { grid-area: text; min-width: 0; text-align: right; }
.is-flip .swg-zig__text { text-align: left; }
.swg-zig__title { font: 600 1.08rem/1.3 var(--swg-serif); color: var(--inv-ink); overflow-wrap: anywhere; }
.swg-zig__rule { display: block; width: 72%; margin: .4rem 0 .5rem auto; border-top: 2px dotted var(--swg-line); }
.is-flip .swg-zig__rule { margin-left: 0; margin-right: auto; }
.swg-zig__story { font-size: .9rem; line-height: 1.55; color: var(--swg-muted); overflow-wrap: anywhere; }
.swg-zig__meta { grid-area: meta; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; text-align: left; }
.is-flip .swg-zig__meta { align-items: flex-end; text-align: right; }
.swg-zig__date { font: italic 500 1.25rem/1.2 var(--swg-serif); color: var(--swg-key); overflow-wrap: anywhere; }
.swg-zig__photo {
    display: block; width: min(6.2rem, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--inv-surface);
    box-shadow: 0 0 0 1.5px var(--inv-accent), 0 14px 22px -14px rgb(0 0 0 / .6);
}

/* ---------- gallery slider (G) on the stage ---------- */
.swg-gallery .inv-gallery-wrap { max-width: 24rem; margin: 0 auto; }
.swg-gallery .inv-gallery-slider { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.swg-gallery .inv-gallery-slider__stage { margin: 0 9px; }
.inv-gallery-slider__thumb { border-radius: 6px; }
.inv-gallery-slider__thumb.is-active { border-color: var(--inv-accent); }
.inv-gallery-slider__arrow { background: var(--swg-gold-bg); color: var(--inv-ink); font-weight: 600; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .6); }
.inv-gallery-slider__stage {
    border-radius: 10px;
    box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 8px color-mix(in srgb, var(--inv-wood) 55%, #c98a4a), 0 0 0 9px var(--inv-accent), 0 30px 50px -24px rgb(0 0 0 / .8);
}
.inv-gallery-slider__count { font-family: var(--swg-sans); background: rgb(0 0 0 / .5); }
.inv-gallery__play { background: color-mix(in srgb, var(--inv-ink) 65%, transparent); color: #fff; }

/* ---------- live streaming ---------- */
.swg-live__card { max-width: 23rem; margin: 0 auto; padding: 1.5rem 1.4rem 1.7rem; }
.swg-live__badge {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem;
    border-radius: 999px; background: var(--inv-red); color: #fff;
    font: 600 .66rem/1 var(--swg-sans); letter-spacing: .2em;
}
.swg-live__badge span { width: .45rem; height: .45rem; border-radius: 50%; background: #ffd0c8; animation: swg-blink 1.4s ease-in-out infinite; }
@keyframes swg-blink { 50% { opacity: .25; } }
.swg-live__text { margin: 1rem 0 .5rem; color: var(--inv-text); }
.swg-live__note { margin-bottom: 1rem; font: 600 1rem/1.5 var(--swg-serif); color: var(--inv-primary); }
.swg-live__card .inv-button { margin-top: .5rem; }

/* ---------- gift: teak bank cards, two per row (a lonely last card spans both) ---------- */
.inv-gift { display: grid; gap: .9rem; max-width: 22rem; margin: 0 auto; }
.inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-gift__account {
    position: relative; overflow: hidden; isolation: isolate; min-width: 0;
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .45rem;
    grid-template-areas: "chip bank" "number number" "holder holder" "button button";
    margin: 0; padding: .8rem .8rem 1.4rem;
    border-radius: 16px; text-align: left; color: #fff;
    background:
        linear-gradient(118deg, transparent 22%, rgb(255 255 255 / .1) 36%, transparent 50%),
        var(--swg-grain),
        linear-gradient(150deg, color-mix(in srgb, var(--inv-wood) 65%, #c98a4a), var(--inv-wood) 75%);
    box-shadow: 0 18px 30px -18px rgb(0 0 0 / .65), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent);
}
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__account::before {
    content: ''; grid-area: chip; width: 1.7rem; height: 1.3rem; border-radius: .3rem;
    background:
        linear-gradient(90deg, transparent 31%, rgb(0 0 0 / .25) 31% 33%, transparent 33% 67%, rgb(0 0 0 / .25) 67% 69%, transparent 69%),
        linear-gradient(0deg, transparent 47%, rgb(0 0 0 / .25) 47% 53%, transparent 53%),
        linear-gradient(135deg, #f6e6c4, #c9a160 55%, #ead3a2);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2);
}
/* a strip of batik lereng along the card's foot */
.inv-gift__account::after {
    content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: .7rem;
    background:
        linear-gradient(180deg, var(--inv-accent) 0 1.5px, transparent 1.5px),
        repeating-linear-gradient(-45deg, var(--inv-red) 0 4px, var(--inv-accent) 4px 5px, #f2e3c6 5px 8px, var(--inv-green) 8px 10px, #f2e3c6 10px 12px);
}
.inv-gift__bank {
    grid-area: bank; justify-self: end; min-width: 0; max-width: 100%; margin: 0;
    font: 600 .66rem/1.2 var(--swg-sans); letter-spacing: .06em; text-transform: uppercase; text-align: right; overflow-wrap: anywhere;
}
.inv-gift__logo { height: 1.5rem; max-width: 100%; padding: .2rem .45rem; border-radius: .35rem; }
.inv-gift__logo img { max-width: 4.6rem; }
.inv-gift__number { grid-area: number; margin: .75rem 0 .15rem; font: 500 .95rem/1.25 var(--swg-mono); letter-spacing: .03em; color: #fff; overflow-wrap: anywhere; }
.inv-gift__holder { grid-area: holder; margin: 0; font: 600 .58rem/1.35 var(--swg-sans); letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .88); overflow-wrap: anywhere; }
.inv-gift__account .inv-button {
    grid-area: button; justify-self: start; margin-top: .6rem; padding: .35rem .7rem; border-radius: 999px;
    font-size: .6rem; letter-spacing: .06em; color: #fff; background: rgb(255 255 255 / .1);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, #fff);
}
/* the gift address stays a plain card */
.inv-gift__account.inv-gift__address {
    display: block; padding: 1.5rem 1.3rem; text-align: center; color: var(--inv-text);
    background: var(--inv-surface);
    box-shadow: inset 0 0 0 1px var(--swg-line-soft), 0 20px 40px -28px rgb(0 0 0 / .5);
}
.inv-gift__address::before, .inv-gift__address::after { content: none; }
.inv-gift__address .inv-gift__bank { text-align: center; font: 500 .68rem/1.4 var(--swg-sans); letter-spacing: .28em; color: var(--swg-gold-text); }
.inv-gift__address .inv-gift__holder { margin: .6rem 0 .2rem; font: 600 1.05rem/1.3 var(--swg-serif); letter-spacing: .02em; text-transform: none; color: var(--inv-ink); }
.inv-gift__address p:not([class]) { color: var(--swg-muted); }
.inv-gift__address .inv-button { margin-top: 1rem; color: var(--inv-primary); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 50%, transparent); }

/* ---------- rsvp & wishes forms ---------- */
.swg-form { max-width: 24rem; margin: 0 auto; padding: 1.4rem 1.25rem 1.5rem; text-align: left; }
.inv-form { gap: .9rem; }
.inv-form label, .inv-form__choices legend { font: 500 .8rem/1.4 var(--swg-sans); letter-spacing: .03em; color: color-mix(in srgb, var(--inv-text) 85%, transparent); }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form select, .inv-form textarea {
    padding: .7rem .85rem; border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--inv-accent) 50%, transparent);
    background: #fff; color: var(--inv-text);
    font: 400 1rem/1.4 var(--swg-sans);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.inv-form input::placeholder, .inv-form textarea::placeholder { color: color-mix(in srgb, var(--inv-text) 45%, transparent); }
.inv-form input:focus, .inv-form select:focus, .inv-form textarea:focus {
    outline: none; border-color: var(--inv-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-primary) 18%, transparent);
}
.inv-form option { background: #fff; color: var(--inv-ink); }
.inv-form input[type=radio], .inv-form input[type=checkbox] { accent-color: var(--inv-primary); }
.inv-form__choices label { color: var(--inv-text); font-size: .95rem; }
.inv-form__notice { color: var(--inv-text); background: color-mix(in srgb, var(--inv-accent) 16%, transparent); border: 1px solid var(--swg-line-soft); }
.inv-form .inv-button { justify-self: stretch; margin-top: .3rem; }
.inv-rsvp__deadline { font-style: italic; color: var(--inv-primary); }

/* wishes: compact cards in a scroll box of about three */
.inv-wishes { --inv-wishes-height: 20rem; }
.inv-wishes__list { gap: .6rem; margin-top: 1.4rem; }
.inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .5rem .45rem .5rem .5rem; border-radius: 12px;
    background: color-mix(in srgb, var(--inv-green) 7%, var(--inv-background));
    box-shadow: inset 0 0 0 1px var(--swg-line-soft), inset 0 -14px 16px -14px rgb(0 0 0 / .2);
    scrollbar-color: color-mix(in srgb, var(--inv-primary) 45%, transparent) transparent;
}
.inv-wishes__empty { text-align: center; font-style: italic; }
.inv-wish {
    padding: .65rem .8rem; border-radius: 10px;
    background: #fff; color: var(--inv-text);
    border: 1px solid var(--swg-line-soft); border-left: 3px solid var(--inv-red);
}
.inv-wish__name { font: 600 .95rem/1.3 var(--swg-serif); color: var(--inv-primary); }
.inv-wish__message { font-size: .97rem; line-height: 1.5; }
.inv-wish__time { margin-top: .25rem; font: 400 .68rem/1.3 var(--swg-sans); letter-spacing: .04em; }
.inv-wish__reply { margin-top: .5rem; padding: .45rem .65rem; background: color-mix(in srgb, var(--inv-green) 9%, transparent); }
.inv-wishes__page-button { color: var(--inv-primary); }

/* ---------- closing: full photo (C) ---------- */
.swg-closing {
    min-height: min(100vh, 780px); min-height: min(100svh, 780px); padding: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: var(--inv-surface); background: var(--inv-ink);
}
.swg-closing > .swg-closing__photo {
    position: absolute; z-index: 0; inset: -40px 0;
    background: var(--swg-photo, none) center 30% / cover no-repeat, var(--inv-wood);
}
.swg-closing::before {
    content: ''; position: absolute; z-index: 1; inset: 0;
    background: linear-gradient(180deg, transparent 8%, rgb(0 0 0 / .42) 34%, color-mix(in srgb, var(--inv-ink) 82%, transparent) 62%, var(--inv-ink));
}
.swg-closing > .swg-closing__content { z-index: 2; padding: 6rem 1.6rem 6.8rem; }
.swg-closing__label { font: 500 .7rem/1.4 var(--swg-sans); letter-spacing: .4em; text-transform: uppercase; color: var(--swg-gold-light); }
.swg-closing__thanks { margin-top: .2rem; font: 600 1.85rem/1.25 var(--swg-title); letter-spacing: .1em; color: var(--inv-surface); text-shadow: 0 2px 12px rgb(0 0 0 / .5); }
.swg-kacapi--light { --swg-line: color-mix(in srgb, var(--inv-accent) 85%, #fff); }
.swg-closing__names { margin-top: .5rem; font: 400 clamp(2.6rem, 12vw, 3.2rem)/1.25 var(--swg-script); color: var(--inv-surface); text-shadow: 0 3px 14px rgb(0 0 0 / .6); }
.swg-closing__names span { font: 500 .42em/1 var(--swg-title); color: var(--swg-gold-light); }
.swg-closing__message { max-width: 23rem; margin: .7rem auto 0; color: color-mix(in srgb, var(--inv-surface) 92%, transparent); }
.swg-closing__sign { margin-top: 1.2rem; font: 500 .72rem/1.5 var(--swg-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--swg-gold-light); }

/* ---------- shared components: nav, music, to-top, QR tab, branding ---------- */

.swg-nav.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-wood) 94%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-surface) 78%, transparent);
    --inv-nav-active: linear-gradient(135deg, var(--inv-red), var(--swg-red-deep));
    border-color: color-mix(in srgb, var(--inv-accent) 65%, transparent);
    box-shadow: 0 14px 34px -12px rgb(0 0 0 / .55), inset 0 -2px 0 color-mix(in srgb, var(--inv-accent) 70%, transparent);
    font-family: var(--swg-sans);
}
.swg-nav.inv-nav--icons .inv-nav__item.is-active { color: #fff; box-shadow: 0 0 0 2px var(--inv-wood), 0 0 0 3px var(--inv-accent), 0 8px 18px -6px rgb(0 0 0 / .5); }

.inv-music { right: calc(var(--swg-edge) + 1rem); }
.inv-music__button { background: var(--swg-gold-bg); color: var(--inv-ink); box-shadow: 0 8px 22px -8px rgb(0 0 0 / .5), 0 0 0 2px var(--inv-wood), 0 0 0 3px var(--inv-accent); }
.inv-autoscroll { color: var(--inv-primary); background: color-mix(in srgb, var(--inv-surface) 94%, transparent); border-color: color-mix(in srgb, var(--inv-accent) 55%, transparent); font-family: var(--swg-sans); }
.inv-autoscroll--running { background: var(--inv-primary); color: #fff; }

.inv-to-top {
    left: calc(var(--swg-edge) + 1rem); border-radius: 50%;
    background: var(--inv-wood); color: var(--swg-gold-light);
    box-shadow: inset 0 0 0 1.5px var(--inv-accent), 0 6px 16px -6px rgb(0 0 0 / .5);
}
.inv-qr-tab {
    right: var(--swg-edge); font-family: var(--swg-sans); color: var(--swg-gold-light);
    background: var(--inv-wood);
    border-color: color-mix(in srgb, var(--inv-accent) 65%, transparent);
}
.inv-qr-sheet .inv-checkin { font-family: var(--swg-sans); color: var(--inv-ink); }
.inv-checkin__title { color: var(--inv-primary); }

.swg-branding { position: relative; z-index: 1; color: var(--inv-surface); font-family: var(--swg-sans); background: var(--inv-ink); opacity: 1; }
.swg-branding a { color: var(--swg-gold-light); }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .swg-corner svg, .swg-golek__all, .swg-golek__head, .swg-golek__arm, .swg-peek__head, .swg-live__badge span { animation: none !important; }
    .swg-cover--leave { transition: opacity .3s ease; }
}

/* ---------- fit: the whole cover (names, guest, button) on one phone screen; a proportionate page end ---------- */

.swg-cover__inner { min-height: 100svh; justify-content: space-evenly; gap: .5rem; padding: 1.8rem 1.4rem 3rem; }
.swg-cover__quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }

@media (max-height: 760px) {
    .swg-cover__inner { gap: .35rem; padding-top: 1.3rem; padding-bottom: 2.6rem; }
    .swg-cover__inner > .swg-fade { gap: .45rem; }
    .swg-gapura--cover { width: min(60vw, 220px, 31svh); }
    .swg-cover__names { font-size: clamp(2.4rem, 11vw, 2.9rem); }
    .swg-cover__quote { font-size: .92rem; }
}
@media (max-height: 660px) {
    .swg-cover__inner { gap: .25rem; padding-top: .9rem; padding-bottom: 2.3rem; }
    .swg-cover__inner > .swg-fade { gap: .35rem; }
    .swg-gapura--cover { width: min(56vw, 28svh); }
    .swg-cover__names { font-size: clamp(2.1rem, 10vw, 2.5rem); }
    .swg-cover__quote { -webkit-line-clamp: 6; font-size: .86rem; line-height: 1.45; }
    .swg-guest { padding: .65rem 1rem .7rem; }
    .swg-open { margin-top: .2rem; }
    .swg-cover__puppet { width: clamp(60px, 17vw, 80px); }
}

/* page end: "Kami yang berbahagia" sits just above the bottom menu, the puppets peek at the corners */
.swg-section.swg-closing { padding-bottom: 0; }
.swg-closing > .swg-closing__content { padding-bottom: 3.6rem; }
