.expertise-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#expertise-industries,
#expertise-what-we-do,
#expertise-work {
  scroll-margin-top: 96px;
}

.expertise-banner {
  box-sizing: border-box;
  padding: 0 var(--page-align-x) 80px;
  background: var(--color-ash);
}

.expertise-banner__breadcrumb {
  margin: 0;
  padding: 120px 0 0;
}

.expertise-banner__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 58px;
}

.expertise-list__item {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: 400;
  font-style: normal;
  line-height: 96px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: left;
  color: var(--color-forge);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.expertise-list__item:hover,
.expertise-list__item.is-active {
  color: var(--color-flare);
  font-style: italic;
}

.expertise-description {
  box-sizing: border-box;
  padding-top: 24px;
  min-height: 64px;
  max-width: 741px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  color: var(--color-forge);
}

.expertise-description--hidden {
  display: none;
}

.expertise-what {
  box-sizing: border-box;
  padding: 64px var(--page-align-x) 0;
}

.expertise-what.is-generic {
  background: var(--color-forge);
}

.expertise-what:not(.is-generic) {
  background: var(--color-forge);
}

.expertise-what__header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 40px;
}

.expertise-what__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 600;
  line-height: 52px;
  color: var(--color-forge);
}

.expertise-what.is-generic .expertise-what__title {
  color: var(--color-ash);
  text-transform: capitalize;
}

.expertise-what:not(.is-generic) .expertise-what__title {
  color: var(--color-ash);
  text-transform: capitalize;
}

.expertise-what__accent {
  display: inline;
  font-family: var(--font-serif);
  font-size: 42px;
  font-style: italic;
  font-weight: 500;
  line-height: 48px;
  color: var(--color-flare);
}

.expertise-what.is-generic .expertise-what__accent {
  display: none;
}

.expertise-what:not(.is-generic) .expertise-what__accent {
  display: inline;
}

.expertise-specialties {
  box-sizing: border-box;
}

.expertise-what.is-generic .expertise-specialties {
  display: block;
  padding: 16px 0 64px;
  background: var(--color-forge);
}

.expertise-what:not(.is-generic) .expertise-specialties {
  display: block;
  padding: 16px 0 64px;
  background: var(--color-forge);
}

.expertise-specialties-grid {
  column-count: 2;
  column-gap: 8px;
  width: 100%;
}

.expertise-specialties-grid__row {
  display: contents;
}

.expertise-specialties-grid__cell {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  column-gap: 8px;
  min-width: 0;
  padding-bottom: 18px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.expertise-specialties-grid__item {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--color-ash);
}

.expertise-specialties-grid__sep {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--color-flare);
  text-align: center;
}

.expertise-specialty-tag {
  box-sizing: border-box;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-flare);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .expertise-specialties-grid {
    column-count: 4;
    column-gap: 16px;
  }

  .expertise-specialties-grid__cell {
    padding-bottom: 24px;
  }
}

.expertise-work {
  box-sizing: border-box;
  padding: 0 var(--page-align-x);
  background: var(--color-white);
}

.expertise-work__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px;
  padding: 64px 0 40px;
}

.expertise-work__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 600;
  line-height: 52px;
  color: var(--color-forge);
  text-transform: capitalize;
}

.expertise-work__accent {
  display: inline;
  font-family: var(--font-serif);
  font-size: 38px;
  font-style: italic;
  font-weight: 500;
  line-height: 52px;
  color: var(--color-flare);
}

.expertise-work.is-generic .expertise-work__accent {
  display: none;
}

.expertise-work:not(.is-generic) .expertise-work__accent {
  display: inline;
}

