/* ===================================================================
   ASTON MARTIN VANTAGE — Full-screen image gallery.
   British restraint. Say less, show more.
   Different from Porsche (split-screen), Ferrari (stacking),
   McLaren (horizontal), Bugatti (pinned). This page: full-viewport
   photo sections with text sitting ON darkened images.
   Accent: #037A68. Prefix: am-. Easing: cubic-bezier(0.65,0.05,0,1).
   =================================================================== */

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

::selection {
    background: var(--am);
    color: #fff;
}

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

/* -----------------------------------------------------------------
   S1: HERO — Sticky. Ghost text. S2 slides over.
   ----------------------------------------------------------------- */
.am-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(--am-dark);
    overflow: hidden;
}

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

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

.am-hero__title {
    font-family: var(--ff-display);
    font-size: clamp(7rem, 20vw, 16rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.06em;
    color: #fff;
}

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

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

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

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

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

.am-hero__scroll-line {
    width: 1px;
    height: 0;
    background: linear-gradient(180deg, rgba(3, 122, 104, 0.4), transparent);
}

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

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

.am-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 */
.am-photo::after {
    content: '';
    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;
}

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

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

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

/* -----------------------------------------------------------------
   S3–S4: FULL-IMAGE SECTIONS — Full-viewport photo with text overlay
   ----------------------------------------------------------------- */
.am-fullimg {
    position: relative;
    z-index: 2;
    height: 100vh;
    overflow: hidden;
}

.am-fullimg__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.am-fullimg__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.am-fullimg--left .am-fullimg__overlay {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.45) 0%,
        transparent 60%
    ),
    linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.5) 0%,
        transparent 40%
    );
}

.am-fullimg--right .am-fullimg__overlay {
    background: linear-gradient(
        270deg,
        rgba(0, 0, 0, 0.45) 0%,
        transparent 60%
    ),
    linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.5) 0%,
        transparent 40%
    );
}

.am-fullimg__content {
    position: absolute;
    bottom: clamp(3rem, 8vh, 6rem);
    z-index: 2;
    max-width: 450px;
    opacity: 0;
}

.am-fullimg__content--left {
    left: var(--pad-container);
}

.am-fullimg__content--right {
    right: var(--pad-container);
    text-align: right;
}

.am-fullimg__label {
    font-family: var(--ff-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--am);
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
}

.am-fullimg__stat-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.am-fullimg__content--right .am-fullimg__stat-row {
    justify-content: flex-end;
}

.am-fullimg__number {
    font-family: var(--ff-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: #fff;
}

.am-fullimg__unit {
    font-family: var(--ff-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--am);
}

.am-fullimg__secondary {
    font-family: var(--ff-body);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #999;
    margin-top: 0.5rem;
}

.am-fullimg__rule {
    width: 40px;
    height: 1px;
    background: rgba(3, 122, 104, 0.35);
    margin: clamp(1.25rem, 2.5vh, 2rem) 0;
}

.am-fullimg__content--right .am-fullimg__rule {
    margin-left: auto;
}

.am-fullimg__body {
    font-family: var(--ff-serif);
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    color: #bbb;
    max-width: 380px;
}

.am-fullimg__content--right .am-fullimg__body {
    margin-left: auto;
}

/* -----------------------------------------------------------------
   S5: MARQUEE — CSS-only Ryan Mulligan
   ----------------------------------------------------------------- */
.am-marquee {
    position: relative;
    z-index: 2;
    padding: clamp(1rem, 2vh, 1.5rem) 0;
    background: var(--am-dark);
    border-top: 1px solid rgba(3, 122, 104, 0.12);
    border-bottom: 1px solid rgba(3, 122, 104, 0.12);
    overflow: hidden;
}

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

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

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

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

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

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

/* -----------------------------------------------------------------
   S6: HERITAGE — Quote. Ghost car. Breathes.
   ----------------------------------------------------------------- */
.am-heritage {
    position: relative;
    z-index: 2;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(8rem, 16vh, 14rem) var(--pad-container);
    background: var(--am-dark);
    overflow: hidden;
}

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

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

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

.am-heritage__quote {
    font-family: var(--ff-serif);
    font-size: clamp(1.8rem, 4vw, 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 */
.am-heritage__quote .word {
    opacity: 0;
}

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

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

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

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

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

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

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

.am-close__content {
    opacity: 0;
}

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

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

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

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

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 1024px) {
    .am-fullimg__number {
        font-size: clamp(3.5rem, 12vw, 6rem);
    }
}

@media (max-width: 768px) {
    .am-hero__title {
        font-size: clamp(5rem, 25vw, 10rem);
    }

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

    .am-fullimg__number {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .am-fullimg__body {
        max-width: 100%;
    }

    .am-fullimg__content {
        max-width: 320px;
    }

    .am-heritage__ghost {
        width: 220%;
    }

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

@media (max-width: 480px) {
    .am-fullimg__number {
        font-size: clamp(2.5rem, 16vw, 4rem);
    }

    .am-fullimg__content {
        max-width: 280px;
    }

    .am-fullimg__body {
        font-size: 0.85rem;
    }
}
