:root {
  --bg: #04100b;
  --bg-2: #07190f;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, .74);
  --line: rgba(255, 255, 255, .14);
  --green: #5fd890;
  --neon: #6cf0a8;
  --mint: #b8ffd9;
  --grad: linear-gradient(90deg, #6cf0a8 0%, #3fd98a 55%, #7be9d0 100%);
  --glow: 0 0 0 1px rgba(108, 240, 168, .45), 0 0 24px rgba(108, 240, 168, .25);
  --sans: "Montserrat", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font: 800 14px/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
/* outline button: no fill, the brand green only in the border and the letters */
.btn--green {
  background: rgba(4, 16, 11, .18);
  color: var(--neon);
  box-shadow: inset 0 0 0 2px var(--neon), 0 0 22px rgba(108, 240, 168, .35), inset 0 0 18px rgba(108, 240, 168, .12);
  text-shadow: 0 0 12px rgba(108, 240, 168, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn--green:hover { transform: translateY(-1px); background: rgba(108, 240, 168, .1); box-shadow: inset 0 0 0 2px var(--neon), 0 0 30px rgba(108, 240, 168, .5), inset 0 0 22px rgba(108, 240, 168, .18); }

/* ---------- logo (text wordmark until the client sends the vector logo) ---------- */
.logo { display: inline-grid; justify-items: center; gap: 2px; text-decoration: none; }
.logo__img { display: block; height: 54px; width: auto; filter: drop-shadow(0 0 10px rgba(108, 240, 168, .18)); }
.logo--loader .logo__img { height: 92px; }
.logo--small .logo__img { height: 30px; }
.logo__word { font: 900 26px/1 var(--sans); letter-spacing: .02em; color: #fff; }
.logo__word b { font-weight: 900; color: var(--neon); text-shadow: 0 0 14px rgba(108, 240, 168, .6); }
.logo__sub {
  display: flex; align-items: center; gap: 8px;
  font: 600 8px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--ink-2);
}
.logo__sub::before, .logo__sub::after { content: ""; width: 14px; height: 1px; background: var(--green); }

/* ---------- store buttons ---------- */
.stores { display: flex; gap: 10px; margin-left: auto; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 12px;
  background: rgba(4, 16, 11, .55);
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  font: 700 14px/1.05 var(--sans);
  color: #fff;
  text-shadow: none;
  transition: background .2s, transform .2s;
}
.store:hover { background: rgba(108, 240, 168, .14); transform: translateY(-1px); }
.store svg { width: 22px; height: 22px; flex: none; color: var(--neon); }
.store span { display: grid; }
.store small { font: 500 10px/1.2 var(--sans); color: var(--ink-2); }
.store--big { height: 58px; padding: 0 22px 0 16px; font-size: 17px; border-radius: 14px; }
.store--big svg { width: 28px; height: 28px; }
.store--big small { font-size: 11px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 16px var(--gutter);
  background: linear-gradient(180deg, rgba(4, 16, 11, .75), rgba(4, 16, 11, 0));
}
.nav__links { display: flex; gap: 28px; margin-left: 24px; }
.nav__links a { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: #fff; }

/* ---------- film ---------- */
/* One screen of scroll per stop; film.js steps and eases between them. */
.film { position: relative; height: 500vh; height: 500svh; }
.snap { position: absolute; left: 0; width: 1px; height: 100vh; height: 100svh; pointer-events: none; }
.snap:nth-child(1) { top: 0; }
.snap:nth-child(2) { top: 100vh; top: 100svh; }
.snap:nth-child(3) { top: 200vh; top: 200svh; }
.snap:nth-child(4) { top: 300vh; top: 300svh; }
.snap:nth-child(5) { top: 400vh; top: 400svh; }
.film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
.film__poster, .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film[data-ready="true"] .film__poster { visibility: hidden; }
/* phones: the move clips stacked over each other; film.js shows one at a time */
.film__clips { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.film__clips video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }

/* dark green wash so the copy reads over the scene; it follows where the copy sits */
.film__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 16, 11, .9) 0%, rgba(4, 16, 11, .64) 30%, rgba(4, 16, 11, 0) 56%);
  opacity: 0;
  transition: opacity .45s ease;
}
.film[data-pos="top"] .film__wash {
  background: linear-gradient(180deg, rgba(4, 16, 11, .92) 0%, rgba(4, 16, 11, .6) 28%, rgba(4, 16, 11, 0) 48%);
}
.film[data-copy="on"] .film__wash { opacity: 1; transition: opacity .6s ease .05s; }

.stop {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  width: min(760px, 52vw);
  translate: 0 -50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(48px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s .6s;
}
.stop[data-pos="top"] { left: 50%; top: 104px; width: min(980px, 86vw); translate: -50% 0; text-align: center; }
.stop[data-pos="top"] .stop__eyebrow { justify-content: center; }
.stop[data-pos="top"] .stop__text { margin-inline: auto; max-width: 48ch; }
.stop .stop__title--big { font-size: clamp(36px, 4.2vw, 72px); }
.stop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.stop.is-gone { transform: translateX(-48px); }

.stop__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font: 700 12px/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.stop__n {
  display: inline-grid;
  place-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: var(--glow);
  background: rgba(4, 16, 11, .5);
  font: 800 14px/1 var(--sans);
  letter-spacing: 0;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}
/* their poster type: heavy caps, the second line in the brand gradient */
.stop__title {
  font: 900 clamp(32px, 3.4vw, 56px)/1.04 var(--sans);
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.stop__title em {
  display: block;
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(108, 240, 168, .25));
}
.stop__text { margin: 22px 0 0; font-size: clamp(17px, 1.25vw, 20px); font-weight: 500; line-height: 1.5; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }

.fact, .chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(4, 16, 11, .5);
  box-shadow: var(--glow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: none;
}
.fact { margin: 22px 0 0; }
.fact::before, .chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.values { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }

.stop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.stop__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hint { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint i { display: inline-block; font-style: normal; color: var(--neon); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

.pills {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(4, 16, 11, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(108, 240, 168, .22);
}
.pills button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  font: 700 12px/1 var(--sans);
  letter-spacing: .04em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .25s, color .25s;
}
.pills button:hover { color: #fff; }
.pills button.is-on { background: linear-gradient(90deg, #6cf0a8, #3fd98a); color: #032013; }

/* the trip itself: a glowing green line from A to B along the bottom edge */
.film__progress { position: absolute; inset: auto 0 0; height: 3px; background: rgba(108, 240, 168, .12); }
.film__progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--neon); box-shadow: 0 0 12px var(--neon); }

/* full-quality frames: hold the page until every frame is in */
.loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 30px;
  background: radial-gradient(60% 50% at 50% 45%, #0b2a1c, var(--bg));
  transition: opacity .6s ease, visibility 0s .6s;
}
.logo--loader .logo__word { font-size: 56px; }
.logo--loader .logo__sub { font-size: 11px; }
.logo--loader .logo__sub::before, .logo--loader .logo__sub::after { width: 28px; }
.loader__bar { position: relative; width: min(300px, 70vw); height: 2px; background: var(--line); }
.loader__bar span { position: absolute; inset: 0 auto 0 0; width: calc(var(--load, 0) * 100%); background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.loader__pct { font: 700 12px/1 var(--sans); letter-spacing: .2em; color: var(--ink-2); }
.film[data-loaded="true"] .loader { opacity: 0; visibility: hidden; }
body:has(.film:not([data-loaded="true"])) { overflow: hidden; }

/* ---------- landing ---------- */
.final { padding: clamp(80px, 11vw, 150px) var(--gutter); background: radial-gradient(70% 90% at 0% 0%, #0b2a1c, var(--bg) 70%); }
.final__card { max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 700 12px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--green); }
.h2 { font: 900 clamp(34px, 3.8vw, 58px)/1.05 var(--sans); text-transform: uppercase; }
.h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 20px 0 0; font-size: 18px; font-weight: 500; color: var(--ink-2); }

.footer { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: var(--bg); }
.logo--small { margin-right: auto; }
.logo--small .logo__word { font-size: 20px; }

/* ---------- phone (to be reworked later) ---------- */
@media (max-width: 860px) {
  .nav { gap: 12px; padding: 12px 16px; }
  .nav__links { display: none; }
  .logo__word { font-size: 20px; }
  .nav .logo__img { height: 34px; }
  .logo__sub { display: none; }
  .stores { gap: 6px; }
  .store { height: 38px; padding: 0 10px; gap: 6px; font-size: 12px; }
  .store small { display: none; }
  .store svg { width: 18px; height: 18px; }
  .store--big { height: 50px; font-size: 15px; }
  .store--big small { display: block; }

  .film__wash, .film[data-pos="top"] .film__wash { background: linear-gradient(180deg, rgba(4, 16, 11, .82) 0%, rgba(4, 16, 11, .45) 30%, rgba(4, 16, 11, 0) 46%); }
  .stop, .stop[data-pos="top"] { left: 16px; right: 16px; top: 80px; width: auto; translate: none; text-align: left; }
  .stop__eyebrow { margin-bottom: 14px; font-size: 10px; gap: 10px; }
  .stop__n { width: 32px; height: 32px; font-size: 12px; }
  .stop__title { font-size: 32px; }
  .stop .stop__title--big { font-size: 30px; }
  /* the slogan sits in the middle of the blurred sky between the nav and the sharp band */
  /* first stop: the order button stands on the asphalt just under the car.
     The portrait frame covers the screen by width (height 216.7vw, centred), and the
     asphalt is at 75.5% of the frame: 50svh + 25.5% x 216.7vw from the top of the screen. */
  .stop[data-stop="0"] .stop__actions { position: absolute; left: 0; top: calc(50svh + 55.3vw - 27px - 80px); margin: 0; }
  .stop[data-stop="0"] .btn { min-height: 54px; padding: 0 34px; }
  /* aerial stop: the slogan and the brand values together in the clean space above the
     sharp band (its top edge sits at 45.3% of the frame: 50svh - 10.2vw) */
  .stop[data-pos="top"] {
    top: 64px; bottom: auto; height: calc(50svh - 10.2vw - 64px);
    display: flex; flex-direction: column; justify-content: center; gap: 26px;
    text-align: center;
  }
  .stop[data-pos="top"] .stop__title--big { font-size: 25px; line-height: 1.15; white-space: nowrap; }
  .values {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    margin: 0; padding: 0; list-style: none;
    font: 600 10.5px/1.25 var(--sans); text-transform: uppercase; letter-spacing: .02em; color: #fff; text-shadow: none;
  }
  .values li { display: grid; justify-items: center; gap: 8px; }
  .values svg {
    width: 46px; height: 46px; padding: 11px; border-radius: 50%;
    background: rgba(4, 16, 11, .6); box-shadow: var(--glow);
    fill: none; stroke: var(--neon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  }
  .stop__text { margin-top: 12px; font-size: 15px; max-width: none; }
  .fact, .chips li { font-size: 12px; padding: 7px 12px; }
  .chips { margin-top: 14px; gap: 6px; }
  .stop__actions, .stop__stores { margin-top: 18px; }
  .hint { display: none; }
  .pills { left: 10px; right: 10px; bottom: 16px; gap: 2px; padding: 4px; justify-content: space-between; }
  .pills button { padding: 8px 6px; font-size: 10px; }
  .lead { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .stop, .stop.is-on { transition: none; }
  .hint i { animation: none; }
}
