/* ===================================================================
   VELOCE — Exotic Car Rental
   =================================================================== */

:root {
  --obsidian: #050505;
  --charcoal: #0F0F0F;
  --asphalt: #1A1A1A;
  --champagne: #C9A96E;
  --champagne-dim: #8C734A;
  --ivory: #F5F0E8;
  --mist: #9A9590;
  --smoke: #4A4846;

  --pad-x: clamp(20px, 5vw, 80px);
  --rhythm: clamp(120px, 15vh, 200px);
  --max: 1280px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: auto; }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--champagne); color: var(--obsidian); }

/* Hide default cursor on desktop with fine pointer */
@media (hover: hover) and (pointer: fine) {
  body.cursor-ready,
  body.cursor-ready * { cursor: none !important; }
}

/* ===================================================================
   TYPOGRAPHY HELPERS
   =================================================================== */

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.display { font-weight: 300; letter-spacing: -0.03em; line-height: 0.9; }
.section-headline { font-weight: 300; letter-spacing: -0.02em; line-height: 1.0; font-size: clamp(36px, 5vw, 72px); }
.body-lg { font-size: 20px; line-height: 1.5; }

/* ===================================================================
   PAGE LOADER
   =================================================================== */

.loader {
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  --rect-w: min(80vw, 600px);
  --rect-h: min(58vh, 360px);
  --ease-loader: cubic-bezier(0.85, 0, 0.15, 1);
}

/* Top & bottom black panes — these are the actual blackout. They retract
   with the splitting frame, exposing the hero through the opening. */
.loader-pane {
  position: absolute; left: 0; right: 0;
  height: 50%;
  background: var(--obsidian);
  transform: translateY(0);
  transition: transform 0.65s var(--ease-loader);
  will-change: transform;
}
.loader-pane--top    { top: 0; }
.loader-pane--bottom { bottom: 0; }

.loader.is-opening .loader-pane--top    { transform: translateY(calc(var(--rect-h) / -2)); }
.loader.is-opening .loader-pane--bottom { transform: translateY(calc(var(--rect-h) /  2)); }
.loader.is-fading  .loader-pane--top    { transform: translateY(-100%); transition-duration: 0.7s; }
.loader.is-fading  .loader-pane--bottom { transform: translateY( 100%); transition-duration: 0.7s; }

/* Stage holds the four champagne edges of the rectangle. */
.loader-stage {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--rect-w);
  height: var(--rect-h);
  transform: translate(-50%, -50%);
}

.loader-edge {
  position: absolute;
  background: var(--champagne);
  will-change: transform, width, height, opacity;
}
/* Horizontal edges: start stacked exactly at center as a single line. */
.loader-edge--top,
.loader-edge--bottom {
  left: 50%; top: 50%;
  height: 1px; width: 0;
  transform: translate(-50%, -50%);
  transition: width 0.8s var(--ease-loader),
              transform 0.65s var(--ease-loader);
}
.loader.is-growing .loader-edge--top,
.loader.is-growing .loader-edge--bottom { width: 100%; }

.loader.is-opening .loader-edge--top    { transform: translate(-50%, calc(-50% - var(--rect-h) / 2)); }
.loader.is-opening .loader-edge--bottom { transform: translate(-50%, calc(-50% + var(--rect-h) / 2)); }

/* Vertical edges: appear once the rectangle is opening. */
.loader-edge--left,
.loader-edge--right {
  top: 50%;
  width: 1px; height: 0;
  transform: translateY(-50%);
  opacity: 0;
  transition: height 0.5s var(--ease-loader) 0.1s,
              opacity 0.3s ease 0.15s;
}
.loader-edge--left  { left: 0; }
.loader-edge--right { right: 0; }
.loader.is-opening .loader-edge--left,
.loader.is-opening .loader-edge--right { height: 100%; opacity: 1; }

.loader.is-fading .loader-edge {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* VELOCE mark — sits below the bottom edge throughout. */
.loader-mark {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--rect-h) / 2 + 28px);
  transform: translateX(-50%);
  color: var(--mist);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.5s ease 0.15s;
}
.loader.is-growing .loader-mark { opacity: 1; }
.loader.is-fading  .loader-mark { opacity: 0; transition-delay: 0s; transition-duration: 0.3s; }

