/* Gearbox Garage
   Palette: white, black, a little caliper red.
   Type: Archivo throughout; expanded width for display (echoes the GARAGE wordmark). */

:root {
  --white: #ffffff;
  --black: #000000;
  --steel: #f3f3f3;
  --rule: #e1e1e1;
  --graphite: #595959;
  --red: #c8151b;
  --red-dark: #a10f14;

  --on-dark-muted: #a3a3a3;
  --on-dark-rule: #262626;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --header-h: 84px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Display type ---------- */

.hero__title,
.section__head h2,
.band h2,
.contact h2,
.form__done h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.section__head h2,
.band h2,
.contact h2 {
  font-size: clamp(2rem, 3.6vw, 3.125rem);
}

/* ---------- Icons ---------- */

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 26px; height: 26px; }
.icon--xl { width: 40px; height: 40px; stroke-width: 1.5; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--lg { min-height: 54px; padding: 0 1.6rem; font-size: 1rem; }

.btn--red {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--red);
  color: var(--white);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Darker red sweeping in from the left */
.btn--red::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red-dark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* A streak of light gliding across, like light over car paint */
.btn--red::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}
@media (hover: hover) {
  .btn--red:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -12px rgba(200, 21, 27, 0.75);
  }
  .btn--red:hover::before { transform: scaleX(1); }
  .btn--red:hover::after {
    transform: translateX(330%) skewX(-18deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
}
.btn--red:focus-visible::before { transform: scaleX(1); }
.btn--red:active { transform: scale(0.97); }

.btn--outline-white { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn--outline-white:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--outline-white .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* White button for dark surfaces; red sweeps in on hover. */
.btn--white {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--white);
  color: var(--black);
  transition:
    color 0.3s,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn--white::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .btn--white:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -12px rgba(200, 21, 27, 0.75);
  }
  .btn--white:hover::before { transform: scaleX(1); }
}
.btn--white:focus-visible { color: var(--white); }
.btn--white:focus-visible::before { transform: scaleX(1); }
.btn--white:active { transform: scale(0.97); }

.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: var(--red); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

/* Logo left, links centred, phone and booking right. */
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  position: relative;
  display: block;
  flex: none;
  justify-self: start;
  height: 54px;
  aspect-ratio: 720 / 414;
}
.brand__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: center;
}
.nav__list { display: flex; gap: 28px; }
.nav__list a,
.nav__phone,
.header__phone {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}
.nav__list a:hover { text-decoration-line: underline; text-decoration-color: var(--red); }
.nav__hot { display: inline-flex; align-items: center; gap: 8px; font-weight: 700 !important; }
.nav__hot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.nav__phone,
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.nav__phone .icon,
.header__phone .icon { width: 16px; height: 16px; }
.nav__phone { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: end;
}
.nav__book { display: none; }

.header__cta { flex: none; }
.header__phone:hover { text-decoration: underline; text-decoration-color: var(--red); }

.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .icon--close { display: none; }

.header.is-scrolled,
.header.is-open {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 0 var(--rule);
}

/* ---------- Hero ---------- */

.hero {
  --panel: calc(var(--edge) + clamp(300px, 28vw, 420px));
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(680px, 100svh, 980px);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--panel);
  background: var(--black);
  overflow: hidden;
}

/* The drive position, set huge and outlined, behind the headline. */
.hero__glyph {
  position: absolute;
  left: calc(var(--edge) - 0.08em);
  top: 50%;
  transform: translateY(-54%);
  font-size: clamp(18rem, 34vw, 36rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.09);
  user-select: none;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--panel);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.65) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 48px;
  pointer-events: none;
}
.hero__inner a,
.hero__inner button { pointer-events: auto; }

