/* Tiraz Labs: section "hero" (index.html). Owner: B Home. See js/sections/hero.js. v4 tokens only.
   Phones (390): eyebrow · h1 · line · CTA pair (side by side) · trust line, all inside the first screen; the two reels below.
   ≥ 1024: two columns: text (reading start) | mosaic of two 9:16 reels (reading end), the second offset down. */

.hero { position: relative; background: var(--bg); padding-block-end: var(--sec-y-sm); overflow: clip; }
.hero.under-header { padding-block-start: calc(var(--hdr-h) + clamp(20px, 4vh, 72px)); }
/* v5: no haze (flat brand); kept as an empty layer so the stacking context is unchanged */
.hero::after { content: ""; position: absolute; z-index: 0; inset-block-start: 10%; inset-inline-end: -20%; width: 70%; aspect-ratio: 1; pointer-events: none;
  background: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 36px; }

.hero-eyebrow { margin-block-end: 14px; }
.hero-title { margin: 0; max-width: 20ch; }
/* the word masks of the reveal must not clip Arabic marks above/below the line */
.hero-title .rv-m { padding-block: .12em .2em; margin-block: -.12em -.2em; }

.hero-sub { margin: 18px 0 0; max-width: var(--measure-lead); color: var(--text-soft); text-wrap: pretty; }
.hero-ctas { margin-block-start: 24px; flex-wrap: nowrap; gap: 10px; }
.hero-ctas .btn { flex: 1 1 0; min-width: 0; padding-inline: 14px; }
@media (min-width: 480px) { .hero-ctas .btn { flex: 0 0 auto; padding-inline: 28px; } .hero-ctas { gap: 12px; } }

.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-size: var(--t-small); color: var(--text-soft); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--ornament); transform: rotate(45deg); } /* the stitch */

/* the mosaic: two reels side by side on phones */
.hero-mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.hero-reel-2 { margin-block-start: 28px; }
.hero-hint { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--text-faint); }
.hero-mosaic .reel-hit { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-media); }

/* tight phones: keep the CTAs on screen */
@media (max-width: 400px) {
  .hero-title { font-size: min(var(--t-display), 9.6vw); }
  .hero-sub { font-size: var(--t-body); line-height: 1.7; }
  .hero-ctas .btn { font-size: var(--t-small); }
}

@media (min-width: 768px) {
  .hero-mosaic { max-width: 480px; gap: 20px; }
  .hero-reel-2 { margin-block-start: 48px; }
}

@media (min-width: 1024px) {
  .hero.under-header { padding-block-start: calc(var(--hdr-h) + clamp(32px, 6vh, 80px)); }
  .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 88px); align-items: center; }
  .hero-title { font-size: min(var(--t-display), 5.4vw, 10vh); }
  .hero-sub { margin-block-start: 24px; }
  .hero-ctas { margin-block-start: 32px; }
  .hero-trust { margin-block-start: 28px; }
  .hero-mosaic { max-width: none; width: 100%; justify-self: end; gap: 16px; padding-block-end: 56px; }
  /* never taller than the screen: cap each reel's width from the viewport height */
  .hero-mosaic .reel { width: min(100%, calc((100svh - var(--hdr-h) - 160px) * .5625)); justify-self: center; }
  .hero-reel-2 { margin-block-start: 56px; }
  .hero-hint { position: absolute; inset-block-end: 16px; inset-inline: 0; }
}
