:root {
  --ink: #101010;
  --paper: #F7F7F5;
  --muted: #555555;
  --burgundy: #8B2635;
  --line: #D8D8D3;
  --line-soft: #E2E2DE;
  --white: #FFFFFF;
  --soft: #EAEAE6;
  --preview: #EDEDE9;
  --side-muted: #A3A3A3;
  --side-dim: #6E6E6E;
  --sidebar-bg: #101010;
  --sidebar-line: #333333;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

[data-theme="dark"] {
  --ink: #F7F7F5;
  --paper: #101010;
  --muted: #A6A6A1;
  --burgundy: #D0818D;
  --line: #2E2E2E;
  --line-soft: #242424;
  --soft: #1C1C1C;
  --preview: #1A1A1A;
  --side-muted: #9A9A9A;
  --side-dim: #6E6E6E;
  --sidebar-bg: #0A0A0A;
  --sidebar-line: #2A2A2A;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  font-family: var(--sans);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.mark {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--burgundy);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 30;
}

.sidebar__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 58px 36px 36px;
}

.sidebar__top .mark { margin-bottom: 22px; }

.sidebar__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: .96;
  letter-spacing: -1.2px;
  color: var(--white);
}

.sidebar__subtitle {
  margin: 24px 0 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 2px;
  color: var(--side-muted);
}

.sidebar__nav {
  margin-top: 94px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--side-muted);
  transition: color .25s ease;
}

.nav-item__line {
  width: 18px;
  height: 1px;
  background: transparent;
  transition: background .25s ease, width .25s ease;
}

.nav-item:hover { color: var(--white); }
.nav-item.is-active { color: var(--white); }
.nav-item.is-active .nav-item__line { background: var(--burgundy); }

.sidebar__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--sidebar-line);
}

.social-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--side-muted);
  transition: color .25s ease, letter-spacing .25s ease;
}

.social-link:hover { color: var(--burgundy); letter-spacing: 2px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--side-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  cursor: pointer;
  transition: color .25s ease;
}
.theme-toggle:hover { color: var(--white); }
.theme-toggle:focus-visible { outline: 1px solid var(--burgundy); outline-offset: 4px; }
.theme-toggle__icon {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
  transition: transform .35s ease;
}
[data-theme="dark"] .theme-toggle__icon { transform: rotate(180deg); }

.sidebar__copy {
  margin: 14px 0 0;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1.2px;
  color: var(--side-dim);
}

/* ---------- MOBILE NAV / MENU ---------- */
.mobile-nav { display: none; }
.mobile-menu { display: none; }

/* ---------- CONTENT ---------- */
.content {
  margin-left: 280px;
  width: calc(100% - 280px);
  background: var(--paper);
  overflow: hidden;
}

.hero,
.section {
  position: relative;
  width: 100%;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 100px;
  right: 100px;
  height: 1px;
  background: var(--line-soft);
}

.section__index {
  margin: 0 0 40px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--burgundy);
}

.section__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.2px;
}

.section__intro {
  margin: 44px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 900px;
  padding: 106px 100px 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 46px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--burgundy);
}

.hero__eyebrow .mark { width: 32px; }

.hero__name {
  margin: 58px 0 0;
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 400;
  line-height: .92;
  letter-spacing: -2px;
}

.hero__tagline {
  margin: 70px 0 0;
  max-width: 520px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -.2px;
}

.hero__desc {
  margin: 46px 0 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.hero__actions {
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 52px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.btn:hover {
  background: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(139, 38, 53, .18);
}

.text-link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  transition: letter-spacing .3s ease, color .3s ease;
}

.text-link:hover { letter-spacing: 2.4px; color: var(--ink); }

.hero__portrait {
  position: absolute;
  top: 184px;
  right: 100px;
  width: 270px;
  height: 360px;
  background: var(--soft);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 16, 16, .16);
}

.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(10, 12, 14, .04) 0%, rgba(10, 12, 14, .08) 48%, rgba(10, 12, 14, .46) 100%),
    radial-gradient(118% 88% at 50% 24%, rgba(255, 255, 255, .10), rgba(12, 14, 16, .22) 76%),
    linear-gradient(0deg, rgba(22, 26, 30, .34), rgba(22, 26, 30, 0) 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.hero__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  filter: saturate(.72) contrast(1.14) brightness(.97);
}

.hero__portrait i {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  width: 1px;
  height: 46px;
  background: var(--burgundy);
}

.hero__count {
  position: absolute;
  right: 100px;
  bottom: 52px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #9A9A96;
}

/* ---------- ABOUT ---------- */
.section--about { min-height: 780px; padding: 64px 100px 80px; }
.about__grid {
  margin-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
}
.about__text {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.info-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.info-row:first-child { border-top: 0; padding-top: 0; }
.info-row span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--burgundy);
}
.info-row strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