body.loaded .loader.gone { display: none; }

/* ===================================================================
   CUSTOM CURSOR
   =================================================================== */

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid rgba(201, 169, 110, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--champagne);
  mix-blend-mode: difference;
}
.cursor::after {
  content: "";
  width: 0; height: 0;
  background: var(--champagne);
  border-radius: 50%;
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out);
}
body.cursor-hover .cursor { width: 56px; height: 56px; border-color: rgba(201, 169, 110, 0.3); }
body.cursor-hover .cursor::after { width: 4px; height: 4px; }
body.cursor-explore .cursor { width: 88px; height: 88px; border-color: rgba(201, 169, 110, 0.5); }
body.cursor-explore .cursor::before { content: "EXPLORE"; }
body.cursor-explore .cursor::after { display: none; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ===================================================================
   NAVIGATION
   =================================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  min-height: 72px;
  height: calc(72px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  transition: transform 0.4s var(--ease-out),
              background-color 0.4s ease,
              backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(74, 72, 70, 0.15);
}
.nav.hidden { transform: translateY(-100%); }

.nav-mark {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
}
.nav-mark .dot { color: var(--champagne); }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-link {
  position: relative;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 0.3s ease;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute; bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--champagne);
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--champagne); }
.nav-link:hover::after { width: 100%; left: 0; }

.nav-burger { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-burger span {
  width: 22px; height: 1px;
  background: var(--champagne);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
body.menu-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--obsidian);
  z-index: 90;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 var(--pad-x);
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s ease;
}
.mobile-menu a:hover { color: var(--champagne); }
body.menu-open .mobile-menu a {
  opacity: 1; transform: translateY(0);
}
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.25s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; z-index: 100; }
}

/* ===================================================================
   BUTTONS
   =================================================================== */

.btn-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--obsidian);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background-color 0.25s ease, box-shadow 0.3s ease;
  border: 1px solid var(--champagne);
}
.btn-pill:hover { background: #d6b97e; transform: scale(1.02); }
.btn-pill:active { transform: scale(0.97); opacity: 0.92; transition: all 0.05s ease; }
.btn-pill .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn-pill:hover .arrow { transform: translateX(4px); }

.btn-pill.large { padding: 20px 48px; font-size: 20px; }

/* ===================================================================
   SECTION 1 — HERO
   =================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute; inset: 0;
  will-change: transform;
}
.hero-img {
  width: 100%; height: 120%;
  object-fit: cover;
  object-position: center;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, var(--obsidian) 100%),
    linear-gradient(to bottom, transparent 50%, rgba(5,5,5,0.95) 100%);
  pointer-events: none;
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 0 var(--pad-x);
  padding-top: 100px;
  will-change: transform, opacity;
}
.hero-tag {
  color: var(--mist);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s var(--ease-out) 0.6s, transform 1s var(--ease-out) 0.6s;
}
body.loaded .hero-tag { opacity: 1; transform: translateY(0); }
.hero-tag .accent { color: var(--champagne); }

.hero-bottom {
  margin-top: auto;
  padding-bottom: clamp(60px, 10vh, 120px);
  max-width: 1000px;
}
.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  margin-bottom: 32px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s var(--ease-out), opacity 1s var(--ease-out);
}
.hero-title .accent { color: var(--champagne); font-weight: 400; }
body.loaded .hero-title .word { transform: translateY(0); opacity: 1; }
body.loaded .hero-title .line:nth-child(1) .word { transition-delay: 0.4s; }
body.loaded .hero-title .line:nth-child(2) .word { transition-delay: 0.55s; }

.hero-sub {
  color: var(--mist);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out) 1s, transform 1s var(--ease-out) 1s;
}
body.loaded .hero-sub { opacity: 1; transform: translateY(0); }

.hero-cta {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s var(--ease-out) 1.2s, transform 0.8s var(--ease-out) 1.2s;
}
body.loaded .hero-cta { opacity: 1; transform: scale(1); }

.hero-scroll-hint {
  position: absolute; bottom: 32px; right: var(--pad-x);
  display: flex; align-items: center; gap: 12px;
  color: var(--mist);
  opacity: 0;
  transition: opacity 1s ease 1.6s;
}
body.loaded .hero-scroll-hint { opacity: 1; }
.hero-scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--champagne), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 768px) {
  .hero-img { object-position: 60% center; }
  .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .hero-bottom { padding-bottom: 80px; }
  .hero-scroll-hint { display: none; }
  .hero-grain { display: none; }
}

/* ===================================================================
   SECTION 2 — FLEET (Horizontal Scroll)
   =================================================================== */

.fleet {
  position: relative;
  background: var(--obsidian);
}
.fleet-pin {
  height: 400vh;
  position: relative;
}
.fleet-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 40% 60%;
  overflow: hidden;
}
.fleet-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  gap: 24px;
  z-index: 2;
}
.fleet-label { color: var(--champagne); }
.fleet-label .num { color: var(--champagne); }
.fleet-headline {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ivory);
  max-width: 500px;
}
.fleet-headline .word {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease-out);
}
.fleet-headline.in .word { clip-path: inset(0 0% 0 0); }
.fleet-headline.in .word:nth-child(1) { transition-delay: 0.05s; }
.fleet-headline.in .word:nth-child(2) { transition-delay: 0.15s; }
.fleet-headline.in .word:nth-child(3) { transition-delay: 0.25s; }
.fleet-headline.in .word:nth-child(4) { transition-delay: 0.35s; }
.fleet-headline.in .word:nth-child(5) { transition-delay: 0.45s; }

