.gy-house-story {
  position: relative;
  overflow: hidden;
  padding: 24px max(20px, calc((100vw - 1280px) / 2)) clamp(92px, 9vw, 136px);
  color: #fff;
  background: #06111d;
}

.gy-house-story__inner {
  width: min(100%, 1280px);
  min-width: 0;
  margin-inline: auto;
}

.gy-house-story__inner * {
  box-sizing: border-box;
  min-width: 0;
}

.gy-house-story__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gy-house-story__visual {
  --gy-house-enter-x: -11%;
  --gy-house-enter-y: 2%;
  --gy-house-exit-x: 9%;
  --gy-house-exit-y: -2%;
  --gy-house-focus-x: 0%;
  --gy-house-focus-y: 0%;
  --gy-house-start-scale: 1.36;
  --gy-house-end-scale: 1.08;
  --gy-house-photo-brightness: .76;
  position: relative;
  min-height: 680px;
  overflow: hidden;
  scroll-margin-top: 152px;
  border-radius: 4px;
  background: #0a1722;
  box-shadow: 0 28px 70px rgba(25, 35, 40, .2);
  isolation: isolate;
}

.gy-house-story__photos,
.gy-house-story__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gy-house-story__photos {
  z-index: 1;
  overflow: hidden;
  background: #0a1722;
}

.gy-house-story__photo {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: blur(0) brightness(var(--gy-house-photo-brightness)) saturate(.82) contrast(1.08);
  transform: translate3d(0, 0, 0) scale(1.08);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform, filter, opacity;
}

.gy-house-story__photo.is-active {
  z-index: 1;
  opacity: 1;
  animation: gyHouseDroneShot 4.6s cubic-bezier(.16, 1, .3, 1) both;
}

.gy-house-story__photo.is-leaving {
  z-index: 2;
  opacity: 1;
  animation: gyHouseDroneExit .86s cubic-bezier(.55, 0, .18, 1) both;
}

.gy-house-story__visual[data-house-flight="reverse"] {
  --gy-house-enter-x: 11%;
  --gy-house-exit-x: -9%;
}

.gy-house-story__visual[data-house-stage="0"] {
  --gy-house-enter-x: -13%;
  --gy-house-focus-x: 2%;
  --gy-house-start-scale: 1.4;
  --gy-house-end-scale: 1.07;
  --gy-house-photo-brightness: .82;
}

.gy-house-story__visual[data-house-stage="1"] {
  --gy-house-enter-x: 12%;
  --gy-house-focus-x: -2%;
  --gy-house-start-scale: 1.38;
}

.gy-house-story__visual[data-house-stage="2"] {
  --gy-house-enter-y: -9%;
  --gy-house-exit-y: 7%;
  --gy-house-focus-y: 1%;
  --gy-house-start-scale: 1.42;
}

.gy-house-story__visual[data-house-stage="3"] {
  --gy-house-enter-x: -14%;
  --gy-house-focus-x: 3%;
  --gy-house-start-scale: 1.44;
  --gy-house-photo-brightness: .72;
}

.gy-house-story__visual[data-house-stage="4"] {
  --gy-house-enter-x: 13%;
  --gy-house-focus-x: -2%;
  --gy-house-start-scale: 1.4;
  --gy-house-photo-brightness: .78;
}

.gy-house-story__visual[data-house-stage="5"] {
  --gy-house-enter-y: 10%;
  --gy-house-exit-y: -7%;
  --gy-house-focus-y: -1%;
  --gy-house-start-scale: 1.38;
  --gy-house-photo-brightness: .76;
}

.gy-house-story__visual[data-house-stage="6"] {
  --gy-house-enter-x: -12%;
  --gy-house-focus-x: 2%;
  --gy-house-start-scale: 1.4;
  --gy-house-photo-brightness: .72;
}

.gy-house-story__visual[data-house-stage="7"] {
  --gy-house-enter-x: 11%;
  --gy-house-focus-x: -2%;
  --gy-house-start-scale: 1.38;
  --gy-house-photo-brightness: .72;
}

.gy-house-story__shade {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 14, 22, .08), transparent 52%),
    linear-gradient(0deg, rgba(4, 14, 22, .78), transparent 56%);
}

.gy-house-story__flight-flash {
  position: absolute;
  z-index: 4;
  inset: -10%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(225, 239, 242, .2) 48%, transparent 76%);
  mix-blend-mode: screen;
  transform: translate3d(-55%, 0, 0) skewX(-8deg);
}

.gy-house-story__visual.is-flight-transition .gy-house-story__flight-flash {
  animation: gyHouseFlightFlash .92s cubic-bezier(.2, .8, .2, 1);
}

.gy-house-story__panel {
  position: absolute;
  z-index: 6;
  right: 30px;
  bottom: 28px;
  width: min(520px, calc(100% - 60px));
  padding: 22px 24px 20px;
  color: #fff;
  background: linear-gradient(135deg, rgba(5, 18, 29, .18), rgba(5, 18, 29, .05));
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .76);
}

