.hang-section {
  padding: clamp(50px, 7vw, 96px) 6.2% clamp(42px, 6vw, 78px);
  border-bottom: 1px solid var(--rule);
}
.hang-section h2 {
  font-family: var(--typeface);
  font-size: clamp(34px, 5.1vw, 71px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
  margin: 15px 0 12px;
}
.hang-intro, .hang-conclusion {
  max-width: 570px;
  color: var(--muted);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.8;
}
.hang-intro { margin: 0 0 clamp(20px, 3vw, 32px); }
.hang-conclusion { margin: clamp(16px, 2.5vw, 28px) 0 0; }
.hang-stage {
  --tag-duration: 840ms;
  --tag-ease: cubic-bezier(.2, .74, .25, 1);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 395px;
}
.hang-slot { position: relative; --drop: 88px; --rest-lean: -3deg; }
.hang-slot:nth-child(2) { --drop: 135px; --rest-lean: 2deg; }
.hang-slot:nth-child(3) { --drop: 106px; --rest-lean: -2deg; }
.hang-cord {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: #6e6253;
  stroke-width: .85px;
  stroke-linecap: round;
}
.hang-slot:not([data-measured])::before {
  content: "";
  position: absolute;
  left: 50%;
  height: var(--drop);
  border-left: 1px solid #6e6253;
}
.hang-origin {
  position: absolute;
  left: 50%;
  top: calc(var(--drop) - 10px);
  transform: translateX(-50%);
  width: min(65%, 148px);
  aspect-ratio: .63;
}
.hang-arrival, .hang-travel, .hang-hand, .hang-turn { position: absolute; inset: 0; transform-style: preserve-3d; }
.hang-travel {
  transition: transform var(--tag-duration) var(--tag-ease);
  transform: translate3d(var(--open-x, 0px), var(--open-y, 0px), 0) scale(var(--open-scale, 1));
  perspective: 1000px;
}
.hang-hand {
  transform-origin: 50% 10px;
  transform: translate3d(var(--hand-x, 0px), var(--hand-y, 0px), 0) rotate(var(--hand-lean, var(--rest-lean)));
}
.hang-turn { transition: transform var(--tag-duration) var(--tag-ease); }
.hang-slot.is-open { z-index: 4; }
.hang-slot.is-returning { z-index: 3; }
.hang-slot.is-open .hang-turn { transform: rotateY(180deg); }
.hang-slot.is-open .hang-hand, .hang-slot.is-returning .hang-hand { pointer-events: none; }
.hang-slot.is-open .hang-back { pointer-events: auto; }
.hang-front, .hang-back {
  position: absolute;
  border: 1px solid #363532;
  border-right-color: #514d48;
  border-bottom-color: #514d48;
  border-radius: 0;
  color: #f8f5ee;
  background: #242322;
  box-shadow: 2px 4px 9px #17171526;
  backface-visibility: hidden;
}
.hang-front {
  inset: 0;
  width: 100%;
  font-family: inherit;
  padding: 5% 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.hang-front:active { cursor: grabbing; }
.hang-front::before, .hang-back::before {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #968778;
  box-shadow: inset 0 1px 2px #1c1a19;
}
.hang-name {
  font-size: clamp(9px, 1.12vw, 13px);
  font-weight: 500;
  letter-spacing: .035em;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .36em;
}
.hang-back {
  inset: 0;
  overflow: auto;
  padding: calc(40px / var(--read-scale, 1)) calc(20px / var(--read-scale, 1))
    calc(24px / var(--read-scale, 1));
  transform: rotateY(180deg);
  pointer-events: none;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
.hang-back h3 {
  margin: 0 0 calc(12px / var(--read-scale, 1));
  font-size: calc(21px / var(--read-scale, 1));
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.13;
}
.hang-back p {
  font-size: calc(14px / var(--read-scale, 1));
  line-height: 1.55;
  margin: 0 0 calc(16px / var(--read-scale, 1));
}
.hang-back a {
  display: inline-block;
  padding: calc(4px / var(--read-scale, 1)) 0 calc(6px / var(--read-scale, 1));
  border-bottom: 1px solid currentColor;
  text-transform: uppercase;
  font-size: calc(9px / var(--read-scale, 1));
  letter-spacing: .1em;
}
.hang-front:focus-visible, .hang-back :focus-visible { outline: 1px solid #e9ddd0; outline-offset: -4px; }
.hang-stage[data-awaiting] .hang-arrival { opacity: 0; transform: translateY(-46px); }
@media (max-width: 700px) {
  .hang-section { padding-inline: 3%; }
  .hang-stage { min-height: 344px; }
  .hang-stage:has(.is-open, .is-returning) { overflow: clip; }
  .hang-back {
    padding: calc(30px / var(--read-scale, 1)) calc(14px / var(--read-scale, 1))
      calc(16px / var(--read-scale, 1));
  }
  .hang-back h3 { font-size: calc(20px / var(--read-scale, 1)); }
  .hang-back p {
    font-size: calc(16px / var(--read-scale, 1));
    line-height: 1.45;
  }
  .hang-back a { font-size: calc(11px / var(--read-scale, 1)); }
  .hang-origin { width: min(96%, 115px); }
  .hang-slot { --drop: 56px; }
  .hang-slot:nth-child(2) { --drop: 101px; }
  .hang-slot:nth-child(3) { --drop: 75px; }
  .hang-name { font-size: clamp(7.5px, 2.35vw, 10px); letter-spacing: .015em; }
}
@media (prefers-reduced-motion: reduce) {
  .hang-stage { --tag-duration: 0ms; }
  .hang-stage[data-awaiting] .hang-arrival { opacity: 1; transform: none; }
}

.hang-tap-hint {
  position: absolute;
  inset: auto auto 14% 50%;
  width: 20px;
  height: 20px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}
.hang-tap-ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .hang-tap-hint.is-playing { animation: hang-tap-appearance 2.5s ease-in-out both; }
  .hang-tap-hint.is-playing .hang-tap-hand { animation: hang-tap-gesture 2.5s ease-in-out both; }
  .hang-tap-hint.is-playing .hang-tap-ring { animation: hang-tap-ripple 2.5s ease-out both; }
  .hang-slot:nth-child(2) { --hang-tap-delay: 180ms; }
  .hang-slot:nth-child(3) { --hang-tap-delay: 360ms; }
  .hang-tap-hint.is-playing,
  .hang-tap-hint.is-playing .hang-tap-hand,
  .hang-tap-hint.is-playing .hang-tap-ring {
    animation-delay: var(--hang-tap-delay, 0ms);
  }
}
@keyframes hang-tap-appearance {
  0%, 100% { opacity: 0; }
  15%, 82% { opacity: .87; }
}
@keyframes hang-tap-gesture {
  0%, 20%, 48%, 59%, 85%, 100% { transform: translateY(0); }
  35%, 72% { transform: translateY(-4px); }
}
@keyframes hang-tap-ripple {
  0%, 34%, 71% { opacity: 0; transform: scale(.55); }
  36%, 73% { opacity: .72; transform: scale(.65); }
  52%, 68%, 90%, 100% { opacity: 0; transform: scale(1.3); }
}
