/* =========================================================
   ZAFEN Digital Studio: website brand.
   Palet dari logo: hitam + ivory #e7ded3. Font: Italiana (tampilan) + Jost (teks).
   Warna & font hanya di blok TOKEN. Animasi hanya transform / opacity.
   ========================================================= */
@font-face { font-family: "Italiana"; src: url(../fonts/italiana.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url(../fonts/jost-var.woff2) format("woff2"); font-weight: 200 500; font-display: swap; }

:root {
  --ink: #0a0a0a;          /* hitam logo */
  --ink-2: #121211;
  --ivory: #e7ded3;        /* ivory logo */
  --ivory-2: rgba(231, 222, 211, .7);
  --line: rgba(231, 222, 211, .16);
  --champ: #bfae93;        /* champagne: garis halus, label */
  --paper: #e7ded3;        /* latar bagian terang */
  --paper-fg: #0a0a0a;
  --paper-2: #55514b;
  --paper-line: rgba(10, 10, 10, .18);

  --f-display: "Italiana", "Iowan Old Style", Georgia, serif;
  --f-text: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(22px, 4.6vw, 84px);
  --sec: clamp(96px, 13vw, 190px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 300 1.0625rem/1.72 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--champ); outline-offset: 4px; }
::selection { background: var(--ivory); color: var(--ink); }
section[id] { scroll-margin-top: calc(var(--nav-h) - 1px); }
[hidden] { display: none !important; }

.lompat { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 12px 18px; transition: top .3s var(--ease); }
.lompat:focus { top: 16px; }
.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: .005em; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); line-height: 1.08; }
h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.2; }
.catatan { margin-top: 18px; font-size: .82rem; color: var(--ivory-2); letter-spacing: .04em; }

