:root {
    --bg: #080706;
    --bg-soft: #12100d;
    --panel: rgba(255, 255, 255, 0.07);
    --panel-strong: rgba(255, 255, 255, 0.11);
    --line: rgba(255, 255, 255, 0.15);
    --text: #f6f0e6;
    --muted: #bdb2a2;
    --muted-strong: #ded4c5;
    --dust: #c96f2d;
    --ember: #e14b24;
    --olive: #78865b;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 80% 0%, rgba(201, 111, 45, 0.18), transparent 30rem),
        linear-gradient(180deg, #11100d 0%, var(--bg) 36rem, #0a0908 100%);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(8, 7, 6, 0.92), rgba(8, 7, 6, 0.48));
    backdrop-filter: blur(18px);
    transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(8, 7, 6, 0.94);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.45rem;
    background: linear-gradient(135deg, var(--dust), var(--ember));
    color: #160c05;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(201, 111, 45, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav a {
    padding: 0.65rem 0.8rem;
    border-radius: 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 760;
    transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 0.25rem auto;
    background: currentColor;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 9rem clamp(1rem, 4vw, 3rem) 5rem;
}

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

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.95) contrast(1.06);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(8, 7, 6, 0.94) 0%, rgba(8, 7, 6, 0.66) 42%, rgba(8, 7, 6, 0.08) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(8, 7, 6, 0.05) 34%);
}

.hero-content {
    position: relative;
    width: min(760px, 100%);
    margin: 0 auto 0 max(0px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--dust);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(4.5rem, 16vw, 12rem);
    line-height: 0.82;
    letter-spacing: 0;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 4.1rem);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.16;
}

.hero-lead {
    max-width: 620px;
    margin-bottom: 2rem;
    color: var(--muted-strong);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 650;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    font-weight: 850;
    line-height: 1;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
    background: var(--dust);
    color: #1d1007;
    box-shadow: 0 18px 38px rgba(201, 111, 45, 0.28);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.facts-strip,
.section,
.gallery-teaser,
.subhero,
.gallery-grid {
    width: min(var(--max), calc(100% - 2rem));
    margin-inline: auto;
}

.facts-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    margin-top: -2.7rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--line);
    box-shadow: var(--shadow);
}

.facts-strip article {
    min-height: 10rem;
    padding: 1.2rem;
    background: rgba(18, 16, 13, 0.93);
}

.facts-strip strong {
    display: block;
    margin-bottom: 0.65rem;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 0.9;
    font-weight: 900;
}

.facts-strip span {
    display: block;
    color: var(--muted);
    font-weight: 650;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) 0 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(16rem, 1.05fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
    margin-bottom: 2rem;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -0.8rem;
}

.section-heading p {
    max-width: 560px;
    color: var(--muted);
    font-weight: 650;
}

.current-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
    gap: 1rem;
}

.current-hero {
    min-height: 34rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.2rem, 2.4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background:
        linear-gradient(180deg, rgba(8, 7, 6, 0.12), rgba(8, 7, 6, 0.92)),
        url("image-1---8a65c2cf-ca4c-406b-acaf-4169f0593a0f.png") center / cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.current-hero p {
    max-width: 620px;
    color: var(--muted-strong);
    font-weight: 650;
}

.label,
.current-list span,
.timeline span,
.machine-card span,
.rally-map span,
.gallery-card span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.9rem;
    padding: 0.28rem 0.5rem;
    border: 1px solid rgba(201, 111, 45, 0.36);
    border-radius: 0.35rem;
    color: var(--dust);
    background: rgba(201, 111, 45, 0.09);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-news-section {
    position: relative;
}

.live-news-shell {
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border: 1px solid rgba(201, 111, 45, 0.24);
    border-radius: 0.75rem;
    background:
        linear-gradient(145deg, rgba(201, 111, 45, 0.16), rgba(120, 134, 91, 0.08)),
        rgba(255, 255, 255, 0.045);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.32);
}

.live-news-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.live-news-head h3 {
    margin: 0.35rem 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.live-news-head p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.live-news-date {
    flex: 0 0 auto;
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    font-weight: 900;
}

.live-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.live-news-grid article,
.standings-card {
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: rgba(8, 7, 6, 0.56);
}

.live-news-grid article {
    min-height: 14rem;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.live-news-grid span {
    width: fit-content;
    margin-bottom: 0.75rem;
    color: var(--dust);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-news-grid h3 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.15;
}

.live-news-grid p {
    color: var(--muted);
    font-weight: 650;
}

.live-news-grid a {
    width: fit-content;
    margin-top: auto;
    color: var(--dust);
    font-weight: 900;
}

.standings-card {
    margin-top: 0.85rem;
    padding: 1rem;
    overflow-x: auto;
}

.standings-card h3 {
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
}

.standings-card table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    color: var(--muted-strong);
}

.standings-card th,
.standings-card td {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 0.9rem;
}

.standings-card th {
    color: var(--dust);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.current-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--line);
}

