/* =============================================================================
   PITLINE - content sections
============================================================================= */

/* -----------------------------------------------------------------------------
   FITMENT - which bikes we cut kits for. Quiet section, one marquee on the page.
----------------------------------------------------------------------------- */
.fitment { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-block: 1px solid var(--line); }
.fitment__title {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: -.01em;
  margin-block-end: 2rem;
}
.fitment__title b { color: var(--fg); font-weight: 700; }

.marquee {
  direction: ltr;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  padding-inline-end: clamp(3rem, 7vw, 6rem);
}
/* A url() inside a custom property resolves against the sheet that consumes it,
   so the logo paths live here rather than in an inline style attribute. */
.brandmark {
  display: block;
  width: var(--w, 88px);
  height: var(--h, 34px);
  color: var(--fg-3);
  background-color: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: color var(--dur-2) var(--ease);
}
/* Each mark gets its own box so wide wordmarks and round badges read at the
   same optical weight rather than the same bounding-box height. */
.brandmark--ktm       { --logo: url("../img/brands/ktm.svg");   --w: 96px; --h: 26px; }
.brandmark--husqvarna { --logo: url("../img/brands/husqvarna.svg"); --w: 46px; --h: 46px; }
.brandmark--yamaha    { --logo: url("../img/brands/yamahamotorcorporation.svg"); --w: 46px; --h: 46px; }
.brandmark--honda     { --logo: url("../img/brands/honda.svg"); --w: 86px; --h: 34px; }
.brandmark--suzuki    { --logo: url("../img/brands/suzuki.svg"); --w: 78px; --h: 34px; }
.brandmark--bmw       { --logo: url("../img/brands/bmw.svg");   --w: 44px; --h: 44px; }
.marquee:hover .brandmark { color: var(--fg-2); }

@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee-slide 34s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}
@keyframes marquee-slide { to { transform: translateX(-50%); } }

/* -----------------------------------------------------------------------------
   KIT CONTENTS - bento. Four items, four cells, no empty tiles.
----------------------------------------------------------------------------- */
.kit__head { margin-block-end: clamp(2rem, 4vw, 3.25rem); }

.bento {
  display: grid;
  gap: clamp(.7rem, 1.2vw, 1.1rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(210px, auto);
  }
  .bento__a { grid-column: span 7; grid-row: 1; }
  .bento__b { grid-column: span 5; grid-row: 1 / span 2; }
  .bento__c { grid-column: span 4; grid-row: 2; }
  .bento__d { grid-column: span 3; grid-row: 2; }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 210px;
}
.tile__media { flex: 1; min-height: 0; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__cap {
  padding: .85rem 1.1rem;
  font-size: var(--step--1);
  color: var(--fg-2);
  border-block-start: 1px solid var(--line);
}
.tile--text { background: var(--bg-3); padding: clamp(1.2rem, 2.2vw, 1.8rem); justify-content: space-between; gap: 1.25rem; }
.tile--text h3 { font-size: var(--step-1); }

.kitlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem 1.1rem;
  font-size: var(--step--1);
  color: var(--fg-2);
}
.kitlist li { display: flex; align-items: center; gap: .45rem; }
.kitlist svg { width: 13px; height: 13px; color: var(--accent-text); flex: none; }

/* -----------------------------------------------------------------------------
   PROCESS - the production line runs past you.
   Base layer is a snap-scrolling rail (mobile, reduced motion, older browsers).
   Where scroll-driven animation exists, the rail pins and pans instead.
----------------------------------------------------------------------------- */
.process {
  --step-w: clamp(272px, 38vw, 500px);
  --step-gap: clamp(.85rem, 1.5vw, 1.6rem);
  --pan: 0px;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  padding-block-start: var(--section);
}
.process__head { margin-block-end: clamp(2.25rem, 4vw, 3.5rem); }

.process__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block-end: var(--section);
}
.process__viewport::-webkit-scrollbar { display: none; }

.process__track {
  display: flex;
  gap: var(--step-gap);
  width: max-content;
  padding-inline: var(--gutter);
  align-items: stretch;
}

