/* ============================================================
   Portfolio v5 — premium, dense, human-designed
   One accent. Serif display + system sans body.
   ============================================================ */
:root {
  --bg: #ffffff;
  --band: #f6f7fa;
  --ink: #101322;
  --muted: #4b5265;
  --faint: #868da1;
  --line: #e6e8ef;
  --line-strong: #d5d8e2;
  --accent: #2f45ff;
  --accent-deep: #1f30d8;
  --dark: #0c0f1a;
  --dark-2: #151a2b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gut: 28px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16,19,34,.05);
  --shadow-md: 0 10px 30px -14px rgba(16,19,34,.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, dt, ul, figure, pre { margin: 0; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
::selection { background: #dbe0ff; color: #0d1030; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .005em;
  padding: 13px 22px; min-height: 48px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .08s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: #eef0f7; border-color: #eef0f7; }

/* ============ NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--gut); height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.06rem;
  letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
}
.nav__dot { color: var(--accent); }
.nav__menu { display: flex; gap: 26px; }
.nav__menu a {
  font-size: .88rem; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav__cta {
  font-size: .86rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  color: #fff; background: var(--accent);
  padding: 9px 17px; border-radius: var(--r-sm);
  transition: background .15s ease;
}
.nav__cta:hover { background: var(--accent-deep); }
.nav__toggle {
  display: none; border: 0; background: none; color: var(--ink);
  cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px;
}

/* ============ HERO ============ */
.hero {
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: var(--gut); padding-right: var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.hero__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.7rem, 5.6vw, 4.1rem);
  line-height: 1.03; letter-spacing: -.025em;
  margin-bottom: 20px;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--accent-deep); }
.hero__tag {
  font-size: 1.12rem; line-height: 1.6; color: var(--muted);
  max-width: 46ch; margin-bottom: 14px;
}
.hero__loc {
  font-size: .9rem; color: var(--faint);
  margin-bottom: 30px;
}
.hero__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__mail {
  font-size: .92rem; font-weight: 500; color: var(--muted);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line-strong); padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.hero__mail:hover { color: var(--accent); border-color: var(--accent); }
.hero__printcontact { display: none; }

.hero__aside {
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 24px;
}
.facts { display: flex; flex-direction: column; }
.fact {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.fact:last-child { border-bottom: 0; }
.fact dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
  padding-top: 3px;
}
.fact dd {
  font-size: .95rem; font-weight: 500; line-height: 1.4; color: var(--ink);
}
.fact dd strong { font-weight: 700; }

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }
.section--band {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.sec-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.55rem, 2.6vw, 1.9rem);
  letter-spacing: -.02em; line-height: 1.1;
  text-wrap: balance;
}
.sec-title::after {
  content: "";
  display: block;
  width: 44px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 12px;
}
.sec-head .sec-title::after { width: 36px; }
.sec-sub {
  font-size: .95rem; color: var(--faint);
  max-width: 42ch;
  align-self: end;
}

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 56px;
  align-items: start;
}
.about__lead {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.34rem; line-height: 1.45; letter-spacing: -.01em;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.about__lead strong { font-weight: 600; color: var(--ink); }
.about__text p {
  color: var(--muted); font-size: 1rem; line-height: 1.7;
  max-width: 62ch; margin-bottom: 16px;
}
.about__text strong { color: var(--ink); font-weight: 600; }
.about__text p:last-child { margin-bottom: 0; }

.about__highlights {
  display: flex; flex-direction: column;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}
.about__highlights li { padding: 14px 0; }
.about__highlights li + li { border-top: 1px solid var(--line); }
.about__highlights h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.about__highlights h3::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 9px;
  transform: translateY(-2px);
}
.about__highlights p {
  font-size: .9rem; color: var(--muted); line-height: 1.55;
  padding-left: 16px;
}

/* ============ EXPERIENCE ============ */
.exp {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-sm);
}
.exp__rail {
  display: flex; flex-direction: column; gap: 6px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}
