/* services tabs */
.services-tabs {
  background-color: transparent;
  color: #E7E5E0;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
@media (min-width: 992px) {
  .services-tabs {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}
.services-tabs.is-light {
  color: #24211A;
}
.services-tabs--empty {
  padding: 2rem 1.5rem;
  color: #24211A;
  background-color: rgba(255, 255, 255, 0.08);
}

.services-tabs__nav {
  position: relative;
  display: flex;
  gap: 0.35rem 1.35rem;
  margin: 0 0 2.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.services-tabs__nav::-webkit-scrollbar {
  display: none;
}
@media (min-width: 992px) {
  .services-tabs__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin-bottom: 4.5rem;
    overflow: visible;
  }
}

.services-tabs__indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  box-sizing: border-box;
  width: 0;
  height: 0;
  border: 1px solid #FF5200;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.services-tabs__tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  appearance: none;
  margin: 0;
  padding: 0.6rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(231, 229, 224, 0.72);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1.4px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.services-tabs__tab[aria-selected="true"] {
  color: #ffffff;
  border-color: #FF5200;
}
.services-tabs__tab:hover,
.services-tabs__tab:focus-visible {
  color: #FF5200;
}
.services-tabs__tab[aria-selected="true"]:hover,
.services-tabs__tab[aria-selected="true"]:focus-visible {
  color: #ffffff;
}
.services-tabs__tab:focus-visible {
  outline: 2px solid #FF5200;
  outline-offset: 3px;
}

.services-tabs.is-light .services-tabs__tab {
  color: rgba(36, 33, 26, 0.5);
}
.services-tabs.is-light .services-tabs__tab[aria-selected="true"],
.services-tabs.is-light .services-tabs__tab[aria-selected="true"]:hover,
.services-tabs.is-light .services-tabs__tab[aria-selected="true"]:focus-visible {
  color: #24211A;
  border-color: #FF5200;
}

.services-tabs__panel {
  scroll-margin-top: 7.5rem;
}
.admin-bar .services-tabs__panel {
  scroll-margin-top: calc(7.5rem + 32px);
}
.services-tabs__panel[hidden] {
  display: none;
}
.services-tabs:not(.is-scroll) .services-tabs__panel.is-active {
  animation: services-tabs-in 0.4s ease;
}
@keyframes services-tabs-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.services-tabs__layout {
  display: grid;
  gap: 1.75rem;
}
.services-tabs__case {
  display: contents;
}
.services-tabs__copy {
  min-width: 0;
}

.services-tabs__number {
  margin: 0 0 0.85rem;
  color: #FF5200;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  line-height: 1;
}

.services-tabs__headline {
  margin: 0;
  color: #ffffff;
  font-family: "Bitter", serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.42px;
}
@media (min-width: 768px) {
  .services-tabs__headline {
    font-size: 30px;
    letter-spacing: 0.48px;
  }
}
@media (min-width: 992px) {
  .services-tabs__headline {
    font-size: 32px;
  }
}
@media (min-width: 1200px) {
  .services-tabs__headline {
    font-size: 36px;
  }
}
@media (min-width: 1920px) {
  .services-tabs__headline {
    font-size: 48px;
    letter-spacing: 0.54px;
  }
}

.services-tabs__description {
  margin-top: 1.35rem;
  color: rgba(231, 229, 224, 0.88);
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.45;
}
.services-tabs__description p {
  margin: 0 0 0.75rem;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}
.services-tabs__description p:last-child {
  margin-bottom: 0;
}

.services-tabs .services-tabs__service-link,
.services-tabs .services-tabs__service-link:visited {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  margin-top: 1.75rem;
  color: #ffffff;
  text-decoration: none;
}
.services-tabs.is-light .services-tabs__service-link,
.services-tabs.is-light .services-tabs__service-link:visited {
  color: #24211A;
}
.services-tabs .view-project__label {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.services-tabs .view-project__arrow {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 0.95em;
  height: 0.72em;
  overflow: hidden;
  vertical-align: -0.05em;
}
.services-tabs .view-project__arrow svg {
  display: block;
  width: auto;
  height: 0.72em;
  max-width: none;
}
.services-tabs .view-project__arrow--start {
  display: none;
}
.services-tabs .view-project__arrow--end {
  width: 0.95em;
  opacity: 1;
  margin-left: 0.5em;
}
@media (min-width: 992px) {
  .services-tabs .view-project__label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #FF5200;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .services-tabs .view-project__arrow {
    transition: width 0.4s ease, opacity 0.3s ease, transform 0.45s ease, margin 0.4s ease;
  }
  .services-tabs .view-project__arrow--start {
    display: inline-flex;
    width: 0;
    opacity: 0;
    margin-right: 0;
  }
  .services-tabs .view-project:hover .view-project__label::after,
  .services-tabs .view-project:focus-visible .view-project__label::after {
    clip-path: inset(0 0 0 0);
  }
  .services-tabs .view-project:hover .view-project__arrow--start,
  .services-tabs .view-project:focus-visible .view-project__arrow--start {
    width: 0.95em;
    opacity: 1;
    margin-right: 0.35em;
  }
  .services-tabs .view-project:hover .view-project__arrow--end,
  .services-tabs .view-project:focus-visible .view-project__arrow--end {
    width: 0;
    opacity: 0;
    margin-left: 0;
  }
}

.services-tabs__media {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 5;
  overflow: hidden;
}
.services-tabs__media > img {
  position: absolute;
  inset: 0;
}
.services-tabs__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.services-tabs__project {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
.services-tabs__media .featured-thumb-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.services-tabs__media .featured-thumb-frame span {
  position: absolute;
  background-color: #FF5200;
}
.services-tabs__media .featured-thumb-frame span:nth-child(1) {
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  transition: width 0.06s linear 0.18s;
}
.services-tabs__media .featured-thumb-frame span:nth-child(2) {
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  transition: height 0.06s linear 0.12s;
}
.services-tabs__media .featured-thumb-frame span:nth-child(3) {
  bottom: 0;
  right: 0;
  height: 2px;
  width: 0;
  transition: width 0.06s linear 0.06s;
}
.services-tabs__media .featured-thumb-frame span:nth-child(4) {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 0;
  transition: height 0.06s linear 0s;
}
.services-tabs__media:hover .featured-thumb-frame span:nth-child(1),
.services-tabs__project:focus-visible .featured-thumb-frame span:nth-child(1),
.services-tabs__panel:has(.services-tabs__case-title a:hover) .featured-thumb-frame span:nth-child(1),
.services-tabs__panel:has(.services-tabs__case-title a:focus-visible) .featured-thumb-frame span:nth-child(1) {
  width: 100%;
  transition: width 0.06s linear 0s;
}
.services-tabs__media:hover .featured-thumb-frame span:nth-child(2),
.services-tabs__project:focus-visible .featured-thumb-frame span:nth-child(2),
.services-tabs__panel:has(.services-tabs__case-title a:hover) .featured-thumb-frame span:nth-child(2),
.services-tabs__panel:has(.services-tabs__case-title a:focus-visible) .featured-thumb-frame span:nth-child(2) {
  height: 100%;
  transition: height 0.06s linear 0.06s;
}
.services-tabs__media:hover .featured-thumb-frame span:nth-child(3),
.services-tabs__project:focus-visible .featured-thumb-frame span:nth-child(3),
.services-tabs__panel:has(.services-tabs__case-title a:hover) .featured-thumb-frame span:nth-child(3),
.services-tabs__panel:has(.services-tabs__case-title a:focus-visible) .featured-thumb-frame span:nth-child(3) {
  width: 100%;
  transition: width 0.06s linear 0.12s;
}
.services-tabs__media:hover .featured-thumb-frame span:nth-child(4),
.services-tabs__project:focus-visible .featured-thumb-frame span:nth-child(4),
.services-tabs__panel:has(.services-tabs__case-title a:hover) .featured-thumb-frame span:nth-child(4),
.services-tabs__panel:has(.services-tabs__case-title a:focus-visible) .featured-thumb-frame span:nth-child(4) {
  height: 100%;
  transition: height 0.06s linear 0.18s;
}

.services-tabs__cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #24211A;
  pointer-events: none;
}
.services-tabs__cursor-text {
  padding: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.services-tabs__caption {
  margin-top: 0.15rem;
}
.services-tabs__case-title {
  margin: 0;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.1px;
}
.services-tabs__case-title a,
.services-tabs__case-title a:visited {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  text-decoration: none;
}
.services-tabs__excerpt {
  margin: 0.3rem 0 0;
  color: rgba(231, 229, 224, 0.78);
  font-family: "Bitter", serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.services-tabs.is-light .services-tabs__headline,
.services-tabs.is-light .services-tabs__case-title {
  color: #24211A;
}
.services-tabs.is-light .services-tabs__description {
  color: rgba(36, 33, 26, 0.78);
}
.services-tabs.is-light .services-tabs__excerpt {
  color: rgba(36, 33, 26, 0.68);
}

@media (min-width: 992px) {
  .services-tabs__layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 0.9rem;
    align-items: center;
  }
  .services-tabs__copy {
    grid-column: 1 / span 5;
    grid-row: 1;
  }
  .services-tabs__media,
  .services-tabs__caption {
    grid-column: 7 / span 6;
  }
  .services-tabs__layout--media .services-tabs__media {
    grid-row: 1;
  }
  .services-tabs__layout--media .services-tabs__caption {
    grid-row: 2;
    align-self: start;
    margin-top: 0;
  }
  .services-tabs__layout:not(.services-tabs__layout--media) .services-tabs__caption {
    grid-row: 1;
  }
}
@media (min-width: 1200px) {
  .services-tabs__copy {
    grid-column: 2 / span 4;
  }
  .services-tabs__media,
  .services-tabs__caption {
    grid-column: 7 / span 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-tabs__panel.is-active {
    animation: none;
  }
  .services-tabs .view-project__arrow,
  .services-tabs .view-project__label::after,
  .services-tabs__media .featured-thumb-frame span {
    transition: none;
  }
}

@media (max-width: 991.98px) {
  .services-tabs__nav {
    display: none;
  }
}

.services-tabs:not(.is-scroll) .services-tabs__panel + .services-tabs__panel {
  margin-top: 4.5rem;
}

@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .services-tabs:not(.is-scroll) .services-tabs__panel:not(.is-active) {
    display: none;
  }
}

@media (min-width: 992px) {
  .services-tabs.is-scroll {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100svh;
    padding-top: 7.5rem;
    padding-bottom: 1.5rem;
  }
  .admin-bar .services-tabs.is-scroll {
    height: calc(100svh - 32px);
  }
  .services-tabs.is-scroll > .container-xxxl {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: 100%;
  }
  .services-tabs.is-scroll .services-tabs__nav {
    position: relative;
    z-index: 3;
    margin-bottom: 2rem;
  }
  .services-tabs.is-scroll .services-tabs__tab,
  .services-tabs.is-light.is-scroll .services-tabs__tab,
  .services-tabs.is-scroll .services-tabs__tab[aria-selected="true"],
  .services-tabs.is-light.is-scroll .services-tabs__tab[aria-selected="true"],
  .services-tabs.is-scroll .services-tabs__tab[aria-selected="true"]:hover,
  .services-tabs.is-light.is-scroll .services-tabs__tab[aria-selected="true"]:hover {
    border-color: transparent;
  }
  .services-tabs.is-scroll .services-tabs__panels {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
  }
  .services-tabs.is-scroll .services-tabs__panel {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 100%;
    animation: none;
    pointer-events: none;
  }
  .services-tabs.is-scroll .services-tabs__layout {
    height: 100%;
  }
  .services-tabs.is-scroll .services-tabs__layout--media {
    grid-template-rows: auto auto;
    align-content: center;
  }
  .services-tabs.is-scroll .services-tabs__panel.is-active .services-tabs__copy,
  .services-tabs.is-scroll .services-tabs__panel.is-active .services-tabs__caption {
    pointer-events: auto;
  }
  .services-tabs.is-scroll .services-tabs__panel + .services-tabs__panel {
    margin-top: 0;
  }
  .services-tabs.is-scroll .services-tabs__copy {
    position: relative;
    overflow: visible;
  }
  .services-tabs.is-scroll .services-tabs__copy-body {
    position: relative;
    z-index: 1;
  }
  .services-tabs__line-mask {
    display: block;
    overflow: hidden;
  }
  .services-tabs__line {
    display: block;
  }
  .services-tabs.is-scroll .services-tabs__media {
    width: min(100%, calc((100svh - 22rem) * 7 / 5));
    overflow: hidden;
  }
}
