/*
 * Timeless Champagne: bright modern luxury. Champagne light drifting slowly behind a phone-sized
 * column, frosted glass cards (backdrop-filter; an opaque card where it is not supported),
 * liquid-gold gradient text, thin gold arcs and glints as ornaments.
 * Signature forms: glass card cover, chronograph watch countdown, scroll-snap glass carousels
 * (events fanned like a stack, love story), round glass lenses for the couple, glass bank cards.
 * Colors from the variant: --inv-primary, --inv-accent, --inv-background, --inv-text, --inv-surface,
 * --inv-deep, --inv-shine, --inv-blush. All classes start with "tc-".
 */

:root {
    --inv-primary: #7d5e34;
    --inv-accent: #c7a066;
    --inv-background: #f6ede0;
    --inv-text: #45341f;
    --inv-surface: #fffaf2;
    --inv-deep: #33261a;
    --inv-shine: #f6e2b6;
    --inv-blush: #ecc9a0;
    --inv-radius: 18px;

    --tc-w: 460px;
    /* distance from the viewport edge to the column (0 on phones) */
    --tc-edge: max(0px, calc((100vw - var(--tc-w)) / 2));
    --tc-display: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
    --tc-label: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --tc-sans: 'Jost', 'Futura', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tc-mono: 'DM Mono', ui-monospace, Consolas, monospace;

    /* gold that reads on champagne: mostly dark bronze with a bright band that sweeps across */
    --tc-gold-dark: color-mix(in srgb, var(--inv-accent) 42%, var(--inv-deep));
    --tc-gold: linear-gradient(100deg, var(--tc-gold-dark) 0%, var(--tc-gold-dark) 36%, color-mix(in srgb, var(--inv-accent) 75%, var(--inv-deep)) 44%, color-mix(in srgb, var(--inv-shine) 55%, var(--inv-accent)) 50%, color-mix(in srgb, var(--inv-accent) 75%, var(--inv-deep)) 56%, var(--tc-gold-dark) 64%, var(--tc-gold-dark) 100%);
    /* gold leaf for edges, chips and bezels */
    --tc-gold-leaf: linear-gradient(125deg, var(--inv-shine), var(--inv-accent) 35%, var(--inv-shine) 55%, color-mix(in srgb, var(--inv-accent) 80%, var(--inv-deep)) 80%, var(--inv-shine));

    --tc-fg: var(--inv-text);
    --tc-muted: color-mix(in srgb, var(--inv-text) 84%, transparent);
    --tc-title: var(--inv-deep);
    --tc-line: color-mix(in srgb, var(--inv-accent) 65%, transparent);
    --tc-line-soft: color-mix(in srgb, var(--inv-accent) 30%, transparent);

    /* frosted glass */
    --tc-glass-bg: color-mix(in srgb, var(--inv-surface) 46%, transparent);
    --tc-glass-edge: rgb(255 255 255 / .72);
    --tc-glass-blur: blur(16px) saturate(1.35);
    --tc-glass-shadow: inset 0 1px 0 rgb(255 255 255 / .85), 0 22px 46px -26px color-mix(in srgb, var(--inv-deep) 55%, transparent);

    --tc-btn-bg: linear-gradient(135deg, color-mix(in srgb, var(--inv-deep) 82%, var(--inv-accent)), var(--inv-deep));
    --tc-btn-fg: var(--inv-shine);
}

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

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

body.tc-body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font: 400 1rem/1.7 var(--tc-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.tc-icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- champagne light (drifting glows) ---------- */

.tc-lights { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tc-lights--page {
    position: fixed;
    background:
        radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--inv-surface) 70%, transparent), transparent 70%),
        linear-gradient(165deg, color-mix(in srgb, var(--inv-shine) 45%, var(--inv-background)), var(--inv-background) 45%, color-mix(in srgb, var(--inv-blush) 40%, var(--inv-background)));
}
.tc-light {
    position: absolute; display: block;
    width: max(340px, 62vmax); aspect-ratio: 1; border-radius: 50%;
    will-change: transform;
    animation: tc-drift-a 28s ease-in-out infinite alternate;
}
.tc-light--a { top: -22%; left: -30%; background: radial-gradient(circle, color-mix(in srgb, var(--inv-shine) 85%, transparent) 0%, transparent 64%); }
.tc-light--b { top: 30%; right: -38%; background: radial-gradient(circle, color-mix(in srgb, var(--inv-blush) 75%, transparent) 0%, transparent 62%); animation-name: tc-drift-b; animation-duration: 34s; }
.tc-light--c { bottom: -30%; left: -20%; background: radial-gradient(circle, color-mix(in srgb, var(--inv-surface) 90%, transparent) 0%, transparent 60%); animation-name: tc-drift-c; animation-duration: 31s; }
.tc-light--d { top: 5%; right: -10%; width: max(220px, 36vmax); background: radial-gradient(circle, color-mix(in srgb, var(--inv-accent) 45%, transparent) 0%, transparent 65%); animation-name: tc-drift-b; animation-duration: 25s; animation-direction: alternate-reverse; }

@keyframes tc-drift-a { to { transform: translate(28%, 18%) scale(1.15); } }
@keyframes tc-drift-b { to { transform: translate(-30%, -16%) scale(1.1); } }
@keyframes tc-drift-c { to { transform: translate(22%, -24%) scale(1.2); } }

/* ---------- glass ---------- */

