@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
/* Rassey Industries — site styles
   Palette taken from the logo (cobalt) and the shop floor (steel, aluminum). */
:root {
  --ink: #16202b;
  --steel: #56616d;
  --line: #cfd5db;
  --alu: #eef1f4;
  --paper: #ffffff;
  --cobalt: #232f96;
  --cobalt-dark: #19226f;
  --dykem: #2f4fd0;
  --brass: #a77a2c;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;

  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--dykem); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--dykem); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.1;
  font-weight: 700;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--steel); max-width: 60ch; }
.measure { max-width: 66ch; }
.muted { color: var(--steel); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alu { background: var(--alu); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 2px solid var(--cobalt); border-radius: var(--radius);
  background: var(--cobalt); color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--cobalt); }
.btn--ghost:hover { background: var(--cobalt); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--cobalt); }
.btn--light:hover { background: var(--alu); border-color: var(--alu); color: var(--cobalt-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { flex: none; display: block; }
.brand img { height: 58px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; white-space: nowrap; }
.nav a {
  display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--cobalt); }
.nav a[aria-current="page"] { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.header-phone:hover { color: var(--cobalt); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 48px; height: 48px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 1240px) {
  .header-phone { display: none; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--alu); font-size: 1.125rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--alu); }
  .nav .nav-mobile-extra { display: block; padding-top: 16px; }
  .nav .nav-mobile-extra a { border: 0; }
}
.nav-mobile-extra { display: none; }

/* Home hero */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: end; padding-bottom: clamp(32px, 4vw, 56px); }
.hero h1 { margin: 0; max-width: 20ch; }
.hero__aside p { color: var(--steel); font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; gap: 20px; } }

.plate { position: relative; background: #e9e7e3; }
.plate img { width: 100%; aspect-ratio: 1920 / 400; object-fit: cover; }
.plate__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plate__lines line { stroke: var(--cobalt); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.marker { position: absolute; width: 14px; height: 14px; border: 2px solid #fff; background: var(--cobalt); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--cobalt); }
.plate__lines circle { fill: none; stroke: var(--cobalt); stroke-width: 2; vector-effect: non-scaling-stroke; }
.callout {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--cobalt); color: #fff; font-size: var(--step--1); font-weight: 600;
  padding: 6px 10px; border-radius: 2px; white-space: nowrap; line-height: 1.2;
}
@media (max-width: 760px) {
  .plate img { aspect-ratio: 16 / 9; object-position: 20% 50%; }
  .plate__lines, .callout, .marker { display: none; }
}

/* Dimension-line facts: the site's signature element */
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; padding-block: 40px 8px; }
.dim { text-align: center; }
.dim__rule {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 44px; border-inline: 1px solid var(--steel);
}
.dim__rule::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--steel);
}
.dim__rule::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; transform: translateY(-50%);
  background:
    conic-gradient(from 60deg at 0 50%, var(--steel) 0 60deg, transparent 0) left center / 10px 10px no-repeat,
    conic-gradient(from 240deg at 100% 50%, var(--steel) 0 60deg, transparent 0) right center / 10px 10px no-repeat;
}
.dim__value {
  position: relative; z-index: 1; padding-inline: 12px; background: var(--paper);
  font-size: var(--step-2); font-weight: 700; font-variation-settings: "wdth" 118; font-stretch: 118%;
  line-height: 1.1; color: var(--ink); white-space: nowrap;
}
.dim__label { display: block; color: var(--steel); font-size: var(--step--1); margin-top: 6px; }
@media (max-width: 760px) { .dims { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .dim__value { font-size: 1.25rem; padding-inline: 8px; } }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--wide-left { grid-template-columns: 7fr 5fr; }
.split--wide-right { grid-template-columns: 5fr 7fr; }
.split--center { align-items: center; }
@media (max-width: 860px) { .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; } }

