/* Hero — foto kota sebagai latar, tipografi besar */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 150px 0 60px; overflow: hidden; }   /* tanpa isolation: foto latar (z -2) harus berada di bawah canvas jejak (z -1) */

.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  filter: var(--hero-img-filter);
  animation: hero-zoom 30s ease-in-out infinite alternate;
}
.hero__bg::before { /* tint biru */
  content: ""; position: absolute; inset: 0; background: var(--hero-tint); mix-blend-mode: var(--hero-tint-blend); opacity: var(--hero-tint-opacity); z-index: 1;
}
.hero__bg::after { /* fade ke hitam agar teks terbaca + glow biru */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: var(--hero-fade);
}
@keyframes hero-zoom { to { transform: scale(1.08); } }

/* Judul per slide: ditumpuk di satu sel grid, saling crossfade */
.hero__titles { display: grid; }
.hero__title { grid-area: 1 / 1; display: block; opacity: 0; transform: translate3d(0, 40px, 0); filter: blur(10px); pointer-events: none; }
.hero__title--2 { align-self: start; }
.hero__title.is-active, .hero__title.is-leaving { transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform 1.1s cubic-bezier(.22, 1, .36, 1), filter .9s ease; }
.hero__title.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.hero__title.is-leaving { opacity: 0; transform: translate3d(0, -30px, 0); filter: blur(8px); }

/* Slide foto: teks h1 di belakang foto, kartu di depan foto */
.hero h1 { position: relative; z-index: 1; }
.hero__bottom { position: relative; z-index: 3; }
.hero__slides {
  position: absolute; z-index: 2; bottom: 0; right: max(0px, calc((100vw - var(--wrap)) / 2 - 30px));
  width: min(50vw, 86svh, 800px); aspect-ratio: 1345 / 1334; pointer-events: none;
}
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  opacity: 0; transform: translate3d(70px, 0, 0) scale(1.04); filter: blur(10px);
  will-change: transform, opacity, filter;
}
.hero__slide.is-active, .hero__slide.is-leaving { transition: opacity 1.1s cubic-bezier(.22, 1, .36, 1), transform 1.4s cubic-bezier(.22, 1, .36, 1), filter 1.1s ease; }
.hero__slide.is-active { opacity: 1; transform: none; filter: none; }
.hero__slide.is-leaving { opacity: 0; transform: translate3d(-50px, 0, 0) scale(.97); filter: blur(8px); }
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide.is-leaving, .hero__title, .hero__title.is-leaving { transform: none; filter: none; }
  .hero__slide.is-active, .hero__slide.is-leaving, .hero__title.is-active, .hero__title.is-leaving { transition: opacity .6s linear; }
}

.label--hero { margin-bottom: 26px; }
.hero h1 { font-size: clamp(46px, 10.5vw, 160px); line-height: .92; letter-spacing: -.05em; font-weight: 800; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--hero-outline); }
.hero h1 .accent { background: var(--hero-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-top: 48px; }
.hero__bottom p { color: var(--hero-text); max-width: 520px; font-size: 17px; }

.hero-card { padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero-card small { color: var(--muted); display: block; }
.hero-card b { font: 700 20px var(--font-display); }
.hero-card .arrow {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--blue); color: var(--on-blue); box-shadow: var(--arrow-shadow); font-size: 22px; transition: transform .3s;
}
.hero-card:hover .arrow { transform: rotate(-45deg); }

@media (max-width: 800px) {
  /* mobile: judul → foto → kartu menimpa bagian bawah foto → deskripsi */
  .hero { padding-top: 120px; justify-content: flex-start; }
  .hero > .wrap { display: flex; flex-direction: column; }
  .hero__bottom { display: contents; }
  .hero .label--hero { order: 0; } .hero h1 { order: 1; }
  .hero__bottom p { order: 4; margin-top: 24px; }
  .hero__slides { order: 2; position: relative; right: auto; bottom: auto; width: min(100%, 460px); margin: 8px auto 0; }
  .hero-card { order: 3; position: relative; z-index: 3; margin-top: -84px; }
}
@media (max-width: 480px) { .hero__slides { width: 100%; } }
