﻿/* Default content remains visible; movement is opt-in through motion preference. */
:root { --ease-arrive: cubic-bezier(.16, 1, .3, 1); }
.motion-line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.motion-line > span { display: block; }
.why-us__photo-frame { overflow: clip; border-radius: 12px; }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; bottom: -7px; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; }
@media (prefers-reduced-motion: no-preference) {
  .hero__headline-one, .hero__headline-two { animation: headline-open .95s var(--ease-arrive) both; }
  .hero__headline-two { animation-delay: .12s; }
  .hero__content > p, .hero__actions { animation: page-rise .7s var(--ease-arrive) both; }
  .hero__content > p { animation-delay: .2s; }
  .hero__actions { animation-delay: .28s; }
  .motion-entered { animation: page-rise .65s var(--ease-arrive) both; }
  .who-we-help__fleet.motion-entered { animation-name: page-settle; }
  .who-we-help__fleet:nth-child(2), .workflow__sequence li:nth-child(2) { animation-delay: .08s; }
  .workflow__sequence li:nth-child(3) { animation-delay: .16s; }
  .workflow__sequence li:nth-child(4) { animation-delay: .24s; }
  .solutions__header.motion-entered, .why-us__intro.motion-entered, .audit__intro.motion-entered, .why-us__photo.motion-entered { animation: none; }
  .solutions__header.motion-entered h2, .why-us__intro.motion-entered h2 { animation: headline-open .8s var(--ease-arrive) both; }
  .service-row.motion-entered h3 svg { animation: icon-settle .6s var(--ease-arrive) both; }
  .service-row.motion-entered .service-row__response { animation: response-arrive .6s var(--ease-arrive) .08s both; }
  .why-us__photo.motion-entered .why-us__photo-frame { animation: photo-uncover .85s var(--ease-arrive) both; }
  .why-us__photo.motion-entered img { animation: photo-settle 1.1s var(--ease-arrive) both; }
  .audit__intro.motion-entered .motion-line > span { animation: line-arrive .85s var(--ease-arrive) both; }
  .audit__intro.motion-entered .motion-line:nth-child(2) > span { animation-delay: .08s; }
  .audit__intro.motion-entered .motion-line:nth-child(3) > span { animation-delay: .16s; }
  .audit__invitation.motion-entered { animation-delay: .15s; }
  .audit__journey.motion-entered { animation: none; }
  .audit__journey.motion-entered li { animation: page-rise .55s var(--ease-arrive) both; }
  .audit__journey.motion-entered li:nth-child(2) { animation-delay: .07s; }
  .audit__journey.motion-entered li:nth-child(3) { animation-delay: .14s; }
  .nav a::after { transition: transform .25s var(--ease-arrive); }
  .solutions__context a svg, .faq__audit-link svg { transition: transform .2s var(--ease-arrive); }
  .menu span { transition: transform .25s var(--ease-arrive); }
  .menu[aria-expanded='true'] span:first-child { transform: translateY(3.35px) rotate(45deg); }
  .menu[aria-expanded='true'] span:last-child { transform: translateY(-3.35px) rotate(-45deg); }
  .nav.is-open { animation: menu-arrive .25s var(--ease-arrive) both; }
  .hero__actions:focus-within, .motion-entered:focus-within, .audit__intro:focus-within .motion-line > span { animation: none; }
  @keyframes headline-open { from { clip-path: inset(0 0 80% 0); transform: translateY(14px); opacity: .65; } to { clip-path: inset(0); transform: none; opacity: 1; } }
  @keyframes page-rise { from { opacity: .55; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes page-settle { from { opacity: .65; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes icon-settle { from { transform: translateY(5px) rotate(-7deg); } to { transform: none; } }
  @keyframes response-arrive { from { opacity: .55; transform: translateX(10px); } to { opacity: 1; transform: none; } }
  @keyframes photo-uncover { from { clip-path: inset(0 12% 0 0 round 12px); } to { clip-path: inset(0 round 12px); } }
  @keyframes photo-settle { from { transform: scale(1.065); } to { transform: scale(1); } }
  @keyframes line-arrive { from { transform: translateY(90%); opacity: .5; } to { transform: none; opacity: 1; } }
  @keyframes menu-arrive { from { opacity: .5; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  @supports (animation-timeline: view()) {
    .solutions { view-timeline-name: --services; view-timeline-axis: block; }
    .solutions__header { position: relative; }
    .solutions__header::before { content: ''; position: absolute; height: 1px; left: 0; right: 0; top: -1px; background: var(--color-primary); transform-origin: left; animation: service-sweep linear both; animation-timeline: --services; animation-range: entry 20% cover 65%; }
    @keyframes service-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
@media (hover: hover) {
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  @media (prefers-reduced-motion: no-preference) {
    .solutions__context a:hover svg, .faq__audit-link:hover svg { transform: translateX(4px); }
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .service-row.motion-entered .service-row__response { animation-name: page-rise; }
  .audit__invitation.motion-entered { animation-delay: 0s; }
}
