.homepage-language-video {
  background: linear-gradient(180deg, #0a0e13 0%, #0c1b2a 100%);
  color: #ffffff;
  padding: clamp(5rem, 9vw, 8rem) 0;
  overflow: hidden;
}

.homepage-language-video__container {
  width: min(
    var(--gilliam-law-homepage-max-width),
    calc(100% - (var(--gilliam-law-page-gutter) * 2))
  );
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.homepage-language-video__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.homepage-language-video__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(251, 163, 70, 0.26);
  border-radius: 100px;
  outline: 1px #fba346 solid;
  outline-offset: -1px;
  color: #ffd5a9;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.homepage-language-video__badge-dot {
  width: 8px;
  height: 8px;
  background: #ffd5a9;
  border-radius: 50%;
}

.homepage-language-video__title {
  max-width: 48rem;
  margin: 0;
  color: #ffffff;
  font-family: var(--gilliam-law-font-serif, "Novantique Serif", serif);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.homepage-language-video__body {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.homepage-language-video__body p {
  margin: 0;
}

.homepage-language-video__switcher {
  display: inline-flex;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.22);
  gap: 0.35rem;
}

.homepage-language-video__switch {
  min-width: 7rem;
  border: 0;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.homepage-language-video__switch:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.homepage-language-video__switch.is-active {
  background: #fba346;
  color: #0a1118;
}

.homepage-language-video__stage {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.homepage-language-video__phone-frame {
  position: relative;
  width: min(100%, 24rem);
  aspect-ratio: 9 / 16;
  padding: 0.75rem;
  border: 1px solid rgba(90, 170, 237, 0.6);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.38);
}

.homepage-language-video__panel {
  width: 100%;
  height: 100%;
}

.homepage-language-video__media {
  width: 100%;
  height: 100%;
  border-radius: 0.4rem;
  background: #000000;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .homepage-language-video__container {
    grid-template-columns: 1fr;
  }

  .homepage-language-video__content {
    align-items: center;
    text-align: center;
  }

  .homepage-language-video__body {
    max-width: 46rem;
  }

  .homepage-language-video__phone-frame {
    width: min(100%, 21rem);
  }
}

@media (max-width: 640px) {
  .homepage-language-video {
    padding: 4rem 0;
  }

  .homepage-language-video__switcher {
    width: 100%;
  }

  .homepage-language-video__switch {
    min-width: 0;
    flex: 1;
  }
}
