:root {
    --bg: #F5F6FB;
    --bg-deep: #ECEEF7;
    --surface: #FFFFFF;
    --navy: #000052;
    --navy-soft: #23245F;
    --ink: #000052;
    --ink-soft: #565B7E;
    --ink-soft2: #565B7E;
    --gold: #FCB315;
    --gold-deep: #C98A00;
    --gold-tint: #FEEFCD;
    --green: #2E6B52;
    --green-tint: #D7E6DD;
    --maroon: #DB1E37;
    --maroon-tint: #FBDDE1;
    --rule: #E1E3F0;
    --rule-strong: #CDD1E8;
    --shadow: 0 18px 40px -18px rgba(0, 0, 82, 0.22);
    --radius: 2px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(1100px 500px at 12% -8%, rgba(252, 179, 21, 0.07), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(0, 0, 82, 0.05), transparent 55%),
        var(--bg);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: var(--gold-tint);
    color: var(--ink);
}

a {
    color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        animation: fadeUp .7s cubic-bezier(.2, .7, .3, 1) both;
    }

    .fade-up.d1 {
        animation-delay: .08s;
    }

    .fade-up.d2 {
        animation-delay: .16s;
    }

    .fade-up.d3 {
        animation-delay: .24s;
    }

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(14px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .card-in {
        animation: cardIn .5s cubic-bezier(.2, .7, .3, 1) both;
    }

    @keyframes cardIn {
        from {
            opacity: 0;
            transform: translateY(10px) scale(.985);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

/* ---------- Shared container (keeps every section on the same left/right edge) ---------- */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 6vw;
}

/* ---------- Info strip ---------- */
.infostrip {
    background: var(--navy);
    color: #C7CAE6;
    font-family: 'Inter', sans-serif;
    font-size: .76rem;
    padding: 9px 0;
}

.infostrip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.infostrip .left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.infostrip .left span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.infostrip .right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.infostrip a {
    text-decoration: none;
    color: inherit;
}

.infostrip .socials {
    display: flex;
    gap: 10px;
}

.infostrip .socials a {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

.infostrip .socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

/* ---------- Top bar (sticky) ---------- */
.topbar-wrap {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 2px 0 rgba(0, 0, 82, 0.02);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6vw;
}

.brand {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.005em;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark-img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft2);
    margin-top: 2px;
}

nav.mainnav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--navy-soft);
}

nav.mainnav a {
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

nav.mainnav a.active {
    color: var(--gold-deep);
}

nav.mainnav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gold);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cta-mini {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: .8rem;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s ease;
}

.cta-mini:hover {
    filter: brightness(0.94);
}

/* ---------- Logged-in user chip ---------- */
.user-chip {
    position: relative;
}

.user-chip-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 1px solid var(--rule-strong);
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    transition: border-color .15s ease;
}

.user-chip-btn:hover {
    border-color: var(--gold);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    font-weight: 600;
    flex-shrink: 0;
}

.user-name {
    font-size: .84rem;
    font-weight: 600;
}

.user-chip-btn svg {
    color: var(--ink-soft2);
    flex-shrink: 0;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    box-shadow: var(--shadow);
    flex-direction: column;
    z-index: 210;
}

.user-dropdown.open {
    display: flex;
}

.user-dropdown a,
.user-dropdown .logout-btn {
    text-decoration: none;
    color: var(--ink);
    font-size: .86rem;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    width: 100%;
    border-bottom: 1px solid var(--rule);
}

.user-dropdown a:hover,
.user-dropdown .logout-btn:hover {
    background: var(--bg);
}

.user-dropdown .logout-btn {
    color: var(--maroon);
    font-weight: 600;
    border-bottom: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    display: block;
}

.mobile-menu {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    width: 78vw;
    max-width: 300px;
    background: var(--surface);
    z-index: 300;
    padding: 26px 24px;
    box-shadow: -16px 0 40px rgba(0, 0, 82, 0.18);
    transform: translateX(100%);
    transition: transform .3s ease;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 4px;
    border-bottom: 1px solid var(--rule);
}

