/* ============================================================
   PAGE: IP Unggulan — Adili Idola, The Founder5, Crowyokan, Bold & Bald
   Art direction: editorial, poster-led, alternating two-col layout.
   NOTE: section ber-class .container pakai padding-block (BUKAN
   `padding: V 0`) supaya gutter horizontal .container tetap utuh.
============================================================ */

/* ── TOPBAR: transparent over hero, opaque after scroll ─── */
.site-top {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  transition: background .4s var(--ease), border-bottom-color .4s var(--ease) !important;
}
/* JS adds .topbar-solid to <html> once hero is scrolled past */
html.topbar-solid .site-top {
  background: color-mix(in srgb, var(--bg) 72%, transparent) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
  backdrop-filter: blur(14px) saturate(150%) !important;
  border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent) !important;
}

/* ── HERO — full-screen slideshow (sama pola event page) ── */
/* anti kedip: .page:empty dipindah ke inline <style> di ip.html agar URL cukup diubah di 1 file */
.ip-hero {
  position: relative;
  overflow: hidden;
  background:#060E25;
  height: 100svh;
  min-height: 540px;
  margin-top: -64px;          /* pull up behind fixed topbar */
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3.5rem,7vw,6rem);
}
@supports not (height: 100svh) { .ip-hero { height: 100vh; } }

/* slideshow */
.ip-slides { position: absolute; inset: 0; z-index: 0; }
.ip-slide  { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s ease; }
.ip-slide.active { opacity: 1; }
.ip-slide img { width:100%; height:100%; object-fit:cover; object-position:center; transform:scale(1); will-change:transform; }
@keyframes ip-zoom-in { from { transform:scale(1); } to { transform:scale(1.07); } }
.ip-slide.active img { animation: ip-zoom-in 9s ease-out forwards; }
@media (prefers-reduced-motion:reduce) {
  .ip-slide img { transform:scale(1); }
  .ip-slide.active img { animation:none; }
}

/* dark gradient overlay */
.ip-overlay {
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background: linear-gradient(to bottom,
    rgba(4,10,28,.25) 0%, rgba(4,10,28,.28) 35%,
    rgba(4,10,28,.70) 70%, rgba(4,10,28,.88) 100%);
}

/* text */
.ip-hero-in { position:relative; z-index:2; max-width:1080px; }
.ip-hero .eyebrow { margin-bottom:1.1rem; color:var(--cy); }
.ip-h1 {
  font-family: var(--f-h);
  font-size: clamp(2.8rem,7.4vw,5.6rem);
  font-weight: 700; line-height: 1.02; letter-spacing:-.02em;
  color: #fff; margin: 0 0 1.3rem;
}
.ip-h1-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ip-hero-lead {
  font-size: clamp(1rem,1.7vw,1.15rem);
  color: rgba(255,255,255,.78);
  line-height: 1.74; max-width:56ch; margin:0;
}

/* ── shared ──────────────────────────────────────────────── */
.ip-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 600; color: var(--b2);
  text-decoration: none; transition: gap .25s var(--ease), color .2s;
}
.ip-link:hover { gap: .65rem; color: var(--cy); }
.ip-link svg { width: 15px; height: 15px; }

/* ── WRAP ────────────────────────────────────────────────── */
.ipx-wrap {
  padding-block: clamp(3rem,6vw,5rem);
  display: flex; flex-direction: column;
  gap: clamp(2.5rem,5vw,4rem);
}
.ipx-head { max-width: 44ch; }
.ipx-head .eyebrow { display: block; margin-bottom: .7rem; }
.ipx-head-title {
  font-family: var(--f-h);
  font-size: clamp(1.6rem,3.4vw,2.6rem);
  font-weight: 700; color: var(--ink2); line-height: 1.14; margin: 0;
}

