/*
 * Galaksi Celestial — "written in the stars": a night sky from deep midnight to violet, a soft
 * nebula, twinkling CSS stars, a crescent moon, thin gold celestial line art and gold foil text.
 * Cormorant Garamond + Pinyon Script + Cinzel + Jost (+ DM Mono for card numbers).
 * Colors come from the variant (--inv-primary, --inv-accent, --inv-background, --inv-text,
 * --inv-sky, --inv-nebula, --inv-surface, --inv-deep, --inv-label, --inv-ink, --inv-star).
 * All template classes start with "gc-".
 */

:root {
    --inv-primary: #d4af5f;
    --inv-accent: #f7e3a6;
    --inv-background: #0a1030;
    --inv-text: #f3eee2;
    --inv-sky: #3b2468;
    --inv-nebula: #6a4bb0;
    --inv-surface: #16204f;
    --inv-deep: #8f6b26;
    --inv-label: #e3c47e;
    --inv-ink: #1a1408;
    --inv-star: #fff6dc;
    --inv-radius: 14px;

    --gc-col: 460px;
    --gc-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --gc-script: 'Pinyon Script', 'Cormorant Garamond', cursive;
    --gc-caps: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    --gc-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gc-mono: 'DM Mono', ui-monospace, Menlo, Consolas, monospace;

    --gc-foil: linear-gradient(105deg, var(--inv-deep) 0%, var(--inv-primary) 24%, var(--inv-accent) 42%, var(--inv-primary) 58%, var(--inv-deep) 80%, var(--inv-primary) 100%);
    --gc-line: color-mix(in srgb, var(--inv-primary) 60%, transparent);
    --gc-line-soft: color-mix(in srgb, var(--inv-primary) 28%, transparent);
    --gc-muted: color-mix(in srgb, var(--inv-text) 82%, var(--inv-background));
    --gc-glass: color-mix(in srgb, var(--inv-surface) 62%, transparent);

    /* stars: two tiles of tiny dots, the second twinkles */
    --gc-stars-a:
        radial-gradient(1.2px 1.2px at 18px 26px, var(--inv-star), transparent),
        radial-gradient(1px 1px at 92px 64px, var(--inv-star), transparent),
        radial-gradient(1.4px 1.4px at 160px 18px, var(--inv-star), transparent),
        radial-gradient(1px 1px at 200px 140px, var(--inv-star), transparent),
        radial-gradient(1.1px 1.1px at 54px 170px, var(--inv-star), transparent),
        radial-gradient(.9px .9px at 130px 196px, var(--inv-star), transparent),
        radial-gradient(1px 1px at 120px 110px, color-mix(in srgb, var(--inv-star) 70%, transparent), transparent);
    --gc-stars-b:
        radial-gradient(1.6px 1.6px at 40px 90px, var(--inv-star), transparent),
        radial-gradient(1.2px 1.2px at 250px 40px, var(--inv-star), transparent),
        radial-gradient(1.8px 1.8px at 180px 250px, var(--inv-star), transparent),
        radial-gradient(1.1px 1.1px at 290px 190px, var(--inv-star), transparent),
        radial-gradient(1.3px 1.3px at 110px 290px, var(--inv-star), transparent);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--inv-background); }

body.gc-body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font: 400 1.12rem/1.65 var(--gc-serif);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.gc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- the night sky ---------- */
.gc-sky {
    background:
        radial-gradient(ellipse 70% 38% at 85% 18%, color-mix(in srgb, var(--inv-nebula) 34%, transparent), transparent 70%),
        radial-gradient(ellipse 80% 40% at 10% 62%, color-mix(in srgb, var(--inv-nebula) 22%, transparent), transparent 70%),
        radial-gradient(ellipse 60% 30% at 70% 92%, color-mix(in srgb, var(--inv-sky) 70%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-background) 0%, color-mix(in srgb, var(--inv-background) 60%, var(--inv-sky)) 55%, var(--inv-sky) 100%);
    background-color: var(--inv-background);
}
.gc-stars { position: absolute; inset: 0; pointer-events: none; }
.gc-stars--a { background-image: var(--gc-stars-a); background-size: 220px 220px; opacity: .85; }
.gc-stars--b { background-image: var(--gc-stars-b); background-size: 320px 320px; background-position: 60px 30px; }
@keyframes gc-twinkle-layer { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
html.inv-anim .gc-stars--b { animation: gc-twinkle-layer 4.5s ease-in-out infinite; }

/* a few bright four-point stars */
.gc-sparkles { position: absolute; inset: 0; pointer-events: none; }
.gc-sparkle { position: absolute; width: 12px; height: 12px; color: var(--inv-star); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--inv-accent) 80%, transparent)); will-change: transform, opacity; }
.gc-sparkle--1 { top: 9%; left: 12%; width: 14px; height: 14px; }
.gc-sparkle--2 { top: 16%; right: 14%; width: 9px; height: 9px; animation-delay: -1.2s !important; }
.gc-sparkle--3 { top: 38%; left: 6%; width: 8px; height: 8px; animation-delay: -2.1s !important; }
.gc-sparkle--4 { top: 47%; right: 8%; width: 13px; height: 13px; animation-delay: -.6s !important; }
.gc-sparkle--5 { top: 66%; left: 16%; width: 10px; height: 10px; animation-delay: -2.8s !important; }
.gc-sparkle--6 { top: 78%; right: 18%; width: 8px; height: 8px; animation-delay: -1.7s !important; }
.gc-sparkle--7 { top: 90%; left: 44%; width: 11px; height: 11px; animation-delay: -3.3s !important; }
@keyframes gc-twinkle { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .45; } 50% { transform: scale(1) rotate(20deg); opacity: 1; } }
html.inv-anim .gc-sparkle { animation: gc-twinkle 3.6s ease-in-out infinite; }

/* wide screens: the same sky, dimmed, around the column */
.gc-backdrop { position: fixed; inset: 0; z-index: 0; }
.gc-backdrop::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / .38); }
.gc-colsky {
    position: fixed; top: 0; bottom: 0; left: 50%; z-index: 0; transform: translateX(-50%);
    width: min(100%, var(--gc-col)); overflow: hidden;
}

