/* Aditya Tri Kurniawan — portfolio site.
 * Palette and type follow the Machvory marketing site: #00020F ground,
 * #00041F panels, #0E122E hairlines, #4C75FF / #003BFF accents, Switzer. */

:root {
  --bg: #00020f;
  --panel: #00041f;
  --panel-2: #050a29;
  --line: #0e122e;
  --line-2: #161c3d;
  --accent: #4c75ff;
  --accent-strong: #003bff;
  --accent-soft: #9bb1ff;
  --text: #ffffff;
  --muted: #9aa3b8;
  --dim: #6b748c;
  --maxw: 1180px;
  --nav-h: 66px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: switzer, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(0, 2, 15, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
  white-space: nowrap;
}

.brand span {
  color: var(--dim);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}

.btn-primary:hover {
  background: #1a52ff;
}

.btn-ghost {
  border-color: var(--line-2);
  color: #dfe4f2;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: #fff;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 15px;
}

/* ----------------------------------------------------------------- hero */

.hero {
  border-top: none;
  padding: 76px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(0, 59, 255, 0.26) 0%, transparent 62%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  margin-top: 18px;
}

.hero .role {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--accent-soft);
  font-weight: 600;
}

.hero .blurb {
  margin-top: 22px;
  font-size: 17.5px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.portrait-wrap {
  position: relative;
  justify-self: center;
}

.portrait-wrap img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 16%;
  border: 1px solid var(--line-2);
}

.portrait-glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 117, 255, 0.22), transparent 66%);
  pointer-events: none;
}

/* ----------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  background: var(--bg);
  padding: 26px 24px;
}

.stats b {
  display: block;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--dim);
}

/* ----------------------------------------------------------------- cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}

.card h3 {
  font-size: 17px;
}

.card h4 {
  font-size: 15.5px;
}

.card p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ work */

.project {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  overflow: hidden;
}

.project + .project {
  margin-top: 26px;
}

.project-head {
  padding: 30px 32px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.project-head h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 10px;
}

.project-head .lede {
  margin-top: 14px;
  max-width: 700px;
  font-size: 15.5px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-soft);
  border: 1px solid var(--line-2);
  background: rgba(76, 117, 255, 0.07);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.shots {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.shots.two {
  grid-template-columns: 1fr 1fr;
}

.shots figure {
  margin: 0;
  background: var(--panel);
  padding: 18px;
}

.shots img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-2);
}

.shots figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
}

.detail-strip {
  border-top: 1px solid var(--line);
  padding: 24px 32px 30px;
}

.detail-strip dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 28px;
}

.detail-strip dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.detail-strip dd {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: #c7cddc;
}

/* ---------------------------------------------------------------- skills */

.skill-block + .skill-block {
  margin-top: 26px;
}

.skill-block h4 {
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13.5px;
  color: #c7cddc;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px 12px;
}

.chip.next {
  border-color: rgba(76, 117, 255, 0.55);
  background: rgba(0, 59, 255, 0.14);
  color: #cfd9ff;
}

/* -------------------------------------------------------------- timeline */

.tl {
  border-left: 1px solid var(--line-2);
  padding-left: 28px;
}

.tl-item + .tl-item {
  margin-top: 34px;
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-strong);
  border: 2px solid var(--bg);
}

.tl-item .when {
  font-size: 13px;
  color: var(--dim);
}

.tl-item h3 {
  font-size: 19px;
  margin-top: 4px;
}

.tl-item .org {
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 15px;
  margin-top: 4px;
}

.tl-item ul {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 15px;
}

.tl-item li {
  margin-bottom: 7px;
}

.tl-item li::marker {
  color: var(--accent);
}

/* --------------------------------------------------------------- academy */

.academy {
  background: linear-gradient(160deg, #010627 0%, #00020f 62%);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 44px;
}

.academy h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 14px;
}

.academy p {
  margin-top: 18px;
  font-size: 16.5px;
  max-width: 780px;
}

/* --------------------------------------------------------------- contact */

.contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.contact-row a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.15s;
}

.contact-row a:hover {
  border-color: var(--accent);
}

.contact-row span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.contact-row b {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  word-break: break-word;
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  font-size: 13.5px;
  color: var(--dim);
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ---------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 940px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .portrait-wrap {
    order: -1;
    justify-self: start;
  }
  .portrait-wrap img {
    width: 148px;
    height: 148px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #00040f;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle {
    display: block;
  }
  .nav .btn-primary {
    display: none;
  }
}

@media (max-width: 680px) {
  section {
    padding: 60px 0;
  }
  .grid-3,
  .grid-2,
  .shots.two {
    grid-template-columns: 1fr;
  }
  .project-head,
  .detail-strip {
    padding-left: 22px;
    padding-right: 22px;
  }
  .academy {
    padding: 28px 22px;
  }
}

@media print {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .nav {
    position: static;
  }
}
