/* ==========================================================================
   Renard Motorcycles — site styles
   Typography follows the original Renard site: Roboto, light uppercase
   headlines, generous light lead text. Black, white and grey only.
   No borders, rules or ornaments.
   ========================================================================== */

:root {
    --black: #000;
    --white: #fff;
    --light: #f5f5f5;
    --text: #3a3a3a;
    --grey: #757575;
    --grey-light: #b3b3b3;

    --font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --wrap: 1320px;
    --gutter: clamp(20px, 5vw, 48px);
    --section-y: clamp(96px, 14vw, 200px);
    --ease: cubic-bezier(.25, .46, .45, .94);
}

/* Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font: 300 18px/1.7 var(--font);
    -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--white); color: var(--black); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* Typography (from the original site) ----------------------------------- */
h1, h2 {
    font-weight: 200;
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
h1 { font-size: clamp(42px, 5vw, 64px); }
h3 { font-weight: 400; font-size: 18px; line-height: 1.6; }
h2 + p, h2 + .lead, h1 + .lead { margin-top: 1.4rem; }

.lead strong { font-weight: 400; }
.lead { font-weight: 200; font-size: 22px; line-height: 32px; max-width: 38em; }
.lead--wide { max-width: 44em; }
.lead-r { font-weight: 200; font-size: 30px; line-height: 42px; max-width: 30em; }
.signature { font-weight: 200; font-size: 20px; line-height: 32px; }
.quote { font-weight: 200; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; max-width: 28em; }
.line { display: block; }
@media (max-width: 767px) { .br-desktop { display: none; } } /* line break on desktop only */ /* forced line break that, unlike <br> in .lead, also holds on mobile */
.br-mobile { display: none; } @media (max-width: 700px) { .br-mobile { display: inline; } } /* line break on phones only */
.small { font-size: 15px; color: var(--grey); }
.text-right { text-align: right; }
.text-right .lead { margin-left: auto; }

@media (max-width: 767px) {
    h1, h2 { font-size: 34px; }
    .lead { font-size: 18px; line-height: 28px; }
    .lead-r { font-size: 22px; line-height: 32px; }
    .lead br, .lead-r br { display: none; }
    .lead br.br-keep, .lead-r br.br-keep { display: inline; } /* <br class="br-keep">: break that also holds on phones */
}

/* Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--light { background: var(--light); }
.section--compact { padding-block: clamp(64px, 8vw, 120px); }
.section--dark { background: var(--black); color: var(--white); }
.section--hero { padding-top: clamp(190px, 27vh, 300px); } /* text-only page hero, clears the header */
.section--dark .small { color: var(--grey-light); }
.stack > * + * { margin-top: 1.4rem; }
.stack-lg > * + * { margin-top: clamp(64px, 9vw, 120px); }

.split { display: grid; gap: clamp(40px, 6vw, 112px); align-items: center; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--reverse > :first-child { order: 2; }
}
.split img { width: 100%; }

/* Two columns whose top items and body texts line up row by row: a | b over c | d */
.pair { display: grid; gap: 1.4rem clamp(40px, 6vw, 112px); }
.pair .proof__value { margin-bottom: 0; }
@media (min-width: 900px) {
    .pair { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "c d"; }
    .pair__a { grid-area: a; align-self: end; }
    .pair__b { grid-area: b; align-self: end; }
    .pair__c { grid-area: c; }
    .pair__d { grid-area: d; }
}
@media (max-width: 899px) {
    .pair__b { margin-top: 3rem; }
    .pair__b { order: 3; } .pair__c { order: 2; } .pair__d { order: 4; }
}

/* Links & buttons: plain, no outlines ----------------------------------- */
.btn {
    display: inline-block;
    padding: 18px 34px;
    font: 400 14px/1 var(--font); letter-spacing: 2px; text-transform: uppercase;
    background: var(--black); color: var(--white);
    border: 0; cursor: pointer;
    transition: opacity .3s var(--ease);
}
.btn:hover { opacity: .75; }
.section--dark .btn, .moment .btn { background: var(--white); color: var(--black); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; margin-top: 2.6rem; }
@media (max-width: 700px) { .actions--stack-m { flex-direction: column; align-items: flex-start; } } /* phones: one link per line (Media press kit) */
.more { font-weight: 400; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; transition: opacity .3s var(--ease); }
.more:hover { opacity: .6; }
button.more { background: none; border: 0; padding: 0; color: inherit; font-family: inherit; cursor: pointer; }
.more--dim { opacity: .55; }
.more--dim:hover { opacity: 1; }
.more--strong { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Header (behaviour from the original site) ----------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 999;
    color: var(--white);
    transition: transform .3s ease, background-color .3s ease;
}
/* One dark layer behind the nav, twice the bar's height, fading from the top edge
   along a cosine S-curve to fully transparent, so there is no point where the fade
   visibly stops, even over white. Same layer over the hero and when scrolled; it
   fades out with the bar when the bar slides away. Adjust the height, not the stops. */
.site-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200%;
    z-index: -1; pointer-events: none;
    background: rgba(0, 0, 0, .425); /* lighter layer, kept at all scroll positions (client request) */
    -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1.000) 0%, rgba(0,0,0,0.990) 5%, rgba(0,0,0,0.961) 10%,
    rgba(0,0,0,0.914) 15%, rgba(0,0,0,0.852) 20%, rgba(0,0,0,0.776) 25%,
    rgba(0,0,0,0.691) 30%, rgba(0,0,0,0.600) 35%, rgba(0,0,0,0.508) 40%,
    rgba(0,0,0,0.416) 45%, rgba(0,0,0,0.330) 50%, rgba(0,0,0,0.251) 55%,
    rgba(0,0,0,0.183) 60%, rgba(0,0,0,0.125) 65%, rgba(0,0,0,0.080) 70%,
    rgba(0,0,0,0.046) 75%, rgba(0,0,0,0.023) 80%, rgba(0,0,0,0.010) 85%,
    rgba(0,0,0,0.003) 90%, rgba(0,0,0,0.000) 95%, rgba(0,0,0,0.000) 100%);
            mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1.000) 0%, rgba(0,0,0,0.990) 5%, rgba(0,0,0,0.961) 10%,
    rgba(0,0,0,0.914) 15%, rgba(0,0,0,0.852) 20%, rgba(0,0,0,0.776) 25%,
    rgba(0,0,0,0.691) 30%, rgba(0,0,0,0.600) 35%, rgba(0,0,0,0.508) 40%,
    rgba(0,0,0,0.416) 45%, rgba(0,0,0,0.330) 50%, rgba(0,0,0,0.251) 55%,
    rgba(0,0,0,0.183) 60%, rgba(0,0,0,0.125) 65%, rgba(0,0,0,0.080) 70%,
    rgba(0,0,0,0.046) 75%, rgba(0,0,0,0.023) 80%, rgba(0,0,0,0.010) 85%,
    rgba(0,0,0,0.003) 90%, rgba(0,0,0,0.000) 95%, rgba(0,0,0,0.000) 100%);
    transition: opacity .3s ease;
}
.site-header.is-hidden::before { opacity: 0; }

