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

:root {
  --ink: #f5f5f2;
  --ink-soft: #b3b0ac;
  --ink-muted: #7a7772;
  --paper: #050505;
  --paper-warm: #0e0d10;
  --card: rgba(255,255,255,0.035);
  --card-hover: rgba(255,255,255,0.06);
  --accent: #b98dfa;
  --accent-2: #f472b6;
  --accent-light: rgba(185,141,250,0.12);
  --accent-mid: #c9a6fb;
  --gold: #f0c15c;
  --gold-light: rgba(240,193,92,0.10);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'Inter', -apple-system, sans-serif;
  --code: 'JetBrains Mono', 'DM Mono', monospace;
  --r: 14px;
  /* Shared page shell. Fluid: fills 94% of the viewport up to a 1680px cap, so wide
     monitors actually get used instead of showing a narrow box in the middle.
     Used by .container and nav .inner so the nav always lines up with the content
     below it — change both by changing this. */
  --shell: min(1680px, 94vw);
  /* Gutter shrinks on small screens so phones don't lose 64px to padding. */
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --on-accent: #100a17;
  --nav-bg: rgba(5,5,5,0.72);
  --shadow-card-hover: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(185,141,250,0.12);
  --glow: radial-gradient(ellipse at 50% 18%, rgba(185,141,250,0.18), transparent 60%);
}

