/* ==========================================================
   Svitch Mopeds — style.css
   ========================================================== */

/* ── FONTS ── same as svitch.bike: Microgramma D Bold Extended for display, Inter for text */
@font-face {
    font-family: "MicrogrammaDBolExt";
    src: url("fonts/MicrogrammaDBolExt.woff2") format("woff2"),
         url("fonts/MicrogrammaDBolExt.woff") format("woff");
    font-weight: 100 900; /* single bold face; used for every display weight, never faux-bolded */
    font-style: normal;
    font-display: swap;
}

/* ── THEME ── two colours only: black + charge green (text and greys are shades of black/white) */
:root {
    --black: #0a0a0b;
    --bg: var(--black);
    --surface: #141416;
    --surface-2: #1c1c1f;
    --ink: #f2f2f0;          /* text on black */
    --ink-soft: #c8c8c5;
    --muted: #8c8c90;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --green: #22c55e;
    --green-rgb: 34, 197, 94;

    --font-display: "MicrogrammaDBolExt", "Inter", sans-serif;
    --font-tagline: "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* one spacing value for every section (top and bottom) */
    --section-space: 56px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: clamp(24px, 3.5vw, 64px);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}

/* green pill, black text */
.btn-primary {
    background: var(--green);
    color: var(--black);
    border-color: var(--green);
}
.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -10px rgba(var(--green-rgb), 0.7);
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 22px 0;
    border-bottom: 1px solid transparent;
    transition: padding 0.3s, background 0.3s, border-color 0.3s;
}
.navbar.is-scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 11, 0.82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
}

.nav-row {
    display: grid;
    /* the sides grow equally so the links stay centred, but never narrower than their content */
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    align-items: center;
    gap: 24px;
}

/* Logo */
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    text-decoration: none;
}
.nav-logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    transition: transform 0.4s var(--ease-out);
}
.nav-logo-mark svg {
    width: 18px;
    height: 18px;
    fill: var(--green);
    filter: drop-shadow(0 0 4px rgba(var(--green-rgb), 0.6));
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-14deg) scale(1.06); }
.nav-logo-text {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-logo-text span { color: var(--green); }

/* Links — grouped in a pill, like the reference video */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 100px;
    box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.18);
}
.nav-links a {
    position: relative;
    display: block;
    padding: 9px 18px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    border-radius: 100px;
    transition: color 0.2s, background 0.2s;
}
/* sliding underline, as on svitch.bike */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 5px;
    height: 1.5px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active {
    color: var(--black);
    background: var(--green);
}
.nav-links a.is-active::after { display: none; }

/* sister-brand logos: inside the pill after the links, split off by a thin line */
.nav-brands {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-links .nav-brands {
    margin-left: 8px;
    padding: 0 16px 0 22px;
    border-left: 1px solid var(--line-strong);
}
.nav-links .nav-brand {
    padding: 6px 0;
    border-radius: 0;
}
.nav-links .nav-brand::after { display: none; }
.nav-brand { display: block; }
.nav-brand img {
    display: block;
    width: auto;
    height: 15px;
    opacity: 0.72;
    transition: opacity 0.25s, transform 0.25s;
}
.nav-brand:hover img {
    opacity: 1;
    transform: translateY(-1px);
}
.nav-brand--svitch img { height: 22px; } /* two-line logo (SVITCH / BIKE); taller so it reads */

/* Right side */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px 4px;
    justify-self: end;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 24px 24px;
    background: rgba(10, 10, 11, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin-bottom: 20px; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
    display: block;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
}
.mobile-menu li a:hover { color: var(--ink); }
.mobile-menu .btn { width: 100%; }
.mobile-menu .nav-brands {
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
}
.mobile-menu .nav-brand img { height: 16px; }
.mobile-menu .nav-brand--svitch img { height: 24px; }

/* ==========================================================
   HERO — BANNERS (hero.html)
   Full-screen banners that wipe in one after another. The model name
   sits in the empty part of the banner, never over the scooter:
   js/hero.js measures the room (--free) or puts the name below the banner.
   ========================================================== */
.hb {
    --nav-h: 88px;  /* navbar height; the text keeps clear of it */
    --pad: clamp(24px, 3.5vw, 64px);
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: var(--black);
    isolation: isolate;
}

/* ── banners (fill the hero from the very top, behind the navbar) ── */
.hb-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: pan-y;
}
/* light shade under the navbar, a shade behind the name that stops before the
   scooter, and a fade into the next section */
