/* ==========================================================================
   MotoGB — site theme
   --------------------------------------------------------------------------
   1. Variables / base
   2. Buttons
   3. Header
   4. Fullscreen menu
   5. Hero
   6. Sections (intro, showcase, brand grid, services, CTA)
   7. Footer
   8. Effects (reveal, scroll zoom)
   9. Responsive
   10. Brand page
   11. Wow effects
   12. About page
   13. Become a Dealer (stepped form)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure {
    margin: 0;
}

img,
video {
    max-width: 100%;
}

/* <picture> wrappers lay out as if the <img> were a direct child */
picture {
    display: contents;
}

button {
    font: inherit;
}

/* --------------------------------------------------------------------------
   1. Variables / base
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #c2151c;
    --color-primary-dark: #9e1016;
    --color-secondary: #1c3688;
    --color-dark: #101014;
    --color-dark-soft: #1a1a20;
    --color-light: #ffffff;
    --color-grey: #9b9ba3;
    --color-line: rgba(255, 255, 255, 0.12);

    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --header-height: 84px;
    --container: 1280px;
    --gutter: clamp(1.25rem, 4vw, 3rem);

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

html {
    scroll-behavior: smooth;
}

.site-body {
    margin: 0;
    background: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.site-body.menu-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section-kicker {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}

.section-lead {
    color: var(--color-grey);
    max-width: 38rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   2. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.9rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.25s var(--ease-out),
                border-color 0.25s var(--ease-out),
                color 0.25s var(--ease-out),
                transform 0.25s var(--ease-out);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-light);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
}

.btn--dark {
    background: var(--color-dark-soft);
    color: var(--color-light);
    border-color: var(--color-line);
}

.btn--dark:hover {
    border-color: var(--color-light);
}

.btn--outline {
    background: transparent;
    color: var(--color-light);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline:hover {
    background: var(--color-light);
    color: var(--color-dark);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--color-light);
    backdrop-filter: blur(6px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.btn--light {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-light);
}

.btn--light:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

.btn--lg {
    padding: 1.05rem 2.5rem;
    font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-height);
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.75), rgba(10, 10, 12, 0));
    transition: background-color 0.35s var(--ease-out), height 0.35s var(--ease-out);
}

.site-header.is-scrolled {
    background: rgba(13, 13, 16, 0.92);
    backdrop-filter: blur(10px);
    height: 68px;
    box-shadow: 0 1px 0 var(--color-line);
}

.site-header__inner {
    height: 100%;
    max-width: calc(var(--container) + 8rem);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header__logo img {
    display: block;
    height: 44px;
    width: auto;
    transition: height 0.35s var(--ease-out);
}

.site-header.is-scrolled .site-header__logo img {
    height: 36px;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-header__lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-light);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    transition: background-color 0.25s;
}

.site-header__lang:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Hamburger */
.hamburger {
    width: 48px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background-color 0.25s;
}

.hamburger:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.hamburger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-light);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

/* --------------------------------------------------------------------------
   4. Fullscreen menu (right slide-in panel)
   -------------------------------------------------------------------------- */
.site-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
}

.site-menu.is-open {
    visibility: visible;
    pointer-events: auto;
}

.site-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.site-menu.is-open .site-menu__backdrop {
    opacity: 1;
}

.site-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(480px, 100%);
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    padding: 1.25rem clamp(1.5rem, 4vw, 3rem) 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    overflow-y: auto;
}

.site-menu.is-open .site-menu__panel {
    transform: translateX(0);
}

.site-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.5rem 2.5rem;
}

.site-menu__close {
    position: relative;
    width: 48px;
    height: 44px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: background-color 0.25s;
}

.site-menu__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.site-menu__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: var(--color-light);
}

.site-menu__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.site-menu__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.site-menu__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-menu__nav a {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vh, 2.75rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-light);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.site-menu__nav a:hover {
    transform: translateX(10px);
    opacity: 0.8;
}

/* Staggered entrance for menu items */
.site-menu__nav li {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.site-menu.is-open .site-menu__nav li {
    opacity: 1;
    transform: translateX(0);
}

.site-menu.is-open .site-menu__nav li:nth-child(1) { transition-delay: 0.10s; }
.site-menu.is-open .site-menu__nav li:nth-child(2) { transition-delay: 0.16s; }
.site-menu.is-open .site-menu__nav li:nth-child(3) { transition-delay: 0.22s; }
.site-menu.is-open .site-menu__nav li:nth-child(4) { transition-delay: 0.28s; }
.site-menu.is-open .site-menu__nav li:nth-child(5) { transition-delay: 0.34s; }
.site-menu.is-open .site-menu__nav li:nth-child(6) { transition-delay: 0.40s; }

.site-menu__bottom {
    margin-top: auto;
    padding-top: 3rem;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out) 0.45s;
}

.site-menu.is-open .site-menu__bottom {
    opacity: 1;
}

.site-menu__secondary {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.site-menu__secondary a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-menu__secondary a:hover {
    color: var(--color-light);
}

.site-menu__copyright {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(75deg,
        rgba(8, 8, 10, 0.72) 0%,
        rgba(8, 8, 10, 0.35) 45%,
        rgba(8, 8, 10, 0.15) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.hero__kicker {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.25rem, 9vw, 7.5rem);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    max-width: 14ch;
}

.hero__title span {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 34rem;
    margin: 0 0 2.25rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    z-index: 2;
    transform: translateX(-50%);
    padding: 1rem;
}

.hero__scroll-arrow {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--color-light);
    border-bottom: 2px solid var(--color-light);
    transform: rotate(45deg);
    animation: hero-bounce 2s infinite;
}

@keyframes hero-bounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50%      { transform: rotate(45deg) translate(6px, 6px); }
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */

/* Intro */
.intro {
    padding-block: clamp(4.5rem, 10vw, 8rem);
    background: var(--color-dark);
}

.intro__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.intro__text p {
    color: var(--color-grey);
    margin: 0 0 2rem;
}

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

.stat {
    background: var(--color-dark);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
}

.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat__label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-grey);
}

