.editorial-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #151612;
  color: #fff;
  padding: 150px 32px 48px;
}

/* Two layers: the landscape covers any width, while the cut-out portrait is sized by
   the hero height and pinned to the centred content column, so it never zooms or drifts. */
.hero-portrait {
  --hero-face-x: .69;
  position: absolute;
  inset: 76px 0 0 0;
  margin: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-portrait-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 60%;
  filter: saturate(.95);
}

.hero-portrait-image {
  position: absolute;
  bottom: 0;
  height: 95%;
  width: auto;
  max-width: none;
  /* Face centre (≈40% across the cut-out) lands at --hero-face-x of the 1280px layout. */
  left: calc(max(32px, 50% - 640px) + var(--hero-face-x) * min(1280px, 100% - 64px));
  translate: -40% 0;
  filter: saturate(.95);
}

/* Light bloom slideshow (driven by hero-slides.js): a warm golden-hour glow swells from the
   sun, the scenes cross-fade in place beneath it, and the new portrait settles into focus as
   the light recedes. Only opacity, filter and a small lift animate, so it stays light. */
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .9s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-slide .hero-portrait-bg {
  position: absolute;
  inset: 0;
}

.hero-slide .hero-portrait-image {
  opacity: 0;
  transform: translateY(14px);
  filter: saturate(.95) blur(6px);
}

.hero-slide.is-active .hero-portrait-image {
  opacity: 1;
  transform: none;
  filter: saturate(.95) blur(0);
  transition: opacity 1.1s ease .35s, transform 1.4s cubic-bezier(.22, 1, .36, 1) .35s, filter 1.1s ease .35s;
}

/* The outgoing portrait dissolves into the light. */
.hero-slide.is-leaving .hero-portrait-image {
  opacity: 0;
  filter: saturate(.95) brightness(1.6) blur(3px);
  transition: opacity .8s ease, filter .8s ease;
}

.hero-bloom {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transform-origin: 84% 40%;
  background:
    radial-gradient(ellipse 60% 85% at 84% 40%, #ffd696e6 0%, #ff963c8c 24%, #f474172e 50%, transparent 74%),
    linear-gradient(90deg, transparent 35%, #ffaa5a33 100%);
}

.hero-portrait.is-blooming .hero-bloom {
  animation: hero-bloom 2.6s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes hero-bloom {
  0% {
    opacity: 0;
    transform: scale(.7);
  }

  40% {
    opacity: 1;
    transform: scale(1.15);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.hero-slide-2 .hero-portrait-bg {
  object-position: 58% 50%;
}

/* Face centre sits ≈47% across the second cut-out. */
.hero-slide-2 .hero-portrait-image {
  height: 97%;
  translate: -47% 0;
}

.editorial-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg, #11130ff5 0%, #11130fd9 22%, #11130f4d 53%, #11130f00 75%), linear-gradient(0deg, #10120fec, transparent 60%);
}

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* Confine the cinematic reveal to the background, clear of the portrait. */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 28%, transparent 53%);
  mask-image: linear-gradient(90deg, #000 0%, #000 28%, transparent 53%);
}

.hero-ambient::before {
  content: '';
  position: absolute;
  inset: -64px;
  background-image: linear-gradient(#ffffff18 1px, transparent 1px), linear-gradient(90deg, #ffffff18 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .55;
  animation: hero-grid-reveal 2.8s cubic-bezier(.22, 1, .36, 1) .15s both;
}

.hero-ambient::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 10% 60%, #f4741720, transparent 55%);
  opacity: .35;
  animation: hero-light-reveal 3.2s ease-in-out both;
}

@keyframes hero-grid-reveal {
  0% {
    opacity: 0;
    filter: blur(5px);
  }

  55% {
    opacity: .9;
    filter: blur(0);
  }

  100% {
    opacity: .55;
    filter: blur(0);
  }
}

@keyframes hero-light-reveal {
  0% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: .35;
  }
}

.hero-editorial-layout {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 48px;
  align-items: start;
}

.hero-editorial-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-script {
  font-family: 'Caveat', cursive;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1;
  color: #ff852e;
  transform: rotate(-7deg);
  transform-origin: left;
  margin: 0 0 10px 130px;
}

#hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(54px, 7.6vw, 100px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.055em;
  margin: 0;
}

.hero-question {
  font-size: 24px;
  margin-top: 20px;
}

.hero-action {
  margin-top: 24px;
}

/* CTA hero mengikuti sistem tombol halaman: oranye solid, sudut siku, teks gelap.
   Ikon play duduk di kolom sendiri, dipisah garis tipis. */
.hero-primary-cta {
  display: inline-flex;
  align-items: stretch;
  min-width: 320px;
  background: #ed6a16 !important;
  color: #111210 !important;
  padding: 0;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #ed6a16 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background-color .25s ease, border-color .25s ease;
}

.hero-primary-cta:hover {
  background: #ff7a24 !important;
  border-color: #ff7a24 !important;
}

.hero-cta-label {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 20px 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-cta-badge {
  display: grid;
  place-items: center;
  width: 60px;
  flex-shrink: 0;
  border-left: 1px solid rgba(17, 18, 16, 0.28);
}

.hero-cta-play-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}

.hero-primary-cta:is(:hover, :focus-visible) .hero-cta-play-icon {
  transform: translateX(3px);
}

.hero-access-note {
  margin: 12px 0 0;
  font-size: 9px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, 0.6);
}

.hero-video-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(18, 20, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px !important;
  color: #fff;
  padding: 18px;
  margin-top: 20px;
  text-decoration: none;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease;
}

