:root {
    --bg: #060816;
    --bg-soft: #10162d;
    --surface: rgba(12, 18, 38, 0.84);
    --surface-strong: rgba(8, 11, 25, 0.94);
    --surface-light: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.24);
    --text: #f8f1e8;
    --muted: #d2c7bb;
    --accent: #ff7a18;
    --accent-soft: #ffb15b;
    --accent-cool: #86f2d0;
    --panel: #fff6ea;
    --panel-text: #1a1b22;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --content-width: min(1240px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.16), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(134, 242, 208, 0.14), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(255, 177, 91, 0.12), transparent 30%),
        linear-gradient(180deg, #050712 0%, #0d1428 52%, #090d19 100%);
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
a,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(22px);
    background: rgba(6, 8, 22, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__inner {
    width: var(--content-width);
    min-height: 82px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-nav__brand {
    flex: 0 0 auto;
}

.site-nav__brand img {
    width: clamp(154px, 21vw, 248px);
    height: auto;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav__links a {
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(248, 241, 232, 0.86);
    position: relative;
}

.site-nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cool));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s ease;
}

.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after {
    transform: scaleX(1);
}

.hero {
    position: relative;
    min-height: calc(100vh - 82px);
    overflow: clip;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02) brightness(0.54);
    transform: scale(1.04);
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 18, 0.9) 0%, rgba(5, 7, 18, 0.78) 42%, rgba(5, 7, 18, 0.46) 72%, rgba(5, 7, 18, 0.88) 100%),
        linear-gradient(180deg, rgba(8, 10, 23, 0.24) 0%, rgba(8, 10, 23, 0.8) 100%);
}

.hero__inner {
    width: var(--content-width);
    min-height: calc(100vh - 82px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.78fr);
    align-items: center;
    gap: clamp(28px, 5vw, 74px);
    padding: clamp(42px, 8vw, 88px) 0;
}

.hero__copy {
    max-width: 700px;
}

.hero__eyebrow,
.section__eyebrow,
.sponsor-summary__label,
.lightbox__label {
    margin: 0 0 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.02rem, 2.2vw, 1.45rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.hero h1,
.section__header h2 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.94;
}

.hero h1 {
    font-size: clamp(3.4rem, 10vw, 7.4rem);
    max-width: 8.5ch;
}

.hero__text,
.section__header p,
.story-card p,
.video-card__body p,
.sponsor-summary p,
.site-footer p {
    margin: 0;
    color: rgba(248, 241, 232, 0.84);
    font-size: clamp(1rem, 1.45vw, 1.12rem);
    line-height: 1.72;
}

.hero__text {
    margin-top: 18px;
    max-width: 54ch;
}

