* {
  box-sizing: border-box;
}

html {
  background: #000;
  scrollbar-width: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  overscroll-behavior-y: none;
}

.scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Initial size only; JS locks pixel dimensions until a width change/rotation. */
  height: 100vh;
  height: 100lvh;
  isolation: isolate;
  overflow: hidden;
  background: #000;
  cursor: grab;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.scene.is-dragging {
  cursor: grabbing;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Darken by compositing a solid layer; the large image stays unchanged. */
.shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0;
  transform: translateZ(0);
  pointer-events: none;
  will-change: opacity;
}

.copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  width: min(92vw, 1100px);
  height: fit-content;
  margin: auto;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  text-shadow: 0 3px 30px rgb(0 0 0 / 42%);
  pointer-events: none;
  will-change: opacity, transform;
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 8.5vw, 7.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

p {
  margin: clamp(18px, 2.7vw, 30px) 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: clamp(1rem, 2.15vw, 1.65rem);
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: 0.015em;
}

@media (max-width: 640px) {
  .hero-image {
    object-position: center center;
  }

  h1 {
    letter-spacing: -0.045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .copy {
    transform: none;
  }
}
