/* Rawaa full-bleed video hero. Poster, canvas and native video cover the
   entire hero with identical, top-anchored framing. Header clearance is
   maintained visually by the measured gradient, rather than a blank inset. */
.hero.rawaa-video-hero {
  --rawaa-hero-safe-top: 112px;
  --rawaa-hero-safe-gap: 20px;
  --rawaa-hero-travel: clamp(1250px,210svh,2550px);
  --rawaa-hero-direction: 90deg;
  position: relative;
}
html[lang="ar"] .hero.rawaa-video-hero { --rawaa-hero-direction: 270deg; }
.hero.rawaa-video-hero .hero__frame {
  background: radial-gradient(ellipse at 70% 56%,#563342 0%,#382331 45%,#2a1520 82%);
  min-height: 560px;
  height: 100svh;
}
html[lang="ar"] .hero.rawaa-video-hero .hero__frame {
  background: radial-gradient(ellipse at 30% 56%,#563342 0%,#382331 45%,#2a1520 82%);
}
.hero.rawaa-video-hero.is-cinematic { height: calc(max(560px,100svh) + var(--rawaa-hero-travel)); }
.hero.rawaa-video-hero.is-cinematic .hero__frame { position: sticky; top: 0; }
.hero.rawaa-video-hero .rawaa-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: none !important;
  pointer-events: none;
}
.hero.rawaa-video-hero .rawaa-hero-media__plane {
  position: absolute;
  inset: 0;
  /* Keep all three media layers edge-to-edge; never mirror device labels. */
  overflow: hidden;
}
.hero.rawaa-video-hero .rawaa-hero-poster,
.hero.rawaa-video-hero .rawaa-hero-canvas,
.hero.rawaa-video-hero .rawaa-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* Top alignment crops excess height from the bottom on ultrawide screens. */
  object-position: 78% top;
  transform: none !important;
  border: 0;
}
html[lang="ar"] .hero.rawaa-video-hero :is(.rawaa-hero-poster,.rawaa-hero-canvas,.rawaa-hero-video) {
  object-position: 78% top;
}
.rawaa-hero-picture, .rawaa-hero-sequence { position: absolute; inset: 0; display: block; overflow: hidden; }
.rawaa-hero-canvas,.rawaa-hero-video { opacity: 0; }
.hero.rawaa-video-hero.is-frame-ready .rawaa-hero-canvas { opacity: 1; }
.hero.rawaa-video-hero.is-video-ready .rawaa-hero-video { opacity: 1; }
.hero.rawaa-video-hero.is-frame-ready .rawaa-hero-poster,
.hero.rawaa-video-hero.is-video-ready .rawaa-hero-poster { visibility: hidden; }
html body[data-page="home"] .hero.rawaa-video-hero .hero__shade {
  pointer-events: none;
  background: linear-gradient(var(--rawaa-hero-direction),#2a1520e6 0%,#2a1520ba 24%,#2a152066 43%,#2a15200a 65%,transparent 100%),
              linear-gradient(180deg,#2a1520a6 0px,#2a152045 var(--rawaa-hero-safe-top),transparent calc(var(--rawaa-hero-safe-top) + 90px),transparent 76%,#2a15209c 100%);
}
body[data-page="home"] .hero.rawaa-video-hero .hero__copy {
  width: min(620px,43%);
  bottom: clamp(65px,13vh,160px);
  z-index: 2;
}
body[data-page="home"] .hero.rawaa-video-hero .hero__title { font-size: clamp(2.8rem,5.5vw,6rem); line-height: 1.06; }
html[lang="ar"] body[data-page="home"] .hero.rawaa-video-hero .hero__title { font-size: clamp(2.2rem,4vw,4.6rem); line-height: 1.28; letter-spacing: normal; }
.hero.rawaa-video-hero .hero__sub { color: var(--c-cream); line-height: 1.65; }
.hero.rawaa-video-hero .hero__scroll { display: none; }
@media (min-width:821px) and (max-height:660px) {
  body[data-page="home"] .hero.rawaa-video-hero .hero__copy { bottom: 52px; }
  body[data-page="home"] .hero.rawaa-video-hero .hero__title { font-size:clamp(2.4rem,4.7vw,4.9rem); }
  html[lang="ar"] body[data-page="home"] .hero.rawaa-video-hero .hero__title { font-size:clamp(2rem,3.3vw,3.8rem); }
}
@media (max-width:820px) {
  .hero.rawaa-video-hero { --rawaa-hero-safe-top: 94px; --rawaa-hero-safe-gap: 14px; --rawaa-hero-travel:clamp(720px,130svh,1450px); }
  .hero.rawaa-video-hero .hero__frame { min-height: 620px; }
  .hero.rawaa-video-hero.is-cinematic { height: calc(max(620px,100svh) + var(--rawaa-hero-travel)); }
  /* Portrait viewports keep the mask near the focal point while the media
     continues beneath the text, header and CTA. */
  .hero.rawaa-video-hero :is(.rawaa-hero-poster,.rawaa-hero-canvas,.rawaa-hero-video),
  html[lang="ar"] .hero.rawaa-video-hero :is(.rawaa-hero-poster,.rawaa-hero-canvas,.rawaa-hero-video) { object-position: 80% top; }
  /* The native portrait asset is composed for the phone, not cropped from
     the landscape clip. Keep a centered composition through all frames. */
  .hero.rawaa-video-hero[data-hero-layout="mobile"] :is(.rawaa-hero-poster,.rawaa-hero-canvas,.rawaa-hero-video),
  html[lang="ar"] .hero.rawaa-video-hero[data-hero-layout="mobile"] :is(.rawaa-hero-poster,.rawaa-hero-canvas,.rawaa-hero-video) { object-position: center top; }
  html body[data-page="home"] .hero.rawaa-video-hero .hero__shade {
    background: linear-gradient(180deg,#2a1520b8 0px,#2a152033 var(--rawaa-hero-safe-top),transparent 34%,#2a152029 46%,#2a1520cf 68%,#2a1520eb 100%);
  }
  body[data-page="home"] .hero.rawaa-video-hero .hero__copy,
  html[lang="ar"] body[data-page="home"] .hero.rawaa-video-hero .hero__copy {
    width:calc(100% - 2 * var(--gutter)); inset-inline-start:var(--gutter); inset-inline-end:auto; bottom:54px;
  }
  body[data-page="home"] .hero.rawaa-video-hero .hero__title { font-size:clamp(2.05rem,8vw,3.5rem); line-height:1.12; }
  html[lang="ar"] body[data-page="home"] .hero.rawaa-video-hero .hero__title { font-size:clamp(1.8rem,7vw,3.1rem); line-height:1.28; }
  body[data-page="home"] .hero.rawaa-video-hero .hero__sub { font-size:.9rem; margin-block:12px 17px; line-height:1.55; }
}
@media (prefers-reduced-motion:reduce) {
  .hero.rawaa-video-hero.is-cinematic { height: auto; }
  .hero.rawaa-video-hero.is-cinematic .hero__frame { position:relative; }
}

/* Independent editorial film between the features and the inspiration gallery.
   Reuse the exact media renderer, but keep the opening hero's copy, header hooks,
   poster preloads and styling unchanged. No progress bar or duplicate text. */
.hero.rawaa-video-hero.rawaa-secondary-hero {
  margin-block-start: clamp(64px,9vw,120px);
  --rawaa-hero-travel: clamp(1250px,210svh,2550px);
}
.hero.rawaa-video-hero.rawaa-secondary-hero .hero__frame { background: #2a1520; }
.hero.rawaa-video-hero.rawaa-secondary-hero :is(.rawaa-hero-poster,.rawaa-hero-canvas,.rawaa-hero-video),
html[lang="ar"] .hero.rawaa-video-hero.rawaa-secondary-hero :is(.rawaa-hero-poster,.rawaa-hero-canvas,.rawaa-hero-video) {
  object-position: center center;
}
@media (max-width: 820px), (max-width: 1366px) and (any-pointer: coarse) {
  .hero.rawaa-video-hero.rawaa-secondary-hero {
    --rawaa-hero-travel: clamp(720px,130svh,1450px);
  }
  .hero.rawaa-video-hero.rawaa-secondary-hero .hero__frame { min-height: 540px; }
  .hero.rawaa-video-hero.rawaa-secondary-hero.is-cinematic {
    height: calc(max(540px,100svh) + var(--rawaa-hero-travel));
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero.rawaa-video-hero.rawaa-secondary-hero.is-cinematic { height: auto; }
}

/* Scene two only: a soft optical vignette and persistent shop CTA.
   Both remain inside the sticky frame, above poster/canvas/video. */
.rawaa-secondary-hero .rawaa-secondary-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 42%, #24101b12 70%, #24101b4d 100%),
    linear-gradient(180deg, #24101b38 0%, transparent 18%, transparent 71%, #24101b60 100%);
}
.rawaa-secondary-hero .rawaa-secondary-actions {
  position: absolute;
  inset-inline: 0;
  bottom: calc(clamp(28px, 5.8svh, 64px) + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: right;
  padding-left: var(--gutter);
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.rawaa-secondary-hero .rawaa-secondary-shop {
  pointer-events: auto;
  min-width: 142px;
  min-height: 52px;
  padding-block: 7px;
  padding-inline: 23px 8px;
  /* A barely visible glass CTA. Keep its hit area and keyboard access intact. */
  background: #fbf3ea0a;
  color: #fbf3ea9c;
  border-color: #fbf3ea24;
  box-shadow: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: .475;
  transition: opacity .25s, background-color .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.rawaa-secondary-hero .rawaa-secondary-shop > span { flex: 1; text-align: center; }
.rawaa-secondary-hero .rawaa-secondary-shop svg {
  background: transparent;
  border-color: #fbf3ea30;
}
.rawaa-secondary-hero .rawaa-secondary-shop:focus-visible {
  opacity: 1;
  background: #2a152099;
  color: var(--c-cream);
  border-color: #fbf3ea80;
  outline: 2px solid var(--c-apricot);
  outline-offset: 5px;
}
@media (hover: hover) {
  .rawaa-secondary-hero .rawaa-secondary-shop:hover {
    opacity: 1;
    background: #2a152073;
    color: var(--c-cream);
    border-color: #fbf3ea66;
    box-shadow: none;
  }
}
@media (max-width: 820px), (max-width: 1366px) and (any-pointer: coarse) {
  .rawaa-secondary-hero .rawaa-secondary-vignette {
    background:
      radial-gradient(ellipse at 50% 43%, transparent 48%, #24101b12 76%, #24101b40 100%),
      linear-gradient(180deg, #24101b30 0%, transparent 17%, transparent 70%, #24101b68 100%);
  }
  .rawaa-secondary-hero .rawaa-secondary-actions {
    bottom: calc(clamp(24px, 4.5svh, 44px) + env(safe-area-inset-bottom, 0px));
    justify-content: center;
    padding-inline: var(--gutter);
  }
  .rawaa-secondary-hero .rawaa-secondary-shop {
    min-width: 136px;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rawaa-secondary-hero .rawaa-secondary-shop { transition: none; }
}
