:root {
  --ink: #153f42;
  --teal: #168c73;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #0a343b;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
  overscroll-behavior: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button,
video {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

img,
video {
  display: block;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

::selection {
  color: inherit;
  background: transparent;
}

[v-cloak] {
  display: none;
}

.app,
.viewport-frame {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.app.mobile-portrait {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  transform: rotate(90deg) translateY(-100%);
  transform-origin: top left;
}

.app.mobile-portrait .viewport-frame {
  top: var(--safe-right);
  right: var(--safe-bottom);
  bottom: var(--safe-left);
  left: var(--safe-top);
}

.viewport-frame {
  top: var(--safe-top);
  right: var(--safe-right);
  bottom: var(--safe-bottom);
  left: var(--safe-left);
  display: grid;
  place-items: center;
  background: #071f25;
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  flex: none;
  overflow: hidden;
  background: #a8ddda;
  isolation: isolate;
  touch-action: none;
}

.page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #b5e7e3;
  isolation: isolate;
}

.design-bg,
.pilot-video,
.art-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.design-bg {
  z-index: 1;
}

.art-layer {
  z-index: 5;
  pointer-events: none;
  will-change: opacity, transform, filter, clip-path;
}

.home-copy-layer,
.home-button-layer {
  pointer-events: none;
}

.home-copy-layer {
  z-index: 5;
}

.home-button-layer {
  z-index: 6;
}

.home-memory-layer {
  transform-origin: 34% 60%;
}

.home-change-layer {
  transform-origin: 52.1% 60%;
}

.home-journey-layer {
  transform-origin: 70.4% 60%;
}

.hotspot {
  position: absolute;
  z-index: 30;
  color: transparent;
  background: transparent;
}

.hotspot:focus-visible,
.change-hotspots button:focus-visible,
.journey-hotspots button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.94);
  outline-offset: -3px;
}

/* Loading */
.loading-page {
  background: #6fc6cf;
}

.loading-base {
  animation: loading-camera 7s ease-out both;
}

.loading-title-layer {
  z-index: 7;
}

.loading-button-layer,
.loading-logos-layer {
  z-index: 8;
}

.loading-logos-layer {
  transform: translateY(-11%);
}

.loading-progress-ui {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.loading-track-layer {
  z-index: 1;
  opacity: 0.32;
}

.loading-fill-layer {
  z-index: 2;
  filter: drop-shadow(0 0 9px rgba(229, 255, 252, 0.88));
  will-change: clip-path;
}

.loading-percent {
  position: absolute;
  left: 45.5%;
  top: 47.82%;
  z-index: 3;
  width: 9%;
  color: #fff;
  font-size: clamp(13px, 1.4vw, 28px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 8px rgba(3, 54, 67, 0.56);
}

.enter-hotspot {
  left: 40.8%;
  top: 52.6%;
  width: 20.1%;
  height: 10.2%;
  border-radius: 24px;
}

/* Pilot */
.pilot-page {
  background: #091719;
}

.pilot-video {
  z-index: 1;
  object-fit: cover;
  object-position: center center;
}

.round-close,
.edge-back,
.popup-close,
.global-sound {
  position: absolute;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 50%;
  background: rgba(73, 167, 180, 0.9);
  font-size: 30px;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.62), 0 8px 22px rgba(0, 0, 0, 0.2);
}

.round-close,
.edge-back {
  top: 2.2%;
  right: 2.2%;
}

.pilot-close {
  top: max(2.2%, calc(var(--safe-top) + 8px));
  right: max(2.2%, calc(var(--safe-right) + 8px));
  left: auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.pilot-close img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.pilot-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.global-sound {
  top: 2.2%;
  right: auto;
  bottom: auto;
  left: 2.2%;
  width: 46px;
  height: 46px;
  z-index: 80;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.sound-sprite {
  display: block;
  width: 100%;
  height: 100%;
  background: url("assets/new-design/sound-toggle.png?v=0905f") center top / 100% auto no-repeat;
}

.sound-sprite.muted {
  background-position: center bottom;
}

/* Production team */
.team-trigger {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: max(28px, 4.392%);
  height: auto;
  overflow: visible;
  border-radius: 14px;
  background: transparent;
}

.team-trigger img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

.team-trigger:focus-visible,
.team-close-hotspot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.team-popup {
  position: absolute;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  background: rgba(4, 35, 43, 0.34);
  backdrop-filter: blur(5px);
}

.team-card {
  position: relative;
  width: min(74%, 1671px);
  aspect-ratio: 1671 / 841;
  filter: drop-shadow(0 18px 42px rgba(2, 31, 44, 0.3));
}

.team-card > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.team-close-hotspot {
  position: absolute;
  top: 0;
  left: 85.5%;
  width: 10.5%;
  height: 20%;
  border-radius: 50%;
  background: transparent;
}

@media (max-height: 420px) {
  .team-trigger {
    width: max(28px, 4.392%);
  }

  .team-card {
    width: 72%;
  }
}

/* Home */
.home-water {
  position: absolute;
  inset: 63% 0 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.3;
  background: repeating-radial-gradient(ellipse at 58% 98%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px 20px);
  animation: water-shimmer 8s linear infinite;
}

.home-entry {
  top: 52%;
  height: 16%;
  border-radius: 16px;
}

.home-entry.memory {
  left: 24.8%;
  width: 18.2%;
}

.home-entry.change {
  left: 43%;
  width: 18.2%;
}

.home-entry.journey {
  left: 61.4%;
  width: 18.2%;
}

.home-entry::after {
  position: absolute;
  inset: 12% 6%;
  border-radius: 14px;
  content: "";
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-entry:active::after {
  transform: scale(0.93);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.88);
}

/* Cinematic introductions */
.cinematic-base {
  will-change: transform, opacity;
}

.section-bg-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-page .art-layer {
  z-index: 8;
}

.memory-intro-copy-update {
  z-index: 9;
  pointer-events: none;
}

.cinematic-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 47%, rgba(4, 35, 40, 0.18) 0 34%, rgba(5, 37, 43, 0.28) 100%);
}

.cinematic-vignette.warm {
  background: linear-gradient(90deg, rgba(15, 42, 38, 0.08), transparent 32%, transparent 70%, rgba(19, 35, 32, 0.12));
}

.cinematic-vignette.dark {
  background: linear-gradient(180deg, rgba(5, 18, 22, 0.06), transparent 60%, rgba(3, 20, 26, 0.2));
}

.memory-intro-enter {
  left: 39.4%;
  top: 67.9%;
  width: 19.5%;
  height: 11.5%;
  border-radius: 999px;
}

.memory-intro-enter,
.change-intro-enter,
.journey-intro-enter {
  pointer-events: none;
}

.change-intro-enter {
  left: 20%;
  top: 18%;
  width: 66%;
  height: 70%;
}

.change-intro-page .intro-title-layer {
  /* Keep the original lettering size; separate its visible ink from the new copy. */
  top: -14%;
  bottom: auto;
}

.journey-intro-enter {
  left: 8%;
  top: 13%;
  width: 84%;
  height: 75%;
}

.intro-gesture {
  right: 28%;
  bottom: 18%;
  width: 5.4%;
  opacity: 0;
  visibility: hidden;
}

.intro-page-close {
  top: 2.2%;
  right: 2.2%;
  background: #31ac7e;
}

.cinematic-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #143f43;
}

.cinematic-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease;
}

