/* ==========================================================================
   Warham Aliansa — Portfolio
   Layout mengikuti gaya bento + sidebar; aksen warna Biru & Emas ITB.
   ========================================================================== */

:root {
  --itb-blue: #0b4ea2;
  --itb-blue-600: #083d80;
  --itb-blue-300: #4d86cf;
  --itb-blue-050: #eef4fc;
  --itb-gold: #f5b800;
  --itb-gold-300: #ffd84d;
  --itb-gold-100: #fff1b8;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --line: #ececef;
  --line-strong: #e1e2e6;
  --ink: #1a1a1c;
  --ink-2: #3c3c41;
  --muted: #6f7079;
  --muted-2: #9a9ba3;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 10px rgba(16, 24, 40, .04);
  --shadow-lg: 0 18px 50px -18px rgba(11, 78, 162, .28);

  --sidebar-w: 248px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--itb-gold-300); color: var(--ink); }

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

/* ---------- Scroll progress (scroll-driven) ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--itb-blue), var(--itb-gold));
  transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: grow-x linear both; animation-timeline: scroll(root); }
  @keyframes grow-x { to { transform: scaleX(1); } }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #fff;
}
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.loader__count {
  font-size: 12px; letter-spacing: .24em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.loader .logo { transform: scale(1.6); }
html:not(.js) .loader, .reduced .loader { display: none; }

/* ---------- Logo (signature) ---------- */
.logo {
  position: relative; display: inline-block;
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: .82; letter-spacing: -.02em;
  padding: 4px 26px 6px 4px;
}
.logo__line { display: block; font-size: 34px; }
.logo__line--2 { padding-left: 14px; }
.logo__swoosh {
  position: absolute; inset: -6px -10px -4px -18px;
  width: calc(100% + 28px); height: calc(100% + 10px);
  overflow: visible; pointer-events: none;
}
.logo__swoosh path { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; }
.logo__dot { fill: var(--itb-gold); }

/* ---------- App shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 28px;
}

.sidebar {
  position: sticky; top: 0; align-self: start;
  height: 100vh; padding: 56px 0 32px;
  display: flex; flex-direction: column; gap: 40px;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.sidebar__brand { padding-left: 4px; }

.nav { display: grid; gap: 4px; position: relative; }
.nav__indicator {
  position: absolute; left: 0; right: 0; top: 0; height: 40px;
  border-radius: 9px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), opacity .3s;
  pointer-events: none;
}
.nav a {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; border-radius: 9px;
  color: var(--ink-2); font-size: 15.5px;
  transition: color .25s;
}
.nav a svg { width: 16px; height: 16px; stroke: currentColor; opacity: .75; }
.nav a:hover { color: var(--itb-blue); }
.nav a[aria-current="page"] { color: var(--ink); }

.directory { border-top: 1px solid var(--line); padding-top: 26px; }
.directory__title { font-size: 15px; color: var(--ink-2); margin: 0 0 14px 8px; }
.directory ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.directory a {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px; font-size: 15px; color: var(--ink-2);
  border-radius: 8px; transition: color .3s;
}
.directory a::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px;
  background: var(--ink); flex: none;
  transition: width .45s var(--ease), background .3s;
}
.directory a.is-active { color: var(--itb-blue); font-weight: 500; }
.directory a.is-active::before { width: 22px; background: var(--itb-blue); }
.directory a:hover { color: var(--itb-blue); }

.sidebar__foot { margin-top: auto; font-size: 12.5px; color: var(--muted-2); padding-left: 8px; }
.sidebar__foot .status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.sidebar__foot .status i {
  width: 8px; height: 8px; border-radius: 99px; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.main { padding: 56px 0 0; min-width: 0; }

/* Mobile top bar */
.topbar { display: none; }

