/* =========================================================
   Sangdesain: monograf studio
   Putih kertas + tinta hitam, satu aksen emas dari logo.
   Alasan tiap keputusan: lihat DESIGN.md.
   ========================================================= */

:root {
  --paper: #f4f2ee;
  --paper-2: #ebe8e2;
  --ink: #111111;
  --ink-soft: #3a3833;
  --muted: #5e5b55;          /* 6.05:1 di atas paper */
  --rule: rgba(17, 17, 17, 0.14);
  --rule-strong: rgba(17, 17, 17, 0.4);
  --gold: #c99909;           /* warna logo; dekoratif di terang, teks hanya di latar gelap (7.35:1) */
  --gold-ink: #7a5d00;       /* emas untuk teks di latar terang (5.54:1) */
  --night: #0f0f0d;
  --night-muted: #a7a49c;    /* 7.71:1 di atas night */

  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --shell: 1440px;
  --gutter: clamp(1rem, 3.2vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.1rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
/* atribut hidden harus menang atas display milik komponen (mis. .lightbox__nav flex) */
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

a[href], button, summary, label[for] { cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-night :focus-visible, .lightbox :focus-visible { outline-color: var(--gold); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.2rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- tipografi ---------- */

/* Judul: Archivo dipersempit, huruf kapital. Seperti papan nama di gambar kerja arsitek. */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; }

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* dipakai juga oleh 404.html */
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
h1 em { font-family: var(--font-serif); font-weight: 400; color: var(--gold-ink); }

/* ---------- tombol & tautan ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.4rem;
  border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover, .btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px); }

.link {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.2rem;
  transition: color 0.2s var(--ease);
}
.link:hover { color: var(--gold-ink); }

/* ---------- topbar ---------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar { background: var(--paper); border-bottom-color: var(--rule); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.mark { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.mark__logo { width: 46px; height: auto; flex: none; }
.mark__word {
  font-family: var(--font-display); font-weight: 800; font-variation-settings: 'wdth' 75;
  text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1;
}

.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding-block: 0.4rem; border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }

.menu-toggle { display: none; }
.nav .nav__mobile-only { display: none; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  min-height: 100svh;
  padding-top: 72px; /* topbar tetap, foto mulai di bawahnya supaya menu tidak menumpuk di atas foto */
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem;
  padding: clamp(2rem, 6vh, 4rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  /* rata kiri dengan logo di topbar (shell 1440px di tengah) */
  padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
}
/* Dibatasi lebar DAN tinggi layar, supaya tiga baris judul selalu muat di layar laptop pendek. */
.hero__title { font-size: clamp(3rem, min(6.4vw, 15svh), 9.5rem); }
.hero__line { white-space: nowrap; }
.hero__title .serif { display: block; font-size: 0.62em; line-height: 1; margin-top: 0.12em; color: var(--gold-ink); }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__line:last-child { padding-bottom: 0.2em; margin-bottom: -0.16em; }
.hero__line > span { display: block; }
.hero__lead { max-width: 40ch; color: var(--ink-soft); font-size: clamp(1rem, 0.6vw + 0.9rem, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__media { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Gradasi gelap di bawah caption: foto Labuan terang di beberapa titik (2.56:1 tanpa ini). */
.hero__media::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to top, rgba(15, 15, 13, 0.72), rgba(15, 15, 13, 0));
  pointer-events: none;
}
.hero__caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; z-index: 1;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* ---------- indeks karya ---------- */

.index { border-block: 1px solid var(--ink); }
.index__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.index__list li + li { border-left: 1px solid var(--rule); }
.index__list a {
  display: grid; gap: 0.35rem; padding: 1rem 0.9rem 1.1rem; min-height: 100%;
  text-decoration: none; transition: background-color 0.2s var(--ease);
}
.index__list a:hover { background: var(--paper-2); }
.index__no { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.index__name { font-weight: 700; font-variation-settings: 'wdth' 75; text-transform: uppercase; font-size: 0.95rem; line-height: 1.1; }

/* ---------- plate (satu karya = satu halaman monograf) ---------- */

.works { padding-block: clamp(3rem, 8vw, 7rem) 0; }
.works__head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 4rem); }
.works__title { font-size: clamp(3rem, 9vw, 9rem); }

.plate { padding-block: clamp(2.5rem, 6vw, 5.5rem); scroll-margin-top: 72px; }
.plate__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 1rem;
  padding-bottom: 1rem; margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--ink);
}
.plate__no { font-family: var(--font-mono); font-size: 0.85rem; }
.plate__title { font-size: clamp(2rem, 4.6vw, 4.6rem); }
.plate__cat { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: right; }

.plate__body { display: grid; gap: clamp(1rem, 2.5vw, 2.5rem); align-items: end; }
.plate__note { display: grid; gap: 1rem; align-content: end; max-width: 36ch; }
.plate__note p { color: var(--ink-soft); }
.plate__credit { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); }

