/* Hallmark · macrostructure: Stat-Led · genre: playful · theme: Sport · tone: matte-black sport, gold hood, sign colours · anchor hue: gold (~80deg) · nav: N7 Brutal slab · footer: Ft5 Statement */
@import url("tokens.css");

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
iframe { width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; text-transform: uppercase; overflow-wrap: anywhere; min-width: 0; }
time { font-variant-numeric: tabular-nums; }

a { color: var(--c-gold); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--c-text); }
a:active { color: var(--c-sign-yellow); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .timing-sheet__scroll:focus-visible {
  outline: 3px solid var(--c-sign-yellow);
  outline-offset: 3px;
}
a:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: var(--space-sm); top: -100px; background: var(--c-sign-yellow); color: var(--c-ink); padding: var(--space-2xs) var(--space-sm); font-weight: 700; z-index: 100; }
.skip-link:focus-visible { top: var(--space-sm); }

.marker { background: var(--c-sign-yellow); color: var(--c-ink); font-weight: 700; padding: 0 var(--space-3xs); }

/* ---- pace-note signs ---- */
.sign { width: 2.25rem; height: 2.25rem; flex: none; }
.sign--keltainen { color: var(--c-sign-yellow); }
.sign--punainen { color: var(--c-sign-red); }

/* ---- buttons: default, hover, focus-visible, active, disabled ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn--red { background: var(--c-sign-red); color: var(--c-ink); }
.btn--red:hover { background: var(--c-sign-yellow); color: var(--c-ink); }
.btn--red:active { background: var(--c-gold); color: var(--c-ink); }
.btn--line { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 2px var(--c-text); }
.btn--line:hover { background: var(--c-text); color: var(--c-ink); }
.btn--line:active { background: var(--c-gold); color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-gold); }
.btn:disabled { opacity: 0.5; }

/* ---- N7 brutal slab nav ---- */
.nav-slab {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--page-gutter);
  background: var(--c-ink);
  border-bottom: 2px solid var(--c-text);
}
.slab-mark { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--c-text); text-decoration: none; white-space: nowrap; }
.slab-mark:hover { color: var(--c-gold); }
.slab-mark__num { color: var(--c-sign-red); }
.slab-nav { display: none; margin-left: auto; }
.slab-nav__list { display: flex; gap: var(--space-xs); }
.slab-nav a {
  display: block;
  padding: var(--space-3xs) var(--space-2xs);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.slab-nav a:hover { color: var(--c-sign-yellow); }
.slab-nav a[aria-current="location"] { color: var(--c-sign-yellow); box-shadow: inset 0 -3px 0 var(--c-sign-red); }
.nav-cta { margin-left: auto; min-height: 44px; padding: var(--space-3xs) var(--space-sm); font-size: 1.125rem; }
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  min-width: 48px;
  min-height: 48px;
  background: transparent;
  color: var(--c-text);
  border: 2px solid var(--c-text);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.menu-toggle__bars { display: block; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.menu-toggle:hover { color: var(--c-sign-yellow); border-color: var(--c-sign-yellow); }
.menu-toggle:active { background: var(--c-gold); color: var(--c-ink); }
.menu-toggle[aria-expanded="true"] { background: var(--c-sign-yellow); color: var(--c-ink); border-color: var(--c-sign-yellow); }
.menu-toggle__label { display: none; }
.mobile-nav { display: none; }
.mobile-nav.active {
  display: block;
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  background: var(--c-ink);
  padding: var(--space-md) var(--page-gutter);
  z-index: 60;
}
.mobile-nav__list { display: grid; gap: var(--space-2xs); }
.mobile-nav a {
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 2px solid var(--c-rule);
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--c-sign-yellow); }
.mobile-nav a:active { color: var(--c-gold); }
.mobile-nav a[aria-current="location"] { color: var(--c-sign-yellow); }

/* desktop nav from 75rem (1200px); the toggle carries everything below */
@media (min-width: 75rem) {
  .slab-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}
@media (max-width: 74.99rem) {
  .nav-cta { display: none; }
}

/* ---- hero: Stat-Led, full-bleed photo, numeral + worded headline ---- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - 4.5rem), 60rem);
  overflow: hidden;
  background: var(--c-ink);
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 60%; z-index: -2; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--c-ink) 6%, var(--c-shade-strong) 55%, var(--c-shade-soft));
}
.hero__lights { position: absolute; top: var(--space-lg); right: var(--page-gutter); display: flex; gap: var(--space-2xs); }
.lamp { position: relative; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c-lamp-off); box-shadow: inset 0 0 0 2px var(--c-lamp-rim); }
.lamp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-sign-red);
  opacity: 0;
  animation: lamp-cycle calc(2.6s - var(--i, 0) * 0.4s) linear calc(var(--i, 0) * 0.4s) both;
}
.lamp:nth-child(1) { --i: 0; }
.lamp:nth-child(2) { --i: 1; }
.lamp:nth-child(3) { --i: 2; }
.lamp:nth-child(4) { --i: 3; }
.lamp:nth-child(5) { --i: 4; }
@keyframes lamp-cycle {
  0% { opacity: 0; }
  1% { opacity: 1; }
  99% { opacity: 1; }
  100% { opacity: 0; }
}
.hero__body {
  position: relative;
  width: 100%;
  max-width: 72rem;
  padding: var(--space-lg) var(--page-gutter) var(--space-2xl);
  min-width: 0;
}
.hero__figure {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.85;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hero__title { font-size: clamp(2.25rem, 5.5vw, 4.5rem); color: var(--c-text); margin-top: var(--space-sm); max-width: 24ch; }
.hero__title-sub { display: block; color: var(--c-sign-yellow); }
.hero__meta { margin-top: var(--space-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.hero__pitch { margin-top: var(--space-2xs); max-width: var(--measure); font-size: var(--text-lg); }
.hero .btn { margin-top: var(--space-md); }

/* ---- nuotti label: pace note with a skewed bar behind it ---- */
.nuotti { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-3xs) var(--space-lg) var(--space-3xs) var(--space-sm); background: var(--c-ink-3); clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text); }
.nuotti--punainen { background: var(--c-sign-red); color: var(--c-ink); }
.nuotti--punainen .sign { color: var(--c-ink); }
.nuotti--hero { font-size: 1.125rem; }