.expertise-work-cards-viewport {
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  min-height: 302px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.expertise-work-cards-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.expertise-work-cards-viewport.is-empty {
  overflow-x: hidden;
}

.expertise-work-cards-viewport.is-empty .expertise-work-cards {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  min-height: 302px;
}

.expertise-work-cards {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 80px;
  width: max-content;
  min-height: 302px;
}

.expertise-work-empty {
  margin: 0;
  flex: 1 1 100%;
  align-self: center;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  color: var(--color-forge);
}

.expertise-work-card {
  position: relative;
  box-sizing: border-box;
  display: block;
  flex: 0 0 auto;
  width: 536px;
  min-width: 536px;
  height: 302px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}

.expertise-work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(var(--color-forge-rgb), 0);
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-work-card:hover::after,
.expertise-work-card:focus-visible::after {
  background: rgba(var(--color-forge-rgb), 0.52);
}

.expertise-work-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-forge);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.expertise-work-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(var(--color-forge-rgb), 0.32) 4.2%,
      rgba(var(--color-forge-rgb), 0) 43%
    ),
    linear-gradient(
      180deg,
      rgba(var(--color-forge-rgb), 0) 50%,
      rgba(var(--color-forge-rgb), 0.48) 94.5%
    );
}

.expertise-work-card__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1.25px solid var(--color-ash);
  border-radius: 50%;
  background: transparent;
  color: var(--color-ash);
}

.expertise-work-card__info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
}

.expertise-work-card__name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  line-height: 32px;
  color: var(--color-ash);
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-work-card:hover .expertise-work-card__name,
.expertise-work-card:focus-visible .expertise-work-card__name {
  color: var(--color-flare);
}

.expertise-work-card__client {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  color: var(--color-ash);
}

.expertise-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 0 40px;
}

.expertise-nav__counter {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-forge);
  text-align: center;
}

.expertise-nav__controls {
  display: flex;
  gap: 8px;
}

