/* HMTP UNISBA — gaya halaman publik
   VOICE  : tegas, bangga, anak tambang
   IDEA   : peta topografi & penampang lapisan batuan (strata) di lokasi tambang
   PICTURE: hero slideshow foto kegiatan di atas garis kontur & grid survei
   COLOUR : hitam batubara + kuning emas HMTP (satu tema gelap)
   TYPE   : Barlow Condensed (judul) + Plus Jakarta Sans (teks) + JetBrains Mono (data) */
:root {
  --bg: #0b0b0c; --surface: #131315; --surface-2: #1c1c1f; --line: #2a2a2e;
  --text: #ecebe6; --text-2: #cfcdc6; --muted: #a3a29c;
  --gold: #f2c200; --gold-2: #ffd84a; --gold-ink: #f2c200; --on-gold: #0b0b0c;
  --header-bg: rgba(11,11,12,.82); --grid: rgba(242,194,0,.05); --contour: rgba(242,194,0,.16);
  --ok: #6fd3a4; --ok-bg: rgba(63,178,127,.16); --warn: #f6b964; --warn-bg: rgba(242,162,58,.16);
  --chip: #26262b; --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 14px; --max: 1180px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background .3s, color .3s; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.eyebrow { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background .3s; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 42px; height: 42px; }
.brand b { font-family: var(--head); font-size: 1.35rem; letter-spacing: .04em; display: block; line-height: 1; }
.brand small { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 600; position: relative; }
.nav a:hover { color: var(--gold-ink); background: var(--surface-2); }
.nav a.active { color: var(--on-gold); background: var(--gold); }
.tools { display: flex; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-ink); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
@media (max-width: 1220px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; animation: drop .2s ease-out; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .tools { margin-left: auto; }
}
@media (max-width: 480px) { .brand small { display: none; } .brand b { font-size: 1.2rem; } .tools .icon-btn { width: 40px; height: 40px; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: .95rem; padding: 12px 20px; border-radius: 10px; border: 2px solid var(--gold); background: var(--gold); color: var(--on-gold); cursor: pointer; transition: transform .15s, background .15s, box-shadow .2s; }
.btn:hover { background: var(--gold-2); color: var(--on-gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242,194,0,.25); }
.btn.ghost { background: transparent; color: var(--gold-ink); border-color: var(--gold); }
.btn.ghost:hover { background: rgba(242,194,0,.12); color: var(--gold-ink); }
.btn.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.light:hover { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- latar peta: grid survei + kontur ---------- */
.mapbg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mapbg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; }
.mapbg svg.contour { position: absolute; width: 140%; height: 140%; left: -20%; top: -20%; color: var(--contour); animation: drift 60s linear infinite alternate; }
@keyframes drift { to { transform: translate(4%, -3%) rotate(2deg); } }

/* ---------- hero slideshow ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; overflow: hidden; background: #0b0b0c; color: #f3f1ea; isolation: isolate; }
.hero .slide-bg { position: absolute; inset: 0; background: #0b0b0c center/cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 7s ease-out; z-index: -3; }
.hero .slide-bg.on { opacity: 1; transform: scale(1); }
.hero .shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8,8,9,.94) 0%, rgba(8,8,9,.78) 42%, rgba(8,8,9,.35) 75%, rgba(8,8,9,.55) 100%), linear-gradient(0deg, rgba(8,8,9,.9), transparent 40%); }
.hero .mapbg { z-index: -1; --grid: rgba(242,194,0,.05); --contour: rgba(242,194,0,.13); }
#bgs, .formulas { position: absolute; inset: 0; z-index: -3; }
.formulas { z-index: -1; pointer-events: none; }
.formulas span { position: absolute; font-family: var(--mono); font-size: .78rem; color: rgba(242,194,0,.38); white-space: nowrap; animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-14px); opacity: .9; } }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; align-content: center; padding: 84px 0 150px; }
.hero-text { position: relative; min-height: 360px; display: grid; align-content: center; }
.hero-text .panel { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.hero-text .panel.on { opacity: 1; transform: none; pointer-events: auto; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .big { display: block; font-size: clamp(3.6rem, 11vw, 8.4rem); line-height: .86; letter-spacing: .005em; }
.hero h1 .big em { font-style: normal; color: var(--gold); }
.hero .title { font-size: clamp(2.4rem, 6vw, 4.6rem); color: #fff; text-transform: uppercase; margin-bottom: 18px; }
.hero .lead { color: rgba(243,241,234,.86); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-side { display: grid; justify-items: end; gap: 26px; }
.hero-side .logo-big { width: min(300px, 80%); height: auto; filter: drop-shadow(0 20px 60px rgba(242,194,0,.28)); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.coords { text-align: right; font-family: var(--mono); font-size: .84rem; color: rgba(243,241,234,.92); display: grid; gap: 12px; }
.coords small { display: block; color: rgba(242,194,0,.85); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 30px; }
.hero-ctrl .wrap { display: flex; align-items: center; gap: 22px; }
.hero-count { font-family: var(--mono); color: #fff; font-size: .9rem; white-space: nowrap; }
.hero-count b { font-family: var(--head); font-size: 2.6rem; color: var(--gold); font-weight: 700; margin-right: 4px; }
.hero-bars { flex: 1; display: flex; gap: 6px; }
.hero-bars button { flex: 1; height: 26px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; align-items: center; }
.hero-bars button i { display: block; height: 3px; background: rgba(255,255,255,.22); border-radius: 2px; overflow: hidden; position: relative; }
.hero-bars button i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-bars button.done i::after { transform: scaleX(1); }
.hero-bars button.on i::after { animation: fill var(--dur, 7s) linear forwards; }
.hero.paused .hero-bars button.on i::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero-btns { display: flex; gap: 8px; }
.hero-btns button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(11,11,12,.45); color: #fff; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.hero-btns button:hover { border-color: var(--gold); background: rgba(242,194,0,.15); }
.hero-btns svg { width: 18px; height: 18px; }
.scroll-hint { position: absolute; right: 22px; bottom: 120px; writing-mode: vertical-rl; font-family: var(--mono); font-size: .68rem; letter-spacing: .3em; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 10px; }
.scroll-hint::after { content: ""; width: 1px; height: 50px; background: linear-gradient(var(--gold), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.strata { height: 14px; background: linear-gradient(90deg, var(--gold) 0 18%, #6b5a1a 18% 30%, #2d2a22 30% 52%, #b38f00 52% 61%, #3b3527 61% 80%, var(--gold) 80%); background-size: 200% 100%; animation: slide 30s linear infinite; }
@keyframes slide { to { background-position: -200% 0; } }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 28px 0 130px; gap: 22px; align-content: start; }
  .hero-side { order: -1; justify-items: start; grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
  .hero-side .logo-big { width: 92px; }
  .coords { text-align: left; font-size: .74rem; gap: 6px; }
  .coords > div:not(:first-child) { display: none; }
  .hero-text { min-height: 360px; align-content: start; }
  .scroll-hint, .formulas { display: none; }
  .hero-count b { font-size: 2rem; }
}

/* ---------- angka ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -48px; position: relative; z-index: 2; background: var(--surface); box-shadow: var(--shadow); }
.stats div { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--head); font-size: 2.6rem; color: var(--gold-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .86rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-right: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- section ---------- */
section.block { padding: 88px 0; position: relative; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
section.block.gold { background: var(--gold); color: #17150f; overflow: hidden; }
section.block.gold .eyebrow { color: #17150f; }
section.block.gold .lead { color: #2c2716; }
section.block.gold .mapbg { --grid: rgba(23,21,15,.07); --contour: rgba(23,21,15,.14); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.sec-head h2 { margin: 0; }
.page-head { position: relative; padding: 70px 0 46px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.subnav a { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 99px; color: var(--text-2); font-size: .88rem; font-weight: 600; transition: border-color .2s, color .2s; }
.subnav a:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ---------- animasi muncul saat scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- kartu ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.card:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: rgba(242,194,0,.16); color: var(--gold-ink); }
.tag.grey { background: var(--chip); color: var(--text-2); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }

/* berita */
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: var(--text); }
.news-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .cover { aspect-ratio: 16/9; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; transition: transform .6s; }
.news-card:hover .cover { transform: scale(1.04); }
.news-card .cover img.ph { width: 64px; opacity: .25; }
.news-card .body { padding: 18px 20px 22px; position: relative; background: var(--surface); }
.news-card h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.news-card:hover h3 { color: var(--gold-ink); }
.news-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.meta { color: var(--muted); font-size: .82rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.article { max-width: 760px; }
.article .cover { border-radius: var(--radius); margin: 24px 0; width: 100%; }
.article .content p { font-size: 1.06rem; color: var(--text-2); }

/* pengumuman */
.ann { border-left: 4px solid var(--gold); }
.ann.pinned { background: linear-gradient(90deg, rgba(242,194,0,.1), var(--surface) 45%); }
.ann h3 { margin: 10px 0 6px; font-size: 1.35rem; }
.ann p { color: var(--text-2); white-space: pre-line; margin-bottom: .6em; }

/* profil */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.photo-stack { display: grid; gap: 14px; }
.photo-stack figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo-stack img { transition: transform .8s; }
.photo-stack figure:hover img { transform: scale(1.04); }
.photo-stack figcaption { font-size: .8rem; padding: 8px 12px; color: var(--muted); }
.prose p { font-size: 1.05rem; color: var(--text-2); }
.logo-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; }
.logo-grid .logo-wrap { position: sticky; top: 100px; }
.meaning-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.meaning-list .card h4 { font-family: var(--head); font-size: 1.2rem; color: var(--gold-ink); margin-bottom: 4px; }
.meaning-list .card p { margin: 0; color: var(--text-2); font-size: .95rem; }
.meaning-list .card:hover { transform: translateY(-3px); }
@media (max-width: 860px) { .logo-grid { grid-template-columns: 1fr; } .logo-grid .logo-wrap { position: static; max-width: 200px; } .meaning-list { grid-template-columns: 1fr; } }
.cabinet { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; }
.cabinet .clogo { width: 220px; aspect-ratio: 1; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cabinet .clogo img { width: 78%; }
.cabinet .clogo img.real { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) { .cabinet { grid-template-columns: 1fr; } .cabinet .clogo { width: 150px; } }
.visi { font-family: var(--head); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; color: var(--gold-ink); border-left: 5px solid var(--gold); padding-left: 22px; margin: 0 0 40px; }
.misi { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: m; }
.misi li { counter-increment: m; display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text-2); }
.misi li::before { content: counter(m, decimal-leading-zero); font-family: var(--head); font-size: 2rem; color: var(--gold-ink); line-height: 1; }

/* struktur */
.org h3.group { font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 10px 0 18px; display: flex; gap: 12px; align-items: center; font-weight: 500; }
.org h3.group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-bottom: 44px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.person .ph { aspect-ratio: 3/4; background: var(--surface-2) center top/cover no-repeat; position: relative; transition: filter .3s; }
.person .ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(11,11,12,.6)); }
.person .info { padding: 12px 14px 16px; }
.person .pos { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-ink); }
.person .nm { font-family: var(--head); font-size: 1.28rem; line-height: 1.1; margin-top: 4px; }
.person.lead-person { border-color: var(--gold); }
@media (max-width: 520px) { .people { grid-template-columns: 1fr 1fr; gap: 12px; } .person .nm { font-size: 1.1rem; } }

/* program */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filters select, .filters input, .field input, .field select, .field textarea {
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 16px; }
.filters select:focus, .filters input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); padding: 8px 14px; border-radius: 99px; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 600; transition: all .2s; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.div-block { margin-bottom: 44px; }
.div-block h3 { font-size: 1.7rem; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--gold); padding-bottom: 10px; margin-bottom: 16px; }
.div-block h3 small { font-family: var(--mono); font-size: .78rem; color: var(--muted); font-weight: 400; }
.prog { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 18px; }
.prog:hover { transform: translateY(-3px); }
.prog h4 { font-family: var(--body); font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.35; }
.prog p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .92rem; }
.prog .tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: start; justify-content: end; }
.prog img { grid-column: 1 / -1; border-radius: 10px; max-height: 220px; object-fit: cover; width: 100%; }