.hero__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 26px;
  padding: 6px 18px 6px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 32px -10px rgba(200, 21, 27, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__badge-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
}
.hero__badge-icon svg { width: 20px; height: auto; color: var(--black); }
.hero__badge-arrow {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
/* light streak on hover */
.hero__badge::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}
@media (hover: hover) {
  .hero__badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -10px rgba(200, 21, 27, 1), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  .hero__badge:hover .hero__badge-arrow { transform: translateX(4px); }
  .hero__badge:hover::after {
    transform: translateX(360%) skewX(-18deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
}
.hero__badge + .hero__title { margin-top: 0; }

.hero__title {
  margin-top: auto;
  font-size: clamp(2.75rem, 6.2vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__title .line { display: block; }
.hero__title .line > span { display: inline-block; }

.social {
  display: flex;
  gap: 8px;
  margin-top: 36px;
}
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s, background-color 0.2s;
}
.social a:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.social .icon { width: 18px; height: 18px; }

.hero__foot {
  width: calc(var(--panel) - var(--edge) - 40px);
  margin-top: auto;
  padding-top: 56px;
}
.hero__lead {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.hero__foot .btn { margin-top: 24px; }

.hero__aside {
  position: absolute;
  z-index: 2;
  right: var(--edge);
  bottom: 104px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero__caption {
  font-size: 0.8125rem;
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}
.round-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.round-btn:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.hero__rail {
  position: absolute;
  z-index: 2;
  left: calc(var(--panel) + 40px);
  right: var(--edge);
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero__rail-line {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.hero__rail-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 38%;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
}
.hero__rail-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

/* Hotspots: positioned over image features by script.js */
.hotspot {
  position: absolute;
  left: 60%;
  top: 66%;
  z-index: 3;
  width: 0;
  height: 0;
}
.hotspot.is-off { display: none; }

.hotspot__btn {
  position: absolute;
  left: -24px;
  top: -24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s;
}
.hotspot__btn .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.25s var(--ease); }
.hotspot__btn:hover { transform: scale(1.08); }
.hotspot__btn[aria-expanded="true"] .icon { transform: rotate(45deg); }

.hotspot--red .hotspot__btn {
  left: -20px;
  top: -20px;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
}

@media (prefers-reduced-motion: no-preference) {
  .hotspot__btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0;
    animation: ping 2.8s 1.6s var(--ease) infinite;
  }
  .hotspot:not(.hotspot--red) .hotspot__btn::after { border-color: var(--white); }
  .hotspot--red .hotspot__btn::after { border-color: var(--red); }
}
@keyframes ping {
  0% { opacity: 0.8; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.9); }
}

.hotspot__card {
  position: absolute;
  bottom: 36px;
  right: -24px;
  width: 260px;
  padding: 18px 20px 20px;
  background: var(--white);
  color: var(--black);
  border-radius: 10px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}
.hotspot[data-side="right"] .hotspot__card { right: auto; left: -24px; }
.hotspot__card strong {
  display: block;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
}
.hotspot__card p {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--graphite);
}
.hotspot__card a {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* One orchestrated load: the headline rises word by word, then the rest settles in. */
@media (prefers-reduced-motion: no-preference) {
  .words .line > span {
    opacity: 0;
    transform: translateY(55px);
    animation: word 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .words .line:nth-child(1) > span:nth-child(2) { animation-delay: 0.08s; }
  .words .line:nth-child(2) > span:nth-child(1) { animation-delay: 0.16s; }
  .words .line:nth-child(2) > span:nth-child(2) { animation-delay: 0.24s; }
  .words .line:nth-child(3) > span:nth-child(1) { animation-delay: 0.32s; }
  .words .line:nth-child(3) > span:nth-child(2) { animation-delay: 0.4s; }

  .hero__badge,
  .social,
  .hero__foot,
  .hero__aside,
  .hero__rail,
  .hotspot__btn {
    opacity: 0;
    animation: settle 0.8s var(--ease) forwards;
  }
  .hero__badge { animation-delay: 0s; }
  .social { animation-delay: 0.6s; }
  .hero__foot { animation-delay: 0.7s; }
  .hero__aside,
  .hero__rail { animation-delay: 0.8s; }
  .hotspot__btn { animation-delay: 1s; }
}

@keyframes word { to { opacity: 1; transform: none; } }

/* Section titles (split into .rw words by script.js): slide in from the left out of a blur. */
.reveal .rw {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateX(-0.45em);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--base, 0ms) + var(--i) * 70ms);
}
.reveal.is-in .rw {
  opacity: 1;
  filter: none;
  transform: none;
}
@keyframes settle {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Robotic gearboxes (headline specialty) ---------- */

.robotic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--red);
  color: var(--white);
}
/* Garage photo as background: black-and-white, tinted red, darker behind the text */
.robotic__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.robotic__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: grayscale(1) contrast(1.1) brightness(0.95);
}
.robotic::before,
.robotic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.robotic::before {
  background: var(--red);
  mix-blend-mode: multiply;
}
.robotic::after {
  background:
    linear-gradient(90deg, rgba(110, 6, 10, 0.72) 0%, rgba(110, 6, 10, 0.45) 45%, rgba(20, 0, 0, 0.2) 100%);
}