.photo { border-radius: var(--radius); overflow: hidden; background: var(--alu); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.caption { font-size: var(--step--1); color: var(--steel); margin-top: 8px; }

/* Parts mosaic on home */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mosaic a { display: block; aspect-ratio: 1; overflow: hidden; background: #ecebe8; border-radius: 2px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* Capability list */
.caps { list-style: none; border-top: 1px solid var(--line); }
.caps li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.caps h3 { margin: 0; font-size: 1.125rem; }
.caps h3 a { color: var(--ink); text-decoration: none; }
.caps h3 a:hover { color: var(--cobalt); text-decoration: underline; }
.caps p { grid-column: 1 / -1; margin: 0; color: var(--steel); font-size: 1rem; }
.caps .count { color: var(--steel); font-size: var(--step--1); white-space: nowrap; align-self: center; }

/* Checks */
.checks { list-style: none; display: grid; gap: 10px; margin: 0 0 1.5em; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg);
}

/* Certificate */
.cert { display: block; max-width: 300px; border: 1px solid var(--line); background: #fff; padding: 10px; border-radius: var(--radius); text-decoration: none; }
.cert img { width: 100%; }
.cert span { display: block; font-size: var(--step--1); color: var(--steel); margin-top: 8px; }
.cert:hover { border-color: var(--cobalt); }

/* Customer list */
.customers { list-style: none; columns: 4 150px; column-gap: 32px; }
.customers li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* CTA band */
.cta-band { background: var(--cobalt); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 5vw, 64px); }
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: #d9ddf5; max-width: 56ch; }

/* Interior page header */
.page-head { background: var(--alu); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(40px, 6vw, 72px); }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { margin: 0; }
.crumbs { font-size: var(--step--1); color: var(--steel); margin-bottom: 14px; }
.crumbs a { color: var(--steel); }
.band { background: #e9e7e3; }
.band img { width: 100%; aspect-ratio: 1920 / 400; object-fit: cover; }
@media (max-width: 760px) { .band img { aspect-ratio: 2 / 1; } }

/* Prose blocks */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }

/* Equipment */
.equip { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.equip-nav { position: sticky; top: 104px; }
.equip-nav h2 { font-size: 1rem; font-variation-settings: "wdth" 100; font-stretch: 100%; color: var(--steel); font-weight: 600; margin-bottom: 8px; }
.equip-nav ul { list-style: none; border-left: 2px solid var(--line); }
.equip-nav a {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0 7px 14px; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: .975rem;
}
.equip-nav a:hover { color: var(--cobalt); }
.equip-nav a.is-active { border-left-color: var(--cobalt); color: var(--cobalt); font-weight: 600; }
.equip-nav a span { color: var(--steel); font-weight: 400; }
.equip-group { margin-bottom: 56px; }
.equip-group h2 { font-size: var(--step-2); margin-bottom: 6px; }
.equip-group > p { color: var(--steel); max-width: 68ch; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec { width: 100%; border-collapse: collapse; font-size: 1rem; margin-top: 12px; }
.spec th, .spec td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font-size: var(--step--1); font-weight: 600; color: var(--steel); border-bottom: 2px solid var(--ink); }
.spec td.qty { width: 3.5em; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--cobalt); }
.spec td.make { width: 34%; font-weight: 600; }
.spec td.detail { color: var(--steel); }
.video-box { margin-top: 20px; max-width: 640px; }
.video-box video { width: 100%; background: #000; border-radius: var(--radius); }
@media (max-width: 900px) {
  .equip { grid-template-columns: 1fr; gap: 24px; }
  .equip-nav { position: static; }
  .equip-nav ul { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .equip-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin: 0; }
  .equip-nav a.is-active { border-color: var(--cobalt); }
}
@media (max-width: 560px) {
  .spec thead { display: none; }
  .spec tr { display: grid; grid-template-columns: 2.5em 1fr; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .spec td { border: 0; padding: 2px 0; }
  .spec td.make { width: auto; }
  .spec td.detail { grid-column: 2; }
}

/* Products gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; list-style: none; }
.gallery button {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; cursor: zoom-in;
  background: #f1f0ed; border-radius: 2px; overflow: hidden; padding: 10px;
}
.gallery img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: var(--step--1); color: var(--steel); padding-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.facts > div { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.facts h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.facts p { margin: 0; color: var(--steel); font-size: 1rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(14, 20, 28, .9); }
.lightbox__inner { position: fixed; inset: 0; display: grid; place-items: center; padding: 64px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; background: #fff; border-radius: 2px; }
.lightbox__cap { color: #fff; text-align: center; margin-top: 12px; font-size: 1rem; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__inner { padding: 64px 12px 88px; } .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 32px; list-style: none; }
.person__photo { aspect-ratio: 4 / 5; background: var(--alu); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; margin-bottom: 14px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person__initials { font-size: 3rem; font-weight: 700; font-variation-settings: "wdth" 118; color: var(--cobalt); opacity: .55; }
.person h3 { margin: 0 0 2px; font-size: 1.1875rem; }
.person p { margin: 0; color: var(--steel); }
.dept { list-style: none; border-top: 1px solid var(--line); }
.dept li { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dept strong { font-weight: 600; }
@media (max-width: 700px) { .dept li { grid-template-columns: 1fr; gap: 2px; } }

/* Careers */
.job { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); background: #fff; }
.job__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 24px; margin: 20px 0 28px; padding: 20px 0; border-block: 1px solid var(--line); }
.job__meta dt { font-size: var(--step--1); color: var(--steel); }
.job__meta dd { margin: 2px 0 0; font-weight: 600; }
.job h3 { margin-top: 1.2em; }
.job ul { padding-left: 1.2em; }
.job li { margin-bottom: 6px; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.contact-cards > div { padding: 24px 24px 24px 0; }
.contact-cards > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-cards h2 { font-size: 1.1875rem; margin-bottom: 8px; }
.contact-cards p { margin: 0 0 6px; }
@media (max-width: 800px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-cards > div, .contact-cards > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 1rem; }
.field .hint { font-weight: 400; color: var(--steel); font-size: var(--step--1); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #aab3bc; border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--dykem); outline-offset: 0; border-color: var(--dykem); }
.field input[type="file"] { font: inherit; font-size: 1rem; max-width: 100%; }
.form-error { color: #b42318; font-weight: 600; margin: 0; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--alu); }

/* Footer */
.site-footer { background: var(--ink); color: #c9d0d7; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-grid h2 { font-size: 1rem; color: #fff; font-variation-settings: "wdth" 100; font-stretch: 100%; font-weight: 600; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 12px; border-radius: var(--radius); margin-bottom: 16px; }
.footer-logo img { height: 40px; width: auto; }
.footer-base { border-top: 1px solid #2d3a47; padding-block: 20px; font-size: var(--step--1); color: #94a0ab; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } .gallery button { padding: 6px; } }

/* For Sale */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sale-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.sale-bar__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .95rem; min-height: 40px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.chip:hover { border-color: var(--cobalt); color: var(--cobalt); }
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.select { font: inherit; font-size: .95rem; min-height: 40px; padding: 8px 12px; border: 1px solid #aab3bc; border-radius: var(--radius); background: #fff; color: var(--ink); }
.sale-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 32px 24px; }
.sale-card { display: flex; flex-direction: column; min-width: 0; }
.sale-card__open { display: block; padding: 0; border: 0; background: none; cursor: pointer; width: 100%; }
.sale-card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--alu); border-radius: var(--radius); overflow: hidden; }
.sale-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.sale-card__open:hover img { transform: scale(1.03); }
.sale-card__nophoto { display: grid; place-items: center; width: 100%; height: 100%; color: var(--steel); font-size: .95rem; background: var(--alu); }
.sale-card__count { position: absolute; right: 8px; bottom: 8px; background: rgba(22,32,43,.78); color: #fff; font-size: .8rem; padding: 3px 8px; border-radius: 2px; }
.badge { position: absolute; left: 8px; top: 8px; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 2px; color: #fff; background: var(--steel); }
.badge--pending { background: var(--brass); }
.badge--sold { background: #b42318; }
.sale-card.is-sold .sale-card__img img { filter: grayscale(1); opacity: .7; }
.sale-card__body { padding-top: 12px; }
.sale-card__ref { font-size: var(--step--1); color: var(--steel); margin: 0 0 4px; }
.sale-card h3 { font-size: 1.125rem; margin: 0 0 4px; }
.linklike { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.linklike:hover { color: var(--cobalt); text-decoration: underline; }
.sale-card__spec { color: var(--steel); font-size: .95rem; margin: 0 0 6px; }
.sale-card__price { font-weight: 700; font-size: 1.25rem; font-variation-settings: "wdth" 112; font-stretch: 112%; color: var(--cobalt); margin: 0; font-variant-numeric: tabular-nums; }
.sale-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--steel); }

.sale-dialog { border: 0; padding: 0; border-radius: 6px; width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
.sale-dialog::backdrop { background: rgba(14, 20, 28, .75); }
.sd-wrap { position: relative; display: grid; grid-template-columns: 3fr 2fr; gap: 0; }
.sd-media { background: #101820; padding: 16px; min-width: 0; }
.sd-main { height: min(62vh, 620px); display: grid; place-items: center; }
.sd-main img { max-width: 100%; max-height: min(62vh, 620px); object-fit: contain; }
.sd-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.sd-thumbs button { flex: none; width: 72px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 2px; overflow: hidden; cursor: pointer; background: #000; opacity: .7; }
.sd-thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.sd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sd-info { padding: 28px 28px 24px; min-width: 0; overflow-y: auto; max-height: calc(100vh - 32px); }
.sd-ref { font-size: var(--step--1); margin: 0 0 6px; }
.sd-title { font-size: var(--step-2); margin-bottom: 8px; }
.sd-price { font-size: 1.6rem; font-weight: 700; color: var(--cobalt); font-variation-settings: "wdth" 112; font-stretch: 112%; margin-bottom: 12px; }
.sd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 16px 0 24px; padding: 16px 0; border-block: 1px solid var(--line); }
.sd-specs dt { font-size: var(--step--1); color: var(--steel); }
.sd-specs dd { margin: 2px 0 0; font-weight: 600; }
.sd-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
@media (max-width: 820px) {
  .sd-wrap { grid-template-columns: 1fr; }
  .sale-dialog { max-height: calc(100vh - 16px); overflow-y: auto; width: calc(100vw - 16px); }
  .sd-main { height: 52vh; }
  .sd-main img { max-height: 52vh; }
  .sd-info { max-height: none; overflow: visible; padding: 20px 16px; }
  .sd-close { top: 8px; right: 8px; }
}

/* Part capability check */
.pc-callout { background: var(--cobalt); color: #fff; }
.pc-callout .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.pc-callout p { margin: 0; color: #e3e6f7; }
.pc-callout strong { color: #fff; }
.pc-callout .btn { background: #fff; border-color: #fff; color: var(--cobalt); }
.pc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .pc { grid-template-columns: 1fr; } }
.pc-form { display: grid; gap: 28px; }
.pc-group { border: 0; margin: 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.pc-group legend { font-weight: 700; font-size: 1.125rem; font-variation-settings: "wdth" 112; font-stretch: 112%; padding: 0; margin-bottom: 12px; }
.pc-group legend .hint { font-weight: 400; font-size: var(--step--1); color: var(--steel); font-variation-settings: "wdth" 100; font-stretch: 100%; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 16px; border: 1px solid #aab3bc; border-radius: var(--radius); background: #fff; font-size: 1rem; }
.seg input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--dykem); outline-offset: 2px; }
.seg--small span { padding: 6px 12px; font-size: .9rem; }
.seg--small { margin-bottom: 16px; }
.pc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.pc-fields--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 600px) { .pc-fields, .pc-fields--3 { grid-template-columns: 1fr 1fr; } }
.field input[type="number"], .field select.select { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #aab3bc; border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input[type="number"]:focus { outline: 2px solid var(--dykem); outline-offset: 0; border-color: var(--dykem); }
.pc-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.pc-checks label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.pc-checks input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--cobalt); flex: none; }
@media (max-width: 600px) { .pc-checks { grid-template-columns: 1fr; } }
.pc-drawing { display: block; width: 100%; max-width: 420px; margin-top: 20px; color: var(--steel); background: var(--alu); border-radius: var(--radius); }
.pc-part { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.pc-center { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 10 3 2 3; }
.pc-dim { stroke: var(--steel); stroke-width: 1; }
.pc-ext { stroke: var(--steel); stroke-width: .75; }
.pc-label { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--f-body); }
.pc-result { position: sticky; top: 104px; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.pc-result--yes { border-top-color: #1f7a3f; }
.pc-result--maybe { border-top-color: var(--brass); }
.pc-result--no { border-top-color: #b42318; }
.pc-result__eyebrow { font-size: var(--step--1); color: var(--steel); margin: 0 0 4px; }
.pc-result__title { font-size: var(--step-2); margin-bottom: 8px; }
.pc-result--yes .pc-result__title { color: #1f7a3f; }
.pc-result--maybe .pc-result__title { color: #8a6420; }
.pc-result--no .pc-result__title { color: #b42318; }
.pc-result h3 { font-size: 1rem; margin: 20px 0 8px; }
.pc-list, .pc-notes { list-style: none; display: grid; gap: 6px; font-size: .975rem; }
.pc-list li { padding-left: 16px; position: relative; }
.pc-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--cobalt); border-radius: 50%; }
.pc-notes li { color: var(--steel); padding-left: 16px; position: relative; }
.pc-notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--steel); }
.pc-result .btn-row { margin-top: 20px; }
.pc-fine { font-size: var(--step--1); color: var(--steel); margin: 12px 0 0; }
.pc-bar { margin-top: 12px; }
.pc-bar__top { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; margin-bottom: 4px; }
.pc-bar__top span:last-child { color: var(--steel); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-bar__track { height: 8px; background: var(--alu); border-radius: 4px; overflow: hidden; }
.pc-bar__track span { display: block; height: 100%; background: #1f7a3f; }
.pc-bar--near .pc-bar__track span { background: var(--brass); }
.pc-bar--over .pc-bar__track span { background: #b42318; }
@media (max-width: 900px) { .pc-result { position: static; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--cobalt); border-color: var(--cobalt); }

.pc-mini { display: none; }
@media (max-width: 900px) {
  .pc-mini:not([hidden]) {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    padding: 14px 16px; border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 600;
    background: var(--ink); box-shadow: 0 6px 20px rgba(22,32,43,.25);
  }
  .pc-mini.pc-mini--yes { background: #1f7a3f; }
  .pc-mini.pc-mini--maybe { background: #8a6420; }
  .pc-mini.pc-mini--no { background: #b42318; }
  .pc-mini b { font-weight: 600; text-decoration: underline; white-space: nowrap; }
}

.gallery__cap { font-size: .9rem; line-height: 1.35; color: var(--steel); margin: 8px 0 0; }

.band--photo img { aspect-ratio: 16 / 6; object-position: 50% 62%; }
@media (max-width: 760px) { .band--photo img { aspect-ratio: 4 / 3; } }

.about-facts { margin: 0; border-top: 2px solid var(--ink); }
.about-facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-facts dt { color: var(--steel); font-size: var(--step--1); padding-top: 2px; }
.about-facts dd { margin: 0; font-weight: 600; }

/* About: racing roots */
.history__lead { margin: 0; }
.history__lead img { width: 100%; border-radius: var(--radius); }
.history figcaption { font-size: var(--step--1); color: var(--steel); margin-top: 8px; }
.history__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.history__strip figure { margin: 0; }
.history__strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) { .history__strip { grid-template-columns: 1fr; } }
.section.history { padding-top: 0; }

/* Careers */
.jobs { display: grid; gap: 12px; margin-top: 24px; }
.jobcard { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.jobcard summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 20px 24px; }
.jobcard summary::-webkit-details-marker { display: none; }
.jobcard summary:hover .jobcard__title { color: var(--cobalt); }
.jobcard__dept { grid-column: 1; font-size: var(--step--1); color: var(--steel); }
.jobcard__title { grid-column: 1; font-weight: 700; font-size: var(--step-1); font-variation-settings: "wdth" 112; font-stretch: 112%; }
.jobcard__facts { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--steel); font-size: .95rem; }
.jobcard__facts span:first-child { color: var(--cobalt); font-weight: 700; }
.jobcard__more { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.jobcard__more::after { content: " +"; }
.jobcard details[open] .jobcard__more::after { content: " \2212"; }
.jobcard details[open] summary { border-bottom: 1px solid var(--line); }
.jobcard__body { padding: 20px 24px 28px; }
.jobcard__body > p { max-width: 70ch; }
.jobcard__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; margin-bottom: 20px; }
.jobcard h4 { font-size: 1rem; margin: 16px 0 8px; }
.jobcard ul { padding-left: 1.2em; margin: 0; }
.jobcard li { margin-bottom: 5px; font-size: .975rem; }
@media (max-width: 760px) { .jobcard__cols { grid-template-columns: 1fr; } .jobcard summary { padding: 16px; } .jobcard__body { padding: 16px; } }
.checks-inline { display: grid; gap: 10px; }
.checks-inline label { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; }
.checks-inline input { width: 18px; height: 18px; accent-color: var(--cobalt); }
.field select.select, .field input[type="number"] { width: 100%; }
