/* ==========================================================================
   Cortină - an evening at the opera: your photo on a stage inside a gilded proscenium; the heavy velvet curtain,
   with gold fringes and tassels, draws aside on arrival and is caught up in its cords, then the spotlight comes on,
   with gold dust floating in it, and the folds sway as the page is scrolled. A small valance comes down above every
   title, portraits in gilded opera boxes, the family in the cast list of a programme, the story in acts, the
   moments on theatre tickets, the time left on a marquee of chasing bulbs, and the curtain closing at the end,
   leaving a rose on the boards
   Palette: --inv-primary (the velvet), --inv-accent (the gilt), --inv-bg, --inv-text
   script.js draws the curtain, its valance and the gold dust on canvas.ct-drape
   ========================================================================== */

.cortina {
    --ct-script: 'Carattere', 'Segoe Script', cursive;
    --ct-ink-soft: color-mix(in srgb, var(--inv-text) 68%, var(--inv-bg));
    --ct-line: color-mix(in srgb, var(--inv-accent) 40%, transparent);
    --ct-gilt: color-mix(in srgb, var(--inv-accent) 84%, var(--inv-text));
    --ct-gold-hi: color-mix(in srgb, var(--inv-accent) 45%, #fff6dc);
    --ct-gold-lo: color-mix(in srgb, var(--inv-accent) 62%, #3a2408);
    --ct-gold: linear-gradient(135deg, var(--ct-gold-hi), var(--inv-accent) 28%, var(--ct-gold-lo) 52%, var(--inv-accent) 74%, var(--ct-gold-hi));
    /* the velvet: the palette's primary, deepened on dark palettes by script.js (--ct-cloth on body) */
    --ct-cloth: var(--inv-primary);
    --ct-velvet-deep: color-mix(in srgb, var(--ct-cloth) 58%, #0b0204);
    --ct-velvet-hi: color-mix(in srgb, var(--ct-cloth) 80%, #ffd9d0);
    --ct-velvet: repeating-linear-gradient(90deg, var(--ct-velvet-deep) 0, var(--ct-cloth) 9px, var(--ct-velvet-hi) 13px, var(--ct-cloth) 17px, var(--ct-velvet-deep) 26px);
    --ct-shadow: 0 1px 2px color-mix(in srgb, var(--inv-text) 10%, transparent), 0 28px 54px -34px color-mix(in srgb, var(--inv-text) 60%, transparent);
    --kit-radius: 4px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--ct-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.06rem;
    line-height: 1.7;
    background:
        radial-gradient(70% 46% at 50% 0, color-mix(in srgb, var(--ct-cloth) 16%, transparent), transparent 72%),
        var(--inv-bg);
    overflow-x: clip;
}
.cortina h1, .cortina h2, .cortina h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.3; }
:where(.cortina) :is(h1, h2, h3) { margin: 0; }
:where(.cortina) p { margin: 0 0 .9em; }
.cortina strong, .cortina b { font-weight: 500; }
.cortina a { color: var(--inv-primary); }
.ct-kicker { font-size: .74rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ct-gilt); margin: 0 0 10px; }
.ct-role { font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ct-ink-soft); margin: 0 0 4px; }
.ct-names-line { font-family: var(--inv-font-heading); font-size: 1.16rem; margin: 0; }
.ct-hero, .ct-main, .ct-footer { position: relative; z-index: 1; }
.ct-hero { z-index: 2; }
/* a programme card: a gilt double rule inside its edge */
.ct-card { position: relative; background: var(--inv-surface); border-radius: 3px; box-shadow: var(--ct-shadow), 0 0 0 1px var(--ct-line), inset 0 0 0 6px var(--inv-surface), inset 0 0 0 7px var(--ct-line), inset 0 0 0 9px var(--inv-surface), inset 0 0 0 10px color-mix(in srgb, var(--inv-accent) 22%, transparent); }

/* ---------- Navigation ---------- */
.ct-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 18px; }
.ct-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.ct-nav .kit-nav-links a { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--inv-text); padding: 6px 0; border-bottom: 1px solid transparent; }
.ct-nav .kit-nav-links a:hover, .ct-nav .kit-nav-links a.is-current { border-color: var(--inv-accent); color: var(--inv-primary); }
.ct-nav .kit-nav-brand { font-family: var(--ct-script); font-size: 1.9rem; color: var(--inv-primary); }
.ct-nav.is-stuck { justify-content: space-between; align-items: center; padding: 6px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--inv-bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--ct-line); }
.cortina .kit-to-top { background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--ct-gilt); }
@media (max-width: 899px) {
    .ct-nav { justify-content: flex-end; padding: 12px; }
    .ct-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--ct-gilt); font-size: 1.2rem; }
    .ct-nav .kit-nav-links { display: none; }
    .ct-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; gap: 12px; position: absolute; top: 66px; left: 12px; right: 12px;
        padding: 24px; border-radius: 4px; background: var(--inv-surface); box-shadow: var(--ct-shadow);
    }
    .ct-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: the stage ---------- */
