/* ============================================================
   ALAN-OS v4.1 — dark phosphor terminal theme
   css ditulis tangan, satu baris demi satu baris.
   palet: fosfor hijau di atas hitam, amber buat penanda.
   ============================================================ */

:root {
  --phos:      #46f78f;
  --phos-hi:   #7dffb4;
  --phos-dim:  #23a05c;
  --amber:     #ffb454;
  --red:       #ff6b5e;
  --bg:        #050806;
  --bg-raise:  #0a120c;
  --bg-elev:   #0e1811;
  --ink:       #b8ccbd;
  --ink-hi:    #eafff2;
  --ink-dim:   #68806f;
  --line:      #1a2b1f;
  --line-hot:  #2c4a34;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .2, 1);
}

/* ---------- dasar ---------- */
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
/* potong pancengan horizontal (efek samping reveal translate),
   tanpa bikin scroll container baru biar topbar sticky tetap jalan */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
/* transisi halus saat pindah halaman (kelas nav-out dipasang JS) */
body { transition: opacity .18s ease; }
body.nav-out { opacity: 0; }
::selection { background: rgba(70,247,143,.22); color: var(--ink-hi); }
a { color: var(--phos); text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-raise); }
::-webkit-scrollbar-thumb { background: var(--line-hot); border: 2px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--phos-dim); }

.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 18px; }
main { flex: 1; }

/* ---------- lapisan CRT (dekorasi layar) ---------- */
.crt-lines, .crt-vignette, .crt-beam, .crt-flick {
  position: fixed; pointer-events: none; z-index: 80;
}
.crt-lines {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
  opacity: .5;
}
.crt-vignette {
  inset: 0;
  background: radial-gradient(115% 90% at 50% 42%, transparent 55%, rgba(0,0,0,.55) 100%);
}
.crt-beam {
  left: 0; right: 0; top: 0; height: 24vh;
  background: linear-gradient(180deg, transparent 0%, rgba(125,255,180,.04) 46%, rgba(125,255,180,.09) 50%, rgba(125,255,180,.04) 54%, transparent 100%);
  animation: beam 9s linear infinite;
}
@keyframes beam { from { transform: translateY(-26vh); } to { transform: translateY(130vh); } }
.crt-flick {
  inset: 0; background: var(--phos); opacity: 0;
  animation: flick 8s steps(1) infinite;
}
@keyframes flick {
  0%, 90.9%, 92.1%, 95.9%, 96.4%, 100% { opacity: 0; }
  91% { opacity: .016; }
  96% { opacity: .022; }
}

/* ---------- progres baca ---------- */
#progress {
  position: fixed; top: 0; left: 0; z-index: 96;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--phos-dim), var(--phos));
  box-shadow: 0 0 8px rgba(70,247,143,.6);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- boot loader live — progres asli, sekali per sesi ---------- */
.boot {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
}
.boot.done { opacity: 0; visibility: hidden; animation: bootout .52s var(--ease) forwards; }
@keyframes bootout {
  0%   { opacity: 1; transform: scaleY(1);    filter: brightness(1); }
  48%  { opacity: 1; transform: scaleY(.006); filter: brightness(2.4); }
  74%  { opacity: 1; transform: scaleY(.006); filter: brightness(2.9); }
  100% { opacity: 0; transform: scaleY(.006); filter: brightness(3); visibility: hidden; }
}
.boot-in { width: min(620px, 100%); }
.boot pre, .boot .boot-log {
  margin: 0 0 16px; width: 100%;
  font-family: var(--mono); font-size: 13px; line-height: 1.8;
  color: var(--ink-dim); white-space: pre-wrap; min-height: 196px;
}
.boot .bl { display: block; opacity: 0; transform: translateY(4px); transition: .2s var(--ease); }
.boot .bl.on { opacity: 1; transform: none; }
.boot .bl b { color: var(--phos); font-weight: 500; }
.boot .bl.ok::first-letter { color: var(--phos); }
.boot .boot-log .bl:last-child::after {
  content: "▌"; color: var(--phos); margin-left: 7px;
  animation: blink 1s steps(1) infinite;
}
.boot-meter {
  font-size: 14px; letter-spacing: 1.5px; color: var(--phos);
  text-shadow: 0 0 10px rgba(70,247,143,.45);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px; white-space: nowrap;
}
.boot-foot {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 12px; color: var(--ink-dim);
}
.boot-foot b {
  color: var(--phos-hi); font-size: 14px; min-width: 46px;
  font-variant-numeric: tabular-nums;
}
.boot-foot #bootInfo { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boot .skip { color: var(--ink-dim); opacity: .55; font-size: 11px; }

