/* Warna: hitam pekat seperti referensi; satu aksen "stabilo" kuning-hijau
   hanya untuk stabilo, titik status, badge juara, splash klik, dan fokus keyboard.
   Pemisah antar elemen memakai beda nada latar, bukan garis. */
:root {
  --bg: #000;
  --surface: #0f0f0f;
  --surface-2: #181818;
  --surface-3: #222;
  --text: #fff;
  --muted: rgba(255, 255, 255, .7);
  --accent: #d4f55a;
  --on-accent: #0a0a0a;

  /* Poppins: tipografi yang sama dengan referensi */
  --font: "Poppins", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 20px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 500; }
p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: var(--on-accent); }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
section:focus, section:focus-visible { outline: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--r-md); font-weight: 600;
}
.skip:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

main, .footer { position: relative; z-index: 1; }

/* Sembunyikan hero sebentar sampai GSAP mengambil alih (lihat skrip di <head>) */
.anim .header, .anim .hero > * { visibility: hidden; }

/* ---------- Fluid ---------- */
.fluid { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- Motif identitas: stabilo + catatan tulisan tangan ---------- */
/* Gradient di sini meniru goresan stabilo, bukan dekorasi latar. */
.hl {
  color: var(--on-accent);
  background: linear-gradient(transparent 10%, var(--accent) 10%, var(--accent) 94%, transparent 94%) no-repeat;
  background-size: 100% 100%;
  padding: 0 .12em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .hl { color: inherit; background-size: 0% 100%; transition: background-size .8s var(--ease-io), color .3s ease .4s; }
.js .hl.is-on { background-size: 100% 100%; color: var(--on-accent); }

.note {
  font-family: var(--hand); font-size: 1.5rem; line-height: 1; color: var(--muted);
  display: inline-flex; pointer-events: none;
}
.note svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Mask untuk animasi teks */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }
.mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.mask-inner { display: block; }

/* ---------- Teks "roll" di tombol ---------- */
.roll { display: inline-block; overflow: hidden; height: 1.4em; line-height: 1.4; vertical-align: middle; }
.roll > span { display: block; text-shadow: 0 1.4em 0 currentColor; transition: transform .5s var(--ease-io); }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-1.4em); }

