/* ================================================================
   HOMEPAGE SPECIFIC STYLES (Hero, Stats, Units, Featured, Articles)
   ================================================================ */
.hero { position: relative; min-height: 100svh; width: 100%; background: var(--stage); overflow: hidden; }
.hero__slider { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 100px; color: var(--paper); }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero__bg-img { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; object-fit: cover; transform: scale(1); z-index: -2; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(21, 19, 15, 0.2) 0%, rgba(21, 19, 15, 0.6) 70%, rgba(21, 19, 15, 0.95) 100%); }
.hero__slide.is-active .hero__bg-img { animation: zoomBg 6s linear forwards; }
.hero__progress-btn.is-active .hero__progress-bar div { width: 0; animation: fillProgress 6s linear forwards; }
@keyframes zoomBg { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes fillProgress { from { width: 0%; } to { width: 100%; } }
.hero__inner { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: 0.3s; }
.hero__slide.is-active .hero__inner { opacity: 1; transform: translateY(0); }
.hero__eyebrow { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 24px; }
.hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 6vw, 72px); line-height: 1.05; letter-spacing: -.02em; }
.hero__controls { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; }
.hero__progress-wrap { display: flex; gap: 24px; }
.hero__progress-btn { background: none; border: none; cursor: pointer; padding: 10px 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; color: rgba(250,248,244,0.5); font-family: var(--f-body); font-size: 12px; font-weight: 600; transition: color 0.3s; }
.hero__progress-btn:hover, .hero__progress-btn.is-active { color: var(--paper); }
.hero__progress-bar { width: 60px; height: 2px; background: rgba(250,248,244,0.2); border-radius: 2px; overflow: hidden; }
.hero__progress-bar div { height: 100%; width: 0; background: var(--orange); }

.stats { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 72px 24px; gap: 24px; border-bottom: 1px solid var(--line); }
.stats__item { text-align: center; }
.stats__num, .stats__suffix { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4vw, 56px); color: var(--stage); letter-spacing: -.03em; line-height: 1; }
.stats__label { display: block; margin-top: 12px; font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; }

.units { max-width: var(--maxw); margin: 0 auto; padding: var(--gap-section) 24px; }
.unit { display: flex; align-items: center; gap: clamp(32px, 6vw, 80px); padding: 64px 0; border-bottom: 1px solid var(--line); }
.unit:last-child { border-bottom: none; }
.unit--alt { flex-direction: row-reverse; }
.unit__media { flex: 0 0 45%; aspect-ratio: 4/3; border-radius: 20px; position: relative; overflow: hidden; background-color: var(--line); }
.unit__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.unit:hover .unit__img { transform: scale(1.05); }
.unit__content { flex: 1 1 auto; }
.unit__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.5vw, 40px); color: var(--stage); line-height: 1.1; letter-spacing:-.02em; }
.unit__text { margin-top: 16px; color: var(--ink-soft); max-width: 42ch; font-size: 17px; }

/* ================================================================
   FEATURED WORKS (PORTFOLIO SPATIAL SLIDER)
   ================================================================ */
.featured-works { 
  background: var(--stage); 
  /* KUNCI 1: Pangkas habis padding vertikal raksasanya */
  padding: 60px 0; 
  overflow: hidden; 
  user-select: none; 
  -webkit-user-select: none; 
}

/* KUNCI 2: Tarik slider 3D agar lebih merapat ke arah Judul */
.featured-works .section-head {
  margin-bottom: 24px;
}

.spatial-slider-wrap { 
  position: relative; 
  width: 100%; 
  /* KUNCI 3: Kurangi tinggi kontainer agar ruang kosong di bawah gambar hilang */
  height: clamp(350px, 45vw, 560px); 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  perspective: 1200px; 
  cursor: grab; 
}
.spatial-slider-wrap.is-dragging { cursor: grabbing; }

.spatial-slide { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  /* KUNCI 4: Gambar dibesarkan secara drastis (max 860px) */
  width: clamp(320px, 55vw, 860px); 
  /* KUNCI 5: Ubah rasio menjadi 16:9 (Sinematik/Format Video YouTube) */
  aspect-ratio: 16 / 9; 
  height: auto; 
  border-radius: 24px; 
  overflow: hidden; 
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8); /* Shadow dipertajam karena gambar membesar */
  border: 1px solid rgba(255, 255, 255, 0.08); 
  cursor: pointer; 
  will-change: transform, opacity, filter; 
}

.spatial-slide img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  pointer-events: none; 
  user-select: none; 
  -webkit-user-select: none; 
  -webkit-user-drag: none; 
}

.spatial-slide__info { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 100%; 
  /* Area gradasi teks ditinggikan sedikit agar lebih seimbang dengan gambar besar */
  padding: 80px 40px 32px; 
  background: linear-gradient(to top, rgba(21, 19, 15, 0.95) 0%, transparent 100%); 
  color: var(--paper); 
  text-align: center; 
  transition: opacity 0.3s ease, transform 0.3s ease; 
}

.spatial-slide__info h3 { 
  font-family: var(--f-display); 
  /* Ukuran font judul portofolio sedikit dibesarkan */
  font-size: clamp(22px, 3vw, 28px); 
  font-weight: 700; 
  letter-spacing: -.01em; 
}

.spatial-controls { display: none; }

/* --- TOMBOL PLAY (Di Atas Thumbnail) --- */
.play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 77, 0, 0.85); /* Warna oranye iFrame transparan */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.play-indicator svg { width: 24px; height: 24px; margin-left: 4px; /* Disesuaikan agar segitiga pas di tengah */ }
.spatial-slide:hover .play-indicator { transform: translate(-50%, -50%) scale(1.15); background: var(--orange); }