/* garis render yang menyapu halaman saat boot selesai */
.boot-sweep {
  position: fixed; left: 0; top: 0; z-index: 198;
  width: 100%; height: 3px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--phos) 26%, #d9ffe9 50%, var(--phos) 74%, transparent 100%);
  box-shadow: 0 0 22px rgba(70,247,143,.85), 0 0 64px rgba(70,247,143,.35);
}
.boot-sweep.run { animation: sweepdn .95s var(--ease) forwards; }
@keyframes sweepdn {
  0%   { opacity: 1; transform: translateY(0); }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh); }
}

/* ---------- topbar gaya tmux ---------- */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(5,8,6,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1080px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: stretch; gap: 16px; height: 46px;
}
.sess {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-dim); white-space: nowrap;
}
.sess b { color: var(--phos); font-weight: 600; }
.cur {
  display: inline-block; width: 8px; height: 14px;
  background: var(--phos); vertical-align: middle;
  animation: blink 1.1s steps(1) infinite;
}
.cur.dim { background: var(--ink-dim); animation: none; }
@keyframes blink { 50% { opacity: 0; } }

.tabs {
  display: flex; align-items: stretch; gap: 2px;
  flex: 1; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; padding: 0 11px;
  font-size: 12.5px; color: var(--ink-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.tab i { font-style: normal; color: var(--phos-dim); margin-right: 6px; font-size: 11px; }
.tab:hover { color: var(--ink); background: rgba(70,247,143,.05); }
.tab.on { color: var(--phos-hi); border-color: var(--phos); background: rgba(70,247,143,.07); }
.tab.on i { color: var(--amber); }

.clock {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-dim); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.clock b { color: var(--ink); font-weight: 500; }
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--phos); box-shadow: 0 0 8px rgba(70,247,143,.8);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 640px) {
  .sess .path, .clock .tz { display: none; }
  .clock b { font-size: 12px; }
}

/* ---------- judul seksi ---------- */
.sec { padding-top: 54px; padding-bottom: 10px; }
.sec-last { padding-bottom: 54px; }
.num {
  margin: 0; font-size: 12px; color: var(--phos-dim);
  letter-spacing: .14em; text-transform: uppercase;
}
.num::before { content: '# '; color: var(--ink-dim); }
.sec h2 {
  margin: 6px 0 0; font-size: clamp(20px, 3.4vw, 27px);
  font-weight: 700; color: var(--ink-hi); letter-spacing: .2px;
  line-height: 1.3;
}
.sec h2 em { font-style: normal; color: var(--phos); text-shadow: 0 0 14px rgba(70,247,143,.35); }
.aside { margin: 0; font-size: 12.5px; color: var(--ink-dim); }
.sec-head {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: baseline; justify-content: space-between;
}
.rule { border: 0; height: 1px; margin: 18px 0 0; background: var(--line); position: relative; overflow: hidden; }
.rule::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 42%;
  background: linear-gradient(90deg, var(--phos), transparent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease);
}
.is-in .rule::after, .rule.is-in::after { transform: scaleX(1); }
.lead-note { max-width: 40rem; margin: 1.5rem 0 0; color: var(--ink-dim); font-size: 14px; }

/* ---------- jendela terminal ---------- */
.term {
  position: relative;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  transition: border-color .25s var(--ease);
}
.term:hover { border-color: var(--line-hot); }
.term-bar {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 12px;
  background: var(--bg-elev); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--ink-dim);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-hot); transition: background .25s var(--ease); }
.term:hover .dots i:nth-child(1) { background: var(--red); }
.term:hover .dots i:nth-child(2) { background: var(--amber); }
.term:hover .dots i:nth-child(3) { background: var(--phos); }
.term-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { padding: 18px; }

/* baris prompt & output */
.pl { margin: 0 0 6px; color: var(--ink); }
.pl::before { content: '$ '; color: var(--phos); }
.out { margin: 0 0 14px; color: var(--ink-dim); font-size: 14px; }
.out:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
/* catatan: .hero dipakai bareng .wrap — padding horizontal
   diserahkan ke .wrap (18px), jangan ditimpa nol di sini. */
.hero { padding-top: 64px; padding-bottom: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  font-size: 12.5px; color: var(--ink-dim); margin-bottom: 30px;
}
.hero-meta span::before { content: '// '; color: var(--line-hot); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr);
  gap: 28px; align-items: start;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.ascii {
  margin: 0 0 18px; overflow-x: auto; user-select: none;
  font-size: 10.5px; line-height: 1.3; color: var(--phos-dim);
  text-shadow: 0 0 16px rgba(70,247,143,.14);
}
.ascii::-webkit-scrollbar { height: 6px; }

