/* Living heritage scenes for Bagan sunrise and Parthenon evening light. */
.living-scene, [data-living-scene] {
  --living-scenes-css: 2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
[data-living-scene] > .living-scene__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  visibility: hidden;
  transform: scale(1.01);
  transform-origin: center center;
  animation: scene-camera-breathe 26s ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform;
}
.living-scene[data-scene-ready="true"] { background-image: none; }
.living-scene[data-scene-ready="true"] > .living-scene__image { visibility: visible; }
.living-scene[data-scene-motion-ready="v2"][data-scene-running="true"] > .living-scene__image {
  animation-play-state: running;
}
.living-scene[data-scene-ready="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#mission.living-scene::after {
  background: linear-gradient(180deg, rgba(5, 17, 33, .56), rgba(14, 24, 38, .12) 44%, rgba(5, 17, 24, .9) 82%);
}
.parthenon-scene.living-scene::after {
  background: linear-gradient(0deg, rgba(16, 29, 44, .92), rgba(16, 29, 44, .16) 46%, rgba(16, 29, 44, .28) 100%);
}
.heritage-preview-card__media.living-scene::after {
  background: linear-gradient(180deg, rgba(8, 18, 32, .22), rgba(8, 18, 32, .08) 48%, rgba(8, 18, 32, .82) 100%);
}
.parthenon-scene[data-scene-ready="true"] > .living-scene__image { object-position: center 48%; }

/* Ensure Parthenon scene is always visible across tablet and mobile viewports */
@media (max-width: 820px) {
  .principles-intro {
    display: block !important;
  }
}

.scene-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.scene-atmosphere[hidden] { display: none !important; }
.scene-atmosphere svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Sunbeams & solar halo */
.scene-sunbeams {
  position: absolute;
  inset: -6% -8%;
  mix-blend-mode: screen;
  opacity: .88;
}
.scene-sun-orb {
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-orb-pulse 9s ease-in-out infinite alternate;
}
.scene-ray {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: scene-ray-shimmer 11s ease-in-out infinite alternate;
}
.scene-sunbeams--parthenon .scene-ray {
  transform-origin: top right;
}
.scene-ray--2 { animation-duration: 14s; animation-delay: -3.5s; }
.scene-ray--3 { animation-duration: 17s; animation-delay: -7s; }

/* Twinkling Aegean twilight stars */
.scene-stars {
  position: absolute;
  inset: 0 0 46% 0;
  opacity: .9;
}
.scene-star {
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-star-twinkle 4.2s ease-in-out infinite alternate;
}
.scene-star--2 { animation-duration: 5.6s; animation-delay: -1.8s; }
.scene-star--3 { animation-duration: 6.8s; animation-delay: -3.4s; }

/* Parallax clouds & morning mist */
.scene-clouds {
  position: absolute;
  left: -14%;
  width: 128%;
  height: 34%;
  top: 0;
  opacity: .46;
  animation: scene-cloud-drift 19s ease-in-out infinite alternate;
}
.scene-clouds--far {
  top: 6%;
  height: 25%;
  opacity: .32;
  animation-duration: 31s;
  animation-direction: alternate-reverse;
}
.scene-mist {
  position: absolute;
  top: 48%;
  left: -12%;
  width: 124%;
  height: 24%;
  opacity: .34;
  animation: scene-mist-drift 13s ease-in-out infinite alternate;
}
.scene-mist--deep {
  top: 58%;
  height: 26%;
  opacity: .26;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}
.scene-mist--parthenon {
  top: 62%;
  height: 24%;
  opacity: .24;
  animation-duration: 16s;
}

/* Multi-depth Bagan hot-air balloons with pulsing burner glow */
.scene-balloon {
  position: absolute;
  will-change: transform;
}
.scene-balloon--hero {
  width: clamp(36px, 4.8vw, 66px);
  height: clamp(56px, 7.6vw, 104px);
  top: 20%;
  right: 13%;
  opacity: .94;
  animation: scene-balloon-rise-hero 11s ease-in-out infinite alternate;
}
.scene-balloon--mid-a {
  width: clamp(26px, 3.4vw, 46px);
  height: clamp(41px, 5.4vw, 73px);
  top: 28%;
  left: 20%;
  opacity: .86;
  animation: scene-balloon-rise-mid 14s ease-in-out infinite alternate;
  animation-delay: -3s;
}
.scene-balloon--mid-b {
  width: clamp(24px, 3.1vw, 42px);
  height: clamp(38px, 4.9vw, 66px);
  top: 15%;
  left: 44%;
  opacity: .82;
  animation: scene-balloon-rise-mid 16s ease-in-out infinite alternate-reverse;
  animation-delay: -6.5s;
}
.scene-balloon--far-a {
  width: clamp(16px, 2.1vw, 28px);
  height: clamp(26px, 3.3vw, 44px);
  top: 33%;
  right: 31%;
  opacity: .72;
  animation: scene-balloon-rise-far 18s ease-in-out infinite alternate;
  animation-delay: -4.2s;
}
.scene-balloon--far-b {
  width: clamp(14px, 1.8vw, 24px);
  height: clamp(22px, 2.9vw, 38px);
  top: 24%;
  left: 62%;
  opacity: .66;
  animation: scene-balloon-rise-far 21s ease-in-out infinite alternate-reverse;
  animation-delay: -9s;
}
.scene-balloon-burner {
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-burner-glow 2.8s ease-in-out infinite alternate;
}

