/* ============================================================
   VARIABLES (shared palette with style.css)
   ============================================================ */
:root {
  --bg:            #000000;
  --surface:       #0b0d12;
  --border:        rgba(255, 255, 255, 0.08);
  --text-primary:  #f2f2f2;
  --text-secondary:#a8a8a8;
  --text-muted:    #6a6a6a;
  --accent:        #4d8fff;
  --accent-dim:    rgba(77, 143, 255, 0.10);
  --accent-border: rgba(77, 143, 255, 0.22);
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 66px;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-cta {
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 16px;
  border-radius: 3px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(77, 143, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 143, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%);
}

.hero .wrap { position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 20px 0 24px;
}

.hero-tagline {
  max-width: 600px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-stats dd {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-solid {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-solid:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 28px rgba(77, 143, 255, 0.28);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; border-top: 1px solid var(--border); }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.label-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

strong { color: var(--text-primary); font-weight: 600; }
em { font-style: normal; color: var(--accent); font-weight: 500; }

/* Experience entries */
.entry {
  padding: 0 0 48px 24px;
  margin-bottom: 48px;
  border-left: 1px solid var(--accent-border);
}

.entry:last-child { margin-bottom: 0; padding-bottom: 0; }

.entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  margin-bottom: 16px;
}

.entry-org { color: var(--text-secondary); margin-top: 2px; }

.entry-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.entry-points {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text-secondary);
  max-width: 760px;
}

.entry-points li { position: relative; padding-left: 18px; }

.entry-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 1px;
  background: var(--accent);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: #9cbfff;
}

/* Project */
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.project-media {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 1060 / 700;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.project-media:hover img { transform: scale(1.03); }

.project-body h3 { font-size: 1.75rem; margin: 10px 0 14px; }
.project-body > p { color: var(--text-secondary); margin-bottom: 18px; }

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* About cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card p + p { margin-top: 10px; }

.card-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.card-lead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.muted { color: var(--text-muted); font-size: 0.875rem; }

.skills {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
}

.skills dt { color: var(--text-primary); font-weight: 500; }

.plain { list-style: none; display: grid; gap: 10px; }

/* Contact */
.contact-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 2rem);
  font-weight: 600;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.contact-email a { text-decoration: none; border-bottom: 1px solid var(--accent-border); }
.contact-email a:hover { color: var(--accent); }

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-links li:not(:last-child) { display: none; }
  .section { padding: 72px 0; }
  .hero-stats { gap: 16px 32px; }
  .card { padding: 22px; }
  .skills { grid-template-columns: 1fr; gap: 2px; }
  .skills dd { margin-bottom: 10px; }
}