.fleet-body { color: var(--mist); max-width: 400px; }
.fleet-counter {
  margin-top: 24px;
  color: var(--mist);
  display: flex; align-items: center; gap: 16px;
}
.fleet-counter .current { color: var(--champagne); font-size: 14px; }
.fleet-counter .total { font-size: 14px; }
.fleet-counter .bar {
  flex: 1; max-width: 200px; height: 1px;
  background: rgba(74,72,70,0.3);
  position: relative;
  overflow: hidden;
}
.fleet-counter .bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--champagne);
  transition: width 0.3s ease;
}

.fleet-right {
  position: relative;
  overflow: hidden;
}
.fleet-track {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  gap: 24px;
  padding-left: 0;
  padding-right: var(--pad-x);
  height: 80vh;
  will-change: transform;
}
.fleet-card {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--charcoal);
  cursor: pointer;
}
.fleet-card-img-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
.fleet-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
@media (hover: hover) {
  .fleet-card:hover .fleet-card-img { transform: scale(1.05); }
}
.fleet-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.3) 40%, transparent 70%);
}
.fleet-card-content {
  position: absolute;
  bottom: 32px; left: 32px; right: 32px;
  z-index: 2;
}
.fleet-card-brand {
  color: var(--champagne);
  margin-bottom: 12px;
}
.fleet-card-name {
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--ivory);
}
.fleet-card-specs {
  display: flex; gap: 16px;
  color: var(--mist);
  font-size: 11px;
  flex-wrap: wrap;
}
.fleet-card-specs span { white-space: nowrap; }
.fleet-card-specs span + span { position: relative; padding-left: 16px; }
.fleet-card-specs span + span::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 1px; background: var(--smoke);
  transform: translateY(-50%);
}
.fleet-card-num {
  position: absolute; top: 24px; right: 24px;
  z-index: 2;
  color: var(--champagne);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .fleet-pin { height: auto; }
  .fleet-sticky {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    padding: 80px 0;
    gap: 32px;
    overflow: visible;
  }
  .fleet-left { padding: 0 var(--pad-x); min-width: 0; }
  .fleet-right {
    overflow: visible;
    padding: 0;
    min-width: 0;
  }
  /* Move the counter above the carousel and restyle it as a native-style indicator */
  .fleet-counter {
    order: -1;
    margin: 0 var(--pad-x);
    display: flex;
  }
  .fleet-counter .bar { max-width: none; }

  .fleet-track {
    position: relative;
    top: auto; transform: none;
    display: flex;
    gap: 16px;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pad-x);
    padding: 4px var(--pad-x);
    scrollbar-width: none;
    touch-action: pan-x pan-y pinch-zoom;
  }
  .fleet-track::-webkit-scrollbar { display: none; }
  .fleet-card {
    flex: 0 0 auto;
    width: min(78vw, 320px);
    aspect-ratio: 3/4;
    height: auto;
    scroll-snap-align: start;
  }
}