.cinematic-slides img.active {
  opacity: 1;
}

.color-streaks {
  position: absolute;
  left: -35%;
  top: 0;
  z-index: 4;
  width: 48%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(54, 217, 213, 0.34), rgba(255, 239, 158, 0.36), rgba(98, 171, 255, 0.35), transparent);
  filter: blur(16px);
  transform: skewX(-10deg);
}

/* Memory wall */
.memory-wall-page {
  background: #4c91b5;
}

.memory-backdrop {
  object-fit: cover;
  filter: none;
}

.wall-depth {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 20, 24, 0.04), rgba(2, 20, 24, 0.18));
}

.coverflow {
  position: absolute;
  inset: 0;
  z-index: 5;
  perspective: 1120px;
  perspective-origin: 50% 52%;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: none;
  -ms-touch-action: none;
}

.coverflow:active {
  cursor: grabbing;
}

.flow-photo {
  position: absolute;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #eaf2f3;
  box-shadow: 0 16px 40px rgba(1, 28, 46, 0.38);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, left, top, opacity, filter;
}

.flow-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-photo.central {
  height: auto !important;
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 3px;
  box-shadow: 0 30px 78px rgba(1, 24, 39, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.24);
  animation: center-photo-breathe 5s ease-in-out infinite;
}

.flow-photo.central img {
  height: auto;
  object-fit: initial;
  background: transparent;
  animation: center-image-arrive 0.82s cubic-bezier(0.2, 0.75, 0.22, 1) both;
}

