/* =====================================================================
   AUTOSPORT GIBRALTAR · core styles shared by every page
   Tokens, reset, type, buttons, nav, menu, loader, vehicle card, footer.
   The red is sampled from the logo; the slant (-14deg) comes from its swoosh.
   ===================================================================== */

:root {
    /* Colour */
    --red: #ee1b24;
    --red-deep: #b8121a;
    --red-glow: rgba(238, 27, 36, 0.35);
    --ink: #0c0d0f;          /* asphalt */
    --ink-2: #15171a;        /* panel on dark */
    --ink-3: #22252a;
    --paper: #f3f3f1;        /* showroom floor */
    --paper-2: #e7e7e3;
    --white: #ffffff;
    --steel: #5f646b;        /* muted text on light, 5.6:1 on paper */
    --fog: #a9aeb5;          /* muted text on dark */
    --line: rgba(12, 13, 15, 0.12);
    --line-dark: rgba(255, 255, 255, 0.12);
    --sticker: #ffd21f;      /* windscreen price-sticker yellow */
    --go: #13804a;
    --amber: #a86400;

    /* Type */
    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --text: 'Montserrat', system-ui, sans-serif;

    /* Layout */
    --wrap: 1320px;
    --gutter: clamp(16px, 4vw, 48px);
    --nav-h: 76px;
    --slant: -14deg;
    --cut: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
body {
    font-family: var(--text);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: 0.005em;
    text-wrap: balance;
}
.h-xl { font-size: clamp(3.1rem, 8.4vw, 7.6rem); font-weight: 800; }
.h-lg { font-size: clamp(2.5rem, 5.6vw, 5rem); font-weight: 800; }
.h-md { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.h-sm { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.lede { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--steel); max-width: 52ch; }
.on-dark .lede { color: var(--fog); }
.red { color: var(--red); }

/* Small label with the logo's red slash in front of it */
.tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--display); font-weight: 600; font-size: 0.95rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
.tag::before {
    content: ''; width: 26px; height: 4px; background: currentColor;
    transform: skewX(var(--slant));
}
.on-dark .tag { color: #fff; }
.on-dark .tag::before { background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
    --bg: var(--red); --fg: #fff; --bg-hover: var(--ink);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 54px; padding: 0 28px;
    font-family: var(--display); font-weight: 700; font-size: 1.08rem;
    letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
    color: var(--fg); background: var(--bg);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
    transition: color 0.35s var(--ease), transform 0.2s var(--ease);
}
.btn::before {
    content: ''; position: absolute; inset: 0 -20%; z-index: -1;
    background: var(--bg-hover);
    transform: translateX(-105%) skewX(var(--slant));
    transition: transform 0.5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0) skewX(var(--slant)); }
.btn:active { transform: scale(0.97); }
.btn svg { flex: none; }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--dark { --bg: var(--ink); --bg-hover: var(--red); }
.btn--light { --bg: #fff; --fg: var(--ink); --bg-hover: var(--red); }
.btn--light:hover { --fg: #fff; }
.btn--ghost {
    --bg: transparent; --fg: #fff; --bg-hover: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
    clip-path: none;
}
.btn--ghost:hover { --fg: var(--ink); }
.btn--ghost-dark { --bg: transparent; --fg: var(--ink); --bg-hover: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); clip-path: none; }
.btn--ghost-dark:hover { --fg: #fff; }
.btn--wa { --bg: #1fa855; --bg-hover: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.98rem; }
.btn--block { width: 100%; }

/* Underlined text link with a sliding red bar */
.link {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--display); font-weight: 700; font-size: 1.05rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding-bottom: 4px;
}
.link::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: var(--red); transform-origin: left;
    transform: scaleX(0.35); transition: transform 0.45s var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link .arrow { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--nav-h);
    color: #fff;
    transition: background-color 0.4s var(--ease), height 0.4s var(--ease), transform 0.45s var(--ease);
}
.nav::after {      /* thin red line that grows with scroll progress */
    content: ''; position: absolute; left: 0; bottom: 0; height: 2px;
    width: calc(var(--progress, 0) * 100%); background: var(--red);
}
.nav.is-solid { background: var(--ink); --nav-h: 64px; box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6); }
.nav.is-hidden { transform: translateY(-100%); }
.nav--solid { background: var(--ink); }
.nav-inner {
    height: 100%; display: flex; align-items: center; gap: 28px;
    max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter);
}
.nav-logo { flex: none; display: block; }
.nav-logo img { width: 128px; height: auto; transition: width 0.4s var(--ease); }
.nav.is-solid .nav-logo img { width: 112px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
    position: relative; display: block; padding: 10px 12px;
    font-family: var(--display); font-weight: 600; font-size: 1.05rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82);
    transition: color 0.25s;
}
.nav-links a::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px;
    background: var(--red); transform: scaleX(0) skewX(var(--slant)); transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1) skewX(var(--slant)); }