/* ===================================================================
   SECTION 3 — EXPERIENCE
   =================================================================== */

.experience {
  position: relative;
  min-height: 150vh;
  overflow: hidden;
  padding: 0 var(--pad-x);
  display: flex; flex-direction: column;
  justify-content: center;
}
.experience-bg {
  position: absolute; inset: -10%;
  background: url("assets/experience-bg.webp") center/cover no-repeat;
  will-change: transform;
  z-index: 0;
}
.experience-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--obsidian) 0%, rgba(5,5,5,0.7) 30%, rgba(5,5,5,0.7) 70%, var(--obsidian) 100%);
}
.experience-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--rhythm) 0;
  width: 100%;
}
.experience-head {
  text-align: center;
  margin-bottom: clamp(60px, 8vw, 120px);
}
.experience-head .mono { color: var(--champagne); display: inline-block; margin-bottom: 32px; }
.experience-head h2 {
  max-width: 800px;
  margin: 0 auto;
  color: var(--ivory);
}
.exp-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.exp-panel {
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 72, 70, 0.15);
  padding: 40px;
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.6s var(--ease-out);
  opacity: 0;
  transform: translateY(80px);
  will-change: transform;
}
.exp-panel:nth-child(1) { transition-delay: 0s;   transform: translateY(80px);  }
.exp-panel:nth-child(2) { transition-delay: 0.1s; transform: translateY(120px); }
.exp-panel:nth-child(3) { transition-delay: 0.2s; transform: translateY(80px);  }
.exp-panel.in,
.exp-panel.in:nth-child(1),
.exp-panel.in:nth-child(2),
.exp-panel.in:nth-child(3) { opacity: 1; transform: translateY(0); }
@media (hover: hover) {
  .exp-panel:hover {
    border-color: rgba(201, 169, 110, 0.4);
    background: rgba(15, 15, 15, 0.85);
  }
}
.exp-panel .label { color: var(--champagne); }
.exp-panel h3 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ivory);
  margin-top: 8px;
}
.exp-panel p { color: var(--mist); margin-top: auto; }
.exp-panel .icon {
  width: 32px; height: 32px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  align-self: flex-start;
  margin-bottom: 16px;
}
.exp-panel .icon svg { width: 14px; height: 14px; stroke: var(--champagne); }

@media (max-width: 900px) {
  .exp-panels { grid-template-columns: 1fr; gap: 24px; }
  .exp-panel { min-height: 0; }
  .exp-panel:nth-child(2), .exp-panel:nth-child(3) { transform: translateY(60px); }
}

/* ===================================================================
   SECTION 4 — HOW IT WORKS
   =================================================================== */

.how {
  position: relative;
  background: var(--obsidian);
}
.how-pin {
  position: relative;
  height: 300vh;
}
.how-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.how-left {
  position: relative;
  overflow: hidden;
}
.how-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 1.4s var(--ease-out);
  will-change: opacity, transform;
}
.how-img.active { opacity: 1; transform: scale(1.0); }
.how-img.entering { transform: scale(1.05); }
.how-left::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 70%, var(--obsidian) 100%);
  pointer-events: none;
}

