:root {
  --fluid-ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-paused) [data-reveal-pending]:not(:focus-within) {
    opacity: 0;
  }
}

/* CSS starts these entrances before content can paint in its final position. */
body:not(.motion-paused) .hero-content,
body:not(.motion-paused) .hero-inner > .wrap > :first-child {
  animation: fluid-hero-copy .65s var(--fluid-ease) both;
}

body:not(.motion-paused) .hero-visual,
body:not(.motion-paused) .hero-inner > .wrap > :nth-child(2) {
  animation: fluid-hero-art .75s .08s var(--fluid-ease) both;
}

@keyframes fluid-hero-copy {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fluid-hero-art {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@view-transition {
  navigation: auto;
}

body > header {
  view-transition-name: site-header;
}

::view-transition-old(root) {
  animation: fluid-page-out .22s ease both;
}

::view-transition-new(root) {
  animation: fluid-page-in .42s var(--fluid-ease) both;
}

::view-transition-group(site-header) {
  animation-duration: .3s;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body .kinetic-card,
body.inner-pages .kinetic-card {
  transition: translate .42s var(--fluid-ease), transform .42s var(--fluid-ease), border-color .28s ease, box-shadow .42s ease, background-color .28s ease;
}

body :is(.btn, .scene-action, .text-link, .inline-link, .tlink) :is(svg, .icon, .al-icon) {
  transition: translate .35s var(--fluid-ease), rotate .35s var(--fluid-ease);
}

body :is(.btn, .scene-action),
body.inner-pages :is(.btn, .scene-action) {
  transition: translate .3s var(--fluid-ease), transform .3s var(--fluid-ease), box-shadow .3s ease, background-color .25s ease, border-color .25s ease;
}

body :is(.inline-link, .text-link, .tlink, .department-foot > a, .contact-email) {
  background-image: linear-gradient(100deg, #85f3bd, #39d991 70%, #26bf88);
  background-repeat: no-repeat;
  background-position: left 37px;
  background-size: 0 1px;
  min-height: 38px;
  transition: background-size .4s var(--fluid-ease), color .25s ease;
}
body :is(.department-copy > .text-link) {
  background-image: linear-gradient(currentColor, currentColor) !important;
  background-repeat: no-repeat;
  background-position: left 37px;
  background-size: 0 1px;
  min-height: 38px;
  transition: background-size .4s var(--fluid-ease), color .25s ease;
}

body .contact-email {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
body .how-graphic {
    transition: background .3s ease;
}
body :is(.art-icon, .designed-icon, .trade-icon, .glyph, .demo-tile-icon, .how-graphic) {
  transition: rotate .4s var(--fluid-ease), scale .4s var(--fluid-ease), background-color .3s ease;
}

@media (hover: hover) and (pointer: fine) {
  body .kinetic-card:hover {
    /*translate: 0 -7px;*/
    border-color: #69ad88;
    /*box-shadow: 0 20px 45px #0004, 0 0 24px #62e8a50b;*/
  }
  body :is(.btn):not(:disabled):hover {
    translate: 0 -3px;
    box-shadow: 0 9px 26px #62e8a522;
  }
  body :is(.btn, .scene-action, .text-link, .inline-link, .tlink):hover :is(svg, .icon, .al-icon) {
    translate: 4px 0;
  }
  body :is(.inline-link, .text-link, .tlink, .department-foot > a, .contact-email):hover {
    background-size: 100% 1px;
    color: #85f3bd;
  }
  body :is(.department-copy > .text-link):hover {
      background-size: 100% 1px;
      color: var(--accent) !important;
  }
  body .kinetic-card:hover :is(.art-icon, .designed-icon, .trade-icon, .glyph, .demo-tile-icon) {
    rotate: -5deg;
    scale: 1.07;
  }
  body .kinetic-card:hover :is(.how-graphic) {
      background: linear-gradient(90deg, #162e229e, transparent);
  }
  body .hero-art .art-row {
    transition: translate .35s var(--fluid-ease), background-color .25s ease;
  }
  body .hero-art .art-row:hover {
    translate: 5px 0;
    background-color: #62e8a509;
  }
}

body .nav-more[open] .nav-more-panel {
  animation: fluid-dropdown .3s var(--fluid-ease) both;
}

body :is(.navlinks.open, #site-nav.open) {
  animation: fluid-dropdown .35s var(--fluid-ease) both;
}

body .term-body > div {
  animation: fluid-activity 9s ease-in-out infinite;
  animation-delay: calc(var(--activity-index, 0) * 1.3s);
}

body .term-body > div:nth-child(2) { --activity-index: 1; }
body .term-body > div:nth-child(3) { --activity-index: 2; }
body .term-body > div:nth-child(4) { --activity-index: 3; }
body .term-body > div:nth-child(5) { --activity-index: 4; }
body .term-body > div:nth-child(6) { --activity-index: 5; }

@supports (interpolate-size: allow-keywords) {
  body :is(.faq-item, .faq-items details) {
    interpolate-size: allow-keywords;
  }
  body :is(.faq-item, .faq-items details)::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .4s var(--fluid-ease), content-visibility .4s allow-discrete;
  }
  body :is(.faq-item, .faq-items details)[open]::details-content {
    block-size: auto;
  }
}

@keyframes fluid-dropdown {
  from { opacity: 0; translate: 0 -10px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes fluid-activity {
  0%, 32%, 100% { background-color: transparent; }
  10%, 22% { background-color: #62e8a50d; }
}

@keyframes fluid-page-out {
  to { opacity: 0; transform: translateX(-16px); }
}

@keyframes fluid-page-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

body.motion-paused .kinetic-card,
body.motion-paused :is(.btn, .scene-action, .art-row) {
  translate: none;
  transition: none;
}

body.motion-paused :is(.kinetic-card, .art-row):hover {
  translate: none;
}

body.motion-paused :is(.art-icon, .designed-icon, .trade-icon, .glyph, .demo-tile-icon) {
  rotate: none;
  scale: none;
  transition: none;
}

html:has(body.motion-paused)::view-transition-old(root),
html:has(body.motion-paused)::view-transition-new(root) {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  body .kinetic-card,
  body :is(.btn, .scene-action, .art-row),
  body :is(.kinetic-card, .btn, .scene-action, .art-row):hover {
    translate: none;
    transition: none;
  }
  body :is(.faq-item, .faq-items details)::details-content {
    transition: none;
  }
}