/* Showcase — fullscreen brand panels */
.showcase__panel {
    position: relative;
    height: 100svh;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.showcase__media {
    position: absolute;
    inset: 0;
}

.showcase__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(8, 8, 10, 0.85) 0%,
        rgba(8, 8, 10, 0.15) 45%,
        rgba(8, 8, 10, 0.25) 100%);
}

.showcase__caption {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: 0 var(--gutter) clamp(3rem, 7vw, 5.5rem);
}

.showcase__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.showcase__tagline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.5rem;
}

/* Brand logo row inside a showcase panel (e.g. Keeway Group) */
.showcase__brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s var(--ease-out), background-color 0.3s;
}

.brand-chip:hover {
    transform: translateY(-3px);
    background: var(--color-light);
}

.brand-chip img {
    display: block;
    height: 34px;
    width: auto;
}

@media (max-width: 540px) {
    .brand-chip {
        padding: 0.45rem 0.8rem;
    }

    .brand-chip img {
        height: 26px;
    }
}

.showcase__link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-light);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.35rem;
    transition: color 0.25s, gap 0.25s var(--ease-out);
}

.showcase__link:hover {
    color: var(--color-primary);
    gap: 1rem;
}

/* Brand grid tiles */
.brand-grid__row {
    display: grid;
}

.brand-grid__row--split {
    grid-template-columns: 1fr 1fr;
}

.tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: clamp(320px, 55vh, 560px);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-light);
}

.tile--wide {
    height: clamp(360px, 65vh, 640px);
}

.tile__media {
    position: absolute;
    inset: 0;
}

.tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1);
    transition: filter 0.5s var(--ease-out);
}

.tile:hover .tile__media img {
    filter: grayscale(0);
}

.tile__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 10, 0.75), rgba(8, 8, 10, 0.05) 55%);
    transition: background-color 0.4s;
}

.tile__title {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.75rem);
}

/* Services */
.services {
    padding-block: clamp(4.5rem, 10vw, 8rem);
    background: var(--color-dark-soft);
}

.services__head {
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    border: 1px solid var(--color-line);
    padding: 2rem 1.75rem;
    background: var(--color-dark);
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
}

.service-card__index {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.service-card p {
    color: var(--color-grey);
    font-size: 0.95rem;
    margin: 0;
}

/* CTA band */
.cta {
    position: relative;
    padding-block: clamp(5rem, 12vw, 9rem);
    overflow: hidden;
    text-align: center;
}

.cta__media {
    position: absolute;
    inset: 0;
}

.cta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta__shade {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 16, 0.78);
}

.cta__content {
    position: relative;
    z-index: 2;
    max-width: 44rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.cta__content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 1rem;
}

.cta__content p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #0b0b0e;
    border-top: 1px solid var(--color-line);
}

.site-footer__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: clamp(3rem, 7vw, 5rem) var(--gutter);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.site-footer__logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.25rem;
}

.site-footer__brand p,
.site-footer__col p {
    color: var(--color-grey);
    font-size: 0.92rem;
    margin: 0 0 1.25rem;
}

.site-footer__col h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
}

.site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__col li {
    margin-bottom: 0.6rem;
}

.site-footer__col a {
    color: var(--color-grey);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s;
}

.site-footer__col a:hover {
    color: var(--color-light);
}

.site-footer__bar {
    border-top: 1px solid var(--color-line);
    padding: 1.25rem var(--gutter);
    text-align: center;
}

.site-footer__bar p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-grey);
}

/* --------------------------------------------------------------------------
   8. Effects
   -------------------------------------------------------------------------- */

/* Scroll snapping — full-screen panels lock to the viewport one at a time
   (TikTok-style). Sections taller than the viewport still scroll freely. */
html {
    scroll-snap-type: y mandatory;
}

.hero,
.showcase__panel,
.brand-hero,
.brand-film,
.about-hero,
.dh-hero,
.cta {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.intro,
.brand-grid,
.services,
.models,
.features,
.contact,
.site-footer {
    scroll-snap-align: start;
}


/* Scrollspy — fixed dot nav on the right edge (built by site.js from [data-spy]) */
.scrollspy {
    position: fixed;
    right: clamp(0.75rem, 2vw, 1.75rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.scrollspy__item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.3rem 0;
    background: none;
    border: none;
    cursor: pointer;
}

.scrollspy__dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);
    transition: background-color 0.3s, width 0.3s var(--ease-out);
}

.scrollspy__item:hover .scrollspy__dot {
    background: var(--color-light);
}

.scrollspy__item.is-active .scrollspy__dot {
    width: 26px;
    background: var(--color-primary);
}

.scrollspy__label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-light);
    background: rgba(13, 13, 16, 0.85);
    padding: 0.35rem 0.75rem;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.scrollspy__item:hover .scrollspy__label,
.scrollspy__item.is-active .scrollspy__label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .scrollspy__label {
        display: none;
    }

    .scrollspy {
        gap: 0.25rem;
    }
}

/* Reveal on scroll (added/removed by site.js) */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll zoom: [data-zoom] wraps an <img> or <video>; site.js drives --zoom */
[data-zoom] img,
[data-zoom] video {
    transform: scale(var(--zoom, 1.08));
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    [data-zoom] img,
    [data-zoom] video {
        transform: none;
    }

    .reveal .section-title::after,
    .section-title.reveal::after {
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* --------------------------------------------------------------------------
   10. Brand page (hero slider, brand film, model cards)
   -------------------------------------------------------------------------- */

/* Hero slider */
.brand-hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
}

.brand-hero__slides {
    position: absolute;
    inset: 0;
}

.brand-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}

.brand-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.brand-hero__media {
    position: absolute;
    inset: 0;
}

.brand-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(8, 8, 10, 0.65) 0%,
        rgba(8, 8, 10, 0.15) 40%,
        rgba(8, 8, 10, 0.35) 100%);
}

.brand-hero__caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: clamp(8rem, 22vh, 13rem);
    text-align: center;
    padding-inline: var(--gutter);
}

.brand-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 1.5rem;
}

.brand-hero__title strong {
    font-weight: 800;
}