.tc-glass {
    position: relative;
    background: var(--tc-glass-bg);
    border: 1px solid var(--tc-glass-edge);
    border-radius: 22px;
    box-shadow: var(--tc-glass-shadow);
    -webkit-backdrop-filter: var(--tc-glass-blur);
    backdrop-filter: var(--tc-glass-blur);
}
/* the light sheen across a pane */
.tc-glass__sheen {
    position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(115deg, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / .08) 30%, transparent 55%, rgb(255 255 255 / .2) 100%);
}
.tc-glass > *:not(.tc-glass__sheen) { position: relative; z-index: 1; }

/* no backdrop-filter: an opaque pearl card instead (still readable) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --tc-glass-bg: color-mix(in srgb, var(--inv-surface) 92%, var(--inv-background)); }
}

/* liquid-gold text */
.tc-gold-text {
    background: var(--tc-gold) 0 0 / 260% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: tc-shimmer 7s ease-in-out infinite alternate;
}
@keyframes tc-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- the column ---------- */

.tc-page {
    position: relative; z-index: 1;
    width: min(100%, var(--tc-w)); min-height: 100vh; margin: 0 auto;
    background: color-mix(in srgb, var(--inv-background) 36%, transparent);
    overflow-x: clip;
    /* room for the floating menu under the last section */
    padding-bottom: 5.5rem;
}
@media (min-width: 520px) {
    .tc-page {
        border-inline: 1px solid var(--tc-glass-edge);
        box-shadow: 0 0 0 1px var(--tc-line-soft), 0 40px 90px -30px color-mix(in srgb, var(--inv-deep) 45%, transparent);
    }
}

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

/* ---------- ornaments: corner glints, divider ---------- */

.tc-glints { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tc-glint { position: absolute; width: clamp(100px, 30vw, 132px); aspect-ratio: 1; }
.tc-glint svg {
    display: block; width: 100%; height: 100%; overflow: visible;
    transform-origin: 0 0;
    animation: tc-sway 8s ease-in-out infinite alternate;
    will-change: transform;
}
.tc-glint--tl { top: 0; left: 0; }
.tc-glint--tr { top: 0; right: 0; transform: scaleX(-1); }
.tc-glint--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.tc-glint--br { bottom: 0; right: 0; transform: scale(-1, -1); }
.tc-glint--tr svg { animation-delay: -2.6s; animation-duration: 9s; }
.tc-glint--bl svg { animation-delay: -4.2s; }
.tc-glint--br svg { animation-delay: -1.4s; animation-duration: 9.5s; }
@keyframes tc-sway {
    from { transform: rotate(-2.2deg) scale(1); }
    to { transform: rotate(1.8deg) scale(1.04); }
}

.tc-divider { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .8rem auto 0; color: var(--inv-accent); }
.tc-divider__line { width: 4.2rem; height: 1px; background: linear-gradient(90deg, transparent, var(--tc-line)); }
.tc-divider__line--end { transform: scaleX(-1); }
.tc-divider__glint { width: 1.4rem; height: 1.4rem; overflow: visible; }

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

.inv-button {
    gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
    background: var(--tc-btn-bg); color: var(--tc-btn-fg);
    font: 500 .74rem/1.2 var(--tc-sans); letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent), inset 0 1px 0 rgb(255 255 255 / .18), 0 14px 26px -16px color-mix(in srgb, var(--inv-deep) 80%, transparent);
}
.inv-button--outline {
    background: color-mix(in srgb, var(--inv-surface) 50%, transparent); color: var(--inv-deep);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 85%, var(--inv-deep)), 0 10px 20px -16px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.inv-button--outline:hover { background: color-mix(in srgb, var(--inv-surface) 80%, transparent); }
.inv-button .tc-icon { width: 1.1rem; height: 1.1rem; }

.tc-pill {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .75rem; padding: .45rem .95rem;
    border-radius: 999px; color: var(--inv-deep); text-decoration: none;
    background: color-mix(in srgb, var(--inv-surface) 55%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 75%, transparent);
    font: 500 .78rem/1 var(--tc-sans); letter-spacing: .03em;
    transition: background .25s ease;
}
.tc-pill:hover { background: var(--inv-surface); }

.tc-chip {
    position: relative; z-index: 1; display: inline-block; padding: .5rem 1.15rem;
    border-radius: 999px; border: 1px solid var(--tc-glass-edge);
    background: var(--tc-glass-bg); -webkit-backdrop-filter: var(--tc-glass-blur); backdrop-filter: var(--tc-glass-blur);
    box-shadow: var(--tc-glass-shadow);
    font: 600 .66rem/1.3 var(--tc-label); letter-spacing: .34em; text-transform: uppercase; color: var(--inv-primary);
}

/* ---------- cover: a glass card over champagne light ---------- */

.tc-cover {
    position: fixed; inset: 0; z-index: 30;
    width: min(100%, var(--tc-w)); margin: 0 auto;
    display: flex; overflow-x: hidden; overflow-y: auto;
    color: var(--inv-text);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 38%, transparent), color-mix(in srgb, var(--inv-background) 18%, transparent) 40%, color-mix(in srgb, var(--inv-background) 60%, transparent)),
        var(--tc-photo, none) center 30% / cover no-repeat,
        linear-gradient(165deg, var(--inv-shine), var(--inv-background) 50%, var(--inv-blush));
}
.tc-cover > .tc-lights { opacity: .85; }
.tc-cover__inner { position: relative; z-index: 2; width: 100%; margin: auto; padding: 2rem 1.1rem; }

.tc-cover__card {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding: 2.2rem 1.35rem 1.9rem; border-radius: 30px; text-align: center;
    --tc-glass-bg: color-mix(in srgb, var(--inv-surface) 46%, transparent);
    --tc-glass-blur: blur(18px) saturate(1.4);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .tc-cover__card { --tc-glass-bg: color-mix(in srgb, var(--inv-surface) 94%, var(--inv-background)); }
}
/* a thin gold line inside the glass */
.tc-cover__card::after {
    content: ''; position: absolute; inset: 7px; border-radius: 24px; pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--inv-accent) 55%, transparent);
}

