:root {
  color-scheme: light;
  --red: #b5121b;
  --red-dark: #8f0d15;
  --ink: #171717;
  --ink-soft: #383838;
  --muted: #646464;
  --paper: #ffffff;
  --warm: #f5f3ef;
  --line: #dedbd5;
  --container: 1220px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  transform: translateY(-180%);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #111; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner, .hero-inner, .service-strip, .section, .contact-inner, .site-footer {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.brand {
  width: max-content;
  display: flex;
  flex-direction: column;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
}

.brand-name {
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.035em;
}

.brand-tagline {
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
}

.primary-nav { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 38px); }

.primary-nav a {
  position: relative;
  padding-block: 14px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--red);
  content: "";
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 21px;
  border: 2px solid var(--red);
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 0.91rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button svg { width: 22px; height: 22px; fill: currentColor; }
.button:hover { border-color: var(--red-dark); background: var(--red-dark); transform: translateY(-1px); }
.button-small { min-height: 44px; padding: 10px 20px; }
.button-outline { background: transparent; color: var(--red); }
.button-outline:hover { color: #fff; }

.hero { position: relative; background: #fff; }

.hero-inner {
  position: relative;
  width: 100%;
  min-height: clamp(410px, 31vw, 520px);
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 42%;
  max-width: 660px;
  margin-left: 58%;
  padding: 30px clamp(24px, 3vw, 48px) 30px 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 3.65vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1 span { display: block; }
.hero h1 { text-wrap: initial; }
.hero h1::after { display: block; width: 58px; height: 3px; margin-top: 18px; background: var(--red); content: ""; }

.hero-lead {
  max-width: 480px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

.text-link span { color: var(--red); font-size: 1.2rem; }

.hero-media {
  position: absolute;
  inset: 0 auto 0 0;
  width: 59%;
  margin: 0;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 72%, #fff 100%);
  content: "";
  pointer-events: none;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-block: 1px solid var(--line); }

.service-strip span {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 20px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 750;
  text-align: center;
}

.service-strip span + span { border-left: 1px solid var(--line); }
.service-strip svg { width: 22px; height: 22px; flex: 0 0 auto; fill: var(--red); }

.section { padding-block: clamp(72px, 9vw, 118px); scroll-margin-top: 76px; }
.section-tinted { position: relative; }

.section-tinted::before {
  position: absolute;
  z-index: -1;
  inset: 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(125deg, rgba(181, 18, 27, 0.025), transparent 38%), var(--warm);
  content: "";
}

.section-heading { margin-bottom: clamp(34px, 5vw, 58px); }

.section-heading h2, .engine-copy h2, .about-copy h2, .contact-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.3vw, 4.1rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading > p, .section-heading-split > p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }

.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 56px;
}

.section-heading-split h2 { margin-bottom: 0; }
.section-heading-split > p { max-width: 470px; margin: 0 0 5px auto; }
.section-heading-centred { max-width: 780px; margin-inline: auto; text-align: center; }
.section-heading-centred > p:last-child { max-width: 660px; margin-inline: auto; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.models { width: min(calc(100% - 40px), 1460px); margin: 12px auto 0; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.model-card {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 24px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: linear-gradient(#fff, #fafafa);
}

.model-card h3 { margin: 0; font-size: clamp(0.9rem, 1.55vw, 1.4rem); font-weight: 850; line-height: 1.1; text-transform: uppercase; }
.model-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-height: 116px;
  background-image: url("assets/model-cars.webp");
  background-repeat: no-repeat;
  background-size: 300% auto;
  background-position: left center;
}
.model-art-sprint { background-position: center; }
.model-art-33 { background-position: right center; }

.parts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.part-card {
  min-height: 235px;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.part-card:hover { transform: translateY(-3px); border-color: rgba(181, 18, 27, 0.42); box-shadow: 0 16px 35px rgba(30, 26, 23, 0.07); }
.part-card svg { width: 42px; height: 42px; margin-bottom: 32px; fill: none; stroke: var(--red); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.part-card h3 { margin-bottom: 9px; font-size: 1.12rem; line-height: 1.25; }
.part-card p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.parts-note { max-width: 720px; margin: 28px auto 0; color: var(--muted); font-size: 0.93rem; text-align: center; }
.parts-note strong { color: var(--ink); }

.engine-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  overflow: hidden;
  border-radius: 8px;
  background: #191919;
  color: #fff;
  box-shadow: 0 24px 60px rgba(16, 16, 16, 0.14);
}

.engine-media { min-height: 100%; margin-bottom: 0; background: #111; }
.engine-media img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.engine-copy { padding: clamp(42px, 6vw, 82px); }
.engine-copy .eyebrow, .contact-intro .eyebrow { color: #ff858b; }
.engine-copy h2 { max-width: 570px; }
.engine-copy > p:not(.eyebrow) { max-width: 620px; color: #d2d2d2; font-size: 1.02rem; }

.tick-list { display: grid; gap: 13px; margin: 28px 0 34px; padding: 0; list-style: none; }
.tick-list li { position: relative; padding-left: 29px; color: #f3f3f3; font-size: 0.92rem; }
.tick-list li::before { position: absolute; top: 0.1em; left: 0; color: #ff858b; content: "✓"; font-weight: 900; }
.button-light { border-color: #fff; background: #fff; color: var(--ink); }
.button-light:hover { border-color: #ececec; background: #ececec; color: var(--ink); }

.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); align-items: start; gap: clamp(52px, 8vw, 112px); }
.about-copy h2 { max-width: 700px; }
.about-copy > p:not(.eyebrow) { max-width: 700px; color: var(--ink-soft); font-size: 1.02rem; }

.process-card { padding: clamp(32px, 4vw, 48px); border-top: 5px solid var(--red); background: var(--warm); }
.process-card h3 { margin-bottom: 30px; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.15; }
.process-card ol { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.process-card li { display: grid; grid-template-columns: 38px 1fr; gap: 15px; }
.process-card li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 0.78rem; font-weight: 900; }
.process-card strong, .process-card small { display: block; }
.process-card strong { margin-bottom: 3px; font-size: 0.96rem; }
.process-card small { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

.contact-section {
  padding-block: clamp(68px, 8vw, 104px);
  scroll-margin-top: 76px;
  background: linear-gradient(115deg, rgba(181, 18, 27, 0.97), rgba(143, 13, 21, 0.98)), var(--red);
  color: #fff;
}

.contact-inner { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr); gap: clamp(48px, 8vw, 110px); }
.contact-intro h2 { max-width: 500px; }
.contact-intro > p:last-child { max-width: 480px; margin-bottom: 0; color: rgba(255, 255, 255, 0.84); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, 0.32); border-left: 1px solid rgba(255, 255, 255, 0.32); }

.contact-grid a {
  position: relative;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 23px 54px 23px 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  text-decoration: none;
  transition: background 160ms ease;
}

.contact-grid a:hover { background: rgba(255, 255, 255, 0.1); }
.contact-label { margin-bottom: 8px; color: rgba(255, 255, 255, 0.9); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-grid strong { overflow-wrap: anywhere; font-size: 0.93rem; line-height: 1.35; }
.contact-arrow { position: absolute; top: 50%; right: 22px; transform: translateY(-50%); font-size: 1.5rem; }
.contact-detail { grid-column: 2; margin: 22px 0 0; color: rgba(255, 255, 255, 0.84); font-size: 0.78rem; letter-spacing: 0.025em; }

.site-footer { padding-block: 46px 34px; }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.brand-footer .brand-name { font-size: 1.35rem; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 26px; color: var(--ink-soft); font-size: 0.85rem; }
.footer-contact a { font-weight: 750; text-underline-offset: 3px; }
.footer-small { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 25px; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }
.footer-small p { max-width: 600px; margin-bottom: 0; }
.footer-small a { text-underline-offset: 3px; }
.mobile-action-bar { display: none; }

.error-page { min-height: calc(100vh - 180px); display: grid; place-items: center; padding-block: 70px; text-align: center; }
.error-page > div { max-width: 720px; }
.error-page h1 { margin-inline: auto; }
.error-page p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); font-size: 1.1rem; }

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .hero-copy { width: 47%; margin-left: 53%; padding-right: 20px; }
  .hero-media { width: 57%; }
  .hero h1 { font-size: clamp(2.25rem, 4.3vw, 2.7rem); }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-inline: 12px; font-size: 0.83rem; }
  .section-heading-split, .about, .contact-inner { grid-template-columns: 1fr; }
  .section-heading-split { gap: 20px; }
  .section-heading-split > p { max-width: 700px; margin-left: 0; }
  .parts-grid { grid-template-columns: 1fr 1fr; }
  .engine-panel { grid-template-columns: 1fr; }
  .engine-media img { min-height: 0; max-height: 520px; }
  .about { gap: 46px; }
  .process-card { max-width: 700px; }
  .contact-inner { gap: 40px; }
  .contact-intro { max-width: 700px; }
  .contact-detail { grid-column: auto; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .header-inner, .hero-inner, .service-strip, .section, .contact-inner, .site-footer { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 70px; gap: 14px; }
  .brand-name { font-size: 1.12rem; }
  .brand-tagline { display: none; }
  .button-small { min-height: 42px; padding: 9px 15px; font-size: 0.8rem; }
  .hero-inner { width: 100%; display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { order: 1; width: 100%; max-width: none; margin: -15px 0 0; padding: 0 22px 26px; }
  .hero h1 { max-width: 620px; margin-bottom: 18px; font-size: clamp(2.1rem, 7.8vw, 3.2rem); line-height: 1.05; }
  .hero h1::after { margin-top: 16px; }
  .hero-lead { margin-bottom: 24px; font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .button { min-height: 50px; padding-inline: 8px; }
  .hero-actions .button { width: 100%; }
  .text-link { margin-top: 17px; }
  .hero-media { position: relative; width: 100%; height: clamp(220px, 62vw, 380px); }
  .hero-media img { min-height: 0; object-position: center; }
  .hero-media::after { background: linear-gradient(to bottom, transparent 65%, #fff 100%); }
  .service-strip { grid-template-columns: 1fr; margin-top: 16px; }
  .service-strip span { min-height: 54px; justify-content: flex-start; padding: 12px 8px; text-align: left; }
  .service-strip span + span { border-top: 1px solid var(--line); border-left: 0; }
  .section { padding-block: 72px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2, .engine-copy h2, .about-copy h2, .contact-intro h2 { font-size: clamp(2.2rem, 11vw, 3.1rem); }
  .section-heading-centred { text-align: left; }
  .models { width: calc(100% - 28px); margin-top: 0; }
  .model-grid { gap: 6px; }
  .model-card { min-height: 0; grid-template-columns: 1fr; gap: 0; padding: 13px 4px 3px; text-align: center; }
  .model-card h3 { font-size: clamp(0.73rem, 2.8vw, 1rem); }
  .model-art { max-height: none; }
  .parts-grid { grid-template-columns: 1fr; gap: 10px; }
  .part-card { min-height: 0; display: grid; grid-template-columns: 48px 1fr; column-gap: 17px; padding: 23px 20px; }
  .part-card svg { grid-row: 1 / span 2; margin: 0; }
  .part-card h3 { margin: 1px 0 5px; }
  .part-card p { grid-column: 2; }
  .parts-note { text-align: left; }
  .engine-panel { margin-inline: -14px; border-radius: 0; box-shadow: none; }
  .engine-media img { min-height: 280px; object-position: center; }
  .engine-copy { padding: 38px 24px 44px; }
  .engine-copy .button { width: 100%; }
  .about { gap: 36px; }
  .process-card { margin-inline: -14px; padding: 32px 24px; }
  .contact-section { padding-block: 64px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid a { min-height: 96px; }
  .footer-main { display: grid; gap: 28px; }
  .footer-contact { display: grid; justify-content: start; gap: 10px; }
  .footer-small { grid-template-columns: 1fr; gap: 15px; }
  .mobile-action-bar {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    gap: 7px;
    border-top: 1px solid rgba(23, 23, 23, 0.16);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 30px rgba(23, 23, 23, 0.12);
    backdrop-filter: blur(12px);
  }
  .mobile-action-bar a { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 4px; background: var(--red); color: #fff; font-size: 0.84rem; font-weight: 850; text-decoration: none; }
  .mobile-action-bar a:last-child { background: #1d6f3d; }
  .mobile-action-bar svg { width: 20px; height: 20px; fill: currentColor; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1rem; }
  .button-small { padding-inline: 12px; }
  h1 { font-size: 2.45rem; }
}

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

@media print {
  .site-header, .mobile-action-bar, .hero-actions, .text-link { display: none !important; }
  body { padding: 0; }
  .section, .contact-section { padding-block: 28px; }
}
