/* Palette lifted from the showroom: X50 Bayou Green paint, polished stone floor, X50 grille line. */
:root {
  --ink: #06303b;
  --bayou: #004259;
  --bayou-deep: #03232c;
  --stone: #e9ebea;
  --stone-2: #d5d9d8;
  --paper: #f7f8f7;
  --red: #d3162b;
  --wa: #25d366;
  --wa-hover: #1fbd5a;
  --muted: #4c6168;
  --plate: #0a0a0a;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, canvas { display: block; max-width: 100%; }
h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h2 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 54px;
  padding: 0 1.5em;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background-color .2s, color .2s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn svg { width: 1.35em; height: 1.35em; flex: none; }
.btn--wa:hover, .btn--red:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(3,35,44,.55); }
.btn--wa:hover svg { animation: nudge .55s var(--ease-out); }
.btn:active { transform: scale(.97); }
@keyframes nudge { 0% { rotate: 0deg; } 30% { rotate: -14deg; } 60% { rotate: 9deg; } 100% { rotate: 0deg; } }
.btn--wa { background: var(--wa); color: #04291a; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost {
  box-shadow: inset 0 0 0 2px var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 0 100% no-repeat;
  transition: background-size .35s var(--ease-out), color .2s, transform .25s var(--ease-out);
}
.btn--ghost:hover { background-size: 100% 100%; color: #fff; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #b01022; }
.btn--sm { min-height: 44px; font-size: .95rem; padding: 0 1.1em; }

/* Number plate: the page's one recurring device */
.plate {
  display: inline-flex;
  align-items: center;
  background: var(--plate);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 100%;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px #3a3a3a, 0 1px 0 rgba(255,255,255,.2) inset;
  text-shadow: 0 1px 0 #6d6d6d, 0 -1px 0 #000;
}
.plate--xl {
  gap: .34em;
  padding: .3em .55em;
  font-size: clamp(2.4rem, 10.6vw, 10rem);
  line-height: 1;
  border-radius: clamp(8px, 1.2vw, 18px);
  box-shadow: inset 0 0 0 clamp(2px,.3vw,5px) #454545, 0 30px 60px -20px rgba(0,0,0,.7);
  text-shadow: 0 2px 0 #7c7c7c, 0 -2px 0 #000;
  font-variant-numeric: tabular-nums;
  transform-origin: 50% 0;
  transition: transform .25s var(--ease-out);
}
.plate--xl:hover { transform: translateY(-3px); }

/* Logo: vector artwork, word colour inherits so it works on light and dark */
.brand { display: inline-flex; flex: none; color: var(--ink); text-decoration: none; }
.logo { display: block; width: auto; height: clamp(26px, 2.5vw, 34px); overflow: visible; }
.logo__chip { transition: transform .35s var(--ease-out); }
.brand:hover .logo__chip { transform: translateX(7px); }
.brand--foot { color: #fff; }
.brand--foot .logo { height: 26px; }
.anim .nav .logo__chip { animation: chipIn .8s var(--ease-out) both .75s; }
@keyframes chipIn { from { transform: translateX(-46px) skewX(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Nav: sits over the hero, deliberately not sticky so it never covers the turntable */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 18px var(--gutter);
}
.nav__role { font-size: .9rem; font-weight: 500; color: var(--muted); }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; font-size: .95rem; font-weight: 600; }
.nav__links a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-block: 4px;
  transition: background-size .25s var(--ease-out);
}
.nav__links a:hover { background-size: 100% 2px; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  min-height: max(100svh, 680px);
  background: var(--stone);
}
.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 92px var(--gutter) clamp(28px, 5vh, 52px);
}
.hero__title {
  font-size: min(6.5vw, 15vh);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.hero__title .ln { display: block; width: max-content; overflow: clip; overflow-clip-margin: .12em; padding-right: .1em; }
.hero__title .ln > span { display: inline-block; }
.hero__sub { max-width: 34em; margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.hero__asks {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.75rem;
  margin-top: 1.4rem;
  font-size: .95rem;
  font-weight: 600;
}
.hero__asks a { text-underline-offset: .28em; text-decoration-thickness: 1.5px; text-decoration-color: rgba(6,48,59,.35); transition: text-decoration-color .2s; }
.hero__asks a:hover { text-decoration-color: var(--red); }

.hero__photo { position: relative; overflow: hidden; background: #c9c6c1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; position: absolute; inset: 0; }
.anim .hero__photo img { scale: 1.03; translate: 0 var(--hy, 0); }

/* Windscreen price placard */
.tag {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  top: 96px;
  display: grid;
  padding: .6rem .9rem .65rem;
  background: #fff;
  color: var(--ink);
  border-left: 5px solid var(--red);
  border-radius: 3px;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.5);
  transform-origin: 50% 0;
  transition: transform .3s var(--ease-out);
}
.tag:hover { transform: rotate(-1.5deg) translateY(2px); }
.tag__name { font-size: .85rem; font-weight: 600; }
.tag__price { font-size: 1.15rem; font-weight: 800; }

/* Hero entrance: one orchestrated moment. Lines arrive like a car passing, the photo opens after. */
.js .hero__title .ln > span { animation: pass .95s var(--ease-out) both; }
.js .hero__title .ln:nth-child(2) > span { animation-delay: .09s; }
.js .hero__photo img { animation: open 1.2s var(--ease-out) both .05s; }
.js .tag { animation: hang .7s var(--ease-out) both 1s; }
@keyframes pass { from { transform: translateX(-108%) skewX(-14deg); } to { transform: none; } }
@keyframes open { from { clip-path: inset(0 0 0 100%); scale: 1.12; } to { clip-path: inset(0); scale: 1.03; } }
@keyframes hang { from { opacity: 0; transform: translateY(-14px) rotate(4deg); } to { opacity: 1; transform: none; } }

/* Turntable */
.stage-wrap { height: 200svh; background: var(--bayou-deep); }
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  color: #fff;
  --car-w: min(112vw, 1560px, 170vh);
  --car-top: clamp(50px, 13vh, 150px);
  background: linear-gradient(180deg, #03232c 0%, #06303b 100%);
}
.stage__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(18px, 3.4vh, 36px) var(--gutter) 0;
}
.stage__top h2 { font-size: clamp(1.5rem, 2.5vw, 2.4rem); }
.stage__hint { flex: none; font-size: .95rem; color: rgba(255,255,255,.7); transition: opacity .4s; }
.stage.is-dragged .stage__hint { opacity: 0; }

.stage__floor {
  position: absolute;
  inset: calc(var(--car-top) + var(--car-w) * .35 * .56) 0 0;
  background:
    radial-gradient(60% 46% at 50% 22%, #2a7486 0%, rgba(42,116,134,0) 100%),
    linear-gradient(180deg, #0a4453 0%, #03232c 78%);
}
.stage__ghost {
  position: absolute;
  inset: 0 0 auto;
  top: calc(var(--car-top) + var(--car-w) * .022);
  text-align: center;
  font-size: min(29vw, 44vh);
  line-height: .9;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.03em;
  color: rgba(255,255,255,.075);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
#ghost {
  display: inline-block;
  font-variation-settings: "wdth" 125;
  transition: font-variation-settings .9s var(--ease-out), transform .9s var(--ease-out), opacity .4s;
}
#ghost.is-off { font-variation-settings: "wdth" 62; transform: translateX(28vw); opacity: 0; transition: none; }

.stage__car {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: var(--car-top);
  width: var(--car-w);
  aspect-ratio: 1200 / 420;
  transform: translateX(-50%);
  will-change: transform;
}
#car { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#car:active { cursor: grabbing; }
#car:focus-visible { outline-offset: -6px; border-radius: 12px; }

.stage__panel {
  position: relative;
  z-index: 3;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr) auto;
  gap: clamp(16px, 2.6vw, 40px);
  align-items: end;
  padding: 0 var(--gutter) clamp(14px, 2.4vh, 24px);
}
.info__type { font-weight: 800; font-size: 1.1rem; }
.info__line { max-width: 34em; font-size: 1rem; line-height: 1.4; color: rgba(255,255,255,.82); margin-top: .15rem; }
.specs { font-size: .92rem; line-height: 1.5; color: rgba(255,255,255,.82); }
.specs b { color: #fff; font-weight: 700; }
.paint__name { font-size: .92rem; font-weight: 600; margin-bottom: .45rem; }
.paint__row { display: flex; gap: 8px; }
.swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  transition: box-shadow .2s, transform .2s var(--ease-out);
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 0 0 2px var(--bayou-deep), 0 0 0 4px #fff; }
.stage__buy { display: grid; gap: .55rem; justify-items: end; text-align: right; }
.stage__price { display: flex; align-items: baseline; gap: .5rem; }
.stage__price small { font-size: .92rem; color: rgba(255,255,255,.75); }
.stage__price strong { font-size: clamp(1.4rem, 2.1vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; }

/* Model tabs */
.tabs {
  position: relative;
  z-index: 3;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.2);
}
.tab {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 76px;
  min-width: 0;
  padding: .35rem clamp(8px, 1.4vw, 20px);
  background: none;
  border: 0;
  color: rgba(255,255,255,.72);
  text-align: left;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.05); }
.tab[aria-selected="true"] { color: #fff; }
.tab__thumb { flex: none; width: clamp(64px, 8.5vw, 124px); aspect-ratio: 16 / 7; overflow: hidden; position: relative; }
.tab__thumb img { position: absolute; left: 50%; bottom: -3%; width: 190%; height: auto; max-width: none; transform: translateX(-50%); transition: transform .5s var(--ease-out), opacity .3s; opacity: .75; }
.tab:hover .tab__thumb img { transform: translateX(-54%); opacity: 1; }
.tab[aria-selected="true"] .tab__thumb img { opacity: 1; }
.tab__txt { display: grid; line-height: 1.15; min-width: 0; }
.tab__name { font-weight: 800; font-style: italic; font-stretch: 118%; font-size: 1.1rem; }
.tab__price { font-size: .82rem; white-space: nowrap; }
.tabs__bar {
  position: absolute;
  top: -2px;
  left: 0;
  width: 20%;
  height: 3px;
  background: var(--red);
  transition: transform .6s var(--ease-out);
}

/* Monthly calculator */
.calc { position: relative; background: var(--stone); padding-bottom: clamp(56px, 9vw, 120px); }
.calc__banner {
  height: clamp(220px, 44vw, 560px);
  position: relative;
  overflow: hidden;
  background-color: var(--bayou);
}
.calc__layer {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: 50% 42%;
  translate: 0 var(--py, 0);
}
.calc__inner {
  position: relative;
  max-width: 1240px;
  margin: calc(clamp(60px, 11vw, 170px) * -1) auto 0;
  padding: 0 var(--gutter);
}
.calc__card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--paper);
  border-radius: 10px 10px 10px 10px;
  overflow: hidden;
  box-shadow: 0 40px 60px -40px rgba(3,35,44,.55);
}
.calc__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem 3rem;
  align-items: end;
  padding: clamp(22px, 3vw, 40px) clamp(20px, 3vw, 44px);
  background: var(--ink);
  color: #fff;
  border-radius: 10px 10px 0 0;
}
.calc__head + .calc__card { border-radius: 0 0 10px 10px; }
.calc__head p { max-width: 30em; color: rgba(255,255,255,.82); }
.calc__controls { display: grid; gap: 1.9rem; align-content: center; padding: clamp(24px, 3.4vw, 48px) clamp(20px, 3vw, 44px); }
.field label, .field__label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
  font-weight: 600;
}
.field output { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
input[type=range] {
  --p: 33%;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ink) var(--p), var(--stone-2) var(--p));
}
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--stone-2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border: 7px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  transition: transform .15s var(--ease-out);
}
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 7px solid var(--ink); border-radius: 50%; background: #fff; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--stone-2); border-radius: 7px; }
.seg__pill {
  --i: 2;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 16px) / 3);
  background: var(--ink);
  border-radius: 4px;
  transform: translateX(calc(var(--i) * (100% + 4px)));
  transition: transform .45s var(--ease-out);
}
.seg button {
  position: relative;
  min-height: 44px;
  background: none;
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: color .25s;
}
.seg button[aria-checked="true"] { color: #fff; }

.calc__result {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .6rem;
  padding: clamp(24px, 3.4vw, 48px) clamp(20px, 3vw, 44px);
  background: var(--stone-2);
}
.calc__label { font-weight: 600; }
.calc__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; font-size: clamp(3.4rem, 7.6vw, 6.6rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc__num small { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.calc__loan { font-size: .98rem; margin-bottom: .6rem; }
.calc__note { margin-top: .5rem; max-width: 36em; font-size: .85rem; line-height: 1.4; color: var(--muted); }

/* Chat */
.chat {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--paper);
}
.chat__photo { position: sticky; top: 0; align-self: start; height: 100svh; background: #b7b8bd; overflow: hidden; }
.chat__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.chat__body { display: flex; flex-direction: column; min-height: min(100svh, 860px); padding: clamp(36px, 6vw, 88px) var(--gutter); }
.chat__sub { max-width: 34em; margin-top: 1rem; }
.thread { display: flex; flex-direction: column; gap: 10px; margin-top: 2rem; }
.bubble {
  max-width: min(32em, 88%);
  padding: .7rem 1rem;
  border-radius: 14px 14px 14px 3px;
  background: var(--stone);
  align-self: flex-start;
  animation: pop .35s var(--ease-out) both;
  transform-origin: 0 100%;
}
.bubble--me { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 14px 14px 3px 14px; transform-origin: 100% 100%; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 5px; padding: .35rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; min-height: 50px; scroll-margin-bottom: 96px; }
.chip {
  min-height: 46px;
  padding: 0 1.05em;
  background: #fff;
  border: 0;
  border-radius: 23px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-weight: 600;
  cursor: pointer;
  animation: pop .3s var(--ease-out) both;
  transition: background-color .15s, color .15s, transform .2s var(--ease-out);
}
.chip:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 560px);
  overflow: hidden;
  padding: 0;
}
.pick__img { background: var(--bayou-deep); aspect-ratio: 16 / 6; position: relative; overflow: hidden; }
.pick__img img { position: absolute; left: 50%; bottom: 0; width: 135%; height: auto; max-width: none; transform: translateX(-50%); }
.anim .pick__img img { animation: pickIn .9s var(--ease-out) both .1s; }
@keyframes pickIn { from { transform: translateX(30%); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.pick__txt { padding: .8rem 1rem .9rem; }
.pick__txt strong { font-weight: 800; }
.send { width: 100%; display: grid; gap: .8rem; animation: pop .4s var(--ease-out) both; }
.send label { display: grid; gap: .3rem; font-weight: 600; max-width: 26em; }
.send input {
  min-height: 48px;
  padding: 0 .9rem;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.send__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-btn { background: none; border: 0; padding: .5rem 0; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

/* Test drive */
.drive {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--stone);
}
.drive__photo { order: 2; position: relative; overflow: hidden; min-height: 560px; background: #d9d9d6; }
.drive__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transform: scale(var(--z, 1.12));
  will-change: transform;
}
.drive__copy { padding: clamp(40px, 7vw, 104px) var(--gutter); }
.drive__copy > p { max-width: 32em; margin-top: 1rem; }
.steps { counter-reset: s; margin: 2.2rem 0; display: grid; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  column-gap: .4rem;
  position: relative;
  padding: .95rem 0;
  transition: padding-left .35s var(--ease-out);
}
.steps li::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(6,48,59,.25);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease-out) var(--d, 0ms);
}
.steps li:hover { padding-left: .5rem; }
.steps li::before { transition: color .25s; }
.steps li:hover::before { color: var(--red); }
.steps li::before { content: counter(s); grid-row: span 2; font-size: 1.5rem; line-height: 1.1; font-weight: 800; color: var(--bayou); }
.steps strong { font-weight: 800; }
.steps span { color: var(--muted); }

/* Final */
.final {
  display: grid;
  justify-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  background: linear-gradient(180deg, var(--bayou) 0%, var(--bayou-deep) 100%);
  color: #fff;
  text-align: center;
}
.final h2 { font-size: clamp(2.2rem, 5.6vw, 5rem); }
.final__sub { color: rgba(255,255,255,.82); }
.js .plate--xl.is-pending { transform: translateY(-34px) rotate(-3deg); opacity: 0; }
.js .plate--xl.is-in { animation: bolt .85s var(--ease-out) both; }
@keyframes bolt {
  0% { transform: translateY(-34px) rotate(-3deg); opacity: 0; }
  55% { transform: translateY(0) rotate(.8deg); opacity: 1; }
  78% { transform: rotate(-.3deg); }
  100% { transform: none; opacity: 1; }
}

/* Scroll reveals. Hidden states exist only under .anim, so nothing is lost without JS or with reduced motion. */
.anim [data-rv] {
  transition:
    opacity .8s var(--ease-out) var(--d, 0ms),
    transform .95s var(--ease-out) var(--d, 0ms),
    clip-path 1.25s var(--ease-out) var(--d, 0ms);
}
.anim [data-rv="rise"]:not(.is-in) { opacity: 0; transform: translateY(22px); }
.anim [data-rv="rise-lg"]:not(.is-in) { opacity: 0; transform: translateY(90px); }
.anim [data-rv="wipe-up"]:not(.is-in) { clip-path: inset(100% 0 0 0); }
.anim [data-rv="wipe-left"]:not(.is-in) { clip-path: inset(0 0 0 100%); }
.anim .steps li[data-rv]:not(.is-in)::after { transform: scaleX(0); }

.chat__photo img { transition: transform 1.5s var(--ease-out); }
.anim .chat__photo[data-rv]:not(.is-in) img { transform: scale(1.16); }

/* Heading words */
.w { display: inline-block; overflow: clip; padding-block: .12em; margin-block: -.12em; vertical-align: top; }
.wi { display: inline-block; }
.anim h2[data-rv] .wi { transition: transform .85s var(--ease-out) calc(var(--i) * 48ms); }
.anim h2[data-rv]:not(.is-in) .wi { transform: translateY(112%) rotate(5deg); }

/* The car waits off stage until its entrance */
.anim .stage__car.is-waiting { visibility: hidden; }

/* Hero supporting copy follows the headline */
.anim .hero__sub, .anim .hero__cta, .anim .hero__asks { animation: settle .8s var(--ease-out) both; }
.anim .hero__sub { animation-delay: .34s; }
.anim .hero__cta { animation-delay: .44s; }
.anim .hero__asks { animation-delay: .54s; }
.anim .nav { animation: fadeIn .8s ease-out both .5s; }
@keyframes settle { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Plate digits stamp in behind the plate */
.plate--xl span { display: inline-block; }
.anim .plate--xl.is-pending span { opacity: 0; }
.anim .plate--xl.is-in span { animation: stamp .55s var(--ease-out) both; }
.anim .plate--xl.is-in span:nth-child(1) { animation-delay: .28s; }
.anim .plate--xl.is-in span:nth-child(2) { animation-delay: .38s; }
.anim .plate--xl.is-in span:nth-child(3) { animation-delay: .48s; }
@keyframes stamp { from { opacity: 0; transform: translateY(18%) scale(.94); } to { opacity: 1; transform: none; } }

/* One ring from the final button; a slow one on the floating button */
.anim .final > .btn.is-in::after, .anim .fab.is-on::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37,211,102,.65);
  pointer-events: none;
}
.anim .final > .btn.is-in::after { animation: ring 1.1s ease-out 1 1.1s; }
.anim .fab.is-on::after { animation: ring 1.6s ease-out infinite 2s; animation-duration: 5s; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.65); } 30%, 100% { box-shadow: 0 0 0 20px rgba(37,211,102,0); } }

