:root {
  color-scheme: dark;
  --blue: #2692ff;
  --blue-soft: #91cfff;
  --ink: #03070d;
  --white: #f6fbff;
  --muted: rgba(231, 243, 255, 0.66);
  --line: rgba(199, 226, 255, 0.2);
  --glass: rgba(7, 17, 29, 0.66);
  --header-h: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--ink);
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  overscroll-behavior: none;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.scroll-track {
  height: 900vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: #06111d;
}

.film,
.film__clip,
.film__shade,
.film__grain {
  position: absolute;
  inset: 0;
}

.film {
  z-index: -3;
  background: #06111d;
}

.film__clip {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.006);
  transition: opacity 180ms linear;
}

.film__clip.is-active {
  opacity: 1;
}

.film__shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.85) 0%, rgba(2, 7, 13, 0.25) 42%, rgba(2, 7, 13, 0.46) 100%),
    linear-gradient(180deg, rgba(1, 5, 10, 0.64) 0%, transparent 23%, transparent 70%, rgba(1, 5, 10, 0.78) 100%);
  transition: opacity 420ms ease;
}

body[data-mode="inventory"] .film__shade {
  opacity: 0.84;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.76) 0%, rgba(2, 7, 13, 0.08) 41%, rgba(2, 7, 13, 0.8) 100%),
    linear-gradient(180deg, rgba(1, 5, 10, 0.68) 0%, transparent 28%, rgba(1, 5, 10, 0.12) 62%, rgba(1, 5, 10, 0.82) 100%);
}

.film__grain {
  z-index: 3;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cinema-fx {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cinema-fx__flare {
  position: absolute;
  top: -20%;
  left: -65%;
  width: 34%;
  height: 140%;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(89, 183, 255, 0.08) 22%,
    rgba(218, 244, 255, 0.76) 49%,
    rgba(39, 146, 255, 0.18) 68%,
    transparent
  );
  filter: blur(8px);
  transform: skewX(-18deg);
}

body.is-transitioning .cinema-fx__flare {
  animation: cinemaFlare 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.cinema-fx__hud {
  position: absolute;
  right: clamp(38px, 6vw, 112px);
  width: clamp(90px, 12vw, 190px);
  height: 28px;
  opacity: 0.42;
  border-right: 1px solid rgba(145, 207, 255, 0.5);
}

.cinema-fx__hud::before,
.cinema-fx__hud::after {
  content: "";
  position: absolute;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(145, 207, 255, 0.64));
}

.cinema-fx__hud::before {
  top: 0;
  width: 100%;
}

.cinema-fx__hud::after {
  bottom: 0;
  width: 42%;
}

.cinema-fx__hud--top {
  top: calc(var(--header-h) + 24px);
}

.cinema-fx__hud--bottom {
  bottom: 32px;
  transform: scaleY(-1);
}

.cinema-fx__cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(61, 157, 255, 0.19), rgba(36, 121, 218, 0.07) 32%, transparent 68%);
  filter: blur(7px);
  transform: translate3d(-300px, -300px, 0);
  transition: opacity 380ms ease;
  will-change: transform;
}

body.has-cinema-pointer .cinema-fx__cursor {
  opacity: 1;
}

.header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  padding: 0 clamp(30px, 4.3vw, 82px);
  display: grid;
  grid-template-columns: 260px 1fr auto 260px;
  column-gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(2, 8, 15, 0.78), rgba(2, 8, 15, 0.08));
  backdrop-filter: blur(8px);
}

.header::before,
.header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 84px;
  height: 1px;
  background: var(--blue-soft);
  box-shadow: 0 0 16px var(--blue);
}

.header::before {
  left: 5vw;
}

.header::after {
  right: 5vw;
}

