/* ==========================================================================
   PPM NTB — Yayasan Pusat Pemberdayaan Masyarakat Nusa Tenggara Barat
   Palet dari pewarna alami tenun Sasak: nila, kunyit, mengkudu.
   ========================================================================== */

:root {
  --nila: #1E2B5C;
  --nila-900: #111936;
  --nila-700: #2A3A78;
  --nila-50: #EEF0F8;
  --kunyit: #E0A526;
  --kunyit-600: #C98D12;
  --kunyit-50: #FCF4E0;
  --mengkudu: #9B2E26;
  --bg: #F5F6F9;
  --putih: #FFFFFF;
  --tinta: #141827;
  --batu: #5A6075;
  --garis: #E2E5EC;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 76px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --slide-dur: 6s;

  --tenun-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='28' viewBox='0 0 44 28'%3E%3Crect width='44' height='28' fill='%231E2B5C'/%3E%3Crect width='44' height='3' fill='%239B2E26'/%3E%3Crect y='25' width='44' height='3' fill='%239B2E26'/%3E%3Cpath d='M11 5l9 9-9 9-9-9z' fill='%23E0A526'/%3E%3Cpath d='M11 10l4 4-4 4-4-4z' fill='%239B2E26'/%3E%3Cpath d='M33 6.5l7.5 7.5-7.5 7.5-7.5-7.5z' fill='none' stroke='%23E0A526' stroke-width='1.5'/%3E%3Cpath d='M33 12l2 2-2 2-2-2z' fill='%23F7F7F4'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
svg { flex: none; }

:focus-visible {
  outline: 3px solid var(--kunyit);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--kunyit);
  color: var(--nila-900);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.lead { font-size: 1.1875rem; line-height: 1.6; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 50px;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--kunyit); color: var(--nila-900); }
.btn--primary:hover { background: #EBB53A; }
.btn--glass {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: var(--putih);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .6); }
.btn--sm { min-height: 42px; padding: .5rem 1.125rem; font-size: .9375rem; }
.btn--block { width: 100%; }

/* ---------- Pita tenun ---------- */
.tenun { height: 28px; background: var(--tenun-x) 0 0 / 44px 28px repeat-x; }
.tenun--thin { height: 14px; background-size: 22px 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--putih);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.header.is-scrolled,
.header.is-open {
  color: var(--nila);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--garis), 0 8px 30px rgba(17, 25, 54, .06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand__mark { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.brand__text small { font-size: .78rem; font-weight: 500; opacity: .75; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: .25rem; }
.nav ul a {
  display: inline-block;
  padding: .5rem .875rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96875rem;
  text-decoration: none;
  transition: background-color .2s;
}
.nav ul a:hover { background: rgba(255, 255, 255, .14); }
.header.is-scrolled .nav ul a:hover { background: var(--nila-50); }
.nav ul a.is-active { background: rgba(255, 255, 255, .16); }
.header.is-scrolled .nav ul a.is-active { background: var(--nila-50); color: var(--nila); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .5rem .9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s, background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (slideshow) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(100svh, 640px);
  overflow: hidden;
  background: var(--nila-900);
  color: var(--putih);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 25, 54, .92) 0%, rgba(17, 25, 54, .74) 38%, rgba(17, 25, 54, .25) 72%, rgba(17, 25, 54, .12) 100%),
    linear-gradient(0deg, rgba(17, 25, 54, .9) 0%, rgba(17, 25, 54, 0) 38%),
    linear-gradient(180deg, rgba(17, 25, 54, .55) 0%, rgba(17, 25, 54, 0) 22%);
}

.hero__content { padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
  padding: .4rem 1rem .4rem .45rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .875rem;
  font-weight: 600;
}
.hero__badge svg { width: 24px; height: 24px; }

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.75rem, 6.6vw, 5.75rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
/* Tanda baca merapat ke huruf sebelumnya pada judul yang rapat */
.hero h1 .tanda { margin-left: -0.09em; }
.hero__lede {
  max-width: 48ch;
  margin-bottom: 2.25rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, .86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__caption { margin: 0; font-size: .9375rem; color: rgba(255, 255, 255, .82); }
.hero__controls { display: flex; align-items: center; gap: .75rem; }

.dots { display: flex; gap: .375rem; }
.dot {
  display: grid;
  align-items: center;
  width: 44px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dot span {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
}
.dot span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--kunyit);
  transform: scaleX(0);
  transform-origin: left;
}
.dot:hover span { background: rgba(255, 255, 255, .5); }
.dot.is-active span::after { animation: progres var(--slide-dur) linear forwards; }
.hero.is-paused .dot.is-active span::after,
.hero.is-offscreen .dot.is-active span::after { animation-play-state: paused; }

