/* ==========================================================================
   AUTOHAUS SENKAN — main.css
   Layout and sections of the home page. Tokens and primitives: base.css
   ========================================================================== */

main { position: relative; z-index: var(--z-content); }
section[id] { scroll-margin-top: var(--nav-h); }

.text-outline-bronze {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bronze);
}

/* Line masks (SplitText `mask: 'lines'` + hand-built hero/finale lines).
   Extra top padding keeps umlaut dots (Ü, Ä, Ö) from being clipped. */
.split-line-mask,
.hero__line,
.finale__line,
.reveal-line {
  padding-top: 0.16em; margin-top: -0.16em;
  padding-bottom: 0.06em; margin-bottom: -0.06em;
}
.reveal-line { display: block; overflow: clip; }
.reveal-line > * { display: inline-block; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: grid; grid-template-rows: 1fr auto;
  background: var(--bg);
  --r: 0px; --x: 50%; --y: 50%;
}
.preloader.is-leaving {
  -webkit-mask-image: radial-gradient(circle at var(--x) var(--y), transparent var(--r), #000 calc(var(--r) + 2px));
          mask-image: radial-gradient(circle at var(--x) var(--y), transparent var(--r), #000 calc(var(--r) + 2px));
}
.preloader.is-done { display: none; }
html.no-js .preloader { display: none; }

.preloader__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 68%);
          mask-image: radial-gradient(ellipse at center, #000 0%, transparent 68%);
}
.preloader__center {
  position: relative;
  display: grid; justify-items: center; align-content: center;
  gap: 22px; padding: 24px;
}
.preloader__logo { width: clamp(84px, 11vw, 132px); height: auto; overflow: visible; }
.pl-stroke {
  fill: transparent;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill 0.9s var(--ease-out);
}
.pl-stroke--s { stroke: var(--bronze-hi); }
.preloader.is-drawn .pl-stroke { fill: var(--text); }
.preloader.is-drawn .pl-stroke--s { fill: var(--bronze); }

.preloader__brand {
  font-family: var(--font-logo);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--text-dim);
  margin-right: -0.42em;
}
.preloader__brand strong { color: var(--text); font-weight: 600; }

.preloader__start {
  display: grid; justify-items: center; gap: 18px;
  margin-top: 18px;
}
.preloader__start[hidden] { display: none; }
.preloader__hint {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
}
.preloader__hint span { color: var(--bronze-hi); }
.preloader__silent {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 14px;
  transition: color var(--dur) var(--ease-out);
}
.preloader__silent:hover { color: var(--text); }

