.s6-racing-page {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(142, 198, 64, .08), transparent 22%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, .04), transparent 18%),
        #050505;
    color: #f5f5f5;
}

.s6-racing-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 0 6vw;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .82)),
        radial-gradient(circle at top right, rgba(120, 255, 120, .18), transparent 35%),
        var(--s6-racing-hero-bg, url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?q=80&w=1800&auto=format&fit=crop')) center / cover;
}

.s6-racing-hero::before {
    position: absolute;
    inset: 0;
    content: '';
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, .02) 0,
        rgba(255, 255, 255, .02) 1px,
        transparent 1px,
        transparent 140px
    );
    opacity: .35;
    pointer-events: none;
    animation: s6GridFloat 16s linear infinite;
}

.s6-racing-hero::after {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 1200px;
    height: 1200px;
    border-radius: 50%;
    content: '';
    background: radial-gradient(circle, rgba(142, 198, 64, .12), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.s6-racing-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    animation: s6HeroFade 1.2s ease forwards;
}

.s6-telemetry-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.s6-telemetry-bar span {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.s6-racing-eyebrow,
.s6-section-label {
    margin-bottom: 20px;
    color: #8ec640;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.s6-racing-hero h1 {
    position: relative;
    margin: 0 0 24px;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.05em;
    text-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.s6-racing-hero h1::after {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 140px;
    height: 4px;
    border-radius: 999px;
    content: '';
    background: #8ec640;
    box-shadow: 0 0 20px rgba(142, 198, 64, .5);
}

.s6-racing-subtitle {
    max-width: 720px;
    font-size: 1.12rem;
    line-height: 1.8;
    opacity: .82;
}

.s6-racing-buttons {
    display: flex;
    gap: 18px;
    margin-top: 40px;
}

.s6-racing-btn {
    padding: 16px 28px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
    backdrop-filter: blur(14px);
    transition: transform .3s ease, box-shadow .3s ease;
}

.s6-racing-btn.primary {
    background: #8ec640;
    color: #000;
}

.s6-racing-btn.secondary {
    border: 1px solid rgba(255, 255, 255, .18);
}

.s6-racing-btn:hover {
    transform: translateY(-2px);
}

.s6-racing-btn.primary:hover {
    box-shadow: 0 0 30px rgba(142, 198, 64, .28);
}

.s6-racing-editorial,
.s6-racing-showcase,
.s6-racing-videos,
.s6-racing-gallery {
    padding: 120px 6vw;
}

.s6-racing-editorial {
    position: relative;
}

.s6-racing-editorial::before {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .015), transparent);
    pointer-events: none;
}

.s6-racing-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.s6-racing-image {
    min-height: 620px;
    border-radius: 28px;
    background:
        linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .35)),
        var(--s6-racing-intro-bg, url('https://images.unsplash.com/photo-1511919884226-fd3cad34687c?q=80&w=1800&auto=format&fit=crop')) center / cover;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .55),
        inset 0 0 0 1px rgba(255, 255, 255, .05);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.s6-racing-copy h2,
.s6-section-heading h2 {
    margin-bottom: 28px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.s6-racing-copy h2 {
    max-width: 680px;
}

.s6-racing-copy p,
.s6-showcase-content p {
    font-size: 1.02rem;
    line-height: 1.8;
}

.s6-racing-copy p {
    opacity: .82;
}

.s6-section-heading {
    margin-bottom: 24px;
}

.s6-section-heading h2 {
    max-width: 900px;
}

.s6-showcase-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    margin-bottom: 40px;
    padding: 60px;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    outline: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .2)),
        var(--s6-racing-showcase-bg, url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=1800&auto=format&fit=crop')) center / cover;
    background-clip: padding-box;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .45),
        inset 0 0 0 1px rgba(255, 255, 255, .02);
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform .45s ease, box-shadow .45s ease;
}

.s6-showcase-panel::before,
.s6-showcase-panel::after {
    position: absolute;
    border-radius: inherit;
    content: '';
    pointer-events: none;
}

.s6-showcase-panel::before {
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 35%);
    opacity: .35;
}

