/* tour_cinema — the homepage tour replay. Matte and flat: the "3D" is one tilted plane
   and counter-rotated popouts, nothing else. TILT here must match TILT in tour_cinema.js. */

.tc-section { background: #000; padding: 72px 24px 64px; width: 100%; align-self: stretch; overflow-x: clip; }
.tc-inner { max-width: 1200px; margin: 0 auto; }

.tc-kicker { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em; color: #ec691a; margin: 0 0 12px; }
.tc-h2 { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.05; color: #fff; margin: 0 0 10px; }
.tc-sub { font-family: 'Lato', sans-serif; font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55; color: #8892b0; max-width: 560px; margin: 0 0 8px; }

/* the stage */
.tc-mount { position: relative; margin-top: 8px; }
.tc-scene { perspective: 1150px; perspective-origin: 50% 30%; }
.tc-plane { transform-style: preserve-3d; transform: rotateX(26deg) scale(1.12);
  transform-origin: 50% 62%; transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.tc-plane.is-done { transform: rotateX(26deg) scale(1.06); }
.tc-svg { display: block; width: 100%; height: auto; aspect-ratio: 960 / 500; }

.tc-state { fill: #101010; stroke: #262626; stroke-width: 1; }
.tc-state.is-visited { fill: #161616; }

.tc-route { stroke: #ec691a; stroke-width: 2; }
.tc-route-next { stroke: #ec691a; stroke-width: 1.6; opacity: 0; transition: opacity 400ms ease; }
.tc-route-next.is-on { opacity: 0.55; }

.tc-dot { fill: #ec691a; opacity: 0; transform: scale(0.4); transform-box: fill-box;
  transform-origin: center; transition: opacity 220ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.tc-dot.is-on { opacity: 1; transform: scale(1); }
.tc-dot.is-next { fill: none; stroke: #ec691a; stroke-width: 2; }

/* popouts — children of the tilted plane; counter-rotate to stand up off the map */
.tc-pops { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.tc-pop { position: absolute; transform-style: preserve-3d;
  transform: translate(-50%, -100%) rotateX(-26deg); transform-origin: 50% 100%;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transition: opacity 240ms ease; }
.tc-pop.is-up { opacity: 1; }
.tc-pop-riser { order: 2; width: 1.5px; height: 26px; background: #ec691a; opacity: 0.7;
  transform-origin: bottom; transform: scaleY(0); transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.tc-pop.is-up .tc-pop-riser { transform: scaleY(1); }
.tc-pop-card { order: 1; background: #111; border: 1px solid #2a2a2a; padding: 7px 11px 8px;
  display: flex; flex-direction: column; align-items: center; white-space: nowrap;
  transform: translateY(4px); transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1) 60ms; }
.tc-pop.is-up .tc-pop-card { transform: translateY(0); }
.tc-pop-tag { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 9px;
  letter-spacing: 0.16em; color: #ec691a; }
.tc-pop-city { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em; color: #fff; }
.tc-pop-date { font-family: 'Lato', sans-serif; font-size: 10px; letter-spacing: 0.08em; color: #8892b0; }
.tc-pop.is-next .tc-pop-card { border-color: #ec691a; }

/* pins as links (desktop, post-run) */
.tc-svg .tc-stop-link { pointer-events: none; }
.tc-svg.is-interactive .tc-stop-link { pointer-events: auto; cursor: pointer; }
.tc-svg.is-interactive .tc-stop-link .tc-dot { transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.tc-svg.is-interactive .tc-stop-link:hover .tc-dot,
.tc-svg.is-interactive .tc-stop-link:focus-visible .tc-dot { transform: scale(1.45); }
.tc-svg.is-interactive .tc-stop-link:focus-visible { outline: none; }
.tc-svg.is-interactive .tc-stop-link:focus-visible .tc-dot { stroke: #fff; stroke-width: 1.5; }

/* replay — appears only after the one automatic run */
.tc-replay { position: absolute; right: 0; bottom: 6px; background: #111; border: 1px solid #374151;
  color: #d1d5db; font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.08em; padding: 9px 16px; cursor: pointer; border-radius: 2px; }
.tc-replay:hover { border-color: #ec691a; color: #ec691a; }

/* mobile: a still map — pins only, nothing to touch. Flat, light route, no cards:
   at 340px there is no narration, so the pins are the content and the line is texture. */
.is-static .tc-svg, .is-static .tc-pops { pointer-events: none; }
.is-static .tc-plane, .is-static .tc-plane.is-done { transform: none; }
.is-static .tc-pop { display: none; }
.is-static .tc-route { opacity: 0.4; stroke-width: 1.5; }
.is-static .tc-route-next.is-on { opacity: 0.3; }

/* HUD — flat over the scene, never tilted */
.tc-hud { position: absolute; left: 0; bottom: 6px; pointer-events: none; }
.tc-hud-stop { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.16em; color: #ec691a; margin: 0 0 2px; }
.tc-hud-city { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 30px); line-height: 1; color: #fff; margin: 0; }
.tc-hud-date { font-family: 'Lato', sans-serif; font-size: 12px; letter-spacing: 0.1em;
  color: #8892b0; margin: 3px 0 0; }

.tc-mount { container-type: inline-size; }
.tc-cta-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.tc-link { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: 14px; letter-spacing: 0.06em; color: #ec691a; text-decoration: none;
  border-bottom: 1px solid rgba(236, 105, 26, 0.35); padding-bottom: 2px; }
.tc-link:hover { border-bottom-color: #ec691a; }

@media (max-width: 768px) {
  .tc-section { padding: 56px 16px 48px; }
  .tc-scene { perspective: 800px; }
  .tc-pop-city { font-size: 12px; }
  .tc-pop-date { display: none; }        /* cards stay readable at phone size */
  .tc-pop-riser { height: 18px; }
  .tc-hud { position: static; margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-plane, .tc-pop-riser, .tc-pop-card, .tc-dot { transition: none; }
}