.current-list article,
.timeline article,
.rally-map article {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
}

.current-list article {
    min-height: 11rem;
    padding: 1.1rem;
}

.current-list p,
.timeline p,
.machine-card p,
.drivers-list span,
.rally-map p,
.gallery-teaser p,
.subhero p,
.gallery-card p {
    color: var(--muted);
    font-weight: 620;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.timeline article {
    min-height: 18rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.machine-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--panel);
}

.machine-card-large {
    grid-column: span 2;
}

.machine-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.machine-card div {
    padding: 1.1rem;
}

.drivers-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--line);
}

.drivers-list article {
    display: grid;
    grid-template-columns: minmax(11rem, 0.4fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 1.1rem;
    background: rgba(18, 16, 13, 0.94);
}

.drivers-list strong {
    font-size: 1.05rem;
}

.rally-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rally-map article {
    min-height: 12rem;
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.gallery-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    margin-top: clamp(4rem, 8vw, 7rem);
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--panel);
}

.gallery-teaser img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0.55rem;
    object-fit: cover;
}

.gallery-teaser div {
    padding: clamp(0.5rem, 2vw, 1.5rem);
}

.subhero {
    min-height: 58vh;
    display: grid;
    align-items: end;
    padding: 9rem 0 4rem;
}

.subhero h1 {
    margin-bottom: 1rem;
    font-size: clamp(3.6rem, 10vw, 8rem);
}

.subhero p {
    max-width: 720px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.gallery-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--panel);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-card div {
    padding: 1.15rem;
}

.gallery-card h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.05;
}

.site-footer {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 520ms ease, transform 520ms ease;
}

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

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

    .section-heading,
    .current-layout,
    .gallery-teaser {
        grid-template-columns: 1fr;
    }

    .live-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .machine-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .machine-card-large {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 0.8rem 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 4.4rem;
        right: 1rem;
        left: 1rem;
        display: grid;
        gap: 0.35rem;
        padding: 0.75rem;
        border: 1px solid var(--line);
        border-radius: 0.65rem;
        background: rgba(10, 9, 8, 0.96);
        box-shadow: var(--shadow);
        transform: translateY(-0.7rem);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 0.85rem;
    }

    .hero {
        min-height: 88vh;
        padding: 8rem 1rem 4rem;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(8, 7, 6, 0.16) 0%, rgba(8, 7, 6, 0.78) 54%, var(--bg) 100%),
            linear-gradient(90deg, rgba(8, 7, 6, 0.82), rgba(8, 7, 6, 0.18));
    }

    h1 {
        font-size: clamp(4rem, 21vw, 6.4rem);
    }

    .facts-strip,
    .machine-grid,
    .gallery-grid,
    .rally-map,
    .live-news-grid {
        grid-template-columns: 1fr;
    }

    .live-news-head {
        flex-direction: column;
    }

    .live-news-date {
        width: 100%;
        text-align: center;
    }

    .machine-card-large {
        grid-column: auto;
    }

    .facts-strip article,
    .timeline article,
    .rally-map article {
        min-height: auto;
    }

    .section {
        padding-top: 4.5rem;
    }

    .drivers-list article {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .current-hero {
        min-height: 24rem;
    }

    .subhero {
        min-height: 48vh;
        padding-top: 7.5rem;
    }
}

@media (max-width: 440px) {
    .brand span:last-child {
        display: none;
    }

    .button,
    .hero-actions {
        width: 100%;
    }
}

@media (max-width: 760px) and (max-height: 520px) {
    .site-header {
        padding-block: 0.55rem;
    }

    .brand-mark,
    .nav-toggle {
        width: 2.2rem;
        height: 2.2rem;
    }

    .hero {
        min-height: 100vh;
        align-items: center;
        padding: 4.7rem 1rem 1.1rem;
    }

    h1 {
        margin-bottom: 0.55rem;
        font-size: clamp(3rem, 18vw, 4.3rem);
        line-height: 0.86;
    }

    .hero-lead {
        margin-bottom: 0.9rem;
        font-size: 0.95rem;
        line-height: 1.38;
    }

    .button {
        width: auto;
        min-height: 2.45rem;
        padding: 0.65rem 0.8rem;
        font-size: 0.84rem;
    }
}
