@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Sans:wght@400;500&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Grey Space theme tokens ─────────────────────────────────────────── */
:root {
  /* Aksen default = dark mode. Light mode menimpanya di bawah. Canvas rasi
     bintang membaca --accent lewat skyReadColors(), jadi bintangnya ikut
     berganti warna tanpa kode tambahan. */
  --accent: #54D6DE;
  --accent-soft: rgba(84, 214, 222, 0.14);
}
html[data-mode="dark"] {
  --bg: #17181B;
  --panel: #1D1F23;
  --panel-2: #24262B;
  --line: #34363B;
  --line-strong: #46484E;
  --text-primary: #E7E7E5;
  --text-secondary: #8B8D93;
  --text-dim: #66686E;
  color-scheme: dark;
}
html[data-mode="light"] {
  /* Royal blue, bukan cyan. Cyan di atas latar terang jatuh di bawah 3:1 dan
     jadi tidak terbaca; royal blue standar (#4169E1) juga cuma ~3,8:1, masih
     di bawah ambang. Shade ini terukur di atas 4,5:1 terhadap --bg, jadi
     tetap aman untuk label dan tautan. Nilainya diverifikasi, bukan dikira. */
  --accent: #3050C0;
  --accent-soft: rgba(48, 80, 192, 0.13);
  --bg: #E4E4E1;
  --panel: #EEEEEC;
  --panel-2: #F5F5F3;
  --line: #CFCFCC;
  --line-strong: #B8B8B4;
  --text-primary: #202124;
  --text-secondary: #5B5C60;
  --text-dim: #8A8B8E;
  color-scheme: light;
}

/* ── Base ────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  transition: background 0.25s ease, color 0.25s ease;
}
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; line-height: 1.15; }
.mono { font-family: 'IBM Plex Mono', monospace; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* absolute (not fixed) so the sky scrolls with the page, giving all 88
   constellations the full document height to drift across */
/* Absolute dan setinggi dokumen (tingginya diset app.js), BUKAN fixed.
   Dengan absolute, canvas ikut lapisan yang di-scroll: compositor menggesernya
   tanpa gambar ulang, jadi scroll-nya mulus. Versi fixed menggambar dari scrollY
   di dalam rAF dan selalu tertinggal satu frame — langitnya terasa menyeret. */
#sky { position: absolute; top: 0; left: 0; width: 100%; z-index: 0; pointer-events: none; }
.wrap { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
}
.logo { font-size: 15px; font-weight: 500; color: var(--text-primary); letter-spacing: 0.06em; }
.logo:hover { color: var(--accent); text-decoration: none; }
.nav-links { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; font-size: 12px; }
.nav-links a { color: var(--text-secondary); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
/* CTA utama: aksi #1 recruiter, jadi selalu terlihat tanpa perlu scroll. */
.nav-cv {
  flex-shrink: 0; font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text-primary); white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-cv:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.mode-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.mode-toggle button {
  font: inherit; font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 12px; border: 0; background: none; cursor: pointer;
  color: var(--text-dim);
}
.mode-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  align-items: center; gap: 40px;
  padding: 88px 0 64px;
}
.eyebrow { font-size: 12px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 20px; }
.lede { color: var(--text-secondary); max-width: 52ch; margin-bottom: 32px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; justify-content: start; }
.stat-n { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 500; }
.stat-l { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }
.stats-note { margin: 14px 0 0; font-size: 10.5px; letter-spacing: 0.05em; color: var(--text-dim); }

/* ── Status lamps ────────────────────────────────────────────────────── */
.status-lamps {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  list-style: none; padding: 0; margin: 0 0 20px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
}
.status-lamps li { display: flex; align-items: center; gap: 7px; }
.status-lamps li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-strong); flex-shrink: 0;
}
.status-lamps .lit { color: var(--text-primary); }
.status-lamps .lit::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Satu-satunya motion berulang di halaman ini, dan disengaja: "Open to work"
   adalah hal yang paling ingin dilihat recruiter. Hanya lampu pertama. */
@keyframes lamp-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 5px var(--accent-soft); }
}
.status-lamps li:first-child.lit::before {
  animation: lamp-pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .status-lamps li:first-child.lit::before { animation: none; }
}

/* hero globe — bordered card with a hard offset shadow (stamp-style),
   colors stay on the existing grey/cyan palette */
