/* ============================================================
   PORTFOLIO — Adi Setyawan
   Shared design system · style.css
   Loaded by: index.html  +  projects/*.html
   ============================================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  --bg:            #0A0B0E;
  --bg-panel:      #111317;
  --bg-panel-2:    #0E0F13;
  --line:          #252830;
  --line-strong:   #ECEEF0;
  --accent:        #CCFF00;
  --accent-2:      #FF2D55;
  --text:          #ECEEF0;
  --text-dim:      #8E96A3;
  --text-mono-dim: #4E5562;
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --notch:         18px;
}

/* ---- RESET ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(236, 238, 240, .022) 0px,
      rgba(236, 238, 240, .022) 1px,
      transparent 1px,
      transparent 52px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(236, 238, 240, .022) 0px,
      rgba(236, 238, 240, .022) 1px,
      transparent 1px,
      transparent 52px
    );
}

::selection {
  background: var(--accent);
  color: #0A0B0E;
}

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

ul {
  list-style: none;
}

/* ---- FOCUS ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.05;
}

/* ---- UTILS ---- */
.notch {
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 14, .94);
  backdrop-filter: blur(3px);
  border-bottom: 2px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .03em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.nav-links a {
  position: relative;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color .12s;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .12s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  border: 2px solid var(--line-strong);
  padding: 8px 16px;
  color: var(--text);
  transition: background .1s, color .1s, border-color .1s;
}

.nav-cta:hover {
  background: var(--accent);
  color: #0A0B0E;
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ---- BUTTONS ---- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  padding: 13px 24px;
  border: 2px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 5px 5px 0 0 var(--line);
  transition: transform .08s, box-shadow .08s, background .08s, color .08s, border-color .08s;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--line);
}

.btn-fill {
  background: var(--accent);
  color: #0A0B0E;
  border-color: var(--accent);
  box-shadow: 5px 5px 0 0 #6a8200;
}

.btn-fill:hover {
  box-shadow: 2px 2px 0 0 #6a8200;
}

.btn-ghost {
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--text);
  color: #0A0B0E;
}

/* ---- SECTIONS ---- */
section {
  padding: 90px 0;
  border-bottom: 2px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
}

.section-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mono-dim);
  max-width: 38ch;
  line-height: 1.7;
}

/* ---- SCALE & IMPACT SIDEBAR BLOCKS ---- */
.sb-scale-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.sb-scale-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sb-scale-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  min-width: 54px;
  line-height: 1;
}

.sb-scale-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

.sb-impact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.sb-impact-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.sb-impact-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 2px;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  gap: 2px;
  margin-top: 32px;
  border: 2px solid var(--line);
}

.stat-cell {
  background: var(--bg-panel);
  padding: 28px 20px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mono-dim);
  letter-spacing: .07em;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- RESPONSIVE — SHARED ---- */
@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--line);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 15px 28px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .wrap {
    padding: 0 20px;
  }

  section {
    padding: 64px 0;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-num {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
