/* ============================================================
   Motores y Repuestos R&R — design tokens & base styles
   One dark canvas, a four-step surface ladder with hairline
   borders, and the logo red used sparingly for action and focus.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Surfaces — lift = hierarchy, no drop shadows on dark */
  --canvas: #0c0c0d;
  --surface-1: #131315;
  --surface-2: #19191c;
  --surface-3: #212125;
  --hairline: #26262b;
  --hairline-strong: #37373d;

  /* Text */
  --ink: #f4f4f2;
  --ink-muted: #c3c3c7;
  --ink-subtle: #96969c;

  /* Brand — tuned to the R&R logo's red (#ec1824) */
  --red: #ec1824;
  --red-fill: #e01521;   /* button fill: white text at 4.9:1 */
  --red-hover: #c9131d;
  --red-press: #b5111a;
  --red-text: #ff4a52;   /* small red text on dark surfaces, >=4.8:1 */
  --red-tint: rgba(236, 24, 36, 0.1);
  --red-ring: rgba(236, 24, 36, 0.35);
  --ok: #34c06a;

  /* Type */
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spacing (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-28: 112px;

  /* Shape */
  --r-sm: 8px;    /* buttons, inputs */
  --r-md: 12px;   /* tiles, panels */
  --r-lg: 16px;   /* feature panels, banners */
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.05); /* top-edge highlight on lifted panels */

  --container: 1200px;
  --header-h: 72px;
  --border: 1px solid var(--hairline);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--hairline-strong) var(--canvas);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  accent-color: var(--red);
  caret-color: var(--red);
}
::selection { background: var(--red); color: #fff; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--sp-4); }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Type scale ---- */
.h-display,
.h-1,
.h-2,
.h-3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.h-display {
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-size: clamp(42px, 6vw, 80px);
}
.h-1 { line-height: 1.06; letter-spacing: -0.02em; font-size: clamp(36px, 4.8vw, 60px); max-width: 20ch; }
.h-2 { line-height: 1.1; font-size: clamp(28px, 3.4vw, 44px); }
.h-3 { line-height: 1.2; letter-spacing: -0.01em; font-size: 22px; }
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-muted);
  max-width: 58ch;
  line-height: 1.6;
}
.body-lg { font-size: 18px; line-height: 1.65; color: var(--ink); }
.mono { font-family: var(--font-mono); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--red-fill);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn-primary:active { background: var(--red-press); }
.btn-outline,
.btn-outline-inverse {
  background: var(--surface-1);
  color: var(--ink);
  border-color: var(--hairline-strong);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--red-hover); }
  .btn-outline:hover,
  .btn-outline-inverse:hover { background: var(--surface-2); border-color: #4a4a51; }
}
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(12, 12, 13, 0.82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--ink);
}
.brand-mark__logo-wrap { display: flex; align-items: center; flex: none; }
.brand-mark__logo { display: block; height: 44px; width: auto; }
.brand-mark__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.005em;
}
.brand-mark__sub {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--ink-subtle);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.main-nav__links { display: flex; gap: var(--sp-2); }
.main-nav__links a {
  position: relative;
  display: block;
  color: var(--ink-subtle);
  font-weight: 500;
  font-size: 15px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color 150ms ease, background-color 150ms ease;
}
.main-nav__links a::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: -15px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 220ms var(--ease-out);
}
.main-nav__links a[aria-current="page"] { color: var(--ink); }
.main-nav__links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .main-nav__links a:hover { color: var(--ink); background: var(--surface-1); }
}
.header-cta { min-height: 40px; padding: 9px 18px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  padding: 7px 9px;
  color: var(--ink);
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 220ms var(--ease-out), opacity 150ms ease;
}
.site-header.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  /* The whole nav becomes one drawer: links, then the CTA. */
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-6);
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
    background: var(--canvas);
    border-bottom: var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 320ms var(--ease-drawer), opacity 200ms var(--ease-out),
      visibility 0ms linear 320ms;
  }
  .main-nav__links { flex-direction: column; gap: 0; }
  .main-nav__links a {
    padding: var(--sp-4) var(--sp-2);
    border-radius: 0;
    border-bottom: var(--border);
    font-size: 17px;
    color: var(--ink-muted);
  }
  .main-nav__links a::after { display: none; }
  .main-nav__links a[aria-current="page"] { color: var(--ink); }
  .header-cta { min-height: 48px; font-size: 15px; }

  .site-header.is-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 320ms var(--ease-drawer), opacity 260ms var(--ease-out),
      visibility 0ms linear 0ms;
  }
}
@media (max-width: 420px) {
  .brand-mark__sub { display: none; }
}

