:root {
  --orange: #ffad32;
  --ink: #0d100e;
  --paper: #f2f1e9;
}
body {
  background: #0d100e;
}
.demo {
  background: #1c211b;
}
header {
  background: #0d100ef2;
  border-bottom-color: #ffffff16;
  height: 80px;
}
.brand-mark {
  background: var(--orange);
}
.car-story {
  height: 540vh;
  position: relative;
  background: #0d100e;
}
.story-stage {
  position: sticky;
  top: 80px;
  height: calc(100svh - 80px);
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: #0d100e;
}
.story-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 67% 60%, #52533835, transparent 55%),
    linear-gradient(170deg, #1e261b 0%, #10140f 55%, #050705);
  transition: opacity 0.7s;
}
.garage-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #0b100dee 0%, #0b100d90 42%, #0b100d20 68%, #0b100de0 100%),
    url('garage.webp') center 65% / cover;
  opacity: 0;
  will-change: opacity;
}
.scene-grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff03 1px, transparent 1px),
    linear-gradient(90deg, #ffffff02 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(black, transparent);
}
.story-top {
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #adb59e;
  z-index: 4;
}
.story-top > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-top i {
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}
.story-top a {
  letter-spacing: 0.4px;
  border-bottom: 1px solid #737e6550;
  padding-bottom: 2px;
}
.chapter-copy {
  position: absolute;
  top: 13%;
  left: 6%;
  right: 6%;
  z-index: 3;
  pointer-events: none;
}
.chapter-copy .eyebrow {
  font-size: 11px;
  letter-spacing: 2.3px;
  color: var(--orange);
  margin-bottom: 15px;
}
.chapter-copy h1 {
  font-size: clamp(68px, 7.4vw, 118px);
  line-height: 0.89;
  letter-spacing: -1.2px;
  max-width: 1100px;
}
.chapter-copy h1 span {
  color: var(--orange);
}
.chapter-copy > p {
  position: absolute;
  left: 68%;
  top: 20%;
  max-width: 260px;
  color: #b5bdae;
  font-size: 16px;
  line-height: 1.7;
}
.scene-side {
  position: absolute;
  left: 6%;
  top: 53%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scene-side-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #838f79;
  writing-mode: vertical-rl;
}
.scene-side-number {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 55px;
  color: #c2c9b8;
  font-weight: 600;
  line-height: 1;
}
.scene-side-number > span {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 10px;
  color: #77866b;
  margin-left: 8px;
}
.car-scene {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  bottom: 17%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.car-rig {
  width: min(80vw, 1220px);
  aspect-ratio: 1536/1024;
  position: absolute;
  left: 50%;
  bottom: -5%;
  transform: translateX(-50%);
  will-change: transform;
}
.car-body {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 6px 3px #0005);
}
.car-wheel {
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  z-index: 4;
  transform-origin: center center;
  will-change: transform, opacity;
}
.car-wheel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  will-change: transform;
}
.rear-wheel {
  left: 15%;
  top: 55%;
}
.damaged-wheel,
.fresh-wheel {
  left: 73%;
  top: 55%;
}
.damaged-wheel img {
  transform: none;
  transform-origin: center;
}
.fresh-wheel {
  opacity: 0;
}
.car-shadow {
  position: absolute;
  left: 10%;
  right: 9%;
  height: 5%;
  top: 74%;
  background: #000d;
  border-radius: 50%;
  filter: blur(12px);
  transform: scaleX(1.03);
  z-index: 0;
}
.headlight-glow {
  position: absolute;
  right: -18%;
  top: 54%;
  width: 29%;
  height: 13%;
  background: radial-gradient(ellipse at left, #fff7d080, transparent 65%);
  opacity: 0;
  filter: blur(8px);
  z-index: 1;
}
.ground-glow {
  position: absolute;
  left: 10%;
  right: 8%;
  height: 20%;
  bottom: 9%;
  background: radial-gradient(ellipse, #858a5533, transparent 65%);
  filter: blur(15px);
}
.road-streaks {
  position: absolute;
  left: -100%;
  width: 300%;
  bottom: 6%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 160px,
    #bfc29b60 160px 270px,
    transparent 270px 500px
  );
  opacity: 0.3;
  box-shadow: 0 28px #bfc29b0a;
  will-change: transform;
}
.wheel-callout {
  position: absolute;
  right: 15%;
  bottom: 2%;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 1.8px;
  z-index: 6;
}
.callout-line {
  width: 38px;
  height: 1px;
  background: currentColor;
}
.service-tags {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -3%;
  display: flex;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  z-index: 5;
}
.service-tags span {
  font-size: 10px;
  letter-spacing: 1.4px;
  background: #10150dd9;
  border: 1px solid #9faa8045;
  padding: 10px 18px;
  backdrop-filter: blur(6px);
}
.service-tags span.active {
  border-color: var(--orange);
  color: var(--orange);
  background: #2a2416ed;
}
.story-bottom {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 83px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 6;
}
.story-prompt {
  display: flex;
  gap: 14px;
  align-items: center;
}
.scroll-icon {
  border: 1px solid #aab5964a;
  border-radius: 30px;
  width: 29px;
  height: 43px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: var(--orange);
}
.story-prompt strong {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 500;
}
.story-prompt div > span {
  display: block;
  color: #8d9b80;
  font-size: 12px;
  margin-top: 3px;
}
.story-chapters {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  left: 6%;
  right: 6%;
  bottom: 15px;
  margin: 0;
  gap: 0;
  z-index: 6;
  font-size: 10px;
  padding-top: 14px;
  border-top: 1px solid #ffffff20;
}
.story-chapters button {
  border: 0;
  background: none;
  text-align: left;
  color: #7d8a72;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 8px 0;
}
.story-chapters button span {
  margin-right: 12px;
  color: #596a4b;
}
.story-chapters button[aria-current='step'] {
  color: var(--orange);
}
.story-chapters button[aria-current='step'] span {
  color: var(--orange);
}
.story-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: #ffffff09;
}
#story-progress {
  height: 2px;
  width: 0;
  background: var(--orange);
}
.chapter-copy.changed {
  animation: chapter-in 0.35s both;
}
@keyframes chapter-in {
  from {
    opacity: 0.15;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.services {
  min-height: 0;
  background: #161c15;
}
.service-wheel-space {
  min-height: 480px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-right: 45px;
  gap: 25px;
}
.service-wheel-space > img {
  width: 100%;
  max-width: 430px;
  height: auto;
  filter: drop-shadow(15px 20px 15px #0006);
}
.service-list {
  z-index: 1;
}
.trust {
  background: #11170e;
}
.shop-photo {
  display: block;
  width: 90%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  margin-top: 30px;
  filter: saturate(0.65);
}
.final-journey {
  min-height: 520px;
  background: #ffad32;
  color: #10170d;
}
.final-journey h2 span {
  color: #10170d;
}
.final-journey > p {
  color: #343c28;
}
.final-journey .button {
  background: #121a0e;
  color: #ffbd59;
  border-color: #121a0e;
}
.final-journey .text-button {
  border-color: #192313;
  color: #192313;
}
.final-journey .eyebrow {
  color: #354225;
}
.finish-word {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 800;
  position: absolute;
  right: -15px;
  bottom: -50px;
  font-size: 360px;
  line-height: 1;
  letter-spacing: -15px;
  color: #19200c13;
  pointer-events: none;
}
.finish-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #14200d 0 30px, transparent 30px 60px);
}
@media (min-width: 1700px) {
  .car-rig {
    bottom: -12%;
  }
  .chapter-copy h1 {
    font-size: 130px;
  }
}
@media (max-height: 750px) and (min-width: 761px) {
  .story-stage {
    min-height: 570px;
  }
  .chapter-copy {
    top: 12%;
  }
  .chapter-copy h1 {
    font-size: 75px;
  }
  .car-scene {
    top: 26%;
    bottom: 16%;
  }
  .car-rig {
    width: 72vw;
    max-width: 1050px;
    bottom: -10%;
  }
  .story-bottom {
    bottom: 76px;
  }
  .scene-side {
    top: 46%;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .chapter-copy h1 {
    font-size: 78px;
  }
  .chapter-copy > p {
    left: 71%;
    font-size: 14px;
  }
  .car-rig {
    width: 94vw;
    bottom: 0;
  }
  .service-tags {
    gap: 15px;
  }
  .scene-side {
    left: 4%;
  }
}
@media (max-width: 760px) {
  header {
    height: 68px;
  }
  .car-story {
    height: 460svh;
  }
  .story-stage {
    top: 68px;
    height: calc(100svh - 120px);
    min-height: 540px;
  }
  .story-top {
    top: 16px;
    left: 6%;
    right: 6%;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .story-top a {
    font-size: 9px;
    letter-spacing: 0;
  }
  .chapter-copy {
    top: 13%;
    left: 6%;
    right: 6%;
  }
  .chapter-copy .eyebrow {
    font-size: 9px;
    margin-bottom: 13px;
  }
  .chapter-copy h1 {
    font-size: clamp(49px, 10.7vw, 76px);
    letter-spacing: -0.5px;
    line-height: 0.94;
  }
  .chapter-copy > p {
    position: static;
    margin: 17px 0 0;
    font-size: 14px;
    max-width: 280px;
    line-height: 1.5;
  }
  .scene-side {
    top: 50%;
    left: 6%;
    gap: 5px;
  }
  .scene-side-label {
    display: none;
  }
  .scene-side-number {
    font-size: 27px;
    color: #849475;
  }
  .scene-side-number > span {
    font-size: 9px;
  }
  .car-scene {
    top: 35%;
    bottom: 21%;
  }
  .car-rig {
    width: 116vw;
    max-width: none;
    bottom: -9%;
    left: 49%;
  }
  .wheel-callout {
    right: 10%;
    bottom: 2%;
    font-size: 8px;
    gap: 8px;
  }
  .callout-line {
    width: 20px;
  }
  .service-tags {
    left: 4%;
    right: 4%;
    bottom: -3%;
    gap: 6px;
  }
  .service-tags span {
    font-size: 8px;
    padding: 7px 10px;
    letter-spacing: 0.5px;
  }
  .road-streaks {
    bottom: 11%;
  }
  .story-bottom {
    bottom: 76px;
    left: 6%;
    right: 6%;
    gap: 15px;
  }
  .story-prompt {
    gap: 8px;
    max-width: 160px;
  }
  .story-prompt strong {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .story-prompt div > span {
    font-size: 10px;
  }
  .scroll-icon {
    width: 23px;
    height: 34px;
    flex-shrink: 0;
    font-size: 17px;
  }
  .story-bottom .button {
    padding: 12px;
    font-size: 11px;
    gap: 15px;
  }
  .story-chapters {
    position: absolute;
    display: grid !important;
    top: auto;
    bottom: 12px;
    left: 6%;
    right: 6%;
    padding: 10px 0 0;
    background: none;
    border-bottom: 0;
    gap: 5px;
    flex-direction: initial;
  }
  .story-chapters button {
    font-size: 7px;
    letter-spacing: 0.2px;
    text-align: center;
    padding: 5px 0;
  }
  .story-chapters button span {
    display: block;
    font-size: 10px;
    margin: 0 0 3px;
  }
  .service-wheel-space {
    min-height: 0;
    margin-bottom: 25px;
    padding: 0;
    gap: 12px;
  }
  .service-wheel-space > img {
    width: 62%;
    max-width: 250px;
  }
  .shop-photo {
    width: 100%;
    height: 210px;
  }
  .final-journey {
    min-height: 460px;
  }
  .final-journey h2 {
    font-size: 56px;
  }
  .finish-word {
    font-size: 240px;
    bottom: -30px;
    right: -8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .car-story {
    height: auto;
  }
  .story-stage {
    height: calc(100svh - 120px);
    position: relative;
    top: 0;
  }
  .story-chapters {
    display: none !important;
  }
  .story-bottom {
    bottom: 25px;
  }
  .chapter-copy.changed {
    animation: none;
  }
  .car-rig,
  .car-wheel,
  .car-wheel img {
    will-change: auto;
  }
  .car-scene {
    bottom: 16%;
  }
}
/* Car and wheel alignment matches the generated 1536 × 520 body cutout. */
.car-rig {
  aspect-ratio: 1536/520;
}
.car-wheel {
  width: 17.8%;
}
.rear-wheel {
  left: 13.76%;
  top: 42.94%;
}
.damaged-wheel,
.fresh-wheel {
  left: 69.16%;
  top: 43.9%;
}
.car-shadow {
  top: 94%;
  height: 4%;
}
.car-body {
  object-fit: fill;
}
.car-scene {
  bottom: 19%;
}
.car-rig {
  bottom: -4%;
}
@media (max-width: 760px) {
  .car-rig {
    width: 104vw;
    bottom: 6%;
    left: 50%;
  }
  .car-scene {
    top: 37%;
    bottom: 20%;
  }
  .wheel-callout {
    bottom: 0;
  }
  .service-tags {
    bottom: -5%;
  }
  .chapter-copy h1 {
    font-size: clamp(46px, 10.5vw, 72px);
  }
  .story-stage {
    min-height: 570px;
  }
}
@media (max-height: 750px) and (min-width: 761px) {
  .car-rig {
    width: 65vw;
    bottom: -5%;
  }
  .chapter-copy h1 {
    font-size: 68px;
  }
  .chapter-copy > p {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .car-scene {
    bottom: 14%;
  }
}

.damaged-wheel img {
  transform: none;
  transform-origin: center;
}
.chapter-copy h1 {
  font-size: clamp(64px, 6.5vw, 104px);
}
@media (max-width: 760px) {
  .chapter-copy h1 {
    font-size: clamp(46px, 10.5vw, 72px);
  }
}

.rear-wheel img,
.fresh-wheel img {
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.car-wheel {
  isolation: isolate;
}

.rear-wheel img,
.fresh-wheel img {
  transform-origin: 49.978% 49.193%;
}
.rear-wheel {
  left: 13.764%;
  top: 43.364%;
}
.fresh-wheel {
  left: 69.164%;
  top: 44.324%;
}

/* Keep the headline clear of the roof and give each chapter a clear focus state. */
@media (min-width: 761px) {
  .chapter-copy {
    top: 9%;
  }
  .chapter-copy h1 {
    font-size: clamp(60px, 6vw, 96px);
  }
}
.story-chapters button {
  transition:
    color 0.2s,
    background 0.2s;
  border-radius: 2px;
}
.story-chapters button:hover {
  color: var(--paper);
  background: #ffffff05;
}
.story-chapters button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.car-shadow {
  will-change: transform, filter;
  transition: opacity 0.2s;
}

.damaged-wheel {
  left: 69.164%;
  top: 44.324%;
}
.damaged-wheel img {
  transform-origin: 49.978% 49.193%;
}
