.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  height: 100svh;
  max-height: 1200px;
  padding: 120px 4vw;
  /* 헤더와 같은 가장자리: 폭의 4%, 화면이 넓으면 1480px 안쪽 */
  --hero-edge: max(4%, (100% - var(--header-max)) / 2);
  background: #000;
  color: #fff;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-kicker,
.hero-coordinates {
  position: absolute;
  top: 132px;
  margin: 0;
  font: 12px/1.6 var(--font-en);
  color: var(--color-text-on-dark-strong);
  text-shadow: 0 1px 8px #000;
}
.hero-kicker {
  left: var(--hero-edge);
  letter-spacing: 0.08em;
}
.hero-coordinates {
  right: var(--hero-edge);
  letter-spacing: 0.06em;
  text-align: right;
}

.hero-heading {
  z-index: 1;
  width: 100%;
  text-align: center;
}
.hero-heading h1 {
  margin: 0;
  font-family: var(--font-jp);
  font-size: clamp(62px, 9.2vw, 158px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.055em;
  text-shadow: 0 1px 2px #0008;
}
.hero-heading h1 span {
  display: block;
  white-space: nowrap;
}
/* WebGL이 제목을 텍스처로 다시 그리면 실제 H1은 투명하게 두고 DOM에만 남긴다 */
.hero[data-renderer="webgl"] .hero-heading h1 {
  color: transparent;
  text-shadow: none;
}
.hero-subcopy {
  display: inline-block;
  margin: 26px auto 0;
  padding: 4px 10px;
  background: #0009;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px #000;
}

.hero-bottom {
  position: absolute;
  bottom: 27px;
  left: var(--hero-edge);
  right: var(--hero-edge);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  font-family: var(--font-en);
}
.hero-scroll,
.hero-motion-control {
  min-height: var(--tap-min);
  padding: 0 17px;
  color: #fff;
  background: #000c;
  border: 1px solid #ffffff70;
  border-radius: 30px;
  font-size: 12px;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-left: auto;
  letter-spacing: 0.05em;
}
.hero-motion-control {
  display: grid;
  place-items: center;
  width: var(--tap-min);
  padding: 0;
  backdrop-filter: blur(8px);
}
.hero-motion-control svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.hero-motion-control .hero-motion-play,
.hero-motion-control.is-paused .hero-motion-pause {
  display: none;
}
.hero-motion-control.is-paused .hero-motion-play {
  display: block;
}
/* display: grid가 hidden 속성을 덮으므로 다시 숨긴다 (WebGL을 쓸 수 없을 때 renderer.js가 hidden을 켠다) */
.hero-motion-control[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .hero {
    min-height: 680px;
    max-height: 1000px;
    padding: 110px 6vw;
  }
  .hero-kicker,
  .hero-coordinates {
    top: 118px;
  }
  /* 12px에서 오른쪽 좌표와 겹치지 않도록 키커를 두 줄로 내린다 */
  .hero-kicker {
    left: 6vw;
    max-width: 46vw;
  }
  .hero-coordinates {
    right: 6vw;
  }
  .hero-heading h1 {
    font-size: clamp(30px, 10.2vw, 70px);
    line-height: 1.36;
  }
  .hero-subcopy {
    margin-top: 20px;
    padding: 4px 7px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .hero-bottom {
    left: 6vw;
    right: 6vw;
    bottom: 24px;
    gap: 15px;
  }
  .hero-scroll {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion-control {
    display: none;
  }
}
