/* Shared styles for the capabilities and case-center pages. */

.subpage {
  background: #f5f8fb;
}

.subpage .page {
  background: #f5f8fb;
}

.nav--subpage {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
}

.subpage-hero {
  position: relative;
  width: 1920px;
  height: 590px;
  overflow: hidden;
  background: #07162f;
}

.subpage-hero--capabilities {
  height: 550px;
}

.subpage-hero__bg {
  position: absolute;
  top: 86px;
  left: 0;
  width: 1920px;
  height: 504px;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.subpage-hero--capabilities .subpage-hero__bg {
  top: 3px;
  height: 547px;
  background-color: #0b111d;
  background-image: url("../img/capabilities-hero.jpg");
  background-position: center;
  background-size: cover;
}

.subpage-hero--capabilities::before,
.subpage-hero--cases::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 179px;
  background: url("../img/capabilities-hero-overlay.png") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}

.subpage-hero__content {
  position: absolute;
  top: 164px;
  left: 220px;
  display: flex;
  width: 849px;
  flex-direction: column;
  gap: 24px;
  color: #fff;
  z-index: 3;
}

.subpage-hero__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subpage-hero__eyebrow,
.subpage-hero__title,
.subpage-hero__lead {
  margin: 0;
}

.subpage-hero__eyebrow {
  color: #1fbcff;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.subpage-hero__titles {
  display: flex;
  flex-direction: column;
}

.subpage-hero__title {
  color: #fff;
  font-size: 46px;
}

.subpage-hero__title--regular {
  font-weight: 400;
  line-height: 73.16px;
  letter-spacing: -2.79px;
}

.subpage-hero__title--bold {
  font-weight: 700;
  line-height: 67px;
}

.subpage-hero__lead {
  width: 602px;
  color: #cad5e2;
  font-size: 18px;
  font-weight: 400;
  line-height: 32.4px;
}

.subpage-hero--cases .subpage-hero__bg {
  top: 0;
  height: 590px;
  background-image: url("../img/cases-hero-full.png");
  background-position: center top;
  background-size: 100% 100%;
}

.subpage-main {
  background: #f5f8fb;
  color: #0d1838;
}

.subpage-container {
  width: 1594px;
  margin: 0 auto;
}

/* ==========================================================================
   Capabilities page
   ========================================================================== */
.cap-directory {
  padding: 64px 0 0;
}

.cap-directory__container {
  width: 1440px;
  margin: 0 auto;
}

.cap-directory__eyebrow {
  height: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce2ec;
  color: #1f74ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 1.7px;
}

.cap-directory__layout {
  display: grid;
  grid-template-columns: 261px minmax(0, 1fr);
  column-gap: 76px;
  align-items: start;
  margin-top: 0;
}

.cap-index {
  position: relative;
  top: auto;
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 261px;
}

.cap-index__nav {
  display: flex;
  flex-direction: column;
}

.cap-index__item {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 16px 8px;
  border-bottom: 1px solid #DCE2EC;
  color: #4E5969;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.5px;
  transition: color 0.2s ease, background 0.2s ease;
}

.cap-index__item:hover,
.cap-index__item:focus-visible,
.cap-index__item.is-active {
  color: #4E5969;
  background: #fff;
}

.cap-index__item:focus-visible {
  outline: 2px solid #1f74ff;
  outline-offset: -2px;
}

.cap-index__no {
  flex: none;
  color: #4E5969;
  font-family: "Source Han Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.cap-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cap-service {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  column-gap: 46px;
  align-items: start;
  padding: 46px 0;
  border-bottom: 1px solid #cad5e2;
  scroll-margin-top: var(--sticky-content-offset);
}

.cap-service__media {
  width: 340px;
  height: 240px;
  overflow: hidden;
  border-radius: 6px;
  background: #eaf1fb;
}

.cap-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cap-service:hover .cap-service__media img {
  transform: scale(1.025);
}

.cap-service__content {
  display: flex;
  min-width: 0;
  height: 240px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.cap-service__en {
  color: #0e2553;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.cap-service__title {
  margin-top: 4px;
  color: #000;
  font-size: 32px;
  font-weight: 500;
  line-height: 46px;
}

.cap-service__desc {
  margin-top: 16px;
  color: #4e5969;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1.7px;
}

.cap-service__core {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  align-items: flex-start;
}

.cap-service__core-label {
  color: #cad5e2;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 1.7px;
}

.cap-service__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: #002f8c;
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  letter-spacing: 1.7px;
}

.cap-service__tags span + span::before {
  content: "";
  width: 1px;
  height: 12px;
  background: #dce2ec;
}

.cap-service__tags span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.cap-service__tags--wide {
  gap: 24px;
}

.cap-service__tags--wide span {
  gap: 24px;
}

.cap-service__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #1f74ff;
  font-size: 14px;
  font-weight: 500;
}