.brand-hero__meta {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.brand-hero__meta span {
    color: var(--color-primary);
    padding-inline: 0.5rem;
}

/* Slide caption entrance */
.brand-hero__slide .brand-hero__title,
.brand-hero__slide .brand-hero__meta {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.brand-hero__slide.is-active .brand-hero__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.brand-hero__slide.is-active .brand-hero__meta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Controls — prev / counter / next cluster, bottom-left so it never
   collides with the scrollspy on the right edge */
.brand-hero__controls {
    position: absolute;
    left: var(--gutter);
    bottom: 2rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-hero__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(13, 13, 16, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s;
}

.brand-hero__arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.brand-hero__arrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-light);
    border-left: 2px solid var(--color-light);
}

.brand-hero__arrow--prev span {
    transform: rotate(-45deg);
    margin-left: 5px;
}

.brand-hero__arrow--next span {
    transform: rotate(135deg);
    margin-right: 5px;
}

.brand-hero__count {
    min-width: 4.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-light);
}

/* Dots */
.brand-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.brand-hero__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background-color 0.25s, transform 0.25s;
}

.brand-hero__dot.is-active {
    background: var(--color-light);
    transform: scale(1.2);
}

/* Brand film */
.brand-film {
    position: relative;
    height: 100svh;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.brand-film__media {
    position: absolute;
    inset: 0;
}

.brand-film__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-film__shade {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.6);
}

.brand-film__content {
    position: relative;
    z-index: 2;
    padding-inline: var(--gutter);
}

.brand-film__kicker {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: 0;
}

.brand-film__title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 2.5rem;
}

.brand-film__play {
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 2rem;
    border: 2px solid var(--color-light);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s var(--ease-out);
}

.brand-film__play:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.08);
}

.brand-film__play-icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--color-light);
}

/* Inline film playback (desktop) — the caption drifts off to the left like
   fog, piece by piece, while the video slowly materialises out of the dark */
.brand-film.is-playing .brand-film__content {
    pointer-events: none;
}

.brand-film__content > * {
    transition: opacity 1s var(--ease-out),
                filter 1s var(--ease-out),
                transform 1s var(--ease-out);
}

.brand-film.is-playing .brand-film__content > * {
    opacity: 0;
    filter: blur(26px);
    transform: translateX(-90px);
}

/* Staggered: each piece of the caption dissolves slightly after the previous */
.brand-film.is-playing .brand-film__content > * {
    transition-duration: 1.6s;
}
.brand-film.is-playing .brand-film__content > *:nth-child(1) { transition-delay: 0s; }
.brand-film.is-playing .brand-film__content > *:nth-child(2) { transition-delay: 0.18s; }
.brand-film.is-playing .brand-film__content > *:nth-child(3) { transition-delay: 0.36s; }
.brand-film.is-playing .brand-film__content > *:nth-child(4) { transition-delay: 0.54s; }

/* The shade slides away westwards with the fog */
.brand-film__shade {
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.brand-film.is-playing .brand-film__shade {
    opacity: 0;
    transform: translateX(-6%);
    transition-duration: 2.2s;
}

.brand-film__player {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06);
    /* quick exit, so closing feels immediate */
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
                visibility 0.6s;
}

.brand-film.is-playing .brand-film__player {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    /* slow, mysterious entrance out of the black */
    transition: opacity 2.6s var(--ease-out) 0.9s,
                transform 3.2s var(--ease-out) 0.9s,
                visibility 2.6s 0.9s;
}

/* Size the iframe like background-size: cover for a 16:9 video */
.brand-film__player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max(100%, calc(100svh * 16 / 9));
    height: max(100%, calc(100vw * 9 / 16));
    border: 0;
}

.brand-film__stop {
    position: absolute;
    top: calc(var(--header-height) + 1rem);
    right: clamp(1rem, 3vw, 2.5rem);
    z-index: 3;
    width: 48px;
    height: 48px;
    background: rgba(13, 13, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s,
                background-color 0.25s, border-color 0.25s;
}

.brand-film.is-playing .brand-film__stop {
    opacity: 1;
    visibility: visible;
    /* only fades in once the video has emerged */
    transition: opacity 0.8s var(--ease-out) 2.4s, visibility 0.8s 2.4s,
                background-color 0.25s, border-color 0.25s;
}

.brand-film__stop:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.brand-film__stop span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--color-light);
}

.brand-film__stop span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.brand-film__stop span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Video lightbox (markup injected by site.js) */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    visibility: hidden;
    pointer-events: none;
}

.video-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 7, 0.88);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
}

.video-modal.is-open .video-modal__backdrop {
    opacity: 1;
}

.video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.video-modal.is-open .video-modal__dialog {
    opacity: 1;
    transform: scale(1);
}

.video-modal__frame {
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-modal__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-modal__close {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background-color 0.25s;
}

.video-modal__close:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.video-modal__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--color-light);
}

.video-modal__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.video-modal__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Models — white section */
.models {
    background: var(--color-light);
    color: var(--color-dark);
    padding-block: clamp(4.5rem, 10vw, 8rem);
}

.models__head {
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.models .section-title {
    color: var(--color-dark);
}

.models__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
}

.model-card__media {
    display: block;
    overflow: hidden;
}

.model-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.model-card:hover .model-card__media img {
    transform: scale(1.05);
}

.model-card__body {
    padding-top: 1.5rem;
}