.preloader__bottom {
  position: relative;
  display: grid; gap: 18px;
  padding: 0 var(--gutter) clamp(22px, 4vh, 40px);
}
.preloader__status { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.preloader__label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
}
.preloader__count {
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.preloader__count small { font-size: 0.32em; color: var(--bronze-hi); margin-left: 0.1em; }

/* Shift lights (rev-limiter LEDs) */
.shiftlights { display: grid; grid-template-columns: repeat(24, 1fr); gap: clamp(3px, 0.5vw, 8px); }
.shiftlights i {
  height: 6px; border-radius: 3px;
  background: var(--surface-3);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.shiftlights i.on { background: var(--led, var(--bronze)); box-shadow: 0 0 14px var(--led, var(--bronze)); }
.shiftlights.is-full i { animation: shift-blink 0.16s steps(1) 6 alternate; }
@keyframes shift-blink { 50% { background: var(--surface-3); box-shadow: none; } }

/* Ignition button */
.ignition {
  position: relative;
  width: 148px; height: 148px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #2c2c31 0%, #141416 58%, #09090a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 -12px 30px -18px rgba(255, 255, 255, 0.25) inset,
    0 0 0 9px #0d0d0f,
    0 0 0 10px rgba(170, 142, 107, 0.6),
    0 30px 80px -20px rgba(0, 0, 0, 0.95),
    0 0 70px -10px var(--bronze-glow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.ignition::after {
  content: ''; position: absolute; top: 18px; left: 50%;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: #ff5a4f; box-shadow: 0 0 10px #ff5a4f;
  animation: led-breathe 1.8s ease-in-out infinite;
}
.ignition:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 -12px 30px -18px rgba(255, 255, 255, 0.3) inset,
    0 0 0 9px #0d0d0f,
    0 0 0 10px var(--bronze-hi),
    0 30px 80px -20px rgba(0, 0, 0, 0.95),
    0 0 110px -6px rgba(220, 195, 156, 0.55);
}
.ignition:active { transform: scale(0.94); }
.ignition.is-pressed::after { background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: none; }
.ignition__pulse {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid var(--bronze-hi);
  animation: ignition-pulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
.ignition__face { display: grid; justify-items: center; gap: 3px; margin-top: 8px; }
.ignition__small {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-dim); margin-right: -0.32em;
}
.ignition__big {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 18px rgba(220, 195, 156, 0.55);
}
@keyframes ignition-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes led-breathe { 50% { opacity: 0.35; } }

/* ==========================================================================
   WebGL stage, fallback, grain
   ========================================================================== */
.webgl {
  position: fixed; inset: 0; z-index: var(--z-webgl);
  pointer-events: none;
  background: var(--bg);
}
.webgl canvas { display: block; width: 100% !important; height: 100% !important; }
.webgl-fallback {
  position: fixed; inset: 0; z-index: var(--z-webgl);
  display: none; place-items: center;
  pointer-events: none;
  /* real showroom photo when the browser can't run the 3D scene at all */
  background:
    linear-gradient(90deg, rgba(6, 6, 7, 0.92) 0%, rgba(6, 6, 7, 0.6) 45%, rgba(6, 6, 7, 0.25) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 35%),
    url("../assets/img/showroom/roadster-1200.jpg") 62% 50% / cover no-repeat,
    var(--bg);
  background:
    linear-gradient(90deg, rgba(6, 6, 7, 0.92) 0%, rgba(6, 6, 7, 0.6) 45%, rgba(6, 6, 7, 0.25) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 35%),
    image-set(url("../assets/img/showroom/roadster-1600.webp") type("image/webp"), url("../assets/img/showroom/roadster-1200.jpg") type("image/jpeg")) 62% 50% / cover no-repeat,
    var(--bg);
}
.webgl-fallback__logo { display: none; }
@media (max-width: 760px) {
  .webgl-fallback {
    background:
      linear-gradient(to bottom, rgba(6, 6, 7, 0.25) 0%, rgba(6, 6, 7, 0.88) 60%),
      url("../assets/img/showroom/roadster-800.webp") 55% 0% / auto 62vh no-repeat,
      var(--bg);
  }
}
html.no-webgl .webgl { display: none; }
html.no-webgl .webgl-fallback { display: grid; }

.grain {
  position: fixed; inset: -50%; z-index: 70;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: transform 0.6s var(--ease-out);
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 6, 7, 0.82), rgba(6, 6, 7, 0));
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled::before {
  background: rgba(8, 8, 9, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-105%); }
html.menu-open .nav { transform: none; }

.nav__brand { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__logo { width: 40px; height: 36px; color: var(--text); flex: none; }
.nav__wordmark {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-logo); text-transform: uppercase; line-height: 1;
}
.nav__wordmark span { font-size: 15.5px; font-weight: 600; letter-spacing: 0.13em; margin-right: -0.13em; }
.nav__wordmark strong { font-size: 10px; font-weight: 400; letter-spacing: 0.5em; margin: 5px -0.5em 0 0; color: var(--text-dim); }

.nav__links { display: flex; gap: clamp(14px, 2vw, 32px); }
.nav__links a {
  position: relative; padding: 10px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--bronze-hi);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.sound-toggle:hover { color: var(--text); border-color: rgba(237, 233, 227, 0.4); }
.sound-toggle__bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-toggle__bars i { width: 2px; height: 22%; border-radius: 1px; background: currentColor; transition: height 0.3s ease; }
.sound-toggle[aria-pressed='true'] { color: var(--bronze-hi); border-color: rgba(170, 142, 107, 0.55); background: rgba(170, 142, 107, 0.08); }
.sound-toggle[aria-pressed='true'] .sound-toggle__bars i { animation: eq 0.8s ease-in-out infinite; }
.sound-toggle[aria-pressed='true'] .sound-toggle__bars i:nth-child(2) { animation-delay: -0.2s; }
.sound-toggle[aria-pressed='true'] .sound-toggle__bars i:nth-child(3) { animation-delay: -0.45s; }
.sound-toggle[aria-pressed='true'] .sound-toggle__bars i:nth-child(4) { animation-delay: -0.1s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* Floating sound control: appears once the engine sound has been started and stays put
   (the nav hides while scrolling down, which is exactly when the engine revs) */
.sound-dock {
  position: fixed; right: var(--gutter); bottom: 98px; z-index: calc(var(--z-hud) + 1);
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(220, 195, 156, 0.55);
  background: rgba(14, 13, 12, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  animation: dock-in 0.7s var(--ease-out) backwards;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out);
}
.sound-dock[hidden] { display: none; }
.sound-dock:hover { border-color: var(--bronze-hi); background: rgba(42, 34, 25, 0.9); transform: translateY(-2px); }
.sound-dock:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 3px; }
.sound-dock__icon {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bronze-grad); color: var(--on-bronze);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.sound-dock__bars { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.sound-dock__bars i { width: 2px; height: 30%; border-radius: 1px; background: currentColor; }
.sound-dock.is-on .sound-dock__bars i { animation: eq 0.8s ease-in-out infinite; }
.sound-dock.is-on .sound-dock__bars i:nth-child(2) { animation-delay: -0.2s; }
.sound-dock.is-on .sound-dock__bars i:nth-child(3) { animation-delay: -0.45s; }
.sound-dock.is-on .sound-dock__bars i:nth-child(4) { animation-delay: -0.1s; }
.sound-dock__off { display: none; width: 18px; height: 18px; }
.sound-dock:not(.is-on) .sound-dock__icon { background: transparent; color: var(--bronze-hi); box-shadow: inset 0 0 0 1px rgba(220, 195, 156, 0.5); }
.sound-dock:not(.is-on) .sound-dock__bars { display: none; }
.sound-dock:not(.is-on) .sound-dock__off { display: block; }
.sound-dock__key {
  display: none; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 5px; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: 0; color: var(--text-faint);
}
html.has-cursor .sound-dock__key { display: inline-grid; }
.sound-dock::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
}
.sound-dock.is-new::after { animation: dock-pulse 1.4s ease-out 0.6s 2; }
@keyframes dock-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes dock-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 195, 156, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(220, 195, 156, 0); }
}