.hero__pause {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--putih);
  cursor: pointer;
}
.hero__pause:hover { background: rgba(255, 255, 255, .18); }
.hero__pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero__pause .i-play { fill: currentColor; stroke: none; }
.hero__pause .i-play,
.hero.is-paused .hero__pause .i-pause { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }

@keyframes progres { to { transform: scaleX(1); } }
@keyframes zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes naik { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active img { animation: zoom 9s ease-out both; }
  .hero__badge, .hero h1, .hero__lede, .hero__actions { animation: naik .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 { animation-delay: .1s; }
  .hero__lede { animation-delay: .22s; }
  .hero__actions { animation-delay: .32s; }
}

/* ---------- Section ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--white { background: var(--putih); }
.section--dark { background: var(--nila-900); color: var(--putih); }

.section h2 {
  max-width: 18ch;
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--nila);
}
.section--dark h2 { color: var(--putih); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__head p { color: var(--batu); font-size: 1.125rem; }
.section--dark .section__head p { color: rgba(255, 255, 255, .72); }
.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: none;
}
.section__head--split > div { max-width: 60ch; }

/* ---------- Tentang ---------- */
.tentang {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.tentang__intro .lead { max-width: 54ch; }
.tentang__intro p:not(.lead) { color: var(--batu); max-width: 60ch; }

.akta {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: calc(clamp(1.75rem, 4vw, 2.5rem) + 14px);
  border-radius: var(--r-lg);
  background: var(--putih);
  border: 1px solid var(--garis);
}
.akta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background: var(--tenun-x) 0 50% / 22px 14px repeat-x;
}
.akta blockquote { margin: 0 0 1.25rem; }
.akta blockquote p {
  font-size: clamp(1.1875rem, 1.9vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--nila);
}
.akta figcaption { font-size: .9375rem; color: var(--batu); }

.pilar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.pilar__item {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: var(--putih);
  text-decoration: none;
}
.pilar__item--foto > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pilar__item--foto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(17, 25, 54, .92) 0%, rgba(17, 25, 54, .35) 55%, rgba(17, 25, 54, .1) 100%);
}
.pilar__item--foto:hover > img { transform: scale(1.04); }
.pilar__item--jurnal {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  background: var(--nila);
}
.pilar__item--jurnal::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 165, 38, .28), rgba(224, 165, 38, 0) 65%);
}
.pilar__covers {
  display: flex;
  align-self: flex-end;
  margin: 2.25rem 2.25rem 0 0;
}
.pilar__covers img {
  width: 118px;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.pilar__covers img:first-child { transform: rotate(-7deg) translate(18px, 8px); }
.pilar__covers img:last-child { transform: rotate(5deg) translateY(22px); }
.pilar__item--jurnal:hover .pilar__covers img:first-child { transform: rotate(-10deg) translate(10px, 2px); }
.pilar__item--jurnal:hover .pilar__covers img:last-child { transform: rotate(8deg) translate(6px, 16px); }

.pilar__body { padding: clamp(1.75rem, 3.5vw, 2.5rem); max-width: 34rem; }
.pilar__body h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 800; letter-spacing: -0.03em; }
.pilar__body p { color: rgba(255, 255, 255, .82); margin-bottom: 1.25rem; }
.pilar__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--putih);
  color: var(--nila);
  font-weight: 700;
  font-size: .9375rem;
}

.legal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: clamp(3rem, 6vw, 4rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--garis);
}
.legal dt { font-size: .875rem; color: var(--batu); margin-bottom: .25rem; }
.legal dd { margin: 0; font-weight: 700; color: var(--nila); }

.is-empty { color: var(--batu) !important; font-weight: 500 !important; font-style: italic; }
.kontak .is-empty, .footer .is-empty { color: rgba(255, 255, 255, .6) !important; }