/* ---------- Tombol ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 34px; font: 400 .74rem/1 var(--f-text); letter-spacing: .26em; text-transform: uppercase; overflow: hidden; isolation: isolate; border: 1px solid transparent; transition: color .5s var(--ease), border-color .5s; text-align: center; }
.btn > span { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--ivory); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--kecil { min-height: 44px; padding: 0 22px; font-size: .68rem; }
.btn--besar { min-height: 62px; padding: 0 46px; }
.btn--penuh { width: 100%; }
.btn--garis { border-color: rgba(231, 222, 211, .55); color: var(--ivory); }
.btn--garis:hover { color: var(--ink); border-color: var(--ivory); }
.btn--terang { background: var(--ivory); color: var(--ink); }
.btn--terang::before { background: var(--champ); }
.btn--gelap { background: var(--paper-fg); color: var(--paper); }
.btn--gelap::before { background: var(--champ); }
.btn--gelap:hover { color: var(--ink); }

/* ---------- Navigasi ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); color: var(--ivory); transition: background .5s, box-shadow .5s; }
.nav.is-solid { background: rgba(10, 10, 10, .9); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.1) blur(12px); }
.nav__isi { height: 100%; display: flex; align-items: center; gap: 40px; }
.merek { margin-right: auto; opacity: 0; transition: opacity .6s; position: relative; z-index: 2; }
.nav.is-solid .merek, .menu-buka .merek { opacity: 1; }
.merek img { height: 20px; width: auto; }
.nav__menu { display: flex; gap: 38px; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; }
.nav__menu a { position: relative; padding: 10px 0; }
.nav__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--champ); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nav__menu a:hover::after { transform: scaleX(1); }
.nav .btn--kecil { border-color: rgba(231, 222, 211, .45); }
.nav .btn--kecil:hover { color: var(--ink); border-color: var(--ivory); }
.burger { display: none; position: relative; z-index: 2; width: 44px; height: 44px; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ivory); transition: transform .5s var(--ease); }
.burger i:first-child { top: 19px; } .burger i:last-child { top: 25px; }
.menu-buka .burger i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-buka .burger i:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu-hp { position: fixed; inset: 0; z-index: 45; background: #0a0a0a; display: grid; align-content: center; justify-items: start; gap: 44px; padding: var(--nav-h) var(--gutter) 40px; }
.menu-hp nav { display: grid; gap: 6px; }
.menu-hp nav a { font: 400 clamp(2.2rem, 11vw, 3.4rem)/1.2 var(--f-display); padding: 6px 0; }
.menu-buka { overflow: hidden; }

/* ---------- Layar pertama ---------- */
.layar { min-height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.hero { position: relative; display: grid; place-items: center; min-height: 52svh; overflow: hidden; background: var(--ink); }
.hero__media, .hero__img, .hero__video, .hero__scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img, .hero__video { object-fit: cover; object-position: 50% 58%; }
.hero__img { animation: dorong 34s ease-out both; }
.hero__video { opacity: 0; transition: opacity 1.6s; }
.hero__video.is-on { opacity: 1; }
@keyframes dorong { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero__scrim { background: radial-gradient(ellipse 60% 66% at 50% 50%, rgba(10, 10, 10, .6) 0%, rgba(10, 10, 10, .3) 60%, rgba(10, 10, 10, .06) 100%), linear-gradient(180deg, rgba(10, 10, 10, .6) 0%, rgba(10, 10, 10, 0) 28%, rgba(10, 10, 10, 0) 72%, rgba(10, 10, 10, .7) 100%); }
.hero__isi { position: relative; display: grid; justify-items: center; text-align: center; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 36px; }
.hero__h1 { font-size: 0; line-height: 0; }
.hero__logo { width: clamp(250px, 34vw, 520px); height: auto; animation: muncul 1.8s var(--ease) .1s both; }
.hero__tag { margin-top: clamp(22px, 3.6vh, 40px); font: 400 clamp(1.5rem, 2.8vw, 2.6rem)/1.2 var(--f-display); text-wrap: balance; animation: naik 1.4s var(--ease) .45s both; }
.hero__sub { margin-top: 14px; max-width: 48ch; font-size: clamp(.96rem, 1.15vw, 1.08rem); color: var(--ivory-2); text-wrap: balance; animation: naik 1.4s var(--ease) .6s both; }
.hero__aksi { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 4vh, 40px); animation: naik 1.4s var(--ease) .75s both; }
@keyframes muncul { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes naik { from { opacity: .001; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Kategori ---------- */
.kategori-blok { background: var(--ink); }
.kategori__label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px var(--gutter); border-top: 1px solid var(--line); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory-2); }
.kategori__label b { font-weight: 400; color: var(--ivory); }
.kategori { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.kat { position: relative; display: block; height: clamp(124px, 23svh, 250px); overflow: hidden; background: #000; }
.kat img, .kat video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.58) contrast(1.05); transform: scale(1.02); transition: filter 1s var(--ease), transform 1.6s var(--ease), opacity 1.2s; }
.kat video { opacity: 0; }
.kat video.is-on { opacity: 1; }
.kat:hover img, .kat:focus-visible img, .kat:hover video, .kat:focus-visible video { filter: grayscale(0) brightness(.85); transform: scale(1.08); }
.kat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ivory); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.kat:hover::after, .kat:focus-visible::after { transform: scaleX(1); }
.kat__isi { position: absolute; left: clamp(16px, 1.8vw, 28px); right: clamp(16px, 1.8vw, 28px); bottom: clamp(14px, 2vh, 24px); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.kat__nama { font: 400 clamp(1.25rem, 1.9vw, 1.85rem)/1.1 var(--f-display); text-shadow: 0 1px 18px rgba(0, 0, 0, .5); }
.kat__tanda { font: 400 .66rem/1 var(--f-text); letter-spacing: .28em; text-transform: uppercase; opacity: .8; white-space: nowrap; border: 1px solid rgba(231, 222, 211, .4); padding: 6px 9px; transition: background .5s, color .5s; }
.kat:hover .kat__tanda, .kat:focus-visible .kat__tanda { background: var(--ivory); color: var(--ink); }

/* ---------- Pernyataan + contoh ---------- */
.ringkas__teks { font: 400 clamp(2rem, 4.4vw, 3.9rem)/1.2 var(--f-display); max-width: 25ch; }
.ringkas__teks .k { opacity: .44; transition: opacity .3s linear; }
.ringkas__teks .k.on { opacity: 1; }
.contoh { position: relative; display: block; margin-top: clamp(56px, 8vw, 110px); aspect-ratio: 16 / 9; max-height: 82vh; overflow: hidden; background: #000; border: 1px solid var(--line); }
.contoh__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 2s var(--ease); }
.contoh:hover .contoh__video { transform: scale(1.05); }
.contoh__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .72) 100%); }
.contoh__isi { position: absolute; left: clamp(18px, 3vw, 44px); right: clamp(18px, 3vw, 44px); bottom: clamp(18px, 3vw, 40px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.contoh__nama { font: 400 clamp(1.8rem, 3.6vw, 3.2rem)/1.05 var(--f-display); }
.contoh__nama small { display: block; margin-top: 10px; font: 400 .7rem/1 var(--f-text); letter-spacing: .28em; text-transform: uppercase; color: var(--champ); }
.contoh:hover .btn--garis { background: var(--ivory); color: var(--ink); }

/* ---------- Maket 3D di halaman depan (gaya dasar di villa/maket.css) ---------- */
.mk--depan { border-top: 1px solid var(--line); }
.mk__buka { pointer-events: auto; margin-top: 20px; background: rgba(10, 10, 10, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mk.pilih .mk__buka { pointer-events: none; }
.mk__gagal a { color: var(--ivory); border-bottom: 1px solid var(--champ); }
.contoh-blok { padding-top: clamp(72px, 9vw, 130px); border-top: 1px solid var(--line); }
.contoh-blok__h { max-width: 15ch; }
.contoh-blok .contoh { margin-top: clamp(32px, 5vw, 64px); }

/* ---------- Layanan (bagian terang) ---------- */
.layanan { background: var(--paper); color: var(--paper-fg); }
.layanan__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 8vw, 140px); align-items: start; }
.layanan__kepala { position: sticky; top: calc(var(--nav-h) + 40px); }
.layanan__kepala p { margin-top: 26px; color: var(--paper-2); max-width: 42ch; }
.layanan__kepala .btn { margin-top: 36px; }
.layanan__daftar { border-top: 1px solid var(--paper-line); }
.layanan__daftar li { padding: clamp(28px, 3.6vw, 52px) 0; border-bottom: 1px solid var(--paper-line); transition: padding-left .7s var(--ease); }
.layanan__daftar li:hover { padding-left: 14px; }
.layanan__daftar p { margin-top: 12px; color: var(--paper-2); max-width: 52ch; }

/* ---------- Cara kerja ---------- */
.cara { background: var(--ink-2); }
.cara__langkah { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(44px, 6vw, 88px); border-top: 1px solid var(--line); }
.cara__langkah::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ivory); transform: scaleX(var(--p, 0)); transform-origin: left; }
.cara__langkah li { position: relative; padding: 30px clamp(16px, 2vw, 34px) 0 0; }
.cara__langkah li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ivory); }
.cara__langkah p { margin-top: 12px; color: var(--ivory-2); font-size: .98rem; max-width: 30ch; }

