

:root {
  color-scheme: dark;
  --bg:        #1a1a1b;
  --panel:     #1f1f21;
  --panel-2:   #151516;
  --bone:      #f4f1eb;
  --bone-dim:  #c9c4b8;
  --muted:     #8a877f;
  --line:      rgba(244, 241, 235, 0.10);
  --line-soft: rgba(244, 241, 235, 0.06);
  --green:     #00c896;
  --blue:      #0098db;
  --radius:    10px;
  --maxw:      940px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--bone);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 80% -5%, rgba(0,152,219,0.10), transparent 60%),
    radial-gradient(700px 500px at -5% 20%, rgba(0,200,150,0.07), transparent 55%);
  background-attachment: fixed;
}

/* Grain overlay halus */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Tipografi */
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; margin-bottom: 1.4rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .9rem; color: var(--bone); letter-spacing: -0.01em; }
p  { margin-bottom: 1rem; color: var(--bone-dim); }

a { color: var(--bone); text-decoration: none; }
a:hover { color: var(--green); }

/* Label mono kapital — ciri khas portofolio */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: .72rem; color: var(--green); margin-bottom: .8rem;
}

strong { color: var(--bone); font-weight: 600; }
em { color: var(--bone); font-style: italic; }
u { text-decoration-color: var(--blue); text-underline-offset: 3px; }
small { color: var(--muted); font-size: .82rem; }
abbr { text-decoration: underline dotted var(--muted); cursor: help; }
mark { background: rgba(0,200,150,.18); color: var(--green); padding: 0 .25em; border-radius: 4px; }
code {
  font-family: 'JetBrains Mono', monospace; font-size: .85em;
  background: var(--panel-2); color: var(--blue);
  padding: .12em .45em; border-radius: 5px; border: 1px solid var(--line);
}
blockquote {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-style: italic;
  color: var(--bone); border-left: 2px solid var(--green);
  padding: .3rem 0 .3rem 1.3rem; margin-top: 1.6rem;
}

/* Kartu */
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 5vw, 2.5rem);
  background: rgba(26,26,27,0.78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.04em; }
.brand span { color: var(--blue); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--bone-dim);
}
.nav-links a:hover { color: var(--green); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--bone-dim);
  font-family: 'JetBrains Mono', monospace; font-size: .75rem; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 6px; cursor: pointer;
}

/* ===================== HERO ===================== */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 9vw, 6rem) clamp(1.2rem, 5vw, 2rem);
}
.role { font-family: 'JetBrains Mono', monospace; font-size: .9rem; color: var(--bone-dim); margin: 1rem 0; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); display: inline-block; }
.tagline { font-size: 1.05rem; max-width: 40ch; }
.hero-cta { display: flex; gap: .9rem; margin-top: 1.8rem; flex-wrap: wrap; }

.btn {
  font-family: 'JetBrains Mono', monospace; font-size: .82rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: .75rem 1.4rem; border-radius: 8px; transition: all .18s ease; display: inline-block;
}
.btn-primary { background: var(--green); color: #07110d; font-weight: 500; }
.btn-primary:hover { color: #07110d; filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

.hero-photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  filter: grayscale(0.15);
}

/* ===================== SECTION ===================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 7vw, 4rem) clamp(1.2rem, 5vw, 2rem); border-top: 1px solid var(--line-soft); }

/* ===================== TABEL ===================== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { font-family: 'JetBrains Mono', monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); font-weight: 500; }
td { color: var(--bone-dim); }
td strong { color: var(--bone); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { color: var(--bone); }

/* ===================== LIST ===================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--bone-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; background: var(--panel-2);
}
.plain { list-style: none; }
.plain li { padding: .3rem 0; color: var(--bone-dim); border-bottom: 1px solid var(--line-soft); }

.timeline { list-style: none; counter-reset: step; }
.timeline li {
  counter-increment: step; position: relative;
  padding: 0 0 1.6rem 2.6rem; border-left: 1px solid var(--line); margin-left: .6rem;
}
.timeline li:last-child { border-left: 1px solid transparent; }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -0.9rem; top: -0.2rem;
  width: 1.8rem; height: 1.8rem; background: var(--bg); border: 1px solid var(--green); color: var(--green);
  border-radius: 50%; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
}
.t-role { display: block; font-family: 'Space Grotesk'; font-weight: 600; color: var(--bone); font-size: 1.05rem; }
.t-meta { display: block; font-family: 'JetBrains Mono', monospace; font-size: .76rem; color: var(--blue); margin: .15rem 0 .4rem; }

/* ===================== GALERI ===================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { padding: 0; overflow: hidden; }
.gallery img { width: 100%; height: 170px; object-fit: cover; display: block; filter: grayscale(.2); cursor: zoom-in; transition: filter .2s ease, transform .2s ease; }
.gallery img:hover { filter: grayscale(0); transform: scale(1.02); }
.gallery figcaption { padding: .7rem 1rem; font-size: .8rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* ===================== KONTAK ===================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-item { display: flex; flex-direction: column; gap: .3rem; font-family: 'JetBrains Mono', monospace; font-size: .9rem; color: var(--bone); transition: border-color .18s ease; }
.contact-item:hover { border-color: var(--green); color: var(--bone); }
.contact-item .k { font-size: .68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--green); }

/* ===================== FOOTER ===================== */
.footer { text-align: center; padding: 2.5rem 1rem; border-top: 1px solid var(--line); }
.footer p { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.footer a { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--bone-dim); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 240px; }
  .grid-2, .gallery, .contact { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: .9rem clamp(1.2rem, 5vw, 2.5rem); border-top: 1px solid var(--line-soft); }
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 2rem;
  background: rgba(10, 10, 11, 0.88); backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(92vw, 1100px); max-height: 82vh; width: auto; height: auto;
  object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-cap {
  font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: var(--bone-dim);
  letter-spacing: .04em; text-align: center;
}
.lightbox-close {
  position: absolute; top: 1.1rem; right: 1.2rem;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); color: var(--bone); border: 1px solid var(--line);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.lightbox-close:hover { border-color: var(--green); color: var(--green); }
