/* =============================================================
   OPTIMUS — dark minimal design system
   ============================================================= */

:root {
    /* palette — Tesla light theme (white page, near-black ink) */
    --bg:           #ffffff;
    --bg-soft:      #f4f4f4;
    --surface:      #f4f4f4;
    --surface-2:    #e8e9ea;
    --line:         rgba(0, 0, 0, 0.14);
    --line-soft:    rgba(0, 0, 0, 0.08);

    --text:         #171a20;          /* Tesla near-black */
    --text-dim:     #5c5e62;          /* Tesla gray */
    --text-faint:   #8e9196;

    --accent:       #171a20;          /* dark primary button, Tesla-like */
    --on-accent:    #ffffff;          /* ink that sits on the dark accent */
    --accent-cool:  #3457dc;          /* Tesla blue highlight */
    --glow:         rgba(52, 87, 220, 0.16);

    /* type — the real Tesla typeface (Universal Sans), already loaded by the
       Tesla Design System CSS used site-wide. Montserrat/Inter kept as fallback. */
    --font-display: "Universal Sans Display", 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    --font-body:    "Universal Sans Text", 'Inter', 'Segoe UI', system-ui, sans-serif;

    /* spacing rhythm */
    --pad-x:        clamp(1.25rem, 5vw, 6rem);
    --maxw:         1280px;

    --radius:       14px;
    --radius-lg:    22px;

    --ease:         cubic-bezier(0.22, 1, 0.36, 1);

    --header-h:     72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    /* `clip` (not `hidden`) prevents horizontal scroll WITHOUT creating a
       scroll container — keeping the hero's position:sticky working. */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

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

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }

.section { padding-block: clamp(5rem, 12vh, 11rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vh, 6rem); }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-faint);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: var(--text-faint);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin-top: 1.1rem;
    max-width: 18ch;
}
.section-lead {
    color: var(--text-dim);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    max-width: 52ch;
    margin-top: 1.4rem;
}

/* ---------- buttons ---------- */
.btn {
    --bh: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: var(--bh);
    padding-inline: 1.8rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
    will-change: transform;
}
/* inline icons carry a viewBox but no width/height — pin their size so they
   don't expand to the SVG default (300×150) and blow the button apart */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent-cool); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: rgba(0,0,0,0.55); background: rgba(0,0,0,0.04); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line-soft);
}
.header-inner {
    width: 100%;
    /* full-bleed like Tesla: wordmark hugs the left edge, nav centred on screen */
    max-width: none;
    padding-inline: clamp(1.25rem, 3vw, 2.75rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;   /* wordmark · nav · actions */
    align-items: center;
    gap: 1rem;
}

/* Tesla-style header brand: the wordmark only */
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand-wordmark { width: 108px; height: auto; color: var(--text); display: block; transition: opacity 0.25s; }
.brand:hover .brand-wordmark { opacity: 0.82; }
.brand-logo {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.025), 0 6px 18px rgba(0,0,0,0.5);
    transition: transform 0.4s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-mark {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.34em;
    font-size: 0.6rem;
    color: var(--text-faint);
    text-transform: uppercase;
    margin-bottom: 0.22rem;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.3em;
    font-size: 1rem;
}

/* Tesla-style centred nav: bold white links, soft pill on hover */
.nav { justify-self: center; }
.nav-list { display: flex; gap: 0.1rem; }
.nav-link {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--text);
    border-radius: 7px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(255,255,255,0.12); }
.nav-link.is-active { background: rgba(255,255,255,0.16); }

/* right-side circular icon actions (help · language · account) */
.header-actions { justify-self: end; display: flex; align-items: center; gap: 0.1rem; }
.icon-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--text);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.14); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: transparent; border: 0;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    z-index: 99;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav ul { padding: 1rem var(--pad-x) 2rem; }
.mobile-nav a {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a.is-active, .mobile-nav a:hover { color: var(--text); }
.mobile-cta { color: var(--text) !important; }

/* =============================================================
   SCROLL-DRIVEN VIDEO HERO
   ============================================================= */
.scrolly {
    position: relative;
    /* tall track gives the scroll its length; tuned in markup with --track */
    height: var(--track, 500vh);
}
.scrolly__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}
.scrolly__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* slightly darken for legible captions */
    filter: brightness(0.78) contrast(1.03);
}
/* vignette + gradient for text legibility */
.scrolly__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(0,0,0,0.55) 100%),
        linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 35%, transparent 70%, rgba(0,0,0,0.55) 100%);
}

/* staged captions */
.hero-stages {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: var(--header-h) var(--pad-x) 0;
    pointer-events: none;
}
.hero-stage {
    grid-area: 1 / 1;
    max-width: 720px;
    text-align: center;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.hero-stage.is-active { opacity: 1; transform: translateY(0); }
.hero-stage__kicker {
    font-size: 0.8rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-cool);
    margin-bottom: 1.1rem;
}
.hero-stage__title {
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    line-height: 1.0;
    text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}
.hero-stage__text {
    margin-top: 1.2rem;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    color: rgba(255,255,255,0.86);
}