.how-right {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.how-section-label {
  color: var(--champagne);
  margin-bottom: 32px;
}
.how-steps {
  position: relative;
  height: 60vh;
  max-height: 500px;
}
.how-step {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.how-step.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.how-step.exiting { opacity: 0; transform: translateY(-30px); }
.how-step-num {
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 300;
  color: var(--champagne);
  letter-spacing: -0.04em;
  line-height: 0.9;
  display: inline-block;
}
.how-step-headline {
  color: var(--ivory);
  max-width: 500px;
}
.how-step-body {
  color: var(--mist);
  max-width: 480px;
}
.how-progress {
  position: absolute;
  left: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 240px;
  background: rgba(74,72,70,0.2);
}
.how-progress-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--champagne);
  transition: height 0.3s ease-out;
}
.how-dots {
  position: absolute;
  left: calc(var(--pad-x) - 4px);
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; justify-content: space-between;
  height: 240px;
}
.how-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--obsidian);
  border: 1px solid var(--smoke);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.how-dot.active { background: var(--champagne); border-color: var(--champagne); transform: scale(1.1); }
.how-right { padding-left: calc(var(--pad-x) + 40px); }

@media (max-width: 900px) {
  .how-pin { height: auto; }
  .how-sticky {
    position: relative;
    grid-template-columns: 1fr;
    height: auto;
    padding: 60px 0;
  }
  .how-left {
    height: 60vh;
    margin: 0 var(--pad-x) 40px;
  }
  .how-left::after { background: linear-gradient(to top, transparent 70%, var(--obsidian) 100%); }
  .how-right { padding: 0 var(--pad-x); padding-left: var(--pad-x); }
  .how-steps { height: auto; max-height: none; display: flex; flex-direction: column; gap: 60px; }
  .how-step {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .how-progress, .how-dots { display: none; }
}

/* ===================================================================
   SECTION 5 — STATS
   =================================================================== */

.stats {
  position: relative;
  background: var(--charcoal);
  padding: clamp(80px, 12vh, 160px) var(--pad-x);
  overflow: hidden;
  min-height: 60vh;
  display: flex; align-items: center;
}
.stats::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 80vw; height: 80vw;
  max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.stats-row {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  width: 100%;
}
.stat {
  position: relative;
  padding: 0 40px;
  text-align: center;
}
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 1px; height: 60%;
  background: rgba(74,72,70,0.25);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 1s var(--ease-out);
}
.stats.in .stat + .stat::before { transform: translateY(-50%) scaleY(1); }
.stats.in .stat + .stat::before { transition-delay: 0.4s; }
.stat-num {
  font-size: clamp(64px, 8vw, 100px);
  font-weight: 300;
  color: var(--champagne);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
}
.stat-label {
  color: var(--ivory);
  margin-top: 16px;
  font-size: 16px;
}
.stat-sub {
  color: var(--mist);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr; gap: 60px; }
  .stat { padding: 0; }
  .stat + .stat::before {
    width: 60%; height: 1px;
    top: -30px; left: 50%;
    transform: translateX(-50%) scaleX(0);
  }
  .stats.in .stat + .stat::before { transform: translateX(-50%) scaleX(1); }
}

/* ===================================================================
   SECTION 6A — MARQUEE
   =================================================================== */

.marquee {
  background: var(--asphalt);
  height: 80px;
  display: flex; align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(74,72,70,0.15);
  border-bottom: 1px solid rgba(74,72,70,0.15);
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  padding-left: 60px;
}
.marquee-track span {
  color: var(--mist);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track span::after {
  content: "●";
  color: var(--champagne);
  opacity: 0.7;
  font-size: 6px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================================================================
   SECTION 6B — TESTIMONIAL
   =================================================================== */

.testimonial {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--rhythm) var(--pad-x);
  background: var(--obsidian);
  overflow: hidden;
}
.testimonial-inner {
  position: relative;
  max-width: 800px;
  text-align: center;
}
.testimonial-mark {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", serif;
  font-size: 200px;
  font-weight: 300;
  color: rgba(201, 169, 110, 0.18);
  line-height: 1;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}
.testimonial-quote {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: 40px;
}
.testimonial-quote .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.testimonial-quote.in .word { opacity: 1; transform: translateY(0); }
.testimonial-attribution {
  display: inline-flex; align-items: center; gap: 16px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.testimonial-quote.in + .testimonial-attribution,
.testimonial-inner.attr-in .testimonial-attribution { opacity: 1; }
.testimonial-attribution img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--smoke);
  filter: grayscale(1);
  object-fit: cover;
}
.testimonial-attribution .text { text-align: left; }
.testimonial-attribution .name { color: var(--ivory); font-size: 14px; }
.testimonial-attribution .role { color: var(--mist); }

