@font-face {
  font-family: "OswaldLocal";
  src: url("../assets/fonts/oswald-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OswaldLocal";
  src: url("../assets/fonts/oswald-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetLocal";
  src: url("../assets/fonts/jet-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetLocal";
  src: url("../assets/fonts/jet-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterLocal";
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterLocal";
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterLocal";
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #ff5a1f;
  --accent-hot: #ff3b00;
  --ink: #0c0c0c;
  --snow: #f7f4ef;
  --muted: rgba(247, 244, 239, 0.72);
  --glass: rgba(12, 12, 12, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wheel-size: min(56vmin, 560px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #1a1c14;
  color: var(--snow);
  font-family: "InterLocal", "Segoe UI", sans-serif;
  overflow: hidden;
}

button,
a {
  font: inherit;
  color: inherit;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg-stack,
.stage__bg-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.stage__bg-stack {
  border-radius: 28px;
}

.hero__bg,
.stage__card-bg {
  position: absolute;
  inset: -4%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.hero__bg {
  filter: blur(22px) saturate(0.9) brightness(0.62);
  transform: scale(1.2);
}

.stage__card-bg {
  transform: scale(1.05);
}

.hero__bg.is-show,
.stage__card-bg.is-show {
  opacity: 1;
  z-index: 1;
}

/* Idle: slow Ken Burns — same road-rush feel as the SR demo */
.hero__bg.is-show.is-idle {
  animation: kenOuter 16s ease-in-out infinite alternate;
}

.stage__card-bg.is-show.is-idle {
  animation: kenInner 12s ease-in-out infinite alternate;
}

/* `from` must match settle end-state exactly — mismatch caused a landscape jump */
@keyframes kenOuter {
  from { transform: scale(1.2) translate3d(0, 0, 0); }
  to { transform: scale(1.28) translate3d(1.8%, -0.4%, 0); }
}

@keyframes kenInner {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(2.4%, -0.5%, 0); }
}

/* Slide change: outgoing zooms hard into the road (SR ~3x), incoming settles from zoom */
.hero__bg.is-zoom-out,
.stage__card-bg.is-zoom-out {
  animation: none !important;
  z-index: 2;
  opacity: 1;
  transition:
    transform 0.85s cubic-bezier(0.33, 0.1, 0.25, 1),
    opacity 0.55s ease 0.15s,
    filter 0.85s ease;
}

.hero__bg.is-zoom-out {
  transform: scale(2.6) translate3d(var(--bg-pan, -4%), 0, 0);
  filter: blur(28px) saturate(0.7) brightness(0.35);
  opacity: 0;
}

.stage__card-bg.is-zoom-out {
  transform: scale(2.85) translate3d(var(--bg-pan, -4%), 0, 0);
  opacity: 0;
}

.hero__bg.is-zoom-in,
.stage__card-bg.is-zoom-in {
  animation: none !important;
  z-index: 3;
  opacity: 0;
  transition: none;
}

.hero__bg.is-zoom-in {
  transform: scale(1.55) translate3d(var(--bg-from, 6%), 0, 0);
  filter: blur(26px) saturate(0.8) brightness(0.5);
}

.stage__card-bg.is-zoom-in {
  transform: scale(1.45) translate3d(var(--bg-from, 6%), 0, 0);
}

.hero__bg.is-zoom-in.is-run,
.stage__card-bg.is-zoom-in.is-run {
  opacity: 1;
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    filter 0.95s ease;
}

.hero__bg.is-zoom-in.is-run {
  transform: scale(1.2) translate3d(0, 0, 0);
  filter: blur(22px) saturate(0.9) brightness(0.62);
}

.stage__card-bg.is-zoom-in.is-run {
  transform: scale(1.05) translate3d(0, 0, 0);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 20, 12, 0.78) 0%, rgba(18, 20, 12, 0.35) 38%, rgba(18, 20, 12, 0.15) 100%),
    linear-gradient(180deg, rgba(10, 10, 8, 0.25) 0%, transparent 30%, rgba(10, 10, 8, 0.45) 100%);
  pointer-events: none;
}

.brand-rail {
  position: absolute;
  top: 4.5rem;
  left: 1.35rem;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: "OswaldLocal", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.brand-rail__amp {
  color: var(--accent);
}

.contact-link {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  z-index: 8;
  text-decoration: none;
  font-family: "JetLocal", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  opacity: 0.9;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.contact-link:hover {
  color: var(--accent);
  opacity: 1;
}

.side-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 8, 8, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), color 0.25s ease;
}

.side-nav--prev { left: 1.1rem; }
.side-nav--next { right: 1.1rem; }

.side-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #140800;
  transform: translateY(-50%) scale(1.06);
}

.side-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.stage__card {
  position: relative;
  width: min(72vw, 980px);
  height: min(78vh, 720px);
  border-radius: 28px;
  overflow: hidden;
  pointer-events: auto;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.stage__card-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 28px;
  background:
    linear-gradient(105deg, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.18) 42%, rgba(8, 8, 8, 0.05) 70%, transparent 100%),
    linear-gradient(180deg, transparent 40%, rgba(8, 8, 8, 0.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.copy {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2.75rem);
  top: clamp(1.5rem, 4vh, 3rem);
  width: min(54%, 420px);
  z-index: 4;
  pointer-events: none;
}

.copy__tag {
  margin: 0 0 0.85rem;
  font-family: "JetLocal", monospace;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transform-origin: left center;
}

.copy__title {
  margin: 0;
  font-family: "OswaldLocal", Impact, sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.copy__line {
  display: block;
}

.copy__line--a {
  font-size: clamp(3.4rem, 8.5vw, 7.2rem);
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.copy__line--b {
  font-size: clamp(3.8rem, 9.5vw, 8rem);
  color: var(--accent);
  margin-left: 0.08em;
  text-shadow: 0 10px 36px rgba(255, 60, 0, 0.28);
}

.copy__body {
  margin: 1.35rem 0 0;
  max-width: 28ch;
  font-family: "JetLocal", monospace;
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.copy.is-enter .copy__tag,
.copy.is-enter .copy__line,
.copy.is-enter .copy__body {
  animation: riseIn 0.75s var(--ease) both;
}

.copy.is-enter .copy__line--a { animation-delay: 0.08s; }
.copy.is-enter .copy__line--b { animation-delay: 0.16s; }
.copy.is-enter .copy__body { animation-delay: 0.24s; }

.copy.is-exit .copy__tag,
.copy.is-exit .copy__line,
.copy.is-exit .copy__body {
  animation: riseOut 0.45s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px) skewX(-4deg); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes riseOut {
  to { opacity: 0; transform: translateY(-18px); filter: blur(3px); }
}

.specs {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2.75rem);
  right: clamp(1rem, 28%, 12rem);
  bottom: clamp(1.1rem, 3vh, 2rem);
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(7rem, 1fr) auto auto auto;
  gap: 1rem 1.35rem;
  align-items: end;
  pointer-events: auto;
}

.specs__label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "JetLocal", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}

.season-toggle {
  display: flex;
  gap: 0.45rem;
}

.season-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.season-btn.is-active {
  border-color: var(--accent);
  background: rgba(255, 90, 31, 0.18);
  transform: translateY(-2px);
}

.season-btn__wheel {
  position: relative;
  width: 34px;
  height: 34px;
}

.season-btn__wheel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.season-btn__rim {
  inset: 12% !important;
  width: 76% !important;
  height: 76% !important;
  margin: auto;
}

.size-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.18rem;
  font-family: "JetLocal", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.92);
}

.specs__value {
  margin: 0;
  font-family: "OswaldLocal", sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  letter-spacing: 0.02em;
}

.specs__value--price {
  color: #fff;
}

.specs__value--price small {
  display: inline;
  margin-left: 0.25rem;
  font-family: "JetLocal", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.cta {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #140800;
  text-decoration: none;
  font-family: "OswaldLocal", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 30px rgba(255, 70, 0, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.18);
}

.wheel {
  position: absolute;
  left: 52%;
  top: 50%;
  width: var(--wheel-size);
  height: var(--wheel-size);
  transform: translateY(-48%);
  z-index: 6;
  filter:
    drop-shadow(0 24px 36px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.18))
    brightness(1.18)
    contrast(1.12);
  pointer-events: none;
  will-change: transform, opacity;
}

.wheel__boost {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform 1.05s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform: rotate(var(--boost-angle, 0deg));
}

.wheel__spin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: wheelIdle 14s linear infinite;
}

/*
  Full-width roll like the SR demo:
  NEXT → rolls left across the page, new wheel enters from the right
  PREV → rolls right across the page, new wheel enters from the left
  Opacity stays up until near the edge so the tire stays “complete” while traveling.
*/
.wheel.is-exit-next {
  transition:
    transform 0.78s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity 0.35s ease 0.4s;
  transform: translate(-115vw, -48%);
  opacity: 0;
}

.wheel.is-exit-prev {
  transition:
    transform 0.78s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity 0.35s ease 0.4s;
  transform: translate(115vw, -48%);
  opacity: 0;
}

.wheel.is-enter-next {
  animation: wheelRollInNext 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wheel.is-enter-prev {
  animation: wheelRollInPrev 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wheel__tire,
.wheel__rim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.wheel__rim {
  inset: 11.5%;
  width: 77%;
  height: 77%;
  margin: auto;
}

@keyframes wheelIdle {
  to { transform: rotate(360deg); }
}

@keyframes wheelRollInNext {
  0% {
    opacity: 0;
    transform: translate(115vw, -48%);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(0, -48%);
  }
}

@keyframes wheelRollInPrev {
  0% {
    opacity: 0;
    transform: translate(-115vw, -48%);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(0, -48%);
  }
}

.chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 9;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 1.35rem;
  pointer-events: none;
}

.chrome__copy {
  font-family: "JetLocal", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.chrome__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: auto;
}

.chrome__count {
  font-family: "JetLocal", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.chrome__arrows {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(8, 8, 8, 0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-family: "OswaldLocal", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #140800;
  transform: translateY(-2px);
}

.bullets {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  pointer-events: auto;
}

.bullet {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-family: "OswaldLocal", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.bullet.is-active {
  background: rgba(255, 90, 31, 0.2);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.bullet:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

@media (max-width: 980px) {
  .brand-rail {
    top: 3.5rem;
    left: 0.9rem;
    font-size: 1.15rem;
  }

  .stage__card {
    width: min(92vw, 720px);
    height: min(74vh, 640px);
  }

  .specs {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    right: 1rem;
  }

  .cta {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .wheel {
    left: 58%;
    --wheel-size: min(46vmin, 360px);
  }

  .copy {
    width: min(62%, 360px);
  }

  .chrome {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.55rem;
  }

  .chrome__copy {
    display: none;
  }

  .bullets {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .side-nav {
    width: 44px;
    height: 44px;
  }

  .side-nav--prev { left: 0.45rem; }
  .side-nav--next { right: 0.45rem; }

  .nav-btn {
    padding: 0.55rem 0.8rem;
    font-size: 0.75rem;
  }

  .copy__body {
    max-width: 34ch;
  }

  .specs__sizes,
  .specs__speed {
    display: none;
  }

  .specs {
    grid-template-columns: auto 1fr;
  }

  .wheel {
    left: 52%;
    top: 58%;
    --wheel-size: min(58vmin, 300px);
  }

  .bullet {
    padding: 0.35rem 0.55rem;
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel__spin,
  .wheel.is-boost .wheel__boost,
  .wheel.is-enter-next,
  .wheel.is-enter-prev,
  .copy.is-enter .copy__tag,
  .copy.is-enter .copy__line,
  .copy.is-enter .copy__body,
  .hero__bg,
  .stage__card-bg,
  .hero__bg.is-idle,
  .stage__card-bg.is-idle {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }
}