/* progress + scroll cue */
.hero-progress {
    position: absolute;
    left: var(--pad-x); right: var(--pad-x); bottom: 2rem;
    height: 2px;
    background: rgba(255,255,255,0.14);
    z-index: 4;
    border-radius: 2px;
    overflow: hidden;
}
.hero-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cool), #fff);
    box-shadow: 0 0 16px var(--glow);
    transition: width 0.08s linear;
}
.scroll-cue {
    position: absolute;
    left: 50%; bottom: 3.4rem;
    transform: translateX(-50%);
    z-index: 4;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: opacity 0.4s;
}
.scroll-cue__mouse {
    width: 22px; height: 36px;
    border: 1.5px solid var(--text-faint);
    border-radius: 12px;
    position: relative;
}
.scroll-cue__mouse::after {
    content: "";
    position: absolute;
    left: 50%; top: 7px;
    width: 3px; height: 7px;
    background: var(--text);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* hero outro — the film "parks" onto this still + copy at the end of the scroll */
.hero-outro {
    position: absolute; inset: 0; z-index: 5;
    opacity: 0; pointer-events: none;
    display: grid; align-items: end;
    will-change: opacity;
}
.hero-outro__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-outro::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 34%, rgba(0,0,0,0.85) 100%);
}
.hero-outro__copy {
    position: relative;
    text-align: center; color: #fff;
    width: 100%; max-width: 64rem; margin-inline: auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem) clamp(3.5rem, 9vh, 6.5rem);
}
.hero-outro__copy .eyebrow { justify-content: center; color: rgba(255,255,255,0.72); }
.hero-outro__copy .eyebrow::before { background: rgba(255,255,255,0.6); }
.hero-outro__copy h2 {
    color: #fff;
    font-size: clamp(2.1rem, 5.2vw, 4.2rem);
    line-height: 1.03; letter-spacing: -0.02em;
    margin: 1rem auto 0; max-width: 20ch;
    text-shadow: 0 2px 34px rgba(0,0,0,0.45);
}
.hero-outro__price {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: #fff;
    margin: 1rem 0 0; text-shadow: 0 1px 20px rgba(0,0,0,0.45);
}
.hero-outro__cta { margin-top: 1.5rem; display: flex; justify-content: center; }
.hero-outro__order {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 240px; height: 50px; padding: 0 2rem;
    background: #3457dc; color: #fff; border-radius: 5px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
    text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.hero-outro__order:hover { background: #2f4ec9; transform: translateY(-1px); }

/* fallback hero (reduced motion / no-js) */
.hero-fallback {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--header-h) var(--pad-x) 0;
}

/* =============================================================
   GENERIC PAGE HERO (inner pages)
   ============================================================= */
.page-hero {
    padding-top: calc(var(--header-h) + clamp(4rem, 12vh, 9rem));
    padding-bottom: clamp(3rem, 8vh, 6rem);
    border-bottom: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--bg-soft), var(--bg));
}
.page-hero::before {
    content: "";
    position: absolute;
    top: -40%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--glow), transparent 60%);
    opacity: 0.5;
    filter: blur(20px);
    pointer-events: none;
}
.page-hero h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
    max-width: 16ch;
    margin-top: 1.2rem;
}
.page-hero p { color: var(--text-dim); max-width: 56ch; margin-top: 1.4rem; font-size: 1.1rem; }

/* =============================================================
   FEATURE / STAT BLOCKS
   ============================================================= */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}
.intro-grid .media {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}
.intro-grid .media video, .intro-grid .media img { width: 100%; height: 100%; object-fit: cover; }

/* stat strip */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.stat {
    background: var(--bg);
    padding: 2.2rem 1.6rem;
    transition: background 0.3s;
}
.stat:hover { background: var(--surface); }
.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}
.stat__value span { font-size: 0.45em; color: var(--text-dim); margin-left: 0.25rem; }
.stat__label { margin-top: 0.4rem; color: var(--text-dim); font-size: 0.9rem; }
.stat__note { margin-top: 0.6rem; color: var(--text-faint); font-size: 0.78rem; }

/* capability cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem 2.2rem;
    transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 50% -10%, var(--glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line); }
.card:hover::before { opacity: 0.6; }
.card__icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 1.4rem;
    color: var(--accent-cool);
}
.card__icon svg { width: 24px; height: 24px; }
.card__lead { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.card__title { font-size: 1.4rem; margin: 0.5rem 0 0.9rem; }
.card__body { color: var(--text-dim); font-size: 0.98rem; }

/* alternating feature rows */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding-block: clamp(3rem, 8vh, 6rem);
    border-top: 1px solid var(--line-soft);
}
.feature-row:nth-child(even) .feature-row__media { order: -1; }
.feature-row__media {
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    display: grid; place-items: center;
    color: var(--text-faint);
}
.feature-row__media img, .feature-row__media video { width: 100%; height: 100%; object-fit: cover; }
.feature-row h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.feature-row p { color: var(--text-dim); }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table th, .spec-table td { text-align: left; padding: 1.3rem 1rem; }
.spec-table th {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 0.95rem;
    width: 38%;
}
.spec-table td {
    font-family: var(--font-display);
    font-size: 1.15rem;
}
.spec-table .muted { color: var(--text-faint); font-family: var(--font-body); font-size: 0.85rem; }

/* gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    grid-auto-flow: dense;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: var(--surface);
    position: relative;
    min-height: 220px;
    display: grid; place-items: center;
    color: var(--text-faint);
}
.gallery-item video, .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item--wide { grid-column: span 4; }
.gallery-item--tall { grid-column: span 2; grid-row: span 2; }
.gallery-item--std { grid-column: span 2; }
.gallery-item__cap {
    position: absolute;
    left: 1rem; bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(0,0,0,0.4);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

/* CTA banner */
.cta-banner {
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(3rem, 8vw, 6rem);
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(80,120,160,0.18), transparent 55%),
        var(--bg-soft);
}
.cta-banner h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.cta-banner p { color: var(--text-dim); max-width: 48ch; margin-inline: auto; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.95rem 1.1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--accent-cool);
    background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.contact-aside { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-aside .info-block { padding: 1.4rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-aside h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.contact-aside p { color: var(--text-dim); font-size: 0.95rem; }
.form-note { color: var(--text-faint); font-size: 0.82rem; margin-top: 1rem; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    border-top: 1px solid var(--line-soft);
    background: var(--bg-soft);
    padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}
.footer-inner {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--pad-x);
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 2.5rem;
}
.footer-brand .brand-mark { display: block; }
.footer-brand .brand-name { font-size: 1.4rem; }
.footer-tagline { color: var(--text-dim); margin-top: 1rem; max-width: 34ch; }
.footer-nav h4, .footer-meta h4 { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.footer-nav li { margin-bottom: 0.7rem; }
.footer-nav a { color: var(--text-dim); transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-meta p { color: var(--text-dim); font-size: 0.92rem; }
.footer-bottom {
    max-width: var(--maxw);
    margin: 2.5rem auto 0;
    padding: 1.6rem var(--pad-x) 0;
    border-top: 1px solid var(--line-soft);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    color: var(--text-faint);
    font-size: 0.85rem;
}
.footer-back a { transition: color 0.2s; }
.footer-back a:hover { color: var(--text); }
.footer-logo-row { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.footer-brand .brand-logo { width: 46px; height: 46px; }
.footer-brand .brand-name { font-size: 1.3rem; }

/* =============================================================
   MEDIA SHOWCASE COMPONENTS (images + video)
   ============================================================= */

/* full-bleed image/section showcase with overlaid copy */
.showcase {
    position: relative;
    min-height: 94vh;
    display: grid;
    align-items: end;
    overflow: hidden;
}
.showcase__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.62) contrast(1.03);
    transform: scale(1.03);
}
.showcase::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
}
.showcase__inner { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 9vh, 7rem); padding-top: 8rem; }
.showcase h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 17ch; }
.showcase p { color: rgba(255,255,255,0.86); max-width: 52ch; margin-top: 1.3rem; font-size: clamp(1rem, 1.5vw, 1.25rem); }

