:root {
  color-scheme: light;
  --stack-progress: 0;
  --ink: #000;
  --edge: clamp(1rem, 3vw, 3rem);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #000;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  min-width: 320px;
  margin: 0;
  background: #000;
  color: var(--ink);
  overscroll-behavior-y: none;
}

.stack {
  position: relative;
}

.panel {
  position: sticky;
  top: 0;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: var(--edge);
  overflow: clip;
  scroll-snap-align: start;
  transform: translateZ(0);
}

.panel--hello {
  z-index: 1;
  background: linear-gradient(
    180deg,
    #000 0%,
    #1c1c1c 22%,
    #8a8a8a 62%,
    #fff 100%
  );
}

.panel--domain {
  z-index: 2;
  background: linear-gradient(
    135deg,
    #000 0%,
    #2b2b2b 28%,
    #c8c8c8 74%,
    #fff 100%
  );
  box-shadow: 0 -2rem 5rem rgb(0 0 0 / 18%);
}

.word {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 13.5vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.072em;
  line-height: 0.82;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
  will-change: transform;
}

.panel--hello .word {
  transform: translate3d(
      0,
      calc(var(--stack-progress) * -7svh),
      0
    )
    scale(calc(1 - var(--stack-progress) * 0.08));
}

.panel--domain .word {
  font-size: clamp(2.7rem, 11.25vw, 11rem);
  transform: translate3d(
    0,
    calc((1 - var(--stack-progress)) * 5svh),
    0
  );
}

@media (max-width: 560px) {
  .word {
    font-size: clamp(3.2rem, 18vw, 6rem);
  }

  .panel--domain .word {
    font-size: clamp(2.75rem, 15vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .word {
    transform: none !important;
  }
}
