:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --line: #262626;
  --ink: #ededed;
  --muted: #8c8c8c;
  --white: #ffffff;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--white); outline-offset: 3px; border-radius: 3px;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,10,10,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 60px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand img { height: 24px; width: auto; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .15s; }
.topbar nav a:hover { color: var(--white); }

/* hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.03em; max-width: 13em; }
.lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 26em; }
.cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 6px;
  font-family: var(--sans); font-weight: 500; font-size: 15px; text-decoration: none;
  border: 1px solid #3a3a3a; color: var(--ink); background: transparent;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--white); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--white); border-color: var(--white); }

.portrait {
  aspect-ratio: 4/5; max-width: 340px; width: 100%; justify-self: end;
  border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* sections */
.block { padding: 72px 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.split > h2 { font-size: 26px; }
.prose p { max-width: 30em; font-size: 19px; }
.prose p + p { margin-top: 10px; color: var(--muted); }

/* featured project */
.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.shot img { width: 100%; height: auto; }
.feat-head { margin-top: 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.feat-head h3 { font-size: 26px; }
.meta { margin-top: 4px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.tag { font-family: var(--sans); font-size: 12px; padding: 4px 10px; border: 1px solid #3a3a3a; border-radius: 99px; color: var(--muted); white-space: nowrap; }
.desc { margin-top: 14px; max-width: 32em; }
.list { margin-top: 16px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 32px; }
.list.one { grid-template-columns: 1fr; margin-top: 12px; }
.list li { position: relative; padding-left: 14px; font-size: 16px; color: #c4c4c4; }
.list li::before { content: ''; position: absolute; left: 0; top: .74em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.stack { margin-top: 18px; margin-bottom: 24px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.stack b { color: var(--ink); margin-right: 10px; font-weight: 500; }

/* skills */
.skills > div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.skills > div:first-child { border-top: 0; padding-top: 0; }
.skills dt { font-family: var(--sans); font-weight: 700; font-size: 16px; }
.skills dd { font-size: 16px; color: var(--muted); }

/* experience */
.exp article { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.exp article:first-child { border-top: 0; padding-top: 0; }
.when { font-family: var(--sans); font-size: 14px; color: var(--muted); padding-top: 4px; }
.exp h3 { font-size: 19px; }

/* contact */
.mail {
  display: inline-block;
  font-family: var(--sans); font-weight: 700; font-size: clamp(22px, 4vw, 34px); letter-spacing: -.02em;
  text-decoration: underline; text-decoration-color: #555; text-decoration-thickness: 2px; text-underline-offset: 6px;
  word-break: break-all; transition: text-decoration-color .15s;
}
.mail:hover { text-decoration-color: var(--white); }
.links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--sans); font-weight: 500; font-size: 15px; }
.links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.links a:hover { color: var(--white); }

footer { border-top: 1px solid var(--line); padding: 24px 0; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* placeholder gambar */
.ph {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  background: var(--panel); color: var(--muted); font-family: var(--sans); font-size: 13px;
  border: 1px dashed #3a3a3a;
}

/* responsive */
@media (max-width: 900px) {
  .hero { padding: 48px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait { justify-self: start; max-width: 260px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .block { padding: 56px 0; }
}
@media (max-width: 640px) {
  .topbar nav { gap: 16px; }
  .topbar nav a { font-size: 13px; }
  .topbar nav a:nth-child(1), .topbar nav a:nth-child(4) { display: none; }
  .list { grid-template-columns: 1fr; }
  .skills > div, .exp article { grid-template-columns: 1fr; gap: 4px; }
  .feat-head h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* daftar proyek */
.projects { display: grid; gap: 56px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pcard { display: flex; flex-direction: column; }
.pcard .shot { aspect-ratio: 16/10; transition: border-color .15s; }
.pcard .shot:hover { border-color: #555; }
.pcard .shot img { height: 100%; object-fit: cover; object-position: top; }
.pcard .feat-head h3 { font-size: 20px; }
.pcard .desc { font-size: 16px; }
.pcard .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; gap: 40px; }
}

/* featured AI */
.ai .feat-head { margin-top: 0; }
.flow { margin-top: 22px; display: flex; flex-wrap: wrap; }
.flow li {
  position: relative; padding: 8px 14px; border: 1px solid #3a3a3a; border-radius: 6px;
  background: var(--panel); font-family: var(--sans); font-weight: 500; font-size: 14px;
}
.flow li + li { margin-left: 28px; }
.flow li + li::before { content: ''; position: absolute; left: -29px; top: 50%; width: 28px; border-top: 1px solid #555; }
.channels { margin-top: 24px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.channels h4 { font-family: var(--sans); font-size: 16px; }
.channels p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.channels ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.channels li { padding: 6px 12px; border: 1px solid #3a3a3a; border-radius: 6px; font-family: var(--sans); font-size: 14px; color: #c4c4c4; }
.channels li.main { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.channels small { margin-left: 6px; font-size: 12px; opacity: .7; }
.skills .hl dd { color: var(--ink); }

/* grid tiga kartu */
.pgrid { grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) {
  .pgrid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .flow { flex-direction: column; align-items: flex-start; }
  .flow li + li { margin: 22px 0 0 0; }
  .flow li + li::before { left: 20px; top: -23px; width: 0; height: 22px; border-top: 0; border-left: 1px solid #555; }
}
