/* Scroll choreography: a few large media moments, with quiet supporting copy. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
.motion-control-footer {
  position: static;
  display: inline-flex;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-height: 44px;
  height: auto;
  padding: 8px 12px;
  border: 1px solid #ffffff2a;
  border-radius: 24px;
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.motion-control-footer::before { content: "Ⅱ"; font-size: 12px; }
.motion-control-footer[aria-pressed="true"]::before { content: "▷"; }
.feature-static-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 30px;
  padding-block: 0 clamp(28px, 4vw, 54px);
}
.feature-static-links a { font-size: 12px; padding-block: 9px; border-bottom: 1px solid #ffffff4a; }

/* The static page is complete. Enhance only once the controller is running. */
html:not(.has-js) .menu-toggle { display: none; }
html:not(.has-js) .site-header { position: relative; }
html:not(.has-js) .header-inner { height: auto; min-height: var(--nav-height); flex-wrap: wrap; padding-block: 12px; }
html:not(.has-js) .navigation { position: static; display: flex; flex-wrap: wrap; max-height: none; gap: 8px 22px; padding: 0; border: 0; visibility: visible; pointer-events: auto; clip-path: none; }
html:not(.has-js) .navigation > a { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(root) { animation-duration: .85s; }
  ::view-transition-old(root) { animation: regency-page-out .85s ease both; }
  ::view-transition-new(root) { animation: regency-page-in .85s var(--motion-ease) both; }
  @keyframes regency-page-out { to { opacity: 0; } }
  @keyframes regency-page-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

  .hero-in { animation-duration: 1.1s; animation-timing-function: var(--motion-ease); }
  :is(.hero, .page-intro, .services-hero, .client-hero) .headline-line > span {
    animation-name: regency-headline;
    animation-duration: 1.3s;
    animation-timing-function: var(--motion-ease);
  }
  @keyframes regency-headline {
    from { transform: translateY(1.15em); opacity: .08; }
    to { transform: none; opacity: 1; }
  }
  .has-motion .reveal { transform: none; transition: opacity .85s var(--motion-ease); }
  .has-motion .reveal.is-pending { transform: none; }
  .has-motion .reveal .headline-line > span { transition: transform 1s var(--motion-ease) var(--line-delay), opacity .8s var(--motion-ease) var(--line-delay); }
  .has-motion .reveal.is-pending:not(:focus-within) .headline-line > span { filter: none; transform: translateY(.65em); }
  .has-motion .reveal.is-pending:not(:focus-within) .project-media,
  .has-motion .reveal.is-pending:not(:focus-within).about-image { clip-path: inset(5% 3%); }

  /* Home: a wide aperture opens into the campaign, followed by quiet dissolves. */
  .motion-depth .feature-scene { clip-path: none; opacity: var(--scene-opacity, 0); }
  .motion-depth .feature-mask { clip-path: inset(var(--stage-pad) var(--stage-edge) round var(--stage-corner, 0px)); }
  .motion-depth .feature-scene:not(.scene-flodent) > img { inset: -72px 0; height: calc(100% + 144px); }
  .motion-depth .scene-unsung { opacity: 1; }
  .motion-depth :is(.scene-shaltoux, .scene-flodent)::before { content: none; }

}

@media (max-width: 760px) {
  html:not(.has-js) .navigation { flex-basis: 100%; }
}

/* Pause covers scroll effects as well as the autoplay and hover media. */
.previews-paused :is(.hero-in, .headline-line > span, .work-frame, .services-index a) { animation: none !important; }
.previews-paused .feature-labels span { transition: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