/* ---- Status badge (small live indicator) ---- */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  padding: 6px 12px 6px 10px;
  border: var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-muted);
}
.status-line__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 192, 106, 0.18);
  flex: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  border-bottom: var(--border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--sp-16);
  align-items: center;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
}
.hero__copy .lede { margin-top: var(--sp-6); }
.hero__title { max-width: 13ch; }
.hero .status-line { margin-top: var(--sp-6); }

/* Quick quote: the site's main action, working right in the hero */
.quick-quote {
  display: grid;
  grid-template-columns: minmax(132px, 0.7fr) 1.6fr auto;
  gap: var(--sp-1);
  margin-top: var(--sp-8);
  padding: var(--sp-1);
  max-width: 640px;
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  box-shadow: var(--edge), 0 28px 56px -32px rgba(0, 0, 0, 0.95);
  transition: border-color 160ms ease;
}
.quick-quote:focus-within { border-color: #4a4a51; }
.quick-quote.is-invalid { border-color: var(--red-text); }
.quick-quote__field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.quick-quote__field + .quick-quote__field::before {
  content: "";
  position: absolute;
  left: -3px;
  top: var(--sp-3);
  bottom: var(--sp-3);
  width: 1px;
  background: var(--hairline-strong);
}
.quick-quote__field:focus-within {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--red-ring);
}
.quick-quote__field label {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-subtle);
}
.quick-quote__field input,
.quick-quote__field select {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.quick-quote__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396969c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px;
}
.quick-quote__field select option { background: var(--surface-1); color: var(--ink); }
.quick-quote__field input::placeholder { color: #7d7d84; font-weight: 400; }
.quick-quote__submit { min-height: 58px; padding: 0 var(--sp-6); }
.quick-quote__error {
  margin-top: var(--sp-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--red-text);
}
.quick-quote__hint {
  margin-top: var(--sp-3);
  max-width: 62ch;
  font-size: 14px;
  color: var(--ink-subtle);
}
.quick-quote__hint a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red-ring);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
.quick-quote__hint a:hover { text-decoration-color: currentColor; }
@media (max-width: 640px) {
  .quick-quote { grid-template-columns: 1fr; padding: 6px; }
  .quick-quote__field { padding: var(--sp-3) var(--sp-3); }
  .quick-quote__field + .quick-quote__field::before {
    left: var(--sp-3);
    right: var(--sp-3);
    top: -3px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .quick-quote__submit { width: 100%; min-height: 52px; }
}

/* Diagram panel: framed like a lifted surface */
.beam-frame {
  position: relative;
  padding: var(--sp-4);
  border: var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-1), var(--canvas));
  box-shadow: var(--edge), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.hero__diagram { width: 100%; height: auto; }
.hero__diagram .diagram-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 1.1s var(--ease-in-out) forwards;
}
.hero__diagram .diagram-label {
  opacity: 0;
  animation: fade-in 0.5s var(--ease-out) forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero__diagram .diagram-line { stroke-dashoffset: 0; animation: none; }
  .hero__diagram .diagram-label { opacity: 1; animation: none; }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-16);
    gap: var(--sp-10);
  }
  .beam-frame { max-width: 420px; width: 100%; padding: var(--sp-2); }
}

/* ---- Section shell ---- */
.section { padding: var(--sp-28) 0; }
.section--tight { padding: var(--sp-16) 0; }
.section--dark { background: var(--canvas); color: var(--ink); }
.section--alt {
  background: var(--surface-1);
  border-top: var(--border);
  border-bottom: var(--border);
}
.section + .section:not(.section--alt) { border-top: var(--border); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}
.section__head .lede { margin-top: var(--sp-4); }
@media (max-width: 640px) {
  .section { padding: var(--sp-20) 0; }
  .section--tight { padding: var(--sp-12) 0; }
  .section__head { margin-bottom: var(--sp-8); }
}

/* ---- Brand strip ---- */
.brand-strip__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--sp-6);
  border: var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.brand-strip__item {
  padding: var(--sp-6);
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  transition: background-color 200ms ease;
}
.brand-strip__item:last-child { border-right: none; }
.brand-strip__item strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1;
  transition: color 200ms ease;
}
.brand-strip__item span { font-size: 14px; color: var(--ink-subtle); }
@media (hover: hover) and (pointer: fine) {
  .brand-strip__item:hover { background: var(--surface-1); }
  .brand-strip__item:hover strong { color: var(--red-text); }
}
@media (max-width: 760px) {
  .brand-strip__row { grid-template-columns: 1fr 1fr; }
  .brand-strip__item:nth-child(2n) { border-right: none; }
  .brand-strip__item:nth-child(-n+2) { border-bottom: var(--border); }
}