.s6-showcase-panel::after {
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
}

.s6-showcase-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
}

.s6-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.s6-showcase-content h2 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 4.5rem);
    letter-spacing: -.04em;
}

.s6-showcase-content p {
    max-width: 640px;
}

.s6-racing-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 6vw 120px;
}

.s6-stat-card {
    position: relative;
    padding: 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
    backdrop-filter: blur(12px);
}

.s6-stat-card::before {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(135deg, rgba(142, 198, 64, .08), transparent 45%);
    pointer-events: none;
}

.s6-stat-number {
    display: block;
    margin-bottom: 14px;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}

.s6-stat-label {
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .7;
}

.s6-racing-videos {
    position: relative;
}

.s6-racing-videos::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 120px;
    content: '';
    background: linear-gradient(to bottom, rgba(142, 198, 64, .55), transparent);
}

.s6-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 30px;
    margin-top: 50px;
}

.s6-video-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    background: rgba(255, 255, 255, .04);
    backface-visibility: hidden;
    transform: translateZ(0);
    backdrop-filter: blur(10px);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.s6-video-card::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    content: '';
    background: linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 30%);
    pointer-events: none;
}

.s6-video-card:hover {
    border-color: rgba(142, 198, 64, .28);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .5);
    transform: translateY(-4px);
}

.s6-video-card iframe {
    display: block;
    width: 100%;
    border: 0;
    aspect-ratio: 16 / 9;
    filter: contrast(1.04) saturate(1.05);
}

.s6-video-overlay {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 55%);
    pointer-events: none;
}

.s6-video-overlay span {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.s6-gallery-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
    margin-top: 50px;
}

.s6-gallery-grid::before {
    position: absolute;
    inset: -40px;
    content: '';
    background: radial-gradient(circle at center, rgba(142, 198, 64, .04), transparent 55%);
    pointer-events: none;
}

.s6-gallery-item {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background:
        linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .4)),
        var(--s6-racing-gallery-bg, url('https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?q=80&w=1800&auto=format&fit=crop')) center / cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    cursor: pointer;
    filter: grayscale(.18) contrast(1.08);
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform .4s ease, box-shadow .4s ease, filter .4s ease;
}

.s6-gallery-item::before,
.s6-gallery-item::after {
    position: absolute;
    inset: 0;
    content: '';
    pointer-events: none;
}

.s6-gallery-item::before {
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 28%);
}

.s6-gallery-item::after {
    background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent 60%);
    opacity: .8;
}

.s6-gallery-item:hover {
    box-shadow:
        0 35px 90px rgba(0, 0, 0, .55),
        0 0 50px rgba(142, 198, 64, .06);
    filter: grayscale(0);
    transform: translateY(-4px) scale(.985);
}

.s6-gallery-item:focus-visible {
    outline: 2px solid rgba(142, 198, 64, .9);
    outline-offset: 4px;
}

.s6-racing-gallery .s6-gallery-item[type="button"] {
    width: 100%;
    min-height: inherit;
    margin: 0;
    appearance: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
}

.s6-racing-gallery-section {
    margin-top: 64px;
}

.s6-racing-gallery-section:first-of-type {
    margin-top: 44px;
}

