/* ── Variables ─────────────────────────────── */
:root {
  --bg:        #0e0e10;
  --bg-card:   #15151a;
  --bg-hover:  #1c1c23;
  --text:      #dbd8d0;
  --muted:     #76746e;
  --faint:     #2a2a32;
  --accent:    #c4893b;
  --accent-bg: rgba(196, 137, 59, 0.1);
  --border:    #222229;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --nav-h: 60px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 1080px;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Utilities ──────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(14, 14, 16, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.15s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* Mobile nav open state */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

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

/* ── Hero ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
}

.hero-inner {
  padding: 4rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-name em {
  font-style: normal;
  color: var(--muted);
  font-weight: 300;
}

.hero-typed-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 1.65rem;
  margin-bottom: 0.75rem;
}

.hero-typed {
  font-size: 1.0625rem;
  color: var(--muted);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: middle;
  flex-shrink: 0;
  animation: blink 1s step-end infinite;
}

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

.hero-meta {
  font-size: 0.8125rem;
  color: var(--faint);
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #0e0e10;
}
.btn-primary:hover { background: #d6983f; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--faint); background: var(--bg-card); }

/* ── Section ────────────────────────────────── */
.section {
  padding: 6rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Cards ──────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-hover);
  border-color: var(--faint);
  transform: translateY(-2px);
}

.card-num {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.card-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-arrow {
  color: var(--accent);
  font-size: 1.125rem;
  transition: transform 0.2s var(--ease);
}

.card:hover .card-arrow { transform: translateX(4px); }

/* ── Page Hero ──────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.page-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.page-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
}

/* ── Career ─────────────────────────────────── */
.career-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.career-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.career-item:last-child { border-bottom: none; padding-bottom: 0; }

.career-period {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: 0.2rem;
}

.career-current {
  display: inline-block;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  border: 1px solid rgba(196, 137, 59, 0.25);
  margin-top: 0.4rem;
}

.career-role {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.career-org {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.career-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--faint);
  border-radius: 4px;
  padding: 0.2em 0.6em;
}

/* ── Career summary ─────────────────────────── */
.career-summary {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.career-summary p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9375rem;
}

.career-progression {
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 0.15rem;
  margin-bottom: 0.25rem;
  font-style: italic;
}

/* ── Tools ──────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tool-group-name {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ── Gallery ────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
}

.gallery-item--tall {
  aspect-ratio: 2 / 3;
  grid-row: span 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s;
  filter: brightness(0.88) saturate(0.95);
  will-change: transform;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,16,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-label {
  font-size: 0.8125rem;
  color: rgba(220, 216, 208, 0.9);
  font-weight: 400;
}

/* ── Lightbox ───────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 6, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: min(90vw, 1200px);
  max-height: 88vh;
  border-radius: calc(var(--radius) - 2px);
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1;
  transition: color 0.15s;
  padding: 0.25rem;
}
.lightbox-close:hover { color: var(--text); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--muted);
  padding: 1rem;
  transition: color 0.15s;
}
.lightbox-nav:hover { color: var(--text); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Lost & Found ───────────────────────────── */
.lf-wrap {
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
}

.lf-inner {
  max-width: 560px;
  padding: 4rem 2rem;
}

.lf-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.lf-text {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ── Footer ─────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--faint);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--faint);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--muted); }

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(14, 14, 16, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

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

  .hero-name { letter-spacing: -0.03em; }

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

  .career-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .career-period { padding-top: 0; }
  .career-current { display: block; width: fit-content; }

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

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

  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: fit-content; }
}
