/* ===================================================================
   BUGATTI CHIRON — Dark cinematic with pinned reveal section.
   Near-black void. Absence of flash = luxury.
   DIFFERENT from McLaren (horizontal scroll) and Ferrari (stacking panels).
   Bugatti's signature: W16 Monument — pinned section with sequential reveals.
   =================================================================== */

:root {
    --bu-dark: #050505;
    --bu-ease: cubic-bezier(0.65, 0.05, 0, 1);
    --bu-dur: 0.75s;
    --bu-gap: 3rem;
}

::selection {
    background: #1a1a2e;
    color: #fff;
}

body {
    background: var(--bu-dark);
    color: #fff;
    margin: 0;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────────────
   S1: HERO — Sticky. Pins while S2 slides over.
   Ghost "BUGATTI" at 2% opacity. Near-black void.
   ───────────────────────────────────────────────── */
.bu-hero {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--pad-container);
    background: var(--bu-dark);
    overflow: hidden;
}

.bu-hero__ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    font-family: var(--ff-display);
    font-size: clamp(10rem, 24vw, 24rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    opacity: 0.02;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.bu-hero__content {
    position: relative;
    z-index: 2;
}

.bu-hero__eyebrow {
    font-family: var(--ff-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    opacity: 0;
}

.bu-hero__title {
    font-family: var(--ff-display);
    font-size: clamp(8rem, 22vw, 18rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.06em;
    color: #fff;
}

/* Clip-path masking for SplitType lines */
.bu-hero__title .line {
    clip-path: polygon(0 -5%, 100% -5%, 100% 105%, 0 105%);
}

.bu-hero__rule {
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: clamp(1.25rem, 2.5vh, 2rem) auto;
}

.bu-hero__tagline {
    font-family: var(--ff-serif);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 300;
    font-style: italic;
    color: #bbb;
    opacity: 0;
}

.bu-hero__scroll {
    position: absolute;
    bottom: clamp(2rem, 4vh, 3rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    z-index: 2;
}

.bu-hero__scroll-text {
    font-family: var(--ff-body);
    font-size: 0.5rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #666;
}

.bu-hero__scroll-line {
    width: 1px;
    height: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
}

/* ─────────────────────────────────────────────────
   S2: FULL-BLEED PHOTO — Slides over hero.
   Ellipse clip-path reveal. Counter-scale. Vignette.
   ───────────────────────────────────────────────── */
.bu-photo {
    position: relative;
    z-index: 2;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.bu-photo__image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: ellipse(0% 0% at 50% 50%);
    will-change: clip-path;
}

.bu-photo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    will-change: transform;
    filter: brightness(0.85) contrast(1.05);
}

/* Radial vignette */
.bu-photo__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        transparent 30%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.bu-photo__caption {
    position: absolute;
    bottom: clamp(2rem, 4vh, 3rem);
    right: var(--pad-container);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
}

.bu-photo__tag {
    font-family: var(--ff-body);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #bbb;
}

.bu-photo__sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.55rem;
}

/* ─────────────────────────────────────────────────
   S3: W16 MONUMENT — THE SIGNATURE SECTION.
   ScrollTrigger pin:true, scrub over +=300%.
   Content reveals sequentially. Background image
   fades in behind at 15% opacity.
   ───────────────────────────────────────────────── */
.bu-monument {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bu-dark);
    overflow: hidden;
}

.bu-monument__bg {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.bu-monument__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.6) brightness(0.5) contrast(1.1);
}

.bu-monument__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.75rem, 1.5vh, 1.25rem);
}

.bu-monument__w16 {
    font-family: var(--ff-display);
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.06em;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.25);
    color: transparent;
    opacity: 0;
    margin: 0;
}

.bu-monument__litres {
    font-family: var(--ff-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #999;
    opacity: 0;
    margin: 0;
}

.bu-monument__turbos {
    font-family: var(--ff-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #666;
    opacity: 0;
    margin: 0;
}

.bu-monument__ps-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: clamp(0.5rem, 1vh, 1rem);
    opacity: 0;
}

.bu-monument__ps {
    font-family: var(--ff-display);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: #fff;
    display: block;
}

.bu-monument__ps-unit {
    font-family: var(--ff-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    display: block;
    align-self: flex-end;
    padding-bottom: 0.8rem;
}

/* ─────────────────────────────────────────────────
   S4: STATS — Two columns with central divider.
   Fade-in stagger.
   ───────────────────────────────────────────────── */
.bu-stats {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--pad-section) var(--pad-container);
    background: #000;
}

.bu-stats__inner {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 900px;
    width: 100%;
}

.bu-stats__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vh, 4rem);
}

.bu-stats__col--left {
    text-align: right;
}

.bu-stats__col--right {
    text-align: left;
}

.bu-stats__divider {
    width: 1px;
    height: 180px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.bu-stats__item {
    opacity: 0;
}

.bu-stats__value {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
    display: block;
}

.bu-stats__value-unit {
    font-size: 0.55em;
    font-weight: 500;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.4);
}