/* ── MARQUEE STRIP ───────────────────────────────────────── */
.ipx-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: .6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ipx-mq-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  animation: ipxMq 28s linear infinite;
  will-change: transform;
}
@keyframes ipxMq { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion:reduce) { .ipx-mq-track { animation: none; } }
.ipx-mq-item {
  font-family: var(--f-h);
  font-size: clamp(1rem,2.2vw,1.5rem);
  font-weight: 700; color: var(--ink2);
  padding: 0 clamp(.8rem,2vw,1.6rem);
  white-space: nowrap; letter-spacing: -.01em;
  transition: color .2s;
}
.ipx-mq-item:hover { color: var(--acc); }
.ipx-mq-dot { color: var(--acc); margin-left: clamp(.8rem,2vw,1.6rem); }

/* ── shared atoms ────────────────────────────────────────── */
.ipx-hf-num {
  display: block;
  font-family: var(--f-h);
  font-size: clamp(3.5rem,8vw,6.5rem); font-weight: 800; line-height: .9;
  letter-spacing: -.04em; color: transparent;
  -webkit-text-stroke: 2px var(--acc); opacity: .45;
  margin-bottom: .2rem;
}
.ipx-hf-tag {
  display: inline-block; align-self: flex-start; width: fit-content;
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--acc);
  padding: .28rem .65rem; border-radius: 6px; margin-bottom: .9rem;
}
.ipx-hf-title {
  font-family: var(--f-h);
  font-size: clamp(2rem,4.2vw,3.4rem); font-weight: 800;
  color: var(--ink2); line-height: 1.02; letter-spacing: -.025em;
  margin: 0 0 1rem;
}
.ipx-hf-desc {
  font-size: clamp(.93rem,1.4vw,1.02rem); line-height: 1.8;
  color: var(--muted); margin: 0 0 1.4rem; max-width: 42ch;
}

/* ── SHARED: foto frame atom ─────────────────────────────── */
/* Semua foto pakai .ipx-frame — satu tempat untuk border-radius, overflow, hover */
.ipx-frame {
  position: relative; overflow: hidden;
  border-radius: 16px; background: var(--bg3);
  box-shadow: 0 4px 20px rgba(4,10,28,.1);
}
.ipx-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s var(--ease);
  display: block;
}
.ipx-frame:hover img { transform: scale(1.06); }
.ipx-frame { cursor: zoom-in; }
[data-theme="dark"] .ipx-frame { box-shadow: 0 4px 24px rgba(0,0,0,.4); }

/* ── LIGHTBOX (foto IP diperbesar saat diklik) ───────────── */
.ipx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(4, 8, 20, .85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  cursor: zoom-out;
}
.ipx-lightbox.open { opacity: 1; visibility: visible; }
.ipx-lb-img {
  max-width: min(94vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  transform: scale(.92);
  transition: transform .4s var(--ease);
  cursor: default;
}
.ipx-lightbox.open .ipx-lb-img { transform: scale(1); }
.ipx-lb-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  transition: transform .25s var(--ease), background .25s;
}
.ipx-lb-close:hover { transform: scale(1.1) rotate(90deg); background: var(--cy); }

/* ── 01 ADILI IDOLA — "Evidence Board" ──────────────────── */
/* [hero besar | 2 stacked | teks]
   [4-foto strip lebar]               */
.ipx-hero-feat {
  display: grid;
  grid-template-columns: 1.4fr 0.52fr 0.78fr;
  grid-template-rows: 1fr auto;
  gap: clamp(.6rem,1.2vw,1rem) clamp(1rem,2.5vw,1.6rem);
  align-items: start;
}
/* foto hero utama */
.ipx-hf-img {
  grid-column: 1; grid-row: 1;
  aspect-ratio: 3/2; border-radius: 22px; box-shadow: var(--shadow-lg);
}
.ipx-hf-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(4,10,28,.45) 0%, transparent 55%);
}
.ipx-hero-feat:hover .ipx-hf-img img { transform: scale(1.04); }
/* 2 foto stacked di kolom tengah — tinggi ikut hero */
.ipx-hf-side {
  grid-column: 2; grid-row: 1;
  align-self: stretch;           /* paksa ikut tinggi row meski align-items:start */
  display: flex; flex-direction: column; gap: clamp(.5rem,1vw,.8rem);
}
.ipx-hf-side .ipx-frame { flex: 1; min-height: 0; border-radius: 14px; }
/* teks — kolom kanan, spans baris 1 dan 2 */
.ipx-hf-body {
  grid-column: 3; grid-row: 1 / 3;
  display: flex; flex-direction: column; justify-content: center;
  padding-left: clamp(.4rem,1vw,.8rem);
}
/* 4-foto strip bawah, spans kolom 1+2 */
.ipx-hf-strip {
  grid-column: 1 / 3; grid-row: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.5rem,1vw,.8rem);
}
.ipx-frame--strip { aspect-ratio: 16/9; border-radius: 12px; }