/* ---- sections ---- */
.section { position: relative; padding: var(--space-3xl) var(--page-gutter); border-top: 2px solid var(--c-rule); background: var(--c-ink); }
main > .section:nth-of-type(even) { background: var(--c-ink-2); }
.section--sponsor { border-top: 4px solid var(--c-sign-red); }
.section--yhteys { border-top: 4px solid var(--c-sign-red); }
.section__head { display: grid; gap: var(--space-sm); max-width: 60rem; margin-bottom: var(--space-xl); min-width: 0; }
.section__title { font-size: var(--text-h2); color: var(--c-text); }
.section__lede { max-width: var(--measure); color: var(--c-muted); font-size: var(--text-lg); }

/* ---- onboard: privacy facades ---- */
.yt-facade-wrap { position: relative; }
.yt-facade { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-ink-3); text-decoration: none; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.yt-facade__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-sign-red);
  color: var(--c-ink);
}
.yt-facade__play svg { width: 2.25rem; height: 2.25rem; }
.yt-facade:hover .yt-facade__play { background: var(--c-sign-yellow); }
.yt-facade:active .yt-facade__play { background: var(--c-gold); }
.yt-facade--featured .yt-facade__play { width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; }
.yt-facade--featured .yt-facade__play svg { width: 2.75rem; height: 2.75rem; }
.yt-facade__caption { margin-top: var(--space-xs); max-width: var(--measure); color: var(--c-muted); }
.yt-embed { position: relative; aspect-ratio: 16 / 9; background: var(--c-ink); }
.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.onboard-featured { display: grid; gap: var(--space-xs); }
.video-cards { display: grid; gap: var(--space-md); margin-top: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
.video-card { display: grid; gap: var(--space-2xs); min-width: 0; }
.video-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs); font-weight: 700; }
.video-card__title { overflow-wrap: anywhere; min-width: 0; }
.video-card__dur { color: var(--c-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.playlist-row { margin-top: var(--space-xl); }
.playlist-link { display: inline-block; padding: var(--space-xs) var(--space-sm); box-shadow: inset 0 0 0 2px var(--c-gold); color: var(--c-gold); text-decoration: none; font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
.playlist-link:hover { background: var(--c-gold); color: var(--c-ink); }
.playlist-link:active { background: var(--c-sign-yellow); color: var(--c-ink); }

/* ---- team ---- */
.crew-grid { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); }
.crew { padding: var(--space-md); background: var(--c-ink-2); min-width: 0; }
.crew__role { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.crew__name { margin-top: var(--space-3xs); font-size: var(--text-h3); }
.crew__bio { margin-top: var(--space-xs); max-width: var(--measure); }

/* ---- auto ---- */
.auto-grid { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
.auto-hero { min-width: 0; }
.auto-hero img { width: 100%; height: auto; }
.auto-hero figcaption { margin-top: var(--space-2xs); color: var(--c-muted); font-size: var(--text-sm); }
.spec { display: grid; gap: 0; border-top: 2px solid var(--c-text); }
.spec__row { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr; gap: var(--space-sm); padding: var(--space-xs) 0; border-bottom: 1px solid var(--c-rule); min-width: 0; }
.spec dt { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); }
.spec dd { overflow-wrap: anywhere; min-width: 0; }
.engine-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 320px)); gap: var(--space-md); justify-content: start; }
.engine-strip__item { display: grid; gap: var(--space-2xs); justify-items: start; min-width: 0; }
.engine-strip__item img { width: auto; max-width: 100%; height: auto; }
.engine-strip__item span { color: var(--c-muted); font-size: var(--text-sm); }