.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--wrap); margin-inline: auto;
    padding: 28px var(--gutter);
}
/* Logo: colour badge (PNG) + RENARD wordmark (SVG), proportioned as the original combined logo */
.logo { --logo-h: 26px; display: inline-flex; align-items: center; gap: calc(var(--logo-h) * .57); }
.logo img { height: var(--logo-h); width: auto; }
.logo .logo__badge { height: calc(var(--logo-h) * 1.1); }
.site-nav ul { display: flex; gap: clamp(24px, 3vw, 48px); }
.site-nav a {
    font-weight: 400; font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
    opacity: .85; transition: opacity .3s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"] { font-weight: 500; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
    .site-header__logo .logo { --logo-h: 18px; }
    .nav-toggle {
        display: grid; gap: 8px; place-content: center;
        width: 44px; height: 44px; margin-right: -10px;
        background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
    }
    .nav-toggle__bar { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
    .nav-open .nav-toggle__bar:first-child { transform: translateY(4.5px) rotate(45deg); }
    .nav-open .nav-toggle__bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
    .site-nav {
        position: fixed; inset: 0; z-index: 1;
        display: flex; align-items: center;
        padding: 96px var(--gutter);
        background: rgb(0 0 0 / .85); /* mobile menu: 85% black, page shows through faintly */
        opacity: 0; visibility: hidden;
        transition: opacity .35s var(--ease), visibility .35s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; }
    .site-nav ul { flex-direction: column; gap: 28px; }
    .site-nav a { font-weight: 200; font-size: 30px; letter-spacing: 1.5px; }
    .nav-open { overflow: hidden; }
    .nav-open .site-header { transform: none; }
}

/* Moments: full-screen image or video sections -------------------------- */
.moment {
    position: relative; isolation: isolate;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding-block: 140px 96px;
    background: var(--black); color: var(--white);
    overflow: hidden;
}
.moment--bottom { align-items: flex-end; }
@media (max-width: 700px) { .moment--m-top { align-items: flex-start; padding-top: clamp(110px, 14vh, 150px); } .moment.moment--m-top::after { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,0) 65%); } } /* phones: text to the top, as on the homepage hero */
.moment--short { min-height: 80vh; min-height: 80svh; }
.moment--ink { color: var(--black); } /* black text over a light photo (Heritage, Contact heroes) */
@media (max-width: 700px) { .moment--ink { color: var(--white); } } /* phones: the -mobile crops are darker, so white text */
.moment--right .wrap { text-align: right; }
.moment--right .lead { margin-left: auto; }
@media (max-width: 700px) { .moment--right .wrap { text-align: left; } }
.moment--gapped { margin-top: 7px; } /* thin white separator above, as between the photo strips */
.moment__media { position: absolute; inset: -1px; z-index: -2; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; } /* 1px overhang (clipped): no hairline seam at fractional heights on phones */
/* Phones: image-only moments (no text) become a 4:3 frame at full width, a middle ground between the
   thin 16:9 slit and a hard square crop. Per section: style="--m-ratio: 1" changes the shape,
   style="--focus: 30% 50%" moves the crop off-centre (applies to every image/video in that section). */
