:root {
  --bg:          #0e0d0c;
  --bg-nav:      rgba(14, 13, 12, 0.88);
  --border:      #1f1e1d;
  --border-hl:   #2c2b29;
  --text:        #b8b4ae;
  --text-dim:    #5a5754;
  --text-bright: #e8e4de;
  --accent:      #c8a87a;
  --accent-dim:  rgba(200, 168, 122, 0.08);
  --accent-glow: rgba(200, 168, 122, 0.18);
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --font-sans:   'Inter', system-ui, sans-serif;
  --nav-h:       60px;
  --max-w:       760px;
  --section-py:  88px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hl); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection { background: var(--accent-glow); color: var(--accent); }

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s;
}

#navbar.scrolled {
  border-bottom-color: var(--border);
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

.hl {
  color: var(--accent);
}

section {
  padding: var(--section-py) 0;
}

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

.section-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 56px;
  padding-top: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-photo {
  flex-shrink: 0;
  order: 2;
}

.hero-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border-hl);
  display: block;
}

.hero-greeting {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-style: italic;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 40px;
  min-height: 1.6rem;
}

.cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink 1.1s step-end infinite;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline {
  border: 1px solid var(--border-hl);
  color: var(--text-dim);
  background: transparent;
}

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

#about {
  border-top: 1px solid var(--border);
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 0.96rem;
  max-width: 640px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong { color: var(--text-bright); font-weight: 600; }

#experience {
  border-top: 1px solid var(--border);
}

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 44px;
  border-left: 1px solid var(--border);
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-content {
  padding-top: 2px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.job-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 3px;
}

.job-company .company-link {
  font-size: 0.82rem;
  color: var(--accent);
  transition: opacity 0.2s;
}

.job-company .company-link:hover { opacity: 0.7; }

.job-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 3px;
  flex-shrink: 0;
}

.job-bullets {
  list-style: none;
}

.job-bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  line-height: 1.65;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.8;
}

footer strong { color: var(--text); }

.footer-sub {
  color: var(--border-hl);
  font-size: 0.68rem;
  margin-top: 3px;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  :root {
    --section-py: 64px;
  }

  .nav-links { display: none; }

  #hero {
    flex-direction: column;
    gap: 36px;
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 56px;
    min-height: auto;
  }

  .hero-photo { order: -1; }

  .hero-photo img {
    width: 160px;
    height: 160px;
  }

  .hero-name { letter-spacing: -1.5px; }

  .timeline-header {
    flex-direction: column;
    gap: 2px;
  }
}
