
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #050505;
  color: #f0eee9;
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.view {
  display: none;
}
body.intro #intro,
body.home #home,
body.products #products,
body.model #model {
  display: block;
}
body.intro {
  overflow: hidden;
  height: 100%;
}
body.intro header,
body.intro footer {
  display: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(#000a, transparent);
}
.logo {
  letter-spacing: 0.5em;
  font-size: 14px;
  font-weight: 400;
}
nav {
  display: none;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav a {
  position: relative;
  padding-bottom: 4px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #f0eee9;
  transition: width 0.35s;
}
nav a:hover::after {
  width: 100%;
}
.menuBtn {
  background: none;
  border: 0;
  color: #f0eee9;
  font: inherit;
  letter-spacing: 0.15em;
  font-size: 12px;
  cursor: pointer;
}
#mobileMenu {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
  font-size: 32px;
  font-weight: 200;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}
#mobileMenu.open {
  transform: translateY(0);
}
#mobileMenu .close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
  background: none;
  border: 0;
  color: #f0eee9;
  font-family: inherit;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8d8b86;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
.big {
  font-size: clamp(44px, 9vw, 120px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.mid {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
em {
  font-style: italic;
  font-family: Georgia, serif;
  font-weight: 400;
}
.copy {
  color: #b8b6b0;
  max-width: 460px;
}
.tagline {
  font-size: clamp(18px, 2vw, 24px);
  margin-top: 10px;
}

section {
  padding: 80px 20px;
  position: relative;
}
.paper {
  background: #f0eee9;
  color: #111;
}
.paper .copy,
.paper .eyebrow {
  color: #666;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid #f0eee9;
  border-radius: 18px;
  background: transparent;
  color: #f0eee9;
  font: inherit;
  letter-spacing: 0.25em;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}
.btn:hover {
  background: #f0eee9;
  color: #000;
  transform: translateY(-2px);
}
.paper .btn {
  color: #111;
  border-color: #111;
}
.paper .btn:hover {
  background: #111;
  color: #f0eee9;
}

.reveal {
  opacity: 1;
}
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: rise linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#intro {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 100;
}
.frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(100vw, calc(100vh * 1280 / 832));
  aspect-ratio: 1280 / 832;
  background: #000;
  container-type: inline-size;
}
.frame img,
.tyreSmoke {
  position: absolute;
  display: block;
  max-width: none;
}

.smoke {
  left: -6.17%;
  top: -2.04%;
  width: 107.1%;
  height: 124.3%;
  z-index: 1;
}
.road {
  left: 35.6%;
  top: 38.8%;
  width: 65.3%;
  height: 120.5%;
  z-index: 2;
}
.shadow {
  left: 38.3%;
  top: 10%;
  width: 61%;
  height: 115.3%;
  z-index: 3;
  animation: shadowIn 0.6s ease 2s both;
}
.car {
  left: 39.6%;
  top: -4.93%;
  width: 57.4%;
  height: 109.7%;
  z-index: 4;
  animation:
    driftIn 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both,
    shake 0.18s linear 2.4s infinite alternate;
}

@keyframes driftIn {
  0% {
    transform: translateX(70%) rotate(20deg) skewX(12deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translateX(-14%) rotate(-15deg) skewX(-9deg);
  }
  75% {
    transform: translateX(4%) rotate(5deg) skewX(3deg);
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes shake {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(0.25%);
  }
}
@keyframes shadowIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.car.leave {
  animation: leaveAway 1.6s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}
@keyframes leaveAway {
  0% {
    transform: none;
    opacity: 1;
  }
  35% {
    transform: translateX(-12%) rotate(-14deg) skewX(-8deg) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translateX(90%) rotate(-24deg) skewX(-14deg) scale(1.1);
    opacity: 0;
  }
}

.tyreSmoke {
  left: 42%;
  top: 66%;
  width: 50%;
  height: 18%;
  background: radial-gradient(ellipse, #ddd9 0, transparent 70%);
  filter: blur(22px);
  opacity: 0;
  z-index: 5;
  animation: puff 2.6s ease-out both;
}
@keyframes puff {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.tyreSmoke.on {
  animation: none;
  opacity: 1;
  transition: opacity 0.4s;
}

#intro .logo {
  position: absolute;
  z-index: 30;
  left: max(24px, 4.17vw);
  top: max(26px, 3.6vh);
  font-size: clamp(14px, 1.6vw, 26px);
  letter-spacing: 0.4em;
  line-height: 1.3;
}
.exploreBtn {
  position: absolute;
  z-index: 7;
  left: 9.4%;
  top: 74.2%;
  width: 18.6%;
  height: 9.7%;
  padding: 0;
  border-width: 0.12cqw;
  border-radius: 1.7cqw;
  background: rgba(0, 0, 0, 0.2);
  font-size: 1.95cqw;
  letter-spacing: 0.26em;
}
.hint {
  position: absolute;
  z-index: 30;
  bottom: 14px;
  left: max(24px, 4.17vw);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #8d8b86;
}
.fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s;
  z-index: 40;
}
.fade.on {
  opacity: 1;
}

@media (max-aspect-ratio: 1/1) {
  .frame {
    left: 0;
    top: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    min-height: 520px;
    container-type: normal;
  }
  .smoke {
    left: 50%;
    top: 0;
    width: 130%;
    height: 60%;
    transform: translateX(-50%);
    object-fit: cover;
  }
  .road {
    left: 50%;
    top: auto;
    bottom: 0;
    width: 110%;
    height: 46%;
    transform: translateX(-50%);
  }
  .shadow {
    display: none;
  }
  .car {
    left: 0;
    right: 0;
    margin: 0 auto;
    top: auto;
    bottom: 14%;
    width: min(88vw, 640px);
    height: auto;
  }
  .tyreSmoke {
    left: 20%;
    top: auto;
    bottom: 10%;
    width: 70%;
    height: 20%;
  }
  #intro .logo {
    left: 24px;
    top: 28px;
    font-size: 14px;
  }
  .exploreBtn {
    left: auto;
    right: 8%;
    top: 36%;
    width: auto;
    height: auto;
    padding: 14px 28px;
    font-size: 16px;
    border-width: 1px;
    border-radius: 18px;
  }
  .hint {
    left: 24px;
  }
}

.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#0000 30%, #000d);
}
.hero > * {
  position: relative;
  z-index: 2;
}
.hero.run {
  background-size: auto 112%;
  background-position: 50% 50%;
  animation: drive 5s ease-in-out infinite alternate;
}
@keyframes drive {
  0% {
    background-size: auto 110%;
    background-position: 50% 48%;
  }
  50% {
    background-size: auto 118%;
    background-position: 50.2% 52%;
  }
  100% {
    background-size: auto 126%;
    background-position: 49.8% 50%;
  }
}

.two {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s,
    filter 0.8s;
  filter: brightness(0.75);
}
.card:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}
.card .label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 20px;
  background: linear-gradient(transparent, #000a);
}
.card small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bbb;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  margin-top: 40px;
}
.stats small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #8d8b86;
}
.stats b {
  font-weight: 300;
  font-size: clamp(18px, 3vw, 30px);
}
.perfRow {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 0;
  font-size: 18px;
}
.perfRow b {
  font-weight: 200;
  font-size: 34px;
}
.tech {
  list-style: none;
}
.tech li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.tech span {
  color: #8d8b86;
}
.tech small {
  color: #888;
}

.detailGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.detailGrid figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111;
}
.detailGrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}
.detailGrid figure:hover img {
  transform: scale(1.06);
}
.detailGrid figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.straddle {
  position: relative;
  height: 0;
  z-index: 6;
  pointer-events: none;
  overflow-x: clip;
}
.straddleCar {
  position: absolute;
  pointer-events: none;
}
.straddleView {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: none;
  border-radius: 0;
  pointer-events: auto;
  outline: none;
  --poster-color: transparent;
  --progress-bar-height: 0px;
}
.straddleCar .pill {
  position: absolute;
  right: 2%;
  bottom: 6%;
  pointer-events: auto;
}
.straddleView[data-doors="0"] + .pill {
  display: none;
}
.precisionRow {
  align-items: start;
}
.precisionPics {
  position: relative;
  width: 100%;
  padding-bottom: 120%;
}
.precisionPics img {
  position: absolute;
  object-fit: cover;
}
.picGold {
  left: 0;
  top: 0;
  width: 93%;
  height: 97%;
}
.picDark {
  left: 54.3%;
  top: 32%;
  width: 45.7%;
  height: 67.8%;
  box-shadow: 0 20px 40px #0008;
}
.nextPhoto {
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 30px auto;
}

.viewerBox {
  position: relative;
}
model-viewer {
  width: 100%;
  height: 60vh;
  min-height: 340px;
  background: radial-gradient(circle at 50% 40%, #2a2a2c, #000 72%);
  border-radius: 6px;
  --progress-bar-color: #f0eee9;
  --poster-color: transparent;
  outline: none;
}
.arBtn {
  position: absolute;
  z-index: 5;
  bottom: 16px;
  right: 16px;
  padding: 11px 22px;
  background: #f0eee9;
  color: #000;
  border: 0;
  border-radius: 20px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition:
    transform 0.25s,
    background 0.25s;
}
.arBtn:hover {
  transform: translateY(-2px);
  background: #fff;
}
.hotspot {
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25);
  animation: pulse 1.8s infinite;
}
.hotspot span {
  display: none;
  position: absolute;
  left: 30px;
  top: -4px;
  background: #000c;
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  white-space: nowrap;
  border-radius: 6px;
}
.hotspot:hover span,
.hotspot:focus span {
  display: block;
}
model-viewer[data-doors="0"] .hotspot {
  display: none;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 16px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.swatches span {
  color: #8d8b86;
  margin-right: 2px;
}
.dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #f0eee9;
  cursor: pointer;
  transition: transform 0.25s;
}
.dot:hover {
  transform: scale(1.2);
}
.chip,
.pill {
  padding: 8px 16px;
  border: 1px solid #f0eee9;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  color: #f0eee9;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.chip:hover,
.pill:hover {
  background: #f0eee9;
  color: #000;
}
.chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  color: #f0eee9;
}
.revBtn {
  margin-left: auto;
}

