/* FORGE Motor Works. Direction: racing magazine. Black ground, one racing red, giant italic display type.
   One loud moment (the exploded engine scene on the home page); everything around it stays disciplined. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-normal-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --black: #000;
  --surface: #1a1a1a;
  --red: #d3121a;
  --red-deep: #a50e14;
  --paper: #f4f4f0;
  --steel: #a3a39e;
  --line: rgba(244, 244, 240, .16);
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --header: 72px;
  --measure: 62ch;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--black); color: var(--paper); font: 400 1.0625rem/1.65 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; box-shadow: 0 0 0 6px var(--red); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--gutter); top: -100px; z-index: 100; padding: .75rem 1rem; background: var(--paper); color: var(--black); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display { font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .86; letter-spacing: -.015em; font-size: clamp(2.8rem, 8.4vw, 9.5rem); overflow-wrap: break-word; }
.display .line { display: block; }
.lead { max-width: 44ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--paper); }
.section-title { font-style: italic; font-weight: 850; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: .95; margin-bottom: 1.6rem; }
.num { font-style: italic; font-weight: 900; font-stretch: 112%; font-variant-numeric: tabular-nums; }

/* ---------- buttons & links ---------- */
.button { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.9rem; color: #f4f4f0; font-weight: 800; font-stretch: 112%; font-style: italic; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; isolation: isolate; border: 0; background: none; cursor: pointer; }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: skewX(-14deg); transition: background .2s, transform .25s var(--ease); }
.button:hover::before { background: var(--red-deep); transform: skewX(-14deg) scaleX(1.04); }
.button-invert { color: var(--red); }
.button-invert::before { background: var(--paper); }
.button-invert:hover::before { background: #fff; }
.button[disabled] { cursor: progress; opacity: .7; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.text-link:hover { color: var(--red); }

/* ---------- header & menu ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); transition: background .3s, transform .35s var(--ease); }
.site-header.is-solid { background: rgba(0, 0, 0, .86); backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; }
.brand-name { font-style: italic; font-weight: 900; font-stretch: 125%; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1; }
.brand-sub { font-size: .8rem; font-weight: 600; color: var(--steel); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-button, .menu-button { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding: 0 .9rem; background: transparent; border: 1px solid var(--line); cursor: pointer; font-weight: 700; }
.lang-button:hover, .menu-button:hover { border-color: var(--paper); }
.menu-icon { width: 22px; height: 10px; border-block: 2px solid currentColor; transform: skewX(-14deg); }
.lang-panel { margin: 0; inset: var(--header) var(--gutter) auto auto; min-width: 220px; padding: 1rem 1.2rem; background: var(--surface); color: var(--paper); border: 1px solid var(--line); }
.lang-title { color: var(--steel); font-size: .85rem; margin-bottom: .5rem; }
.lang-panel a { display: block; padding: .4rem 0; text-decoration: none; font-weight: 700; }
.lang-panel a[aria-current] { color: var(--red); }

.site-menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #efeee9; color: #121212; }
.site-menu::backdrop { background: var(--black); }
.site-menu-inner { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--header) + 2vh) var(--gutter) var(--gutter); }
.menu-close { position: absolute; top: 14px; right: var(--gutter); min-height: 44px; padding: 0 1rem; background: transparent; color: #121212; border: 2px solid #121212; font-weight: 800; cursor: pointer; }
.menu-list { display: grid; gap: .1em; margin-top: auto; }
.menu-list a { display: inline-block; font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.2rem, 6.6vw, 6.4rem); line-height: .95; text-decoration: none; transition: transform .25s var(--ease), color .2s; }
.menu-list a:hover, .menu-list a:focus-visible { color: var(--red); transform: translateX(.18em); }
.menu-foot { margin-top: 3rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .site-menu[open] .menu-list li { animation: menu-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@keyframes menu-in { from { opacity: 0; transform: translateX(-6%) skewX(-8deg); } }

/* ---------- home: hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: start; padding: calc(var(--header) + 9vh) var(--gutter) 8vh; overflow: clip; }
.hero-media { position: absolute; inset: 0; display: grid; place-items: end end; padding-bottom: 5vh; pointer-events: none; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 45%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 22%); }
.hero-bike { width: min(60vw, 1150px); margin-right: -2vw; transform-origin: 60% 60%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; display: grid; gap: 1.6rem; justify-items: start; }
.hero-copy .lead { margin-top: 1rem; }
.hero-title { font-size: clamp(3.2rem, 9.4vw, 11rem); }
.hero-title .line:nth-child(2) { padding-left: .9em; }
.motion-toggle { position: absolute; right: var(--gutter); bottom: 3vh; min-height: 40px; padding: 0 .9rem; background: transparent; border: 1px solid var(--line); color: var(--steel); font-size: .85rem; cursor: pointer; }
html:not(.js) .motion-toggle { display: none; }

/* ---------- home: exploded engine (the one loud scene) ---------- */
.exploded { position: relative; background: var(--black); overflow: clip; }
.exploded-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); align-items: center; gap: 3vw; padding: 12vh var(--gutter) 10vh; }
.exploded-copy { display: grid; gap: 1.2rem; align-self: center; }
.exploded-copy .display { font-size: clamp(2.3rem, 4.8vw, 5.6rem); }
.exploded-stage { position: relative; width: 78%; justify-self: center; aspect-ratio: var(--ratio); }
.exploded-stage > img, .ex-part { position: absolute; inset: 0; width: 100%; height: 100%; }
.ex-ghost { opacity: .5; }
.ex-part img { width: 100%; height: 100%; }
/* Without motion (no JavaScript or reduced motion) the drawing is shown taken apart, labels visible. */
.ex-part { transform: translate(calc(var(--dx) * 1%), calc(var(--dy) * 1%)); }
.ex-label { position: absolute; left: calc(var(--ax) * 100%); top: calc(var(--ay) * 100%); transform: translate(-50%, -50%); padding: .3rem .65rem; background: var(--red); color: var(--paper); font-size: clamp(.7rem, .95vw, .95rem); font-weight: 800; font-style: italic; white-space: nowrap; }
html.js-motion .ex-part { transform: none; }
html.js-motion .ex-label { opacity: 0; }

/* ---------- home: range (full red page) ---------- */
.range-scene { background: var(--red); color: var(--paper); }
.range-pin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr; gap: 2vh 3vw; padding: calc(var(--header) + 3vh) var(--gutter) 6vh; overflow: hidden; }
.range-title { grid-column: 1 / -1; font-style: italic; font-weight: 850; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.3rem, 2vw, 2rem); }
.range-names { display: grid; align-content: center; gap: .12em; }
.range-names a { display: grid; text-decoration: none; }
.range-name { font-style: italic; font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.6rem, 3.5vw, 4.4rem); line-height: .95; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 244, 240, .75); transition: color .3s, transform .35s var(--ease); }
.range-tag { max-height: 0; overflow: hidden; font-weight: 600; transition: max-height .35s var(--ease); }
.range-names a[aria-current] .range-name, .range-names a:hover .range-name, .range-names a:focus-visible .range-name { color: var(--paper); -webkit-text-stroke-color: var(--paper); transform: translateX(.12em); }
.range-names a[aria-current] .range-tag { max-height: 2em; }
.range-bikes { position: relative; align-self: center; aspect-ratio: 3 / 2; }
.range-bike { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateX(8%) skewX(-6deg); transition: opacity .45s, transform .6s var(--ease); }
.range-bike.is-active { opacity: 1; transform: none; }
.range-bike img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }

/* ---------- home: performance ---------- */
.performance { padding: 16vh var(--gutter); display: grid; gap: 2rem; }
.performance .display { font-size: clamp(2.3rem, 5vw, 5.8rem); max-width: 12ch; }
.perf-model a { font-weight: 700; text-decoration-color: var(--red); text-underline-offset: 6px; }
.perf-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3vw; margin-top: 4vh; }
.perf-figure { display: grid; gap: .4rem; }
.perf-figure dt { order: 2; color: var(--steel); font-weight: 600; }
.perf-figure dd { order: 1; margin: 0; display: flex; align-items: baseline; gap: .35rem; }
.perf-num { font-style: italic; font-weight: 900; font-stretch: 125%; font-variant-numeric: tabular-nums; font-size: clamp(4rem, 11vw, 12rem); line-height: .85; }
.perf-unit { font-weight: 800; font-style: italic; color: var(--red); font-size: clamp(1.2rem, 2vw, 2rem); }
.perf-bar { order: 3; height: 6px; background: var(--red); transform: skewX(-20deg); transform-origin: left; }
html.js-motion .perf-bar { transform: skewX(-20deg) scaleX(0); }

/* ---------- home: factory ---------- */
.factory { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; padding: 14vh var(--gutter); gap: 0 2vw; overflow: hidden; }
.factory-back { grid-column: 1 / span 8; grid-row: 1; }
.factory-front { grid-column: 7 / span 4; grid-row: 1; align-self: end; margin-bottom: -6vh; border: 6px solid var(--black); }
.factory-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.factory-copy { grid-column: 9 / span 4; grid-row: 1; align-self: start; display: grid; gap: 1.3rem; justify-items: start; position: relative; }
.factory-copy .display { font-size: clamp(2.2rem, 4.2vw, 5rem); }