/* ---------- Header & navigasi (pola referensi) ---------- */
/* Logo dan CTA berada di header biasa (ikut tergulir).
   Pil menu di tengah selalu menempel; setelah scroll, pil melebar dan memunculkan CTA. */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 16px 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface-3);
  font-size: .95rem; font-weight: 600;
  transition: transform .5s var(--ease-io);
}
.brand:hover .brand-mark { transform: rotate(-10deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 500; font-size: 1.05rem; }
.brand-role { font-size: .8rem; color: var(--muted); }

.nav-pill {
  position: fixed; top: 20px; left: 50%; z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: center;
  padding: 4px; border-radius: var(--r-md);
  background: rgba(29, 29, 29, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.nav-pill > a:not(.pill-cta):not(.pill-avatar) {
  position: relative; z-index: 1;
  padding: 12px 22px; border-radius: 6px;
  text-decoration: none; font-size: 1rem; color: var(--muted);
  transition: color .25s;
}
.nav-pill > a:not(.pill-cta):not(.pill-avatar):hover, .nav-pill > a[aria-current] { color: var(--text); }

/* Avatar: foto menutupi inisial; kalau img/profile.png belum ada, inisial yang tampil */
.avatar { position: relative; overflow: hidden; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Avatar di pil: tersembunyi di atas, muncul bersama CTA saat scroll */
.pill-avatar {
  position: relative; z-index: 1; flex: none;
  display: grid; place-items: center;
  width: 0; height: 36px; margin: 0; border-radius: 50%; opacity: 0;
  background: var(--surface-3); color: var(--text); text-decoration: none;
  font-size: .75rem; font-weight: 600;
  transition: width .5s var(--ease-io), margin .5s var(--ease-io), opacity .3s;
}
.nav-pill.is-expanded .pill-avatar { width: 36px; margin: 0 6px 0 4px; opacity: 1; }
.pill-avatar:hover { opacity: .85; }

/* CTA di dalam pil: lebarnya 0 saat di atas, terbuka saat scroll */
.pill-cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 0; overflow: hidden; opacity: 0; margin-left: 0;
  padding: 0; border-radius: 6px; white-space: nowrap;
  background: var(--surface-3); color: var(--text); text-decoration: none; font-weight: 500;
  transition: max-width .5s var(--ease-io), opacity .3s, padding .5s var(--ease-io), margin .5s var(--ease-io), background-color .2s;
}
.nav-pill.is-expanded .pill-cta { max-width: 220px; opacity: 1; padding: 11px 16px; margin-left: 4px; }
.pill-cta:hover { background: #2c2c2c; }

.indicator {
  position: absolute; left: 0; top: 0; z-index: 0;
  width: 0; height: 0; border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out), opacity .25s;
}

.header-cta, .menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--r-md);
  background: var(--surface-3); color: var(--text);
  font: 500 1rem var(--font); text-decoration: none;
  transition: background-color .2s;
}
.header-cta:hover, .menu-btn:hover { background: #2c2c2c; }
.header-cta:active, .menu-btn:active, .pill-cta:active { transform: scale(.97); }

.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
/* Denyut pelan: status "terbuka" yang sedang aktif. Dua kali saat load, lalu hanya saat hover. */
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); opacity: 0;
  animation: pulse 2s ease-out 1s 2;
}
.header-cta:hover .dot::after, .pill-cta:hover .dot::after { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

.menu-btn { display: none; }
/* Ikon menu: dua garis yang berubah jadi X saat menu terbuka */
.menu-icon { position: relative; display: inline-block; width: 18px; height: 12px; }
.menu-icon span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease-io), top .35s var(--ease-io);
}
.menu-icon span:first-child { top: 1px; }
.menu-icon span:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:last-child { top: 5px; transform: rotate(-45deg); }

/* Saklar bahasa ID | EN: latar putih bergeser ke bahasa aktif */
.lang-switch {
  position: relative; display: inline-flex; margin-left: auto;
  padding: 2px; border-radius: var(--r-md); background: var(--surface-3);
}
.lang-switch button {
  position: relative; z-index: 1;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); font: 600 .85rem var(--font); letter-spacing: .03em;
  transition: color .25s;
}
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--text); }
.lang-switch button[aria-pressed="true"] { color: #000; }
.lang-switch button:active { transform: scale(.95); }
/* Di dalam pil menu: latar lebih halus agar menyatu */
.nav-pill .lang-switch { margin-left: 6px; background: rgba(255, 255, 255, .06); }
.lang-indicator {
  position: absolute; left: 0; top: 2px; bottom: 2px; width: 0;
  border-radius: 6px; background: var(--text);
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-md);
  font: 500 1rem var(--font); text-decoration: none;
  transition: background-color .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: var(--surface-3); color: var(--text); }
.btn-ghost:hover { background: #2c2c2c; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1120px; margin: 0 auto;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 24px 80px; text-align: center;
}

.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 400; line-height: 1.3; }
.hero h1 .hl strong { font-weight: 600; }
.hero-sub { max-width: 560px; margin: 24px auto 0; color: var(--muted); font-size: 1.13rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ---------- Section umum ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 120px 24px; }
.section h2 { font-size: clamp(2rem, 3.6vw, 2.5rem); font-weight: 500; }
.section-head { margin-bottom: 48px; }
.section-head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sub-title { font-size: 1.25rem; font-weight: 500; margin-bottom: 20px; }

/* ---------- Projects ---------- */
/* Kartu project langsung di atas halaman (tanpa panel pembungkus) agar tidak ada kartu di dalam kartu */
.projects { max-width: var(--wrap); }

