@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-reveal-ready {
    transition: opacity 620ms ease, transform 760ms cubic-bezier(.18,.63,.3,1);
  }

  [data-reveal].is-reveal-ready:not(.is-revealed):not(:focus-within) {
    opacity: .83;
    transform: translateY(17px);
  }

  [data-reveal="wipe"].is-reveal-ready {
    clip-path: inset(0);
    transition: opacity 620ms ease, transform 760ms cubic-bezier(.18,.63,.3,1), clip-path 900ms cubic-bezier(.18,.63,.3,1);
  }

  [data-reveal="wipe"].is-reveal-ready:not(.is-revealed):not(:focus-within) {
    clip-path: inset(0 0 5% 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .service-row[data-reveal="service"] { position: relative; }
  .service-row[data-reveal="service"].is-revealed::after {
    position: absolute;
    inset: auto 0 -1px;
    height: 2px;
    background: #46677d;
    content: "";
    pointer-events: none;
    transform-origin: 0 50%;
    animation: draw-service-rule 820ms cubic-bezier(.2,.64,.31,1) both;
  }

  .philosophy.is-kendo-ready .philosophy-terrain img {
    transform: translate3d(0, var(--kendo-offset, 0px), 0) scale(1.10);
  }
  .philosophy.is-kendo-ready .philosophy-terrain::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: #101921;
    content: "";
    opacity: .95;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
  }
  .philosophy.is-kendo-visible .philosophy-terrain::before {
    animation: uncover-terrain 1.35s cubic-bezier(.2,.62,.23,1) both;
  }
  .philosophy.is-kendo-ready:not(.is-kendo-visible) .philosophy-sign h2 { opacity: .76; }
  .philosophy.is-kendo-visible .philosophy-sign h2 span {
    animation: reveal-character-row 890ms cubic-bezier(.16,1,.3,1) both;
  }
  .philosophy.is-kendo-visible .philosophy-sign h2 span + span { animation-delay: 150ms; }

  @keyframes draw-service-rule {
    from { transform: scaleX(0); opacity: 0; }
    64% { transform: scaleX(1); opacity: .9; }
    to { transform: scaleX(1); opacity: .48; }
  }
  @keyframes uncover-terrain {
    from { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: .95; }
    to { clip-path: polygon(130% 0, 100% 0, 100% 100%, 103% 100%); opacity: 0; }
  }
  @keyframes reveal-character-row {
    from { clip-path: inset(0 0 67%); transform: translateY(.15em); opacity: .5; }
    to { clip-path: inset(0 0 0); transform: translateY(0); opacity: 1; }
  }
}
