/* HPH R3 interior-page corrections.
   People remain visible on the right; copy and contrast sit physically left. */

html[dir="rtl"] body.interior-page .page-hero,
html[dir="rtl"] body.interior-page.hero-band .page-hero {
  min-height: clamp(660px, 79vh, 820px);
}

html[dir="rtl"] body.interior-page .page-hero .hero-copy,
html[dir="rtl"] body.interior-page.hero-left .hero-copy,
html[dir="rtl"] body.interior-page.hero-right .hero-copy,
html[dir="rtl"] body.interior-page.hero-band .hero-copy {
  position: relative;
  z-index: 3;
  width: min(720px, 58vw);
  max-width: none;
  min-height: inherit;
  margin-right: auto;
  margin-left: 0;
  padding: 150px clamp(34px, 4vw, 66px) 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body.interior-page.hero-band .hero-copy::before {
  content: none;
  display: none;
}

html[dir="rtl"] body.interior-page .page-hero .hero-art.hero-photo::after,
html[dir="rtl"] body.interior-page.hero-left .page-hero .hero-art.hero-photo::after,
html[dir="rtl"] body.interior-page.hero-right .page-hero .hero-art.hero-photo::after,
html[dir="rtl"] body.interior-page.hero-band .page-hero .hero-art.hero-photo::after {
  content: "";
  background:
    linear-gradient(90deg,
      rgba(5, 17, 33, .97) 0%,
      rgba(5, 17, 33, .91) 28%,
      rgba(5, 17, 33, .70) 47%,
      rgba(5, 17, 33, .24) 70%,
      rgba(5, 17, 33, .05) 100%),
    linear-gradient(180deg,
      rgba(3, 13, 26, .18) 0%,
      rgba(3, 13, 26, .05) 55%,
      rgba(3, 13, 26, .30) 100%);
}

html[dir="rtl"] body.interior-page .page-hero .hero-photo .art-label {
  right: auto;
  left: max(var(--gutter), calc((100vw - 1260px) / 2));
  max-width: min(500px, 44vw);
  text-align: right;
}

/* The direction-sensitive wipe belongs to hero copy only.
   Large content sections must never remain clipped or blank. */
html[dir="rtl"] body.interior-page .reveal,
html[dir="rtl"] body.interior-page .reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  transition: none !important;
}

html[dir="rtl"] body.interior-page .page-hero .hero-copy > * {
  opacity: 0;
  filter: blur(2px);
  transform: translate3d(18px, 0, 0);
  clip-path: inset(0 0 0 100%);
  animation: hph-r3-copy-wipe-rtl .88s cubic-bezier(.22, 1, .36, 1) forwards;
}

html[dir="rtl"] body.interior-page .page-hero .hero-copy > .eyebrow { animation-delay: .10s; }
html[dir="rtl"] body.interior-page .page-hero .hero-copy > h1 { animation-delay: .24s; }
html[dir="rtl"] body.interior-page .page-hero .hero-copy > .lead { animation-delay: .40s; }
html[dir="rtl"] body.interior-page .page-hero .hero-copy > .hero-actions { animation-delay: .56s; }

@keyframes hph-r3-copy-wipe-rtl {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(18px, 0, 0);
    clip-path: inset(0 0 0 100%);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 800px) {
  html[dir="rtl"] body.interior-page .page-hero,
  html[dir="rtl"] body.interior-page.hero-band .page-hero {
    min-height: 690px;
  }

  html[dir="rtl"] body.interior-page .page-hero .hero-copy,
  html[dir="rtl"] body.interior-page.hero-left .hero-copy,
  html[dir="rtl"] body.interior-page.hero-right .hero-copy,
  html[dir="rtl"] body.interior-page.hero-band .hero-copy {
    width: 100%;
    min-height: 690px;
    margin: 0;
    padding: 132px 0 104px;
    justify-content: flex-end;
  }

  html[dir="rtl"] body.interior-page .page-hero .hero-art.hero-photo::after,
  html[dir="rtl"] body.interior-page.hero-left .page-hero .hero-art.hero-photo::after,
  html[dir="rtl"] body.interior-page.hero-right .page-hero .hero-art.hero-photo::after,
  html[dir="rtl"] body.interior-page.hero-band .page-hero .hero-art.hero-photo::after {
    background:
      linear-gradient(180deg,
        rgba(5, 17, 33, .08) 0%,
        rgba(5, 17, 33, .25) 40%,
        rgba(5, 17, 33, .93) 73%,
        rgba(5, 17, 33, .99) 100%);
  }

  html[dir="rtl"] body.interior-page .page-hero .hero-photo .art-label {
    right: var(--gutter);
    left: auto;
    max-width: calc(100% - var(--gutter) * 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[dir="rtl"] body.interior-page .page-hero .hero-copy > * {
    opacity: 1;
    filter: none;
    transform: none;
    clip-path: none;
    animation: none;
  }
}
