/**
 * Homepage only. The hero is an awards stage: the curtains open on page load on a
 * lit Now Showing marquee, and close again as you scroll past.
 */
:root {
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --glide: cubic-bezier(0.16, 1, 0.3, 1);
    --stage-gold: #f0c766;
    --intro: 0.95s;
    --p: 0;
    --c: 0;
}

/* The curtains only play on the first homepage view of a visit */
.intro-seen { --intro: 0.05s; }

/* --- Stage -------------------------------------------------------------- */
.hx-pin { margin-top: -3.5rem; }

.hx {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
    overflow: hidden;
    padding: 9.5rem 0 4.5rem;
    background:
        radial-gradient(38% 30% at 72% 88%, rgba(240, 199, 102, 0.42), transparent 72%),
        radial-gradient(70% 60% at 72% 100%, rgba(224, 165, 38, 0.2), transparent 70%),
        radial-gradient(90% 70% at 20% 0, rgba(53, 80, 160, 0.42), transparent 70%),
        var(--navy-deep);
    color: #fff;
}

.hx-grid { position: relative; z-index: 3; width: 100%; }
.hx-copy { padding: 0; }

.hx .kicker { color: var(--stage-gold); }
.hx-lead { color: rgba(255, 255, 255, 0.82); }
.hx .code-box label { color: #fff; }
.hx .code-box-row { border-color: transparent; box-shadow: 0 18px 40px rgba(3, 10, 34, 0.45); }
.hx .link-arrow { color: #fff; }
.hx .link-arrow:hover { color: var(--stage-gold); }
.hx-ussd { color: rgba(255, 255, 255, 0.76); }
.hx-ussd strong { color: #fff; }
.hx :focus-visible { outline-color: var(--stage-gold); }

/* Lights */
.hx-lights { position: absolute; inset: 0; z-index: 1; opacity: calc(1 - var(--p) * 1.2); pointer-events: none; }

/* Soft cones that sweep into place once and then hold still. Keeping them moving
   or blurring them cost over half the frame rate on weak devices. */
.beam {
    position: absolute;
    top: -10%;
    width: 60vw;
    height: 128%;
    margin-left: -30vw;
    transform-origin: 50% 0;
    rotate: var(--to);
    animation:
        beam-on 1.1s calc(var(--intro) + var(--b, 0) * 160ms) ease-out backwards,
        beam-sweep 2.6s calc(var(--intro) + var(--b, 0) * 160ms) var(--glide) backwards;
}

.beam::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 165deg at 50% 0,
        transparent 0deg,
        rgba(200, 216, 255, 0.34) 12deg,
        rgba(200, 216, 255, 0.46) 15deg,
        rgba(200, 216, 255, 0.34) 18deg,
        transparent 30deg);
    -webkit-mask-image: linear-gradient(#000 12%, rgba(0, 0, 0, 0.4) 52%, transparent 86%);
    mask-image: linear-gradient(#000 12%, rgba(0, 0, 0, 0.4) 52%, transparent 86%);
}

.beam-1 { --b: 0; --from: -26deg; --to: 5deg; left: 74%; }
.beam-2 { --b: 1; --from: 34deg; --to: 7deg; left: 95%; }
.beam-3 { --b: 2; --from: -42deg; --to: -11deg; left: 44%; }

@keyframes beam-on { from { opacity: 0; } }
@keyframes beam-sweep { from { rotate: var(--from); } }

/* Gold sparks that pop on with the lights */
.hx-sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hx-sparks i {
    position: absolute;
    width: var(--s, 14px);
    height: var(--s, 14px);
    background: var(--stage-gold);
    clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
    opacity: 0;
    animation: spark 4.6s calc(var(--intro) + var(--k) * 340ms + 0.5s) ease-in-out infinite;
}

.hx-sparks i:nth-child(1) { --k: 0; --s: 16px; top: 19%; left: 53%; }
.hx-sparks i:nth-child(2) { --k: 3; --s: 10px; top: 30%; left: 92%; }
.hx-sparks i:nth-child(3) { --k: 1; --s: 12px; top: 72%; left: 94%; }
.hx-sparks i:nth-child(4) { --k: 5; --s: 9px; top: 16%; left: 33%; }
.hx-sparks i:nth-child(5) { --k: 2; --s: 18px; top: 84%; left: 50%; }
.hx-sparks i:nth-child(6) { --k: 4; --s: 11px; top: 13%; left: 76%; }

@keyframes spark {
    0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
    18% { opacity: 1; transform: scale(1.15) rotate(45deg); }
    34% { opacity: 0.85; transform: scale(0.9) rotate(70deg); }
    55% { opacity: 0; transform: scale(0.3) rotate(120deg); }
}

/* Nothing on the stage needs to move while it is out of sight */
.hx.is-resting .hx-sparks i,
.hx.is-resting .lead-card { animation-play-state: paused; }

/* Edge of the stage */
.hx-hem {
    position: absolute;
    inset: auto 0 0;
    z-index: 4;
    height: 10px;
    background: var(--kente) repeat-x left center / 120px 10px;
}

/* Curtains */
.hx-curtain { position: absolute; inset: 0; z-index: 6; pointer-events: none; }

.hx-curtain span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 20%, transparent 74%, rgba(0, 0, 0, 0.42)),
        repeating-linear-gradient(90deg, #66081a 0, #a50e28 2.4%, #c8102e 4%, #a50e28 5.8%, #66081a 8.2%);
}

.hx-curtain span::after {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: 12px;
    background: linear-gradient(90deg, #96690a, var(--gold) 40%, var(--stage-gold) 60%, #96690a);
}

.hx-curtain .cur-l {
    left: 0;
    translate: -101% 0;
    transform: translateX(calc(var(--c) * 101%));
    animation: curtain-l 1.5s 0.1s cubic-bezier(0.7, 0, 0.2, 1) backwards;
}

.hx-curtain .cur-r {
    right: 0;
    translate: 101% 0;
    transform: translateX(calc(var(--c) * -101%)) scaleX(-1);
    animation: curtain-r 1.5s 0.1s cubic-bezier(0.7, 0, 0.2, 1) backwards;
}

@keyframes curtain-l { from { translate: 0 0; } }
@keyframes curtain-r { from { translate: 0 0; } }

.intro-seen .hx-curtain span { animation: none; }

/* The closed curtain has its own moment before the page moves on */
.hx-call {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 5rem 1rem 0;
    color: #fff;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.72) translateY(30px);
    transition: opacity 0.3s, transform 0.65s var(--spring);
}

.hx.is-closed .hx-call { opacity: 1; transform: none; }

.hx-call img {
    width: clamp(110px, 12vw, 150px);
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

.hx-call p {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-shadow: 0 6px 26px rgba(0, 0, 0, 0.5);
}

/* --- Headline ----------------------------------------------------------- */
.hx-title { color: #fff; }

/* Sized by height as well, so the whole hero fits a 768px laptop screen */
@media (min-width: 992px) {
    .hx-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 2.5rem; }
    .hx-title { font-size: clamp(2.75rem, min(5.3vw, 9.4vh), 5.25rem); }
    .hx-line > span { white-space: nowrap; }
}

/* The extra space keeps the tails of g and y inside the mask */
.hx-line { overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }

.hx-line > span {
    display: block;
    animation: line-up 1.05s calc(var(--intro) + var(--i) * 120ms) var(--glide) backwards;
}

@keyframes line-up {
    from { transform: translateY(112%) rotate(3deg); transform-origin: 0 100%; }
}

.hx-stage {
    color: var(--gold);
    background: linear-gradient(100deg, var(--gold) 38%, #fff6d8 50%, var(--gold) 62%) 120% 0 / 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: stage-shine 1.5s calc(var(--intro) + 0.95s) ease-out both;
}

@keyframes stage-shine {
    from { background-position: 120% 0; }
    to { background-position: -30% 0; }
}

.hx-in { animation: lift 0.9s calc(var(--intro) + var(--i) * 110ms) var(--glide) backwards; }

@keyframes lift { from { opacity: 0; transform: translateY(26px); } }

/* --- Now showing marquee -------------------------------------------------- */
.hx-show {
    position: relative;
    transform: translateY(calc(var(--p) * -4vh)) scale(calc(1 + var(--p) * 0.05));
}

.mq {
    --bulb: 22px;
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(240, 199, 102, 0.55);
    border-radius: 18px;
    background: linear-gradient(160deg, #0d2466, #081540);
    box-shadow: 0 0 0 6px rgba(8, 21, 64, 0.9), 0 0 0 7px rgba(240, 199, 102, 0.35), 0 34px 70px rgba(2, 8, 30, 0.6), 0 0 70px rgba(240, 199, 102, 0.14);
    animation: mq-pop 1s calc(var(--intro) + 0.25s) var(--spring) backwards;
}

@keyframes mq-pop { from { opacity: 0; transform: translateY(70px) scale(0.72); } }

/* Theatre bulbs: two sets take turns, so the light seems to run round the frame */
.mq::before,
.mq::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 13px;
    pointer-events: none;
    background:
        radial-gradient(circle, #fff3c9 0 2.5px, rgba(240, 199, 102, 0.45) 3px, transparent 6px) 0 0 / var(--bulb) 12px repeat-x,
        radial-gradient(circle, #fff3c9 0 2.5px, rgba(240, 199, 102, 0.45) 3px, transparent 6px) 0 100% / var(--bulb) 12px repeat-x,
        radial-gradient(circle, #fff3c9 0 2.5px, rgba(240, 199, 102, 0.45) 3px, transparent 6px) 0 0 / 12px var(--bulb) repeat-y,
        radial-gradient(circle, #fff3c9 0 2.5px, rgba(240, 199, 102, 0.45) 3px, transparent 6px) 100% 0 / 12px var(--bulb) repeat-y;
}

.mq::after {
    background-position: calc(var(--bulb) / 2) 0, calc(var(--bulb) / 2) 100%, 0 calc(var(--bulb) / 2), 100% calc(var(--bulb) / 2);
    opacity: 0;
    animation: bulbs 1.5s calc(var(--intro) + 1.2s) steps(1) infinite;
}

.mq::before { opacity: 0.35; }

@keyframes bulbs { 50% { opacity: 1; } }

.hx.is-resting .mq::after { animation-play-state: paused; }

.mq-screen {
    position: relative;
    z-index: 1;
    height: min(424px, 56vh);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 8px;
    background: #050d2b;
}

.mq-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.mq-slide.is-on { opacity: 1; visibility: visible; }

/* Any shape of poster shows in full, over a soft copy of itself */
.mq-backdrop {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    filter: blur(16px) brightness(0.5);
}

.mq-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.05);
    transition: transform 1.3s var(--glide);
}

.mq-slide.is-on .mq-poster { transform: none; }

.mq-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.25rem 0.5rem 0.25rem 0;
}

.mq-sign {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 0.9rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--stage-gold);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stage-gold);
}

.mq-details { display: grid; flex: 1; }

.mq-info {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.45s, transform 0.6s var(--glide), visibility 0.45s;
}

.mq-info.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0.15s; }

.mq-title {
    display: -webkit-box;
    margin: 0 0 0.45rem;
    overflow: hidden;
    font-size: clamp(1.25rem, 1.75vw, 1.625rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: #fff;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mq-state { margin: 0 0 0.9rem; font-size: 0.9375rem; font-weight: 600; color: var(--stage-gold); }

.mq-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 6px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.mq-action i { transition: transform 0.3s var(--ease); }
.mq-action:hover { background: #eeb73a; color: var(--ink); }
.mq-action:hover i { transform: translateX(3px); }

.mq-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 1rem;
}

.mq-thumb {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    outline: 2px solid transparent;
    outline-offset: 1px;
    opacity: 0.6;
    transition: opacity 0.25s, outline-color 0.25s, transform 0.3s var(--spring);
}

.mq-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mq-thumb:hover { opacity: 1; transform: translateY(-2px); }
.mq-thumb.is-on { opacity: 1; outline-color: var(--stage-gold); }

.hx .lead-card {
    left: -1.75rem;
    bottom: -1.25rem;
    z-index: 3;
    color: var(--ink);
    animation:
        lead-pop 0.8s calc(var(--intro) + 1s) var(--spring) backwards,
        lead-float 6s calc(var(--intro) + 1.8s) ease-in-out infinite;
}

@keyframes lead-pop { from { opacity: 0; scale: 0.3; } }
@keyframes lead-float { 50% { translate: 0 -8px; } }

/* --- The clock ------------------------------------------------------------- */
.clock {
    position: relative;
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    background:
        radial-gradient(60% 80% at 15% 0, rgba(53, 80, 160, 0.4), transparent 70%),
        var(--navy-deep);
}

.clock::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: var(--kente) repeat-x left center / 96px 8px;
}

.clock-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.clock-grid.is-solo { grid-template-columns: minmax(0, 1fr); }

.clock h2 {
    margin: 0 0 0.9rem;
    font-size: clamp(1.875rem, 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.016em;
}

.clock-for { margin: 0 0 1.25rem; font-size: 1rem; color: rgba(255, 255, 255, 0.78); }
.clock-for a { font-weight: 700; color: var(--stage-gold); text-underline-offset: 3px; }

.flip { display: flex; flex-wrap: wrap; gap: clamp(0.4rem, 1vw, 0.65rem); margin-bottom: 1.5rem; perspective: 500px; }

.flip-unit { flex: 1 1 0; min-width: 0; max-width: 5.75rem; text-align: center; }

.flip-tile {
    position: relative;
    display: block;
    padding: 0.5rem 0.25rem 0.45rem;
    overflow: hidden;
    border: 1px solid rgba(240, 199, 102, 0.3);
    border-radius: 10px;
    background: linear-gradient(180deg, #17307f 0 49.6%, #030b2c 49.6% 50.4%, #0f2260 50.4% 100%);
    box-shadow: 0 14px 26px rgba(2, 8, 30, 0.5);
    font-family: var(--display);
    font-size: clamp(1.625rem, 3vw, 2.375rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums lining-nums;
}

.flip-tile.is-ticking { animation: flip-tick 0.45s var(--glide); }

@keyframes flip-tick {
    from { transform: rotateX(-70deg); color: var(--stage-gold); }
}

.flip-unit small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.clock-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.clock-action i { transition: transform 0.3s var(--ease); }
.clock-action:hover { background: #eeb73a; color: var(--ink); }
.clock-action:hover i { transform: translateX(4px); }

.clock-people-head {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--stage-gold);
}

.nom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
    max-width: 32rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nom {
    display: block;
    height: 100%;
    padding: 0.4rem 0.4rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    transition: transform 0.35s var(--spring), border-color 0.25s, background 0.25s;
}

.nom:hover { color: #fff; border-color: var(--stage-gold); background: rgba(255, 255, 255, 0.09); transform: translateY(-5px); }

.nom img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 0.4rem;
    border-radius: 7px;
    object-fit: cover;
    background: var(--navy);
}

.nom strong {
    display: block;
    overflow: hidden;
    font-family: var(--display);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nom span {
    display: block;
    overflow: hidden;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.68);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The tiles pop in one by one, and so do the faces */
.js .clock-main.rv { opacity: 1; transform: none; }

.js .clock-main.rv .flip-unit {
    opacity: 0;
    transform: translateY(26px) scale(0.75);
    transition: opacity 0.4s, transform 0.75s var(--spring);
}

.js .clock-main.rv .flip-unit:nth-child(2) { transition-delay: 90ms; }
.js .clock-main.rv .flip-unit:nth-child(3) { transition-delay: 180ms; }
.js .clock-main.rv .flip-unit:nth-child(4) { transition-delay: 270ms; }
.js .clock-main.rv.in .flip-unit { opacity: 1; transform: none; }

.js .nom-grid > .rv { transition: opacity 0.45s var(--d, 0ms), transform 0.75s var(--spring) var(--d, 0ms); }
.js .nom-grid > .rv:not(.in) { transform: translateY(34px) scale(0.82); }

/* --- Pinned scroll, on screens with room for it -------------------------- */
@media (min-width: 992px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
    .js .hx-pin { height: 175vh; }
    .hx { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 6.25rem 0 2.5rem; }
    .hx-copy { opacity: calc(1 - var(--p) * 2.1); transform: translateY(calc(var(--p) * -70px)); }
}

/* --- Reading progress ---------------------------------------------------- */
.read-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1040;
    height: 6px;
    background: var(--navy);
    transform: scaleX(var(--read, 0));
    transform-origin: 0 50%;
    pointer-events: none;
}

/* --- Sections as you scroll ---------------------------------------------- */
/* Headings wipe up from behind a line */
.js .sec-head.rv,
.js .how-intro.rv { opacity: 1; transform: none; }

/* Only ever clip a child of the watched element: a fully clipped element never
   counts as on screen, so it would stay hidden for good */
.js .sec-head.rv h2,
.js .how-intro.rv h2 {
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.5em);
    transition: clip-path 0.95s var(--glide), transform 0.95s var(--glide);
}

.js .sec-head.rv.in h2,
.js .how-intro.rv.in h2 {
    clip-path: inset(-10% -5% -15% -5%);
    transform: none;
}

/* Figures pop one after another */
.js .figures-row.rv { opacity: 1; transform: none; }

.js .figures-row.rv > div {
    opacity: 0;
    transform: translateY(26px) scale(0.8);
    transition: opacity 0.45s, transform 0.75s var(--spring);
}

.js .figures-row.rv > div:nth-child(2) { transition-delay: 90ms; }
.js .figures-row.rv > div:nth-child(3) { transition-delay: 180ms; }
.js .figures-row.rv > div:nth-child(4) { transition-delay: 270ms; }
.js .figures-row.rv.in > div { opacity: 1; transform: none; }

/* Event cards and steps pop up */
.js .ev-grid > .rv,
.js .steps li.rv,
.js .why-list > .rv {
    transition: opacity 0.45s var(--d, 0ms), transform 0.8s var(--spring) var(--d, 0ms);
}

.js .ev-grid > .rv:not(.in) { transform: translateY(46px) scale(0.84) rotate(-1.5deg); }
.js .ev-grid > .rv:nth-child(even):not(.in) { transform: translateY(46px) scale(0.84) rotate(1.5deg); }
.js .steps li.rv:not(.in),
.js .why-list > .rv:not(.in) { transform: translateY(30px) scale(0.92); }

.js .steps li.rv:nth-child(2) { --d: 90ms; }
.js .steps li.rv:nth-child(3) { --d: 180ms; }
.js .steps li.rv:nth-child(4) { --d: 270ms; }
.js .why-list > .rv:nth-child(2) { --d: 90ms; }
.js .why-list > .rv:nth-child(3) { --d: 180ms; }
.js .why-list > .rv:nth-child(4) { --d: 270ms; }

/* Ticket stubs slide in like they are being torn off */
.js .stub.rv:not(.in) { transform: translateX(-60px) rotate(-1deg); }

/* The emblem spins up onto the organizers panel */
.js .host-inner.rv .host-emblem { transition: transform 1s var(--spring) 0.15s; }
.js .host-inner.rv:not(.in) .host-emblem { transform: rotate(-24deg) scale(0.5); }

/* --- Pop-ups: the vote and ticket windows spring open --------------------- */
.modal.fade .pay-modal {
    transform: translateY(48px) scale(0.86);
    transition: transform 0.5s var(--spring);
}

.modal.show .pay-modal { transform: none; }

/* --- Smaller screens ------------------------------------------------------ */
@media (max-width: 991.98px) {
    .hx { display: block; margin-top: 0; padding: 7.25rem 0 3rem; }
    .hx-copy { padding: 0 0 1.5rem; }
    .mq { grid-template-columns: minmax(0, 1fr); max-width: 30rem; margin: 0.5rem auto 0; padding: 1.25rem; }
    .mq-screen { width: 100%; height: auto; }
    .mq-panel { padding: 0; }
    .mq-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .mq-title { font-size: 1.375rem; }
    .hx .lead-card { position: relative; left: auto; bottom: auto; width: fit-content; margin: 1rem auto 0; }
    .clock-grid { grid-template-columns: minmax(0, 1fr); }
    .beam { width: 150vw; margin-left: -75vw; }
    .beam-1 { left: 62%; }
    .beam-2, .hx-sparks i:nth-child(n + 5) { display: none; }
    .beam-3 { left: 12%; }
    .read-bar { height: 4px; }
}

@media (max-width: 575.98px) {
    .flip-tile { font-size: clamp(1.5rem, 8vw, 2rem); }
    .nom strong { font-size: 0.8125rem; }
    .nom span { font-size: 0.6875rem; }
}

/* --- A calm page for people who ask for one ------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hx-curtain, .hx-call, .hx-sparks, .read-bar { display: none; }
    .beam { animation: none; }
    .hx-stage { background: none; -webkit-text-fill-color: var(--gold); }
    .hx-line > span, .hx-in, .mq, .mq::after, .hx .lead-card, .flip-tile.is-ticking { animation: none; }
    .js .clock-main.rv .flip-unit { opacity: 1; transform: none; }
    .js .nom-grid > .rv:not(.in) { transform: none; }
    .js .sec-head.rv h2, .js .how-intro.rv h2 { clip-path: none; transform: none; }
    .js .figures-row.rv > div { opacity: 1; transform: none; }
    .js .ev-grid > .rv:not(.in), .js .ev-grid > .rv:nth-child(even):not(.in),
    .js .steps li.rv:not(.in), .js .why-list > .rv:not(.in),
    .js .stub.rv:not(.in),
    .js .host-inner.rv:not(.in) .host-emblem { transform: none; }
    .modal.fade .pay-modal { transform: none; }
}
