/* ================================================
   VELOCE — Landing Page
   WHITE background, BLACK text, brand colors on hover
   ================================================ */
body { background: #fff; color: #0A0A0A; }

/* ── Nav — dark text on white ── */
.nav--hero-light { color: #0A0A0A; }
.nav--hero-light .nav__logo { color: #0A0A0A; }
.nav--hero-light .nav__link { color: #0A0A0A; }
.nav--hero-light.nav--scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    color: #0A0A0A;
}
.nav--hero-light.nav--scrolled .nav__logo { color: #0A0A0A; }
.nav--hero-light.nav--scrolled .nav__link { color: #0A0A0A; }

/* ── Background — Engine technical drawings, self-drawing loop ── */
.blueprint {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.blueprint svg {
    width: 100%;
    height: 100%;
}

/* All drawable paths */
.bp-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0;
}
.bp-label {
    opacity: 0;
}

/* All 4 engines draw simultaneously — immediately visible, short cycle */
.bp-engine .bp-draw {
    animation: bp-draw 6s cubic-bezier(0.4,0,0.2,1) 0s infinite;
}
.bp-engine .bp-label {
    animation: bp-label 6s ease 0s infinite;
}

/* Draw in fast → hold → erase → redraw */
@keyframes bp-draw {
    0%     { stroke-dashoffset: 1;  opacity: 0.12; }
    30%    { stroke-dashoffset: 0;  opacity: 0.12; }
    60%    { stroke-dashoffset: 0;  opacity: 0.10; }
    85%    { stroke-dashoffset: -1; opacity: 0.06; }
    100%   { stroke-dashoffset: -1; opacity: 0.12; }
}

@keyframes bp-label {
    0%     { opacity: 0; }
    32%    { opacity: 0.10; }
    62%    { opacity: 0.10; }
    80%    { opacity: 0; }
    100%   { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bp-draw { animation: none !important; stroke-dashoffset: 0 !important; opacity: 0.05 !important; }
    .bp-label { animation: none !important; opacity: 0.04 !important; }
}

/* ── Intro ── */
.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: background-color, opacity;
}


.intro__title {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: #fff;
    opacity: 0;
    will-change: opacity, color;
}

/* ── Hero — WHITE, clean ── */
.hero {
    position: relative;
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 var(--pad-container);
    background: #fff;
    color: #0A0A0A;
    overflow: hidden;
}
.hero__content {
    position: relative; z-index: 2;
}
.hero__eyebrow {
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(10,10,10,0.3);
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
    opacity: 0;
}
.hero__title {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: #0A0A0A;
    overflow: hidden;
}
.hero__rule {
    width: 0; height: 2px;
    background: linear-gradient(90deg, #CF1020, #FF8000);
    margin: clamp(1rem, 2vh, 1.5rem) auto;
}
.hero__tagline {
    font-family: var(--ff-serif);
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(10,10,10,0.35);
    opacity: 0;
}
.hero__scroll-cue {
    position: absolute;
    bottom: clamp(2rem, 4vh, 3rem);
    left: 50%; transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; gap: 0.5rem;
    opacity: 0;
}
.hero__scroll-text {
    font-family: var(--ff-body);
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(10,10,10,0.2);
}
.hero__scroll-line {
    width: 1px; height: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.15), transparent);
}

/* ── Brand Gallery — WHITE bg, brand colors on hover ── */
.brands {
    background: #fff;
    padding-bottom: clamp(3rem, 6vh, 5rem);
}
.brands__header {
    padding: clamp(4rem, 8vh, 7rem) var(--pad-container) clamp(2rem, 3vh, 3rem);
}
.brands__eyebrow {
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(10,10,10,0.25);
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
}
.brands__title {
    font-family: var(--ff-serif);
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(10,10,10,0.3);
    line-height: 1.3;
}

.brand {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    padding: clamp(1.6rem, 3vh, 2.5rem) var(--pad-container);
    border-bottom: 1px solid rgba(10,10,10,0.08);
    cursor: pointer;
    color: #0A0A0A;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.brand:first-of-type { border-top: 1px solid rgba(10,10,10,0.08); }

/* Clip-path image reveal on hover */
.brand__bg {
    position: absolute; inset: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0; pointer-events: none;
}
.brand__bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.2) saturate(0.4);
    transform: scale(1.06);
    transition: transform 0.7s var(--ease-out);
}
.brand:hover .brand__bg { clip-path: inset(0 0 0 0); }
.brand:hover .brand__bg-img { transform: scale(1); }

/* Accent bar */
.brand::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 0;
    background: var(--accent, #0A0A0A);
    transition: width 0.4s var(--ease-out); z-index: 2;
}
.brand:hover::before { width: 3px; }

.brand__index {
    font-family: var(--ff-serif);
    font-size: clamp(0.7rem, 0.85vw, 0.8rem);
    font-style: italic;
    color: rgba(10,10,10,0.15);
    position: relative; z-index: 1;
    min-width: clamp(1.5rem, 2vw, 2.5rem);
    transition: color 0.35s;
}
.brand:hover .brand__index { color: rgba(255,255,255,0.5); }

/* Brand name — black, turns BRAND COLOR on hover */
.brand__name {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: rgba(10,10,10,0.7);
    position: relative; z-index: 1;
    transition: color 0.35s;
}
.brand:hover .brand__name { color: var(--accent, #0A0A0A); }

.brand__sub {
    font-family: var(--ff-serif);
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    font-style: italic;
    color: rgba(10,10,10,0.15);
    position: relative; z-index: 1;
    transition: color 0.35s;
    white-space: nowrap;
}
.brand:hover .brand__sub { color: rgba(255,255,255,0.5); }

.brand__arrow {
    font-family: var(--ff-body);
    font-size: 1rem;
    color: rgba(10,10,10,0);
    margin-left: auto;
    position: relative; z-index: 1;
    transition: color 0.35s, transform 0.4s var(--ease-out);
    transform: translateX(-10px);
}
.brand:hover .brand__arrow {
    color: rgba(255,255,255,0.5);
    transform: translateX(0);
}

/* ── F1 Teaser — Dark strip with equal landscape photos ── */
.f1-teaser {
    position: relative; overflow: hidden;
    background: #fff;
    padding: clamp(3rem, 6vh, 5rem) var(--pad-container);
}
.f1-teaser__split {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1100px;
    margin: 0 auto;
}
.f1-teaser__half {
    flex: 1; position: relative;
    max-width: 368px;
    border-radius: 2px;
}
.f1-teaser__img {
    width: 100%; height: auto;
    display: block;
    transition: transform 0.8s var(--ease-out);
}
.f1-teaser__half:hover .f1-teaser__img { transform: scale(1.03); }
.f1-teaser__driver-name {
    position: relative;
    text-align: center;
    padding: 0.6rem 0;
    font-family: var(--ff-display);
    font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: rgba(10,10,10,0.6);
}
.f1-teaser__center {
    text-align: center;
    padding: clamp(2rem, 4vh, 3.5rem) 0 0;
}
.f1-teaser__eyebrow {
    font-size: var(--fs-small); letter-spacing: 0.35em;
    text-transform: uppercase; color: rgba(10,10,10,0.25);
    margin-bottom: 0.6rem;
}
.f1-teaser__heading {
    font-family: var(--ff-display);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700; line-height: 1.1;
    letter-spacing: -0.02em; color: #0A0A0A;
}
.f1-teaser__cta {
    display: inline-block; margin-top: 1.2rem;
    font-size: var(--fs-small); letter-spacing: 0.2em;
    text-transform: uppercase; color: rgba(10,10,10,0.4);
    padding: 0.45rem 1.2rem;
    border: 1px solid rgba(10,10,10,0.15);
    transition: all 0.35s;
}
.f1-teaser__cta:hover {
    background: rgba(10,10,10,0.04);
    border-color: rgba(10,10,10,0.3); color: #0A0A0A;
}

/* ── Closing — dark section for contrast ── */
.closing {
    min-height: 40vh;
    display: flex; align-items: center;
    justify-content: center; text-align: center;
    padding: var(--pad-section) var(--pad-container);
    background: #0A0A0A; color: #fff;
}
.closing__inner { max-width: 650px; }
.closing__eyebrow {
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.15);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    opacity: 0;
}
.closing__heading {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.closing__rule {
    width: 40px; height: 2px;
    background: linear-gradient(90deg, #CF1020, #FF8000);
    margin: clamp(1.5rem, 3vh, 2rem) auto;
    transform: scaleX(0);
}
.closing__link {
    font-size: var(--fs-small);
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.25);
    opacity: 0;
    transition: color 0.3s;
}
.closing__link:hover { color: rgba(255,255,255,0.6); }

.footer { background: #0A0A0A; color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .f1-teaser__split { flex-direction: column; min-height: auto; }
    .f1-teaser__split { flex-direction: column; gap: 1rem; }
    .f1-teaser__img { max-height: 300px; }
    .f1-teaser__center {
        position: relative; top: auto; left: auto;
        transform: none; margin: -2rem auto 2rem; width: 85%;
    }
}
@media (max-width: 768px) {
    .hero__title { font-size: clamp(2.5rem, 11vw, 4rem); }
    .brand__name { font-size: clamp(1.5rem, 8vw, 2.5rem); }
    .brand__sub, .brand__bg, .brand__index, .brand__arrow { display: none; }
    .f1-teaser__driver-name { display: none; }
}