.qrNote {
  margin-top: 20px;
  font-size: 12px;
  color: #8d8b86;
  max-width: 560px;
}
.qrNote:empty {
  display: none;
}
.arRight .qrNote {
  margin-top: 16px;
}
.card3d {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b0b0b;
}
.cardPhoto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) blur(3px);
  transform: scale(1.06);
  transition:
    filter 0.8s,
    transform 0.8s;
}
.card3d:hover .cardPhoto {
  filter: brightness(0.5) blur(1px);
  transform: scale(1.1);
}
.cardView {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: none;
  border-radius: 0;
  pointer-events: none;
  --progress-bar-height: 0px;
}
.cardLink {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}
.cardLink .label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 120px;
}
.cardLink small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bbb;
}
.qrBox {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px 5px 5px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #111;
}
.qr {
  width: 92px;
  height: 92px;
  border-radius: 4px;
}
.qrBox small {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #111;
}
.cardAr {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
}

#arModal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #050505;
  overflow-y: auto;
  padding: 70px 20px 30px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0.4s;
}
#arModal.open {
  opacity: 1;
  visibility: visible;
}
#arModal .close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
  background: none;
  border: 0;
  color: #f0eee9;
  font-family: inherit;
}
.arBox {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  max-width: 1280px;
  margin: 0 auto;
}
.arLeft model-viewer {
  height: 52vh;
  min-height: 320px;
}
.arHelp {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-size: 13px;
  color: #d8d6d0;
}
.arHelp.show {
  display: block;
}
.qrWide {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.qrWide img {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 10px;
  flex: none;
}
.qrWide b {
  display: block;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.qrWide ol {
  margin-left: 18px;
  font-size: 13px;
  color: #b8b6b0;
}
.arLink {
  opacity: 0.9;
}

footer {
  padding: 70px 20px 30px;
  text-align: center;
}
.giant {
  font-size: clamp(60px, 18vw, 260px);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-shadow: 0 14px 18px #fff3;
  text-align: center;
}
.footerCar {
  width: min(70vw, 320px);
  margin: 30px auto 0;
  animation: footerDrift 4.5s ease-in-out infinite;
}
@keyframes footerDrift {
  0% {
    transform: translateX(0) rotate(0);
  }
  25% {
    transform: translateX(-14%) rotate(-8deg) skewX(-5deg);
  }
  55% {
    transform: translateX(10%) rotate(5deg) skewX(3deg);
  }
  80% {
    transform: translateX(-3%) rotate(-1deg);
  }
  100% {
    transform: translateX(0) rotate(0);
  }
}
.footLinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0;
  justify-content: center;
}
.footLinks a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  transition:
    background 0.3s,
    color 0.3s;
}
.footLinks a:hover {
  background: #f0eee9;
  color: #000;
}
.small {
  font-size: 11px;
  color: #8d8b86;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}
.small.credit {
  margin-top: 10px;
  border-top: 0;
  padding-top: 0;
  font-size: 10px;
}

@media (min-width: 700px) {
  header {
    padding: 18px 40px;
  }
  #mobileMenu .close {
    right: 40px;
  }
  section {
    padding: 80px 40px;
  }
  footer {
    padding: 70px 40px 30px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .two {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .grid > :nth-child(even) {
    margin-top: 60px;
  }
  .qrBox {
    display: flex;
  }
  #arModal {
    padding: 80px 40px 40px;
  }
  .arBox {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
  }
  .arLeft model-viewer {
    height: 62vh;
  }
  .detailGrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  header {
    padding: 18px 60px;
  }
  #mobileMenu .close {
    right: 60px;
  }
  nav {
    display: flex;
  }
  .menuBtn {
    display: none;
  }
  section {
    padding: 130px 60px;
  }
  footer {
    padding: 70px 60px 30px;
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
