/* One motion language: short upward travel, quick clarity, no resizing. */
:root {
  --motion-ease: cubic-bezier(.22, .75, .25, 1);
  --motion-duration: 560ms;
}
html .scroll-reveal,
.company-grid .company-card.scroll-reveal,
.news-grid .news-card.scroll-reveal {
  opacity: 0;
  translate: 0 var(--scroll-rise, 18px);
  transition:
    opacity 200ms ease var(--scroll-delay, 0ms),
    translate var(--motion-duration) var(--motion-ease) var(--scroll-delay, 0ms),
    box-shadow 200ms ease,
    border-color 200ms ease;
}
.scroll-reveal.scroll-heading { --scroll-rise: 20px; }
.scroll-reveal.scroll-card { --scroll-rise: 24px; --motion-duration: 580ms; }
html .scroll-reveal.is-visible,
.company-grid .company-card.scroll-reveal.is-visible,
.news-grid .news-card.scroll-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}
html .scroll-reveal.is-static,
.company-grid .company-card.scroll-reveal.is-static,
.news-grid .news-card.scroll-reveal.is-static {
  opacity: 1;
  translate: 0 0;
  transition: none !important;
}
/* The image window opens without moving or enlarging the photograph. */
.news-card.scroll-reveal .news-image {
  clip-path: inset(0 0 18% 0);
  transition: clip-path 600ms var(--motion-ease) var(--scroll-delay, 0ms);
}
.news-card.scroll-reveal.is-visible .news-image {
  clip-path: inset(0 0 0% 0);
}
/* Geometry and colour are supplied by the identity stylesheet. */
:is(.portfolio-heading, .home-news-heading, .contact-heading).scroll-reveal::before {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 600ms var(--motion-ease) var(--scroll-delay, 0ms);
}
:is(.portfolio-heading, .home-news-heading, .contact-heading).scroll-reveal.is-visible::before {
  clip-path: inset(0 0% 0 0);
}
.news-card.scroll-reveal.is-static .news-image,
html.motion-paused .news-card.scroll-reveal .news-image {
  clip-path: inset(0 0 0% 0);
  transition: none !important;
}
:is(.portfolio-heading, .home-news-heading, .contact-heading).scroll-reveal.is-static::before,
html.motion-paused :is(.portfolio-heading, .home-news-heading, .contact-heading).scroll-reveal::before {
  clip-path: inset(0 0% 0 0);
  transition: none !important;
}
/* Touch scrolling never leaves a card stuck in a hover position. */
.news-card:hover { transform: none; }
.news-card:hover img { transform: none; }
.news-card .news-kicker > span { transition: translate 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .news-card:hover { box-shadow: 0 6px 20px #00000013; }
  .news-card:hover .news-kicker > span { translate: 3px -3px; }
}
.news-card:focus-visible .news-kicker > span { translate: 3px -3px; }
html.motion-paused .scroll-reveal,
html.motion-paused .hero-entrance { animation: none !important; transition: none !important; }
html.motion-paused .hero-entrance { opacity: 1; transform: none; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after {
  transition: none !important;
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html .scroll-reveal,
  .company-grid .company-card.scroll-reveal,
  .news-grid .news-card.scroll-reveal {
    opacity: 1;
    translate: none !important;
    transition: none !important;
  }
  .news-card .news-kicker > span { translate: none !important; }
  .news-card.scroll-reveal .news-image {
    clip-path: inset(0 0 0% 0);
    transition: none !important;
  }
  :is(.portfolio-heading, .home-news-heading, .contact-heading).scroll-reveal::before {
    clip-path: inset(0 0% 0 0);
    transition: none !important;
  }
}