/* ---------- SKILLS ---------- */
.section--skills { min-height: 720px; padding: 64px 100px 80px; }
.skills__grid {
  margin-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 170px;
}
.skills__label {
  margin: 0 0 42px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--burgundy);
}
.skills__list { margin: 0; padding: 0; list-style: none; }
.skills__list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 24px;
}

/* ---------- EXPERIENCE ---------- */
.section--experience { min-height: 920px; padding: 64px 100px 80px; }
.experience__intro {
  position: absolute;
  top: 240px;
  left: 100px;
  width: 410px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}
.timeline {
  position: absolute;
  top: 310px;
  left: 548px;
  width: 460px;
  border-left: 1px solid var(--line);
  padding-left: 72px;
}
.timeline__item { position: relative; padding-bottom: 56px; }
.timeline__index {
  position: absolute;
  left: -56px;
  top: 0;
  width: 30px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--muted);
}
.timeline__meta {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--burgundy);
}
.timeline__item h3 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}
.timeline__desc {
  margin: 14px 0 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- PROJECTS ---------- */
.section--projects { min-height: 880px; padding: 64px 100px 80px; }
.projects__grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 760px);
}
.preview {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--preview);
  overflow: hidden;
}
.preview.preview--image {
  height: auto;
  aspect-ratio: 1621 / 1047;
  background: var(--paper);
  border: 1px solid var(--line);
}
.preview--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project__tag {
  margin: 30px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--burgundy);
}
.project h3 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}
.project__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.project__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.project__link:focus-visible { outline: 1px solid var(--burgundy); outline-offset: 8px; }
.project__link h3 { transition: color .25s ease; }
.project__link:hover h3,
.project__link:focus-visible h3 { color: var(--burgundy); }
.project__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--burgundy);
  transition: letter-spacing .25s ease, gap .25s ease;
}
.project__link:hover .project__cta { letter-spacing: 2.4px; gap: 12px; }

/* Screenshot asli ditampilkan apa adanya melalui .preview--image. */