.gc-page {
    position: relative; z-index: 1;
    width: 100%; max-width: var(--gc-col); min-height: 100vh; margin: 0 auto;
    overflow-x: clip;
}
@media (min-width: 520px) {
    .gc-colsky { box-shadow: 0 0 0 1px var(--gc-line-soft), 0 40px 120px rgb(0 0 0 / .6); }
}

.gc-preview {
    position: fixed; top: 0; left: 50%; z-index: 60; transform: translateX(-50%);
    width: max-content; max-width: calc(100vw - 2rem); padding: .4rem 1rem;
    border-radius: 0 0 10px 10px; background: var(--inv-primary); color: var(--inv-ink);
    font: 500 .72rem/1.3 var(--gc-sans); text-align: center;
}

/* ---------- gold foil text ---------- */
.gc-foil-text {
    display: inline-block;
    padding: .16em .38em; margin: -.16em -.38em;   /* room for script swashes inside the painted area */
    background: var(--gc-foil); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--inv-primary) 25%, transparent));
}
@keyframes gc-shine { from { background-position: 0% 0; } to { background-position: 100% 0; } }
html.inv-anim .gc-foil-text { animation: gc-shine 8s ease-in-out infinite alternate; }

/* ---------- ornaments ---------- */
.gc-corners { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gc-corner { position: absolute; width: 78px; height: 78px; overflow: visible; will-change: transform; }
.gc-corner--tl { top: 10px; left: 10px; transform-origin: 0 0; }
.gc-corner--tr { top: 10px; right: 10px; transform-origin: 100% 0; animation-delay: -2s !important; }
.gc-corner--bl { bottom: 10px; left: 10px; transform-origin: 0 100%; animation-delay: -4s !important; }
.gc-corner--br { bottom: 10px; right: 10px; transform-origin: 100% 100%; animation-delay: -6s !important; }
@keyframes gc-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.gc-corner { animation: gc-sway 8s ease-in-out infinite; }

.gc-divider { display: block; width: 12rem; height: auto; aspect-ratio: 220 / 28; margin: 0 auto; }

.gc-label {
    font: 500 .68rem/1.4 var(--gc-caps); letter-spacing: .32em; text-transform: uppercase;
    color: var(--inv-label); padding-left: .32em;
}

/* the initials joined by a constellation */
.gc-const { display: flex; align-items: center; justify-content: center; gap: 0; color: var(--inv-star); }
.gc-const__star {
    position: relative; display: grid; place-items: center; flex: none;
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    border: 1px solid var(--gc-line);
    background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--inv-surface) 90%, transparent), color-mix(in srgb, var(--inv-background) 90%, transparent));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-background) 50%, transparent), 0 0 0 4px var(--gc-line-soft), 0 0 18px color-mix(in srgb, var(--inv-primary) 35%, transparent);
    font: 500 1.05rem/1 var(--gc-caps); color: var(--inv-label);
}
.gc-const__link { flex: none; width: 4.6rem; height: 1.85rem; margin: 0 .3rem; overflow: visible; }

/* ---------- cover ---------- */
.gc-cover {
    position: fixed; inset: 0; z-index: 41;   /* above the music button: it only matters once the invitation is open */
    width: min(100%, var(--gc-col)); margin-inline: auto;
    overflow: hidden; color: var(--inv-text);
}
.gc-cover__frame { position: absolute; inset: 14px; border: 1px solid var(--gc-line-soft); border-radius: 999px 999px 18px 18px / 160px 160px 18px 18px; pointer-events: none; }
.gc-cover__frame::before { content: ''; position: absolute; inset: 5px; border: 1px solid color-mix(in srgb, var(--inv-primary) 14%, transparent); border-radius: inherit; }
.gc-cover .gc-corner--tl, .gc-cover .gc-corner--tr { display: none; }
.gc-cover .gc-corner { width: 84px; height: 84px; }
.gc-cover .gc-corner--bl { bottom: 6px; left: 6px; }
.gc-cover .gc-corner--br { bottom: 6px; right: 6px; }

/* a shooting star now and then */
.gc-shooting {
    position: absolute; top: 12%; left: 70%; width: 120px; height: 1.5px; opacity: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--inv-star), transparent);
    border-radius: 2px; transform: rotate(-28deg);
}
@keyframes gc-shoot {
    0%, 82% { opacity: 0; transform: rotate(-28deg) translateX(0); }
    85% { opacity: 1; }
    100% { opacity: 0; transform: rotate(-28deg) translateX(-320px); }
}
html.inv-anim .gc-shooting { animation: gc-shoot 7s ease-in 2s infinite; }

.gc-cover__inner {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: clamp(2.2rem, 6vh, 3.4rem) 1.8rem clamp(1.8rem, 4.5vh, 2.8rem);
    text-align: center;
}
.gc-cover__top, .gc-cover__middle, .gc-cover__bottom { width: 100%; }
.gc-cover__sun { display: block; width: 3.6rem; height: 3.6rem; margin: 0 auto .7rem; }
@keyframes gc-spin { to { transform: rotate(360deg); } }
html.inv-anim .gc-cover__sun use, html.inv-anim .gc-hero__sun use { transform-origin: 60px 60px; transform-box: view-box; }
.gc-cover__kicker { letter-spacing: .4em; padding-left: .4em; }

