/*
  Nalika: alasan keputusan desain (satu baris per keputusan)
  - Arah visual mengikuti referensi klien: hitam netral, monokrom, bentuk pil, garis rambut, judul hero kapital.
  - Hitam netral (bukan hangat) supaya sogan dan kobalt jadi satu-satunya warna di halaman.
  - Kobalt = "kecerdasan": hanya pada titik motif kawung, garis titik prinsip, dan tag "AI helps with".
  - Sogan = aksi: cokelat keemasan batik sogan Solo dan Yogyakarta, hanya di lingkaran panah tombol utama.
  - Merah bata hanya untuk status error formulir.
  - General Sans (Fontshare, gratis komersial): grotesk geometris yang bersih dan tegas saat kapital,
    sesuai karakter referensi. Satu keluarga fon untuk seluruh halaman.
  - Noto Sans Javanese: satu-satunya fon web yang merender aksara Jawa dengan benar.
  - Motif identitas: kawung separuh garis utuh (manusia) dan separuh titik (kecerdasan), menggantikan
    objek 3D di referensi. Aksara ꦤꦭꦶꦏ besar memudar menggantikan nama merek raksasa di referensi.
  - Tidak ada logo klien, angka proyek, atau testimoni: belum ada data nyata. Slot itu diisi isi brand guide.
  - Tanpa bayangan dan tanpa blur: hierarki dari garis rambut, ruang kosong, dan ukuran huruf.
*/

:root {
  color-scheme: dark;
  --bg: #0E0E0E;
  --card: #181818;
  --line: #262626;
  --line-2: #3A3A3A;
  --text: #F2F2F2;
  --text-2: #A3A3A3;
  --placeholder: #8A8A8A;
  --cobalt: #8EA0FF;
  --action: #C8995A;
  --action-hover: #D9AE72;
  --brick: #E08A6B;

  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --jv: "Noto Sans Javanese", serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 152px);

  --kawung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-dasharray='0 3.2'%3E%3Cellipse cx='31' cy='17' rx='9' ry='5' transform='rotate(-45 31 17)'/%3E%3Cellipse cx='17' cy='17' rx='9' ry='5' transform='rotate(45 17 17)'/%3E%3Cellipse cx='17' cy='31' rx='9' ry='5' transform='rotate(-45 17 31)'/%3E%3Cellipse cx='31' cy='31' rx='9' ry='5' transform='rotate(45 31 31)'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='1.4'/%3E%3C/svg%3E");
  --kawung-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='3.2'%3E%3Cellipse cx='17' cy='17' rx='10' ry='5.5' transform='rotate(45 17 17)'/%3E%3Cellipse cx='17' cy='31' rx='10' ry='5.5' transform='rotate(-45 17 31)'/%3E%3C/g%3E%3Cg fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round' stroke-dasharray='0 5.4'%3E%3Cellipse cx='31' cy='17' rx='10' ry='5.5' transform='rotate(-45 31 17)'/%3E%3Cellipse cx='31' cy='31' rx='10' ry='5.5' transform='rotate(45 31 31)'/%3E%3C/g%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, p, blockquote, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[lang="jv"] { font-family: var(--jv); font-weight: 400; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 16px; background: var(--text); color: var(--bg); border-radius: 999px;
}
.skip:focus { top: 12px; }

h2 {
  font: 500 clamp(28px, 2.8vw, 40px)/1.15 var(--sans);
  letter-spacing: -.015em;
  overflow-wrap: normal;
}