.nav-links a.nav-deals { color: var(--sticker); }
.nav-call { flex: none; }
.nav-call .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.nav-call svg { width: 16px; height: 16px; }

.nav-toggle {
    display: none; position: relative; width: 48px; height: 48px; margin-left: auto;
    z-index: 2;
}
.nav-toggle span {
    position: absolute; left: 11px; right: 11px; height: 2px; background: #fff;
    transition: transform 0.45s var(--ease), opacity 0.2s, top 0.45s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; right: 18px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.menu-open .nav-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Full-screen mobile menu */
.menu {
    position: fixed; inset: 0; z-index: 99;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
    background: var(--ink); color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.7s var(--ease);
    visibility: hidden;
}
.menu-open .menu { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; }
.menu-photo {
    position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.menu-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; transform: scale(1.1); transition: transform 1.2s var(--ease); }
.menu-open .menu-photo img { transform: scale(1); }
.menu-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 8%, rgba(12,13,15,0.55) 45%, var(--ink) 92%); }
.menu-links { display: grid; gap: 2px; margin-bottom: 28px; }
.menu-links a {
    display: flex; align-items: baseline; justify-content: space-between;
    font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 3.6rem);
    line-height: 1.04; text-transform: uppercase;
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.2s;
}
.menu-links a small { font-family: var(--text); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: none; color: var(--fog); }
.menu-links a:active, .menu-links a:hover { color: var(--red); }
.menu-open .menu-links a { opacity: 1; transform: none; }
.menu-open .menu-links a:nth-child(1) { transition-delay: 0.18s; }
.menu-open .menu-links a:nth-child(2) { transition-delay: 0.23s; }
.menu-open .menu-links a:nth-child(3) { transition-delay: 0.28s; }
.menu-open .menu-links a:nth-child(4) { transition-delay: 0.33s; }
.menu-open .menu-links a:nth-child(5) { transition-delay: 0.38s; }
.menu-open .menu-links a:nth-child(6) { transition-delay: 0.43s; }
.menu-foot {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    opacity: 0; transition: opacity 0.5s 0.45s;
}
.menu-open .menu-foot { opacity: 1; }
.menu-foot .btn { min-height: 52px; padding: 0 12px; }
.menu-meta { grid-column: 1 / -1; margin-top: 12px; font-size: 0.85rem; color: var(--fog); }
body.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
    .nav-links, .nav-call { display: none; }
    .nav-toggle { display: block; }
    :root { --nav-h: 64px; }
    .nav-logo img, .nav.is-solid .nav-logo img { width: 108px; }
}
@media (min-width: 1101px) { .menu { display: none; } }

/* =====================================================================
   LOADER (first visit in a session) and page curtain
   ===================================================================== */