@media (max-width: 700px) {
    .moment:not(:has(.wrap)) { min-height: 0; padding: 0; display: block; aspect-ratio: var(--m-ratio, 4 / 3); }
    .moment:not(:has(.wrap)) .moment__media { object-position: var(--focus, 50% 50%); }
}
/* A second background image that slowly fades in over the first, holds, and fades out again */
.moment__media--crossfade { opacity: 0; animation: crossfade 14s ease-in-out infinite; }
@keyframes crossfade {
    0%, 36%  { opacity: 0; }
    50%, 86% { opacity: 1; }
    100%     { opacity: 0; }
}
/* Three images on a 21 s loop: the first stays underneath; the second fades in over it,
   then the third over the second; the third fades out to reveal the first again, and the
   second is reset to hidden while the third still covers it (no dip between images). */
.moment__media--fade-2 { opacity: 0; animation: fade-2 21s ease-in-out infinite; }
.moment__media--fade-3 { opacity: 0; animation: fade-3 21s ease-in-out infinite; }
@keyframes fade-2 {
    0%, 23.8%    { opacity: 0; }
    33.3%, 90.4% { opacity: 1; }
    90.5%, 100%  { opacity: 0; }
}
@keyframes fade-3 {
    0%, 57.1%    { opacity: 0; }
    66.6%, 90.4% { opacity: 1; }
    100%         { opacity: 0; }
}
/* With JS, multi-image moments are driven by site.js instead (auto-advance + click to advance):
   the incoming image fades in on top of the current one, so there is never a dip. */
.fader { cursor: pointer; }
.fader .moment__media { animation: none; opacity: 0; z-index: -4; transition: opacity 1.35s ease-in-out; }
.fader.moment--quick .moment__media { transition-duration: .9s; } /* Commission options: faster crossfade */
.fader .moment__media.is-on { opacity: 1; }
.fader .moment__media.is-prev { z-index: -3; }
.fader .moment__media.is-top { z-index: -2; }
.moment::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,0) 100%);
}
/* Text sits at the bottom: fade the lower part of the image so it stays legible */
.moment--bottom::after {
    background:
        linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,0) 65%),
        linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 60%);
}

/* Text in the sky, top left, with a fade from that corner */
.moment--top { align-items: flex-start; padding-top: clamp(120px, 14vh, 180px); }
.moment--top-hero { padding-top: clamp(190px, 27vh, 300px); } /* Art Bikes hero: text a little lower than the homepage hero */
@media (max-width: 700px) { .moment--top-hero { padding-top: clamp(110px, 14vh, 150px); } } /* phones: same text height as the other heroes */
.moment--top::after { background: linear-gradient(160deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,0) 60%); }