/* ---------- Pil (tombol dan tag) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 6px 6px 6px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s;
}
.pill:hover { border-color: var(--action); }
.pill-arrow {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--action);
  transition: background-color .2s, transform .25s;
}
.pill-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: var(--bg);
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
.pill:hover .pill-arrow { background: var(--action-hover); transform: rotate(45deg); }
.pill-sm { min-height: 44px; padding: 4px 4px 4px 18px; font-size: 14px; gap: 12px; }
.pill-sm .pill-arrow { width: 34px; height: 34px; }
.pill-sm .pill-arrow::before { width: 14px; height: 14px; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-dotted { border: 2px dotted var(--cobalt); color: var(--cobalt); }

.text-link {
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
/* Logo: tanda kawung dalam lingkaran (sama dengan nalika-mark.svg / favicon) + "nalika" huruf kecil. */
.brand, .footer-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}
.avatar.brand-mark { width: 38px; height: 38px; }
.avatar.brand-mark::before { inset: 9px; }
.nav { display: flex; align-items: center; }
.nav-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.nav-pill a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  position: relative;
}
.nav-pill a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  border-left: 1px solid var(--line-2);
}
.nav-pill a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.menu-bars { position: relative; display: block; width: 16px; height: 12px; }
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s, top .2s;
}
.menu-bars::before { top: 3px; }
.menu-bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 5.25px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 24px 0 clamp(56px, 7vw, 96px); }
/* Satu grid untuk kedua kolom supaya baris "HUMAN" sejajar dengan "05".
   Baris 1: kawung | intro. Baris 2-3: judul | angka, lalu lede. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px 48px;
}
.hero-main, .hero-side { display: contents; }
.kawung {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: min(100%, 360px);
  height: auto;
  justify-self: end;
}
.kawung pattern { color: var(--cobalt); }
.kawung .field { opacity: .5; }
.kawung .clear { fill: var(--bg); }
.kawung .petal-data { stroke: var(--cobalt); }
.kawung .pancer { fill: var(--text); }

.hero-copy { grid-column: 1; grid-row: 2 / span 2; }
.hero h1 {
  max-width: 15ch;
  font: 500 clamp(36px, 4.6vw, 64px)/1.06 var(--sans);
  letter-spacing: -.01em;
  text-transform: uppercase;
  overflow-wrap: normal;
}
.hero-copy .pill { margin-top: 36px; }

.hero-intro, .hero-facts, .hero-lede { grid-column: 2; text-align: right; }
.hero-intro { grid-row: 1; padding-top: 48px; font-size: 18px; font-weight: 500; line-height: 1.45; }
.hero-facts { grid-row: 2; align-self: start; display: grid; gap: 32px; }
.hero-lede { grid-row: 3; align-self: end; }
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-facts dd { font-size: clamp(44px, 4.4vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.hero-facts dd[lang="jv"] { font-size: clamp(36px, 3.6vw, 48px); line-height: 1.25; letter-spacing: 0; }
.hero-facts dt { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.hero-lede { max-width: 30ch; margin-left: auto; font-size: 14px; color: var(--text-2); }

@media (prefers-reduced-motion: no-preference) {
  .kawung .spread { transform-origin: 240px 240px; animation: spread 1.8s cubic-bezier(.2, .7, .2, 1) .2s both; }
  .kawung .petal-data { animation: dots-in 1.2s ease-out .1s both; }
}
@keyframes spread { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dots-in { from { stroke-dashoffset: 40; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

/* ---------- Prinsip (pengganti deretan logo di referensi) ---------- */
.principle { border-block: 1px solid var(--line); }
.principle-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px 56px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.principle-label { font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.principle-line { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.01em; }
.principle-line.solid {
  text-decoration: underline solid var(--text);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .3em;
}
.principle-line.dotted {
  text-decoration: underline dotted var(--cobalt);
  text-decoration-thickness: 3px;
  text-underline-offset: .32em;
}

/* ---------- Cerita ---------- */
.story { position: relative; padding-top: var(--section); overflow: hidden; }
.story-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px 64px;
}
.story-name { font-size: 28px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.story-brand .muted { margin-top: 6px; font-size: 14px; }
.story-text h2 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; letter-spacing: -.005em; }
.story-text p { margin-top: 20px; max-width: 38em; color: var(--text-2); }
.watermark {
  margin: .05em 0 -.3em;
  font-size: clamp(80px, 24vw, 330px);
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(180deg, rgba(242, 242, 242, .16) 20%, rgba(242, 242, 242, 0) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ---------- Pendekatan dan lima tahap ---------- */
.approach { padding: clamp(24px, 3vw, 40px) 0 var(--section); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
.section-head p { max-width: 36em; color: var(--text-2); }
.section-head p .muted { display: block; margin-top: 12px; }

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
}
.stage-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 24px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.stage-tab .n { font-size: 12px; color: var(--text-2); }
.stage-tab:hover { border-color: var(--text-2); }
.stage-tab[aria-selected="true"] { background: var(--card); border-color: var(--text); }

.stage-body { margin-top: 40px; }
/* Tiap panel: angka | teks | ilustrasi tahap itu. */
.stage-panel {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px 40px;
  align-items: center;
}
.stage-panel[hidden] { display: none; }
.stage-panel + .stage-panel { margin-top: 40px; }
.js .stage-panel + .stage-panel { margin-top: 0; }
.stage-panel:focus-visible { outline-offset: 8px; border-radius: 8px; }
/* Keterangan di atas angka Jawa: ekor glif ꧓ dan ꧕ turun jauh di bawah garis dasar. */
.stage-num { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.stage-num [lang="jv"] { font-size: clamp(64px, 7vw, 96px); line-height: 1.6; }
.stage-num span:last-child { font-size: 13px; color: var(--text-2); }
.stage-copy h3 { font-size: 26px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.stage-copy p { margin-top: 12px; color: var(--text-2); max-width: 30em; }
.stage-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.stage-next:hover { border-color: var(--action); }

.photo figcaption { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.photo-slot {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(242, 242, 242, .1);
  -webkit-mask: var(--kawung) 0 0 / 72px 72px repeat;
  mask: var(--kawung) 0 0 / 72px 72px repeat;
}
/* Ilustrasi lima tahap: bahasa visual yang sama dengan kawung hero.
   Garis utuh bergradasi = manusia, titik kobalt = AI/data, garis samar = konteks.
   Satu cahaya kobalt lembut per ilustrasi menandai titik fokus (bukan dekorasi di semua tempat).
   Warna gradasi ditulis langsung di SVG karena situs hanya punya tema gelap. */
.photo-slot.is-illus {
  display: block;
  padding: 0;
  background: radial-gradient(120% 90% at 50% 0%, #1D1D1D, #131313 70%);
}
.photo-slot.is-illus::before { display: none; }
.illus .d-line { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.illus .d-dim { opacity: .45; }
.illus { position: relative; display: block; width: 100%; height: 100%; }
.illus .d-table { stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.illus .d-faint { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; }
.illus .d-human { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.illus .d-card { fill: var(--card); stroke: var(--text); stroke-width: 1.6; }
.illus .d-fill { fill: var(--cobalt); }
.illus .d-ai {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0 8;
}
.illus .d-ai ellipse { stroke-dasharray: 0 5; stroke-width: 2.6; }
.illus .d-node { stroke-dasharray: 0 5.5; stroke-width: 2.6; }
.illus .d-dot { fill: var(--text); }

.photo-tag {
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.scope-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.scope-note a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; }

/* ---------- Peran AI (gaya daftar portofolio di referensi) ---------- */
.ai { padding-bottom: var(--section); }
.ledger {
  width: 100%;
  margin-top: 56px;
  border-collapse: collapse;
  table-layout: fixed;
}
.ledger th { padding-bottom: 20px; text-align: left; font-weight: 500; }
.ledger td {
  padding: 26px 32px 26px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  vertical-align: top;
}
.ledger td:first-child { color: var(--text-2); }
.ledger tr:last-child td { border-bottom: 1px solid var(--line); }

/* ---------- Karakter (gaya testimoni di referensi) ---------- */
.character { padding-bottom: var(--section); }
.character-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px 64px;
}
.character h2 { align-self: end; }
.statement blockquote p {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.005em;
}
.statement blockquote p::before { content: "“"; }
.statement blockquote p::after { content: "”"; }
.statement figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}
.statement strong { font-size: 14px; font-weight: 500; color: var(--text); }
.avatar {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--card);
}
.avatar::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--text);
  -webkit-mask: var(--kawung-mark) center / contain no-repeat;
  mask: var(--kawung-mark) center / contain no-repeat;
}
.traits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 28px 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.traits p { margin-top: 12px; font-size: 14px; color: var(--text-2); }

/* ---------- Kontak (kartu CTA di referensi) ---------- */
/* ---------- FAQ (untuk mesin pencari dan asisten AI): <details> bawaan, tanpa JS ---------- */
.faq { padding-bottom: var(--section); }
.faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 18px 0;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat;
  transition: transform .25s, border-color .2s;
}
.faq-list summary:hover::after { border-color: var(--action); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 46em; padding: 0 56px 28px 0; color: var(--text-2); }

/* Tombol ganti bahasa */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-right: 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}
.lang-switch:hover { color: var(--text); border-color: var(--text-2); }

.contact { padding-bottom: clamp(64px, 8vw, 104px); }
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 6vw, 88px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line-2);
  border-radius: clamp(24px, 3vw, 36px);
  background: linear-gradient(160deg, #1C1C1C, #121212 70%);
}
.contact h2 {
  max-width: 14ch;
  font-size: clamp(26px, 2.8vw, 40px);
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.contact-head p { margin-top: 20px; font-size: 17px; }
.contact-head .muted { margin-top: 10px; font-size: 14px; }
.contact-direct { margin-top: 20px; border-top: 1px solid var(--line-2); }
.contact-direct li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.contact-direct span { font-size: 13px; color: var(--text-2); }
.contact-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-weight: 500;
  text-decoration: none;
}
.contact-direct a:hover { color: var(--action); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 8px; font-size: 14px; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.footer-contact a:hover { color: var(--action); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.opt { font-weight: 400; color: var(--text-2); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--cobalt); }
.field [aria-invalid="true"] { border-color: var(--brick); border-width: 2px; }
.field-error { font-size: 14px; font-weight: 500; color: var(--brick); }
.form .pill { justify-self: start; margin-top: 6px; }
.form-status { min-height: 1.6em; font-size: 14px; }
.form-status.is-error { color: var(--brick); }

/* ---------- Footer ---------- */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer-top .muted { margin-top: 4px; font-size: 14px; }
.footer-aksara { font-size: clamp(40px, 5vw, 60px); line-height: 1.4; color: var(--text-2); }
.footer-mid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--text); }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: .3em; }