/* ---------- home: markets ---------- */
.markets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: 4vw; padding: 12vh var(--gutter); }
.markets-copy { display: grid; gap: 1.3rem; }
.markets-copy .display { font-size: clamp(2.2rem, 4.2vw, 5rem); }
.markets-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.markets-list li { padding: .3rem .8rem; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.markets-map { position: relative; }
.markets-map img { width: 100%; filter: grayscale(1) invert(.94) contrast(1.15); opacity: .55; }
.map-pin { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 6px rgba(211, 18, 26, .25); }
.map-pin-label { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .85rem; font-weight: 700; }

/* ---------- red call-to-action band ---------- */
.cta-band { display: grid; gap: 1.6rem; justify-items: start; padding: 14vh var(--gutter); background: var(--red); clip-path: polygon(0 6vh, 100% 0, 100% 100%, 0 100%); }
.cta-band .display { font-size: clamp(2.4rem, 6vw, 7rem); max-width: 14ch; }

/* ---------- inner pages ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3vw; align-items: end; padding: calc(var(--header) + 10vh) var(--gutter) 8vh; }
.page-head.has-image { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.page-head-copy { display: grid; gap: 1.5rem; }
.page-head .display { font-size: clamp(2.6rem, 7vw, 8rem); }
.page-head-media img { width: 100%; max-height: 62vh; object-fit: contain; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--steel); font-size: .9rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.page-body { display: grid; gap: 10vh; padding: 4vh var(--gutter) 14vh; }
.block-text { max-width: var(--measure); display: grid; gap: 1rem; }
.block-figures dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3vw; border-top: 2px solid var(--red); padding-top: 2rem; }
.block-figures div { display: flex; flex-direction: column-reverse; gap: .3rem; }
.block-figures .num { margin: 0; font-size: clamp(3rem, 7vw, 7rem); line-height: .9; }
.block-figures dt { color: var(--steel); font-weight: 600; }
.block-image img { width: 100%; max-height: 80vh; object-fit: cover; }
.block-image figcaption { margin-top: .8rem; color: var(--steel); }
.block-list ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.4rem 3vw; }
.block-list li { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.block-list h3 { font-style: italic; font-weight: 850; font-stretch: 115%; font-size: 1.4rem; margin-bottom: .5rem; }
.block-list p { color: var(--steel); }
.block-faq { max-width: 900px; }
.block-faq details { border-top: 1px solid var(--line); }
.block-faq details:last-child { border-bottom: 1px solid var(--line); }
.block-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.15rem; }
.block-faq summary::after { content: "+"; color: var(--red); font-weight: 900; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.block-faq details[open] summary::after { transform: rotate(45deg); }
.block-faq details p { padding: 0 0 1.4rem; color: var(--steel); max-width: var(--measure); }
.block-files ul { display: grid; gap: .5rem; }
.block-files a { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.block-files .empty { color: var(--steel); }

/* ---------- range list ---------- */
.range-list { padding: 0 var(--gutter) 14vh; display: grid; gap: 2rem; }
.family-filter ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.family-filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.family-filter a[aria-current] { background: var(--paper); color: var(--black); border-color: var(--paper); }
.count { color: var(--steel); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 4rem 3vw; }
.model-card { display: grid; gap: .5rem; align-content: start; }
.model-card-link { display: grid; gap: .8rem; text-decoration: none; }
.model-card-media { position: relative; background: radial-gradient(ellipse at 50% 70%, #262626 0%, var(--black) 70%); aspect-ratio: 3 / 2; overflow: hidden; }
.model-card-media img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; transition: transform .5s var(--ease); }
.model-card-link:hover img { transform: translateX(3%) scale(1.03); }
.model-card-name { font-style: italic; font-weight: 900; font-stretch: 122%; text-transform: uppercase; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: .95; min-height: 1.9em; display: flex; align-items: flex-end; }
.model-card-link:hover .model-card-name { color: var(--red); }
.model-card-style { color: var(--red); font-weight: 700; }
.model-card-tagline { color: var(--steel); }
.figures-mini { display: flex; gap: 1.6rem; margin-top: .4rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.figures-mini dt { font-size: .8rem; color: var(--steel); }
.figures-mini dd { margin: 0; font-size: 1.25rem; }
.figures-mini .unit { font-size: .85rem; color: var(--steel); }

/* ---------- model page ---------- */
.model-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); grid-template-areas: "crumbs crumbs" "name name" "style stage" "lead stage" "colours stage" "figures figures"; gap: 1rem 3vw; padding: calc(var(--header) + 6vh) var(--gutter) 6vh; align-items: start; }
.model-hero .crumbs { grid-area: crumbs; }
.model-name { grid-area: name; font-size: clamp(2.6rem, 8.2vw, 9.6rem); overflow-wrap: normal; }
.model-style { grid-area: style; color: var(--red); font-weight: 800; font-style: italic; text-transform: uppercase; }
.model-hero .lead { grid-area: lead; }
.model-stage { grid-area: stage; align-self: center; }
.colour-view[hidden] { display: none; }
.colours, .colours-single { grid-area: colours; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.colours legend { width: 100%; margin-bottom: .6rem; font-weight: 700; }
.swatch { position: relative; width: 46px; height: 46px; cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch::before { content: ""; position: absolute; inset: 6px; background: var(--swatch); transform: skewX(-14deg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.swatch:has(input:checked)::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--paper); transform: skewX(-14deg); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--paper); outline-offset: 2px; }
.key-figures { grid-area: figures; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3vw; border-top: 2px solid var(--red); padding-top: 1.5rem; margin-top: 3vh; }
.key-figures dt { color: var(--steel); font-weight: 600; }
.key-figures dd { margin: 0; }
.key-figures .num { font-size: clamp(2.6rem, 6vw, 6rem); line-height: .9; }
.key-figures .unit { color: var(--red); font-weight: 800; font-style: italic; font-size: 1.3rem; }
.model-story { padding: 6vh var(--gutter); max-width: calc(var(--measure) + 2 * var(--gutter)); display: grid; gap: 1.2rem; }
.story-lead { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.4; font-weight: 600; }
.model-gallery, .model-films, .model-specs, .model-related { padding: 8vh var(--gutter); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.film video { width: 100%; background: var(--surface); }
.film figcaption { margin-top: .6rem; color: var(--steel); }
.spec-table { width: 100%; max-width: 980px; border-collapse: collapse; margin-bottom: 3rem; }
.spec-table caption { text-align: left; font-style: italic; font-weight: 850; font-stretch: 115%; text-transform: uppercase; color: var(--red); font-size: 1.15rem; padding-bottom: .8rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 500; color: var(--steel); }
.spec-table td { font-weight: 600; }
.quote-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 2rem; padding: .9rem var(--gutter); background: rgba(0, 0, 0, .9); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.quote-bar-name { margin-right: auto; font-style: italic; font-weight: 900; font-stretch: 120%; text-transform: uppercase; }
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .96); color: var(--paper); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; gap: .8rem; width: min(92vw, 1600px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { color: var(--steel); }
.lightbox-prev, .lightbox-next, .lightbox-close { position: absolute; min-width: 48px; min-height: 48px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-size: 1.6rem; font-weight: 700; }
.lightbox-prev { left: var(--gutter); top: 50%; }
.lightbox-next { right: var(--gutter); top: 50%; }
.lightbox-close { right: var(--gutter); top: 20px; font-size: 1rem; padding: 0 1rem; }

/* ---------- compare ---------- */
.compare { padding: 0 var(--gutter) 14vh; display: grid; gap: 2rem; }
.compare-pick { display: flex; flex-wrap: wrap; gap: .6rem; border: 0; padding: 0; margin: 0; }
.compare-pick legend { margin-bottom: 1rem; font-weight: 700; }
.pick { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); cursor: pointer; font-weight: 700; }
.pick:has(input:checked) { background: var(--red); border-color: var(--red); }
.pick:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pick input { accent-color: var(--paper); }
.compare-empty { color: var(--steel); }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare-table th, .compare-table td { text-align: left; padding: .9rem 1rem .9rem 0; border-top: 1px solid var(--line); vertical-align: bottom; }
.compare-table thead th { border-top: 0; }
.compare-table thead img { width: 100%; max-width: 280px; }
.compare-table thead a { display: grid; gap: .6rem; text-decoration: none; font-style: italic; font-weight: 900; font-stretch: 120%; text-transform: uppercase; font-size: 1.4rem; }
.compare-table tbody th { color: var(--steel); font-weight: 500; }
.compare-table tbody td { font-weight: 700; }

/* ---------- enquiry ---------- */
.enquiry { padding: 0 var(--gutter) 14vh; }
.enquiry-form { max-width: 980px; display: grid; gap: 2rem; }
.roles { display: flex; flex-wrap: wrap; gap: .6rem; border: 0; padding: 0; margin: 0; }
.roles legend { margin-bottom: 1rem; font-weight: 700; }
.role { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.2rem; border: 1px solid var(--line); cursor: pointer; font-weight: 700; }
.role input { position: absolute; opacity: 0; }
.role:has(input:checked) { background: var(--paper); color: var(--black); }
.role:has(input:focus-visible) { outline: 3px solid var(--paper); outline-offset: 3px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; }
.field { display: grid; gap: .45rem; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.field abbr { color: var(--red); text-decoration: none; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; background: var(--surface); border: 1px solid var(--line); border-bottom: 2px solid var(--steel); border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--red); outline: none; box-shadow: 0 2px 0 var(--red); }
.field [aria-invalid="true"] { border-bottom-color: var(--red); }
.field-error { color: #ff6b6b; font-size: .9rem; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 700; }
.form-status.is-ok { color: var(--paper); }
.form-status.is-error { color: #ff6b6b; }

/* ---------- news ---------- */
.news-list { padding: 0 var(--gutter) 14vh; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 4rem 3vw; }
.news-card { display: grid; gap: .7rem; align-content: start; }
.news-card a { display: grid; gap: .9rem; text-decoration: none; }
.news-card-media { background: var(--surface); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 5%; }
.news-card-title { font-style: italic; font-weight: 850; font-stretch: 115%; font-size: 1.6rem; line-height: 1.05; }
.news-card a:hover .news-card-title { color: var(--red); }
.news-date { color: var(--steel); font-size: .9rem; }
.news-card p:last-child { color: var(--steel); }
.article-body { max-width: calc(var(--measure) + 2 * var(--gutter)); gap: 1.2rem; }

/* ---------- 404 & footer ---------- */
.not-found { padding: calc(var(--header) + 12vh) var(--gutter) 14vh; display: grid; gap: 2rem; }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4vw; padding: 8vh var(--gutter) 6vh; border-top: 1px solid var(--line); }
.footer-brand { font-weight: 600; color: var(--steel); }
.footer-brand .brand-name { color: var(--paper); margin-right: .4rem; }
.footer-nav ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem 2rem; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--red); }
.footer-note { grid-column: 1 / -1; color: var(--steel); font-size: .9rem; }

/* ---------- showroom (B2B: what the dealer's floor looks like) ---------- */
.showroom { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; }
.showroom-media { position: absolute; inset: 0; }
.showroom-media img { width: 100%; height: 100%; object-fit: cover; }
.showroom-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000 4%, rgba(0,0,0,.55) 34%, rgba(0,0,0,0) 62%); }
.showroom-copy { position: relative; display: grid; gap: 1.3rem; justify-items: start; padding: 0 var(--gutter) 12vh; }
.showroom-copy .display { font-size: clamp(2.6rem, 7vw, 8rem); max-width: 12ch; }