/* ---- aikajana: split times ---- */
.splits { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); counter-reset: none; }
.split { display: grid; gap: var(--space-2xs); padding-top: var(--space-md); border-top: 2px solid var(--c-rule); min-width: 0; }
.split__time { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; color: var(--c-gold); font-variant-numeric: tabular-nums; }
.split--best .split__time { color: var(--c-sign-yellow); }
.split--now .split__time { color: var(--c-sign-red); }
.split__title { font-size: var(--text-h3); }
.split img { width: auto; max-width: 100%; height: auto; margin-top: var(--space-2xs); }

/* ---- kausi: stats + timing sheet ---- */
.stats { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: var(--space-xl); }
.stat { display: grid; gap: var(--space-3xs); padding: var(--space-md); background: var(--c-ink-3); border-top: 4px solid var(--c-gold); min-width: 0; }
.stat__value { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; color: var(--c-gold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat__label { color: var(--c-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--text-sm); }
.timing-sheet__scroll { max-width: 100%; overflow-x: auto; background: var(--c-ink); border: 2px solid var(--c-text); }
.timing-sheet { width: 100%; min-width: 48rem; border-collapse: collapse; font-size: var(--text-sm); }
.timing-sheet caption { padding: var(--space-xs) var(--space-sm); text-align: left; font-family: var(--font-display); font-size: var(--text-lg); text-transform: uppercase; letter-spacing: 0.04em; background: var(--c-ink-3); }
.timing-sheet th { padding: var(--space-xs) var(--space-sm); text-align: left; background: var(--c-text); color: var(--c-ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.timing-sheet td { padding: var(--space-xs) var(--space-sm); border-top: 1px solid var(--c-rule); vertical-align: top; overflow-wrap: anywhere; }
.timing-sheet td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.timing-sheet__row:nth-child(even) td { background: var(--c-ink-2); }
.timing-sheet__series { display: block; color: var(--c-muted); font-size: var(--text-sm); }
.dnf { color: var(--c-sign-red); font-weight: 700; text-transform: uppercase; }
.timing-sheet a { color: var(--c-gold); }
.source { margin-top: var(--space-sm); color: var(--c-muted); font-size: var(--text-sm); }

/* ---- sponsorointi ---- */
.why-grid { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-xl); }
.why { padding: var(--space-md); background: var(--c-ink-3); min-width: 0; }
.why__title { font-size: var(--text-h3); color: var(--c-sign-yellow); }
.why p { margin-top: var(--space-2xs); max-width: var(--measure); }
.why__photo { margin-top: var(--space-sm); }
.why__photo img { width: 100%; height: auto; }
.why__photo figcaption { margin-top: var(--space-3xs); color: var(--c-muted); font-size: var(--text-sm); }
.car-plan { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
.car-plan__figure { min-width: 0; }
.car { width: 100%; max-width: 30rem; height: auto; margin: 0 auto; }
.car__body { fill: none; stroke: var(--c-muted); stroke-width: 4; }
.paikka rect { stroke: var(--c-text); stroke-width: 2; }
.paikka--myytava rect { fill: var(--c-gold); }
.paikka--varattu rect { fill: var(--c-reserved-fill); stroke: var(--c-reserved-text); stroke-dasharray: 6 4; }
.car-plan__legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-sm); color: var(--c-muted); font-size: var(--text-sm); }
.swatch { display: inline-block; width: 1rem; height: 1rem; margin-right: var(--space-3xs); vertical-align: middle; }
.swatch--myytava { background: var(--c-gold); }
.swatch--varattu { background: var(--c-reserved-fill); box-shadow: inset 0 0 0 2px var(--c-reserved-text); }
.tiers { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); min-width: 0; }
.tier { padding: var(--space-md); background: var(--c-ink-2); border-top: 4px solid var(--c-gold); min-width: 0; }
.tier__name { font-size: var(--text-h3); }
.tier p { margin-top: var(--space-2xs); }
.tier__price { color: var(--c-muted); }
.reserved { padding: var(--space-md); border: 2px dashed var(--c-reserved-text); min-width: 0; }
.reserved__title { font-weight: 700; text-transform: uppercase; color: var(--c-reserved-text); }
.reserved__list { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-xs); }
.reserved__list li { padding: var(--space-3xs) var(--space-xs); background: var(--c-reserved-fill); color: var(--c-reserved-text); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- kumppanit ---- */
.partners { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(0, 16rem)); }
.partner a { display: grid; gap: var(--space-2xs); text-decoration: none; color: var(--c-text); min-width: 0; }
.partner a:hover .partner__name { color: var(--c-gold); }
.partner a:active .partner__name { color: var(--c-sign-yellow); }
.partner__tile { display: flex; align-items: center; justify-content: center; height: 9rem; padding: var(--space-sm); background: var(--c-text); }
.partner__tile img { width: auto; max-width: 100%; max-height: 100%; height: auto; }
.partner__name { font-family: var(--font-display); font-size: var(--text-lg); text-transform: uppercase; }

