/* The One Named Will — intro.theonenamedwill.com (scroll-scrub typewriter) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  color: #000000;
  background: #ffffff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Tall scroll track — progress scrubs typing (pattern: americanrose.k-wired.com arc-scroll-hero) */
.intro-scroll {
  position: relative;
  height: 580vh;
  width: 100%;
  background: #ffffff;
}

.intro-scroll__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.intro-scroll__stage {
  position: relative;
  width: min(92vw, 42rem);
  padding: 1.5rem;
  text-align: center;
}

.intro-scroll__line {
  margin: 0;
  font-size: clamp(1.35rem, 4.8vw, 2.35rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.intro-scroll__text {
  display: inline;
  white-space: pre-wrap;
  word-break: break-word;
}

.intro-scroll__cursor {
  display: inline-block;
  width: 0.06em;
  min-width: 2px;
  height: 0.92em;
  margin-left: 0.04em;
  vertical-align: -0.08em;
  background: #000000;
  animation: intro-cursor-blink 1s step-end infinite;
}

.intro-scroll__cursor.is-hidden {
  visibility: hidden;
  animation: none;
}

@keyframes intro-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

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

.intro-scroll__cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 12px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 1.5px solid #000000;
  border-radius: 0;
  background: transparent;
  color: #000000;
  font-family: inherit;
  font-size: clamp(0.8rem, 2.6vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: background-color 200ms ease, color 200ms ease;
}

.intro-scroll__cta.is-visible {
  pointer-events: auto;
}

.intro-scroll__cta:hover,
.intro-scroll__cta:focus-visible {
  background: #000000;
  color: #ffffff;
  outline: none;
}

.intro-scroll__cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
}

.intro-noscript {
  max-width: 36rem;
  margin: 4rem auto;
  padding: 1.5rem;
  text-align: center;
  line-height: 1.6;
}

.intro-noscript a {
  color: #000000;
}

/* Reduced motion: show full sequence without scroll scrubbing */
@media (prefers-reduced-motion: reduce) {
  .intro-scroll {
    height: auto;
    min-height: 100svh;
  }

  .intro-scroll__sticky {
    position: relative;
    min-height: 100svh;
  }

  .intro-scroll__line {
    min-height: auto;
  }

  .intro-scroll__cursor {
    display: none;
  }

  .intro-scroll__cta {
    position: static;
    transform: none;
    margin-top: 2rem;
    opacity: 1;
    pointer-events: auto;
  }
}