/* ── 02 THE FOUNDER5 — "Three Tiers" ────────────────────── */
/* [teks | wide top / 2-mid / 3-bot] */
.ipx-founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.4rem,3vw,2.8rem);
  align-items: center;
}
.ipx-fo-body { display: flex; flex-direction: column; }
.ipx-fo-media { display: flex; flex-direction: column; gap: clamp(.55rem,1vw,.8rem); }
/* top: satu foto lebar 16:9 */
.ipx-frame--wide { aspect-ratio: 16/9; border-radius: 18px; box-shadow: var(--shadow-lg); }
.ipx-founder:hover .ipx-frame--wide img { transform: scale(1.04); }
/* baris 2-col dan 3-col */
.ipx-fo-row { display: grid; gap: clamp(.5rem,1vw,.75rem); }
.ipx-fo-row--2 { grid-template-columns: 1fr 1fr; }
.ipx-fo-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.ipx-fo-row .ipx-frame { aspect-ratio: 4/3; border-radius: 12px; }

/* ── 03 CROWYOKAN — "360° Stage" ────────────────────────── */
/* cinematic banner + strip 5 foto bervariasi tinggi */
.ipx-stage { display: flex; flex-direction: column; gap: clamp(.6rem,1.2vw,1rem); }
.ipx-banner {
  position: relative; overflow: hidden;
  border-radius: 24px; aspect-ratio: 21/9; min-height: 280px;
  background: var(--bg3); box-shadow: var(--shadow-lg);
}
.ipx-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .8s var(--ease);
}
.ipx-stage:hover .ipx-banner img { transform: scale(1.03); }
.ipx-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(4,10,28,.88) 0%, rgba(4,10,28,.55) 45%, rgba(4,10,28,.1) 100%);
}
.ipx-banner-body {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end;
  gap: clamp(2rem,5vw,5rem); padding: clamp(1.8rem,4vw,3rem);
}
.ipx-banner-left { flex-shrink: 0; }
.ipx-banner-left .ipx-hf-title { color: #fff; margin-bottom: 0; }
.ipx-banner-left .ipx-hf-num   { -webkit-text-stroke-color: var(--acc); }
.ipx-banner-right { max-width: 44ch; }
/* strip 5 foto: ujung kiri & kanan portrait, tengah landscape */
.ipx-stage-strip {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 1fr 0.7fr;
  gap: clamp(.5rem,1vw,.8rem);
  align-items: stretch;
}
.ipx-stage-strip .ipx-frame { aspect-ratio: 4/3; border-radius: 12px; }
.ipx-frame--tall { aspect-ratio: 3/4 !important; }

/* ── 04 BOLD & BALD — "Versus" ──────────────────────────── */
/* [3 foto kiri] | [teks + VS badge] | [3 foto kanan] */
.ipx-versus {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: clamp(1rem,2.2vw,1.8rem);
  align-items: center;
}
.ipx-vs-side { display: flex; flex-direction: column; gap: clamp(.55rem,1vw,.8rem); }
.ipx-frame--portrait { aspect-ratio: 4/5; border-radius: 18px; box-shadow: var(--shadow-lg); }
.ipx-vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.5rem,1vw,.75rem); }
.ipx-vs-row .ipx-frame { aspect-ratio: 4/3; border-radius: 10px; }
.ipx-vs-body {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .5rem;
}
.ipx-vs-body .ipx-hf-num  { align-self: center; }
.ipx-vs-body .ipx-hf-tag  { align-self: center; }
.ipx-vs-body .ipx-hf-title { text-align: center; }
.ipx-vs-badge {
  font-family: var(--f-h); font-size: clamp(2.2rem,4.5vw,3.4rem); font-weight: 900;
  color: var(--acc); letter-spacing: .1em; line-height: 1;
  border: 2.5px solid var(--acc); border-radius: 10px;
  padding: .3rem .9rem; margin: .5rem 0; align-self: center;
  box-shadow: 0 0 24px color-mix(in srgb, var(--acc) 30%, transparent);
}

