/* ============================================================
   Site-wide custom CSS
   Ported from the Webflow page-head embeds + interaction styles
   that used to live in webflow.js (IX2) / inline <style> blocks.
   ============================================================ */

/* Font rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -o-font-smoothing: antialiased;
}

/* SplitType text reveal */
.word-line { overflow: hidden; }
.skew-up { opacity: 0; }
.skew-up2 { opacity: 0; }

/* Lenis smooth scroll */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Preloader */
.loader_component { display: flex; }
.loader_image { transform: translate3d(0, 100%, 0); }
.loader-text { transform: translate3d(0, 100%, 0); }

/* Available-for-work pill */
.available-for-work {
  display: flex;
  align-items: center;
  gap: 8px;
}
.green-bubble {
  width: 9px;
  height: 9px;
  background-color: #3ef14c;
  border-radius: 50%;
  position: relative;
}
.green-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #90e28e;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.6;
  pointer-events: none;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
}

/* Global styles embed (was .global-styles w-embed) */
.inherit-color * { color: inherit; }
*[tabindex]:focus-visible,
input[type="file"]:focus-visible {
  outline: 0.125rem solid #4d65ff;
  outline-offset: 0.125rem;
}
.w-richtext > :not(div):first-child,
.w-richtext > div:first-child > :first-child { margin-top: 0 !important; }
.w-richtext > :last-child,
.w-richtext ol li:last-child,
.w-richtext ul li:last-child { margin-bottom: 0 !important; }
.pointer-events-off { pointer-events: none; }
.pointer-events-on { pointer-events: auto; }
.div-square::after { content: ""; display: block; padding-bottom: 100%; }
.container-medium, .container-small, .container-large {
  margin-right: auto !important;
  margin-left: auto !important;
}
.text-style-3lines {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.text-style-2lines {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.display-inlineflex { display: inline-flex; }
.hide { display: none !important; }
@media screen and (max-width: 991px) {
  .hide, .hide-tablet { display: none !important; }
}
@media screen and (max-width: 767px) {
  .hide-mobile-landscape { display: none !important; }
}
@media screen and (max-width: 479px) {
  .hide-mobile { display: none !important; }
}
.margin-0 { margin: 0rem !important; }
.padding-0 { padding: 0rem !important; }
.spacing-clean { padding: 0rem !important; margin: 0rem !important; }
.margin-top { margin-right: 0rem !important; margin-bottom: 0rem !important; margin-left: 0rem !important; }
.padding-top { padding-right: 0rem !important; padding-bottom: 0rem !important; padding-left: 0rem !important; }
.margin-right { margin-top: 0rem !important; margin-bottom: 0rem !important; margin-left: 0rem !important; }
.padding-right { padding-top: 0rem !important; padding-bottom: 0rem !important; padding-left: 0rem !important; }
.margin-bottom { margin-top: 0rem !important; margin-right: 0rem !important; margin-left: 0rem !important; }
.padding-bottom { padding-top: 0rem !important; padding-right: 0rem !important; padding-left: 0rem !important; }
.margin-left { margin-top: 0rem !important; margin-right: 0rem !important; margin-bottom: 0rem !important; }
.padding-left { padding-top: 0rem !important; padding-right: 0rem !important; padding-bottom: 0rem !important; }
.margin-horizontal { margin-top: 0rem !important; margin-bottom: 0rem !important; }
.padding-horizontal { padding-top: 0rem !important; padding-bottom: 0rem !important; }
.margin-vertical { margin-right: 0rem !important; margin-left: 0rem !important; }
.padding-vertical { padding-right: 0rem !important; padding-left: 0rem !important; }
.truncate-width { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-scrollbar { -ms-overflow-style: none; overflow: -moz-scrollbars-none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.blinking-colon { animation: blink 1s infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* The portfolio grid is a CSS 2-column layout whose items are line boxes.
   Default orphans/widows (2) forbid a 1/1 split, so with only two projects
   both cards land in the first column. (The live site masked this by
   rendering each project four times.) */
.portfolio_list {
  orphans: 1;
  widows: 1;
}

/* The big footer credit is now an inline <svg> instead of an <img>;
   webflow.css's global img { max-width: 100% } capped the original's
   width: 100vw to the container — replicate that for the svg. */
svg.footer-credit {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Capabilities (new section — not part of the Webflow export).
   Written in the same idiom as the ported CSS: design-system
   tokens, no utility classes.
   ============================================================ */
.capabilities_group {
  border-top: 1px solid var(--border-color--border-grey);
  padding-top: 1.5rem;
}
.capabilities_group + .capabilities_group {
  margin-top: 7rem;
}
.capabilities_index {
  border: 1px solid var(--border-color--border-grey);
  border-radius: 100rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}
.capabilities_content {
  grid-column-gap: 5rem;
  grid-row-gap: 3rem;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1.25fr;
  grid-auto-columns: 1fr;
  align-items: start;
  margin-top: 2.5rem;
  display: grid;
}
.capabilities_content-right {
  grid-column-gap: 4rem;
  grid-row-gap: 4rem;
  flex-flow: column;
  align-items: stretch;
  display: flex;
}
.capabilities_item {
  border-bottom: 1px solid var(--border-color--border-grey);
  color: inherit;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  text-decoration: none;
  transition: opacity 0.3s;
  display: flex;
}
.capabilities_item:first-child {
  border-top: 1px solid var(--border-color--border-grey);
}
a.capabilities_item:hover {
  opacity: 0.6;
}

@media screen and (max-width: 991px) {
  .capabilities_content {
    grid-column-gap: 3rem;
    grid-row-gap: 2rem;
    grid-template-columns: 1fr 1.75fr;
  }
  .capabilities_group + .capabilities_group {
    margin-top: 5rem;
  }
}
@media screen and (max-width: 767px) {
  .capabilities_content {
    grid-column-gap: 1.25rem;
    grid-row-gap: 1.5rem;
    grid-template-columns: 1fr;
  }
  .capabilities_content-right {
    grid-column-gap: 2.5rem;
    grid-row-gap: 2.5rem;
  }
}

/* ============================================================
   Themes (new section — blue band with a cloud of subject tags).
   Tag chip mirrors .project-service, the design system's outlined
   pill, so it reads the same as the project detail pages.
   ============================================================ */
.section_themes {
  color: var(--text-color--text-white);
}
/* the default grey tagline is too low-contrast on blue */
.section_themes .section-tagline {
  border-bottom-color: #ffffff40;
}
.section_themes .section-tagline .tag,
.section_themes .tagline-arrow {
  color: var(--text-color--text-white);
}
/* Without an intro the heading spans the section instead of sitting in
   the left half of .section-heading_content; keep that grid's spacing. */
.themes_heading {
  margin-bottom: 5rem;
}
.themes_cloud {
  grid-column-gap: 0.75rem;
  grid-row-gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  display: flex;
}
.themes_tag {
  border: 1px solid var(--base-color-brand--white);
  color: inherit;
  text-align: center;
  text-transform: uppercase;
  border-radius: 100rem;
  padding: 0.5rem 1.25rem;
  font-family: Geistmono, Arial, sans-serif;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
a.themes_tag:hover {
  background-color: var(--base-color-brand--white);
  color: var(--base-color-brand--blue);
}

@media screen and (max-width: 767px) {
  .themes_heading {
    margin-bottom: 3rem;
  }
  .themes_cloud {
    grid-column-gap: 0.5rem;
    grid-row-gap: 0.5rem;
    margin-top: 2.5rem;
  }
  .themes_tag {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
  }
}

/* Work list hover (was a w-embed on detail_project) */
@media only screen and (min-width: 992px) {
  .work_list a { color: #000000; }
  .work_list:hover a { color: #c4c4c4; }
  .work_list:hover a:hover { color: #000000; }
}

/* ============================================================
   Interactions formerly driven by webflow.js
   ============================================================ */

/* Elements that fade in via GSAP start hidden */
[data-fade] { opacity: 0; }
[data-grow] { width: 0%; }

/* --- Mobile nav (replaces Webflow w-nav runtime) --- */
@media screen and (max-width: 991px) {
  .navbar_menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 4;
  }
  .navbar_component.nav-open .navbar_menu {
    display: flex;
    flex-direction: column;
  }
  /* Webflow's runtime used to stack the links when the overlay opened
     (w--nav-link-open); without webflow.js they'd stay on one line. */
  .navbar_component.nav-open .navbar_menu-left {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-left: 0;
    display: flex;
  }
  .navbar_component.nav-open .navbar_link {
    width: 100%;
    margin-left: 0;
    display: block;
  }
  .navbar_component.nav-open .navbar_bottom-bar {
    display: flex;
  }
}

/* The Contact nav link (_5) is new — the Webflow CSS only defines the
   dark-navbar treatment for _1/_2/_4, so mirror _4's rules for it. */
.navbar_link._5.is-dark {
  background-color: var(--base-color-brand--dark-grey);
}
.navbar_link._5.is-dark:hover,
.navbar_link._5.is-dark.w--current {
  color: var(--text-color--text-white);
}
@media screen and (max-width: 991px) {
  .navbar_link._5.is-dark {
    background-color: var(--base-color-brand--black);
  }
}

/* White logo text on the dark (fixed) navbar — the site only ships a
   black-text SVG, so invert it. The blue symbol image is untouched. */
.navbar_component.is-fixed .navbar_logo {
  filter: brightness(0) invert(1);
}

/* Hamburger -> X (IX2 a-21/a-22 & a-48/a-49: top/bottom lines move
   8px + rotate ∓45deg over 0.4-0.6s inOutQuint, middle collapses to
   width 0, navbar background flashes to white (light) / black (dark)) */
.menu-icon_line-top,
.menu-icon_line-bottom {
  transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}
.menu-icon_line-middle {
  transition: width 0.2s cubic-bezier(0.86, 0, 0.07, 1);
}
.navbar_component {
  transition: background-color 0.5s ease;
}
.navbar_menu-button { cursor: pointer; }
.nav-open .menu-icon_line-top { transform: translateY(8px) rotate(-45deg); }
.nav-open .menu-icon_line-middle { width: 0; }
.nav-open .menu-icon_line-bottom { transform: translateY(-8px) rotate(45deg); }
.navbar_component.nav-open { background-color: #ffffff; }
.navbar_component.is-fixed.nav-open { background-color: #000000; }

/* --- Testimonial slider (replaces Webflow w-slider runtime) ---
   All slides are stacked in one grid cell: inactive slides stay
   invisible but still size the mask, so the section keeps the height
   of the tallest testimonial (like the original w-slider strip). */
.testimonial_mask {
  position: relative;
  display: grid;
}
.testimonial_slide {
  grid-area: 1 / 1;
  width: 100%;
  visibility: hidden;
}
.testimonial_slide.is-active { visibility: visible; }
/* Dots sit bottom-left of the slider, like the original w-slider-nav */
.testimonial_slide-nav {
  position: absolute;
  inset: auto auto 0% 0%;
  height: 1.75rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}
.testimonial_slide-nav .slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.35;
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: opacity 0.3s ease;
}
.testimonial_slide-nav .slider-dot.is-active { opacity: 1; }
.slider-arrow { cursor: pointer; }
.testimonial2_mask {
  position: relative;
  display: grid;
}
.testimonial2_slide {
  grid-area: 1 / 1;
  width: 100%;
  visibility: hidden;
}
.testimonial2_slide.is-active { visibility: visible; }

/* FAQ accordion */
.faq_question { cursor: pointer; }
.faq_answer { height: 0; overflow: hidden; }

/* Rolling text mask */
.div-block-11 { overflow: hidden; }