/* ---------- Kontak ---------- */
.kontak { background: var(--ink); }
.kontak__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 8vw, 140px); align-items: start; }
.kontak h2 { max-width: 14ch; font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
.kontak__p { margin-top: 26px; max-width: 46ch; color: var(--ivory-2); }
.kontak__wa { margin-top: 28px; color: var(--ivory-2); font-size: .98rem; }
.kontak__wa a { color: var(--ivory); border-bottom: 1px solid var(--champ); padding-bottom: 2px; transition: color .4s; }
.kontak__wa a:hover { color: var(--champ); }
.form { display: grid; gap: 6px; }
.fld { display: block; margin-bottom: 18px; }
.fld > span { display: block; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory-2); margin-bottom: 6px; }
.fld em { font-style: normal; text-transform: none; letter-spacing: .02em; opacity: .75; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 10px 2px; background: transparent; border: 0; border-bottom: 1px solid rgba(231, 222, 211, .35); border-radius: 0; font-size: 1.05rem; color: var(--ivory); }
.fld textarea { resize: vertical; min-height: 88px; }
.fld select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ivory-2) 50%), linear-gradient(135deg, var(--ivory-2) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.fld select option { background: var(--ink); color: var(--ivory); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-bottom-color: var(--champ); box-shadow: 0 1px 0 var(--champ); }
.fld input[aria-invalid="true"] { border-bottom-color: #d98a73; }
.fld ::placeholder { color: rgba(231, 222, 211, .4); }
.galat { display: block; min-height: 1.3em; margin-top: 6px; font-size: .84rem; color: #e3a08c; }
.form .btn { margin-top: 10px; }

/* ---------- Footer, toast, bar mobile ---------- */
.kaki { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.kaki__isi { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 40px; }
.kaki__merek img { width: 190px; height: auto; opacity: .92; }
.kaki__merek p { margin-top: 22px; color: var(--ivory-2); max-width: 30ch; }
.kaki h3 { font: 400 .68rem/1 var(--f-text); letter-spacing: .28em; text-transform: uppercase; color: var(--champ); margin-bottom: 20px; }
.kaki li { margin-bottom: 10px; }
.kaki li a { color: var(--ivory-2); transition: color .4s; }
.kaki li a:hover { color: var(--ivory); }
.kaki__bawah { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-block: 24px 30px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ivory-2); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ivory); color: var(--ink); padding: 14px 28px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; transition: opacity .5s, transform .6s var(--ease); white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bar-wa { display: none; }

@media (max-width: 980px) {
  .layanan__grid, .kontak__grid { grid-template-columns: 1fr; }
  .layanan__kepala { position: static; }
  .cara__langkah { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .kaki__isi { grid-template-columns: 1fr 1fr; } .kaki__merek { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav__menu, .nav .btn--kecil { display: none; }
  .burger { display: block; }
  .hero { min-height: 56svh; }
  /* di HP isi hero ditaruh di bawah supaya tulisan ZAFEN pada dinding resepsionis di dalam video tetap terlihat */
  .hero { place-items: end center; }
  .hero__isi { padding-top: calc(var(--nav-h) + 6px); padding-bottom: 22px; }
  .hero__logo { width: clamp(200px, 58vw, 280px); }
  .hero__tag { margin-top: 16px; }
  .hero__sub { display: none; }
  .hero__scrim { background: radial-gradient(ellipse 70% 40% at 50% 78%, rgba(10, 10, 10, .5) 0%, rgba(10, 10, 10, 0) 100%), linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 24%, rgba(10, 10, 10, 0) 38%, rgba(10, 10, 10, .82) 100%); }
  /* dua tombol selebar isi hero; kalau layar terlalu sempit, otomatis turun jadi dua baris (bukan teks menempel tepi) */
  .hero__aksi { width: 100%; max-width: 420px; }
  .hero__aksi .btn { flex: 1 1 auto; padding: 0 12px; letter-spacing: .14em; font-size: clamp(.66rem, 2.9vw, .7rem); white-space: nowrap; }
  .hero__img { object-position: 50% 58%; }
  .hero__video { object-position: 86% 50%; }
  .kategori { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kategori__label span { display: none; }
  .kat { height: 18svh; min-height: 106px; }
  .kat__tanda { display: none; }
  .contoh { aspect-ratio: 4 / 5; }
  .contoh__video { object-position: 50% 50%; }
  .bar-wa { display: flex; transform: translateY(160%); transition: transform .7s var(--ease); position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; min-height: 54px; align-items: center; justify-content: center; background: var(--ivory); color: var(--ink); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
  body.lewat .bar-wa { transform: none; }
  /* di bagian kontak + footer sudah ada formulir dan tautan WA: bar disembunyikan supaya tidak menutupi tombol kirim */
  body.lewat.di-kontak .bar-wa { transform: translateY(160%); }
  body { padding-bottom: 78px; }
  .toast { bottom: 80px; max-width: calc(100vw - 32px); white-space: normal; text-align: center; line-height: 1.5; }
  .mk--depan .mk__kepala .catatan { display: none; }
  .mk__buka { margin-top: 14px; }
}
@media (max-width: 520px) { .cara__langkah { grid-template-columns: 1fr; } .cara__langkah p { max-width: none; } .kaki__isi { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .ringkas__teks .k { opacity: 1; }
  .cara__langkah::before { transform: none; }
}
