/* =============================================
   ALAN VOURC'H PORTFOLIO - v2
   Palette: White / Navy / Amber
   Type: Plus Jakarta Sans (headings), Inter (body),
         IBM Plex Mono (figures, eyebrows, dates)
   Signature: budget-vs-actual style figures, tabular numerals
   ============================================= */

:root {
  --navy: #1a2744;
  --navy-light: #243460;
  --amber: #c9922a;          /* decorative only: borders, rules, dots */
  --amber-light: #e8b84b;
  --amber-text: #8f6512;     /* 5.2:1 on white; use for all amber text */
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray-50: #f9f9f9;
  --gray-100: #f0eff0;
  --gray-200: #e0dfe2;
  --gray-400: #9b9aa0;
  --gray-600: #5c5b63;
  --gray-800: #2d2c33;
  --text: #1a1a2e;
  --text-muted: #6b6b7b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 4px rgba(26,39,68,0.08);
  --shadow: 0 4px 20px rgba(26,39,68,0.1);
  --shadow-lg: 0 12px 48px rgba(26,39,68,0.15);
  --transition: 0.25s ease;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --font-numeric: 'Inter', var(--font-sans);
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 112px 24px 80px;
  background: linear-gradient(135deg, var(--off-white) 0%, #eef1f8 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,146,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 500px;
}
.hero-sub strong { color: var(--navy); font-weight: 600; }

/* Signature element: budget-vs-actual style figures strip */
.hero-figures {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 24px;
  max-width: 560px;
}
.hero-figure {
  padding: 12px 16px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-figure + .hero-figure { border-left: 1px solid var(--gray-200); padding-left: 16px; }
.figure-value {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.figure-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy-light);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,39,68,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

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

/* Photo */
.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: 340px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--navy) 100%);
  border-radius: 18px;
  z-index: -1;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── SECTIONS ── */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ── ABOUT ── */
.about-grid {
  max-width: 1040px;
  margin: 0 auto;
}

.about-text {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--navy); font-weight: 600; }

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

.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.about-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--amber);
}

.about-card-icon {
  font-size: 1.5rem;
  color: var(--amber-text);
  margin-bottom: 10px;
}
.about-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.about-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.skill-group {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition);
}
.skill-group:hover { box-shadow: var(--shadow); }

.skill-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--amber);
}

.skill-icon { font-size: 1.1rem; color: var(--amber-text); display: inline-flex; }

.skill-list li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── PROJECTS TABS ── */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tab {
  padding: 10px 22px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.tab:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── PROJECT GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--amber);
}

.project-card.hidden { display: none; }

@media (min-width: 721px) {
  .project-card.featured { grid-column: 1 / -1; }
  .project-card.featured .project-thumb { height: 300px; }
}

/* Charts are data: show them whole, never cropped */
.project-card.featured .project-thumb img {
  object-fit: contain;
  background: var(--white);
  padding: 12px;
}

.project-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray-100);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity var(--transition);
}

.project-thumb .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .img-default { opacity: 0; }
.project-card:hover .img-hover { opacity: 1; }
.project-card:hover .img-default { transform: scale(1.04); }

.project-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.badge-finance { background: rgba(26,39,68,0.85); color: #fff; }
.badge-data { background: rgba(143,101,18,0.9); color: #fff; }
.badge-film { background: rgba(92,91,99,0.85); color: #fff; }

/* Featured (flagship) card */
.project-card.featured { border-top: 3px solid var(--amber); }
.project-flagship-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--amber-light);
  color: var(--navy);
}

/* Film tab context note */
.projects-film-note {
  background: var(--off-white);
  border-left: 3px solid var(--amber);
  padding: 12px 18px;
  margin-bottom: 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.project-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
  /* Show 3 lines then cut */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-footer {
  padding: 14px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-skill-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-600);
}

.project-more-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-text);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.project-more-btn::after { content: '→'; }

/* ── TIMELINE ── */
.timeline {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-200);
}

.timeline::before {
  display: none;
}

.timeline-item {
  padding: 30px 0;
  margin: 0;
  border-bottom: 1px solid var(--gray-200);
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  display: none;
}

.timeline-dot.cert {
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--amber);
}

