/* ANP Performance — main stylesheet */

:root {
  --red: #e10600;
  --red-hover: #ff2a20;
  --line: #06c755;
  --navy: #14284b;
  --bg: #0b0b0d;
  --bg-2: #0e1014;
  --bg-3: #121418;
  --ink: #f4f3f1;
  --light: #f3f3f4;
  --muted: #a9abb1;
  --text-dark: #111;
  --text-gray: #555;
  --gutter: 32px;
  /* distance from viewport edge to the 1280px container's content edge */
  --edge: calc(var(--gutter) + max(0px, (100vw - 1280px) / 2));
  --font-head: 'Kanit', system-ui, sans-serif;
  --font-body: 'Prompt', 'Kanit', system-ui, sans-serif;
}

@media (max-width: 719px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* keep Android in-app browsers (IG/FB/LINE) from inflating text past the layout */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* body alone doesn't stop sideways panning on mobile Safari; the root's overflow
     goes to the viewport, so sticky still works */
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  padding-bottom: 80px; /* room for the floating sticky bar */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* stops AOS slide-ins widening the page; unlike hidden it keeps sticky working */
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-hover); }
img { display: block; max-width: 100%; }
/* `hidden` always wins, even over components that set display: flex/grid */
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
input, select, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #9a9ca1; }

.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: 300;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.red { color: var(--red); }
.italic { font-style: italic; }

/* Absolutely positioned cover image + overlays */
.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shade { position: absolute; inset: 0; pointer-events: none; }

