/* ===================================================================
   MERCEDES-AMG ONE — Technical HUD / Data Overlay.
   Futuristic F1 telemetry aesthetic. Thin lines, spec callouts
   positioned on the image with connecting lines, heads-up display.
   DIFFERENT from all other car pages.
   =================================================================== */

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

::selection {
    background: var(--me);
    color: var(--me-dark);
}

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

/* ─────────────────────────────────────────────────
   S1: HERO — Sticky. Pins while photo slides over.
   Ghost "AMG" text, massive "ONE", teal thin rule.
   ───────────────────────────────────────────────── */
.me-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(--me-dark);
    overflow: hidden;
}

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

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

.me-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;
}

.me-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;
}

.me-hero__title .line {
    clip-path: polygon(0 -5%, 100% -5%, 100% 105%, 0 105%);
}

.me-hero__rule {
    width: 0;
    height: 1px;
    background: var(--me);
    margin: clamp(1.25rem, 2.5vh, 2rem) auto;
}

.me-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;
}

.me-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;
}

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

.me-hero__scroll-line {
    width: 1px;
    height: 0;
    background: linear-gradient(180deg, rgba(0, 210, 190, 0.35), transparent);
}

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

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

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

.me-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;
}

.me-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;
}

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

.me-photo__sep {
    color: var(--me);
    opacity: 0.4;
    font-size: 0.55rem;
}

/* ─────────────────────────────────────────────────
   S3: TECH OVERLAY — THE SIGNATURE SECTION.
   Darkened car image, data points with 1px teal
   connecting lines. HUD aesthetic.
   ───────────────────────────────────────────────── */
.me-tech {
    position: relative;
    z-index: 3;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

.me-tech__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) contrast(1.1);
}

.me-tech__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.05) 40%,
        rgba(0, 0, 0, 0.05) 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

/* Scan line — sweeps down on entry */
.me-tech__scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--me), transparent);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

/* Corner bracket frames — HUD corners */
.me-tech__bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 4;
    opacity: 0;
}

.me-tech__bracket--tl {
    top: clamp(2rem, 4vh, 3rem);
    left: var(--pad-container);
    border-top: 1px solid rgba(0, 210, 190, 0.3);
    border-left: 1px solid rgba(0, 210, 190, 0.3);
}

.me-tech__bracket--tr {
    top: clamp(2rem, 4vh, 3rem);
    right: var(--pad-container);
    border-top: 1px solid rgba(0, 210, 190, 0.3);
    border-right: 1px solid rgba(0, 210, 190, 0.3);
}

.me-tech__bracket--bl {
    bottom: clamp(2rem, 4vh, 3rem);
    left: var(--pad-container);
    border-bottom: 1px solid rgba(0, 210, 190, 0.3);
    border-left: 1px solid rgba(0, 210, 190, 0.3);
}

.me-tech__bracket--br {
    bottom: clamp(2rem, 4vh, 3rem);
    right: var(--pad-container);
    border-bottom: 1px solid rgba(0, 210, 190, 0.3);
    border-right: 1px solid rgba(0, 210, 190, 0.3);
}

/* Data points */
.me-tech__point {
    position: absolute;
    z-index: 3;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.me-tech__point--engine {
    top: 22%;
    left: 10%;
}

.me-tech__point--ps {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    text-align: center;
}

.me-tech__point--motors {
    bottom: 18%;
    right: 10%;
    align-items: flex-end;
    text-align: right;
}

.me-tech__point--rpm {
    top: 18%;
    right: 12%;
    align-items: flex-end;
    text-align: right;
}

/* Connecting lines */
.me-tech__line {
    position: absolute;
    background: rgba(0, 210, 190, 0.2);
}

.me-tech__line--engine {
    width: 1px;
    height: 80px;
    bottom: -85px;
    left: 0;
    transform: scaleY(0);
    transform-origin: top;
}

.me-tech__line--motors {
    width: 1px;
    height: 80px;
    top: -85px;
    right: 0;
    transform: scaleY(0);
    transform-origin: bottom;
}

.me-tech__line--rpm {
    width: 1px;
    height: 60px;
    bottom: -65px;
    right: 0;
    transform: scaleY(0);
    transform-origin: top;
}

/* Dot at line endpoints */
.me-tech__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--me);
    box-shadow: 0 0 8px rgba(0, 210, 190, 0.5);
    opacity: 0;
}

/* Labels + Values */
.me-tech__label {
    font-family: var(--ff-body);
    font-size: 0.5rem;
    letter-spacing: 0.4em;
    color: #999;
    text-transform: uppercase;
}

.me-tech__value {
    font-family: var(--ff-display);
    color: #fff;
}

.me-tech__value--xl {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.05em;
}

