/* Pan: shared pieces for the customer-transition prototypes.
   .pan-side is a stand-in for the top of a customer page (its drawing and its name),
   built from that page itself, so the transition can land on something that matches. */
.pan-side {
  position: fixed; inset: 0; z-index: 50; overflow: hidden; isolation: isolate;
  background: #0B1220; color: #FBFBFA; pointer-events: none;
}
.pan-side .ls-scene {
  position: absolute; left: 50%; top: 50%;
  width: max(100%, 150dvh, 930px); aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%); z-index: -1;
}
.pan-side .ls-scene svg { display: block; width: 100%; height: 100%; }
.pan-side::before, .pan-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.pan-side::before { background: radial-gradient(ellipse 62% 44% at 50% 22%, rgba(11, 18, 32, 0.62), transparent 72%); }
.pan-side::after { background: linear-gradient(180deg, rgba(11, 18, 32, 0.35) 0%, transparent 16%, transparent 80%, rgba(11, 18, 32, 0.85) 100%); }
.pan-side .ls-intro {
  position: absolute; left: 0; right: 0; top: clamp(84px, 11vh, 130px);
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--px, 24px);
}
.pan-side h1 {
  font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em;
  font-size: clamp(28px, min(3vw, 5vh), 46px); text-shadow: 0 2px 30px rgba(11, 18, 32, 0.45);
}
.pan-side h1 .ln { display: inline; white-space: nowrap; }
.pan-side h1 .ln:first-child::after { content: " "; }
.pan-side .case { margin-top: clamp(8px, 1.4vh, 14px); max-width: 60em; display: grid; gap: 2px; font-size: clamp(13.5px, min(1.1vw, 1.9vh), 16px); line-height: 1.45; color: #C9D1DE; text-wrap: balance; text-shadow: 0 1px 2px rgba(11, 18, 32, 0.6), 0 1px 18px rgba(11, 18, 32, 0.8); }
.pan-side .case p { margin: 0; }
.pan-side .case b { font-family: var(--display); font-weight: 600; color: #FBFBFA; margin-right: 0.35em; }
.pan-side .case b.now { color: #4ADE80; }
.pan-side .where { margin: clamp(10px, 1.6vh, 16px) 0 0; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: #C9D1DE; background: rgba(11, 18, 32, 0.6); border: 1px solid rgba(201, 209, 222, 0.16); }
.pan-side .where .pulse { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 8px #4ADE80; }
@media (min-width: 900px) {
  .pan-side.left .ls-intro { right: auto; width: min(54%, 820px); align-items: flex-start; text-align: left; padding-left: max(var(--px, 24px), env(safe-area-inset-left)); padding-right: 0; }
}
/* No drawing yet (the page could not be read in time): a plain navy panel with the name. */
.pan-side.bare { background: radial-gradient(ellipse 80% 60% at 50% 70%, #16213a, #0B1220 70%); }
@media (max-width: 899px) {
  .pan-side .ls-scene { top: auto; bottom: 58px; transform: translateX(-50%); width: 140%; }
  .pan-side .ls-scene svg { -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }
  .pan-side .ls-intro { top: max(70px, calc(env(safe-area-inset-top) + 54px)); }
  .pan-side h1 { font-size: min(32px, 7vw); text-wrap: balance; }
  .pan-side h1 .ln { white-space: normal; }
  .pan-side .where { font-size: 11px; text-align: center; text-wrap: balance; }
  .pan-side .case { font-size: 13px; line-height: 1.4; gap: 3px; align-self: stretch; text-align: left; }
}
/* Reduced motion: a short fade to navy, then the page. */
.pan-fade { position: fixed; inset: 0; z-index: 60; background: #0B1220; pointer-events: none; }

/* Picking a customer: the camera pans sideways off the city, across a stretch of night, to the customer's place. */
.pan-far { position: fixed; top: 0; left: 0; height: 100dvh; z-index: 50; display: flex; pointer-events: none; will-change: transform; }
.pan-gap { position: relative; flex: none; height: 100%;
  background: linear-gradient(180deg, #1a2238 0%, #0d1526 48%, #0B1220 62%, #080d18 100%); }
.pan-gap::before { content: ""; position: absolute; left: 0; right: 0; top: 61%; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(224, 97, 26, 0.55) 0 6px, transparent 6px 16px); }
.pan-gap::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 59%, rgba(245, 164, 111, 0.5) 0 1.5px, transparent 2.5px),
              radial-gradient(circle at 72% 60%, rgba(201, 209, 222, 0.35) 0 1px, transparent 2px); }
.pan-far .pan-side { position: relative; inset: auto; flex: none; width: 100vw; height: 100%; }

/* Going back from a customer page: the city, placed as on the homepage, slides in from the left. */
.pan-city { position: relative; flex: none; width: 100vw; height: 100%; overflow: hidden; background: #0B1220; }
.pan-city .pc-scene { position: absolute; left: 50%; top: 50%; width: max(100%, 150dvh, 930px); aspect-ratio: 3 / 2; transform: translate(-50%, -50%); }
.pan-city picture, .pan-city img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .pan-city { background: #05143B; }
  .pan-city .pc-scene { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; aspect-ratio: 2 / 3; }
  .pan-city img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%); mask-image: linear-gradient(180deg, transparent, #000 14%); }
}