/* ---------- journey: built, crated, loaded ---------- */
.journey { padding: 16vh var(--gutter) 10vh; display: grid; gap: 7vh; }
.journey-title { font-size: clamp(2.4rem, 6.4vw, 7.4rem); max-width: 13ch; }
.journey-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3vw; counter-reset: none; }
.journey-step { position: relative; display: grid; align-content: start; gap: .9rem; }
.journey-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.journey-no { position: absolute; top: -.62em; right: .1em; font-style: italic; font-weight: 900; font-stretch: 125%; font-size: clamp(4rem, 9vw, 10rem); line-height: 1; color: var(--red); pointer-events: none; }
.journey-step-title { font-style: italic; font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.8rem); line-height: 1; }
.journey-step p:last-child { max-width: 36ch; color: var(--paper); }
.journey-step:nth-child(2) { margin-top: 10vh; }
.journey-step:nth-child(3) { margin-top: 20vh; }

/* ---------- voyage: one wide sea, the ship crosses it (static version first) ---------- */
.voyage { position: relative; background: #000; }
.voyage-stage { position: relative; height: 100svh; overflow: hidden; }
.voyage-track { position: absolute; inset: 0; }
.voyage-sea { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.voyage-ship { position: absolute; left: 50%; bottom: 14%; height: 54svh; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); }
.voyage-line { position: absolute; z-index: 2; font-size: clamp(2.6rem, 7.2vw, 8.2rem); max-width: 11ch; word-break: keep-all; overflow-wrap: normal; hyphens: none; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.voyage-line-1 { right: var(--gutter); top: calc(var(--header) + 6vh); text-align: right; }
/* 曉維 11-12: the two lines answer each other on the diagonal: the first top-right, the second bottom-left, just above the note */
.voyage-line-2 { left: var(--gutter); bottom: calc(4vh + 5.2rem); text-align: left; }
.voyage-note { position: absolute; z-index: 2; left: var(--gutter); bottom: 4vh; max-width: 46ch; font-size: .95rem; color: var(--paper); opacity: .85; }
/* with motion: the sea becomes a two-screen spread that pans while the ship sails across it */
html.js-motion .voyage { height: 260svh; }
html.js-motion .voyage-stage { position: sticky; top: 0; }
html.js-motion .voyage-track { right: auto; width: 200vw; }
html.js-motion .voyage-ship { left: 0; transform: none; }

/* ---------- home: mixed container (曉維 11-12) ----------
   One open container holding several different models; a red stamp names it. The copy sits in the darker right third. */
.mixed { position: relative; min-height: 88svh; display: grid; align-items: center; justify-items: end; overflow: hidden; background: #000; }
.mixed-media { position: absolute; inset: 0; }
.mixed-media img { width: 100%; height: 100%; object-fit: cover; }
.mixed-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 32%, rgba(0,0,0,0) 56%); }
.mixed-copy { position: relative; display: grid; gap: 1.4rem; justify-items: start; width: min(30rem, 29vw); margin-right: var(--gutter); }
.mixed-copy .display { font-size: clamp(2.2rem, 3.7vw, 4.6rem); }
.mixed-badge { position: relative; isolation: isolate; padding: .2em .6em; font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 2.6rem); line-height: 1; color: #f4f4f0; white-space: nowrap; }
.mixed-badge::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: skewX(-14deg); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --header: 64px; }
  .hero-media { place-items: start center; padding-top: calc(var(--header) + 4vh); }
  .hero-bike { width: 108vw; margin: 0 -12vw 0 0; }
  .hero { align-items: end; padding-bottom: 6vh; }
  .hero-media::after { background: linear-gradient(0deg, #000 30%, rgba(0,0,0,.4) 60%, rgba(0,0,0,0) 80%); }
  .brand-sub { display: none; }
  .menu-label { display: none; }
  .exploded-pin { grid-template-columns: 1fr; gap: 5vh; padding-top: 10vh; }
  .exploded-copy { padding-top: 0; }
  .range-pin { grid-template-columns: 1fr; grid-template-rows: auto; }
  .range-bikes { order: -1; grid-row: 2; }
  .perf-figures { grid-template-columns: 1fr; gap: 3.5rem; }
  .factory { grid-template-columns: 1fr; gap: 3rem; }
  .factory-back, .factory-front, .factory-copy { grid-column: 1; grid-row: auto; margin: 0; }
  .factory-front { width: 70%; justify-self: end; margin-top: -18vw; }
  .markets { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr; gap: 9vh; }
  .journey-step:nth-child(2), .journey-step:nth-child(3) { margin-top: 0; }
  .journey-media img { aspect-ratio: 4 / 3; }
  .showroom-copy { padding-bottom: 8vh; }
  /* narrow screens: a portrait crop would show one bike and lose the point, so the whole container stays in view above the copy */
  .mixed { display: block; min-height: 0; }
  .mixed-media { position: relative; }
  .mixed-media img { height: auto; aspect-ratio: 16 / 9; }
  .mixed-media::after { content: none; }
  .mixed-copy { width: auto; margin: 0; padding: 2.4rem var(--gutter) 10vh; }
  .voyage-ship { height: 34svh; bottom: 20%; }
  .voyage-line { font-size: clamp(2rem, 10vw, 3.6rem); }
  .page-head.has-image { grid-template-columns: 1fr; }
  .model-hero { grid-template-columns: 1fr; grid-template-areas: "crumbs" "name" "style" "stage" "lead" "colours" "figures"; }
  .key-figures { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .quote-bar { gap: 1rem; }
  .quote-bar-name, .quote-bar .text-link { display: none; }
  .quote-bar .button { width: 100%; justify-content: center; }
  .field-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* narrow screens: the same family at a narrower width keeps the big italic voice without breaking words */
  .display, .model-card-name, .menu-list a, .range-name, .perf-num { font-stretch: 92%; letter-spacing: 0; }
  /* phones: the labels would cover the bike at this size, so the parts speak alone; 72% keeps both wheels on screen once apart */
  .exploded-stage { width: 72%; }
  .ex-label { display: none; }
}
@media (max-width: 520px) {
  .key-figures .num { font-size: 2.2rem; }
  .figures-mini { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- light ground (曉維 11-12: the site was too dark) ----------
   Inner pages and the calmer home sections swap the two ground colours; header, footer, hero, exploded view,
   the red range scene and the voyage stay dark, so the page alternates instead of being black end to end. */
body:not(.page-home) main, .page-home .performance, .page-home .journey {
  --black: #efeee9; --surface: #e3e2dc; --paper: #121212; --steel: #5b5b56; --line: rgba(18, 18, 18, .14);
  background: var(--black); color: var(--paper);
}
body:not(.page-home) main .model-card-media { background: radial-gradient(ellipse at 50% 62%, #ffffff 0%, #e4e3dd 72%); }
body:not(.page-home) main .cta-band, body:not(.page-home) main .quote-bar { --black: #000; --paper: #f4f4f0; --steel: #a3a39e; --line: rgba(244, 244, 240, .16); color: var(--paper); }
.site-header { background: rgba(18, 18, 18, .92); }

/* ---------- hero: cream band between two slashes (曉維 11-12) ----------
   Two slashes cross the screen side to side, rising gently to the right; between them the ground is cream (the same
   as the light sections below), so the bike and the headline sit on the brightest band of the page. Black is left
   only as a wedge above (opening under the header) and a wedge below (closing into the black exploded scene). */
.hero { --top-l: 22%; --top-r: var(--header); --bot-l: 95%; --bot-r: 82%; padding-top: calc(var(--header) + 16vh); }
.hero::before {
  content: ""; position: absolute; inset: 0; background: #efeee9; pointer-events: none;
  clip-path: polygon(0 var(--top-l), 100% var(--top-r), 100% var(--bot-r), 0 var(--bot-l));
}
.hero-media::after { content: none; }
.hero-title { font-size: clamp(3.2rem, 8.4vw, 10rem); max-width: 72vw; }
.hero-title, .hero-copy .lead { color: #121212; }
.hero-copy .lead { max-width: 36ch; }
.hero-media { padding-bottom: 20vh; }
.hero-bike { width: min(46vw, 920px); margin-right: 6vw; filter: drop-shadow(0 28px 24px rgba(18, 18, 18, .22)); }
.hero .motion-toggle { color: #a3a39e; border-color: rgba(244, 244, 240, .2); }
@media (max-width: 900px) {
  .hero { --top-l: 15%; --top-r: var(--header); --bot-l: 92%; --bot-r: 85%; padding-top: calc(var(--header) + 9vh); padding-bottom: 16vh; }
  .hero-media { padding-bottom: 0; }
  .hero-bike { width: 104vw; margin: 0 -8vw 0 0; }
}
