/* Halaman depan dcowood.com: satu layar penuh, tanpa gulir. Kiri: pesan dan tombol. Kanan: panggung animasi lima langkah. */
:root { --latar: #1b2433; --kartu: #232e41; --garis: #34425a; --teks: #eef1f6; --teks-2: #b9c2d1; --emas: #d8b568; --di-emas: #202b3c; --sudut: 14px; --lama: 5s; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--latar); color: var(--teks); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--emas); }
img { display: block; max-width: 100%; }
h1, h2, p, ol, ul, figure { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--emas); outline-offset: 2px; }
.atas, main, .kaki { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 36px); }

/* ---------- kepala ---------- */
.atas { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: clamp(10px, 2vh, 18px); }
.merek { display: flex; align-items: center; gap: 10px; color: var(--teks); text-decoration: none; font-weight: 600; }
.merek img { border-radius: 6px; background: #fff; }
.tentang { margin-left: auto; color: var(--emas); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tentang:hover { text-decoration: underline; }
.bahasa { display: flex; border: 1px solid var(--garis); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.bahasa button { min-width: 44px; min-height: 34px; border: 0; background: transparent; color: var(--teks-2); font: 600 13px/1 inherit; cursor: pointer; }
.bahasa button[aria-pressed="true"] { background: var(--emas); color: var(--di-emas); }

/* ---------- susunan satu layar ---------- */
main { min-height: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr); grid-template-areas: ". panggung" "kepala panggung" "aksi panggung" ". panggung"; column-gap: clamp(24px, 4vw, 60px); row-gap: 0; padding-block: clamp(4px, 1.5vh, 16px); }
.kepala { grid-area: kepala; padding-bottom: clamp(12px, 2.4vh, 24px); }
.aksi { grid-area: aksi; }
.panggung { grid-area: panggung; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: clamp(8px, 1.6vh, 14px); }

.alis { font-size: clamp(11px, 1.6vh, 13px); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emas); }
h1 { margin-block: clamp(6px, 1.4vh, 14px) clamp(8px, 1.8vh, 16px); font-size: clamp(1.7rem, min(4.1vw, 6.6vh), 3.3rem); line-height: 1.08; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
.lead { max-width: 52ch; color: var(--teks-2); font-size: clamp(0.92rem, min(1.4vw, 2.3vh), 1.1rem); }
.tombol-baris { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 861px) { .tombol { padding-inline: 16px; font-size: 15px; } }
.tombol { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--emas); background: var(--emas); color: var(--di-emas); font-weight: 600; text-decoration: none; }
.tombol:hover { filter: brightness(1.08); }
.tombol.polos { background: transparent; color: var(--emas); }
.urut { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--di-emas); color: var(--emas); font-size: 13px; font-weight: 700; }
.tombol.polos .urut { background: var(--emas); color: var(--di-emas); }
.syarat { margin-top: clamp(8px, 1.6vh, 14px); max-width: 52ch; color: var(--teks); font-size: clamp(0.8rem, min(1.1vw, 2vh), 0.92rem); line-height: 1.45; padding-left: 12px; border-left: 2px solid var(--emas); }
.tanpa { list-style: none; margin-top: clamp(10px, 2.2vh, 22px); display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--teks-2); font-size: 14px; }
.tanpa li { display: flex; align-items: center; gap: 8px; }
.tanpa li::before { content: ""; width: 14px; height: 2px; background: var(--emas); border-radius: 2px; }
.catatan { margin-top: clamp(8px, 1.8vh, 16px); max-width: 56ch; color: var(--teks-2); font-size: 12.5px; opacity: 0.85; }

