:root {
  --paper: #ecebe6;
  --paper-2: #e3e1da;
  --panel: #f5f4f0;
  --ink: #121212;
  --ink-2: #3b3a37;
  --muted: #76746d;
  --line: rgba(18, 18, 18, 0.14);
  --line-strong: rgba(18, 18, 18, 0.85);
  --orange: #f26a21;
  --orange-ink: #c94f0e;
  --dark: #121212;
  --dark-line: rgba(255, 255, 255, 0.14);
  --hdr-h: 64px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

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

html {
  scroll-padding-top: var(--hdr-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
h3 { font-size: 1.35rem; line-height: 1.05; }

p { margin: 0; }

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

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.muted { color: var(--muted); }

.label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--ink-2);
}

.label span {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  background: var(--ink);
  color: var(--paper);
}

.body-lg {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 34rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Buttons: square, fill wipes in from the left on hover */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.4rem;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn i { font-style: normal; transition: transform 0.35s var(--ease-out); }
.btn:hover i { transform: translateX(4px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid::before { background: var(--orange); }
.btn-solid:hover { border-color: var(--orange); color: var(--ink); }

.btn-line { background: transparent; color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--paper); }

.btn-sm { padding: 0.6rem 0.9rem; font-size: 0.72rem; }

/* Header */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--hdr-h);
  background: rgba(236, 235, 230, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.45s var(--ease-out);
}

.hdr.is-hidden { transform: translateY(-100%); }

.hdr-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hdr-logo img { height: 30px; width: auto; }

.hdr-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hdr-nav a {
  position: relative;
  padding: 0.25rem 0;
}

.hdr-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.hdr-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hdr-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}

.hdr-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.hdr-toggle span:first-child { top: 17px; }
.hdr-toggle span:last-child { top: 25px; }
.hdr-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.hdr-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding-top: calc(var(--hdr-h) + 2rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
  margin: 0 0 clamp(1.5rem, 4vh, 3rem);
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.hero-meta li:first-child { margin-right: auto; color: var(--ink); }

.hero-title {
  font-size: clamp(3.4rem, 11.5vw, 11.5rem);
  font-stretch: 66%;
  line-height: 0.86;
  letter-spacing: -0.015em;
}

.line { display: block; overflow: hidden; padding-bottom: 0.02em; }
.line-in { display: block; }
.line-accent { color: var(--orange); }

.hero-stage {
  position: relative;
  z-index: 2;
  height: clamp(170px, 27vw, 400px);
  margin-top: clamp(-6.5rem, -6vw, -2.5rem);
  pointer-events: none;
}

.hero-vehicle {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  width: min(60vw, 880px);
  margin: 0;
  will-change: transform;
}

.hero-vehicle img { position: relative; z-index: 1; width: 100%; }

.hero-shadow {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -2%;
  height: 9%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.32), transparent);
  filter: blur(4px);
}

.hero-foot {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: end;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.hero-lead { font-size: 1.125rem; max-width: 32rem; color: var(--ink-2); }

.hero-caption { color: var(--muted); }
.hero-caption span { display: block; color: var(--ink); margin-bottom: 0.25rem; }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Hide hero pieces until the intro timeline runs (JS only) */
.js.motion .hero [data-hero],
.js.motion .hero .line-in,
.js.motion .hero-vehicle { visibility: hidden; }

/* Ticker */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.ticker-track {
  display: flex;
  flex: none;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker-track,
.ticker.is-paused .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-stretch: 72%;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.ticker-item em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.ticker-item::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 1.5rem;
  background: var(--orange);
}

.ticker-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-left: 1px solid var(--dark-line);
  cursor: pointer;
}