.loader {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center;
    background: var(--ink); color: #fff;
    pointer-events: none;
}
html:not(.intro) .loader, .loader[hidden] { display: none; }
.loader-mark { position: relative; width: min(400px, 72vw); }
.loader-word {
    display: block; width: 100%;
    clip-path: inset(0 100% 0 0);
    animation: loader-word 0.9s 0.25s var(--ease) forwards;
}
.loader-swoosh {
    position: relative; height: 10px; margin-top: 10px; overflow: hidden;
}
.loader-swoosh i {
    position: absolute; inset: 0; background: var(--red);
    clip-path: polygon(0 35%, 100% 0, 92% 100%, 0 100%);
    transform: translateX(-102%);
    animation: loader-swoosh 0.8s 0.65s var(--ease) forwards;
}
.loader-meta {
    display: flex; justify-content: space-between; margin-top: 16px;
    font-family: var(--display); font-weight: 600; letter-spacing: 0.22em; font-size: 0.85rem;
    text-transform: uppercase; color: var(--fog);
    opacity: 0; animation: fade-in 0.6s 1s forwards;
}
.loader-count { font-variant-numeric: tabular-nums; color: #fff; }
.loader-panel {     /* the two panels that slash away to reveal the page */
    position: absolute; inset: 0; background: var(--ink); z-index: -1;
}
.loader.is-leaving { animation: loader-out 0.9s var(--ease-in) forwards; }
.loader.is-leaving .loader-mark { animation: loader-mark-out 0.5s var(--ease-in) forwards; }
.loader-streak {
    position: absolute; left: 0; right: 0; top: 50%; height: 120vh; margin-top: -60vh;
    background: var(--red); transform: translateX(-110%) skewX(var(--slant));
}
.loader.is-leaving .loader-streak { animation: streak 0.9s var(--ease) forwards; }
@keyframes loader-word { to { clip-path: inset(0 0 0 0); } }
@keyframes loader-swoosh { to { transform: translateX(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes loader-mark-out { to { opacity: 0; transform: translateX(40px); } }
@keyframes loader-out {
    0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    100% { clip-path: polygon(100% 0, 100% 0, 100% 100%, 115% 100%); }
}
@keyframes streak { 0% { transform: translateX(-120%) skewX(var(--slant)); } 100% { transform: translateX(120%) skewX(var(--slant)); } }
.intro body { overflow: hidden; }

/* =====================================================================
   REVEAL ON SCROLL (only hides things once JS has said it is running)
   ===================================================================== */
.js [data-reveal] {
    opacity: 0; transform: translateY(36px);
    transition: opacity 0.9s var(--ease), transform 1s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Masked line reveal for big headings */
.js [data-lines] .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js [data-lines] .ln > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + var(--base, 0ms)); }
.js [data-lines].is-in .ln > span { transform: none; }

/* =====================================================================
   SECTIONS & SURFACES
   ===================================================================== */
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.on-dark { color: #fff; }
section.on-dark { background: var(--ink); }
.on-white { background: var(--white); }

/* Photo background: real photo, darkened and pushed toward the brand colours */
.photo-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.photo-bg img, .photo-bg video {
    position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover;
    transform: translate3d(0, var(--py, 0px), 0);
    will-change: transform;
}
.photo-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(12,13,15,0.88) 0%, rgba(12,13,15,0.55) 45%, rgba(12,13,15,0.92) 100%);
}
.photo-bg--duo img { filter: saturate(1.05) contrast(1.05); }
.photo-bg--duo::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(110deg, rgba(238,27,36,0.32), rgba(12,13,15,0) 55%);
    mix-blend-mode: multiply;
}
.photo-bg--duo::after { z-index: 2; }
.section > .wrap, .photo-bg ~ .wrap { position: relative; z-index: 3; }

/* Slanted edges that make one section cut into the next */
.cut-top { clip-path: polygon(0 var(--edge, 5vw), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--edge, 5vw) * -1); padding-top: calc(clamp(72px, 10vw, 140px) + var(--edge, 5vw)); }
.cut-both { clip-path: polygon(0 var(--edge, 5vw), 100% 0, 100% calc(100% - var(--edge, 5vw)), 0 100%); margin-block: calc(var(--edge, 5vw) * -1); padding-block: calc(clamp(72px, 10vw, 140px) + var(--edge, 5vw)); }
.cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--edge, 5vw)), 0 100%); padding-bottom: calc(clamp(72px, 10vw, 140px) + var(--edge, 5vw)); margin-bottom: calc(var(--edge, 5vw) * -1); }
.cut-top, .cut-both, .cut-bottom { position: relative; z-index: 2; }
.z1 { position: relative; z-index: 1; }
.z2 { position: relative; z-index: 2; }