.s6-racing-gallery-section h3 {
    margin: 0 0 28px;
    font-size: clamp(1.4rem, 2.4vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.s6-racing-gallery-section .s6-gallery-grid {
    margin-top: 0;
    margin-bottom: 40px;
}

.s6-racing-gallery-section .s6-gallery-grid--eight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(170px, 12vw, 235px);
    align-items: stretch;
}

.s6-gallery-grid--eight .s6-gallery-item {
    min-height: 0;
    height: 100%;
}

.s6-gallery-grid--eight .s6-gallery-item--layout-1 {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.s6-gallery-grid--eight .s6-gallery-item--layout-2 {
    grid-column: 3;
    grid-row: 1;
}

.s6-gallery-grid--eight .s6-gallery-item--layout-3 {
    grid-column: 4;
    grid-row: 1;
}

.s6-gallery-grid--eight .s6-gallery-item--layout-4 {
    grid-column: 3 / span 2;
    grid-row: 2;
}

.s6-gallery-grid--eight .s6-gallery-item--layout-5 {
    grid-column: 1;
    grid-row: 3;
}

.s6-gallery-grid--eight .s6-gallery-item--layout-6 {
    grid-column: 2;
    grid-row: 3;
}

.s6-gallery-grid--eight .s6-gallery-item--layout-7 {
    grid-column: 1 / span 2;
    grid-row: 4;
}

.s6-gallery-grid--eight .s6-gallery-item--layout-8 {
    grid-column: 3 / span 2;
    grid-row: 3 / span 2;
}

.s6-racing-gallery-modal.s6-single-project-gallery-modal--slider .s6-project-gallery-modal__panel {
    width: min(1180px, calc(100vw - 48px));
}

.s6-racing-gallery-modal .s6-project-gallery-modal__image img {
    max-height: 68vh;
    object-fit: contain;
}

.s6-racing-gallery-modal .s6-single-project-gallery-modal__thumbs {
    justify-content: center;
    gap: clamp(12px, 1.8vw, 22px);
    max-width: 760px;
    margin: 18px auto 24px;
    padding: 2px clamp(16px, 3vw, 28px) 4px;
    overflow-x: visible;
}

.s6-racing-gallery-modal .s6-single-project-gallery-modal__thumb {
    flex: 0 0 clamp(70px, 7vw, 92px);
    width: clamp(70px, 7vw, 92px);
    height: clamp(50px, 5vw, 64px);
}

.s6-racing-sponsors {
    padding: 40px 0 80px;
    overflow: hidden;
}

.s6-sponsor-marquee {
    width: 100%;
    overflow: hidden;
}

.s6-sponsor-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    min-width: 200%;
    font-size: .85rem;
    letter-spacing: .22em;
    white-space: nowrap;
    text-transform: uppercase;
    opacity: .34;
    will-change: transform;
    animation: s6SponsorScroll 34s linear infinite;
}

.s6-sponsor-track span {
    flex: 0 0 auto;
}

@keyframes s6GridFloat {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-30px);
    }
}

@keyframes s6HeroFade {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes s6SponsorScroll {
    from {
        transform: translateX(0);
    }

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

@media (max-width: 980px) {
    .s6-racing-editorial,
    .s6-racing-showcase,
    .s6-racing-videos,
    .s6-racing-gallery {
        padding: 90px 24px;
    }

    .s6-racing-hero {
        padding: 0 24px;
    }

    .s6-racing-hero h1 {
        font-size: 4rem;
    }

    .s6-racing-hero h1::after {
        width: 90px;
    }

    .s6-telemetry-bar {
        gap: 10px;
    }

    .s6-racing-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .s6-racing-grid,
    .s6-video-grid,
    .s6-gallery-grid {
        grid-template-columns: 1fr;
    }

    .s6-showcase-panel {
        min-height: 420px;
        padding: 36px;
    }

    .s6-racing-stats {
        grid-template-columns: 1fr;
        padding: 0 24px 90px;
    }

    .s6-stat-number {
        font-size: 2.2rem;
    }

    .s6-racing-gallery-section {
        margin-top: 52px;
    }

    .s6-racing-gallery-section .s6-gallery-grid--eight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 220px;
        gap: 14px;
    }

    .s6-gallery-grid--eight .s6-gallery-item[class*="s6-gallery-item--layout-"] {
        grid-column: span 1;
        grid-row: span 1;
    }

    .s6-gallery-grid--eight .s6-gallery-item--layout-1,
    .s6-gallery-grid--eight .s6-gallery-item--layout-4,
    .s6-gallery-grid--eight .s6-gallery-item--layout-7 {
        grid-column: span 2;
    }

    .s6-sponsor-track {
        gap: 42px;
        font-size: .72rem;
        animation-duration: 28s;
    }
}

@media (max-width: 620px) {
    .s6-racing-gallery-section .s6-gallery-grid--eight {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .s6-gallery-grid--eight .s6-gallery-item[class*="s6-gallery-item--layout-"] {
        grid-column: span 1;
    }
}
