.hanging-page {
  padding: 0;
  justify-content: center;
  background:
    linear-gradient(#00000073, #00000073),
    url('/static/images/whois-hanging-wall.png') center / cover,
    #080d09;
}

.hanging-page::before {
  display: none;
}

.hanging-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  container-type: inline-size;
}

.hanging-heading {
  position: absolute;
  top: 10%;
  left: max(8px, calc(4% - 1cm));
  z-index: 2;
}


html[lang="ko"] .hanging-heading h2 {
  margin: 8px 0 0;
  font: 800 clamp(24px, 3.2cqw, 54px) Georgia, serif !important;
  color: #e8e5d8;
  line-height: 1.1;
}

.hanging-cords {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #9e9379;
  stroke-width: 3;
  pointer-events: none;
  overflow: visible;
  transform: translateY(24px);
}

.hanging-cords .cord-fiber {
  stroke: #ded6bf;
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.hanging-cards {
  position: absolute;
  inset: 0;
  transform: translateY(24px);
}

.hanging-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  transform-origin: 52% 5%;
}

.hanging-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(2px 6px 5px #0006);
}

.hanging-photo-slot {
  position: absolute;
  left: 9%;
  top: 14%;
  width: 82%;
  height: 56%;
  transform: rotate(var(--caption-angle));
  overflow: hidden;
}

.hanging-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[lang="ko"] .hanging-card .hanging-caption {
  position: absolute;
  top: var(--caption-center);
  left: var(--caption-cx);
  width: 92%;
  margin: 0;
  text-align: center;
  font: 800 clamp(12px, 1.55cqw, 26px) Georgia, serif !important;
  color: #141712;
  line-height: 1.05;
  transform: translate(-50%, -50%) rotate(var(--caption-angle));
}

.hanging-contact-copy {
  position: absolute;
  inset: 20% 13% 10%;
  transform: rotate(-2deg);
}

html[lang="ko"] .hanging-contact-copy h3 {
  font: 700 clamp(16px, 2cqw, 34px) Georgia, serif !important;
  margin: 0 0 10%;
  padding-bottom: 5%;
  border-bottom: 1px solid #c5c4b5;
  color: #e0dfd3;
}

.hanging-contact-copy dl {
  margin: 0;
}

.hanging-contact-copy dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 7% 0;
}

html[lang="ko"] .hanging-contact-copy :is(dt, dd) {
  margin: 0;
  color: #d7dacb;
  overflow-wrap: anywhere;
  font: 400 clamp(9px, 0.88cqw, 15px) ui-monospace, monospace !important;
}


.has-entered .hanging-card {
  animation: photo-sway 2.4s var(--delay) ease-in-out both;
}

@keyframes photo-sway {
  0% {
    transform: rotate(-5deg);
  }
  23% {
    transform: rotate(3.5deg);
  }
  47% {
    transform: rotate(-2deg);
  }
  70% {
    transform: rotate(1deg);
  }
  86% {
    transform: rotate(-.4deg);
  }
  100% {
    transform: rotate(0);
  }
}

@media (max-width: 700px) {
  .hanging-page {
    padding: 105px 20px 32px;
  }

  .hanging-scene {
    aspect-ratio: auto;
  }

  .hanging-heading {
    position: relative;
    inset: auto;
    margin-bottom: 32px;
  }

  .hanging-cords {
    display: none;
  }

  .hanging-cards {
    position: relative;
    inset: auto;
    transform: none;
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .hanging-card {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.04;
  }

  .hanging-card::before {
    content: "";
    position: absolute;
    top: 6%;
    left: -8px;
    right: -8px;
    border-top: 2px solid #a69a80;
  }

  .hanging-contact {
    aspect-ratio: 371 / 316;
    align-self: center;
  }

  html[lang="ko"] .hanging-card .hanging-caption {
    font-size: clamp(12px, 3.4vw, 22px) !important;
  }

  html[lang="ko"] .hanging-contact-copy h3 {
    font-size: clamp(16px, 4vw, 26px) !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  .has-entered .hanging-card {
    animation: none;
  }
}

@media (min-width: 701px) {
  .hanging-scene {
    max-width: calc((100svh - 100px) * 1.777);
    margin-inline: auto;
    transform: translateY(-6%);
  }
}