.hb-slides::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0, transparent 150px),
        linear-gradient(90deg,
            rgba(10, 10, 11, 0.7) 0,
            rgba(10, 10, 11, 0.35) calc(var(--pad) + var(--free, 400px) * 0.75),
            transparent calc(var(--pad) + var(--free, 400px) + 40px)),
        linear-gradient(0deg, var(--black) 0, transparent 110px);
}
.hb-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
}
.hb-slide.is-prev { visibility: visible; z-index: 1; }
.hb-slide.is-active { visibility: visible; z-index: 2; }

.hb-pan {
    position: absolute;
    inset: -16px; /* BLEED in js/hero.js */
    transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px), 0);
    transition: transform 1.2s var(--ease-out);
}
.hb-pan img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 50%;
    transform-origin: var(--ox, 50%) 50%;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* the showing banner settles from a slow zoom */
.hb-slide.is-active img { animation: hb-zoom 7s var(--ease-out) both; }
@keyframes hb-zoom {
    from { transform: scale(1.14); }
    to   { transform: scale(1); }
}
/* the banner being replaced drifts left and darkens */
.hb-slide.is-prev img { animation: hb-leave 1.1s cubic-bezier(0.77, 0, 0.18, 1) both; }
@keyframes hb-leave {
    to { transform: translateX(-6%); filter: brightness(0.4); }
}
/* the new banner wipes in from the right… */
.hb-slide.is-wiping { animation: hb-wipe 1.1s cubic-bezier(0.77, 0, 0.18, 1) both; }
@keyframes hb-wipe {
    from { clip-path: inset(0 0 0 100%); }
    to   { clip-path: inset(0 0 0 0); }
}
/* …led by a green charge line */
.hb-slide::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 3px;
    background: var(--green);
    box-shadow: 0 0 22px 6px rgba(var(--green-rgb), 0.65);
    opacity: 0;
    pointer-events: none;
}
.hb-slide.is-wiping::after { animation: hb-edge 1.1s cubic-bezier(0.77, 0, 0.18, 1) both; }
@keyframes hb-edge {
    0%   { left: 100%; opacity: 1; }
    88%  { opacity: 1; }
    100% { left: 0; opacity: 0; }
}

/* ── the video banner: the 16:9 film fills the banner edge to edge with no extra zoom,
      so on a 1920×1080 screen the whole frame shows; no overhang or drift either ── */
.hb-slide.is-video .hb-pan {
    inset: 0;
    transform: none;
}
.hb-slide.is-video img { object-position: 50% 50%; }
.hb-slide.is-video.is-active img,
.hb-slide.is-video.is-prev img { animation: none; }
.hb-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    container-type: size;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hb-slide.is-playing .hb-video { opacity: 1; }
.hb-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, 177.78cqh);  /* 16:9, covering the box */
    height: max(100cqh, 56.25cqw);
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
/* no name and no side shade on the film */
.hb-copy { transition: opacity 0.5s ease; }
.hb.is-video .hb-copy { opacity: 0; }
.hb.is-video .hb-slides::after {
    background:
        linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0, transparent 150px),
        linear-gradient(0deg, var(--black) 0, transparent 110px);
}

/* ── progress bars, bottom centre (under the scooters' wheels): one per banner,
      the showing one is longer and fills ── */
.hb-bars {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: clamp(20px, 3.5vh, 40px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hb-bar {
    width: 28px;
    padding: 8px 0; /* bigger hit area than the line */
    transition: width 0.6s var(--ease-out);
}
.hb-bar.is-active { width: 72px; }
.hb-bar i {
    position: relative;
    display: block;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}
.hb-bar i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--green);
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
}
.hb-bar:hover i { background: rgba(255, 255, 255, 0.5); }