.memory-wall-instruction {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 5.5%;
  z-index: 210;
  pointer-events: none;
}

.memory-wall-instruction p {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 1.55vw, 26px);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 34, 43, 0.82);
}

.memory-new-life-button {
  position: absolute;
  top: 2.2%;
  right: calc(2.2% + 56px);
  z-index: 230;
  width: 16%;
  min-width: 132px;
  max-width: 214px;
  height: auto;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(0 7px 14px rgba(4, 42, 54, 0.3));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.memory-new-life-button img {
  width: 100%;
  height: auto;
}

.memory-new-life-button:hover,
.memory-new-life-button:focus-visible {
  filter: drop-shadow(0 9px 18px rgba(4, 42, 54, 0.42)) brightness(1.05);
  transform: translateY(-2px);
}

.memory-new-life-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.memory-new-life-button:active {
  transform: translateY(1px) scale(0.98);
}

/* Memory: moving into a new life */
.memory-life-page {
  background: #eddbd5;
}

.new-life-gallery {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 249, 226, 0.45), transparent 30%, rgba(244, 210, 204, 0.26) 67%, rgba(255, 254, 248, 0.5)),
    linear-gradient(180deg, #eddbd5, #f5e6e1 52%, #ecdbd5);
}

.memory-life-close {
  z-index: 260;
}

.new-life-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  height: 540px;
  transform-origin: center;
}

.new-life-photo {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: max-content;
  padding: 0;
  border: 6px solid #fffaf7;
  border-radius: 0;
  background: #fffaf7;
  box-shadow: 0 18px 25px rgba(101, 70, 67, 0.24), 0 3px 6px rgba(101, 70, 67, 0.06);
  cursor: pointer;
  will-change: transform;
}

.new-life-photo:focus-visible {
  outline: 2px solid rgba(188, 111, 101, 0.72);
  outline-offset: 2px;
}

.new-life-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(var(--frame-width) - 12px);
  max-height: calc(var(--frame-height) - 12px);
}

.new-life-caption {
  position: absolute;
  left: calc(var(--frame-width) * -0.08 - 6px);
  bottom: var(--caption-bottom);
  z-index: 3;
  width: clamp(158px, calc(var(--frame-width) * 0.46), 218px);
  padding: 4px 7px 5px;
  border: 3px solid rgba(255, 255, 255, 0.54);
  color: #294574;
  background: rgba(253, 249, 250, 0.9);
  box-shadow: 0 4px 9px rgba(93, 66, 74, 0.13);
  background-clip: padding-box;
  text-align: left;
  pointer-events: none;
}

