/* ===== Tema: editorial monokrom ===== */
/* Hitam-putih supaya foto (yang juga grayscale) menjadi satu-satunya sumber nuansa.
   Aksen tunggal: blok terbalik hitam/putih pada elemen aktif (filter, daftar layanan). */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --paper-2: #f2f2f2;
  --mute: #6b6b6b;      /* teks sekunder di atas putih, 5.3:1 */
  --mute-dark: #9a9a9a; /* teks sekunder di atas hitam, 7.0:1 */
  --rule: #d9d9d9;      /* garis pemisah dekoratif, bukan teks */
  /* Inter Tight: grotesk rapat yang paling dekat dengan gaya Helvetica referensi editorial, gratis di Google Fonts */
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a, button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.container { width: min(1320px, 100% - clamp(32px, 6vw, 96px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ===== Nama raksasa (hero & footer) ===== */
/* SVG + textLength agar nama selalu tepat selebar kontainer di layar mana pun, tanpa overflow */
.giant { line-height: 0; }
.giant-svg { display: block; width: 100%; height: auto; overflow: visible; }
.giant-svg text {
  font-family: var(--sans); font-size: 210px; font-weight: 600;
  letter-spacing: -.04em; fill: currentColor;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  color: var(--paper);
  transition: background-color .3s ease;
}
.navbar.scrolled, .navbar.menu-open, .navbar.solid { background: var(--ink); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
/* Logo monogram berwarna putih: navbar selalu gelap (di atas hero atau berlatar hitam saat scroll) */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 30px; width: auto; }
.nav-menu { display: flex; gap: 2rem; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .9rem;
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: text-decoration-color .3s;
}
.nav-link:hover, .nav-link.active { text-decoration-color: currentColor; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: none; border: 0; color: inherit;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px; background: currentColor;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  min-height: min(100svh, 920px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
}
/* Bayangan atas cukup pekat agar teks putih kecil tetap >= 4.5:1 di atas foto seterang apa pun */
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.2) 100%);
}
.hero-inner { position: relative; padding-top: calc(var(--nav-h) + 1.5rem); }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 1.4rem; padding-top: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .5);
  font-size: .85rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}
.hero-meta p:last-child { text-align: right; }

/* ===== Section ===== */
.section { padding: 120px 0; }
.sec-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem;
  padding-top: 1rem; border-top: 1px solid var(--ink);
  margin-bottom: 3.5rem;
}
.sec-label { grid-column: 1 / 4; font-size: .85rem; color: var(--mute); }
.sec-title {
  grid-column: 4 / 13;
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500;
  line-height: 1.1; letter-spacing: -.02em;
}

/* ===== Portfolio ===== */
.filters { grid-column: 4 / 13; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.filter {
  min-height: 44px; padding: .5rem .9rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule);
  font-family: var(--sans); font-size: .9rem;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--ink); }
.filter:active { background: var(--paper-2); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Grid 12 kolom dengan posisi tak simetris: ritme editorial, foto bergantian besar-kecil dan naik-turun */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5rem; row-gap: 4.5rem;
  align-items: start;
}
.span-4 { grid-column-end: span 4; }
.span-5 { grid-column-end: span 5; }
.span-6 { grid-column-end: span 6; }
.span-7 { grid-column-end: span 7; }
.start-1 { grid-column-start: 1; }
.start-2 { grid-column-start: 2; }
.start-4 { grid-column-start: 4; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }
.drop { margin-top: 7rem; }

.item.hide { display: none; }
.item-open {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--paper-2); color: var(--ink); overflow: hidden;
}
.item img {
  width: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: transform .8s ease;
}
.item.portrait img { aspect-ratio: 3 / 4; }
.item.land img { aspect-ratio: 3 / 2; }
.item-open:hover img, .item-open:focus-visible img { transform: scale(1.03); }
.item figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .7rem; font-size: .85rem;
}
.cap-title { display: block; font-weight: 500; }
.cap-cat { display: block; color: var(--mute); }
.cap-num { color: var(--mute); font-variant-numeric: tabular-nums; }
/* State gagal muat: tampilkan keterangan, bukan kotak kosong */
.item.broken img, .album-item.broken img { visibility: hidden; }
.item.broken .item-open::after, .album-item.broken .album-open::after {
  content: "Foto belum tersedia";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--mute); font-size: .85rem;
}