.mobile-menu a.active {
    color: var(--gold-deep);
}

.menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 82, 0.35);
    z-index: 290;
}

.menu-backdrop.open {
    display: block;
}

.menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--ink);
    margin-bottom: 10px;
}

.mobile-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 4px;
    border-top: 1px solid var(--rule);
}

.mobile-user-chip .user-name {
    flex: 1;
}

.mobile-user-chip .logout-btn {
    background: none;
    border: 1px solid var(--maroon);
    color: var(--maroon);
    font-weight: 600;
    font-size: .78rem;
    padding: 7px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 780px) {
    nav.mainnav {
        display: none;
    }

    .cta-mini {
        display: none;
    }

    .user-chip {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .infostrip .left span:not(:first-child) {
        display: none;
    }
}

/* ---------- Hero (kept for anything still referencing it) ---------- */
.hero {
    padding: 64px 6vw 30px;
    max-width: 1180px;
    margin: 0 auto;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--gold-deep);
    display: inline-block;
}

h1.headline {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-optical-sizing: auto;
    font-size: clamp(2.3rem, 4.6vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    max-width: 14ch;
}

h1.headline em {
    font-style: italic;
    color: var(--gold-deep);
}

.sub {
    font-size: 1.02rem;
    color: var(--ink-soft2);
    max-width: 52ch;
    line-height: 1.6;
    margin: 0 0 40px;
}

/* ---------- Premium hero banner ---------- */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #000052 0%, #131660 45%, #23245F 100%);
    padding: 84px 0 128px;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(560px 420px at 88% 8%, rgba(252, 179, 21, 0.16), transparent 60%),
        radial-gradient(420px 320px at 8% 100%, rgba(219, 30, 55, 0.14), transparent 60%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 34px);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-banner .eyebrow {
    color: var(--gold);
}

.hero-banner .eyebrow::before {
    background: var(--gold);
}

.hero-banner h1.headline {
    color: #fff;
    max-width: 12ch;
}

.hero-banner h1.headline em {
    color: var(--gold);
}

.hero-banner .sub {
    color: #B9BCDE;
    max-width: 46ch;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-stat strong {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.hero-stat span {
    font-family: 'Inter', sans-serif;
    font-size: .74rem;
    color: #9EA2C9;
    letter-spacing: .02em;
}

/* ---------- Floating orbit visual ---------- */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 353px;
    margin: 0 auto;
}

.orbit-ring {
    position: absolute;
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.orbit-ring.r1 {
    inset: 18px;
}

.orbit-ring.r2 {
    inset: 64px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.09);
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #F0C24A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 48px -12px rgba(252, 179, 21, 0.45);
}

.orbit-node {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .76rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.orbit-node .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.orbit-node.n1 {
    top: 6%;
    left: 2%;
}

.orbit-node.n2 {
    top: 2%;
    right: 6%;
}

.orbit-node.n3 {
    top: 44%;
    right: -4%;
}

.orbit-node.n4 {
    bottom: 10%;
    right: 10%;
}

.orbit-node.n5 {
    bottom: 4%;
    left: 6%;
}

@media (prefers-reduced-motion: no-preference) {
    .orbit-node {
        animation: orbitFloat 5s ease-in-out infinite;
    }

    .orbit-node.n2 {
        animation-delay: .4s;
    }

    .orbit-node.n3 {
        animation-delay: .8s;
    }

    .orbit-node.n4 {
        animation-delay: 1.2s;
    }

    .orbit-node.n5 {
        animation-delay: 1.6s;
    }

    @keyframes orbitFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-banner {
        padding: 56px 0 108px;
    }
}

/* ---------- Docked search card (overlaps the hero/body seam) ---------- */
.search-dock-wrap {
    position: relative;
    z-index: 20;
}

.search-dock {
    margin-top: -64px;
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 82, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 780px) {
    .search-dock {
        margin-top: -40px;
        border-radius: 14px;
        padding: 12px;
    }
}

.notice-wrap {
    margin: 30px auto 0;
}

.notice-wrap .notice {
    margin-bottom: 0;
}

/* ---------- Progress notice (torn paper strip) ---------- */
.notice {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-left: 3px solid var(--green);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 38px;
    box-shadow: var(--shadow);
}

.notice-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notice-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px var(--green-tint);
    flex-shrink: 0;
}

.notice-title {
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .02em;
}

.notice-sub {
    font-size: .78rem;
    color: var(--ink-soft2);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
}

.notice-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
}

.notice-link:hover {
    text-decoration: underline;
}

/* ---------- Search / filter row ---------- */
.controls {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.search-card {
    flex: 1 1 320px;
    min-width: 0;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: 4px 4px 4px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 18px;
    width: 26px;
    height: 12px;
    background: var(--gold-tint);
    border: 1px solid var(--rule-strong);
    border-bottom: none;
}

.search-card input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 13px 6px 13px 0;
    flex: 1;
    color: var(--ink);
    min-width: 0;
}

.search-card input::placeholder {
    color: #9EA2C0;
}

.search-icon {
    color: var(--ink-soft2);
    flex-shrink: 0;
}

select.filter {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0L5 6L10 0' fill='none' stroke='%235A6480' stroke-width='1.4'/></svg>") no-repeat right 16px center;
    border: 1px solid var(--rule);
    padding: 13px 38px 13px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--ink);
    min-width: 170px;
    cursor: pointer;
}

