/* Porsche-inspired layer: precision, tension, purpose. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #050506;
  --bg-2: #0c0c0f;
  --bg-3: #141418;
  --studio: #ebe6dc;
  --studio-ink: #111114;
  --chalk: #f3efe6;
  --mute: #9a958c;
  --silver: #cfc8bc;
  --red: #d5001c;
  --red-2: #ee1024;
  --gold: #b9a389;
  --line: rgba(243, 239, 230, 0.1);
  --font-d: "Inter Tight", "Syne", sans-serif;
  --font-b: "Manrope", "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
}
h1, h2, h3, .display, .logo, .card-num, .price-tag, .hero-meta b, .stats b, .card-foot strong {
  font-family: var(--font-d);
}

/* Grain + vignette */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: var(--red);
  transform-origin: left;
  pointer-events: none;
}

.nav {
  mix-blend-mode: normal;
}
.nav.scrolled {
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(22px) saturate(1.2);
}
.btn-red {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2em;
}
.btn-red::after {
  content: "→";
  margin-left: 8px;
  transition: transform .35s var(--ease);
}
.btn-red:hover::after { transform: translateX(4px); }
.btn-red::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(-120%);
}
.btn-red:hover::before { animation: sheen .7s var(--ease); }
@keyframes sheen { to { transform: translateX(120%); } }

.hero-media img { will-change: transform; }
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line-inner {
  display: block;
  animation: riseLine 1.05s var(--ease) both;
}
.hero h1 .line:nth-child(2) .line-inner { animation-delay: .12s; }
.hero h1 .line:nth-child(3) .line-inner { animation-delay: .24s; }
@keyframes riseLine {
  from { transform: translateY(110%); }
  to { transform: none; }
}
.avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.avail i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3dcf7a;
  box-shadow: 0 0 0 0 rgba(61,207,122,.7);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
}

/* Teaser cards like Porsche model tiles */
.card {
  min-height: 280px;
  background: #0b0b0e;
}
.card-media {
  padding: 0;
  isolation: isolate;
}
.card-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
  transition: transform 1s var(--ease), filter .45s;
}
.card-media:hover img { transform: scale(1.08); filter: saturate(1) contrast(1.08); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; min-height: 168px; }
.service-block img { transition: transform 1.1s var(--ease), filter .4s; }
.service-block:hover img { transform: scale(1.04); }
.card-media .card-num { margin: 0 0 10px; }
.card {
  --mx: 50%;
  --my: 0%;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(213,0,28,.16), transparent 42%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* Studio model stage */
.stage {
  background: var(--studio);
  color: var(--studio-ink);
  padding: 96px 0 80px;
}
.stage .eyebrow { color: var(--red); }
.stage .eyebrow::before { background: var(--red); }
.stage h2 {
  color: var(--studio-ink);
  font-size: clamp(40px, 7vw, 84px);
  max-width: 14ch;
}
.stage .sec-head p { color: #5c574e; max-width: 420px; }
.model-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(17,17,20,.12);
  margin: 36px 0 28px;
}
.model-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 22px 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: #6b665c;
  cursor: pointer;
}
.model-tabs button.is-on {
  color: var(--studio-ink);
  border-bottom-color: var(--red);
}
.model-view {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 40px;
  align-items: center;
  min-height: 420px;
}
.model-photo {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #d8d2c6;
}
.model-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: opacity .55s var(--ease), transform 1.2s var(--ease);
}
.model-photo.is-swap img { opacity: 0; transform: scale(1.04); }
.model-spec h3 { font-size: 42px; margin: 8px 0 12px; }
.model-spec p { color: #5c574e; margin-bottom: 18px; }
.model-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin: 22px 0 28px;
}
.model-dl div { border-top: 1px solid rgba(17,17,20,.12); padding-top: 10px; }
.model-dl dt {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a8478;
}
.model-dl dd { font-family: var(--font-d); font-size: 20px; margin-top: 4px; }
.stage .btn-red { color: #fff; }
.stage .btn-ghost { border-color: rgba(17,17,20,.25); color: var(--studio-ink); }

/* Horizontal film strip */
.strip {
  padding: 0 0 80px;
  background: var(--bg);
}
.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 22px;
}
.strip-hint { color: var(--mute); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.strip-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(20px, calc((100% - 1180px) / 2)) 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
  touch-action: pan-x;
}
.strip-track figure {
  flex: 0 0 min(72vw, 520px);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.strip-track img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.strip-track figure:hover img { transform: scale(1.05); }
.strip-track figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0,0,0,.86);
  display: none;
  place-items: center;
  padding: 24px;
}
.lb.is-on { display: grid; }
.lb img { max-width: min(1100px, 92vw); max-height: 86vh; object-fit: contain; }
.lb button {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Quick book drawer */
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 125;
  opacity: 0;
  pointer-events: none;
  transition: .35s;
}
.drawer-bg.is-on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: #0c0c0f;
  z-index: 126;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  border-left: 1px solid var(--line);
  overflow: auto;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
}
.drawer.is-on { transform: none; }
.drawer h2 { font-size: 34px; margin: 8px 0 8px; }
.drawer .form { margin-top: 18px; }

.clock {
  font-variant-numeric: tabular-nums;
}

/* Headlight on fleet */
.fleet-main {
  --lx: 70%;
  --ly: 40%;
}
.fleet-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--lx) var(--ly), rgba(255,240,210,.18), transparent 55%);
  mix-blend-mode: screen;
}

@media (max-width: 900px) {
  .model-view { grid-template-columns: 1fr; }
  .model-photo, .model-photo img { min-height: 240px; }
  .strip-track figure { flex-basis: 84vw; }
  .strip-track img { height: 240px; }

}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line-inner { animation: none; }
  .card-media img, .strip-track img { transition: none; }
}
