/* ==========================================================================
   Muse Arena 2K26 – Theme styles
   Built on top of utilities.css (grid + helpers)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --black: #050403;
    --ink: #0d0a06;
    --ink-2: #16110a;
    --gold: #d4af37;
    --gold-deep: #9c7a2b;
    --gold-soft: #c5a059;
    --champagne: #f4e2b0;
    --amber: #e59400;
    --ivory: #efe8d8;
    --muted: rgba(239, 232, 216, 0.72);
    --line: rgba(212, 175, 55, 0.28);

    --gold-grad: linear-gradient(100deg, #8a6a1f 0%, #d4af37 18%, #fff3c4 30%, #d4af37 42%, #9c7a2b 58%, #f4e2b0 72%, #d4af37 86%, #8a6a1f 100%);
    --btn-grad: linear-gradient(120deg, #b8892b 0%, #f0cf72 35%, #ffeab0 50%, #e2b54c 65%, #a87b22 100%);

    --f-display: "Cinzel", "Times New Roman", serif;
    --f-body: "Jost", "Segoe UI", Arial, sans-serif;
    --f-script: "Pinyon Script", "Brush Script MT", cursive;

    --header-h: 84px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* ---------- Base ---------- */
html {
    scroll-padding-top: 76px;
    background: var(--black);
}

body {
    font-family: var(--f-body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ivory);
    background: var(--black);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

.svg-sprite {
    position: absolute !important;
    width: 0;
    height: 0;
    overflow: hidden;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--gold);
    color: var(--black);
    font-weight: 500;
    border-radius: 4px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 2px solid var(--champagne);
    outline-offset: 3px;
}

.section {
    position: relative;
    padding: clamp(72px, 9vw, 120px) 0;
}

.section-sm {
    position: relative;
    padding: clamp(56px, 6vw, 80px) 0;
}

/* Data-reveal delay support (utilities.css provides the base reveal) */
[data-reveal] {
    transition-duration: 0.9s;
}

/* ---------- Glitter canvas ---------- */
.glitter-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 60;
    mix-blend-mode: screen;
}

/* ---------- Gold text shimmer ---------- */
.gold-text {
    background: var(--gold-grad);
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: -260% center;
    }
}

/* ---------- Twinkles (sparkle sprite) ---------- */
.twinkle {
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
    animation: twinkle 3.4s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 220, 140, 0.9));
}

@keyframes twinkle {
    0%, 100% { transform: scale(0.1) rotate(0deg); opacity: 0; }
    45%, 55% { transform: scale(1) rotate(90deg); opacity: 1; }
}

/* ---------- Section heading ---------- */
.sec-head {
    margin-bottom: clamp(36px, 4vw, 56px);
}

.sec-eyebrow {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 12px;
}

.sec-title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: 0.04em;
}

.sec-title-sm {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    letter-spacing: 0.14em;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.ornament span {
    height: 1px;
    width: clamp(48px, 9vw, 110px);
    background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament span:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament svg {
    width: 16px;
    height: 16px;
    animation: diamondPulse 2.6s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8));
}

.ornament-left {
    justify-content: flex-start;
}

.ornament-left span:first-child {
    display: none;
}

@keyframes diamondPulse {
    0%, 100% { transform: rotate(0) scale(1); }
    50% { transform: rotate(180deg) scale(1.25); }
}

/* ---------- Buttons ---------- */
.btn-gold,
.btn-line {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s, border-color 0.35s, background-color 0.35s;
}

.btn-gold {
    color: #1a1204;
    background: var(--btn-grad);
    background-size: 200% auto;
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: btnFlow 6s ease-in-out infinite;
}

.btn-gold::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    transform: skewX(-20deg);
    animation: shine 3.6s ease-in-out infinite;
    z-index: -1;
}

@keyframes btnFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes shine {
    0%, 55% { left: -75%; }
    100% { left: 140%; }
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(229, 148, 0, 0.45), 0 0 0 1px rgba(255, 234, 176, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-line {
    color: var(--champagne);
    border: 1px solid var(--line);
    background: rgba(212, 175, 55, 0.04);
}

.btn-line:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    transform: translateY(-3px);
    color: #fff;
}

.btn-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease);
}

.btn-gold:hover .btn-ico {
    transform: translateX(5px);
}