.brand {
  padding: 0;
  width: 198px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand img {
  display: block;
  width: 100%;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.category-nav {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(19px, 2.2vw, 42px);
}

.category-nav__item {
  position: relative;
  padding: 34px 2px 31px;
  border: 0;
  background: none;
  color: rgba(236, 246, 255, 0.56);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 220ms ease;
}

.category-nav__item:hover,
.category-nav__item.is-active {
  color: var(--white);
}

.category-nav__item.is-active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.cinema-sound {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(172, 215, 255, 0.18);
  background: rgba(5, 17, 29, 0.42);
  color: rgba(230, 243, 255, 0.58);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.cinema-sound:hover,
.cinema-sound:focus-visible {
  color: #fff;
  border-color: rgba(145, 207, 255, 0.5);
  outline: none;
}

.cinema-sound__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(208, 226, 241, 0.45);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.cinema-sound__label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.cinema-sound__bars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.cinema-sound__bars i {
  width: 1px;
  height: 4px;
  background: currentColor;
  transform-origin: center;
}

body.sound-enabled .cinema-sound {
  color: #b7e8ff;
  border-color: rgba(85, 184, 255, 0.52);
  background: rgba(10, 47, 76, 0.48);
}

body.sound-enabled .cinema-sound__dot {
  background: #63d7ff;
  box-shadow: 0 0 13px rgba(74, 191, 255, 0.95);
}

body.sound-enabled .cinema-sound__bars i {
  animation: soundBar 900ms ease-in-out infinite alternate;
}

body.sound-enabled .cinema-sound__bars i:nth-child(2) {
  animation-delay: -320ms;
}

body.sound-enabled .cinema-sound__bars i:nth-child(3) {
  animation-delay: -610ms;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(172, 215, 255, 0.28);
  background: rgba(9, 27, 45, 0.42);
  backdrop-filter: blur(12px);
}

.header-cta svg {
  width: 15px;
}

.header-cta__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63ffa7;
  box-shadow: 0 0 0 0 rgba(99, 255, 167, 0.66);
  animation: pulse 1.8s infinite;
}

.edge {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(231, 243, 255, 0.42);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.edge--left {
  left: -128px;
  transform: translateY(-50%) rotate(-90deg);
}

.edge--left i {
  display: block;
  width: 55px;
  height: 1px;
  background: var(--line);
}

.edge--right {
  right: 24px;
  flex-direction: column;
  transform: translateY(-50%);
}

.edge__rail {
  width: 1px;
  height: 140px;
  overflow: hidden;
  background: rgba(221, 239, 255, 0.19);
}

.edge__rail i {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--blue);
  box-shadow: 0 0 9px var(--blue);
  transform: scaleY(0);
  transform-origin: top;
}

.intro {
  position: absolute;
  z-index: 8;
  left: clamp(70px, 7vw, 140px);
  top: 50%;
  width: min(690px, 52vw);
  transform: translateY(-45%);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.intro.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-40%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  color: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--blue);
  box-shadow: 0 0 11px var(--blue);
}

.intro h1 {
  margin: 0;
  font: 600 clamp(62px, 6.4vw, 124px) / 0.88 "Space Grotesk", sans-serif;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  text-wrap: balance;
}

.intro h1 em {
  color: transparent;
  -webkit-text-stroke: 1px rgba(211, 235, 255, 0.72);
  font-style: normal;
}

.intro__body {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: rgba(232, 244, 255, 0.54);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-hint svg {
  width: 17px;
  animation: bob 1.6s ease-in-out infinite;
}

.inventory {
  position: absolute;
  z-index: 9;
  right: clamp(70px, 6vw, 116px);
  top: calc(var(--header-h) + 20px);
  bottom: 24px;
  width: min(720px, 55vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(34px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.inventory.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.inventory__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin: 0 0 17px;
}

.inventory__heading .eyebrow {
  margin-bottom: 8px;
}

.inventory h2 {
  margin: 0;
  font: 600 clamp(32px, 3vw, 54px) / 1 "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.inventory__heading > p {
  max-width: 260px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.vehicle-card {
  position: relative;
  min-height: 128px;
  max-height: 136px;
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  border: 1px solid rgba(177, 217, 255, 0.22);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(10, 26, 43, 0.77), rgba(10, 26, 43, 0.35)),
    rgba(3, 9, 16, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.25);
  opacity: 1;
  transform: translateY(0);
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.vehicle-card::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -35%;
  bottom: -35%;
  left: -52%;
  width: 24%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(210, 241, 255, 0.27), transparent);
  transform: skewX(-17deg);
  transition: left 680ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
  pointer-events: none;
}

.vehicle-card:hover::after {
  left: 128%;
  opacity: 1;
}

.vehicle-card:hover {
  z-index: 2;
  border-color: rgba(107, 187, 255, 0.72);
  transform: translateY(-3px);
  background:
    linear-gradient(135deg, rgba(13, 39, 66, 0.9), rgba(9, 26, 45, 0.56)),
    rgba(3, 9, 16, 0.48);
}

.vehicle-card__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #14263b, #07101b);
}

.vehicle-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(7, 17, 29, 0.72));
}

.vehicle-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.vehicle-card:hover .vehicle-card__media img {
  transform: scale(1.06);
}

