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

:root {
  --bg:        #100f0d;
  --bg2:       #181714;
  --bg3:       #211f1c;
  --text:      #f7f0e5;
  --muted:     #c4b9ac;
  --accent:    #e0763a;
  --accent2:   #f09a60;
  --rule:      #2e2b27;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --mono:      'IBM Plex Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Nav ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(16, 15, 13, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hamburger — mobile only */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(16, 15, 13, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-drawer a:hover { color: var(--accent2); }

/* ─── Hero ─────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 3rem;
  padding-top: 5rem;
  gap: 4rem;
  border-bottom: 1px solid var(--rule);
}

.hero-text {
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Photo frame */
.hero-photo {
  animation: fadeUp 0.9s 0.15s ease both;
  position: relative;
}

.hero-photo img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

/* Accent rule behind photo */
.hero-photo::before {
  content: '';
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  right: -1.25rem; bottom: -1.25rem;
  border: 1px solid var(--accent);
  opacity: 0.25;
  pointer-events: none;
}

/* ─── Shared Section Styles ────────────────────────────── */
section {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--rule);
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

/* ─── About ─────────────────────────────────────────────── */
#about .about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-para {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
}
.about-para strong { color: var(--text); font-weight: 500; }

.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.values-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--muted);
}

.values-list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

.values-list strong {
  color: var(--text);
  font-weight: 500;
}

/* ─── Experience ─────────────────────────────────────────── */
#experience .timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.job {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
  position: relative;
}

.job:first-child { border-top: none; }

.job-meta {
  padding-top: 0.15rem;
}

.job-dates {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.job-company {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.15rem;
  margin-top: 0.4rem;
  line-height: 1.1;
}

.job-title {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.job-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.85;
}
.job-desc a { color: var(--accent2); }

/* ─── Toolset ────────────────────────────────────────────── */
#toolset .tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.tool-group h4 {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tool-group p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.9;
}

/* ─── Education & Awards ─────────────────────────────────── */
#education .edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.edu-block h3, .awards-block h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.edu-block p, .awards-block p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
}

.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.awards-list li {
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.awards-list a { color: var(--muted); }
.awards-list a:hover { color: var(--accent2); }

/* ─── Contact ────────────────────────────────────────────── */
#contact {
  text-align: center;
  padding: 7rem 3rem;
  border-bottom: none;
}

#contact .section-label { justify-content: center; }
#contact .section-label::after { display: none; }

#contact .contact-email {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  display: block;
  margin: 1.5rem 0;
  transition: color 0.2s;
}
#contact .contact-email:hover { color: var(--accent2); text-decoration: none; }

#contact .contact-note {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto 2.5rem;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  #home {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
    gap: 3rem;
  }

  .hero-photo { order: -1; }
  .hero-photo::before { display: none; }
  .hero-photo img { max-width: 100%; }

  section { padding: 4rem 1.5rem; }

  #about .about-body { grid-template-columns: 1fr; gap: 2.5rem; }
  #experience .job { grid-template-columns: 1fr; gap: 0.5rem; }
  #toolset .tools-grid { grid-template-columns: 1fr 1fr; }
  #education .edu-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