/* ---- Other brands ---- */
.more-brands {
  background: var(--canvas);
  border-top: var(--border);
  padding: var(--sp-28) 0;
}
.more-brands__layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--sp-16);
  align-items: center;
}
@media (max-width: 900px) {
  .more-brands { padding: var(--sp-20) 0; }
  .more-brands__layout { grid-template-columns: 1fr; gap: var(--sp-10); }
}
.more-brands__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.more-brands__copy .lede { margin: var(--sp-6) 0 var(--sp-8); max-width: 46ch; }
.more-brands__list { border-top: var(--border); }
.more-brands__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-2);
  border-bottom: var(--border);
  transition: background-color 200ms ease;
}
.more-brands__item strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1;
  transition: color 200ms ease;
}
.more-brands__item span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-subtle);
  white-space: nowrap;
  transition: color 200ms ease;
}
.more-brands__item span::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .more-brands__item:hover { background: var(--surface-1); }
  .more-brands__item:hover strong { color: var(--red-text); }
  .more-brands__item:hover span { color: var(--ink); }
  .more-brands__item:hover span::after { transform: translateX(3px); }
}
@media (max-width: 480px) {
  .more-brands__item span { font-size: 0; gap: 0; }
}

/* ---- Trust strip & hairline grids ---- */
.grid {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.trust-item {
  background: var(--surface-1);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: var(--sp-3);
  row-gap: var(--sp-2);
  align-content: start;
}
.trust-item__icon {
  grid-row: 1;
  align-self: center;
  display: flex;
  color: var(--red-text);
}
.trust-item__icon svg { width: 20px; height: 20px; }
.trust-item__title {
  grid-row: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
}
.trust-item__body { grid-column: 2; color: var(--ink-subtle); font-size: 14.5px; line-height: 1.55; }

/* ---- Photo band ---- */
.photo-band {
  position: relative;
  height: clamp(320px, 44vw, 540px);
  overflow: hidden;
  background: var(--canvas);
}
.photo-band__parallax {
  position: absolute;
  left: 0;
  right: 0;
  top: -8%;
  height: 116%;
  will-change: transform;
}
.photo-band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04);
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 12, 13, 0.9) 0%, rgba(12, 12, 13, 0.1) 50%, rgba(12, 12, 13, 0.35) 100%);
}
.photo-band__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sp-10);
  z-index: 1;
}
.photo-band__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.3;
  max-width: 26ch;
}
@media (max-width: 640px) {
  .photo-band__caption { bottom: var(--sp-6); }
}

/* ---- Manifesto (the one full-color band) ---- */
.manifesto {
  background: var(--red-fill);
  color: #fff;
}
.manifesto.section--tight { padding: var(--sp-20) 0; }
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.3;
  max-width: 30ch;
}
.manifesto ::selection { background: #fff; color: var(--red); }

/* ---- Sticky list layout ---- */
.sticky-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-16);
  align-items: start;
}
.sticky-layout__pin { position: sticky; top: calc(var(--header-h) + 40px); }
.sticky-layout__pin .lede { margin-top: var(--sp-4); }
.sticky-layout__list { display: flex; flex-direction: column; }
.muted-line { display: block; color: var(--ink-subtle); }

.list-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: var(--sp-8) 0;
  border-bottom: var(--border);
}
.list-row:first-child { padding-top: 0; }
.list-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
}
.list-row__body { color: var(--ink-subtle); margin-top: var(--sp-2); max-width: 56ch; }
@media (max-width: 860px) {
  .sticky-layout { grid-template-columns: 1fr; gap: var(--sp-8); }
  .sticky-layout__pin { position: static; }
}

