/* =========================================================================
   misawq NYC Twilight Gouache City Ride
   Sticky panoramic drive + gouache yellow NYC taxi + rooftop marquee billboard
   Bridge section between Cover Spotlight (#spotlight) and Red Carpet (#carpet)
   ========================================================================= */

.city-ride-sec {
  position: relative;
  z-index: 5;
  width: 100%;
  background: linear-gradient(180deg, #070408 0%, #040407 100%);
  /* Keep visible so sticky stage works reliably */
  overflow: visible;
}

.city-ride__track {
  position: relative;
  width: 100%;
  height: var(--city-track-height, 340vh);
}

.city-ride__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #06070d;
  isolation: isolate;
}

.city-ride__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Wide moving city canvas (panorama + physically anchored rooftop billboard) */
.city-ride__world {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.city-ride__panorama {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.city-ride-sec.is-offscreen .city-bulb {
  animation-play-state: paused !important;
}

/* =========================================================================
   GRAND ROOFTOP MARQUEE BILLBOARD ("Let's Start")
   Physically mounted on dark-iron steel truss legs atop the 3 brownstones
   (brownstone roofline sits at y = 44.8% -> bottom = 55.2% of panorama)
   ========================================================================= */
.city-billboard {
  position: absolute;
  bottom: 54.4%;
  left: 82.3%;
  transform: translateX(-50%) scale(0.97);
  transform-origin: 50% 100%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: clamp(320px, 34vw, 520px);
  text-decoration: none;
  color: #1f1712;
  cursor: pointer;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.city-billboard.is-lit {
  transform: translateX(-50%) scale(1);
}

.city-billboard:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.022);
}

.city-billboard:focus-visible {
  outline: 2px solid #ffd95a;
  outline-offset: 8px;
  border-radius: 6px;
}

/* Main illuminated billboard face */
.city-billboard__board {
  position: relative;
  width: 100%;
  min-height: clamp(164px, 21.5vh, 232px);
  padding: clamp(24px, 2.8vh, 34px) clamp(30px, 3.2vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Warm cream-gold gouache signboard face (matching glowing NYC windows & yellow cab) */
.city-billboard__paper {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 5px;
  background:
    radial-gradient(ellipse 84% 78% at 50% 42%, #efe0bb 0%, #dfc996 72%, #cfb376 100%);
  border: 3px solid #2a211b;
  box-shadow:
    inset 0 0 0 2px rgba(92, 68, 38, 0.42),
    inset 0 0 28px rgba(132, 92, 34, 0.28),
    0 6px 20px rgba(8, 12, 26, 0.55);
  transition: background 0.7s ease, box-shadow 0.7s ease, border-color 0.7s ease;
}

.city-billboard.is-lit .city-billboard__paper {
  background:
    radial-gradient(ellipse 86% 80% at 50% 46%, #fffdf2 0%, #fcecc4 56%, #f3d589 100%);
  border-color: #3a2b1d;
  box-shadow:
    inset 0 0 0 2px rgba(212, 152, 46, 0.44),
    inset 0 0 42px rgba(255, 206, 72, 0.46),
    0 0 38px rgba(255, 212, 84, 0.52),
    0 0 88px rgba(255, 196, 66, 0.28);
}

/* Subtle vintage inner brass rule (no live SVG feTurbulence filter) */
.city-billboard__paper::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(74, 52, 28, 0.24);
  border-radius: 2px;
  pointer-events: none;
}

/* Painted dark-iron NYC rooftop steel truss legs resting directly on the brownstone cornice */
.city-billboard__truss {
  position: relative;
  z-index: 1;
  width: 82%;
  height: clamp(22px, 3.2vh, 36px);
  margin-top: -2px;
  display: block;
  pointer-events: none;
}

/* Perimeter ring of warm golden marquee bulbs */
.city-billboard__bulbs {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.city-bulb {
  position: absolute;
  width: clamp(13px, 1.25vw, 19px);
  height: clamp(13px, 1.25vw, 19px);
  margin-left: calc(clamp(13px, 1.25vw, 19px) / -2);
  margin-top: calc(clamp(13px, 1.25vw, 19px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #f2d98a 0%, #c89d3e 62%, #8c6620 100%);
  border: 1.5px solid rgba(46, 34, 18, 0.72);
  opacity: 0.78;
  transform: scale(0.88);
  box-shadow: 0 1px 4px rgba(10, 12, 22, 0.45);
  transition:
    opacity 0.36s ease,
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.48s ease,
    background 0.48s ease;
  transition-delay: var(--bulb-delay, 0ms);
}

.city-billboard.is-lit .city-bulb {
  opacity: 1;
  transform: scale(1.06);
  background: radial-gradient(circle at 36% 32%, #ffffff 0%, #fff8c4 30%, #ffe055 68%, #f0ad1a 100%);
  border-color: rgba(164, 108, 16, 0.65);
  box-shadow:
    0 0 8px rgba(255, 240, 130, 0.92),
    0 0 18px rgba(255, 204, 54, 0.72);
  animation: city-bulb-twinkle 2.8s ease-in-out infinite;
  animation-delay: var(--bulb-twinkle, 0ms);
}

@keyframes city-bulb-twinkle {
  0%, 100% { opacity: 0.82; }
  50%      { opacity: 1; }
}

/* Editorial lettering inside the billboard */
.city-billboard__content {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.city-billboard__text {
  margin: 0;
  font-family: var(--chalk-font, "Caveat", cursive);
  font-weight: 700;
  font-size: clamp(44px, 4.9vw, 76px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  color: #231a14;
  text-shadow: 0 1px 0 rgba(255, 252, 234, 0.8);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s ease;
}

.city-billboard__text .cb-line-1 {
  display: block;
  transform: translateX(-8%) rotate(-2.4deg);
}

.city-billboard__text .cb-line-2 {
  display: block;
  transform: translateX(12%) rotate(-1.2deg);
  margin-top: 2px;
}

.city-billboard.is-lit .city-billboard__text {
  color: #19120d;
  transform: scale(1.03);
}

.city-billboard__cta {
  margin-top: clamp(10px, 1.3vh, 16px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: clamp(9.5px, 0.82vw, 11.5px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(42, 31, 20, 0.86);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(46, 33, 20, 0.32);
  background: rgba(255, 250, 228, 0.64);
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.5s ease 0.22s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.22s,
    background 0.25s ease,
    color 0.25s ease;
}

.city-billboard.is-lit .city-billboard__cta {
  opacity: 1;
  transform: translateY(0);
}

.city-billboard:hover .city-billboard__cta {
  background: #1f1712;
  color: #ffeaa0;
  border-color: #1f1712;
}

/* =========================================================================
   YELLOW GOUACHE NYC TAXI LAYER (glides on the twilight asphalt street)
   ========================================================================= */
.city-taxi-wrap {
  position: absolute;
  left: 0;
  /* Tires rest cleanly on the dark charcoal asphalt strip below the sidewalk */
  bottom: 1.8%;
  z-index: 8;
  width: clamp(250px, 34vw, 495px);
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.city-taxi__shadow {
  position: absolute;
  left: 5%;
  right: 4%;
  bottom: 1%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(5, 8, 16, 0.74) 0%, rgba(5, 8, 16, 0.30) 52%, transparent 78%);
  pointer-events: none;
}

.city-taxi__body {
  position: relative;
  width: 100%;
  transform-origin: 50% 88%;
  will-change: transform;
}

.city-taxi__img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* Warm golden twilight headlight beam sweeping ahead on the road */
.city-taxi__headlight {
  position: absolute;
  right: -30%;
  bottom: 22%;
  width: 36%;
  height: 36%;
  pointer-events: none;
  background: radial-gradient(ellipse 95% 44% at 0% 52%, rgba(255, 232, 134, 0.62) 0%, rgba(255, 212, 92, 0.24) 48%, transparent 80%);
  mix-blend-mode: screen;
  opacity: 0.58;
  transition: opacity 0.6s ease;
}

.city-taxi-wrap.is-arrived .city-taxi__headlight {
  opacity: 0.96;
}

/* Subtle warm glow around the taxi roof medallion light */
.city-taxi__roofglow {
  position: absolute;
  left: 43%;
  top: -4%;
  width: 11%;
  height: 22%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 236, 146, 0.72) 0%, rgba(255, 210, 88, 0.22) 48%, transparent 74%);
  mix-blend-mode: screen;
}

/* =========================================================================
   ATMOSPHERIC EDGE FADES (smooth nocturnal blend into #spotlight & #carpet)
   ========================================================================= */
.city-ride__fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(72px, 13vh, 136px);
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #070408 0%,
    rgba(7, 5, 11, 0.76) 28%,
    rgba(10, 14, 28, 0.28) 64%,
    rgba(10, 14, 28, 0) 100%
  );
}

.city-ride__fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(38px, 7.5vh, 78px);
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    #040407 0%,
    rgba(4, 4, 7, 0.72) 24%,
    rgba(4, 4, 7, 0.14) 64%,
    rgba(4, 4, 7, 0) 100%
  );
}

.city-ride__vignette {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 8, 16, 0.46) 0%, transparent 5.5%, transparent 94.5%, rgba(6, 8, 16, 0.46) 100%);
}

/* =========================================================================
   MINIMAL EDITORIAL PROGRESS HUD (bottom-right on desktop, centered on mobile)
   ========================================================================= */
.city-ride__hud {
  position: absolute;
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(14px, 2.2vh, 24px);
  z-index: 14;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.88);
  border: 1px solid rgba(255, 232, 166, 0.18);
  color: rgba(250, 245, 246, 0.86);
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.city-ride__hud-bar {
  position: relative;
  width: clamp(68px, 10vw, 126px);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.city-ride__hud-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #f0b83a 0%, #ffe686 65%, #ebc1c2 100%);
  box-shadow: 0 0 8px rgba(255, 224, 96, 0.85);
}

.city-ride__hud-label {
  white-space: nowrap;
}

.city-ride__hud-end {
  color: var(--chalk-bright, #ffe2e3);
  white-space: nowrap;
}

/* =========================================================================
   RESPONSIVE: TABLET & MOBILE PORTRAIT
   ========================================================================= */
@media (max-width: 900px) and (orientation: portrait), (max-width: 640px) {
  .city-ride__stage {
    min-height: 100svh;
    background: #05050a;
    justify-content: center;
  }

  .city-ride__viewport {
    height: clamp(430px, 64svh, 610px);
    box-shadow: 0 0 64px rgba(0, 0, 0, 0.85);
  }

  .city-ride__fade-top {
    height: clamp(40px, 8%, 68px);
    background: linear-gradient(180deg, #05050a 0%, rgba(5, 5, 10, 0.52) 34%, transparent 100%);
  }

  .city-ride__fade-bottom {
    height: clamp(28px, 6%, 52px);
    background: linear-gradient(0deg, #05050a 0%, rgba(5, 5, 10, 0.48) 34%, transparent 100%);
  }

  .city-taxi-wrap {
    width: clamp(210px, 58vw, 290px);
    bottom: 1.4%;
  }

  .city-billboard {
    bottom: 54.4%;
    width: clamp(248px, 74vw, 336px);
  }

  .city-billboard__board {
    min-height: clamp(120px, 21vh, 162px);
    padding: 18px 22px;
  }

  .city-billboard__truss {
    height: 18px;
  }

  .city-billboard__text {
    font-size: clamp(38px, 10.5vw, 52px);
  }

  .city-bulb {
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    margin-top: -5.5px;
  }

  .city-ride__hud {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: clamp(22px, 4.6vh, 42px);
    font-size: 9px;
    gap: 8px;
    padding: 6px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .city-billboard.is-lit .city-bulb {
    animation: none;
  }
}