.tc-cover__title { font: 600 .7rem/1.4 var(--tc-label); letter-spacing: .4em; text-transform: uppercase; color: var(--inv-primary); }

/* the monogram in a gold ring */
.tc-mono {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    width: 4.7rem; aspect-ratio: 1; border-radius: 50%;
    font: italic 500 1.45rem/1 var(--tc-display); color: var(--inv-primary);
    background: color-mix(in srgb, var(--inv-surface) 45%, transparent);
    box-shadow: inset 0 0 0 1px var(--inv-accent), inset 0 0 0 4px color-mix(in srgb, var(--inv-surface) 60%, transparent), inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 45%, transparent), 0 10px 20px -12px color-mix(in srgb, var(--inv-deep) 50%, transparent);
}
.tc-mono__bar { display: block; width: 1px; height: 1.7rem; background: var(--inv-accent); transform: rotate(22deg); }

.tc-cover__names {
    display: flex; flex-direction: column; align-items: center;
    font: italic 500 clamp(2.7rem, 13vw, 3.45rem)/1.08 var(--tc-display);
    overflow-wrap: anywhere;
}
.tc-cover__amp { font-size: .5em; line-height: 1.3; }

.tc-cover__date {
    display: flex; align-items: center; gap: .6rem;
    font: 600 .7rem/1.4 var(--tc-label); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-deep);
}
.tc-cover__date::before, .tc-cover__date::after { content: ''; width: 1.4rem; height: 1px; background: var(--tc-line); }

.tc-cover__quote { max-width: 20rem; font: italic 400 .95rem/1.55 var(--tc-display); color: var(--tc-muted); }

.tc-guest {
    width: 100%; margin-top: .35rem; padding: .9rem 1rem 1rem;
    border-radius: 18px;
    background: color-mix(in srgb, var(--inv-surface) 58%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent);
}
.tc-guest__label { font: 600 .62rem/1.4 var(--tc-label); letter-spacing: .3em; text-transform: uppercase; color: var(--inv-primary); }
.tc-guest__name { margin-top: .25rem; font: 600 1.2rem/1.3 var(--tc-display); color: var(--inv-deep); overflow-wrap: anywhere; }
.tc-guest__note { margin-top: .35rem; font: 400 .84rem/1.5 var(--tc-sans); color: var(--tc-muted); }

.tc-open { margin-top: .35rem; }

/* opening: the glass card swells and fades, then the cover fades away (~1.05s in all) */
.tc-cover--leave { transition: opacity .5s ease .55s; }
.tc-cover--leave .tc-cover__card { animation: tc-card-out .6s cubic-bezier(.5, 0, .2, 1) forwards; }
.tc-cover--gone { opacity: 0; }
@keyframes tc-card-out { to { transform: scale(1.14); opacity: 0; } }

/* ---------- hero (top of the page after opening) ---------- */

.tc-hero {
    position: relative; overflow: hidden;
    min-height: min(100vh, 880px); min-height: min(100svh, 880px); padding: 4.2rem 1.5rem 3rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.tc-hero__frame {
    position: relative; z-index: 1;
    width: min(68%, 260px); aspect-ratio: 3 / 4.3; margin: 1.6rem auto 1.5rem; padding: 8px;
    border-radius: 999px;
    background: var(--tc-glass-bg); border: 1px solid var(--tc-glass-edge);
    -webkit-backdrop-filter: var(--tc-glass-blur); backdrop-filter: var(--tc-glass-blur);
    box-shadow: var(--tc-glass-shadow), 0 0 0 9px color-mix(in srgb, var(--inv-surface) 18%, transparent);
}
/* a gold hairline around the capsule */
.tc-hero__frame::before {
    content: ''; position: absolute; inset: -9px; border-radius: 999px; pointer-events: none;
    border: 1px solid var(--tc-line);
}
.tc-hero__photo {
    display: grid; place-items: center; width: 100%; height: 100%; border-radius: 999px;
    background: var(--tc-photo, none) center 28% / cover no-repeat, linear-gradient(160deg, var(--inv-shine), var(--inv-blush));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent);
}
.tc-hero__mono { display: flex; gap: .3rem; font: italic 500 3.6rem/1 var(--tc-display); color: var(--inv-surface); }
.tc-hero__shine {
    position: absolute; inset: 8px; border-radius: 999px; pointer-events: none;
    background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / .38) 48%, transparent 58%) 160% 0 / 260% 100% no-repeat;
    animation: tc-sweep 8s ease-in-out infinite;
}
@keyframes tc-sweep { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

.tc-hero__names {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .5rem;
    font: italic 500 clamp(2.5rem, 12vw, 3.2rem)/1.12 var(--tc-display);
}
.tc-hero__amp { font-size: .55em; }
.tc-hero__date {
    position: relative; z-index: 1; margin-top: .45rem;
    font: 600 .72rem/1.4 var(--tc-label); letter-spacing: .24em; text-transform: uppercase; color: var(--inv-deep);
}

.tc-scroll { position: relative; z-index: 1; width: 1px; height: 3rem; margin-top: 1.5rem; background: var(--tc-line-soft); overflow: hidden; }
.tc-scroll span { position: absolute; left: 0; top: -1rem; width: 1px; height: 1rem; background: var(--inv-primary); animation: tc-drip 2.2s ease-in-out infinite; }
@keyframes tc-drip { to { transform: translateY(4rem); } }

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

.tc-main { position: relative; }

.tc-section {
    position: relative; overflow: hidden;
    padding: 4.4rem 1.4rem;
    text-align: center; color: var(--tc-fg);
}
/* every other section a touch lighter, like light falling through glass */
.tc-section:nth-child(even) {
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--inv-surface) 34%, transparent) 18%, color-mix(in srgb, var(--inv-surface) 34%, transparent) 82%, transparent);
}
.tc-section > * { position: relative; z-index: 1; }
.tc-section > .tc-glints { position: absolute; z-index: 0; }