.cap-service__link img {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Case center page
   ========================================================================== */
.case-page {
  padding: 40px 0 64px;
}

.case-page__eyebrow {
  color: #1f74ff;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 1.5px;
}

.case-page__title {
  margin-top: 17px;
  color: #0d1838;
  font-size: 62px;
  font-weight: 400;
  line-height: 73px;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.case-filter {
  height: 38px;
  padding: 0 20px;
  border: 1px solid #dce3eb;
  border-radius: 19px;
  background: transparent;
  color: #697586;
  font: inherit;
  font-size: 14px;
  line-height: 36px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.case-filter:hover,
.case-filter:focus-visible {
  color: #1f74ff;
  border-color: #9bc4ff;
}

.case-filter:focus-visible {
  outline: 2px solid #1f74ff;
  outline-offset: 2px;
}

.case-filter.is-active {
  border-color: #1f74ff;
  background: #1f74ff;
  color: #fff;
}

.case-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 510px);
  gap: 32px;
  margin-top: 56px;
}

.case-work-grid.is-filtered {
  margin-top: 56px;
}

.case-work-card {
  position: relative;
  width: 510px;
  height: 426px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 4px;
  background: #fff;
  color: #0d1838;
  scroll-margin-top: var(--sticky-content-offset);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.case-work-card.is-targeted,
.case-work-card:target {
  border-color: #1f74ff;
  box-shadow: 0 0 0 2px rgba(31, 116, 255, 0.18), 0 14px 34px rgba(13, 24, 56, 0.12);
}

.case-work-card:focus-visible {
  outline: 2px solid #1f74ff;
  outline-offset: 3px;
}

.case-work-card[hidden] {
  display: none;
}

.case-work-card:hover,
.case-work-card:focus-within {
  border-color: #c8d8eb;
}

.case-work-card.is-targeted,
.case-work-card:target {
  border-color: #1f74ff;
}

.case-work-card__media {
  position: relative;
  width: 510px;
  height: 198px;
  flex: none;
  overflow: hidden;
  background: #e9eef5;
  isolation: isolate;
}

.case-work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.case-work-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.case-work-card__link:focus-visible {
  outline: none;
}

.case-work-card:focus-within {
  outline: 2px solid #1f74ff;
  outline-offset: 3px;
}

.case-work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(31, 116, 255, 0.5);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.case-work-card:hover .case-work-card__media::after,
.case-work-card:focus-within .case-work-card__media::after {
  opacity: 1;
}

.case-work-card:hover .case-work-card__media img,
.case-work-card:focus-within .case-work-card__media img {
  transform: scale(1.045);
}

.case-work-card__body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 23px;
}

.case-work-card__category {
  color: #1f74ff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.case-work-card__category span {
  color: #9aa6b5;
  font-weight: 400;
}

.case-work-card__title {
  margin-top: 4px;
  color: #0d1838;
  font-size: 24px;
  font-weight: 500;
  line-height: 31px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.case-work-card__desc {
  margin-top: 8px;
  color: #86909c;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-work-card__result {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e4e9ef;
}

.case-work-card__result-copy {
  min-width: 0;
}

.case-work-card__label {
  display: block;
  color: #86909c;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.case-work-card__value {
  display: block;
  margin-top: 2px;
  color: #1f74ff;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-work-card__value ~ .case-work-card__value { display: none; }

.case-work-card__arrow {
  width: 20px;
  height: 20px;
  flex: none;
  background: url("../img/icons/arrow-muted.svg") center / contain no-repeat;
}

.subpage .footer {
  margin-top: 0;
}

/* ==========================================================================
   Case detail page
   ========================================================================== */
.case-detail {
  padding: 72px 0 56px;
  background: #fff;
}

.case-detail-page .viewport {
  overflow: clip;
}

.case-detail__container {
  width: 1252px;
  margin: 0 auto;
}

.case-detail__layout {
  display: grid;
  grid-template-columns: 342px 860px;
  column-gap: 50px;
  align-items: start;
}

.case-profile {
  position: sticky;
  top: var(--sticky-content-offset);
  align-self: start;
  width: 342px;
  padding-top: 4px;
}

.case-detail-page .case-profile {
  position: relative;
  top: auto;
  will-change: transform;
}

.case-profile__eyebrow {
  color: #1f74ff;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 1.5px;
}

.case-profile__list {
  margin-top: 8px;
}

.case-profile__row {
  padding: 10px 0 11px;
  border-bottom: 1px solid #edf0f4;
}

.case-profile__row dt {
  color: #8c98a8;
  font-size: 12px;
  line-height: 18px;
}

.case-profile__row dd {
  margin: 5px 0 0;
  color: #17233d;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.case-article {
  width: 860px;
  min-width: 0;
}

.case-article__loading {
  color: #697586;
  font-size: 15px;
  line-height: 26px;
}

.case-article__head {
  margin-bottom: 42px;
}

.case-article__category {
  color: #101a30;
  font-size: 42px;
  font-weight: 500;
  line-height: 50px;
}

.case-article__title {
  color: #101a30;
  font-size: 42px;
  font-weight: 500;
  line-height: 50px;
}

.case-section {
  margin-top: 42px;
  scroll-margin-top: var(--sticky-content-offset);
}

.case-section__head {
  margin-bottom: 12px;
}

.case-section__eyebrow {
  color: #1f74ff;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 1.2px;
}

.case-section__title {
  margin-top: 2px;
  color: #101a30;
  font-size: 32px;
  font-weight: 400;
  line-height: 42px;
}

.case-section__text {
  color: #5d6878;
  font-size: 14px;
  font-weight: 400;
  line-height: 27px;
}

.case-section__subhead {
  margin-top: 16px;
  color: #2c3748;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.case-section__note {
  margin-top: 10px;
  color: #5d6878;
  font-size: 14px;
  line-height: 26px;
}

.case-visual {
  width: 100%;
  height: 318px;
  margin: 28px 0 0;
  overflow: hidden;
  background: #edf2f7;
}

.case-visual--solution {
  height: 266px;
  margin-top: 16px;
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-visual:hover img {
  transform: scale(1.035);
}

.case-challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.case-challenge {
  min-height: 74px;
  padding: 12px 16px 11px;
  border: 1px solid #dfe4eb;
  border-radius: 2px;
  background: #fff;
}

.case-challenge strong,
.case-challenge span {
  display: block;
}

.case-challenge strong {
  color: #16213a;
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
}

.case-challenge span {
  margin-top: 3px;
  color: #8a95a5;
  font-size: 12px;
  line-height: 18px;
}

.case-metrics {
  display: grid;
  margin-top: 22px;
  border: 1px solid #dfe4eb;
  background: #fff;
}

.case-metric {
  min-height: 82px;
  padding: 17px 18px 14px;
}

.case-metric + .case-metric {
  border-left: 1px solid #dfe4eb;
}

.case-metric__value,
.case-metric__label {
  display: block;
}

.case-metric__value {
  color: #17233d;
  font-family: "Manrope", "Source Han Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.case-metric__label {
  margin-top: 3px;
  color: #8a95a5;
  font-size: 12px;
  line-height: 18px;
}

.case-point-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  color: #5d6878;
  font-size: 13px;
  line-height: 22px;
}

.case-point-list li {
  position: relative;
  padding-left: 18px;
}

.case-point-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #2688fb;
  font-size: 11px;
  font-weight: 700;
}

.case-value__title {
  margin-top: 24px;
  color: #17233d;
  font-size: 23px;
  font-weight: 500;
  line-height: 34px;
}

.case-value__title + .case-section__text {
  margin-top: 10px;
}

.case-back {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #edf0f4;
}

.case-back__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #33405a;
}

.case-back__link:hover,
.case-back__link:focus-visible {
  color: #1f74ff;
}

.case-back__link:focus-visible {
  outline: 2px solid #1f74ff;
  outline-offset: 4px;
}

.case-back__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #0D1838;
  border-radius: 50%;
  color: #7f9dc6;
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.case-back__link:hover .case-back__icon,
.case-back__link:focus-visible .case-back__icon {
  border-color: #1f74ff;
  background: #eef5ff;
  color: #1f74ff;
}

.case-back__arrow {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("../img/icons/arrow.svg") center / contain no-repeat;
  mask: url("../img/icons/arrow.svg") center / contain no-repeat;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.case-back__link:hover .case-back__arrow,
.case-back__link:focus-visible .case-back__arrow {
  transform: rotate(180deg) translateX(2px);
}

.case-back__link strong,
.case-back__link small {
  display: block;
}

.case-back__link strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.case-back__link small {
  margin-top: 2px;
  color: #8a95a5;
  font-size: 12px;
  line-height: 17px;
}

.case-empty {
  padding: 76px 0;
}

.case-empty__title {
  margin-top: 12px;
  color: #101a30;
  font-size: 42px;
  line-height: 54px;
}

.case-empty__text {
  margin-top: 16px;
  color: #5d6878;
  font-size: 15px;
  line-height: 28px;
}

.case-empty__link {
  display: inline-flex;
  margin-top: 28px;
  color: #1f74ff;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .case-work-card__media img,
  .case-visual img,
  .cap-index__item,
  .cap-service__media img,
  .case-filter,
  .case-work-card,
  .case-work-card__media::after,
  .case-back__icon,
  .case-back__arrow {
    transition: none;
  }

  .case-back__link:hover .case-back__arrow,
  .case-back__link:focus-visible .case-back__arrow {
    transform: rotate(180deg);
  }
}

.case-detail-hero {
  height: 573px;
}

.case-detail-hero .subpage-hero__bg {
  top: 0;
  height: 573px;
  background-image: url("../img/case-detail-hero-bg.png");
  background-position: left top;
  background-size: 100% 100%;
}
