:root {
    color-scheme: light;
    --forest: #103a2d;
    --forest-dark: #003625;
    --green: #0f6b4f;
    --green-soft: #e5f1ea;
    --ink: #191c1b;
    --muted: #5c6861;
    --surface: #f9faf7;
    --surface-soft: #f1f3ef;
    --white: #fff;
    --border: #e3e8e2;
    --container: 1240px;
    --font-body: Inter, "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
    --font-heading: "Plus Jakarta Sans", "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button, summary { font: inherit; }
::selection { background: #c6e6d3; color: var(--forest-dark); }

.container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.skip-link {
    position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px;
    transform: translateY(-160%); border-radius: 4px; background: var(--forest-dark); color: var(--white);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky; z-index: 50; top: 0; min-height: 82px;
    border-bottom: 1px solid rgb(16 58 45 / 7%); background: rgb(249 250 247 / 94%);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; min-width: 0; }
.brand-logo { width: 50px; height: 50px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: var(--forest-dark); font: 700 16px/1.25 var(--font-heading); }
.brand-tagline { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.desktop-nav a { color: #455149; font-size: 13px; font-weight: 600; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--forest-dark); }
.desktop-nav a.active { box-shadow: inset 0 -2px var(--green); padding-block: 10px; }
.button {
    display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 13px;
    padding: 11px 20px; border: 1px solid var(--forest-dark); border-radius: 5px;
    background: var(--forest-dark); color: var(--white); font-size: 13px; font-weight: 700;
    line-height: 1.3; transition: background .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--green); color: var(--white); }
.button-small { min-height: 42px; padding: 9px 16px; }
.button-light { border-color: var(--white); background: var(--white); color: var(--forest-dark); }
.button-light:hover { background: #eaf4ed; color: var(--forest-dark); }
.button-outline-light { border-color: rgb(255 255 255 / 55%); background: transparent; color: var(--white); }
.button-outline-light:hover { background: rgb(255 255 255 / 12%); color: var(--white); }
.mobile-menu { display: none; position: relative; }

.hero-section { overflow: hidden; padding: 64px 0 72px; background: var(--surface-soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 84px); }
.hero-grid-with-image { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.hero-copy { position: relative; z-index: 1; padding-block: 20px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--forest); font-family: var(--font-heading); }
.hero-copy h1 { max-width: 690px; margin: 0 0 22px; font-size: clamp(40px, 5vw, 66px); font-weight: 750; letter-spacing: -.045em; line-height: 1.08; }
.hero-description { max-width: 590px; margin-bottom: 30px; color: #46534b; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; }
.muted { color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--forest-dark); font-size: 13px; font-weight: 750; }
.text-link:hover { color: var(--green); }
.hero-visual { position: relative; min-height: 400px; }
.hero-image { width: 100%; height: 440px; border-radius: 4px; object-fit: cover; }

.section { padding: 84px 0; }
.section-about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(38px, 7vw, 100px); }
.about-grid-with-image { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); }
.about-visual { min-height: 350px; }
.about-visual img { width: 100%; height: 390px; border-radius: 3px; object-fit: cover; }
.section-copy h2, .section-heading h2, .profile-block h2, .publication-panel h2, .cta-panel h2 { margin-bottom: 16px; font-size: clamp(30px, 3.5vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.16; }
.lead { margin-bottom: 23px; color: #46534b; font-size: 17px; line-height: 1.85; white-space: pre-line; }

.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 12px; }
.section-intro { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.section-heading-row { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 24px; }
.heading-link { margin-bottom: 8px; white-space: nowrap; }
.section-values { background: var(--surface); }
.values-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--border); background: var(--border); }
.value-card { min-height: 190px; padding: 22px; background: var(--surface); }
.value-index { color: #7c9d85; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.value-card h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.3; }
.value-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.section-programs { background: #f2f4f0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.content-card { overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgb(24 48 34 / 8%); }
.card-image-link { display: block; overflow: hidden; background: #dce7dd; }
.card-image { width: 100%; height: 235px; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .card-image { transform: scale(1.025); }
.content-card-no-image { border-top: 3px solid var(--green); }
.card-copy { padding: 23px 23px 25px; }
.card-copy h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.35; }
.card-copy p { min-height: 55px; margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; white-space: pre-line; }
.section-activities { background: var(--white); }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.activity-card { overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.activity-image { width: 100%; height: 220px; object-fit: cover; }
.activity-card-no-image { border-top: 3px solid #87a18c; }
.activity-copy { padding: 20px 22px 24px; }
.activity-copy .eyebrow { margin-bottom: 7px; font-size: 10px; }
.activity-copy h3 { margin-bottom: 9px; font-size: 19px; line-height: 1.4; }
.activity-copy .muted { margin-bottom: 17px; font-size: 13px; }
.activity-copy .text-link { margin-top: 4px; }
.section-gallery { background: var(--surface-soft); }
.home-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-gallery-grid img { width: 100%; height: 210px; object-fit: cover; }
.section-publications { background: var(--surface); }
#publikasi { scroll-margin-top: 100px; }
.publication-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--border); background: var(--white); }
.publication-panel h2 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 36px); }
.publication-panel p:last-child { max-width: 690px; margin-bottom: 0; color: var(--muted); }
.section-cta { padding-top: 20px; background: var(--surface); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(34px, 5vw, 62px); background: var(--forest-dark); color: var(--white); }
.cta-panel h2 { color: var(--white); }
.cta-panel p:not(.eyebrow) { max-width: 730px; margin-bottom: 0; color: #d3e0d8; white-space: pre-line; }
.eyebrow-light { color: #a8d8bc; }

.empty-state { display: flex; min-height: 118px; align-items: center; gap: 15px; padding: 24px; border: 1px dashed #c8d3ca; background: rgb(255 255 255 / 55%); color: var(--muted); }
.empty-state p { margin: 0; }
.empty-mark { width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid #87a18c; border-radius: 50%; background: radial-gradient(circle, #87a18c 2px, transparent 3px); }

.page-hero { padding: 68px 0 62px; background: var(--surface-soft); }
.page-hero-inner { max-width: var(--container); }
.page-hero h1 { max-width: 900px; margin: 0 0 13px; font-size: clamp(38px, 5vw, 58px); font-weight: 730; letter-spacing: -.04em; line-height: 1.12; }
.page-lead { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 17px; }
.profile-content { max-width: 1000px; }
.profile-block { padding: 36px 0; border-bottom: 1px solid var(--border); }
.profile-block:first-child { padding-top: 0; }
.profile-block h2 { font-size: clamp(26px, 3vw, 36px); }
.long-copy { max-width: 820px; margin-bottom: 0; color: #46534b; font-size: 17px; line-height: 1.9; white-space: pre-line; }
.profile-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.profile-pair .profile-block { border-bottom: 1px solid var(--border); }
.profile-pair + .profile-block { margin-top: 18px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(36px, 7vw, 90px); }
.detail-copy { padding-top: 7px; }
.detail-image-wrap { margin: 0; }
.detail-image { width: 100%; max-height: 650px; object-fit: cover; }
.back-link { margin-top: 30px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-card { margin: 0; padding: 10px; border: 1px solid var(--border); background: var(--white); }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-card figcaption { padding: 12px 4px 3px; color: var(--forest); font-size: 14px; font-weight: 650; }
.gallery-activity-link { margin: 5px 4px 3px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card { min-height: 200px; padding: 25px; border: 1px solid var(--border); background: var(--white); }
.contact-card h2 { margin: 22px 0 8px; font-size: 20px; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--green); }
.contact-symbol { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-soft); color: var(--forest); font-size: 20px; font-weight: 700; }
.contact-empty { grid-column: 1 / -1; }
.address-text { white-space: pre-line; }
.pagination-wrap { margin-top: 34px; }
nav[role="navigation"] { color: var(--muted); }
nav[role="navigation"] a, nav[role="navigation"] span { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; margin: 2px; padding: 6px 10px; border: 1px solid var(--border); background: var(--white); font-size: 13px; }
nav[role="navigation"] [aria-current="page"] span { border-color: var(--forest-dark); background: var(--forest-dark); color: var(--white); }

.site-footer { padding: 58px 0 0; background: #edf0eb; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: clamp(35px, 7vw, 95px); padding-bottom: 42px; }
.footer-brand-block { max-width: 430px; }
.footer-description { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; white-space: pre-line; }
.footer-heading { margin: 4px 0 17px; color: var(--forest-dark); font: 700 16px/1.4 var(--font-heading); }
.footer-list { display: grid; gap: 10px; margin: 0; padding: 0; color: #4c5951; font-size: 13px; list-style: none; }
.footer-list a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 22px; border-top: 1px solid #d9e0d8; color: var(--muted); font-size: 12px; }
.footer-bottom a { color: var(--forest-dark); font-weight: 650; }

@media (max-width: 1050px) {
    .desktop-nav, .header-contact { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu summary { padding: 9px 12px; border: 1px solid var(--border); border-radius: 4px; color: var(--forest-dark); font-size: 13px; font-weight: 700; list-style: none; cursor: pointer; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu nav { position: absolute; top: calc(100% + 12px); right: 0; display: grid; min-width: 220px; gap: 0; padding: 8px; border: 1px solid var(--border); background: var(--white); box-shadow: 0 16px 40px rgb(16 58 45 / 13%); }
    .mobile-menu nav a { padding: 10px 12px; color: var(--forest); font-size: 14px; }
    .mobile-menu nav a:hover { background: var(--surface-soft); }
    .hero-grid { gap: 38px; }
    .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .container { width: min(var(--container), calc(100% - 40px)); }
    .site-header, .header-inner { min-height: 70px; }
    .brand-logo { width: 43px; height: 43px; }
    .brand-name { font-size: 14px; }
    .brand-tagline { font-size: 9px; }
    .desktop-nav, .header-contact { display: none; }
    .mobile-menu { display: block; }
    .hero-section { padding: 48px 0 52px; }
    .hero-grid, .about-grid, .detail-layout { grid-template-columns: 1fr; }
    .hero-grid { gap: 28px; }
    .hero-copy { padding: 0; }
    .hero-copy h1 { max-width: 560px; font-size: clamp(38px, 10vw, 54px); }
    .hero-visual, .hero-image { min-height: 260px; height: 300px; }
    .section { padding: 62px 0; }
    .about-grid { gap: 30px; }
    .about-visual, .about-visual img { min-height: 250px; height: 285px; }
    .section-heading-row { align-items: start; flex-direction: column; gap: 12px; }
    .heading-link { margin: 0; }
    .card-grid, .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .card-image { height: 190px; }
    .card-copy { padding: 17px; }
    .card-copy h3, .activity-copy h3 { font-size: 17px; }
    .activity-image { height: 180px; }
    .activity-copy { padding: 16px; }
    .home-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-gallery-grid img { height: 180px; }
    .publication-panel, .cta-panel { align-items: flex-start; flex-direction: column; }
    .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .value-card { min-height: 160px; padding: 17px; }
    .profile-pair { gap: 22px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .footer-brand-block { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .container { width: calc(100% - 32px); }
    .hero-copy h1 { font-size: 38px; }
    .hero-description { font-size: 16px; }
    .button-row { align-items: flex-start; flex-direction: column; gap: 16px; }
    .card-grid, .activity-grid, .gallery-grid, .contact-grid { grid-template-columns: 1fr; }
    .card-image { height: 220px; }
    .activity-image { height: 220px; }
    .values-grid { grid-template-columns: 1fr; }
    .value-card { min-height: 0; }
    .value-card h3 { margin-top: 14px; }
    .profile-pair { grid-template-columns: 1fr; }
    .profile-pair .profile-block { padding: 26px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand-block { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
