.language-gateway,
.language-gateway *,
.language-gateway *::before,
.language-gateway *::after {
  box-sizing: border-box;
}

.language-gateway {
  min-width: 0;
  color: var(--color-white);
  background: var(--color-forest-950);
}

.language-gateway__section {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(780px, 82svh);
  padding-block: var(--space-section-working);
  background:
    radial-gradient(circle at 84% 18%, rgba(111, 140, 82, 0.2), transparent 28rem),
    radial-gradient(circle at 8% 88%, rgba(232, 117, 54, 0.14), transparent 26rem),
    linear-gradient(135deg, var(--color-forest-950) 0%, var(--color-forest-900) 58%, #143c30 100%);
}

.language-gateway__section::before,
.language-gateway__section::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.language-gateway__section::before {
  inset: 0;
  opacity: 0.14;
  background-image:
    repeating-radial-gradient(ellipse at 88% 28%, transparent 0 31px, rgba(221, 231, 223, 0.48) 32px 33px, transparent 34px 55px),
    repeating-radial-gradient(ellipse at 12% 82%, transparent 0 24px, rgba(221, 231, 223, 0.32) 25px 26px, transparent 27px 48px);
}

.language-gateway__section::after {
  inset: 18px;
  border: 1px solid rgba(242, 232, 206, 0.14);
  border-radius: calc(var(--radius-card) + 8px);
}

.language-gateway__container {
  width: 100%;
  min-width: 0;
}

.language-gateway__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(242, 232, 206, 0.2);
  border-radius: calc(var(--radius-card) + 8px);
  background: rgba(8, 30, 24, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.language-gateway__identity,
.language-gateway__chooser {
  min-width: 0;
  padding: clamp(28px, 4vw, 58px);
}

.language-gateway__identity {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(242, 232, 206, 0.16);
}

.language-gateway__brandline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--color-bamboo-50);
  font-family: var(--font-body-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.language-gateway__trailmark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(242, 232, 206, 0.5);
  border-radius: 50%;
}

.language-gateway__trailmark span {
  position: absolute;
  display: block;
  width: 17px;
  height: 1px;
  border-radius: var(--radius-pill);
  background: var(--color-sunset-500);
  transform-origin: center;
}

.language-gateway__trailmark span:nth-child(1) {
  transform: translateY(-5px) rotate(-12deg);
}

.language-gateway__trailmark span:nth-child(2) {
  transform: rotate(9deg);
}

.language-gateway__trailmark span:nth-child(3) {
  transform: translateY(5px) rotate(-12deg);
}

.language-gateway__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(34px, 5vw, 66px) 0 14px;
  color: var(--color-mist);
  font-family: var(--font-body-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.language-gateway__eyebrow [lang="bn"] {
  font-family: var(--font-body-bn);
  letter-spacing: 0.03em;
}

.language-gateway__title {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--color-bamboo-50);
  font-size: clamp(2.45rem, 5vw, 5.7rem);
  letter-spacing: -0.035em;
  line-height: 0.94;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.language-gateway__title-bn {
  font-family: var(--font-display-bn);
  font-size: 0.64em;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.language-gateway__title-en {
  font-family: var(--font-display-en);
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.language-gateway__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-content-gap);
  max-width: 660px;
  margin-top: clamp(24px, 4vw, 42px);
  color: rgba(251, 247, 236, 0.78);
  font-size: 0.96rem;
  line-height: 1.6;
}

.language-gateway__intro p {
  min-width: 0;
  margin: 0;
}

.language-gateway__intro [lang="bn"] {
  font-family: var(--font-body-bn);
}

.language-gateway__chooser {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(251, 247, 236, 0.96), rgba(251, 247, 236, 0.96)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(13, 43, 34, 0.04) 10px 11px);
  color: var(--color-ink);
}

.language-gateway__chooser-heading {
  max-width: 500px;
}

.language-gateway__step {
  margin: 0 0 12px;
  color: var(--color-sunset-600);
  font-family: var(--font-body-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.language-gateway__chooser h2 {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--color-forest-950);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.04;
}

.language-gateway__chooser h2 [lang="bn"] {
  color: var(--color-forest-700);
  font-family: var(--font-display-bn);
  font-size: 0.76em;
  letter-spacing: 0;
}

.language-gateway__chooser h2 span:last-child {
  font-family: var(--font-display-en);
}

.language-gateway__chooser-heading > .type-body {
  margin: 15px 0 0;
  color: rgba(21, 32, 27, 0.72);
  font-size: 0.93rem;
  line-height: 1.55;
}

.language-gateway__choices {
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 34px);
}

.language-gateway__choice.button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid rgba(13, 43, 34, 0.16);
  border-radius: var(--radius-card);
  color: var(--color-forest-950);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  transform: translateY(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.language-gateway__choice.button:hover {
  border-color: rgba(232, 117, 54, 0.7);
  background: var(--color-white);
  box-shadow: 0 14px 32px rgba(8, 30, 24, 0.12);
  transform: translateY(-2px);
}

.language-gateway__choice.button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 14px 32px rgba(8, 30, 24, 0.12);
}

.language-gateway__choice[data-recommended="true"] {
  border-color: var(--color-moss-500);
  background: rgba(221, 231, 223, 0.62);
}

.language-gateway__choice-index {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  color: var(--color-bamboo-50);
  background: var(--color-forest-900);
  font-family: var(--font-display-en);
  font-size: 1.3rem;
  line-height: 1;
}

.language-gateway__choice--bn .language-gateway__choice-index {
  font-family: var(--font-display-bn);
}

.language-gateway__choice--en .language-gateway__choice-index {
  font-family: var(--font-display-en);
  letter-spacing: 0.02em;
}

.language-gateway__choice-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.language-gateway__choice-copy strong {
  font-family: var(--font-body-en);
  font-size: 1.04rem;
  line-height: 1.25;
}

.language-gateway__choice--bn .language-gateway__choice-copy strong,
.language-gateway__choice--bn .language-gateway__choice-copy small {
  font-family: var(--font-body-bn);
}

.language-gateway__choice-copy small {
  color: rgba(21, 32, 27, 0.64);
  font-family: var(--font-body-en);
  font-size: 0.82rem;
  line-height: 1.35;
}

.language-gateway__choice-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-forest-900);
  background: var(--color-bamboo-100);
  font-size: 1rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.language-gateway__choice.button:hover .language-gateway__choice-arrow {
  color: var(--color-white);
  background: var(--color-sunset-600);
}