/* ---------- Program (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.bento__item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-height: 230px;
  padding: 1.75rem;
  border: 1px solid var(--garis);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.bento__item--lg { grid-column: span 2; }
.bento__item h3 { margin-top: auto; font-size: 1.25rem; font-weight: 700; color: var(--nila); }
.bento__item p { color: var(--batu); max-width: 42ch; }
.bento__item--lg h3 { font-size: 1.625rem; letter-spacing: -0.03em; }
.bento__item--lg p { font-size: 1.0625rem; }

.bento__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  background: var(--putih);
  color: var(--nila);
  border: 1px solid var(--garis);
}
.bento__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.bento__item--nila { background: var(--nila); border-color: transparent; color: var(--putih); }
.bento__item--nila h3 { color: var(--putih); }
.bento__item--nila p { color: rgba(255, 255, 255, .78); }
.bento__item--nila .bento__icon { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: var(--kunyit); }

.bento__item--kunyit { background: var(--kunyit-50); border-color: #F0DCA6; }
.bento__item--kunyit .bento__icon { color: var(--kunyit-600); border-color: #F0DCA6; }
.bento__link {
  align-self: flex-start;
  margin-top: .75rem;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--nila);
  text-decoration: underline;
  text-decoration-color: var(--kunyit);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.isu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-lg);
  border: 1px dashed #C9CEDC;
}
.isu h3 { margin: 0; font-size: 1.0625rem; color: var(--nila); flex: none; }
.isu ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.isu li {
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--nila-50);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--nila);
}

/* ---------- Kegiatan ---------- */
.kegiatan {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--putih);
  border: 1px solid var(--garis);
}
.kegiatan + .kegiatan { margin-top: 1.25rem; }
.kegiatan__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.75rem;
}
.kegiatan h3 {
  max-width: 24ch;
  font-size: clamp(1.4rem, 2.3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--nila);
}
.kegiatan__head p { color: var(--batu); max-width: 60ch; }

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 1.75rem;
}
.meta > div {
  padding: .875rem 1rem;
  border-radius: var(--r-md);
  background: var(--bg);
}
.meta dt { font-size: .8125rem; color: var(--batu); margin-bottom: .15rem; }
.meta dd { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--tinta); }

/* Lebar kolom sebanding dengan rasio foto, jadi tinggi foto sejajar tanpa terpotong */
.galeri {
  display: grid;
  grid-template-columns: var(--a, 1fr) var(--b, 1fr);
  gap: 1rem;
  align-items: start;
}
.galeri figcaption { margin-top: .6rem; font-size: .875rem; color: var(--batu); }

