.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(13, 27, 61, .18);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 127, 140, .28);
  border-radius: 999px;
  color: #0F7F8C;
  background: rgba(15, 127, 140, .07);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.lang-switch a::after {
  display: none;
}

.lang-switch a:hover {
  color: #fff;
  background: #0F7F8C;
}

html[lang="en"] .hero-copy h1 {
  white-space: normal;
  font-size: clamp(42px, 4.45vw, 64px);
  letter-spacing: -0.045em;
}

html[lang="en"] .hero-tags {
  max-width: 760px;
  line-height: 1.5;
}

html[lang="en"] .home-feature-content h3,
html[lang="en"] .home-app-content h3 {
  letter-spacing: -0.02em;
}

/* Final override for the four homepage feature cards.
   Layout: icon + title on the first row, description spanning the full card below. */
.home-feature-card {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 18px !important;
  row-gap: 14px !important;
}

.home-feature-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  margin: 0 !important;
  position: static !important;
}

.home-feature-content {
  display: contents !important;
}

.home-feature-content h3 {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  align-self: center !important;
  line-height: 1.25 !important;
  word-break: normal !important;
}

.home-feature-content p {
  display: block !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  line-height: 1.78 !important;
}

/* Research page v2 */
.research-page-v2 {
  background: #fff;
}

.research-hero-v2 {
  position: relative;
  overflow: hidden;
  padding: 58px 0 50px;
  background: linear-gradient(115deg, #fff 0%, #fff 52%, #F2F7FC 100%);
  border-bottom: 1px solid #E6EEF7;
}

.research-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 27, 61, .035) 1px, transparent 1px), linear-gradient(0deg, rgba(13, 27, 61, .03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .75;
  pointer-events: none;
}

.research-hero-v2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 78px;
  background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(15, 127, 140, .08) 9px 10px);
  transform: skewY(-2deg);
  opacity: .5;
  pointer-events: none;
}

.research-hero-grid-v2 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 40px;
  align-items: center;
  min-height: 230px;
}

.research-eyebrow-v2 {
  margin: 0 0 8px;
  color: #0F7F8C;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.research-hero-copy-v2 h1 {
  margin: 0;
  color: #0D1B3D;
  font-size: clamp(46px, 5.2vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.research-hero-copy-v2 p:not(.research-eyebrow-v2) {
  max-width: 620px;
  margin: 18px 0 0;
  color: #3F4B63;
  font-size: 19px;
  line-height: 1.75;
}

.research-hero-art-v2 {
  position: relative;
  height: 250px;
  opacity: .72;
}

.research-hero-art-v2::before {
  content: "";
  position: absolute;
  inset: 10px 20px 20px 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 64% 46%, rgba(13, 27, 61, .08), transparent 28%), radial-gradient(circle at 50% 50%, transparent 44%, rgba(13, 27, 61, .12) 45%, transparent 46%);
}

.research-art-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0D1B3D;
  box-shadow: 52px 22px 0 #0F7F8C, 96px -14px 0 #D4A017, 146px 34px 0 rgba(13, 27, 61, .5), 198px 0 0 #0F7F8C;
}

.research-art-node.node-a { left: 110px; top: 70px; }
.research-art-node.node-b { left: 210px; top: 130px; transform: scale(.8); }
.research-art-node.node-c { left: 310px; top: 90px; transform: scale(.65); }

.research-art-line {
  position: absolute;
  width: 260px;
  height: 1px;
  background: rgba(13, 27, 61, .22);
  transform-origin: left center;
}

.research-art-line.line-a { left: 110px; top: 76px; transform: rotate(16deg); }
.research-art-line.line-b { left: 150px; top: 152px; transform: rotate(-21deg); width: 310px; }

.research-art-head {
  position: absolute;
  right: 118px;
  top: 18px;
  width: 128px;
  height: 172px;
  border: 2px solid rgba(13, 27, 61, .18);
  border-radius: 50% 48% 43% 48%;
  box-shadow: inset -32px 0 0 rgba(15, 127, 140, .06);
}

.research-art-head::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(13, 27, 61, .16);
  border-radius: inherit;
}

.research-art-arm {
  position: absolute;
  left: 270px;
  bottom: 34px;
  width: 92px;
  height: 72px;
  border-left: 10px solid rgba(13, 27, 61, .22);
  border-bottom: 10px solid rgba(13, 27, 61, .22);
  transform: skewX(-16deg);
}

.research-art-mobility {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 136px;
  height: 48px;
  border: 2px solid rgba(13, 27, 61, .16);
  border-radius: 50px 70px 24px 24px;
  background: rgba(255, 255, 255, .55);
}

.research-art-mobility::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -10px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(13, 27, 61, .18);
  border-radius: 50%;
  box-shadow: 74px 0 0 -2px rgba(255, 255, 255, .8), 74px 0 0 0 rgba(13, 27, 61, .18);
}

.research-content-v2 {
  padding-top: 26px;
  padding-bottom: 58px;
  background: #fff;
}

.research-stack-v2 {
  display: grid;
  gap: 24px;
}

.research-direction-v2 {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #DDE7F2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(13, 27, 61, .06);
}

.research-index-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
  background: linear-gradient(180deg, #06245A, #005EC4);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
  position: relative;
}

.research-index-v2::after {
  content: "";
  position: absolute;
  top: 62px;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, .9);
}