.robotic__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.robotic__top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.robotic__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--black);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.6);
}
.robotic__icon svg { width: 42px; height: auto; color: var(--white); }

.robotic__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 700;
}
.robotic h2 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.robotic__alt {
  margin-top: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.robotic__lead {
  max-width: 36rem;
  margin-top: 22px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.94);
}
.robotic__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.robotic__card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--black);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.robotic__card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}
.robotic__card h3 + .ticks { margin-top: 14px; border-top-color: #2a2a2a; }
.robotic__card .ticks { font-size: 0.9375rem; }
.robotic__card .ticks + h3 { margin-top: 28px; }
.robotic__systems {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.robotic__systems li {
  padding: 6px 12px;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e6e6e6;
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 10vw, 140px) 0; }

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section__head p {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--graphite);
}

.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  max-width: none;
}
.section__head--split p { max-width: 30rem; margin-top: 0; }

/* ---------- Service cards ---------- */

.cards__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 1.0625rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.cards__title::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--red);
}
.cards + .cards__title { margin-top: 56px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 32px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover {
  border-color: var(--black);
  box-shadow: 0 28px 48px -32px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--black);
  transition: background-color 0.25s;
}
.card__icon img {
  width: 40px;
  height: 40px;
  filter: invert(1);
}
.card:hover .card__icon { background: var(--red); }