/* ---- yhteys form ---- */
.lead-form { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
.field { display: grid; gap: var(--space-3xs); min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--text-sm); }
.req { color: var(--c-sign-red); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-xs) var(--space-sm);
  background: var(--c-ink-3);
  color: var(--c-text);
  border: 2px solid var(--c-rule);
  border-radius: 0;
  font: inherit;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-gold); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--c-sign-yellow); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--c-sign-red); }
.field input[aria-invalid="true"] { border-color: var(--c-sign-red); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.5; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: var(--space-xs); justify-items: start; }
.form-note { color: var(--c-muted); font-size: var(--text-sm); }
.form-note a { color: var(--c-gold); }
.form-status { min-height: 1.5rem; font-weight: 700; }
.form-status[data-state="ok"] { color: var(--c-text); }
.form-status[data-state="error"] { color: var(--c-sign-red); }
.mailto { margin-top: var(--space-lg); color: var(--c-muted); }
.mailto-fallback { font-weight: 700; }

/* ---- footer: Ft5 statement ---- */
.site-footer { padding: var(--space-3xl) var(--page-gutter) var(--space-xl); background: var(--c-ink); border-top: 4px solid var(--c-sign-red); }
.statement { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1.04; text-transform: uppercase; color: var(--c-text); max-width: 18ch; }
.legal { margin-top: var(--space-xl); display: grid; gap: var(--space-2xs); color: var(--c-muted); font-size: var(--text-sm); }
.legal a { color: var(--c-gold); }