/* overflow-x: the swaying curtain stays inside its frame, and the hero clips anything that would widen a phone page */
.ct-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 84px 16px 56px; overflow-x: hidden; overflow-x: clip; }
.ct-hero-inner { width: min(980px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 26px; text-align: center; }
.ct-stage { width: min(900px, 100%); --frame: clamp(10px, 1.7vw, 18px); }
.ct-portal { position: relative; aspect-ratio: 3 / 3.7; max-height: 74svh; margin: 0 auto; border-radius: 50% 50% 0 0 / 8% 8% 0 0; background: var(--ct-gold);
    box-shadow: inset 0 0 0 2px var(--ct-gold-hi), inset 0 0 0 4px var(--ct-gold-lo), 0 30px 60px -30px color-mix(in srgb, var(--inv-text) 70%, transparent); }
@media (min-width: 760px) { .ct-portal { aspect-ratio: 16 / 10.4; } }
.ct-scene, .ct-drape { position: absolute; inset: var(--frame); border-radius: 50% 50% 0 0 / 7% 7% 0 0; }
.ct-scene { margin: 0; overflow: hidden; background: #0b0708; box-shadow: inset 0 0 0 2px var(--ct-gold-lo); }
.ct-scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-drape { width: calc(100% - 2 * var(--frame)); height: calc(100% - 2 * var(--frame)); pointer-events: none; }
/* the spotlight: everything beyond its pool of light falls into the dark of the stage */
.ct-spot { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 52% 62% at var(--sx, 50%) 46%, transparent 38%, rgba(8, 3, 4, .38) 70%, rgba(8, 3, 4, .78) 100%),
        linear-gradient(to bottom, rgba(8, 3, 4, .35), transparent 22%, transparent 78%, rgba(8, 3, 4, .45)); }
.kit-js .ct-scene img { filter: brightness(.35) saturate(.7); transition: filter 1.3s ease; }
.kit-js .ct-stage.is-lit .ct-scene img { filter: none; }
.kit-js .ct-spot { animation: ct-spot 14s ease-in-out 4s infinite alternate; }
@keyframes ct-spot { from { --sx: 44%; } to { --sx: 56%; } }
@property --sx { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
/* until the curtain has been drawn on canvas, the scene stays hidden (a failsafe shows it if the script never runs) */
.kit-js .ct-scene { opacity: 0; animation: ct-failsafe 0s 3.5s forwards; }
.kit-js .ct-stage.is-drawn .ct-scene { opacity: 1; }
@keyframes ct-failsafe { to { opacity: 1; } }

/* the cartouche with the initials, on the top of the frame */
.ct-crest { position: absolute; z-index: 3; left: 50%; top: 0; width: clamp(130px, 22vw, 200px); transform: translate(-50%, -46%); overflow: visible; filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--inv-text) 35%, transparent)); }
.ct-crest-body { fill: var(--inv-accent); stroke: var(--ct-gold-lo); stroke-width: 1.2; }
.ct-crest-rim { fill: color-mix(in srgb, var(--ct-cloth) 80%, black); stroke: var(--ct-gold-hi); stroke-width: 1.4; }
.ct-crest-scroll { fill: none; stroke: var(--inv-accent); stroke-width: 4; stroke-linecap: round; }
.ct-crest-leaf, .ct-crest-crown { fill: var(--inv-accent); stroke: var(--ct-gold-lo); stroke-width: .8; }
.ct-crest-text { font-family: var(--ct-script); font-size: 30px; fill: var(--ct-gold-hi); }

