/* Cinematic hardware, warm paper and high-contrast workshop navigation. */
.workshop-home {
  --text: #191916;
  --muted: #4f4e48;
  --line: #d7d3c8;
  --accent: #ffdb00;
  --accent-2: #785018;
  --race-red: #e60012;
  --setup-blue: #0047ba;
  --learning-green: #63bd22;
  --learning-ink: #286514;
  --ktm-orange: #ff6600;
  --radius: 14px;
  --glow: none;
  background: #f8f6f0;
  color: var(--text);
}

.workshop-home [hidden] { display: none !important; }
.workshop-home::before, .workshop-home .section::before { display: none; }
.workshop-home a { color: inherit; }
.workshop-home a:focus-visible, .workshop-home button:focus-visible {
  outline: 3px solid #a76918;
  outline-offset: 4px;
}
.workshop-home .container { width: min(1280px, calc(100% - 4rem)); }
.workshop-home .section { padding: clamp(3.4rem, 7vw, 7rem) 0; }
.workshop-home [id] { scroll-margin-top: 6rem; }
.workshop-home .site-header {
  background: #f8f6f0;
  border-color: var(--line);
  backdrop-filter: none;
}
.workshop-home .brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
}
.workshop-home .brand img { border-radius: 6px; }
.workshop-home .nav { gap: .85rem; }
.workshop-home .nav a:not(.button) { color: var(--muted); font-size: .83rem; }
.workshop-home .nav a:not(.button):hover { color: var(--text); }
.menu-toggle, .film-play { font: inherit; cursor: pointer; }
.menu-toggle {
  padding: .5rem .85rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.workshop-home .eyebrow {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent-2);
}
.workshop-home .eyebrow::before { display: none; }
.workshop-home h2 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); letter-spacing: -.055em; }
.workshop-home h3 { font-size: clamp(1.25rem, 1.9vw, 1.65rem); letter-spacing: -.025em; }
.workshop-home .button {
  background: var(--accent);
  color: #171510;
  border: 1px solid transparent;
  box-shadow: none;
}
.workshop-home .button:hover { background: #f4ca00; }
.workshop-home .button-secondary,
.workshop-home .button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.workshop-home .button-secondary:hover,
.workshop-home .button-ghost:hover { background: #e9e4d8; }
.workshop-home .text-link { color: var(--accent-2); text-underline-offset: .2em; }
.workshop-home .card {
  background: #fffcf5;
  border: 1px solid var(--line);
  box-shadow: none;
}
.workshop-home .section-muted { background: #eeebe2; border-color: var(--line); }
.workshop-home .section-accent { background: #e7deca; border-color: var(--line); }

.workshop-hero { padding: clamp(2rem, 5vw, 5.5rem) 0 0; }
.hero-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(1.25rem, 4vw, 4.7rem);
  align-items: center;
}
.workshop-hero h1 {
  max-width: none;
  font-size: clamp(3.1rem, 5.8vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.075em;
  text-transform: none;
}
.workshop-hero h1 em { font-style: normal; color: var(--race-red); }
.workshop-hero .lead { font-size: clamp(1.04rem, 1.5vw, 1.25rem); }
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin-top: 1rem; }
.hero-hardware {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #232421;
  isolation: isolate;
}
.hero-hardware img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-hardware figcaption {
  position: absolute;
  bottom: .65rem;
  left: .75rem;
  color: #fff;
  background: #222;
  border-radius: 3px;
  padding: .15rem .45rem;
  font-size: .72rem;
}
.workshop-process {
  gap: 0;
  margin-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}
.workshop-process .metric {
  padding: 1.1rem .9rem 1.2rem 0;
  background: transparent;
  border: 0;
}
.workshop-process .metric strong { color: var(--text); }
.workshop-process .metric::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: .3rem;
  margin-bottom: .55rem;
  border-radius: 2px;
  background: var(--metric-accent);
}
.workshop-process .metric:nth-child(1) { --metric-accent: var(--race-red); }
.workshop-process .metric:nth-child(2) { --metric-accent: var(--setup-blue); }
.workshop-process .metric:nth-child(3) { --metric-accent: var(--learning-green); }
.workshop-process .metric:nth-child(4) { --metric-accent: var(--accent); }

.workshop-home .setup-feature { --accent-2: var(--setup-blue); background: #edf4ff; }
.workshop-home .knowledge-feature { --accent-2: var(--learning-ink); background: #f1f8e9; }

.workshop-home .supplier-feature,
.workshop-home .final-cta {
  --text: #f7f3e8;
  --muted: #d1cdc3;
  --line: #53524a;
  --accent-2: #ffd17c;
  color: var(--text);
  background: #222320;
}
.supplier-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.4rem, 4vw, 4.5rem);
  align-items: start;
}
.supplier-film { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.film-stage {
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #171815;
  aspect-ratio: 16 / 9;
}
.film-stage > * { grid-area: 1 / 1; }
.film-stage img { width: 100%; height: 100%; }
.film-stage img { object-fit: cover; opacity: .72; min-height: 0; }
.film-stage:hover { text-decoration: none; }
.film-stage:focus-visible { outline-offset: -4px !important; }
.film-play {
  z-index: 1;
  padding: .7rem 1rem;
  color: #191916;
  background: #fff9ed;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}
.film-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1rem; padding: .85rem 1rem; }
.film-caption p { margin: 0; }
.film-caption a { text-decoration: underline; text-underline-offset: .2em; }
.supplier-products article { border-bottom: 1px solid var(--line); padding: 0 0 1rem; margin-bottom: 1.1rem; }
.supplier-products article h3 { margin-bottom: .45rem; }
.supplier-products article p { margin-bottom: .45rem; }
.supplier-cta { margin-top: 1.4rem; }
.workshop-home .final-cta .button-secondary:hover { background: #393a34; }

.workshop-home .book-bundle-card { background: #f2e8d3; border-color: var(--line); }
.workshop-home .product-showcase { background: #eae5da; border-color: var(--line); }
.workshop-home .featured-product {
  min-height: 0;
  background: #fffcf5;
  border-color: var(--line);
  box-shadow: none;
}
.workshop-home .calculator-mark { color: #4432111c; }
.workshop-home .site-footer { background: #eeeae0; }

@media (prefers-reduced-motion: no-preference) {
  .hero-hardware img { animation: hardware-settle .85s cubic-bezier(.2,.6,.3,1) both; }
  @keyframes hardware-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
  @supports (animation-timeline: view()) {
    .supplier-film { animation: supplier-reveal linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
    @keyframes supplier-reveal { from { transform: translateY(1.25rem); } to { transform: translateY(0); } }
  }
}

@media (max-width: 1120px) {
  .workshop-home .site-header { position: relative; }
  .workshop-home .nav-wrap { display: flex; align-items: center; flex-wrap: wrap; }
  .workshop-home .nav { flex: 1 0 100%; justify-content: flex-start; padding-top: .6rem; }
}
@media (max-width: 820px) {
  .hero-layout, .supplier-layout { grid-template-columns: 1fr; }
  .workshop-hero h1 { font-size: clamp(3.2rem, 9.5vw, 5.8rem); }
  .hero-hardware { max-width: 740px; }
}
@media (max-width: 640px) {
  .workshop-home .container { width: calc(100% - 2rem); }
  .workshop-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workshop-home .cta-row .button { min-width: 0; text-align: center; }
}

.workshop-home .hero-links a:first-child { color: var(--setup-blue); }
.workshop-home .hero-links a:last-child {
  color: var(--text);
  text-decoration: underline var(--accent) .2em;
}
.workshop-home .setup-feature { border-top: 4px solid var(--setup-blue); }
.workshop-home .knowledge-feature { border-top: 4px solid var(--learning-green); }
.workshop-home .supplier-cta .button { background: var(--ktm-orange); }
.workshop-home .supplier-cta .button:hover { background: #ff8533; }

/* Workshop service tiles use the race palette across rails and action labels. */
.workshop-home #services { background: #eeeee8; }
.workshop-home #services .section-heading .eyebrow { color: var(--setup-blue); }
.workshop-home #services .section-heading .text-link { color: var(--setup-blue); }
.workshop-home #services .card {
  --tile-accent: var(--race-red);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1rem, 2.7vw, 1.7rem);
  border: 0;
  border-inline-start: .45rem solid var(--tile-accent);
  background: #fff;
  box-shadow: 0 2px 8px #19191614;
}
.workshop-home #services .card:nth-child(5n + 2) { --tile-accent: var(--setup-blue); }
.workshop-home #services .card:nth-child(5n + 3) { --tile-accent: var(--accent); }
.workshop-home #services .card:nth-child(5n + 4) { --tile-accent: var(--learning-green); }
.workshop-home #services .card:nth-child(5n + 5) { --tile-accent: var(--ktm-orange); }
.workshop-home #services .card .text-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin-top: auto;
  padding: .35rem .75rem;
  border-radius: .35rem;
  color: #191916;
  background: color-mix(in srgb, var(--tile-accent) 21%, white);
  text-underline-offset: .18em;
}
.workshop-home #services .card .text-link::after {
  content: "";
  width: .42rem;
  height: .42rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
