/* ADD Power · UAE. Colours from the ADD Power data sheets: orange #F9A318, charcoal #232B2D (as OKLCH below). */

:root {
  --white: oklch(1 0 0);
  --bg: oklch(1 0 0);
  --surface: oklch(0.967 0.004 215);
  --surface-2: oklch(0.935 0.006 215);
  --line: oklch(0.875 0.008 215);
  --line-strong: oklch(0.74 0.01 215);
  --field-line: oklch(0.6 0.012 215);
  --ink: oklch(0.282 0.012 215);
  --ink-deep: oklch(0.215 0.012 215);
  --muted: oklch(0.47 0.014 215);
  --orange: oklch(0.782 0.164 70.7);
  --orange-hover: oklch(0.745 0.165 66);
  --orange-shade: oklch(0.69 0.15 62);
  --orange-light: oklch(0.865 0.12 80);
  --orange-soft: oklch(0.955 0.045 82);
  --person: oklch(0.72 0.012 215);
  --err: oklch(0.52 0.19 28);

  --f-display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-stencil: "Big Shoulders Stencil", "Big Shoulders", "Arial Narrow", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-sticky: 10;
  --z-skip: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
svg { display: block; max-width: 100%; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -64px; z-index: var(--z-skip);
  padding: 10px 14px; background: var(--ink); color: var(--white); font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- header ---------- */

.top { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.top__nav { display: none; gap: 28px; margin-left: auto; font-size: 0.9375rem; font-weight: 700; }
.top__nav a { padding: 6px 0; text-decoration: none; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-bottom-color: var(--orange); }
.top .btn { margin-left: auto; }
@media (min-width: 880px) {
  .top__nav { display: flex; }
  .top .btn { margin-left: 12px; }
}

.brand { display: inline-flex; align-items: stretch; margin: 0; font-family: var(--f-display); line-height: 1; text-decoration: none; }
.brand__tab {
  padding: 7px 18px 6px 10px;
  background: var(--orange);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.brand__word { padding: 7px 0 6px 6px; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- buttons and labels ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1rem/1.1 var(--f-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--primary, .btn--dark, .btn--quote { margin-right: 15px; }
.btn--primary::after, .btn--dark::after, .btn--quote::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 100%;
  width: 15px;
  background: var(--btn-bg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: background-color 0.15s var(--ease-out);
}
.btn--primary { --btn-bg: var(--orange); }
.btn--primary:hover { --btn-bg: var(--orange-hover); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--dark:hover { --btn-bg: var(--ink-deep); }
.btn--ghost { border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--quote { --btn-bg: var(--orange); min-height: 36px; padding: 0 12px; font-size: 0.875rem; }
.btn--quote:hover { --btn-bg: var(--orange-hover); }

.chev {
  display: inline-block;
  padding: 9px 28px 9px 12px;
  background: var(--ink);
  color: var(--white);
  font: 700 0.875rem/1 var(--f-body);
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.trust__mark, .warranty__mark {
  flex: 0 0 22px;
  height: 22px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3.2 3.1L13 4.6' fill='none' stroke='%23232B2D' stroke-width='2.4'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(24px, 4vw, 56px) var(--section); }
.hero__grid { display: grid; gap: 28px; grid-template-areas: "copy" "sheet" "finder"; }
.hero__copy { grid-area: copy; }
.sheet { grid-area: sheet; }
.hero__finder { grid-area: finder; }
@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "copy sheet" "finder sheet";
    column-gap: clamp(40px, 5vw, 80px);
    row-gap: 32px;
    align-items: start;
  }
}
/* 1.02, not tighter: the "g" of "generators" sits right above the "Y" of "Yuchai". */
.hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 1.5rem + 4.2vw, 5rem); line-height: 1.02; }
/* Two columns: the headline is sized to its own column, so it stays at four lines (by viewport it took six at 1000–1200 px). */
@media (min-width: 1000px) {
  .hero__copy { container-type: inline-size; }
  .hero h1 { font-size: min(14cqi, 5rem); }
}
.nw { white-space: nowrap; }
.lede { margin-top: 20px; max-width: 44ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
.lede b { font-weight: 700; }

/* The one-line answer to "who is Yuchai", right under the offer. */
.rr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  max-width: 34rem;
  margin-top: 24px;
  padding: 14px 18px 15px;
  background: var(--ink);
  color: var(--white);
}
.rr__text { font: 700 clamp(1.25rem, 1.08rem + 0.55vw, 1.5rem)/1.12 var(--f-display); }
.rr__text b { font-weight: 800; }
.rr__name { color: var(--orange); font-weight: 900; }
.rr__link { font-size: 0.9375rem; font-weight: 700; white-space: nowrap; }
.rr__link::after { content: " ↓"; }
.rr :focus-visible { outline-color: var(--orange); }

.sheet { position: relative; margin: 0; padding: 62px clamp(12px, 2vw, 22px) 16px; background: var(--surface); border: 1px solid var(--line); }
.sheet__tab {
  position: absolute;
  top: -1px;
  right: -1px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px 10px 46px;
  background: var(--orange);
  clip-path: polygon(32px 0, 100% 0, 100% 100%, 0 100%);
}
.sheet__tab span { font-size: 0.8125rem; font-weight: 700; }
.sheet__tab b { font: 800 2rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.ga { width: 100%; height: auto; aspect-ratio: 1000 / 600; overflow: visible; }
.titleblock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin: 14px 0 0; border-top: 2px solid var(--ink); }
.titleblock div { min-width: 0; padding: 9px 0 10px; border-bottom: 1px solid var(--line); }
/* The price row spans the whole title block, value in the display face. */
.titleblock .tb-price { grid-column: 1 / -1; border-bottom: 0; }
.titleblock .tb-price dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.titleblock .tb-price dd b { font: 800 1.9rem/1.05 var(--f-display); }
.titleblock dt { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.titleblock dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.titleblock dd b { display: block; font-size: 1rem; font-weight: 700; }
.titleblock dd span { display: block; color: var(--muted); font-size: 0.875rem; }
@media (min-width: 640px) and (max-width: 999px), (min-width: 1280px) {
  .titleblock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sheet figcaption { margin-top: 10px; color: var(--muted); font-size: 0.875rem; }

.finder { padding-top: 18px; border-top: 3px solid var(--ink); }
.finder__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.finder__q { max-width: 22ch; font-size: 1.0625rem; font-weight: 700; }
.finder__num { display: flex; align-items: baseline; gap: 6px; }
.finder__num input {
  width: 4.6ch;
  padding: 0 2px;
  border: 0;
  border-bottom: 3px solid var(--orange);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 800 clamp(2.4rem, 1.8rem + 2vw, 3.2rem)/1 var(--f-display);
  font-variant-numeric: tabular-nums;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}
.finder__num input::-webkit-inner-spin-button,
.finder__num input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.finder__num input:focus-visible { outline: none; border-bottom-color: var(--ink); background: var(--orange-soft); }
.finder__num span { font: 700 1.5rem/1 var(--f-display); }

.finder__track { position: relative; margin-top: 10px; }
.slider {
  --fill: 50%;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.slider::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(to right, var(--ink) var(--fill), var(--line) var(--fill)); }
.slider::-webkit-slider-thumb {
  width: 22px;
  height: 36px;
  margin-top: -15px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 2px;
  -webkit-appearance: none;
}
.slider::-moz-range-track { height: 6px; background: var(--line); }
.slider::-moz-range-progress { height: 6px; background: var(--ink); }
.slider::-moz-range-thumb { width: 18px; height: 32px; background: var(--orange); border: 2px solid var(--ink); border-radius: 2px; }
.slider:focus-visible { outline: none; }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--ink); }
.slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--ink); }
.finder__ticks { position: absolute; top: 29px; left: 11px; right: 11px; height: 12px; pointer-events: none; }
.finder__ticks span { position: absolute; top: 0; width: 2px; height: 7px; margin-left: -1px; background: var(--line-strong); }
.finder__ticks span.is-on { width: 4px; height: 12px; margin-left: -2px; background: var(--ink); }
.finder__scale { position: relative; height: 18px; margin: 6px 11px 0; color: var(--muted); font-size: 0.8125rem; }
.finder__scale span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.finder__scale span:first-child { transform: none; }
.finder__scale span:last-child { transform: translateX(-100%); }

.seg { display: inline-flex; margin: 18px 0 0; padding: 0; border: 0; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.seg label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.seg label + input + label { margin-left: -2px; }
.seg input:checked + label { background: var(--ink); color: var(--white); }
.seg input:focus-visible + label { position: relative; z-index: 1; outline: 3px solid var(--ink); outline-offset: 3px; }

.finder__hint { max-width: 54ch; margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.finder__hint b { color: var(--ink); }
.finder__out { min-height: 1.7em; margin-top: 16px; font-size: 1.0625rem; }
.finder__out strong { margin-left: 2px; font: 800 1.6rem/1 var(--f-display); }
.finder__price { display: inline-block; margin-left: 8px; padding: 3px 8px; background: var(--orange); font-weight: 700; white-space: nowrap; }
.finder__cta { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 16px; }
.trust { display: flex; align-items: flex-start; gap: 10px; max-width: 52ch; margin-top: 26px; font-size: 0.9375rem; font-weight: 700; }

/* ---------- who is Yuchai ---------- */

.yuchai { --on-ink-soft: oklch(0.86 0.008 215); --rivet: oklch(0.7 0.01 215); padding-block: var(--section); background: var(--ink); color: var(--white); }
.yuchai__grid { display: grid; gap: 40px clamp(40px, 5vw, 80px); }
@media (min-width: 1000px) {
  .yuchai__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: start; }
  .yuchai__fine { grid-column: 1 / -1; }
}
.yuchai .chev { background: var(--orange); color: var(--ink); }
.yuchai h2 { margin-top: 18px; font-size: clamp(2.5rem, 1.3rem + 4vw, 4.75rem); line-height: 1.02; }
.yuchai h2 b { color: var(--orange); font-weight: 900; }
.yuchai__copy > p { max-width: 58ch; margin-top: 18px; color: var(--on-ink-soft); }
.yuchai__copy > .yuchai__lede { margin-top: 24px; color: var(--white); font-size: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem); }
.yuchai__copy > .yuchai__note { margin-top: 24px; padding: 14px 18px; border: 2px solid var(--orange); color: var(--white); font-weight: 700; }
.yuchai__copy > .trust { color: var(--white); }
.yuchai a { color: var(--white); }
.yuchai :focus-visible { outline-color: var(--orange); }
.yuchai__fine { padding-top: 18px; border-top: 1px solid oklch(1 0 0 / 0.2); color: var(--on-ink-soft); font-size: 0.875rem; }

/* A metal rating plate: four rivets, stamped maker name, the facts. */
.plate {
  padding: 28px clamp(20px, 2.4vw, 34px) 20px;
  border-radius: 6px;
  background-color: var(--surface-2);
  background-image:
    radial-gradient(circle at 15px 15px, var(--rivet) 0 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 15px) 15px, var(--rivet) 0 4px, transparent 5px),
    radial-gradient(circle at 15px calc(100% - 15px), var(--rivet) 0 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 15px) calc(100% - 15px), var(--rivet) 0 4px, transparent 5px);
  color: var(--ink);
}
.plate__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 0 8px 14px;
  border-bottom: 3px solid var(--ink);
}
.plate__brand { font: 800 clamp(2.5rem, 1.9rem + 2vw, 3.5rem)/0.9 var(--f-stencil); letter-spacing: 0.03em; text-transform: uppercase; }
.plate__name { color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.plate__list { margin: 0; }
.plate__list div {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2px 16px;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line-strong);
}
.plate__list div:last-child { border-bottom: 0; }
.plate__list dt { padding-top: 2px; color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.plate__list dd { margin: 0; font-variant-numeric: tabular-nums; }
.plate__list dd b { display: block; font-size: 1.0625rem; font-weight: 700; }
.plate__list dd span { display: block; color: var(--muted); font-size: 0.875rem; }
.plate__list .is-rr { background: var(--orange); border-bottom-color: transparent; }
.plate__list .is-rr dt, .plate__list .is-rr dd span { color: var(--ink); }
.plate__list .is-rr strong { font-weight: 800; }

/* ---------- model range ---------- */

.lineup { padding-block: var(--section); border-top: 1px solid var(--line); }
.lineup__head { display: grid; gap: 14px 56px; }
@media (min-width: 960px) { .lineup__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.lineup h2, .kit h2, .order h2 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem); }
.lineup__head p { max-width: 60ch; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 16px; }
.filter button {
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: 700 0.9375rem/1 var(--f-body);
  cursor: pointer;
}
.filter button:hover { background: var(--orange-soft); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.tablewrap { overflow-x: auto; border-top: 3px solid var(--ink); }
.models { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.models thead th {
  padding: 12px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  vertical-align: bottom;
  white-space: nowrap;
}
.models thead th:first-child { background: var(--orange); color: var(--ink); }
.models thead th span { display: block; font-weight: 400; opacity: 0.85; }
.models th, .models td { padding: 11px 10px; text-align: left; white-space: nowrap; }
.models .num { text-align: right; }
.models tbody tr { border-bottom: 1px solid var(--line); transition: background-color 0.15s; }
.models tbody tr:nth-child(even) { background: var(--surface); }
.models tbody tr:hover { background: var(--orange-soft); }
.models tbody tr.is-current { background: var(--orange-soft); }
.models tbody tr.is-current .mlink { text-decoration-color: var(--ink); }
.models td b { font-weight: 700; }
.models .kw { color: var(--muted); }
.models .kw::before { content: "· "; }
.models .cyl { color: var(--muted); }
.models .act { text-align: right; }
.mlink {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 800 1.3rem/1 var(--f-display);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.mlink:hover { text-decoration-color: var(--ink); }
.models .col-price { font-weight: 700; }
.models .ask { color: var(--muted); font-weight: 400; }
/* On phones the price moves under the model name, so the table keeps four columns. */
.m-price { display: block; margin-top: 4px; font: 700 0.8125rem/1.2 var(--f-body); white-space: nowrap; }
@media (min-width: 760px) { .m-price { display: none; } }
.models thead th .kw-h { display: inline; }
@media (max-width: 759px) {
  .col-eng, .col-price { display: none; }
  .models th, .models td { padding: 10px 5px; }
  .models .btn--quote { padding: 0 10px; }
}
@media (max-width: 1023px) { .col-x, .models .kw, .models thead th .kw-h { display: none; } }
@media (max-width: 1179px) { .col-wide { display: none; } }
.lineup__note { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- standard scope ---------- */

.kit { padding-block: var(--section); background: var(--surface); }
.kit__grid { display: grid; gap: 28px; grid-template-areas: "copy" "figure" "box"; }
.kit__copy { grid-area: copy; }
.kit__figure { grid-area: figure; margin: 0; }
.kit__box { grid-area: box; }
@media (min-width: 1000px) {
  .kit__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "copy box" "figure box";
    column-gap: clamp(40px, 5vw, 80px);
  }
}
.kit__copy > p { max-width: 56ch; margin-top: 16px; }
.kit__copy > .warranty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 60ch;
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}
.kit__box { position: relative; align-self: start; background: var(--white); border: 2px solid var(--ink); }
.kit__box::before, .kit__box::after { content: ""; position: absolute; top: -2px; width: 28px; height: 28px; background: var(--ink); }
.kit__box::before { left: -2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.kit__box::after { right: -2px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.kit__boxhead { padding: 20px 28px 14px; border-bottom: 1px solid var(--line); font: 800 1.6rem/1 var(--f-display); }
.kit__list { margin: 0; padding: 6px 18px 10px; list-style: none; counter-reset: part; }
.kit__list li {
  position: relative;
  padding: 12px 8px 12px 48px;
  border-bottom: 1px solid var(--line);
  counter-increment: part;
  cursor: default;
  transition: background-color 0.15s;
}
.kit__list li:last-child { border-bottom: 0; }
.kit__list li::before {
  content: counter(part);
  position: absolute;
  top: 11px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font: 700 0.875rem/1 var(--f-body);
}
.kit__list li.is-hot { background: var(--orange-soft); }
.kit__list li.is-hot::before { background: var(--orange); color: var(--ink); }

/* ---------- how ordering works ---------- */

.order { padding-block: var(--section); }
.steps { display: grid; gap: 32px; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { position: relative; }
.steps__n { display: grid; place-items: center; width: 64px; height: 64px; background: var(--orange); font: 900 2.4rem/1 var(--f-display); }
@media (min-width: 860px) {
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: 84px; right: -20px; border-top: 2px dashed var(--line-strong); }
}
.steps h3 { margin-top: 18px; font-size: 1.75rem; }
.steps p { max-width: 36ch; margin-top: 8px; }
.order__note { max-width: 70ch; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; }

/* ---------- quote ---------- */

.quote { padding-block: var(--section); background: var(--orange); }
.quote__grid { display: grid; gap: 32px 56px; }
@media (min-width: 960px) { .quote__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.quote h2 { font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.6rem); line-height: 0.95; }
.quote__copy > p { max-width: 36ch; margin-top: 18px; font-size: 1.125rem; font-weight: 700; }
.quote__pick { max-width: 36ch; margin-top: 30px; padding-top: 14px; border-top: 3px solid var(--ink); }
.quote__picklabel { font-size: 0.875rem; font-weight: 700; }
.quote__pickmodel { margin-top: 6px; font: 800 2.6rem/1 var(--f-display); }
.quote__pickspec { margin-top: 6px; font-weight: 700; }

.form { padding: clamp(20px, 3vw, 36px); background: var(--white); border: 2px solid var(--ink); }
.form__row { display: grid; gap: 0 16px; }
@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .form__row--3 { grid-template-columns: 2fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 18px; }
.field label { font-size: 0.9375rem; font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 2px solid var(--field-line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.3 var(--f-body);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  padding-right: 42px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23232B2D' stroke-width='2.2'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
  appearance: none;
  -webkit-appearance: none;
}
.field :is(input, select, textarea):hover { border-color: var(--ink); }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__err { color: var(--err); font-size: 0.875rem; font-weight: 700; }
::placeholder { color: var(--muted); opacity: 1; }
.form__hint { margin: -8px 0 18px; color: var(--muted); font-size: 0.875rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form__fine { color: var(--muted); font-size: 0.875rem; }
.form__status { min-height: 1.5em; margin-top: 14px; font-weight: 700; }
.form__status.is-err { color: var(--err); }

/* ---------- footer ---------- */

.foot { padding-block: 56px 28px; background: var(--ink); color: var(--white); }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot p + p { margin-top: 12px; }
.foot__label { color: var(--orange); font-weight: 700; }
.brand--foot .brand__word { color: var(--white); }
.foot :focus-visible { outline-color: var(--orange); }
.foot__fine { margin-top: 40px; padding-top: 18px; border-top: 1px solid oklch(1 0 0 / 0.2); font-size: 0.875rem; }
.foot__fine p { opacity: 0.85; }

/* ---------- dialogs ---------- */

.dlg {
  width: 100%;
  max-width: min(1000px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
}
.dlg--text { max-width: min(640px, calc(100vw - 24px)); }
.dlg::backdrop { background: oklch(0.2 0.01 215 / 0.55); }
.dlg[open] { animation: dlg-in 0.24s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px); } }
.dlg__body { padding: 0 24px 24px; }
.dlg__body > p { max-width: 62ch; margin-top: 14px; }
.dlg--text .spec__head { margin: 0 -24px 6px; }
.dlg__x { width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 400 1.7rem/1 var(--f-body); cursor: pointer; }
.dlg__x:hover { background: var(--ink); color: var(--white); }
.spec__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; border-bottom: 3px solid var(--orange); }
.spec__head h2 { font-size: 2.6rem; }
.spec__kind { margin-bottom: 6px; color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.spec__body { display: grid; gap: 16px 28px; padding: 20px 24px; }
@media (min-width: 820px) { .spec__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } }
.ga--spec .dim-label { stroke: var(--white); }
.spec__t { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.spec__t th, .spec__t td { padding: 7px 10px; }
.spec__t th { font-weight: 600; text-align: left; }
.spec__t td { font-weight: 700; text-align: right; }
.spec__t tr:not(.grp):nth-child(odd) { background: var(--surface); }
.spec__t .grp th { padding-top: 10px; background: var(--ink); color: var(--white); font-weight: 700; }
.spec__foot { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 16px 24px 24px; border-top: 1px solid var(--line); }

/* ---------- drawings ---------- */

.ga .face-long { fill: var(--orange); }
.ga .face-end { fill: var(--orange-shade); }
.ga .face-top { fill: var(--orange-light); }
.ga .base-long { fill: var(--ink); }
.ga .base-end { fill: var(--ink-deep); }
.ga .edge { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ga .edge-soft, .ga .seam { stroke: var(--ink); stroke-opacity: 0.45; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ga .door { fill: none; stroke: var(--ink); stroke-opacity: 0.5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ga .louvre { fill: var(--ink); fill-opacity: 0.86; }
.ga .slat { stroke: var(--orange); stroke-opacity: 0.55; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ga .handle, .ga .exhaust { fill: var(--ink); }
.ga .exhaust-top, .ga .window { fill: var(--ink-deep); }
.ga .lcd { fill: oklch(0.78 0.14 155); }
.ga .estop { fill: oklch(0.6 0.2 28); }
.ga .stencil { fill: var(--ink); fill-opacity: 0.9; font-family: var(--f-stencil); font-weight: 800; }
.ga .badge { fill: var(--ink); }
.ga .badge-t { fill: var(--orange); font-family: var(--f-display); font-weight: 900; }
.ga .pocket { fill: var(--surface-2); }
.ga .lug { fill: none; stroke: var(--surface-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ga .shadow { fill: var(--ink); fill-opacity: 0.08; }
.ga .person { fill: var(--person); }
.ga .dim, .ga .dim-ext { fill: none; stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ga .dim { stroke-dasharray: 6 5; }
/* Size and halo width come from ga.js, which keeps them constant on screen. */
.ga .dim-label {
  fill: var(--ink);
  font-family: var(--f-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-linejoin: round;
}

.ga .ghost { fill: var(--orange); fill-opacity: 0.1; }
.ga .ghost-edge { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.ga .ghost-edge.back { stroke-opacity: 0.35; }
.ga .part { --part: oklch(0.6 0.015 215); }
.ga .p-base { --part: var(--ink); }
.ga .p-eng { --part: oklch(0.45 0.02 215); }
.ga .p-alt { --part: oklch(0.63 0.02 215); }
.ga .p-rad { --part: oklch(0.36 0.012 215); }
.ga .p-ctl, .ga .p-ats { --part: oklch(0.92 0.006 215); }
.ga .p-brk { --part: oklch(0.82 0.008 215); }
.ga .p-sil { --part: oklch(0.56 0.012 215); }
.ga .p-bat { --part: oklch(0.32 0.012 215); }
.ga .part.is-hot { --part: var(--orange); }
.ga .part polygon { stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ga .part .p-long { fill: var(--part); }
.ga .part .p-end { fill: color-mix(in oklch, var(--part) 78%, black); }
.ga .part .p-top { fill: color-mix(in oklch, var(--part) 72%, white); }
.ga .callout { cursor: default; }
.ga .callout circle { fill: var(--ink); stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ga .callout text { fill: var(--white); font-family: var(--f-body); font-weight: 700; }
.ga .callout.is-hot circle { fill: var(--orange); }
.ga .callout.is-hot text { fill: var(--ink); }

/* ---------- thanks page ---------- */

.thanks { padding-block: var(--section); }
.thanks h1 { margin-top: 18px; font-size: clamp(2.6rem, 1.4rem + 4vw, 4.6rem); }
.thanks p { max-width: 50ch; margin-top: 18px; font-size: 1.125rem; }
.thanks .btn { margin-top: 28px; }

/* ---------- motion and print ---------- */

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

@media print {
  body > :not(dialog[open]) { display: none !important; }
  dialog[open] { position: static; display: block; width: auto; max-width: none; max-height: none; border: 0; }
  .dlg::backdrop, .spec__foot, .dlg__x { display: none; }
  .spec__body { grid-template-columns: 1fr; }
}
