/* Preserve the heading as real, selectable text, with one accessible name. */
.hero-line {
  display: block;
  position: relative;
  width: max-content;
  max-width: 100%;
  padding: .12em .04em .12em 0;
  margin-block: -.12em;
  overflow: clip;
  white-space: nowrap;
  perspective: 800px;
}
.hero-word { display: inline-block; transform-origin: 50% 100%; }
.hero-line-accent {
  padding-bottom: .3em;
  margin-bottom: -.3em;
  overflow: visible;
}
.hero-line-accent .hero-word {
  color: var(--blue);
  background: linear-gradient(110deg, #252822 0%, #2346dc 32%, #52682d 58%, #2346dc 80%, #252822 100%);
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-underline {
  display: block;
  position: absolute;
  width: 93%;
  height: .2em;
  bottom: .08em;
  left: 0;
  overflow: visible;
  pointer-events: none;
}
.hero-underline path { stroke: #2346dc; stroke-width: 1.5; stroke-linecap: round; opacity: .6; }
.hero-photo { isolation: isolate; }
.hero-photo > .hero-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.hero-photo.webgl-ready > .hero-webgl { opacity: 1; }
.hero-photo:after { z-index: 1; pointer-events: none; }
.hero-photo figcaption, .hero-photo .photo-corner { z-index: 2; }
.hero-photo .photo-corner { transition: transform .5s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s; }
@media (hover: hover) and (pointer: fine) {
  .hero-photo:hover .photo-corner { transform: rotate(45deg); background: #2346dcbb; border-color: #ffffffaa; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-word { animation: hero-word-arrive 1.15s cubic-bezier(.16,1,.3,1) both; }
  .word-1 { animation-delay: .05s; }
  .word-2 { animation-delay: .12s; }
  .word-3 { animation-delay: .2s; }
  .word-4 { animation-delay: .27s; }
  .hero-line-accent .hero-word { animation: hero-word-arrive 1.25s cubic-bezier(.16,1,.3,1) both, hero-ink-flow 12s ease-in-out infinite; }
  .hero-line-accent .word-5 { animation-delay: .35s, 1.6s; }
  .hero-line-accent .word-6 { animation-delay: .42s, 1.6s; }
  .hero-underline path { stroke-dasharray: 1; animation: hero-underline-draw 1.3s cubic-bezier(.2,.7,.2,1) .8s both; }
  .hero-copy > .eyebrow { animation: hero-copy-arrive .9s ease .05s both; }
  .hero-description { animation: hero-copy-arrive 1s cubic-bezier(.16,1,.3,1) .45s both; }
  .hero-actions { animation: hero-copy-arrive 1s cubic-bezier(.16,1,.3,1) .58s both; }
  .hero-footnote { animation: hero-copy-arrive 1s cubic-bezier(.16,1,.3,1) .7s both; }
  .hero-photo { animation: hero-photo-arrive 1.4s cubic-bezier(.16,1,.3,1) .15s both; }
  .hero-photo figcaption { animation: hero-copy-arrive 1s cubic-bezier(.16,1,.3,1) .85s both; }
}
@keyframes hero-word-arrive {
  from { transform: translate3d(0,110%,0) rotateX(-35deg) rotateZ(2deg); opacity: 0; filter: blur(4px); }
  to { transform: translate3d(0,0,0) rotateX(0) rotateZ(0); opacity: 1; filter: blur(0); }
}
@keyframes hero-copy-arrive { from { opacity: 0; transform: translate3d(0,16px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes hero-photo-arrive { from { clip-path: inset(9% 0 9% 0 round 8px); opacity: 0; transform: translate3d(0,24px,0) scale(.97); } to { clip-path: inset(0 round 8px); opacity: 1; transform: translate3d(0,0,0) scale(1); } }
@keyframes hero-ink-flow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes hero-underline-draw { from { stroke-dashoffset: 1; opacity: 0; } to { stroke-dashoffset: 0; opacity: .6; } }
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .hero-word, .hero-photo, .hero-photo figcaption, .hero-copy > .eyebrow, .hero-description, .hero-actions, .hero-footnote, .hero-underline path { animation: none !important; }
  .hero-photo > .hero-webgl { display: none; }
  .hero-line-accent .hero-word { background: none; -webkit-text-fill-color: currentColor; color: var(--ink); }
}
@media print {
  .hero-word, .hero-photo, .hero-photo figcaption, .hero-copy > .eyebrow, .hero-description, .hero-actions, .hero-footnote, .hero-underline path { animation: none !important; }
  .hero-photo > .hero-webgl { display: none; }
  .hero-line-accent .hero-word { background: none; -webkit-text-fill-color: currentColor; color: black; }
}