/* photo as a full moon in a tilted gold orbit, a crescent on its shoulder */
.gc-orbit { position: relative; width: clamp(7.6rem, 22vh, 10.5rem); aspect-ratio: 1; margin: 0 auto; }
.gc-orbit__photo {
    position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%;
    border-radius: 50%; object-fit: cover;
    border: 1.5px solid var(--inv-primary);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--inv-background) 55%, transparent), 0 0 0 6px var(--gc-line-soft), 0 0 40px color-mix(in srgb, var(--inv-accent) 30%, transparent);
}
.gc-orbit__photo--empty {
    background: radial-gradient(circle at 38% 34%, var(--inv-accent), var(--inv-primary) 45%, var(--inv-deep) 100%);
    opacity: .85;
}
.gc-orbit__ring {
    position: absolute; top: 50%; left: 50%; z-index: 0; width: 150%; height: 150%;
    margin: -75% 0 0 -75%; border-radius: 50%;
    border: 1px solid var(--gc-line);
    transform: rotate(-20deg) scaleY(.3);
}
.gc-orbit__ring i {
    position: absolute; inset: -1px; border-radius: 50%;
}
.gc-orbit__ring i::before {
    content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
    border-radius: 50%; background: var(--inv-accent); box-shadow: 0 0 10px var(--inv-accent);
}
html.inv-anim .gc-orbit__ring i { animation: gc-spin 14s linear infinite; }
.gc-orbit__moon { position: absolute; z-index: 2; top: -14%; right: -18%; width: 44%; height: 44%; overflow: visible; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--inv-accent) 45%, transparent)); }

.gc-const--cover { margin-top: 1.5rem; --enter-delay: .5s; }

.gc-cover__names {
    display: flex; flex-direction: column; align-items: center;
    margin-top: .6rem;
    font: 400 clamp(2.4rem, 6.6vh, 3.4rem)/1.15 var(--gc-script);
}
.gc-cover__amp { margin: -.25rem 0; font: italic 400 1.5rem/1 var(--gc-serif); color: var(--inv-label); }
.gc-cover__date {
    display: flex; align-items: center; justify-content: center; gap: .8rem;
    margin-top: .7rem; font: 500 .74rem/1.4 var(--gc-caps); letter-spacing: .18em; text-transform: uppercase; color: var(--inv-text);
}
.gc-cover__rule { flex: 0 0 1.6rem; height: 1px; background: var(--gc-foil); }
.gc-cover__quote { max-width: 19rem; margin: .6rem auto 0; font-style: italic; font-size: 1.02rem; line-height: 1.45; color: var(--gc-muted); }

.gc-guest {
    position: relative; max-width: 17.5rem; margin: 0 auto;
    padding: .75rem 1.2rem .8rem; border-radius: 14px;
    border: 1px solid var(--gc-line);
    background: color-mix(in srgb, var(--inv-background) 55%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gc-guest::before {
    content: ''; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%);
    background: var(--inv-accent);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.gc-guest__label { font: 500 .62rem/1.4 var(--gc-caps); letter-spacing: .3em; text-transform: uppercase; color: var(--inv-label); }
.gc-guest__name { display: block; margin-top: .15rem; font: 600 1.3rem/1.3 var(--gc-serif); color: var(--inv-text); overflow-wrap: anywhere; }

.gc-open { margin-top: 1rem; }

.gc-cover--leave { transition: opacity 1s ease, transform 1.1s cubic-bezier(.7, 0, .3, 1); }
.gc-cover--gone { opacity: 0; transform: translateY(-5%); }

@media (max-height: 720px) {
    .gc-cover__sun { width: 2.6rem; height: 2.6rem; margin-bottom: .4rem; }
    .gc-cover__quote { display: none; }
    .gc-const--cover { margin-top: 1.1rem; }
    .gc-const--cover .gc-const__star { width: 2.2rem; height: 2.2rem; font-size: .9rem; }
}
@media (max-height: 600px) {
    .gc-cover__sun { display: none; }
    .gc-const--cover { display: none; }
}

/* ---------- buttons ---------- */
.inv-button {
    padding: .85rem 1.45rem; border-radius: 999px;
    background: var(--gc-foil); background-size: 200% 100%; background-position: 20% 0;
    color: var(--inv-ink);
    font: 600 .72rem/1.2 var(--gc-sans); letter-spacing: .16em; text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 0 22px -6px color-mix(in srgb, var(--inv-accent) 55%, transparent);
    transition: background-position .6s ease, transform .2s ease;
}
.inv-button:hover { background-position: 80% 0; }
.inv-button svg { flex: none; }
.inv-button--outline {
    background: color-mix(in srgb, var(--inv-background) 45%, transparent); color: var(--inv-label);
    box-shadow: inset 0 0 0 1px var(--gc-line);
}
.inv-button--outline:hover { background: color-mix(in srgb, var(--inv-primary) 14%, transparent); }

/* ---------- hero (top of the page) ---------- */
.gc-hero { position: relative; padding: 3.6rem 1.5rem 3rem; text-align: center; }
.gc-hero__sun { position: absolute; top: 1.2rem; left: 50%; width: 15rem; height: 15rem; margin-left: -7.5rem; opacity: .35; pointer-events: none; }
.gc-arch { position: relative; width: 13.5rem; aspect-ratio: 200 / 270; margin: 0 auto 1.6rem; }
.gc-arch__photo {
    position: absolute; inset: 7px; border-radius: 50% 50% 6px 6px / 37% 37% 6px 6px;
    background:
        linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--inv-background) 55%, transparent)),
        var(--gc-photo, none) center / cover no-repeat,
        radial-gradient(circle at 50% 40%, var(--inv-surface), var(--inv-background));
    display: grid; place-items: center; overflow: hidden;
}
.gc-arch__moon { width: 50%; height: auto; }
.gc-arch__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gc-arch__crescent { position: absolute; top: -6%; right: -14%; width: 34%; height: auto; aspect-ratio: 1; overflow: visible; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--inv-accent) 45%, transparent)); }
.gc-hero__names {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 .5rem;
    margin-top: .3rem; font: 400 3rem/1.3 var(--gc-script);
}
.gc-hero__amp { font: italic 400 1.5rem/1 var(--gc-serif); color: var(--inv-label); }
.gc-hero__date { margin-top: .2rem; font: 500 .78rem/1.5 var(--gc-caps); letter-spacing: .16em; text-transform: uppercase; }
.gc-hero__tag { margin-top: .7rem; font-style: italic; font-size: 1rem; color: var(--gc-muted); }

