/* vars: --c-accent,--c-accent2,--c-bg,--c-ink,--c-ink-faint,--c-ink-ghost,--c-ink-mid,--c-surface,--nav-h */

/* Road scene (fixed background) */
.road-scene {
  position: fixed; inset: 0; z-index: 1;
  overflow: hidden; background: #080706; pointer-events: none;
  transition: opacity .5s;
}
.road-scene__sky {
  position: absolute; top: 0; left: 0; right: 0; height: 42%;
  background: linear-gradient(to bottom, #060504 0%, #0A0908 60%, #111009 100%);
}
.road-scene__buildings {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  display: flex; align-items: flex-end; opacity: 0.35;
}
.road-scene__bldg { flex: 1; margin: 0 1px; }
.road-scene__canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

/* Scroll wrapper */
.home-scroll { position: relative; z-index: 10; padding-top: var(--nav-h); }
.home-road-zone { position: relative; z-index: 2; }
.home-bottom { position: relative; z-index: 10; background: var(--c-bg); }

/* Progress dots */
.dots {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 800; display: flex; flex-direction: column; gap: 12px;
}
.dots__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-ink-ghost); border: 1px solid var(--c-ink-faint);
  padding: 0; cursor: pointer;
  transition: background .3s, transform .3s, border-color .3s;
}
.dots__dot:hover { border-color: var(--c-accent); }
.dots__dot--active {
  background: var(--c-accent); border-color: var(--c-accent); transform: scale(1.4);
}
@media (max-width: 768px) {
  .dots { right: 10px; }
  .dots__dot { width: 6px; height: 6px; }
}

/* Roadside break */
.break { min-height: 80vh; position: relative; }
.break__sign {
  position: fixed; top: 50%; left: 50%; z-index: 20;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  max-width: 480px; padding: 0 clamp(16px, 4vw, 60px); text-align: left;
  opacity: 0; transform: translate(-50%,-50%) scale(.2);
  transition: opacity .55s ease, transform .6s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.break.reveal--on .break__sign {
  opacity: 1; transform: translate(-50%,-50%) scale(1); pointer-events: auto;
}
@media (max-width: 768px) {
  .break { min-height: auto; padding: 60px 20px; }
  .break__sign { position: static; transform: scale(.2); opacity: 0; }
  .break.reveal--on .break__sign { transform: scale(1); opacity: 1; }
}
.break__icon {
  flex-shrink: 0;
  width: clamp(56px, 8vw, 80px); height: clamp(56px, 8vw, 80px);
  background: var(--c-surface); border: 2px solid var(--c-ink-ghost);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: clamp(28px, 4vw, 40px); position: relative;
}
.break__icon::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--c-accent2); opacity: .4;
}
.break__icon--flash::before {
  content: ''; position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  animation: break-flash 3s ease-in-out infinite;
}
@keyframes break-flash { 0%,85%,100% { opacity: 0; } 90% { opacity: 1; } }
.break__text h3 {
  font-family: var(--f-serif); font-size: clamp(20px, 3vw, 32px);
  line-height: .9; text-transform: uppercase; margin-bottom: 6px; color: var(--c-ink);
}
.break__text h3 em { color: var(--c-accent); font-style: normal; }
.break__text p { font-size: clamp(15px, 1.4vw, 17px); color: var(--c-ink-mid); line-height: 1.6; letter-spacing: .5px; }

/* Tow truck (sticky vehicle) */
.home-vehicle { position: sticky; bottom: 0; height: 0; pointer-events: none; z-index: 2; }
.tow {
  position: absolute; z-index: auto; bottom: 0; left: 50%;
  width: clamp(160px, 20vw, 280px); transform: translateX(-50%);
  transition: transform .8s cubic-bezier(.25,.46,.45,.94), opacity .5s ease;
  pointer-events: none;
}
@media (max-width: 1024px) { .tow { width: clamp(140px, 34vw, 200px); } }
.tow--left  { transform: translateX(calc(-50% - 14vw)) rotate(-2deg); }
.tow--right { transform: translateX(calc(-50% + 14vw)) rotate(2deg); }
.tow--center { transform: translateX(-50%) rotate(0deg); }
.tow__svg { width: 100%; display: block; }
.tow__shadow {
  position: absolute; bottom: -10px; left: 10%; right: 10%; height: 20px;
  background: radial-gradient(ellipse, rgba(0,0,0,.5) 0%, transparent 70%); border-radius: 50%;
}
.tow__glow {
  position: absolute; bottom: -30px; left: 20%; right: 20%; height: 40px;
  background: radial-gradient(ellipse, rgba(232,32,32,.15) 0%, transparent 70%);
  border-radius: 50%; animation: tow-brake 2s ease-in-out infinite;
}
@keyframes tow-brake { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
