.home-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
}

.home-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--topbar-height));
  min-height: calc(100svh - var(--topbar-height));
  padding: var(--space-6) clamp(22px, 8vw, 140px) var(--space-7);
}

.home-copy {
  width: min(980px, 100%);
  transform: translateY(-1vh);
}

.home-copy h1 {
  margin: 0;
  font: 560 clamp(112px, 21vw, 282px) / 0.84 var(--font-content);
  letter-spacing: -0.052em;
  animation: hello-in var(--duration-hero) var(--ease-sharp) 40ms both;
}

.home-copy h1 span {
  color: var(--accent-text);
}

@keyframes hello-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    filter: blur(8px);
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    clip-path: inset(-10%);
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes kicker-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}

.word-stage {
  --word-font-size: clamp(22px, 3.2vw, 40px);
  position: relative;
  min-height: 112px;
  margin-top: 30px;
  overflow: hidden;
  font-size: var(--word-font-size);
  line-height: 1.25;
  animation: word-stage-in var(--duration-scene) var(--ease-out) 520ms both;
}

@keyframes word-stage-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px);
  }
}

.typed-text {
  display: inline;
  color: var(--text-soft);
  font: 520 var(--word-font-size) / 1.2 var(--font-content);
  letter-spacing: -0.018em;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.typing-caret {
  display: inline-block;
  width: max(1px, 0.045em);
  height: 0.9em;
  margin-left: 0.05em;
  background: var(--accent);
  box-shadow: 0 0 10px rgb(var(--accent-rgb) / 55%);
  vertical-align: -0.05em;
}

.typing-caret[hidden] {
  display: none;
}

.word-stage.is-holding .typing-caret {
  animation: typing-caret-blink 820ms steps(1, end) infinite;
}

@keyframes typing-caret-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

.home-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: 38px;
  animation: kicker-in var(--duration-scene) var(--ease-out) 720ms both;
}

.error-page .home-copy h1 {
  color: var(--accent-text);
}

@media (max-width: 620px) {
  .home-main {
    min-height: calc(100svh - var(--topbar-height-mobile));
    padding: var(--space-3) 22px var(--space-5);
  }

  .home-copy h1 {
    font-size: clamp(96px, 31vw, 146px);
  }

  .word-stage {
    --word-font-size: clamp(22px, 6.6vw, 30px);
    min-height: 142px;
    margin-top: 24px;
  }

  .typed-text {
    letter-spacing: -0.012em;
  }

  .home-actions {
    gap: var(--space-5);
    margin-top: 26px;
  }
}

