/* A full spatial environment replaces the isolated object window. */
.hero-room {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  background: #0c0e18;
  overflow: hidden;
}
.hero-stage {
  display: block;
  position: static;
  min-height: 590px;
  margin-top: 24px;
}
.hero-world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 0;
  background: #0c0e18 url("/media/architectural-environment-v1.webp") center /
    cover no-repeat;
}
.hero-room:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #0c0e18a6 0%, #0c0e1845 38%, #0c0e1800 61%),
    linear-gradient(
      0deg,
      #0c0e18ed 0%,
      #0c0e1800 24%,
      #0c0e1800 86%,
      #0c0e1840 100%
    );
}
.hero-content {
  position: relative;
  z-index: 4;
  width: min(590px, 45%);
  min-width: 0;
  pointer-events: auto;
}
.hero-title {
  pointer-events: auto;
}
.hero-title h1 {
  font-size: clamp(78px, 8.5vw, 124px);
}
.hero-topline,
.hero-bottom,
.hero-floorline {
  position: relative;
  z-index: 5;
}
.hero-topline {
  color: #d0d5e2;
}
.hero-description {
  color: #d6dae5;
  max-width: 440px;
  font-size: 18px;
  line-height: 1.65;
}
.hero-bottom {
  margin-top: 28px;
}
.portal-interaction p {
  color: #d2d7e2;
}
#portal-toggle {
  background: #d8ff32;
  border-color: #d8ff32;
  color: #101522;
  min-width: 204px;
}
#portal-toggle:hover {
  background: #ecff9a;
}
.hero-floorline {
  color: #c9cedd;
}
.hero-world .scene-fallback {
  display: none;
}
@media (max-width: 1199px) {
  .hero-stage {
    min-height: 540px;
  }
  .hero-content {
    width: 49%;
  }
  .hero-title h1 {
    font-size: clamp(70px, 8.2vw, 94px);
  }
  .hero-room:after {
    background:
      linear-gradient(90deg, #0c0e18d9, #0c0e1880 42%, #0c0e1800 72%),
      linear-gradient(0deg, #0c0e18e8, transparent 30%);
  }
}
@media (max-width: 899px) {
  .hero-content {
    width: 53%;
  }
  .hero-stage {
    min-height: 530px;
  }
  .hero-title h1 {
    font-size: clamp(64px, 8.8vw, 78px);
  }
}
@media (max-width: 600px) {
  .hero-room {
    padding-bottom: 24px;
  }
  .hero-room:after {
    background: none;
  }
  .hero-stage {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    margin-top: 24px;
  }
  .hero-content {
    display: contents;
    width: 100%;
  }
  .hero-title {
    position: relative;
    z-index: 4;
    order: 1;
  }
  .hero-title h1 {
    font-size: clamp(54px, 15.4vw, 66px);
  }
  .hero-description {
    position: relative;
    z-index: 4;
    order: 2;
    font-size: 17px;
    margin-top: 18px;
  }
  .hero-actions {
    position: relative;
    z-index: 4;
    order: 3;
  }
  .hero-world {
    order: 4;
    position: relative;
    inset: auto;
    width: calc(100% + 48px);
    height: 350px;
    margin: 28px -24px 0;
    background-position: 66% center;
  }
  .hero-world:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      #0c0e18 0%,
      #0c0e1800 15%,
      #0c0e1800 85%,
      #0c0e18 100%
    );
  }
  .hero-bottom {
    order: 5;
    display: block;
    margin-top: 14px;
  }
  .portal-interaction p {
    font-size: 16px;
  }
  #portal-toggle {
    width: 100%;
  }
  .hero-floorline {
    margin-top: 24px;
  }
}
