/* ============================================
   DIWASH KOIRALA — PORTFOLIO CSS
   Aesthetic: Dark Editorial / Engineering Journal
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --surface: #141414;
  --surface-2: #1e1e1e;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);

  --text-primary: #f0ece4;
  --text-secondary: #8a8680;
  --text-muted: #4a4744;

  --accent: #7eb8d4;
  --accent-dim: rgba(126,184,212,0.12);
  --accent-glow: rgba(126,184,212,0.25);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Mono', monospace;
  --font-serif: 'Instrument Serif', serif;

  --radius: 4px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

[data-theme="light"] {
  --bg: #f5f2ed;
  --bg-2: #eeebe6;
  --bg-3: #e5e1da;
  --surface: #ebe8e3;
  --surface-2: #e0ddd8;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.18);
  --text-primary: #1a1816;
  --text-secondary: #6b6760;
  --text-muted: #b0ada9;
  --accent: #2a7fa5;
  --accent-dim: rgba(42,127,165,0.10);
  --accent-glow: rgba(42,127,165,0.20);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
svg { display: block; }

/* ---- Noise Overlay ---- */
.noise {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ---- Custom Cursor ---- */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-trail {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(126,184,212,0.4);
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: all 0.12s var(--ease);
}
body:has(a:hover) .cursor, body:has(button:hover) .cursor {
  width: 16px; height: 16px;
}
@media (hover: none) { .cursor, .cursor-trail { display: none; } }

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(245,242,237,0.88);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.5px;
}
.logo-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.nav-links {
  display: flex; align-items: center; gap: 40px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 16px;
  transition: border-color 0.25s, color 0.25s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 20px; height: 1px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease);
}
.hamburger.open span:first-child { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* ---- Container ---- */
.container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 120px 0; }

