/* Experiment 006 — The Road. Isolated from the menu and asada sections. */
.street-journey { height: 100dvh; position: relative; }

.street-journey .hero {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}

.street-road {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  color: #000;
  opacity: 0;
  pointer-events: none;
  transform-origin: center 26%;
}

.street-title {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 1em;
}

.street-word {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform, opacity;
}

/* Without scripting, show the original word and one-screen layout. */
.street-word:first-child { opacity: 1; }

/* Enabled only after the script has initialized successfully. */
html.street-road-ready .street-journey { height: 400dvh; }

@media (prefers-reduced-motion: reduce) {
  .street-journey {
    height: 100dvh !important;
  }

  .street-journey .hero {
    position: relative;
  }

  .street-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.4rem, 1.4vh, 1rem);
    height: auto;
    transform: none;
  }

  .street-word {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    font-size: clamp(1.4rem, 5vw, 3.25rem) !important;
    line-height: 1.2;
    white-space: nowrap;
    will-change: auto;
  }

  .street-road {
    display: none !important;
  }
}

/* Experiment 006: Hide road, preserve word animation */
.street-road {
  display: none !important;
}