.timeline-content {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 30px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.timeline-content:hover { box-shadow: none; }

.timeline-meta {
  grid-column: 1;
  grid-row: 1 / span 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
}

.timeline-date {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.timeline-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.timeline-badge.current { background: #e8f5e9; color: #2e7d32; }
.timeline-badge.cert-badge { background: #fff3e0; color: #e65100; }

.timeline-role {
  grid-column: 2;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.timeline-company {
  grid-column: 2;
  font-size: 0.875rem;
  color: var(--amber-text);
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-desc {
  grid-column: 2;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline-tags span {
  padding: 3px 10px;
  background: var(--gray-100);
  border-radius: 100px;
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-600);
}

.timeline-bullets {
  grid-column: 2;
}

.timeline-item-compact .timeline-desc {
  margin-bottom: 0;
}

.credentials {
  max-width: 860px;
  margin: 48px auto 0;
}

.credentials-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.credential-item {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid var(--gray-200);
}

.credential-item:last-child { border-right: 0; }

.credential-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-text);
}

.credential-item strong {
  color: var(--navy);
  font-size: 0.88rem;
  line-height: 1.35;
}

.credential-item > span:last-child {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

/* ── CONTACT ── */
.contact {
  background: var(--navy) !important;
}

.contact .section-eyebrow { color: var(--amber-light); }
.contact .section-title { color: var(--white); }
.contact .section-desc { color: rgba(255,255,255,0.65); }

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--amber-light);
  transform: translateY(-3px);
}

.contact-icon { font-size: 1.6rem; }
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-light);
}
.contact-value {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  word-break: break-all;
}

/* ── FOOTER ── */
.footer {
  background: var(--gray-800);
  padding: 28px 0;
  text-align: center;
}
.footer p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,14,30,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 32px 80px rgba(10,14,30,0.3);
}
.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
  transition: color var(--transition);
  z-index: 1;
}
.modal-close:hover { color: var(--navy); }

.modal-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.modal-image.modal-image-contain {
  object-fit: contain;
  background: var(--white);
  padding: 12px 12px 0;
}

.modal-body {
  padding: 32px 36px 40px;
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-text);
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 24px;
}

.modal-highlights {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.modal-highlights h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 12px;
}
.modal-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-highlights li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.modal-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 0.75rem;
  top: 1px;
}

.modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.modal-skill-tag {
  padding: 5px 14px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy-light);
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.modal-cta:hover {
  background: var(--navy-light);
  transform: translateX(2px);
}
.modal-cta::after { content: '↗'; }

/* ── RESPONSIVE ── */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; padding: 100px 24px 72px; }
  .hero-photo-frame { width: 220px; height: 260px; margin: 0 auto; }
  .hero-sub { max-width: 100%; }
  .hero-figures { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .credential-item:nth-child(2) { border-right: 0; }
  .credential-item:nth-child(-n+2) { border-bottom: 1px solid var(--gray-200); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 16px; font-size: 0.95rem; border-bottom: 1px solid var(--gray-100); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links li a.nav-resume-btn { margin: 8px 0; display: block; text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .hero-inner { gap: 32px; }
  .hero-photo-frame { width: 160px; height: 200px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .hero-figures { grid-template-columns: repeat(2, 1fr); }
  .hero-figure { padding: 10px 12px 10px 0; }
  .hero-figure + .hero-figure { border-left: none; padding-left: 0; }
  .hero-figure:nth-child(even) { border-left: 1px solid var(--gray-200); padding-left: 12px; }
  .hero-figure:nth-child(n+3) { border-top: 1px solid var(--gray-100); }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
  .tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 16px; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
  .tab { flex-shrink: 0; }

  .timeline-item { padding: 24px 0; }
  .timeline-content { display: block; }
  .timeline-meta { flex-direction: row; align-items: center; margin-bottom: 10px; }
  .credentials-grid { grid-template-columns: 1fr; }
  .credential-item { border-right: 0; border-bottom: 1px solid var(--gray-200); }
  .credential-item:last-child { border-bottom: 0; }

  .modal-body { padding: 24px 22px 32px; }
  .modal-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .contact-links { grid-template-columns: 1fr; }
  .hero-tags { justify-content: center; }
  .hero-text { text-align: center; }
  .timeline-tags span { font-size: 0.75rem; }
}

/* ── TIMELINE BULLETS ── */
.timeline-bullets {
  list-style: none;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-bullets li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 0.75rem;
  top: 1px;
}
.timeline-bullets a {
  color: var(--amber-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.timeline-bullets a:hover { color: var(--navy); }

/* ── EXTRA BADGES ── */
.timeline-badge.edu-badge { background: #e8eaf6; color: #3949ab; }
.timeline-badge.cfa-badge { background: #fce4ec; color: #c62828; font-weight: 700; }

/* ── RESUME LINKS IN HERO ── */
.hero-resume-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.resume-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--amber-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.resume-link:hover { color: var(--navy); }

/* ── NAV RESUME BUTTON ── */
.nav-resume-btn {
  padding: 6px 16px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition);
}
.nav-resume-btn:hover { background: var(--navy-light) !important; color: var(--white) !important; }

/* ── RESUME DOWNLOAD SECTION (contact) ── */
.resume-download-section {
  margin-top: 40px;
  text-align: center;
}
.resume-download-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.resume-download-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-resume-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-resume-dl:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .hero-resume-links { justify-content: center; }
}