.bu-stats__label {
    font-family: var(--ff-body);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

/* ─────────────────────────────────────────────────
   S5: IMAGE BREAK — Full-bleed parallax. No text.
   ───────────────────────────────────────────────── */
.bu-imagebreak {
    position: relative;
    z-index: 2;
    height: 80vh;
    overflow: hidden;
    background: #000;
}

.bu-imagebreak__wrap {
    position: absolute;
    inset: -15% 0;
}

.bu-imagebreak__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) contrast(1.08);
    will-change: transform;
}

/* ─────────────────────────────────────────────────
   S6: MARQUEE — Ryan Mulligan CSS-only
   ───────────────────────────────────────────────── */
.bu-marquee {
    position: relative;
    z-index: 2;
    padding: clamp(1rem, 2vh, 1.5rem) 0;
    background: var(--bu-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.bu-marquee__track {
    display: flex;
    gap: var(--bu-gap);
}

.bu-marquee__content {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    gap: var(--bu-gap);
    list-style: none;
    margin: 0;
    padding: 0;
    animation: bu-marquee-scroll 32s linear infinite;
}

.bu-marquee__content li {
    font-family: var(--ff-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 3rem;}

.bu-marquee__content li::after {
    content: '·';
    color: rgba(255,255,255,0.15);
    opacity: 0.3;
    font-size: 0.7rem;
}

@keyframes bu-marquee-scroll {
    to { transform: translateX(calc(-100% - var(--bu-gap))); }
}

@media (prefers-reduced-motion: reduce) {
    .bu-marquee__content { animation: none; }
}

/* ─────────────────────────────────────────────────
   S7: HERITAGE — Ettore Bugatti quote.
   Word-by-word reveal. Quiet reverence.
   ───────────────────────────────────────────────── */
.bu-heritage {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(8rem, 16vh, 14rem) var(--pad-container);
    background: var(--bu-dark);
    overflow: hidden;
}

.bu-heritage__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.bu-heritage__quote {
    font-family: var(--ff-serif);
    font-size: clamp(1.8rem, 3.8vw, 3.2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    padding: 0;
}

/* Words start hidden for word-by-word reveal */
.bu-heritage__quote .word {
    opacity: 0;
}

.bu-heritage__cite {
    font-family: var(--ff-body);
    font-size: 0.5rem;
    font-style: normal;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #555;
    margin-top: clamp(1.5rem, 3vh, 2.5rem);
    display: block;
    opacity: 0;
}

/* ─────────────────────────────────────────────────
   S8: BLUEPRINT — Engine technical drawing
   ───────────────────────────────────────────────── */
.bu-blueprint {
    position: relative;
    z-index: 2;
    background: var(--bu-dark);
    padding: clamp(5rem, 10vh, 8rem) var(--pad-container);
}

.bu-blueprint__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.bu-blueprint__label {
    font-family: var(--ff-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: clamp(2rem, 4vh, 3rem);
    opacity: 0;
}

.bu-blueprint__wrap {
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
}

.bu-blueprint__img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────
   S9: CLOSE — Minimal brand departure
   ───────────────────────────────────────────────── */
.bu-close {
    position: relative;
    z-index: 2;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bu-dark);
    padding: var(--pad-section) var(--pad-container);
}

.bu-close__content {
    opacity: 0;
}

.bu-close__brand {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
}

.bu-close__origin {
    font-family: var(--ff-serif);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-style: italic;
    color: #555;
    margin-top: 0.6rem;
}

.bu-close__year {
    font-family: var(--ff-body);
    font-size: 0.5rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 1.5rem;
}

/* ─────────────────────────────────────────────────
   NAV + FOOTER z-index
   ───────────────────────────────────────────────── */
.nav { z-index: 100; }
.footer { position: relative; z-index: 2; }

/* ─────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bu-monument__w16 {
        font-size: clamp(6rem, 18vw, 14rem);
    }

    .bu-monument__ps {
        font-size: clamp(4rem, 14vw, 8rem);
    }

    .bu-stats__inner {
        gap: clamp(1.5rem, 3vw, 3rem);
    }
}

@media (max-width: 768px) {
    .bu-hero__title {
        font-size: clamp(6rem, 28vw, 12rem);
    }

    .bu-hero__ghost {
        font-size: clamp(8rem, 35vw, 14rem);
    }

    .bu-monument__w16 {
        font-size: clamp(5rem, 22vw, 10rem);
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
    }

    .bu-monument__ps {
        font-size: clamp(3.5rem, 18vw, 7rem);
    }

    .bu-stats__inner {
        flex-direction: column;
        gap: clamp(2rem, 4vh, 3rem);
    }

    .bu-stats__col--left,
    .bu-stats__col--right {
        text-align: center;
    }

    .bu-stats__divider {
        width: 60px;
        height: 1px;
    }

    .bu-imagebreak {
        height: 60vh;
    }

    .bu-heritage__quote {
        font-size: clamp(1.5rem, 6vw, 2.4rem);
    }

    .bu-photo__caption {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .bu-monument__w16 {
        font-size: clamp(4rem, 25vw, 7rem);
    }

    .bu-monument__ps {
        font-size: clamp(3rem, 20vw, 5.5rem);
    }

    .bu-stats__value {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .bu-imagebreak {
        height: 50vh;
    }
}