/* ---------- Bento grid (Home) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
a.card:hover, .card.is-link:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 78, 162, .22);
}
.card__label {
  position: relative; z-index: 2;
  padding: 16px 18px 0; font-size: 14px; color: var(--muted-2);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.card__label b { color: var(--itb-blue); font-weight: 500; }
.card__arrow {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: #fff; color: var(--muted);
  transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s;
}
.card__arrow svg { width: 13px; height: 13px; }
a.card:hover .card__arrow { transform: rotate(-45deg); background: var(--itb-blue); color: #fff; border-color: var(--itb-blue); }

/* Intro */
.intro { grid-column: span 6; grid-row: span 2; border: 0; box-shadow: none; background: transparent; overflow: visible; }
.intro h1 {
  font-size: clamp(30px, 3.1vw, 40px); line-height: 1.12; letter-spacing: -.025em;
  font-weight: 500; margin: 0 0 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.intro h1 .hl { color: var(--itb-blue); }
.intro p { color: var(--muted); font-size: 16.5px; line-height: 1.75; margin: 0 0 20px; }
.intro p strong { color: var(--ink-2); font-weight: 500; }

.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; will-change: transform; }

/* Photo card */
.photo { grid-column: span 3; aspect-ratio: 1 / 0.92; }
.photo img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.photo__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 48px; height: 48px; border-radius: 13px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--itb-blue);
}
.photo__badge::after {
  content: ""; position: absolute; inset: 5px; border-radius: 9px;
  border: 1.5px solid var(--itb-gold);
}
.photo__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 500;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  display: inline-flex; gap: 6px; align-items: center;
}
.photo__tag i { width: 7px; height: 7px; border-radius: 99px; background: #22c55e; }

/* Contact card */
.contact-card {
  grid-column: span 3; aspect-ratio: 1 / 0.92;
  display: grid; place-items: center; text-align: center; padding: 20px;
}
.contact-card p { margin: 0; color: var(--itb-blue); font-size: 17px; font-weight: 500; line-height: 1.35; }
.envelope { width: 92px; height: 82px; margin: 0 auto 18px; position: relative; perspective: 400px; }
.envelope__back { position: absolute; inset: 18px 0 0; border-radius: 6px; background: linear-gradient(180deg, #d8dde6, #c4cbd6); }
.envelope__paper {
  position: absolute; left: 10px; right: 10px; top: 14px; height: 50px; border-radius: 4px;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  transition: transform .6s var(--ease);
}
.envelope__paper::before, .envelope__paper::after {
  content: ""; position: absolute; left: 10px; right: 18px; height: 3px; border-radius: 3px; background: var(--itb-blue-050);
}
.envelope__paper::before { top: 10px; }
.envelope__paper::after { top: 18px; right: 30px; }
.envelope__front {
  position: absolute; inset: 18px 0 0; border-radius: 6px; overflow: hidden;
  background:
    linear-gradient(to top right, transparent 49.4%, #e9edf3 50%) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent 49.4%, #e9edf3 50%) right / 50% 100% no-repeat,
    linear-gradient(180deg, var(--itb-blue-300), var(--itb-blue));
}
.envelope__flap {
  position: absolute; left: 0; right: 0; top: 18px; height: 40px;
  background: linear-gradient(180deg, #f3f5f8, #dfe4ea);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transition: transform .6s var(--ease);
  border-radius: 6px 6px 0 0;
}
.contact-card:hover .envelope__flap { transform: rotateX(180deg); }
.contact-card:hover .envelope__paper { transform: translateY(-22px); }

/* Showcase (laptop) card */
.showcase { grid-column: 7 / span 6; min-height: 250px; }
.laptop { position: relative; width: 74%; margin: 22px auto 0; will-change: transform; }
.laptop__screen {
  border: 7px solid #1c1c1f; border-bottom-width: 9px; border-radius: 12px 12px 0 0;
  background: #fff; aspect-ratio: 16 / 9.4; overflow: hidden; position: relative;
}
.laptop__base {
  height: 9px; margin: 0 -9%; border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #d6d7db, #a9abb2);
}
.laptop__base::before {
  content: ""; display: block; width: 16%; height: 4px; margin: 0 auto;
  background: #8f9198; border-radius: 0 0 6px 6px;
}

/* mini website inside laptop (Discuss Coffee) */
.site { position: absolute; inset: 0; font-size: 6px; display: flex; flex-direction: column; }
.site__nav { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid #eee; }
.site__nav b { font-size: 7px; letter-spacing: .04em; margin-right: auto; }
.site__nav span { width: 16px; height: 3px; background: #e6e6e6; border-radius: 2px; }
.site__hero {
  flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 6px;
  padding: 8px 10px; background: linear-gradient(120deg, #fbf6ef, #f3e6d6);
}
.site__hero h4 { margin: 0 0 4px; font-size: 10px; line-height: 1.05; font-family: var(--font-serif); font-weight: 400; color: #3a2416; }
.site__hero p { margin: 0 0 6px; color: #7a6656; line-height: 1.3; }
.site__btn { display: inline-block; background: #3a2416; color: #fff; border-radius: 99px; padding: 2px 7px; }
.cup { position: relative; width: 70%; aspect-ratio: 1; margin: 0 auto; }
.cup__body {
  position: absolute; left: 14%; right: 24%; top: 34%; bottom: 10%;
  background: linear-gradient(180deg, #fff, #ece7e1); border-radius: 0 0 40% 40% / 0 0 60% 60%;
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, .05);
}
.cup__body::before {
  content: "D·C"; position: absolute; inset: 30% 0 auto; text-align: center;
  font-family: var(--font-serif); font-size: 10px; color: #3a2416;
}
.cup__handle {
  position: absolute; right: 8%; top: 44%; width: 22%; height: 26%;
  border: 3px solid #ece7e1; border-left: 0; border-radius: 0 50% 50% 0;
}
.cup__coffee { position: absolute; left: 14%; right: 24%; top: 30%; height: 10%; border-radius: 50%; background: #6b3f22; }
.steam { position: absolute; top: 0; width: 3px; height: 26%; border-radius: 3px; background: linear-gradient(180deg, transparent, rgba(107, 63, 34, .25)); animation: steam 2.6s ease-in-out infinite; }
.steam:nth-child(1) { left: 34%; }
.steam:nth-child(2) { left: 46%; animation-delay: .6s; }
.steam:nth-child(3) { left: 58%; animation-delay: 1.2s; }
@keyframes steam { 0% { transform: translateY(6px) scaleY(.6); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-6px) scaleY(1.1); opacity: 0; } }
.site__strip { display: flex; gap: 6px; padding: 6px 10px; }
.site__strip span { flex: 1; height: 16px; border-radius: 3px; background: #f4ede5; }

/* Phones card */
.phones-card { grid-column: span 6; height: 236px; }
.phones { position: absolute; left: 0; right: 0; bottom: -40px; display: flex; justify-content: center; gap: 26px; }
.phone {
  width: 152px; height: 230px; border-radius: 26px; background: #111;
  padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); flex: none;
  will-change: transform;
}
.phone__screen { height: 100%; border-radius: 21px; overflow: hidden; background: #fff; position: relative; font-size: 6.5px; }
.phone__island { position: absolute; top: 5px; left: 50%; translate: -50% 0; width: 40px; height: 11px; border-radius: 99px; background: #111; z-index: 3; }
.phone__status { display: flex; justify-content: space-between; padding: 6px 12px 2px; font-weight: 600; font-size: 6px; }
.chat-head { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-bottom: 1px solid #eee; }
.chat-head .avatar { width: 14px; height: 14px; border-radius: 99px; background: var(--itb-blue); color: #fff; display: grid; place-items: center; font-size: 5px; font-weight: 700; }
.chat-head b { font-size: 7px; display: block; line-height: 1.1; }
.chat-head small { color: #999; font-size: 5px; }
.chat-body { padding: 6px; background: #efe9e0; height: 100%; display: grid; gap: 5px; align-content: start; }
.pinned { display: flex; justify-content: space-between; align-items: center; background: #fff8d6; border: 1px solid var(--itb-gold-300); border-radius: 6px; padding: 4px 5px; }
.pinned b { font-size: 6px; }
.pinned span { color: var(--itb-blue); font-weight: 600; }
.bubble { max-width: 80%; padding: 4px 6px; border-radius: 6px; background: #fff; line-height: 1.3; }
.bubble.me { justify-self: end; background: #dcf8c6; }
.phone__hero { height: 46%; background: linear-gradient(160deg, var(--itb-blue), #062a5a); color: #fff; padding: 22px 9px 8px; position: relative; overflow: hidden; }
.phone__hero::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; border: 10px solid rgba(245, 184, 0, .5); }
.phone__hero h5 { margin: 4px 0 2px; font-size: 12px; line-height: 1.05; }
.phone__hero small { opacity: .8; font-size: 6px; display: block; max-width: 85%; line-height: 1.35; }
.phone__meta { padding: 6px 9px; text-align: center; }
.phone__meta b { font-size: 7px; display: block; }
.phone__meta span { color: #999; font-size: 5.5px; }
.phone__bars { display: flex; gap: 4px; padding: 4px 9px; align-items: flex-end; height: 56px; }
.phone__bars i { flex: 1; border-radius: 3px; background: var(--itb-gold-300); transform-origin: bottom; }

.badge-new {
  position: absolute; left: 14px; bottom: 22px; z-index: 3;
  background: var(--itb-blue); color: #fff; border: 2px solid #fff;
  border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 500;
  box-shadow: 0 4px 14px rgba(11, 78, 162, .4);
}

/* Toolkit card */
.tools-card { grid-column: span 3; height: 236px; padding: 18px 16px; }
.tools-card h3 { margin: 0 0 16px; text-align: center; font-weight: 500; font-size: 17px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; justify-items: center; }
.tool { display: grid; justify-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); text-align: center; }
.tool__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .4s var(--ease);
}
.tool:hover .tool__icon { transform: translateY(-4px) rotate(-6deg); }

/* Gallery card (Prestasi) */
.gallery-card { grid-column: span 3; height: 236px; }
.gallery-card .card__label { padding-bottom: 6px; }
.award-stack { position: absolute; inset: 52px 14px 14px; }
.award {
  position: absolute; inset: 0; border-radius: 12px; padding: 12px;
  background: linear-gradient(150deg, var(--itb-blue), #082d63); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  transform-origin: 50% 120%;
}
.award:nth-child(2) { background: linear-gradient(150deg, #f8c51c, #e3a300); color: #2b2100; }
.award:nth-child(3) { background: linear-gradient(150deg, #1f2937, #0b1220); }
.award svg { width: 26px; height: 26px; margin-bottom: auto; opacity: .9; }
.award b { font-size: 14px; line-height: 1.25; font-weight: 600; }
.award span { font-size: 11.5px; opacity: .8; }

/* Study card */
.study-card { grid-column: span 3; height: 232px; padding: 16px 18px; }
.study-card h3 { margin: 0; font-size: 19px; font-weight: 400; line-height: 1.2; color: var(--ink-2); }
.book {
  position: absolute; right: -10px; bottom: -14px; width: 150px; height: 120px;
  background: #fbfaf6; border: 1px solid #ddd8cc; border-radius: 4px;
  box-shadow: -6px 6px 18px rgba(0, 0, 0, .08); padding: 12px 14px;
  font-family: "Courier New", monospace; font-size: 10px; color: #555; letter-spacing: .08em;
  rotate: -4deg; will-change: transform;
}
.book b { display: block; border-bottom: 1px solid #ddd; padding-bottom: 6px; margin-bottom: 6px; color: var(--itb-blue); }
.book .uline { text-decoration: underline; text-decoration-color: var(--itb-gold); text-decoration-thickness: 2px; }

/* Dashboard card */
.dash-card { grid-column: span 6; height: 232px; }
.dash {
  position: absolute; left: 7%; right: 7%; top: 64px; height: 200px;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(16, 24, 40, .14);
  padding: 16px 18px; font-size: 11px; will-change: transform;
}
.dash__top { display: flex; justify-content: space-between; gap: 12px; }
.dash__brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; }
.dash__brand i { width: 26px; height: 26px; border-radius: 7px; border: 3px solid var(--itb-blue); border-right-color: var(--itb-gold); }
.dash__meta { color: var(--muted); line-height: 1.5; font-size: 10px; }
.dash__table { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 4px 8px; margin-top: 16px; align-items: end; }
.dash__table span { color: var(--muted); font-size: 10px; text-align: center; }
.dash__table > :nth-child(5n + 1) { text-align: left; }
.dash__table b { font-weight: 500; text-align: center; font-size: 11px; }
.cursor-chip {
  position: absolute; padding: 3px 10px; border-radius: 99px; font-size: 11px; color: #fff; font-weight: 500;
  will-change: transform;
}
.cursor-chip::before {
  content: ""; position: absolute; width: 0; height: 0; border: 6px solid transparent;
  top: -9px; left: -6px; rotate: 45deg;
}
.cursor-chip--blue { background: var(--itb-blue); right: 26%; bottom: 14px; }
.cursor-chip--blue::before { border-bottom-color: var(--itb-blue); }
.cursor-chip--gold { background: #16a34a; right: 9%; bottom: 40px; }
.cursor-chip--gold::before { border-bottom-color: #16a34a; }

/* Dark stat card */
.stat-card { grid-column: span 3; height: 232px; background: #0c1220; border-color: #0c1220; color: #fff; padding: 18px; }
.stat-card .card__label { padding: 0 0 8px; color: #8b93a7; }
.stat-card .card__label b { color: var(--itb-gold); }
.stat-big { font-size: 56px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat-big small { font-size: 18px; color: #8b93a7; font-weight: 400; letter-spacing: 0; }
.stat-sub { color: #aeb5c6; font-size: 13px; margin: 6px 0 12px; }
.stat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-row span { border: 1px solid #263048; border-radius: 99px; padding: 3px 10px; font-size: 11.5px; color: #cdd3e1; }
.stat-ring { position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; border: 18px solid rgba(245, 184, 0, .14); }

/* ---------- Marquee (velocity-based) ---------- */
.marquee {
  margin: 72px -28px 0; padding: 26px 0; overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line);
}
.marquee__track { display: inline-flex; gap: 48px; will-change: transform; }
.marquee__track span {
  font-size: clamp(36px, 6vw, 84px); font-weight: 500; letter-spacing: -.03em; line-height: 1;
  display: inline-flex; align-items: center; gap: 48px; color: var(--ink);
}
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--itb-blue); }
.marquee__track span::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--itb-gold); }

/* ---------- Horizontal "journey" (pinned, scroll-driven) ---------- */
.hjourney { position: relative; margin-top: 80px; }
.hjourney__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { font-size: 13px; color: var(--itb-blue); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 500; margin: 8px 0 0; }
.hjourney__viewport { overflow: hidden; }
.hjourney__track { display: flex; gap: 18px; width: max-content; will-change: transform; padding-bottom: 6px; }
.hcard {
  width: min(380px, 78vw); flex: none; padding: 22px; min-height: 300px;
  display: flex; flex-direction: column;
}
.hcard__year { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hcard__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--itb-blue-050); color: var(--itb-blue); margin-bottom: 18px;
}
.hcard__icon svg { width: 22px; height: 22px; }
.hcard h3 { font-size: 20px; line-height: 1.25; font-weight: 500; margin: 6px 0 8px; letter-spacing: -.01em; }
.hcard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.hcard .pill { margin-top: auto; align-self: flex-start; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.pill--active { background: var(--itb-blue); color: #fff; }
.pill--done { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill--gold { background: var(--itb-gold); color: #2b2100; }
.hjourney__bar { height: 2px; background: var(--line); margin-top: 22px; border-radius: 2px; overflow: hidden; }
.hjourney__bar i { display: block; height: 100%; background: var(--itb-blue); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 96px; border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px;
}
.footer .logo__line { font-size: 52px; }
.footer h4 { margin: 8px 0 14px; font-weight: 500; font-size: 17px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer li a, .footer li span { color: var(--muted); font-size: 15px; transition: color .25s; }
.footer li a:hover { color: var(--itb-blue); }
.footer__bottom {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px;
}

/* ==========================================================================
   Article page (Perjalanan) — mirip halaman case study
   ========================================================================== */
.article { max-width: 860px; }
.article__hero { padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.article__hero .card__label { padding: 0; margin-bottom: 14px; }
.article__hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.06; letter-spacing: -.03em; font-weight: 500; margin: 0 0 18px; }
.article__hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }
.hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.hero-meta div { border-top: 1px solid var(--line); padding-top: 12px; }
.hero-meta small { display: block; color: var(--muted-2); font-size: 12.5px; }
.hero-meta b { font-weight: 500; font-size: 15px; }

.section { padding: 72px 0 8px; scroll-margin-top: 24px; }
.section__head { margin-bottom: 30px; }
.section__num { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.section h2 { font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin: 4px 0 0; }
.section h3 { font-size: 19px; font-weight: 500; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.lead em { color: var(--ink-2); }

.two-col { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.two-col + .two-col { margin-top: 64px; }
.two-col--flip > :first-child { order: 2; }

/* Timeline with scroll-drawn line */
.timeline { position: relative; padding-left: 34px; }
.timeline__rail, .timeline__fill { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.timeline__rail { background: var(--line); }
.timeline__fill { background: linear-gradient(var(--itb-blue), var(--itb-gold)); transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px; border-radius: 99px;
  background: #fff; border: 2px solid var(--line-strong); transition: border-color .4s, background .4s, transform .4s var(--ease);
}
.tl-item.is-in::before { border-color: var(--itb-blue); background: var(--itb-blue); box-shadow: 0 0 0 5px var(--itb-blue-050); }
.tl-item__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.tl-item h3 { margin: 0; font-size: 18.5px; }
.tl-item .role { color: var(--itb-blue); font-style: italic; font-size: 15px; }
.tl-item .when { font-size: 13.5px; color: var(--muted-2); margin: 2px 0 6px; }
.tl-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Phone mock in article (skill chart, like availability screen) */
.mock-pair { display: flex; align-items: center; justify-content: center; gap: 18px; }
.mock {
  width: 200px; flex: none; border-radius: 14px; background: #eef0f3; padding: 10px;
  box-shadow: 0 1px 0 var(--line);
}
.mock__inner { background: #fff; border-radius: 10px; padding: 12px 10px 10px; font-size: 9px; }
.mock__cancel { color: var(--itb-blue); font-size: 8.5px; }
.mock__title { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; }
.mock__title i { width: 18px; height: 18px; border-radius: 99px; background: url("../img/warham-square.jpg") center/cover; }
.mock__title b { font-size: 10.5px; letter-spacing: .02em; }
.mock__sub { color: var(--muted-2); font-size: 7.5px; margin-left: 24px; min-height: 10px; }
.mock__chart { display: grid; grid-template-columns: 14px repeat(5, 1fr); gap: 5px; margin-top: 8px; height: 190px; }
.mock__axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-2); font-size: 7px; padding: 14px 0 0; }
.mock__col { display: flex; flex-direction: column; gap: 3px; }
.mock__col small { text-align: center; color: var(--muted-2); font-size: 7px; line-height: 1; height: 11px; }
.mock__bar { position: relative; flex: 1; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.mock--after .mock__bar {
  background: repeating-linear-gradient(-45deg, #f3f4f6 0 3px, #fff 3px 6px);
}
.mock__bar span {
  position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px;
  background: var(--itb-gold-300); transform-origin: bottom; transform: scaleY(0);
}
.mock--after .mock__bar span { background: var(--itb-gold); }
.mock__btn { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 7px; color: var(--itb-blue); font-weight: 600; }
.mock-arrow { color: var(--itb-blue); width: 22px; flex: none; }

/* Skill list */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-top: 36px; }
.skill__top { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 6px; }
.skill__top span { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.skill__bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.skill__bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--itb-blue), var(--itb-blue-300)); transform-origin: 0 50%; transform: scaleX(0); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.stat { padding: 22px; }
.stat b { display: block; font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--itb-blue); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }

/* Lists: certifications & awards */
.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list-card { padding: 22px; }
.list-card h3 { display: flex; align-items: center; gap: 10px; }
.list-card h3 i { width: 32px; height: 32px; border-radius: 99px; background: var(--itb-blue); color: #fff; display: grid; place-items: center; }
.list-card h3 i svg { width: 16px; height: 16px; }
.list-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.list-card li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; font-size: 15px; line-height: 1.45; }
.list-card li::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--itb-gold); margin-top: 7px; }
.list-card li small { display: block; color: var(--muted); font-size: 13.5px; }

/* Interests */
.interests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.interest { padding: 18px; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.interest i { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--itb-blue-050); color: var(--itb-blue); flex: none; transition: background .3s, color .3s, transform .5s var(--ease); }
.interest:hover i { background: var(--itb-gold); color: #2b2100; transform: rotate(-8deg) scale(1.06); }
.interest i svg { width: 20px; height: 20px; }

/* Quote */
.quote {
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.02em; font-weight: 400;
  margin: 0; color: var(--ink);
}
.quote .w { opacity: .14; transition: opacity .2s; }

/* Next link */
.next {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px; margin-top: 72px;
}
.next small { color: var(--muted-2); }
.next b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.contact-item { padding: 22px; display: flex; gap: 16px; align-items: center; }
.contact-item i { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--itb-blue); color: #fff; flex: none; transition: transform .5s var(--ease), background .3s; }
.contact-item:hover i { transform: rotate(-10deg) scale(1.05); background: var(--itb-gold); color: #2b2100; }
.contact-item i svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--muted-2); font-size: 13px; }
.contact-item b { font-weight: 500; font-size: 16px; word-break: break-all; }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 46px; height: 46px; border-radius: 99px; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--itb-blue); }
.to-top svg { width: 18px; height: 18px; }

/* Custom cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 99px;
  background: var(--itb-blue); mix-blend-mode: normal;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, opacity .3s;
  opacity: 0;
}
.cursor span { font-size: 11px; color: #fff; font-weight: 600; opacity: 0; transition: opacity .2s; letter-spacing: .02em; }
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(11, 78, 162, .92); }
.cursor.is-hover span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Reveal defaults (JS adds motion) */
.js [data-reveal] { opacity: 0; }
.reduced [data-reveal] { opacity: 1 !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .intro { grid-column: span 12; grid-row: auto; }
  .photo, .contact-card { grid-column: span 6; aspect-ratio: auto; height: 260px; }
  .showcase { grid-column: span 12; }
  .phones-card { grid-column: span 12; }
  .tools-card, .gallery-card { grid-column: span 6; }
  .study-card { grid-column: span 6; }
  .dash-card { grid-column: span 12; }
  .stat-card { grid-column: span 6; }
  .laptop { width: 56%; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .shell { grid-template-columns: 1fr; padding: 0 16px; gap: 0; }
  .sidebar { display: none; }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 50;
    align-items: center; justify-content: space-between;
    padding: 12px 16px; margin: 0 -16px;
    background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .topbar .logo__line { font-size: 24px; }
  .topbar nav { display: flex; gap: 2px; }
  .topbar nav a { padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
  .topbar nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
  .main { padding-top: 0; }
  .topbar { margin-bottom: 24px; }
  .marquee { margin-inline: -16px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer > :first-child { grid-column: 1 / -1; }
  .two-col, .two-col--flip { grid-template-columns: 1fr; gap: 28px; }
  .two-col--flip > :first-child { order: 0; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .photo, .contact-card, .tools-card, .gallery-card, .study-card, .stat-card { grid-column: span 12; }
  .laptop { width: 86%; }
  .phones { gap: 12px; }
  .phone { width: 132px; height: 210px; }
  .dash { left: 4%; right: 4%; padding: 12px; }
  .dash__brand { font-size: 15px; }
  .dash__meta { display: none; }
  .skills, .list-grid, .contact-grid, .stats { grid-template-columns: 1fr; }
  .interests { grid-template-columns: 1fr 1fr; }
  .mock { width: 150px; }
  .mock__chart { height: 150px; }
  .mock-arrow { width: 16px; }
  .footer { grid-template-columns: 1fr; }
  .topbar nav a { padding: 6px 7px; font-size: 13px; }
  .hjourney__head { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Kartu bento yang dipakai ulang di dalam halaman artikel */
.two-col > .card { grid-column: auto; }
.lead ol, ol.lead { padding-left: 20px; }
.lead ol li, ol.lead li { margin-bottom: 4px; }
.tl-item p strong { color: var(--ink-2); font-weight: 500; }