/* The same icon, oversized and faint, anchoring the corner of each card. */
.card__mark {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 150px;
  height: 150px;
  opacity: 0.045;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.card:hover .card__mark { opacity: 0.08; transform: rotate(-12deg); }

/* Hover: red bar draws across the top, the icon tilts in, the tick dashes extend one by one. */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card__icon img { transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ticks li::before { transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.ticks li:nth-child(2)::before { transition-delay: 0.06s; }
.ticks li:nth-child(3)::before { transition-delay: 0.12s; }

@media (hover: hover) {
  .card:hover::before { transform: scaleX(1); }
  .card:hover .card__icon img { transform: rotate(-14deg) scale(1.12); }
  .card:hover .ticks li::before { width: 18px; }
  .card:hover .card__mark { opacity: 0.09; transform: rotate(-22deg) scale(1.12); }
}

.card h3 {
  margin-top: 28px;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card > p {
  flex: 1;
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--graphite);
}

.ticks {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  font-weight: 500;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticks li::before {
  content: "";
  width: 8px;
  height: 2px;
  flex: none;
  background: var(--red);
}

.units { margin-top: 56px; }
.units__label {
  font-size: 0.875rem;
  color: var(--graphite);
}
.units__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 14px;
}
.units__list li {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.units__list strong {
  font-size: 1rem;
  font-stretch: 112%;
  font-weight: 650;
}
.units__list span {
  font-size: 0.875rem;
  color: var(--graphite);
}

/* ---------- Black band: odometer ---------- */

.band {
  padding: clamp(80px, 10vw, 136px) 0;
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.band__lead {
  max-width: 32rem;
  margin: 18px auto 0;
  color: var(--on-dark-muted);
}

.odo-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
  margin-top: clamp(48px, 6vw, 72px);
}
.odo-stat {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 18px;
}
.odo-stat dt {
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}

/* Each digit is a 0–9 strip inside a counter cell; script.js rolls it to the value. */
.odo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.15;
}
.odo__cell {
  position: relative;
  width: 0.72em;
  height: 1.15em;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(#1c1c1c, #0d0d0d 50%, #1c1c1c);
  box-shadow: inset 0 0 0 1px #2a2a2a;
}
.odo__cell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.6);
}
.odo__strip {
  display: grid;
  text-align: center;
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.odo__cell--red {
  background: var(--red);
  box-shadow: none;
}
.odo__sep {
  padding: 0 2px;
  font-size: 0.85em;
  color: var(--on-dark-muted);
}

/* ---------- Process ---------- */

.process { background: var(--steel); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.step {
  padding-top: 28px;
  border-top: 1px solid var(--black);
}
.step__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
}
.step__icon img { width: 38px; height: 38px; }
.step h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 24px;
  font-size: 1.1875rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}
.step__n {
  font-stretch: 125%;
  font-weight: 800;
  color: var(--red);
}
.step p {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--graphite);
}

/* ---------- Service area ---------- */

.areas__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.areas__copy h2 {
  font-size: clamp(2rem, 3.6vw, 3.125rem);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.areas__copy p {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 1.0625rem;
  color: var(--graphite);
}
.areas__copy .btn { margin-top: 32px; }

.kmap {
  margin: 0;
  width: 100%;
  max-width: 540px;
  justify-self: end;
}
.kmap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.kmap__land {
  fill: var(--steel);
  stroke: var(--black);
  stroke-width: 1.25;
  stroke-linejoin: round;
}
.kmap__route {
  fill: none;
  stroke: var(--black);
  stroke-opacity: 0.28;
  stroke-width: 1.25;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
}
.kmap text {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  fill: var(--black);
  paint-order: stroke;
  stroke: var(--steel);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.kmap__city circle { fill: var(--black); }
.kmap__city { transition: opacity 0.2s; }

.kmap__home circle { fill: var(--red); }
.kmap__home text {
  font-size: 17px;
  font-weight: 750;
  font-stretch: 112%;
}
.kmap__home .kmap__sub {
  font-size: 12px;
  font-weight: 500;
  font-stretch: 100%;
  fill: var(--graphite);
}
.kmap__pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }

/* Traffic flows toward Gjilan; the home marker pulses. */
@media (prefers-reduced-motion: no-preference) {
  .kmap__route { animation: route-flow 1.6s linear infinite; }
  .kmap__pulse { animation: ping 2.4s var(--ease) infinite; }
}
@keyframes route-flow { to { stroke-dashoffset: -16; } }

.kmap figcaption {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--graphite);
}

/* ---------- FAQ ---------- */

.faq { background: var(--steel); }
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq .section__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq .section__head a { color: var(--black); font-weight: 600; white-space: nowrap; }

.faq__list { border-top: 1px solid var(--black); }
.faq__list details { border-bottom: 1px solid #d4d4d4; }
.faq__list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before,
.faq__list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }
.faq__list details[open] summary::before,
.faq__list details[open] summary::after { background: var(--red); }
.faq__list summary:hover { color: var(--red); }
.faq__list details p {
  max-width: 44rem;
  padding: 0 48px 24px 0;
  color: var(--graphite);
}

/* ---------- Contact ---------- */

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact__info > p {
  max-width: 28rem;
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--graphite);
}

.info {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.info li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
}
.info .icon { margin-top: 3px; }
.info span {
  display: block;
  font-size: 0.875rem;
  color: var(--graphite);
}
.info a,
.info address {
  font-weight: 600;
  text-decoration: none;
}
.info a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.info .info__map {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 24px;
  font-weight: 600;
}
.hours dt { font-weight: 500; color: var(--graphite); }

.form {
  padding: clamp(24px, 4vw, 48px);
  background: var(--steel);
  border-radius: 16px;
}

.form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}
.form__fields[hidden] { display: none; }

.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--graphite); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid #c9c9c9;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  padding: 14px;
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder { color: #8c8c8c; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #8c8c8c; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.select { position: relative; }
.select select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.75px solid var(--black);
  border-bottom: 1.75px solid var(--black);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field__error {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--red);
}
.field input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.field input[aria-invalid="true"] ~ .field__error { display: block; }

.form__submit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.form__note { font-size: 0.875rem; color: var(--graphite); }
.form__note a { font-weight: 600; color: var(--black); white-space: nowrap; }

