/* ==========================================================================
   Cenematic home-c — "Create Videos in Any Language" section

   Centered header, two auto-scrolling language pill rows (opposite
   directions, flag + colour per language), then the body copy beside a
   portrait video. Portrait media is a placeholder Pexels image — swap for
   the real animated webp.
   ========================================================================== */

.lang {
  padding: 84px 0 96px;
  background: linear-gradient(180deg, #fbfbfe, #fdf3e7);
  color: var(--ink);
  overflow: hidden;
}

.lang__header {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 40px;
  text-align: center;
}
.lang__title {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lang__title-accent {
  background: linear-gradient(105deg, #d97706, #ea580c, #c2410c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lang__subtitle {
  margin-top: 10px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: var(--muted);
}

/* Scrolling language rows ------------------------------------------------- */
.lang__marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lang__marquee + .lang__marquee { margin-top: 16px; }
.lang__marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 14px;
  padding-right: 14px;
  animation: lang-scroll 38s linear infinite;
}
.lang__marquee--reverse .lang__marquee-track { animation-direction: reverse; }
.lang__marquee-track span {
  flex-shrink: 0;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255, 138, 0, 0.28);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
@keyframes lang-scroll {
  to { transform: translateX(-50%); }
}

/* Body + portrait video --------------------------------------------------- */
.lang__split {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 64px;
  align-items: center;
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 0 40px;
}
.lang__text p {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.72;
}
.lang__text p + p { margin-top: 18px; font-weight: 700; }

.lang__media { margin: 0; display: flex; justify-content: center; }
.lang__video {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1920 / 1430; /* native ratio of the multi-language clip */
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid transparent;
  background:
    linear-gradient(#0a0a12, #0a0a12) padding-box,
    linear-gradient(120deg, #ffc107, #ff8a00, #ff3d00, #ffc107) border-box;
  background-size: auto, 300% 100%;
  animation: gradient-shift 10s linear infinite;
}
.lang__video img,
.lang__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .lang__split { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .lang__marquee-track { animation: none; }
}