.tc-heading { margin-bottom: 2rem; }
.tc-heading__label { font: 600 .68rem/1.4 var(--tc-label); letter-spacing: .36em; text-transform: uppercase; color: var(--inv-primary); }
.tc-heading__title { margin-top: .2rem; font: italic 500 clamp(2.15rem, 9.6vw, 2.6rem)/1.2 var(--tc-display); color: var(--tc-title); }

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

.tc-card { max-width: 24rem; margin: 0 auto; }

/* ---------- opening ---------- */
.tc-arabic { margin-bottom: .2rem; font: 400 1.7rem/1.8 'Amiri', serif; color: var(--inv-primary); }
.tc-opening > .tc-divider { margin: 0 auto 1.2rem; }
.tc-opening__greeting { font: italic 500 1.3rem/1.45 var(--tc-display); color: var(--inv-deep); }
.tc-opening__message { max-width: 24rem; margin: .9rem auto 0; color: var(--tc-muted); }
.tc-quote { max-width: 24rem; margin: 2.8rem auto 0; padding: 2rem 1.5rem 1.4rem; }
.tc-quote__mark {
    position: absolute !important; left: 50%; top: -1.9rem; transform: translateX(-50%);
    font: italic 600 4.4rem/1 var(--tc-display); color: var(--inv-accent);
}
.tc-quote blockquote { margin: 0; font: italic 400 1.02rem/1.7 var(--tc-display); color: var(--inv-text); }
.tc-quote figcaption { margin-top: .8rem; font: 600 .66rem/1.4 var(--tc-label); letter-spacing: .24em; text-transform: uppercase; color: var(--inv-primary); }

/* ---------- couple: zig-zag (R3) with round glass lenses ---------- */
.tc-person {
    display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: center; gap: 1rem;
    text-align: left;
}
.tc-person--right { grid-template-columns: minmax(0, 1fr) 44%; text-align: right; }
.tc-person--right .tc-person__lens { order: 2; }

.tc-lens { position: relative; animation: tc-float 6s ease-in-out infinite alternate; will-change: transform; }
.tc-person--right .tc-lens { animation-delay: -3s; }
.tc-lens__glass {
    position: relative; display: block; aspect-ratio: 1; padding: 9px; border-radius: 50%;
    background: color-mix(in srgb, var(--inv-surface) 40%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow:
        0 0 0 1.5px var(--inv-accent),
        0 0 0 5px color-mix(in srgb, var(--inv-surface) 45%, transparent),
        0 0 0 6px color-mix(in srgb, var(--inv-accent) 45%, transparent),
        inset 0 0 0 1px rgb(255 255 255 / .75),
        0 26px 40px -20px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.tc-lens__img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.tc-lens__empty {
    display: grid; place-items: center;
    font: italic 500 3rem/1 var(--tc-display); color: var(--inv-surface);
    background: linear-gradient(140deg, var(--inv-accent), var(--inv-primary));
}
/* the reflection: a soft highlight top-left and a faint crescent along the lower edge */
.tc-lens__shine {
    position: absolute; inset: 9px; border-radius: 50%; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 34% at 33% 20%, rgb(255 255 255 / .6), rgb(255 255 255 / .12) 55%, transparent 72%),
        radial-gradient(circle at 50% 50%, transparent 62%, rgb(255 255 255 / .22) 70%, transparent 73%);
    box-shadow: inset 0 -10px 18px -10px color-mix(in srgb, var(--inv-deep) 45%, transparent);
}
@keyframes tc-float {
    from { transform: translateY(-4px) rotate(-1.5deg); }
    to { transform: translateY(4px) rotate(1.5deg); }
}

.tc-person__role { font: 600 .58rem/1.4 var(--tc-label); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); }
.tc-person__nick { display: inline-block; margin-top: .1rem; font: italic 500 2.3rem/1.15 var(--tc-display); overflow-wrap: anywhere; }
.tc-person__name { margin-top: .15rem; font: 600 1rem/1.35 var(--tc-display); color: var(--inv-deep); overflow-wrap: anywhere; }
.tc-person__parents { margin-top: .45rem; font-size: .84rem; line-height: 1.5; color: var(--tc-muted); }
.tc-person__parents strong { font-weight: 500; color: var(--inv-text); }

.tc-and { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.6rem 0; }
.tc-and__line { width: 3.4rem; height: 1px; background: linear-gradient(90deg, transparent, var(--tc-line)); }
.tc-and__line--end { transform: scaleX(-1); }
.tc-and__mark { font: italic 500 3.2rem/1 var(--tc-display); padding: 0 .1em; }

/* ---------- countdown: chronograph watch ---------- */
.tc-countdown__date {
    display: inline-flex; align-items: center; gap: .5rem;
    font: 600 .7rem/1.4 var(--tc-label); letter-spacing: .16em; text-transform: uppercase; color: var(--inv-deep);
}
.tc-countdown__date .tc-icon { color: var(--inv-primary); width: 1.15rem; height: 1.15rem; }