/* ---------- ACHIEVEMENTS ---------- */
.section--achievements { min-height: 640px; padding: 64px 100px 80px; }
.achievement__list {
  margin: 80px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 80px;
}
.achievement-item {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.achievement-item__label {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--burgundy);
}
.achievement-item__heading {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.4px;
  color: var(--ink);
}
.achievement-item__desc {
  margin: 18px 0 0;
  max-width: 430px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.section--achievements::after {
  content: "";
  position: absolute;
  left: 100px;
  right: 100px;
  bottom: 80px;
  height: 1px;
  background: var(--line-soft);
}

/* ---------- CONTACT ---------- */
.section--contact { min-height: 760px; padding: 64px 100px 100px; }
.contact__desc {
  margin: 60px 0 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.contact__email {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.contact__email a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .25s ease, border-color .25s ease;
}
.contact__email a:hover,
.contact__email a:focus-visible { color: var(--burgundy); border-color: var(--burgundy); }

.contact__actions { margin-top: 32px; display: flex; align-items: center; gap: 40px; }
.contact__socials { margin-top: 60px; display: flex; align-items: center; gap: 18px; }
.contact__socials .social-link { color: var(--muted); }
.contact__socials span { color: var(--line); font-size: 10px; }
.contact__footer {
  position: absolute;
  left: 100px;
  right: 100px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__footer span { height: 1px; background: var(--line-soft); }
.contact__footer p {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: #8E8E89;
}

/* ---------- REVEAL ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1279px) {
  .hero { min-height: 820px; }
  .hero__portrait {
    top: 120px;
    right: 40px;
    width: 150px;
    height: 200px;
    box-shadow: 0 16px 40px rgba(16, 16, 16, .16);
  }
  .hero__portrait i { left: 14px; top: 14px; height: 30px; }
  .hero__portrait img { object-position: 50% 28%; }
}

@media (max-width: 1023px) {
  .sidebar { width: 240px; }
  .content { margin-left: 240px; width: calc(100% - 240px); }
  .section::before, .section--achievements::after, .contact__footer { left: 64px; right: 64px; }
  .hero, .section { padding-left: 64px; padding-right: 64px; }
  .hero__portrait { top: 104px; right: 32px; width: 120px; height: 160px; }
  .experience__intro { left: 64px; width: 300px; }
  .timeline { left: 420px; width: 420px; }
  .projects__grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .preview { height: 260px; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 72px; }

  .sidebar { display: none; }
  .content { margin-left: 0; width: 100%; padding-top: 72px; }

  .mobile-nav {
    position: fixed;
    inset: 0 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--sidebar-bg);
    z-index: 60;
  }
  .mobile-nav__logo {
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: -.4px;
    color: var(--white);
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--white); }
  .menu-toggle span:last-child { width: 24px; background: var(--burgundy); }

  .mobile-menu {
    position: fixed;
    inset: 0;
    display: block;
    background: var(--sidebar-bg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity .3s ease, transform .35s ease, visibility .3s ease;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
  }
  .mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--serif);
    font-size: 20px;
    color: var(--white);
  }
  .menu-close { position: relative; width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; }
  .menu-close span { position: absolute; left: 2px; top: 14px; width: 26px; height: 2px; background: var(--white); }
  .menu-close span:first-child { transform: rotate(45deg); }
  .menu-close span:last-child { transform: rotate(-45deg); }
  .mobile-menu__nav { margin-top: 90px; display: flex; flex-direction: column; gap: 44px; }
  .mobile-menu__item {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--side-muted);
    transition: color .25s ease;
  }
  .mobile-menu__item span { width: 18px; height: 1px; background: transparent; }
  .mobile-menu__item.is-active { color: var(--white); }
  .mobile-menu__item.is-active span { background: var(--burgundy); }
  .mobile-menu__bottom { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 20px; border-top: 1px solid var(--sidebar-line); }

  body.menu-open { overflow: hidden; }

  .section::before, .section--achievements::after, .contact__footer { left: 24px; right: 24px; }

  .hero {
    min-height: 800px;
    padding: 61px 24px 0;
  }
  .hero__eyebrow { margin-left: 34px; gap: 16px; font-size: 9px; letter-spacing: 2px; }
  .hero__eyebrow .mark { width: 24px; }
  .hero__name { margin-top: 46px; font-size: 46px; line-height: .94; letter-spacing: -.8px; width: 190px; }
  .hero__tagline { margin-top: 88px; max-width: 342px; font-size: 32px; line-height: 1.16; letter-spacing: -.2px; }
  .hero__desc { margin-top: 36px; font-size: 14px; line-height: 1.7; }
  .hero__actions { margin-top: 44px; flex-direction: column; align-items: stretch; gap: 24px; }
  .btn { width: 100%; height: 50px; font-size: 10px; }
  .text-link { align-self: flex-start; font-size: 10px; }
  .hero__portrait { display: block; top: 112px; right: 24px; width: 128px; height: 168px; box-shadow: 0 14px 34px rgba(16, 16, 16, .16); }
  .hero__portrait i { left: 14px; top: 14px; height: 30px; }
  .hero__portrait img { object-position: 50% 28%; }
  .hero__count { right: 24px; bottom: 32px; }

  .section { padding: 52px 24px 64px !important; }
  .section__index { margin-bottom: 42px; font-size: 9px; letter-spacing: 2px; }
  .section__title { font-size: 46px; letter-spacing: -.8px; }
  .section__intro { margin-top: 26px; font-size: 13px; }

  .about__grid { margin-top: 30px; grid-template-columns: 1fr; gap: 40px; }
  .about__text { font-size: 14px; line-height: 1.75; }
  .info-row { gap: 8px; padding: 18px 0; }
  .info-row strong { font-size: 20px; }

  .skills__grid { margin-top: 30px; grid-template-columns: 1fr; gap: 44px; }
  .skills__label { margin-bottom: 24px; font-size: 9px; }
  .skills__list li { padding: 13px 0; font-size: 22px; }

  .experience__intro { position: static; width: auto; margin-top: 30px; font-size: 13px; }
  .timeline { position: static; width: auto; margin-top: 40px; padding-left: 38px; border-left: 1px solid var(--line); }
  .timeline__index { left: -24px; width: 18px; font-size: 12px; }
  .timeline__item { padding-bottom: 56px; }
  .timeline__item h3 { font-size: 21px; }
  .timeline__desc { font-size: 12px; }

  .projects__grid { margin-top: 26px; grid-template-columns: 1fr; row-gap: 60px; }
  .preview { height: 220px; }
  .project__tag { margin-top: 20px; font-size: 9px; }
  .project h3 { font-size: 24px; }
  .project__desc { font-size: 13px; }

  .preview.preview--image { aspect-ratio: 1621 / 1047; }

  .achievement__list { grid-template-columns: 1fr; gap: 44px; margin-top: 56px; }
  .achievement-item__heading { font-size: 19px; }
  .achievement-item__desc { font-size: 12px; }
  .section--achievements::after { bottom: 52px; }

  .contact__desc { margin-top: 30px; font-size: 13px; line-height: 1.7; }
  .contact__email { margin-top: 16px; font-size: 13px; }
  .contact__actions { margin-top: 26px; flex-direction: column; align-items: stretch; gap: 24px; }
  .contact__actions .text-link { align-self: flex-start; }
  .contact__socials { margin-top: 46px; gap: 10px; }
  .contact__socials .social-link { font-size: 9px; }
  .contact__footer { bottom: 28px; gap: 12px; }
  .contact__footer p { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
