/* ================================
   Lenis Smooth Scroll + Scrollbar
================================= */
html,
body {
  overscroll-behavior: none;
}

body {
  overflow: clip !important;
}

a {
  color: #1c1f2a;
  text-decoration: none;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped,
body {
  overflow: hidden;
}

body.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

#modal {
  overflow-y: auto;
  max-height: 100vh;
  overscroll-behavior: contain;
}

@keyframes trimPath {
  0% {
    stroke-dashoffset: 1600;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 1600;
  }
}

.modal-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
  width: 100%;
  max-width: 50px;
}

.eyebrow_text-2.royal-blue {
  color: #2872b5 !important;
  line-height: 1;
  opacity: 1 !important;
}

/* ================================
   Preloader
================================= */

.preloader {
  position: fixed;
  inset: 0;
  background: #1a2030;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loader svg {
  width: 120px;
}

.page-loader .cls-1 {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: draw 2.5s ease-in-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* =========================
   Hide Native Scrollbars
========================= */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
#modal::-webkit-scrollbar {
  display: none;
}

html,
body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

@media (pointer: fine) {
  * {
    cursor: none !important;
  }

  body {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background: rgba(40, 114, 181, 0.8);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, width 0.2s ease, height 0.2s ease;
    z-index: 9999;
  }

  .custom-cursor.grow {
    width: 40px;
    height: 40px;
    background: rgba(40, 114, 181, 0.5);
  }
}

.project-pagination {
  margin-top: 1.5rem;
  text-align: center;
  display: none;
}

.project-pagination .swiper-pagination-bullet {
  background: none;
  color: #999;
  font-weight: 500;
  margin: 0 6px;
  font-size: 14px;
  opacity: 0.5;
  cursor: pointer;
}

.project-pagination .swiper-pagination-bullet-active {
  color: #000;
  opacity: 1;
}

.project-feed .swiper-wrapper {
  transition-timing-function: ease-in-out !important;
}

@media (min-width: 768px) {
  .project-pagination {
    display: block;
  }
}

/* =========================
   Custom Scrollbar Styles
========================= */

.scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: transparent;
  z-index: 1000;
}

.scrollbar-thumb,
.modal-inner::-webkit-scrollbar-thumb {
  width: 100%;
  height: 50px;
  background-color: #2872b5;
  border-radius: 0;
  transition: height 400ms ease, background 400ms ease;
  cursor: pointer;
}

.scrollbar-thumb:hover,
.modal-inner::-webkit-scrollbar-thumb:hover {
  background: #827f74;
}

#modal-inner {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scrollbar-color: #2872b5 transparent; /* Firefox */
}

.lenis.lenis-stopped .scrollbar {
  opacity: 0;
}

@media (max-width: 768px) {
  .scrollbar {
    display: none;
  }
  body {
    overflow: clip;
  }
  .page-loader svg {
    width: 90px;
    position: relative;
    top: -30px;
  }
}

/* =========================
   Navigation & Dropdown
========================= */
.primary-navigation,
.mobile-navigation,
.hide-header .primary-navigation,
.hide-header .mobile-navigation {
  transition: transform 400ms ease !important;
}

.hide-header .primary-navigation,
.hide-header .mobile-navigation {
  transform: translateY(-68px) !important;
}

.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.dropdown.open .dropdown-menu {
  max-height: 500px;
  opacity: 1;
}

