/* =========================================================
   PORTOFOLIO — style.css
   Ganti warna aksen cukup di --accent
   ========================================================= */
:root {
  --bg: #0E0F0C;
  --surface: #141517;
  --line: #232427;
  --line-2: #2A2B2E;
  --line-3: #34353A;
  --text: #EDEBE6;
  --muted: #A8A69E;
  --faint: #8A8880;
  --accent: #C8F25A;
  --on-accent: #0E0F0C;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(20px, 5.5vw, 80px);
  --gap: 24px;
  --section: clamp(96px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }
h1, h2, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.accent { color: var(--accent); }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 28px; height: 28px; stroke-width: 1.8; }

/* ---------- Typography ---------- */
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.label { font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: var(--accent); }
.body { font-size: 18px; line-height: 1.6; color: var(--muted); }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 560px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; transition: transform .15s, border-color .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--on-accent); min-height: 56px; padding: 0 28px; }
.btn--light { background: var(--text); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line-3); }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; }
.link-accent { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14,15,12,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.nav__links { display: flex; gap: 40px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__social { display: flex; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-3); background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .15s; }
.icon-btn:hover { border-color: var(--text); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 7vw, 104px); display: flex; flex-direction: column; gap: 40px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7.8vw, 112px); line-height: .98; letter-spacing: -0.035em; max-width: 1200px; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

.index { margin-top: 64px; border-top: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 120px minmax(0,1fr) 320px 40px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .2s, color .2s;
}
.index a:hover { padding-left: 12px; color: var(--accent); }
.index__no { font-family: var(--mono); font-size: 14px; color: #6F6E68; }
.index__title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -0.02em; }
.index__cat { color: var(--muted); }
.index .ic { width: 24px; height: 24px; stroke-width: 1.8; }

/* ---------- Project common ---------- */
.project { padding-top: var(--section); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap) 56px; }
.split__text { display: flex; flex-direction: column; gap: 28px; }
.split__media { display: flex; flex-direction: column; gap: var(--gap); }
.head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.head > div { display: flex; flex-direction: column; gap: 24px; }
.head--even { grid-template-columns: 1fr 1fr; }

.facts { border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: #6F6E68; }
.facts dd { text-align: right; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border: 1px solid var(--line-3); border-radius: 999px; font-family: var(--mono); font-size: 13px; color: #CFCDC6; }

/* ---------- Media frames ----------
   Kalau gambar belum ada, frame otomatis jadi placeholder bergaris
   yang menampilkan nama file yang dibutuhkan. */
.frame { position: relative; overflow: hidden; background: var(--surface); }
.frame.rounded { border-radius: 16px; border: 1px solid var(--line-2); }
.frame img, .frame video, .frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.frame img[data-zoom] { cursor: zoom-in; transition: transform .4s; }
.frame:hover img[data-zoom] { transform: scale(1.02); }
.frame.is-missing { background: repeating-linear-gradient(135deg, #17181A 0 14px, #1C1D20 14px 28px); }
.frame.is-missing > img, .frame.is-missing > video { visibility: hidden; }
.frame.is-missing::after {
  content: "[ " attr(data-missing) " ]"; position: absolute; inset: 0; display: grid; place-items: center;
  padding: 16px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--faint);
}

.window { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--surface); }
.window__bar { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line-2); color: var(--muted); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A3B3F; }
.window__url { flex: 1; height: 26px; border-radius: 6px; background: #1E1F22; display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.window__file { font-family: var(--mono); font-size: 12px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--gap); }

.card { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--surface); transition: border-color .15s; }
.card:hover { border-color: #4A4B4F; }
.card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line-2); font-size: 15px; }
.card figcaption span { font-family: var(--mono); font-size: 12px; color: var(--faint); text-align: right; }

