/* On mobile, keep the whole headline readable during its entrance. */
@media (max-width: 540px) {
  html[data-enter] .hero #hero-title { animation: none; }
  .hero h1[data-cut-title] .cut-glyph { transform: none !important; }
}
@media screen and (max-width: 540px) and (prefers-reduced-motion: no-preference) {
  #hero-title:not([data-cut-title]) > .title-line { animation: headline-settle 320ms ease-out; }
  #hero-title > .title-line:first-child { --headline-offset: 7px; }
  #hero-title > .title-line:last-child { --headline-offset: -7px; }
}
@keyframes headline-settle {
  from { transform: translateY(var(--headline-offset)); }
  to { transform: translateY(0); }
}

/* Desktop vertical cut. Ordinary text remains the no-JS fallback. */
.hero #hero-title[data-cut-title] { animation:none; }
.hero #hero-title[data-cut-title]>.title-line { overflow:hidden; overflow:clip; }
.hero h1[data-cut-title] .cut-word {
  display:inline-block;
  overflow:hidden;
  overflow:clip;
  vertical-align:top;
  white-space:nowrap;
  padding:.12em .08em .15em;
  margin:-.12em -.08em -.15em;
}
.hero h1[data-cut-title] .cut-glyph { display:inline-block; }
.hero h1[data-cut-title] .brand-word {
  background:none;
  -webkit-text-fill-color:inherit;
}
.hero h1[data-cut-title] .cut-brand {
  background:linear-gradient(110deg,#6e4cdf,#4842be);
  background-size:700% 100%;
  background-position:var(--cut-position,0%) 50%;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
@media(prefers-reduced-motion:reduce) {
  .hero h1[data-cut-title] .cut-glyph { transform:none!important; }
}
@media print {
  .hero h1[data-cut-title] .cut-glyph { transform:none!important; }
}