.exp__period {
  font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-deep);
}
.exp__org { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.exp__role {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.42rem; letter-spacing: -.018em; line-height: 1.2;
  margin-bottom: 16px;
}
.exp__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 28px;
}
.exp__list li {
  position: relative;
  padding-left: 20px;
  font-size: .95rem; color: var(--muted); line-height: 1.55;
}
.exp__list li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px;
  border: 2px solid var(--accent);
  border-radius: 2px;
}

/* ============ PROJECTS ============ */
.proj-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.proj {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.proj:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.proj__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--band);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.proj__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.proj:hover .proj__media img { transform: scale(1.035); }

.proj__media--term { display: flex; }
.term {
  width: 100%; height: 100%;
  background: var(--dark);
  display: flex; flex-direction: column;
}
.term__bar {
  display: flex; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.term__bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.term__code {
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.75;
  color: #aeb6d4;
  white-space: pre;
  overflow: hidden;
}
.term__code .ok { color: #4ade80; }

.proj__body {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column;
  flex: 1;
}
.proj__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.proj__tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: #eef1ff;
  border: 1px solid #dfe4ff;
  padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}
.proj__repo {
  font-size: .8rem; color: var(--faint);
  text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.proj__repo:hover { color: var(--accent); border-bottom-color: var(--accent); }
.proj__title {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.38rem; letter-spacing: -.016em; line-height: 1.22;
  margin-bottom: 10px;
}
.proj__desc {
  font-size: .95rem; line-height: 1.62; color: var(--muted);
  margin-bottom: 18px;
  flex: 1;
}
.proj__stack {
  font-size: .84rem; font-weight: 500; color: var(--faint);
  letter-spacing: .02em;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ============ SKILLS ============ */
.skills {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.skills__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
  padding: 17px 26px;
  border-bottom: 1px solid var(--line);
}
.skills__row:last-child { border-bottom: 0; }
.skills__cat {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.skills__cat::before {
  content: "";
  display: inline-block;
  width: 14px; height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}
.skills__items {
  font-size: 1.02rem; font-weight: 500; color: var(--ink);
  letter-spacing: .01em;
}

/* ============ EDUCATION ============ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.edu {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.edu:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.edu__period {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
  margin-bottom: 12px;
}
.edu__role {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.28rem; letter-spacing: -.012em; line-height: 1.22;
  margin-bottom: 4px;
}
.edu__org { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.edu__note { font-size: .92rem; color: var(--muted); }
.edu__note strong { color: var(--ink); font-weight: 700; }

/* ============ CONTACT ============ */
.contact {
  background: var(--dark);
  color: #fff;
  padding: 96px 0 84px;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 64px;
  align-items: start;
}
.contact__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: -.02em; line-height: 1.16;
  margin-bottom: 18px;
  text-wrap: balance;
}
.contact__title em { font-style: italic; font-weight: 500; color: #9aa8ff; }
.contact__lead {
  color: rgba(255,255,255,.66);
  font-size: 1.02rem; line-height: 1.65;
  max-width: 48ch; margin-bottom: 32px;
}
.contact__ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.contact__alt {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  border-bottom: 1.5px solid rgba(255,255,255,.28);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.contact__alt:hover { color: #fff; border-color: #fff; }

.contact__right {
  display: flex; flex-direction: column; gap: 14px;
}
.contact__line {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  transition: border-color .15s ease, background .15s ease;
}
.contact__line:hover {
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.04);
}
.contact__line span {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
}
.contact__line { font-size: .95rem; font-weight: 500; }
.contact__loc {
  font-size: .85rem; color: rgba(255,255,255,.38);
  margin-top: 2px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.45);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  font-size: .82rem;
}
.site-footer__inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 72px; }
  .hero__aside { max-width: 480px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__highlights { max-width: 560px; }
  .proj-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .sec-sub { align-self: start; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .contact { padding: 76px 0 64px; }
  .sec-head { margin-bottom: 30px; }

  .nav__menu {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 16px;
    box-shadow: 0 16px 28px -20px rgba(16,19,34,.35);
  }
  .nav__menu.open { display: flex; }
  .nav__menu a {
    padding: 13px 4px; min-height: 46px;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
  }
  .nav__menu li:last-child a { border-bottom: 0; }
  .nav__menu a.active { border-bottom: 1px solid var(--line); }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }

  .hero__eyebrow { margin-bottom: 18px; }
  .hero__tag { font-size: 1.05rem; }
  .hero__cta { gap: 16px; }
  .hero__mail { padding: 8px 0; }
  .fact { grid-template-columns: 88px 1fr; padding: 14px 0; }

  .exp { grid-template-columns: 1fr; gap: 20px; padding: 26px; }
  .exp__rail {
    border-right: 0; padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    flex-direction: row; flex-wrap: wrap; gap: 8px 16px;
    align-items: baseline;
  }
  .exp__list { grid-template-columns: 1fr; }

  .proj__repo { white-space: normal; word-break: break-word; padding: 6px 0; }
  .proj__meta { flex-wrap: wrap; }

  .skills__row { grid-template-columns: 1fr; gap: 6px; padding: 15px 22px; }

  .edu-grid { grid-template-columns: 1fr; gap: 18px; }

  .contact__alt { padding: 8px 0; }
}

@media (max-width: 460px) {
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .hero__inner { padding-top: 56px; }
}

/* ============ PRINT (CV — 1 halaman A4) ============ */
@page { size: A4; margin: 10mm 13mm; }

@media print {
  .site-header, .site-footer, .hero__cta, .hero__eyebrow, .hero__loc,
  .hero__aside, .sec-sub, .exp__list, .contact { display: none !important; }

  body { background: #fff; font-size: 9.5pt; line-height: 1.3; color: #000; }
  .wrap { max-width: none; padding: 0; }

  .hero { padding: 0; border: 0; }
  .hero__inner { display: block; }
  .hero__title { font-size: 19pt; line-height: 1; margin-bottom: 2pt; }
  .hero__title em { color: #000; }
  .hero__tag { font-size: 9.5pt; color: #222; margin-bottom: 0; }
  .hero__printcontact {
    display: flex; flex-wrap: wrap; gap: 1pt 12pt;
    font-size: 8pt; color: #222; margin-top: 4pt;
  }
  .hero__printcontact a { color: #222; }

  .section { padding: 6pt 0 0; }
  .section--band { background: #fff; border: 0; }
  .sec-title { font-size: 11pt; }
  .sec-title::after { display: none; }
  .sec-head { display: block; }

  .about { display: block; }
  .about__lead { font-size: 9.5pt; margin-bottom: 3pt; }
  .about__text p { font-size: 8.5pt; color: #222; margin-bottom: 2pt; line-height: 1.3; }
  .about__highlights { display: none; }

  .exp {
    display: grid; grid-template-columns: 90pt 1fr; gap: 10pt;
    border: 0; background: none; padding: 0 0 4pt; box-shadow: none;
  }
  .exp__rail {
    flex-direction: row; flex-wrap: wrap; gap: 4pt 8pt;
    align-items: baseline; border: 0; padding: 0;
  }
  .exp__period { font-size: 8pt; color: #555; }
  .exp__org { font-size: 8.5pt; color: #222; }
  .exp__role { font-size: 10.5pt; margin-bottom: 2pt; }
  .exp__list { display: block; }
  .exp__list li { font-size: 8.5pt; color: #222; margin: 0 0 1pt 10pt; text-indent: -10pt; }
  .exp__list li::before { content: "–"; position: absolute; }

  .proj-grid { display: block; }
  .proj { display: block; border: 0; background: none; padding: 0; box-shadow: none; }
  .proj + .proj { margin-top: 4pt; }
  .proj__media { display: none; }
  .proj__meta { margin-bottom: 2pt; }
  .proj__tag { font-size: 7pt; padding: 0; background: none; border: 0; color: #555; }
  .proj__repo { display: none; }
  .proj__title { font-size: 11pt; margin-bottom: 1pt; }
  .proj__desc { font-size: 8.5pt; color: #222; margin-bottom: 1.5pt; }
  .proj__stack { font-size: 8pt; padding: 0; border: 0; color: #555; }

  .skills { border: 0; border-radius: 0; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; }
  .skills__row { grid-template-columns: 80pt 1fr; padding: 2pt 0; border-bottom: 0; }
  .skills__cat { font-size: 7.5pt; color: #555; }
  .skills__cat::before { display: none; }
  .skills__items { font-size: 8.5pt; }

  .edu-grid { display: block; }
  .edu { border: 0; box-shadow: none; padding: 2.5pt 0; }
  .edu__period { font-size: 7.5pt; color: #555; margin-bottom: 1pt; }
  .edu__role { font-size: 9.5pt; margin-bottom: .5pt; }
  .edu__org { font-size: 8.5pt; margin-bottom: 0; }
  .edu__note { font-size: 8.5pt; }
}

/* ============ MOTION ============ */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* ---- Hero entrance (pure CSS, end-state = visible) ---- */
  .hero__eyebrow,
  .hero__title,
  .hero__tag,
  .hero__loc,
  .hero__cta {
    animation: rise .6s cubic-bezier(.22, 1, .36, 1) both;
  }
  .hero__eyebrow { animation-delay: .04s; }
  .hero__title { animation-delay: .1s; }
  .hero__tag { animation-delay: .18s; }
  .hero__loc { animation-delay: .24s; }
  .hero__cta { animation-delay: .3s; }
  .hero__aside {
    animation:
      rise .6s cubic-bezier(.22, 1, .36, 1) .36s both,
      floaty 6s ease-in-out 1.5s infinite;
  }

  /* ---- Scroll-reveal (subtle, ENHANCEMENT-ONLY).
        Resting state is fully visible, so no-JS / static / full-page capture /
        print / reduced-motion all show every section. `.in` just plays a
        one-shot entry animation when the element is scrolled into view. ---- */
  html.js .reveal { opacity: 1; }
  html.js .reveal.in {
    animation: revealIn .55s cubic-bezier(.22, 1, .36, 1) both;
  }

  /* stagger (only matters while the entry animation runs in a real browser) */
  html.js .about.reveal.in { animation-delay: .08s; }
  html.js .proj.reveal:nth-child(2).in { animation-delay: .1s; }
  html.js .skills__row.reveal:nth-child(2).in { animation-delay: .06s; }
  html.js .skills__row.reveal:nth-child(3).in { animation-delay: .12s; }
  html.js .skills__row.reveal:nth-child(4).in { animation-delay: .18s; }
  html.js .edu.reveal:nth-child(2).in { animation-delay: .08s; }
  html.js .edu.reveal:nth-child(3).in { animation-delay: .16s; }

  /* ---- Navbar on scroll ---- */
  .site-header { transition: box-shadow .25s ease, background-color .25s ease; }
  .site-header.scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1px 0 var(--line), 0 10px 26px -22px rgba(16, 19, 34, .45);
  }
}

/* ---- Back-to-top ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--ink); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s,
    background-color .15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }

/* ---- Reduced motion: semua animasi mati, konten tetap tampil ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---- Print: reveal tidak boleh menyembunyikan konten ---- */
@media print {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============ ASIDE AVATAR ============ */
.aside__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-strong);
  padding: 2px;
  background: var(--bg);
  margin: 14px 0 4px;
}

/* ============ CODE MOCK (project 1 media) ============ */
.proj__media--code { display: flex; }
.code {
  width: 100%; height: 100%;
  background: #0d1017;
  display: flex; flex-direction: column;
}
.code__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.code__file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem; color: rgba(255,255,255,.55);
  letter-spacing: .01em;
}
.code__dots { display: flex; gap: 5px; }
.code__dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.code__body {
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  overflow: hidden;
}
.code__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; line-height: 1.8;
  color: #c7cddc;
  white-space: pre;
}
.tk-cm { color: #5f6b85; }
.tk-kw { color: #7aa2ff; }
.tk-fn { color: #e8b45a; }
.tk-str { color: #7fd6a4; }

/* print: mock media tetap disembunyikan (regression fix) */
@media print {
  .proj__media--code, .code { display: none !important; }
  .aside__avatar { display: none !important; }
}