.model-card__name {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.model-card__name strong {
    font-weight: 800;
}

.model-card__tag {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-left: 0.6rem;
    color: var(--color-dark);
}

.model-card__tag--new {
    color: var(--color-primary);
}

.model-card__tagline {
    color: #55555e;
    margin: 0 0 1.5rem;
}

/* --------------------------------------------------------------------------
   11. Wow effects (kinetic titles, ghost text, progress line, accent lines,
       diagonal cuts, grain, card cursor)
   -------------------------------------------------------------------------- */

/* Kinetic titles — letters race in with a speed-skew (split by site.js) */
.kinetic__letter {
    display: inline-block;
    opacity: 0;
    transform: translateX(0.6em) skewX(-12deg);
    transition: opacity 0.5s var(--ease-out) calc(var(--i, 0) * 35ms),
                transform 0.7s var(--ease-out) calc(var(--i, 0) * 35ms);
}

.kinetic.is-inview .kinetic__letter {
    opacity: 1;
    transform: none;
}

/* Ghost background text — huge outlined brand name behind each panel
   (injected by site.js, drifts on scroll) */
.showcase__ghost {
    position: absolute;
    top: 12%;
    right: -1%;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(5rem, 16vw, 15rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
    pointer-events: none;
    user-select: none;
    will-change: transform;
}

.showcase__caption {
    z-index: 2;
}

/* Scroll progress line (injected by site.js) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 150;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

/* Red accent line system */
.section-kicker::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--color-primary);
    vertical-align: middle;
    margin-right: 0.75rem;
    margin-top: -2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 0.85rem;
    background: var(--color-primary);
    transform-origin: left;
    transition: transform 0.8s var(--ease-out) 0.3s;
}

.reveal .section-title::after,
.section-title.reveal::after {
    transform: scaleX(0);
}

.reveal.is-visible .section-title::after,
.section-title.reveal.is-visible::after {
    transform: scaleX(1);
}

/* Diagonal section cuts — content sections slice over the previous one */
.intro,
.services,
.models,
.features,
.contact {
    clip-path: polygon(0 0, 100% 2.5vw, 100% 100%, 0 100%);
    margin-top: -2.5vw;
    padding-top: calc(clamp(4.5rem, 10vw, 8rem) + 2.5vw);
}

.cta {
    clip-path: polygon(0 2.5vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -2.5vw;
    padding-top: calc(clamp(5rem, 12vw, 9rem) + 2.5vw);
}

/* Film grain — fixed noise veil over everything below the chrome */
.site-body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

/* Card cursor — trailing "Explore" circle (injected by site.js, desktop) */
.card-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 95;
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    background: rgba(13, 13, 16, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-light);
    pointer-events: none;
    opacity: 0;
    scale: 0.4;
    transition: opacity 0.3s var(--ease-out), scale 0.3s var(--ease-out);
}

.card-cursor.is-active {
    opacity: 1;
    scale: 1;
}

.card-cursor__arrow {
    font-size: 1.1rem;
    line-height: 1;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   12. About page (hero, dealer hub feature rows, browser frames)
   -------------------------------------------------------------------------- */
.about-hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.about-hero__media {
    position: absolute;
    inset: 0;
}

.about-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(8, 8, 10, 0.88) 0%,
        rgba(8, 8, 10, 0.25) 50%,
        rgba(8, 8, 10, 0.35) 100%);
}

.about-hero__caption {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: 0 var(--gutter) clamp(3.5rem, 8vw, 6rem);
}

.about-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7.5vw, 6.5rem);
    font-weight: 800;
    line-height: 0.98;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.about-hero__title span {
    color: var(--color-primary);
}

.about-hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
    margin: 0;
}

/* Dealer hub feature rows */
.features {
    padding-block: clamp(4.5rem, 10vw, 8rem);
    background: var(--color-dark);
}

.features__head {
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
    max-width: 46rem;
}

.feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    perspective: 1200px;
}

.feature + .feature {
    margin-top: clamp(4rem, 9vw, 7.5rem);
}

.feature--flip .feature__media {
    order: 2;
}

.feature--flip .feature__body {
    order: 1;
}

.feature__index {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.feature__copy {
    color: var(--color-grey);
    margin: 0 0 1.5rem;
}

.feature__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature__list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
}

.feature__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Browser-frame mockup around the screenshots */
.browser-frame {
    border: 1px solid var(--color-line);
    background: #0b0b0e;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transition: transform 0.9s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
}

/* Tilted in 3D until the row reveals, then eases flat */
.reveal .browser-frame {
    transform: rotateY(-8deg) translateX(-12px);
}

.reveal.feature--flip .browser-frame {
    transform: rotateY(8deg) translateX(12px);
}

.reveal.is-visible .browser-frame {
    transform: rotateY(0) translateX(0);
}

.browser-frame:hover {
    box-shadow: 0 30px 70px rgba(194, 21, 28, 0.22);
}

.browser-frame__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0.7rem 1rem;
    background: #16161b;
    border-bottom: 1px solid var(--color-line);
}

.browser-frame__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.browser-frame__dot:nth-child(1) { background: rgba(237, 106, 94, 0.75); }
.browser-frame__dot:nth-child(2) { background: rgba(245, 191, 79, 0.75); }
.browser-frame__dot:nth-child(3) { background: rgba(97, 197, 84, 0.75); }