.hero h1 {
  margin: 0 0 10px; font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.14; font-weight: 700; color: var(--ink-hi);
}
.hero h1 em { font-style: normal; color: var(--phos); text-shadow: 0 0 18px rgba(70,247,143,.4); }
.type-line {
  margin: 0 0 16px; color: var(--amber); font-size: 15px; min-height: 26px;
  font-variant-numeric: tabular-nums;
}
.type-line::before { content: '> '; color: var(--phos-dim); }
.tcur {
  display: inline-block; width: 9px; height: 16px; margin-left: 3px;
  background: var(--phos); vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
.hero .lede { margin: 0 0 22px; max-width: 56ch; color: var(--ink-dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

.tbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  font: 600 13.5px var(--mono);
  color: #04140b; background: var(--phos); border: 1px solid var(--phos);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.tbtn::before { content: '$ '; opacity: .55; font-weight: 400; }
.tbtn:hover {
  background: var(--phos-hi); border-color: var(--phos-hi);
  box-shadow: 0 0 0 3px rgba(70,247,143,.14), 0 8px 24px rgba(70,247,143,.16);
  transform: translateY(-1px);
}
.tbtn:active { transform: translateY(0); }
.tbtn.ghost { background: transparent; color: var(--phos); }
.tbtn.ghost:hover { background: rgba(70,247,143,.08); color: var(--phos-hi); }

.status-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-dim);
  border: 1px dashed var(--line-hot); border-radius: 999px;
  padding: 7px 14px;
}
.status-chip .pulse { flex: none; }

/* kartu neofetch */
.nf { display: flex; gap: 18px; align-items: flex-start; }
.nf-ava {
  width: 108px; height: 108px; flex: none;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line-hot);
  filter: saturate(.85) contrast(1.05);
  box-shadow: 0 0 26px rgba(70,247,143,.12);
}
.nf-info { margin: 0; font-size: 13px; min-width: 0; }
.nf-row { display: flex; gap: 10px; padding: 2.5px 0; }
.nf-row span { color: var(--phos); min-width: 58px; flex: none; }
.nf-row span::after { content: ':'; color: var(--ink-dim); }
.nf-row b { color: var(--ink); font-weight: 400; word-break: break-word; }
@media (max-width: 420px) { .nf { flex-direction: column; } }

/* ---------- pita berjalan (ticker) ---------- */
.tape-line {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  overflow: hidden; padding: 11px 0; position: relative;
}
.tape-track {
  display: flex; width: max-content;
  color: var(--ink-dim); font-size: 12.5px; white-space: nowrap;
  animation: tick 30s linear infinite;
}
.tape-line:hover .tape-track { animation-play-state: paused; }
.tape-track b { color: var(--phos); font-weight: 500; }
.tape-line.rev .tape-track { animation-direction: reverse; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- tentang: kolom + kuitansi ---------- */
.about-cols {
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr);
  gap: 26px; margin-top: 26px; align-items: start;
}
@media (max-width: 860px) { .about-cols { grid-template-columns: 1fr; } }
.about-cols p { margin: 0 0 1.1rem; color: var(--ink); font-size: 14.5px; }
.about-cols p:last-child { margin-bottom: 0; }

.receipt { padding: 18px; }
.receipt dl { margin: 0 0 14px; }
.kv { display: flex; align-items: baseline; gap: 9px; padding: 5.5px 0; font-size: 13.5px; }
.kv dt { color: var(--phos); flex: none; }
.kv .dots-fill { flex: 1; border-bottom: 1px dotted var(--line-hot); transform: translateY(-4px); }
.kv dd { margin: 0; color: var(--ink); text-align: right; word-break: break-word; }
.kv dd.hot, .hot { color: var(--amber); }

.fact-btn {
  width: 100%; text-align: left;
  background: var(--bg-elev); color: var(--phos);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font: 500 12.5px var(--mono); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.fact-btn::before { content: '$ '; color: var(--phos-dim); }
.fact-btn:hover { border-color: var(--phos-dim); background: rgba(70,247,143,.06); }
.fact-btn.done { color: var(--phos-hi); }
#factOut {
  margin: 10px 0 0; font-size: 13px; color: var(--ink-dim);
  border-left: 2px solid var(--line-hot); padding-left: 12px;
  transition: opacity .35s var(--ease);
}

/* ---------- daftar baris (sorotan / pratinjau) ---------- */
.rows { margin-top: 22px; border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: 54px minmax(0,1fr) 24px;
  gap: 4px 18px; align-items: baseline;
  padding: 18px 6px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease), padding-left .2s var(--ease);
  position: relative;
  overflow: hidden;
}
/* bar indikator yang tumbuh dari atas saat hover */
.row-item::before {
  content: ''; position: absolute; left: 0; top: 10%; bottom: 10%; width: 2px;
  background: var(--phos); box-shadow: 0 0 10px rgba(70,247,143,.7);
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .32s var(--ease);
}
@media (hover: hover) {
  .row-item:hover::before { transform: scaleY(1); }
}
.row-item:hover { background: rgba(70,247,143,.035); padding-left: 14px; }
.row-item .idx { color: var(--phos-dim); font-size: 13px; }
.row-item h3 { margin: 0; font-size: 15.5px; color: var(--ink-hi); font-weight: 600; }
.row-item:hover h3 { color: var(--phos-hi); text-shadow: 0 0 12px rgba(70,247,143,.3); }
.row-item p { grid-column: 2; margin: 2px 0 0; color: var(--ink-dim); font-size: 13.5px; }
.row-item .go {
  grid-row: 1 / span 2; grid-column: 3; color: var(--phos);
  justify-self: end; transition: transform .2s var(--ease);
}
.row-item:hover .go { transform: translate(3px, -3px); }
@media (max-width: 560px) {
  .row-item { grid-template-columns: 40px minmax(0,1fr) 20px; }
}