.result-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: .76rem;
    color: var(--ink-soft2);
    max-width: 1180px;
    margin: 20px auto 26px;
    padding: 0 6vw;
    letter-spacing: .03em;
}

.result-count strong {
    color: var(--ink);
}

/* ---------- Grid ---------- */
#quizResults {
    transition: opacity .15s ease;
}

#quizResults.is-loading {
    opacity: .5;
    pointer-events: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 22px;
    max-width: 1180px;
    margin: 0 auto;
    /* padding: 0 6vw 30px; */
}

@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 660px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Ticket card (premium) ---------- */
.ticket {
    --accent: #3B4C7A;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 82, 0.04), 0 16px 32px -16px rgba(0, 0, 82, 0.18);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.2, .8, .3, 1), box-shadow .28s ease, border-color .28s ease;
}

.ticket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.ticket:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 82, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 82, 0.05), 0 28px 48px -20px rgba(0, 0, 82, 0.28);
}

.ticket-top {
    padding: 24px 22px 16px;
}

.ticket-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.seal {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: 0.02em;
}

.type-pill {
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 5px 12px 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.type-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.ticket-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.18rem;
    line-height: 1.28;
    letter-spacing: -0.005em;
    margin: 0 0 6px;
}

.ticket-cat {
    font-family: 'Inter', sans-serif;
    font-size: .86rem;
    color: var(--ink-soft2);
    line-height: 1.5;
    margin: 0 0 16px;
}

.stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    color: var(--ink-soft2);
}

.stat-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ink-soft2);
}

.stat strong {
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .8rem;
}

/* progress bubble row */
.progress-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
}

.bubbles {
    display: flex;
    gap: 4px;
}

.bubble {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.3px solid var(--rule-strong);
}

.bubble.filled-green {
    background: var(--green);
    border-color: var(--green);
}

.bubble.filled-gold {
    background: var(--gold);
    border-color: var(--gold);
}

.progress-label {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-soft2);
}

.progress-label.is-green {
    color: var(--green);
}

.progress-label.is-gold {
    color: var(--gold-deep);
}

/* perforation / ticket tear */
.perforation {
    position: relative;
    border-top: 1.5px dashed var(--rule);
    margin: 6px 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 11px;
}

.perforation::before,
.perforation::after {
    content: '';
    position: absolute;
    top: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--rule);
    box-shadow: inset 0 1px 2px rgba(0, 0, 82, 0.06);
}

.perforation::before {
    left: -30px;
}

.perforation::after {
    right: -30px;
}

