/* ============================================================
   DIGIFANA — home.css
   Dua section di home (30-Okt-2026):
   1. Teaser C-Founder 15 dtk tepat di bawah hero — player + rel kontrol
      di BAWAH video (HUD video sendiri udah ada di pojok-pojok frame).
   2. Bio Dika + bukti Instagram @dikawbo 10K followers, gantiin kartu
      "Siapa di balik DIGIFANA?". Screenshot asli + potongan perbesar baris
      angkanya (screenshot desktop kekecilan kalau dibaca di HP).
   Token & primitif dari agencee.css — nggak bikin dunia baru.
   ============================================================ */

/* ---------- teaser ---------- */
.teaser { padding: 12px 0 30px; }
.teaser-head { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.teaser-head h2 { margin-bottom: 16px; }
.teaser-head .sec-sub { max-width: 60ch; margin: 0 auto; }

.teaser-player {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line); background: #000;
  box-shadow: 0 46px 120px -54px rgba(255, 153, 28, .5), 0 24px 48px -28px rgba(0, 0, 0, .9);
}
.teaser-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.teaser-player.is-live video { cursor: pointer; }

/* momen masuk: frame kebuka dari tengah (clip-path), bukan fade — udah keliatan dari awal */
.teaser-player[data-reveal] {
  opacity: 1; transform: none;
  clip-path: inset(4% 6% round var(--r));
  transition: clip-path 1.3s cubic-bezier(.16, 1, .3, 1);
}
.teaser-player[data-reveal].in { clip-path: inset(0 round var(--r)); }

.teaser-foot { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.teaser-rail { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.teaser-rail[hidden] { display: none; }

.teaser-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 18px 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--panel-hi); border: 1px solid var(--line); color: var(--txt);
  font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.teaser-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }
.teaser-btn:focus-visible, .teaser-player video:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.teaser-btn svg { width: 18px; height: 18px; flex: none; }
/* suara masih mati = tombol diajak dipencet (oranye); udah nyala = netral */
.teaser-sound[data-state="muted"] { background: var(--acc2); border-color: transparent; color: var(--acc-ink); }
.teaser-sound[data-state="muted"]:hover { background: var(--acc); }
.teaser-sound[data-state="muted"] .i-on, .teaser-sound[data-state="on"] .i-off { display: none; }
.teaser-play { width: 44px; padding: 0; }
.teaser-play[data-state="playing"] .i-play, .teaser-play[data-state="paused"] .i-pause { display: none; }

.teaser-track { flex: 1; min-width: 40px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.teaser-track i { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); }
.teaser-time { flex: none; font-size: 12.5px; font-weight: 600; color: var(--mut); font-variant-numeric: tabular-nums; }
.teaser-foot .btn { flex: none; }

/* ---------- bio + bukti Instagram ---------- */
.bio { padding-top: 90px; }
.bio-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 64px; row-gap: 30px;
  grid-template-areas: "head head" "copy proof" "cta proof"; align-items: start;
}
.bio-grid > * { min-width: 0; }
.bio-head { grid-area: head; max-width: 920px; margin-bottom: 14px; }
.bio-copy { grid-area: copy; }
.bio-cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ig-proof { grid-area: proof; }

.bio-handle {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--panel-hi); border: 1px solid var(--line);
  color: var(--txt); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.bio-handle:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }
.bio-handle:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.bio-handle .ig { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); }
.bio-handle .ig svg { width: 17px; height: 17px; }
.bio-head h2 { margin: 0; text-wrap: balance; }
.bio-head h2 .grad { white-space: nowrap; }
.bio-copy .sec-sub { max-width: 52ch; }
.bio-copy .sec-sub + .sec-sub { margin-top: 14px; }

.ig-proof { margin: 0; position: relative; }
.ig-window {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0c1014;
  box-shadow: 0 34px 80px -40px rgba(0, 0, 0, .95), 0 30px 90px -60px rgba(255, 153, 28, .35);
}
.ig-bar {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  background: #121212; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--mut);
}
.ig-bar .dots { display: flex; gap: 6px; flex: none; }
.ig-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.ig-bar .url { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 33px; }
/* ruang bawah = tempat potongan perbesar nempel, biar nggak nutup baris bio di screenshot */
.ig-window { padding-bottom: 24px; }
.ig-shot { position: relative; display: block; }
.ig-shot img { display: block; width: 100%; height: auto; }
/* kotak oranye di baris angka screenshot asli (koordinat % dari gambar 1252×440) */
.ig-mark {
  position: absolute; left: 29.2%; top: 34.1%; width: 45.4%; height: 11.4%;
  border: 2px solid var(--acc); border-radius: 10px; pointer-events: none;
}

/* potongan perbesar baris angka — gambar dari screenshot yang sama */
.ig-zoom {
  position: relative; width: min(80%, 430px); margin: -28px -14px 0 auto;
  padding: 12px 16px; border-radius: 18px; background: #0c1014;
  border: 1px solid rgba(255, 153, 28, .5);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .95);
}
.ig-zoom-in { position: relative; display: block; }
.ig-zoom img { display: block; width: 100%; height: auto; }
/* lingkaran di "10K followers" (koordinat % dari gambar 584×68), kegambar pas section masuk */
.ig-ring {
  position: absolute; left: 28.6%; top: 4%; width: 33.6%; height: 92%;
  border: 2px solid var(--acc); border-radius: 999px; pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s cubic-bezier(.16, 1, .3, 1) .45s;
}
.ig-proof.in .ig-ring { clip-path: inset(0 0 0 0); }
.ig-proof figcaption { margin-top: 18px; font-size: 13.5px; line-height: 1.55; color: var(--mut); max-width: 60ch; }
.ig-proof figcaption strong { color: var(--txt); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .teaser-player[data-reveal], .teaser-player[data-reveal].in { clip-path: none; transition: none; }
  .ig-ring { clip-path: none; transition: none; }
}

@media (max-width: 900px) {
  .bio { padding-top: 70px; }
  .bio-grid { grid-template-columns: 1fr; grid-template-areas: "head" "copy" "proof" "cta"; row-gap: 30px; }
  .bio-head { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .teaser { padding-bottom: 20px; }
  .teaser-head { text-align: left; margin-bottom: 26px; }
  .teaser-player { border-radius: 20px; }
  .teaser-player[data-reveal] { clip-path: inset(4% 6% round 20px); }
  .teaser-player[data-reveal].in { clip-path: inset(0 round 20px); }
  .teaser-foot { flex-wrap: wrap; gap: 14px; }
  .teaser-rail { flex-basis: 100%; }
  .teaser-time { display: none; }
  .teaser-foot .btn { width: 100%; justify-content: center; }
  .ig-window { border-radius: 16px; }
  .ig-bar { padding: 9px 12px; }
  .ig-bar .url { margin-right: 0; text-align: left; }
  .ig-window { padding-bottom: 16px; }
  .ig-zoom { width: 92%; margin: -20px -6px 0 auto; padding: 10px 12px; border-radius: 14px; }
  .bio-cta .btn, .bio-cta .btn-ghost { flex: 1 1 auto; justify-content: center; }
}
