.intro-screen { display: none; }
html[data-intro-phase="loading"], html[data-intro-phase="reveal"] { overflow: hidden; }
html:is([data-intro-phase="loading"], [data-intro-phase="reveal"]) .intro-screen {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  isolation: isolate;
  cursor: progress;
  --runner-height: 50vmin;
}
.intro-masks { position: absolute; pointer-events: none; }
.intro-sheet { position: absolute; inset: 0; overflow: hidden; }
.intro-white { background: #fff; clip-path: url(#intro-mask-white); }
.intro-orange { background: var(--orange); clip-path: url(#intro-mask-orange); }
.intro-ink { background: var(--brown); clip-path: url(#intro-mask-ink); }
.intro-track {
  position: absolute;
  top: calc(50% + var(--runner-height) * .5);
  left: 0;
  width: 100%;
  height: clamp(3px,.5vw,11px);
  background: var(--orange);
  transform: translate3d(-100%,0,0);
  will-change: transform;
}
.intro-runner {
  position: absolute;
  right: calc(-.18 * var(--runner-height));
  bottom: 85%;
  width: calc(1.016 * var(--runner-height));
  height: var(--runner-height);
  max-width: none;
  object-fit: fill;
}
.intro-runner:not([src]) { visibility: hidden; }
.intro-percent {
  position: absolute;
  top: 100%;
  right: 0;
  font: 800 clamp(30px,5vw,108px)/1 var(--sans);
  letter-spacing: -.055em;
  color: var(--orange);
}
.intro-skip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: .65rem 1rem;
  color: var(--brown);
  border: 0;
  border-radius: 24px;
  background: white;
  transform: translateY(-200%);
}
.intro-skip:focus-visible { transform: none; }

/* Start the stage choreography from the moment the first curtain moves. */
html[data-intro-phase] .hero h1 .line-mask,
html[data-intro-phase] .hero-sub .line-mask { overflow: visible; }
html[data-intro-phase] .hero-copy .line-mask > span { transform-origin: 0 0; }
html[data-intro-phase="loading"] :is(.hero-art,.hero-action,.hero-copy .line-mask > span,.scroll-rail),
html[data-intro-phase="loading"] .floating-header { opacity: 0; animation: none; }

html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .hero-copy .line-mask > span {
  animation: intro-type-in 1.05s cubic-bezier(.18,.97,.23,1) both;
}
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .hero h1 .line-mask:nth-child(1)>span { animation-delay: .36s; }
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .hero h1 .line-mask:nth-child(2)>span { animation-delay: .46s; }
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .hero h1 .line-mask:nth-child(3)>span {
  animation: intro-type-in 1.05s .56s cubic-bezier(.18,.97,.23,1) both, intro-track-in .8s 3.06s cubic-bezier(.5,.3,.7,1) both;
}
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .hero-sub .line-mask:nth-child(1)>span { animation-delay: .68s; }
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .hero-sub .line-mask:nth-child(2)>span { animation-delay: .78s; }
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .hero-action {
  animation: intro-button-in .62s .93s cubic-bezier(.18,.88,.2,1) both;
}
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .hero-art {
  animation: intro-character-in .86s .82s cubic-bezier(.19,.95,.23,1) both;
}
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .floating-header {
  animation: intro-nav-in .71s .63s cubic-bezier(.16,.82,.23,1) backwards;
}
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) :is(.header-tools,.header-cta) {
  animation: intro-nav-controls .34s 1.27s ease-out backwards;
}
html:is([data-intro-phase="reveal"],[data-intro-phase="done"]) .scroll-rail {
  animation: intro-nav-controls .45s .72s ease-out backwards;
}
@keyframes intro-type-in {
  from { opacity: 0; transform: translateY(.57em) scale(.8,1.8); }
  62% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes intro-track-in { from { letter-spacing: .018em; } to { letter-spacing: -.064em; } }
@keyframes intro-character-in {
  from { transform: translate3d(50vw,0,0); }
  to { transform: translate3d(0,0,0); }
}
@keyframes intro-button-in {
  from { opacity: 0; transform: translateY(.8em) scale(.85,1.4); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-nav-in {
  from { clip-path: inset(0 40% 0 40% round 80px); }
  to { clip-path: inset(0 0 0 0 round 80px); }
}
@keyframes intro-nav-controls { from { opacity: 0; } to { opacity: 1; } }
html[data-intro-phase="skipped"] .hero :is(.hero-art,.hero-action,.line-mask > span) { animation: none; }
@media (orientation: portrait) {
  html:is([data-intro-phase="loading"], [data-intro-phase="reveal"]) .intro-screen { --runner-height: 55vmin; }
  .intro-track { height: 1.35vw; }
  .intro-percent { font-size: clamp(32px,9.5vw,65px); }
}
@media (prefers-reduced-motion: reduce) {
  html:is([data-intro-phase="loading"], [data-intro-phase="reveal"]) .intro-screen { display: none; }
  .hero :is(.hero-art,.hero-action,.line-mask > span) { animation: none !important; }
}