.btn-line .btn-ico {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: padding 0.4s var(--ease), background-color 0.4s, box-shadow 0.4s;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.site-header.is-scrolled {
    padding: 10px 0;
    background: rgba(5, 4, 3, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.site-header.is-scrolled::after {
    opacity: 0.7;
}

/* backdrop-filter would trap the fixed mobile menu inside the header */
.nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.header-inner {
    gap: 24px;
}

.brand {
    display: block;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease), filter 0.35s;
}

.brand:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.55));
}

.brand-logo {
    width: clamp(118px, 12vw, 158px);
    aspect-ratio: 262.722 / 72.621;
    height: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 38px);
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ivory);
    transition: color 0.3s;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold-grad);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--gold);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    gap: 14px;
}

.nav-toggle {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(5, 4, 3, 0.5);
    z-index: 120;
}

.nav-toggle span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.5px;
    background: var(--gold);
    transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        background:
            radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.16), transparent 60%),
            rgba(5, 4, 3, 0.97);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.45s var(--ease), visibility 0.45s;
    }

    .nav-open .main-nav {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 22px;
    }

    .nav-list li {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    }

    .nav-open .nav-list li {
        opacity: 1;
        transform: none;
    }

    .nav-open .nav-list li:nth-child(2) { transition-delay: 0.05s; }
    .nav-open .nav-list li:nth-child(3) { transition-delay: 0.1s; }
    .nav-open .nav-list li:nth-child(4) { transition-delay: 0.15s; }
    .nav-open .nav-list li:nth-child(5) { transition-delay: 0.2s; }
    .nav-open .nav-list li:nth-child(6) { transition-delay: 0.25s; }

    .nav-link {
        font-family: var(--f-display);
        font-size: 1.5rem;
        letter-spacing: 0.12em;
    }
}

/* ---------- Hero ---------- */
/* Hero banner + info panel together fill the first screen,
   so the details panel is always visible on load. */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    max-height: 100svh;
    background: var(--black);
}

.hero-media {
    position: relative;
    flex: 0 1 auto;
    width: 100%;
    aspect-ratio: 1672 / 940;
    min-height: 300px;
    overflow: hidden;
}

.hero-media picture {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform-origin: 60% 50%;
    animation: heroBreath 20s ease-in-out infinite alternate;
}

@keyframes heroBreath {
    from { transform: scale(1); }
    to { transform: scale(1.045); }
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 32%;
    background: linear-gradient(to top, var(--black) 6%, rgba(5, 4, 3, 0));
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .hero-media {
        aspect-ratio: 1080 / 1600;
    }

    .hero-img {
        object-position: center top;
    }
}

/* ---------- Hero info panel ---------- */
.hero-info {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    margin-top: clamp(-64px, -4vw, -28px);
    padding-bottom: clamp(18px, 2.4vw, 28px);
}

.info-panel {
    position: relative;
    padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 40px);
    background: linear-gradient(135deg, rgba(22, 17, 10, 0.88), rgba(5, 4, 3, 0.9));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.info-panel::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 3px;
    pointer-events: none;
}

.tw-1 { top: -9px; left: 8%; animation-delay: 0.4s; }
.tw-2 { bottom: -9px; right: 22%; animation-delay: 2s; width: 14px; height: 14px; }

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-ico {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--gold);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14), transparent 70%);
    transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.info-ico svg {
    width: 24px;
    height: 24px;
}

.info-item:hover .info-ico {
    transform: rotate(-12deg) scale(1.08);
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
}

.info-big {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 2.3rem;
    line-height: 1;
}

.info-month {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--ivory);
}

.info-title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: 0.08em;
    color: var(--champagne);
    line-height: 1.3;
}

.info-small {
    margin-top: 4px;
    font-size: 0.84rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.info-actions {
    gap: 14px;
}

.info-divider {
    padding-left: clamp(14px, 2vw, 24px);
    border-left: 1px solid var(--line);
}

@media (max-width: 575.98px) {
    .info-ico {
        display: none;
    }

    .info-month {
        white-space: nowrap;
    }

    .info-big {
        font-size: 1.9rem;
    }

    .info-month {
        font-size: 0.85rem;
    }

    .info-title {
        font-size: 0.95rem;
    }

    .info-small {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }
}

/* Featured brand marquee */
.brands {
    position: relative;
    padding: clamp(28px, 3vw, 40px) 0 clamp(56px, 6vw, 80px);
    background: var(--black);
}

.strip-label {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 18px;
}

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    padding: 10px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    gap: 22px;
    padding-right: 22px;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.brand-tile {
    position: relative;
    display: block;
    width: clamp(130px, 14vw, 176px);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.55), 0 8px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.brand-tile img {
    width: 100%;
    height: auto;
}

.brand-tile:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 0 0 2px var(--gold), 0 14px 32px rgba(212, 175, 55, 0.35);
}