/* floating robot cutout next to copy */
.robot-split {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
}
.robot-split--reverse .robot-split__visual { order: -1; }
.robot-split__visual { position: relative; min-height: 64vh; display: grid; place-items: center; }
.robot-split__glow {
    position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(125,165,215,0.4), transparent 62%);
    filter: blur(34px);
    animation: pulse-glow 6s var(--ease) infinite;
}
@keyframes pulse-glow { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.robot-split__img {
    position: relative; z-index: 1;
    max-height: 74vh; width: auto;
    filter: drop-shadow(0 36px 60px rgba(0,0,0,0.65));
    animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* editorial portrait pair */
.edito { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.edito__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}
.edito__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 0.9s var(--ease); }
.edito__item:hover img { transform: scale(1.05); }
.edito__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 48%); }
.edito__cap { position: absolute; left: 1.5rem; bottom: 1.4rem; z-index: 2; }
.edito__cap span { color: var(--accent-cool); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; }
.edito__cap h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-top: 0.3rem; }

/* lazy, autoplay-on-scroll video feature */
.video-feature {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
    background: #000;
}
.video-feature video { width: 100%; height: 100%; object-fit: cover; }
.video-feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(0,0,0,0.5); }
.video-feature__cap {
    position: absolute; left: 1.6rem; bottom: 1.5rem; z-index: 2;
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: rgba(0,0,0,0.42); backdrop-filter: blur(8px);
    padding: 0.55rem 1.1rem; border-radius: 999px; font-size: 0.85rem;
}
.video-feature__cap::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }

/* love.png wide banner */
.love-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    text-align: center;
    min-height: 60vh;
    display: grid;
    place-items: center;
}
.love-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.85; }
.love-banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 100% at 50% 100%, rgba(0,0,0,0.85), transparent 60%); }
.love-banner__inner { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 1.5rem; }
.love-banner h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.love-banner p { color: var(--text-dim); max-width: 46ch; margin: 1rem auto 0; }

/* small inline media frame (replaces plain video tiles in feature rows) */
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 980px) {
    .robot-split { grid-template-columns: 1fr; }
    .robot-split--reverse .robot-split__visual { order: 0; }
    .robot-split__visual { min-height: 52vh; }
    .edito { grid-template-columns: 1fr 1fr; }
    .showcase { min-height: 80vh; }
}
@media (max-width: 560px) {
    .edito { grid-template-columns: 1fr; }
    .robot-split__img { max-height: 50vh; }
}

/* =============================================================
   PRELOADER
   ============================================================= */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    display: grid;
    place-items: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__wordmark {
    width: 150px; height: auto;
    color: var(--text);
    margin-bottom: 1.1rem;
    opacity: 0.92;
}
.preloader__logo {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.5em;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 1.6rem;
    padding-left: 0.5em;
}
.preloader__track { width: 200px; height: 2px; background: rgba(0,0,0,0.12); border-radius: 2px; overflow: hidden; margin-inline: auto; }
.preloader__fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.2s linear; }
.preloader__pct { margin-top: 0.9rem; color: var(--text-faint); font-size: 0.78rem; letter-spacing: 0.2em; }

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
    .nav, .icon-btn { display: none; }
    .nav-toggle { display: flex; }
    .cards { grid-template-columns: 1fr 1fr; }
    .intro-grid, .feature-row, .contact-grid { grid-template-columns: 1fr; }
    .feature-row:nth-child(even) .feature-row__media { order: 0; }
    .stats { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .gallery-item--wide { grid-column: span 6; }
    .gallery-item--tall { grid-column: span 3; }
    .gallery-item--std { grid-column: span 3; }
}

@media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item--wide, .gallery-item--tall, .gallery-item--std { grid-column: span 2; grid-row: auto; }
    .hero-stage__title { font-size: clamp(2rem, 11vw, 3rem); }
}

/* =============================================================
   ORDER / CONFIGURATOR PAGE
   ============================================================= */

/* cinematic video hero */
.order-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}
.order-hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
    filter: brightness(0.5) contrast(1.05);
}
.order-hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(120% 90% at 20% 30%, rgba(0,0,0,0.4), transparent 60%),
        linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.6));
}
.order-hero__inner { position: relative; z-index: 2; padding-top: var(--header-h); }
.order-hero__title { font-size: clamp(2.6rem, 8vw, 6rem); max-width: 14ch; }
.order-hero__lead { color: rgba(255,255,255,0.85); max-width: 48ch; margin: 1.4rem 0 2.2rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.order-hero__scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
    font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-dim);
}

/* two-column layout */
.order-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.order-config { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); }

/* step heads */
.step-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.step-num {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line); color: var(--text);
    font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.step-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.step-head p { color: var(--text-dim); margin-top: 0.3rem; font-size: 0.98rem; }

/* model cards */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.model-card {
    border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--surface); position: relative;
    transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.model-card:hover { transform: translateY(-4px); border-color: var(--line); }