.nav__burger {
  display: none; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.nav__burger-lines { display: grid; gap: 6px; width: 18px; }
.nav__burger-lines i { display: block; height: 1.5px; background: var(--text); transition: transform 0.45s var(--ease-out); }
.nav__burger[aria-expanded='true'] .nav__burger-lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded='true'] .nav__burger-lines i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: rgba(6, 6, 7, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 8.5vw, 3.4rem); line-height: 1.05;
}
.menu__links a .mono {
  font-size: 11px; font-weight: 400; font-stretch: 100%; letter-spacing: 0.16em; color: var(--bronze-hi);
}
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px; }
.menu__foot a {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
}
.menu__foot svg { width: 18px; height: 18px; color: var(--bronze-hi); }

/* ==========================================================================
   HUD (speedometer + gear) and custom cursor
   ========================================================================== */
.hud {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 20px; z-index: var(--z-hud);
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.6s ease;
}
html.is-ready .hud.is-on { opacity: 1; }
.hud__speedo { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 8px; }
.hud__kmh { font-size: 26px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.hud__unit { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.hud__bar { grid-column: 1 / -1; width: 128px; height: 2px; margin-top: 8px; background: var(--line); overflow: hidden; }
.hud__bar span {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--bronze), var(--bronze-hi) 70%, #ff6b5e);
  transform-origin: left; transform: scaleX(0);
}
.hud__gear { display: grid; justify-items: end; }
.hud__gear-label, .hud__section { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.hud__gear-value {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 34px; line-height: 1; color: var(--bronze-hi);
}
.hud__section { color: var(--text-dim); }

.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
/* The native pointer always stays visible – the ring is only a halo trailing it. */
.cursor__ring {
  position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  display: grid; place-items: center;
  border: 1px solid rgba(220, 195, 156, 0.3);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), background 0.4s ease, border-color 0.4s ease, opacity 0.3s ease;
}
.cursor.is-hover .cursor__ring {
  width: 86px; height: 86px; margin: -43px 0 0 -43px;
  background: rgba(220, 195, 156, 0.1);
  border-color: var(--bronze-hi);
}
.cursor__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bronze-hi);
  opacity: 0; transition: opacity 0.25s ease;
}
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-hidden .cursor__ring { opacity: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 32px) 0 clamp(96px, 14vh, 150px);
}
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(75% 95% at 0% 70%, rgba(6, 6, 7, 0.88) 0%, rgba(6, 6, 7, 0.45) 42%, transparent 70%),
    linear-gradient(to top, rgba(6, 6, 7, 0.75), transparent 38%);
}
.hero__content { position: relative; }
.hero__title {
  font-size: clamp(3.1rem, 8.4vw, 9.6rem);
  line-height: 0.86;
  margin: 20px 0 26px;
}
.hero__line { display: block; overflow: clip; }
.hero__line > span { display: inline-block; }
.hero__lead { max-width: 42ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__rating {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px;
  font-size: var(--fs-sm); color: var(--text-dim);
  transition: color 0.3s ease;
}
.hero__rating:hover { color: var(--text); }
.hero__rating strong { color: var(--text); }
.hero__stars { display: flex; gap: 2px; color: var(--bronze-hi); }
.hero__stars svg { width: 14px; height: 14px; }
.hero__corner {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 56px);
  display: flex; gap: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px;
  display: grid; justify-items: center; gap: 12px;
  transform: translateX(-50%);
}
.hero__scroll .mono { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); }
.hero__scroll-line { position: relative; width: 1px; height: 52px; background: var(--line); overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--bronze-hi);
  animation: scroll-line 1.8s var(--ease-in-out) infinite;
}
@keyframes scroll-line { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ==========================================================================
   Story (sticky chapters over the 3D camera path)
   ========================================================================== */
.story { position: relative; height: 300vh; }
.story__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.chapter {
  --v: 0;
  position: absolute; top: 50%; z-index: 1;
  width: min(600px, 42vw);
  container-type: inline-size; /* titles are capped to the column (FINANZIERUNG?) */
  opacity: var(--v);
  visibility: hidden;
  transform: translate3d(0, calc(-50% + (1 - var(--v)) * 46px), 0);
}
.chapter.is-visible { visibility: visible; }
.chapter[data-side='left'] { left: var(--gutter); }
.chapter[data-side='right'] { right: var(--gutter); }
.chapter__num {
  display: block;
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(220, 195, 156, 0.5);
  margin-bottom: 22px;
  transform: translate3d(0, calc((1 - var(--v)) * 30px), 0);
}
.chapter__title { font-size: min(clamp(2.1rem, 4.4vw, 4.6rem), 9.3cqi); margin: 16px 0 20px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.chapter__text { color: var(--text-dim); font-size: var(--fs-lg); max-width: 40ch; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7); }
.chapter__cta { margin-top: 30px; pointer-events: auto; }

.story__ticks {
  position: absolute; left: 50%; bottom: 30px; z-index: 1;
  display: flex; gap: clamp(14px, 3vw, 40px);
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint);
}
.story__ticks li { position: relative; display: flex; gap: 8px; padding-top: 14px; transition: color 0.4s ease; white-space: nowrap; }
.story__ticks li::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--line-strong);
}
.story__ticks li::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--bronze-hi);
  transform: scaleX(var(--fill, 0)); transform-origin: left;
}
.story__ticks li span { color: var(--bronze-hi); }
.story__ticks li.is-active { color: var(--text); }