/* ===== About ===== */
.manifesto {
  font-size: clamp(2.6rem, 7vw, 6.5rem); font-weight: 500;
  line-height: .98; letter-spacing: -.035em;
  margin-bottom: 4.5rem;
}
.about-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5rem; row-gap: 4rem;
  align-items: start;
}
.row-label {
  grid-column: 1 / 4; font-size: .85rem; color: var(--mute);
  padding-top: .8rem; border-top: 1px solid var(--rule);
}
.about-text {
  grid-column: 4 / 9;
  padding-top: .8rem; border-top: 1px solid var(--rule);
}
.about-text p + p { margin-top: 1rem; }
.about-photo { grid-column: 10 / 13; grid-row: 1 / 3; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); background: var(--paper-2); }
.about-badge { margin-top: .7rem; font-size: .85rem; color: var(--mute); }
.about-badge span { color: var(--ink); font-weight: 600; }
.service-list {
  grid-column: 4 / 10; list-style: none;
  padding-top: .5rem; border-top: 1px solid var(--rule);
}
.service-list a {
  display: inline-block;
  font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 500;
  line-height: 1.15; letter-spacing: -.02em;
  padding: 0 .15em; margin-left: -.15em;
  transition: background-color .2s, color .2s;
}
.service-list a:hover, .service-list a:focus-visible { background: var(--ink); color: var(--paper); }
.service-list a:active { background: var(--mute); }

/* ===== Contact ===== */
.contact-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem;
}
/* Garis vertikal tepat di tengah celah antar kolom: celah grid 1.5rem di kiri garis, padding 1.5rem di kanan */
.contact-col + .contact-col { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.contact-col-title { font-size: .85rem; font-weight: 400; color: var(--mute); margin-bottom: 1.2rem; }

.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.info-item { display: flex; gap: .8rem; align-items: flex-start; }
.icon { flex: 0 0 20px; padding-top: .2rem; }
.icon svg { width: 18px; height: 18px; fill: var(--ink); }
.info-item p { font-size: .95rem; overflow-wrap: anywhere; }
.info-item a {
  text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 4px; transition: text-decoration-color .3s;
}
.info-item a:hover { text-decoration-color: var(--ink); }

.contact-follow-text { font-size: .95rem; margin-bottom: 1.2rem; }
.social-links { display: flex; gap: .6rem; }
.social-links a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--ink); color: var(--ink);
  transition: background-color .25s, color .25s;
}
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.social-links a:hover, .social-links a:focus-visible { background: var(--ink); color: var(--paper); }

/* ===== Halaman album ===== */
.project-hero { display: flex; min-height: min(78vh, 760px); min-height: min(78svh, 760px); }
.project-hero[hidden] { display: none; }
/* Gelap di atas untuk navbar, paling gelap di bawah tempat judul dan keterangan */
.project-hero .hero-shade {
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.85) 100%);
}
.project-hero .hero-inner {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 2rem;
}
.project-title {
  font-size: clamp(3rem, 10vw, 9rem); font-weight: 600;
  line-height: .95; letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.project-missing { padding-top: calc(var(--nav-h) + 120px); }

.back-link {
  grid-column: 1 / 4; align-self: start;
  display: inline-flex; align-items: center; min-height: 44px; margin-top: -.6rem;
  font-size: .85rem; color: var(--mute);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: color .25s, text-decoration-color .25s;
}
.back-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.project-summary {
  grid-column: 4 / 11;
  font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500;
  line-height: 1.35; letter-spacing: -.01em;
}

/* Lanskap selebar penuh, potret berpasangan dua kolom */
.album {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; grid-auto-flow: dense;
}
.album-item.land { grid-column: 1 / -1; }
.album-open {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--paper-2); color: var(--ink); overflow: hidden;
}
.album-item img {
  width: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: transform .8s ease;
}
.album-item.portrait img { aspect-ratio: 3 / 4; }
.album-item.land img { aspect-ratio: 3 / 2; }
.album-open:hover img, .album-open:focus-visible img { transform: scale(1.03); }