/* ---------- sections ---------- */
.gc-main { position: relative; }
.gc-section { position: relative; padding: 4.2rem 1.5rem 4rem; text-align: center; }
.gc-section + .gc-section::before {
    content: ''; position: absolute; top: 0; left: 50%; width: 60%; height: 1px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gc-line-soft), transparent);
}
.gc-section > * { position: relative; }
.gc-section > .gc-corners { position: absolute; }

.gc-head { margin-bottom: 2rem; }
.gc-head__title { margin: .25rem 0 .5rem; font: 400 2.75rem/1.25 var(--gc-script); text-wrap: balance; }

.gc-text { max-width: 24rem; margin: 0 auto 1rem; color: var(--gc-muted); font-size: 1.12rem; line-height: 1.7; }

/* starlit glass card (quote, events, forms, streaming) */
.gc-glass {
    position: relative; max-width: 24rem; margin: 0 auto; padding: 1.6rem 1.3rem;
    border: 1px solid var(--gc-line-soft); border-radius: 20px;
    background:
        radial-gradient(1px 1px at 12% 18%, var(--inv-star), transparent),
        radial-gradient(1px 1px at 86% 12%, var(--inv-star), transparent),
        radial-gradient(1.2px 1.2px at 92% 78%, var(--inv-star), transparent),
        radial-gradient(1px 1px at 8% 88%, var(--inv-star), transparent),
        linear-gradient(160deg, color-mix(in srgb, var(--inv-surface) 78%, transparent), color-mix(in srgb, var(--inv-background) 70%, transparent));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 24px 50px -28px rgb(0 0 0 / .8);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    text-align: left;
}

/* opening */
.gc-opening { padding-top: 4.4rem; }
.gc-opening__moon { display: block; width: 4.2rem; height: 4.2rem; margin: 0 auto 1.2rem; overflow: visible; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--inv-accent) 40%, transparent)); }
.gc-arabic { margin: 0 0 1rem; font: 400 1.65rem/2 'Amiri', serif; color: var(--inv-label); }
.gc-opening__greeting { margin-bottom: 1rem; font: italic 500 1.25rem/1.5 var(--gc-serif); color: var(--inv-text); }
.gc-quote { margin-top: 2.4rem; padding: 2rem 1.5rem 1.5rem; text-align: center; }
.gc-quote__star { position: absolute; top: 0; left: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); color: var(--inv-accent); filter: drop-shadow(0 0 6px var(--inv-accent)); }
.gc-quote blockquote { margin: 0; font-style: italic; font-size: 1.12rem; line-height: 1.65; color: var(--inv-text); }
.gc-quote figcaption { margin-top: .9rem; font: 500 .66rem/1.4 var(--gc-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--inv-label); }

/* couple: round planets in a tilted orbit */
.gc-person { max-width: 22rem; margin: 0 auto; }
.gc-planet { position: relative; width: 11rem; aspect-ratio: 1; margin: 0 auto 1.5rem; }
.gc-planet__photo {
    position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%;
    border-radius: 50%; object-fit: cover; border: 1.5px solid var(--inv-primary);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--inv-background) 55%, transparent), 0 0 0 7px var(--gc-line-soft), 0 18px 40px -16px rgb(0 0 0 / .8), 0 0 36px -6px color-mix(in srgb, var(--inv-nebula) 70%, transparent);
}
.gc-planet__photo--empty { display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, var(--inv-surface), var(--inv-background)); font: 500 3rem/1 var(--gc-caps); color: var(--inv-primary); }
.gc-planet__orbit {
    position: absolute; top: 50%; left: 50%; z-index: 0; width: 145%; height: 145%; margin: -72.5% 0 0 -72.5%;
    border-radius: 50%; border: 1px dashed var(--gc-line-soft); transform: rotate(18deg) scaleY(.32);
}
.gc-planet__orbit i { position: absolute; inset: -1px; border-radius: 50%; }
.gc-planet__orbit i::before {
    content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
    border-radius: 50%; background: var(--inv-star); box-shadow: 0 0 8px var(--inv-accent);
}
html.inv-anim .gc-planet__orbit i { animation: gc-spin 18s linear infinite; }
.gc-person:nth-of-type(odd) .gc-planet__orbit { transform: rotate(-18deg) scaleY(.32); }
.gc-person__nick { margin: .15rem 0 .1rem; font: 400 3rem/1.3 var(--gc-script); }
.gc-person__name { font: 600 1.18rem/1.4 var(--gc-serif); letter-spacing: .02em; color: var(--inv-text); }
.gc-person__parents { margin-top: .6rem; font-size: 1.06rem; line-height: 1.5; color: var(--gc-muted); }
.gc-person__parents strong { font-weight: 600; color: var(--inv-text); }
.gc-ig { margin-top: 1rem; padding: .55rem 1.05rem; font-size: .7rem; letter-spacing: .06em; text-transform: none; }
.gc-amp { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 2.4rem 0 2.2rem; color: var(--inv-star); }
.gc-amp__line { width: 5rem; height: 1.7rem; overflow: visible; }
.gc-amp__line--r { transform: scaleX(-1); }
.gc-amp b { font: 400 3.4rem/1 var(--gc-script); }

