/* Palet: ruang gelap seperti panel kendali, aksen cyan es, dan amber sebagai penanda status */
:root {
  --bg: #05070b;
  --surface: #0b1018;
  --line: #1b2636;
  --text: #e4ebf3;
  --muted: #7d8ca2;
  --ice: #7ef0e4;
  --amber: #ffb547;
  --radius: 4px;
  --display: "Unbounded", "Segoe UI", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(126, 240, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 240, 228, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  min-height: 100vh;
}

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, .meter-track:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ice); color: #000; padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(5, 7, 11, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display); font-weight: 800; font-size: 15px;
  color: var(--bg); background: var(--ice);
  padding: 6px 10px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 78% 100%, 0 100%);
}
.brand:hover { text-decoration: none; }
.brand-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar nav a { color: var(--muted); font-size: 14px; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }

main { padding: 0 clamp(20px, 5vw, 64px); max-width: 1180px; margin: 0 auto; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(64px, 12vh, 140px) 0 clamp(56px, 8vh, 96px);
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.tagline { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; margin: 0 0 28px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li {
  font-size: 13px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text);
}

/* Panel ringkasan */
.readout {
  background: linear-gradient(160deg, var(--surface), #070a10);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ice);
  padding: 28px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.readout dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 16px 24px; }
.readout dt { color: var(--muted); font-size: 14px; }
.readout dd { margin: 0; font-size: 15px; font-weight: 500; }

/* Blok konten */
.block {
  padding: clamp(48px, 8vh, 88px) 0;
  border-top: 1px solid var(--line);
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
h3 { font-size: 16px; margin: 0 0 12px; font-weight: 700; }

/* Meter */
.meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px 48px;
}
.meter-head { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; }
.meter-val { color: var(--ice); font-variant-numeric: tabular-nums; }
.meter-track {
  height: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ice), #5fb8ff);
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Project */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.card p { margin: 0; color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h3 { font-family: var(--display); font-size: 18px; margin: 0; }
.pill {
  font-size: 12px; padding: 3px 10px;
  color: var(--amber); border: 1px solid rgba(255, 181, 71, 0.4);
  border-radius: 999px;
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tags li { font-size: 12px; color: var(--ice); background: rgba(126, 240, 228, 0.08); padding: 3px 8px; }
.card a { margin-top: auto; font-weight: 700; }

/* Kontak */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.link-label { display: block; font-size: 13px; color: var(--muted); }
.link-list a { word-break: break-word; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted); font-size: 14px;
  text-align: center;
}
.footer p { margin: 0; }

/* Avatar: bingkai bersudut dengan garis pemindai */
.avatar {
  position: relative;
  width: 112px; height: 112px;
  margin: 0 0 32px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  overflow: hidden;
}
.avatar::before, .avatar::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--ice); border-style: solid; pointer-events: none;
}
.avatar::before { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.avatar::after  { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.avatar-initials {
  font-family: var(--display); font-weight: 800; font-size: 34px;
  color: var(--ice); letter-spacing: 0.02em;
}
.avatar-scan {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
  opacity: 0.6;
  animation: scan 3.2s ease-in-out infinite;
}
.avatar.has-photo .avatar-initials { display: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@keyframes scan {
  0% { transform: translateY(0); }
  50% { transform: translateY(110px); }
  100% { transform: translateY(0); }
}

/* Responsif */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .topbar nav { gap: 6px 14px; }
}
@media (max-width: 480px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .meters, .cards { grid-template-columns: 1fr; }
}

/* Hormati pengaturan gerak yang dikurangi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