/* Section headings */
.h-section {
  font: italic 800 34px/1.15 var(--font-head);
}
.h-section--sm { font-size: 30px; }
.lead { margin: 8px 0 28px; font-size: 16px; color: var(--text-gray); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 0;
  font: 600 15px var(--font-head);
  color: #fff;
  cursor: pointer;
  transition: background .2s, filter .2s;
}
.btn .ms { font-size: 18px; }
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-hover); color: #fff; }
.btn-line { background: var(--line); }
.btn-line:hover { color: #fff; filter: brightness(1.08); }
.btn-sm { padding: 6px 14px; border-radius: 7px; font: 500 13px var(--font-body); }
.btn-lg { padding: 12px 24px; border-radius: 10px; font-size: 16px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .5s ease, visibility .5s ease;
  /* safety net: hide even if JS never runs */
  animation: preloader-fallback .4s ease 8s forwards;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .85;
  animation: preloader-in .6s ease both;
}
.preloader .logo-img { height: 84px; margin: 0 auto; }
.preloader-bar {
  position: relative;
  width: 160px;
  height: 3px;
  margin-top: 26px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.preloader-bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: 3px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: preloader-slide 1.1s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes preloader-in {
  from { opacity: 0; transform: translateY(8px) skewX(-6deg); }
  to { opacity: 1; transform: none; }
}
@keyframes preloader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@keyframes preloader-fallback {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-inner, .preloader-bar span { animation: none; }
  .preloader-bar span { width: 100%; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 12, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { display: flex; flex-direction: column; line-height: .85; flex: none; margin-right: auto; }
.logo:hover { color: inherit; }
/* logo.png has a solid black background: lighten drops it on the dark theme */
.logo-img { display: block; height: 48px; width: auto; mix-blend-mode: lighten; }

.main-nav { display: flex; gap: 26px; white-space: nowrap; font: 500 14px var(--font-body); color: #d8d8d8; }
.main-nav a { padding: 6px 0; }
.header-cta { display: flex; gap: 10px; flex: none; }

.icon-btn {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  cursor: pointer;
}
.icon-btn .ms { font-size: 24px; }
.icon-btn--red { background: var(--red); border-color: var(--red); }
.icon-btn--red .ms { font-size: 22px; }
.icon-btn--red:hover { color: #fff; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
  padding-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font: 500 16px var(--font-body);
}

@media (max-width: 1099px) {
  .main-nav, .header-cta { display: none; }
  .icon-btn { display: flex; }
}
@media (min-width: 1100px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.hero-shade {
  background: linear-gradient(90deg, rgba(11, 11, 13, .97) 0%, rgba(11, 11, 13, .86) 38%, rgba(11, 11, 13, .25) 70%, rgba(11, 11, 13, .1) 100%);
}
.hero-fade {
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg), rgba(11, 11, 13, 0));
}
.hero-inner { position: relative; width: 100%; padding-top: 72px; padding-bottom: 88px; }
.hero-content { max-width: 580px; display: flex; flex-direction: column; gap: 20px; }
.hero-kicker { display: block; font: italic 700 clamp(24px, 3vw, 34px)/1.2 var(--font-head); }
.hero-title {
  display: block;
  margin-top: 10px;
  font: italic 800 clamp(34px, 4.4vw, 56px)/1.02 var(--font-head);
  letter-spacing: -.5px;
}
.hero-title span { font-weight: 900; color: var(--red); }
.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font: 500 clamp(16px, 1.6vw, 19px) var(--font-head);
  color: #e8e8e8;
}
.hero-tags .sep { color: var(--red); }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #ddd;
  background: rgba(0, 0, 0, .25);
}
.hero-badge {
  align-self: flex-start;
  margin-left: calc(-1 * var(--gutter));
  padding: 10px 28px 10px var(--gutter);
  background: var(--red);
  color: #fff; /* --ink on red is 4.47:1, just under WCAG AA */
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  font: 600 16px var(--font-body);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.cta-big {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 26px;
  border-radius: 12px;
  line-height: 1.15;
  color: #fff;
}
.cta-big small { font-size: 13px; }
.cta-big strong { font: 700 24px var(--font-head); white-space: nowrap; }
.cta-big--red {
  background: rgba(225, 6, 0, .7);
  border: 2px solid var(--red);
  box-shadow: 0 8px 24px rgba(225, 6, 0, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .2s;
}
.cta-big--red:hover { background: rgba(225, 6, 0, .9); color: #fff; }
.cta-big--line {
  background: rgba(6, 199, 85, .7);
  border: 2px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .2s;
}
.cta-big--line strong { font-size: 20px; }
.cta-big--line:hover { background: rgba(6, 199, 85, .9); color: #fff; }
/* Hero CTA "idle rumble": engine idling (short shake + exhaust glow every 3s),
   throttle blip on hover/tap. Uses `translate`/`scale` so it doesn't fight AOS transforms. */
.cta-big--red { --glow: rgba(225, 6, 0, .85); --base-shadow: 0 8px 24px rgba(225, 6, 0, .35); }
.cta-big--line { --glow: rgba(6, 199, 85, .85); --base-shadow: 0 0 0 transparent; }
.cta-rumble { animation: idle-rumble 3s linear infinite, exhaust-glow 3s ease-out infinite; }
.cta-rumble.cta-big--line { animation-delay: .4s; }
@keyframes idle-rumble {
  0%, 85%, 93%, 100% { translate: 0 0; }
  86% { translate: 1px -1px; }
  87% { translate: -1px 1px; }
  88% { translate: 1px 1px; }
  89% { translate: -1px 0; }
  90% { translate: 1px -1px; }
  91% { translate: 0 1px; }
  92% { translate: -1px 0; }
}
@keyframes exhaust-glow {
  0%, 84% { box-shadow: var(--base-shadow), 0 0 0 0 transparent; }
  88% { box-shadow: var(--base-shadow), 0 0 22px 4px var(--glow); }
  100% { box-shadow: var(--base-shadow), 0 0 0 14px transparent; }
}
.cta-rumble:hover, .cta-rumble:focus-visible, .cta-rumble:active {
  animation: throttle-blip .45s ease-out, exhaust-hold 1s ease-in-out .45s infinite alternate;
  scale: 1.04;
  transition: scale .2s;
}
@keyframes throttle-blip {
  0% { translate: 0 0; box-shadow: var(--base-shadow), 0 0 0 0 var(--glow); }
  15% { translate: 2px -2px; }
  30% { translate: -2px 2px; }
  45% { translate: 2px 1px; }
  60% { translate: -1px -1px; }
  75% { translate: 1px 0; box-shadow: var(--base-shadow), 0 0 34px 8px var(--glow); }
  100% { translate: 0 0; box-shadow: var(--base-shadow), 0 0 26px 4px var(--glow); }
}
@keyframes exhaust-hold {
  from { box-shadow: var(--base-shadow), 0 0 22px 3px var(--glow); }
  to { box-shadow: var(--base-shadow), 0 0 34px 8px var(--glow); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-rumble, .cta-rumble:hover, .cta-rumble:focus-visible, .cta-rumble:active { animation: none; scale: none; }
}

.hero-quote {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  text-align: right;
}
.hero-quote-main { font: italic 800 28px/1.2 var(--font-head); }
.hero-quote-main small { font-size: 18px; color: var(--red); }
.hero-quote-sub { font: italic 400 15px/1.4 var(--font-head); color: #ddd; }
@media (max-width: 1099px) {
  .hero-quote { display: none; }
}

/* ---------- Hero video playlist ---------- */
/* Two stacked <video>s crossfade between randomly ordered clips (see script.js) */
.hero-video-bg { position: absolute; inset: 0; background: var(--bg); }
.hero-vid { opacity: 0; transition: opacity .9s ease; object-position: center 40%; }
.hero-vid.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-vid { transition: none; }
}

/* Desktop: video fills the right half, text sits on the solid dark left half */
@media (min-width: 1100px) {
  .hero-video-bg { left: 50%; }
  /* soften the video's left edge into the background + darken its bottom for the quote */
  .hero-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 13, .6) 12%, rgba(11, 11, 13, 0) 35%),
      linear-gradient(0deg, rgba(11, 11, 13, .75) 0%, rgba(11, 11, 13, 0) 35%);
  }
  .hero--video .hero-shade { background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 50%, rgba(11, 11, 13, 0) 50%); }
}

/* Phones: full-bleed video, lighter at the top, dark behind the text */
@media (max-width: 719px) {
  .hero--video .hero-shade { background: linear-gradient(180deg, rgba(11, 11, 13, .25) 0%, rgba(11, 11, 13, .55) 30%, rgba(11, 11, 13, .9) 60%, rgba(11, 11, 13, .97) 100%); }
  .hero--video .hero-inner { padding-top: 220px; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-3);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.stat { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.stat-key {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1.5px solid var(--red);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font: italic 800 14px var(--font-head);
  color: var(--red);
}
.stat-text { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.stat-title { font: 600 17px var(--font-head); }
.stat-desc { font-size: 12.5px; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: var(--light); color: var(--text-dark); }
.services .container { padding-top: 64px; padding-bottom: 64px; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.svc-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .12); }
.svc-img { height: 190px; width: 100%; object-fit: cover; }
.svc-card:nth-child(2) .svc-img { object-fit: contain; }
.svc-body { padding: 18px 20px 22px; display: flex; gap: 14px; flex: 1; }
.icon-circle {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.icon-circle .ms { font-size: 24px; }
.svc-text { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-title { font: 600 18px/1.25 var(--font-head); }
.svc-num { color: var(--red); font-style: italic; margin-right: 6px; }
.svc-text p { font-size: 14px; color: var(--text-gray); line-height: 1.5; text-wrap: pretty; }
.svc-text .btn { margin-top: auto; align-self: flex-start; }

.promo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 340px;
  background: var(--bg);
  color: #fff;
}
.promo-shade { background: linear-gradient(90deg, rgba(11, 11, 13, .92), rgba(11, 11, 13, .25)); }
.promo-body {
  position: relative;
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.promo-title { font: italic 800 28px/1.25 var(--font-head); }
.promo-title span {
  display: inline-block; /* translate needs a box */
  color: var(--red-hover);
  /* same idle rumble as the hero CTA, with the exhaust glow as text-shadow */
  animation: idle-rumble 3s linear infinite, exhaust-glow-text 3s ease-out infinite;
}
.promo-title span:hover { animation: idle-rumble .45s linear infinite; text-shadow: 0 0 18px rgba(225, 6, 0, .9); }
@keyframes exhaust-glow-text {
  0%, 84% { text-shadow: 0 0 0 transparent; }
  88% { text-shadow: 0 0 18px rgba(225, 6, 0, .9), 0 0 4px rgba(255, 80, 60, .8); }
  100% { text-shadow: 0 0 28px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-title span, .promo-title span:hover { animation: none; }
}
.promo-sub { font: 600 20px/1.35 var(--font-head); }
.promo-body p { font-size: 15px; color: #ddd; }
.promo-body .btn { margin-top: auto; align-self: flex-start; padding: 10px 20px; border-radius: 9px; }

/* ---------- European specialist (brands) ---------- */
.euro-spec {
  position: relative;
  border-top: 3px solid #16171a;
  background: #0e0f12;
}
.euro-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  align-items: center;
}
.euro-spec-text { padding: 48px 0; }
.euro-spec-head { display: flex; align-items: center; gap: 16px; }
.euro-spec-head h2 { font: italic 800 30px/1 var(--font-head); }
.euro-spec-line { flex: 1; max-width: 90px; height: 2px; background: var(--red); }
.euro-spec-bar { width: 56px; height: 3px; background: var(--red); margin: 12px 0 32px; }
.brand-list { display: flex; gap: 28px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 76px; }
.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  --logo-c: #e8e8e6;
  background-color: var(--logo-c);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: background-color .2s, transform .2s;
  /* rev-light sweep: logos flash red one after another, left to right */
  animation: rev-light 3s ease-in-out infinite;
  animation-delay: calc(1s + var(--i, 0) * .14s);
}
.brand:nth-child(2) { --i: 1; }
.brand:nth-child(3) { --i: 2; }
.brand:nth-child(4) { --i: 3; }
.brand:nth-child(5) { --i: 4; }
.brand:nth-child(6) { --i: 5; }
.brand:nth-child(7) { --i: 6; }
.brand:hover .brand-logo { --logo-c: var(--red); transform: translateY(-3px) scale(1.08); }
@keyframes rev-light {
  0%, 18%, 100% { background-color: var(--logo-c); scale: 1; }
  8% { background-color: var(--red); scale: 1.12; }
}
/* logos: Simple Icons (CC0) — assets/img/brands/ */
.brand-logo--audi { --logo: url('../img/brands/audi.svg'); width: 76px; } /* wide mark: give it more room */
.brand-logo--vw { --logo: url('../img/brands/volkswagen.svg'); }
.brand-logo--mercedes { --logo: url('../img/brands/mercedes.svg'); }
.brand-logo--bmw { --logo: url('../img/brands/bmw.svg'); }
.brand-logo--lamborghini { --logo: url('../img/brands/lamborghini.svg'); }
.brand-logo--nissan { --logo: url('../img/brands/nissan.svg'); }
.brand-name { font: 500 13px var(--font-body); color: #e8e8e6; text-align: center; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .brand-logo { animation: none; }
}

.euro-spec-media {
  position: relative;
  height: 300px;
  /* bleed to the right edge of the viewport */
  margin-right: calc(-1 * var(--edge));
  overflow: hidden;
}
/* Random photo loop — "racing pass" transition.
   JS adds .race-r (new photo comes from the right) or .race-l (from the left) on the box,
   .is-active on the incoming slide and .is-leaving on the outgoing one. */
.slide { opacity: 0; }
.slide.is-active { opacity: 1; animation: slide-drift 3.2s linear both; }
.race-r .slide.is-active { animation: race-in-r .65s cubic-bezier(.2, .9, .25, 1) both, slide-drift 3.2s linear both; }
.race-l .slide.is-active { animation: race-in-l .65s cubic-bezier(.2, .9, .25, 1) both, slide-drift 3.2s linear both; }
.race-r .slide.is-leaving { opacity: 1; animation: race-out-l .55s cubic-bezier(.6, 0, .9, .4) both; }
.race-l .slide.is-leaving { opacity: 1; animation: race-out-r .55s cubic-bezier(.6, 0, .9, .4) both; }

/* slow push-in while a photo is on screen (uses `scale`, independent of the race transform) */
@keyframes slide-drift { from { scale: 1.02; } to { scale: 1.1; } }
@keyframes race-in-r {
  0% { translate: 100% 0; transform: skewX(-16deg); filter: blur(14px) brightness(1.4); }
  55% { filter: blur(3px) brightness(1.1); }
  80% { translate: -2% 0; transform: skewX(3deg); }
  100% { translate: 0 0; transform: none; filter: none; }
}
@keyframes race-in-l {
  0% { translate: -100% 0; transform: skewX(16deg); filter: blur(14px) brightness(1.4); }
  55% { filter: blur(3px) brightness(1.1); }
  80% { translate: 2% 0; transform: skewX(-3deg); }
  100% { translate: 0 0; transform: none; filter: none; }
}
@keyframes race-out-l {
  to { translate: -70% 0; transform: skewX(14deg); filter: blur(14px); opacity: 0; }
}
@keyframes race-out-r {
  to { translate: 70% 0; transform: skewX(-14deg); filter: blur(14px); opacity: 0; }
}

/* speed streaks (spans created by JS, position/length via custom properties) */
.speed-lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.streak {
  position: absolute;
  top: var(--y);
  left: 0;
  width: var(--w);
  height: var(--h, 2px);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9) 70%, #fff);
  box-shadow: 0 0 8px rgba(255, 255, 255, .6);
  opacity: 0;
}
.streak--red {
  background: linear-gradient(90deg, rgba(225, 6, 0, 0), var(--red) 70%, #ff4a40);
  box-shadow: 0 0 10px rgba(225, 6, 0, .8);
}
.race-r .streak { animation: streak-l .5s cubic-bezier(.3, 0, .7, 1) var(--d) both; }
.race-l .streak { animation: streak-r .5s cubic-bezier(.3, 0, .7, 1) var(--d) both; transform: scaleX(-1); }
@keyframes streak-l {
  0% { translate: calc(100cqw + 10%) 0; opacity: 0; }
  20% { opacity: 1; }
  100% { translate: calc(-1 * var(--w) - 10%) 0; opacity: 0; }
}
@keyframes streak-r {
  0% { translate: calc(-1 * var(--w) - 10%) 0; opacity: 0; }
  20% { opacity: 1; }
  100% { translate: calc(100cqw + 10%) 0; opacity: 0; }
}
.js-slideshow { container-type: inline-size; }

/* the slogan gets a small jolt as each photo rushes past */
.race-r.is-racing .euro-spec-slogan { animation: jolt-r .45s ease-out; }
.race-l.is-racing .euro-spec-slogan { animation: jolt-l .45s ease-out; }
@keyframes jolt-r {
  0%, 100% { translate: 0 0; }
  30% { translate: -8px 0; }
  60% { translate: 3px 0; }
}
@keyframes jolt-l {
  0%, 100% { translate: 0 0; }
  30% { translate: 8px 0; }
  60% { translate: -3px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.is-active, .slide.is-leaving, .streak, .euro-spec-slogan { animation: none !important; }
}

.euro-spec-shade {
  background: linear-gradient(90deg, #0e0f12 0%, rgba(14, 15, 18, 0) 30%, rgba(14, 15, 18, 0) 55%, rgba(14, 15, 18, .9) 100%);
}
.euro-spec-slogan {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  text-align: right;
}
.euro-spec-slogan-main { font: italic 800 32px/1 var(--font-head); }
.euro-spec-slogan-sub { font: 500 17px/1.5 var(--font-body); margin-top: 8px; color: #e4e4e2; }
/* stacked layout: let the photo bleed to both edges */
@media (max-width: 983px) {
  .euro-spec-media { margin-left: calc(-1 * var(--gutter)); }
  .euro-spec-shade { background: linear-gradient(90deg, rgba(14, 15, 18, .2) 0%, rgba(14, 15, 18, .9) 100%); }
}
@media (max-width: 719px) {
  .euro-spec-head h2 { font-size: 24px; }
  .brand-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 6px; }
  .brand { width: auto; }
  .brand-logo { width: 46px; height: 46px; }
  .brand-logo--audi { width: 60px; }
  .brand-name { font-size: 11.5px; white-space: normal; line-height: 1.3; }
  .euro-spec-slogan { right: 20px; }
  .euro-spec-slogan-main { font-size: 26px; }
}

/* ---------- Experience + Trust ---------- */
.exp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  background: var(--bg-2);
}
.exp-media { position: relative; min-height: 420px; }
.exp-shade { background: linear-gradient(90deg, rgba(14, 16, 20, .94) 0%, rgba(14, 16, 20, .6) 55%, rgba(14, 16, 20, .15) 100%); }
.exp-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--gutter) 48px var(--edge);
}
.exp-intro { font: 500 19px var(--font-body); }
.exp-years { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 6px; }
.exp-years b { font: italic 900 112px/1 var(--font-head); }
.exp-years span { font: italic 800 56px/1 var(--font-head); }
.exp-years i { width: 48px; height: 4px; background: var(--red); align-self: flex-end; margin-bottom: 14px; }
.exp-text { font: 600 20px/1.55 var(--font-body); max-width: 340px; }

.trust {
  background: var(--light);
  color: var(--text-dark);
  padding: 48px var(--edge) 48px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.trust h2 { font: italic 800 28px/1.2 var(--font-head); }
.trust-item { display: flex; align-items: center; gap: 16px; }
.trust-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon .ms { font-size: 30px; color: var(--red); }
.trust-item p { font: 400 15px/1.5 var(--font-body); color: #2a2b2f; }

/* ---------- Custom Tune ---------- */
.tune {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 3px solid #16171a;
}
.tune-media { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; }
.tune-shade { background: linear-gradient(90deg, var(--bg-2) 55%, rgba(14, 16, 20, .3)); }
.tune-inner { position: relative; padding-top: 64px; padding-bottom: 64px; }
.tune h2 { font: italic 800 clamp(26px, 3vw, 38px)/1.25 var(--font-head); max-width: 760px; }
.tune-lead { margin: 12px 0 40px; max-width: 620px; color: #c9cbd0; font-size: 16px; line-height: 1.6; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  max-width: 820px;
}
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.step-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font: italic 800 20px var(--font-head);
}
.step-title { font: 700 16px var(--font-head); letter-spacing: .5px; }
.step-desc { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.tune .btn-lg { margin-top: 40px; }
@media (max-width: 719px) {
  .tune-media { width: 100%; }
}

/* ---------- Tuning cards ---------- */
.tuning {
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, #121317, var(--bg));
}
.tuning .container { padding-top: 56px; padding-bottom: 56px; }
.tuning .lead { margin-top: 10px; color: #d8d8d6; }
.tuning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.tcard {
  background: #16171b;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.tcard:hover { border-color: var(--red); transform: translateY(-3px); }
/* photos are ~6:5 — keep their shape instead of a thin fixed-height strip */
.tcard > img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; }
/* slideshow card: same 6:5 box, slides stack inside it */
.tcard-media { position: relative; aspect-ratio: 6 / 5; overflow: hidden; background: #fff; }
.tcard-body { padding: 14px 12px 16px; text-align: center; }
.tcard-title { font: 600 16px var(--font-head); color: #fff; }
.tcard-desc { font-size: 13px; color: #b9bbbf; margin-top: 4px; }

/* ---------- Trust bar (from folder 1) ---------- */
.trust-bar { background: #f3f3f1; color: #121316; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.trust-bar-grid {
  padding-top: 26px;
  padding-bottom: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.trust-bar-item { display: flex; align-items: center; gap: 14px; }
.trust-bar-item .ms { flex: none; font-size: 38px; color: #121316; transition: color .2s; }
.trust-bar-item:hover .ms { color: var(--red); }
.trust-bar-item p { font: 400 14px/1.5 var(--font-body); color: #2a2b2f; }
@media (max-width: 719px) {
  .trust-bar-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding-top: 22px; padding-bottom: 22px; }
  .trust-bar-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust-bar-item .ms { font-size: 32px; color: var(--red); }
  .trust-bar-item p { font-size: 13px; }
}

/* ---------- European specialist + Why ---------- */
.euro { background: var(--light); color: var(--text-dark); }
.euro-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}
.euro-media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--bg);
  color: #fff;
}
.euro-shade { background: linear-gradient(180deg, rgba(11, 11, 13, .95) 0%, rgba(11, 11, 13, .2) 50%, rgba(11, 11, 13, .9) 100%); }
.euro-content {
  position: relative;
  min-height: 440px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.euro-content h2 { font: italic 900 32px/1.1 var(--font-head); }
.euro-bar { width: 56px; height: 3px; background: var(--red); margin: 6px 0 4px; }
.euro-sub { font: italic 600 22px/1.3 var(--font-head); }
.euro-content p { font-size: 14px; color: #ddd; }
.tag-row { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  --tag-c: rgba(255, 255, 255, .14);
  background: var(--tag-c);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  transition: transform .2s;
  /* same rev-light sweep as the brand logos */
  animation: rev-light-tag 3s ease-in-out infinite;
  animation-delay: calc(1s + var(--i, 0) * .14s);
}
.tag:nth-child(2) { --i: 1; }
.tag:nth-child(3) { --i: 2; }
.tag:nth-child(4) { --i: 3; }
.tag:nth-child(5) { --i: 4; }
.tag:nth-child(6) { --i: 5; }
.tag:nth-child(7) { --i: 6; }
.tag:hover { --tag-c: var(--red); transform: translateY(-2px); }
.tag--red { --tag-c: var(--red); }
@keyframes rev-light-tag {
  0%, 18%, 100% { background-color: var(--tag-c); scale: 1; }
  8% { background-color: var(--red); scale: 1.08; }
}
@media (prefers-reduced-motion: reduce) {
  .tag { animation: none; }
}

.why { padding: 40px var(--gutter); }
.why h2 { margin-bottom: 22px; font: 700 26px/1.2 var(--font-head); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.why-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.why-card::before { content: ''; width: 28px; height: 3px; background: var(--red); }
.why-card h3 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.why-card p { font-size: 12.5px; color: #666; line-height: 1.4; }

/* ---------- Works + Reviews ---------- */
.works { background: #fff; color: var(--text-dark); }
.works-grid {
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px;
  align-items: start;
}
.works-main { min-width: 0; }
@media (min-width: 1100px) {
  .works-main { grid-column: span 2; }
}
.works-main h2 { font: 700 30px/1.2 var(--font-head); }
.works-main .lead { margin: 4px 0 20px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.gallery-item {
  position: relative;
  height: 190px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: #fff;
  font-size: 12.5px;
  text-align: center;
}

.review-card {
  background: var(--bg-2);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-head { font: 600 20px var(--font-head); }
.review-rating { display: flex; align-items: center; gap: 8px; }
.review-rating b { font-size: 20px; }
.review-rating .stars { color: #f5b301; letter-spacing: 2px; }
.review-rating small { font-size: 12px; color: var(--muted); }
.review-img { height: 200px; width: 100%; border-radius: 10px; object-fit: cover; transition: opacity .3s; }
.review-quote { font-size: 15px; line-height: 1.55; color: #e6e6e6; min-height: 70px; }
.review-meta { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  font: 600 15px var(--font-head);
}
.review-who { line-height: 1.2; }
.review-name { font-size: 14px; }
.review-car { font-size: 12px; color: var(--muted); }
.dots { margin-left: auto; display: flex; gap: 6px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.dot.is-active { width: 20px; background: var(--red); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--bg); }
.contact-media { position: absolute; top: 0; left: 0; bottom: 0; width: 30%; opacity: .55; }
.contact-shade { background: linear-gradient(90deg, rgba(11, 11, 13, .6), var(--bg) 32%); }
.contact-grid {
  position: relative;
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  align-items: start;
}
.contact-cta { display: flex; flex-direction: column; gap: 14px; }
.contact-cta h2 { font: 700 24px/1.35 var(--font-head); }
.contact-cta h2 span { font-size: 30px; }
.contact-cta .btn { padding: 14px 20px; border-radius: 12px; font-size: 20px; gap: 10px; }
.contact-cta .btn .ms { font-size: 22px; }
.contact-cta .btn-line { display: block; font-size: 16px; line-height: 1.25; padding: 12px 20px; }
.qr { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.qr p { font-size: 13px; color: var(--muted); line-height: 1.5; }

.placeholder {
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 500 10px ui-monospace, Menlo, monospace;
  color: #55575c;
}
.placeholder--qr { width: 96px; height: 96px; flex: none; }
.placeholder--map {
  height: 180px;
  border-radius: 10px;
  background: #16171b;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, .2);
  font-size: 12px;
}

.contact-form {
  background: #fff;
  color: var(--text-dark);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.form-title { font: 600 17px var(--font-head); }
.form-sub { font-size: 12.5px; color: #666; margin-top: -6px; }
.form-fields { display: flex; flex-direction: column; gap: 10px; }
.form-fields[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field {
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 13px;
  background: #fff;
  color: var(--text-dark);
}
.field:focus { outline: none; border-color: var(--red); }
select.field { padding: 9px 8px; color: var(--text-gray); }
textarea.field { resize: vertical; }
.form-label { font-size: 12.5px; font-weight: 600; }
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px 10px;
}
.checks label { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #444; }
.checks input { accent-color: var(--red); }
.contact-form .btn { justify-content: center; padding: 12px; font-size: 15px; }
.form-thanks {
  padding: 28px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.form-thanks[hidden] { display: none; }
.form-thanks .ms { font-size: 44px; color: var(--red); }
.form-thanks strong { font-size: 16px; }
.form-thanks p { font-size: 13px; color: #55575c; }
.link-btn {
  margin-top: 6px;
  background: none;
  border: 0;
  color: var(--red);
  font: 500 13px var(--font-body);
  cursor: pointer;
}

.contact-list { display: flex; flex-direction: column; }
.contact-list h3, .contact-map h3 { font: 600 17px var(--font-head); margin-bottom: 4px; }
.contact-list h3 { margin-bottom: 12px; }
/* brand icons: Simple Icons (CC0) — assets/img/social/ */
.si { display: block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--u) center / contain no-repeat; mask: var(--u) center / contain no-repeat; }
.si-fb { --u: url('../img/social/facebook.svg'); }
.si-ig { --u: url('../img/social/instagram.svg'); }
.si-yt { --u: url('../img/social/youtube.svg'); }
.si-line { --u: url('../img/social/line.svg'); }
.si-wa { --u: url('../img/social/whatsapp.svg'); }
/* socials: icon-only circles */
.contact-social { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: translate .2s, box-shadow .2s;
}
.contact-social a:hover { color: #fff; translate: 0 -3px; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.contact-social .si { width: 20px; height: 20px; }
.contact-social--fb { background: #1877f2; }
.contact-social--ig { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
.contact-social--yt { background: #ff0000; }
.contact-social--wa { background: #25d366; }
/* email + website */
.contact-info { margin-top: 18px; display: grid; gap: 8px; font-size: 13.5px; }
.contact-info > div { display: flex; gap: 10px; align-items: flex-start; color: #e4e4e2; }
.contact-info .ms { flex: none; color: var(--muted); font-size: 19px; }
.contact-info span { min-width: 0; }
.contact-info a { display: block; overflow-wrap: anywhere; }
.contact-info a:hover { color: var(--red-hover); }

.contact-map { display: flex; flex-direction: column; gap: 10px; }
.contact-map .btn { align-self: flex-start; }
.contact-map p { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #060607; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: var(--muted); }
.site-footer .container { padding-top: 36px; }
.site-footer .logo { margin-right: 0; }
.site-footer .logo-img { height: 40px; }
.site-footer h4 { margin: 0 0 12px; font: 600 13px var(--font-head); color: #fff; letter-spacing: 1.5px; text-transform: uppercase; }
.site-footer h4::after { content: ''; display: block; width: 22px; height: 2px; background: var(--red); margin-top: 6px; }
/* top row: logo + grey brand marks */
.footer-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.footer-brands { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-brand {
  display: block;
  width: 30px;
  height: 30px;
  background: #5d6066;
  -webkit-mask: var(--logo) center / contain no-repeat; /* --logo comes from .brand-logo--* */
  mask: var(--logo) center / contain no-repeat;
  transition: background .2s;
}
.footer-brand:hover { background: #fff; }
.footer-brand.brand-logo--audi { width: 44px; }
/* 3 columns: about / services / contact */
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid p { line-height: 1.6; margin: 0 0 14px; max-width: 280px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ddd;
  background: rgba(255, 255, 255, .07);
  transition: background .2s, color .2s, translate .2s;
}
.footer-social a:hover { background: var(--red); color: #fff; translate: 0 -2px; }
.footer-social .si { width: 16px; height: 16px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: var(--red-hover); }
.footer-contact { display: grid; gap: 8px; }
.footer-contact div { display: flex; gap: 8px; align-items: center; }
.footer-contact .ms { flex: none; font-size: 18px; color: var(--red-hover); }
.footer-contact .si { flex: none; width: 18px; height: 18px; color: var(--red-hover); }
.footer-contact a { color: #e4e4e2; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--red-hover); }
.footer-bottom {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 12px;
}
.footer-top { display: inline-flex; align-items: center; gap: 4px; }
.footer-top .ms { font-size: 16px; }
.footer-top:hover { color: #fff; }

/* ---------- Sticky CTA bar ---------- */
/* floating pill: sits just above the bottom edge */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none; /* only the pill itself takes taps */
  transition: transform .35s ease-out, opacity .35s, visibility .35s;
}
/* script.js hides it until the hero is scrolled past */
.sticky-bar.is-hidden { transform: translateY(calc(100% + 12px)); opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .sticky-bar { transition: none; }
}
.sticky-bar-inner {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(20, 21, 25, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  overflow: hidden;
  pointer-events: auto;
}
.sticky-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 4px;
  color: #fff;
  font: 600 15px var(--font-head);
  white-space: nowrap;
  overflow: hidden;
  transition: background .2s;
}
.sticky-bar a + a { border-left: 1px solid rgba(255, 255, 255, .08); }
.sticky-bar a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sticky-bar .ms { font-size: 20px; }
.sticky-bar .si { width: 18px; height: 18px; }
.sticky-call { background: var(--red); }
.sticky-bar .sticky-call:hover { background: var(--red-hover); }
.sticky-line { background: var(--line); }
.sticky-bar .sticky-line:hover { background: var(--line); filter: brightness(1.08); }
.sticky-line .si { color: #fff; }
.sticky-yt .si { color: #ff0000; }
.sticky-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.sticky-txt b { font-weight: 600; }
.sticky-txt small { font: 400 11px var(--font-body); opacity: .85; overflow: hidden; text-overflow: ellipsis; }


/* =========================================================
   Responsive refinements
   ========================================================= */

/* Tablet & below */
@media (max-width: 1099px) {
  .hero { min-height: 560px; }
  .h-section { font-size: 30px; }
  .works-main h2 { font-size: 26px; }
  /* gallery full width, review card below */
  .works-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
  /* 17 photos + the wide first one = 18 cells: the last photo spans 3 to close the final row */
  .gallery-item:last-child { grid-column: span 3; }
  .review-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-items: start; }
  .review-img { grid-column: 2; grid-row: 1 / 5; height: 100%; min-height: 220px; }
}

/* Stacked euro-spec: drop the long decorative line */
@media (max-width: 983px) {
  .euro-spec-line { display: none; }
}

/* Small tablets / large phones */
@media (max-width: 899px) {
  /* Custom Tune: photo on top instead of behind the text */
  .tune-media { position: relative; width: auto; height: 240px; }
  .tune-shade { background: linear-gradient(180deg, rgba(14, 16, 20, 0) 0, rgba(14, 16, 20, 0) 140px, var(--bg-2) 240px); }
  .tune-inner { padding-top: 8px; }
}

/* Phones */
@media (max-width: 719px) {
  .h-section, .h-section--sm { font-size: 26px; }
  .lead { font-size: 15px; margin-bottom: 22px; }

  /* Header */
  .header-bar { gap: 10px; }
  .logo-img { height: 42px; }

  /* Hero */
  .hero { min-height: 0; align-items: flex-end; }
  .hero-shade { background: linear-gradient(180deg, rgba(11, 11, 13, .55) 0%, rgba(11, 11, 13, .82) 45%, rgba(11, 11, 13, .96) 100%); }
  .hero-inner { padding-top: 120px; padding-bottom: 40px; }
  .hero-content { gap: 16px; }
  .hero-tags { gap: 4px 12px; font-size: 15px; }
  .hero-tags .sep { display: none; }
  .hero-tags span:not(.sep)::before { content: '•'; color: var(--red); margin-right: 6px; }
  .pill { padding: 5px 12px; font-size: 12px; }
  .hero-badge { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
  /* wrap by content, not a fixed column width: if the text renders wider (Android font
     size / zoom settings, fallback fonts), the buttons stack instead of overflowing */
  .hero-ctas { gap: 10px; }
  .cta-big { flex: 1 1 auto; padding: 10px 14px; border-radius: 10px; }
  .cta-big strong { font-size: 18px; }
  .cta-big--line strong { font-size: 15px; }

  /* Stats: 2 columns, last one full width */
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr)); gap: 14px 12px; padding-top: 18px; padding-bottom: 18px; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat { gap: 10px; padding: 0; }
  .stat-key { width: 36px; height: 36px; font-size: 12px; }
  .stat-title { font-size: 15px; }
  .stat-desc { font-size: 11.5px; }

  /* Services */
  .services .container { padding-top: 48px; padding-bottom: 48px; }
  .svc-grid { gap: 14px; }
  .svc-img { height: 170px; }
  .svc-body { padding: 16px; gap: 12px; }
  .icon-circle { width: 38px; height: 38px; }
  .icon-circle .ms { font-size: 20px; }
  .svc-title { font-size: 17px; }
  .promo { min-height: 280px; }
  .promo-body { padding: 22px; }

  /* Euro-spec */
  .euro-spec-text { padding: 40px 0 28px; }
  .euro-spec-media { height: 240px; }

  /* Experience */
  .exp-media { min-height: 340px; }
  .exp-years b { font-size: 88px; }
  .exp-years span { font-size: 44px; }
  .exp-text { font-size: 17px; }
  .trust { padding-top: 40px; padding-bottom: 40px; gap: 16px; }
  .trust h2 { font-size: 24px; }
  .trust-icon { width: 44px; height: 44px; border-radius: 10px; }
  .trust-icon .ms { font-size: 24px; }
  .trust-item p { font-size: 14px; }

  /* Custom Tune: steps as a vertical timeline */
  .tune-inner { padding-bottom: 48px; }
  .tune-lead { margin-bottom: 28px; font-size: 15px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    text-align: left;
    padding-bottom: 18px;
  }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, .15);
  }
  .step-num { grid-row: 1 / 3; width: 44px; height: 44px; font-size: 16px; align-self: start; }
  .step-title { font-size: 15px; align-self: end; }
  .step-desc { font-size: 13px; align-self: start; }
  .tune .btn-lg { margin-top: 12px; }

  /* Tuning cards: horizontal swipe */
  .tuning .container { padding-top: 48px; padding-bottom: 48px; padding-right: 0; }
  .tuning h2, .tuning .lead { padding-right: var(--gutter); }
  .tuning-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-right: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .tuning-grid::-webkit-scrollbar { display: none; }
  .tcard { flex: 0 0 72%; scroll-snap-align: start; }
  .tcard:hover { transform: none; }

  /* Euro + Why */
  .euro-media, .euro-content { min-height: 380px; }
  .euro-content { padding: 32px var(--gutter); }
  .euro-content h2 { font-size: 26px; }
  .euro-sub { font-size: 19px; }
  .why { padding-top: 36px; padding-bottom: 40px; }
  .why h2 { font-size: 22px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why-card { padding: 14px 12px; }
  .why-card h3 { font-size: 14px; }
  .why-card p { font-size: 12px; }

  /* Works gallery: featured first image */
  .works-grid { padding-top: 48px; padding-bottom: 48px; }
  .works-main h2 { font-size: 24px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item { height: 140px; }
  .gallery-item:first-child { grid-column: 1 / -1; height: 200px; }
  .gallery-item:last-child { grid-column: auto; }
  .review-card { display: flex; padding: 20px; }
  .review-img { height: 180px; min-height: 0; }

  /* Contact */
  .contact-media { width: 100%; height: 260px; bottom: auto; opacity: .35; }
  .contact-shade { background: linear-gradient(180deg, rgba(11, 11, 13, .4) 0, var(--bg) 260px); }
  .contact-grid { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .contact-cta h2 span { font-size: 26px; }
  .contact-cta .btn { font-size: 18px; }
  .contact-form { padding: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .field { font-size: 16px; } /* prevents iOS zoom on focus */
  .checks { grid-template-columns: 1fr 1fr; }
  .checks label { font-size: 13px; }

  /* Footer */
  .site-footer .container { padding-top: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brands { gap: 16px; }
  .footer-brand { width: 24px; height: 24px; }
  .footer-brand.brand-logo--audi { width: 36px; }

  /* Sticky bar */
  .sticky-bar a { font-size: 14px; padding: 12px 4px; }
  .sticky-bar .sticky-call, .sticky-bar .sticky-line { gap: 5px; padding-top: 8px; padding-bottom: 8px; }
  .sticky-txt small { font-size: 10px; }
}

/* Small phones: stack the hero CTAs */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
}

/* Very small phones */
@media (max-width: 359px) {
  .brand-list { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}

/* Contact list: several values in one row (e.g. two emails) */

/* ---------- AOS: "racing" tuning ---------- */
/* AOS 2.3.4 maps every ease-out-* name to the same soft quad curve,
   so set a real expo-out: launches fast, locks in quickly */
body[data-aos-easing] [data-aos] { transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
/* shorter travel so cards snap up instead of floating */
body [data-aos="fade-up"] { transform: translate3d(0, 40px, 0); }
body [data-aos="zoom-in"] { transform: scale(.85); }

/* race-right / race-left: shoot in skewed + motion-blurred, overshoot, lock in */
body [data-aos^="race"] {
  opacity: 0;
  filter: blur(8px);
  transition-property: opacity, transform, filter;
}
body [data-aos="race-right"] { transform: translate3d(-160px, 0, 0) skewX(-18deg); }
body [data-aos="race-left"] { transform: translate3d(160px, 0, 0) skewX(18deg); }
body[data-aos-easing] [data-aos^="race"] { transition-timing-function: cubic-bezier(.2, 1.25, .35, 1); }
body [data-aos^="race"].aos-animate { opacity: 1; filter: none; transform: none; }

/* AOS fallback: if the CDN script didn't load, show everything without animation */
.no-aos [data-aos] { opacity: 1 !important; transform: none !important; filter: none !important; }

/* =========================================================
   Gallery lightbox
   ========================================================= */
.gallery-item { cursor: zoom-in; }
.gallery-item:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
/* zoom icon on hover */
.gallery-item::after {
  content: 'zoom_in';
  font-family: 'Material Symbols Outlined';
  font-feature-settings: 'liga';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(225, 6, 0, .9);
  color: #fff;
  font-size: 26px;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: scale(1); }

html.lb-open { overflow: hidden; }

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 6, 7, .92);
  color: #fff;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.lightbox[open] { display: flex; animation: lb-fade .25s ease; }
.lightbox::backdrop { background: rgba(6, 6, 7, .94); backdrop-filter: blur(4px); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  flex: none;
}
.lb-count { font: 600 15px var(--font-head); letter-spacing: 1px; color: #d8d8d8; }

.lb-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lb-btn .ms { font-size: 28px; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
  touch-action: pan-y;
  user-select: none;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  -webkit-user-drag: none;
}
.lb-img.lb-in-r { animation: lb-in-r .35s cubic-bezier(.2, .8, .2, 1); }
.lb-img.lb-in-l { animation: lb-in-l .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes lb-in-r { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes lb-in-l { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }

.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-thumbs {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 14px var(--gutter) 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.lb-thumb {
  flex: none;
  width: 84px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #16171b;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s, border-color .2s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.is-current { opacity: 1; border-color: var(--red); }

@media (max-width: 719px) {
  .lb-stage { padding: 0 8px; }
  .lb-nav { width: 42px; height: 42px; background: rgba(0, 0, 0, .6); border-color: rgba(255, 255, 255, .45); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-thumb { width: 64px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox[open], .lb-img.lb-in-r, .lb-img.lb-in-l { animation: none; }
}

/* =========================================================
   FAQ (native <details> accordion — crawlable, works without JS)
   ========================================================= */
.faq { background: var(--light); color: var(--text-dark); }
.faq-grid {
  padding-top: 64px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}
.faq-intro { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
.faq-intro h2 { font: italic 800 34px/1.15 var(--font-head); }
.faq-intro p { color: var(--text-gray); font-size: 15px; line-height: 1.6; }
.faq-intro .btn { align-self: flex-start; margin-top: 6px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
  border-left: 3px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-left-color: var(--red); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font: 600 16px/1.4 var(--font-head);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 12px; }
.faq-item summary .ms {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(225, 6, 0, .1);
  color: var(--red);
  font-size: 20px;
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), background .2s, color .2s;
}
.faq-item[open] summary .ms { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-item p { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.7; color: #444; }
@media (max-width: 899px) {
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-intro { position: static; }
}
@media (max-width: 719px) {
  .faq-grid { padding-top: 48px; padding-bottom: 48px; }
  .faq-intro h2 { font-size: 26px; }
  .faq-item summary { padding: 16px; font-size: 15px; }
  .faq-item p { padding: 0 16px 16px; font-size: 14px; }
}

/* ---------- Contact form: states ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 6, 0, .12); }
.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(225, 6, 0, .08);
  color: #b30500;
  font-size: 13px;
  line-height: 1.5;
}
.form-error[hidden] { display: none; }
.form-submit.is-sending { opacity: .75; cursor: progress; }
.form-submit.is-sending::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  animation: form-spin .7s linear infinite;
}
@keyframes form-spin { to { transform: rotate(360deg); } }
