:root {
  --paper: #EDE9DF;
  --paper-alt: #E3DDCF;
  --ink: #221E17;
  --ink-soft: #5B5646;
  --ink-faint: #8A8471;
  --red: #AE3527;
  --red-dark: #8A2A1F;
  --khaki: #837755;
  --khaki-line: #C9C0A4;
  --tape: #E4C874;
  --white: #FBF9F4;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --container: 1160px;
  --radius-sm: 3px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.section { padding: 76px 0; }
.section--alt { background: var(--paper-alt); }
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--red);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.section__sub {
  max-width: 56ch;
  color: var(--ink-soft);
  margin: -6px 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--khaki-line);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: var(--ink);
}
.nav__brand-dot { color: var(--red); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
}
.nav__menu a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav__menu a:hover { color: var(--ink); border-color: var(--khaki-line); }
.nav__ig {
  background: var(--ink);
  color: var(--white) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
}
.nav__ig:hover { background: var(--red) !important; border-color: transparent !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--khaki-line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--paper-alt);
    border-left: 3px solid transparent;
  }
  .nav__menu a:hover { border-left-color: var(--red); background: var(--paper); }
  .nav__ig { border-radius: 0 !important; text-align: center; }
}

.hero {
  padding-top: calc(var(--nav-h) + 36px);
  padding-bottom: 56px;
  display: flex;
  align-items: center;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--khaki);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 12vw, 128px);
  line-height: 0.9;
  margin: 0;
  letter-spacing: -0.02em;
}
.hero__meta {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 14px 0 20px;
}
.hero__meta strong { color: var(--ink); font-weight: 700; }
.hero__meta-sep { margin: 0 10px; color: var(--khaki-line); }
.hero__lead {
  font-size: 18px;
  max-width: 42ch;
  color: var(--ink-soft);
  margin: 0 0 30px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero__ig {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

.hero__photo-wrap { display: flex; align-items: center; justify-content: center; }
.hero__photo {
  margin: 0;
  width: 100%;
  max-width: 460px;
  align-self: center;
  transform: rotate(-2.2deg);
  background: var(--white);
  padding: 10px 10px 26px;
  box-shadow: 0 14px 26px -14px rgba(34, 30, 23, 0.35);
}
.hero__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.tape { position: relative; }
.tape::before, .tape::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 26px;
  background: var(--tape);
  opacity: 0.82;
  mix-blend-mode: multiply;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.tape--tl::before { top: -12px; left: -18px; transform: rotate(-40deg); }
.tape--br::after { bottom: -12px; right: -18px; transform: rotate(-40deg); }

@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 20px); }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__photo-wrap { order: -1; }
  .hero__photo { max-width: 360px; transform: rotate(-1.5deg); }
}

.tentang__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.tentang__text p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 50ch;
}
.tentang__text p:first-child { color: var(--ink); }

.stats {
  display: flex;
  margin: 0;
  border-top: 1px solid var(--khaki-line);
}
.stats__item {
  flex: 1;
  padding: 20px 16px 0 0;
  border-right: 1px solid var(--khaki-line);
  text-align: center;
}
.stats__item:last-child { border-right: none; }
.stats__item dt {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--red);
  margin: 0;
}
.stats__item dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 780px) {
  .tentang__grid { grid-template-columns: 1fr; gap: 30px; }
  .stats__item { padding-right: 10px; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--khaki-line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--khaki); }
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: start;
}
.gallery__item {
  grid-column: span 3;
  cursor: pointer;
  border: none;
  background: var(--white);
  padding: 8px 8px 20px;
  box-shadow: 0 10px 20px -14px rgba(34,30,23,0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.gallery__item:nth-child(6n+1) { grid-column: span 4; transform: rotate(-1deg); }
.gallery__item:nth-child(6n+2) { grid-column: span 2; transform: rotate(1.2deg); }
.gallery__item:nth-child(6n+3) { grid-column: span 3; transform: rotate(-0.6deg); }
.gallery__item:nth-child(6n+4) { grid-column: span 3; transform: rotate(0.8deg); }
.gallery__item:nth-child(6n+5) { grid-column: span 2; transform: rotate(-1.2deg); }
.gallery__item:nth-child(6n+6) { grid-column: span 4; transform: rotate(0.6deg); }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  opacity: 0;
  transition: opacity .35s ease;
}
.gallery__item img.is-loaded { opacity: 1; }
.gallery__cap {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 8px;
  line-height: 1.4;
  flex: 1 0 auto;
}
.gallery__item.is-hidden { display: none; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination__btn {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--khaki-line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pagination__btn:hover:not(:disabled) { border-color: var(--khaki); }
.pagination__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.pagination__btn:disabled {
  opacity: .35;
  cursor: default;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery__item,
  .gallery__item:nth-child(6n+1),
  .gallery__item:nth-child(6n+2),
  .gallery__item:nth-child(6n+3),
  .gallery__item:nth-child(6n+4),
  .gallery__item:nth-child(6n+5),
  .gallery__item:nth-child(6n+6) {
    grid-column: span 1;
    transform: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 12, 0.94);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  margin: 0;
  max-width: 900px;
  width: 100%;
}
.lightbox__figure img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #000;
}
.lightbox__figure figcaption {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 10px;
}
.lightbox__close { top: 18px; right: 18px; font-size: 22px; }
.lightbox__nav--prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox__nav--next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox__nav:hover, .lightbox__close:hover { color: var(--tape); }

@media (max-width: 640px) {
  .lightbox__nav--prev { left: 0; }
  .lightbox__nav--next { right: 0; }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
}
.timeline__item {
  position: relative;
  padding: 0 0 40px 32px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--paper);
  z-index: 1;
}
.timeline__item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: -8px;
  width: 2px;
  background: var(--khaki-line);
}
.timeline__item:last-child::after { display: none; }
.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
}
.timeline__text {
  margin: 6px 0 0;
  color: var(--ink-soft);
  max-width: 48ch;
}

.sekolah__card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.sekolah__placeholder {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  border: 1.5px dashed var(--khaki-line);
  padding: 10px 14px;
  display: inline-block;
  margin: 0 0 20px;
}
.sekolah__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.sekolah__fields { margin: 0 0 24px; }
.sekolah__fields > div {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--khaki-line);
}
.sekolah__fields dt {
  font-weight: 700;
  width: 120px;
  flex-shrink: 0;
  font-size: 14px;
}
.sekolah__fields dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.sekolah__photo-placeholder {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, var(--paper-alt), var(--paper-alt) 10px, var(--paper) 10px, var(--paper) 20px);
  border: 1.5px dashed var(--khaki-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.sekolah__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 10px 20px -14px rgba(34,30,23,0.3);
}

@media (max-width: 780px) {
  .sekolah__card { grid-template-columns: 1fr; }
  .sekolah__photo-wrap { order: -1; }
}

.ig { background: var(--ink); color: var(--white); }
.ig .section__eyebrow { color: var(--tape); }
.ig__inner { text-align: center; }
.ig__handle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  margin: 0 0 14px;
}
.ig__sub {
  color: #C9C4B4;
  max-width: 46ch;
  margin: 0 auto 26px;
}

.footer {
  padding: 30px 24px 40px;
  border-top: 1px solid var(--khaki-line);
  max-width: var(--container);
  margin: 0 auto;
}
.footer__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer__brand { font-family: var(--font-display); font-size: 20px; }
.footer__years { color: var(--ink-soft); font-weight: 400; font-family: var(--font-mono); font-size: 13px; }
.footer__inner a { text-decoration: none; color: var(--red); }
.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer__credit {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