/* Footer */
.foot { padding: 28px var(--gutter) 36px; background: var(--bayou-deep); color: rgba(255,255,255,.72); font-size: .85rem; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 2rem; margin-bottom: .8rem; color: #fff; font-size: .95rem; }
.foot p { max-width: 80ch; line-height: 1.5; }

/* Floating WhatsApp */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #04291a;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
  transform: scale(0);
  transition: transform .4s var(--ease-out);
}
.fab svg { width: 32px; height: 32px; }
.fab.is-on { transform: none; }
.mobile-bar { display: none; }

/* Tablet */
@media (max-width: 1080px) {
  .nav__role { display: none; }
  .stage__panel { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); row-gap: .8rem; }
  .specs { display: none; }
  .stage__buy { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; align-items: center; text-align: left; }
  .paint { justify-self: end; }
  .tab { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .calc__head { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .nav { padding-block: 12px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__copy { padding-top: 72px; padding-bottom: 28px; }
  .hero__title { font-size: 12vw; margin-bottom: 0; padding-top: 0; }
  .hero__photo { aspect-ratio: 4 / 4.4; }
  .hero__photo img { object-position: 50% 70%; }
  .tag { top: 14px; }
  .hero__cta .btn { flex: 1 1 100%; }

  .stage { min-height: 600px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .stage__top { display: block; }
  .stage__top h2 { font-size: 1.4rem; }
  .stage__hint { font-size: .85rem; margin-top: .2rem; }
  .stage { --car-w: 168vw; --car-top: 104px; }
  .stage__ghost { font-size: 40vw; }
  .stage__panel { grid-template-columns: 1fr; gap: .55rem; padding-bottom: 10px; }
  .info__line { font-size: .92rem; }
  .paint { justify-self: start; display: flex; flex-direction: row-reverse; align-items: center; gap: .7rem; }
  .paint__name { margin: 0; }
  .swatch { width: 28px; height: 28px; }
  .stage__buy { grid-template-columns: 1fr; gap: .4rem; }
  .stage__buy .btn { width: 100%; min-height: 48px; }
  .stage__price { justify-content: flex-start; }
  .tabs { background: rgba(0,0,0,.28); }
  .tab { min-height: 60px; padding: .3rem .25rem; align-items: center; text-align: center; }
  .tab__thumb { display: none; }
  .tab__txt { justify-items: center; }
  .tab__name { font-size: 1rem; }
  .tab__price { font-size: .7rem; }
  .tab__dari { display: none; }

  .calc__card { grid-template-columns: 1fr; }
  .calc__result .btn { width: 100%; }
  .chat { grid-template-columns: 1fr; }
  .chat__photo { position: relative; height: auto; aspect-ratio: 4 / 3; }
  .chat__photo img { object-position: 50% 10%; }
  .chat__body { min-height: 620px; }
  .chip { flex: 1 1 auto; }
  .drive { grid-template-columns: 1fr; }
  .drive__photo { order: 0; min-height: 0; aspect-ratio: 4 / 4.2; }
  .drive__copy .btn { width: 100%; }
  .plate--xl { font-size: 11.4vw; }
  .final .btn { width: 100%; }

  .fab { display: none; }
  .mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 8px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    background: rgba(3,35,44,.96);
  }
  .mobile-bar .btn { min-height: 48px; }
  .mobile-bar__call { display: grid; place-items: center; border-radius: 6px; background: #fff; color: var(--ink); }
  .mobile-bar__call svg { width: 22px; height: 22px; }
}

/* Short laptop screens: keep the pinned stage from crowding */
@media (min-width: 761px) and (max-height: 760px) {
  .info__line { font-size: .92rem; }
  .tab { min-height: 58px; }
  .stage__ghost { font-size: min(26vw, 38vh); }
}
@media (min-width: 761px) and (max-height: 700px) {
  .stage { --car-w: min(112vw, 132vh); --car-top: 56px; }
}
/* Too short to pin safely: let the stage flow as a normal section */
@media (max-height: 599px) {
  .stage-wrap { height: auto; }
  .stage { position: relative; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .stage-wrap { height: auto; }
  .stage { position: relative; }
}