.filters { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.filters .indicator { background: var(--text); border-radius: 999px; }
.chip {
  position: relative; z-index: 1;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: 500 .95rem var(--font);
  transition: color .3s;
}
.chip:hover { color: var(--text); }
.chip.is-active { color: #000; }
.filters:hover .chip.is-active:not(:hover) { color: var(--text); }
.filters:hover .chip:hover { color: #000; }

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

/* Kartu: tanpa garis tepi; gambar dibingkai di dalam kartu dengan sudut membulat */
.project {
  position: relative;
  display: flex; flex-direction: column;
  padding: 10px; border-radius: var(--r-lg);
  background: var(--surface-2);
  transition: background-color .35s;
}
.project:hover { background: #1d1d1d; }

/* Rasio bingkai = rasio gambar aslinya (--ar), jadi screenshot terlihat utuh */
.project-shot {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ar, 16 / 10);
  border-radius: 14px;
  background: var(--surface-3);
  clip-path: inset(0% 0% 0% 0% round 14px);
}
.shot-inner { position: absolute; inset: 0; display: grid; place-items: center; }
.shot-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cover teks untuk project yang belum punya screenshot */
.cover .shot-inner { align-content: center; gap: 4px; text-align: center; padding: 16px; }
.cover-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; color: var(--text); line-height: 1; }
.cover-sub { font-family: var(--hand); font-size: 1.45rem; color: var(--muted); transform: rotate(-3deg); }

.project-body { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 18px 8px; }
.project-body h3 { font-size: 1.6rem; font-weight: 500; }
.desc { color: var(--muted); }

.built-for { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text); }
.built-for span { flex: none; color: var(--muted); }
.org-ico { width: 18px; height: 18px; flex: none; border-radius: 4px; object-fit: contain; }
.org-ico-wide { width: auto; height: 21px; padding: 2px 5px; background: #fff; }

/* Badge juara: status nyata dari achievements */
.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: .8rem; font-weight: 600;
}
.badge svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.project-featured { grid-column: 1 / -1; flex-direction: row; align-items: stretch; gap: 8px; }
.project-featured .project-shot { flex: 1.35; align-self: center; }
.project-featured .project-body { flex: 1; justify-content: flex-start; padding: 28px 28px 8px; }
.project-featured h3 { font-size: 2.2rem; }
.project-featured.reverse { flex-direction: row-reverse; }

.note-fav { position: absolute; top: 18px; right: 22px; color: var(--accent); transform: rotate(-6deg); }

.tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.tags li { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.ti { width: 14px; height: 14px; flex: none; }
.ti-dot { display: inline-block; width: 6px; height: 6px; margin: 0 4px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.ti-dot.ti-lg { width: 8px; height: 8px; margin: 0 6px; }

.plinks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; padding-top: 14px; }
.plink {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--text);
  transition: color .2s;
}
/* Garis bawah tergambar dari kiri saat hover */
.plink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
  background: currentColor; transform: scaleX(.3); transform-origin: left;
  transition: transform .45s var(--ease-io);
}
.plink:hover::after, .plink:focus-visible::after { transform: scaleX(1); }
.plink:hover { color: var(--accent); }
.pl-ico { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.plink.has-ico::after { left: 24px; }

.project.is-hidden { display: none; }

.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); border-radius: var(--r-lg); background: var(--surface-2); }
.text-btn {
  background: none; border: 0; padding: 4px 2px; min-height: 44px;
  color: var(--text); font: 500 1rem var(--font);
  text-decoration: underline; text-underline-offset: 4px;
}
.text-btn:hover { color: var(--accent); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.about-lead { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; margin-top: 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 36px; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { font-weight: 500; }

.toolbox { display: flex; flex-direction: column; gap: 36px; padding-top: 8px; }
.tool-group { position: relative; }
.tool-group h3 { font-size: .9rem; font-weight: 400; color: var(--muted); margin-bottom: 14px; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: var(--r-md);
  background: var(--surface-2); font-size: .95rem;
  transition: background-color .25s, transform .25s var(--ease-out);
}
.tool-list li:hover { background: var(--surface-3); transform: translateY(-2px); }
.tool-list img { width: 20px; height: 20px; }
.note-tools { position: absolute; right: 0; top: -4px; font-size: 1.25rem; transform: rotate(-4deg); }

/* ---------- Achievements ---------- */
.ach-year { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
.ach-year-label { font-size: 2.5rem; font-weight: 300; color: var(--muted); line-height: 1; padding-top: 18px; }
.ach-list { display: flex; flex-direction: column; gap: 10px; }
.ach-year + .ach-year { margin-top: 36px; }
/* Baris achievement: logo penyelenggara | peringkat + acara + kontribusi | catatan project */
.ach {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 18px 22px; border-radius: var(--r-lg); background: var(--surface);
  transition: background-color .3s;
}
.ach:hover { background: var(--surface-2); }
.ach-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.ach-logo-pad { padding: 4px; background: #fff; object-fit: contain; }
.ach-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ach-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ach-rank { padding: 4px 12px; border-radius: 999px; background: var(--surface-3); font-size: .8rem; font-weight: 500; }
.ach-rank.is-top { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.ach-event { font-size: 1.1rem; font-weight: 500; }
.ach-contrib { font-size: .92rem; line-height: 1.5; color: var(--muted); }
.ach-contrib svg { display: inline-block; vertical-align: -2px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ach-role { color: var(--text); font-weight: 500; }
.ach-sep { margin: 0 6px; opacity: .5; }
.ach-with { font-family: var(--hand); font-size: 1.35rem; color: var(--muted); }

.certs { margin-top: 72px; }
.cert-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cert {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: 1fr 1fr; gap: 2px 16px;
  height: 100%; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface);
  text-decoration: none; transition: background-color .3s;
}
.cert:hover { background: var(--surface-2); }
.cert-logo { grid-column: 1; grid-row: 1 / 3; align-self: center; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.cert-logo-pad { padding: 8px; background: #fff; }
.cert-main { grid-column: 2; grid-row: 1 / 3; align-self: center; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cert-cta { grid-column: 3; grid-row: 2; align-self: start; justify-self: end; font-size: .85rem; font-weight: 500; color: var(--text); position: relative; }
.cert-cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(.3); transform-origin: left; transition: transform .45s var(--ease-io);
}
.cert:hover .cert-cta { color: var(--accent); }
.cert:hover .cert-cta::after, .cert:focus-visible .cert-cta::after { transform: scaleX(1); }
.cert-name { font-weight: 500; }
.cert-issuer { font-size: .85rem; color: var(--muted); }
.cert-year { grid-column: 3; grid-row: 1; align-self: end; justify-self: end; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Experience (timeline) ---------- */
/* Kolom: periode | titik | isi. Garis vertikal melewati tengah kolom titik. */
.experience { --tl-col: 140px; --tl-gap: 24px; }
.timeline-wrap { position: relative; }
.timeline { display: flex; flex-direction: column; gap: 12px; }
.tl {
  display: grid; grid-template-columns: var(--tl-col) 16px minmax(0, 1fr);
  column-gap: var(--tl-gap); align-items: start;
}
.tl[hidden] { display: none; }
.tl-rail {
  position: absolute; top: 60px; bottom: 60px; width: 1px;
  left: calc(var(--tl-col) + var(--tl-gap) + 7.5px);
  background: var(--surface-3);
}
/* Bagian garis yang "terisi" mengikuti scroll (dianimasikan GSAP) */
.tl-fill { position: absolute; inset: 0; background: rgba(255, 255, 255, .45); transform-origin: top; }
.tl-period { padding-top: 48px; text-align: right; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-dot {
  position: relative; z-index: 1; justify-self: center; margin-top: 49px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px #3a3a3a;
  transition: background-color .35s, box-shadow .35s;
}
/* Titik yang sudah dilewati garis. .is-tracking dipasang script.js saat animasi scroll aktif;
   tanpa itu (reduced motion / GSAP gagal dimuat) semua titik langsung hijau. */
.timeline-wrap:not(.is-tracking) .tl-dot, .tl.is-passed .tl-dot { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.timeline-wrap:not(.is-tracking) .tl.is-now .tl-dot, .tl.is-now.is-passed .tl-dot { box-shadow: 0 0 0 5px rgba(212, 245, 90, .15); }
.tl-body {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface);
  transition: background-color .3s;
}
.tl:hover .tl-body { background: var(--surface-2); }
.is-tracking .tl:not(.is-passed):hover .tl-dot { box-shadow: inset 0 0 0 2px var(--text); }
.tl-head { display: flex; align-items: center; gap: 14px; width: 100%; }
.tl-logo { width: 44px; height: 44px; flex: none; padding: 4px; border-radius: 12px; background: #fff; object-fit: contain; }
.tl-logo-full { padding: 0; background: none; object-fit: cover; }
.tl-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tl-head .badge { margin-left: auto; align-self: flex-start; }
.tl-type { font-family: var(--hand); font-size: 1.2rem; line-height: 1; color: var(--accent); margin-bottom: 2px; }
.tl-role-full { font-size: .9rem; font-weight: 400; color: var(--muted); }
/* Poin pekerjaan: titik kecil sebagai penanda, bukan garis */
.tl-points { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; max-width: 82ch; color: var(--muted); }
.tl-points li { position: relative; padding-left: 18px; }
.tl-points li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
/* Link di dalam poin: chip kecil dengan favicon situs */
.inline-link {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; vertical-align: baseline;
  padding: 1px 9px 1px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); text-decoration: none; font-size: .85rem;
  transition: background-color .2s, color .2s;
}
.inline-link img { width: 14px; height: 14px; border-radius: 3px; }
.inline-link:hover { background: var(--surface-3); color: var(--accent); }
/* Peran sejenis: label tulisan tangan + chip nama acara */
.tl-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.tl-related-label { font-family: var(--hand); font-size: 1.25rem; color: var(--muted); }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chips li { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; transition: background-color .25s; }
.tl:hover .tl-chips li { background: var(--surface-3); }
.tl-role { font-size: 1.15rem; font-weight: 500; line-height: 1.3; }
.tl-org { font-size: .9rem; color: var(--muted); }

.see-all {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text); font: 500 .95rem var(--font);
  transition: background-color .25s;
}
.see-all[hidden] { display: none; }
.certs-toggle { display: none; }
.see-all:hover { background: var(--surface-3); }
.see-all:active { transform: scale(.97); }
.see-all svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-io); }
.see-all[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact { max-width: var(--wrap); margin: 0 auto; padding: 140px 24px 120px; }
.contact h2 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 400; max-width: 900px; margin: 0 auto; text-align: center; line-height: 1.3; }
.contact h2 strong { font-weight: 600; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start;
  margin-top: 64px; max-width: 1040px; margin-left: auto; margin-right: auto;
}

/* Form kontak: satu kartu, field tanpa garis tepi, beda nada latar sebagai batas */
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .95rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text);
  font: 400 1rem var(--font); line-height: 1.5;
  transition: background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .5); }
.field input:hover, .field textarea:hover { background: var(--surface-3); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; background: var(--surface-3); box-shadow: 0 0 0 2px var(--accent); }
.field [aria-invalid="true"] { box-shadow: 0 0 0 2px #ff8a7a; }
.field-error { min-height: 0; font-size: .85rem; color: #ff9b8a; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { width: 100%; margin-top: 4px; }
.btn-submit:disabled { cursor: not-allowed; opacity: .7; }
.btn-submit:disabled:hover { background: var(--text); }
.form-status { font-size: .95rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #ff9b8a; }

.contact-side { display: flex; flex-direction: column; gap: 12px; }
.contact-side .socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-side .social { width: 100%; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 16px 0 12px; border-radius: var(--r-md);
  background: var(--surface-2); text-decoration: none; font-size: .95rem;
  transition: background-color .25s, transform .25s var(--ease-out);
}
.social:hover { background: var(--surface-3); transform: translateY(-2px); }
.social:active { transform: scale(.97); }

.discord-status-link { display: block; border-radius: 12px; transition: transform .4s var(--ease-out); }
.discord-status-link:hover { transform: translateY(-3px); }
.discord-status { display: block; width: 100%; height: auto; aspect-ratio: 410 / 210; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--wrap); margin: 0 auto; padding: 28px 24px 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px;
  color: var(--muted); font-size: .95rem;
}
.footer-time { justify-self: center; }
.footer a { justify-self: end; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; transition: color .2s; }
.footer a:hover { color: var(--text); }
.clock { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 6px; }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .nav-pill > a:not(.pill-cta):not(.pill-avatar) { padding: 12px 14px; }
}

@media (max-width: 1240px) {
  .brand-text { display: none; }
}

/* Laptop kecil/tablet landscape: CTA header disembunyikan agar tidak menabrak pil menu.
   "Let's collab" di pil tetap muncul saat scroll. */
@media (min-width: 901px) and (max-width: 1080px) {
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  /* Mobile/tablet: header menempel dengan latar blur, menu jadi dropdown */
  .header {
    position: fixed; top: 10px; left: 10px; right: 10px; padding: 8px;
    border-radius: 14px; background: rgba(20, 20, 20, .75);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    flex-wrap: wrap;
  }
  .brand-mark { width: 44px; height: 44px; font-size: .85rem; }
  .brand-text { display: flex; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: 8px; }
  .nav-pill {
    position: static; transform: none; order: 3; width: 100%;
    display: none; flex-direction: column; align-items: stretch;
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 6px 0 2px;
  }
  .nav-pill.is-open { display: flex; }
  .nav-pill > a:not(.pill-cta):not(.pill-avatar) { padding: 14px 12px; color: var(--text); font-size: 1.05rem; }
  .nav-pill .indicator { display: none; }
  .pill-cta, .nav-pill.is-expanded .pill-cta { max-width: none; opacity: 1; padding: 14px 12px; margin: 6px 0 0; }
  .pill-avatar { display: none; }

  .section { padding: 88px 20px; }

  .project-featured, .project-featured.reverse { flex-direction: column; align-items: stretch; }
  .project-featured .project-shot { flex: none; align-self: stretch; }
  .project-featured .project-body { padding: 22px 18px 8px; }
  .project-featured h3 { font-size: 1.8rem; }

  .about { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 120px 20px 64px; }
  .brand-role { display: none; }
  .menu-btn { width: 48px; padding: 0; justify-content: center; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Ponsel: konten dipangkas agar tidak padat (versi lengkap tetap di desktop) */
  .tags li:nth-child(n + 4) { display: none; }
  .ach-with { display: none; }
  .note-tools { display: none; }
  .cert-list:not(.is-open) li:nth-child(n + 4) { display: none; }
  .certs-toggle { display: inline-flex; }
  .project-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .filters { border-radius: 16px; }
  .ach-year { grid-template-columns: 1fr; gap: 12px; }
  .ach-year-label { padding-top: 0; }
  .ach { grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 6px 14px; padding: 16px 18px; }
  .ach-logo { width: 40px; height: 40px; }
  .ach-with { grid-column: 2; font-size: 1.2rem; }
  .experience { --tl-col: 0px; --tl-gap: 16px; }
  .tl { grid-template-columns: 16px minmax(0, 1fr); row-gap: 6px; align-items: start; }
  .tl-period { grid-column: 2; grid-row: 1; text-align: left; }
  .tl-dot { grid-column: 1; grid-row: 1; margin-top: 4px; }
  .tl-period { padding-top: 0; }
  .tl-body { padding: 18px; }
  .tl-logo { width: 38px; height: 38px; }
  .tl-head { flex-wrap: wrap; }
  /* Badge pindah ke baris sendiri, sejajar teks judul */
  .tl-head-text { flex: 1 1 calc(100% - 60px); }
  .tl-head .badge { margin-left: 52px; }
  .tl-body { grid-column: 2; }
  .tl-rail { left: 7.5px; top: 12px; bottom: 60px; }
  .contact { padding: 110px 20px 80px; }
  .footer { grid-template-columns: 1fr; justify-items: start; }
  .footer-time, .footer a { justify-self: start; }
}

@media (max-width: 360px) {
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .hl { background-size: 100% 100%; color: var(--on-accent); }
  .fluid { display: none; }
}