/* countdown: moon phases from crescent to full */
.gc-countdown__date { margin: -.4rem 0 1.6rem; font: 500 .78rem/1.5 var(--gc-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--inv-label); }
.inv-countdown { gap: .5rem; }
.inv-countdown__item {
    --lit: var(--inv-accent);
    --dark: color-mix(in srgb, var(--inv-text) 14%, var(--inv-background));
    position: relative; flex: 1 1 0; min-width: 0; max-width: 5rem; padding: .85rem .2rem 1rem;
    border-radius: 999px; border: 1px solid var(--gc-line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-surface) 85%, transparent), color-mix(in srgb, var(--inv-background) 80%, transparent));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 14px 28px -18px rgb(0 0 0 / .8);
}
.inv-countdown__item::before {
    content: ''; display: block; width: 1.75rem; height: 1.75rem; margin: 0 auto .55rem; border-radius: 50%;
    background: var(--dark); box-shadow: inset -.42rem 0 0 0 var(--lit), 0 0 10px -2px color-mix(in srgb, var(--lit) 45%, transparent);
}
.inv-countdown__item:nth-child(2)::before { background: linear-gradient(90deg, var(--dark) 50%, var(--lit) 50%); box-shadow: 0 0 12px -2px color-mix(in srgb, var(--lit) 55%, transparent); }
.inv-countdown__item:nth-child(3)::before { background: var(--lit); box-shadow: inset .5rem 0 0 0 var(--dark), 0 0 14px -2px color-mix(in srgb, var(--lit) 65%, transparent); }
.inv-countdown__item:nth-child(4)::before { background: radial-gradient(circle at 38% 36%, #fff, var(--lit) 55%, var(--inv-primary)); box-shadow: 0 0 18px color-mix(in srgb, var(--lit) 75%, transparent); }
.inv-countdown__value {
    font: 500 1.75rem/1.1 var(--gc-serif);
    background: var(--gc-foil); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.inv-countdown__label { margin-top: .25rem; font: 500 .58rem/1.2 var(--gc-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--gc-muted); opacity: 1; }
.inv-countdown__done { font-style: italic; color: var(--gc-muted); }
.inv-countdown__actions { margin-top: 1.6rem; gap: .6rem; }
.inv-countdown__actions .inv-button { padding: .68rem 1rem; font-size: .62rem; letter-spacing: .1em; }

/* events (pattern W): rounded cards with a gold header band over a faint veiled photo of the couple */
.gc-events { isolation: isolate; }
/* the photo layer fades out at the top and bottom so the night sky continues around it */
.gc-events::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(color-mix(in srgb, var(--inv-background) 72%, transparent), color-mix(in srgb, var(--inv-background) 72%, transparent)),
        var(--gc-photo, none) center 30% / cover no-repeat;
    -webkit-mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
    mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.gc-collage { position: relative; height: 10.5rem; max-width: 22rem; margin: -.6rem auto 2.2rem; }
.gc-collage__band {
    position: absolute; left: -1.5rem; right: -1.5rem; top: 2.2rem; height: 6rem;
    border-radius: 3rem; border: 1px solid var(--gc-line-soft);
    background: linear-gradient(100deg, color-mix(in srgb, var(--inv-nebula) 45%, transparent), color-mix(in srgb, var(--inv-sky) 55%, transparent));
}
.gc-collage__photo {
    position: absolute; width: 58%; height: 7.8rem; object-fit: cover; object-position: center 30%;
    border: 2px solid color-mix(in srgb, var(--inv-primary) 70%, transparent);
    box-shadow: 0 16px 30px -16px rgb(0 0 0 / .85);
}
.gc-collage__photo--a { left: 0; bottom: 0; border-radius: 1.6rem 0 2.6rem 0; rotate: -3deg; }
.gc-collage__photo--b { right: 0; top: 0; border-radius: 0 2.6rem 0 1.6rem; rotate: 3deg; }
.gc-collage__star { position: absolute; left: 50%; top: 42%; width: 1.6rem; height: 1.6rem; translate: -50% -50%; color: var(--inv-star); filter: drop-shadow(0 0 6px var(--inv-accent)); }

.gc-events__list { display: grid; gap: 2rem; }
.gc-wcard {
    position: relative; max-width: 24rem; margin: 0 auto; padding-bottom: 1.6rem; text-align: center;
    border: 1px solid var(--gc-line-soft); border-radius: 2.2rem;
    background:
        radial-gradient(1px 1px at 12% 58%, var(--inv-star), transparent),
        radial-gradient(1.2px 1.2px at 90% 72%, var(--inv-star), transparent),
        radial-gradient(1px 1px at 16% 92%, var(--inv-star), transparent),
        linear-gradient(170deg, color-mix(in srgb, var(--inv-surface) 92%, transparent), color-mix(in srgb, var(--inv-background) 90%, transparent));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 26px 50px -26px rgb(0 0 0 / .9);
}
.gc-wcard__band {
    padding: 1.15rem 1rem 2.6rem; border-radius: 2.2rem 2.2rem 1.4rem 1.4rem;
    background: var(--gc-foil); background-size: 160% 100%; color: var(--inv-ink);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .4);
}
.gc-wcard__kicker { font: 600 .66rem/1.2 var(--gc-caps); letter-spacing: .3em; text-transform: uppercase; opacity: .78; }
.gc-wcard__name { margin-top: .15rem; font: 400 2.45rem/1.15 var(--gc-script); overflow-wrap: anywhere; color: var(--inv-ink); }
.gc-wcard__medal {
    display: grid; place-items: center; width: 4.6rem; height: 4.6rem; margin: -2.3rem auto .9rem; overflow: hidden;
    border-radius: 50%; border: 2px solid var(--inv-primary);
    background: radial-gradient(circle at 40% 35%, var(--inv-surface), var(--inv-background));
    box-shadow: 0 0 0 4px var(--inv-surface), 0 0 22px -4px color-mix(in srgb, var(--inv-accent) 60%, transparent);
}
.gc-wcard__medal img { width: 100%; height: 100%; object-fit: cover; }
.gc-wcard__medal svg { width: 2.4rem; height: 2.4rem; overflow: visible; }
.gc-wcard__body { display: grid; justify-items: center; gap: .55rem; padding: 0 1.3rem; }
.gc-wcard__body svg {
    width: 1rem; height: 1rem; flex: none;
    fill: none; stroke: var(--inv-primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.gc-wcard__time { display: inline-flex; align-items: center; gap: .45rem; font: 600 1.06rem/1.3 var(--gc-caps); letter-spacing: .06em; color: var(--inv-accent); }
.gc-wcard__time svg { stroke: var(--inv-accent); }
.gc-wcard__date { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.08rem; line-height: 1.4; color: var(--inv-text); }
.gc-wcard__place {
    display: grid; justify-items: center; gap: .15rem; width: 100%; margin-top: .35rem; padding: .85rem .9rem;
    border: 1px dashed var(--gc-line); border-radius: 1.2rem; background: color-mix(in srgb, var(--inv-background) 40%, transparent);
}
.gc-wcard__place svg { width: 1.15rem; height: 1.15rem; margin-bottom: .1rem; }
.gc-wcard__venue { font: 600 1.14rem/1.35 var(--gc-serif); color: var(--inv-label); overflow-wrap: anywhere; }
.gc-wcard__address { font-size: 1rem; line-height: 1.45; color: var(--gc-muted); overflow-wrap: anywhere; }
.gc-wcard__dress {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem; border-radius: 999px;
    border: 1px solid var(--gc-line-soft); font-size: .95rem; color: var(--inv-text); overflow-wrap: anywhere;
}
.gc-wcard .inv-maps { margin-top: .5rem; text-align: center; }
.gc-wcard .inv-maps .inv-button { padding: .66rem 1.2rem; font-size: .64rem; }

/* love story: zig-zag constellation path */
.gc-zz { position: relative; max-width: 26rem; margin: 0 auto; padding: .4rem 0; list-style: none; }
.gc-zz::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; transform: translateX(-50%);
    background: radial-gradient(circle, var(--inv-star) 1px, transparent 1.6px) center top / 6px 10px repeat-y;
    -webkit-mask: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
    mask: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
    opacity: .7;
}
.gc-zz__item {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 2.1rem minmax(0, 1fr);
    align-items: start; column-gap: .6rem; padding-bottom: 2rem;
}
.gc-zz__item:last-child { padding-bottom: 0; }
.gc-zz__main { grid-column: 1; grid-row: 1; text-align: right; }
.gc-zz__node { grid-column: 2; grid-row: 1; justify-self: center; }
.gc-zz__side { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left; }
.gc-zz__item--flip .gc-zz__main { grid-column: 3; text-align: left; }
.gc-zz__item--flip .gc-zz__side { grid-column: 1; align-items: flex-end; text-align: right; }
/* the number sits in a small gold circle on the line, a twinkling star on its shoulder */
.gc-zz__node {
    position: relative; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    border: 1px solid var(--inv-primary); background: var(--inv-background); color: var(--inv-star);
    box-shadow: 0 0 14px -3px color-mix(in srgb, var(--inv-accent) 60%, transparent);
}
.gc-zz__num { font: 600 .68rem/1 var(--gc-caps); letter-spacing: .04em; color: var(--inv-accent); }
.gc-zz__node svg { position: absolute; top: -.45rem; right: -.5rem; width: .95rem; height: .95rem; filter: drop-shadow(0 0 4px var(--inv-accent)); }
html.inv-anim .gc-zz__node svg { animation: gc-twinkle 3.6s ease-in-out infinite; }
.gc-zz__rule { display: block; width: 70%; height: 0; margin: .45rem 0 .6rem auto; border-top: 2px dotted var(--gc-line); }
.gc-zz__item--flip .gc-zz__rule { margin-left: 0; margin-right: auto; }
.gc-zz__emblem { display: grid; place-items: center; width: 3rem; height: 3rem; }
.gc-zz__emblem svg { width: 100%; height: 100%; overflow: visible; }
.gc-zz__photo {
    width: min(5.4rem, 100%); margin: .2rem 0 0; padding: 2px; border-radius: 50%;
    background: var(--gc-foil);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-background) 60%, transparent), 0 0 0 5px var(--gc-line-soft), 0 0 22px -4px color-mix(in srgb, var(--inv-nebula) 80%, transparent);
}
.gc-zz__photo img { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.gc-moment__title { font: 600 1.18rem/1.3 var(--gc-serif); color: var(--inv-text); overflow-wrap: anywhere; }
.gc-moment__story { font-size: .98rem; line-height: 1.42; color: var(--gc-muted); overflow-wrap: anywhere; }
.gc-moment__date { font: italic 500 1.4rem/1.25 var(--gc-serif); overflow-wrap: anywhere; }

/* gallery */
.inv-gallery { gap: 6px; }
.inv-gallery__item { border-radius: 10px; background: var(--inv-surface); }
.inv-gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.inv-gallery__item::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px var(--gc-line-soft);
}

/* live streaming */
.gc-live__card { text-align: center; }
.gc-live__badge { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; font: 500 .66rem/1.4 var(--gc-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-label); }
.gc-live__badge span { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
@keyframes gc-live { 0% { box-shadow: 0 0 0 0 rgb(229 72 77 / .6); } 70%, 100% { box-shadow: 0 0 0 8px rgb(229 72 77 / 0); } }
html.inv-anim .gc-live__badge span { animation: gc-live 2s ease-out infinite; }
.gc-live__note { margin: -.3rem 0 1.2rem; font-style: italic; color: var(--inv-text); }

/* forms */
.inv-form { gap: .9rem; }
.inv-form label, .inv-form__choices legend { font: 500 .78rem/1.4 var(--gc-sans); letter-spacing: .03em; color: var(--gc-muted); }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form select, .inv-form textarea {
    padding: .72rem .9rem; border: 1px solid var(--gc-line-soft); border-radius: 12px;
    background: color-mix(in srgb, var(--inv-background) 75%, transparent); color: var(--inv-text);
    font: 400 1.05rem/1.4 var(--gc-serif);
    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) 22%, transparent);
}
.inv-form select option { background: var(--inv-surface); color: var(--inv-text); }
.inv-form__choices { gap: .5rem .9rem; }
.inv-form__choices label { color: var(--inv-text); font-size: .86rem; }
.inv-form input[type=radio], .inv-form input[type=checkbox] { accent-color: var(--inv-primary); }
.inv-form > .inv-button { width: 100%; margin-top: .3rem; }
.inv-form__notice { border-left: 2px solid var(--inv-primary); background: color-mix(in srgb, var(--inv-primary) 12%, transparent); color: var(--inv-text); font-family: var(--gc-sans); font-size: .82rem; }
.inv-rsvp__deadline { margin-bottom: 1rem; font: 500 .78rem/1.5 var(--gc-sans); color: var(--inv-label); text-align: center; }