/* ── model name: in the room left of the scooter ── */
.hb-copy {
    position: absolute;
    z-index: 4;
    top: var(--nav-h);
    bottom: 0;
    left: var(--pad);
    width: var(--free, 400px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px;
    pointer-events: none;
}
.hb-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
/* each line is a mask the letters rise through */
.hb-brand,
.hb-name {
    display: block;
    overflow: hidden;
}
/* small green "Svitch" above */
.hb-brand {
    padding-bottom: 0.2em;
    font-size: clamp(13px, calc(var(--free, 400px) / 18), 22px);
    letter-spacing: 0.34em;
    color: var(--green);
}
/* the model name, as big as the room allows (five letters fill the width) */
.hb-name {
    min-height: 1.1em;
    padding-bottom: 0.06em;
    font-size: clamp(44px, calc(var(--free, 400px) / 5.3), 170px);
    letter-spacing: 0.01em;
    color: var(--ink);
}

.hb-ch {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.85s var(--ease-out) calc(var(--i) * 55ms + var(--d, 0ms));
}
.hb-name { --d: 160ms; }
.hb.is-ready .hb-brand .hb-ch,
.hb-name.is-in .hb-ch { transform: none; }
.hb-name.is-out .hb-ch {
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.55, 0, 1, 0.45) calc(var(--i) * 25ms);
}

/* ── stacked: phones and upright tablets (set by js/hero.js when the room beside the
      scooter is too small). The picture fills the banner from behind the see-through
      navbar; the name sits on ONE line in its bottom-left corner, on the floor under
      the scooter (narrow enough to end before the front wheel); the bars sit centred
      in a slim strip just below the picture. ── */
.hb.is-stacked {
    --bars-strip: clamp(36px, 9vw, 52px);
    /* "SVITCH PULSE" is about 9em wide; keep it inside ~58% of the width */
    --line-fs: clamp(15px, calc((58vw - var(--pad)) / 9), 40px);
    height: calc(var(--img-h, 100vw) + var(--bars-strip));
    min-height: 0;
}
.hb.is-stacked .hb-slides::after {
    background:
        linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0, transparent 120px),
        linear-gradient(0deg, var(--black) var(--bars-strip), rgba(10, 10, 11, 0.5) var(--bars-strip), transparent calc(var(--bars-strip) + 90px));
}
.hb.is-stacked .hb-pan {
    inset: 0 0 auto;
    height: var(--img-h, 100vw);
    transform: none;
}
.hb.is-stacked .hb-pan img { object-position: var(--fx, 50%) 50%; }
.hb.is-stacked .hb-copy {
    top: auto;
    right: auto;
    bottom: calc(var(--bars-strip) + clamp(8px, 2.4vw, 14px));
    left: var(--pad);
    width: auto;
    display: block;
    padding: 0;
}
/* "SVITCH" and the name side by side, same size */
.hb.is-stacked .hb-title {
    font-size: var(--line-fs);
    white-space: nowrap;
}
.hb.is-stacked .hb-brand,
.hb.is-stacked .hb-name {
    display: inline-block;
    vertical-align: bottom;
    min-height: 0;
    padding-bottom: 0.06em;
    font-size: 1em;
    letter-spacing: 0.02em;
}
.hb.is-stacked .hb-name { margin-left: 0.32em; }
.hb.is-stacked .hb-bars { bottom: calc((var(--bars-strip) - 19px) / 2); }
/* the film has no name; keep its space so the page doesn't jump */
.hb.is-stacked.is-video .hb-copy { opacity: 0; }

/* ── navbar height per screen (css/style.css) ── */
@media (max-width: 991px) {
    .hb { --nav-h: 84px; }
}
@media (max-width: 767px) {
    .hb { --nav-h: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    .hb-pan,
    .hb-ch { transition: none; }
    .hb-slide.is-active img,
    .hb-slide.is-prev img { animation: none; }
}

/* ==========================================================
   SECTION HEADINGS (shared) — eyebrow + title, framed by
   angled corner lines as on svitch.bike
   ========================================================== */
.section { padding: var(--section-space) 0; }

.sec-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding: 30px 0 14px;
    margin-bottom: 44px;
}
.sec-mark {
    position: absolute;
    width: 130px;
    height: 34px;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.2;
    pointer-events: none;
}
.sec-mark polyline { vector-effect: non-scaling-stroke; }
.sec-mark--tl { top: 3px; left: -28px; }
.sec-mark--br { bottom: -20px; right: 0; }

