#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  contain: strict;
}
#home .intro-copy { position: relative; z-index: 1; }
#page-rail {
  position: fixed;
  z-index: 45;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
#page-rail[hidden] { display: none !important; }
.rail-button {
  display: flex;
  align-items: center;
  position: relative;
  width: 39px;
  height: 33px;
  border: 0;
  padding: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.rail-tick {
  display: block;
  width: 11px;
  height: 1px;
  background: #b2bbc2;
  opacity: .68;
  transition: width .3s ease, background .3s ease, opacity .3s ease;
}
.rail-button.is-current .rail-tick,
.rail-button:hover .rail-tick,
.rail-button:focus-visible .rail-tick { width: 23px; background: #3d4b58; opacity: .95; }
.rail-label {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translate(-3px, -50%);
  display: block;
  padding: 4px 8px;
  border-radius: 5px;
  color: #5b6873;
  background: rgb(247 251 255 / 85%);
  white-space: nowrap;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif);
  font-size: 10px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s ease;
}
.rail-button:hover .rail-label,
.rail-button:focus-visible .rail-label { opacity: 1; transform: translate(0, -50%); }
#hero-name .hero-char {
  display: inline-block;
  color: inherit;
  line-height: inherit;
  animation: hero-character-in .6s cubic-bezier(.2, .7, .3, 1) both;
}
#hero-name .char-step-0 { animation-delay: 0s; }
#hero-name .char-step-1 { animation-delay: .04s; }
#hero-name .char-step-2 { animation-delay: .08s; }
#hero-name .char-step-3 { animation-delay: .12s; }
#hero-name .char-step-4 { animation-delay: .16s; }
#hero-name .char-step-5 { animation-delay: .20s; }
#hero-name .char-step-6 { animation-delay: .24s; }
#hero-name .char-step-7 { animation-delay: .28s; }
#hero-name .char-step-8 { animation-delay: .32s; }
#hero-name .char-step-9 { animation-delay: .36s; }
#hero-name .char-step-10 { animation-delay: .40s; }
#hero-name .char-step-11 { animation-delay: .44s; }
#hero-name .char-step-12 { animation-delay: .48s; }
#hero-name .char-step-13 { animation-delay: .52s; }
#hero-name .char-step-14 { animation-delay: .56s; }
#hero-name .char-step-15 { animation-delay: .60s; }
#hero-name .char-step-16 { animation-delay: .64s; }
#hero-name .char-step-17 { animation-delay: .68s; }
#hero-name .char-step-18 { animation-delay: .72s; }
#hero-name .char-step-19 { animation-delay: .76s; }
#hero-name .char-step-20 { animation-delay: .80s; }
#hero-name .char-step-21 { animation-delay: .84s; }
#hero-name .char-step-22 { animation-delay: .88s; }
#hero-name .char-step-23 { animation-delay: .92s; }
#hero-name .char-step-24 { animation-delay: .96s; }
#hero-name .char-step-25 { animation-delay: 1s; }
#hero-name .char-step-26 { animation-delay: 1.04s; }
#hero-name .char-step-27 { animation-delay: 1.08s; }
#hero-name .char-step-28 { animation-delay: 1.12s; }
#hero-name .char-step-29 { animation-delay: 1.16s; }
#hero-name .char-step-30 { animation-delay: 1.2s; }
@keyframes hero-character-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.motion-reveal { opacity: 0; transform: translateY(16px); }
.motion-reveal.is-shown {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .7s cubic-bezier(.22, .75, .35, 1);
}
@media (max-width: 1000px) { #page-rail { left: 12px; } }
@media (max-width: 760px) { #page-rail { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  #hero-name .hero-char { animation: none; opacity: 1; transform: none; }
  .motion-reveal, .motion-reveal.is-shown { opacity: 1; transform: none; transition: none; }
  .rail-tick, .rail-label { transition: none; }
}