/* ---------- Halaman legal ---------- */
.legal { padding: clamp(40px, 6vw, 88px) 0 var(--section); }
.legal-head { max-width: 760px; }
.legal-head > .muted { font-size: 14px; }
.legal h1 {
  margin-top: 12px;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.legal-meta { margin-top: 16px; font-size: 14px; color: var(--text-2); }
.legal-intro { margin-top: 28px; font-size: 18px; line-height: 1.6; }
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 40px 72px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.legal-toc { position: sticky; top: 104px; align-self: start; }
.legal-toc ol { counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  color: var(--placeholder);
}
.legal-toc a:hover { color: var(--text); }
.legal-body { max-width: 680px; }
.legal-body section { scroll-margin-top: 104px; }
.legal-body section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.005em; }
.legal-body p, .legal-body li { color: var(--text-2); }
.legal-body p { margin-top: 14px; }
.legal-body ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.legal-body li + li { margin-top: 6px; }
.legal-body li::marker { color: var(--cobalt); }
/* Teks yang wajib diisi pemilik sebelum dipublikasikan. */
.fill { color: var(--action); border-bottom: 1px dashed var(--action); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.footer-nav { display: flex; flex-wrap: wrap; }
.footer-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--text);
  text-decoration: none;
}
.footer-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  border-left: 1px solid var(--line-2);
}
.footer-nav a:last-child { padding-right: 0; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .stage-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
  .stage-tab { min-height: 52px; padding: 0 20px; }
  .stage-panel { grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); }
  .stage-panel .photo { grid-column: 1 / -1; max-width: 640px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav-pill {
    position: static;
    transform: none;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .nav-pill a {
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    color: var(--text);
  }
  .nav-pill a + a::before { display: none; }
  .nav > .pill { margin-top: 16px; justify-content: space-between; }
  .nav > .lang-switch { margin: 16px 0 0; align-self: flex-start; padding: 0 16px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .kawung, .hero-copy, .hero-intro, .hero-facts, .hero-lede { grid-column: 1; grid-row: auto; }
  .kawung { width: min(70%, 320px); justify-self: center; }
  .hero-intro, .hero-facts, .hero-lede { text-align: left; }
  .hero-intro { padding-top: 0; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-lede { margin-left: 0; }

  .principle-row,
  .story-grid,
  .section-head,
  .character-grid,
  .contact-card { grid-template-columns: minmax(0, 1fr); }
  .principle-row { gap: 12px; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; padding-top: 32px; }
  .legal-toc { position: static; }
  .character h2 { align-self: start; }
}

@media (max-width: 640px) {
  .stage-panel { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stage-num { flex-direction: row; justify-content: flex-start; align-items: center; gap: 16px; }
  .stage-num [lang="jv"] { font-size: 56px; }

  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; }
  .ledger tr { padding: 20px 0; border-top: 1px solid var(--line); }
  .ledger tr:last-child { border-bottom: 1px solid var(--line); }
  .ledger td, .ledger tr:last-child td { padding: 0; border: 0; }
  .ledger td + td { margin-top: 14px; }
  .ledger td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
  }
  .ledger td:first-child::before { color: var(--cobalt); }
  .ledger td:last-child::before { color: var(--text-2); }

  .form-row { grid-template-columns: minmax(0, 1fr); }
  .form .pill { justify-self: stretch; justify-content: space-between; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 0 24px; }
  .footer-nav a { padding: 0; }
  .footer-nav a + a::before { display: none; }
}

/* Animasi pergantian tahap. Panel yang baru tampil (dari display:none) otomatis memutar ulang animasinya.
   Garis utuh "digambar", titik data muncul berurutan, garis titik mengalir masuk. --i diisi main.js. */
@media (prefers-reduced-motion: no-preference) {
  .js .stages:not(.in-view) .stage-panel * { animation-play-state: paused !important; }
  .stage-num, .stage-copy { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .stage-copy { animation-delay: .08s; }
  .photo-slot.is-illus { animation: frame-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .illus [data-draw] > * {
    stroke-dasharray: 1;
    animation: draw 1.3s cubic-bezier(.65, 0, .35, 1) both;
    animation-delay: calc(var(--base, 0s) + var(--i, 0) * 110ms);
  }
  .illus [data-pop] > * {
    transform-box: fill-box;
    transform-origin: center;
    animation: pop .5s cubic-bezier(.2, .8, .3, 1.3) both;
    animation-delay: calc(var(--base, .5s) + var(--i, 0) * 35ms);
  }
  .illus [data-flow] > * {
    animation: flow 1.4s ease-out both;
    animation-delay: calc(var(--base, .3s) + var(--i, 0) * 90ms);
  }
  .illus .d-light {
    transform-box: fill-box;
    transform-origin: center;
    animation: light 1.8s ease-out both;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes frame-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes flow { from { opacity: 0; stroke-dashoffset: 64; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes light { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