.new-life-caption strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.new-life-caption > span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.new-life-light-sweep {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 112%;
  z-index: 20;
  width: 54%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(102deg, transparent 8%, rgba(255, 179, 80, 0.08) 24%, rgba(255, 207, 92, 0.46) 45%, rgba(255, 253, 233, 0.72) 62%, transparent 92%);
  mix-blend-mode: screen;
  animation: new-life-light-pass 6.4s linear infinite;
}

@keyframes new-life-light-pass {
  0% { left: 112%; opacity: 0; }
  16% { opacity: 0.95; }
  58% { opacity: 0.85; }
  84%, 100% { left: -62%; opacity: 0; }
}

.gesture-cue {
  position: absolute;
  z-index: 55;
  width: 6.4%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(13, 54, 58, 0.22));
  transform-origin: 50% 90%;
  animation: gesture-breathe 1.55s ease-in-out infinite;
}

.edge-back {
  background: #31ac7e;
}

/* Change comparison */
.compare-viewer {
  position: absolute;
  left: 9%;
  top: 5.55%;
  z-index: 12;
  width: 83.55%;
  height: 84%;
  overflow: hidden;
  background: #dceee4;
  box-shadow: 0 16px 42px rgba(44, 86, 68, 0.22);
  touch-action: none;
}

.compare-viewer.tall {
  left: 32.67%;
  width: 33.28%;
}

.compare-viewer.single {
  cursor: default;
}

.compare-hand-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: url("assets/new-design/change-base.webp") center / 100% 100% no-repeat;
  clip-path: polygon(93% 32%, 100% 32%, 100% 76%, 93% 76%);
}

.compare-side-arrows {
  --compare-arrow-size: clamp(38px, 3vw, 44px);
  --compare-arrow-inset: clamp(18px, 2vw, 28px);
  position: absolute;
  left: 9%;
  top: 5.55%;
  z-index: 46;
  width: 83.55%;
  height: 84%;
  pointer-events: none;
}

.compare-side-arrows button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--compare-arrow-size);
  height: var(--compare-arrow-size);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  background: rgba(7, 72, 72, 0.78);
  font-size: 0;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(6, 38, 36, 0.25);
  backdrop-filter: blur(5px);
  pointer-events: auto;
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.compare-side-arrows button::before,
.equipment-arrows button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform-origin: center;
}

