.hero-interior {
  --hero-curtain-left: url("assets/img/curtain-left-fabric-mid.png");
  --hero-curtain-right: url("assets/img/curtain-right-fabric-mid.png");
  --hero-curtains-closed: url("assets/img/hero-curtains-window-overlay-v3.png");
  --hero-foreground-static: url("assets/img/hero-foreground-static-v3.png");
  --hero-door-panel: url("assets/img/door-panel.png");
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 92px 24px 32px;
  background: #07101b;
  color: #fff;
  margin-top: -120px;
}

.hero-bg,
.hero-overlay,
.scene-layer {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.98) contrast(1.02) saturate(1.02);
  transform: scale(1);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,8,14,.02), rgba(3,8,14,.08) 72%, rgba(3,8,14,.04)),
    linear-gradient(180deg, rgba(3,8,14,.13), rgba(3,8,14,0) 42%, rgba(3,8,14,.1));
}

.hero-interior-inner {
  position: relative;
  z-index: 3;
  min-height: calc(100svh - 124px);
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.76fr);
  align-items: center;
}


.hero-hotspots{
  position: absolute;
  left: 20px;
  bottom: 20px;
  border-radius: 999px;
  z-index: 10;
  padding: 10px;
  background: linear-gradient(180deg, rgba(8, 18, 32, .74), rgba(8, 18, 32, .44)) padding-box, linear-gradient(180deg, #ff9d02, #11b2f1) border-box;
  border: 2px solid transparent;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px);
}
.hero-hotspot {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 6px;
  border: 2px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  color: rgba(255,255,255,.7);
  box-shadow: none;
  backdrop-filter: none;
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .3s cubic-bezier(.2,.74,.16,1),
    color .28s ease,
    border-color .28s ease,
    background-color .28s ease,
    box-shadow .28s ease;

}

.hero-hotspot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-blue);
  box-shadow: 0 0 14px rgba(20,142,229,.55);
  transform: translate(-50%, -50%);
  opacity: .86;
  z-index: 1;
  transition: opacity .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hero-hotspot::after {
  content: "";
  position: absolute;
  inset: -35%;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.18), transparent 42%),
    conic-gradient(from 180deg, rgba(17,178,241,.64), transparent 34%, rgba(255,157,2,.68), transparent 78%, rgba(17,178,241,.64));
  opacity: 0;
  transform: rotate(0deg) scale(.78);
  transition: opacity .28s ease, transform .5s ease;
  pointer-events: none;
}

.hero-hotspot:hover,
.hero-hotspot:focus-visible,
.hero-hotspot.is-active {
  color: #ff9d02;
  border-color: #ff9e027b;
  background-color: rgba(255, 158, 2, 0.15);
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 18px 34px rgba(0,0,0,.28), 0 0 0 6px rgba(17,178,241,.08);
}

.hero-hotspot:hover::after,
.hero-hotspot:focus-visible::after,
.hero-hotspot.is-active::after {
  opacity: .24;
  transform: rotate(28deg) scale(1);
}