.hero-globe { perspective: 1400px; }
.globe-box {
  position: relative;
  width: 100%; max-width: 340px; aspect-ratio: 1 / 1; margin: 0 auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 8px 8px 0 0 var(--line-strong);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.globe-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.globe-canvas:active { cursor: grabbing; }

/* flip card: 5 pages cycled by one button — photo, zodiac globe, sudoku,
   chess, and a book quote. Each `.flip-page` is a persistent element that
   flip-cards.js toggles with a two-stage rotateY so it still reads as a
   flip, not a fade. */
.flip-controls {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
}
.flip-count { font-size: 10px; letter-spacing: 0.06em; color: var(--text-dim); }
.flip-btn {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  border: 1px solid var(--line-strong); background: var(--panel-2);
  color: var(--text-secondary); font-size: 14px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.flip-btn:hover { border-color: var(--accent); color: var(--accent); }
.flip-pages { position: relative; width: 100%; height: 100%; perspective: 1200px; }
.flip-page {
  position: absolute; inset: 0; border-radius: 8px; overflow: hidden;
  background: var(--panel);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateY(0deg); opacity: 1;
  transition: transform 0.34s ease, opacity 0.34s ease;
}
.flip-page:not(.active) { opacity: 0; pointer-events: none; z-index: 1; }
.flip-page.active { z-index: 2; }
.flip-page.leave { transform: rotateY(-100deg); opacity: 0; }
.flip-page.enter-start { transform: rotateY(100deg); opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .flip-page { transition: none; }
}

/* flip tooltip: a short line about this page, on hover/focus of the card */
.flip-tooltip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 6;
  width: 280px; max-width: 78vw;
  margin: 0; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--panel-2);
  box-shadow: 4px 4px 0 0 var(--line-strong);
  font-size: 11.5px; line-height: 1.55; color: var(--text-secondary);
  text-align: left; text-transform: none; letter-spacing: normal;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.flip-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  width: 10px; height: 10px; margin-left: -5px; margin-top: -5px;
  background: var(--panel-2); border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong); transform: rotate(45deg);
}
.globe-box:hover .flip-tooltip, .globe-box:focus-within .flip-tooltip {
  opacity: 1; transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .flip-tooltip { transition: none; }
}