/* ---------- About ---------- */
.about {
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%),
        var(--ink);
    overflow: hidden;
}

.about::before,
.about::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.55;
    z-index: 1;
}

.about::before { top: 0; }
.about::after { bottom: 0; }

.about-copy p {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    margin-bottom: 1.1em;
}

.about-copy strong {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold);
}

.script-line {
    font-family: var(--f-script);
    font-size: 2.2rem;
    color: var(--gold);
    line-height: 1.3;
    margin: 10px 0 0;
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.stats-top {
    margin-bottom: clamp(36px, 4vw, 52px);
    padding-bottom: clamp(28px, 3vw, 40px);
    border-bottom: 1px solid var(--line);
}

.stat {
    position: relative;
    padding: 6px 0 6px 16px;
    border-left: 1px solid var(--line);
    transition: border-color 0.3s;
}

.stat::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    width: 1px;
    height: 0;
    background: var(--champagne);
    box-shadow: 0 0 10px var(--gold);
    transition: height 0.5s var(--ease);
}

.stat:hover::before {
    height: 100%;
}

/* centred stats layout */
.about .stat {
    text-align: center;
    padding: 6px 10px 14px;
    border-left: 0;
}

.about .stats > div + div .stat {
    border-left: 1px solid var(--line);
}

@media (max-width: 575.98px) {
    .about .stats > div:nth-child(odd) .stat {
        border-left: 0;
    }
}

.about .stat::before {
    left: 50%;
    top: auto;
    bottom: 0;
    width: 0;
    height: 1px;
    transform: translateX(-50%);
    transition: width 0.5s var(--ease);
}

.about .stat:hover::before {
    width: 60%;
    height: 1px;
}

.stat-num {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    line-height: 1.1;
}

.stat-label {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted);
}

/* ---------- Event ---------- */
.event {
    background:
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(212, 175, 55, 0.12), transparent 70%),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(229, 148, 0, 0.08), transparent 70%),
        var(--black);
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 48ch;
    margin-bottom: 26px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.6vw, 18px);
    max-width: 520px;
}

.cd-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(14px, 2vw, 22px) 6px;
    border-radius: 6px;
    background: linear-gradient(160deg, var(--ink-2), var(--black));
    border: 1px solid var(--line);
    overflow: hidden;
}

.cd-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 236, 180, 0.14) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: boxShine 5s ease-in-out infinite;
}

.cd-box:nth-child(2)::after { animation-delay: 0.3s; }
.cd-box:nth-child(3)::after { animation-delay: 0.6s; }
.cd-box:nth-child(4)::after { animation-delay: 0.9s; }

@keyframes boxShine {
    0%, 60% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cd-num {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.6vw, 2.8rem);
    line-height: 1;
    color: var(--champagne);
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
    font-variant-numeric: tabular-nums;
}

.cd-num.tick {
    animation: tick 0.45s var(--ease);
}

@keyframes tick {
    0% { transform: translateY(-30%); opacity: 0.2; }
    100% { transform: none; opacity: 1; }
}

.cd-label {
    margin-top: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.cd-done {
    font-family: var(--f-display);
    font-size: 1.3rem;
    color: var(--gold);
}

.e-card {
    position: relative;
    height: 100%;
    padding: 28px 26px;
    border-radius: 6px;
    background: linear-gradient(160deg, rgba(22, 17, 10, 0.9), rgba(5, 4, 3, 0.95));
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.e-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.15);
}

.e-ico {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: var(--black);
    background: var(--btn-grad);
    background-size: 200% auto;
    animation: btnFlow 5s ease-in-out infinite;
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.1);
    transition: transform 0.6s var(--ease), box-shadow 0.4s;
}

.e-ico svg {
    width: 24px;
    height: 24px;
}

.e-card:hover .e-ico {
    transform: rotateY(360deg);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.16), 0 0 24px rgba(212, 175, 55, 0.5);
}