/* Section head: title on the left, a line of copy and a link on the right */
.head {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px);
}
.head .tag { margin-bottom: 18px; }
.head-side { display: grid; gap: 18px; justify-items: start; padding-bottom: 6px; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* =====================================================================
   VEHICLE CARD (home rails, stock grid, related vehicles)
   ===================================================================== */
.vcard {
    position: relative; display: flex; flex-direction: column;
    background: var(--white); color: var(--ink);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.vcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(12,13,15,0.45); }
.vcard-link { position: absolute; inset: 0; z-index: 3; }
.vcard-media {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 100%, #e2e2de 0%, #f1f1ee 55%, #f7f7f5 100%);
}
.vcard-media img {
    width: 100%; height: 100%; object-fit: contain; padding: 6% 7% 4%;
    mix-blend-mode: multiply;
    transition: transform 0.8s var(--ease);
}
.vcard-media.is-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.vcard:hover .vcard-media img { transform: scale(1.06) translateX(1.5%); }
.vcard-media::after {     /* floor line */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--red); transform: scaleX(0); transform-origin: left;
    transition: transform 0.6s var(--ease);
}
.vcard:hover .vcard-media::after { transform: scaleX(1); }
.vcard-flag {      /* admin badge text: slanted red strip */
    position: absolute; top: 14px; left: -6px; z-index: 2;
    padding: 5px 14px 5px 18px;
    font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: #fff; background: var(--ink);
    clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.vcard-flag.is-red { background: var(--red); }
.vcard-sticker {    /* promo saving: windscreen sticker */
    position: absolute; top: 12px; right: 12px; z-index: 2;
    display: grid; place-items: center; text-align: center;
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--sticker); color: var(--ink);
    font-family: var(--display); font-weight: 800; line-height: 0.95; text-transform: uppercase;
    transform: rotate(-12deg);
    box-shadow: 0 6px 16px -6px rgba(0,0,0,0.35);
    transition: transform 0.5s var(--ease);
}
.vcard:hover .vcard-sticker { transform: rotate(0deg) scale(1.06); }
.vcard-sticker small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; }
.vcard-sticker b { display: block; font-size: 1.3rem; }
.vcard-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.vcard-make {
    font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--steel);
    display: flex; justify-content: space-between; gap: 12px;
}
.vcard-name {
    font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1;
    text-transform: uppercase; margin: 4px 0 14px;
}
.vcard-specs {
    display: flex; flex-wrap: wrap; gap: 0;
    font-size: 0.82rem; color: var(--steel); font-variant-numeric: tabular-nums;
    border-top: 1px solid var(--line); padding-top: 12px;
}
.vcard-specs span + span::before { content: '/'; margin: 0 9px; color: var(--paper-2); }
.vcard-foot {
    margin-top: auto; padding-top: 18px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.vcard-price { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 0.9; font-variant-numeric: tabular-nums; }
.vcard-price s { display: block; font-size: 1rem; font-weight: 600; color: var(--steel); margin-bottom: 4px; }
.vcard-price.is-promo { color: var(--red); }
.vcard-stock { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-align: right; }
.vcard-stock.in_stock { color: var(--go); }
.vcard-stock.request { color: var(--amber); }
.vcard-stock.arriving_soon { color: #2860b3; }
.vcard-go {
    position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; z-index: 2;
    display: grid; place-items: center; background: var(--ink); color: #fff;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
    opacity: 0; transform: translateX(14px); transition: transform 0.45s var(--ease), opacity 0.3s, background 0.3s;
}
.vcard:hover .vcard-go { opacity: 1; transform: none; background: var(--red); }
@media (hover: none) { .vcard-go { display: none; } }
.vcard-go svg { width: 18px; height: 18px; }
.vcard:hover .vcard-stock { opacity: 0; transition: opacity 0.2s; }

/* Horizontal rail of cards with drag + snap */
.rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 3 * 20px) / 4));
    gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding: 12px var(--gutter) 34px; margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .vcard { pointer-events: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 861px) { .rail--fit { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 1200px) { .rail { grid-auto-columns: minmax(270px, calc((100% - 2 * 20px) / 3)); } }
@media (max-width: 860px) { .rail { grid-auto-columns: 74%; gap: 14px; } }
@media (max-width: 520px) { .rail { grid-auto-columns: 84%; } }
.rail-ctrl { display: flex; align-items: center; gap: 18px; }
.rail-bar { position: relative; flex: 1; height: 3px; background: var(--line); min-width: 80px; }
.on-dark .rail-bar { background: var(--line-dark); }
.rail-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--red); transition: left 0.15s linear, width 0.3s; }
.rail-btn {
    width: 52px; height: 52px; display: grid; place-items: center; flex: none;
    border: 2px solid currentColor; transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
}
.rail-btn:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.rail-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .rail-btn { display: none; } }

/* "See all" end card in a rail */
.rail-end {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px; min-height: 100%; overflow: hidden; color: #fff; background: var(--ink);
}
.rail-end img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; transition: transform 0.8s var(--ease), opacity 0.5s; }
.rail-end:hover img { transform: scale(1.06); opacity: 0.6; }
.rail-end > * { position: relative; }
.rail-end b { font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: 0.9; }
.rail-end span { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; line-height: 1; margin: 6px 0 20px; }