.ticker-toggle:hover { color: var(--orange); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Section scaffolding */
section { position: relative; }

.section-head {
  display: grid;
  gap: 0;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  max-width: 60rem;
}

.split { will-change: auto; }

/* Lineup */
.lineup {
  padding: clamp(3rem, 7vh, 5rem) 0 clamp(2.5rem, 6vh, 4rem);
  border-bottom: 1px solid var(--line-strong);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lineup-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.lineup-head h2 { max-width: 26ch; font-size: clamp(2.2rem, 3.8vw, 3.6rem); }

.lineup-progress {
  display: grid;
  gap: 0.6rem;
  justify-items: end;
  flex: none;
}

.lineup-count b { font-weight: 500; color: var(--orange); }

.lineup-bar {
  display: block;
  width: 180px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.lineup-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0.2);
  transform-origin: left;
}

.lineup-track {
  display: flex;
  gap: 1.25rem;
  padding-left: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lineup-track::-webkit-scrollbar { display: none; }
.lineup-track::after { content: ""; flex: 0 0 calc(var(--gutter) - 1.25rem); }

.lineup.is-pinned {
  height: 100vh;
  min-height: 0;
  padding: calc(var(--hdr-h) + 0.5rem) 0 1.5rem;
  justify-content: center;
}
.lineup.is-pinned .lineup-head h2 { max-width: 34ch; }
.lineup.is-pinned .lineup-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.lineup.is-pinned .lp-media { height: clamp(160px, calc(100vh - 640px), 380px); }

.lp {
  flex: 0 0 clamp(300px, 36vw, 540px);
  scroll-snap-align: start;
  scroll-margin-left: var(--gutter);
  background: var(--panel);
  border: 1px solid var(--line);
}

.lp-link { display: flex; flex-direction: column; height: 100%; }

.lp-top {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.lp-top b { font-weight: 500; color: var(--ink); }

.lp-media {
  position: relative;
  height: clamp(180px, 32vh, 380px);
  overflow: hidden;
  background: #fff;
}

.lp-media-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.9s var(--ease-out);
}

.lp-media img {
  position: absolute;
  top: 0;
  left: -6%;
  width: 112%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.lp-media img.contain { object-fit: contain; padding: 4% 8%; }

.lp-link:hover .lp-media-inner { transform: scale(1.04); }

.lp-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  padding: 0.3rem 0.5rem;
  background: var(--orange);
  color: var(--ink);
}

.lp-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem 1.1rem 1.1rem;
  flex: 1;
}

.lp-name { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
.lp-tag { color: var(--ink-2); max-width: 36ch; }

.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0.25rem 0 0;
  border-top: 1px solid var(--line);
}

.lp-stats div { padding: 0.75rem 0.6rem 0 0; }
.lp-stats div + div { padding-left: 0.6rem; border-left: 1px solid var(--line); }
.lp-stats dt { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.04em; }
.lp-stats dd { margin: 0.2rem 0 0; font-weight: 700; font-stretch: 80%; font-size: 1.3rem; white-space: nowrap; }
.lp-stats small { font-size: 0.7rem; font-weight: 500; margin-left: 2px; color: var(--ink-2); }

.lp-foot {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.lp-foot strong { font-weight: 800; font-stretch: 80%; font-size: 1.35rem; }
.lp-foot .arrow { margin-left: auto; font-family: var(--mono); transition: transform 0.35s var(--ease-out); }
.lp-link:hover .lp-foot .arrow { transform: translateX(5px); color: var(--orange-ink); }

/* Numbers / chart */
.numbers {
  padding: clamp(5rem, 12vh, 8rem) 0;
  border-bottom: 1px solid var(--line-strong);
}

.numbers-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.numbers-head h2 { margin-bottom: 1.5rem; max-width: 12ch; }

.tabs {
  display: inline-flex;
  margin-top: 2rem;
  border: 1.5px solid var(--ink);
}

.tabs button {
  padding: 0.7rem 1rem;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.tabs button + button { border-left: 1.5px solid var(--ink); }
.tabs button:hover { background: var(--paper-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.chart { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }

.bar-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 7rem;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.bar-name { font-weight: 800; font-stretch: 75%; font-size: 1.3rem; text-transform: uppercase; }

.bar-track {
  position: relative;
  height: 28px;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%;
}

.bar-fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--v, 0));
}

.bar-row:last-child .bar-fill { background: var(--orange); }

.bar-val { text-align: right; font-family: var(--mono); font-size: 0.85rem; }

/* Standard equipment */
.standard {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-strong);
}

.standard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.standard-media { margin: 0; position: sticky; top: calc(var(--hdr-h) + 2rem); }
.standard-media img { width: 100%; border: 1px solid var(--line); }
.standard-media figcaption { margin-top: 0.75rem; color: var(--muted); }

.standard h2 { margin-bottom: 2.5rem; max-width: 14ch; }

.std-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: std;
  border-top: 1px solid var(--line-strong);
}