.language-gateway__recommendation {
  position: absolute;
  top: -9px;
  right: 18px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: var(--color-forest-700);
  font-family: var(--font-body-en);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.language-gateway__choice--bn .language-gateway__recommendation {
  font-family: var(--font-body-bn);
}

.language-gateway__status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--color-forest-700);
  font-family: var(--font-body-en);
  font-size: 0.75rem;
  line-height: 1.4;
}

.language-gateway__assurance {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 43, 34, 0.12);
  color: rgba(21, 32, 27, 0.68);
}

.language-gateway__assurance-mark {
  color: var(--color-sunset-600);
  font-size: 1.6rem;
  line-height: 1;
}

.language-gateway__assurance p {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin: 0;
  font-family: var(--font-body-en);
  font-size: 0.74rem;
  line-height: 1.35;
}

.language-gateway__assurance [lang="bn"] {
  font-family: var(--font-body-bn);
}

.language-gateway__contour {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.language-gateway__route-dot {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-bamboo-50);
  border-radius: 50%;
  background: var(--color-sunset-500);
  box-shadow: 0 0 0 5px rgba(232, 117, 54, 0.15);
}

.language-gateway__route-dot--one {
  top: 17%;
  right: 8%;
}

.language-gateway__route-dot--two {
  bottom: 13%;
  left: 7%;
}

.language-gateway__route-line {
  position: absolute;
  right: 8.2%;
  bottom: 14%;
  width: 28%;
  height: 38%;
  border-right: 1px dashed rgba(242, 232, 206, 0.24);
  border-bottom: 1px dashed rgba(242, 232, 206, 0.24);
  border-radius: 0 0 70% 0;
}

@media (max-width: 899px) {
  .language-gateway__section {
    min-height: auto;
  }

  .language-gateway__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .language-gateway__identity {
    border-right: 0;
    border-bottom: 1px solid rgba(242, 232, 206, 0.16);
  }

  .language-gateway__eyebrow {
    margin-top: 32px;
  }

  .language-gateway__title {
    font-size: clamp(2.65rem, 9vw, 5.2rem);
  }

  .language-gateway__intro {
    max-width: 720px;
  }
}

@media (max-width: 599px) {
  .language-gateway__section {
    padding-block: var(--space-section-working-mobile);
  }

  .language-gateway__section::after {
    inset: 8px;
    border-radius: calc(var(--radius-card) + 2px);
  }

  .language-gateway__panel {
    border-radius: var(--radius-card);
  }

  .language-gateway__identity,
  .language-gateway__chooser {
    padding: 24px 20px;
  }

  .language-gateway__brandname {
    font-size: 0.74rem;
  }

  .language-gateway__eyebrow {
    margin-top: 28px;
    font-size: 0.72rem;
  }

  .language-gateway__title {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .language-gateway__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
    font-size: 0.9rem;
  }

  .language-gateway__choice.button {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 82px;
    padding: 14px;
  }

  .language-gateway__choice-index {
    width: 43px;
    height: 43px;
  }

  .language-gateway__choice-copy strong {
    font-size: 0.96rem;
  }

  .language-gateway__choice-copy small {
    font-size: 0.76rem;
  }

  .language-gateway__choice-arrow {
    width: 28px;
    height: 28px;
  }

  .language-gateway__route-line,
  .language-gateway__route-dot--one {
    display: none;
  }
}

@media (max-width: 379px) {
  .language-gateway__identity,
  .language-gateway__chooser {
    padding-inline: 16px;
  }

  .language-gateway__choice.button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .language-gateway__choice-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-gateway__choice.button,
  .language-gateway__choice-arrow {
    transition: none;
  }
}