/* photo page */
.flip-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* book-quote page */
.quote-page {
  height: 100%; padding: 28px 24px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px;
}
.quote-page-text {
  font-size: 14px; line-height: 1.6; color: var(--text-primary);
  max-width: 30ch;
}
.quote-page-text::before { content: '\201C'; color: var(--accent); }
.quote-page-text::after { content: '\201D'; color: var(--accent); }
.quote-page-meta { font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.04em; }
.quote-more {
  margin-top: 4px; padding: 5px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: none; color: var(--text-secondary);
  font: inherit; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.quote-more:hover { border-color: var(--accent); color: var(--accent); }

/* sudoku */
.sudoku { display: flex; flex-direction: column; height: 100%; padding: 12px; gap: 8px; }
/* padding-right clears the flip controls (page counter + button), which
   sit absolutely at the card's top-right corner above this row */
.sudoku-head { display: flex; align-items: center; justify-content: space-between; padding-right: 66px; }
.sudoku-levels { display: flex; gap: 4px; }
.sudoku-levels button {
  width: 22px; height: 22px; border-radius: 4px; padding: 0;
  border: 1px solid var(--line-strong); background: none; color: var(--text-dim);
  font: inherit; font-size: 11px; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.sudoku-levels button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.sudoku-timer { font-size: 11px; color: var(--text-dim); }

.sudoku-grid {
  flex: 1; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr);
  background: var(--line-strong); border: 1.5px solid var(--line-strong); border-radius: 3px;
  gap: 1px; overflow: hidden;
}
.sudoku-cell {
  background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-primary); font-weight: 600;
}
.sudoku-cell.b-right { border-right: 1.5px solid var(--line-strong); }
.sudoku-cell.b-bottom { border-bottom: 1.5px solid var(--line-strong); }
.sudoku-cell input {
  width: 100%; height: 100%; border: 0; background: none; text-align: center;
  font: inherit; font-size: 12px; font-weight: 400; color: var(--accent); outline: none; padding: 0;
}
.sudoku-cell.correct { background: var(--accent-soft); }
.sudoku-cell.wrong input { color: #e35d5d; }

.sudoku-actions { display: flex; gap: 6px; }
.sudoku-actions button {
  flex: 1; padding: 5px 0; border-radius: 5px;
  border: 1px solid var(--line-strong); background: none; color: var(--text-secondary);
  font: inherit; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.sudoku-actions button:hover { border-color: var(--accent); color: var(--accent); }
.sudoku-msg { min-height: 14px; margin: 0; font-size: 10.5px; color: var(--accent); text-align: center; }

/* chess */
.chess { display: flex; flex-direction: column; height: 100%; padding: 12px; gap: 8px; }
.chess-head { display: flex; align-items: center; justify-content: space-between; padding-right: 66px; gap: 8px; }
.chess-levels { display: flex; gap: 4px; flex-shrink: 0; }
.chess-levels button {
  width: 22px; height: 22px; border-radius: 4px; padding: 0;
  border: 1px solid var(--line-strong); background: none; color: var(--text-dim);
  font: inherit; font-size: 11px; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chess-levels button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.chess-status {
  font-size: 10.5px; color: var(--text-dim); text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chess-board {
  flex: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  border: 1.5px solid var(--line-strong); border-radius: 3px; overflow: hidden;
}
.chess-cell {
  border: 0; padding: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-primary);
  transition: background 0.12s ease;
}
.chess-cell:disabled { cursor: default; }
.chess-cell.light { background: var(--panel-2); }
.chess-cell.dark { background: color-mix(in srgb, var(--panel) 65%, var(--line) 35%); }
.chess-cell.selected { box-shadow: inset 0 0 0 2px var(--accent); }
.chess-cell.in-check { background: color-mix(in srgb, #e35d5d 30%, transparent); }
.chess-cell.move-hint::after {
  content: ''; width: 22%; height: 22%; border-radius: 50%; background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent) inset;
}
.chess-cell.capture-hint { box-shadow: inset 0 0 0 2px var(--accent); }
.chess-actions { display: flex; gap: 6px; }
.chess-actions button {
  flex: 1; padding: 5px 0; border-radius: 5px;
  border: 1px solid var(--line-strong); background: none; color: var(--text-secondary);
  font: inherit; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chess-actions button:hover { border-color: var(--accent); color: var(--accent); }
.chess-msg { min-height: 14px; margin: 0; font-size: 10.5px; color: var(--accent); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Sections & panels ───────────────────────────────────────────────── */
.section { padding: 40px 0; }
.section-label {
  font-size: clamp(34px, 6vw, 64px); letter-spacing: 0.02em; color: var(--text-secondary);
  margin-bottom: 20px;
  /* Ini <h2> — besarnya disengaja supaya benar-benar terbaca sebagai judul
     section, bukan caption kecil. Berat dan leading dari aturan h1,h2,h3
     dikunci ulang karena family-nya mono, bukan Space Grotesk. */
  font-weight: 500; line-height: 1.15;
}
.section-label::before { content: '▸ '; color: var(--accent); }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* tracks */
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.track { padding: 26px; }
.track-role { font-size: 11px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px; }
.track h3 { font-size: 22px; margin-bottom: 12px; }
/* Prosa 5 baris tidak diset mono. Mono tetap dipakai untuk label dan angka. */
.track p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 16px; font-family: 'IBM Plex Sans', sans-serif; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li {
  font-size: 11.5px; color: var(--text-secondary);
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 3px 9px;
}

/* signal rows */
.signal-list { overflow: hidden; }
.signal + .signal { border-top: 1px solid var(--line); }
.signal summary {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px; cursor: pointer; list-style: none;
}
.signal summary::-webkit-details-marker { display: none; }
/* Chevron: satu-satunya petunjuk bahwa baris ini bisa dibuka. Jangan dihapus. */
.signal summary::after {
  content: ''; flex-shrink: 0;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.signal[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.signal summary:hover::after { border-color: var(--accent); }
.signal summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.signal summary:hover { background: var(--panel-2); }
.signal[open] summary { background: var(--panel-2); }
.sig-id { font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; flex-shrink: 0; }
.signal[open] .sig-id { color: var(--accent); }
.sig-main { flex: 1; min-width: 0; }
.sig-category { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.sig-name { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 16px; }
.sig-sub { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.sig-bars { display: flex; gap: 3px; align-items: flex-end; flex-shrink: 0; }
.sig-bars i { width: 4px; background: var(--line-strong); border-radius: 1px; }
.sig-bars i:nth-child(1) { height: 6px; }
.sig-bars i:nth-child(2) { height: 9px; }
.sig-bars i:nth-child(3) { height: 12px; }
.sig-bars i:nth-child(4) { height: 15px; }
.sig-bars i:nth-child(5) { height: 18px; }
.sig-bars[data-fill="5"] i,
.sig-bars[data-fill="4"] i:nth-child(-n+4),
.sig-bars[data-fill="3"] i:nth-child(-n+3) { background: var(--accent); }
.sig-detail {
  margin: 0; padding: 6px 20px 18px 20px;
  color: var(--text-secondary); font-size: 14px;
  list-style: none;
}
.sig-detail li { padding-left: 16px; position: relative; margin-top: 8px; }
.sig-detail li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }
.sig-detail strong { color: var(--text-primary); }

/* skills */
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.skill-group { padding: 22px; }
.skill-id { font-size: 11px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px; }

/* programs */
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.program { display: block; padding: 22px; color: inherit; }
.program:hover { text-decoration: none; border-color: var(--accent); }
.program-id { font-size: 10.5px; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 10px; }
.program:hover .program-id { color: var(--accent); }
.program h3 { font-size: 18px; margin-bottom: 8px; }
.program p { color: var(--text-secondary); font-size: 13.5px; }

/* education */
.edu-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.edu { padding: 22px; }
.edu h3 { font-size: 18px; margin-bottom: 4px; }
.edu p { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }

/* ── Scroll-to-top rocket ─────────────────────────────────────────────── */
.rocket-btn {
  position: fixed; left: 20px; bottom: 20px; z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; line-height: 1;
  background: var(--panel); border: 1.5px solid var(--line-strong);
  box-shadow: 4px 4px 0 0 var(--line-strong);
  cursor: pointer;
  opacity: 0; transform: translateY(10px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}
.rocket-btn.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.rocket-btn:hover { border-color: var(--accent); }
.rocket-btn.launching { animation: rocket-launch 0.7s cubic-bezier(.3, 0, .55, 1) forwards; }
@keyframes rocket-launch {
  0%   { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-260px) scale(0.55) rotate(-12deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rocket-btn.launching { animation: none; opacity: 0; }
}

/* ── Contact / footer ────────────────────────────────────────────────── */
.contact { padding: 32px; text-align: center; }
.contact h2 { font-size: 28px; margin-bottom: 8px; }
.contact p { color: var(--text-secondary); margin-bottom: 22px; }
.contact-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 13px; }
.foot {
  text-align: center; font-size: 10px; letter-spacing: 0.16em;
  color: var(--text-dim); padding: 36px 0 28px;
}

/* ── Section lede: satu paragraf konteks di bawah label section ───────── */
.section-lede {
  max-width: 62ch; margin: 0 0 22px;
  color: var(--text-secondary); font-size: 14.5px;
}
.section-lede strong { color: var(--text-primary); font-weight: 500; }

/* ── References / testimoni — one-at-a-time slider ───────────────────── */
.quote-carousel { display: flex; align-items: center; gap: 12px; }
.quote-viewport { position: relative; flex: 1; min-height: 260px; overflow: hidden; transition: height 0.34s ease; }
.quote {
  position: absolute; inset: 0;
  padding: 22px; margin: 0; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateX(0);
  transition: transform 0.34s ease, opacity 0.34s ease;
}
.quote.active { opacity: 1; pointer-events: auto; z-index: 2; }
.quote.slide-out-left { transform: translateX(-28px); opacity: 0; }
.quote.slide-out-right { transform: translateX(28px); opacity: 0; }
.quote.slide-in-right { transform: translateX(28px); opacity: 0; transition: none; }
.quote.slide-in-left { transform: translateX(-28px); opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .quote { transition: none; }
}
.quote-id { font-size: 10.5px; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 12px; }
.quote blockquote {
  margin: 0 0 16px; padding: 0; flex: 1;
  font-size: 15.5px; line-height: 1.7; color: var(--text-primary);
}
/* margin negatif menutup spasi dari whitespace HTML yang collapse,
   supaya tanda kutip menempel rapat ke teks */
.quote blockquote::before { content: '\201C'; margin-right: -0.24em; }
.quote blockquote::after { content: '\201D'; margin-left: -0.26em; }
.quote figcaption {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.quote-avatar {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--accent);
}
.quote-who { display: flex; flex-direction: column; }
.quote-name { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; }
.quote-role { display: block; font-size: 11px; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }

.quote-nav {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; padding: 0;
  border: 1px solid var(--line-strong); background: var(--panel-2);
  color: var(--text-secondary); font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.quote-nav:hover { border-color: var(--accent); color: var(--accent); }

.quote-dots { display: flex; justify-content: center; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.quote-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0;
  background: var(--line-strong); cursor: pointer;
}
.quote-dots button[aria-selected="true"] { background: var(--accent); }

.quote-note { margin: 16px 0 0; font-size: 11px; color: var(--text-dim); max-width: 70ch; line-height: 1.6; }

/* ── Program cards: outline modul ────────────────────────────────────── */
.program { display: flex; flex-direction: column; }
.prg-meta {
  display: grid; grid-template-columns: auto 1fr; gap: 3px 12px;
  margin: 14px 0 0; font-size: 11px; line-height: 1.5;
}
.prg-meta dt { color: var(--text-dim); }
.prg-meta dd { margin: 0; color: var(--text-secondary); }
.prg-outline { margin-top: 14px; border-top: 1px solid var(--line); }
.prg-outline summary {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0 10px; cursor: pointer; list-style: none;
  font-size: 11px; letter-spacing: 0.08em; color: var(--accent);
}
.prg-outline summary::-webkit-details-marker { display: none; }
.prg-outline summary::after {
  content: ''; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}
.prg-outline[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.prg-outline summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prg-units { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: unit; }
.prg-units li {
  counter-increment: unit; position: relative;
  padding-left: 26px; margin-bottom: 10px;
}
.prg-units li::before {
  content: counter(unit); position: absolute; left: 0; top: 1px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: var(--accent); border: 1px solid var(--line-strong);
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
}
.prg-units strong { display: block; font-size: 13.5px; font-weight: 500; }
.prg-units span { display: block; font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }
.prg-outcome {
  margin: 0; padding: 10px 12px; font-size: 11px; line-height: 1.6;
  background: var(--accent-soft); color: var(--text-secondary);
  border-left: 2px solid var(--accent);
}
.prg-link { margin-top: auto; padding-top: 14px; font-size: 11px; letter-spacing: 0.06em; }

/* ── Instructional design case study ─────────────────────────────────── */
.case-block { padding: 22px; margin-bottom: 14px; }
.case-label { font-size: 10.5px; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 16px; font-weight: 400; line-height: 1.65; }
.case-sub, .case-when { color: var(--text-dim); letter-spacing: 0; text-transform: none; font-size: 10.5px; }
.case-intro { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); max-width: 70ch; }
.case-dl { margin: 0; display: grid; grid-template-columns: 190px 1fr; gap: 12px 22px; }
.case-dl dt { font-size: 12.5px; color: var(--text-primary); font-weight: 500; }
.case-dl dd { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.case-obj { margin: 0; padding: 0; list-style: none; }
.case-obj li {
  font-size: 14px; color: var(--text-secondary); line-height: 1.65;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
.case-obj li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.case-obj strong { color: var(--text-primary); font-weight: 500; }
.bloom {
  display: inline-block; margin-right: 8px; padding: 2px 8px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 3px;
}
.case-lessons { margin: 0; padding: 0; list-style: none; }
.case-lessons > li { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.case-lessons > li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.case-lesson-head { margin: 0 0 2px; font-size: 14.5px; }
.case-lesson-head strong { font-family: 'Space Grotesk', sans-serif; font-weight: 500; }
.case-lesson-head span { font-size: 11px; color: var(--text-dim); margin-left: 8px; }
.case-goal { margin: 0 0 12px; font-size: 11px; color: var(--accent); }
.case-flow { margin: 0 0 12px; padding: 0; list-style: none; }
.case-flow li {
  display: grid; grid-template-columns: 78px 1fr; gap: 12px;
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 7px;
}
.flow-kind {
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line);
  padding: 2px 0; text-align: center; border-radius: 3px;
  height: fit-content; margin-top: 2px;
}
/* ── Tangga instrumen (assessment + evaluation jadi satu) ────────────────
   Garis vertikal menyambungkan kelima anak tangga, jadi rung terakhir terbaca
   sebagai ujung yang dirancang — bukan sebagai bagian yang hilang. */
.ladder { margin: 0; padding: 0; list-style: none; }
.rung {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 1px solid var(--line);
}
.rung:last-child { padding-bottom: 0; }
.rung::before {
  content: ''; position: absolute; left: -4.5px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
/* Paragraf badan ditulis lebih dulu, lalu label dan judul di-scope dua kelas
   (.rung .rung-when) supaya menang atas `.rung p` — kalau tidak, keduanya
   tertimpa jadi 14px abu-abu. */
.rung p { font-size: 14px; color: var(--text-secondary); margin: 0 0 8px; max-width: 74ch; }
.rung p:last-child { margin-bottom: 0; }
.rung strong { color: var(--text-primary); font-weight: 500; }
.rung .rung-when {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 4px;
}
.rung .rung-what {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: 15px; color: var(--text-primary);
  margin: 0 0 6px;
}
.case-note, .case-limit {
  margin: 0; padding: 10px 14px; font-size: 12.5px; line-height: 1.6;
  color: var(--text-secondary); background: var(--panel-2);
  border-left: 2px solid var(--line-strong);
}
.case-limit { margin-top: 14px; max-width: 80ch; }

/* ── Measure control ─────────────────────────────────────────────────────
   Panel di sini lebar ~966px. Prosa 14px yang dibiarkan mengisi penuh berjalan
   ~140 karakter per baris — hampir dua kali batas nyaman (45–75), dan mata
   kehilangan jejak saat kembali ke awal baris berikutnya. Ukuran fontnya sudah
   benar; yang perlu dibatasi panjang barisnya. Sisa ruang di kanan itu memang
   disengaja, bukan layout yang belum jadi. */
.sig-detail li,
.case-flow li,
.case-note,
.case-limit,
.prg-outcome { max-width: 78ch; }
.case-dl dd { max-width: 72ch; }
.quote blockquote { max-width: 68ch; }
/* Design note tadinya 12,5px dan sekaligus paling lebar — kombinasi terburuk
   di halaman ini. */
.case-note, .case-limit { font-size: 13.5px; line-height: 1.65; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-globe { order: -1; }
  .globe-box { max-width: 240px; }
  .chess-cell { font-size: 16px; }
  .chess-status { font-size: 9.5px; }
  .stats { grid-template-columns: repeat(2, auto); gap: 18px 36px; }
  .track-grid, .skill-grid, .program-grid, .edu-grid { grid-template-columns: 1fr; }
  /* dl dua kolom jadi bertumpuk — 190px label tidak masuk di layar sempit */
  .case-dl, .prg-meta { grid-template-columns: 1fr; gap: 4px; }
  .case-dl dd { margin-bottom: 10px; }
  .case-flow li { grid-template-columns: 1fr; gap: 2px; }
  .flow-kind { width: 78px; }
  .case-block { padding: 18px; }
  .quote-viewport { min-height: 340px; }
  .quote-nav { width: 30px; height: 30px; font-size: 16px; }
  /* Nav TIDAK disembunyikan di mobile: halaman ini ~8.000px, tanpa nav
     recruiter tidak akan pernah sampai ke Contact. Baris 1 = logo + CV +
     toggle, baris 2 = link yang bisa di-scroll horizontal. */
  .nav { flex-wrap: wrap; gap: 12px 14px; justify-content: space-between; }
  .nav-cv { order: 1; margin-left: auto; }
  .mode-toggle { order: 2; }
  .nav-links {
    order: 3; flex: 0 0 100%; flex-wrap: nowrap;
    gap: 16px; overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .rocket-btn { left: 14px; bottom: 14px; width: 40px; height: 40px; font-size: 18px; }
  /* hero-globe sits right under the nav on mobile (order: -1), so there's
     no headroom above the card for the tooltip — flip it to open downward
     instead of getting clipped by the top of the viewport. */
  .flip-tooltip { bottom: auto; top: calc(100% + 12px); }
  .flip-tooltip::after {
    top: 0; bottom: auto; margin-top: -5px; margin-bottom: 0;
    border-right: 0; border-bottom: 0;
    border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong);
  }
}