.std-list li {
  counter-increment: std;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.35rem 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.std-list li::before {
  content: counter(std, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--orange-ink);
  padding-top: 0.2rem;
}

.std-list p { color: var(--ink-2); max-width: 42ch; }

/* Model detail */
.model {
  padding: clamp(5rem, 12vh, 8rem) 0;
  border-bottom: 1px solid var(--line-strong);
}

.model:nth-child(even) { background: var(--paper-2); }

.model-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.model-side { position: sticky; top: calc(var(--hdr-h) + 2rem); }

.model-index { display: flex; justify-content: space-between; padding-bottom: 0.9rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line-strong); }
.model-index b { font-weight: 500; color: var(--orange-ink); }

.model-name { font-size: clamp(3.4rem, 7vw, 7rem); font-stretch: 64%; line-height: 0.85; }
.model-tag { margin-top: 1.25rem; font-size: 1.125rem; color: var(--ink-2); max-width: 30rem; }

.figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 2rem 0 0;
  border-top: 1px solid var(--line-strong);
}

.figs div { padding: 1rem 0.9rem 1rem 0; border-bottom: 1px solid var(--line); }
.figs div:nth-child(even) { padding-left: 0.9rem; border-left: 1px solid var(--line); }
.figs dt { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.figs dd { margin: 0.3rem 0 0; font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-weight: 800; font-stretch: 72%; line-height: 1; font-variant-numeric: tabular-nums; }
.figs small { font-size: 0.9rem; font-weight: 600; margin-left: 3px; color: var(--ink-2); }

.model-price {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
}

.model-price span { display: block; color: #a9a7a0; margin-bottom: 0.2rem; }
.model-price strong { font-weight: 800; font-stretch: 78%; font-size: 1.6rem; line-height: 1; }
.model-price div:first-child strong { color: var(--orange); }

.gallery-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-frame img.cover { object-fit: cover; }

.gallery-frame::after {
  content: "Enlarge ↗";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.gallery-frame:hover::after,
.gallery-frame:focus-visible::after { opacity: 1; transform: none; }

.gallery-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  color: var(--ink-2);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out), opacity 0.3s; opacity: 0.65; }
.thumb:hover img { transform: scale(1.06); opacity: 1; }
.thumb.active img { opacity: 1; }

.thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.thumb.active::after { transform: scaleX(1); }

.sheet {
  width: 100%;
  margin-top: 3rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sheet caption {
  text-align: left;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-strong);
}

.sheet th,
.sheet td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.sheet th {
  width: 44%;
  padding-right: 1rem;
  font-weight: 400;
  color: var(--ink-2);
}

.sheet th i {
  display: inline-block;
  width: 2.2rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.sheet td { font-weight: 500; }

/* Compare */
.compare { padding: clamp(5rem, 12vh, 8rem) 0; border-bottom: 1px solid var(--line-strong); }

.table-scroll { overflow-x: auto; border-top: 1.5px solid var(--ink); }

.cmp {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.cmp th,
.cmp td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cmp thead th { vertical-align: bottom; padding-top: 1.25rem; }
.cmp thead a { display: grid; gap: 0.6rem; }
.cmp thead img { height: 64px; width: 100%; object-fit: contain; object-position: left bottom; mix-blend-mode: multiply; }
.cmp thead span { font-weight: 800; font-stretch: 75%; font-size: 1.4rem; text-transform: uppercase; transition: color 0.25s; }
.cmp thead a:hover span { color: var(--orange-ink); }

.cmp tbody th {
  position: sticky;
  left: 0;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  padding-left: 0;
}

.cmp tbody tr { transition: background-color 0.2s; }
.cmp tbody tr:hover td { background: var(--paper-2); }
.cmp .row-price td { font-weight: 800; font-stretch: 78%; font-size: 1.2rem; }

/* Ordering */
.ordering {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background: var(--dark);
  color: var(--paper);
}

.ordering .label { color: #a9a7a0; }
.ordering .label span { background: var(--orange); color: var(--ink); }

.order-table { border-top: 1px solid var(--paper); }

.order-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--dark-line);
  position: relative;
}

.order-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  transition: opacity 0.25s;
}

.order-row:hover::before { opacity: 1; }

.order-row.order-head { padding: 0.75rem 0; color: #8d8b84; }

.order-name { font-weight: 800; font-stretch: 72%; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; line-height: 1; }
.order-price { text-align: right; font-weight: 800; font-stretch: 78%; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--orange); }
.order-head .order-price { font-size: inherit; font-weight: 400; color: inherit; }

.order-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  color: #a9a7a0;
  max-width: 60rem;
}