/* ── CTA ─────────────────────────────────────────────────── */
.ip-cta { padding-block: clamp(.5rem,1.5vw,1rem); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  /* IP 01: foto+side atas, teks+strip bawah */
  .ipx-hero-feat {
    grid-template-columns: 1fr 0.45fr;
    grid-template-rows: auto auto auto;
  }
  .ipx-hf-img   { grid-column: 1; grid-row: 1; aspect-ratio: 16/10; }
  .ipx-hf-side  { grid-column: 2; grid-row: 1; }
  .ipx-hf-body  { grid-column: 1 / -1; grid-row: 2; }
  .ipx-hf-strip { grid-column: 1 / -1; grid-row: 3; }

  /* IP 02 */
  .ipx-founder  { grid-template-columns: 1fr; }

  /* IP 03: banner 16:9, strip 4-col (sembunyikan item ke-5 biar tidak orphan) */
  .ipx-banner   { aspect-ratio: 16/9; }
  .ipx-banner-body { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .ipx-stage-strip { grid-template-columns: repeat(4, 1fr); }
  .ipx-stage-strip .ipx-frame--tall { aspect-ratio: 4/3 !important; }
  .ipx-stage-strip .ipx-frame:last-child { display: none; }

  /* IP 04: kedua sisi tetap berdampingan (efek VS terjaga), teks pindah ke bawah */
  .ipx-versus   { grid-template-columns: 1fr 1fr; }
  .ipx-vs-body  { grid-column: 1 / -1; order: 3; align-items: flex-start; text-align: left; }
  /* override inline style dari JS */
  .ipx-vs-body .ipx-hf-title,
  .ipx-vs-body .ipx-hf-desc { text-align: left !important; }
  .ipx-vs-body .ipx-hf-num  { align-self: flex-start; }
  .ipx-vs-body .ipx-hf-tag  { align-self: flex-start; } /* "VERSUS COMEDY SHOW" rata kiri spt teks lain */
  .ipx-vs-badge { align-self: flex-start; }
  /* Portrait jadi square supaya tidak terlalu panjang di mobile */
  .ipx-frame--portrait { aspect-ratio: 1/1; }
}

@media (max-width: 560px) {
  /* IP 01: single column. Foto hero diperbesar (4/3) supaya tidak kekecilan;
     strip 3 foto dibuat lebih tinggi (3/4) biar terbaca, bukan gepeng. */
  .ipx-hero-feat { grid-template-columns: 1fr; }
  .ipx-hf-img   { aspect-ratio: 4/3; }
  .ipx-hf-side  { display: none; }
  .ipx-hf-strip { grid-template-columns: repeat(3, 1fr); }
  .ipx-frame--strip { aspect-ratio: 3/4; }

  /* IP 02: 3-col row jadi 2-col, item terakhir full-width */
  .ipx-fo-row--3 { grid-template-columns: 1fr 1fr; }
  .ipx-fo-row--3 .ipx-frame:last-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

  /* IP 03: tampilkan SEMUA 5 foto strip — foto ke-5 jadi banner lebar di bawah */
  .ipx-stage-strip { grid-template-columns: repeat(2, 1fr); }
  .ipx-stage-strip .ipx-frame:last-child {
    display: block; grid-column: 1 / -1; aspect-ratio: 16/9 !important;
  }
  .ipx-banner   { aspect-ratio: 4/3; min-height: 0; }

  /* IP 04: foto 2 sisi jadi 2-col per sisi lebih ringkas */
  .ipx-vs-row   { gap: clamp(.3rem,.8vw,.5rem); }
  .ipx-frame--portrait { aspect-ratio: 3/4; }  /* sedikit lebih panjang di hp */
}