/* ---------- proyek ---------- */
.project { margin: 34px auto 0; }
.project-grid {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 26px; align-items: center;
}
.project-grid.flip .browser { order: 2; }
@media (max-width: 860px) {
  .project-grid, .project-grid.flip { grid-template-columns: 1fr; }
  .project-grid.flip .browser { order: 0; }
}
.browser { transition: border-color .25s var(--ease); }
.browser .term-bar .url {
  display: flex; gap: 10px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser .url span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.browser .url b { color: var(--phos); font-weight: 500; flex: none; }
.browser .url b::before { content: '● '; font-size: 9px; animation: pulse 2s infinite; }
.shot { margin: 0; background: var(--bg); }
.shot img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; object-position: top; filter: saturate(.9); transition: transform .5s var(--ease), filter .5s var(--ease); }
.project:hover .shot img { transform: scale(1.02); filter: saturate(1); }

.p-num { margin: 0 0 6px; font-size: 12px; color: var(--phos-dim); letter-spacing: .12em; text-transform: uppercase; }
.p-num::before { content: '# '; color: var(--ink-dim); }
.project h3 { margin: 0; font-size: clamp(22px, 3vw, 28px); color: var(--ink-hi); font-weight: 700; }
.project h3 em { font-style: normal; color: var(--phos); text-shadow: 0 0 16px rgba(70,247,143,.35); }
.p-sub { margin: 4px 0 12px; color: var(--amber); font-size: 13px; }
.project .desc { margin: 0 0 16px; color: var(--ink-dim); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chips span {
  font-size: 12.5px; color: var(--ink);
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 999px; padding: 4.5px 12px;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover, .chips span:hover { border-color: var(--phos-dim); color: var(--phos-hi); transform: translateY(-1px); }

.pstats { display: flex; flex-wrap: wrap; gap: 26px; margin: 18px 0 4px; }
.pstats b { display: block; font-size: 19px; color: var(--phos-hi); font-weight: 600; }
.pstats span { font-size: 11.5px; color: var(--ink-dim); }

.plink { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--phos); border-bottom: 1px dotted var(--phos-dim); padding-bottom: 2px; transition: color .2s, border-color .2s, text-shadow .2s; }
.plink:hover { color: var(--phos-hi); border-color: var(--phos); text-shadow: 0 0 12px rgba(70,247,143,.45); }
.plink .ar { transition: transform .2s var(--ease); }
.plink:hover .ar { transform: translate(2px, -2px); }

/* catatan kasus */
.case-note {
  position: relative; margin: 26px 0 0;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 10px; padding: 18px 20px;
  color: var(--ink); font-size: 14px;
}
.case-note::before {
  content: '# ' attr(data-label);
  display: inline-block; margin-bottom: 8px;
  font-size: 11.5px; color: var(--amber); letter-spacing: .1em; text-transform: uppercase;
}
.case-note b { color: var(--phos-hi); font-weight: 600; }

/* ---------- keahlian ---------- */
.skill-row {
  display: grid; grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 3px 18px; padding: 20px 4px;
  border-bottom: 1px dashed var(--line);
}
.skill-row:first-of-type { border-top: 1px solid var(--line); margin-top: 26px; }
.s-idx { color: var(--ink-dim); font-size: 12.5px; padding-top: 5px; }
.skill-row h3 { margin: 0; font-size: 15.5px; color: var(--ink-hi); font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.badge { font-size: 11px; color: var(--ink-dim); font-weight: 400; }
.badge::before { content: '[ '; color: var(--phos-dim); }
.badge::after { content: ' ]'; color: var(--phos-dim); }
.badge.hot { color: var(--amber); }
.badge.hot::before, .badge.hot::after { color: var(--amber); }

.meter { display: flex; align-items: center; gap: 4px; align-self: center; }
.meter i {
  width: 13px; height: 15px;
  background: rgba(70,247,143,.08);
  border: 1px solid var(--line);
  opacity: .85;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
.meter i.on { background: var(--phos); border-color: var(--phos); box-shadow: 0 0 9px rgba(70,247,143,.55); }
.meter i.hot.on { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 9px rgba(255,180,84,.55); }
.meter small { margin-left: 9px; color: var(--ink-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.skill-row > p { grid-column: 2 / 4; margin: 0; color: var(--ink-dim); font-size: 13.5px; max-width: 62ch; }
@media (max-width: 640px) {
  .skill-row { grid-template-columns: 1fr; }
  .s-idx { padding-top: 0; }
  .meter { justify-self: start; }
  .skill-row > p { grid-column: 1; }
}

/* ---------- sertifikat ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--bg-raise);
  margin-top: 2.4rem;
}
.stat-strip > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b { display: block; font-size: clamp(22px, 3.4vw, 30px); color: var(--phos-hi); font-weight: 700; text-shadow: 0 0 16px rgba(70,247,143,.3); font-variant-numeric: tabular-nums; }
.stat-strip b i { font-style: normal; color: var(--ink-dim); font-size: .6em; }
.stat-strip span { font-size: 12px; color: var(--ink-dim); }
@media (max-width: 640px) { .stat-strip { grid-template-columns: 1fr; } .stat-strip > div { border-right: 0; border-bottom: 1px solid var(--line); } .stat-strip > div:last-child { border-bottom: 0; } }

.cert { margin: 40px auto 0; }
/* artikel panjang di bawah layar: tunda render sampai mendekat
   (content-visibility) — scroll di HP jadi jauh lebih enteng */
.cert, .project { content-visibility: auto; contain-intrinsic-size: auto 760px; }
.cert-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.c-idx { font-size: 12.5px; color: var(--phos-dim); }
.c-kind { font-size: 11.5px; color: var(--ink-dim); border: 1px dashed var(--line-hot); border-radius: 999px; padding: 3px 11px; }
.c-kind.hot { color: var(--amber); border-color: rgba(255,180,84,.4); }
.cert h3 { margin: 10px 0 0; font-size: clamp(20px, 3vw, 26px); color: var(--ink-hi); font-weight: 700; }
.cert h3 em { font-style: normal; color: var(--phos); text-shadow: 0 0 16px rgba(70,247,143,.35); }
.c-sub { margin: 4px 0 0; color: var(--ink-dim); font-size: 13px; }
.cert-grid {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 24px; margin-top: 18px; align-items: start;
}
@media (max-width: 860px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-frame { position: relative; }
.stamp {
  position: absolute; top: -12px; right: 14px; z-index: 2;
  background: var(--amber); color: #221204;
  font-size: 10.5px; font-weight: 700; line-height: 1.35; text-align: center;
  padding: 7px 11px; border-radius: 6px;
  transform: rotate(4deg);
  box-shadow: 0 6px 18px rgba(255,180,84,.25);
}
.lightboxable { cursor: zoom-in; }
.lightboxable img { transition: transform .45s var(--ease), filter .45s var(--ease); }
.lightboxable:hover img { transform: scale(1.02); filter: brightness(1.08); }
.cert .body { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.cert .body strong { color: var(--phos-hi); font-weight: 600; }
.cert .body em { font-style: italic; color: var(--ink); }
.kv-list { margin: 4px 0 16px; }
.cert .chips { margin-top: 2px; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(2,4,3,.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 26px; cursor: zoom-out;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  /* serahkan gesture penuh ke JS: geser samping = pindah,
     geser bawah = tutup — tanpa tabrakan sama scroll browser */
  touch-action: none;
}
.lb.open { opacity: 1; visibility: visible; }
.lb img {
  max-width: min(920px, 94vw); max-height: 80vh;
  border: 1px solid var(--line-hot); border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
  transform: scale(.96);
  transition: transform .3s var(--ease);
}
.lb.open img { transform: none; }
.lb-x {
  position: absolute; top: 16px; right: 20px;
  color: var(--ink-dim); font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; background: var(--bg-raise);
  transition: color .2s, border-color .2s;
}
.lb-x:hover { color: var(--phos-hi); border-color: var(--line-hot); }

/* navigasi galeri di dalam lightbox: tombol panah + pembuka halaman */
.lb-nav {
  position: absolute; top: 50%; margin-top: -22px; z-index: 3;
  width: 44px; height: 44px;
  background: rgba(5,8,6,.72); color: var(--phos);
  border: 1px solid var(--line-hot); border-radius: 10px;
  font: 600 22px/1 var(--mono); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .15s var(--ease);
}
.lb-nav:hover { color: var(--phos-hi); border-color: var(--phos-dim); background: rgba(70,247,143,.08); }
.lb-nav:active { transform: scale(.92); }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-count {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .14em; color: var(--phos);
  background: rgba(5,8,6,.78); border: 1px solid var(--line-hot);
  border-radius: 6px; padding: 3px 10px; font-variant-numeric: tabular-nums;
  pointer-events: none; white-space: nowrap;
}
/* umpan balik tekan saat menyentuh gambar sertifikat */
.lightboxable:active img { transform: scale(.99); }

/* ---------- hobi: mixtape ---------- */
.mixtape { margin-top: 1.6rem; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mixtape-head {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between;
  padding: 14px 18px; background: var(--bg-elev); border-bottom: 1px solid var(--line);
}
.mixtape-head h3 { margin: 0; font-size: 14.5px; color: var(--ink-hi); font-weight: 600; }
.mixtape-head .side { font-size: 11.5px; color: var(--amber); letter-spacing: .1em; }
.track {
  display: grid; grid-template-columns: 24px 52px minmax(0,1fr) auto;
  gap: 4px 16px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.track:last-child { border-bottom: 0; }
.track:hover { background: rgba(70,247,143,.04); }
.track .eq { display: flex; gap: 2.5px; align-items: flex-end; height: 20px; }
.track .eq i { width: 3.5px; height: 22%; background: var(--phos-dim); border-radius: 1px; transition: background .3s; }
.track.playing .eq i { background: var(--phos); animation: eq .9s ease-in-out infinite alternate; box-shadow: 0 0 8px rgba(70,247,143,.4); }
.track.playing .eq i:nth-child(2) { animation-delay: .12s; animation-duration: .7s; }
.track.playing .eq i:nth-child(3) { animation-delay: .28s; animation-duration: 1.1s; }
.track.playing .eq i:nth-child(4) { animation-delay: .42s; animation-duration: .8s; }
@keyframes eq { from { height: 14%; } to { height: 95%; } }
.track .t-no { color: var(--ink-dim); font-size: 12px; grid-column: 1; }
.track h4 { margin: 0; font-size: 14px; color: var(--ink-hi); font-weight: 600; }
.track.playing h4 { color: var(--phos-hi); text-shadow: 0 0 12px rgba(70,247,143,.3); }
.track p { grid-column: 3 / 5; margin: 0; color: var(--ink-dim); font-size: 13px; }
.track .t-len { color: var(--ink-dim); font-size: 12px; white-space: nowrap; }
.track .eq { grid-column: 2; grid-row: 1 / span 2; }
.track .t-no { grid-column: 1; grid-row: 1 / span 2; }
.track > div { grid-column: 3; grid-row: 1; }
.track h4 { grid-column: 3; grid-row: 1; }
.track .t-len { grid-column: 4; grid-row: 1; }
.track p { grid-column: 3 / 5; grid-row: 2; }
@media (max-width: 560px) {
  .track { grid-template-columns: 24px 52px minmax(0,1fr); }
  .track .t-len { grid-column: 3; grid-row: 3; }
  .track p { grid-column: 3 / 4; grid-row: 2; }
}

.quote-block {
  margin: 26px 0 0; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--phos-dim);
}
.quote-block p { margin: 0; color: var(--ink); font-size: 15px; }
.quote-block cite { display: block; margin-top: 8px; font-style: normal; font-size: 12.5px; color: var(--ink-dim); }
.quote-block cite::before { content: '-- '; color: var(--phos-dim); }

/* ---------- kontak ---------- */
.mail-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 2.2rem;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px;
}
.addr { font-size: clamp(15px, 2.6vw, 19px); color: var(--phos); word-break: break-all; transition: text-shadow .2s, color .2s; }
.addr::before { content: '$ cat email.txt > '; color: var(--phos-dim); font-size: .8em; }
.addr:hover { color: var(--phos-hi); text-shadow: 0 0 14px rgba(70,247,143,.45); }
.copy-btn {
  margin-left: auto;
  background: transparent; color: var(--phos);
  border: 1px solid var(--line-hot); border-radius: 8px;
  padding: 8px 14px; font: 500 12.5px var(--mono); cursor: pointer;
  transition: all .2s var(--ease);
}
.copy-btn::before { content: '$ '; color: var(--phos-dim); }
.copy-btn:hover { background: rgba(70,247,143,.07); border-color: var(--phos-dim); }
.copy-btn.done { color: var(--phos-hi); border-color: var(--phos); }
@media (max-width: 560px) { .copy-btn { margin-left: 0; } }

.chan-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto 24px;
  gap: 4px 18px; align-items: baseline;
  padding: 15px 6px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.chan-row:first-of-type { border-top: 1px solid var(--line); margin-top: 22px; }
.chan-row:hover { background: rgba(70,247,143,.035); padding-left: 14px; }
.c-label { color: var(--ink-dim); font-size: 12.5px; }
.c-label::before { content: '> '; color: var(--phos-dim); }
.c-val { color: var(--ink); font-size: 14px; text-align: right; word-break: break-all; }
.chan-row:hover .c-val { color: var(--phos-hi); }
.c-go { color: var(--phos); transition: transform .2s var(--ease); }
.chan-row:hover .c-go { transform: translate(3px, -3px); }
@media (max-width: 560px) {
  .chan-row { grid-template-columns: minmax(0,1fr) 20px; }
  .c-val { grid-column: 1; grid-row: 2; text-align: left; }
  .c-go { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- terminal interaktif ---------- */
.itrm-hist {
  min-height: 130px; max-height: 300px; overflow-y: auto;
  padding: 16px 18px 6px;
  font-size: 13.5px; line-height: 1.65; color: var(--ink-dim);
}
.itrm-hist .ln { margin: 0 0 3px; white-space: pre-wrap; word-break: break-word; }
.itrm-hist .ln.cmd { color: var(--ink); }
.itrm-hist .ln.cmd::before { content: 'guest@alan-os:~$ '; color: var(--phos); }
.itrm-hist .ln.err { color: var(--red); }
.itrm-hist .ln.ok { color: var(--phos); }
.itrm-hist .ln.warn { color: var(--amber); }
.itrm-hist .ln a { border-bottom: 1px dotted var(--phos-dim); }
.itrm-input {
  display: flex; align-items: center; gap: 9px;
  border-top: 1px solid var(--line);
  padding: 13px 18px; font-size: 13.5px;
}
.itrm-input .pp { color: var(--phos); white-space: nowrap; }
.itrm-input .pp::after { content: ' $'; color: var(--phos-dim); }
.itrm-input input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--ink); font: inherit; caret-color: var(--phos);
}
.itrm-input input::placeholder { color: var(--ink-dim); opacity: .6; }

/* ---------- footer ---------- */
.foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-raise);
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}
.foot-marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding: 9px 0; }
.foot-marquee .tape-track { font-size: 12px; animation-duration: 34s; }
.foot-grid {
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr) minmax(0,.9fr);
  gap: 22px; padding-top: 26px; padding-bottom: 22px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.foot h5 { margin: 0 0 10px; font-size: 12px; color: var(--phos-dim); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.foot h5::before { content: '## '; color: var(--line-hot); }
.fname { margin: 0 0 6px; color: var(--ink-hi); font-weight: 600; font-size: 14px; }
.note { margin: 0; color: var(--ink-dim); font-size: 12.5px; max-width: 44ch; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { padding: 2.5px 0; }
.foot-list a { color: var(--ink-dim); font-size: 13px; transition: color .2s; }
.foot-list a i { font-style: normal; color: var(--phos-dim); margin-right: 8px; font-size: 11px; }
.foot-list a:hover { color: var(--phos-hi); }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 14px; padding-bottom: 16px;
  font-size: 12px; color: var(--ink-dim);
}
.foot-base b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.foot-base a { color: var(--ink-dim); transition: color .2s; }
.foot-base a:hover { color: var(--phos); }
@media (max-width: 560px) { .foot-base { flex-direction: column; gap: 4px; } }

/* ---------- sistem reveal ---------- */
[data-rv] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-rv="left"] { transform: translateX(-20px); }
[data-rv="right"] { transform: translateX(20px); }
[data-rv="scale"] { transform: scale(.965); }
[data-rv].is-in { opacity: 1; transform: none; will-change: auto; }

/* hero & baris stagger pakai easing pegas biar terasa hidup,
   bukan sekadar fade */
.hero [data-rv], [data-stagger] > * {
  transition-timing-function: cubic-bezier(.26, 1.25, .4, 1);
}

/* varian "print": teks muncul ke bawah baris demi baris,
   biar kesannya halaman dirender sedikit demi sedikit saat di-scroll.
   v4.1: kalau JS aktif (body.fx-on), paragrafnya yang dikendalikan
   per-frame mengikuti posisi scroll — bukan sekali picu. */
[data-rv="print"] {
  opacity: 1; transform: none;
  clip-path: inset(0 0 96% 0);
  transition: clip-path .9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: clip-path;
}
[data-rv="print"].is-in { clip-path: inset(0 0 -2% 0); }
body.fx-on [data-rv="print"] {
  clip-path: none;
  transition: none;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

/* judul seksi yang ter-cetak dari kiri ke kanan */
[data-tx] {
  opacity: 0; clip-path: inset(0 100% 0 0);
}
[data-tx].t-in {
  opacity: 1; clip-path: inset(0 -3% 0 0);
  transition: clip-path .75s var(--ease) .1s, opacity .18s linear .1s;
  will-change: clip-path;
}

.scroll-hint {
  text-align: center; color: var(--ink-dim); font-size: 12px;
  padding: 8px 0 20px;
  animation: hint 2.4s ease-in-out infinite;
}
body.scrolled .scroll-hint {
  opacity: 0 !important;
  animation: none;
  transition: opacity .35s ease;
}
.scroll-hint::before { content: ''; }
@keyframes hint { 0%, 100% { opacity: .45; transform: translateY(0); } 50% { opacity: 1; transform: translateY(4px); } }

/* ---------- pengguna yang sipir gerakannya ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crt-beam, .crt-flick, .tape-track, .cur, .tcur, .pulse, .scroll-hint, .track.playing .eq i, .browser .url b::before { animation: none !important; }
  [data-rv] { opacity: 1; transform: none; transition: none; }
  [data-rv="print"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  body.fx-on [data-rv="print"] { opacity: 1; transform: none; }
  [data-tx] { opacity: 1; clip-path: none; transition: none; }
  .boot .bl { opacity: 1; transform: none; transition: none; }
  .boot-sweep { display: none; }
  .rule::after { transform: scaleX(1); transition: none; }
  .render-line, .ripple, .tab-ind, .glare { display: none !important; }
  .nf-ava { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ============================================================
   v4.1 — lapisan motion
   semua efek berbasis transform/opacity doang, biar komposit
   di GPU dan tetap mulus di HP. tanpa library, tanpa jank.
   ============================================================ */

/* ------ render-line: kepala render CRT yang menyusuri layar
   saat halaman digulir. persennya nyambung ke progres dokumen
   beneran (diisi JS). ------ */
.render-line {
  position: fixed; left: 0; right: 0; top: 0; z-index: 94;
  height: 2px; pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%, rgba(70,247,143,.55) 28%,
    rgba(125,255,180,.95) 50%, rgba(70,247,143,.55) 72%, transparent 100%);
  box-shadow: 0 0 14px rgba(70,247,143,.55), 0 6px 22px rgba(70,247,143,.18);
  opacity: 0;
  will-change: transform, opacity;
}
.render-line b {
  position: absolute; right: 12px; top: 7px;
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  color: var(--phos); font-variant-numeric: tabular-nums;
  background: rgba(5,8,6,.78);
  border: 1px solid var(--line-hot); border-radius: 4px;
  padding: 1px 7px; white-space: nowrap;
}

/* ------ indikator tab yang meluncur di topbar ------ */
.tab-ind {
  position: absolute; bottom: 0; left: 0; z-index: 2;
  height: 2px; width: 0;
  background: var(--phos); border-radius: 2px;
  box-shadow: 0 0 10px rgba(70,247,143,.65);
  transition: transform .5s cubic-bezier(.3, 1.2, .3, 1), width .5s cubic-bezier(.3, 1.2, .3, 1);
  pointer-events: none;
}
/* saat fx aktif, garis aktifnya digantikan si indikator */
body.fx-on .tab.on { border-bottom-color: transparent; }

/* ------ glare buat jendela terminal (dibuat JS, diposisikan
   ngikutin kursor lewat background gradient) ------ */
.glare {
  position: absolute; inset: -1px; z-index: 3;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at 50% 50%, rgba(125,255,180,.10), transparent 62%);
  opacity: 0; transition: opacity .35s var(--ease);
}
@media (hover: hover) {
  .term.tilt:hover .glare { opacity: 1; }
}
/* kartu tilt: JANGAN ubah transition di sini — reveal [data-rv]
   masih butuh transisi transform-nya. JS melepas attr data-rv
   750ms setelah reveal selesai, dan barulah tilt jalan krisp
   (transform tanpa transisi, dikendalikan lerp per-frame). */

/* ------ tombol magnet: transisi transform dilepas biar lerp
   JS-nya yang pegang gerakan ------ */
.tbtn.magnet {
  transition: box-shadow .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
}
.plink.magnet {
  transition: color .2s var(--ease), border-color .2s var(--ease), text-shadow .2s var(--ease);
}

/* ------ ripple sentuhan ------ */
.ripple {
  position: absolute; z-index: 6; border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(70,247,143,.32) 0%, rgba(70,247,143,.12) 45%, transparent 70%);
  transform: scale(0);
  animation: ripple .55s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* elemen penerima ripple: butuh context + potongan rapi */
.tbtn, .tab, .chip, .track, .fact-btn, .copy-btn, .row-item {
  position: relative; overflow: hidden;
}
.chip { overflow: hidden; }

/* ------ umpan balik tekan: semua tombol merosot dikit ------ */
.tbtn:active, .tab:active, .chip:active, .track:active,
.fact-btn:active, .copy-btn:active { transform: scale(.965); }

/* elemen interaktif: matiin zoom dobel-ketuk biar respons di HP */
a, button, .tab, .track, .chip, .row-item, .chan-row, .lightboxable {
  touch-action: manipulation;
}

/* ------ avatar neofetch mengapung pelan ------ */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.nf-ava { animation: floaty 6.5s ease-in-out infinite; }

/* ------ penyesuaian layar sentuh ------ */
@media (pointer: coarse) {
  /* blur lebih tipis = scroll makin enteng */
  .topbar { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .render-line b { display: none; }
  [data-rv] { transform: translateY(12px); }
  /* target sentuh minimal 44px */
  .tab { padding: 0 13px; }
  .copy-btn, .fact-btn { padding-top: 11px; padding-bottom: 11px; }
}
/* hover nempel di layar sentuh? cabut efek yang lengket */
@media (hover: none) {
  .row-item:hover { background: transparent; padding-left: 6px; }
  .row-item:hover h3 { color: var(--ink-hi); text-shadow: none; }
  .row-item:hover .go { transform: none; }
  .chan-row:hover { background: transparent; padding-left: 6px; }
  .term.tilt:hover .glare { opacity: 0; }
}