.model-card:focus-within { border-color: rgba(0,0,0,0.5); }
.model-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(0,0,0,0.14); }
.model-card__pick { display: block; cursor: pointer; position: relative; }
.model-card__pick input { position: absolute; opacity: 0; pointer-events: none; }
.model-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.model-card__media img { object-position: center; }
.model-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.model-card:hover .model-card__media img { transform: scale(1.05); }
.model-card__body { display: block; padding: 1.1rem 1.2rem 0.4rem; }
.model-card__price { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.model-card__name { display: block; margin-top: 0.3rem; font-size: 0.95rem; color: var(--text); }
.model-card__tag { display: block; color: var(--text-dim); font-size: 0.82rem; margin-top: 0.15rem; }
.model-card__check {
    position: absolute; top: 0.9rem; right: 0.9rem; width: 24px; height: 24px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6); background: rgba(0,0,0,0.35); z-index: 2;
    transition: background 0.3s, border-color 0.3s;
}
.model-card.is-selected .model-card__check { background: var(--accent); border-color: var(--accent); }
.model-card.is-selected .model-card__check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.model-card__details { padding: 0 1.2rem 1.1rem; }
.model-card__details summary { cursor: pointer; color: var(--accent-cool); font-size: 0.82rem; letter-spacing: 0.04em; list-style: none; padding: 0.4rem 0; user-select: none; }
.model-card__details summary::-webkit-details-marker { display: none; }
.model-card__details summary::before { content: "+ "; }
.model-card__details[open] summary::before { content: "– "; }
.model-card__detailbody p { color: var(--text-dim); font-size: 0.86rem; margin-bottom: 0.6rem; }
.model-card__detailbody ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.model-card__detailbody li { font-size: 0.74rem; color: var(--text); border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.2rem 0.6rem; }

/* add-on options */
.option-list { display: flex; flex-direction: column; gap: 0.7rem; }
.option-row {
    display: flex; align-items: center; gap: 1rem; position: relative;
    border: 1px solid transparent; border-radius: 6px;
    padding: 1rem 1.2rem; cursor: pointer; background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.option-row:hover { border-color: var(--line); }
.option-row:focus-within { border-color: rgba(0,0,0,0.45); }
.option-row.is-on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: #fff; }
.option-row input { position: absolute; opacity: 0; pointer-events: none; }
.option-row__check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--line); position: relative; transition: background 0.25s, border-color 0.25s; }
.option-row.is-on .option-row__check { background: var(--accent); border-color: var(--accent); }
.option-row.is-on .option-row__check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.option-row__text { flex: 1; }
.option-row__label { display: block; font-weight: 500; }
.option-row__note { display: block; color: var(--text-dim); font-size: 0.84rem; margin-top: 0.15rem; }
.option-row__price { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }

/* quantity stepper */
.qty-stepper { display: flex; align-items: center; gap: 0.25rem; }
.qty-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 1.2rem; line-height: 1; transition: background 0.2s, border-color 0.2s; }
.qty-btn:hover { background: var(--surface-2); border-color: rgba(0,0,0,0.55); }
.qty-stepper input { width: 44px; height: 34px; text-align: center; background: transparent; border: none; border-radius: 0; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-hint { color: var(--text-dim); font-size: 0.9rem; }

/* per-model quantity stepper inside a card */
.model-card__media { cursor: pointer; }
.model-card__qty { padding: 0 1.1rem 1.2rem; gap: 0.5rem; }
.model-card__qty .qty-btn { width: 40px; height: 40px; font-size: 1.2rem; }
.model-card__qty input { flex: 1; width: auto; height: 40px; }
.sum-empty { color: var(--text-faint); font-size: 0.9rem; padding: 0.4rem 0; }

/* details fields */
.order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.order-fields .field { margin-bottom: 0; }
.field--full { grid-column: 1 / -1; }
.field-err { display: block; color: #ff9a9a; font-size: 0.8rem; margin-top: 0.4rem; }

/* sticky live summary */
.order-summary { position: sticky; top: calc(var(--header-h) + 1.2rem); }
.order-summary__inner {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    padding: 1.4rem; overflow: hidden;
}
.order-summary__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 1.2rem; border: 1px solid var(--line-soft); }
.order-summary__media video { width: 100%; height: 100%; object-fit: cover; }
.order-summary__eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); }
.order-summary__model { font-size: 1.35rem; margin: 0.3rem 0 1.1rem; }
.order-summary__lines { display: flex; flex-direction: column; gap: 0.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.sum-line { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.sum-line span:first-child { color: var(--text-dim); }
.sum-line--muted span { color: var(--text-faint) !important; }
.order-summary__total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.1rem; }
.order-summary__total-row > span:first-child { color: var(--text-dim); }
.order-summary__total { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; }
.order-summary__deposit { display: flex; justify-content: space-between; margin-top: 0.5rem; color: var(--text-faint); font-size: 0.82rem; }
.order-summary__cta { width: 100%; margin-top: 1.4rem; }
.order-summary__fine { color: var(--text-faint); font-size: 0.76rem; margin-top: 0.9rem; text-align: center; }

/* confirmation */
.order-confirm { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem); background: radial-gradient(120% 120% at 50% 0%, rgba(80,120,160,0.16), transparent 55%), var(--bg-soft); }
.order-confirm__icon { width: 60px; height: 60px; margin: 0 auto 1.4rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-cool); }
.order-confirm__icon svg { width: 28px; height: 28px; }
.order-confirm h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.4rem 0 1rem; }
.order-confirm > p { color: var(--text-dim); max-width: 48ch; margin: 0 auto; }
.order-confirm__summary { max-width: 420px; margin: 2rem auto; text-align: left; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem; }
.order-confirm__summary .sum-line { padding: 0.4rem 0; }
.sum-line--total { border-top: 1px solid var(--line-soft); margin-top: 0.4rem; padding-top: 0.8rem !important; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.sum-line--total span:first-child { color: var(--text) !important; }

@media (max-width: 980px) {
    .order-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .model-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .model-grid { grid-template-columns: 1fr; }
    .order-fields { grid-template-columns: 1fr; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
    .scrolly { height: auto !important; }
    .scrolly__stage { position: relative; height: 100vh; }
    .hero-stage { position: static; opacity: 1; transform: none; }
}

/* ============================================================
   TESLA HEADER INTEGRATION  (real mega-menu header on Optimus)
   ============================================================ */
#tds-site-header-wrapper{
    position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
    background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06);
    transition: transform .45s var(--ease), background .3s var(--ease), box-shadow .3s;
}
#tds-site-header-wrapper .tds-site-header{ background: transparent; }