.chevron {
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown.open .chevron {
  transform: rotate(-180deg);
}

.dropdown--active {
  border-bottom: 1px solid var(--blue) !important;
  color: var(--blue) !important;
}

.navy--link {
  border-bottom: 1px solid var(--navy) !important;
  color: var(--navy) !important;
}

.navy--link-chev polyline {
  color: var(--navy) !important;
}

/* =========================
   Text Split Animations
========================= */
[text-split] {
  opacity: 0;
}

html.w-editor [text-split] {
  opacity: 1;
}

.word {
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  transform-origin: bottom;
}

/* =========================
   Gallery Feed Styles
========================= */

.project-feed-wrapper {
  .custom-arrow.left-arrow {
    left: -48px;
    opacity: 0;
    transition: all 300ms ease;
  }
  .custom-arrow.right-arrow {
    left: auto !important;
    right: -48px;
    opacity: 0;
    transition: all 300ms ease;
  }

  .custom-arrow {
    transform: scale(1), transformY(-50%);
  }

  .custom-arrow:hover {
    transform: scale(1.08), transformY(-50%);
  }
}

.project-feed-wrapper:hover {
  .custom-arrow.left-arrow {
    left: 20px;
    opacity: 1;
  }
  .custom-arrow.right-arrow {
    right: 20px;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .project-feed-wrapper {
    .custom-arrow.left-arrow {
      left: 10px;
      opacity: 1;
      transition: all 300ms ease;
    }
    .custom-arrow.right-arrow {
      left: auto !important;
      right: 10px;
      opacity: 1;
      transition: all 300ms ease;
    }

    .custom-arrow {
      transform: scale(1), transformY(-50%);
      background: #fff !important;
    }

    .custom-arrow:hover {
      transform: scale(1), transformY(-50%);
    }
  }

  .project-feed-wrapper:hover {
    .custom-arrow.left-arrow {
      left: 10px;
    }
    .custom-arrow.right-arrow {
      right: 10px;
    }
  }
}

@media (pointer: coarse) {
  .project-feed-wrapper {
    .custom-arrow.left-arrow {
      left: 10px;
      opacity: 1;
      transition: all 300ms ease;
    }
    .custom-arrow.right-arrow {
      left: auto !important;
      right: 10px;
      opacity: 1;
      transition: all 300ms ease;
    }

    .custom-arrow {
      transform: scale(1), transformY(-50%);
      background: #fff !important;
    }

    .custom-arrow:hover {
      transform: scale(1), transformY(-50%);
    }
  }

  .project-feed-wrapper:hover {
    .custom-arrow.left-arrow {
      left: 10px;
    }
    .custom-arrow.right-arrow {
      right: 10px;
    }
  }
}

/* =========================
   Publications List
========================= */

.year-group {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 2fr;
  grid-auto-columns: 1fr;
  margin-bottom: 3rem;
  border-top: 1px solid #827f74;
  padding-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Active/faded in */
.year-group.fade-in-init {
  opacity: 0;
  transform: translateY(20px);
}

.year-group.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.year-heading {
  font-family: var(--fonts--nantes);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
}

.year-publications {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal-width columns */
  gap: 2rem 8rem;
}

.load-more-button {
  color: #1c1f2a;
  border: 1px solid #1c1f2a;
  border-radius: .5rem;
  justify-content: center;
  align-items: center;
  width: auto;
  height: 40px;
  padding: 10px;
  text-decoration: none;
  display: flex;
  margin: 0 auto;
  background: none;
  margin-top: 3rem;
  transition: opacity 420ms ease;
}

.load-more-button:hover {
  opacity: .7;
}

/* =========================
   CMS Collection Items
========================= */
.collection-item {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.collection-item.visible {
  opacity: 1;
}

/* =========================
   Process Animation
========================= */


.gradient-layer.step-0 {
  background: radial-gradient(
    circle,
    #2872b5 20%,
    #eceae5 65%,
    #ff3600 70%,
    #ff3600 100%
  );
}
.gradient-layer.step-1 {
  background: radial-gradient(
    circle,
    #2872b5 20%,
    #eceae5 55%,
    #ff3600 70%,
    #ff3600 100%
  );
}
.gradient-layer.step-2 {
  background: radial-gradient(
    circle,
    #2872b5 30%,
    #eceae5 50%,
    #ff3600 70%,
    #ff3600 100%
  );
}
.gradient-layer.step-3 {
  background: radial-gradient(
    circle,
    #ff3600 30%,
    #eceae5 40%,
    #2872b5 60%,
    #2872b5 100%
  );
}
.gradient-layer.step-4 {
  background: radial-gradient(
    circle,
    #ff3600 20%,
    #eceae5 40%,
    #2872b5 60%,
    #2872b5 100%
  );
}

/* .step.visible {
  opacity: 1;
}

.step.active {
  background: #111;
  color: white;
} */

/* Additional space for last step */
.step:last-child {
  padding-bottom: 10vh; /* Adds extra space to ensure visibility */
}

.feed-project-link {
  overflow: hidden;
}

.case-study-feature .case-study-featureimg,
.feed-project-link img {
  transform: scale(1);
  transition: transform 400ms ease;
}

.case-study-feature:hover .case-study-featureimg,
.feed-project-link:hover img {
  transform: scale(1.04);
}

.case-study-feature .protfolio-img-cover-wrap,
.feed-project-link {
  border-radius: 0 0 0 0;
  transition: border-radius 400ms ease;
}

.case-study-feature:hover .protfolio-img-cover-wrap,
.feed-project-link:hover {
  border-radius: 0 0 80px 0;
}

::selection {
  background: #ff3600;
  color: #1c1f2a;
}

::-moz-selection {
  background: #ff3600;
  color: #1c1f2a;
}

@media (max-width: 768px) {
  .case-study-feature .case-study-featureimg,
  .feed-project-link img {
    transform: scale(1);
    transition: transform 400ms ease;
  }

  .case-study-feature:hover .case-study-featureimg,
  .feed-project-link:hover img {
    transform: scale(1);
  }

  .case-study-feature .protfolio-img-cover-wrap,
  .feed-project-link {
    border-radius: 0 0 60px 0;
    transition: border-radius 400ms ease;
  }

  .case-study-feature:hover .protfolio-img-cover-wrap,
  .feed-project-link:hover {
    border-radius: 0 0 60px 0;
  }

  .year-publications, .year-group {
    display: flex;
    flex-direction: column;
  }

  .year-heading {
    font-size: 36px;
  }

  .year-group {
    gap: 2rem;
  }



}

html,
body {
 */
  overscroll-behavior-x: none;
  max-width: 100vw;
}

html.w-mod-touch {
   overflow-x: hidden; 
}

body {
  overscroll-behavior: none;
}