/* ---- legal prose pages ---- */
.section--legal .section__head { margin-bottom: var(--space-lg); }
.prose { max-width: var(--measure); display: grid; gap: var(--space-sm); }
.prose p { overflow-wrap: anywhere; }
.legal__h { margin-top: var(--space-md); font-size: var(--text-h3); color: var(--c-sign-yellow); }

/* ---- motion: everything off for reduced motion, final state shown ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- wider layouts ---- */
@media (min-width: 48rem) {
  .crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .splits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); }
  .lead-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions { grid-column: 1 / -1; }
  .video-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .auto-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .auto-hero { grid-row: span 2; }
  .car-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .video-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .splits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section__head { max-width: 60rem; }
}

/* ---- fix round: interaction states, input states, overflow safety ---- */
.slab-nav a:active { color: var(--c-gold); }
.menu-toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.field input, .field select, .field textarea { outline: 2px solid transparent; outline-offset: 1px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--c-sign-yellow); outline-offset: 1px; }
.field input:active, .field select:active, .field textarea:active { background: var(--c-ink-2); }
.field input:disabled, .field select:disabled, .field textarea:disabled { cursor: not-allowed; }
.field input[aria-disabled="true"], .field select[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.statement, .hero__figure, .split__time { overflow-wrap: anywhere; min-width: 0; }
.btn:active { transform: none; }
/* featured onboard poster never renders wider than its 960px intrinsic width */
.yt-facade-wrap { max-width: 60rem; }

/* ---- rev 3: auto spec, dyno chart (napadyno), portrait photos, partner note ---- */
.auto-specs { display: grid; gap: var(--space-xl); min-width: 0; }
.auto-hero--portrait img { width: 100%; max-width: 28rem; height: auto; }
.auto-hero--portrait { max-width: 28rem; }
.split__portrait { width: 100%; max-width: 16rem; height: auto; }
.partner__note { margin-top: var(--space-3xs); color: var(--c-muted); font-size: var(--text-sm); }
.dyno { min-width: 0; }
.dyno__chart { width: 100%; max-width: 40rem; height: auto; }
.dyno__frame line, .dyno__grid { stroke: var(--c-rule); stroke-width: 1; }
.dyno__plot { fill: none; stroke: var(--c-muted); stroke-width: 1.5; }
.dyno__tick { fill: var(--c-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dyno__axis { fill: var(--c-text); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.dyno__power { fill: none; stroke: var(--c-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dyno__torque { fill: none; stroke: var(--c-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dyno__peak { fill: var(--c-sign-yellow); }
.dyno__label { fill: var(--c-text); font-size: 14px; font-weight: 700; }
.dyno__label--nm { fill: var(--c-text); }
.dyno__caption { margin-top: var(--space-xs); color: var(--c-muted); font-size: var(--text-sm); max-width: var(--measure); }
.dyno__caption span { color: var(--c-text); font-weight: 700; }
/* line draw: only when JS adds dyno--animate (never under reduced motion; no-JS = fully drawn) */
.dyno--animate .dyno__power, .dyno--animate .dyno__torque { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dyno-draw 1.6s var(--ease-out) forwards; }
@keyframes dyno-draw { to { stroke-dashoffset: 0; } }

/* ---- rev 4: #tavoite (Seuraava EK / Tavoite 2027): the ask, no progress display ---- */
.section--tavoite { border-top: 4px solid var(--c-sign-red); }
.tavoite-grid { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: start; }
.tavoite-facts { min-width: 0; }
.target { padding: var(--space-lg); background: var(--c-ink-3); border-top: 4px solid var(--c-sign-red); min-width: 0; }
.target__label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); }
.target__figure { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); line-height: 1; color: var(--c-gold); font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: anywhere; margin: var(--space-2xs) 0; }
.target > p:last-child { color: var(--c-text); max-width: var(--measure); }
.tavoite__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.tavoite__links a:not(.btn) { color: var(--c-gold); }
@media (min-width: 64rem) {
  .tavoite-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tavoite__links { grid-column: 1 / -1; }
}

/* rev 4.1: budget lines, date, sponsor perk */
.tavoite__budjetti { display: grid; gap: var(--space-md); margin-top: var(--space-sm); }
.tavoite__rivi { padding: var(--space-sm); background: var(--c-ink-2); min-width: 0; }
.tavoite__rivi--ensisijainen { background: var(--c-sign-red); color: var(--c-ink); }
.tavoite__rivi--ensisijainen .tavoite__huomio { color: var(--c-ink); }
.tavoite__kohde { font-family: var(--font-display); font-size: var(--text-h3); text-transform: uppercase; line-height: 1.04; overflow-wrap: anywhere; }
.tavoite__summa { font-family: var(--font-display); font-size: var(--text-lg); color: var(--c-gold); font-variant-numeric: tabular-nums; }
.tavoite__rivi--ensisijainen .tavoite__summa { color: var(--c-ink); }
.tavoite__huomio { color: var(--c-muted); font-size: var(--text-sm); }
.tavoite__yhteensa { margin-top: var(--space-md); font-family: var(--font-display); font-size: var(--text-h3); color: var(--c-text); text-transform: uppercase; }
.perk { margin: var(--space-md) 0 0; max-width: var(--measure); color: var(--c-text); }

/* rev 4.2: event facts and attributed hooks */
.tavoite-facts-wrap { display: grid; gap: var(--space-md); min-width: 0; align-content: start; }
.tavoite__hooks { display: grid; gap: var(--space-2xs); padding-left: var(--space-md); list-style: disc; color: var(--c-text); max-width: var(--measure); }
.tavoite__hooks li::marker { color: var(--c-sign-red); }
.tavoite__tiedote { color: var(--c-muted); font-size: var(--text-sm); }

/* rev 4.4: LinkedIn links (plain anchors) */
.crew__links { margin-top: var(--space-2xs); font-size: var(--text-sm); }
.linkedin { margin-top: var(--space-md); color: var(--c-muted); }

/* rev 4.5: social link group (footer + #yhteys) */
.some { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin-top: var(--space-md); }
.some a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; color: var(--c-gold); text-decoration: none; }
.some a:hover { color: var(--c-text); text-decoration: underline; }
.some a:active { color: var(--c-sign-yellow); }
.some-wrap { margin-top: var(--space-lg); }

/* rev 5: Laihia-ralli -paketti callout (sponsor page) and E36 parts page (quieter tone) */
.callout { margin-top: var(--space-xl); padding: var(--space-lg); background: var(--c-ink-2); border-left: 0; border-top: 2px solid var(--c-gold); max-width: 48rem; }
.callout__title { font-size: var(--text-h3); color: var(--c-text); }
.callout p { margin-top: var(--space-2xs); max-width: var(--measure); }
.callout__price { font-family: var(--font-display); font-size: var(--text-lg); color: var(--c-gold); }
.section--osat .section__lede { max-width: var(--measure); }
.osat { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); margin-top: var(--space-lg); }
.osa { padding: var(--space-md); background: var(--c-ink-2); min-width: 0; }
.osa__nimi { font-size: var(--text-h3); }
.osa__kunto, .osa__hinta { margin-top: var(--space-2xs); color: var(--c-muted); }
.osa__cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-xs); color: var(--c-gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.osa__cta:hover { color: var(--c-text); }
.osa__cta:active { color: var(--c-sign-yellow); }
.osat-info { margin-top: var(--space-xl); display: grid; gap: var(--space-2xs); max-width: var(--measure); color: var(--c-muted); }
@media (min-width: 48rem) { .osat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
