/* Flowing glass and editorial typography. Original artwork stays as fallback. */
.hero, [data-fluid-background] { isolation: isolate; }
.hero__canvas {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.has-fluid-background .hero__canvas { opacity: 1; }
[data-fluid-background] .hero__canvas { z-index: 0; }
.hero__canvas--mirrored { scale: -1 1; }
.motion-word { display: inline-block; }
.hero__motion-toggle {
  position: absolute;
  inset-inline-end: 24px;
  inset-block-end: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: var(--hairline) solid var(--rule-inv);
  background: var(--glass);
  color: var(--cream);
  cursor: pointer;
}
.hero__motion-toggle:hover { background: var(--navy); }
.hero__motion-toggle:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.hero__motion-toggle svg { inline-size: 16px; block-size: 16px; }
.hero__motion-toggle[hidden] { display: none; }
@media (max-width: 37.5rem) and (prefers-reduced-motion: no-preference) {
  .hero, [data-fluid-background] { padding-block-end: 80px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    content: "";
    position: absolute;
    inset: -4%;
    z-index: -1;
    pointer-events: none;
    background: inherit;
    animation: hero-fallback 20s ease-in-out infinite alternate;
  }
  [data-fluid-background] .section__bg { animation: hero-fallback 20s ease-in-out infinite alternate; }
  [data-fluid-background].has-fluid-background .section__bg,
  [data-fluid-background].is-motion-paused .section__bg { animation-play-state: paused; }
  .hero.has-fluid-background::before { content: none; }
  .hero.is-motion-paused::before { animation-play-state: paused; }
  .hero__divider { transform-origin: 100% 50%; }
}
@keyframes hero-fallback {
  from { transform: scale(1.02) translate3d(-1%, 0, 0); }
  to { transform: scale(1.1) translate3d(1%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__canvas, .hero__motion-toggle { display: none; }
  .hero__canvas { transition: none; }
}
@media print {
  .hero::before { content: none; }
  [data-fluid-background] .section__bg { animation: none; }
  .hero__canvas, .hero__motion-toggle { display: none; }
}
