:root {
  --bg: #070b14;
  --bg-soft: #0c1220;
  --panel: rgba(255, 255, 255, .04);
  --panel-border: rgba(212, 175, 90, .22);
  --ink: #f3f1ea;
  --muted: #a7b0c0;
  --gold: #d9b45c;
  --gold-bright: #f3d488;
  --maroon: #a3273f;
  --emerald: #1f8f6a;
  --emerald-bright: #35c896;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
a { color: var(--gold-bright); }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.text-accent { background: linear-gradient(120deg, var(--gold-bright), var(--emerald-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Background FX: songket motif + glow blobs ===== */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.motif { position: absolute; width: 220px; height: 220px; fill: var(--gold); opacity: .05; }
.motif-1 { top: 4%; left: -60px; transform: rotate(-12deg); }
.motif-2 { top: 42%; right: -80px; width: 300px; height: 300px; fill: var(--emerald); opacity: .06; transform: rotate(20deg); }
.motif-3 { bottom: 2%; left: 8%; opacity: .04; transform: rotate(8deg); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.glow-a { width: 480px; height: 480px; background: radial-gradient(circle, var(--maroon), transparent 70%); top: -120px; right: -80px; animation: float1 18s ease-in-out infinite; }
.glow-b { width: 420px; height: 420px; background: radial-gradient(circle, var(--emerald), transparent 70%); bottom: 10%; left: -120px; animation: float2 22s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--gold)); color: #fff;
  box-shadow: 0 0 0 2px rgba(212,175,90,.35);
}
.brand-mark .dot { color: var(--gold-bright); }
.brand-text { font-weight: 700; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--emerald)); transition: width .25s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav-cta { border: 1px solid var(--panel-border); padding: 8px 18px !important; border-radius: 999px; }
.nav-login { display: flex; align-items: center; gap: 6px; color: var(--muted) !important; font-size: .85rem !important; opacity: .75; }
.nav-login:hover { opacity: 1; color: var(--gold-bright) !important; }
.nav-login::before { content: "🔒"; font-size: .8em; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold-bright); display: block; border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 110px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold-bright); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; margin: 0 0 16px; }
.eyebrow-line { width: 32px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); color: var(--ink); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-bright); }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-photo { display: flex; justify-content: center; position: relative; }
.photo-ring { position: relative; width: min(320px, 78vw); aspect-ratio: 1; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.ring-svg circle { fill: none; stroke: url(#none); stroke-dasharray: 6 10; stroke: var(--gold); opacity: .5; stroke-width: 1.5; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo-frame {
  position: absolute; inset: 14px; border-radius: 50%; overflow: hidden;
  border: 3px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(135deg, var(--gold), var(--emerald), var(--maroon)) border-box;
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, #1c2740, #070b14);
  color: var(--gold-bright); font-family: var(--font-display); font-size: 4.5rem; font-weight: 800;
}
.selembayung-deco { position: absolute; width: 90px; bottom: -34px; right: -10px; color: var(--gold); opacity: .8; }

.wave-divider { display: block; width: 100%; height: 60px; fill: var(--bg-soft); }

/* ===== Buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer; font-size: .98rem; font-family: inherit;
  transition: transform .2s, box-shadow .2s; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, var(--maroon), var(--gold)); color: #fff; box-shadow: 0 10px 30px rgba(163,39,63,.35); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(212,175,90,.4); }
.btn-ghost { border-color: var(--panel-border); color: var(--ink); background: var(--panel); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); }

/* ===== Sections ===== */
.section { padding: 90px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 30px; color: var(--ink); display: flex; align-items: baseline; gap: 14px; }
.numbering { font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: var(--gold); border: 1px solid var(--panel-border); border-radius: 999px; padding: 5px 12px; letter-spacing: .05em; }
.section-note { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }

/* ===== Cards (glassmorphism) ===== */
.card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(10px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,90,.4), transparent 40%, rgba(31,143,106,.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card h3 { font-size: 1.12rem; color: var(--ink); }
.card p { margin: 0 0 10px; color: var(--muted); }
.tilt { transition: transform .35s ease, box-shadow .35s ease; }
.tilt:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,.5); }

.facts ul { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--panel-border); color: var(--muted); }
.facts li strong { color: var(--ink); }
.facts li:last-child { border: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips span {
  background: linear-gradient(120deg, rgba(212,175,90,.14), rgba(31,143,106,.14));
  border: 1px solid var(--panel-border); color: var(--gold-bright);
  padding: 7px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(31,143,106,.18); color: var(--emerald-bright); margin-bottom: 12px; letter-spacing: .03em; }
.tag-alt { background: rgba(163,39,63,.2); color: #f2a3b2; }
.meta, .card time { color: var(--gold); font-size: .86rem; display: block; margin-bottom: 6px; }
.link { font-weight: 600; text-decoration: none; color: var(--gold-bright); }
.link:hover { text-decoration: underline; }

/* Timeline & publications */
.timeline, .pubs { list-style: none; margin: 0; padding: 0; }
.timeline li, .pubs li { display: flex; gap: 26px; padding: 20px 0; border-bottom: 1px solid var(--panel-border); }
.timeline li:last-child, .pubs li:last-child { border: 0; }
.year { flex: 0 0 90px; font-weight: 700; color: var(--gold-bright); font-family: var(--font-display); font-size: 1.1rem; }
.timeline h3, .pubs h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--ink); }
.timeline p, .pubs p { margin: 0; color: var(--muted); }
.pubs li.hide { display: none; }

.filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--panel-border); background: var(--panel); color: var(--muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: .9rem; transition: all .2s;
}
.filter.active, .filter:hover { background: linear-gradient(120deg, var(--maroon), var(--gold)); color: #fff; border-color: transparent; }

/* Contact */
.kontak-section { position: relative; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--panel-border); color: var(--muted); }
.contact-list li strong { color: var(--ink); }
.contact-list a { color: var(--gold-bright); }
.form label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 16px; color: var(--muted); }
.form input, .form textarea {
  width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--panel-border);
  border-radius: 10px; font: inherit; background: rgba(255,255,255,.03); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,90,.18); }
.form-status { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { position: relative; background: var(--bg-soft); color: var(--muted); padding: 36px 0; font-size: .92rem; overflow: hidden; border-top: 1px solid var(--panel-border); }
.footer-motif { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 160px; color: var(--gold); opacity: .12; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer a { color: var(--gold-bright); text-decoration: none; }

/* Reveal-on-scroll — HANYA aktif jika JS berhasil jalan (class "js" ditambahkan
   oleh skrip inline di <head>, jadi tidak bergantung pada file script.js eksternal).
   Kalau JS gagal/di-nonaktifkan, semua konten tetap tampil normal (aman secara default). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero { padding: 60px 0; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; z-index: 49;
    flex-direction: column; align-items: flex-start; gap: 22px; padding: 32px 24px;
    background: rgba(7,11,20,.98); backdrop-filter: blur(16px);
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.15rem; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .year { flex-basis: 64px; }
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .glow-a, .glow-b, .ring-svg { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