.research-direction-v2.teal .research-index-v2 {
  background: linear-gradient(180deg, #064A5B, #058D9B);
}

.research-panel-v2 {
  padding: 24px 22px 10px;
}

.research-panel-head-v2 {
  display: grid;
  grid-template-columns: 78px minmax(0, .9fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}

.research-panel-icon-v2 {
  width: 62px;
  height: 62px;
  border: 1px solid #C9D6E6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}

.research-panel-icon-v2 img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.research-panel-head-v2 h2 {
  margin: 0;
  color: #0D1B3D;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 950;
  letter-spacing: -.02em;
}

.research-panel-head-v2 p {
  margin: 0;
  color: #38465F;
  font-size: 16px;
  line-height: 1.75;
}

.research-subgrid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.research-subcard-v2 {
  min-height: 142px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #E2EAF3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(13, 27, 61, .055);
}

.research-subcard-v2 img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.research-subbody-v2 {
  min-width: 0;
}

.research-subbody-v2 span {
  display: inline-block;
  margin-bottom: 5px;
  color: #005EC4;
  font-size: 17px;
  font-weight: 950;
}

.research-direction-v2.teal .research-subbody-v2 span {
  color: #058D9B;
}

.research-subbody-v2 h3 {
  margin: 0 0 7px;
  color: #0D1B3D;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 900;
}

.research-subbody-v2 p {
  margin: 0;
  color: #516178;
  font-size: 13px;
  line-height: 1.55;
}

.research-subcard-v2 b {
  color: #0D1B3D;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.research-app-strip-v2 {
  display: grid;
  grid-template-columns: 180px repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 10px;
  background: linear-gradient(105deg, #F4F8FC, #FFFFFF 48%, #EEF5F8);
  border: 1px solid #E3EAF3;
}

.research-app-title-v2 {
  color: #0D1B3D;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 950;
  border-right: 1px solid #CAD7E6;
  min-height: 64px;
  display: flex;
  align-items: center;
}

.research-app-strip-v2 article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.research-app-strip-v2 img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.research-app-strip-v2 h3 {
  margin: 0 0 6px;
  color: #0D1B3D;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.research-app-strip-v2 p {
  margin: 0;
  color: #516178;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .lang-switch {
    margin-left: 0;
    padding-left: 10px;
  }

  .lang-switch a {
    padding: 7px 10px;
    min-width: 40px;
  }

  .research-hero-grid-v2 {
    grid-template-columns: 1fr;
  }

  .research-hero-art-v2 {
    display: none;
  }

  .research-panel-head-v2 {
    grid-template-columns: 70px 1fr;
  }

  .research-panel-head-v2 p {
    grid-column: 2;
  }

  .research-subgrid-v2,
  .research-app-strip-v2 {
    grid-template-columns: 1fr;
  }

  .research-app-title-v2 {
    border-right: 0;
    border-bottom: 1px solid #CAD7E6;
    min-height: auto;
    padding-bottom: 14px;
  }
}

@media (max-width: 860px) {
  .lang-switch {
    padding-left: 0;
    border-left: 0;
  }

  .lang-switch a {
    margin-left: 8px;
    padding: 7px 11px;
    font-size: 13px;
  }

  html[lang="en"] .hero-copy h1 {
    white-space: normal;
    font-size: clamp(32px, 9vw, 46px);
  }

  .home-feature-card {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    column-gap: 16px !important;
    row-gap: 12px !important;
    min-height: auto !important;
    padding: 22px 20px 20px !important;
  }

  .home-feature-icon {
    width: 58px !important;
    height: 58px !important;
  }

  .research-hero-v2 {
    padding: 40px 0 34px;
  }

  .research-hero-copy-v2 h1 {
    font-size: 42px;
    letter-spacing: -.03em;
  }

  .research-hero-copy-v2 p:not(.research-eyebrow-v2) {
    font-size: 16px;
    line-height: 1.68;
  }

  .research-direction-v2 {
    grid-template-columns: 1fr;
  }

  .research-index-v2 {
    justify-content: flex-start;
    align-items: center;
    min-height: 58px;
    padding: 0 22px;
    font-size: 27px;
  }

  .research-index-v2::after {
    left: 66px;
    top: 50%;
  }

  .research-panel-v2 {
    padding: 22px 18px 18px;
  }

  .research-panel-head-v2 {
    grid-template-columns: 54px 1fr;
    gap: 14px;
    margin-bottom: 18px;
  }

  .research-panel-icon-v2 {
    width: 48px;
    height: 48px;
  }

  .research-panel-icon-v2 img {
    width: 30px;
    height: 30px;
  }

  .research-panel-head-v2 h2 {
    font-size: 22px;
  }

  .research-panel-head-v2 p {
    grid-column: 1 / -1;
    font-size: 15px;
  }

  .research-subcard-v2 {
    grid-template-columns: 48px 1fr 14px;
    padding: 16px;
  }

  .research-subcard-v2 img {
    width: 44px;
    height: 44px;
  }

  .research-app-strip-v2 {
    padding: 20px 18px;
  }
}

@media (max-width: 520px) {
  html[lang="en"] .hero-copy h1 {
    white-space: normal;
    font-size: clamp(28px, 8.5vw, 36px);
  }

  .home-feature-card {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
    padding: 20px 16px 18px !important;
  }

  .home-feature-icon {
    width: 50px !important;
    height: 50px !important;
  }

  .home-feature-content h3 {
    font-size: 20px !important;
  }

  .home-feature-content p {
    font-size: 15px !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  .home-app-card {
    grid-template-columns: 1fr;
  }

  .research-hero-copy-v2 h1 {
    font-size: 36px;
  }

  .research-subcard-v2,
  .research-app-strip-v2 article {
    grid-template-columns: 1fr;
  }

  .research-subcard-v2 b {
    display: none;
  }
}
