:root {
  --bone: #f1eee8;
  --paper: #faf9f6;
  --ink: #202521;
  --muted: #7a7d76;
  --line: rgba(32, 37, 33, 0.16);
  --sage: #7b8a78;
  --white: #fff;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --content-width: 1380px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
button, a { color: inherit; }
button { font: inherit; cursor: pointer; }
.shell { width: min(100%, var(--content-width)); margin: 0 auto; padding-inline: var(--page-pad); }
.site-header { padding-block: clamp(1.35rem, 3.5vw, 3rem) clamp(4rem, 9vw, 8.5rem); }
.header-rule, .footer-rule { height: 1px; background: var(--line); }
.header-meta, .footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: .75rem; color: var(--muted); font-size: .67rem; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.header-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .42fr); align-items: end; gap: 2rem; margin-top: clamp(4rem, 10vw, 9rem); }
h1 { max-width: 11ch; margin: 0; font-size: clamp(3.7rem, 10vw, 9.9rem); font-weight: 400; letter-spacing: -.075em; line-height: .87; }
h1::after { display: block; width: .42em; height: .42em; margin-top: .48em; border-radius: 50%; background: var(--sage); content: ""; }
.intro-note { max-width: 18rem; margin: 0 0 .35rem auto; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.35rem); letter-spacing: -.02em; line-height: 1.25; }
.intro-note::before { display: block; width: 2rem; height: 1px; margin-bottom: 1rem; background: var(--sage); content: ""; }
.gallery-section { padding-bottom: clamp(5rem, 11vw, 10.5rem); }
.gallery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .67rem; letter-spacing: .15em; text-transform: uppercase; }
.gallery-heading p { margin: 0; }
.gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.7rem, 6vw, 6rem) clamp(.9rem, 2.4vw, 2.5rem); }
.gallery-card { grid-column: span 4; align-self: start; min-width: 0; opacity: 0; transform: translateY(1.5rem); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.gallery-card.is-visible { opacity: 1; transform: translateY(0); }
.gallery-card.is-wide { grid-column: span 7; }
.gallery-card.is-tall { grid-column: span 5; }
.photo-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: var(--paper); text-align: left; }
.photo-button::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(24, 30, 25, .32)); content: ""; opacity: 0; transition: opacity .45s ease; }
.photo-button img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.001); transition: transform .8s var(--ease-out), filter .8s var(--ease-out); }
.is-wide .photo-button img { aspect-ratio: 16 / 10; }
.is-tall .photo-button img { aspect-ratio: 3 / 4; }
.photo-button:hover img, .photo-button:focus-visible img { transform: scale(1.035); filter: saturate(.92); }
.photo-button:hover::after, .photo-button:focus-visible::after { opacity: 1; }
.photo-hint { position: absolute; z-index: 1; right: 1rem; bottom: .85rem; color: var(--white); font-size: .62rem; letter-spacing: .12em; opacity: 0; transform: translateY(.35rem); transition: opacity .35s ease, transform .35s ease; }
.photo-button:hover .photo-hint, .photo-button:focus-visible .photo-hint { opacity: 1; transform: translateY(0); }
.photo-button:focus-visible, .social-link:focus-visible, .lightbox-close:focus-visible, .lightbox-control:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
.photo-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: .85rem; font-size: clamp(.88rem, 1.25vw, 1rem); line-height: 1.25; }
.photo-caption p { margin: 0; }
.photo-number { flex: 0 0 auto; color: var(--sage); font-size: .62rem; letter-spacing: .13em; }
.gallery-loading { grid-column: 1 / -1; padding: 4rem 0; color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer { padding-bottom: 1.5rem; }
.footer-meta { align-items: flex-start; padding-block: 1rem 0; text-transform: none; letter-spacing: .02em; }
.footer-name { font-size: .82rem; letter-spacing: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .9rem 1.5rem; }
.social-link { color: var(--muted); text-decoration: none; transition: color .25s ease; }
.social-link:hover { color: var(--ink); }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(22, 26, 23, .94); animation: lightbox-in .3s ease both; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; width: min(100%, 1200px); height: min(100%, 840px); gap: 1rem; }
.lightbox-image-wrap { position: relative; grid-row: 1 / -1; display: grid; min-width: 0; min-height: 0; place-items: center; overflow: hidden; }
.lightbox-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; animation: image-in .35s var(--ease-out) both; }
@keyframes image-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.lightbox-side { display: flex; width: clamp(8.5rem, 15vw, 12rem); flex-direction: column; justify-content: flex-end; gap: .8rem; padding-bottom: .15rem; color: var(--white); }
.lightbox-caption { margin: 0; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.2; }
.lightbox-count { margin: 0; color: #adb8a9; font-size: .65rem; letter-spacing: .14em; }
.lightbox-close, .lightbox-control { border: 0; background: transparent; color: var(--white); }
.lightbox-close { position: absolute; z-index: 1; top: 0; right: 0; display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; font-size: 1.3rem; line-height: 1; transition: background .25s ease, border-color .25s ease; }
.lightbox-close:hover, .lightbox-control:hover { border-color: var(--white); background: rgba(255,255,255,.13); }
.lightbox-controls { display: flex; gap: .6rem; }
.lightbox-control { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; font-size: 1.15rem; transition: background .25s ease, border-color .25s ease; }
@media (max-width: 800px) {
  .header-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-note { margin-left: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem .8rem; }
  .gallery-card, .gallery-card.is-wide, .gallery-card.is-tall { grid-column: span 1; }
  .gallery-card:nth-child(5n + 1) { grid-column: span 2; }
  .gallery-card:nth-child(5n + 1) .photo-button img { aspect-ratio: 16 / 10; }
  .lightbox-panel { display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: center; }
  .lightbox-image-wrap { flex: 1 1 auto; }
  .lightbox-side { width: 100%; padding: 0 .25rem; }
  .lightbox-close { top: 0; right: 0; }
}
@media (max-width: 520px) {
  .site-header { padding-bottom: 4.5rem; }
  .header-meta, .footer-meta { font-size: .59rem; }
  .gallery-heading { margin-bottom: .85rem; }
  .gallery { gap: 2.8rem .65rem; }
  .photo-caption { display: block; padding-top: .65rem; }
  .photo-number { display: block; margin-top: .35rem; }
  .footer-meta { display: block; }
  .footer-links { justify-content: flex-start; margin-top: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

/* Header: pengantar + foto unggulan */
h1 { font-size: clamp(3.4rem, 8.2vw, 8rem); }
.header-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 7vw, 6rem); }
.intro-copy { min-width: 0; }
.intro-copy .intro-note { max-width: 24rem; margin: clamp(1.8rem, 3vw, 2.6rem) 0 0; }
.intro-lede { max-width: 28rem; margin: 1.1rem 0 0; font-size: clamp(.95rem, 1.25vw, 1.05rem); line-height: 1.6; }
.intro-more { display: inline-block; margin-top: 1.6rem; padding-bottom: .25rem; border-bottom: 1px solid var(--sage); color: var(--ink); font-size: .67rem; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; }
.intro-more:hover, .intro-more:focus-visible { border-bottom-color: var(--ink); }
.featured { width: fit-content; max-width: min(100%, 34rem); margin: 0 0 0 auto; }
.featured[hidden] { display: none; }
.featured-button { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: var(--paper); cursor: zoom-in; }
.featured-button img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(78vh, 44rem); margin: 0 auto; transition: transform .8s var(--ease-out); }
.featured-button:hover img, .featured-button:focus-visible img { transform: scale(1.02); }
.featured-button:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
.featured-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: .85rem; font-size: clamp(.88rem, 1.25vw, 1rem); line-height: 1.25; }
.featured-caption p { margin: 0; }
.featured-caption span { flex: 0 0 auto; color: var(--sage); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
@media (max-width: 860px) {
  .header-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .featured { width: 100%; max-width: 100%; margin: 0; }
  .featured-button img { max-height: 80vh; }
}