.hero-video-preview:hover {
  border-color: rgba(255, 133, 46, 0.45);
  background: rgba(26, 29, 23, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.6) !important;
}

.hero-card-kicker {
  color: #ff852e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-video-preview>strong {
  font-size: 15px;
  letter-spacing: -.025em;
  line-height: 1.35;
  color: #ffffff;
}

.hero-preview-image {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
}

.hero-preview-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(.8);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-video-preview:hover .hero-preview-image img {
  transform: scale(1.05);
  filter: brightness(.95);
}

.hero-preview-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-video-preview:hover .hero-preview-play {
  background: rgba(237, 106, 22, 0.55);
  transform: scale(1.08);
}

.hero-card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.hero-video-preview:hover .hero-card-link {
  color: #ff852e;
}

.hero-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-top: 28px;
}

.hero-intro {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  max-width: 470px;
  margin: 0 0 12px;
  letter-spacing: -.035em;
}

.hero-intro em {
  font-style: normal;
}

.hero-description {
  font-size: 13px;
  line-height: 1.7;
  max-width: 400px;
  color: #dfdfdb;
}

.hero-signature {
  min-width: 300px;
}

.hero-signature>strong {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 50px;
  font-weight: 600;
}

.hero-signature>span {
  font-size: 9px;
  letter-spacing: .14em;
}

.hero-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 8px;
  letter-spacing: .1em;
}

.hero-route i {
  flex: 1;
  height: 1px;
  background: #ffffff80;
  position: relative;
}

.hero-route i::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff852e;
}

@media (max-width: 1023px) {
  .hero-editorial-layout {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 24px;
  }

  .hero-portrait {
    left: 0;
  }

  #hero-title {
    font-size: clamp(58px, 8vw, 80px);
  }

  .hero-script {
    margin-left: 80px;
  }

  .hero-video-preview {
    padding: 14px;
  }

  .hero-signature {
    min-width: 220px;
  }
}

@media (max-width: 767px) {
  .editorial-hero {
    padding: clamp(300px, 80vw, 370px) 24px 32px;
  }

  .hero-ambient {
    -webkit-mask-image: linear-gradient(180deg, transparent 300px, #000 480px);
    mask-image: linear-gradient(180deg, transparent 300px, #000 480px);
  }

  .hero-editorial-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-portrait {
    --hero-face-x: .62;
    inset: 76px 0 auto 0;
    height: 480px;
  }

  .editorial-hero::before {
    background: linear-gradient(0deg, #11130f 40%, #11130fde 65%, #11130f10 90%);
  }

  #hero-title {
    font-size: clamp(48px, 11.8vw, 82px);
  }

  .hero-script {
    font-size: 48px;
    margin-left: 45px;
  }

  .hero-question {
    font-size: 16px;
  }

  .hero-action {
    margin-top: 20px;
  }

  .hero-primary-cta {
    width: 100%;
    min-width: 0;
    font-size: 12px;
  }

  .hero-cta-label {
    padding: 18px 20px;
  }

  .hero-cta-badge {
    width: 56px;
  }

  .hero-access-note {
    text-align: center;
    margin-top: 10px;
    font-size: 9px;
  }

  .hero-video-preview {
    margin: 0;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 8px;
    padding: 14px;
    border-radius: 14px !important;
  }

  .hero-preview-image {
    grid-column: 1;
    grid-row: 1/4;
    align-self: stretch;
    aspect-ratio: auto;
    border-radius: 8px;
  }

  .hero-card-kicker,
  .hero-video-preview>strong,
  .hero-card-link {
    grid-column: 2;
  }

  .hero-card-kicker {
    grid-row: 1;
  }

  .hero-video-preview>strong {
    grid-row: 2;
    font-size: 13px;
  }

  .hero-card-link {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
  }

  .hero-bottom {
    margin: 0;
    flex-direction: column;
    align-items: start;
    gap: 24px;
  }

  .hero-intro {
    font-size: 21px;
  }

  .hero-signature {
    width: 100%;
    border-top: 1px solid #ffffff30;
    padding-top: 16px;
  }

  .hero-signature>strong {
    font-size: 36px;
  }

  .hero-route {
    max-width: 320px;
    margin-top: 16px;
  }
}

/* Opening slide: photo first, then the message and supporting elements. */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide:first-child .hero-portrait-bg {
    animation: hero-photo-enter 1.8s cubic-bezier(.22, 1, .36, 1) backwards;
  }

  .hero-slide:first-child .hero-portrait-image {
    transform-origin: 40% 30%;
    animation: hero-photo-enter 1.8s cubic-bezier(.22, 1, .36, 1) .15s backwards;
  }

  .hero-eyebrow,
  #hero-title,
  .hero-question,
  .hero-action,
  .hero-video-preview,
  .hero-bottom {
    animation: hero-slide-enter 1s cubic-bezier(.22, 1, .36, 1) backwards;
  }

  .hero-eyebrow {
    animation-delay: .2s;
  }

  #hero-title {
    animation-delay: .4s;
  }

  .hero-question {
    animation-delay: .6s;
  }

  .hero-action {
    animation-delay: .8s;
  }

  .hero-video-preview {
    animation-delay: 1s;
  }

  .hero-bottom {
    animation-delay: 1.15s;
  }

  /* Keyboard navigation reveals controls immediately during the intro. */
  .hero-action:focus-within,
  .hero-video-preview:focus {
    animation: none;
  }
}

@keyframes hero-photo-enter {
  from {
    opacity: 0;
    transform: scale(1.045);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-slide-enter {
  from {
    opacity: 0;
    translate: 0 24px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-ambient::before,
  .hero-ambient::after {
    animation: none;
  }
}