.sec-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
}
.sec-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.sec-title span { color: var(--green); }
.sec-desc {
    max-width: 440px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
}

/* ==========================================================
   MODELS — expanding cards
   ========================================================== */
.model-cards {
    display: flex;
    gap: 16px;
    height: 540px;
}
.model-card {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--black);
    cursor: pointer;
    outline: none;
    transition: flex 0.7s var(--ease-out), box-shadow 0.4s;
}
.model-card.is-active {
    flex: 2.4;
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.55);
}
.model-card:focus-visible { box-shadow: 0 0 0 3px var(--green); }

.model-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out), filter 0.6s;
}
.model-card:not(.is-active) img { filter: saturate(0.8) brightness(0.92); }
.model-card.is-active img { transform: scale(1.04); }

/* dark fade at the bottom so the name always reads */
.model-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.25) 42%, transparent 62%);
    pointer-events: none;
}

.model-card-body {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
}
.model-card-brand {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green);
}
.model-card-name {
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* tagline + button, revealed on the open card */
.model-card-more {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out), opacity 0.3s;
}
.model-card.is-active .model-card-more {
    max-height: 220px;
    opacity: 1;
    transition-delay: 0.25s;
}
.model-card-tagline {
    margin-top: 10px;
    font-family: var(--font-tagline);
    font-size: 17px;
    font-style: italic;
    font-weight: 700;
}
.model-card-sub {
    font-family: var(--font-tagline);
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}
.model-card .btn { margin-top: 18px; }
.btn-sm { padding: 11px 18px; font-size: 11px; }

/* ==========================================================
   CHOOSE YOUR RIDE — the cards pin while you scroll and slide
   along a curve (positions set by js/main.js)
   ========================================================== */
.arc-sec {
    --nav-h: 72px;  /* the pinned area sits just under the navbar */
    --run: 180vh;   /* how much scrolling it takes to go through the cards */
    height: calc(100vh - var(--nav-h) + var(--run));
    height: calc(100svh - var(--nav-h) + var(--run));
    padding: 0;
}
.arc-pin {
    position: sticky;
    top: var(--nav-h);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
    padding: var(--section-space) 0;
    overflow: hidden;
}

/* title words drop in one by one */
.drop-title .dw {
    display: inline-block;
    color: inherit;
    opacity: 0;
    transform: translateY(-80px);
    transition:
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--d, 0ms),
        opacity 0.7s ease var(--d, 0ms);
}
.drop-title .dw-hl { color: var(--green); }
.drop-title.is-in .dw { opacity: 1; transform: none; }

.arc-stage {
    position: relative;
    flex: 1;
    min-height: 0;
}
/* card = portrait photo (4:5, same shape as the photos) + name and specs beside it */
.arc-card {
    --ch: clamp(360px, calc(100svh - var(--nav-h) - 2 * var(--section-space) - 190px), 540px); /* photo height */
    --bw: clamp(320px, 26vw, 440px); /* width of the name + specs column */
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    grid-template-columns: auto var(--bw);
    align-items: center;
    gap: clamp(22px, 2.4vw, 40px);
    width: max-content;
    padding: 14px clamp(22px, 2.2vw, 36px) 14px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 40px 60px -32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    will-change: transform, opacity;
    transition: border-color 0.4s;
}
.arc-card.is-centre {
    cursor: default;
    border-color: rgba(var(--green-rgb), 0.4);
}

.arc-media {
    height: var(--ch);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface);
}
.arc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 1.2s var(--ease-out);
    pointer-events: none;
}
.arc-card.is-centre .arc-media img { transform: none; } /* photo settles as the card reaches the centre */