/* ==========================================================================
   Showroom (real photos of the dealership)
   ========================================================================== */
.showroom { position: relative; padding: clamp(90px, 14vh, 160px) 0 clamp(70px, 10vh, 120px); }
.showroom__head { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.showroom__head > div { container-type: inline-size; }
/* "TRANSPARENZ." is one unbreakable word (~9.6em wide) – cap the size to the column */
.showroom__title { margin-top: 18px; font-size: min(clamp(2.2rem, 5.2vw, 5.4rem), 9.8cqi); line-height: 0.95; }
.showroom__title .word { display: inline-block; }
.showroom__lead { max-width: 40ch; }
.showroom__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15.5vw, 260px);
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(36px, 6vh, 64px);
}
.showroom__hint { display: none; }
.shot {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.5s ease;
}
.shot--hero { grid-column: span 2; grid-row: span 2; }
.shot figure { margin: 0; height: 100%; }
.shot picture { display: contents; }
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03); filter: saturate(0.9) brightness(0.9);
  transition: transform 1.4s var(--ease-out), filter 0.6s ease;
}
.shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 6, 7, 0.82) 0%, rgba(6, 6, 7, 0) 48%);
}
.shot figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: clamp(0.78rem, 0.95vw, 0.95rem); letter-spacing: 0.08em; text-transform: uppercase;
}
.shot figcaption .mono { font-size: 10px; font-weight: 400; letter-spacing: 0.16em; color: var(--bronze-hi); }
.shot--hero figcaption { left: 24px; bottom: 20px; font-size: clamp(1rem, 1.5vw, 1.4rem); }
.shot:hover { border-color: rgba(220, 195, 156, 0.45); }
.shot:hover img { transform: scale(1.09); filter: saturate(1) brightness(1); }

/* ==========================================================================
   Inventory
   ========================================================================== */
.inventory {
  position: relative;
  padding: clamp(80px, 11vh, 140px) 0 clamp(70px, 9vh, 120px);
  background: var(--bg);
}
.inventory::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 40vh;
  background: linear-gradient(to bottom, rgba(6, 6, 7, 0), var(--bg));
  pointer-events: none;
}
.inventory__head {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: end;
}
.inventory__title { margin-top: 18px; }
.inventory__count { color: var(--bronze-hi); font-variant-numeric: tabular-nums; }

.marquee { display: grid; gap: 2px; margin: clamp(36px, 6vh, 72px) 0; overflow: hidden; }
.marquee__row { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding-right: 0.35em;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.6vw, 7rem); line-height: 1.05;
  color: var(--text);
}
.marquee__item svg { width: 0.42em; height: 0.38em; color: var(--bronze); --logo-accent: var(--bronze-hi); }
.marquee__row--outline .marquee__item { color: transparent; -webkit-text-stroke: 1px rgba(237, 233, 227, 0.26); }
.marquee__row--outline .marquee__item svg { color: rgba(237, 233, 227, 0.26); --logo-accent: rgba(170, 142, 107, 0.5); }

.inventory__body {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 7vw, 120px); align-items: center;
}
.catlist { border-top: 1px solid var(--line); }
.catlist li { border-bottom: 1px solid var(--line); }
.catlist a {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px;
  padding: clamp(12px, 1.5vw, 18px) clamp(4px, 1vw, 16px);
  transition: color 0.35s ease;
}
.catlist a::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--bronze-grad);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
.catlist__num { font-size: 12px; letter-spacing: 0.16em; color: var(--bronze-hi); transition: color 0.35s ease; }
.catlist__name { font-size: clamp(1.25rem, 2.5vw, 2.4rem); line-height: 1.05; transition: transform 0.6s var(--ease-out); }
.catlist__go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); transition: border-color 0.35s ease, transform 0.6s var(--ease-out); }
.catlist__go svg { width: 22px; height: 22px; }
.catlist a:hover, .catlist a:focus-visible { color: var(--on-bronze); }
.catlist a:hover::before, .catlist a:focus-visible::before { transform: scaleY(1); }
.catlist a:hover .catlist__num, .catlist a:focus-visible .catlist__num { color: var(--on-bronze); }
.catlist a:hover .catlist__name, .catlist a:focus-visible .catlist__name { transform: translateX(14px); }
.catlist a:hover .catlist__go, .catlist a:focus-visible .catlist__go { border-color: var(--on-bronze); transform: rotate(45deg); }