.tc-watch { --tc-dial: min(80vw, 318px); position: relative; margin: 1.8rem auto 0; }
.tc-watch__dial, .tc-watch__hands {
    position: absolute; top: 0; left: 50%; z-index: 0;
    width: var(--tc-dial); height: var(--tc-dial); transform: translateX(-50%);
    overflow: visible; pointer-events: none;
}
.tc-watch__dial { filter: drop-shadow(0 24px 26px color-mix(in srgb, var(--inv-deep) 40%, transparent)); }
.tc-watch__hands { z-index: 3; }
/* sunray finish and a gloss on the dial (91% of the case) */
.tc-watch__sun {
    position: absolute; z-index: 0; top: calc(var(--tc-dial) * .045); left: 50%;
    width: calc(var(--tc-dial) * .91); aspect-ratio: 1; transform: translateX(-50%);
    border-radius: 50%; pointer-events: none;
    background:
        radial-gradient(circle at 34% 24%, rgb(255 255 255 / .16), transparent 52%),
        repeating-conic-gradient(rgb(255 255 255 / .045) 0 1.5deg, transparent 1.5deg 3deg);
}
.tc-watch__second {
    transform-box: view-box; transform-origin: 100px 100px;
    animation: tc-tick 60s linear infinite;
}
@keyframes tc-tick { to { transform: rotate(360deg); } }

.tc-watch .inv-countdown-wrap { position: relative; z-index: 1; }
.tc-watch .inv-countdown-wrap > [x-data] { position: relative; width: var(--tc-dial); height: var(--tc-dial); margin: 0 auto; }
.tc-watch .inv-countdown { position: absolute; inset: 0; display: block; }
/* the four sub-dials at 12, 3, 6 and 9 o'clock */
.tc-watch .inv-countdown__item {
    position: absolute; width: 27%; aspect-ratio: 1; min-width: 0; max-width: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--inv-shine);
    background:
        radial-gradient(closest-side, color-mix(in srgb, var(--inv-deep) 86%, #fff) 0 80%, transparent 81%),
        repeating-conic-gradient(color-mix(in srgb, var(--inv-shine) 70%, transparent) 0 1.4deg, transparent 1.4deg 30deg),
        color-mix(in srgb, var(--inv-deep) 86%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 80%, transparent), inset 0 3px 8px rgb(0 0 0 / .45), 0 1px 0 rgb(255 255 255 / .08);
}
.tc-watch .inv-countdown__item:hover { transform: none; }
.tc-watch .inv-countdown__item:nth-child(1) { left: 36.5%; top: 12.5%; }
.tc-watch .inv-countdown__item:nth-child(2) { left: 60.5%; top: 36.5%; }
.tc-watch .inv-countdown__item:nth-child(3) { left: 36.5%; top: 60.5%; }
.tc-watch .inv-countdown__item:nth-child(4) { left: 12.5%; top: 36.5%; }
.tc-watch .inv-countdown__value { font: 600 calc(var(--tc-dial) * .088)/1 var(--tc-display); color: var(--inv-shine); font-variant-numeric: lining-nums tabular-nums; }
.tc-watch .inv-countdown__label { margin-top: .2rem; font: 600 max(.5rem, calc(var(--tc-dial) * .028))/1 var(--tc-label); letter-spacing: .14em; text-transform: uppercase; color: var(--inv-accent); opacity: 1; }
.tc-watch .inv-countdown__done {
    position: absolute; inset: 20%; z-index: 2; display: grid; place-items: center;
    font: italic 500 1rem/1.5 var(--tc-display); color: var(--inv-shine);
}
.inv-countdown__actions { margin-top: 2rem; }
.inv-countdown__actions .inv-button { padding: .7rem 1rem; font-size: .62rem; letter-spacing: .1em; }

/* ---------- carousels (events and love story): CSS scroll-snap ---------- */
.tc-deck { position: relative; margin: 0 -1.4rem; }
.tc-track {
    position: relative; z-index: 1;
    display: flex; align-items: stretch; gap: .9rem;
    margin: 0; padding: 1.2rem 8% 2.9rem; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 8%;
    scrollbar-width: none;
}
.tc-track::-webkit-scrollbar { display: none; }
.tc-track:focus-visible { outline: 2px solid var(--inv-accent); outline-offset: -4px; border-radius: 12px; }
.tc-slide { flex: 0 0 84%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.tc-deck--single .tc-track { justify-content: center; }
.tc-deck--single .tc-slide { flex-basis: 90%; }

.tc-dots { display: flex; justify-content: center; gap: .4rem; margin-top: -1.1rem; }
.tc-dot {
    width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
    background: color-mix(in srgb, var(--inv-deep) 22%, transparent);
    transition: width .35s ease, background .35s ease;
}
.tc-dot.is-active { width: 1.6rem; background: var(--tc-gold-leaf); }
.tc-hint {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem;
    font: 600 .6rem/1.4 var(--tc-label); letter-spacing: .26em; text-transform: uppercase; color: var(--tc-muted);
}
.tc-hint .tc-icon { animation: tc-nudge 1.8s ease-in-out infinite; }
@keyframes tc-nudge { 50% { transform: translateX(5px); } }

/* the events: tilted glass sheets peeking out behind the cards (a fanned stack) */
.tc-deck__ghost {
    position: absolute; z-index: 0; top: 1.9rem; bottom: 6.3rem; left: 12%; right: 12%;
    border-radius: 22px; pointer-events: none;
    background: color-mix(in srgb, var(--inv-surface) 30%, transparent);
    border: 1px solid var(--tc-glass-edge);
    box-shadow: 0 18px 36px -24px color-mix(in srgb, var(--inv-deep) 50%, transparent);
}
.tc-deck__ghost--a { transform: rotate(-6deg) translateX(-5%); }
.tc-deck__ghost--b { transform: rotate(4.5deg) translateX(5%); background: color-mix(in srgb, var(--inv-blush) 28%, transparent); }
.tc-deck--single .tc-deck__ghost { bottom: 2.9rem; }

.tc-event { padding: 1rem 1rem 1.25rem; text-align: left; }
.tc-event__count {
    position: absolute !important; z-index: 2 !important; top: 1.55rem; right: 1.55rem;
    padding: .25rem .6rem; border-radius: 999px;
    background: color-mix(in srgb, var(--inv-surface) 80%, transparent);
    font: 600 .6rem/1.2 var(--tc-label); letter-spacing: .14em; color: var(--inv-deep);
}
.tc-event__photo {
    aspect-ratio: 16 / 10; margin-bottom: 1rem; border-radius: 15px;
    background: var(--tc-photo) center 30% / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55), 0 12px 22px -16px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}
.tc-event__name { padding: 0 .2rem; font: italic 600 1.75rem/1.2 var(--tc-display); color: var(--inv-deep); overflow-wrap: anywhere; }
.tc-event__facts { display: grid; gap: .55rem; margin: .8rem 0 0; padding: 0 .2rem; list-style: none; }
.tc-event__facts li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.tc-event__facts li > span { min-width: 0; }
.tc-event__facts .tc-icon { margin-top: .18rem; color: var(--inv-primary); width: 1.05rem; height: 1.05rem; }
.tc-event__time { font-weight: 600; color: var(--inv-primary); }
.tc-event__venue { display: block; font: 600 1.02rem/1.35 var(--tc-display); color: var(--inv-deep); }
.tc-event__address { display: block; margin-top: .15rem; font-size: .84rem; color: var(--tc-muted); }
.tc-event__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 1.15rem; }
.tc-event__actions .inv-button { gap: .35rem; padding: .75rem .3rem; font-size: .58rem; letter-spacing: .05em; white-space: nowrap; text-decoration: none; }
.tc-event__actions .inv-button .tc-icon { width: 1rem; height: 1rem; }