:root[data-theme="light"] {
  --ink: #17151c;
  --ink-soft: #4a4650;
  --ink-muted: #78737e;
  --paper: #faf9fc;
  --paper-warm: #f1eef6;
  --card: rgba(23,21,28,0.03);
  --card-hover: rgba(23,21,28,0.055);
  --accent: #7c3aed;
  --accent-2: #db2777;
  --accent-light: rgba(124,58,237,0.08);
  --accent-mid: #8b5cf6;
  --gold: #a3781f;
  --gold-light: rgba(163,120,31,0.10);
  --border: rgba(23,21,28,0.10);
  --border-strong: rgba(23,21,28,0.18);
  --on-accent: #ffffff;
  --nav-bg: rgba(250,249,252,0.78);
  --shadow-card-hover: 0 16px 40px rgba(23,21,28,0.10), 0 0 0 1px rgba(124,58,237,0.10);
  --glow: radial-gradient(ellipse at 50% 18%, rgba(124,58,237,0.10), transparent 60%);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* LAYOUT */
.container {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

nav .inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.theme-btn {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.7rem;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.theme-btn:hover { color: var(--ink); }

.theme-btn.active {
  background: var(--ink);
  color: var(--paper);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
  flex-shrink: 0;
}

.nav-logo-img {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent-mid); }

/* HERO */
.hero {
  padding: 6.5rem 0 5rem;
  position: relative;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  /* Full-bleed: a fixed width leaves a visible seam where the glow stops, which
     reads as a box narrower than the page. body has overflow-x: hidden, so 100vw
     is safe here. */
  width: 100vw;
  height: 560px;
  background: var(--glow);
  pointer-events: none;
  z-index: -1;
}

.hero-split {
  display: block;
}

.hero-content {
  /* Scales with the shell instead of stranding the headline in a 720px column. */
  max-width: min(1100px, 100%);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

h1 em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--accent) 20%, var(--accent-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-bio {
  font-size: clamp(1.1rem, 1.05vw, 1.2rem);
  color: var(--ink-soft);
  /* ch keeps the line length readable while still widening on big screens. */
  max-width: 68ch;
  line-height: 1.75;
  margin: 0 auto 2.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  /* .hero-cta sits directly above with no bottom margin — without this the buttons
     and the badge row collide. */
  margin-top: 1.6rem;
  margin-bottom: 2.8rem;
}

.badge {
  font-family: var(--sans);
  font-size: 0.76rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  backdrop-filter: blur(8px);
}

.badge-green {
  background: var(--accent-light);
  color: var(--accent-mid);
  border: 1px solid rgba(185,141,250,0.28);
}

.badge-gold {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(240,193,92,0.3);
}

.badge-gray {
  background: var(--card);
  color: var(--ink-soft);
  border: 1px solid var(--border-strong);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent-mid);
  color: var(--accent-mid);
  transform: translateY(-1px);
}

/* DIVIDER */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* SECTIONS */
body { counter-reset: sec; }

section {
  padding: 4.5rem 0;
}

.section-label {
  counter-increment: sec;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: counter(sec, decimal-leading-zero);
  color: var(--accent-mid);
  font-weight: 700;
  font-family: var(--serif);
  font-style: italic;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* EXPERIENCE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 2rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  backdrop-filter: blur(8px);
  position: relative;
  transition: all 0.2s;
}

.timeline-item:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.timeline-meta {
  padding-top: 0.15rem;
}

.timeline-date {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.6;
}

.timeline-content { }

.timeline-role {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.current-pill {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent-mid);
  border: 1px solid rgba(185,141,250,0.28);
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: var(--paper-warm);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.6rem;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(185,141,250,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  background: var(--card-hover);
}

.project-card:hover::before { opacity: 1; }

.project-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.project-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.project-desc {
  font-size: 0.87rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.project-lang {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-live {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-mid);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skills-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.3rem 1.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.skills-group:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.skills-group-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-mid);
  margin-bottom: 0.9rem;
}

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

.skill-pill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
}

/* EDUCATION */
.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  backdrop-filter: blur(8px);
}

.edu-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.edu-degree {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.edu-school {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

.edu-period {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* HONORS */
.honors-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.honor-card {
  flex: 1;
  min-width: 200px;
  background: var(--gold-light);
  border: 1px solid rgba(240,193,92,0.25);
  border-radius: var(--r);
  padding: 1.3rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.honor-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.05rem; }

.honor-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.honor-sub {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* CONTACT */
.contact-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 0.7rem 1.3rem;
  transition: all 0.2s;
  background: var(--card);
  backdrop-filter: blur(8px);
}

.contact-link:hover {
  color: var(--accent-mid);
  border-color: var(--accent-mid);
  transform: translateY(-1px);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

/* CERTIFICATIONS */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF9900, #FFB84D);
  border-radius: var(--r) var(--r) 0 0;
}

.cert-card:hover {
  border-color: rgba(255,153,0,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  background: var(--card-hover);
}

.cert-issuer-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cert-badge-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-issuer {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.35;
}

.cert-expiry {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cert-expiry-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.cert-verify {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-mid);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* BLOG */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.85rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.blog-card:hover {
  border-color: rgba(185,141,250,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  background: var(--card-hover);
}

.blog-card:hover::before { opacity: 1; }

.blog-date {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.blog-card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}

.blog-card-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

/* BLOG POST */
.post-header {
  padding: 4rem 0 2.5rem;
  /* Centred, not left-aligned: prose stays a readable line length while the empty
     space is split evenly on both sides instead of dumped on the right. */
  max-width: 78ch;
  margin-inline: auto;
}

.post-back {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.post-back:hover { color: var(--accent); }

.post-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.post-meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-body {
  padding-bottom: 4rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 78ch;
  margin-inline: auto;
}

.post-body h2 {
  margin-top: 2.6rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.post-body ul, .post-body ol {
  margin: 0 0 1.25rem 1.4rem;
  line-height: 1.8;
}

.post-body li { margin-bottom: 0.4rem; }

.post-body img {
  max-width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.post-body a {
  color: var(--accent-mid);
}

.post-body code {
  font-family: var(--code);
  font-size: 0.85em;
  background: var(--paper-warm);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.post-body pre {
  background: #0a0910;
  color: #e6e1f5;
  font-family: var(--code);
  font-size: 0.8rem;
  line-height: 1.7;
  padding: 1.25rem 1.4rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Tables in blog prose. Wide tables scroll inside their own box rather than
   forcing the page to scroll sideways on narrow screens. */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

.post-body th,
.post-body td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.post-body th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.post-body td {
  color: var(--ink-soft);
}

.post-body tbody tr:last-child td {
  border-bottom: none;
}

.post-callout {
  background: var(--gold-light);
  border: 1px solid rgba(240,193,92,0.3);
  border-radius: var(--r);
  padding: 1.1rem 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 1.5rem 0;
}

.post-callout strong { color: var(--gold); }

/* FOOTER */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero > *,
.hero-content > * {
  animation: fadeUp 0.6s ease both;
}

.hero-eyebrow { animation-delay: 0.05s; }
.hero h1      { animation-delay: 0.12s; }
.hero-bio     { animation-delay: 0.2s; }
.hero-badges  { animation-delay: 0.28s; }
.hero-cta     { animation-delay: 0.36s; }

/* RESPONSIVE */

/* Between the full-width nav and the 720px point where .nav-links hides, six links
   plus the logo and theme toggle overflow the bar and push the toggle off-screen.
   Tighten the spacing through that range instead of losing the nav early. */
@media (max-width: 940px) {
  .nav-right { gap: 0.9rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-logo { font-size: 1.05rem; }
}

@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .timeline-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
  }
  nav .inner { gap: 1rem; }
  .nav-right { gap: 1rem; }
  .nav-links { gap: 1rem; }
  .edu-card { flex-direction: column; gap: 1rem; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  /* On phones the 94vw shell would waste ~6% on top of the gutter. Go edge to edge
     and let --gutter alone provide the margin. */
  :root { --shell: 100%; }
}
