/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --bg-elevated: #f8f9f8;
  --bg-warm:     #f4f5f4;
  --text:        #111714;
  --text-muted:  #5a6659;
  --accent:      rgb(22, 125, 19);
  --accent-hover:rgb(18, 105, 15);
  --accent-soft: rgba(22, 125, 19, 0.10);
  --highlight:   rgb(22, 125, 19);
  --border:      rgba(0, 0, 0, 0.08);
  --border-green:rgba(22, 125, 19, 0.28);
  --font-sans:  "DM Sans", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --container:   min(92vw, 1080px);
  --space:       clamp(1.25rem, 3vw, 2.5rem);
  --header-h:    68px;
  --radius:      14px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:   0 8px 28px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.13);
  --transition:  0.25s ease;
}

/* Dark mode */
[data-theme="dark"] {
  --bg:          #0d1117;
  --bg-elevated: #161b22;
  --bg-warm:     #131920;
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --border:      rgba(255,255,255,0.08);
  --border-green:rgba(22, 125, 19, 0.38);
  --accent-soft: rgba(22, 125, 19, 0.14);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 28px rgba(0,0,0,0.4);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.5);
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space);
}
section { padding: 6rem 0; }

/* ─── Custom cursor ─────────────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background 0.2s;
}
.cursor-follower {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: border-color 0.2s;
}
.has-custom-cursor,
.has-custom-cursor * { cursor: none !important; }

/* ─── Preloader ─────────────────────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-box { text-align: center; }
.preloader-initials {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.preloader-bar {
  width: 180px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  width: 0%;
  transition: width 0.06s linear;
}

/* ─── Scroll progress ───────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #4ade80);
  z-index: 1500;
  width: 0%;
  transition: width 0.08s linear;
}

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition), background 0.3s;
}
[data-theme="dark"] .site-header {
  background: rgba(13, 17, 23, 0.88);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-green);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────────── */
.nav-list { display: flex; gap: 2rem; }
.nav-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent); }

/* ─── Header actions ──────────────────────────────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--border-green);
  background: var(--accent-soft);
}
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 125, 19, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 125, 19, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
  animation: blob-float 10s ease-in-out infinite;
}
[data-theme="dark"] .hero-blob { opacity: 0.18; }
.blob-1 {
  width: 520px; height: 520px;
  background: var(--accent);
  top: -140px; right: -120px;
}
.blob-2 {
  width: 380px; height: 380px;
  background: #4ade80;
  bottom: -80px; left: -100px;
  animation-delay: -5s;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(24px, -18px) scale(1.04); }
  66%       { transform: translate(-18px, 14px) scale(0.96); }
}

/* Hero inner grid */
.hero-inner {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr auto;
    gap: 4rem;
  }
  .hero-photo { order: 2; }
}

/* Hero label */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-green);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}
.label-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* Hero title */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
}
.hero-title .highlight { color: var(--highlight); }
.typed-wrapper { display: inline; }
.typed-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 0 2rem;
  line-height: 1.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(22, 125, 19, 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(22, 125, 19, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--border-green);
  color: var(--accent);
}

/* Hero photo */
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 24px;
}
.photo-ring {
  position: relative;
  display: inline-block;
}
.photo-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--border-green);
  animation: ring-spin 12s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.hero-photo img {
  width: 260px; height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border-green);
  box-shadow: var(--shadow-md);
  display: block;
}
@media (min-width: 768px) { .hero-photo img { width: 300px; height: 300px; } }
.photo-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-green);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Hero scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 1px;
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ─── Section common ──────────────────────────────────────────────────────────── */
.section-inner { }
.section-header { margin-bottom: 3rem; }
.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title::after {
  content: '';
  display: block;
  width: 2.5rem; height: 3px;
  background: linear-gradient(90deg, var(--accent), #4ade80);
  margin-top: 0.6rem;
  border-radius: 2px;
}
.section-desc { color: var(--text-muted); margin: 0; }
.section-desc a, .link-arrow {
  font-weight: 600;
  color: var(--highlight);
  transition: color var(--transition);
}
.link-arrow:hover, .section-desc a:hover { color: var(--accent-hover); }

/* ─── About ───────────────────────────────────────────────────────────────────── */
.about { background: var(--bg-elevated); border-top: 1px solid var(--border); }
.about-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 680px) {
  .about-grid { grid-template-columns: 1fr 280px; }
}
.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 1rem;
  line-height: 1.65;
}
.about-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.about-content p:last-of-type { margin-bottom: 1.5rem; }

/* Skills */
.about-skills h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 1rem;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.skill-badge {
  padding: 0.3rem 0.8rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-green);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.skill-badge:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Certs */
.about-certs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.cert-icon {
  width: 28px; height: 28px;
  background: var(--accent-soft);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── Experience / Timeline ───────────────────────────────────────────────────── */
.experience { background: var(--bg); border-top: 1px solid var(--border); }

.timeline {
  position: relative;
  padding-left: 1.75rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 4px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -1.75rem;
  top: 10px;
}
.timeline-dot {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--border-green);
}

.timeline-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-green);
  box-shadow: var(--shadow-md);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.timeline-header h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
}
.timeline-company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}
.timeline-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.timeline-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.exp-bullets {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}
.exp-bullets li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.exp-bullets li:last-child { margin-bottom: 0; }
.exp-bullets li::marker { color: var(--accent); }
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.timeline-tags span {
  padding: 0.2rem 0.65rem;
  background: var(--accent-soft);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

/* ─── Projects ────────────────────────────────────────────────────────────────── */
.work { background: var(--bg-warm); border-top: 1px solid var(--border); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-green);
}
.work-card-featured {
  border-color: var(--border-green);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--accent-soft) 100%);
}
.work-card-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.work-number {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.work-badge-live {
  background: #22c55e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.work-card-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform var(--transition), color var(--transition);
}
.work-card:hover .work-card-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}
.work-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}
.work-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.work-tags span {
  padding: 0.18rem 0.6rem;
  background: var(--accent-soft);
  border-radius: 100px;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 500;
}
.work-more { text-align: center; }

/* ─── Contact ─────────────────────────────────────────────────────────────────── */
.contact { background: var(--bg-elevated); border-top: 1px solid var(--border); }
.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 40ch;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 2rem;
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-green);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--transition);
}
.contact-card:hover .contact-icon { background: var(--accent); color: #fff; }
.contact-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.15rem;
}
.contact-card-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.contact-resume { }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ─── Scroll reveal animation ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Mobile nav ──────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    z-index: 99;
  }
  .nav.is-open .nav-list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    display: block;
    padding: 0.65rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .timeline { padding-left: 1.25rem; }
}
