/* =====================================================================
   Hendry Herlambang — portfolio
   Dark charcoal + lime accent. Satu halaman, responsif.
   ===================================================================== */


:root {
  --bg: #000000;
  --surface: #1b1b1b;
  --surface-2: #242424;
  --line: #2c2c2c;
  --text: #ffffff;
  --muted: #929292;
  --accent: #c5f36a;
  --accent-ink: #111111;
  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
body.no-scroll { overflow: hidden; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgba(0,0,0,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(0,0,0,.88); }
.logo { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; font-size: 14px; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .2s; padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lang button { padding: 4px 2px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.lang button[aria-pressed="true"] { color: var(--accent); }
.menu-btn { display: none; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .lang { order: 3; }
  .nav { gap: 14px; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0; flex-direction: column; gap: 0;
    background: rgba(0,0,0,.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--accent); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(40px, 8vh, 96px);
  background:
    radial-gradient(900px 500px at 78% 22%, rgba(197,243,106,.10), transparent 60%),
    radial-gradient(700px 420px at 12% 90%, rgba(255,255,255,.05), transparent 60%),
    var(--bg);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.92) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.kicker { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-title {
  margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.8rem, 11.5vw, 10.5rem); line-height: .92; letter-spacing: -.02em;
}
.hero-title span { display: block; }
.hero-sub { margin: 28px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: #d8d8d8; max-width: 34ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid transparent;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #d4ff7d; }
.btn-ghost { border-color: #3a3a3a; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(64px, 11vw, 140px) 0 0; }
.section:last-of-type { padding-bottom: clamp(64px, 11vw, 140px); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.sec-num { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.sec-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }

/* ---------- FILTERS ---------- */
.filters { display: flex; gap: 8px; margin: 0 0 28px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  font-size: 14px; font-weight: 500; transition: all .2s; white-space: nowrap;
}
.filters button:hover { color: var(--text); border-color: #444; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- GRID (graphic, 3D/VM) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { display: block; text-align: left; width: 100%; }
.card[hidden] { display: none; }
.thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.thumb img { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.thumb img.fit-cover { object-fit: cover; }
.thumb img.fit-contain { object-fit: contain; padding: 0; }
button.card:hover .thumb { border-color: #4a4a4a; }
button.card:hover .thumb img { transform: scale(1.03); }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px;
  color: #5c5c5c; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    var(--surface);
}
.badge {
  position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.78); color: #d6d6d6; backdrop-filter: blur(6px);
}
.badge.soon { color: var(--accent); }
.multi { position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.78); border-radius: 999px; padding: 4px 9px; color: #d6d6d6; }

/* caption: baris 1 judul (tebal, abu), baris 2 klien (tipis) */
.cap { display: block; padding-top: 14px; text-align: center; text-transform: uppercase; font-size: 12.5px; line-height: 1.45; letter-spacing: .02em; }
.cap b { display: block; font-weight: 700; color: #a9a9a9; }
.cap span { display: block; font-weight: 400; color: var(--muted); }
.cap-lb { padding: 0; }

/* ---------- MASONRY (video) ---------- */
.masonry { columns: 3 300px; column-gap: clamp(16px, 2vw, 28px); }
.masonry .card { break-inside: avoid; margin-bottom: clamp(16px, 2vw, 28px); }
.masonry .thumb { aspect-ratio: var(--ratio, 16 / 9); background: #000; }
.masonry .thumb img { object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); transition: background .2s, transform .2s;
  font-size: 18px; padding-left: 3px;
}
button.card:hover .play { background: var(--accent); color: var(--accent-ink); transform: translate(-50%, -50%) scale(1.08); }
.card.is-empty { cursor: default; }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 39% 1fr; gap: 0; align-items: center; }
.about-photo { width: 100%; max-width: 443px; height: auto; aspect-ratio: 1055 / 898; justify-self: end; margin-right: 5px; background: transparent; }
.about-text { margin: 0; font-size: clamp(1.1rem, 1.9vw, 1.5rem); line-height: 1.5; color: var(--text); max-width: 46ch; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: none; justify-self: stretch; margin-right: 0; }
  .about-text { line-height: 1.6; }
}

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-lead { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; }
.contact-sub { margin: 16px 0 28px; color: var(--muted); max-width: 40ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.status { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; color: var(--accent); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.form input, .form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; color: var(--text); font: inherit; font-size: 16px;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.footer a { font-size: 18px; color: var(--text); }

/* ---------- LIGHTBOX & VIDEO MODAL ---------- */
.lb, .vm {
  position: fixed; inset: 0; z-index: 300; background: rgba(8,8,8,.94);
  display: grid; place-items: center; padding: 56px 16px 24px; overflow-y: auto;
}
.lb-close {
  position: fixed; top: 14px; right: 16px; z-index: 5; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #3a3a3a; background: rgba(0,0,0,.8); font-size: 16px; display: grid; place-items: center;
}
.lb-close:hover { border-color: var(--accent); color: var(--accent); }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #3a3a3a; background: rgba(0,0,0,.8); font-size: 26px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px;
}
.lb-nav:hover { border-color: var(--accent); color: var(--accent); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-body { width: min(1100px, 100%); display: grid; gap: 14px; justify-items: center; }
.lb-stage { display: grid; place-items: center; width: 100%; }
/* gambar tidak pernah diperbesar melebihi ukuran aslinya */
.lb-stage img { width: auto; height: auto; max-width: 100%; max-height: 68vh; border-radius: 6px; background: #000; }
.lb-stage .ph { position: relative; width: min(100%, 640px); aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line); }
.lb-count { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.lb-desc { margin: 0; max-width: 60ch; text-align: center; color: #cfcfcf; font-size: 15px; }
.lb-sources { width: 100%; display: grid; gap: 8px; justify-items: center; }
.lb-sources-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb-sources-imgs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lb-sources-imgs img { max-width: 100%; height: auto; border-radius: 4px; }

.vm-body { width: 100%; display: grid; gap: 14px; justify-items: center; }
.vm-frame {
  --r: 1.7778; width: min(100%, calc(80vh * var(--r))); aspect-ratio: var(--r); background: #000; border-radius: 8px; overflow: hidden;
}
.vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vm-msg { height: 100%; display: grid; place-items: center; color: var(--muted); padding: 24px; text-align: center; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  .thumb img, .play { transition: none !important; }
}