/* the love story cards */
.tc-moment { display: flex; flex-direction: column; padding: .7rem .7rem 1.2rem; text-align: left; }
.tc-moment__photo {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px;
    box-shadow: 0 12px 22px -16px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}
.tc-moment__photo--empty {
    display: grid; place-content: center; justify-items: center; gap: .3rem;
    color: var(--inv-accent);
    background:
        radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--inv-surface) 85%, transparent), transparent 60%),
        linear-gradient(150deg, color-mix(in srgb, var(--inv-shine) 70%, var(--inv-surface)), color-mix(in srgb, var(--inv-blush) 70%, var(--inv-surface)));
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7);
}
.tc-moment__photo--empty svg { width: 1.8rem; height: 1.8rem; }
.tc-moment__mono { display: flex; gap: .25rem; font: italic 500 2rem/1 var(--tc-display); color: var(--inv-primary); }
.tc-moment__body { padding: .95rem .45rem 0; }
.tc-moment__date { font: 600 .64rem/1.4 var(--tc-label); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.tc-moment__title { margin-top: .2rem; font: italic 600 1.35rem/1.25 var(--tc-display); color: var(--inv-deep); overflow-wrap: anywhere; }
.tc-moment__story { margin-top: .45rem; font-size: .9rem; line-height: 1.6; color: var(--tc-muted); overflow-wrap: anywhere; }

/* scroll-driven fan: cards tilt and shrink as they slide out of the centre (finished state = flat) */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .tc-deck--events .tc-slide, .tc-deck--story .tc-slide {
            animation: tc-fan linear both;
            animation-timeline: view(inline);
        }
        .tc-deck--story .tc-slide { animation-name: tc-fan-soft; }
    }
}
@keyframes tc-fan {
    0% { transform: rotate(7deg) translateY(14px) scale(.9); opacity: .55; }
    35%, 65% { transform: none; opacity: 1; }
    100% { transform: rotate(-7deg) translateY(14px) scale(.9); opacity: .55; }
}
@keyframes tc-fan-soft {
    0% { transform: rotate(3deg) scale(.94); opacity: .7; }
    35%, 65% { transform: none; opacity: 1; }
    100% { transform: rotate(-3deg) scale(.94); opacity: .7; }
}

/* ---------- gallery ---------- */
.inv-gallery { gap: .65rem; }
.inv-gallery__item {
    border-radius: 16px;
    box-shadow: 0 0 0 1px var(--tc-line), 0 0 0 4px color-mix(in srgb, var(--inv-surface) 55%, transparent), 0 16px 26px -18px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}