.arc-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}
.arc-card .ex-name { font-size: clamp(28px, 2.6vw, 42px); }
.arc-card .ex-tagline { margin-top: 10px; font-size: clamp(15px, 1.2vw, 18px); }

/* Name and tagline (also used by the cards on features.html) */
.ex-brand {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--green);
}
.ex-name {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: clamp(32px, 3.4vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.ex-tagline {
    margin-top: 18px;
    font-family: var(--font-tagline);
    font-size: clamp(18px, 1.5vw, 22px);
    font-style: italic;
    font-weight: 700;
    color: var(--ink-soft);
}
.ex-sub {
    margin-top: 4px;
    font-family: var(--font-tagline);
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
    color: var(--muted);
}

.arc-specs {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.arc-specs .spec { padding: 12px 14px 14px; border-radius: 16px; }
.arc-specs .spec-value { min-height: 0; margin-top: 10px; font-size: clamp(18px, 1.5vw, 22px); }

/* spec tile: label, odometer number */
.spec {
    position: relative;
    padding: 14px 16px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.spec:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--green-rgb), 0.45);
    box-shadow: 0 18px 30px -20px rgba(var(--green-rgb), 0.5);
}
/* green shine that sweeps across when a card reaches the centre */
.spec::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(var(--green-rgb), 0.35) 50%, transparent 70%);
    transform: translateX(-110%);
    pointer-events: none;
}
.spec.is-shining::after { animation: shine 0.9s ease-out forwards; }
@keyframes shine { to { transform: translateX(110%); } }

.spec-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
}
.spec-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 26px;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1;
}
.spec-unit {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    color: var(--green);
}

/* odometer digits */
.roll { display: inline-flex; }
.roll.is-text { font-size: 0.62em; letter-spacing: 0.04em; text-transform: uppercase; }
.roll-sep { white-space: pre; }
.roll-d {
    display: inline-block;
    height: 1em;
    overflow: hidden;
}
.roll-strip {
    display: flex;
    flex-direction: column;
    transition: transform 1.1s var(--ease-out);
}
.roll-strip span {
    height: 1em;
    line-height: 1;
    text-align: center;
}