.e-title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    color: var(--champagne);
    margin-bottom: 8px;
}

.e-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Cursor spotlight (shared) */
.spot {
    --mx: 50%;
    --my: 50%;
}

.spot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 220, 140, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.spot:hover::before {
    opacity: 1;
}

/* ---------- Rotating gold border ---------- */
.glow-border {
    position: relative;
    isolation: isolate;
}

.glow-border::after {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), rgba(212, 175, 55, 0.18) 0deg, rgba(212, 175, 55, 0.18) 250deg, #fff3c4 300deg, var(--gold) 330deg, rgba(212, 175, 55, 0.18) 360deg);
    -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 exclude, linear-gradient(#000 0 0);
    animation: spinBorder 5s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes spinBorder {
    to { --angle: 360deg; }
}

/* ---------- Powered by ---------- */
.powered {
    background: linear-gradient(180deg, var(--black), var(--ink) 50%, var(--black));
    border-top: 1px solid rgba(212, 175, 55, 0.14);
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.p-card {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 8px 14px;
    border-radius: 8px;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.1), transparent 70%), var(--ink);
    transition: transform 0.45s var(--ease), box-shadow 0.45s;
}

.p-card img {
    width: 100%;
    max-width: 220px;
    height: auto;
    transition: transform 0.5s var(--ease), filter 0.5s;
}

.p-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 34px rgba(212, 175, 55, 0.18);
}

.p-card:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(255, 230, 160, 0.45));
}

.powered .row > div:nth-child(2) .glow-border::after { animation-delay: -1.25s; }
.powered .row > div:nth-child(3) .glow-border::after { animation-delay: -2.5s; }
.powered .row > div:nth-child(4) .glow-border::after { animation-delay: -3.75s; }

/* ---------- Gallery ---------- */
.gallery {
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%),
        var(--black);
}

.g-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ink);
    aspect-ratio: 695 / 539;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
    transition: box-shadow 0.45s, transform 0.45s var(--ease);
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease), filter 0.6s;
}

.g-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(to top, rgba(5, 4, 3, 0.75), rgba(5, 4, 3, 0.1));
    opacity: 0;
    transition: opacity 0.45s;
}

.g-overlay::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--champagne);
    border-radius: 3px;
    transform: scale(1.08);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s;
}

.g-overlay svg {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    color: var(--black);
    background: var(--btn-grad);
    transform: scale(0.6) rotate(-45deg);
    transition: transform 0.5s var(--ease);
}

.g-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 240, 200, 0.35), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.g-item:hover,
.g-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px var(--gold), 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 26px rgba(212, 175, 55, 0.25);
}

.g-item:hover img,
.g-item:focus-visible img {
    transform: scale(1.1);
    filter: saturate(1.15) brightness(1.05);
}

.g-item:hover .g-overlay,
.g-item:focus-visible .g-overlay {
    opacity: 1;
}

.g-item:hover .g-overlay::before,
.g-item:focus-visible .g-overlay::before {
    transform: scale(1);
    opacity: 0.8;
}

.g-item:hover .g-overlay svg,
.g-item:focus-visible .g-overlay svg {
    transform: scale(1) rotate(0);
}

.g-item:hover::after {
    left: 140%;
    transition: left 0.9s var(--ease);
}

/* Videos */
.videos {
    margin-top: clamp(64px, 8vw, 100px);
}

.v-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ink);
    text-align: left;
    color: var(--ivory);
    transition: transform 0.45s var(--ease), box-shadow 0.45s;
}

.v-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.v-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(0.9);
    transition: transform 0.9s var(--ease), filter 0.5s;
}

.v-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 4, 3, 0.92) 0%, rgba(5, 4, 3, 0) 55%);
    z-index: 1;
    pointer-events: none;
}

.v-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: -40px 0 0 -32px;
    border-radius: 50%;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    background: rgba(5, 4, 3, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: transform 0.45s var(--ease), background 0.45s, color 0.45s;
}

.v-play::before,
.v-play::after {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    animation: ripple 2.4s ease-out infinite;
}

.v-play::after {
    animation-delay: 1.2s;
}

@keyframes ripple {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.9); opacity: 0; }
}

.v-play svg {
    width: 26px;
    height: 26px;
    margin-left: 3px;
}

.v-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.v-title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--champagne);
}

.v-time {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--black);
    background: var(--gold);
}

