@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Inter:wght@400;500;600;700;800&display=swap');

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

/* Light theme */
:root {
  --bg:         #f9fafb;
  --surface:    #ffffff;
  --surface2:   #f3f4f6;
  --border:     #e5e7eb;
  --border2:    #d1d5db;
  --accent:     #0d9488;
  --accent-dim: rgba(13,148,136,0.09);
  --pass:       #16a34a;
  --pass-dim:   rgba(22,163,74,0.09);
  --fail:       #dc2626;
  --fail-dim:   rgba(220,38,38,0.09);
  --warn:       #d97706;
  --warn-dim:   rgba(217,119,6,0.09);
  --text:       #111827;
  --text-muted: #6b7280;
  --text-dim:   #9ca3af;
  --font:       'Inter', system-ui, sans-serif;
  --mono:       'IBM Plex Mono', monospace;
  --shadow:     0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 8px rgba(0,0,0,0.08);
}

/* Dark theme */
[data-theme="dark"] {
  --bg:         #0a0f14;
  --surface:    #111820;
  --surface2:   #161e28;
  --border:     #1f2d3d;
  --border2:    #2a3d52;
  --accent:     #2dd4bf;
  --accent-dim: rgba(45,212,191,0.10);
  --pass:       #34d399;
  --pass-dim:   rgba(52,211,153,0.10);
  --fail:       #f87171;
  --fail-dim:   rgba(248,113,113,0.10);
  --warn:       #fbbf24;
  --warn-dim:   rgba(251,191,36,0.10);
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #475569;
  --shadow:     0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 8px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0a0f14;
    --surface:    #111820;
    --surface2:   #161e28;
    --border:     #1f2d3d;
    --border2:    #2a3d52;
    --accent:     #2dd4bf;
    --accent-dim: rgba(45,212,191,0.10);
    --pass:       #34d399;
    --pass-dim:   rgba(52,211,153,0.10);
    --fail:       #f87171;
    --fail-dim:   rgba(248,113,113,0.10);
    --warn:       #fbbf24;
    --warn-dim:   rgba(251,191,36,0.10);
    --text:       #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim:   #475569;
    --shadow:     0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 8px rgba(0,0,0,0.5);
  }
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  opacity: 0.97;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 58px;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.38rem 0.65rem;
  border-radius: 6px;
  transition: all 0.15s;
}

nav ul a:hover { color: var(--text); background: var(--surface2); }
nav ul a.active { color: var(--accent); background: var(--accent-dim); }

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.6rem;
  transition: all 0.15s;
  line-height: 1;
}

.theme-btn:hover { border-color: var(--accent); color: var(--accent); }

/* MAIN */
main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 90px 1.5rem 5rem;
}

/* HERO */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 1.1rem;
}

.hero h1 .hi { color: var(--text-muted); font-weight: 500; }
.hero h1 .name { color: var(--accent); }

.hero-bio {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-counts {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.count-item { display: flex; flex-direction: column; gap: 0.15rem; }

.count-num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}

.count-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.18s;
  display: inline-block;
  border: 1px solid transparent;
}

.btn-solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-solid:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* PAGE HEADER */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.page-header h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}

/* PROFILE PHOTO - centered */
.profile-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.profile-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-dim);
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  transition: all 0.15s;
}

.profile-links a:hover {
  background: var(--accent-dim);
}

.art-confidential {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  margin-bottom: 0.5rem;
}

.v-pass { background: var(--pass-dim); color: var(--pass); border: 1px solid var(--pass-dim); }
.v-fail { background: var(--fail-dim); color: var(--fail); border: 1px solid var(--fail-dim); }
.v-warn { background: var(--warn-dim); color: var(--warn); border: 1px solid var(--warn-dim); }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 2.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 2.25rem;
}

.tl-dot {
  position: absolute;
  left: -1.95rem;
  top: 0.3rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border2);
}

.tl-dot.pass { border-color: var(--pass); }
.tl-dot.fail { border-color: var(--fail); }

.tl-stage {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.tl-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tl-item p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.78;
}

/* ARTIFACTS */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.9rem;
}

.art-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 1.3rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  box-shadow: var(--shadow);
  transition: all 0.18s;
}

.art-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.art-type {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.art-icon { font-size: 1.4rem; margin-bottom: 0.55rem; display: block; }

.art-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.art-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.58;
}

/* SKILLS */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.skill {
  font-family: var(--mono);
  font-size: 0.71rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.26rem 0.65rem;
  border-radius: 3px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-family: var(--mono);
  margin-top: 5rem;
}

footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 720px) {
  nav ul a { padding: 0.35rem 0.45rem; font-size: 0.76rem; }
  .nav-inner { padding: 0 1rem; }
  main { padding: 76px 1rem 4rem; }
  .hero h1 { letter-spacing: -0.8px; }
  .art-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.75rem; }
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
  line-height: 1;
}

.hamburger:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO TWO COLUMN ── */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  min-height: 80vh;
  padding: 1.5rem 0;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── MOBILE ── */
@media (max-width: 720px) {
  .hamburger { display: block; }

  #nav-menu {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.1rem;
    z-index: 300;
  }

  #nav-menu.open { display: flex; }

  #nav-menu li { width: 100%; }

  #nav-menu a {
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .hero {
    flex-direction: column-reverse;
    min-height: auto;
    gap: 1.5rem;
    padding-top: 1rem;
  }

  .hero-right {
    flex: none;
    width: 100%;
    justify-content: center;
  }

  .hero-photo {
    width: 200px;
    height: 200px;
  }

  .hero-left { align-items: center; text-align: center; }

  .hero-counts { justify-content: center; }

  .btn-row { justify-content: center; }
}