/* ---- Section Header ---- */
.section-header {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 72px;
}
.section-num {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-right.visible {
  opacity: 1; transform: translateX(0);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 32px 120px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
[data-theme="light"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.hero-left { display: flex; flex-direction: column; }

/* ---- Inline Avatar on Name Line ---- */
.name-line-photo {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim), 0 0 40px var(--accent-glow);
  flex-shrink: 0;
  position: relative;
  top: 4px;
  transition: box-shadow 0.4s var(--ease);
}
.hero-avatar:hover {
  box-shadow: 0 0 0 8px var(--accent-dim), 0 0 60px var(--accent-glow);
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero-avatar:hover img {
  filter: grayscale(0%) contrast(1.08);
  transform: scale(1.06);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11px;
  font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 32px;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 148px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -4px;
  margin-bottom: 32px;
  display: flex; flex-direction: column;
}
.name-line { display: block; }
.name-line.italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}
.hero-role {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.role-slash {
  color: var(--accent); font-size: 18px; font-weight: 300;
}
.role-text {
  font-family: var(--font-body); font-size: 13px;
  font-weight: 400; letter-spacing: 0.06em;
  color: var(--text-secondary); text-transform: uppercase;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 480px;
}
.hero-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hero-scroll-indicator {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}
.scroll-label {
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero-counter {
  position: absolute; bottom: 80px; right: 32px;
  display: flex; flex-direction: column; gap: 0;
  max-width: 160px;
}
@media (max-width: 768px) { .hero-counter { display: none; } }
.counter-item {
  padding: 20px 0;
}
.counter-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.counter-label {
  display: block;
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.counter-divider {
  width: 100%; height: 1px;
  background: var(--border);
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 80px;
  align-items: start;
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500; line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.about-lead em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--accent);
}
.about-body {
  font-family: var(--font-body); font-size: 13px;
  font-weight: 300; line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.aside-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  background: var(--surface);
  transition: border-color 0.3s;
}
.aside-card:hover { border-color: var(--border-hover); }
.aside-title {
  font-family: var(--font-body); font-size: 10px;
  font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.aside-list {
  list-style: none;
}
.aside-list li {
  font-family: var(--font-body); font-size: 12px;
  font-weight: 300; color: var(--text-secondary);
  padding: 5px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.aside-list li::before {
  content: '—'; color: var(--accent); font-size: 10px;
}
.aside-list li:last-child { border-bottom: none; }
.aside-body {
  font-family: var(--font-body); font-size: 12px;
  font-weight: 300; line-height: 1.75; color: var(--text-secondary);
}

/* ============================================
   SKILLS
   ============================================ */
.skills { border-bottom: 1px solid var(--border); }
.skills-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  background: var(--border);
}
.skill-block {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 36px 32px;
  background: var(--surface);
  transition: background 0.3s;
}
.skill-block:hover { background: var(--surface-2); }
.skill-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
}
.skill-icon svg { width: 18px; height: 18px; }
.skill-info { flex: 1; }
.skill-name {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.skill-desc {
  font-family: var(--font-body); font-size: 11px;
  font-weight: 300; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 16px;
}
.skill-bar {
  height: 2px; background: var(--border);
  border-radius: 999px; overflow: hidden;
}
.skill-fill {
  height: 100%; width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1.2s var(--ease);
}
.tools-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.tools-label {
  font-family: var(--font-body); font-size: 11px;
  font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.tools-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tag {
  font-family: var(--font-body); font-size: 11px;
  font-weight: 400; letter-spacing: 0.05em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px;
  transition: border-color 0.25s, color 0.25s;
}
.tool-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   PROJECTS
   ============================================ */
.projects { background: var(--bg-2); border-bottom: 1px solid var(--border); }
.projects-intro {
  font-family: var(--font-body); font-size: 12px;
  font-weight: 300; letter-spacing: 0.06em;
  color: var(--text-muted); text-transform: uppercase;
  margin-top: -48px; margin-bottom: 56px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.project-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.project-card:hover { background: var(--surface-2); }
.project-card:hover .card-accent { transform: scaleX(1); }
.card-accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card-top { padding: 32px 28px 0; flex: 1; }
.card-bottom { padding: 20px 28px 32px; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-domain {
  font-family: var(--font-body); font-size: 10px;
  font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 3px 10px; border-radius: 999px;
}
.card-links { display: flex; gap: 10px; }
.card-link {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-muted);
  transition: all 0.25s;
}
.card-link svg { width: 13px; height: 13px; }
.card-link:hover { border-color: var(--accent); color: var(--accent); }
.card-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 12px; line-height: 1.2;
}
.card-desc {
  font-family: var(--font-body); font-size: 12px;
  font-weight: 300; line-height: 1.75; color: var(--text-secondary);
  margin-bottom: 24px;
}
.card-problem {
  border-top: 1px solid var(--border);
  padding-top: 16px; margin-bottom: 20px;
}
.problem-label {
  display: block;
  font-family: var(--font-body); font-size: 10px;
  font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px;
}
.card-problem p {
  font-family: var(--font-body); font-size: 11px;
  font-weight: 300; line-height: 1.7; color: var(--text-secondary);
}
.card-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-tag {
  font-family: var(--font-body); font-size: 10px;
  font-weight: 400; letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: var(--radius);
}

/* ============================================
   CONTACT
   ============================================ */
.contact { border-bottom: 1px solid var(--border); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.contact-lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 500;
  line-height: 1.45; color: var(--text-primary);
  margin-bottom: 20px;
}
.contact-body {
  font-family: var(--font-body); font-size: 13px;
  font-weight: 300; line-height: 1.8; color: var(--text-secondary);
}
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.contact-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.contact-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateX(4px);
}
.contact-item:hover::before { transform: scaleY(1); }
.contact-item:hover .contact-arrow { opacity: 1; transform: translateX(0); }
.contact-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--accent);
}
.contact-item-icon svg { width: 18px; height: 18px; }
.contact-item-text { flex: 1; }
.contact-item-label {
  display: block;
  font-family: var(--font-body); font-size: 10px;
  font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-item-value {
  display: block;
  font-family: var(--font-body); font-size: 12px;
  font-weight: 400; color: var(--text-primary);
}
.contact-arrow {
  width: 18px; height: 18px;
  color: var(--accent);
  opacity: 0; transform: translateX(-8px);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
}
.footer-name {
  font-family: var(--font-body); font-size: 12px;
  font-weight: 300; color: var(--text-secondary);
}
.footer-copy {
  margin-left: auto;
  font-family: var(--font-body); font-size: 11px;
  font-weight: 300; color: var(--text-muted);
}
.footer-year {
  font-family: var(--font-body); font-size: 11px;
  font-weight: 300; color: var(--text-muted);
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 0;
    background: var(--bg);
    flex-direction: column; justify-content: center;
    gap: 32px; text-align: center;
    opacity: 0; pointer-events: none;
    transform: translateY(-16px);
    transition: all 0.4s var(--ease);
    z-index: 999;
  }
  .nav-links.open {
    opacity: 1; pointer-events: all;
    transform: translateY(0);
  }
  .nav-link { font-size: 24px; letter-spacing: 0; text-transform: none; }
  .hamburger { display: flex; position: relative; z-index: 1001; }

  /* Hero */
  .hero { padding: calc(var(--nav-h) + 40px) 20px 80px; }
  .hero-name { letter-spacing: -2px; }
  .name-line-photo { gap: 14px; }
  .hero-avatar { width: 72px; height: 72px; top: 2px; }

  /* Sections */
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .section-header { margin-bottom: 48px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  /* Footer */
  .footer-copy { margin-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Nav inner */
  .nav-inner { padding: 0 20px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 300px; gap: 48px; }
}

/* ---- Stagger delays for reveals ---- */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---- Selection ---- */
::selection { background: var(--accent); color: #0a0a0a; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