/* Contact */
.contact { padding: clamp(5rem, 12vh, 8rem) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.contact h2 { max-width: 12ch; margin-bottom: 2.5rem; }

.contact-list { margin: 0; border-top: 1px solid var(--line-strong); }
.contact-list div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); padding-top: 0.2rem; }
.contact-list dd { margin: 0; }
.contact-list a { border-bottom: 1px solid var(--orange); }
.contact-list a:hover { color: var(--orange-ink); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  align-content: start;
  padding-top: 0.5rem;
}

.field { display: grid; gap: 0.5rem; }
.field-wide { grid-column: 1 / -1; }
.field span { color: var(--ink-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  transition: border-color 0.25s;
  appearance: none;
}

.field select {
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 6px center / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0 center / 6px 6px no-repeat;
  cursor: pointer;
}

.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--orange); }

.form-foot { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* Footer */
.ftr { background: var(--orange); color: var(--ink); }

.ftr-call {
  display: grid;
  gap: 0.5rem;
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 5vh, 3rem);
  border-bottom: 1.5px solid var(--ink);
}

.ftr-call strong {
  font-size: clamp(2.6rem, 9vw, 9rem);
  font-weight: 800;
  font-stretch: 64%;
  line-height: 0.9;
  letter-spacing: -0.01em;
  transition: letter-spacing 0.5s var(--ease-out);
}

.ftr-call:hover strong { letter-spacing: 0.01em; }

.ftr-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.ftr-row img { height: 24px; width: auto; }
.ftr-row a { margin-left: auto; }
.ftr-row a:hover { text-decoration: underline; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 4.5rem 1.5rem 2rem;
  background: rgba(18, 18, 18, 0.96);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lb-figure { margin: 0; display: grid; justify-items: center; gap: 1rem; min-width: 0; }
.lb-figure img { max-height: calc(100vh - 10rem); width: auto; max-width: 100%; object-fit: contain; background: #fff; }
.lb-figure figcaption { color: #a9a7a0; text-align: center; }

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: var(--paper);
  cursor: pointer;
}

.lb-nav {
  width: 52px;
  height: 52px;
  border: 1px solid var(--dark-line);
  background: none;
  color: var(--paper);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.lb-close:hover { color: var(--orange); }
.lb-nav:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }

/* Responsive */
@media (max-width: 1100px) {
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-actions { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .numbers-grid,
  .standard-grid,
  .model-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .standard-media,
  .model-side { position: static; }

  .order-notes { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --hdr-h: 58px; }

  .hdr-nav {
    position: fixed;
    top: var(--hdr-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter) 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    font-size: 0.9rem;
    display: none;
  }

  .hdr-nav.open { display: flex; }
  .hdr-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .hdr-nav a::after { display: none; }
  .hdr-cta { display: none; }
  .hdr-toggle { display: block; }

  .hero-meta li:not(:first-child) { display: none; }
  .hero-stage { margin-top: -2.75rem; height: 54vw; }
  .hero-vehicle { width: 96vw; right: 2vw; }
  .hero-foot { grid-template-columns: 1fr; gap: 1.25rem; }

  .lineup-head { flex-direction: column; align-items: flex-start; }
  .lineup-progress { justify-items: start; }
  .lp { flex-basis: 84vw; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-stats div:nth-child(3) { padding-left: 0; border-left: 0; }

  .bar-row { grid-template-columns: 5.5rem 1fr 5.5rem; gap: 0.6rem; }
  .bar-name { font-size: 1.05rem; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tabs button:nth-child(3) { border-left: 0; }
  .tabs button:nth-child(n + 3) { border-top: 1.5px solid var(--ink); }

  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .sheet th { width: 50%; }
  .sheet th i { display: none; }

  .order-row { grid-template-columns: 1fr auto; row-gap: 0.25rem; }
  .order-row > :nth-child(2),
  .order-row > :nth-child(3) { grid-column: 1; }
  .order-row > :nth-child(4) { grid-row: 1; grid-column: 2; }
  .order-row.order-head { display: none; }

  .contact-list div { grid-template-columns: 1fr; gap: 0.25rem; }
  .form { grid-template-columns: 1fr; }

  .lightbox { grid-template-columns: 1fr 1fr; padding: 4rem 1rem 1.5rem; }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { justify-self: start; }
  .lb-next { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn::before,
  .thumb::after,
  .hdr-nav a::after { transition-duration: 0.15s !important; }
}
