/* Shared finishing layer, loaded only by the five ANTS landing pages. */
main :is(h1, h2) { text-wrap: balance; }
main :is(.home-lead, .portfolio-intro, .news-intro, .lines-intro, .lab-deck) { text-wrap: pretty; }
main :is(.home-about p, .lines-copy p, .lab-section p, .news-summary) { text-wrap: pretty; }

.topbar[data-scrolled] { box-shadow: 0 1px 0 var(--ants-header-rule), 0 5px 20px #00000008; }
.topbar nav a:not([aria-current="page"])::after {
  content: '';
  position: absolute;
  inset: auto 0 .52rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.topbar nav a:not([aria-current="page"]):is(:hover, :focus-visible)::after { transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
  .topbar { transition: box-shadow .25s ease; }
  .topbar nav a::after { transition: transform .22s ease; }
  .ants-control { transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
  .ants-control:hover { box-shadow: 0 3px 12px #17333412; }
  :is(.news-card, .portfolio-link, .home-feature) { transition: border-color .22s ease, box-shadow .22s ease; }
  :is(.news-card, .portfolio-link, .home-feature):is(:hover, :focus-within) { box-shadow: 0 8px 24px #1733340d; }
  :is(.portfolio-label svg, .home-contact-arrow) { transition: transform .22s ease; }
  .portfolio-link:is(:hover, :focus-visible) .portfolio-label svg,
  .home-contact-links a:is(:hover, :focus-visible) .home-contact-arrow { transform: translate(2px, -2px); }
  :is(.home-service-grid a, .lines-aside a) { transition: background-color .2s ease; }
  :is(.home-text-link, .home-support a, .home-footer a) { text-decoration-thickness: 1px; text-underline-offset: .25em; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar :is(.topbar-logo, .topbar-umu):hover img { transform: none; }
  .topbar :is(a, img), main :where(p) a { transition: none; }
}