.hero-hotspot:hover::before,
.hero-hotspot:focus-visible::before,
.hero-hotspot.is-active::before {
  opacity: 1;
  box-shadow: 0 0 0 6px rgba(20,142,229,.08), 0 0 24px rgba(20,142,229,.86);
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-hotspot:nth-child(even)::before {
  background: var(--brand-orange);
  box-shadow: 0 0 14px rgba(242,138,32,.55);
}

.hero-hotspot:nth-child(even):hover::before,
.hero-hotspot:nth-child(even):focus-visible::before,
.hero-hotspot:nth-child(even).is-active::before {
  box-shadow: 0 0 0 6px rgba(242,138,32,.09), 0 0 24px rgba(242,138,32,.82);
}


.orbit-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-icon-fa {
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-hotspot:hover .orbit-icon,
.hero-hotspot:hover .orbit-icon-fa,
.hero-hotspot:focus-visible .orbit-icon,
.hero-hotspot:focus-visible .orbit-icon-fa,
.hero-hotspot.is-active .orbit-icon,
.hero-hotspot.is-active .orbit-icon-fa {
  filter: drop-shadow(0 0 14px rgba(255,255,255,.22));
  transform: translateY(-1px);
}

.hero-hotspot strong {
  position: relative;
  z-index: 2;
  max-width: 118px;
  opacity: .68;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 10px 26px rgba(0,0,0,.35);
  transition: opacity .18s ease, color .18s ease;
}

.hero-hotspot .orbit-icon,
.hero-hotspot .orbit-icon-fa,
.hero-hotspot strong {
  pointer-events: none;
}

.hero-hotspot:hover strong,
.hero-hotspot:focus-visible strong,
.hero-hotspot.is-active strong {
  opacity: 1;
  color: #ff9d02;
}

@media (prefers-reduced-motion: reduce) {
  .hero-hotspot,
  .hero-hotspot::before,
  .hero-hotspot::after,
  .hero-hotspot .orbit-icon,
  .hero-hotspot .orbit-icon-fa,
  .hero-hotspot strong {
    transition: none;
  }
  .hero-hotspot:hover,
  .hero-hotspot:focus-visible,
  .hero-hotspot.is-active {
    transform: none;
  }
}

.hotspot-security::after {
  bottom: auto;
}

.hotspot-audio {
  left: auto;
  top: auto;
}
.scene-layer {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.scene-layer::before,
.scene-layer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-interior[data-scene="lighting"] .scene-lighting,
.hero-interior[data-scene="curtains"] .scene-curtains,
.hero-interior[data-scene="climate"] .scene-climate,
.hero-interior[data-scene="access"] .scene-access,
.hero-interior[data-scene="security"] .scene-security,
.hero-interior[data-scene="audio"] .scene-audio {
  opacity: 1;
}

.scene-lighting {
  background:
    radial-gradient(circle at 29% 7%, rgba(242,138,32,.46), transparent 6%),
    radial-gradient(circle at 39% 7%, rgba(255,255,255,.36), transparent 6%),
    radial-gradient(circle at 52% 9%, rgba(242,138,32,.28), transparent 6%),
    radial-gradient(ellipse at 34% 28%, rgba(242,138,32,.14), transparent 34%);
  mix-blend-mode: screen;
}

.scene-curtains {
  overflow: hidden;
  background: none;
  mix-blend-mode: normal;
}

.scene-curtains::before,
.scene-curtains::after {
  display: none;
}

.scene-curtains::before {
  clip-path: polygon(0 0, 41% 0, 41% 100%, 0 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 35.5%, rgba(0,0,0,.72) 38.5%, transparent 41%);
  mask-image: linear-gradient(90deg, #000 0 35.5%, rgba(0,0,0,.72) 38.5%, transparent 41%);
}

.scene-curtains::after {
  display: none;
}

.curtain-panel {
  position: absolute;
  inset: 0;
  display: block;
  background-image: var(--hero-curtains-closed);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  filter: brightness(1.02) contrast(1.02);
  will-change: clip-path, transform, opacity, filter;
}

.curtain-foreground {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  background-image: var(--hero-foreground-static);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.curtain-panel::before,
.curtain-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.curtain-panel::before {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,.18) 0 2px,
      transparent 2px 16px,
      rgba(255,220,160,.12) 17px 20px,
      transparent 20px 34px
    );
  mix-blend-mode: soft-light;
  opacity: .42;
  transform: translateX(0);
  -webkit-mask-image: var(--hero-curtains-closed);
  mask-image: var(--hero-curtains-closed);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.curtain-panel::after {
  width: 82px;
  background: linear-gradient(90deg, transparent, rgba(255,216,150,.38), rgba(0,0,0,.24), transparent);
  filter: blur(5px);
  opacity: 0;
  -webkit-mask-image: var(--hero-curtains-closed);
  mask-image: var(--hero-curtains-closed);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.curtain-panel-left {
  clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%);
  transform-origin: left center;
}

.curtain-panel-left::after {
  left: 20%;
  right: auto;
}

.curtain-panel-right {
  clip-path: polygon(18% 0, 40.8% 0, 40.8% 100%, 18% 100%);
  transform-origin: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 17.2%, #000 19.2%, #000 36.8%, rgba(0,0,0,.72) 39%, transparent 40.9%);
  mask-image: linear-gradient(90deg, transparent 17.2%, #000 19.2%, #000 36.8%, rgba(0,0,0,.72) 39%, transparent 40.9%);
}

.curtain-panel-right::after {
  right: 59%;
  left: auto;
  transform: scaleX(-1);
}

.hero-interior.curtains-closing .curtain-panel-left {
  animation: curtainDrawLeft 1.85s cubic-bezier(.2,.74,.16,1) both;
}

.hero-interior.curtains-closing .curtain-panel-right {
  animation: curtainDrawRight 1.85s cubic-bezier(.2,.74,.16,1) both;
}

.hero-interior.curtains-closing .curtain-panel::before {
  animation: none;
}

.hero-interior.curtains-closing .curtain-panel::after {
  animation: none;
}

.scene-climate {
  background:
    radial-gradient(ellipse at 58% 15%, rgba(255,157,2,.2), transparent 20%),
    repeating-linear-gradient(168deg, transparent 0 44px, rgba(255,157,2,.2) 45px, transparent 47px);
  mask-image: linear-gradient(90deg, transparent, #000 34%, #000 78%, transparent);
  animation: climateFlow 1.2s linear infinite;
}

.scene-access {
  background: none;
}

.scene-access::before {
  display: none;
}

.scene-access::after {
  display: none;
}

.scene-security {
  background:
    radial-gradient(ellipse at 23% 69%, rgba(242,138,32,.16), transparent 16%),
    radial-gradient(ellipse at 18% 40%, rgba(20,142,229,.1), transparent 20%);
  mix-blend-mode: screen;
}

.scene-audio {
  background:
    repeating-radial-gradient(circle at 33% 83%, rgba(20,142,229,.32) 0 2px, transparent 2px 54px);
  mask-image: radial-gradient(circle at 33% 83%, #000, transparent 36%);
  animation: audioPulse 1.15s ease-out infinite;
}

@keyframes curtainPhotoBlend {
  0% {
    opacity: 0;
  }
  62% {
    opacity: .08;
  }
  100% {
    opacity: .16;
  }
}

@keyframes curtainDrawLeft {
  from {
    clip-path: polygon(0 0, 8.5% 0, 8.5% 100%, 0 100%);
    filter: brightness(1.01) contrast(1.01);
    opacity: 1;
    transform: translateX(-1.4%) scaleX(.985);
  }
  38% {
    clip-path: polygon(0 0, 15.8% 0, 15.8% 100%, 0 100%);
    opacity: 1;
  }
  72% {
    clip-path: polygon(0 0, 20.4% 0, 20.4% 100%, 0 100%);
    filter: brightness(1.01) contrast(1.01);
  }
  to {
    clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%);
    filter: blur(0) brightness(1) contrast(1);
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes curtainDrawRight {
  from {
    clip-path: polygon(31.5% 0, 40.8% 0, 40.8% 100%, 31.5% 100%);
    filter: brightness(1.01) contrast(1.01);
    opacity: 1;
    transform: translateX(1.4%) scaleX(.985);
  }
  38% {
    clip-path: polygon(24.8% 0, 40.8% 0, 40.8% 100%, 24.8% 100%);
    opacity: 1;
  }
  72% {
    clip-path: polygon(19.6% 0, 40.8% 0, 40.8% 100%, 19.6% 100%);
    filter: brightness(1.01) contrast(1.01);
  }
  to {
    clip-path: polygon(18% 0, 40.8% 0, 40.8% 100%, 18% 100%);
    filter: blur(0) brightness(1) contrast(1);
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes curtainFoldDrift {
  from {
    background-position: -18px 0;
    opacity: .22;
  }
  50% {
    opacity: .5;
  }
  to {
    background-position: 8px 0;
    opacity: .34;
  }
}

@keyframes curtainLeadingFold {
  0% {
    opacity: .38;
    transform: translateX(-22px);
  }
  62% {
    opacity: .58;
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

@keyframes doorPanelOpen {
  from {
    transform: rotateY(0deg) translateX(0);
  }
  to {
    transform: rotateY(-16deg) translateX(-2%);
  }
}

@keyframes climateFlow {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 0, 76px 0;
  }
}

@keyframes identityPulse {
  from {
    transform: scale(.96);
    opacity: .55;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes audioPulse {
  from {
      background-size: 112% 112%;
    }
    to {
      background-size: 100% 100%;
  }
}