/* WhatsApp-green glyph on the black buttons that open WhatsApp */
.form__wa .icon,
.call-bar__wa .icon { color: #25d366; }
.form__wa:hover .icon { color: currentColor; }

.form__done { padding: 24px 0; }
.form__done:focus { outline: none; }
.form__done > .icon { color: var(--red); stroke-width: 2; }
.form__done h3 {
  margin-top: 20px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.form__done p {
  max-width: 30rem;
  margin-top: 14px;
  color: var(--graphite);
}
.form__done-actions {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-top: 28px;
}

/* ---------- Map (OpenStreetMap via Leaflet, loaded on demand) ---------- */

.map {
  position: relative;
  isolation: isolate;
  height: clamp(420px, 46vw, 600px);
  margin-top: clamp(40px, 5vw, 64px);
  overflow: hidden;
  border-radius: 16px;
  background: var(--steel);
}
.map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
}
/* Black-and-white tiles so only the red pin carries colour */
.map .leaflet-tile-pane { filter: grayscale(1) contrast(1.08) brightness(1.04); }
.map .leaflet-control-attribution { font-size: 11px; }
.map .leaflet-bar a { color: var(--black); }

.map__card {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 500;
  display: grid;
  gap: 4px;
  max-width: 300px;
  padding: 20px 22px 22px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.map__logo {
  width: 132px;
  height: auto;
  margin-bottom: 10px;
}
.map__card span {
  font-size: 0.9375rem;
  color: var(--white);
}
.map__card .btn { justify-self: start; margin-top: 14px; }

.map-pin { background: none; border: 0; }
.map-pin__dot {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .map-pin__dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--red);
    animation: ping 2.4s var(--ease) infinite;
  }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* bottom space clears the floating WhatsApp button */
  padding: 44px 0 88px;
  background: var(--black);
  color: var(--white);
}

/* The badge, oversized across the full width and faint, like a shadow behind the footer. */
.footer__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(1320px, 94vw);
  max-width: none;
  height: auto;
  /* flattened like a shadow, and sized so the whole badge fits inside the footer */
  transform: translate(-50%, -50%) scaleY(0.34);
  transform-origin: center center;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
}
.footer__logo { width: 112px; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; text-decoration-thickness: 2px; }

.footer__contact {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}
.footer__contact a {
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 112%;
  color: var(--white);
  text-decoration: none;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--on-dark-rule);
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .header__phone { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .units__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .odo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .hero__caption { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }

  .brand { height: 46px; }

  .menu-btn { display: grid; }
  .header.is-open .menu-btn .icon--menu { display: none; }
  .header.is-open .menu-btn .icon--close { display: block; }
  .header__inner { display: flex; gap: 16px; }
  .header__actions { margin-left: auto; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    color: var(--black);
    box-shadow: 0 1px 0 var(--rule), 0 24px 40px -24px rgba(0, 0, 0, 0.35);
  }
  .header.is-open .nav { display: flex; }

  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.125rem;
    font-stretch: 112%;
    font-weight: 600;
  }
  .nav__phone { display: inline-flex; padding: 20px 0 4px; font-size: 1.125rem; }

  /* Hero stacks: photo on top, black panel content below, headline overlapping both. */
  .hero {
    flex-direction: column;
    min-height: 0;
  }
  .hero__panel,
  .hero__aside,
  .hero__rail { display: none; }

  .hero__media {
    position: relative;
    inset: auto;
    height: clamp(340px, 58svh, 560px);
  }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 55%, #000 100%);
  }

  .hero__inner {
    margin-top: -1.6em;
    padding-top: 0;
    padding-bottom: 56px;
    font-size: clamp(2.25rem, 12vw, 4.5rem);
  }
  .hero__title { font-size: 1em; line-height: 1.02; }
  .social { margin-top: 24px; }
  .hero__foot { width: auto; max-width: 30rem; padding-top: 24px; }
  .hero__lead { font-size: 1rem; }

  .section__head--split { grid-template-columns: 1fr; }
  .robotic__inner { grid-template-columns: 1fr; }

  .areas__inner,
  .faq__inner { grid-template-columns: 1fr; }
  .kmap { justify-self: center; }
  .faq .section__head { position: static; }

  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  .header__actions { display: none; }
  .menu-btn { margin-left: auto; }
  .nav__book { display: inline-flex; margin-top: 16px; }

  .hero__foot .btn { width: 100%; }
  .hero__badge {
    gap: 10px;
    padding-right: 14px;
    border-radius: 18px;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }
  .robotic__actions .btn { width: 100%; }

  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 24px 28px; }
  .card h3 { margin-top: 22px; }

  .units__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .units__list strong { font-size: 0.9375rem; }

  .odo { font-size: 2.25rem; }

  .steps { grid-template-columns: 1fr; gap: 40px; }

  .areas__copy .btn { width: 100%; }
  .faq__list summary { font-size: 1rem; padding-right: 40px; }
  .faq__list details p { padding-right: 0; }

  .form__fields { grid-template-columns: 1fr; }
  .form__submit .btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .map {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .map__canvas { position: relative; height: 400px; }
  .map__card {
    position: static;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }
  .map__card .btn { justify-self: stretch; }
  .footer__mark {
    top: auto;
    bottom: 64px;
    transform: translateX(-50%) scaleY(0.6);
    transform-origin: center bottom;
  }
  .footer__nav { justify-content: flex-start; }
  .footer__contact { text-align: left; }
}