.v-card:hover,
.v-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.7), 0 0 34px rgba(212, 175, 55, 0.2);
}

.v-card:hover .v-thumb img,
.v-card:focus-visible .v-thumb img {
    transform: scale(1.08);
    filter: brightness(0.85) saturate(1.1);
}

.v-card:hover .v-play,
.v-card:focus-visible .v-play {
    transform: scale(1.12);
    background: var(--gold);
    color: var(--black);
}

/* ---------- Associate sponsors ---------- */
.sponsors {
    overflow: hidden;
    background:
        linear-gradient(115deg, #050403 0%, #2b1e07 22%, #050403 40%, #3d2a0a 58%, #050403 76%, #2b1e07 92%, #050403 100%);
    background-size: 300% 300%;
    animation: satin 18s ease-in-out infinite;
}

.sponsors::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 60% at 10% 100%, rgba(212, 175, 55, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 60% at 90% 0%, rgba(212, 175, 55, 0.18), transparent 70%);
    pointer-events: none;
}

@keyframes satin {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sponsors .container {
    position: relative;
}

.s-tile {
    position: relative;
    display: grid;
    place-items: center;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.6), 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.45s var(--ease), box-shadow 0.45s;
}

.s-tile img {
    width: 100%;
    height: auto;
    transition: transform 0.5s var(--ease);
}

.s-tile::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 225, 150, 0.55), transparent);
    transform: skewX(-20deg);
    animation: tileShine 6s ease-in-out infinite;
    pointer-events: none;
}

.sponsors .row > div:nth-child(2) .s-tile::after { animation-delay: 0.5s; }
.sponsors .row > div:nth-child(3) .s-tile::after { animation-delay: 1s; }
.sponsors .row > div:nth-child(4) .s-tile::after { animation-delay: 1.5s; }
.sponsors .row > div:nth-child(5) .s-tile::after { animation-delay: 2s; }

@keyframes tileShine {
    0%, 70% { left: -80%; }
    100% { left: 140%; }
}

.s-tile.spot::before {
    background: radial-gradient(200px circle at var(--mx) var(--my), rgba(212, 175, 55, 0.18), transparent 60%);
}

.s-tile:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 0 2px var(--gold), 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.4);
}

.s-tile:hover img {
    transform: scale(1.06);
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    padding: clamp(64px, 8vw, 100px) 0 0;
    background:
        linear-gradient(to bottom, var(--black) 0%, rgba(5, 4, 3, 0.85) 45%, rgba(5, 4, 3, 0.35) 100%),
        url("../images/footer-bg.jpg") center bottom / cover no-repeat,
        var(--black);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-brand {
    display: inline-block;
    transition: filter 0.35s, transform 0.35s var(--ease);
}

.footer-brand:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.5));
}

.footer-logo {
    width: 200px;
    aspect-ratio: 262.722 / 72.621;
    height: auto;
}

.footer-org {
    margin-top: 16px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--champagne);
}

.footer-note {
    margin-top: 8px;
    max-width: 34ch;
    font-size: 0.92rem;
    color: var(--muted);
}

.footer-title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--ivory);
}

.contact-list a {
    position: relative;
    transition: color 0.3s;
}

.contact-list a:hover {
    color: var(--gold);
}

.c-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--gold);
    transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}

.c-ico svg {
    width: 16px;
    height: 16px;
}

.contact-list li:hover .c-ico {
    background: var(--gold);
    color: var(--black);
    transform: rotate(-10deg);
}

.social {
    gap: 14px;
}

.social a {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--gold);
    border: 1px solid var(--line);
    background: rgba(5, 4, 3, 0.5);
    overflow: hidden;
    isolation: isolate;
    transition: color 0.35s, transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.35s;
}

.social a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--btn-grad);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.social svg {
    width: 22px;
    height: 22px;
}

.social a:hover {
    color: var(--black);
    border-color: var(--gold);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
}

.social a:hover::before {
    transform: translateY(0);
}

.footer-bottom {
    margin-top: clamp(48px, 6vw, 80px);
    padding: 22px 0 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: rgba(239, 232, 216, 0.75);
}