.ticket-no {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    color: #B3B7D1;
    letter-spacing: .06em;
    padding-bottom: 16px;
}

.ticket-cat-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    color: #B3B7D1;
    letter-spacing: .06em;
    padding-bottom: 16px;
}

.ticket-cta {
    margin: 16px 22px 22px;
    background: linear-gradient(135deg, var(--navy) 0%, #16195C 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .86rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    letter-spacing: .01em;
    box-shadow: 0 8px 16px -8px rgba(0, 0, 82, 0.45);
    transition: box-shadow .2s ease, transform .15s ease, background .2s ease;
}

.ticket-cta:hover {
    background: linear-gradient(135deg, #16195C 0%, var(--navy) 100%);
    box-shadow: 0 12px 22px -8px rgba(0, 0, 82, 0.5);
}

.ticket-cta:active {
    transform: scale(.985);
}

.ticket-cta svg {
    transition: transform .2s ease;
}

.ticket-cta:hover svg {
    transform: translateX(3px);
}

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 70px;
}

.pager a {
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    padding: 9px 15px;
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    cursor: pointer;
    color: var(--ink-soft2);
    transition: all .15s ease;
    text-decoration: none;
    display: inline-block;
}

.pager a.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.pager a:hover:not(.active):not(.disabled) {
    border-color: var(--gold);
    color: var(--ink);
}

.pager a.disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--ink-soft2);
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    grid-column: 1/-1;
}

.empty-state span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--rule);
    margin-top: 20px;
}

.footer-top {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 6vw 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 18px;
    letter-spacing: .01em;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--ink-soft2);
    font-size: .88rem;
    margin-bottom: 12px;
    transition: color .15s ease;
}

.footer-col a:hover {
    color: var(--gold-deep);
}

.footer-desc {
    font-size: .86rem;
    color: var(--ink-soft2);
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 34ch;
}

.footer-contact {
    font-size: .86rem;
    color: var(--ink-soft2);
    line-height: 1.6;
    margin: 0 0 12px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--rule-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    color: var(--ink-soft2);
    transition: all .15s ease;
}

.footer-socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.footer-bottom {
    background: var(--navy);
    color: #C7CAE6;
    text-align: center;
    font-size: .8rem;
    padding: 16px 20px;
}

.footer-bottom strong {
    color: #fff;
}

@media (max-width: 860px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px 7vw 34px;
    }
}

/* ---------- General mobile refinements ---------- */
@media (max-width: 780px) {
    .hero {
        padding: 40px 7vw 24px;
    }

    h1.headline {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .notice {
        padding: 14px 16px;
    }

    .notice-left {
        gap: 10px;
    }

    .controls {
        flex-direction: column;
    }

    .search-card {
        flex: 1 1 auto;
        width: 100%;
    }

    select.filter {
        width: 100%;
        min-width: 0;
    }

    .grid {
        /* padding: 0 7vw 24px; */
        gap: 20px;
    }

    .search-card::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .infostrip {
        padding: 8px 5vw;
        font-size: .7rem;
    }

    .infostrip .right .socials {
        display: none;
    }

    .topbar {
        padding: 14px 5vw;
    }

    .brand {
        font-size: 1.1rem;
    }

    .brand-sub {
        font-size: .55rem;
    }

    .hero {
        padding: 32px 5vw 20px;
    }

    .eyebrow {
        font-size: .64rem;
    }

    .sub {
        font-size: .94rem;
    }

    /* .grid {
        padding: 0 5vw 20px;
    } */

    .ticket-top {
        padding: 18px 16px 14px;
    }

    .perforation {
        margin: 4px 16px 0;
    }

    .perforation::before {
        left: -24px;
        width: 14px;
        height: 14px;
    }

    .perforation::after {
        right: -24px;
        width: 14px;
        height: 14px;
    }

    .ticket-cta {
        margin: 14px 16px 18px;
    }

    .pager {
        flex-wrap: wrap;
        padding: 8px 12px 50px;
    }

    .pager a {
        padding: 8px 12px;
        font-size: .72rem;
    }
}
