/* ── Z-INDEX STACKING ─────────────────────────────────────── */
nav,
section,
footer,
.modal-overlay {
  position: relative;
  z-index: 1;
}

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── SECTION ──────────────────────────────────────────────── */
.section {
  padding: var(--space-xl) 0;
}

.section--compact {
  padding: 60px 0;
}

.section-label {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--fh);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 16, 29, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--fm);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-gears {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 22px;
  height: 16px;
}

.logo-gear {
  font-size: 16px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  transition: opacity 0.3s;
  position: absolute;
}

.logo-gear:first-child {
  left: 0;
  top: -1px;
}

.logo-gear.logo-gear-2 {
  font-size: 12px;
  left: 10px;
  top: 5px;
}

.nav-logo:hover .logo-gear {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

.nav-link--active {
  color: var(--accent) !important;
}

.nav-resume-btn {
  background: rgba(59, 158, 255, 0.1) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(59, 158, 255, 0.3);
  border-radius: 4px;
  padding: 5px 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
}

.nav-resume-btn:hover {
  background: rgba(59, 158, 255, 0.18) !important;
}

/* ── HAMBURGER ────────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted2);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 1px;
}

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: var(--space-xl);
  padding-bottom: 60px;
}

.hero-compact {
  min-height: auto !important;
}

.hero-inner {
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--fm);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  background: var(--accent);
}

h1.hero-name {
  font-family: var(--fh);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h1.hero-name .hi {
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--fh);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--muted2);
  margin-bottom: var(--space-sm);
  min-height: 1.6em;
}

.hero-currently-building {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-family: var(--fm);
  font-size: 12px;
  color: var(--green);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 15px;
  color: var(--muted2);
  max-width: 560px;
  margin-bottom: var(--space-md);
  line-height: 1.85;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scroll-cue span {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-cue-line {
  width: 1px;
  height: var(--space-lg);
  background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ── ABOUT ────────────────────────────────────────────────── */
#about {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: start;
}

.about-text p {
  color: var(--muted2);
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.85;
}

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

.about-text .hi {
  color: var(--accent);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
}

.stat-num {
  font-family: var(--fh);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── EXPERIENCE TIMELINE ─────────────────────────────────── */
.experience-timeline {
  margin-bottom: var(--space-md);
  padding: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.exp-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}

.exp-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 4px;
}

.exp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.exp-dot-past {
  background: var(--muted);
}

.exp-dot-current {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.exp-period {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exp-role {
  font-family: var(--fh);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 2px 0;
}

.exp-badge {
  font-family: var(--fm);
  font-size: 9px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  padding: 1px var(--space-xs);
  margin-left: 6px;
}

.exp-note {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.6;
}

/* ── SKILLS ───────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.skill-group-label {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.skill-group-label--spaced {
  margin-top: 40px;
}

/* ── KEY HIGHLIGHTS ───────────────────────────────────────── */
#highlights {
  border-bottom: 1px solid var(--border);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

/* ── LATEST POSTS ─────────────────────────────────────────── */
#latest-posts {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.blog-cta-wrap {
  text-align: center;
  margin-top: 36px;
}

/* ── CONTACT ──────────────────────────────────────────────── */
#contact {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

/* ── WAR STORIES ─────────────────────────────────────────── */
#incidents {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.incidents-intro {
  color: var(--muted2);
  font-size: 16px;
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.85;
}

.incidents-intro strong {
  color: var(--text);
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--muted);
}

.footer-arch-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
}

.footer-arch-link:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .section {
    padding: 60px 0;
  }

  .section--compact {
    padding: 36px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .about-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 16, 29, 0.97);
    backdrop-filter: blur(14px);
    padding: 20px var(--space-md);
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }

  h1.hero-name {
    font-size: 3.2rem;
  }

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

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

@media (max-width: 480px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}