/* wishes: compact cards in a scroll box of about three */
.inv-wishes { --inv-wishes-height: 20rem; }
.inv-wishes__list { margin-top: 1.4rem; }
.inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .5rem .45rem .5rem .5rem; border-radius: 14px;
    border: 1px solid var(--gc-line-soft);
    background: color-mix(in srgb, var(--inv-background) 45%, transparent);
    scrollbar-color: var(--gc-line) transparent;
}
.inv-wishes__empty { font-style: italic; color: var(--gc-muted); opacity: 1; text-align: center; }
.inv-wish {
    position: relative; padding: .65rem .8rem .65rem 1.9rem; border-radius: 12px;
    border: 1px solid var(--gc-line-soft);
    background: color-mix(in srgb, var(--inv-surface) 70%, transparent);
}
.inv-wish::before {
    content: ''; position: absolute; left: .7rem; top: .9rem; width: 10px; height: 10px; background: var(--inv-accent);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.inv-wish__name { font: 600 1rem/1.35 var(--gc-serif); color: var(--inv-label); }
.inv-wish__message { font-size: 1rem; line-height: 1.45; color: var(--inv-text); }
.inv-wish__time { font: 400 .68rem/1.4 var(--gc-sans); color: var(--gc-muted); opacity: .9; }
.inv-wish__reply { border-left-color: var(--inv-accent); background: color-mix(in srgb, var(--inv-primary) 10%, transparent); }
.inv-wish__reply-label { font-family: var(--gc-sans); color: var(--inv-label); opacity: 1; }
.inv-wishes__page-button { color: var(--inv-label); }

/* gift: night-sky bank cards, two per row (an odd last one spans the row) */
.inv-gift { display: grid; gap: .9rem; max-width: 24rem; margin: 1.6rem auto 0; text-align: left; }
.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 + .inv-gift__account { margin-top: 0; }
.inv-gift__account {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
    min-width: 0; padding: .8rem .8rem .75rem;
    border: 1px solid var(--gc-line); border-radius: 16px;
    background:
        radial-gradient(1px 1px at 70% 20%, var(--inv-star), transparent),
        radial-gradient(1.2px 1.2px at 88% 58%, var(--inv-star), transparent),
        radial-gradient(1px 1px at 40% 88%, var(--inv-star), transparent),
        radial-gradient(.9px .9px at 58% 42%, var(--inv-star), transparent),
        radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--inv-nebula) 45%, transparent), transparent 70%),
        linear-gradient(150deg, var(--inv-surface), var(--inv-background) 55%, var(--inv-sky));
    box-shadow: 0 18px 32px -20px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .1);
    color: var(--inv-text);
}
/* the chip */
.inv-gift__account::before {
    content: ''; order: 1; width: 2.3rem; height: 1.7rem; margin: .6rem 0 .1rem; border-radius: 5px;
    background:
        linear-gradient(90deg, transparent 31%, rgb(0 0 0 / .3) 31% 34%, transparent 34% 66%, rgb(0 0 0 / .3) 66% 69%, transparent 69%),
        linear-gradient(0deg, transparent 46%, rgb(0 0 0 / .3) 46% 54%, transparent 54%),
        linear-gradient(135deg, var(--inv-accent), var(--inv-primary) 45%, var(--inv-deep));
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25);
}
/* a small crescent on the card */
.inv-gift__account::after {
    content: ''; position: absolute; right: .75rem; top: 2.8rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
    box-shadow: inset -5px 3px 0 0 var(--inv-accent); opacity: .85; pointer-events: none;
}
.inv-gift__bank { order: 0; display: flex; align-items: center; max-width: 100%; min-height: 1.5rem; margin: 0; font: 600 .9rem/1.3 var(--gc-serif); color: var(--inv-label); overflow-wrap: anywhere; }
.inv-gift__account .inv-gift__logo { height: 1.5rem; padding: .2rem .45rem; border-radius: .35rem; }
.inv-gift__account .inv-gift__logo img { max-width: 4.6rem; }
.inv-gift__number { order: 2; max-width: 100%; margin: .5rem 0 .15rem; font: 500 .95rem/1.3 var(--gc-mono); letter-spacing: .04em; color: var(--inv-text); overflow-wrap: anywhere; }
.inv-gift__holder { order: 3; max-width: 100%; margin: 0 0 .65rem; font: 500 .6rem/1.4 var(--gc-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gc-muted); overflow-wrap: anywhere; }
.inv-gift__account .inv-button { order: 4; margin-top: auto; padding: .4rem .75rem; font-size: .6rem; letter-spacing: .08em; }