/* --- LIGHTBOX POPUP (Menonton Video / Foto) --- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 8, 6, 0.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-overlay.is-active { opacity: 1; visibility: visible; }

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9; /* Memastikan video/foto yang muncul berasio sinematik */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.is-active .lightbox-content { transform: scale(1); }

/* Memaksa pembungkus dan iframe untuk merentang 100% */
#lightboxMedia,
#lightboxMedia iframe, 
#lightboxMedia img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border: none; 
  display: block;
}

.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: #FFF;
  font-size: 48px; font-weight: 300; line-height: 1;
  cursor: pointer; transition: color 0.3s ease; z-index: 10;
}
.lightbox-close:hover { color: var(--orange); }

/* ================================================================
   OUR PARTNERS / CLIENTS MARQUEE
   ================================================================ */
.partnerships { 
  /* KUNCI 1: Jarak dari batas atas dikurangi, dan jarak bawah ke area Artikel dipangkas drastis */
  padding: 80px 0 40px 0; 
  background: var(--paper); 
  overflow: hidden; 
}

/* KUNCI 2: Memaksa jarak dari Judul ke Box Logo agar jauh lebih rapat */
.partnerships .section-head {
  margin-bottom: 60px; 
}

.marquee-wrapper { 
  width: 100vw; 
  display: flex; 
  overflow: hidden; 
  user-select: none; 
  /* KUNCI 3: Jarak vertikal antara baris atas dan bawah dipersempit */
  margin-bottom: 30px; 
}

/* Mematikan margin bawah pada baris terakhir agar semakin rapat dengan area Artikel */
.marquee-wrapper:last-child {
  margin-bottom: 0;
}

.marquee-track { 
  display: flex; 
  width: max-content; 
  animation: scrollMarquee 35s linear infinite; 
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track--reverse { animation-direction: reverse; }

.marquee-content { 
  display: flex; 
  /* KUNCI 4: Jarak horizontal antar box dipersempit (padding-right WAJIB disamakan dengan gap agar loop tidak putus) */
  gap: 16px; 
  padding-right: 16px; 
  flex-shrink: 0; 
}

/* Kotak Pembungkus (Style Card Ala Referensi) */
.logo-box { 
  width: 220px;  
  height: 140px;  
  background: #FFFFFF; 
  border-radius: 16px; 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); 
  border: 1px solid rgba(21, 19, 15, 0.03); 
  
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease; 
  cursor: default; 
}

/* Penyesuaian Ukuran Logo di Dalam Box */
.logo-box img {
  width: 65%;
  height: 65%;
  object-fit: contain; 
  user-select: none;
  pointer-events: none;
  
  filter: grayscale(100%) opacity(0.5); 
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Efek Hover Interaktif */
.logo-box:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08); 
}

.logo-box:hover img {
  filter: grayscale(0%) opacity(1); 
  transform: scale(1.08); 
}

@keyframes scrollMarquee { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}

.articles { padding: var(--gap-section) 24px; max-width: var(--maxw); margin: 0 auto; }
.editorial-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.article-card { display: flex; flex-direction: column; gap: 20px; cursor: pointer; }
.article-card__img-wrap { width: 100%; border-radius: 16px; overflow: hidden; position: relative; }
.article-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.article-card:hover .article-card__img { transform: scale(1.05); }
.article-featured .article-card__img-wrap { aspect-ratio: 4/3; }
.article-featured .article-card__title { font-size: clamp(28px, 3vw, 36px); }
.article-list { display: flex; flex-direction: column; gap: 40px; justify-content: space-between; }
.article-small .article-card__img-wrap { aspect-ratio: 16/10; }
.article-small .article-card__title { font-size: clamp(20px, 2vw, 24px); }
.article-card__meta { font-family: var(--f-body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); display: flex; gap: 16px; align-items: center; }
.article-card__tag { color: var(--orange); }
.article-card__title { font-family: var(--f-display); font-weight: 700; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; transition: color 0.3s; }
.article-card:hover .article-card__title { color: var(--orange); }

/* HOMEPAGE RESPONSIVE RULES */
@media (max-width: 1024px) {
  .unit, .unit--alt { flex-direction: column; align-items: stretch; }
  .unit__media { aspect-ratio: 16/10; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; }
  .article-list { gap: 32px; }
}

/* ================================================================
   MOBILE FIX: HOME PAGE
   ================================================================ */
@media (max-width: 768px) {
  /* Fix 2: Hero Background */
  .hero__bg-img {
    object-position: 70% center; /* Menggeser area fokus gambar agar tidak terpusat di tengah saja */
  }
  .hero__slide.is-active .hero__bg-img {
    animation: none; /* Mematikan animasi zoom yang berlebihan di HP */
    transform: scale(1);
  }

  /* Fix 3: Logo Marquee HP */
  .logo-box {
    width: 120px; /* Dikecilkan dari 220px agar bisa tampil 3 logo sekaligus */
    height: 70px;
    border-radius: 10px;
  }
  .logo-box img {
    width: 75%;
    height: 75%;
  }

  /* Fix 4: Featured Works Overlap */
  .spatial-slide__info {
    padding: 30px 16px 16px; /* Memangkas padding atas yang raksasa */
  }
  .spatial-slide__info h3 {
    font-size: 16px; /* Teks judul video dikecilkan */
  }
  .play-indicator {
    width: 44px; /* Tombol Play dikecilkan dari 64px */
    height: 44px;
  }
  .play-indicator svg {
    width: 16px; 
    height: 16px;
  }
} /* <--- Ini adalah penutup dari @media (max-width: 768px) */
