/* Progressive enhancement: content is visible before JS and after any failure. */
.hero-title-line { display:block; }
@media (prefers-reduced-motion:no-preference) {
  .service-card, .story-card {
    transition:background-color .24s ease, border-color .24s ease,
      box-shadow .24s ease, translate .24s ease;
  }
  .service-card h3 span, .story-card h3 span, .button span {
    display:inline-block; transition:transform .24s ease;
  }
  .button, .text-link, .blog-filters button {
    transition:background-color .24s ease, color .24s ease,
      border-color .24s ease;
  }
  .faq summary span { transition:transform .24s ease; }
  .text-link { position:relative; }
  .text-link::after {
    content:""; position:absolute; height:2px; bottom:-1px;
    left:0; right:0; background:currentColor;
    transform:scaleX(0); transform-origin:left;
    transition:transform .24s ease;
  }
  .text-link:is(:hover,:focus-visible)::after { transform:scaleX(1); }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .service-card:hover, .service-card:focus-within {
    box-shadow:inset 0 -3px 0 var(--olive);
  }
  .story-card:hover, .story-card:focus-within {
    box-shadow:0 8px 22px #202c3612;
    border-color:var(--olive); translate:0 -3px;
  }
  .olive .story-card:hover, .olive .story-card:focus-within {
    border-color:currentColor; background:#ffffff0d;
  }
  .service-card:is(:hover,:focus-within) h3 span,
  .story-card:is(:hover,:focus-within) h3 span,
  .button:is(:hover,:focus-visible) span { transform:translate(3px,-3px); }
}
.motion-controls {
  position:fixed; z-index:20; left:16px; bottom:16px;
  display:flex; gap:6px; padding:6px;
  border:1px solid #202c3626; background:#fffffff5;
  box-shadow:0 4px 18px #202c3612;
}
.motion-controls button {
  border:0; padding:9px 12px; background:transparent; cursor:pointer;
  font:600 12px/1.4 Manrope,Arial,sans-serif; color:var(--ink);
}
.motion-controls button:hover { background:var(--base); }
.motion-controls button:disabled { cursor:default; opacity:.55; }
.motion-off *, .motion-off *::before, .motion-off *::after {
  animation:none!important; transition:none!important;
}
.motion-off { scroll-behavior:auto; }
.motion-off .story-card { translate:none!important; }
.motion-off :is(.service-card h3 span,.story-card h3 span,.button span) {
  transform:none!important;
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none!important; transition:none!important; }
}
@media (max-width:780px) {
  .motion-controls { bottom:42px; left:10px; }
  .motion-controls button { padding:8px; font-size:11px; }
}
@media print {
  .motion-controls { display:none!important; }
}