/* ---------- panggung animasi ---------- */
.layar { position: relative; min-height: 0; border-radius: var(--sudut); overflow: hidden; background: var(--kartu); border: 1px solid var(--garis); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0s 0.8s; }
.slide.aktif { opacity: 1; visibility: visible; transition: opacity 0.8s ease; }
.slide > img { width: 100%; height: 100%; object-fit: cover; }
.slide.muat > img { object-fit: contain; }
.slide.gelap { background: #161d2a; }
.slide.terang { background: #e3e1dc; }
.cap { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(20, 27, 39, 0.88); color: var(--teks); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.slide.aktif .gerak { animation: dekat var(--lama) ease-out both; }
@keyframes dekat { from { transform: scale(1); } to { transform: scale(1.06); } }

/* langkah 4: empat foto muncul bergiliran */
.slide.ref { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 46px 14px 14px; background: #141b27; }
.slide.ref > img { border-radius: 10px; min-height: 0; opacity: 0; transform: scale(0.92) translateY(10px); }
.slide.ref.aktif > img { animation: muncul 0.6s ease-out both; }
.slide.ref.aktif > img:nth-of-type(2) { animation-delay: 0.35s; }
.slide.ref.aktif > img:nth-of-type(3) { animation-delay: 0.7s; }
.slide.ref.aktif > img:nth-of-type(4) { animation-delay: 1.05s; }
@keyframes muncul { to { opacity: 1; transform: none; } }

/* langkah 5: model polos tersapu menjadi render */
.slide.sapu > img { position: absolute; inset: 0; }
.slide.sapu.aktif > .atasnya { animation: sapu 2.2s 0.7s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes sapu { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }

/* keterangan langkah: semua ditumpuk di sel yang sama agar tinggi tidak berubah */
.ket { display: grid; }
.ket > div { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0.5s; }
.ket > div.aktif { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s; }
.ket h2 { font-size: clamp(1.05rem, min(1.7vw, 2.9vh), 1.4rem); font-weight: 600; line-height: 1.25; }
.ket p { margin-top: 4px; color: var(--teks-2); font-size: clamp(0.85rem, min(1.2vw, 2.1vh), 0.97rem); line-height: 1.45; }
.ket p.sumber { font-size: 12px; font-style: italic; opacity: 0.85; }
.ket p.plus { color: var(--emas); }
.cap.kanan { left: auto; right: 12px; background: var(--emas); color: var(--di-emas); }

/* penanda langkah dengan garis kemajuan */
.tahap { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tahap button { width: 100%; padding: 0 0 4px; border: 0; background: none; color: var(--teks-2); font: 600 12.5px/1.2 inherit; text-align: left; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tahap i { flex: 0 0 100%; height: 3px; margin-bottom: 6px; border-radius: 3px; background: var(--garis); overflow: hidden; position: relative; }
.tahap i::after { content: ""; position: absolute; inset: 0; background: var(--emas); transform: scaleX(0); transform-origin: left; }
.tahap button.lewat i::after { transform: scaleX(1); }
.tahap button[aria-current] i::after { animation: isi var(--lama) linear both; }
.jeda .tahap button[aria-current] i::after, .jeda .slide .gerak { animation-play-state: paused; }
@keyframes isi { to { transform: scaleX(1); } }
.tahap b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--garis); font-size: 12px; }
.tahap button[aria-current] { color: var(--teks); }
.tahap button[aria-current] b, .tahap button.lewat b { background: var(--emas); border-color: var(--emas); color: var(--di-emas); }

.kaki { padding-block: clamp(6px, 1.4vh, 12px); color: var(--teks-2); font-size: 12.5px; }
.kaki p { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.kaki .admin { margin-left: auto; color: var(--teks-2); text-decoration: none; opacity: 0.7; }
.kaki .admin:hover { color: var(--emas); opacity: 1; }

/* ---------- layar sempit: teks, panggung, tombol ditumpuk dalam satu layar ---------- */
@media (max-width: 860px) {
  main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "kepala" "panggung" "aksi"; row-gap: clamp(8px, 1.6vh, 14px); padding-bottom: 12px; }
  .kepala { padding-bottom: 0; }
  h1 { font-size: clamp(1.35rem, min(6.6vw, 4.2vh), 2.2rem); margin-block: 4px 6px; }
  .lead { font-size: clamp(0.82rem, 1.9vh, 0.95rem); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .alis { letter-spacing: 0.1em; }
  .tanpa, .catatan, .kaki { display: none; }
  .tombol-baris { flex-wrap: nowrap; }
  .tombol { flex: 1 1 0; min-height: 44px; padding: 8px 8px; font-size: 13px; line-height: 1.25; gap: 6px; }
  .urut { width: 20px; height: 20px; font-size: 12px; }
  .syarat { margin-top: 8px; font-size: 12px; line-height: 1.35; }
  .tahap span { display: none; }
  .tahap button { justify-content: center; }
}
/* layar lebar tetapi pendek: buang pelengkap agar tetap satu layar */
@media (min-width: 861px) and (max-height: 760px) { .catatan { display: none; } }
@media (min-width: 861px) and (max-height: 600px) { .tanpa { display: none; } }
@media (min-width: 861px) and (max-height: 500px) { .kaki, .lead { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.aktif, .ket > div, .ket > div.aktif { transition: none; }
  .slide.aktif .gerak, .slide.ref.aktif > img, .slide.sapu.aktif > .atasnya { animation: none; }
  .slide.ref > img { opacity: 1; transform: none; }
  .slide.sapu > .atasnya { display: none; }
  .tahap button[aria-current] i::after { animation: none; transform: scaleX(1); }
}