.compare-side-arrows .previous::before,
.equipment-arrows button:first-child::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.compare-side-arrows .next::before,
.equipment-arrows button:last-child::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.compare-side-arrows button:hover,
.compare-side-arrows button:focus-visible {
  background: rgba(5, 91, 87, 0.96);
  box-shadow: 0 8px 20px rgba(6, 38, 36, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.compare-side-arrows button:active {
  background: rgba(8, 74, 62, 1);
  transform: translateY(-50%) scale(0.92);
}

.compare-side-arrows .previous {
  left: var(--compare-arrow-inset);
}

.compare-side-arrows .next {
  right: var(--compare-arrow-inset);
}

.compare-before,
.compare-after,
.compare-after-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-before,
.compare-after {
  object-fit: cover;
}

.compare-after-wrap {
  overflow: hidden;
  will-change: clip-path;
}

.compare-label {
  position: absolute;
  right: 14px;
  z-index: 5;
  padding: 5px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 2px;
  background: rgba(12, 72, 60, 0.78);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(0, 34, 28, 0.18);
  backdrop-filter: blur(5px);
}

.before-label {
  bottom: 14px;
}

.after-label {
  top: 14px;
}

.compare-divider {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 8;
  height: 4px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 15px rgba(0, 70, 55, 0.42);
  transform: translateY(-50%);
  cursor: ns-resize;
}

.compare-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 250px;
  padding: 8px 18px;
  color: #9c501d;
  border: 2px solid #b9772e;
  border-radius: 999px;
  background: #f2d68a;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
}

.story-count {
  position: absolute;
  left: 38%;
  bottom: max(1.3%, calc(100% - 100vh + 2px));
  z-index: 42;
  display: block;
  width: 24%;
  margin: 0;
  color: #15483d;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 7px rgba(255, 255, 255, 0.9);
}

.compare-caption {
  position: absolute;
  left: 10.8%;
  right: 5.65%;
  z-index: 42;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  color: #123f35;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: 0 1px 7px rgba(255, 255, 255, 0.9);
  white-space: normal;
}

.compare-caption-new {
  top: 1.7%;
}

.compare-caption-old {
  bottom: max(4.1%, calc(100% - 100vh + 25px));
  color: #315d54;
}

.change-hotspots,
.journey-hotspots {
  position: absolute;
  left: 0;
  top: 20%;
  z-index: 48;
  display: grid;
  width: 8.7%;
  height: 48%;
  grid-template-rows: 17.1% 21.9% 18.8% 21.4% 20.8%;
}

.change-hotspots button,
.journey-hotspots button {
  width: 100%;
  background: transparent;
}

.story-video-hotspot {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 48;
  width: 6.4%;
  height: 31%;
  background: transparent;
}

.change-nav-component {
  position: absolute;
  inset: 0;
  z-index: 44;
  pointer-events: none;
  will-change: opacity, transform;
}

.change-nav-component > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.change-nav-base {
  z-index: 1;
}

.change-nav-active {
  z-index: 2;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.change-nav-item {
  z-index: 3;
  transition: filter 0.35s ease;
}

.change-nav-home {
  filter: brightness(0) saturate(100%) invert(35%) sepia(31%) saturate(1109%) hue-rotate(113deg) brightness(89%) contrast(91%);
}

.change-nav-component.active-hubs .change-nav-active {
  transform: translateY(9.48%);
}

.change-nav-component.active-tree .change-nav-active {
  transform: translateY(18.99%);
}

.change-nav-component.active-village .change-nav-active {
  transform: translateY(28.61%);
}

.change-nav-component.active-campus .change-nav-active {
  transform: translateY(38.4%);
}

.change-nav-hubs.selected,
.change-nav-tree.selected,
.change-nav-village.selected,
.change-nav-campus.selected {
  filter: brightness(0) invert(1);
}

.change-nav-component .change-hotspots,
.change-nav-component .change-hotspots button {
  pointer-events: auto;
}

/* Faces */
.workers-window {
  position: absolute;
  left: 8.05%;
  top: 0;
  right: 0;
  bottom: 8.8%;
  z-index: 8;
  overflow: hidden;
  background: #282827;
}

.workers-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: 3.571429%;
  width: 100%;
  height: 560%;
  will-change: transform;
}

.workers-grid button {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #302b29;
  box-shadow: inset 0 0 0 2px rgba(28, 25, 23, 0.9);
}

.workers-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(0.78);
  transform: scale(1.035);
  transition: filter 0.55s ease, transform 0.55s ease;
}

.workers-grid button.focus {
  z-index: 8;
  box-shadow: 0 0 0 4px #f1c968, 0 16px 38px rgba(0, 0, 0, 0.52);
}

.workers-grid button.focus img,
.workers-grid button:hover img {
  filter: brightness(1.12) saturate(1.04);
  transform: scale(1.14);
}

.worker-spotlight {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at 55% 50%, transparent 0 12%, rgba(9, 13, 13, 0.08) 28%, rgba(7, 9, 10, 0.28) 100%);
}

.journey-hotspots {
  height: 39.8%;
  grid-template-rows: repeat(4, 1fr);
}

.journey-nav-component {
  position: absolute;
  inset: 0;
  z-index: 44;
  pointer-events: none;
  will-change: opacity, transform;
}

.journey-nav-component > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.journey-nav-base {
  z-index: 1;
}