.browser-frame__url {
    flex: 1;
    max-width: 280px;
    margin-left: 0.75rem;
    padding: 0.3rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--color-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-frame > img {
    width: 100%;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.browser-frame:hover > img {
    transform: scale(1.03);
}

/* Three-up variant of the services grid (values strip) */
.services__grid--three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .services__grid--three {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .feature,
    .feature--flip {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .feature--flip .feature__media {
        order: 1;
    }

    .feature--flip .feature__body {
        order: 2;
    }

    /* Stacked brand content is taller than the viewport — let it scroll
       naturally instead of trapping the mandatory snap. */
    .brand-row {
        min-height: auto;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        padding-block: clamp(3rem, 12vw, 5rem);
    }
}

@media (max-width: 768px) {
    .services__grid--three {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   13. Become a Dealer (stepped form)
   -------------------------------------------------------------------------- */
.dealer-apply {
    min-height: 100svh;
    padding: calc(var(--header-height) + clamp(2rem, 5vh, 4rem)) 0 4rem;
    background:
        radial-gradient(60% 50% at 85% 8%, rgba(28, 54, 136, 0.20), transparent 70%),
        radial-gradient(50% 45% at 8% 95%, rgba(194, 21, 28, 0.12), transparent 70%),
        var(--color-dark);
}

.dealer-apply__inner {
    max-width: calc(820px + var(--gutter) * 2);
}

.dealer-apply__head {
    margin-bottom: 2.5rem;
}

.dealer-apply__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.dealer-apply__title span {
    color: var(--color-primary);
}

.dealer-apply__lead {
    color: var(--color-grey);
    max-width: 34rem;
    margin: 0;
}

/* Progress */
.dealer-progress {
    margin: 0 0 2.75rem;
}

.dealer-progress__count {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-grey);
    margin-bottom: 0.6rem;
}

.dealer-progress__bar {
    height: 3px;
    background: var(--color-line);
    overflow: hidden;
}

.dealer-progress__fill {
    display: block;
    height: 100%;
    background: var(--color-primary);
    transition: width 0.45s var(--ease-out);
}

/* Alert (server-side / rate-limit errors) */
.dealer-form__alert {
    border: 1px solid rgba(194, 21, 28, 0.5);
    background: rgba(194, 21, 28, 0.12);
    padding: 0.85rem 1.25rem;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

/* Steps — stacked by default (no JS), one-at-a-time when .is-stepped */
.dealer-form__step {
    border: 0;
    padding: 0;
    margin: 0 0 3rem;
    min-width: 0;
}

.dealer-form.is-stepped {
    position: relative;
    min-height: 520px;
}

.dealer-form.is-stepped .dealer-form__step {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(32px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-out),
                transform 0.45s var(--ease-out),
                visibility 0s linear 0.45s;
}

/* Steps already answered sit "above" so going back slides down */
.dealer-form.is-stepped .dealer-form__step.is-behind {
    transform: translateY(-32px);
}

.dealer-form.is-stepped .dealer-form__step.is-active {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

/* Question + input */
.dealer-form__index {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.dealer-form__question {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0 0 1.75rem;
}

.dealer-form__input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--color-line);
    border-radius: 0;
    color: var(--color-light);
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    padding: 0.5rem 0;
    caret-color: var(--color-primary);
    outline: none;
    transition: border-color 0.25s var(--ease-out);
}

.dealer-form__input:focus {
    border-color: var(--color-primary);
}

.dealer-form__input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.dealer-form__error {
    min-height: 1.5rem;
    margin: 0.6rem 0 0;
    color: var(--color-primary);
    font-size: 0.95rem;
    transition: opacity 0.25s var(--ease-out);
}

.dealer-form__error:empty {
    opacity: 0;
}

/* Navigation row */
.dealer-form__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.dealer-form__back {
    background: none;
    border: 0;
    padding: 0.85rem 0;
    color: var(--color-grey);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s var(--ease-out);
}

.dealer-form__back:hover {
    color: var(--color-light);
}

.dealer-form__hint {
    color: var(--color-grey);
    font-size: 0.9rem;
}

/* Honeypot — off-screen, never display:none */
.dealer-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* Review step */
.dealer-review {
    margin: 0 0 1rem;
}

.dealer-review__item {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-line);
}

.dealer-review__label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-grey);
}

.dealer-review__value {
    margin: 0;
    font-size: 1.15rem;
    word-break: break-word;
}

.dealer-review__edit {
    background: none;
    border: 0;
    padding: 0;
    color: var(--color-primary);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.dealer-review__edit:hover {
    color: var(--color-light);
}

/* Success state */
.dealer-success {
    max-width: 640px;
    margin-inline: auto;
    padding: 3rem 0;
    text-align: center;
}

.dealer-success__icon {
    display: inline-block;
    position: relative;
    width: 72px;
    height: 72px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.dealer-success__icon::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 17px;
    width: 16px;
    height: 30px;
    border-right: 3px solid var(--color-light);
    border-bottom: 3px solid var(--color-light);
    transform: rotate(45deg);
}

.dealer-success__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 0.98;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.dealer-success__title span {
    color: var(--color-primary);
}

.dealer-success__copy {
    color: var(--color-grey);
    margin: 0 0 2rem;
}

.dealer-success__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .dealer-form.is-stepped .dealer-form__step {
        transition: none;
        transform: none;
    }

    .dealer-progress__fill {
        transition: none;
    }
}

@media (max-width: 768px) {
    .dealer-form.is-stepped {
        min-height: 460px;
    }
}

@media (max-width: 540px) {
    .dealer-form__nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .dealer-form__nav .btn {
        width: 100%;
    }

    .dealer-form__hint {
        display: none;
    }

    .dealer-review__item {
        grid-template-columns: 1fr auto;
    }

    .dealer-review__label {
        grid-column: 1 / -1;
        padding-bottom: 0;
    }
}

/* --------------------------------------------------------------------------
   12. Contact page — info cards (call / email / visit) + details split
   -------------------------------------------------------------------------- */
.contact {
    padding-block: clamp(4.5rem, 10vw, 8rem);
    background: var(--color-dark);
}

.contact__head {
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 640px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--color-line);
    background: var(--color-dark-soft);
    padding: clamp(2rem, 3vw, 2.75rem) clamp(1.75rem, 2.5vw, 2.25rem);
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.contact-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
}

.contact-card__label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.contact-card__value {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: color 0.25s;
}

a.contact-card__value:hover {
    color: var(--color-primary);
}

.contact-card__value--address {
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    font-style: normal;
    line-height: 1.35;
}

.contact-card__note {
    color: var(--color-grey);
    font-size: 0.95rem;
    margin: 0;
}

.contact-card .btn {
    margin-top: auto;
}

/* Department mailto links sit under each service card */
.contact-dept__email {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
    transition: color 0.25s;
}

.contact-dept__email:hover {
    color: var(--color-primary);
}

/* Social / legal links in the details split */
.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 2rem;
}

.contact-legal {
    color: var(--color-grey);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin: 0;
}

/* --------------------------------------------------------------------------
   13. Legal pages — compact hero + readable prose (privacy / terms)
   -------------------------------------------------------------------------- */
.legal-hero {
    background: var(--color-dark-soft);
    border-bottom: 1px solid var(--color-line);
    padding-top: calc(var(--header-height) + clamp(2.5rem, 6vw, 4.5rem));
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.legal-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.02;
    text-transform: uppercase;
    margin: 0 0 1rem;
    color: #fff;
}

.legal-hero__title span {
    color: var(--color-primary);
}

