/* ================= SITE THEME ================= */

:root {
    --bg: #05060a;
    --bg-2: #0b0d14;
    --line: #1c2030;
    --text: #f6f7fa;
    --muted: #9aa0b2;
    --red: #e82127;
    --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
    --ease: cubic-bezier(.2, .7, .1, 1);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
}


/* ================= BUTTONS ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 17px 30px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: 600 16px/1 "Inter", sans-serif;
    color: #fff;
    cursor: pointer;
    transition: transform .3s var(--ease), background .3s, border-color .3s;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.btn-red { background: var(--red); }
.btn-red:hover { background: #ff2f35; }

.btn-ghost {
    background: rgba(5, 6, 10, .45);
    border-color: rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: #fff; }

.btn-sm { padding: 13px 20px; font-size: 14px; gap: 10px; white-space: nowrap; }
@media (max-width: 480px) {
    .btn-sm { padding: 12px 16px; }
    .brand { font-size: 22px; letter-spacing: .22em; }
    .brand span { letter-spacing: .4em; }
}
@media (max-width: 520px) { .header-actions .btn-sm { display: none; } }
.btn-block { width: 100%; }


/* ================= INTRO + LETTERBOX ================= */

.intro {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    transition: opacity 1s ease .1s, visibility 0s linear 1.2s;
}

.intro-word {
    font-family: var(--display);
    font-size: clamp(34px, 9vw, 92px);
    letter-spacing: .5em;
    margin-right: -.3em;
    white-space: nowrap;
    opacity: 0;
    animation: introWord 1.8s var(--ease) .2s forwards;
}

.intro-line {
    width: 0;
    height: 2px;
    background: var(--red);
    box-shadow: 0 0 18px var(--red);
    animation: introLine 1.4s var(--ease) .5s forwards;
}

@keyframes introWord {
    0%   { opacity: 0; letter-spacing: .55em; }
    60%  { opacity: 1; }
    100% { opacity: 1; letter-spacing: .3em; }
}

@keyframes introLine { to { width: min(60vw, 420px); } }

body.is-ready .intro { opacity: 0; visibility: hidden; pointer-events: none; }

.bar {
    position: fixed;
    left: 0;
    right: 0;
    height: 11vh;
    background: #000;
    z-index: 99990;
    pointer-events: none;
    transition: transform 1.6s var(--ease) .5s;
}
.bar-top    { top: 0; }
.bar-bottom { bottom: 0; }
body.is-ready .bar-top    { transform: translateY(-101%); }
body.is-ready .bar-bottom { transform: translateY(101%); }


/* ================= HEADER + MENU ================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(18px + env(safe-area-inset-top)) 6% 18px;
    transition: background .4s, backdrop-filter .4s, border-color .4s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(5, 6, 10, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.brand, .brandmark {
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: .28em;
    line-height: 1;
}

.brand span, .brandmark span {
    display: block;
    margin-top: 4px;
    font: 600 9px/1 "Inter", sans-serif;
    letter-spacing: .5em;
    color: var(--red);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-btn {
    width: 46px;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    cursor: pointer;
}
.menu-btn span {
    width: 18px;
    height: 2px;
    background: #fff;
    transition: transform .3s, opacity .3s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(5, 6, 10, .97);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 8%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a {
    font-family: var(--display);
    font-size: clamp(38px, 9vw, 72px);
    letter-spacing: .04em;
    line-height: 1.12;
    transform: translateY(20px);
    opacity: 0;
    transition: transform .6s var(--ease), opacity .6s, color .3s;
}
.menu.open a { transform: none; opacity: 1; }
.menu.open a:nth-child(2) { transition-delay: .06s; }
.menu.open a:nth-child(3) { transition-delay: .12s; }
.menu.open a:nth-child(4) { transition-delay: .18s; }
.menu.open a:nth-child(5) { transition-delay: .24s; }
.menu.open a:nth-child(6) { transition-delay: .30s; }
.menu.open a:nth-child(7) { transition-delay: .36s; }
.menu a:hover { color: var(--red); }


/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}

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

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    transform: scale(1.22);
    filter: brightness(.75) contrast(1.08) saturate(1.1);
    transition: filter 2.4s ease;
}

body.is-ready .hero-media img {
    filter: brightness(1) contrast(1.08) saturate(1.1);
    animation: push 18s ease-out forwards;
}

@keyframes push {
    from { transform: scale(1.22); }
    to   { transform: scale(1.02); }
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--bg) 2%, rgba(5, 6, 10, .78) 28%, rgba(5, 6, 10, .08) 62%, rgba(5, 6, 10, .55) 100%),
        radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0, 0, 0, .55) 100%);
}

/* a single red light sweep across the frame */
.hero-sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(232, 33, 39, .22), transparent);
    transform: skewX(-18deg);
    opacity: 0;
}
body.is-ready .hero-sweep { animation: sweep 2.2s ease-in-out 1.2s 1 forwards; }
@keyframes sweep {
    0%   { left: -40%; opacity: 0; }
    20%  { opacity: 1; }
    100% { left: 120%; opacity: 0; }
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    padding: 0 6% calc(70px + env(safe-area-inset-bottom));
}

.hero-title {
    margin: 0 0 18px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(72px, 24vw, 260px);
    white-space: nowrap;
    display: inline-block;
    line-height: .86;
    letter-spacing: .01em;
    text-shadow: 0 6px 60px rgba(0, 0, 0, .6);
}