.shot {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2);
  overflow: hidden; cursor: zoom-in; position: relative;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot::after {
  content: 'Perbesar'; position: absolute; right: 0.8rem; bottom: 0.8rem;
  padding: 0.35rem 0.6rem; background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }

/* Variasi tata letak, bergantian supaya ritmenya seperti buku, bukan grid template. */
.plate--wide .shot { aspect-ratio: 21 / 9; }
.plate--wide .shot img { object-position: 50% 58%; }
.plate--wide .plate__body { grid-template-columns: minmax(0, 1fr); }
.plate--wide .plate__note { max-width: 60ch; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }

.plate--left .plate__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.plate--left .shot { aspect-ratio: 4 / 5; max-height: 92svh; }

.plate--right .plate__body { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.plate--right .plate__note { order: -1; }
.plate--right .shot { aspect-ratio: 5 / 4; }
.plate--right .shot img { object-position: 50% 62%; }

.plate--pair .plate__body { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.plate--pair .shot { aspect-ratio: 4 / 5; }
.plate--pair figure { margin: 0; display: grid; gap: 0.8rem; }
.plate--pair figcaption { display: flex; justify-content: space-between; gap: 1rem; }
.plate--pair figcaption .plate__sub { font-weight: 700; font-variation-settings: 'wdth' 75; text-transform: uppercase; }

/* Karya grafis tampil di bidang hitam, seperti halaman sisipan. */
.plate--night { background: var(--night); color: #f4f2ee; padding-inline: 0; }
.plate--night .plate__head { border-bottom-color: rgba(244, 242, 238, 0.5); }
.plate--night .plate__cat, .plate--night .plate__credit { color: var(--night-muted); }
.plate--night .plate__note p { color: #d9d6cf; }
.plate--night .plate__body { grid-template-columns: minmax(0, 1fr) minmax(0, 420px) minmax(0, 1fr); }
.plate--night .shot { aspect-ratio: 4 / 5; background: #1a1a17; }
.plate--night .link:hover { color: var(--gold); }

/* ---------- bidang ---------- */

.fields { padding-block: clamp(4rem, 9vw, 8rem); }
.fields__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem); }
.fields__title { font-size: clamp(2.8rem, 7vw, 7rem); }
.fields__head p { color: var(--ink-soft); max-width: 44ch; justify-self: end; }
.fields__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fields__list li { padding: 1.2rem 1.2rem 0 0; display: grid; gap: 0.7rem; align-content: start; }
.fields__list li + li { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.fields__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold-ink); }
.fields__list h3 { font-size: 1.35rem; font-variation-settings: 'wdth' 75; text-transform: uppercase; line-height: 1.05; }
.fields__list p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- proses (malam) ---------- */

.process { background: var(--night); color: #f4f2ee; padding-block: clamp(4rem, 9vw, 8rem); }
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
.process__title { font-size: clamp(2.6rem, 6vw, 6rem); margin-bottom: 2rem; }
.process__title .serif { color: var(--gold); }
.process__photo { margin: 0; max-width: 440px; }
.process__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.process__photo figcaption { margin-top: 0.8rem; color: var(--night-muted); }
.steps { list-style: none; margin: 0; padding: 0; align-self: start; }
.steps li {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.4rem 1.2rem;
  padding-block: 1.6rem; border-top: 1px solid rgba(244, 242, 238, 0.22);
}
.steps__num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold); grid-row: span 2; padding-top: 0.3rem; }
.steps h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-variation-settings: 'wdth' 75; text-transform: uppercase; line-height: 1.05; }
.steps p { color: var(--night-muted); max-width: 52ch; }
.process .label { color: var(--night-muted); }

/* ---------- studio ---------- */