/* ---- Engine tiles (bento) ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(160px, auto);
  grid-auto-flow: dense;
  gap: var(--sp-3);
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-6);
  background: var(--surface-2);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--edge);
  transition: background-color 200ms ease, border-color 200ms ease;
}
.cat-card::after {
  content: "";
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 18px;
  height: 18px;
  background: var(--ink-subtle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.6;
  transition: opacity 200ms ease, transform 220ms var(--ease-out), background-color 200ms ease;
}
.cat-card__code {
  font-size: 13px;
  font-weight: 600;
  color: var(--red-text);
}
.cat-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
}
.cat-card__body { color: var(--ink-subtle); font-size: 14.5px; line-height: 1.55; }
.cat-card--lg {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  padding: var(--sp-8);
}
.cat-card--lg::after { top: var(--sp-8); right: var(--sp-8); }
.cat-card--lg .cat-card__title { font-size: clamp(36px, 4vw, 52px); }
.cat-card--lg .cat-card__body { font-size: 16px; max-width: 34ch; }
.cat-card--wide { grid-column: span 2; }
@media (hover: hover) and (pointer: fine) {
  .cat-card:hover { background: var(--surface-3); border-color: var(--hairline-strong); }
  .cat-card:hover::after { opacity: 1; background: var(--red-text); transform: translate(2px, -2px); }
}
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cat-card--lg, .cat-card--wide { grid-column: span 1; grid-row: span 1; }
  .cat-card--lg { padding: var(--sp-6); min-height: 200px; }
  .cat-card--lg::after { top: var(--sp-6); right: var(--sp-6); }
  .cat-card--lg .cat-card__title { font-size: 34px; }
}

/* ---- Equipment types: photo + list of applications ---- */
.equip-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-12);
  align-items: stretch;
}
.equip-split__media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}
.equip-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 55%;
}
.equip-grid { border-top: var(--border); }
.equip-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: var(--sp-6);
  row-gap: var(--sp-1);
  align-items: center;
  padding: var(--sp-5) var(--sp-3);
  border-bottom: var(--border);
  transition: background-color 200ms ease;
}
.equip-cell::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  background: var(--ink-subtle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
}
.equip-cell__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
  transition: color 200ms ease;
}
.equip-cell__body { color: var(--ink-subtle); font-size: 15px; line-height: 1.55; }
@media (hover: hover) and (pointer: fine) {
  .equip-cell:hover { background: var(--surface-1); }
  .equip-cell:hover .equip-cell__title { color: var(--red-text); }
  .equip-cell:hover::after { background: var(--red-text); transform: translateX(3px); }
}
@media (max-width: 900px) {
  .equip-split { grid-template-columns: 1fr; gap: var(--sp-8); }
  .equip-split__media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---- Process steps (a real sequence, so numbered) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  counter-reset: none;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: var(--sp-6); } }
.step {
  padding-top: var(--sp-5);
  border-top: var(--border);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--red);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  margin-top: var(--sp-4);
}
.step__body { color: var(--ink-subtle); font-size: 15px; margin-top: var(--sp-2); }

/* ---- Stats band ---- */
.stats-wrap { border-top: var(--border); border-bottom: var(--border); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats__item {
  padding: var(--sp-4) var(--sp-6);
  border-left: var(--border);
}
.stats__item:first-child { border-left: none; padding-left: 0; }
.stats__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 60px);
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats__label {
  margin-top: var(--sp-3);
  color: var(--ink-subtle);
  font-size: 14.5px;
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-8); }
  .stats__item { padding: 0 var(--sp-4); }
  .stats__item:nth-child(odd) { border-left: none; padding-left: 0; }
}

/* ---- CTA banner ---- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--surface-1);
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--edge);
  padding: var(--sp-12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.cta-banner__title { max-width: 40ch; }
.cta-banner .lede { margin-top: var(--sp-3); }
@media (max-width: 640px) {
  .cta-banner { padding: var(--sp-8) var(--sp-6); }
  .cta-banner .btn { width: 100%; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--canvas);
  border-top: var(--border);
  color: var(--ink-subtle);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
  border-bottom: var(--border);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col > .brand-mark { margin-bottom: var(--sp-4); }
.footer-col > p { max-width: 34ch; }
.footer-col h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a, .footer-col p { font-size: 14.5px; color: var(--ink-subtle); }
.footer-col a { transition: color 150ms ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-subtle);
}
.site-footer .brand-mark { color: var(--ink); }

/* ---- Page header (inner pages) ---- */
.page-header {
  background: var(--canvas);
  border-bottom: var(--border);
  padding: var(--sp-20) 0 var(--sp-16);
}
.page-header .lede { margin-top: var(--sp-6); }
@media (max-width: 640px) {
  .page-header { padding: var(--sp-12) 0 var(--sp-12); }
}