.project-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: 6rem; padding-top: 1rem; border-top: 1px solid var(--ink);
}
.pn-link { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-height: 44px; }
.pn-next { align-items: flex-end; text-align: right; }
.pn-label { font-size: .85rem; color: var(--mute); }
.pn-title {
  font-size: clamp(1.5rem, 3.4vw, 2.8rem); font-weight: 500;
  line-height: 1.15; letter-spacing: -.02em;
  padding: 0 .15em; margin-inline: -.15em;
  transition: background-color .2s, color .2s;
}
.pn-link:hover .pn-title, .pn-link:focus-visible .pn-title { background: var(--ink); color: var(--paper); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--paper); padding: 2rem 0; }
.footer-top { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center; }
.footer-top p { font-size: .85rem; color: var(--mute-dark); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, .97);
  color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  padding: 16px;
}
/* visibility berubah seketika saat dibuka, supaya tombol Tutup bisa langsung menerima fokus keyboard */
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.lightbox img { max-width: min(1100px, 100%); max-height: 80vh; object-fit: contain; filter: grayscale(1); }
.lb-caption { margin-top: 1rem; font-size: .9rem; color: var(--mute-dark); }
.lightbox button {
  position: absolute; min-width: 48px; min-height: 48px;
  background: transparent; border: 0; color: var(--paper);
  font-family: var(--sans); font-size: 1.8rem; line-height: 1;
  transition: opacity .25s;
}
.lightbox button:hover { opacity: .6; }
.lb-close { top: 16px; right: 16px; font-size: 2.4rem !important; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ===== Reveal: hanya untuk foto, supaya perhatian jatuh ke karya ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
/* Breakpoint menu mobile disatukan dengan breakpoint grid (900px) */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .4s ease, visibility .4s;
  }
  .nav-menu.open { max-height: 320px; visibility: visible; }
  .nav-link { padding: .9rem 16px; border-top: 1px solid #262626; }

  .sec-head { grid-template-columns: 1fr; row-gap: .4rem; }
  .sec-label, .sec-title, .filters { grid-column: 1 / -1; }

  /* Galeri satu kolom: foto lanskap penuh, potret 80% dan bergantian kiri-kanan */
  .gallery { grid-template-columns: 1fr; row-gap: 3rem; }
  .gallery .item { grid-column: 1 / -1; margin-top: 0; }
  .item.portrait { width: 80%; }
  .item.portrait:nth-child(4n+3) { justify-self: end; }

  .about-grid { grid-template-columns: 1fr; row-gap: 1rem; }
  .row-label, .about-text, .service-list { grid-column: 1 / -1; }
  .about-text { border-top: 0; padding-top: 0; margin-bottom: 2rem; }
  .about-photo { grid-column: 1 / -1; grid-row: auto; max-width: 360px; margin-bottom: 2rem; }

  .back-link, .project-summary { grid-column: 1 / -1; }
  .back-link { margin-top: -.6rem; margin-bottom: 1rem; }
  .album { grid-template-columns: 1fr; gap: 1rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Saat kolom bertumpuk, pemisahnya jadi garis horizontal */
  .contact-col + .contact-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 2.5rem; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero { min-height: 72vh; min-height: 72svh; }
  .hero-meta { grid-template-columns: 1fr; gap: .2rem; }
  .hero-meta p:last-child { text-align: left; }
  .manifesto { margin-bottom: 3rem; }
}

/* ===== Kurangi gerakan bila pengguna memintanya ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .item-open:hover img, .item-open:focus-visible img,
  .album-open:hover img, .album-open:focus-visible img { transform: none; }
}