/* ===================================================================
   SECTION 7 — FINAL CTA
   =================================================================== */

.final-cta {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0 var(--pad-x);
}
.final-cta-bg {
  position: absolute; inset: 0;
  background: url("assets/cta-bg.webp") center/cover no-repeat;
  animation: breathe 12s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes breathe {
  from { transform: scale(1.0); }
  to { transform: scale(1.08); }
}
.final-cta-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(5, 5, 5, 0.72);
}
.final-cta-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  max-width: 900px;
}
.final-cta-label { color: var(--champagne); }
.final-cta-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ivory);
  margin: 12px 0 8px;
}
.final-cta-title .line { display: block; overflow: hidden; }
.final-cta-title .line span {
  display: block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out);
}
.final-cta-title .line:nth-child(2) span { clip-path: inset(0 0 0 100%); }
.final-cta-title.in .line:nth-child(1) span { clip-path: inset(0 0 0 0); }
.final-cta-title.in .line:nth-child(2) span { clip-path: inset(0 0 0 0); transition-delay: 0.15s; }
.final-cta-sub { color: var(--mist); max-width: 560px; }

.final-cta-btn { margin-top: 16px; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.final-cta-btn.pulse {
  animation: pulse 4s ease-in-out infinite;
}
.final-cta-secondary {
  margin-top: 8px;
  color: var(--mist);
  transition: color 0.3s ease;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 0;
}
.final-cta-secondary:hover { color: var(--ivory); }
.final-cta-secondary .arrow { transition: transform 0.3s var(--ease-out); }
.final-cta-secondary:hover .arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  .final-cta-bg { animation: none; }
  .final-cta { height: 100vh; min-height: 500px; }
}

/* ===================================================================
   SECTION 8 — FOOTER
   =================================================================== */

.footer {
  position: relative;
  min-height: 40vh;
  background: var(--obsidian);
  padding: 80px var(--pad-x) max(40px, calc(40px + env(safe-area-inset-bottom, 0px)));
  overflow: hidden;
}
.footer-wordmark {
  position: relative;
  overflow: hidden;
  margin: 0 calc(var(--pad-x) * -1);
  margin-bottom: 80px;
  pointer-events: none;
}
.footer-wordmark-inner {
  white-space: nowrap;
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ivory);
  opacity: 0.06;
  line-height: 1;
  will-change: transform;
  padding: 0 5vw;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(74, 72, 70, 0.2);
}
.footer-brand {
  display: flex; flex-direction: column; gap: 16px;
}
.footer-brand .mark {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
}
.footer-brand .mark .dot { color: var(--champagne); }
.footer-brand p { color: var(--mist); max-width: 280px; font-size: 14px; }

.footer-col h4 {
  color: var(--ivory);
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col li a {
  position: relative;
  color: var(--mist);
  font-size: 14px;
  transition: color 0.3s ease;
  display: inline-block;
}
.footer-col li a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}
.footer-col li a:hover { color: var(--ivory); }
.footer-col li a:hover::after { width: 100%; }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .copy { color: var(--mist); }
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a {
  color: var(--mist);
  transition: color 0.3s ease;
}
.footer-bottom .legal a:hover { color: var(--ivory); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   TOUCH — native-app tap feedback
   =================================================================== */

@media (hover: none) {
  .fleet-card,
  .nav-link,
  .footer-col li a,
  .footer-bottom .legal a,
  .exp-panel,
  .final-cta-secondary,
  .mobile-menu a {
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s var(--ease-out), opacity 0.18s ease, color 0.3s ease;
  }
  .fleet-card:active,
  .nav-link:active,
  .footer-col li a:active,
  .footer-bottom .legal a:active,
  .exp-panel:active,
  .final-cta-secondary:active,
  .mobile-menu a:active {
    transform: scale(0.97);
    opacity: 0.9;
    transition: transform 0.05s ease, opacity 0.05s ease;
  }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .final-cta-bg, .marquee-track { animation: none; }
}