.tc-gallery .inv-gallery { gap: .85rem; padding: .3rem; }
.inv-gallery__item:first-child,
.inv-gallery__item:first-child ~ .inv-gallery__item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.inv-gallery__play { background: color-mix(in srgb, var(--inv-deep) 65%, transparent); color: #fff; }

/* ---------- live streaming ---------- */
.tc-live .tc-card { padding: 1.8rem 1.4rem; }
.tc-live__badge {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem;
    border-radius: 999px; background: var(--inv-deep); color: var(--inv-shine);
    font: 600 .64rem/1 var(--tc-sans); letter-spacing: .22em;
}
.tc-live__badge span { width: .45rem; height: .45rem; border-radius: 50%; background: #ff8a7a; animation: tc-blink 1.4s ease-in-out infinite; }
@keyframes tc-blink { 50% { opacity: .25; } }
.tc-live__text { margin: 1rem 0 .5rem; color: var(--inv-text); }
.tc-live__note { margin-bottom: 1rem; font: italic 600 1rem/1.5 var(--tc-display); color: var(--inv-primary); }
.tc-live .inv-button { margin-top: .5rem; }

/* ---------- gift: frosted glass bank cards with a gold edge, two per row ---------- */
.inv-gift { display: grid; gap: .9rem; max-width: 24rem; 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: .9rem .8rem .95rem;
    border-radius: 16px; text-align: left; color: var(--inv-deep);
    background:
        linear-gradient(118deg, rgb(255 255 255 / .6) 0%, rgb(255 255 255 / .1) 38%, transparent 55%, rgb(255 255 255 / .18) 100%),
        radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--inv-blush) 55%, transparent), transparent 60%),
        color-mix(in srgb, var(--inv-surface) 42%, transparent);
    -webkit-backdrop-filter: var(--tc-glass-blur); backdrop-filter: var(--tc-glass-blur);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), 0 18px 32px -20px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .inv-gift__account { background-color: color-mix(in srgb, var(--inv-surface) 92%, var(--inv-background)); }
}
.inv-gift__account + .inv-gift__account { margin-top: 0; }
/* the chip */
.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 / .22) 31% 33%, transparent 33% 67%, rgb(0 0 0 / .22) 67% 69%, transparent 69%),
        linear-gradient(0deg, transparent 47%, rgb(0 0 0 / .22) 47% 53%, transparent 53%),
        var(--tc-gold-leaf);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18);
}
/* the gold edge: a gradient ring masked to the border */
.inv-gift__account::after {
    content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: var(--tc-gold-leaf);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
.inv-gift__bank {
    grid-area: bank; justify-self: end; min-width: 0; max-width: 100%; margin: 0;
    font: 600 .64rem/1.2 var(--tc-sans); letter-spacing: .08em; text-transform: uppercase; text-align: right; overflow-wrap: anywhere;
}
.inv-gift__logo { height: 1.5rem; max-width: 100%; padding: .2rem .45rem; border-radius: .35rem; box-shadow: 0 0 0 1px var(--tc-line-soft); }
.inv-gift__logo img { max-width: 4.6rem; }
.inv-gift__number {
    grid-area: number; margin: .8rem 0 .15rem;
    font: 500 .92rem/1.25 var(--tc-mono); letter-spacing: .03em; color: var(--inv-deep);
    overflow-wrap: anywhere;
}
.inv-gift__holder { grid-area: holder; margin: 0; font: 600 .58rem/1.35 var(--tc-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tc-muted); overflow-wrap: anywhere; }
.inv-gift__account .inv-button {
    grid-area: button; justify-self: start; margin-top: .65rem; padding: .38rem .75rem; border-radius: 999px;
    font-size: .58rem; letter-spacing: .08em;
}

/* the gift address stays a plain glass card */
.inv-gift__account.inv-gift__address { display: block; padding: 1.5rem 1.3rem; text-align: center; }
.inv-gift__address::before { content: none; }
.inv-gift__address .inv-gift__bank { justify-self: auto; text-align: center; font: 600 .66rem/1.4 var(--tc-label); letter-spacing: .26em; color: var(--inv-primary); }
.inv-gift__address .inv-gift__holder { margin: .6rem 0 .2rem; font: 600 1.05rem/1.3 var(--tc-display); letter-spacing: .02em; text-transform: none; color: var(--inv-deep); }
.inv-gift__address p:not([class]) { color: var(--tc-muted); }
.inv-gift__address .inv-button { margin-top: 1rem; }

/* ---------- rsvp & wishes forms ---------- */
.tc-form { padding: 1.4rem 1.2rem 1.5rem; text-align: left; }
.inv-form { gap: .9rem; }
.inv-form label, .inv-form__choices legend { font: 500 .8rem/1.4 var(--tc-sans); letter-spacing: .03em; color: var(--inv-text); }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form select, .inv-form textarea {
    padding: .72rem .9rem; border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--inv-accent) 55%, transparent);
    background: rgb(255 255 255 / .72); color: var(--inv-text);
    font: 400 1rem/1.4 var(--tc-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) 50%, 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-accent) 28%, transparent);
}
.inv-form option { background: #fff; color: var(--inv-deep); }
.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: .92rem; }
.inv-form__notice { color: var(--inv-text); background: color-mix(in srgb, var(--inv-surface) 70%, transparent); border: 1px solid var(--tc-line-soft); }
.inv-form .inv-button { justify-self: stretch; margin-top: .3rem; }
.inv-rsvp__deadline { font-style: italic; color: var(--inv-primary); }

/* wishes: compact glass notes 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: 14px;
    background: color-mix(in srgb, var(--inv-background) 45%, transparent);
    box-shadow: inset 0 0 0 1px var(--tc-line-soft), inset 0 -14px 16px -14px color-mix(in srgb, var(--inv-deep) 30%, transparent);
    scrollbar-color: color-mix(in srgb, var(--inv-accent) 60%, transparent) transparent;
}
.inv-wishes__empty { text-align: center; font-style: italic; }
.inv-wish {
    padding: .65rem .8rem; border-radius: 12px;
    background: rgb(255 255 255 / .74); color: var(--inv-text);
    border: 1px solid var(--tc-line-soft); border-left: 3px solid var(--inv-accent);
}
.inv-wish__name { font: italic 600 .95rem/1.3 var(--tc-display); color: var(--inv-deep); }
.inv-wish__message { font-size: .94rem; line-height: 1.55; }
.inv-wish__time { margin-top: .25rem; font: 400 .68rem/1.3 var(--tc-sans); letter-spacing: .04em; }
.inv-wish__reply { margin-top: .5rem; padding: .45rem .65rem; background: color-mix(in srgb, var(--inv-shine) 35%, transparent); }
.inv-wish__reply-text { font-size: .92rem; }
.inv-wishes__page-button { color: var(--inv-primary); }

/* ---------- closing ---------- */
.tc-closing { padding-bottom: 4.6rem; }
.tc-lens--closing { width: min(62%, 236px); margin: .4rem auto 2.2rem; }
.tc-lens--closing .tc-lens__empty { font-size: 3.4rem; }
.tc-closing__label { font: 600 .68rem/1.4 var(--tc-label); letter-spacing: .36em; text-transform: uppercase; color: var(--inv-primary); }
.tc-closing__thanks { margin-top: .15rem; font: italic 500 2.9rem/1.2 var(--tc-display); color: var(--inv-deep); }
.tc-closing__message { max-width: 24rem; margin: .8rem auto 0; color: var(--tc-muted); }
.tc-closing > .tc-divider { margin: 1.5rem auto 0; }
.tc-closing__sign { margin-top: 1.2rem; font: 600 .66rem/1.4 var(--tc-label); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); }
.tc-closing__names { display: inline-block; margin-top: .3rem; font: italic 500 clamp(2.3rem, 10.5vw, 2.9rem)/1.25 var(--tc-display); }
.tc-closing__names span { font-size: .6em; }

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