.gy-house-story__panel.is-swapping {
  animation: gyHousePanelSwitch .72s cubic-bezier(.16, 1, .3, 1);
}

.gy-house-story__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.gy-house-story__meta span {
  color: #c8e86f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.gy-house-story__meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gy-house-story__panel h3 {
  margin: 8px 0 7px;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.gy-house-story__panel p {
  min-height: 3.4em;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  line-height: 1.72;
  word-break: keep-all;
}

.gy-house-story__progress {
  height: 2px;
  margin-top: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
}

.gy-house-story__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #c8e86f;
}

.gy-house-story__progress i.is-running {
  animation: gyHouseProgress 4.6s linear forwards;
}

@keyframes gyHouseDroneShot {
  0% {
    opacity: .16;
    filter: blur(18px) brightness(.48) saturate(.65) contrast(1.12);
    transform: translate3d(var(--gy-house-enter-x), var(--gy-house-enter-y), 0) scale(var(--gy-house-start-scale));
  }
  8% { opacity: 1; }
  18% { filter: blur(0) brightness(var(--gy-house-photo-brightness)) saturate(.82) contrast(1.08); }
  100% {
    opacity: 1;
    filter: blur(0) brightness(var(--gy-house-photo-brightness)) saturate(.82) contrast(1.08);
    transform: translate3d(var(--gy-house-focus-x), var(--gy-house-focus-y), 0) scale(var(--gy-house-end-scale));
  }
}

@keyframes gyHouseDroneExit {
  0% {
    opacity: 1;
    filter: blur(0) brightness(var(--gy-house-photo-brightness)) saturate(.82) contrast(1.08);
    transform: translate3d(var(--gy-house-focus-x), var(--gy-house-focus-y), 0) scale(var(--gy-house-end-scale));
  }
  100% {
    opacity: 0;
    filter: blur(20px) brightness(.42) saturate(.62) contrast(1.15);
    transform: translate3d(var(--gy-house-exit-x), var(--gy-house-exit-y), 0) scale(1.34);
  }
}

@keyframes gyHouseFlightFlash {
  0% { opacity: 0; transform: translate3d(-55%, 0, 0) skewX(-8deg); }
  28% { opacity: .42; }
  100% { opacity: 0; transform: translate3d(65%, 0, 0) skewX(-8deg); }
}

@keyframes gyHousePanelSwitch {
  0% { opacity: .25; transform: translate3d(0, 18px, 0); }
  48% { opacity: .68; }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes gyHouseProgress { to { width: 100%; } }

@media (max-width: 920px) {
  .gy-house-story__visual {
    min-height: 720px;
    scroll-margin-top: 118px;
    --gy-house-start-scale: 1.25;
    --gy-house-end-scale: 1.08;
    --gy-house-enter-x: -7%;
    --gy-house-exit-x: 6%;
  }

  .gy-house-story__photo { object-position: center; }
  .gy-house-story__visual[data-house-stage="0"] .gy-house-story__photo[data-house-photo="0"] { object-position: 68% center; }
  .gy-house-story__visual[data-house-stage="1"] .gy-house-story__photo[data-house-photo="1"] { object-position: 58% center; }
  .gy-house-story__visual[data-house-stage="2"] .gy-house-story__photo[data-house-photo="2"] { object-position: 55% center; }
  .gy-house-story__visual[data-house-stage="3"] .gy-house-story__photo[data-house-photo="3"] { object-position: 52% center; }
  .gy-house-story__visual[data-house-stage="4"] .gy-house-story__photo[data-house-photo="4"] { object-position: 50% center; }
  .gy-house-story__visual[data-house-stage="5"] .gy-house-story__photo[data-house-photo="5"] { object-position: 62% center; }
  .gy-house-story__visual[data-house-stage="6"] .gy-house-story__photo[data-house-photo="6"] { object-position: 56% center; }
  .gy-house-story__visual[data-house-stage="7"] .gy-house-story__photo[data-house-photo="7"] { object-position: 66% center; }
}

@media (max-width: 560px) {
  .gy-house-story { padding: 16px 16px 82px; }
  .gy-house-story__visual { width: 100%; min-height: 760px; scroll-margin-top: 126px; }
  .gy-house-story__panel { right: 14px; bottom: 14px; width: calc(100% - 28px); padding: 17px; }
  .gy-house-story__panel h3 { font-size: 21px; }
  .gy-house-story__panel p { font-size: 12.5px; }
  .gy-house-story__meta span { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .gy-house-story__photo.is-active,
  .gy-house-story__photo.is-leaving,
  .gy-house-story__flight-flash,
  .gy-house-story__panel,
  .gy-house-story__progress i { animation: none !important; }
  .gy-house-story__photo.is-active {
    opacity: 1;
    filter: brightness(var(--gy-house-photo-brightness)) saturate(.82) contrast(1.08);
    transform: scale(1.06);
  }
  .gy-house-story__progress i { width: 100%; }
}
