/* ==========================================================================
   Home — the night drive, then the arrival
   ========================================================================== */

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* On the home page the header floats over the scene so the drive can fill the
   whole screen. It's hidden while driving and fades in when you arrive. */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}
.is-driving .site-header {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* ---------- The drive ---------- */

.drive {
  position: relative;
  height: 1100vh;
  background: #0A0D14;
}
.no-js .drive,
.start-arrived .drive { display: none; }

.drive__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: #fff;
}
.drive__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.drive__horizon {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(30vw, 22rem);
  opacity: 0.45;
  pointer-events: none;
  transform-origin: 50% 100%;
}
.drive__horizon img {
  display: block;
  width: 100%;
  height: auto;
  filter: url(#logo-glow) drop-shadow(0 0 8px rgba(255, 214, 160, 0.75)) drop-shadow(0 0 28px rgba(255, 160, 80, 0.45));
}

/* ---------- Green exit signs ---------- */

.exits { position: absolute; inset: 0; pointer-events: none; }

.exit-sign {
  position: absolute;
  top: 0;
  left: 0;
  width: 20rem;
  padding: 1.15rem 1.3rem 1rem;
  border-radius: 0.6rem;
  background: #0B5E3A;
  color: #FFFFFF;
  font-family: "Overpass", "Highway Gothic", "Arial Narrow", sans-serif;
  text-decoration: none;
  box-shadow: inset 0 0 0 0.3rem #0B5E3A, inset 0 0 0 0.5rem #FFFFFF, 0 10px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform-origin: 50% 0;
  will-change: transform, opacity;
  transition: box-shadow 0.2s ease;
}
.exit-sign:hover { color: #fff; }
.exit-sign:hover,
.exit-sign:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 0.3rem #0B5E3A, inset 0 0 0 0.5rem #FFFFFF, 0 0 0 0.4rem var(--accent), 0 0 30px rgba(200, 16, 46, 0.8);
}
.exit-sign__tab {
  position: absolute;
  top: -2.05rem;
  right: 1.1rem;
  padding: 0.4rem 0.75rem 0.25rem;
  border-radius: 0.45rem 0.45rem 0 0;
  background: #0B5E3A;
  box-shadow: inset 0 0 0 0.2rem #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.exit-sign__name {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.exit-sign__arrow {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

/* ---------- The car ---------- */

.cockpit {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(150px, 34vh, 330px);
  pointer-events: none;
}

.radio {
  position: absolute;
  right: clamp(0.75rem, 7vw, 7rem);
  bottom: clamp(0.6rem, 2.4vh, 1.5rem);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: min(22rem, 64vw);
  padding: 0.5rem 0.8rem 0.45rem 0.55rem;
  border: 2px solid #A9A9A9;
  border-radius: 0.6rem;
  background: linear-gradient(180deg, #2B1D15, #110B08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 16px rgba(0, 0, 0, 0.5);
  color: #F6E9CC;
  text-decoration: none;
  transition: border-color 0.2s;
}
.radio:hover { border-color: var(--accent); color: #F6E9CC; }
.radio:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.radio__dial {
  position: relative;
  flex: none;
  width: 4.25rem;
  height: 1.7rem;
  overflow: hidden;
  border-radius: 0.25rem;
  background:
    repeating-linear-gradient(90deg, rgba(60, 40, 20, 0.6) 0 1px, transparent 1px 0.45rem),
    linear-gradient(180deg, #FBE7B9, #E9C98A);
  box-shadow: inset 0 0 6px rgba(120, 70, 10, 0.5), 0 0 10px rgba(245, 185, 113, 0.45);
}
.radio__needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40%;
  width: 2px;
  background: var(--accent);
  animation: radio-tune 6s ease-in-out infinite;
}
@keyframes radio-tune {
  0%, 100% { left: 38%; }
  50%      { left: 46%; }
}
.radio__art {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.25rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.5);
}
@media (max-width: 30em) { .radio__dial { display: none; } }
.radio__text { display: flex; flex-direction: column; min-width: 0; }
.radio__label {
  color: #FF6B7D;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.radio__title {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.drive__prompt {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(150px, 34vh, 330px) * 0.62);
  z-index: 1100;
  color: #F4EDE2;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vh, 1.35rem);
  letter-spacing: 0.24em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}
.drive__prompt span { display: inline-block; margin-left: 0.35em; animation: prompt-nudge 2s ease-in-out infinite; }
@keyframes prompt-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(0.3em); }
}

.drive__daylight {
  position: absolute;
  inset: 0;
  z-index: 1200;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
}

.skip-drive { display: none; }
.is-driving .skip-drive {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1300;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.6rem 1rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 13, 20, 0.55);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.is-driving .skip-drive:hover { border-color: var(--accent); background: var(--accent); }
.skip-drive:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Arrival ---------- */

.arrival {
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem);
  background: #FFFFFF;
}
.arrival .index { margin-top: clamp(3rem, 7vw, 5rem); }

/* "CHASIN' / AMENS" stacked, cut from the logo artwork.
   Logo file is 1826×310; "CHASIN'" spans x 0–900, "AMENS" spans x 954–1816. */
.stack-title { max-width: min(100%, 40rem); margin: 0; line-height: 0; outline: none; }
.stack-title__line { display: block; overflow: hidden; }
.stack-title__line img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  mix-blend-mode: multiply;
}
.stack-title__line--one { width: 100%; aspect-ratio: 900 / 310; }
.stack-title__line--two { width: calc(100% * 862 / 900); aspect-ratio: 862 / 310; margin-top: 0.6%; }
.stack-title__line--two img { transform: translateX(calc(-954 / 1826 * 100%)); filter: url(#logo-red); }

.arrival__line {
  max-width: 34rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}
.arrival__again {
  margin-top: 1.25rem;
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.arrival__again:hover { color: var(--accent); }
.is-still .arrival__again { display: none; }

/* ---------- Phones ---------- */

@media (max-width: 40em) {
  .drive { height: 950vh; }
  .exit-sign { width: 17rem; }
  .exit-sign__name { font-size: 1.7rem; }
  .drive__horizon { width: 52vw; }
}

@media (prefers-reduced-motion: reduce) {
  .radio__needle,
  .drive__prompt span { animation: none; }
}