/* Text bottom right, with a fade from that corner */
.moment--bottom-right { align-items: flex-end; }
.moment--bottom-right .wrap { text-align: right; }
.moment--bottom-right .lead, .moment--bottom-right .signature-img { margin-left: auto; }
.moment--bottom-right::after { background: linear-gradient(340deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,0) 60%); }
@media (max-width: 700px) {
    /* phones: quote + signature move to the top (still right-aligned, as on desktop), over the sky in the -mobile images */
    .moment--bottom-right { align-items: flex-start; padding-top: clamp(110px, 14vh, 160px); }
    .moment--bottom-right::after { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,0) 65%); }
}

/* Homepage hero: text in the sky, top right, with a fade from that corner */
.moment--hero { align-items: flex-start; padding-top: clamp(150px, 20vh, 220px); }
.moment--hero .wrap { text-align: right; }
.moment--hero .lead { margin-left: auto; }
.moment--hero .actions { justify-content: flex-end; }
.moment--hero::after {
    background: linear-gradient(200deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,0) 60%);
}
@media (max-width: 700px) {
    .moment--hero .wrap { text-align: left; }
    .moment--hero .actions { justify-content: flex-start; }
    .moment--hero::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,0) 70%); }
}

/* Key figures: plain numbers -------------------------------------------- */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(3, 1fr); } }
.figure__value { display: block; font-weight: 100; font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.figure__value small { font-size: .4em; font-weight: 300; margin-left: .2em; }
.figure__label { display: block; margin-top: 8px; font-size: 16px; color: var(--grey); }
.moment .figure__label, .section--dark .figure__label { color: rgba(255, 255, 255, .7); }

/* Text blocks in a grid (specs, proofs, steps) -------------------------- */
.blocks { display: grid; gap: 64px clamp(40px, 5vw, 80px); }
@media (min-width: 760px) { .blocks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blocks--3 { grid-template-columns: repeat(3, 1fr); } }
.blocks h3 { margin-bottom: .6rem; }
.blocks p { color: var(--grey); }
.blocks p + p { margin-top: .8em; }
.section--dark .blocks p { color: var(--grey-light); }
.proof__value { font-weight: 100; font-size: clamp(48px, 6vw, 84px); line-height: 1; margin-bottom: .9rem; }
.proof__value small { font-size: .35em; font-weight: 300; }

/* Specification list ---------------------------------------------------- */
.spec { display: grid; grid-template-columns: 1fr; gap: 22px; }
.spec div { display: grid; gap: 4px 32px; }
@media (min-width: 700px) { .spec div { grid-template-columns: 220px 1fr; } }
.spec dt { font-weight: 400; }
.spec dd { margin: 0; color: var(--text); }

/* Images ---------------------------------------------------------------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-block: 7px; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.strip--contained { margin-block: clamp(48px, 5vw, 80px) 0; } /* 3×2 grid within the content width (Heritage) */
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; } .strip img:first-child { grid-column: 1 / -1; aspect-ratio: 1; } }
.full-img { width: 100%; }

/* Gallery (from the original site): square + wide photo pairs, peel transition */
.gallery__track { padding: 0; }
.gallery__track { display: grid; cursor: pointer; }
.gallery__slide {
    grid-area: 1 / 1;
    display: grid; grid-template-columns: 3fr 5fr; gap: 7px;
    visibility: hidden;
}
.gallery__slide.is-active, .gallery__slide.is-entering { visibility: visible; }
.gallery__slide.is-entering { z-index: 1; }
.gallery__frame { overflow: hidden; }
.gallery__frame:first-child { aspect-ratio: 1; }
.gallery__frame:last-child { aspect-ratio: 5 / 3; }
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery__slide.is-entering img { animation: peelIn 1s cubic-bezier(.16, 1, .3, 1) forwards; }
.gallery__slide.is-entering .gallery__frame:first-child img { animation-delay: .15s; clip-path: polygon(calc(200% - var(--clip)) 0, 100% 0, 100% 100%, 200% 100%); }
@media (max-width: 767px) {
    .gallery__slide { grid-template-columns: 1fr; }
}
.gallery__nav { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; }
.gallery__nav button { background: none; border: 0; padding: 6px; cursor: pointer; line-height: 0; }
.gallery__prev { color: var(--grey-light); }
.gallery__next { color: var(--grey); }
.gallery__nav button:active svg { transform: scale(1.1); }
.gallery__next { margin-right: -6px; }