/* ---------- Floating GITD website button (right-edge tab) ---------- */
.float-gitd {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 90;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 7px 16px;
    border-radius: 12px 0 0 12px;
    color: #1a1204;
    background: var(--btn-grad);
    background-size: 100% 200%;
    font-weight: 500;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transform: translateY(-50%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 234, 176, 0.5);
    animation: tabFlow 6s ease-in-out infinite, tabGlow 2.8s ease-in-out infinite;
    transition: padding 0.35s var(--ease), box-shadow 0.35s;
}

.float-gitd::after {
    content: "";
    position: absolute;
    left: 0;
    top: -75%;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    animation: shineDown 3.6s ease-in-out infinite;
    z-index: -1;
}

.float-gitd-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.float-gitd-ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--black);
    color: var(--gold);
}

.float-gitd-ico svg {
    width: 18px;
    height: 18px;
    animation: globeSpin 8s linear infinite;
}

.float-gitd-ext {
    width: 14px;
    height: 14px;
    transition: transform 0.35s var(--ease);
}

.float-gitd:hover {
    padding-right: 12px;
    box-shadow: 0 14px 34px rgba(229, 148, 0, 0.45), 0 0 0 2px rgba(255, 234, 176, 0.8), 0 0 34px rgba(212, 175, 55, 0.6);
}

.float-gitd:hover .float-gitd-ext {
    transform: translate(2px, -2px);
}

@keyframes tabFlow {
    0%, 100% { background-position: center 0%; }
    50% { background-position: center 100%; }
}

@keyframes tabGlow {
    0%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 234, 176, 0.5), 0 0 8px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 234, 176, 0.8), 0 0 26px rgba(212, 175, 55, 0.6); }
}

@keyframes shineDown {
    0%, 55% { top: -75%; }
    100% { top: 140%; }
}

@keyframes globeSpin {
    to { transform: rotateY(360deg); }
}

@media (max-width: 575.98px) {
    .float-gitd {
        padding: 6px 5px 12px;
        font-size: 0.66rem;
        letter-spacing: 0.14em;
        gap: 8px;
    }

    .float-gitd-ico {
        width: 28px;
        height: 28px;
    }

    .float-gitd-ico svg {
        width: 15px;
        height: 15px;
    }
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(5, 4, 3, 0.85);
    color: var(--gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--gold);
    color: var(--black);
}

.to-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.to-top-ring circle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-dasharray: 138.2;
    stroke-dashoffset: 138.2;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.8));
}

.to-top-ico {
    width: 20px;
    height: 20px;
}

/* ---------- Modals ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 16px;
    background: rgba(3, 2, 1, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.35s;
}

.modal[hidden] {
    display: none;
}

.modal.is-open {
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--gold);
    transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.modal-close svg {
    width: 22px;
    height: 22px;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--gold);
    color: var(--black);
}

.video-frame {
    position: relative;
    width: min(1100px, 100%);
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(212, 175, 55, 0.15);
    transform: scale(0.94);
    transition: transform 0.45s var(--ease);
}

.modal.is-open .video-frame {
    transform: none;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lb-figure {
    margin: 0;
    max-width: min(1100px, 100%);
    text-align: center;
}

.lb-img {
    max-height: 78vh;
    width: auto;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: lbIn 0.5s var(--ease);
}

@keyframes lbIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: none; }
}

.lb-caption {
    margin-top: 14px;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.lb-nav {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(5, 4, 3, 0.6);
    color: var(--gold);
    z-index: 2;
    transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.lb-nav svg {
    width: 22px;
    height: 22px;
}

.lb-prev { left: 18px; }
.lb-next { right: 18px; }

.lb-nav:hover {
    background: var(--gold);
    color: var(--black);
}

.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }

@media (max-width: 767.98px) {
    .lb-nav {
        top: auto;
        bottom: 18px;
        margin-top: 0;
    }

    .lb-prev { left: calc(50% - 62px); }
    .lb-next { right: calc(50% - 62px); }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    :root {
        --header-h: 72px;
    }

    .about .sec-head {
        margin-bottom: 28px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 16px;
    }

    .info-actions .btn-line {
        flex: 1 1 auto;
        justify-content: center;
    }


    .cd-label {
        letter-spacing: 0.14em;
        font-size: 0.6rem;
    }

    .site-footer {
        text-align: left;
    }
}

@media (max-width: 400px) {
    .btn-gold,
    .btn-line {
        padding: 12px 20px;
        letter-spacing: 0.12em;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .glitter-canvas {
        display: none;
    }

    .gold-text {
        background-position: 30% center;
    }
}