.legal-hero__meta {
    max-width: 760px;
    color: var(--color-grey);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.legal {
    background: var(--color-dark);
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.legal__body {
    max-width: 760px;
    margin-inline: auto;
}

.legal__heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
    padding-top: 1rem;
}

.legal__heading:first-child {
    margin-top: 0;
    padding-top: 0;
}

.legal__heading::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    margin-bottom: 1.1rem;
}

.legal__body p,
.legal__body li {
    color: var(--color-grey);
    line-height: 1.8;
    margin: 0 0 1.25rem;
}

.legal__body ul {
    padding-left: 1.25rem;
    margin: 0 0 1.25rem;
}

.legal__body a:not(.btn) {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s;
    word-break: break-word;
}

.legal__body a:not(.btn):hover {
    border-bottom-color: var(--color-primary);
}

.legal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: 2rem;
    border-top: 1px solid var(--color-line);
}

/* --------------------------------------------------------------------------
   14. Dealer Hub hero — animated SVG device stage
   -------------------------------------------------------------------------- */
.dh-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% 5%, rgba(194, 21, 28, 0.22) 0%, rgba(194, 21, 28, 0) 55%),
        radial-gradient(90% 80% at 10% 100%, rgba(28, 54, 136, 0.18) 0%, rgba(28, 54, 136, 0) 60%),
        var(--color-dark);
}

.dh-hero__inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1.02fr 1.15fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
    padding-top: calc(var(--header-height) + clamp(1.5rem, 4vw, 3rem));
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.dh-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.2vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    color: #fff;
}

.dh-hero__title span {
    color: var(--color-primary);
}

.dh-hero__lead {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: var(--color-grey);
    max-width: 34rem;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.dh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* SVG device stage. Animation is layered across nested groups so three
   transforms compose cleanly:
     .dh-device        → live pointer parallax (JS sets --px/--py, depth via --k)
     .dh-device__float → slow infinite idle bob
     .dh-device__rise  → one-shot entrance (rise + scale + settle)            */
.dh-stage {
    --px: 0;
    --py: 0;
    width: 100%;
    height: auto;
    overflow: visible;
}

.dh-device,
.dh-device__float,
.dh-device__rise {
    transform-box: fill-box;
    transform-origin: center;
}

/* Parallax layer — smoothed so it eases toward the pointer and back */
.dh-device {
    transform: translate(calc(var(--px) * var(--k, 0) * 1px), calc(var(--py) * var(--k, 0) * 1px));
    transition: transform 0.5s var(--ease-out);
    will-change: transform;
}

.dh-device--monitor { --k: 16; }
.dh-device--laptop  { --k: 8; }
.dh-device--tablet  { --k: 24; }

/* Idle bob — different amplitude/tempo per device, held until the entrance ends */
.dh-device__float {
    animation: dh-float 7s ease-in-out 1.4s infinite;
}
.dh-device--monitor .dh-device__float { animation-duration: 8.5s; animation-delay: 1.7s; }
.dh-device--tablet  .dh-device__float { animation-duration: 6s;   animation-delay: 1.2s; }

@keyframes dh-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}