/* ---------- Key facts (FAQ column) ---------- */

.facts {
  display: grid;
  margin-top: 32px;
  border-top: 1px solid var(--black);
  font-size: 0.9375rem;
}
.facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #d4d4d4;
}
.facts dt { color: var(--graphite); }
.facts dd { font-weight: 600; }

.faq__meta {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--graphite);
}

/* ---------- Brands marquee ---------- */

.brands {
  padding: clamp(72px, 9vw, 112px) 0;
  overflow: hidden;
}

.brands__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.brands__head h2 {
  font-size: clamp(2rem, 3.6vw, 3.125rem);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.brands__head p {
  max-width: 36rem;
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--graphite);
}

.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__inner {
  display: flex;
  width: max-content;
}
.marquee__list {
  display: flex;
  flex: none;
}
.marquee__list li {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  width: 168px;
  padding: 24px 0;
  border-left: 1px solid var(--rule);
}
.marquee__list img {
  width: 48px;
  height: 48px;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.marquee__list span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--graphite);
}
.marquee__list li:hover img { opacity: 1; transform: scale(1.08); }

@media (prefers-reduced-motion: no-preference) {
  .marquee__inner { animation: marquee 45s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Without motion, show every brand in a wrapping grid and hide the loop copy. */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__inner { width: auto; justify-content: center; }
  .marquee__list { flex-wrap: wrap; justify-content: center; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

@media (max-width: 640px) {
  .brands__head { flex-direction: column; align-items: flex-start; }
  .marquee__list li { width: 128px; }
  .marquee__list img { width: 40px; height: 40px; }
}

/* ---------- WhatsApp button (always visible) ---------- */

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 16px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s;
}
/* WhatsApp green that sweeps in from the left on hover. */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #25d366;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.wa-float__icon {
  width: 26px;
  height: 26px;
  color: #25d366;
  transition: color 0.3s;
}

@media (hover: hover) {
  .wa-float:hover {
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.55), 0 0 0 1px rgba(37, 211, 102, 0.4);
  }
  .wa-float:hover::before { transform: scaleX(1); }
  .wa-float:hover .wa-float__icon {
    color: var(--black);
    animation: wa-ring 0.7s ease-in-out;
  }
}
.wa-float:focus-visible { color: var(--black); }
.wa-float:focus-visible::before { transform: scaleX(1); }
.wa-float:focus-visible .wa-float__icon { color: var(--black); }
.wa-float:active { transform: scale(0.97); }

