/* SplitText uses inline spans while measuring the browser's actual line breaks. */
.motion-line, .motion-line-mask {display:block;}
.benefits h3 .motion-line {width:fit-content;}
.motion-heading-mask {width:fit-content;max-width:100%;}
.manifesto .motion-heading-mask {margin-inline-start:auto;}
.motion-line-mask {
  clip-path:inset(0);
  /* Keep the ink of Hungarian accents and descenders inside the mask. */
  padding-block:.07em;
  margin-block:-.07em;
}
.format-name {display:block;min-width:0;}
.person a {display:inline-block;}

@media (prefers-reduced-motion:no-preference) {
  .motion-pending:not(:focus-within):not(.card-visual) {opacity:0;}
  .media-reveal.motion-pending:not(:focus-within) {opacity:0;}
  .benefits > article.motion-pending {opacity:1;}
  .benefits > article.motion-pending > :is(h3,p) {opacity:0;}
}
@media print {
  .motion-pending, .motion-line,
  .benefits > article.motion-pending > :is(h3,p) {opacity:1!important;transform:none!important;}
}

#home .brand, #menu .brand {position:relative;}
.hero-logo-layers {display:none;}
#home .motion-line, #scale-title .motion-line {width:max-content;max-width:100%;}
@media (prefers-reduced-motion:no-preference) {
  .brand.logo-animating > img:first-child {opacity:0;}
  .brand.logo-animating .hero-logo-layers {
    display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;
  }
  .navpanel::backdrop {opacity:1;transition:opacity .28s ease;}
  @starting-style { .navpanel[open]::backdrop {opacity:0;} }
  .navpanel.is-closing::backdrop {opacity:0;}
}
#menu a:focus-visible .motion-line {transform:none!important;}
@media print {
  #home .hero-logo-layers {display:none!important;}
  #home :is(.hero-text,.brand,.brand > img:first-child,.cta) {opacity:1!important;}
  #home :is(.motion-line,.cta) {transform:none!important;}
}
:is(#home,#menu) .brand img.logo-current {
  position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;
  filter:brightness(0) invert(1);
  -webkit-mask-image:linear-gradient(110deg,transparent 42%,black 50%,transparent 58%);
  mask-image:linear-gradient(110deg,transparent 42%,black 50%,transparent 58%);
  -webkit-mask-size:300% 100%;mask-size:300% 100%;
}
.hero-circuit {display:none;pointer-events:none;}
@supports (width:1cqh) {
  #home .hero-art {container-type:size;}
  /* Match the original 715 × 500 image's cover sizing and 62% top alignment. */
  .hero-circuit {
    display:block;position:absolute;top:0;left:62%;transform:translateX(-62%);
    width:max(100cqw,143cqh);height:auto;max-width:none;opacity:0;
    stroke:#ffe7bc;stroke-width:2;stroke-linecap:round;
    filter:drop-shadow(0 0 3px #f15d2f);
  }
}
@media (prefers-reduced-motion:reduce), print {
  .hero-circuit, :is(#home,#menu) .brand .logo-current {display:none;}
}