/* Entrance — staggered rise + scale with a soft overshoot */
.dh-device__rise {
    opacity: 0;
    animation: dh-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.dh-device--laptop  .dh-device__rise { animation-delay: 0.15s; }
.dh-device--monitor .dh-device__rise { animation-delay: 0.42s; }
.dh-device--tablet  .dh-device__rise { animation-delay: 0.68s; }

@keyframes dh-rise {
    0%   { opacity: 0; transform: translateY(90px) scale(0.88) rotate(0.6deg); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

/* Screen "power-on" — the dark overlay fades off once, after the device lands */
.dh-power {
    opacity: 1;
    animation: dh-power 0.9s ease-out forwards;
}
.dh-device--laptop  .dh-power { animation-delay: 0.7s; }
.dh-device--monitor .dh-power { animation-delay: 1s; }
.dh-device--tablet  .dh-power { animation-delay: 1.25s; }

@keyframes dh-power {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* Ambient glow — fades in then gently breathes */
.dh-glow {
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
    animation: dh-fade-in 1.4s var(--ease-out) 0.2s forwards,
               dh-glow-pulse 6s ease-in-out 1.6s infinite;
}

@keyframes dh-fade-in { to { opacity: 1; } }
@keyframes dh-glow-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.85; }
    50%      { transform: scale(1.08); opacity: 1; }
}

/* Brand ring — scales/rotates in, then spins slowly forever */
.dh-ring {
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
    animation: dh-ring-in 1.2s var(--ease-out) 0.35s forwards,
               dh-ring-spin 30s linear 1.6s infinite;
}

@keyframes dh-ring-in {
    0%   { opacity: 0; transform: scale(0.4) rotate(-50deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes dh-ring-spin { to { transform: rotate(360deg); } }

.dh-dots {
    opacity: 0;
    animation: dh-fade-in 1.4s var(--ease-out) 0.55s forwards;
}

/* Glass glare — a slow light sweep looping across each screen */
.dh-glare {
    transform-origin: center;
    transform-box: fill-box;
    transform: translateX(-260%);
    animation: dh-sweep 8s ease-in-out infinite;
}
.dh-device--laptop  .dh-glare { animation-delay: 2s; }
.dh-device--monitor .dh-glare { animation-delay: 3.4s; }
.dh-device--tablet  .dh-glare { animation-delay: 2.7s; }

@keyframes dh-sweep {
    0%   { transform: translateX(-260%); }
    35%  { transform: translateX(380%); }
    100% { transform: translateX(380%); }
}

@media (prefers-reduced-motion: reduce) {
    .dh-device,
    .dh-device__float,
    .dh-device__rise,
    .dh-glow,
    .dh-ring,
    .dh-dots {
        opacity: 1;
        animation: none;
        transform: none;
    }
    .dh-power,
    .dh-glare { display: none; }
}

/* --------------------------------------------------------------------------
   15. Brands page — full-screen, scroll-snapping brand panels
   -------------------------------------------------------------------------- */
.brands-rows {
    background: var(--color-dark);
}

/* Each brand is its own full-viewport panel that snaps into view */
.brand-row {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: calc(var(--header-height) + 2rem) clamp(2.5rem, 6vw, 4rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.brand-row__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: #0c0c10;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.brand-row__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out);
}

.brand-row:hover .brand-row__frame img {
    transform: scale(1.04);
}

/* Fallback panel when a brand has no action photo — show its logo on a glow */
.brand-row__frame--logo {
    display: grid;
    place-items: center;
    background:
        radial-gradient(70% 70% at 50% 40%, rgba(194, 21, 28, 0.28), rgba(12, 12, 16, 0) 70%),
        #0c0c10;
}

.brand-row__frame--logo .brand-row__ghost {
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: 46%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.brand-row__logo {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.25rem;
}

.brand-row__logo img {
    height: 34px;
    width: auto;
    display: block;
}

.brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.brand-meta__item {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-grey);
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.brand-meta__item strong {
    color: #fff;
    font-weight: 700;
}

.brand-row__cta {
    margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   16. Share card — standalone, mobile-first digital business card (/card)
   -------------------------------------------------------------------------- */
.scard-body {
    margin: 0;
    height: 100svh;
    overflow: hidden;                 /* fixed — the page never scrolls */
    background:
        radial-gradient(110% 60% at 50% 0%, rgba(194, 21, 28, 0.18) 0%, rgba(194, 21, 28, 0) 55%),
        #08080a;
    color: #fff;
    font-family: var(--font-body);
}

/* Stage centres the card; the card fills the screen minus a margin */
.scard-stage {
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(0.9rem, 4vw, 2rem);
    perspective: 1500px;            /* gives the entrance a real 3D feel */
}

/* The wallet card — sizing + entrance + perspective for the 3D flip */
.scard {
    width: 100%;
    max-width: 390px;
    height: 100%;
    max-height: 760px;
    min-width: 0;
    position: relative;
    perspective: 1600px;
    transform-origin: 50% 82%;
    will-change: transform, opacity;
    animation: scard-present 1.9s cubic-bezier(0.33, 1, 0.4, 1) both;
}

/* Flipper — rotates to reveal the back (driven by finger drag in JS) */
.scard__flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.3, 0.9, 0.25, 1);
    touch-action: pan-y;     /* horizontal gestures drive the flip */
    cursor: grab;
}

.scard__flip:active {
    cursor: grabbing;
}

/* Front & back surfaces — both look like the card */
.scard__face {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    text-align: center;
    /* No overflow:hidden — Safari ignores backface-visibility when it's set,
       which would show the front (mirrored) and back at the same time. */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(0deg);   /* helps Safari keep each face one-sided */
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 38%),
        radial-gradient(130% 80% at 50% 0%, rgba(194, 21, 28, 0.34) 0%, rgba(194, 21, 28, 0) 58%),
        linear-gradient(165deg, #21212a 0%, #16151c 55%, #0e0d12 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        1.5px 1.5px 0 rgba(255, 255, 255, 0.18) inset,    /* light bevel: top-left */
        -1.5px -1.5px 0 rgba(0, 0, 0, 0.55) inset,         /* dark bevel: bottom-right */
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 24px 48px rgba(0, 0, 0, 0.55),
        0 50px 90px rgba(0, 0, 0, 0.55);
}

/* Faint carbon-fibre weave over the surface (under content, above background) */
.scard__face::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(-45deg, #fff 0, #fff 1px, transparent 1px, transparent 4px);
    background-size: 6px 6px;
}

.scard__face--front {
    display: flex;
    flex-direction: column;
}

.scard__face--back {
    transform: rotateY(180deg);
    display: grid;
    place-items: center;
    padding: 2rem;
    cursor: pointer;
}

.scard__backinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.1rem, 5vw, 1.8rem);
}

.scard__backlogo {
    width: clamp(120px, 42vw, 180px);
    height: auto;
    opacity: 0.96;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.scard__backqr {
    width: clamp(120px, 40vw, 170px);
    height: auto;
    background: #fff;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.scard__backqr-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}


/* One fluid, hand-like motion: the card is brought up at an angle, gently
   overshoots and damps into place while continuously turning to flat, with a
   subtle wrist sway (rotateZ). Small, overlapping deltas keep it organic. */
@keyframes scard-present {
    0% {
        opacity: 0;
        transform: translateY(96%) rotateZ(-6deg) rotateY(-20deg) scale(0.94);
    }
    30% { opacity: 1; }
    52% {
        transform: translateY(-5%) rotateZ(-2.2deg) rotateY(-11deg) scale(1.012);
    }
    74% {
        transform: translateY(1.4%) rotateZ(0.6deg) rotateY(-4deg) scale(0.998);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg) rotateY(0deg) scale(1);
    }
}


/* Header band — logo left, field pill right (Apple-pass style) */
.scard__band {
    position: relative;
    z-index: 1;                       /* above the carbon texture */
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(1.1rem, 4.5vw, 1.5rem) clamp(1.1rem, 4.5vw, 1.5rem) clamp(1rem, 4vw, 1.3rem);
}

.scard__band::after {
    content: '';
    position: absolute;
    left: clamp(1.1rem, 4.5vw, 1.5rem);
    right: clamp(1.1rem, 4.5vw, 1.5rem);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 21, 28, 0.85), transparent);
}

.scard__logo {
    height: clamp(32px, 9vw, 42px);
    width: auto;
    display: block;
    /* stamped / embossed into the card */
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 -0.5px 0 rgba(255, 255, 255, 0.22));
}

.scard__pill {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}

/* Body fills remaining height and distributes the fields */
.scard__body {
    position: relative;
    z-index: 1;                       /* above the carbon texture */
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(0.95rem, 3.2vw, 1.45rem);
    padding: clamp(1.1rem, 4.5vw, 1.6rem);
}

.scard__intro {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scard__lead {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 5.5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.04;
    text-transform: uppercase;
    color: #fff;
}

/* Cycling helper line — one phrase visible at a time, looping */
.scard__hint {
    position: relative;
    height: 1.2rem;
    margin: 0;
}

.scard__hint-item {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: var(--color-primary);
    opacity: 0;
    animation: scard-hint 12s ease-in-out infinite;
}

.scard__hint-item:nth-child(1) { animation-delay: 0s; }
.scard__hint-item:nth-child(2) { animation-delay: 3s; }
.scard__hint-item:nth-child(3) { animation-delay: 6s; }
.scard__hint-item:nth-child(4) { animation-delay: 9s; }

@keyframes scard-hint {
    0%   { opacity: 0; transform: translateY(5px); }
    3%   { opacity: 1; transform: translateY(0); }
    22%  { opacity: 1; transform: translateY(0); }
    27%  { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 0; }
}

/* EMV chip + contactless waves — the bank-card tell */
.scard__chiprow {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    animation: scard-fade 0.6s ease-out 0.7s both;
}

.scard__emv {
    position: relative;
    width: 38px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #f2d68a 0%, #cda44e 45%, #9c7733 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* specular shine sweeping across the gold chip */
.scard__emv::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -60%;
    width: 50%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: skewX(-18deg);
    animation: scard-chip-shine 5s ease-in-out 1.5s infinite;
}

@keyframes scard-chip-shine {
    0%   { left: -60%; }
    18%  { left: 130%; }
    100% { left: 130%; }
}

/* chip contact lines */
.scard__emv::before {
    content: '';
    position: absolute;
    inset: 5px 7px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)) center / 100% 1px no-repeat,
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)) center / 1px 100% no-repeat;
}