.tc-nav.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-surface) 70%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 72%, transparent);
    --inv-nav-active: var(--tc-btn-bg);
    border-color: var(--tc-glass-edge);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), 0 0 0 1px var(--tc-line-soft), 0 16px 34px -16px color-mix(in srgb, var(--inv-deep) 55%, transparent);
    font-family: var(--tc-sans);
}
.tc-nav.inv-nav--icons .inv-nav__item.is-active { color: var(--inv-shine); box-shadow: 0 0 0 2px var(--inv-surface), 0 0 0 3px var(--inv-accent), 0 8px 18px -6px color-mix(in srgb, var(--inv-deep) 60%, transparent); }

.inv-music { right: calc(var(--tc-edge) + 1rem); }
.inv-music__button { background: var(--tc-btn-bg); color: var(--inv-shine); box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--inv-deep) 70%, transparent), 0 0 0 2px var(--inv-surface), 0 0 0 3px var(--inv-accent); }
.inv-autoscroll { color: var(--inv-deep); background: color-mix(in srgb, var(--inv-surface) 90%, transparent); border-color: color-mix(in srgb, var(--inv-accent) 60%, transparent); font-family: var(--tc-sans); }
.inv-autoscroll--running { background: var(--inv-deep); color: var(--inv-shine); }

.inv-to-top {
    left: calc(var(--tc-edge) + 1rem); border-radius: 50%;
    background: color-mix(in srgb, var(--inv-surface) 85%, transparent); color: var(--inv-deep);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px var(--inv-accent), 0 6px 16px -6px color-mix(in srgb, var(--inv-deep) 50%, transparent);
}
.inv-qr-tab {
    right: var(--tc-edge); font-family: var(--tc-sans); color: var(--inv-shine);
    background: var(--inv-deep);
    border-color: color-mix(in srgb, var(--inv-accent) 70%, transparent);
}
.inv-qr-sheet .inv-checkin { font-family: var(--tc-sans); color: var(--inv-deep); }
.inv-checkin__title { color: var(--inv-primary); }

.tc-branding { position: relative; z-index: 1; color: var(--inv-text); font-family: var(--tc-sans); }

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tc-light, .tc-glint svg, .tc-gold-text, .tc-lens, .tc-hero__shine, .tc-scroll span,
    .tc-watch__second, .tc-hint .tc-icon, .tc-live__badge span { animation: none; }
    .tc-cover--leave { transition: opacity .3s ease; }
    .tc-cover--leave .tc-cover__card { animation: none; }
}

/* phones: a lighter blur, so the glass stays smooth over the drifting light on slower devices */
@media (max-width: 520px) {
    :root, .tc-cover__card { --tc-glass-blur: blur(9px) saturate(1.2); }
}

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

.tc-cover__inner { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 1.4rem 1.1rem; }
.tc-cover__card { justify-content: space-evenly; min-height: min(100%, calc(100svh - 2.8rem)); }
.tc-cover__quote, .tc-guest__note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }

@media (max-height: 760px) {
    .tc-cover__inner { padding-block: 1rem; }
    .tc-cover__card { gap: .55rem; padding: 1.6rem 1.25rem 1.4rem; min-height: 0; }
    .tc-mono { width: 4rem; font-size: 1.25rem; }
    .tc-cover__names { font-size: clamp(2.4rem, 11.5vw, 3rem); }
    .tc-cover__quote { font-size: .9rem; }
    .tc-guest { padding: .75rem .9rem .8rem; }
    .tc-guest__note { -webkit-line-clamp: 6; font-size: .8rem; line-height: 1.45; }
}
@media (max-height: 660px) {
    .tc-cover__inner { padding-block: .7rem; }
    .tc-cover__card { gap: .4rem; padding: 1.25rem 1.1rem 1.1rem; border-radius: 26px; }
    .tc-mono { width: 3.3rem; font-size: 1.05rem; }
    .tc-mono__bar { height: 1.2rem; }
    .tc-cover__names { font-size: clamp(2.3rem, 11vw, 2.7rem); line-height: 1.02; }
    .tc-cover__quote { -webkit-line-clamp: 6; font-size: .84rem; line-height: 1.45; }
    .tc-guest { margin-top: .15rem; padding: .6rem .85rem .65rem; }
    .tc-guest__name { font-size: 1.1rem; }
    .tc-open { margin-top: .15rem; }
}

/* page end: the names close the page just above the bottom menu (the player keeps its own space below) */
.tc-page { padding-bottom: 1.5rem; }
.tc-closing { padding-bottom: 2.6rem; }
