@media (max-aspect-ratio: 1/1) {
  #mediaStage[data-clip="V01"] .scene-visual > video,
  #mediaStage[data-clip="V01"] .scene-visual > img,
  #mediaStage[data-clip="V01_MEET"] .scene-visual > video,
  #mediaStage[data-clip="V01_MEET"] .scene-visual > img,
  body[data-chapter="0"] #sceneBody .scene-visual > img,
  body[data-chapter="0"] #sceneBody .scene-visual > video,
  #mediaStage[data-clip="V02"] .scene-visual > video,
  #mediaStage[data-clip="V02"] .scene-visual > img,
  #mediaStage[data-clip="V03"] .scene-visual > video,
  #mediaStage[data-clip="V03"] .scene-visual > img,
  #mediaStage[data-clip="V04"] .scene-visual > video,
  #mediaStage[data-clip="V04"] .scene-visual > img { object-fit: contain; }
}

.early-still .early-pan { padding: 0; overflow: hidden; pointer-events: none; }
.early-still .early-picture { width: 100% !important; height: 100% !important; }
.early-still .early-picture > img { object-fit: contain; }
.early-still::before { display: none; }
.bridge-film-sounds .early-pan {
  inset: auto;
  left: 50%;
  top: 50%;
  width: min(100%, calc(100dvh * 960 / 544));
  height: auto;
  aspect-ratio: 960 / 544;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.bridge-film-sounds .early-picture { overflow: hidden; }
.bridge-film-sounds .early-picture > img {
  object-fit: contain;
  transform-origin: var(--sound-focus, 50% 50%);
  transition: transform .65s ease-in-out;
}
.bridge-film-sounds.is-listening .early-picture > img { transform: scale(1.62); }
.bridge-film-sound-hotspots { position: absolute; inset: 0; pointer-events: none; }
.bridge-film-sound-hotspots .early-pin { pointer-events: auto; }
.bridge-film-sound-options { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
@media (prefers-reduced-motion: reduce) {
  .bridge-film-sounds .early-picture > img { transition: none; }
  .bridge-film-sounds.is-listening .early-picture > img { transform: none; }
}
.early-model .early-pan { padding: 0; overflow: hidden; cursor: default; }
.early-model .early-picture { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.early-model .early-picture > img { object-fit: cover; }
.early-model::before { display: none; }
.early-model > .early-pan { z-index: 1; }
.early-model > .scene-idle { z-index: 0; pointer-events: none; }
.early-model.idle-ready .early-picture > img { opacity: 0; }
.bridge-focus-layer { position: absolute; inset: 0; z-index: 20; }
body.bridge-looking .experience-heading { opacity: 0; }
@media (max-aspect-ratio: 1/1) {
  #mediaStage[data-continuous="true"]:not([data-clip="V01"]) .scene-visual > img,
  #mediaStage[data-continuous="true"]:not([data-clip="V01"]) .scene-visual > video,
  #mediaStage[data-clip="V04"] .scene-visual > img,
  #mediaStage[data-clip="V04"] .scene-visual > video {
    object-fit: cover; object-position: var(--bridge-focus-x, 50%) 50%;
  }
}
@media (max-aspect-ratio: 1/1) {
  .early-model .early-picture > img, .early-model > video,
  #mediaStage[data-clip="V05"] .scene-visual > img,
  #mediaStage[data-clip="V05"] .scene-visual > video { object-position: var(--bridge-focus-x, 50%) 50%; }
}
@media (max-aspect-ratio: 1/1) {
  #mediaStage[data-clip="V01_DESK"] .scene-visual > :is(img,video) { object-fit: contain; }
  .desk-hotspot { inset: 42% 12% 43%; }
}

.early-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #171b17;
}
.early-visual::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--scene-image) center / cover;
  filter: blur(12px) brightness(.56);
  pointer-events: none;
}
.early-pan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 92px 0 var(--pan-bottom, 280px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  cursor: grab;
}
.early-pan::-webkit-scrollbar { display: none; }
.early-pan.is-dragging { cursor: grabbing; user-select: none; }
.early-full-scroll { --scene-image: none !important; background: #1f211a; }
.early-full-scroll .early-pan { padding-top: max(92px, 23dvh); }
.early-picture { position: relative; line-height: 0; flex: none; }
.early-picture > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}
.early-zones { position: absolute; inset: 0; width: 100%; height: 100%; }
.early-zone {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2px;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
  transition: fill .2s ease, stroke .2s ease;
}
.early-zone:hover, .early-zone:focus-visible, .early-zone.early-guided {
  fill: #f9df9e15;
  stroke: #fbe1a7b8;
  stroke-width: 1px;
}
.early-zone:focus { outline: none; stroke: #fff1bf; stroke-width: 3px; }
.early-zone.seal-hit { fill: transparent; stroke: none; }
.seal-hit[role="img"] { pointer-events: none; }
.seal-cue {
  opacity: 0;
  fill: none;
  stroke: #fff0bc;
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px #402c20);
  pointer-events: none;
}
.seal-hit:is(:hover, :focus-visible, .early-guided) + .seal-cue { opacity: 1; }
.early-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: .65em;
  min-height: 44px;
  padding: .6em .7em;
  border: 0;
  color: #fff7de;
  background: radial-gradient(ellipse, #161b17a6, #171c1700 75%);
  text-shadow: 0 1px 5px #000, 0 0 12px #000;
  font: 500 .95rem/1.3 var(--serif, serif);
  letter-spacing: .1em;
  white-space: nowrap;
  cursor: pointer;
}
.early-pin::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #ffe6b0;
  box-shadow: 0 0 0 5px #f3ddab24, 0 0 16px #ffe6b0a0;
}
.early-pin:hover { color: #fff; }
.early-pin:focus-visible, .early-detail:focus-visible, .early-card button:focus-visible {
  outline: 2px solid #f9d79b;
  outline-offset: 4px;
}
.early-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .9rem;
  margin: .45rem 0 .15rem;
}
.early-count {
  color: #e3d2b6;
  font: 400 .8rem/1.6 var(--sans, sans-serif);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.early-detail {
  padding: .3rem .15rem;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #f1e6d2;
  background: transparent;
  font: 400 .9rem/1.5 var(--serif, serif);
  cursor: pointer;
  text-shadow: 0 1px 6px #0009;
}
.early-detail:hover { color: #fff; border-bottom-color: #e7c58b; }
.early-detail.early-seen { color: #d1bf98; }
.early-feedback:empty { display: none; }
.early-card {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #f7ead1;
  background: #161b18;
  overflow: hidden;
}
.early-card[open] { display: flex; align-items: center; justify-content: center; }
.early-card::backdrop { background: #10150fdf; }
.early-card-loading, .early-card-loading::backdrop { background: transparent; }
.early-card-loading::before, .early-card-loading > img { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .early-card, .early-card::backdrop { transition: background-color .24s ease-out; }
  .early-card::before, .early-card > img { transition: opacity .24s ease-out; }
}
.early-card::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--card-image) center / cover;
  filter: blur(16px) brightness(.35);
  pointer-events: none;
}
.early-card > img {
  position: relative;
  display: block;
  width: min(92vw, 1350px);
  height: calc(100dvh - 205px);
  margin-bottom: 125px;
  object-fit: contain;
  filter: drop-shadow(0 10px 35px #0006);
}
.early-card-body {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 80px 5vw max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, #101510fa, #101510c7 60%, transparent);
  text-align: center;
}
.early-card-body h2 { margin: 0 0 .45rem; font: 500 clamp(1.4rem, 2.5vw, 2rem)/1.4 var(--serif, serif); }
.early-card-body p { margin: 0 0 .8rem; line-height: 1.6; color: #e3d4bd; }
.early-card-body button { min-height: 44px; }
@media (max-width: 600px) {
  .early-pin { font-size: .9rem; }
  .early-legend { gap: 0 .7rem; margin: .2rem 0; }
  .early-count { flex-basis: 100%; }
  .early-detail { min-height: 42px; font-size: .86rem; }
  .early-card > img { width: 100%; height: calc(100dvh - 235px); margin-bottom: 140px; }
  .early-card-body { padding-top: 52px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .early-card > img { height: calc(100dvh - 100px); margin: 0 0 80px; }
  .early-card-body { padding: 30px 4vw 12px; }
  .early-card-body h2 { font-size: 1.1rem; }
  .early-card-body p { display: inline; margin-right: 1rem; }
  .early-legend { gap: 0 .7rem; }
}
@media (prefers-reduced-motion: reduce) { .early-zone { transition: none; } }
.bridge-crowd-canvas { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }
.bridge-crowd-swap { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:3; pointer-events:none; }
.early-model:has(>.bridge-crowd-canvas)>.early-pan { z-index:2; }