.scard__nfc {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.85);
    animation: scard-nfc-glow 3.4s ease-in-out infinite;
}

@keyframes scard-nfc-glow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
    50%      { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55)); }
}

.scard__nfc svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* waves pulse outward, staggered — the tap-to-pay cue */
.scard__wave {
    transform-box: fill-box;
    transform-origin: left center;
    animation: scard-nfc 1.9s ease-in-out infinite;
}

.scard__wave--1 { animation-delay: 0s; }
.scard__wave--2 { animation-delay: 0.22s; }
.scard__wave--3 { animation-delay: 0.44s; }

@keyframes scard-nfc {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
}

@keyframes scard-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Respect reduced-motion: show the card, drop the motion */
@media (prefers-reduced-motion: reduce) {
    .scard { animation: none; }
    .scard__flip { transition: none; }
    .scard__cta { animation: none; }
    .scard__track { animation: none; }
    .scard__backlogo { animation: none; }
    .scard__emv::after { display: none; }
    .scard__nfc { animation: none; }
    .scard__hint-item { animation: none; }
    .scard__hint-item:not(:first-child) { display: none; }
    .scard__hint-item:first-child { opacity: 1; }
}

/* Contact detail rows — show phone / email / address, all tappable */
.scard__details {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.scard-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.25s, background-color 0.25s, transform 0.2s var(--ease-out);
}

.scard-row:active {
    border-color: var(--color-primary);
    background: rgba(194, 21, 28, 0.16);
    transform: scale(0.99);
}

.scard-row__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.scard-row__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.scard-row__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.scard-row__label {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.scard-row__value {
    font-size: 0.92rem;
    line-height: 1.25;
    color: #fff;
    font-variant-numeric: tabular-nums;   /* aligned figures for the phone number */
    word-break: break-word;
}

/* Brands — tidy uniform 3-up grid */
.scard__brands {
    width: 100%;
    padding-top: clamp(0.6rem, 2.5vw, 1rem);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.scard__label {
    margin: 0 0 0.7rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Swipeable logo strip — auto-scrolls when idle (JS), faded at both edges */
.scard__marquee {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;      /* swipe scrolls the strip, doesn't flip the card */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;          /* IE/Edge */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.scard__marquee::-webkit-scrollbar { display: none; }

.scard__track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
}

.scard-chip {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 78px;
    height: 38px;
    padding: 0.3rem 0.5rem;
    background: #fff;
    border-radius: 7px;
}

.scard-chip img {
    max-width: 100%;
    max-height: 72%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Footer — CTA + share/save */
.scard__foot {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: clamp(0.6rem, 2.5vw, 1rem);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.scard__cta {
    width: 100%;
    animation: scard-cta-glow 2.8s ease-in-out 2s infinite;
}

/* Soft breathing halo to draw the eye to the primary action */
@keyframes scard-cta-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(194, 21, 28, 0); }
    50%      { box-shadow: 0 10px 32px rgba(194, 21, 28, 0.55); }
}

.scard__share {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.55rem;
}

.scard__share .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 0.5rem;
}

/* QR icon button (third, compact) */
.scard__qrbtn {
    width: auto;
    aspect-ratio: 1;
    padding: 0;
    display: grid;
    place-items: center;
}

.scard__qrbtn svg {
    width: 20px;
    height: 20px;
}

.scard__share .btn.is-done {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.scard__savehint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

.scard__savehint strong {
    color: #fff;
    font-weight: 600;
}


/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: 1fr 1fr;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    .site-header__logo img {
        height: 36px;
    }

    .site-header__cta {
        display: none;
    }

    .intro__grid {
        grid-template-columns: 1fr;
    }

    .dh-hero {
        min-height: auto;
    }

    .dh-hero__inner {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 6vw, 2.5rem);
        padding-bottom: clamp(3rem, 10vw, 5rem);
    }

    .dh-hero__actions .btn {
        flex: 1 1 auto;
    }

    /* The SVG cluster scales with its viewBox; give it a little breathing room */
    .dh-hero__stage {
        max-width: 560px;
        margin-inline: auto;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .brand-grid__row--split {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .models__grid {
        grid-template-columns: 1fr;
    }

    .brand-hero__controls {
        bottom: 1.25rem;
    }

    .brand-hero__arrow {
        width: 44px;
        height: 44px;
    }

    .brand-hero__count {
        min-width: 3.5rem;
        font-size: 0.95rem;
    }

    /* Keep the dots clear of the controls on small screens */
    .brand-hero__dots {
        left: auto;
        right: var(--gutter);
        bottom: 1.25rem;
        transform: none;
        align-items: center;
        height: 44px;
    }
}

@media (max-width: 540px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-header__lang {
        display: none;
    }
}