@keyframes peelIn {
    /* Only two stops, so the ease-out runs once across the whole wipe: fast start, slow finish */
    from { transform: scale(1.05); clip-path: polygon(calc(200% - var(--clip)) 0, 100% 0, 100% 100%, 200% 100%); }
    to   { transform: scale(1); clip-path: polygon(calc(0% - var(--clip)) 0, 100% 0, 100% 100%, 0% 100%); }
}

/* Founder & team -------------------------------------------------------- */
.signature-img { width: 147px; margin-top: 2rem; }

/* Press ----------------------------------------------------------------- */
.coverage { display: grid; gap: 40px 56px; }
@media (min-width: 760px) { .coverage { grid-template-columns: repeat(3, 1fr); } }
.coverage strong { display: block; font-weight: 400; }
.coverage a { color: var(--grey); transition: color .3s; }
.coverage a:hover { color: var(--black); }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin-top: 2.2rem; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed--bleed { margin-top: 0; } /* full page width, between sections */
.downloads { display: grid; gap: 7px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .downloads { grid-template-columns: repeat(4, 1fr); } }
.downloads img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .3s var(--ease); }
.downloads a:hover img { opacity: .8; }

/* Contact & form -------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(64px, 8vw, 120px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 7fr 4fr; } }
.contacts { display: grid; gap: 40px; }
.contacts h3 { margin-bottom: .3rem; }
.contacts p { color: var(--text); }

.form { display: grid; gap: 28px; margin-top: 3rem; }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 8px; font-size: 15px; color: var(--grey); }
.field input, .field select, .field textarea {
    width: 100%; padding: 16px 18px;
    font: 300 17px/1.4 var(--font); color: var(--black);
    background: var(--light); border: 0; border-radius: 0;
    appearance: none;
}
.field select {
    background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23757575'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #ececec; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 2rem; font-weight: 500; } /* plain bold text: a grey box looked like an input field */

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--black); color: #d4d4d4; /* lighter than --grey-light: reads over the photo */ padding-block: clamp(56px, 6vw, 88px) 36px; }
.site-footer__logo { display: inline-block; margin-bottom: clamp(28px, 3vw, 40px); }
.site-footer__logo .logo { --logo-h: 26px; } /* same as the navbar */
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h3 { font-weight: 400; font-size: 16px; line-height: 30px; color: var(--white); }
.site-footer p, .site-footer a { font-size: 16px; line-height: 30px; }
.site-footer a { transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--white); }
.site-footer__reg { margin-top: 1rem; }
.social { display: flex; gap: 24px; margin-top: .6rem; }
.site-footer__base { margin-top: clamp(40px, 5vw, 64px); font-size: 14px; color: #a8a8a8; }

/* Fade in on scroll (as on the original site) --------------------------- */
.js .reveal { opacity: 0; transition: opacity .9s ease-out; }
.js .reveal.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; } }

/* Horizontal heritage timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 32px; margin: clamp(40px, 5vw, 64px) 0 0; }
.timeline dt { font-weight: 400; margin-bottom: 8px; }
.timeline dd { margin: 0; }
.timeline__now { grid-column: 1 / -1; } /* "Today" on its own row below the four years */
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; gap: 22px; } }