/* model chooser buttons (used by the cards on features.html) */
.ex-models {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ex-model {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.ex-model img {
    width: 100%;
    height: 54px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.25s, transform 0.4s var(--ease-out);
}
.ex-model span {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.25s;
}
.ex-model:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.ex-model:hover img { opacity: 1; }
.ex-model.is-active {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(var(--green-rgb), 0.14);
}
.ex-model.is-active img { opacity: 1; transform: scale(1.06); }
.ex-model.is-active span { color: var(--green); }

/* ==========================================================
   WHY SVITCH — two auto-scrolling rows of benefit cards, draggable
   ========================================================== */
.benefit-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.benefit-row {
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.benefit-row::-webkit-scrollbar { display: none; }
.benefit-row.is-dragging { cursor: grabbing; }
.benefit-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 12px 0 24px;
}

.benefit-card {
    flex-shrink: 0;
    width: 340px;
    padding: 26px 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.3);
    user-select: none;
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}
.benefit-value {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.benefit-title {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
}
.benefit-text {
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

/* ==========================================================
   FOOTER
   ========================================================== */
/* compact dark footer, laid out like svitch.bike/r21 */
.footer {
    background: #050506;
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding: 52px 0 36px;
}

/* Left: brand */
.footer .nav-logo-mark { background: rgba(255, 255, 255, 0.08); }
.footer-desc {
    max-width: 340px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(242, 242, 240, 0.6);
}

/* Right: newsletter */
.footer-newsletter {
    width: 100%;
    max-width: 420px;
}
.newsletter-title {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.newsletter-title span { color: var(--green); }
.newsletter-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    transition: border-color 0.25s;
}
.newsletter-group:focus-within { border-color: rgba(var(--green-rgb), 0.6); }
.newsletter-group input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: none;
}
.newsletter-group input::placeholder { color: rgba(242, 242, 240, 0.5); }
.newsletter-btn {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: var(--black);
    background: var(--green);
    border-radius: 6px;
    transition: filter 0.25s;
}
.newsletter-btn:hover { filter: brightness(1.1); }
.newsletter-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Copyright bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(242, 242, 240, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-legal {
    font-size: 13px;
    font-weight: 600;
    color: rgba(242, 242, 240, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal:hover { color: var(--ink); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
/* ── Laptop: not enough room in the pill for the four logos; they stay in the mobile menu ── */
@media (max-width: 1365px) {
    .nav-links .nav-brands { display: none; }
}

/* ── Small laptop ── */
@media (max-width: 1200px) {
    .nav-links a { padding: 9px 13px; }
    .nav-links a::after { left: 13px; right: 13px; }

    .model-cards { height: 480px; }
}

/* ── Tablet ── */
@media (max-width: 991px) {
    :root { --section-space: 48px; }

    .nav-row { grid-template-columns: 1fr auto; }
    .nav-links,
    .nav-actions { display: none; }
    .hamburger { display: flex; }

    .sec-desc br { display: none; }

    .model-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    .model-card { aspect-ratio: 3 / 4; }
    .model-card .model-card-more { max-height: none; opacity: 1; }

    .arc-card { --ch: clamp(340px, calc(100svh - var(--nav-h) - 2 * var(--section-space) - 190px), 440px); --bw: 290px; }

    .footer-top { flex-direction: column; gap: 32px; }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    :root { --section-space: 40px; }

    .navbar { padding: 16px 0; }
    .navbar.is-scrolled { padding: 10px 0; }
    .nav-logo-mark { width: 32px; height: 32px; }
    .nav-logo-text { font-size: 13px; }

    .sec-head { margin-bottom: 32px; }
    .sec-mark { width: 100px; height: 28px; }
    .sec-desc { font-size: 15px; }

    /* models: one swipeable row, the next card peeking in */
    .model-cards {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-inline: calc(-1 * clamp(24px, 3.5vw, 64px));
        padding: 0 clamp(24px, 3.5vw, 64px) 20px;
        scroll-padding-inline: clamp(24px, 3.5vw, 64px);
        scrollbar-width: none;
    }
    .model-cards::-webkit-scrollbar { display: none; }
    .model-card,
    .model-card.is-active {
        flex: 0 0 82%;
        aspect-ratio: 4 / 5;
        scroll-snap-align: start;
    }
    .model-card:not(.is-active) img { filter: none; }
    .model-card.is-active img { transform: none; }

    /* choose your ride: portrait photo with the name beside it, specs below */
    .arc-sec { --nav-h: 60px; --run: 160vh; }
    .arc-pin { padding: var(--section-space) 0 24px; }
    .arc-sec .sec-head { margin-bottom: 16px; }
    .arc-sec .sec-desc { display: none; }
    .arc-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-areas:
            "media head"
            "specs specs";
        gap: 14px 16px;
        width: 86vw;
        padding: 14px;
        border-radius: 22px;
    }
    .arc-media { grid-area: media; width: 100%; height: auto; border-radius: 14px; }
    .arc-body { display: contents; }
    .arc-body > header { grid-area: head; }
    .arc-specs { grid-area: specs; }
    .arc-card .ex-name { font-size: 22px; }
    .arc-card .ex-tagline { margin-top: 4px; font-size: 14px; }
    .arc-specs { gap: 8px; }
    .arc-specs .spec { padding: 9px 12px 11px; border-radius: 14px; }
    .arc-specs .spec-label { font-size: 9.5px; letter-spacing: 1px; }
    .arc-specs .spec-value { margin-top: 6px; font-size: 16px; }

    .benefit-card { width: 280px; padding: 22px; }
    .benefit-value { font-size: 24px; }

    .newsletter-title { white-space: normal; }
    .footer-newsletter { max-width: none; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    .ex-model { padding: 10px 6px; }
    .ex-model img { height: 40px; }
    .ex-model span { font-size: 9px; letter-spacing: 0.08em; }
    .spec { padding: 12px; }
    .spec-label { font-size: 10px; letter-spacing: 1px; }
    .spec-value { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