.expertise-nav__btn {
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 1.25px solid var(--color-disabled);
  border-radius: 50%;
  background: transparent;
  color: var(--color-disabled);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.expertise-nav__btn:enabled {
  border-color: var(--color-forge);
  color: var(--color-forge);
}

.expertise-nav__btn:enabled:hover,
.expertise-nav__btn:enabled:focus-visible {
  border-color: var(--color-flare);
  color: var(--color-flare);
}

.expertise-nav__btn:disabled {
  cursor: default;
}

.expertise-section-nav {
  position: fixed;
  top: calc(120px + env(safe-area-inset-top, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  z-index: 90;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: auto;
  min-width: 0;
  max-width: 131px;
}

.expertise-section-nav.is-open {
  width: 131px;
  min-width: 131px;
  align-items: flex-end;
}

@media (min-width: 1024px) {
  .expertise-section-nav {
    right: max(
      env(safe-area-inset-right, 0px),
      calc((100vw - min(100vw, var(--max-width))) / 2 + var(--hero-pad-x))
    );
  }
}

.expertise-section-nav__toggle {
  box-sizing: border-box;
  display: flex;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 48px;
  padding: 0 16px;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  border: none;
  border-radius: 9999px;
  background: var(--color-forge);
  cursor: pointer;
  color: var(--color-ash);
  transition: background-color 0.25s ease;
}

.expertise-section-nav__toggle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.expertise-section-nav__arrow {
  display: block;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
  transform-origin: 50% 50%;
}

.expertise-section-nav__arrow--down {
  transform: rotate(180deg);
}

.expertise-section-nav.is-open .expertise-section-nav__arrow--down {
  transform: none;
}

.expertise-section-nav.is-open .expertise-section-nav__toggle {
  position: relative;
  z-index: 2;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 16px;
  justify-content: flex-end;
  align-items: center;
  border-radius: 24px 24px 0 0;
}

.expertise-section-nav.is-open .expertise-section-nav__menu {
  position: absolute;
  top: 48px;
  right: 0;
  left: auto;
  width: 131px;
  min-width: 131px;
  max-width: 131px;
  margin-top: -1.25px;
  z-index: 3;
}

.expertise-section-nav.is-open .expertise-section-nav__open {
  padding-top: 0;
  pointer-events: none;
  border-radius: 24px 0 24px 24px;
}

.expertise-section-nav.is-open .expertise-section-nav__list {
  pointer-events: auto;
}

.expertise-section-nav__menu {
  box-sizing: border-box;
  width: 100%;
  min-width: 131px;
  max-width: 131px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.expertise-section-nav__menu[hidden] {
  display: none;
}

.expertise-section-nav__open {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 131px;
  max-width: 131px;
  overflow: hidden;
  background-color: var(--color-forge);
  border-radius: 24px;
}

.expertise-section-nav__toggle:focus-visible {
  outline: 2px solid var(--color-flare);
  outline-offset: 3px;
}

.expertise-section-nav__list {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.expertise-section-nav__link {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--color-ash);
  text-align: right;
  text-decoration: none;
  text-transform: capitalize;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.expertise-section-nav__link:first-child {
  padding-top: 24px;
  padding-bottom: 8px;
}

.expertise-section-nav__link:nth-child(2) {
  padding-top: 8px;
  padding-bottom: 0;
}

.expertise-section-nav__link:nth-child(3) {
  padding-top: 8px;
  padding-bottom: 24px;
}

.expertise-section-nav__link:hover,
.expertise-section-nav__link:focus-visible {
  opacity: 0.88;
}

.expertise-section-nav__link.is-active {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}

.expertise-section-nav__link:focus-visible {
  outline: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .expertise-section-nav__toggle {
    transition: none;
  }

  .expertise-section-nav__link {
    transition: none;
  }

  .expertise-section-nav__arrow {
    transition: none;
  }
}

@media (max-width: 768px) {
  .expertise-banner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 58px;
    box-sizing: border-box;
    padding: 0 24px 24px;
  }

  .expertise-banner__breadcrumb {
    padding-top: 88px;
  }

  .expertise-banner__body {
    flex: 1 1 auto;
    min-height: 0;
    gap: 16px;
  }

  .expertise-list {
    padding-top: 0;
    gap: 16px;
  }

  .expertise-list__item {
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    white-space: normal;
    text-align: left;
  }

  .expertise-list__item.is-active {
    font-weight: 500;
  }

  .expertise-list__item:hover {
    font-weight: 500;
  }

  .expertise-description {
    padding-top: 0;
    min-height: 0;
    max-width: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
  }

  .expertise-what {
    padding: 40px 24px 0;
  }

  .expertise-what__header {
    display: flex;
    align-items: flex-end;
    column-gap: 16px;
    padding-bottom: 16px;
  }

  .expertise-what__title {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: 0;
  }

  .expertise-what__accent {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    line-height: 32px;
    letter-spacing: 0;
  }

  .expertise-what.is-generic .expertise-specialties,
  .expertise-what:not(.is-generic) .expertise-specialties {
    padding: 16px 0 40px;
  }

  .expertise-specialties-grid {
    column-count: 2;
    column-gap: 8px;
  }

  .expertise-specialties-grid__cell {
    padding-bottom: 18px;
  }

  .expertise-specialties-grid__item,
  .expertise-specialties-grid__sep {
    font-size: 16px;
    line-height: 24px;
  }

  .expertise-specialty-tag {
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
  }

  .expertise-work {
    padding: 0 24px;
  }

  .expertise-work__accent {
    font-size: 28px;
    line-height: 40px;
  }

  .expertise-work-cards-viewport {
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    min-height: 420px;
    scroll-snap-type: x mandatory;
  }

  .expertise-work-cards-viewport.is-empty .expertise-work-cards {
    min-height: 420px;
  }

  .expertise-work-cards {
    gap: 16px;
    min-height: 420px;
  }

  .expertise-work-card {
    flex: 0 0 auto;
    width: 321px;
    min-width: 321px;
    max-width: 321px;
    height: 420px;
    scroll-snap-align: start;
  }

  .expertise-section-nav {
    top: calc(96px + env(safe-area-inset-top, 0px));
    right: max(24px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 389px) {
  .expertise-what__header {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