/* the apron in front of the stage, with its row of footlights */
.ct-apron { position: relative; height: clamp(16px, 2.6vw, 24px); margin: 0 calc(var(--frame) * -0.6); border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: linear-gradient(to bottom, var(--ct-gold-lo), color-mix(in srgb, var(--inv-accent) 40%, #2a160a) 40%, color-mix(in srgb, var(--inv-accent) 22%, #1a0d06));
    box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--inv-text) 70%, transparent); }
.ct-footlights { position: absolute; left: 8%; right: 8%; top: 3px; height: 8px;
    background: radial-gradient(circle, #fff3c8 0 2px, color-mix(in srgb, var(--inv-accent) 80%, #fff) 2.5px, transparent 4px) 0 0 / 24px 8px repeat-x; opacity: .35; }
.kit-js .ct-footlights { transition: opacity 1s ease .2s, filter 1s ease .2s; }
.ct-stage.is-lit .ct-footlights { opacity: 1; filter: drop-shadow(0 -2px 6px #ffe7a6) drop-shadow(0 -6px 14px color-mix(in srgb, var(--inv-accent) 70%, transparent)); }

.ct-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.cortina .ct-names { font-family: var(--ct-script); font-weight: 400; font-size: clamp(3.6rem, 13vw, 6.8rem); line-height: 1.12; color: var(--inv-primary); display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .22em; overflow-wrap: anywhere; margin: 0 0 10px; }
.ct-and { font-size: .5em; color: var(--ct-gilt); }
.ct-hero-date { font-family: var(--inv-font-heading); font-size: 1.24rem; margin: 0 0 4px; }
.ct-hero-place { font-size: .74rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ct-ink-soft); margin: 0; }
.cortina .ct-subtitle { max-width: 44ch; margin: 18px auto 0; color: var(--ct-ink-soft); }
@keyframes ct-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kit-js .ct-hero-text > * { animation: ct-rise 1.1s ease 2.6s both; }
.kit-js .ct-hero-text > :nth-child(n+3) { animation-delay: 3.2s; }

/* ---------- The small valance above titles ---------- */
.ct-swag { display: block; width: 128px; margin: 0 auto 10px; overflow: visible; }
.ct-swag-rod { stroke: var(--inv-accent); stroke-width: 3; stroke-linecap: round; }
.ct-swag-cloth { transform-box: view-box; transform-origin: 84px 5px; }
.ct-swag-drape { fill: var(--ct-cloth); }
.ct-swag-fold { fill: none; stroke: var(--ct-velvet-deep); stroke-width: 1.4; opacity: .7; }
.ct-swag-fringe { fill: none; stroke: var(--inv-accent); stroke-width: 3; stroke-dasharray: 1 2; }
.ct-swag-tassel { transform-box: view-box; transform-origin: 84px 5px; }
.ct-tassel-cord { stroke: var(--inv-accent); stroke-width: 1.2; }
.ct-tassel-knot, .ct-tassel-silk { fill: var(--inv-accent); }
.kit-js .ct-swag-cloth { transform: scaleY(0); }
.kit-js .ct-swag-tassel { opacity: 0; }
.kit-js .is-visible .ct-swag-cloth { animation: ct-drop 1.3s cubic-bezier(.3, 1.4, .5, 1) .2s both; }
.kit-js .is-visible .ct-swag-tassel { animation: ct-fade .5s ease calc(.9s + var(--d) * .12s) both; }
@keyframes ct-drop { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ct-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.ct-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.ct-section { padding-top: clamp(84px, 11vw, 130px); }
.ct-title { margin: 0 auto clamp(30px, 4.5vw, 46px); text-align: center; }
.ct-title h2 { font-size: clamp(1.8rem, 5.2vw, 2.6rem); }
.ct-welcome { text-align: center; max-width: 720px; margin: 0 auto; }
.ct-welcome p { font-size: 1.1rem; }
.cortina .ct-welcome-title { font-family: var(--ct-script); font-weight: 400; font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1.2; color: var(--inv-primary); margin-bottom: 14px; }
.ct-quote-author { font-family: var(--inv-font-heading); color: var(--inv-primary); }
.ct-lead { text-align: center; font-family: var(--inv-font-heading); font-size: 1.06rem; color: var(--ct-ink-soft); max-width: 42ch; margin: 0 auto 30px; }

/* Couple: portraits in gilded opera boxes, a velvet balcony below each */
.ct-couple-grid { display: grid; gap: 64px; justify-items: center; }
.ct-person { text-align: center; max-width: 380px; display: grid; justify-items: center; }
.ct-box { position: relative; width: min(250px, 62vw); margin-bottom: 26px; }
.ct-box-frame { margin: 0; aspect-ratio: 3 / 4; padding: 10px; border-radius: 50% 50% 46% 46% / 40% 40% 34% 34%; background: var(--ct-gold); box-shadow: var(--ct-shadow), inset 0 0 0 2px var(--ct-gold-lo); }
.ct-box-frame img, .ct-box-frame .ct-initial { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 0 0 2px var(--ct-gold-lo); }
.ct-initial { display: grid; place-items: center; background: var(--ct-velvet-deep); font-family: var(--ct-script); font-size: 5rem; color: var(--ct-gold-hi); }
/* the balcony: velvet with a gilt rail on top and a scalloped gilt edge below */
.ct-box-rail { position: absolute; left: -12%; right: -12%; bottom: -16px; height: 30%; border-radius: 10px 10px 46% 46% / 10px 10px 60% 60%;
    background: radial-gradient(circle at 50% 0, var(--inv-accent) 0 3px, transparent 3.5px) 0 calc(100% - 6px) / 22px 10px repeat-x, var(--ct-velvet);
    box-shadow: 0 -5px 0 -1px var(--inv-accent), 0 -7px 0 -1px var(--ct-gold-lo), 0 18px 26px -16px color-mix(in srgb, var(--inv-text) 70%, transparent), inset 0 -10px 18px rgba(0, 0, 0, .35); }
.ct-person h3 { font-size: 1.4rem; margin: 16px 0 8px; }
.ct-person p { color: var(--ct-ink-soft); }
@media (min-width: 760px) { .ct-couple-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Family: the cast list of a programme */
.ct-cast { max-width: 640px; margin: 0 auto; padding: 0; display: grid; gap: 18px; }
.ct-cast-row { display: flex; align-items: baseline; gap: 12px; }
.ct-cast-row::after { content: ""; order: 2; flex: 1; min-width: 24px; border-bottom: 2px dotted var(--ct-line); transform: translateY(-5px); }
.ct-cast dt { order: 1; font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ct-ink-soft); }
.ct-cast dd { order: 3; margin: 0; font-family: var(--inv-font-heading); font-size: 1.1rem; color: var(--inv-primary); text-align: right; }
@media (max-width: 559px) {
    .ct-cast { gap: 22px; }
    .ct-cast-row { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
    .ct-cast-row::after { order: 4; flex: none; width: 60px; transform: none; margin-top: 8px; }
    .ct-cast dd { text-align: center; }
}

/* Story: told in acts */
.ct-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 8vw, 88px); }
.ct-act { display: grid; gap: 30px; align-items: center; }
.ct-act-photo { margin: 0; aspect-ratio: 4 / 3; padding: 8px; background: var(--ct-gold); box-shadow: var(--ct-shadow); }
.ct-act-photo img { display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 0 0 2px var(--ct-gold-lo); }
.ct-act-number { font-family: var(--ct-script); font-size: 2.6rem; line-height: 1; color: var(--inv-primary); margin: 0 0 8px; }
.ct-act-text h3 { font-size: 1.5rem; margin-bottom: 8px; }
.ct-act-text p:not(.ct-kicker, .ct-act-number) { color: var(--ct-ink-soft); }
@media (min-width: 900px) {
    .ct-act { grid-template-columns: 1fr 1fr; gap: 60px; }
    .ct-act:nth-child(even) .ct-act-photo { order: 2; }
}

/* Programme: theatre tickets, the hour on a perforated stub (notches cut by a mask; the shadow sits on the li) */
.ct-tickets { list-style: none; margin: 0 auto; padding: 0; max-width: 700px; display: grid; gap: 30px; }
.ct-ticket { filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--inv-text) 22%, transparent)); }
.ct-ticket-card { --stub: clamp(96px, 24vw, 150px); display: grid; grid-template-columns: var(--stub) minmax(0, 1fr); background: var(--inv-surface); border-radius: 6px;
    -webkit-mask: radial-gradient(circle at var(--stub) 0, transparent 11px, #000 11.5px) top / 100% 51% no-repeat, radial-gradient(circle at var(--stub) 100%, transparent 11px, #000 11.5px) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle at var(--stub) 0, transparent 11px, #000 11.5px) top / 100% 51% no-repeat, radial-gradient(circle at var(--stub) 100%, transparent 11px, #000 11.5px) bottom / 100% 51% no-repeat; }
.ct-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px 8px; text-align: center; color: var(--ct-gold-hi);
    background: radial-gradient(120% 80% at 50% 0, color-mix(in srgb, var(--ct-cloth) 70%, #fff) 0, transparent 60%), var(--ct-cloth);
    border-right: 2px dashed color-mix(in srgb, var(--inv-surface) 70%, transparent); }
.ct-stub-label { font-size: .58rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin: 0; opacity: .85; }
.ct-stub-time { font-family: var(--inv-font-heading); font-size: clamp(1.25rem, 4.6vw, 1.75rem); line-height: 1.2; margin: 0; font-variant-numeric: tabular-nums; color: #fff8e6; }
.ct-stub-number { font-size: .66rem; letter-spacing: .14em; margin: 0; opacity: .8; }
.ct-ticket-body { padding: 24px clamp(18px, 4vw, 34px) 22px; text-align: left; border: 1px solid var(--ct-line); border-left: 0; border-radius: 0 6px 6px 0; }
.ct-ticket-body h3 { font-size: clamp(1.15rem, 3.8vw, 1.4rem); margin-bottom: 4px; }
.ct-ticket-date { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ct-gilt); margin: 0 0 10px; }
.ct-ticket-place { font-weight: 500; margin: 0; }
.ct-ticket-address, .ct-ticket-notes { color: var(--ct-ink-soft); margin: 0; }
.ct-ticket-notes { margin-top: 6px; }
.ct-admit { font-family: var(--ct-script); font-size: 1.6rem; line-height: 1.2; color: var(--inv-primary); margin: 10px 0 0; }
.ct-ticket-body .kit-event-actions { margin-top: 12px; }
.cortina .kit-button { border-radius: 999px; border: 1px solid var(--ct-gilt); color: var(--inv-primary); background: transparent; font-size: .8rem; font-weight: 500; padding: 7px 16px; text-decoration: none; }
.cortina .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: a theatre marquee framed by bulbs that chase each other round */
.ct-countdown { text-align: center; }
.ct-marquee { position: relative; max-width: 660px; margin: 0 auto; padding: clamp(40px, 6vw, 56px) clamp(22px, 5vw, 48px); border-radius: 18px;
    background: radial-gradient(80% 120% at 50% 0, color-mix(in srgb, var(--ct-cloth) 60%, #200307), var(--ct-velvet-deep));
    box-shadow: var(--ct-shadow), inset 0 0 0 3px var(--inv-accent), inset 0 0 0 5px var(--ct-gold-lo), inset 0 0 40px rgba(0, 0, 0, .45); }
/* the bulbs sit evenly round a ring (tiles fitted with repeat: round); a brighter copy is shown through a rotating
   conic mask, so groups of lit bulbs chase each other round the board */
@property --ct-chase { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ct-marquee::before, .ct-marquee::after { content: ""; position: absolute; inset: 6px; border-radius: 14px; padding: 12px; pointer-events: none;
    background: radial-gradient(circle, #fff6d2 0 2.4px, color-mix(in srgb, var(--inv-accent) 70%, #fff) 3px, transparent 4.4px) 0 0 / 22px 22px round; }
.ct-marquee::before { opacity: .45;
    -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; }
.ct-marquee::after { filter: drop-shadow(0 0 3px #ffe6a0);
    mask: repeating-conic-gradient(from var(--ct-chase), #000 0 14deg, transparent 18deg 32deg, #000 36deg 36deg), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: intersect, exclude; }
.kit-js .ct-countdown.is-visible .ct-marquee::after { animation: ct-chase 6s linear infinite; }
@keyframes ct-chase { to { --ct-chase: 360deg; } }
.ct-marquee .ct-kicker { color: var(--ct-gold-hi); }
.ct-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px clamp(14px, 4vw, 34px); margin-top: 6px; }
.ct-countdown .kit-countdown-unit { min-width: 60px; padding: 0; }
.ct-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.2; color: #fff4d8; text-shadow: 0 0 10px color-mix(in srgb, var(--inv-accent) 80%, transparent), 0 0 24px color-mix(in srgb, var(--inv-accent) 50%, transparent); font-variant-numeric: tabular-nums; }
.ct-countdown .kit-countdown-label { margin-top: 2px; opacity: 1; color: var(--ct-gold-hi); font-size: .62rem; font-weight: 500; letter-spacing: .2em; }

/* Gallery: gilt frames, as in a foyer */
.ct-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.ct-gallery-grid.kit-gallery a { aspect-ratio: 4 / 5; padding: 7px; background: var(--ct-gold); box-shadow: var(--ct-shadow); }
.ct-gallery-grid.kit-gallery a:nth-child(3n + 2) { border-radius: 50% 50% 4px 4px / 26% 26% 4px 4px; }
.ct-gallery-grid.kit-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 0 0 2px var(--ct-gold-lo); }
@media (min-width: 760px) { .ct-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* RSVP */
.ct-reply { max-width: 700px; margin: 0 auto; padding: clamp(42px, 6vw, 62px) clamp(28px, 6vw, 58px); }
.cortina .inv-rsvp__intro { font-family: var(--inv-font-heading); font-size: 1.02rem; }
.cortina .inv-rsvp__deadline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ct-gilt); }

/* Info, contact */
.ct-info-grid { display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ct-info-item { padding: 34px 28px 20px; text-align: center; }
.ct-info-item h3 { font-size: 1.2rem; color: var(--inv-primary); margin-bottom: 8px; }
.ct-faq { max-width: 720px; margin: 46px auto 0; text-align: center; }
.ct-faq details { text-align: left; border-bottom: 1px solid var(--ct-line); }
.ct-faq details:first-of-type { border-top: 1px solid var(--ct-line); }
.ct-faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 6px; position: relative; font-family: var(--inv-font-heading); font-size: 1.02rem; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::before, .ct-faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--inv-accent); transition: transform .35s ease; }
.ct-faq summary::after { transform: rotate(90deg); }
.ct-faq details[open] summary::after { transform: rotate(0); }
.ct-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; }
.ct-faq details p { padding: 0 6px; color: var(--ct-ink-soft); }
.ct-faq details p:last-child { padding-bottom: 16px; }
.ct-contact { text-align: center; }
.ct-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.ct-contact-person a { text-decoration: none; }

/* ---------- Footer: the curtain closes, a rose on the boards ---------- */
.ct-footer { text-align: center; padding: clamp(110px, 15vw, 170px) 16px 70px; overflow-x: hidden; overflow-x: clip; }
.ct-finale { width: min(300px, 76vw); margin: 0 auto 30px; }
.ct-finale-portal { position: relative; aspect-ratio: 4 / 3; padding: 8px; border-radius: 50% 50% 0 0 / 12% 12% 0 0; background: var(--ct-gold); box-shadow: inset 0 0 0 2px var(--ct-gold-lo), var(--ct-shadow); }
.ct-finale-glow { position: absolute; inset: 8px; border-radius: 50% 50% 0 0 / 11% 11% 0 0; background: radial-gradient(60% 70% at 50% 60%, color-mix(in srgb, var(--inv-accent) 60%, #fff3d0), #1a0e08 80%); }
.ct-finale-half { position: absolute; top: 8px; bottom: 0; width: calc(50% - 6px); background: var(--ct-velvet), var(--ct-cloth); box-shadow: inset 0 18px 22px -10px rgba(0, 0, 0, .55), inset 0 -10px 16px -8px rgba(0, 0, 0, .4); transform: scaleX(1); }
.ct-finale-half.is-left { left: 8px; transform-origin: 0 50%; border-radius: 40% 0 0 0 / 8% 0 0 0; }
.ct-finale-half.is-right { right: 8px; transform-origin: 100% 50%; border-radius: 0 40% 0 0 / 0 8% 0 0; }
.ct-finale-valance { position: absolute; left: 8px; right: 8px; top: 8px; height: 22%; border-radius: 50% 50% 0 0 / 50% 50% 0 0;
    background: linear-gradient(to bottom, var(--ct-velvet-deep), var(--ct-velvet-hi) 55%, var(--ct-cloth) 80%, var(--ct-velvet-deep));
    -webkit-mask: radial-gradient(circle at 50% 0, #000 69%, transparent 71%) 0 100% / 25% 14px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 13px) no-repeat;
    mask: radial-gradient(circle at 50% 0, #000 69%, transparent 71%) 0 100% / 25% 14px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 13px) no-repeat; }
.kit-js .ct-finale-half { transform: scaleX(.2); }
.kit-js .ct-footer.is-visible .ct-finale-half { animation: ct-close 2.2s cubic-bezier(.45, .05, .25, 1) .5s both; }
@keyframes ct-close { from { transform: scaleX(.2); } 86% { transform: scaleX(1.03); } to { transform: scaleX(1); } }
.ct-finale-boards { position: relative; height: 22px; margin: 0 -10px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(to bottom, var(--ct-gold-lo), color-mix(in srgb, var(--inv-accent) 30%, #1f1008)); }
.ct-rose { position: absolute; left: 50%; bottom: 8px; width: 92px; transform: translateX(-36%); overflow: visible; }
.ct-rose-stem { fill: none; stroke: color-mix(in srgb, #4d7a3c 80%, var(--inv-text)); stroke-width: 2.6; stroke-linecap: round; }
.ct-rose-leaf { fill: color-mix(in srgb, #4d7a3c 85%, var(--inv-text)); }
.ct-rose-petal { fill: color-mix(in srgb, var(--ct-cloth) 45%, #b8213a); }
.ct-rose-curl { fill: none; stroke: color-mix(in srgb, var(--ct-cloth) 40%, #5a0a18); stroke-width: 1.4; stroke-linecap: round; }
.kit-js .ct-rose { opacity: 0; }
.kit-js .ct-footer.is-visible .ct-rose { animation: ct-toss 1.1s cubic-bezier(.3, .6, .4, 1) 2.8s both; }
@keyframes ct-toss { from { opacity: 0; transform: translate(10%, -160px) rotate(-120deg); } 70% { opacity: 1; transform: translate(-40%, 4px) rotate(8deg); } to { opacity: 1; transform: translateX(-36%); } }
.ct-footer-message { font-family: var(--inv-font-heading); font-size: 1.06rem; color: var(--ct-ink-soft); }
.cortina .ct-footer-names { font-family: var(--ct-script); font-size: clamp(3.2rem, 10.5vw, 5rem); line-height: 1.2; color: var(--inv-primary); margin: 6px 0 10px; }
.ct-hashtag { letter-spacing: .12em; color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    .kit-js .ct-hero-text > *, .kit-js .ct-spot, .kit-js .is-visible .ct-swag-cloth, .kit-js .is-visible .ct-swag-tassel, .kit-js .ct-countdown.is-visible .ct-marquee::after { animation: none; }
    .kit-js .ct-swag-cloth { transform: none; }
    .kit-js .ct-swag-tassel { opacity: 1; }
    .kit-js .ct-scene img, .kit-js .ct-footlights { transition: none; }
    .kit-js .ct-finale-half, .kit-js .ct-footer.is-visible .ct-finale-half { animation: none; transform: scaleX(1); }
    .kit-js .ct-rose, .kit-js .ct-footer.is-visible .ct-rose { animation: none; opacity: 1; }
}