.step {
  flex: 0 0 var(--step-w);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.step__media { aspect-ratio: 1000 / 727; overflow: hidden; background: var(--bg-inset); }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__body { padding: clamp(1.1rem, 2vw, 1.65rem); display: grid; gap: .55rem; }
.step__body h3 { font-size: var(--step-1); }
.step__body p { color: var(--fg-2); font-size: var(--step--1); line-height: 1.72; }

.process__progress {
  height: 2px;
  background: var(--line);
  margin-inline: var(--gutter);
  margin-block-start: 1.75rem;
}
.process__progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: right;
  transform: scaleX(0);
}

@supports (animation-timeline: view()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .process__rail {
      height: calc(100dvh + var(--pan));
      view-timeline-name: --rail;
      view-timeline-axis: block;
    }
    .process__viewport {
      position: sticky;
      inset-block-start: 0;
      height: 100dvh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
      padding-block-end: 0;
      scroll-snap-type: none;
    }
    .process__track {
      animation: process-pan linear both;
      animation-timeline: --rail;
      animation-range: contain 0% contain 100%;
      will-change: transform;
    }
    .process__progress span {
      animation: process-progress linear both;
      animation-timeline: --rail;
      animation-range: contain 0% contain 100%;
    }
  }
}
@keyframes process-pan { to { transform: translateX(var(--pan)); } }
@keyframes process-progress { to { transform: scaleX(1); } }

/* -----------------------------------------------------------------------------
   COLOURWAY - a product stage with a swatch rail. The chips are product colour,
   not UI accent; every control on this section still uses --accent.
----------------------------------------------------------------------------- */
.colourway { text-align: center; overflow: clip; }
.colourway__head { margin-inline: auto; margin-block-end: clamp(1.5rem, 3vw, 2.5rem); }

.colourway__stage {
  position: relative;
  aspect-ratio: 1040 / 807;
  max-width: min(880px, 100%);
  margin-inline: auto;
  background:
    radial-gradient(110% 80% at 50% 16%, var(--stage-1), transparent 68%),
    linear-gradient(180deg, transparent, var(--stage-2));
}
.colourway__stage::after {
  content: "";
  position: absolute;
  inset-block-end: 8%;
  inset-inline: 16%;
  height: 7%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .5), transparent 76%);
  filter: blur(8px);
}
:root[data-theme="light"] .colourway__stage::after {
  background: radial-gradient(closest-side, rgb(20 22 26 / .26), transparent 76%);
}
.colourway__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease);
}
.colourway__stage img.is-active { opacity: 1; transform: none; }

.swatches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin-block-start: clamp(1.25rem, 2.5vw, 2rem);
}
.swatch {
  --chip: var(--accent);
  position: relative;
  width: 46px;
  height: 46px;
  cursor: pointer;
  background: var(--chip);
  box-shadow: 0 0 0 1px var(--line-2);
  transition: box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  display: grid;
  place-items: center;
  color: #0c0d0f;
}
.swatch:hover { transform: translateY(-2px); }
.swatch svg { width: 16px; height: 16px; opacity: 0; transition: opacity var(--dur-1) var(--ease); }
.swatch[aria-checked="true"] {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg);
}
.swatch[aria-checked="true"] svg { opacity: 1; }

.colourway__name {
  margin-block-start: 1.1rem;
  font-size: var(--step-1);
  font-weight: 700;
}
.colourway__note { color: var(--fg-2); font-size: var(--step--1); margin-block-start: .3rem; }
.colourway__cta { margin-block-start: 1.9rem; }