@keyframes wa-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); }
  30% { transform: rotate(12deg); }
  45% { transform: rotate(-9deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .wa-float,
  .call-bar { animation: settle 0.6s 1.2s var(--ease) backwards; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--red,
  .btn--red::before { transition-duration: 0.01s; }
  .btn--red::after { display: none; }
  .card,
  .card::before,
  .card__icon img,
  .card__mark,
  .ticks li::before { transition-duration: 0.01s; transition-delay: 0s; }
  .wa-float,
  .wa-float::before { transition-duration: 0.01s; }
  .wa-float:hover .wa-float__icon { animation: none; }
}

/* ---------- Call bar (phones only; replaces the floating WhatsApp button) ---------- */

.call-bar { display: none; }

@media (max-width: 640px) {
  .wa-float { display: none; }

  .call-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    background: var(--white);
    box-shadow: 0 -1px 0 var(--rule), 0 -12px 32px -16px rgba(0, 0, 0, 0.3);
  }
  .call-bar .btn { min-height: 50px; padding: 0 12px; }
  .call-bar .icon { width: 18px; height: 18px; }

  /* Out of the way while the menu is open or the keyboard is up. */
  .header.is-open ~ .call-bar,
  main:has(.form :is(input, select, textarea):focus) ~ .call-bar { display: none; }

  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .kmap text { font-size: 19px; stroke-width: 5px; }
  .kmap__home text { font-size: 23px; }
  .kmap__home .kmap__sub { font-size: 16px; }
}

/* ---------- Inner pages: robotic gearbox guides ---------- */

/* Header band reuses the red robotic section; extra top space clears the fixed header. */
.page-hero { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); }
.page-hero h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--white); font-weight: 600; }

/* The card title is an h2 here, so undo the big .robotic h2 headline style. */
.page-hero .robotic__card h2 {
  margin-top: 0;
  font-size: 1.125rem;
  letter-spacing: 0;
  line-height: 1.3;
}
.robotic__card .facts { margin-top: 14px; border-top-color: #2a2a2a; }
.robotic__card .facts div { border-bottom-color: #2a2a2a; }
.robotic__card .facts dt { color: var(--on-dark-muted); }

/* Linked system chips on the homepage */
.robotic__systems a {
  display: block;
  margin: -6px -12px;
  padding: 6px 12px;
  border-radius: inherit;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.robotic__systems li:has(a) { border-color: rgba(255, 255, 255, 0.55); }
.robotic__systems a:hover { background: var(--white); color: var(--black); }
.robotic__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.robotic__more .icon { width: 18px; height: 18px; }

/* Article column with a sticky call-to-action card beside it */
.guide__inner {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.guide__aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
}
.guide__aside h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
}
.guide__aside p { margin-bottom: 8px; font-size: 0.9375rem; color: var(--on-dark-muted); }
.guide__aside .btn { width: 100%; }
.guide__aside .btn--black { border-color: #333; }

.prose > * + * { margin-top: 20px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.prose > * + h2 { margin-top: clamp(56px, 7vw, 88px); }
.prose h3 { font-size: 1.125rem; font-weight: 700; }
.prose > * + h3 { margin-top: 32px; }
.prose p { max-width: 44rem; color: var(--graphite); }
.prose p strong { color: var(--black); }
.prose p a { color: var(--black); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 4px; }
.prose .ticks { gap: 12px; font-size: 1rem; }

/* Parts that fail: name on the left, explanation on the right */
.parts { border-top: 1px solid var(--black); }
.parts div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 6px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.parts dt { font-weight: 700; }
.parts dd { color: var(--graphite); }

/* Numbered repair steps */
.howto { counter-reset: step; border-top: 1px solid var(--black); }
.howto li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--graphite);
}
.howto li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
}
.howto strong { color: var(--black); }

.guide__meta { font-size: 0.8125rem; color: var(--graphite); }

/* System cards (hub page and "other systems" links) */
.sys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.sys {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px 24px 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.sys h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.sys p { font-size: 0.9375rem; color: var(--graphite); }
.sys a { color: inherit; text-decoration: none; }
.sys a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sys__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
}
.sys__more .icon { width: 16px; height: 16px; }
.sys--link { border-color: #bdbdbd; }
.sys--link:hover { border-color: var(--black); transform: translateY(-2px); }
.sys--link:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.sys--link a:focus-visible { outline: none; }

.band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.band .btn--black { border-color: #444; }

@media (max-width: 960px) {
  .guide__inner { grid-template-columns: 1fr; }
  .guide__aside { position: static; }
}

@media (max-width: 640px) {
  .parts div { grid-template-columns: 1fr; }
  .howto li { grid-template-columns: 40px minmax(0, 1fr); }
  .band__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sys { transition: none; }
  .sys--link:hover { transform: none; }
}
