/* ============================================================
   Custom Properties
============================================================ */
:root {
  --bg:        #0D0D0B;
  --bg-card:   #141412;
  --border:    #262626;
  --text:      #EFEEE8;
  --text-muted:#6A6A68;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --mono:      'SFMono-Regular', 'Consolas', 'Menlo', monospace;
  --max-w:     900px;
  --header-h:  60px;
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   Header / Navigation
============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

#site-header.scrolled {
  background: rgba(13, 13, 11, 0.94);
  border-color: var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.header-name:hover { opacity: 1; }

#nav { margin-left: auto; }

#nav ul {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  transition: color 0.2s;
  position: relative;
  z-index: 300;
}

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

/* ============================================================
   Sections General
============================================================ */
section {
  border-top: 1px solid var(--border);
}

section:first-of-type {
  border-top: none;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 44px;
}

/* ============================================================
   Hero
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-top: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}

.hero-name {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
}

.hero-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-hook {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 600px;
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 44px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn i { font-size: 11px; }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(239, 238, 232, 0.25);
}

/* ============================================================
   About
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.about-heading {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.about-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-content p:last-of-type { margin-bottom: 24px; }

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.about-facts li {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.about-facts a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.about-facts a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ============================================================
   Experience
============================================================ */
.experience-list {
  display: flex;
  flex-direction: column;
}

.experience-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.experience-item:first-child { padding-top: 0; }
.experience-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}

.exp-company {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.exp-period {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.exp-role {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}

.exp-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.exp-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border);
}

.exp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============================================================
   Tags
============================================================ */
.tag {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--bg-card);
  white-space: nowrap;
}

/* ============================================================
   Work / Projects
============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.work-card {
  background: var(--bg);
  padding: 28px;
  transition: background 0.2s;
}

.work-card:hover { background: var(--bg-card); }

.work-card--wide {
  grid-column: 1 / -1;
}

.work-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.work-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.work-outcome {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.55;
  font-style: italic;
}

/* ============================================================
   Skills
============================================================ */
.skills-grid {
  display: flex;
  flex-direction: column;
}

.skill-group {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.skill-group:first-child { padding-top: 0; }
.skill-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 4px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============================================================
   Contact
============================================================ */
.contact-content { max-width: 580px; }

.contact-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-link i {
  width: 16px;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-link:hover { color: var(--text); }

/* ============================================================
   Footer
============================================================ */
#site-footer { border-top: 1px solid var(--border); }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-status {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.45;
}

/* ============================================================
   Animations
============================================================ */
@keyframes navItemIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Mobile
============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  #nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  #nav.nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #nav ul {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  #nav li {
    opacity: 0;
    transform: translateY(16px);
  }

  #nav.nav-open li:nth-child(1) { animation: navItemIn 0.3s ease 0.06s forwards; }
  #nav.nav-open li:nth-child(2) { animation: navItemIn 0.3s ease 0.12s forwards; }
  #nav.nav-open li:nth-child(3) { animation: navItemIn 0.3s ease 0.18s forwards; }
  #nav.nav-open li:nth-child(4) { animation: navItemIn 0.3s ease 0.24s forwards; }
  #nav.nav-open li:nth-child(5) { animation: navItemIn 0.3s ease 0.30s forwards; }

  #nav .nav-link {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-muted);
    padding: 10px 0;
    display: block;
    transition: color 0.2s;
  }

  #nav .nav-link:hover,
  #nav .nav-link.active {
    color: var(--text);
  }

  .section-inner { padding: 56px 20px; }

  .hero-inner { padding: calc(var(--header-h) + 32px) 20px 60px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exp-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card--wide { grid-column: auto; }

  .skill-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skill-group-label { padding-top: 0; }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}