/* ---------- 02 Payment ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin-bottom: var(--gap); }
.steps li { padding: 24px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.steps li.is-final { border-color: var(--accent); }
.steps__no { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.steps strong { font-family: var(--display); font-size: 22px; }
.steps li > span:last-child { font-size: 15px; color: var(--muted); }

.media-8-4 { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: var(--gap); }
.media-8-4 > .frame { align-self: start; }
.media-8-4 .stack > .frame:has(video) { flex: none; }
.media-8-4 .grid-2 { flex: 1; }
.media-8-4 .grid-2 .frame { min-height: 180px; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack .frame { flex: 1; min-height: 180px; }

.featurebar { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; align-items: center; margin-top: 40px; padding: 28px 0; border-block: 1px solid var(--line); }
.featurebar div { display: flex; flex-direction: column; gap: 6px; }
.featurebar strong { font-size: 17px; }
.featurebar span { font-size: 15px; color: var(--muted); }

/* ---------- 03 Sewa ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.stat { padding: 28px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.stat__num.accent { color: var(--accent); }

.subhead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; margin-bottom: var(--gap); border-bottom: 1px solid var(--line); }
.subhead h3 { margin: 0; font-family: var(--display); font-size: 24px; }
.subhead span { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.subhead--gap { margin-top: 56px; }

.devproof { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 24px 48px; align-items: center; }
.devproof__text { display: flex; flex-direction: column; gap: 16px; }
.devproof__text strong { font-family: var(--display); font-size: 28px; line-height: 1.15; }

/* ---------- 05 Ekosistem bot ---------- */
.head .btn-row { margin-top: 4px; }
.bots { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.bot { padding: 28px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 18px; transition: border-color .15s; }
.bot:hover { border-color: var(--accent); }
.bot__top { display: flex; justify-content: space-between; align-items: center; }
.bot__icon { width: 52px; height: 52px; border-radius: 14px; background: #1E1F22; color: var(--accent); display: grid; place-items: center; }
.bot__icon .ic { width: 26px; height: 26px; }
.bot__no { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.bot h3 { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.bot p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.bot__img { margin-top: auto; }
.bot__img img { object-position: top; }
.diagram-link { display: block; }
.diagram-link .link-accent { font-size: 14px; white-space: nowrap; }

/* ---------- 06 Video ---------- */
#video { align-items: stretch; }
.video__text { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-left: 24px; }
.video__text > div { display: flex; flex-direction: column; gap: 20px; }
.video__text h2 { font-size: clamp(32px, 3.4vw, 48px); overflow-wrap: anywhere; }

.yt { position: relative; display: block; width: 100%; height: 100%; background: #000; }
.yt img { opacity: .9; transition: opacity .15s; }
.yt:hover img { opacity: 1; }
.yt__play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt__play svg { width: 68px; height: 48px; transition: transform .15s; }
.yt:hover .yt__play svg { transform: scale(1.1); }

/* ---------- 08 ISAD ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--gap); }
.gallery .frame { aspect-ratio: 4/3; }
.gallery__wide { grid-column: span 2; }
.gallery__wide .frame { aspect-ratio: auto; height: calc(100% - 57px); min-height: 280px; }
.gallery img { object-fit: contain; background: #fff; } /* diagram biasanya berlatar putih */
.notebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding: 24px 0; border-block: 1px solid var(--line); color: var(--muted); }

/* ---------- Contact ---------- */
.contact { margin-top: var(--section); padding-block: clamp(80px, 9vw, 120px); background: var(--surface); border-top: 1px solid var(--line); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.contact__text { display: flex; flex-direction: column; gap: 28px; }
.contact__title { font-size: clamp(56px, 6.7vw, 96px); line-height: .95; letter-spacing: -0.035em; }
.mail { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; font-size: 22px; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line-3); }
.mail:hover { border-color: var(--accent); }
.mail .ic { width: 22px; height: 22px; }
.contact__cards { display: flex; flex-direction: column; gap: 16px; }
.typing { display: flex; flex-direction: column; gap: 24px; padding: 28px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg); transition: border-color .15s; }
.typing:hover { border-color: var(--accent); }
.typing__top { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 20px; }
.typing__stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 12px; }
.typing__stats dt { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.typing__stats dd { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.typing__stats small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.social { display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg); transition: border-color .15s, transform .15s; }
.social:hover { border-color: var(--accent); transform: translateY(-2px); }
.social__icon { width: 64px; height: 64px; border-radius: 16px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex-shrink: 0; }
.social__text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.social__text strong { font-family: var(--display); font-size: 28px; }
.social__text span { font-family: var(--mono); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

.footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 28px; }
.footer__links { display: flex; align-items: center; gap: 24px; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.totop { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; background: #fff; }
.lightbox p { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--bg); color: var(--text); font-size: 28px; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split, .head, .head--even, .media-8-4, .contact__inner, .devproof { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps li.is-final { grid-column: span 2; }
  .grid-4, .bots, .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .video__text { padding-left: 0; }
  .index a { grid-template-columns: 56px minmax(0,1fr) 32px; }
  .index__cat { display: none; }
}
@media (max-width: 720px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 18px var(--pad); border-top: 1px solid var(--line); color: var(--text); }
  .nav__toggle { display: grid; }
  .brand__name { display: none; }
  .grid-2, .gallery, .steps, .bots { grid-template-columns: 1fr; }
  .typing__stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .diagram-link .window__url { display: none; }
  .steps li.is-final, .gallery__wide { grid-column: auto; }
  .gallery__wide .frame { aspect-ratio: 4/3; height: auto; }
  .featurebar { grid-template-columns: 1fr; }
  .hero__row .btn-row, .hero__row .btn { width: 100%; }
  .social { padding: 20px; }
  .social__icon { width: 52px; height: 52px; }
  .social__text strong { font-size: 22px; }
}