/* -----------------------------------------------------------------------------
   SPECS - four cards with a display figure. Not a hairline table.
----------------------------------------------------------------------------- */
.specs { background: var(--bg-2); border-block: 1px solid var(--line); }
.specs__grid {
  display: grid;
  gap: clamp(.7rem, 1.2vw, 1.1rem);
  grid-template-columns: 1fr;
  margin-block-start: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 720px) { .specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.spec {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  display: grid;
  gap: .5rem;
  align-content: start;
}
.spec__fig {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: .4rem;
}
.spec__unit {
  font-family: var(--font-la);
  font-size: var(--step-0);
  font-weight: 600;
  font-stretch: 78%;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.spec h3 { font-size: var(--step-1); margin-block-start: .35rem; }
/* named, not `.spec p`, which would outrank .spec__fig on specificity */
.spec__note { color: var(--fg-2); font-size: var(--step--1); }

/* -----------------------------------------------------------------------------
   VOICES - one lead quote, two supporting. Never more than three lines each.
----------------------------------------------------------------------------- */
.voices__grid {
  display: grid;
  gap: clamp(.7rem, 1.2vw, 1.1rem);
  margin-block-start: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 900px) {
  /* The lead runs full width and carries the weight in type, not in area: a
     row-spanning card left a large void under a three-line quote. */
  .voices__grid { grid-template-columns: repeat(12, 1fr); }
  .voices__lead { grid-column: span 12; }
  /* quote anchored to the reading edge, name to the far edge: the wide card
     becomes a diagonal instead of a block of text with dead space beside it */
  .voices__lead figcaption { justify-self: end; }
  .voices__grid > :nth-child(2) { grid-column: span 6; }
  .voices__grid > :nth-child(3) { grid-column: span 6; }
}

.quote {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  display: grid;
  gap: 1.25rem;
  align-content: space-between;
  height: 100%;
}
.quote p { font-size: var(--step-1); line-height: 1.6; text-wrap: pretty; }
.voices__lead { padding: clamp(1.8rem, 3.4vw, 3.2rem); }
.voices__lead p { font-size: var(--step-3); line-height: 1.42; font-weight: 700;
                  letter-spacing: -.022em; max-width: 24ch; }
.quote figcaption { font-size: var(--step--1); color: var(--fg-3); }
.quote figcaption b { display: block; color: var(--fg); font-weight: 600; }

/* -----------------------------------------------------------------------------
   ORDER - two offers, one label for the one intent.
----------------------------------------------------------------------------- */
.order__grid {
  display: grid;
  gap: clamp(.7rem, 1.2vw, 1.1rem);
  margin-block-start: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 780px) { .order__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.offer {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
  position: relative;
}
.offer--lead { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.offer--lead::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--accent);
}
.offer h3 { font-size: var(--step-2); }
.offer__price { font-size: var(--step-2); font-weight: 800; letter-spacing: -.02em; }
.offer__price small { font-size: var(--step--1); font-weight: 500; color: var(--fg-3); }
.offer ul { display: grid; gap: .55rem; color: var(--fg-2); font-size: var(--step--1); }
.offer li { display: flex; gap: .55rem; align-items: flex-start; }
.offer li svg { width: 14px; height: 14px; color: var(--accent-text); flex: none; margin-block-start: .42em; }
.offer .btn { margin-block-start: .5rem; justify-self: start; }

/* -----------------------------------------------------------------------------
   FAQ - native details/summary, smooth where the browser can size keywords.
----------------------------------------------------------------------------- */
.faq { background: var(--bg-2); border-block: 1px solid var(--line); }
.faq__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; }
}
.faq__list { display: grid; }

.qa { border-block-start: 1px solid var(--line); }
.qa:last-child { border-block-end: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-1);
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent-text);
  transition: transform var(--dur-2) var(--ease);
}
.qa[open] summary svg { transform: rotate(45deg); }
.qa__a { padding-block-end: 1.4rem; color: var(--fg-2); max-width: 62ch; }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--dur-2) var(--ease), content-visibility var(--dur-2) allow-discrete;
  }
  .qa[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .qa::details-content { transition: none; }
}

/* -----------------------------------------------------------------------------
   CLOSE - final call, then the footer.
----------------------------------------------------------------------------- */
.close { position: relative; overflow: clip; }
.close::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -8%;
  width: 62%;
  height: 150%;
  background: radial-gradient(closest-side, var(--accent-wash), transparent 70%);
  pointer-events: none;
}
.close__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: end; }
@media (min-width: 900px) {
  .close__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.close h2 { font-size: var(--step-5); line-height: 1.05; letter-spacing: -.03em; }
.close__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.contact { display: grid; gap: .9rem; }
.contact a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--fg-2);
  transition: color var(--dur-1) var(--ease);
  width: fit-content;
}
.contact a:hover { color: var(--fg); }
.contact svg { width: 17px; height: 17px; color: var(--accent-text); flex: none; }

.foot { border-block-start: 1px solid var(--line); padding-block: 2.5rem 2rem; }
.foot__grid { display: grid; gap: 2rem; }
@media (min-width: 720px) {
  .foot__grid { grid-template-columns: 1fr auto; align-items: center; }
}
.foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: var(--step--1); color: var(--fg-2); }
.foot__links a:hover { color: var(--fg); }
.foot__legal { font-size: var(--step--2); color: var(--fg-3); margin-block-start: 1.5rem; }