.me-tech__value--md {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.me-tech__value--sm {
    font-size: clamp(0.9rem, 1.4vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.me-tech__unit {
    font-family: var(--ff-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--me);
    margin-top: 0.5rem;
}

.me-tech__counter {
    font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────────────
   S4: STATS ROW — Horizontal spec bar.
   ───────────────────────────────────────────────── */
.me-stats {
    position: relative;
    z-index: 4;
    background: var(--me-dark);
    padding: clamp(3rem, 6vh, 5rem) var(--pad-container);
    border-top: 1px solid rgba(0, 210, 190, 0.08);
    border-bottom: 1px solid rgba(0, 210, 190, 0.08);
}

.me-stats__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.me-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    opacity: 0;
}

.me-stats__number {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

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

.me-stats__divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 210, 190, 0.12);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────
   S5: F1 SECTION — Full-bleed darkened bg,
   large serif italic statement.
   ───────────────────────────────────────────────── */
.me-f1 {
    position: relative;
    z-index: 5;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.me-f1__bg {
    position: absolute;
    inset: 0;
}

.me-f1__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25) contrast(1.1);
    will-change: transform;
}

.me-f1__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.15) 60%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.me-f1__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 var(--pad-container);
}

.me-f1__quote {
    font-family: var(--ff-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    padding: 0;
}

.me-f1__quote .word {
    opacity: 0;
}

.me-f1__rule {
    width: 0;
    height: 1px;
    background: var(--me);
    margin: clamp(1.5rem, 3vh, 2.5rem) auto;
    opacity: 0.4;
}

.me-f1__sub {
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    font-weight: 400;
    line-height: 1.8;
    color: #999;
    letter-spacing: 0.02em;
    opacity: 0;
}

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

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

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

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

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

.me-marquee__content li::after {
    content: '·';
    color: var(--me);
    opacity: 0.3;
    font-size: 0.7rem;
}

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

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

/* ─────────────────────────────────────────────────
   S7: HERITAGE — "The best or nothing."
   Word-by-word reveal. Ghost car.
   ───────────────────────────────────────────────── */
.me-heritage {
    position: relative;
    z-index: 6;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(8rem, 16vh, 14rem) var(--pad-container);
    background: var(--me-dark);
    overflow: hidden;
}

.me-heritage__ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    max-width: none;
    pointer-events: none;
}

.me-heritage__ghost-car {
    width: 100%;
    height: auto;
    opacity: 0.04;
    filter: grayscale(1) brightness(0.7);
}

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

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

.me-heritage__quote .word {
    opacity: 0;
}

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

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

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

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

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

.me-blueprint__img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
}

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

.me-close__content {
    opacity: 0;
}

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

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

.me-close__year {
    font-family: var(--ff-body);
    font-size: 0.5rem;
    letter-spacing: 0.25em;
    color: var(--me);
    opacity: 0.5;
    margin-top: 1.5rem;
}

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

/* Dark nav link hover + active underline in teal */
.nav--dark .nav__link { color: #fff; }
.nav--dark .nav__link--active::after { background: var(--me); }

/* ─────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .me-tech__point--engine {
        top: 18%;
        left: 8%;
    }

    .me-tech__point--motors {
        bottom: 15%;
        right: 8%;
    }

    .me-tech__point--rpm {
        top: 15%;
        right: 8%;
    }

    .me-tech__value--xl {
        font-size: clamp(4rem, 11vw, 8rem);
    }
}

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

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

    .me-tech__point--engine {
        top: 15%;
        left: 6%;
    }

    .me-tech__point--motors {
        bottom: 12%;
        right: 6%;
    }

    .me-tech__point--rpm {
        top: 12%;
        right: 6%;
    }

    .me-tech__value--xl {
        font-size: clamp(3.5rem, 14vw, 6rem);
    }

    .me-tech__value--md {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }

    .me-tech__line--engine,
    .me-tech__line--motors,
    .me-tech__line--rpm {
        height: 50px;
    }

    .me-tech__line--engine { bottom: -55px; }
    .me-tech__line--motors { top: -55px; }
    .me-tech__line--rpm { bottom: -55px; }

    /* Stats row: wrap on mobile */
    .me-stats__inner {
        flex-wrap: wrap;
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }

    .me-stats__divider:nth-child(4) {
        display: none;
    }

    .me-stats__number {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .me-heritage__ghost {
        width: 220%;
    }

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

@media (max-width: 480px) {
    .me-tech__point--engine {
        top: 12%;
        left: 5%;
    }

    .me-tech__point--motors {
        bottom: 10%;
        right: 5%;
    }

    .me-tech__point--rpm {
        top: 10%;
        right: 5%;
    }

    .me-tech__value--xl {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .me-tech__value--sm {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }

    .me-tech__bracket {
        width: 20px;
        height: 20px;
    }

    .me-stats__inner {
        gap: 1.5rem;
    }

    .me-stats__divider {
        display: none;
    }

    .me-stats__number {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .me-f1__quote {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
}