/* Cybertruck-style behaviour: hide on scroll down, reveal on scroll up */
#tds-site-header-wrapper.op-hidden{ transform: translateY(-100%); }

/* transparent, floating header over the dark hero (home page, only at the top)
   — force white nav + logo so it reads over the dark video */
body.op-hero.op-at-top #tds-site-header-wrapper{
    background: transparent; box-shadow: none;
    /* the nav links resolve their colour from these theme vars */
    --tds-theme-foreground: #fff;
    --tds-theme-foreground-high-contrast: #fff;
    --tds-theme-foreground-low-contrast: rgba(255,255,255,0.7);
    --tds-nav-item--color: #fff;
    --tds-nav-item--color-highlighted: #fff;
    --tds-icon-fill-secondary: #fff;
}
body.op-hero.op-at-top #tds-site-header-wrapper .tds-site-logo-icon,
body.op-hero.op-at-top #tds-site-header-wrapper .tds-site-logo svg{ color: #fff; }

/* right-side "Order Now" pill — replaces the stock header actions on desktop */
.op-order-cta{
    position: fixed; top: 0; right: clamp(14px, 3vw, 30px); z-index: 1250;
    height: 50px; display: none; align-items: center;
    transition: transform .45s var(--ease);
}
.op-order-cta.op-hidden{ transform: translateY(-100%); }
.op-order-cta__btn{
    font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .3px;
    color: #fff; background: var(--accent); text-decoration: none;
    padding: 9px 22px; border-radius: 4px; border: 1px solid var(--accent);
    transition: background .15s, color .15s, border-color .15s;
}
.op-order-cta__btn:hover{ background: var(--accent-cool); border-color: var(--accent-cool); }
body.op-hero.op-at-top .op-order-cta__btn{ background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
body.op-hero.op-at-top .op-order-cta__btn:hover{ background: rgba(255,255,255,.16); }

/* At >=1200px the mega-menu shows its inline nav (below that it collapses to a
   hamburger inside .tds-align--end, which we must NOT hide). So only swap in
   our Order Now button — and hide the stock right-hand actions — on desktop. */
@media (min-width: 1200px){
    .op-order-cta{ display: flex; }
    #tds-site-header-wrapper .tds-site-header .tds-align--end{ visibility: hidden; }
}

/* Optimus product sub-nav — Tesla vehicle-page pattern */
.op-subnav{
    position: fixed; top: 48px; left: 0; right: 0; z-index: 1150;
    background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-family: var(--font-body);
}
.op-subnav__inner{
    max-width: 1200px; margin: 0 auto; height: 44px;
    display: flex; align-items: center; gap: 26px; padding: 0 24px;
}
.op-subnav__title{
    font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .2px;
    color: #171a20; text-decoration: none; margin-right: auto;
}
.op-subnav__links{ display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.op-subnav__link{
    font-size: 13px; font-weight: 500; color: #393c41; text-decoration: none;
    padding: 4px 2px; border-bottom: 2px solid transparent; transition: color .15s;
}
.op-subnav__link:hover{ color: #171a20; }
.op-subnav__link.is-active{ color: #171a20; border-bottom-color: #171a20; }
.op-subnav__cta{
    font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
    color: #fff; background: #171a20; text-decoration: none;
    padding: 8px 18px; border-radius: 4px; transition: background .15s;
}
.op-subnav__cta:hover{ background: #3457dc; }
.op-subnav__toggle{ display: none; }
.op-subnav__mobile{ display: none; }

/* push all page content below the fixed Tesla header */
body{ padding-top: 50px; }
/* the home hero sits under the transparent floating header */
body.op-hero{ padding-top: 0; }
.scrolly__stage{ top: 0; }

@media (max-width: 810px){
    .op-subnav__links, .op-subnav__cta{ display: none; }
    .op-subnav__toggle{
        display: flex; flex-direction: column; justify-content: center; gap: 4px;
        width: 40px; height: 40px; margin-left: auto; background: none; border: none;
    }
    .op-subnav__toggle span{ display: block; height: 2px; width: 20px; background: #171a20; }
    .op-subnav__mobile{ display: none; flex-direction: column; padding: 8px 24px 16px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.08); }
    .op-subnav__mobile.is-open{ display: flex; }
    .op-subnav__mobile a{ padding: 10px 0; color: #171a20; text-decoration: none; font-size: 15px; }
}

/* anchor targets must clear the fixed Tesla header */
#capabilities, #specs { scroll-margin-top: 70px; }

/* =============================================================
   DESIGN STUDIO  (Tesla-style single-config configurator)
   Sticky visual stage on the left, scrolling config panel on the
   right. The summary uses .cf-summary-list markup so the shared
   order-form.js "Order Now" flow reads the exact build.
   ============================================================= */
.design { display: block; }
.design-studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(40vw, 500px);
    align-items: start;
    gap: 0;
}

/* ---- stage ---- */
.design-stage {
    position: sticky;
    top: 66px;
    height: calc(100vh - 66px);
    /* one continuous page background: the stage and the config panel share it,
       so only the blocks inside the panel read as grey cards */
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.design-stage__inner { position: relative; flex: 1; }
/* Every stage image is one wide studio shot holding the front and the back
   of the unit. A plain block (not grid) lets the img size to the stage.
   It stacks above everything else in the stage so nothing tints the photo. */
.design-stage__shot {
    position: absolute; inset: 0; margin: 0; z-index: 2;
    display: block;
    opacity: 0; transition: opacity 0.6s var(--ease);
    pointer-events: none;
}
.design-stage__shot.is-active { opacity: 1; }
.design-stage__shot img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 2% 1.5%;
}
.design-stage__tint { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(110% 80% at 50% 100%, rgba(0,0,0,0.12), transparent 55%); }
.design-stage__caption {
    position: relative; z-index: 2;
    padding: 1rem 1.6rem 1.4rem;
    font-size: 0.82rem; letter-spacing: 0.06em;
    color: var(--text-dim); text-transform: uppercase;
}
/* ---- panel ---- */
.design-panel { background: var(--bg); }
.design-panel__inner {
    padding: clamp(2rem, 4vw, 3.4rem) clamp(1.4rem, 3vw, 2.6rem) 4rem;
    display: flex; flex-direction: column; gap: 1.1rem;
}
.design-panel__head { border-bottom: 1px solid var(--line-soft); padding-bottom: 1.8rem; margin-bottom: 0.6rem; }
.design-title { font-size: clamp(2.2rem, 4vw, 3rem); margin: 0.6rem 0 1rem; }
.design-price { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.design-price__value { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; letter-spacing: -0.02em; }
.design-price__note { color: var(--text-faint); font-size: 0.82rem; }

/* every section sits on its own soft grey card, like the panels in Tesla's
   own configurator */
.design-block {
    display: flex; flex-direction: column; gap: 1rem;
    background: var(--surface);
    border-radius: 8px;
    padding: 1.4rem 1.3rem;
}
/* the display:flex above would defeat the [hidden] attribute — restore it */
.design-block[hidden] { display: none; }
.design-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.design-block__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.design-block__hint { color: var(--text-faint); font-size: 0.78rem; letter-spacing: 0.04em; }

/* ---- technical specifications ---- */
.spec-lines { list-style: none; margin: 0; padding: 0; }
.spec-lines li {
    display: flex; justify-content: space-between; gap: 1.5rem;
    padding: 0.6rem 0; font-size: 0.92rem;
    border-bottom: 1px solid var(--line-soft);
}
.spec-lines li:last-child { border-bottom: 0; }
.spec-lines .label { color: var(--text-dim); flex-shrink: 0; }
.spec-lines .value { text-align: right; font-weight: 500; }

/* ---- package includes ----
   Same label / value rows as the specification table above (.spec-lines does
   the layout); only the hidden state needs handling, since a flex row would
   otherwise ignore the `hidden` attribute JS sets on unused model lines. */
.package-list li[hidden] { display: none; }

/* ---- trim (generation) ---- */
.trim-list { display: flex; flex-direction: column; gap: 0.7rem; }
.trim {
    position: relative; display: grid;
    grid-template-columns: 1fr auto; align-items: start; gap: 0.5rem 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line-soft); border-radius: 6px;
    /* white row on the grey card, the way Tesla stacks them */
    background: var(--bg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.trim:hover { border-color: var(--line); }
.trim.is-active { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: #fff; }
.trim__body { display: flex; flex-direction: column; gap: 0.3rem; grid-column: 1; grid-row: 1 / span 2; }
.trim__name { font-weight: 600; font-size: 1rem; }
.trim__tag { color: var(--text-dim); font-size: 0.84rem; }
.trim__qty-label { color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }
.trim__specs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.trim__specs span { font-size: 0.68rem; color: var(--text); border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.15rem 0.55rem; }
.trim__price { grid-column: 2; grid-row: 1; justify-self: end; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.trim__qty { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; gap: 0.4rem; }
.trim__qty { gap: 0.25rem; }
.trim__qty .qty-btn { width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; }
.trim__qty input { width: 38px; height: 32px; border: none; background: transparent; border-radius: 0; font-size: 1rem; }

/* ---- exterior finish: one row per unit — unit label, colour name and its
   price, then the sphere swatches. The unit label is hidden while a single
   robot is on order, so a one-unit build reads exactly as before. ---- */
.finish-units { display: flex; flex-direction: column; gap: 0.95rem; }
.finish-unit + .finish-unit { padding-top: 0.9rem; border-top: 1px solid var(--line-soft); }
.finish-units.is-single .finish-meta__unit { display: none; }
.finish-meta__unit {
    color: var(--text-dim); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}

.finish-meta {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
    margin: -0.35rem 0 0.2rem;
    font-size: 0.92rem;
}
.finish-meta__name  { font-weight: 500; margin-right: auto; }
.finish-meta__price { color: var(--text-dim); white-space: nowrap; }

.finish-list { display: flex; flex-wrap: wrap; gap: 0.55rem; }
/* Each swatch is a paint sphere: the flat colour comes from --sw (set inline
   per finish) and the shading is layered translucent white/black on top, so
   one rule covers every colour. */
.finish {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.finish input { position: absolute; opacity: 0; pointer-events: none; }
.finish__swatch {
    width: 34px; height: 34px; border-radius: 50%;
    background-color: var(--sw, #ccc);
    background-image:
        radial-gradient(115% 80% at 50% 4%, rgba(255,255,255,0.85), rgba(255,255,255,0) 55%),
        linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.30) 46%, rgba(0,0,0,0.30) 54%, rgba(0,0,0,0) 62%),
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.12));
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.18);
    transition: transform 0.2s;
}
.finish:hover { border-color: var(--line); }
.finish:hover .finish__swatch { transform: scale(1.06); }
.finish.is-active { border-color: var(--text); }
.finish:focus-within { border-color: var(--accent); }

/* ---- summary + order ---- */
/* the order summary rides on the same grey card as the blocks above it */
.design-summary {
    display: flex; flex-direction: column; gap: 0.4rem;
    background: var(--surface);
    border-radius: 8px;
    padding: 1.4rem 1.3rem;
    margin-top: 0.4rem;
}
.cf-summary-list { list-style: none; margin: 0 0 0.4rem; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.cf-summary-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.cf-summary-list li .label { color: var(--text-dim); }
.cf-summary-list li .value { font-variant-numeric: tabular-nums; }
.cf-summary-list__total { border-top: 1px solid var(--line-soft); margin-top: 0.4rem; padding-top: 0.9rem; }
.cf-summary-list__total .label { color: var(--text) !important; font-weight: 600; }
.cf-summary-list__total .value { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.aside-footer { display: flex; flex-direction: column; margin-top: 0.6rem; }
.aside-footer--button.tds-btn {
    width: 100%; height: 52px; border-radius: 999px;
    background: var(--accent); color: var(--on-accent); border: none;
    font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
    letter-spacing: 0.01em; cursor: pointer; transition: opacity 0.2s;
}
.aside-footer--button.tds-btn:hover { opacity: 0.88; }
/* The order questionnaire is injected here and is designed around a 460px
   column. Inside the summary card it would sit in a box inside a box and get
   squeezed to ~340px, so it breaks out of both the card's padding and the
   panel's own gutter and runs edge to edge as its own white section. */
.payment-type--container:not(:empty) {
    margin: 1.4rem calc(-1.3rem - clamp(1.4rem, 3vw, 2.6rem)) -1.4rem;
    padding: 1.6rem clamp(1rem, 2.5vw, 1.6rem) 2rem;
    background: #fff; color: #171a20;
    border-top: 1px solid var(--line-soft);
}
/* single payment type here — hide the redundant "Order with Card" selector */
.payment-type--container .choose-payment-type { display: none; }

@media (max-width: 900px) {
    .design-studio { grid-template-columns: 1fr; }
    .design-stage { position: static; height: 62vh; }
}
@media (max-width: 560px) {
    .design-stage { height: 46vh; }
}

/* =============================================================
   DARK, FULL-BLEED SECTIONS (keep light text on the light theme)
   These sit over dark video/imagery, so their ink stays white
   even though the page base ink is now near-black.
   ============================================================= */
.hero-stages { color: #fff; }
.hero-stage__title { color: #fff; }
.hero-stage__kicker { color: #cfe0ff; }
.hero-stage__text { color: rgba(255,255,255,0.88); }
.scroll-cue { color: rgba(255,255,255,0.72); }
.scroll-cue__mouse { border-color: rgba(255,255,255,0.6); }
.scroll-cue__mouse::after { background: #fff; }

.showcase { color: #fff; }
.showcase h2 { color: #fff; }
.showcase .eyebrow { color: rgba(255,255,255,0.72); }
.showcase .eyebrow::before { background: rgba(255,255,255,0.6); }
.showcase p { color: rgba(255,255,255,0.86); }

.love-banner { color: #fff; }
.love-banner h2 { color: #fff; }
.love-banner .eyebrow { color: rgba(255,255,255,0.72); }
.love-banner .eyebrow::before { background: rgba(255,255,255,0.55); }
.love-banner p { color: rgba(255,255,255,0.82); }

.edito__cap h4 { color: #fff; }

/* =============================================================
   SITE FOOTER (shared Tesla tds-footer markup)
   The scrim theme paints the text light, so give it the dark bar
   it sits on everywhere else on the site.
   ============================================================= */
.tds-site-footer.tcl-footer{
    background: #000;
    margin-top: 0;
}
.tds-footer-nav{ display: flex; flex-wrap: wrap; justify-content: center; }
.tds-footer-meta{
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 6px 22px; margin: 0; padding: 0; list-style: none;
}
.tds-site-footer .tds-footer-item{ margin: 0; }
.tds-site-footer .tds-footer-item a,
.tds-site-footer .tds-footer-item .tds-link{
    color: rgba(255,255,255,0.62); font-size: 12px; line-height: 1.6;
    text-decoration: none; transition: color .15s;
}
.tds-site-footer .tds-footer-item a:hover,
.tds-site-footer .tds-footer-item .tds-link:hover{ color: #fff; }
.tds-site-footer .menu-year{ color: inherit; }

.edito__cap { color: #fff; }
.video-feature__cap { color: #fff; }

/* =============================================================
   FULL-BLEED PANELS + WIDE BANDS  (Tesla vehicle-page layout)
   Home page runs edge-to-edge like the rest of the site instead
   of being boxed into the narrow .wrap column.
   ============================================================= */
.panel {
    position: relative;
    min-height: 100svh;
    display: grid;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    text-align: center;
    /* base colour = the dark-band colour above/below, so the photo's top and
       bottom edges dissolve into the neighbouring sections (no hard seam) */
    background: #0a0a0b;
}
.panel__media {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
}
.panel::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    /* solid band-colour at the very top & bottom feathers into the adjacent
       dark sections; the middle stays bright so the photo still reads */
    background: linear-gradient(to bottom,
        #0a0a0b 0%,
        rgba(10,10,11,0.55) 9%,
        rgba(10,10,11,0.10) 24%,
        rgba(10,10,11,0.14) 50%,
        rgba(10,10,11,0.72) 84%,
        #0a0a0b 100%);
}
.panel--dim::after {
    background: linear-gradient(to bottom,
        #0a0a0b 0%,
        rgba(10,10,11,0.55) 10%,
        rgba(10,10,11,0.5) 45%,
        rgba(10,10,11,0.6) 80%,
        rgba(10,10,11,0.78) 100%);
}
.panel__content {
    position: relative; z-index: 1;
    align-self: end;                       /* Tesla anchors panel copy near the bottom */
    width: 100%; max-width: 64rem;
    margin-inline: auto;
    padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 5vw, 3rem) clamp(3.5rem, 9vh, 6.5rem);
}
.panel--center .panel__content { align-self: center; }
.panel__eyebrow { justify-content: center; color: rgba(255,255,255,0.72); }
.panel__eyebrow::before { background: rgba(255,255,255,0.6); }
.panel h2 {
    color: #fff;
    font-size: clamp(2.1rem, 5.2vw, 4.2rem);
    line-height: 1.03; letter-spacing: -0.02em;
    margin: 1rem auto 0; max-width: 20ch;
    text-shadow: 0 2px 34px rgba(0,0,0,0.45);
}
.panel__text {
    color: rgba(255,255,255,0.88);
    font-size: clamp(1.02rem, 1.5vw, 1.3rem);
    max-width: 50ch; margin: 1.3rem auto 0;
    text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}
.panel .btn-row { justify-content: center; margin-top: 2rem; }
.panel .btn--solid { background: #fff; color: #000; }
.panel .btn--solid:hover { background: rgba(255,255,255,0.86); }
.panel .btn--ghost { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.panel .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.14); }

/* full-width informational band (much wider than .wrap) */
.band { width: 100%; padding-block: clamp(5rem, 11vh, 9rem); padding-inline: clamp(1.5rem, 5vw, 3.5rem); }
.band--dark { background: #0a0a0b; color: #fff; }
.band__inner { max-width: 1680px; margin-inline: auto; }
.band__head { max-width: 62rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.band__head .eyebrow { justify-content: center; }
.band__head .section-title, .band__head .section-lead { margin-inline: auto; }
.band--dark .band__head .eyebrow { color: rgba(255,255,255,0.6); }
.band--dark .band__head .eyebrow::before { background: rgba(255,255,255,0.5); }
.band--dark .section-title { color: #fff; }
.band--dark .section-lead { color: rgba(255,255,255,0.7); }

/* full-width stat row */
.stat-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 1500px; margin-inline: auto; text-align: center;
}
/* reset the light-theme .stat card styling — these sit on the dark band */
.stat-row .stat { background: transparent; padding: 0; }
.stat-row .stat:hover { background: transparent; }
.stat-row .stat__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; }
.stat-row .stat__value span { font-size: 0.4em; color: rgba(255,255,255,0.6); margin-left: 0.2rem; }
.stat-row .stat__label { margin-top: 0.5rem; color: rgba(255,255,255,0.72); font-size: 0.95rem; }
.stat-row .stat__note { margin-top: 0.4rem; color: rgba(255,255,255,0.45); font-size: 0.8rem; }

/* capability cards on a dark band */
.band .cards { max-width: 1680px; margin-inline: auto; }
.band--dark .card { background: linear-gradient(180deg, #131316, #0d0d0f); border-color: rgba(255,255,255,0.1); }
.band--dark .card:hover { border-color: rgba(255,255,255,0.26); }
.band--dark .card__title { color: #fff; }
.band--dark .card__body { color: rgba(255,255,255,0.7); }
.band--dark .card__lead { color: rgba(255,255,255,0.5); }
.band--dark .card__icon { border-color: rgba(255,255,255,0.16); color: #cfe0ff; }

/* =============================================================
   CAPABILITIES — Tesla-style feature carousel (media slides)
   ============================================================= */
.cap__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1.2rem 2rem; flex-wrap: wrap;
    max-width: 1680px; margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.cap__head .eyebrow { justify-content: flex-start; color: rgba(255,255,255,0.6); }
.cap__head .eyebrow::before { background: rgba(255,255,255,0.5); }
.cap__head .section-title { margin: 0.6rem 0 0; text-align: left; max-width: 20ch; }
.cap__nav { display: flex; gap: 0.6rem; }
.cap__arrow {
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff;
    display: grid; place-items: center; cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.cap__arrow svg { width: 22px; height: 22px; }
.cap__arrow:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.cap__arrow:disabled { opacity: 0.3; cursor: default; }

.cap__track {
    display: flex; gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 1680px; margin-inline: auto;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none; scrollbar-width: none;
}
.cap__track::-webkit-scrollbar { display: none; }
.cap-slide {
    flex: 0 0 min(82vw, 420px);
    scroll-snap-align: start;
}
.cap-slide__media {
    aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden;
    background: #131316; border: 1px solid rgba(255,255,255,0.08);
}
.cap-slide__media img, .cap-slide__media video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.8s var(--ease);
}
.cap-slide:hover .cap-slide__media img, .cap-slide:hover .cap-slide__media video { transform: scale(1.04); }
.cap-slide__body { padding: 1.2rem 0.15rem 0; }
.cap-slide__lead { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.cap-slide__title { color: #fff; font-size: 1.35rem; margin: 0.4rem 0 0.6rem; letter-spacing: -0.01em; }
.cap-slide__text { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

@media (max-width: 640px) {
    .cap__head { align-items: flex-start; }
}

/* full-width spec groups (three columns across the band) */
.spec-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); max-width: 1680px; margin-inline: auto; }

/* specs on the dark band: headings/categories white, the figures themselves grey */
#specs.band--dark .spec-group > .eyebrow { color: #fff; }
#specs.band--dark .spec-table tr { border-bottom-color: rgba(255,255,255,0.14); }
#specs.band--dark .spec-table th,
#specs.band--dark .spec-table td,
#specs.band--dark .spec-table .muted { color: #8e8e8e; }
#specs.band--dark .section-lead { color: #fff; }
#specs.band--dark .form-note { color: #8e8e8e; }

/* Cybertruck-style generation switcher (wordmark left, tabs right) */
.specs-switch { max-width: 1680px; margin-inline: auto; }
.specs-switch__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem 2rem; flex-wrap: wrap;
    margin-bottom: clamp(2.2rem, 4vw, 3.6rem);
}
.specs-wordmark { display: flex; align-items: baseline; gap: 0.55rem; padding-bottom: 0.4rem; }
.specs-wordmark__brand { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: 0.05em; color: #fff; }
.specs-wordmark__label { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.05rem, 2vw, 1.5rem); color: #8e8e8e; }
.specs-tabs { display: flex; border-top: 1px solid rgba(255,255,255,0.16); }
.specs-tab {
    position: relative; background: none; border: 0;
    border-top: 2px solid transparent; margin-top: -1px;
    padding: 0.95rem 1.6rem;
    font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
    color: #8e8e8e; cursor: pointer; white-space: nowrap;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.specs-tab:hover { color: #fff; }
.specs-tab.is-active { color: #fff; background: rgba(255,255,255,0.06); border-top-color: #fff; }
.spec-panel { display: none; }
.spec-panel.is-active { display: block; }

@media (max-width: 640px) {
    .specs-switch__head { flex-direction: column; align-items: stretch; gap: 1.2rem; }
    .specs-tabs { width: 100%; }
    .specs-tab { flex: 1; text-align: center; padding-inline: 0.6rem; }
}

@media (max-width: 900px) {
    .spec-groups { grid-template-columns: 1fr; max-width: 640px; }
    .stat-row { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
}
@media (max-width: 480px) {
    .stat-row { grid-template-columns: 1fr 1fr; }
}
