/* Road trip hero. The existing product and navigation styles stay in styles.css. */
[hidden] { display: none !important; }
.hero-roadtrip {
  --car-width: clamp(240px, 29vw, 460px);
  --trip-duration: 9s;
  height: clamp(540px, 42vw, 680px);
  aspect-ratio: auto;
  isolation: isolate;
  background: #253c42;
}
.hero-roadtrip::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0b202b9c 0%, #0b202b25 54%, transparent 76%), linear-gradient(0deg, #07141cda 0%, transparent 36%);
  content: "";
  pointer-events: none;
}
.trip-scenes, .trip-scene { position: absolute; inset: 0; z-index: -2; }
.trip-scene { opacity: 0; transition: opacity 1.2s ease; }
.trip-scene.is-active { opacity: 1; }
.trip-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.trip-copy { position: absolute; top: 11%; left: 7.1%; }
.trip-eyebrow { margin: 0 0 22px; font-size: 11px; font-weight: 600; letter-spacing: .23em; }
.trip-copy h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(65px, 6.2vw, 106px);
  font-style: italic;
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: 0 2px 20px #16252a20;
}
.trip-lead { margin: 0 0 24px; font-size: clamp(13px, 1.1vw, 17px); line-height: 1.9; letter-spacing: .1em; }
.mobile-break { display: none; }
.trip-copy .shop-link { gap: 32px; min-height: 43px; min-width: 192px; padding: 12px 18px; border-width: 1px; font-size: 11px; letter-spacing: .13em; background: #11283030; }
.trip-destination { position: absolute; top: 13%; right: 5%; display: grid; gap: 9px; text-align: right; text-shadow: 0 1px 8px #101e28b3; }
.trip-location-label { font-size: 9px; letter-spacing: .2em; opacity: .8; }
.trip-place { font-size: clamp(13px, 1.2vw, 18px); font-weight: 650; letter-spacing: .1em; }
.trip-mood { font-size: 11px; letter-spacing: .05em; }
.trip-car {
  position: absolute;
  z-index: 1;
  bottom: 65px;
  left: 0;
  width: var(--car-width);
  transform: translateX(20vw);
  pointer-events: none;
}
.trip-car img { position: relative; z-index: 1; width: 100%; height: auto; scale: -1 1; filter: drop-shadow(0 7px 4px #0d1a2750); }
.trip-dust {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: none;
  opacity: .45;
  transition: opacity 1.2s ease;
}
.hero-roadtrip[data-trip-dust="desert"] .trip-dust { opacity: .8; }
.hero-roadtrip.is-enhanced .trip-dust { display: block; }
.trip-dust-puff {
  --dust-width: 58%;
  --dust-rise: -22px;
  --dust-angle: -7deg;
  --dust-travel: calc(var(--car-width) * -.95);
  --dust-peak: .4;
  position: absolute;
  left: 23%;
  bottom: 7%;
  width: var(--dust-width);
  height: 55%;
  margin-left: calc(-1 * var(--dust-width));
  background: url("assets/roadtrip-dust-texture.png") center / 100% 100% no-repeat;
  mask-image: radial-gradient(ellipse at 57% 62%, #000 15%, #000c 47%, #0005 69%, transparent 85%);
  filter: blur(.35px);
  opacity: 0;
  transform-origin: 100% 100%;
  animation: road-dust 2.1s linear infinite;
}
.trip-dust-puff:nth-child(2) { --dust-width: 37%; height: 32%; animation-duration: 1.45s; animation-delay: -.31s; --dust-rise: -9px; --dust-angle: 4deg; --dust-travel: calc(var(--car-width) * -.72); --dust-peak: .3; }
.trip-dust-puff:nth-child(3) { --dust-width: 65%; height: 60%; animation-duration: 2.35s; animation-delay: -.66s; --dust-rise: -32px; --dust-angle: -11deg; --dust-peak: .33; }
.trip-dust-puff:nth-child(4) { --dust-width: 43%; height: 38%; animation-duration: 1.7s; animation-delay: -.91s; --dust-rise: -13px; --dust-angle: 6deg; --dust-travel: calc(var(--car-width) * -.8); --dust-peak: .36; }
.trip-dust-puff:nth-child(5) { --dust-width: 60%; height: 48%; animation-duration: 2.2s; animation-delay: -1.24s; --dust-rise: -25px; --dust-angle: -4deg; --dust-peak: .31; }
.trip-dust-puff:nth-child(6) { --dust-width: 34%; height: 29%; animation-duration: 1.35s; animation-delay: -1.09s; --dust-rise: -7px; --dust-angle: 8deg; --dust-travel: calc(var(--car-width) * -.64); --dust-peak: .27; }
.trip-dust-puff:nth-child(7) { --dust-width: 69%; height: 64%; animation-duration: 2.5s; animation-delay: -1.82s; --dust-rise: -35px; --dust-angle: -9deg; --dust-travel: calc(var(--car-width) * -1.1); --dust-peak: .25; }
.trip-dust-puff:nth-child(8) { --dust-width: 47%; height: 40%; animation-duration: 1.85s; animation-delay: -.44s; --dust-rise: -16px; --dust-angle: 3deg; --dust-peak: .34; }
.hero-roadtrip.is-paused .trip-dust-puff { animation-play-state: paused; }
@keyframes road-dust {
  0% { opacity: 0; transform: translate(0, 0) scale(.14, .18) rotate(0deg); }
  18% { opacity: var(--dust-peak); transform: translate(calc(var(--dust-travel) * .15), -2px) scale(.48, .5) rotate(calc(var(--dust-angle) * -.2)); }
  48% { opacity: calc(var(--dust-peak) * .65); transform: translate(calc(var(--dust-travel) * .46), calc(var(--dust-rise) * .32)) scale(.98, 1.1) rotate(calc(var(--dust-angle) * .35)); }
  76% { opacity: calc(var(--dust-peak) * .2); transform: translate(calc(var(--dust-travel) * .75), calc(var(--dust-rise) * .7)) scale(1.36, 1.5) rotate(calc(var(--dust-angle) * .75)); }
  100% { opacity: 0; transform: translate(var(--dust-travel), var(--dust-rise)) scale(1.65, 1.9) rotate(var(--dust-angle)); }
}
.hero-roadtrip.is-enhanced .trip-car { animation: drive-right var(--trip-duration) linear infinite; }
.hero-roadtrip.is-enhanced .trip-car img {
  transform-origin: 50% 85%;
  animation: vintage-suspension 920ms linear infinite;
}
.hero-roadtrip.is-paused .trip-car { animation-play-state: paused; }
.hero-roadtrip.is-paused .trip-car img { animation-play-state: paused; }
@keyframes drive-right {
  from { transform: translateX(calc(-1 * var(--car-width))); }
  to { transform: translateX(calc(100vw + var(--car-width) * 1.65)); }
}
/* Uneven suspension movement stays on the image, independent of horizontal travel. */
@keyframes vintage-suspension {
  0%, 100% { transform: translateY(0) rotate(-.12deg); }
  9% { transform: translateY(-1px) rotate(.18deg); }
  21% { transform: translateY(1px) rotate(-.24deg); }
  34% { transform: translateY(-2px) rotate(.18deg); }
  50% { transform: translateY(.5px) rotate(-.1deg); }
  68% { transform: translateY(-1.5px) rotate(.28deg); }
  82% { transform: translateY(.8px) rotate(-.18deg); }
  94% { transform: translateY(-.5px) rotate(.1deg); }
}
.trip-bottom { position: absolute; inset: auto 5% 17px 7.1%; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.trip-tagline { margin: 0; font-size: 10px; letter-spacing: .2em; }
.trip-controls { display: flex; align-items: center; gap: 11px; }
.trip-controls button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ffffff70; background: #10242d38; color: white; }
.trip-controls button:hover { background: #fff; color: #193645; }
.trip-arrow { font-size: 21px; }
.trip-controls .trip-toggle { width: 36px; margin-left: 8px; font-size: 13px; }
.trip-count { min-width: 46px; font-size: 10px; letter-spacing: .12em; text-align: center; color: #ffffffaa; }
[data-trip-current] { color: #fff; }
.trip-route { display: flex; min-height: 64px; padding: 10px 5%; align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: thin; background: #efede7; color: #243d48; }
.route-label { flex-shrink: 0; margin-right: 8px; font-size: 9px; letter-spacing: .2em; color: #697473; }
.trip-route button { position: relative; flex: 0 0 auto; padding: 12px 0; border: 0; background: transparent; font-size: 10px; font-weight: 600; letter-spacing: .1em; color: #646f70; white-space: nowrap; }
.trip-route button span { margin-right: 7px; font-size: 9px; opacity: .65; }
.trip-route button[aria-current="true"] { color: #163f49; }
.trip-route button[aria-current="true"]::after { position: absolute; bottom: 3px; left: 0; right: 0; height: 2px; background: #376c6a; content: ""; }
.trip-route button:hover { color: #17474e; }
.route-line { flex: 1 1 12px; min-width: 8px; max-width: 35px; height: 1px; background: #aeb7b2; }
.route-end { flex-shrink: 0; margin-left: auto; font-size: 9px; letter-spacing: .13em; color: #697473; }
.categories { margin-top: 18px; }
@media (max-width: 1400px) { .route-end { display: none; } }
@media (min-width: 1800px) { .trip-copy { top: 13%; } }
@media (max-width: 1100px) {
  .trip-destination { top: auto; bottom: 228px; }
  .route-label { display: none; }
  .route-end { display: none; }
  .trip-route { justify-content: flex-start; gap: 16px; }
  .route-line { max-width: 20px; }
}
@media (max-width: 700px) {
  .hero-roadtrip { --car-width: 245px; height: 620px; }
  .hero-roadtrip::after { z-index: -1; background: linear-gradient(90deg, #0b202b85, #0b202b15), linear-gradient(0deg, #07141ce8, transparent 55%); }
  .trip-scene img { object-position: 62% center; }
  .trip-scene--route-sign img { object-position: 83% center; }
  .trip-scene--golden-gate img { object-position: 80% center; }
  .trip-scene--cadillac-ranch img { object-position: 64% center; }
  .trip-scene--seligman img { object-position: 87% center; }
  .trip-scene--roys img { object-position: 87% center; }
  .trip-scene--santa-monica img { object-position: 76% center; }
  .trip-copy { top: 38px; left: 7%; }
  .trip-eyebrow { margin-bottom: 23px; font-size: 9px; letter-spacing: .18em; }
  .trip-copy h1 { font-size: clamp(59px, 13.9vw, 88px); margin-bottom: 18px; }
  .trip-lead { font-size: 13px; line-height: 1.9; margin-bottom: 20px; }
  .mobile-break { display: inline; }
  .trip-destination { left: 7%; right: auto; bottom: 191px; text-align: left; gap: 7px; }
  .trip-place { font-size: 13px; }
  .trip-mood { font-size: 10px; }
  .trip-location-label { font-size: 8px; }
  .trip-car { bottom: 70px; }
  .trip-bottom { left: 7%; right: 7%; bottom: 15px; }
  .trip-tagline { max-width: 115px; font-size: 8px; line-height: 1.8; }
  .trip-controls { gap: 6px; }
  .trip-controls button { width: 36px; height: 40px; }
  .trip-controls .trip-toggle { margin-left: 0; width: 32px; }
  .trip-count { min-width: 43px; font-size: 9px; }
  .trip-route { min-height: 65px; gap: 16px; padding: 9px 16px; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .route-label, .route-line { display: none; }
  .trip-route button { flex: 0 0 auto; min-width: 90px; font-size: 9px; letter-spacing: .035em; white-space: nowrap; }
  .trip-route button span { margin-right: 3px; font-size: 8px; }
  .categories { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .trip-scene { transition: none; }
  .hero-roadtrip.is-enhanced .trip-car { animation: none; transform: translateX(calc(100vw - var(--car-width) - 6vw)); }
  .hero-roadtrip.is-enhanced .trip-car img { animation: none; transform: none; }
  .hero-roadtrip.is-enhanced .trip-dust { display: none; }
}
