/*
 * Site-owned motion (RKS, 30 Nov 2026). Loads after the frozen Webflow CSS. It replaces what Webflow's interaction
 * engine (IX2) drew: the rest state of each animated part, and the hover and open states, with the durations and
 * curves measured on the live site and capped at 250ms (docs/motion.md). Webflow's own script is no longer loaded.
 * Webflow's "empty" easing is linear; its "inOutQuad" is the cubic below.
 */
:root { --quad: cubic-bezier(0.455, 0.03, 0.515, 0.955); }

/* Touch screens: the old stylesheet turned off fixed backgrounds when the page was marked for coarse pointers. */
@media (hover: none) and (pointer: coarse) {
  * { background-attachment: scroll !important; }
}

/* Primary button (blue), the ones live animates (data-hover: the phone menu button, the About page mission button, the
   404 button): fills white, text turns blue, arrow straightens. */
.button-primary-blue[data-hover] .button_text-wrapper { transition: background-color 0.25s var(--quad); }
.button-primary-blue[data-hover] .button-text { color: var(--white-color); transition: color 0.25s var(--quad); }
.button-primary-blue[data-hover] .button-icon { transition: transform 0.25s var(--quad); }
.button-primary-blue[data-hover]:hover .button_text-wrapper { background-color: var(--white-color); }
.button-primary-blue[data-hover]:hover .button-text { color: var(--primary-blue-500); }
.button-primary-blue[data-hover]:hover .button-icon { transform: rotate(0deg); }

/* Primary button (white): the fill clears, the text turns white, the arrow straightens. */
.primary-button-white .button-text-wrapper { transition: background-color 0.25s var(--quad); }
.primary-button-white .button-text.text-primary { color: var(--primary-blue-500); }
.primary-button-white .button-text { transition: color 0.25s var(--quad); }
.primary-button-white .icon-primary { transition: transform 0.25s var(--quad); }
.primary-button-white:hover .button-text-wrapper { background-color: var(--transparent); }
.primary-button-white:hover .button-text { color: var(--white-color); }
.primary-button-white:hover .icon-primary { transform: rotate(0deg); }

/* Text link with an arrow (6X pages): the arrow turns from 45 to 90 degrees. */
.link-with-icon .button-arrow-icon { transform: rotate(45deg); transition: transform 0.25s linear; }
.link-with-icon:hover .button-arrow-icon { transform: rotate(90deg); }

/* Blog card picture (the home, 6X and slider page teasers; /news and the article cards keep the veil and have no hover):
   no veil at rest, zooms 8% and a dark veil fades in on hover. */
.blog_card-image-link[data-hover] .blog_card-img { transition: transform 0.25s var(--quad); }
.blog_card-image-link[data-hover] .blog_card-overlay { opacity: 0; transition: opacity 0.25s linear; }
.blog_card-image-link[data-hover]:hover .blog_card-img { transform: scale(1.08); }
.blog_card-image-link[data-hover]:hover .blog_card-overlay { opacity: 0.7; }

/* Project cards (slider pages and home): the veil lightens on hover. */
.projects_image-wrapper .projects_card-overlay { opacity: 1; transition: opacity 0.25s linear; }
.projects_image-wrapper:hover .projects_card-overlay { opacity: 0.2; }

/* Accordions: closed until opened (public/site/site.js sets the height and toggles is-open on the header). */
.works_card-content { height: 0; }
.works_accordion-icon { transition: transform 0.25s linear; }
.works_content-card-header.is-open .works_accordion-icon { transform: rotate(-90deg); }
.benefit_card-content { height: 0; }
.benefits_accordion-icon-wrapper { transition: transform 0.25s linear; }
.benefit_content-card-header.is-open .benefits_accordion-icon-wrapper { transform: rotate(180deg); }

/* Mobile menu (991px and under): a dropdown list is closed at height 0 and open at its content height; the arrow turns. */
@media screen and (max-width: 991px) {
  .navbar_dropdown-list { height: 0; }
  .navbar_dropdown-list.rk-open { height: auto; }
}
.navbar_dropdown-icon { transition: transform 0.2s linear; }
.rk-nav-dropdown-open .navbar_dropdown-icon { transform: rotate(-180deg); }

/* Call-to-action picture: starts at 110% and settles to 100% over 7s when it scrolls in. */
.section_cta .cta_image { transform: scale(1.1); }
.section_cta.is-in .cta_image { transform: scale(1); transition: transform 7s linear; }

/* 6X card pictures: a white cover wipes down in 400ms when the card scrolls in, then is removed. */
.is-solution-card-image .solution_overlay { display: block; }
.is-solution-card-image.is-in .solution_overlay { transform: translateY(100%); transition: transform 0.4s linear; }
.is-solution-card-image.is-done .solution_overlay { display: none; }