.journey-nav-active {
  z-index: 2;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-nav-item {
  z-index: 3;
  transition: filter 0.35s ease;
}

.journey-nav-component.active-faces .journey-nav-active {
  transform: translateY(8.82%);
}

.journey-nav-component.active-machines .journey-nav-active {
  transform: translateY(18.54%);
}

.journey-nav-component.active-gloves .journey-nav-active {
  transform: translateY(27.57%);
}

.journey-nav-home:not(.selected) {
  filter: brightness(0) saturate(100%) invert(31%) sepia(73%) saturate(1085%) hue-rotate(160deg) brightness(87%) contrast(101%);
}

.journey-nav-faces.selected,
.journey-nav-machines.selected,
.journey-nav-gloves.selected {
  filter: brightness(0) invert(1);
}

.journey-nav-component .journey-hotspots,
.journey-nav-component .journey-hotspots button {
  pointer-events: auto;
}

/* Equipment */
.machine-page {
  background: #15363c;
}

.glove-page {
  background: #fff;
}

.equipment-stage-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: opacity, transform;
}

.equipment-stage-tint {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 19, 23, 0.06) 42%, rgba(4, 25, 30, 0.54) 100%);
}

.equipment-stage-caption {
  position: absolute;
  left: 31%;
  right: 4%;
  bottom: max(6%, calc(100% - 100vh + 26px));
  z-index: 20;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.equipment-stage-caption.glove-caption {
  left: 12%;
}

.equipment-thumbs {
  position: absolute;
  z-index: 16;
  display: grid;
  gap: 1.35%;
}

.machine-interaction {
  top: auto;
  right: 3.2%;
  bottom: max(27%, calc(100% - 100vh + 128px));
  left: auto;
  width: 38%;
  height: 15.5%;
  grid-template-columns: repeat(3, 1fr);
}

.glove-interaction {
  top: auto;
  right: 3.2%;
  bottom: max(27%, calc(100% - 100vh + 128px));
  left: auto;
  width: 56%;
  height: 19%;
  grid-template-columns: repeat(5, 1fr);
}

.equipment-thumbs button {
  min-width: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.equipment-thumbs button:hover,
.equipment-thumbs button:focus-visible {
  z-index: 2;
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.equipment-thumbs button.selected {
  z-index: 3;
  border-color: #f2ca60;
  box-shadow: 0 0 0 2px rgba(242, 202, 96, 0.8), 0 16px 34px rgba(0, 0, 0, 0.32);
}

.equipment-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipment-arrows {
  position: absolute;
  right: 0.35%;
  bottom: max(27%, calc(100% - 100vh + 128px));
  left: 52.5%;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 15.5%;
  pointer-events: none;
}

.equipment-arrows button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  background: rgba(7, 72, 72, 0.78);
  font-size: 0;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(6, 38, 36, 0.25);
  backdrop-filter: blur(5px);
  pointer-events: auto;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.equipment-arrows button:hover,
.equipment-arrows button:focus-visible {
  background: rgba(5, 91, 87, 0.96);
  box-shadow: 0 8px 20px rgba(6, 38, 36, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.equipment-arrows button:active {
  transform: scale(0.92);
}

.glove-arrows {
  right: 0.35%;
  bottom: max(27%, calc(100% - 100vh + 128px));
  left: 33.7%;
  height: 19%;
}

/* Popup */
.media-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 18, 24, 0.76);
  backdrop-filter: blur(10px);
}

.media-popup-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  width: min(1240px, 94vw, calc(86vh * 1.7222));
  height: auto;
  max-height: 86vh;
  aspect-ratio: 31 / 18;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: #f4fbf7;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.media-popup-card > img {
  width: 100%;
  height: 100%;
  max-height: 84vh;
  object-fit: contain;
  background: #071c22;
}

.media-popup-card article {
  align-self: center;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(14px, 2.5vw, 32px);
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 140, 115, 0.62) transparent;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.media-popup-card article.long-copy {
  align-self: stretch;
  height: 100%;
}

.media-popup-card article.source-only h2 {
  margin: 0;
}

.media-popup-card article.source-only p {
  margin-top: 16px;
}

.media-popup-card small {
  color: #168a73;
  font-weight: 700;
}

.media-popup-card h2 {
  margin: 10px 0 16px;
  color: #173f43;
  font-size: 16px;
  line-height: 1.45;
}

.media-popup-card article.long-copy h2 {
  font-size: 14px;
  line-height: 1.55;
}

.media-popup-card article.extra-long-copy h2 {
  font-size: 13px;
  line-height: 1.48;
}

.media-popup-card p {
  margin: 0;
  color: #617879;
  font-size: 14px;
  line-height: 1.8;
}

.media-popup-card.worker {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  width: min(840px, 90vw, calc(86vh * 1.3125));
  height: auto;
  aspect-ratio: 21 / 16;
}

.media-popup-card.video {
  display: block;
  width: min(1120px, 94vw, calc(86vh * 1.85));
  height: auto;
  aspect-ratio: 1998 / 1080;
  background: #000;
}

.media-popup-card.video video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.popup-close {
  top: 14px;
  right: 14px;
}

.app.mobile-portrait .media-popup {
  padding: 16px;
}

.app.mobile-portrait .media-popup-card {
  width: auto;
  height: 86%;
  max-width: 94%;
  max-height: 86%;
}

.app.mobile-portrait .media-popup-card article {
  align-self: stretch;
  height: 100%;
  max-height: 100%;
  padding: 52px 14px 14px;
}

.app.mobile-portrait .media-popup-card article.medium-copy h2 {
  font-size: 13px;
  line-height: 1.48;
}

.app.mobile-portrait .media-popup-card article.long-copy h2 {
  font-size: 11.5px;
  line-height: 1.42;
}

.app.mobile-portrait .media-popup-card article.extra-long-copy {
  padding-top: 48px;
  padding-bottom: 10px;
}

.app.mobile-portrait .media-popup-card article.extra-long-copy h2 {
  font-size: 11px;
  line-height: 1.38;
}

.water-transition {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1000;
  width: 116%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(238, 255, 252, 0.98) 0 18%, rgba(112, 216, 207, 0.92) 33%, rgba(12, 126, 139, 0.76) 49%, rgba(255, 255, 255, 0.38) 51%, transparent 69%);
  filter: blur(2px);
  transform: translate(-50%, -50%) scale(0.03);
}

@keyframes loading-camera {
  from { transform: scale(1.055); filter: blur(3px); }
  to { transform: scale(1); filter: blur(0); }
}

@keyframes water-shimmer {
  from { transform: translateX(-1.5%) scale(1.03); }
  to { transform: translateX(1.5%) scale(1.08); }
}

@keyframes center-photo-breathe {
  0%, 100% { box-shadow: 0 30px 78px rgba(1, 24, 39, 0.48); }
  50% { box-shadow: 0 34px 86px rgba(1, 24, 39, 0.58), 0 0 30px rgba(224, 249, 246, 0.22); }
}

@keyframes center-image-arrive {
  from {
    opacity: 0.16;
    filter: blur(10px) saturate(0.72);
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
}

@keyframes gesture-breathe {
  0%, 100% { opacity: 0.76; transform: scale(0.92) translateY(4px); }
  50% { opacity: 1; transform: scale(1.08) translateY(-5px); }
}

@media (max-height: 620px) {
  .round-close,
  .edge-back,
  .popup-close,
  .global-sound {
    width: 34px;
    height: 34px;
    font-size: 23px;
  }

  .memory-wall-instruction p {
    font-size: 20px;
  }

  .compare-divider span {
    min-width: 188px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .compare-caption,
  .story-count {
    font-size: 10px;
  }

  .media-popup-card article {
    padding: 18px;
  }

  .media-popup-card h2 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