/* the gift address: plain glass */
.inv-gift__account.inv-gift__address {
    padding: 1.3rem; border-color: var(--gc-line-soft); border-radius: 18px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--inv-surface) 80%, transparent), color-mix(in srgb, var(--inv-background) 75%, transparent));
}
.inv-gift__account.inv-gift__address::before, .inv-gift__account.inv-gift__address::after { display: none; }
.inv-gift__address .inv-gift__bank { font: 500 .66rem/1.4 var(--gc-caps); letter-spacing: .24em; text-transform: uppercase; min-height: 0; }
.inv-gift__address .inv-gift__holder { order: 1; margin: .5rem 0 .2rem; font: 600 1.1rem/1.4 var(--gc-serif); letter-spacing: 0; text-transform: none; color: var(--inv-text); }
.inv-gift__address > p:not([class]) { order: 2; margin-bottom: 1rem; color: var(--gc-muted); line-height: 1.55; }

/* closing */
.gc-closing { padding-bottom: 5rem; }
.gc-orbit--closing { width: 12rem; margin-bottom: 2.6rem; }
.gc-closing .gc-label { margin-bottom: 1rem; }
.gc-closing__sign { margin: 1.2rem 0 .2rem; font-style: italic; font-size: 1.1rem; color: var(--gc-muted); }
.gc-closing__names { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 .5rem; margin-bottom: 1.4rem; font: 400 3rem/1.35 var(--gc-script); }
.gc-closing__amp { font: italic 400 1.5rem/1 var(--gc-serif); color: var(--inv-label); }
.gc-const--closing .gc-const__star { width: 2.2rem; height: 2.2rem; font-size: .9rem; }