/* Gliding bird flocks */
.scene-flock {
  position: absolute;
  left: 10%;
  top: 12%;
  width: clamp(96px, 14vw, 175px);
  height: 44px;
  opacity: .82;
  animation: scene-bird-travel 16s ease-in-out infinite alternate;
}
.scene-flock--bagan {
  left: 26%;
  top: 17%;
  opacity: .76;
  animation-duration: 19s;
}
.scene-bird-wing {
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-wing-beat 1.15s ease-in-out infinite alternate;
}
.scene-bird-wing--second { animation-delay: -.42s; }
.scene-bird-wing--third { animation-delay: -.78s; }

/* Golden sunlit dust motes */
.scene-motes {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: .82;
}
.scene-mote {
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-mote-rise 8.5s ease-in-out infinite alternate;
}
.scene-mote--2 { animation-duration: 11s; animation-delay: -2.7s; }
.scene-mote--3 { animation-duration: 13.5s; animation-delay: -5.4s; }

.scene-atmosphere *, .scene-atmosphere *::before, .scene-atmosphere *::after {
  animation-play-state: paused;
}
.living-scene[data-scene-motion-ready="v2"][data-scene-running="true"] > .scene-atmosphere * {
  animation-play-state: running;
}

.heritage-caption { flex-wrap: wrap; align-items: center; }
.scene-motion-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #cbb77e;
  border-radius: 24px;
  background: rgba(16, 29, 44, .88);
  color: #ffe5a7;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.scene-motion-toggle[data-scene-control] { visibility: hidden; }
.living-scene[data-scene-motion-ready="v2"] .scene-motion-toggle[data-scene-motion-ready="v2"],
.living-scene[data-scene-motion-ready="v2"] + .scene-motion-toggle[data-scene-motion-ready="v2"],
.living-scene[data-scene-motion-ready="v2"] + .heritage-preview-controls .scene-motion-toggle[data-scene-motion-ready="v2"] {
  visibility: visible;
}
.scene-motion-toggle[hidden] { display: none !important; }
.scene-motion-toggle:focus-visible { outline: 3px solid #ead5a5; outline-offset: 3px; }
.parthenon-motion-control { margin: 12px 25px 0; }

@keyframes scene-camera-breathe {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(-1.1%, -0.7%, 0); }
}
@keyframes scene-orb-pulse {
  from { opacity: .68; transform: scale(.94); }
  to { opacity: 1; transform: scale(1.08); }
}
@keyframes scene-ray-shimmer {
  from { opacity: .45; transform: rotate(-2.2deg) scaleX(.94); }
  to { opacity: .92; transform: rotate(2.2deg) scaleX(1.06); }
}
@keyframes scene-star-twinkle {
  from { opacity: .24; transform: scale(.75); }
  to { opacity: .98; transform: scale(1.28); }
}
@keyframes scene-cloud-drift {
  from { transform: translate3d(-5.5%, 0, 0); }
  to { transform: translate3d(5.5%, 0, 0); }
}
@keyframes scene-mist-drift {
  from { transform: translate3d(4.5%, 2px, 0); }
  to { transform: translate3d(-4.5%, -3px, 0); }
}
@keyframes scene-balloon-rise-hero {
  from { transform: translate3d(10px, 18px, 0) rotate(-2.2deg); }
  to { transform: translate3d(-26px, -22px, 0) rotate(2.2deg); }
}
@keyframes scene-balloon-rise-mid {
  from { transform: translate3d(-14px, 14px, 0) rotate(-1.6deg); }
  to { transform: translate3d(24px, -18px, 0) rotate(1.8deg); }
}
@keyframes scene-balloon-rise-far {
  from { transform: translate3d(8px, 10px, 0); }
  to { transform: translate3d(-18px, -14px, 0); }
}
@keyframes scene-burner-glow {
  from { opacity: .28; transform: scale(.82); }
  to { opacity: .96; transform: scale(1.16); }
}
@keyframes scene-bird-travel {
  from { transform: translate3d(-16px, 6px, 0); }
  to { transform: translate3d(135px, -14px, 0); }
}
@keyframes scene-wing-beat {
  from { transform: scaleY(.38); }
  to { transform: scaleY(1.05); }
}
@keyframes scene-mote-rise {
  from { opacity: .22; transform: translate3d(-8px, 14px, 0) scale(.85); }
  to { opacity: .92; transform: translate3d(12px, -26px, 0) scale(1.2); }
}

@media (max-width: 640px) {
  #mission > .living-scene__image { object-position: 58% center; }
  .scene-balloon--hero { right: 8%; }
  .scene-flock { left: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-living-scene] > .living-scene__image { animation: none !important; transform: none !important; }
  .scene-atmosphere { display: none !important; }
  .scene-atmosphere * { animation: none !important; }
  .scene-motion-toggle { display: none !important; }
}
