/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
    --ink: #12151C;
    --ink-soft: #2B2F3A;
    --muted: #5B6270;
    --paper: #FFFFFF;
    --surface: #F5F6F8;
    --surface-2: #ECEEF2;
    --line: #E1E4EA;
    --accent: #2B3A67;
    --accent-soft: #3E4F8C;
    --gold: #C9A227;
    --gold-soft: #E8D796;

    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1180px;
    --radius: 6px;
    --shadow-soft: 0 1px 2px rgba(18, 21, 28, 0.04), 0 8px 24px rgba(18, 21, 28, 0.06);
    --shadow-lift: 0 4px 8px rgba(18, 21, 28, 0.06), 0 16px 40px rgba(18, 21, 28, 0.10);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

.muted { color: var(--muted); }

/* =====================================================
   MOTION / SCROLL REVEAL
   ===================================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-animate] { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =====================================================
   HEADER / NAVBAR
   ===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}
.nav-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); background: var(--surface); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* =====================================================
   HERO
   ===================================================== */
.hero { padding: 72px 0 96px; }
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 18px;
    position: relative;
    padding-left: 28px;
}
.hero-eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 18px; height: 1px;
    background: var(--gold);
}
.hero-name {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 700;
    white-space: pre-line;
    line-height: 0.86;
    margin-bottom: 22px;
}
.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}
.hero-narrative {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-lift);
}
.hero-photo-frame::after {
    content: '';
    position: absolute; inset: 14px;
    border: 1px solid rgba(201, 162, 39, 0.5);
    pointer-events: none;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    min-height: 200px;
}
.photo-placeholder.small { min-height: 140px; }

/* =====================================================
   SECTIONS (generic)
   ===================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 44px;
    gap: 20px;
    flex-wrap: wrap;
}
.link-more {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    white-space: nowrap;
}
.link-more:hover { color: var(--gold); }

.page-header { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

/* =====================================================
   GRIDS & CARDS
   ===================================================== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(43, 58, 103, 0.08);
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
    font-weight: 600;
}

.explore-grid { gap: 16px; }
.explore-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--gold);
}
.explore-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink);
}
.explore-desc { font-size: 0.85rem; color: var(--muted); }

.mini-card, .work-card, .org-card, .seminar-card, .value-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.mini-card:hover, .work-card:hover, .org-card:hover, .seminar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: transparent;
}
.mini-card h3 { font-size: 1.05rem; margin-bottom: 6px; }

.work-thumb, .seminar-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--surface);
}
.work-thumb img, .seminar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card, .seminar-card { padding: 18px; }
.work-card h3, .seminar-card h3 { padding: 0 6px; }
.work-card .badge, .seminar-card .seminar-meta { margin-left: 6px; }
.work-card p { padding: 0 6px 6px; }
.work-card .link-more { display: inline-block; margin: 4px 6px 8px; }

.seminar-body { padding: 0 6px 6px; }
.seminar-meta { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

.org-card { display: flex; gap: 20px; padding: 28px; }
.org-logo {
    flex-shrink: 0;
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
}
.org-logo img { width: 100%; height: 100%; object-fit: cover; }
.org-jabatan { font-size: 0.88rem; color: var(--accent); margin: 4px 0 10px; font-family: var(--font-mono); }
.org-desc { color: var(--muted); font-size: 0.95rem; }
.org-doc { margin-top: 14px; border-radius: 4px; }

.value-card { text-align: left; }
.value-card h3 { color: var(--gold); text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.06em; font-size: 0.9rem; margin-bottom: 14px; }
.value-card p { color: var(--ink-soft); }

/* =====================================================
   QUOTE / CTA
   ===================================================== */
.quote-section { text-align: center; }
.big-quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    font-style: italic;
    font-weight: 500;
    color: var(--ink);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
}
.cta-section { background: var(--ink); color: var(--paper); text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-section h2 { color: var(--paper); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.cta-section .btn-primary { background: var(--gold); color: var(--ink); }
.cta-section .btn-primary:hover { background: var(--gold-soft); }

/* =====================================================
   TIMELINE (signature element)
   ===================================================== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 5px; top: 6px; bottom: 6px;
    width: 1px;
    background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -32px; top: 6px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--gold);
}
.timeline-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.timeline-content h3 { margin-bottom: 8px; }
.timeline-content p { color: var(--muted); font-size: 0.95rem; }

/* =====================================================
   PROFIL
   ===================================================== */
.profile-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: start; }
.profile-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--surface); box-shadow: var(--shadow-soft); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-content h2 { margin-bottom: 18px; }
.prose { color: var(--ink-soft); font-size: 1.02rem; }

/* =====================================================
   GALLERY
   ===================================================== */
.gallery-grid {
    columns: 3;
    column-gap: 16px;
}
.gallery-item {
    display: block;
    margin-bottom: 16px;
    break-inside: avoid;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.gallery-item img { width: 100%; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(18, 21, 28, 0.92);
    z-index: 999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 4px; }
.lightbox p { color: var(--paper); margin-top: 16px; font-family: var(--font-mono); font-size: 0.85rem; }
.lightbox-close {
    position: absolute;
    top: 24px; right: 32px;
    background: none; border: none;
    color: var(--paper);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 12px; color: var(--ink-soft); }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--muted); }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--paper);
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--accent); }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #E9F5EC; color: #1E6B3A; border: 1px solid #BEE3C6; }
.alert-error { background: #FDECEC; color: #A32626; border: 1px solid #F3C4C4; }

.empty-state { color: var(--muted); font-style: italic; padding: 40px 0; text-align: center; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); padding: 56px 0 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--paper); }
.footer-tagline { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* =====================================================
   NEWS PORTAL (GALERI / BERITA)
   ===================================================== */
.news-search { margin-bottom: 40px; max-width: 420px; }
.news-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
}
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.news-thumb { aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 20px; }
.news-body h3 { margin: 8px 0 10px; font-size: 1.1rem; }
.news-body .link-more { display: inline-block; margin-top: 12px; }

.news-detail { max-width: 780px; margin: 0 auto; }
.news-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow-soft); }
.news-content { margin-bottom: 40px; font-size: 1.05rem; }
.news-gallery-title { margin-bottom: 20px; }
.back-to-list { display: inline-block; margin-top: 36px; }

/* =====================================================
   DOWNLOAD
   ===================================================== */
.download-list { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto; }
.download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: box-shadow 0.25s var(--ease), border-color 0.25s;
}
.download-item:hover { box-shadow: var(--shadow-soft); border-color: var(--gold); }
.download-ext {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}
.download-info { flex: 1; }
.download-info h3 { font-size: 1rem; margin-bottom: 4px; }
.download-info p { font-size: 0.88rem; color: var(--muted); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
    .profile-grid, .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { columns: 2; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: var(--paper);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--line);
        display: none;
        padding: 8px 24px 16px;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 8px; font-size: 0.78rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .download-item { flex-wrap: wrap; }
    .org-card { flex-direction: column; }
    .section { padding: 56px 0; }
    .gallery-grid { columns: 1; }
    .footer-inner { flex-direction: column; }
}