.studio { padding-block: clamp(4rem, 9vw, 8rem); }
.studio__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.studio__quote { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.08; margin-bottom: 2rem; }
.studio__text { display: grid; gap: 1rem; max-width: 58ch; color: var(--ink-soft); }
.studio__data { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.studio__data div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.3rem; }
.studio__data dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.studio__data dd { margin: 0; }
.studio__data a { color: var(--gold-ink); }

.sheet { margin: 0; border: 1px solid var(--rule-strong); background: var(--paper-2); padding: clamp(0.8rem, 1.6vw, 1.3rem); color: var(--ink); }
.sheet svg { width: 100%; height: auto; }
.sheet figcaption { margin-top: 0.8rem; }

/* ---------- kontak ---------- */

.contact { border-top: 1px solid var(--ink); padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem); }
.contact__title { font-size: clamp(3rem, 9.5vw, 10rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.contact__title .serif { color: var(--gold-ink); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.contact__grid > p { color: var(--ink-soft); max-width: 44ch; }
.contact__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.contact__links a, .contact__links div {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
  padding-block: 1rem; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.contact__links a:hover .contact__value { color: var(--gold-ink); }
.contact__value { font-weight: 700; font-variation-settings: 'wdth' 75; font-size: clamp(1.15rem, 1.8vw, 1.6rem); text-transform: none; overflow-wrap: anywhere; transition: color 0.2s var(--ease); }
.contact__arrow { font-family: var(--font-mono); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--ink); padding-block: 1.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__legal { font-size: 0.85rem; color: var(--muted); }



/* ---------- bab (chapter) ----------
   Tiap bidang = satu bab: pembuka yang menempel di layar, lalu karya-karyanya.
   Bab 01 Arsitektur: kertas putih + motif lembar gambar kerja. */

.chapter { position: relative; }
.chapter__open { position: relative; height: 165svh; }
.chapter__sticky {
  position: sticky; top: 72px; min-height: calc(100svh - 72px);
  display: grid; align-items: center; overflow: hidden;
}
.chapter__inner { display: grid; gap: clamp(1rem, 2vw, 1.6rem); will-change: transform, opacity; }
.chapter__count { color: var(--muted); }
.chapter__title { font-size: clamp(4rem, 16.5vw, 19rem); line-height: 0.82; padding-bottom: 0.04em; }
.chapter__dim { width: 100%; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
/* tanpa vector-effect: non-scaling-stroke merusak dash pathLength=1 sehingga garis berhenti di tengah */
.chapter__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 2rem; align-items: end; }
.chapter__lede { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.1; color: var(--gold-ink); }
.chapter__text { color: var(--ink-soft); max-width: 46ch; }
.chapter__more { padding-bottom: clamp(3rem, 6vw, 5rem); color: var(--ink-soft); }

/* Arsitektur: garis kolom tipis seperti bingkai lembar gambar kerja (12 kolom, 6% tinta). */
.chapter[data-bab='arsitektur'] .chapter__sticky {
  background-image: repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.06) 0 1px, transparent 1px calc(100% / 12));
}

/* Tanda potong di sudut foto, seperti lembar cetak gambar kerja. */
.sheetframe { position: relative; padding: 14px; }
.sheetframe::before, .sheetframe::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  --m: linear-gradient(var(--ink), var(--ink));
}
.sheetframe::before {
  background: var(--m) top left / 22px 1px no-repeat, var(--m) top left / 1px 22px no-repeat,
              var(--m) top right / 22px 1px no-repeat, var(--m) top right / 1px 22px no-repeat;
}
.sheetframe::after {
  background: var(--m) bottom left / 22px 1px no-repeat, var(--m) bottom left / 1px 22px no-repeat,
              var(--m) bottom right / 22px 1px no-repeat, var(--m) bottom right / 1px 22px no-repeat;
}
.plate--sheet .plate__cat { color: var(--ink); }

/* Halaman detail karya arsitektur memakai bingkai yang sama. */
[data-bab='arsitektur'] .project-lead .shot { outline: 1px solid var(--rule-strong); outline-offset: 12px; }

@media (max-width: 860px) {
  .chapter__open { height: 130svh; }
  .chapter__meta { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .chapter__title { font-size: clamp(3.4rem, 18vw, 8rem); }
}

/* ---------- halaman detail karya ---------- */

.project-head { padding-top: calc(72px + clamp(2rem, 6vw, 4.5rem)); }
.project-head__crumb { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.project-head__crumb a { text-decoration: none; border-bottom: 1px solid currentColor; }
.project-head__crumb a:hover { color: var(--ink); }
.project-head__title { font-size: clamp(3rem, 10vw, 10rem); padding-bottom: 0.08em; }
.project-head__meta {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--ink);
}
.project-head__meta div { padding: 1rem 1rem 1rem 0; display: grid; gap: 0.3rem; border-bottom: 1px solid var(--rule); }
.project-head__meta dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.project-head__meta dd { margin: 0; }
.project-head__meta a { color: var(--gold-ink); }

.project-lead { padding-block: clamp(1.5rem, 4vw, 3rem); }
.project-lead .shot { aspect-ratio: 4 / 5; max-height: 88svh; width: auto; max-width: 100%; margin-inline: auto; }
.project-lead--night { background: var(--night); }
.project-lead--night .shot { background: #1a1a17; }

.project-body { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
.project-body__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.project-body__summary { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.15; }
.project-body__aside { display: grid; gap: 1rem; justify-items: start; }

.project-gallery { padding-bottom: clamp(3rem, 7vw, 6rem); }
.project-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.8rem); }
.project-gallery__grid .shot { aspect-ratio: 4 / 5; }

.project-next { border-top: 1px solid var(--ink); }
.project-next__link {
  display: grid; grid-template-columns: minmax(0, 1fr) 160px; grid-template-rows: auto 1fr; gap: 0.6rem 2rem; align-items: end;
  padding-block: clamp(2.5rem, 6vw, 5rem); text-decoration: none;
}
.project-next__link .label { grid-column: 1; }
.project-next__title { grid-column: 1; font-size: clamp(2.6rem, 8vw, 8rem); transition: color 0.2s var(--ease); }
.project-next__link img { grid-column: 2; grid-row: 1 / span 2; width: 160px; aspect-ratio: 4 / 5; object-fit: cover; }
.project-next__link:hover .project-next__title { color: var(--gold-ink); }

.plate__more { justify-self: start; }

@media (max-width: 860px) {
  .project-body__grid { grid-template-columns: minmax(0, 1fr); }
  .project-next__link { grid-template-columns: minmax(0, 1fr) 96px; }
  .project-next__link img { width: 96px; }
}
@media (max-width: 560px) {
  .project-gallery__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- lightbox ---------- */

.lightbox {
  width: min(1240px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; background: var(--night); color: #f4f2ee;
}
.lightbox::backdrop { background: rgba(15, 15, 13, 0.9); }
.lightbox__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.lightbox__figure { margin: 0; background: #1a1a17; }
.lightbox__figure img { width: 100%; height: auto; max-height: calc(100dvh - 2rem); object-fit: contain; }
.lightbox__side { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding: 4.5rem clamp(1.4rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.6rem); }
.lightbox__count, .lightbox .plate__cat { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--night-muted); text-transform: uppercase; }
.lightbox__title { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.lightbox__credit { color: var(--night-muted); font-family: var(--font-mono); font-size: 0.78rem; }
.lightbox__credit:empty { display: none; }
.lightbox .btn { border-color: #f4f2ee; color: #f4f2ee; }
.lightbox .btn:hover { background: #f4f2ee; color: var(--night); }
.lightbox__nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 1rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
html:has(.lightbox[open]) { overflow: hidden; }

/* ---------- animasi (anime.js) ----------
   Keadaan awal hanya berlaku di html.anim (dipasang di <head> bila gerak tidak dikurangi).
   main.js melepas kelas itu bila anime.js tidak termuat. */
.anim .hero__line > span { transform: translateY(105%); }
.anim .hero__media { clip-path: inset(0 0 0 100%); }
.anim .hero__lead, .anim .hero__actions { opacity: 0; }
.anim .shot { clip-path: inset(100% 0 0 0); }
.anim .shot img { transform: scale(1.14); }
.anim [data-draw='main'] path,
.anim [data-draw='dim'] path,
.anim [data-draw='compass'] > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim [data-draw='label'] text { opacity: 0; }
.anim [data-chapter-dim] path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim [data-chapter-title] { opacity: 0; transform: translateY(18%); }
.anim [data-chapter-meta] { opacity: 0; }

/* reveal teks ringan (CSS) */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsif ---------- */

@media (max-width: 1100px) {
  .index__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .index__list li { border-bottom: 1px solid var(--rule); }
  .index__list li:nth-child(4n + 1) { border-left: 0; }
  .fields__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields__list li, .fields__list li + li { padding: 1.2rem 1.2rem 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .studio__grid { grid-template-columns: minmax(0, 1fr); }
  .studio .sheet { max-width: 520px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__copy { padding-top: 2.5rem; }
  .hero__title { font-size: clamp(2.8rem, 13vw, 6rem); }
  .hero { padding-top: 64px; }
  .hero__media { aspect-ratio: 4 / 5; max-height: 80svh; }
  .plate--left .plate__body, .plate--right .plate__body,
  .plate--night .plate__body, .process__grid, .fields__head, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .plate--right .plate__note { order: 0; }
  .plate--right .shot { aspect-ratio: 4 / 5; }
  .plate--wide .shot { aspect-ratio: 4 / 3; }
  .plate--wide .plate__note { grid-template-columns: minmax(0, 1fr); }
  .plate--night .plate__body { padding-inline: 0; }
  .fields__head p { justify-self: start; }
  .lightbox__inner { grid-template-columns: minmax(0, 1fr); }
  .lightbox__figure img { max-height: 60dvh; }
  .lightbox__side { padding-top: 1.4rem; }
  .process__photo { max-width: 420px; }
}

@media (max-width: 760px) {
  .topbar__inner { min-height: 64px; position: relative; }
  .topbar { background: rgba(244, 242, 238, 0.96); border-bottom-color: var(--rule); }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
    border: 1px solid var(--ink); background: transparent; color: var(--ink);
    font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .menu-toggle[aria-expanded='true'], .menu-toggle:hover { background: var(--ink); color: var(--paper); }
  .topbar__cta { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 0.4rem var(--gutter) 1rem;
    background: var(--paper); border-bottom: 1px solid var(--ink);
  }
  .nav[data-open='true'] { display: flex; }
  .nav a, .nav .nav__mobile-only { display: flex; align-items: center; min-height: 52px; font-size: 0.9rem; border-bottom: 1px solid var(--rule); }
  .index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index__list li:nth-child(4n + 1) { border-left: 1px solid var(--rule); }
  .index__list li:nth-child(2n + 1) { border-left: 0; }
  .plate__head { grid-template-columns: auto minmax(0, 1fr); }
  .plate__cat { grid-column: 2; text-align: left; }
  .plate--pair .plate__body { grid-template-columns: minmax(0, 1fr); }
  .fields__list { grid-template-columns: minmax(0, 1fr); }
  .studio__data { grid-template-columns: minmax(0, 1fr); }
  .contact__links a, .contact__links div { grid-template-columns: minmax(0, 1fr) auto; }
  .contact__links .label { grid-column: 1 / -1; }
  .steps li { grid-template-columns: 3rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .shot img, .btn, .link, .contact__value { transition: none; }
}

/* judul plate sebagai tautan ke halaman detail */
.plate__title a, .plate__sub { text-decoration: none; color: inherit; transition: color 0.2s var(--ease); }
.plate__title a:hover, .plate__sub:hover { color: var(--gold-ink); }
.plate--night .plate__title a:hover { color: var(--gold); }
.plate__note { justify-items: start; }
.plate--wide .plate__note { grid-template-columns: minmax(0, 1fr) auto auto; gap: 1.5rem; }
@media (max-width: 860px) { .plate--wide .plate__note { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }

/* Keadaan "ditekan" untuk tautan teks (tombol sudah punya .btn:active). */
.link:active, .contact__links a:active, .index__list a:active, .plate__title a:active,
.plate__sub:active, .project-next__link:active, .nav a:active { opacity: 0.6; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - 140px); display: grid; align-content: center; padding-block: calc(72px + 3rem) 4rem; }
.notfound .shell { display: grid; gap: 1.5rem; justify-items: start; }
.notfound__title { font-size: clamp(3rem, 10vw, 9rem); }
.notfound__title .serif { display: block; color: var(--gold-ink); font-size: 0.7em; line-height: 1.05; }
.notfound__text { color: var(--ink-soft); max-width: 44ch; }
/* 404 tidak memuat main.js: menu HP tidak ada, jadi dua tautannya tetap tampil. */
@media (max-width: 760px) {
  .nav--static { display: flex; position: static; flex-direction: row; padding: 0; border: 0; background: none; gap: 1rem; }
  .nav--static a { min-height: 44px; border-bottom: 0; }
}