/* ---- Contact page ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--sp-10); }
}
.contact-info--pinned { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) {
  .contact-info--pinned { position: static; }
}
.contact-info dl {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.contact-info dl > div {
  padding: var(--sp-5) 0;
  border-bottom: var(--border);
}
.contact-info dl > div:first-child { padding-top: 0; }
.contact-info dt {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-subtle);
}
.contact-info dd {
  margin: var(--sp-1) 0 0;
  font-size: 16px;
  line-height: 1.55;
}
.contact-info dd a {
  text-decoration: underline;
  text-decoration-color: var(--red-ring);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.contact-info dd a:hover { color: var(--red-text); text-decoration-color: currentColor; }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
.field label .req { color: var(--red-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  background: var(--canvas);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #7d7d84; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396969c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.field select option { background: var(--surface-1); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .field input:hover,
  .field select:hover,
  .field textarea:hover { border-color: #4a4a51; }
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-ring);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-col { display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 24px); }

/* Segmented control for the two request types */
.form-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
  padding: var(--sp-1);
  margin-bottom: var(--sp-3);
  background: var(--surface-1);
  border: var(--border);
  border-radius: calc(var(--r-sm) + 4px);
}
.form-tab {
  min-height: 42px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-subtle);
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .form-tab:not(.is-active):hover { color: var(--ink); }
}
.form-tab.is-active {
  background: var(--surface-3);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.quote-form {
  display: grid;
  gap: var(--sp-5);
  background: var(--surface-1);
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--edge);
  padding: var(--sp-8);
}
@media (max-width: 560px) { .quote-form { padding: var(--sp-5); } }
.quote-form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 460px) { .form-row { grid-template-columns: 1fr; } }
.quote-form .btn { margin-top: var(--sp-2); min-height: 50px; font-size: 16px; }
.form-note {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--red-ring);
  border-radius: var(--r-sm);
  background: var(--red-tint);
  font-size: 14.5px;
  color: var(--ink);
}

/* ---- About page specifics ---- */
.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 900px) { .story-layout { grid-template-columns: 1fr; gap: var(--sp-10); } }
.story-layout .h-2 + p { margin-top: var(--sp-6); }
.story-layout p { max-width: 62ch; color: var(--ink-muted); }
.story-layout p.body-lg { color: var(--ink); }
.story-layout p + p { margin-top: var(--sp-4); }
.sticky-facts {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
@media (max-width: 900px) { .sticky-facts { position: static; } }
.pull-fact {
  padding-top: var(--sp-5);
  border-top: var(--border);
}
.pull-fact__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.pull-fact__label { color: var(--ink-subtle); margin-top: var(--sp-3); font-size: 15px; max-width: 36ch; }

.spec-card {
  background: var(--surface-1);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--edge);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.spec-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}
.spec-card__body { color: var(--ink-subtle); font-size: 15px; }
.spec-card__body strong { display: block; color: var(--ink); font-weight: 500; }

/* Photo set — three framed images with captions */
.photo-fan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.photo-fan__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.photo-fan__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
  border: var(--border);
  filter: saturate(0.85);
}
.photo-fan__caption { font-size: 14px; color: var(--ink-subtle); }
@media (max-width: 700px) {
  .photo-fan { grid-template-columns: 1fr 1fr; }
  .photo-fan__item:first-child { grid-column: 1 / -1; }
  .photo-fan__item:first-child img { aspect-ratio: 16 / 10; }
}

/* ---- FAQ ---- */
.faq-list { border-top: var(--border); max-width: 860px; }
.faq-item { border-bottom: var(--border); }
.faq-item summary {
  cursor: pointer;
  padding: var(--sp-6) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  transition: color 150ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background:
    linear-gradient(var(--ink-muted), var(--ink-muted)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--ink-muted), var(--ink-muted)) center / 1.5px 11px no-repeat;
  transition: transform 240ms var(--ease-out), border-color 150ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { color: var(--red-text); }
}
.faq-item__body {
  padding: 0 var(--sp-12) var(--sp-6) 0;
  color: var(--ink-subtle);
  max-width: 68ch;
}

/* ---- Scroll reveal (used once: the stats band, which also starts the counters) ---- */
[data-reveal] {
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
[data-reveal].is-pending { opacity: 0; transform: translateY(12px); }
[data-reveal][data-visible] { opacity: 1; transform: none; }

:where([data-reveal-group]) > * {
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
[data-reveal-group].is-pending > * { opacity: 0; transform: translateY(10px); }
[data-reveal-group][data-visible] > * { opacity: 1; transform: none; }
[data-reveal-group] > *:nth-child(2) { transition-delay: 70ms; }
[data-reveal-group] > *:nth-child(3) { transition-delay: 140ms; }
[data-reveal-group] > *:nth-child(4) { transition-delay: 210ms; }