.orbit-cta {
  position: relative;
  width: clamp(190px, 19vw, 260px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
}
.orbit-cta__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 18s linear infinite; }
.orbit-cta__ring text {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  fill: var(--text-dim);
}
.orbit-cta__core {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bronze-grad);
  color: var(--on-bronze);
  box-shadow: 0 20px 70px -20px var(--bronze-glow);
  transition: transform 0.6s var(--ease-snap);
}
.orbit-cta__core svg { width: 36%; height: 36%; }
.orbit-cta:hover .orbit-cta__core { transform: scale(1.12) rotate(45deg); }
.orbit-cta:hover .orbit-cta__ring text { fill: var(--bronze-hi); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Sell section wrapper (wizard styles live in sell.css)
   ========================================================================== */
.section--sell {
  position: relative;
  padding: clamp(72px, 10vh, 120px) 0;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(170, 142, 107, 0.08), transparent 70%),
    var(--bg);
}

/* ==========================================================================
   Documents checklist
   ========================================================================== */
.docs { position: relative; padding: clamp(72px, 10vh, 120px) 0; background: var(--bg); }
.docs__head { max-width: 780px; margin-bottom: clamp(28px, 4vh, 44px); }
.docs__head .lead { margin-top: 22px; }
.docs__head h2 { margin-top: 18px; }
.docs__layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 5vw, 88px); align-items: start; }

.segmented {
  position: relative;
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 5px; margin-bottom: 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.segmented__pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--radius-pill);
  background: var(--bronze-grad);
  box-shadow: 0 8px 30px -10px var(--bronze-glow);
  transition: transform 0.55s var(--ease-out);
}
.segmented[data-active='1'] .segmented__pill { transform: translateX(100%); }
.segmented__btn {
  position: relative; z-index: 1;
  height: 48px; padding: 0 clamp(14px, 2.4vw, 26px);
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.35s ease;
}
.segmented__btn[aria-selected='true'] { color: var(--on-bronze); }

.checklist { border-top: 1px solid var(--line); }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist__item { display: flex; width: 100%; padding: 14px 4px; gap: 18px; }
.checklist__item strong { display: block; font-weight: 600; font-size: 1.05rem; transition: color 0.3s ease; }
.checklist__item em {
  margin-left: 8px;
  font-style: normal; font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-hi);
}
.checklist__item small { display: block; margin-top: 4px; font-size: 0.9rem; color: var(--text-dim); }
.checklist__item input:checked ~ span:last-child strong {
  color: var(--text-dim);
  text-decoration: line-through; text-decoration-color: var(--bronze); text-decoration-thickness: 1.5px;
}

.docs__aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 18px; }
.docs__visual {
  margin: 0; overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 40%, rgba(170, 142, 107, 0.16), transparent 70%), var(--surface);
}
.docs__visual picture, .members__bg picture { display: contents; }
.docs__visual img { width: 100%; height: 100%; object-fit: cover; }
.docs__visual.is-empty img { display: none; }
.docs__meter { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 20px; padding: 22px; }
.docs__ring { width: 92px; height: 92px; transform: rotate(-90deg); }
.docs__ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 6; }
.docs__ring-fg {
  fill: none; stroke: var(--bronze-hi); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.9s var(--ease-out);
}
.docs__meter-text { display: grid; gap: 4px; }
.docs__meter-count { font-size: 2.2rem; line-height: 1; }
.docs__meter-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.docs__print { grid-column: 1 / -1; }

/* ==========================================================================
   Finance
   ========================================================================== */
.finance { position: relative; padding: clamp(72px, 10vh, 120px) 0; background: var(--bg); overflow: hidden; }
.finance__glow {
  position: absolute; right: -18vw; top: 6%;
  width: 62vw; height: 62vw;
  background: radial-gradient(circle, rgba(170, 142, 107, 0.17), transparent 62%);
  pointer-events: none;
}
.finance__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr minmax(360px, 540px);
  gap: clamp(40px, 7vw, 120px); align-items: start;
}
.finance__intro h2 { margin: 18px 0 24px; }
.perks { display: grid; gap: 24px; margin-top: 44px; }
.perks li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: start; }
.perks svg {
  width: 50px; height: 50px; padding: 13px;
  border-radius: 14px;
  border: 1px solid rgba(170, 142, 107, 0.4);
  background: rgba(170, 142, 107, 0.06);
  color: var(--bronze-hi);
}
.perks strong {
  display: block; margin-bottom: 4px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem;
}
.perks span { color: var(--text-dim); }