.vehicle-card__tag {
  position: absolute;
  z-index: 2;
  left: 9px;
  top: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(3, 10, 17, 0.62);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.vehicle-card__content {
  min-width: 0;
  padding: 14px 18px 12px 15px;
  display: flex;
  flex-direction: column;
}

.vehicle-card__year {
  padding-right: 112px;
  color: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.vehicle-card h3 {
  margin: 3px 0 4px;
  overflow: hidden;
  color: var(--white);
  font: 700 19px/1.12 "Space Grotesk", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-card__description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(226, 240, 252, 0.58);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vehicle-card__specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 11px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(196, 225, 255, 0.12);
}

.vehicle-card__specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(235, 246, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.vehicle-card__specs svg {
  width: 12px;
  height: 12px;
  color: var(--blue-soft);
  stroke-width: 1.8;
}

.vehicle-card__price {
  position: absolute;
  right: 13px;
  top: 13px;
  color: #fff;
  font: 700 16px/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.inventory__footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  color: rgba(224, 240, 254, 0.52);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory__footer span,
.inventory__footer a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inventory__footer svg {
  width: 13px;
}

.inventory__footer a {
  margin-left: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(137, 204, 255, 0.55);
  color: #fff;
  text-decoration: none;
}

.chapter-label {
  position: absolute;
  z-index: 8;
  left: clamp(70px, 7vw, 140px);
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 13px;
  opacity: 0;
  transition: opacity 360ms ease;
}

body[data-mode="inventory"] .chapter-label {
  opacity: 1;
}

.chapter-label > span {
  font: 600 clamp(78px, 6vw, 118px) / 0.78 "Space Grotesk", sans-serif;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(190, 224, 255, 0.66);
  text-shadow: 0 0 34px rgba(38, 146, 255, 0.16);
}

.chapter-label div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chapter-label small {
  color: rgba(226, 241, 255, 0.38);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.chapter-label strong {
  font-size: 15px;
  letter-spacing: 0.22em;
}

.prototype-note {
  position: absolute;
  right: clamp(70px, 6vw, 116px);
  bottom: 22px;
  color: rgba(223, 240, 255, 0.26);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.prototype-note a {
  color: inherit;
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease;
}

.prototype-note a:hover,
.prototype-note a:focus-visible {
  color: #ffffff;
  opacity: 1;
}

.loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 4.4vw, 76px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.76), rgba(2, 7, 13, 0.42) 48%, rgba(2, 7, 13, 0.66)),
    linear-gradient(180deg, rgba(1, 5, 9, 0.35), rgba(1, 5, 9, 0.6)),
    url("./loader.png?v=2") center / cover no-repeat,
    #02060b;
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), visibility 720ms;
}

.loader__transition {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.loader.is-playing .loader__transition {
  opacity: 1;
}

.loader::before,
.loader::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.loader::before {
  inset: clamp(18px, 2vw, 34px);
  border: 1px solid rgba(182, 218, 250, 0.12);
}

.loader::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(112, 185, 255, 0.16), transparent);
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader__meta,
.loader__footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loader__meta img {
  width: clamp(108px, 10vw, 168px);
  filter: brightness(0) invert(1);
}

.loader__meta span,
.loader__footer span {
  color: rgba(217, 237, 255, 0.43);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.loader__counter {
  position: relative;
  z-index: 3;
  align-self: center;
  display: flex;
  align-items: flex-start;
  margin-top: -2vh;
  color: #f2f8ff;
  font: 500 clamp(140px, 20vw, 330px) / 0.7 "Space Grotesk", sans-serif;
  letter-spacing: -0.09em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 70px rgba(60, 152, 239, 0.08);
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
}

.loader.is-counter-hidden .loader__counter {
  opacity: 0;
  transform: translateY(-12px) scale(0.985);
  filter: blur(5px);
}

.loader__counter span {
  min-width: 1.65em;
  text-align: right;
}

.loader__counter small {
  margin: 0.03em 0 0 0.22em;
  color: var(--blue-soft);
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: 0;
}

.loader__footer {
  padding-top: 16px;
  border-top: 1px solid rgba(185, 219, 249, 0.12);
}

.loader__footer span:first-child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(99, 255, 167, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 255, 167, 0);
  }
}

@keyframes bob {
  50% {
    transform: translateY(5px);
  }
}

@keyframes cinemaFlare {
  0% {
    left: -65%;
    opacity: 0;
  }
  18% {
    opacity: 0.55;
  }
  100% {
    left: 135%;
    opacity: 0;
  }
}

@keyframes soundBar {
  0% {
    height: 3px;
  }
  100% {
    height: 12px;
  }
}

@media (max-width: 1180px) {
  .header {
    grid-template-columns: 200px 1fr auto 80px;
  }

  .cinema-sound {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .cinema-sound__label {
    display: none;
  }

  .header-cta {
    width: 47px;
    height: 42px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .header-cta svg {
    color: #fff;
  }

  .inventory {
    width: min(650px, 62vw);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 76px;
  }

  .stage {
    min-height: 620px;
  }

  .header {
    padding: 0 20px;
    grid-template-columns: 140px 1fr auto;
  }

  .brand {
    width: 130px;
  }

  .menu-toggle {
    position: relative;
    z-index: 24;
    justify-self: end;
    display: grid;
    place-content: center;
    gap: 7px;
    width: 54px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(185, 219, 249, 0.22);
    background: rgba(4, 13, 23, 0.46);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition:
      border-color 260ms ease,
      background 260ms ease,
      transform 260ms ease;
  }

  .menu-toggle::after {
    content: "MENU";
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    color: rgba(231, 243, 255, 0.54);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.24em;
    transform: translateY(-50%);
    transition: opacity 220ms ease;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: #f5f9ff;
    transform-origin: center;
    transition:
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      width 300ms ease;
  }

  .menu-toggle span:last-child {
    width: 14px;
    justify-self: end;
  }

  .menu-toggle[aria-expanded="true"] {
    border-color: rgba(145, 207, 255, 0.5);
    background: rgba(7, 19, 32, 0.88);
  }

  .menu-toggle[aria-expanded="true"]::after {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    width: 22px;
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    width: 22px;
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    z-index: 19;
    inset: 0;
    display: block;
    padding: calc(var(--header-h) + 34px) 24px 24px;
    overflow: hidden;
    background:
      linear-gradient(135deg, rgba(3, 11, 19, 0.98), rgba(5, 22, 38, 0.94)),
      rgba(3, 10, 18, 0.96);
    backdrop-filter: blur(24px) saturate(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition:
      opacity 420ms ease,
      visibility 420ms ease,
      transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-menu::before,
  .mobile-menu::after {
    content: "";
    position: absolute;
    pointer-events: none;
  }

  .mobile-menu::before {
    inset: var(--header-h) 18px 18px;
    border: 1px solid rgba(181, 220, 255, 0.1);
  }

  .mobile-menu::after {
    right: 10vw;
    top: 16vh;
    width: 1px;
    height: 58vh;
    background: linear-gradient(transparent, rgba(67, 160, 255, 0.3), transparent);
  }

  .mobile-menu__glow {
    position: absolute;
    top: 4%;
    right: -28%;
    width: 76vw;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(27, 119, 211, 0.2);
    filter: blur(85px);
    pointer-events: none;
  }

  .mobile-menu__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  .mobile-menu__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 3vh;
    color: rgba(219, 237, 255, 0.5);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }

  .mobile-menu__eyebrow span {
    width: 22px;
    height: 1px;
    background: var(--blue-soft);
    box-shadow: 0 0 12px var(--blue);
  }

  .mobile-menu__nav {
    display: grid;
  }

  .mobile-menu__item {
    display: grid;
    grid-template-columns: 38px 1fr 24px;
    align-items: center;
    min-height: clamp(68px, 10.5vh, 94px);
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(189, 222, 250, 0.13);
    background: transparent;
    text-align: left;
    cursor: pointer;
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 380ms ease,
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
      color 220ms ease,
      padding 260ms ease;
  }

  .mobile-menu__item small {
    color: var(--blue-soft);
    font: 600 9px/1 "Space Grotesk", sans-serif;
    letter-spacing: 0.16em;
  }

  .mobile-menu__item span {
    color: #f4f8fc;
    font: 500 clamp(42px, 12vw, 72px) / 0.88 "Space Grotesk", sans-serif;
    letter-spacing: -0.055em;
    text-transform: uppercase;
  }

  .mobile-menu__item svg {
    width: 17px;
    color: rgba(145, 207, 255, 0.6);
    transition: transform 220ms ease, color 220ms ease;
  }

  .mobile-menu__item:active {
    padding-left: 8px;
  }

  .mobile-menu__item.is-active span {
    color: var(--blue-soft);
  }

  .mobile-menu__cta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    align-items: center;
    margin-top: auto;
    padding: 17px 18px;
    border: 1px solid rgba(104, 255, 174, 0.3);
    background: linear-gradient(110deg, rgba(30, 112, 73, 0.18), rgba(5, 20, 30, 0.7));
    color: #f5fbff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 400ms ease,
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 220ms ease;
  }

  .mobile-menu__cta > span {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(209, 241, 224, 0.58);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .mobile-menu__cta > span i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #63ffa7;
    box-shadow: 0 0 14px #63ffa7;
    animation: pulse 1.8s infinite;
  }

  .mobile-menu__cta strong {
    grid-column: 1;
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .mobile-menu__cta > svg {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 20px;
    color: #8affbd;
  }

  .mobile-menu__footer {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    color: rgba(216, 235, 252, 0.32);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 420ms ease;
  }

  .mobile-menu__footer a {
    color: inherit;
    text-decoration: none;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu.is-open .mobile-menu__item,
  .mobile-menu.is-open .mobile-menu__cta {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu.is-open .mobile-menu__item:nth-child(1) {
    transition-delay: 90ms;
  }

  .mobile-menu.is-open .mobile-menu__item:nth-child(2) {
    transition-delay: 140ms;
  }

  .mobile-menu.is-open .mobile-menu__item:nth-child(3) {
    transition-delay: 190ms;
  }

  .mobile-menu.is-open .mobile-menu__item:nth-child(4) {
    transition-delay: 240ms;
  }

  .mobile-menu.is-open .mobile-menu__cta {
    transition-delay: 280ms;
  }

  .mobile-menu.is-open .mobile-menu__footer {
    opacity: 1;
    transition-delay: 340ms;
  }

  body.mobile-menu-open .header {
    background: rgba(3, 11, 19, 0.92);
    backdrop-filter: blur(20px);
  }

  .category-nav {
    display: none;
  }

  .header-cta,
  .edge,
  .prototype-note {
    display: none;
  }

  .cinema-sound {
    justify-self: end;
    /* .menu-toggle::after imprime "MENU" em position:absolute, fora do fluxo do
       grid, ~37px a esquerda do hamburguer. Com os 8px anteriores o rotulo caia
       escrito por cima deste botao. */
    margin-right: 46px;
    width: 46px;
    height: 46px;
  }

  /* Sem o rotulo "SOM OFF" no mobile, um dot de 6px com tres tracos de 1px nao
     le como controle de som. */
  .cinema-sound__bars {
    height: 16px;
  }

  .cinema-sound__bars i {
    width: 2px;
    height: 7px;
  }

  .cinema-fx__hud {
    display: none;
  }

  .film__clip {
    object-position: 52% center;
  }

  .intro {
    left: 24px;
    width: calc(100vw - 48px);
  }

  .intro h1 {
    font-size: clamp(46px, 14vw, 76px);
  }

  .inventory {
    left: 20px;
    right: 20px;
    top: calc(var(--header-h) + 22px);
    bottom: 38px;
    width: auto;
    justify-content: flex-end;
  }

  .inventory__heading {
    align-items: start;
  }

  .inventory__heading > p {
    display: none;
  }

  .vehicle-grid {
    display: flex;
    gap: 10px;
    padding: 2px 0 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .vehicle-grid::-webkit-scrollbar {
    display: none;
  }

  .vehicle-card {
    flex: 0 0 min(88vw, 390px);
    min-height: 220px;
    max-height: none;
    grid-template-columns: 40% 60%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .vehicle-card__content {
    padding: 15px 15px 13px;
  }

  .vehicle-card__year {
    padding-right: 0;
    font-size: 8px;
  }

  .vehicle-card h3 {
    margin-top: 5px;
    font-size: 18px;
  }

  .vehicle-card__description {
    font-size: 9px;
  }

  .vehicle-card__price {
    position: static;
    margin: 7px 0 9px;
    font-size: 18px;
  }

  .vehicle-card__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 9px;
    margin-top: auto;
    padding-top: 9px;
  }

  .vehicle-card__specs span {
    min-width: 0;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
  }

  .inventory__footer span {
    display: none;
  }

  .inventory__footer a {
    margin-left: 0;
  }

  .chapter-label {
    display: none;
  }
}

@media (max-width: 520px) {
  .header {
    grid-template-columns: 108px 1fr auto;
  }

  .brand {
    width: 100px;
  }

  .menu-toggle {
    width: 50px;
    height: 42px;
  }

  /* Abaixo de 520px nao sobra largura para o rotulo "MENU" conviver com o botao
     de som: o hamburguer ja comunica a funcao sozinho. */
  .menu-toggle::after {
    display: none;
  }

  .cinema-sound {
    width: 42px;
    height: 42px;
    margin-right: 8px;
  }

  .mobile-menu {
    padding: calc(var(--header-h) + 24px) 20px 18px;
  }

  .mobile-menu__eyebrow {
    margin-bottom: 2vh;
  }

  .mobile-menu__item {
    min-height: clamp(62px, 9.7vh, 82px);
  }

  .intro__body {
    font-size: 13px;
  }

  .inventory h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cinema-fx__flare,
  .cinema-fx__cursor {
    display: none;
  }
}