/* form */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; }
.notice { background: rgba(242,194,0,.1); border: 1px solid rgba(242,194,0,.35); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--text-2); margin-bottom: 18px; }
.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid currentColor; }
.alert.err { background: rgba(229,83,75,.12); color: #e5534b; border: 1px solid rgba(229,83,75,.45); }
.hp { position: absolute; left: -9999px; }
.channels { display: grid; gap: 12px; }
.channel { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); transition: transform .2s, border-color .2s; }
.channel:hover { border-color: var(--gold); color: var(--text); transform: translateX(4px); }
.channel .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--gold); color: #0b0b0c; display: grid; place-items: center; flex: none; }
.channel .ic svg { width: 24px; height: 24px; }
.channel b { display: block; }
.channel span { color: var(--muted); font-size: .9rem; word-break: break-all; }

/* kosong / loading */
.empty { text-align: center; padding: 46px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); min-height: 120px; }
@keyframes sh { to { background-position: -200% 0; } }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }

/* ---------- pencarian ---------- */
.search-dlg { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,6,.6); backdrop-filter: blur(4px); display: none; align-items: start; justify-content: center; padding: 10vh 16px 16px; }
.search-dlg.open { display: flex; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.search-box { width: min(680px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; max-height: 78vh; }
.search-box .bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-box .bar svg { width: 20px; color: var(--gold-ink); flex: none; }
.search-box input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; font-size: 1.1rem; outline: none; }
.search-box kbd { font-family: var(--mono); font-size: .72rem; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--muted); }
.search-res { overflow-y: auto; padding: 8px; }
.search-res .grp { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 6px; }
.search-res a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.search-res a:hover, .search-res a.sel { background: var(--surface-2); color: var(--text); }
.search-res a b { display: block; font-weight: 700; }
.search-res a span { color: var(--muted); font-size: .85rem; }
.search-res mark { background: rgba(242,194,0,.35); color: inherit; border-radius: 3px; }
.search-res .hint { padding: 26px 12px; text-align: center; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { position: relative; background: #070708; color: #d6d4cd; border-top: 1px solid #222; padding: 60px 0 28px; overflow: hidden; }
.site-footer .mapbg { --grid: rgba(242,194,0,.04); --contour: rgba(242,194,0,.1); }
.site-footer .wrap { position: relative; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #f3f1ea; }
.site-footer .brand small { color: #a3a29c; }
.site-footer h4 { font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #f2c200; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9c7c0; }
.site-footer a:hover { color: #f2c200; }
.site-footer .muted { color: #a3a29c; }
.site-footer .bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #222; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #a3a29c; font-size: .82rem; font-family: var(--mono); }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- rumus di hero ---------- */
.formulas span { font-size: .74rem; color: rgba(242,194,0,.34); }
.formulas span i { display: block; font-style: normal; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,241,234,.32); margin-bottom: 2px; }

/* ---------- program per bidang ---------- */
.prog-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 34px; }
.prog-sum div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.prog-sum b { display: block; font-family: var(--head); font-size: 2rem; line-height: 1; color: var(--gold-ink); }
.prog-sum span { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .prog-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prog-sum div:first-child { grid-column: 1 / -1; } }
.bidang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.bidang { position: relative; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; display: grid; gap: 14px; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.bidang::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--contour); box-shadow: 0 0 0 14px transparent, 0 0 0 15px var(--contour), 0 0 0 30px transparent, 0 0 0 31px var(--contour); opacity: .8; transition: transform .5s; }
.bidang:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow); }
.bidang:hover::after { transform: scale(1.15) rotate(10deg); }
.who { display: flex; align-items: center; gap: 10px; }
.faces { display: flex; }
.faces img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--surface); background: var(--surface-2); }
.faces img + img { margin-left: -14px; }
.who small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.who span { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.bidang h3 { font-size: 1.65rem; margin: 0; text-transform: uppercase; line-height: 1; }
.bidang .cnt { display: flex; gap: 14px; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.bidang .cnt b { color: var(--gold-ink); font-size: 1rem; }
.sbar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.sbar i { display: block; height: 100%; }
.sbar .s-selesai { background: #3fb27f; } .sbar .s-berjalan { background: #f2a23a; } .sbar .s-rencana { background: var(--chip); }
.bidang .go { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #0b0b0c; display: grid; place-items: center; font-weight: 800; transition: transform .25s; }
.bidang:hover .go { transform: translateX(3px); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin: -18px 0 22px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* lembar detail (sheet) */
.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet.open { display: block; }
.sheet .back { position: absolute; inset: 0; background: rgba(5,5,6,.62); backdrop-filter: blur(3px); animation: fade .2s; }
.sheet .panel-s { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slidein .3s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.sheet .sh-head { position: relative; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); overflow: hidden; }
.sheet .sh-head h2 { margin: 6px 0 12px; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.sheet .sh-close { position: absolute; top: 16px; right: 16px; }
.sheet .sh-body { overflow-y: auto; padding: 18px 22px 40px; display: grid; gap: 12px; align-content: start; }
.sh-who { display: grid; gap: 12px; margin-bottom: 4px; }
.sheet .tabs-s { display: flex; gap: 6px; margin-top: 12px; }
.sheet .pitem { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; animation: rise .35s both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.sheet .pitem .top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.sheet .pitem h4 { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.35; }
.sheet .pitem p { margin: 0; color: var(--muted); font-size: .9rem; }
.sheet .pitem img { border-radius: 10px; max-height: 240px; width: 100%; object-fit: cover; }
@media (max-width: 640px) { .sheet .panel-s { top: 8vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; animation-name: slideup; } }
@keyframes slideup { from { transform: translateY(60px); opacity: 0; } }

/* ---------- arsip kabinet ---------- */
.timeline { display: grid; gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--gold) 0 8px, transparent 8px 14px); opacity: .5; }
.cab-item { position: relative; padding-left: 70px; }
.cab-item .dot { position: absolute; left: 0; top: 6px; width: 56px; height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cab-item .dot img { width: 80%; height: 80%; object-fit: contain; }
.cab-item details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cab-item details[open] { border-color: var(--gold); }
.cab-item summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cab-item summary::-webkit-details-marker { display: none; }
.cab-item summary h3 { margin: 0; font-size: 1.5rem; text-transform: uppercase; }
.cab-item summary .pr { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.cab-item summary .chev { transition: transform .25s; color: var(--gold-ink); font-size: 1.2rem; }
.cab-item details[open] .chev { transform: rotate(180deg); }
.cab-item .cb { padding: 0 18px 18px; display: grid; gap: 14px; color: var(--text-2); }
.cab-item .cb h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 6px 0 4px; font-weight: 500; }
.cab-item .cb ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.cab-item .cb p { margin: 0; }

/* ---------- galeri ---------- */
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry figure { break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--surface-2); border: 1px solid var(--line); }
.masonry img { width: 100%; transition: transform .6s, filter .3s; }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transform: translateY(8px); transition: .3s; }
.masonry figure:hover figcaption, .masonry figure:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .masonry figcaption { opacity: 1; transform: none; } }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 12px; }
.mosaic a { border-radius: 12px; overflow: hidden; background: var(--surface-2) center/cover no-repeat; position: relative; transition: transform .3s; }
.mosaic a:hover { transform: scale(1.02); }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5,5,6,.94); display: none; grid-template-rows: auto 1fr auto; color: #f3f1ea; }
.lightbox.open { display: grid; animation: fade .2s; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-family: var(--mono); font-size: .82rem; }
.lightbox .lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox .lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; animation: zoomin .3s; }
@keyframes zoomin { from { transform: scale(.96); opacity: .3; } }
.lightbox .lb-cap { padding: 14px 18px 22px; text-align: center; color: rgba(243,241,234,.85); }
.lightbox .lb-cap small { display: block; font-family: var(--mono); color: #f2c200; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.lightbox .nav-b { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(11,11,12,.5); color: #fff; cursor: pointer; font-size: 1.3rem; }
.lightbox .nav-b:hover { border-color: #f2c200; }
.lightbox .prev { left: 10px; } .lightbox .next { right: 10px; }
.lightbox .x { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.1rem; }
@media (max-width: 640px) { .lightbox .lb-stage { padding: 0 8px; } .lightbox .nav-b { top: auto; bottom: -58px; } }
.bidang > *:not(.go) { position: relative; z-index: 1; }
.bidang::after { z-index: 0; }
.sheet .pitem .top .tag { flex: none; }
@media (max-width: 640px) { section.block { padding: 56px 0; } .page-head { padding: 44px 0 30px; } .page-head .lead { font-size: 1rem; } }
