/* Studio Panorama, adapted to the preview's Cormorant / Manrope / gold palette.
   Only this preview page loads these rules; existing live pages are untouched. */
/* The mirrored theme's body overflow:hidden creates a non-scrolling sticky
   container. Clip instead, so this scene follows the actual document scroll. */
body#top.a360-preview-panorama { overflow: clip; }

.a360-panorama {
  position: relative;
  background: var(--a360-navy);
  color: var(--a360-paper);
}

.a360-panorama-frame {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: clip;
  isolation: isolate;
  background: var(--a360-navy);
}

.a360-homepage .a360-panorama-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: -2;
}

.a360-panorama-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 32%, rgba(7,24,39,.12) 52%, rgba(7,24,39,.78));
}

.a360-panorama-caption {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(40px, 7svh, 80px);
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.a360-panorama-caption .a360-eyebrow {
  color: var(--a360-paper);
  font-size: 10px;
  line-height: 1.6;
  margin: 0 0 24px;
  text-shadow: 0 2px 16px rgba(7,24,39,.28);
}

.a360-panorama-caption h2 {
  color: var(--a360-paper);
  font: 500 clamp(64px, 6.8vw, 110px)/.98 var(--a360-serif);
  letter-spacing: -.025em;
  text-transform: none;
  margin: 0;
  text-shadow: 0 2px 24px rgba(7,24,39,.16);
}

.a360-panorama-caption .a360-btn { flex-shrink: 0; }

/* Static and no-JS views retain the photo, copy and working anchor. Pinning and
   the extra scroll distance are added only when motion can be supported. */
.a360-panorama.is-scroll-ready { height: 210svh; }
.a360-panorama.is-scroll-ready .a360-panorama-frame { position: sticky; top: 0; }
.a360-panorama.is-scroll-ready .a360-panorama-photo {
  /* The rising frame clips the photo's half-speed entrance; its translated
     lower edge stays below the visible frame, without extra image cropping. */
  transform: translate3d(0, var(--panorama-drift, 0px), 0) scale(var(--panorama-scale, 1));
  will-change: transform;
}
.a360-panorama.is-scroll-ready .a360-panorama-caption {
  opacity: var(--panorama-caption-opacity, 1);
  transform: translate3d(0, var(--panorama-caption-offset, 0px), 0);
  pointer-events: var(--panorama-caption-pointer, auto);
  will-change: opacity, transform;
}
.a360-panorama.is-scroll-ready .a360-panorama-caption:focus-within {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .a360-panorama.is-scroll-ready { height: 185svh; }
  .a360-homepage .a360-panorama-photo { object-position: 50% 50%; }
  .a360-panorama-caption { display: block; bottom: 40px; }
  .a360-panorama-caption h2 { font-size: clamp(54px, 12vw, 80px); }
  .a360-panorama-caption .a360-eyebrow { max-width: 290px; font-size: 9px; margin-bottom: 20px; }
  .a360-panorama-caption .a360-btn { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce), (max-height: 599px) {
  .a360-panorama.is-scroll-ready { height: auto; }
  .a360-panorama.is-scroll-ready .a360-panorama-frame { position: relative; top: 0; }
  .a360-panorama.is-scroll-ready .a360-panorama-photo,
  .a360-panorama.is-scroll-ready .a360-panorama-caption { transform: none; will-change: auto; }
  .a360-panorama.is-scroll-ready .a360-panorama-caption { opacity: 1; pointer-events: auto; }
  .a360-panorama .a360-btn { transition: none; }
}