/* Build slots: the series as 21 numbers, commissioned ones faded back */
.slots { list-style: none; padding: 0; margin: clamp(40px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(21, auto); justify-content: space-between; max-width: 880px; font-size: 15px; font-weight: 300; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.slots li.is-sold { opacity: .25; }
.slots__note { margin-top: 18px; font-size: 15px; font-weight: 300; }
@media (max-width: 767px) { .slots { grid-template-columns: repeat(7, auto); row-gap: 14px; max-width: 320px; } }

/* Closing block: "Commission your R100" and the footer share one background image to the page bottom */
.closing { position: relative; isolation: isolate; overflow: hidden; margin-top: 7px; background: var(--black); color: var(--white); }
.closing__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.closing::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: none; /* no overlay: the footer images (desktop and -mobile) carry their own darkening */
}
.closing__cta { min-height: 80vh; min-height: 80svh; display: flex; align-items: flex-start; padding-block: 200px clamp(72px, 9vw, 140px); }
/* Phones: the tall -mobile image (1152x2400) is shown at full width, not stretched to the whole CTA + footer,
   starting 220px down so the bike sits between the CTA button and the footer text. The CTA block is tall
   enough that the footer starts below the bike; the rest is the black background the image fades into. */
@media (max-width: 700px) {
    /* image at 150% width (bike ~90% of the screen), sides clipped; bike spans ~87vw-172vw below the image top */
    .closing__cta { padding-top: 112px; min-height: calc(120px + 164vw); }
    .closing__cta .actions { margin-top: 1.6rem; }
    .closing__media { top: 120px; bottom: auto; left: -25%; width: 150%; max-width: none; height: auto; }
}
.closing .site-footer { background: transparent; }

/* Captions that change with a fading background: all stacked in one grid cell, the current one shown */
.captions { display: grid; }
.captions > div { grid-area: 1 / 1; transition: opacity .9s ease-in-out; }
.captions > div + div { opacity: 0; }
.js .captions > div { opacity: 0; }
.js .captions > div.is-on { opacity: 1; }

/* Specification list in two columns under its heading */
.spec--cols { margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 700px) { .spec--cols div { grid-template-columns: 180px 1fr; } }
.footnote { margin-top: 1.2rem; font-size: 14px; line-height: 22px; font-weight: 300; opacity: .75; }
/* Desktop: every caption heading reserves two lines and sits on the bottom one, so the body text
   of all slides starts on the same line as under the two-line "Commitment to every detail" */
@media (min-width: 768px) {
    .captions h2 { min-height: 2.2em; display: flex; flex-direction: column; justify-content: flex-end; }
}

/* Swapping detail strip (Commission): a new image peels in over a tile, as in the homepage gallery */
.strip__tile { position: relative; overflow: hidden; }
[data-strip] .strip__tile { cursor: pointer; } /* only tiles that swap on click */
.strip__tile img { display: block; }
.strip__tile img + img { position: absolute; inset: 0; height: 100%; --clip: 100%; animation: peelIn 1s cubic-bezier(.16, 1, .3, 1) forwards; }
@media (max-width: 700px) { .strip .strip__tile:first-child { grid-column: 1 / -1; } .strip .strip__tile:first-child img { aspect-ratio: 1; } } /* any tiled strip: big square first, two below */
.quote-text { font-style: italic; }

/* Running text (Art Bikes story): readable measure, spaced paragraphs */
.prose { max-width: 46em; margin-top: 2.2rem; }
p, li, dd { text-wrap: pretty; } /* browsers that support it avoid a lone word on the last line */
.prose p + p { margin-top: 1.2em; }
.prose-end { margin-top: 2.2rem; }
.moment--plain::after { content: none; } /* image-only sections: no text, no darkening */
.subsection { margin-top: clamp(96px, 10vw, 160px); } /* second text block inside one section */
.shorts { display: grid; gap: 7px; grid-template-columns: repeat(3, 1fr); }
h2 + .shorts, h2 + .coverage { margin-top: 2.2rem; }
@media (max-width: 700px) { .shorts { grid-template-columns: 1fr; max-width: 420px; } }
.shorts__item { position: relative; aspect-ratio: 9 / 16; background: #000; }
.shorts__item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Image + text pair (Art Bikes quote): same 3:5 columns as the homepage gallery, no motion */
.duo { display: grid; grid-template-columns: 3fr 5fr; gap: 7px; padding: 0; margin-top: 7px; }
.duo__media { aspect-ratio: 1; overflow: hidden; }
.duo__media img { width: 100%; height: 100%; object-fit: cover; }
.duo__text { background: var(--black); color: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px clamp(32px, 7vw, 120px); }
.duo__text .signature-img { width: 147px; height: auto; flex: none; }
.signature-img--dark { filter: invert(1); }
@media (max-width: 767px) { .duo { grid-template-columns: 1fr; } .duo__text { padding: 56px var(--gutter); } }
.lead + .lead { margin-top: 1.1em; } /* consecutive lead paragraphs: a clear pause between them */
/* Quote with a square portrait in front, signature under the text */
.byline { display: flex; align-items: flex-start; gap: clamp(24px, 3vw, 40px); }
.byline__avatar { flex: none; width: clamp(120px, 13vw, 190px); aspect-ratio: 1; height: auto; object-fit: cover; }
@media (max-width: 600px) { .byline { flex-direction: column; } }
.section--follow { padding-top: clamp(64px, 7vw, 112px); } /* continues the section above: shorter gap */
.section--lead-in { padding-bottom: 0; } /* next section (--follow) supplies the gap */
.closing--flush { margin-top: 0; }

/* Alternative image sets per screen size (Commission options fader) */
.only-mobile { display: none; }
@media (max-width: 700px) { .only-mobile { display: block; } .only-desktop { display: none; } }

/* Phones: big image + text sections further down the page (not the page heroes, which carry aria-labelledby)
   put their text, and signature, near the top of the image, clear of the bike. */
@media (max-width: 700px) {
    .moment:has(.wrap):not([aria-labelledby]) { align-items: flex-start; padding-top: 72px; }
}

/* iPhone edge to edge (with viewport-fit=cover in head.php): page heroes fill the large viewport, so the
   photo also runs behind Safari's status bar and floating address bar; the header keeps clear of the notch. */
.moment[aria-labelledby] { min-height: calc(100lvh + env(safe-area-inset-bottom)); }
/* Image + text sections further down: the full screen as it is while scrolling (Safari's bars collapsed) */
@media (max-width: 700px) { .moment:has(.wrap):not([aria-labelledby]) { min-height: 100lvh; } }
/* Safari tints its top bar from the page background: dark page edge instead of light grey (body stays white) */
html { background: var(--black); }
.site-header { padding-top: env(safe-area-inset-top); }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
@media (max-width: 700px) { .moment--hero { padding-top: clamp(110px, 14vh, 150px); } } /* phones: hero text higher, more image below */
@media (max-width: 700px) { .strip--six .strip__tile:last-child { grid-column: 1 / -1; } .strip--six .strip__tile:last-child img { aspect-ratio: 1; } } /* Heritage 6-grid: big square first and last, 2x2 between */
/* Phones: per-section crop position for any big image, e.g. style="--focus: 70% 50%" shows more of the right side */
@media (max-width: 700px) { .moment .moment__media { object-position: var(--focus, 50% 50%); } }
@media (max-width: 700px) { .moment--bottom-right .signature-img { margin-top: 2rem; width: 110px; } } /* phones: Andy signature back at the normal gap, a bit smaller */
/* Phones, Heritage (closing image without CTA text): crop away the empty black above the bike,
   so the image starts just above the bike and the footer follows right after it. */
@media (max-width: 700px) {
    .closing--image .closing__cta { padding: 0; min-height: calc(48px + 93vw); }
    .closing--image .closing__media { top: calc(48px - 71vw); } /* bike top sits ~71vw below the image top (measured) */
}
/* Phones, Contact (short closing text, no headline or button): bike starts right under the text */
@media (max-width: 700px) {
    .closing--short .closing__cta { min-height: calc(280px + 93vw); }
    .closing--short .closing__media { top: calc(280px - 71vw); }
}

/* Press kit lightbox (site.js): image large on black, prev/next arrows, no frames */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    background: rgb(0 0 0 / .92); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; } /* fills the box, the photo is fitted inside (Safari shrank the old max-size version) */
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); padding: 16px; background: none; border: 0;
    color: var(--white); font: 300 48px/1 var(--font); opacity: .7; cursor: pointer; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
@media (max-width: 700px) { .lightbox__nav { display: none; } } /* phones: swipe instead */
body.lightbox-open { overflow: hidden; }
.strip--attached { margin-top: 7px; } /* directly under a video, same 7px gap as between the tiles (Media, Top Marques) */

.site-footer__sep { display: inline-block; width: 2em; }
.site-footer__base a { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-note { margin-top: 1.2rem; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.not-found { min-height: 70vh; min-height: 70svh; display: flex; align-items: center; } /* 404 */