.foto {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--nila-50);
  cursor: zoom-in;
  overflow: hidden;
}
.foto img { width: 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.foto:hover img { transform: scale(1.03); }

/* ---------- Jurnal ---------- */
.jurnal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.jurnal {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.jurnal > p { color: rgba(255, 255, 255, .78); }
.jurnal__top {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.jurnal__cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.jurnal__cover:hover img { transform: translateY(-4px) rotate(-1.5deg); }
.jurnal h3 { margin-bottom: .15rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.jurnal__sub { margin-bottom: 1rem; color: var(--kunyit); font-weight: 600; font-size: .9375rem; }
.jurnal__meta { margin: 0; display: grid; gap: .35rem; font-size: .9375rem; }
.jurnal__meta > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .5rem; }
.jurnal__meta dt { color: rgba(255, 255, 255, .6); }
.jurnal__meta dd { margin: 0; font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.tags li {
  padding: .3rem .75rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

.jurnal__artikel {
  margin-bottom: 1.75rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
}
.jurnal__artikel h4 { margin-bottom: .6rem; font-size: .875rem; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .6); }
.jurnal__artikel li + li { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.jurnal__artikel a {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
.jurnal__artikel a:hover { text-decoration: underline; text-decoration-color: var(--kunyit); text-underline-offset: 3px; }
.jurnal__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }

/* ---------- Kontak ---------- */
.kontak {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  background: var(--nila);
  color: var(--putih);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.kontak::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -15%;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 165, 38, .18), rgba(224, 165, 38, 0) 65%);
}
.kontak h2 { color: var(--putih); }
.kontak__info .lead { color: rgba(255, 255, 255, .82); max-width: 40ch; margin-bottom: 2.25rem; }

.kontak__list { margin: 0; }
.kontak__list > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.kontak__list dt { color: rgba(255, 255, 255, .62); font-size: .9375rem; }
.kontak__list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kontak__list a { text-decoration-color: var(--kunyit); text-underline-offset: 3px; }
.kontak__list a:not([href]) { text-decoration: none; }
.sosial { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

.form {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--putih);
  color: var(--tinta);
}
.form h3 { font-size: 1.375rem; color: var(--nila); margin-bottom: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .9375rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem .95rem;
  border: 1px solid #CDD1DC;
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  font-size: 1rem;
  color: var(--tinta);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 0; border-color: var(--nila); background: var(--putih); }
.field [aria-invalid="true"] { border-color: var(--mengkudu); }
.form__error {
  margin: 0 0 1rem;
  padding: .75rem .95rem;
  border-radius: 12px;
  background: #FBEDEB;
  color: var(--mengkudu);
  font-size: .9375rem;
  font-weight: 600;
}
.form__note { margin: .85rem 0 0; font-size: .875rem; color: var(--batu); text-align: center; }

.peta { grid-column: 1 / -1; }
.peta iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: var(--r-lg); }

/* ---------- Footer ---------- */
.footer { background: var(--nila-900); color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 3.5rem 2.5rem;
}
.footer h2 { margin-bottom: .85rem; font-size: .9375rem; font-weight: 700; letter-spacing: 0; color: var(--putih); }
.footer__brand { display: flex; align-items: flex-start; gap: .875rem; }
.footer__brand .brand__mark { color: var(--putih); }
.footer__brand p { line-height: 1.5; }
.footer__brand strong { color: var(--putih); font-size: 1.0625rem; }
.footer ul { display: grid; gap: .45rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--putih); text-decoration: underline; text-decoration-color: var(--kunyit); text-underline-offset: 3px; }
.footer__copy { padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 3.5rem 4.5rem;
  border: 0;
  background: rgba(10, 15, 33, .95);
  color: var(--putih);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  max-width: 100%;
  max-height: 100%;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  width: auto;
  border-radius: var(--r-md);
  object-fit: contain;
}
.lightbox figcaption { max-width: 60ch; text-align: center; font-size: .9375rem; color: rgba(255, 255, 255, .85); }
.lightbox__btn,
.lightbox__close {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--putih);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover,
.lightbox__close:hover { background: rgba(255, 255, 255, .16); }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 1rem; right: 1rem; }

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jurnal-list { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--putih);
    color: var(--tinta);
    border-bottom: 1px solid var(--garis);
    box-shadow: 0 16px 30px rgba(17, 25, 54, .12);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: .15rem; }
  .nav ul a { display: block; padding: .8rem 1rem; border-radius: 12px; }
  .nav ul a:hover,
  .header.is-scrolled .nav ul a:hover { background: var(--bg); }
  .nav ul a.is-active,
  .header.is-scrolled .nav ul a.is-active { background: var(--nila-50); color: var(--nila); }

  .tentang,
  .pilar,
  .kegiatan__head,
  .kontak { grid-template-columns: minmax(0, 1fr); }

  .hero__bar { flex-direction: column-reverse; align-items: flex-start; gap: .5rem; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand__text small { display: none; }
  .nav-toggle__label { display: none; }
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }

  .hero { min-height: max(100svh, 600px); }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(17, 25, 54, .96) 0%, rgba(17, 25, 54, .8) 45%, rgba(17, 25, 54, .35) 75%, rgba(17, 25, 54, .55) 100%);
  }
  .hero__badge { font-size: .8125rem; }
  .hero__actions .btn { flex: 1 1 auto; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__item--lg { grid-column: auto; }
  .bento__item { min-height: 0; }
  .bento__icon { margin-bottom: 1rem; }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .meta { grid-template-columns: minmax(0, 1fr); }
  .galeri { grid-template-columns: minmax(0, 1fr); }
  .isu { flex-direction: column; align-items: flex-start; }

  .pilar__item { min-height: 340px; }
  .pilar__covers { margin: 1.5rem 1.75rem 0 0; }
  .pilar__covers img { width: 84px; }

  .jurnal__top { grid-template-columns: 92px minmax(0, 1fr); gap: 1.125rem; }
  .jurnal h3 { font-size: 1.5rem; }
  .jurnal__meta > div { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .kontak__list > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .lightbox { padding: 4rem .75rem 5.5rem; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .dot.is-active span::after { transform: scaleX(1); }
  .hero__pause { display: none; }
}
