:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #151515;
  --line: #353430;
  --text: #f5f3ee;
  --muted: #c3c0b8;
  --accent: #f2d000;
  --font-body: "Satoshi", Arial, sans-serif;
  --font-display: "Clash Grotesk", "Satoshi", Arial, sans-serif;
  --sm: clamp(.8125rem, .77rem + .2vw, .9375rem);
  --base: clamp(.9375rem, .9rem + .18vw, 1.0625rem);
  --heading: clamp(1.75rem, 1.3rem + 2.1vw, 3rem);
  --hero: clamp(2.35rem, 1.46rem + 4.35vw, 5rem);
  --s2: .5rem;
  --s3: .75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --gutter: clamp(var(--s4), 4vw, var(--s10));
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/satoshi-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Clash Grotesk";
  src: url("assets/clash-grotesk-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--base)/1.58 var(--font-body);
}

/* Same Woehrle artwork as before, trimmed to the actual mark and sized to the viewport. */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url("assets/woehrle-racing-watermark.png") center / min(72vw, 760px) auto no-repeat;
  opacity: .095;
}

img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, p { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header {
  display: grid;
  justify-items: center;
  padding: clamp(var(--s8), 5vw, var(--s16)) var(--gutter) clamp(var(--s8), 4vw, var(--s12));
}

.brand {
  position: relative;
  display: block;
  width: min(100%, clamp(25rem, 66vw, 54rem));
  height: clamp(8.5rem, 20vw, 14rem);
  border-radius: 3px;
}
.brand-word { position: absolute; display: block; }
.brand-word img { width: 100%; height: auto; }
.brand-woehrle { left: 0; top: 0; width: 61%; }
.brand-racing { left: 36%; top: 43%; width: 59%; }
main { width: min(78rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.specialty {
  display: grid;
  justify-items: center;
  gap: clamp(var(--s6), 3vw, var(--s10));
  padding-block: var(--s2) clamp(var(--s8), 4.5vw, var(--s16));
  text-align: center;
}

.specialty h1 { display: grid; gap: var(--s2); }
.specialty-kicker {
  color: var(--accent);
  font: 800 clamp(1rem, .9rem + .45vw, 1.25rem)/1.25 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.specialty-kicker::before,
.specialty-kicker::after { content: none; }

.specialty-makes {
  color: var(--text);
  font: 600 clamp(1.125rem, 1rem + .7vw, 1.625rem)/1.2 var(--font-display);
}

.specialty-models {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(.45rem, 1.5vw, 1rem);
  font: 800 clamp(2.55rem, 2rem + 3.1vw, 4.4rem)/1 var(--font-display);
  letter-spacing: -.045em;
}
.model-box {
  display: inline-block;
  padding: .16em .34em .2em;
  border: 1px solid var(--accent);
  border-left: .12em solid var(--accent);
  background: linear-gradient(120deg, #1b1a12, #101010 70%);
  transform: skew(-8deg);
  box-shadow: 0 5px 18px rgb(0 0 0 / 22%);
}
.model-box > span { display: inline-block; transform: skew(8deg); }
.model-connector {
  color: var(--accent);
  font: 800 clamp(1rem, .9rem + .8vw, 1.5rem)/1 var(--font-display);
  letter-spacing: -.02em;
}
.specialty-description {
  color: var(--text);
  font: 800 clamp(1.2rem, 1rem + .8vw, 1.65rem)/1.35 var(--font-body);
}

.heritage-marks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 32rem);
  margin: 0;
  padding: var(--s3) 0;
  list-style: none;
  border-block: 1px solid var(--line);
}

.heritage-marks li { display: grid; place-items: center; min-width: 0; padding-inline: var(--s2); }
.heritage-marks li + li { border-left: 1px solid var(--line); }
.bombardier-mark, .brp-mark { width: clamp(2.65rem, 5.1vw, 3.9rem); }
.can-am-mark { width: min(100%, 8.6rem); max-height: 4.25rem; object-fit: contain; }

.netting-section { border-top: 2px solid var(--accent); padding-block: var(--s8) var(--s10); }
.netting-intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  align-items: start;
  gap: var(--s4) var(--s8);
  margin-bottom: var(--s6);
}

.netting-intro h2 {
  max-width: 15ch;
  font: 700 var(--heading)/1 var(--font-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.description { max-width: 68ch; color: var(--muted); }
.showcase {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: clamp(var(--s2), 2vw, var(--s5));
  align-items: start;
}

.chart-panel, .photo-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 89%, transparent);
  padding: clamp(var(--s2), 1.25vw, var(--s4));
}

.chart-panel { display: grid; justify-items: stretch; gap: var(--s4); text-align: center; }
.color-chart { max-width: 100%; width: 100%; }
.color-chart figcaption { margin-bottom: var(--s2); color: var(--text); font-weight: 700; }
.color-chart a { display: grid; justify-items: center; gap: var(--s2); color: var(--accent); font-size: var(--sm); text-underline-offset: 3px; }
.color-chart a:hover { color: var(--text); }
.chart-image { width: 100%; }
.chart-example { width: 100%; }
.chart-example img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.photo-pair figure {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.photo-pair img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.slide-dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; padding-top: var(--s2); }
.dot, .rotation-toggle { min-height: 44px; border: 0; cursor: pointer; background: transparent; color: var(--muted); }
.dot { display: grid; place-items: center; width: 36px; }
.dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8a8a82; }
.dot:hover::after { background: var(--text); }
.dot.active::after { background: var(--accent); outline: 1px solid var(--accent); outline-offset: 3px; }
.rotation-toggle { padding-inline: var(--s2); font-size: var(--sm); text-decoration: underline; text-underline-offset: 3px; }
.rotation-toggle:hover { color: var(--accent); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  padding: var(--s8) 0 var(--s10);
  border-top: 2px solid var(--accent);
}

.contact-links a {
  display: grid;
  place-items: center;
  min-height: 48px;
  min-width: min(10rem, 100%);
  padding: var(--s2) var(--s5);
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 900;
}

.contact-links a:hover { background: var(--text); border-color: var(--text); }
footer { padding: var(--s4) var(--gutter); text-align: center; color: var(--muted); font-size: var(--sm); border-top: 1px solid var(--line); }

@media (max-width: 800px) {
  body::before { background-size: min(88vw, 560px) auto; }
  .netting-intro { grid-template-columns: minmax(0, 1fr); }
  .netting-intro h2 { max-width: none; }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .brand { width: min(100%, 42rem); height: clamp(8rem, 27vw, 12rem); }
  .brand-woehrle { width: 64%; }
  .brand-racing { left: 38%; top: 42%; width: 60%; }
  .photo-pair { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .photo-pair figure { aspect-ratio: 4 / 3; }
}

@media (max-width: 440px) {
  .chart-panel { gap: var(--s2); }
  .chart-example { padding-top: var(--s2); }
  .dot { width: 28px; }
  .contact-links a { flex: 1 0 100%; }
}