/* ---------- shared floating UI in the theme ---------- */
.gc-branding { position: relative; z-index: 1; font: 400 .74rem/1.5 var(--gc-sans); color: var(--gc-muted); opacity: .9; }
.gc-branding a { color: var(--inv-label); }

/* keep the floating buttons inside the column on wide screens */
.gc-body .inv-music { right: max(1rem, calc(50vw - var(--gc-col) / 2 + 1rem)); }
.gc-body .inv-to-top { left: max(1rem, calc(50vw - var(--gc-col) / 2 + 1rem)); }
.gc-body .inv-qr-tab { right: max(0px, calc(50vw - var(--gc-col) / 2)); }

.inv-music__button {
    background: var(--gc-foil); background-size: 200% 100%; color: var(--inv-ink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-background) 70%, transparent), 0 0 20px -4px color-mix(in srgb, var(--inv-accent) 70%, transparent);
}
.inv-autoscroll { font-family: var(--gc-sans); background: color-mix(in srgb, var(--inv-surface) 92%, transparent); color: var(--inv-label); border-color: var(--gc-line); }
.inv-autoscroll--running { background: var(--inv-primary); color: var(--inv-ink); }

.inv-qr-tab {
    background: color-mix(in srgb, var(--inv-surface) 94%, transparent); color: var(--inv-label);
    border-color: var(--gc-line); font-family: var(--gc-sans); font-weight: 600;
    box-shadow: -6px 8px 20px -10px rgb(0 0 0 / .7), 0 0 14px -6px color-mix(in srgb, var(--inv-accent) 60%, transparent);
}
.inv-qr-sheet__card { font-family: var(--gc-sans); border-radius: 20px; }
.inv-checkin { color: #1a1a1a; }
.inv-checkin__title { color: var(--inv-deep); }

.inv-to-top {
    border-radius: 50%; border: 1px solid var(--gc-line);
    background: color-mix(in srgb, var(--inv-surface) 94%, transparent); color: var(--inv-label);
    box-shadow: 0 6px 16px -6px rgb(0 0 0 / .7);
}

/* bottom menu: icons only, dark glass, the active icon a gold moon that rises */
.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-surface) 88%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 78%, transparent);
    --inv-nav-active: var(--inv-primary);
    border-color: var(--gc-line-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-background) 45%, transparent), 0 14px 34px -12px rgb(0 0 0 / .8);
}
.inv-nav--icons { border-radius: 1.4rem; }
.inv-nav--icons .inv-nav__item { border-radius: 50%; }
.inv-nav__item.is-active { background: var(--gc-foil); color: var(--inv-ink); }
.inv-nav--icons .inv-nav__item.is-active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-background) 80%, transparent), 0 0 18px -2px color-mix(in srgb, var(--inv-accent) 70%, transparent); }

/* the page ends above the bottom menu */
body:has(.inv-nav) .gc-page { padding-bottom: 1rem; }

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gc-corner, .gc-sparkle, .gc-stars, .gc-foil-text, .gc-shooting, .gc-orbit__ring i, .gc-planet__orbit i, .gc-zz__node svg, .gc-live__badge span { animation: none !important; will-change: auto; }
    .gc-cover--leave { transition: opacity .3s ease; }
    .gc-cover--gone { transform: none; }
}

/* the sun behind the hero turns very slowly */
html.inv-anim .gc-hero__sun { animation: gc-spin 120s linear infinite; }

/* ---------- motion (data-reveal-sections="zoom"): sections and event cards zoom in, the hero arch drifts slower
   than the page (data-parallax), the heading divider draws open and each event medallion swings in ---------- */
.gc-arch { --inv-parallax: 22px; }
@keyframes gc-draw-open { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gc-medal-in { from { transform: scale(.5) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
html.inv-anim .gc-head.is-revealed .gc-divider { animation: gc-draw-open 1.1s .35s cubic-bezier(.2, .7, .2, 1) both; }
html.inv-anim .gc-wcard.is-revealed .gc-wcard__medal { animation: gc-medal-in .9s .35s cubic-bezier(.34, 1.4, .64, 1) both; }
@media (prefers-reduced-motion: reduce) {
    html.inv-anim .gc-head.is-revealed .gc-divider, html.inv-anim .gc-wcard.is-revealed .gc-wcard__medal { animation: none; }
}

/* ---------- fit: the whole cover on one phone screen, the quote kept (two lines) on short screens ---------- */

.gc-cover__quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }

@media (max-height: 760px) {
    .gc-orbit { width: clamp(7rem, 20svh, 10.5rem); }
    .gc-const--cover { margin-top: .9rem; }
    .gc-cover__names { font-size: clamp(2.3rem, 6.2svh, 3.2rem); }
    .gc-cover__quote { display: -webkit-box; -webkit-line-clamp: 6; margin-top: .45rem; font-size: .95rem; line-height: 1.4; }
    .gc-open { margin-top: .8rem; }
}
@media (max-height: 660px) {
    .gc-cover__sun { width: 2.2rem; height: 2.2rem; margin-bottom: .3rem; }
    .gc-orbit { width: 18svh; }
    .gc-const--cover { margin-top: .7rem; }
    .gc-const--cover .gc-const__star { width: 1.9rem; height: 1.9rem; font-size: .8rem; }
    .gc-cover__names { margin-top: .4rem; font-size: 2.3rem; line-height: 1.1; }
    .gc-cover__date { margin-top: .5rem; }
    .gc-cover__quote { margin-top: .35rem; font-size: .9rem; }
    .gc-guest { padding: .6rem 1.1rem .65rem; }
    .gc-open { margin-top: .7rem; }
}

/* ---------- fit: the page ends close to the closing constellation ---------- */

.gc-closing { padding-bottom: 3rem; }