/* Skeleton while data renders */
.skeleton { background: linear-gradient(100deg, #ececea 30%, #f7f7f5 50%, #ececea 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; min-height: 380px; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { padding: 48px 0; color: var(--steel); }

/* =====================================================================
   FOOTER: photo of the Rock behind it, everything packed tight
   ===================================================================== */
.footer { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.footer .photo-bg::after {
    background: linear-gradient(180deg, rgba(12,13,15,0.96) 0%, rgba(12,13,15,0.72) 40%, rgba(12,13,15,0.94) 100%);
}
.footer-cta {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
    padding-block: clamp(72px, 9vw, 120px) clamp(40px, 5vw, 60px);
    border-bottom: 1px solid var(--line-dark);
}
.footer-cta h2 { font-size: clamp(2.8rem, 7vw, 6.4rem); font-weight: 800; }
.footer-cta h2 em { font-style: normal; color: var(--red); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.25fr 0.8fr 1.1fr 1.1fr; gap: 40px;
    padding-block: 48px;
}
.footer-grid--top { padding-top: clamp(64px, 8vw, 100px); }
.footer-logo { width: 150px; margin-bottom: 18px; }
.footer-blurb { color: var(--fog); font-size: 0.92rem; max-width: 34ch; }
.footer-brands { display: flex; align-items: center; gap: 16px; margin-top: 20px; opacity: 0.9; }
.footer-brands span { font-family: var(--display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; color: #fff; }
.footer-brands span + span::before { content: ''; display: inline-block; width: 10px; height: 3px; background: var(--red); transform: skewX(var(--slant)); margin-right: 16px; vertical-align: middle; }
.footer h3 {
    font-size: 1.05rem; letter-spacing: 0.14em; color: var(--fog); font-weight: 600; margin-bottom: 16px;
}
.footer-links a, .footer-list li { display: block; padding: 4px 0; font-size: 0.93rem; color: rgba(255,255,255,0.88); }
.footer-links a { transition: color 0.2s, transform 0.3s var(--ease); }
.footer-links a:hover { color: var(--red); transform: translateX(4px); }
.footer-place { font-size: 0.92rem; color: rgba(255,255,255,0.88); }
.footer-place + .footer-place { margin-top: 16px; }
.footer-place b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.footer-place span { color: var(--fog); font-size: 0.85rem; }
.footer-contact a { display: block; padding: 3px 0; font-size: 0.95rem; transition: color 0.2s; }
.footer-contact a:hover { color: var(--red); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 1px solid var(--line-dark); transition: background 0.25s, border-color 0.25s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
    position: relative; z-index: 2;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    padding-block: 20px 28px; border-top: 1px solid var(--line-dark);
    font-size: 0.8rem; color: var(--fog);
}
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--red); }
@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-cta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .footer-cta-actions .btn { flex: 1; }
}

/* Contact rows: icon, two lines of text, arrow */
.ways { display: grid; gap: 10px; }
.way {
    display: grid; grid-template-columns: 28px 1fr 22px; align-items: center; gap: 18px;
    padding: 20px 22px; background: rgba(12,13,15,0.75); border: 1px solid var(--line-dark);
    transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.way > svg:first-child { width: 26px; height: 26px; color: var(--red); transition: color 0.3s; }
.way .arrow { width: 20px; height: 20px; opacity: 0.5; transition: transform 0.35s var(--ease), opacity 0.3s; }
.way small { display: block; font-size: 0.78rem; color: var(--fog); }
.way span { font-weight: 600; }
.way b { font-weight: 600; }
.way:hover { background: var(--red); border-color: var(--red); transform: translateX(6px); }
.way:hover > svg:first-child { color: #fff; }
.way:hover small { color: rgba(255,255,255,0.85); }
.way:hover .arrow { opacity: 1; transform: translateX(4px); }

/* WhatsApp quick button, bottom right on phones */
.wa-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 90;
    width: 56px; height: 56px; display: grid; place-items: center;
    background: #1fa855; color: #fff; border-radius: 50%;
    box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5);
    transform: translateY(120px); transition: transform 0.5s var(--ease);
}
.wa-float.is-shown { transform: none; }
.wa-float svg { width: 28px; height: 28px; }
@media (min-width: 861px) { .wa-float { display: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js [data-reveal], .js [data-lines] .ln > span { opacity: 1; transform: none; }
    .photo-bg img { transform: none !important; }
}
