/* BELTAKKA — homepage hero: one screen, copy readable from the first paint, a 3 s clip that plays once.
   The products sit on the left of every frame, so the copy stays on the right in both languages. */

.hero {
  --fx: 32%; --fy: 50%;
  position: relative; height: 100svh; min-height: 560px; max-height: 1000px;
  background: var(--stage); color: #f2f1ee; overflow: hidden; isolation: isolate;
}
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__img, .hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--fx) var(--fy); }
.hero__vid { opacity: 0; transition: opacity .25s linear; }
.hero__vid.is-on { opacity: 1; }
.hero__img.is-swap { animation: hero-fade .5s ease both; }
@keyframes hero-fade { from { opacity: .4; } }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(270deg, rgba(10,10,11,.8) 0%, rgba(10,10,11,.45) 30%, rgba(10,10,11,0) 52%),
    linear-gradient(0deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 24%);
}

/* ── copy ─────────────────────────────────────────── */
.hero__copy {
  position: absolute; z-index: 3; right: var(--gut); top: 50%; transform: translateY(-46%);
  width: min(41vw, 600px); text-align: start;
}
.hero__eyebrow { color: #a9a7a0; margin-bottom: 18px; }
.hero__title { font-size: clamp(40px, 4.7vw, 78px); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; color: #f6f5f1; margin: 0 0 22px; }
:lang(ar) .hero__title { line-height: 1.2; letter-spacing: 0; }
.hero__lede { font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.7; color: #b9b7b0; max-width: 46ch; margin: 0 0 18px; }
.hero__spec { color: #8d8b85; font-size: 11.5px; letter-spacing: .14em; margin: 0 0 26px; text-align: start; }
:lang(ar) .hero__spec { text-align: right; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ghost { --fg: #f2f1ee; border-color: rgba(242,241,238,.55); }
.hero__ghost:hover { border-color: var(--tap); }

/* one short entrance, no scroll choreography */
.hero__in { animation: hero-in .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 70ms + 80ms); }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }
/* the headline is the page's largest paint: it slides in but is visible from the first frame */
.hero__title.hero__in { animation-name: hero-rise; animation-delay: 0s; }
@keyframes hero-rise { from { transform: translateY(10px); } }

/* portrait / square viewports: products up top, copy at the bottom */
@media (max-aspect-ratio: 5/4) {
  .hero { --fx: 50%; --fy: 38%; }
  .hero__shade { background: linear-gradient(0deg, rgba(10,10,11,.94) 0%, rgba(10,10,11,.7) 30%, rgba(10,10,11,0) 52%); }
  .hero__copy { left: var(--gut); right: var(--gut); top: auto; bottom: max(26px, env(safe-area-inset-bottom)); transform: none; width: auto; }
  .hero__title { font-size: clamp(30px, 8.6vw, 46px); margin-bottom: 14px; }
  .hero__eyebrow { margin-bottom: 12px; font-size: 11px; }
  .hero__lede { font-size: 14.5px; line-height: 1.6; margin-bottom: 12px; }
  .hero__spec { font-size: 10px; letter-spacing: .1em; margin-bottom: 18px; }
  .hero__ctas .btn { min-height: 48px; padding: 0 20px; font-size: 14.5px; }
}
@media (max-aspect-ratio: 5/4) and (max-height: 700px) { .hero__lede { display: none; } }
@media (max-width: 380px) { .hero__ctas .btn { flex: 1 1 auto; } }

/* header while it floats over the dark stage (class toggled by hero.js) */
.hdr.hdr--over-hero { color: #f2f1ee; }
.hdr.hdr--over-hero .logo__light { display: none; }
.hdr.hdr--over-hero .logo__dark { display: block; }
.hdr.hdr--over-hero.is-stuck { background: color-mix(in srgb, var(--stage) 72%, transparent); box-shadow: 0 1px 0 var(--stage-line); }

@media (prefers-reduced-motion: reduce) { .hero__in { animation: none; } }

@media (max-aspect-ratio: 5/4) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,0) 15%),
      linear-gradient(0deg, rgba(10,10,11,.97) 0%, rgba(10,10,11,.82) 30%, rgba(10,10,11,0) 54%);
  }
  .hero__title { font-size: clamp(32px, 9.6vw, 46px); line-height: 1.18; }
  .hero__lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #c4c2bb; }
  .hero__spec { display: none; }
  .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__ctas .btn { width: 100%; padding: 0 12px; }
}
@media (max-aspect-ratio: 5/4) and (max-height: 700px) { .hero__lede { display: none; } }