.hero__actions,
.lightbox__actions,
.photo-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__actions {
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #ffb34b);
    color: #1b1b1f;
    box-shadow: 0 18px 34px rgba(255, 122, 24, 0.3);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btn--inline,
.btn--inline-accent {
    min-height: 40px;
    padding-inline: 16px;
    font-size: 0.9rem;
}

.btn--inline {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
}

.btn--inline-accent {
    background: rgba(255, 122, 24, 0.18);
    border-color: rgba(255, 177, 91, 0.3);
    color: #fff3df;
}

.hero__stats {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero__stat {
    padding: 18px 18px 20px;
    border-radius: 22px;
    background: rgba(12, 18, 38, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.hero__stat strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.06em;
    color: #fff6e6;
}

.hero__stat span {
    display: block;
    color: rgba(248, 241, 232, 0.76);
    font-size: 0.92rem;
    line-height: 1.45;
}

.hero__collage {
    position: relative;
    min-height: clamp(420px, 58vw, 720px);
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.hero__frame {
    position: absolute;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.hero__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: saturate(1);
    transition:
        opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.48s ease;
}

.hero__frame.is-swapping img {
    opacity: 0;
    transform: scale(1.035);
    filter: saturate(0.9) blur(1px);
}

.hero__collage:hover .hero__frame img,
.hero__collage:focus-visible .hero__frame img {
    transform: scale(1.03);
}

.hero__collage-cta {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(8, 11, 25, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff3df;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
}

.hero__frame--1 {
    inset: 0 18% 18% 0;
    transform: rotate(-8deg);
}

.hero__frame--2 {
    inset: 20% 0 0 26%;
    transform: rotate(7deg);
}

.hero__frame--3 {
    inset: auto 14% -2% 8%;
    height: 36%;
    transform: rotate(-4deg);
}

.section {
    width: var(--content-width);
    margin-inline: auto;
    padding: clamp(54px, 9vw, 108px) 0;
}

.section__header {
    max-width: 840px;
    margin-bottom: clamp(24px, 4vw, 42px);
}

.section__header h2 {
    font-size: clamp(2.8rem, 7vw, 5rem);
}

.section__header p {
    margin-top: 12px;
    max-width: 58ch;
}

.section--story {
    position: relative;
}

.story-grid {
    display: grid;
    gap: 18px;
}

.story-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.story-card,
.video-card,
.photo-card,
.sponsor-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.story-card {
    padding: clamp(22px, 3vw, 32px);
}

.story-card {
    display: grid;
    gap: 14px;
}

.story-card--accent {
    align-content: start;
    background:
        radial-gradient(circle at top right, rgba(255, 177, 91, 0.2), transparent 34%),
        linear-gradient(160deg, rgba(255, 122, 24, 0.16), rgba(8, 11, 25, 0.96));
}

.story-card--accent strong {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(2rem, 4vw, 3rem);
}

.story-card__label {
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff4e5;
    font-size: 0.88rem;
    font-weight: 700;
}

.section--videos {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at 12% 10%, rgba(255, 122, 24, 0.12), transparent 22%);
    border-radius: var(--radius-xl);
    padding-inline: clamp(18px, 3vw, 30px);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.video-card {
    overflow: hidden;
}

.video-card:first-child {
    grid-column: 1 / -1;
}

.video-card__media {
    position: relative;
    background:
        radial-gradient(circle at center, rgba(255, 122, 24, 0.14), transparent 34%),
        #02030a;
    aspect-ratio: 16 / 9;
}

.video-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background:
        #02030a
        url('../img/vectors/logo.svg')
        center / min(38%, 220px)
        no-repeat;
}

.video-card__body {
    padding: 18px 18px 22px;
}

.video-card__body h3 {
    margin: 0 0 10px;
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.video-card__body h3 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.section--gallery {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.photo-card {
    overflow: hidden;
}

.photo-card__preview {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.photo-card__preview img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.36s ease, filter 0.36s ease;
}

.photo-card:hover .photo-card__preview img,
.photo-card__preview:focus-visible img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

.photo-card__meta {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.photo-card__meta strong {
    font-size: 1rem;
}

.section--sponsors {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(134, 242, 208, 0.16), transparent 26%),
        radial-gradient(circle at bottom right, rgba(255, 122, 24, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: var(--radius-xl);
    padding-inline: clamp(18px, 3vw, 30px);
}

.sponsor-board {
    display: grid;
    gap: clamp(18px, 3vw, 30px);
}

.sponsor-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 2.4vw, 28px);
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(134, 242, 208, 0.08)),
        rgba(8, 11, 25, 0.72);
    box-shadow: var(--shadow);
}

.sponsor-summary__label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.sponsor-summary strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 11vw, 8rem);
    line-height: 0.82;
    letter-spacing: 0.06em;
    color: #fff6e6;
}

.sponsor-summary p {
    max-width: 28ch;
}

.sponsor-rolls {
    display: grid;
    gap: clamp(14px, 2vw, 20px);
}

.sponsor-roll {
    position: relative;
    overflow: hidden;
    padding-block: 4px;
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.sponsor-roll:hover .sponsor-track,
.sponsor-roll:focus-within .sponsor-track {
    animation-play-state: paused;
}

.sponsor-track {
    display: flex;
    width: max-content;
    gap: clamp(12px, 1.6vw, 20px);
    animation: sponsorRoll 62s linear infinite;
    will-change: transform;
}

.sponsor-roll--reverse .sponsor-track {
    animation-direction: reverse;
    animation-duration: 72s;
}

.sponsor-card {
    position: relative;
    isolation: isolate;
    flex: 0 0 clamp(158px, 13vw, 210px);
    padding: 8px;
    display: block;
    background:
        linear-gradient(180deg, rgba(255, 246, 234, 0.98), rgba(255, 231, 204, 0.92)),
        #fff6ea;
    transform: translateY(0);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 38%, rgba(255, 122, 24, 0.16));
    opacity: 0;
    transition: opacity 0.26s ease;
}

.sponsor-card:hover,
.sponsor-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(255, 177, 91, 0.44);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.sponsor-card:hover::before,
.sponsor-card:focus-within::before {
    opacity: 1;
}

.sponsor-card img {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    object-fit: cover;
    background: #fff6ea;
}

.site-footer {
    padding: 18px 16px 34px;
    text-align: center;
}

.site-footer p {
    color: rgba(248, 241, 232, 0.68);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 18, 0.88);
    backdrop-filter: blur(10px);
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.lightbox__content {
    padding: clamp(18px, 3vw, 24px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.lightbox__image {
    width: 100%;
    max-height: min(72vh, 860px);
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.lightbox__actions {
    margin-top: 16px;
    justify-content: space-between;
}

.lightbox__caption {
    color: rgba(248, 241, 232, 0.82);
}

.lightbox__close,
.lightbox__nav {
    border: 0;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    z-index: 2;
    font-size: 1.4rem;
}

.lightbox__nav {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    font-size: 2rem;
}

.section__empty {
    margin: 0;
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(248, 241, 232, 0.84);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.lightbox-open {
    overflow: hidden;
}

@keyframes sponsorRoll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-50% - clamp(6px, 0.8vw, 10px)), 0, 0);
    }
}

@media (max-width: 1080px) {
    .hero__inner,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .hero__collage {
        min-height: 420px;
        max-width: 620px;
    }
}

@media (max-width: 860px) {
    .site-nav__links {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero__inner {
        min-height: auto;
    }

    .hero__stats,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card:first-child {
        grid-column: auto;
    }

    .lightbox__dialog {
        grid-template-columns: 1fr;
    }

    .lightbox__nav {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --content-width: min(100%, calc(100% - 20px));
    }

    .site-nav__inner {
        min-height: 72px;
    }

    .hero__inner,
    .section {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hero__frame--1 {
        inset: 0 10% 18% 0;
    }

    .hero__frame--2 {
        inset: 24% 0 0 22%;
    }

    .hero__frame--3 {
        inset: auto 8% -3% 5%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-summary {
        grid-template-columns: 1fr;
    }

    .sponsor-card {
        flex-basis: clamp(132px, 42vw, 172px);
    }

    .photo-card__actions,
    .hero__actions,
    .lightbox__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn--inline,
    .btn--inline-accent {
        width: 100%;
    }

    .section--videos,
    .section--sponsors {
        padding-inline: 14px;
    }

    .lightbox__content {
        padding: 16px;
        border-radius: 22px;
    }

    .lightbox__image {
        max-height: 58vh;
    }
}