.hero-lead {
    margin: 0 0 12px;
    max-width: 22em;
    font-size: clamp(20px, 3.4vw, 30px);
    font-weight: 700;
    line-height: 1.25;
}

.hero-sub {
    margin: 0 0 30px;
    color: #cfd3df;
    font-size: clamp(16px, 2.2vw, 20px);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
    position: absolute;
    right: 6%;
    bottom: calc(32px + env(safe-area-inset-bottom));
    width: 26px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, .5);
    border-radius: 14px;
    display: none;
}
.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #fff;
    animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@media (min-width: 769px) { .scroll-cue { display: block; } }


/* entrance + scroll reveals */
.rise {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
body.is-ready .rise {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--d, 0s) + 1.1s);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }


/* ================= STATS ================= */

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    background: var(--bg);
    padding: 38px 6%;
    text-align: left;
}
.stat strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(44px, 9vw, 84px);
    line-height: 1;
}
.stat span {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
}
.stat small { color: var(--muted); font-size: 12px; }

@media (min-width: 900px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stat { padding: 54px 4% 54px 6%; }
}


/* ================= PERFORMANCE ================= */

.overview { padding: 100px 6%; background: var(--bg); }
.overview .perf, .overview .feat { margin-top: 70px; }
.overview .eyebrow { margin-bottom: 20px; }

.feat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
@media (min-width: 700px)  { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat-item { background: var(--bg); padding: 30px 26px; }
.feat-item h3 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .04em;
}
.feat-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ================= SPECIFICATIONS ================= */

.specs { padding: 100px 6%; background: var(--bg-2); border-top: 1px solid var(--line); }
.spec-table { margin: 40px 0 0; max-width: 820px; }
.spec-table div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.spec-table dt { color: var(--muted); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; }

.section-head h2 {
    margin: 0 0 18px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(44px, 8vw, 92px);
    line-height: .95;
    letter-spacing: .01em;
}
.section-head .lead { color: #c4c8d4; font-size: 17px; line-height: 1.65; max-width: 34em; }

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 46px;
}
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
    padding: 34px 28px;
    background: linear-gradient(160deg, #10131d, #090b11);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .4s, transform .4s var(--ease);
}
.card:hover { border-color: var(--red); transform: translateY(-4px); }
.card strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: 46px;
    line-height: 1;
    margin-bottom: 8px;
}
.card span { color: var(--muted); font-size: 14px; letter-spacing: .06em; }

.fineprint { margin: 30px 0 0; color: #6c7285; font-size: 12px; line-height: 1.6; }


/* gallery sits on the site background */
.vehicle-gallery { background: var(--bg-2); border-top: 1px solid var(--line); }
.gallery-heading h2 { font-family: var(--display); font-weight: 400; letter-spacing: .12em; }


/* ================= ENQUIRE ================= */

.enquire {
    padding: 110px 6%;
    background:
        linear-gradient(to bottom, var(--bg) 0%, rgba(5, 6, 10, .18) 18%, rgba(5, 6, 10, .42) 100%),
        url("assets/reveal-launch.jpg") center / cover no-repeat;
    border-top: 1px solid var(--line);
}
.enquire-inner { max-width: 640px; margin: 0 auto; }
.enquire .section-head { margin-bottom: 40px; text-shadow: 0 2px 24px rgba(0, 0, 0, .7); }

.form {
    display: grid;
    gap: 18px;
    padding: 28px 24px;
    background: rgba(5, 6, 10, .6);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 16px 16px;
    background: #0c0f17;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #fff;
    font: 400 16px/1.4 "Inter", sans-serif;
    transition: border-color .3s, box-shadow .3s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(232, 33, 39, .2);
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9aa0b2 50%), linear-gradient(135deg, #9aa0b2 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field .invalid { border-color: #ff6b70; }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; color: #c4c8d4; }
.form-status.error { color: #ff8a8e; }


/* ================= FOOTER ================= */

.site-footer {
    padding: 50px 6% calc(50px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #030408;
    color: #6c7285;
    font-size: 12px;
    line-height: 1.7;
}
.site-footer .brandmark { color: #fff; margin: 0 0 18px; }
.site-footer p { margin: 0; max-width: 46em; }
.site-footer .brandmark { max-width: none; }


/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .intro, .bar { display: none; }
    .hero-media img { animation: none !important; transform: none; filter: none; }
    .hero-sweep { display: none; }
    .rise, .reveal { opacity: 1; transform: none; transition: none; }
}


/* ================= HERO — PORTRAIT PHONES ================= */
/* The hero photo is portrait; on a phone show all of it (thrusters
   and smoke included) and fade it into the page behind the text. */

@media (max-width: 768px) {
    .hero-media {
        inset: 0 0 auto 0;
        height: 66vh;
        height: 66svh;
        -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    }
    .hero-media img {
        object-position: 50% 70%;
        transform: scale(1.12);
    }
    @keyframes push {
        from { transform: scale(1.12); }
        to   { transform: scale(1.0); }
    }
    .hero-shade {
        background:
            linear-gradient(to top, var(--bg) 14%, rgba(5, 6, 10, 0) 50%),
            linear-gradient(to bottom, rgba(5, 6, 10, .75) 0%, rgba(5, 6, 10, 0) 22%);
    }
}