.calc { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 32px); }
.calc__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc__title {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.15rem;
}
.calc__row { display: grid; gap: 6px; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__value { font-family: var(--font-mono); font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.calc__terms { border: 0; padding: 0; margin: 0; gap: 10px; }
.calc__terms legend { margin-bottom: 10px; padding: 0; }
.calc__terms .chips { gap: 8px; }
.calc__terms .chip span { min-width: 54px; min-height: 44px; justify-content: center; padding: 8px 12px; font-family: var(--font-mono); font-size: 0.875rem; }
.calc__rate-input { position: relative; max-width: 170px; }
.calc__rate-input .input { padding-right: 44px; font-family: var(--font-mono); }
.calc__rate-input span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.calc__result {
  display: grid; gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(170, 142, 107, 0.32);
  background: linear-gradient(135deg, rgba(170, 142, 107, 0.12), rgba(170, 142, 107, 0.03));
}
.calc__result-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-hi); }
.calc__result-value { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__result-value small { font-size: 0.42em; color: var(--text-dim); }
.calc__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 8px 0 0; font-size: 0.875rem; }
.calc__facts dt { color: var(--text-faint); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.calc__facts dd { margin: 2px 0 0; font-family: var(--font-mono); }
.calc__disclaimer { font-size: 0.75rem; line-height: 1.5; color: var(--text-faint); }
.calc__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__ctas .btn { flex: 1 1 auto; width: auto; white-space: nowrap; }

/* ==========================================================================
   Members / Händler
   ========================================================================== */
.members { position: relative; overflow: hidden; padding: clamp(80px, 11vh, 140px) 0; background: #050506; }
.members__bg { position: absolute; inset: 0; margin: 0; }
.members__bg img { width: 100%; height: 120%; object-fit: cover; object-position: 70% 50%; opacity: 0.6; }
.members__bg.is-empty img { display: none; }
.members__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.96) 0%, rgba(5, 5, 6, 0.78) 42%, rgba(5, 5, 6, 0.3) 100%),
    linear-gradient(to top, #050506 0%, transparent 32%),
    linear-gradient(to bottom, #050506 0%, transparent 26%),
    radial-gradient(40% 50% at 75% 45%, rgba(170, 142, 107, 0.14), transparent 70%);
}
.members__inner { position: relative; display: grid; gap: clamp(26px, 4vh, 40px); }
.members__head { max-width: 860px; display: grid; gap: 22px; }
.members__title { font-size: clamp(3rem, 7.5vw, 8rem); }
.members__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; }
.mcard { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 40px); transform-style: preserve-3d; }
.mcard .badge { justify-self: start; }
.mcard__title { font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.05; }
.mcard p { color: var(--text-dim); }
.mcard .mcard__claim { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-hi); }
.members__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.members__tags li {
  height: 36px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.members__cta { justify-self: start; }

/* ==========================================================================
   Finale (3D car drives off behind the text)
   ========================================================================== */
.finale { position: relative; height: 150vh; }
.finale__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(70px, 13vh, 150px);
}
.finale__eyebrow { margin-bottom: 20px; }
.finale__title { font-size: clamp(2.7rem, 8.8vw, 10rem); line-height: 0.88; }
.finale__line { display: block; overflow: clip; }
.finale__line > span { display: inline-block; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { position: relative; padding: clamp(64px, 9vh, 110px) 0 clamp(56px, 8vh, 96px); background: var(--bg); }
.contact::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 36vh;
  background: linear-gradient(to bottom, rgba(6, 6, 7, 0), var(--bg));
  pointer-events: none;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas: 'info photo' 'actions photo';
  gap: 40px clamp(40px, 7vw, 120px);
  align-items: start;
}
.contact__info { grid-area: info; display: grid; gap: 22px; container-type: inline-size; }
/* "DIESELSTRASSE 12" (~13em) stays on one line in its column */
.contact__address { font-size: clamp(1.9rem, 7.3cqi, 4.6rem); }
.contact__hours {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; margin: 6px 0 0;
  font-family: var(--font-mono); font-size: 0.875rem;
}
.contact__hours[hidden] { display: none; }
.contact__hours dt { color: var(--text-dim); }
.contact__hours dd { margin: 0; }
.contact__actions { grid-area: actions; border-top: 1px solid var(--line); }
.contact__actions li[hidden] { display: none; }
.action {
  display: grid; grid-template-columns: 54px 1fr auto; grid-template-rows: auto auto;
  column-gap: 18px; row-gap: 2px; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.action__icon {
  grid-row: 1 / 3;
  width: 54px; height: 54px; padding: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--bronze-hi);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.action__label { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.action__value {
  grid-column: 2;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  overflow-wrap: anywhere;
}
.action__go { grid-row: 1 / 3; grid-column: 3; width: 22px; height: 22px; transition: transform 0.45s var(--ease-out); }
.action:hover .action__icon { background: var(--bronze); border-color: var(--bronze); color: var(--on-bronze); }
.action:hover .action__go { transform: translateX(6px); }

.contact__photo {
  grid-area: photo;
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3; align-self: start;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  transition: border-color 0.4s ease;
}
.contact__photo picture { display: contents; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out); }
.contact__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 6, 7, 0.78) 0%, rgba(6, 6, 7, 0) 45%);
}
.contact__photo:hover { border-color: var(--bronze); }
.contact__photo:hover img { transform: scale(1.07); }
.contact__photo-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.contact__photo-tag svg { width: 16px; height: 16px; color: var(--bronze-hi); }
.contact__photo-go {
  position: absolute; right: 16px; bottom: 14px; z-index: 1;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bronze-grad); color: var(--on-bronze);
  transition: transform 0.5s var(--ease-snap);
}
.contact__photo-go svg { width: 18px; height: 18px; }
.contact__photo:hover .contact__photo-go { transform: rotate(45deg) scale(1.08); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; overflow: hidden; padding: 0 0 36px; background: var(--bg); border-top: 1px solid var(--line); }
.footer__giant {
  padding-top: 3vw;
  font-size: clamp(4.5rem, 17.6vw, 24rem); /* vw includes the scrollbar – leave room for it */
  line-height: 0.82;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.footer__giant span {
  --fill: 0%;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 233, 227, 0.14);
  background: linear-gradient(90deg, #e9d3ae, #b8956a 45%, #7a5f40 80%) no-repeat;
  background-size: var(--fill) 100%;
  -webkit-background-clip: text; background-clip: text;
}
.footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 40px;
  margin-top: clamp(32px, 5vw, 64px);
}
.footer__logo { width: 52px; height: 48px; margin-bottom: 16px; color: var(--text); }
.footer__brand p { color: var(--text-dim); font-size: 0.9375rem; }
.footer__brand strong { color: var(--text); font-weight: 600; }
.footer__nav, .footer__legal { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__legal a { color: var(--text-dim); width: fit-content; transition: color 0.3s ease; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--text); }
.footer__credits { grid-column: 1 / -1; max-width: 100ch; font-size: 0.75rem; color: var(--text-faint); }
.footer__credits a { text-decoration: underline; text-underline-offset: 2px; }
.footer__copy { grid-column: 1 / -1; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }

/* ==========================================================================
   Modal (Händler-Bewerbung)
   ========================================================================== */
.modal {
  width: 100%; max-width: min(700px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0; border: 0;
  background: transparent; color: inherit;
  overflow: visible;
}
.modal::backdrop { background: rgba(3, 3, 4, 0.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal[open] .modal__card { animation: modal-in 0.55s var(--ease-out); }
.modal__card {
  position: relative;
  display: grid; gap: 16px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
}
.modal__close { position: absolute; top: 16px; right: 16px; }
.modal__lead { max-width: 52ch; }
.modal__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.modal fieldset { border: 0; margin: 0; padding: 0; }
.modal fieldset legend { margin-bottom: 10px; padding: 0; }
.field--full { grid-column: 1 / -1; }
.modal__status { min-height: 1.4em; font-size: 0.9375rem; }
.modal__status.is-error { color: var(--danger); }
.modal__status.is-ok { color: var(--ok); }
.modal__status a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@keyframes modal-in { from { opacity: 0; transform: translateY(28px) scale(0.98); } }

/* ==========================================================================
   Warp transition to the inventory
   ========================================================================== */
.warp {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  background: #000;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.warp.is-active { visibility: visible; pointer-events: auto; }
.warp__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.warp__label { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.warp__label strong { font-size: clamp(2.4rem, 8vw, 7rem); }
.warp__label .mono { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bronze-hi); }
.warp__host { color: var(--text-dim) !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
}

@media (max-width: 1080px) {
  .inventory__head { grid-template-columns: 1fr; gap: 24px; }
  .showroom__head { grid-template-columns: 1fr; gap: 18px; }
  .inventory__body { grid-template-columns: 1fr; }
  .orbit-cta { justify-self: center; }
  .docs__layout { grid-template-columns: 1fr; }
  .docs__aside { position: static; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .docs__visual { aspect-ratio: auto; min-height: 260px; }
  .finance__grid { grid-template-columns: 1fr; }
  .members__cards { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; grid-template-areas: 'info' 'photo' 'actions'; }
  .contact__photo { width: 100%; max-width: 640px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  /* numbers only, so the ticks clear the HUD speedo on tablets */
  .story__ticks { gap: 14px; }
  .story__ticks li { font-size: 0; min-width: 44px; }
  .story__ticks li span { font-size: 10px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 68px; }
  .hud { display: none; }
  .nav__wordmark { display: none; }
  .hero { padding-bottom: 64px; }
  .hero__title { font-size: clamp(2.6rem, 13.5vw, 4.6rem); margin: 16px 0 18px; }
  .hero__lead { font-size: 1rem; }
  .hero__ctas { margin-top: 26px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__corner, .hero__scroll { display: none; }
  .hero__veil {
    background: linear-gradient(to top, rgba(6, 6, 7, 0.96) 0%, rgba(6, 6, 7, 0.78) 42%, rgba(6, 6, 7, 0) 66%);
  }

  .story__sticky::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(6, 6, 7, 0.96) 0%, rgba(6, 6, 7, 0.78) 38%, rgba(6, 6, 7, 0) 60%);
  }
  .chapter, .chapter[data-side='left'], .chapter[data-side='right'] {
    left: var(--gutter); right: var(--gutter);
    top: auto; bottom: 74px;
    width: auto;
    transform: translate3d(0, calc((1 - var(--v)) * 30px), 0);
  }
  .chapter__num { font-size: 4rem; margin-bottom: 8px; }
  .chapter__title { font-size: min(clamp(2rem, 10vw, 2.8rem), 9.3cqi); margin: 10px 0 12px; }
  .chapter__text { font-size: 1rem; }
  .story__ticks { bottom: 22px; gap: 10px; font-size: 0; }
  .story__ticks li { width: 36px; padding-top: 0; }
  .story__ticks li span { display: none; }

  .showroom { padding: 72px 0 52px; }
  .showroom__grid {
    display: flex; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin: 28px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }
  .showroom__grid::-webkit-scrollbar { display: none; }
  .shot, .shot--hero { flex: 0 0 80vw; height: 60vw; scroll-snap-align: start; }
  .showroom__hint {
    display: block; margin-top: 14px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-faint);
  }
  .marquee__item { font-size: clamp(2.4rem, 13vw, 4rem); }
  .catlist a { grid-template-columns: 40px 1fr auto; gap: 10px; }
  .catlist__go { width: 42px; height: 42px; }
  .docs__aside { grid-template-columns: 1fr; }
  .docs__visual { display: none; } /* decorative – keeps the checklist compact on phones */
  .segmented { display: grid; width: 100%; }
  .modal__fields { grid-template-columns: 1fr; }
  .finale { height: 140vh; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Short laptop screens (1280×720, 1366×768 …): headline scales with the height so the hero
   (title, lead, CTAs, rating) clears the HUD speedo at the bottom. */
@media (min-width: 761px) and (max-height: 820px) {
  .hero { padding-top: calc(var(--nav-h) + 18px); padding-bottom: 100px; }
  .hero__title { font-size: clamp(3.1rem, min(8.4vw, 11.5vh), 9.6rem); margin: 14px 0 18px; }
  .hero__ctas { margin-top: 24px; }
  .hero__rating { margin-top: 18px; }
}

/* Short phones (SE, 360×740 …): keep the 3D car above the copy – the lead repeats the chapters anyway. */
@media (max-width: 760px) and (max-height: 780px) {
  .hero { padding-bottom: 34px; }
  .hero__title { margin: 12px 0 14px; }
  .hero__lead { display: none; }
  .hero__ctas { margin-top: 18px; gap: 10px; }
  .hero__rating { margin-top: 16px; }
}

/* Portrait tablets & monitors: the 3D scene frames the car in the upper half (like on phones),
   so the copy moves to the bottom instead of sitting beside the car. */
@media (orientation: portrait) and (min-width: 761px) {
  .hero__veil {
    background: linear-gradient(to top, rgba(6, 6, 7, 0.95) 0%, rgba(6, 6, 7, 0.7) 40%, rgba(6, 6, 7, 0) 62%);
  }
  .story__sticky::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(6, 6, 7, 0.95) 0%, rgba(6, 6, 7, 0.74) 36%, rgba(6, 6, 7, 0) 58%);
  }
  .chapter, .chapter[data-side='left'], .chapter[data-side='right'] {
    left: var(--gutter); right: auto;
    top: auto; bottom: 120px;
    width: min(640px, calc(100% - 2 * var(--gutter)));
    transform: translate3d(0, calc((1 - var(--v)) * 30px), 0);
  }
  .chapter__num { font-size: clamp(4.5rem, 9vw, 7rem); }
}

@media (max-width: 480px) {
  /* slightly narrower display face so long German words (Gebrauchtwagen, Finanzierung) fit */
  .display, .menu__links a { font-stretch: 108%; }
}

@media (max-width: 420px) {
  .sound-toggle { width: 42px; padding: 0; justify-content: center; }
  .sound-toggle__label { display: none; }
  .nav__cta { display: none; }
  .btn--lg { --btn-h: 60px; padding: 0 24px; }
}

@media (max-width: 760px) {
  /* the HUD is hidden on phones, so the dock takes the corner */
  .sound-dock { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); height: 46px; }
  .sound-dock.is-compact { gap: 0; padding: 0 6px; }
  .sound-dock.is-compact .sound-dock__label,
  html.has-cursor .sound-dock__key { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .orbit-cta__ring, .ignition__pulse { animation: none !important; }
  .sound-dock, .sound-dock::after, .sound-dock .sound-dock__bars i { animation: none !important; }
}

/* ==========================================================================
   Print — only the documents checklist
   ========================================================================== */
@media print {
  html.print-docs body * { visibility: hidden !important; }
  html.print-docs .docs, html.print-docs .docs * { visibility: visible !important; }
  html.print-docs .docs { position: absolute; left: 0; top: 0; width: 100%; background: #fff; color: #000; padding: 0; }
  html.print-docs .docs__aside, html.print-docs .segmented, html.print-docs .docs__head .lead { display: none !important; }
  html.print-docs .docs__panel[hidden] { display: block !important; }
  html.print-docs .docs__panel { margin-bottom: 24px; }
  html.print-docs .docs__panel::before { content: attr(data-print-title); display: block; font: 700 18px/1.4 Arial, sans-serif; margin: 16px 0 8px; }
  html.print-docs .display { color: #000 !important; -webkit-text-stroke: 0 !important; }
  html.print-docs .checklist__item small, html.print-docs .checklist__item strong { color: #000 !important; }
  html.print-docs .check__box { border-color: #000 !important; }
  html.print-docs .grain, html.print-docs .hud, html.print-docs .cursor, html.print-docs .sound-dock { display: none !important; }
}
