/* ============================================================
  PORTFOLIO STYLESHEET
  ============================================================

  HOW TO CUSTOMIZE THIS FILE:
  1. Change colors → edit the variables in :root (lines ~20-45)
  2. Change fonts  → update --font-display and --font-body,
                     and update the Google Fonts link in index.html
  3. Change spacing → edit --space-* variables
  4. The rest is organized by component — use Ctrl+F to find
     what you want to edit.
  ============================================================ */


/* ── CSS CUSTOM PROPERTIES (variables) ───────────────────── */
:root {

  /* COLORS — change these to retheme the entire site */
  --color-bg:          #0a0a0a;   /* Page background (near black) */
  --color-bg-raised:   #111111;   /* Cards and raised surfaces */
  --color-bg-border:   #1e1e1e;   /* Subtle borders */
  --color-text:        #e8e8e8;   /* Body text */
  --color-text-muted:  #666666;   /* Secondary / caption text */
  --color-accent:      #84665e;   /* Primary accent (chartreuse-yellow) */
  --color-accent-dim:  rgba(190, 121, 103, 0.08); /* Subtle accent bg tint */

  /* FONTS — must match what you import in index.html */
  --font-display: 'Syne', sans-serif;    /* Headings */
  --font-body:    'DM Sans', sans-serif; /* Body text */

  /* SPACING SCALE — powers all padding and gap values */
  --space-xs:  0.5rem;   /*  8px */
  --space-sm:  1rem;     /* 16px */
  --space-md:  1.5rem;   /* 24px */
  --space-lg:  3rem;     /* 48px */
  --space-xl:  6rem;     /* 96px */
  --space-2xl: 10rem;    /* 160px */

  /* LAYOUT */
  --max-width: 1100px;    /* Max content width */
  --nav-height: 64px;     /* Nav bar height */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* TRANSITIONS */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 300ms;
}


/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Offset scroll targets so nav doesn't cover section headings */
  scroll-padding-top: calc(var(--nav-height) + 2rem);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  /* Glass-morphism effect */
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-bg-border);
  transition: background var(--duration) var(--ease);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  gap: var(--space-md);
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration);
}


/* ── LAYOUT UTILITIES ─────────────────────────────────────── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* The very first section needs extra top padding to clear the fixed nav */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-xl));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-right: auto; /* Push title and button apart */
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  width: 100%; /* Force to its own line */
  order: 1;    /* Goes after the label */
}

/* When a button sits in section__header, it floats right */
.section__header .btn {
  margin-left: auto;
  order: 0;
  align-self: center;
}


/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

/* Solid accent button */
.btn--primary {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}
.btn--primary:hover {   /* TODO where to change glow and buttons */
  background: #84665e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(193, 116, 97, 0.25);
}

/* Outlined ghost button */
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-bg-border);
}
.btn--ghost:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-1px);
}

/* Small variant */
.btn--sm {
  font-size: 0.8rem;
  padding: 0.5em 1em;
}


/* ── TAGS ─────────────────────────────────────────────────── */
/* Used for tech stacks, skill pills */
.tag {
  display: inline-block;
  padding: 0.25em 0.65em;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-bg-border);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}


/* ── HERO SECTION ─────────────────────────────────────────── */
.hero__content {
  display: grid;
  grid-template-columns: 1fr 420px;  /*TODO, MAYBE CHANGE BACK TO AUTO*/
  gap: var(--space-xl);
  align-items: center;
}

/* Give the text column a max width so long taglines can stay on one line */
.hero__text {
  max-width: 620px;
}

.hero__greeting {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  /* Subtle gradient on the name */
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.hero__tagline {
  font-size: 1.2rem;
  /* color: var(--color-text-muted); */
  color: #fff;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.hero__bio {
  max-width: 520px;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__image-wrap {
  position: relative;
  flex-shrink: 0;
  width: min(620px, 100%); /* Bumped up from your 620px */
}

.hero__image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  /* Layered border + glow effect */
  /*TODO UPDATE GLOW*/
  border: 2px solid rgba(255, 220, 180, 0.4);
  box-shadow:
    0 0 0 6px rgba(255, 220, 180, 0.06),
    0 0 40px 12px rgba(255, 200, 140, 0.18),
    0 25px 60px rgba(0, 0, 0, 0.7);
}

/* Mobile: let it scale down naturally but don't let it get too wide */
@media (max-width: 768px) {
  .hero__image-wrap {
    width: min(320px, 80vw);
  }
}

/* Fallback initials when image fails */
.hero__image-placeholder--fallback .hero__initials {
  display: flex;
}
.hero__initials {
  display: none;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text-muted);
}

.hero__headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.08);
}

/* Glow ring behind headshot */
.hero__image-glow {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132,102,94,0.28) 0%, transparent 68%);
  filter: blur(10px);
  z-index: -1;
}

/* Scroll hint */
.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: var(--color-bg-border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: slide-line 2s var(--ease) infinite;
}

@keyframes slide-line {
  0%   { left: -100%; }
  100% { left: 100%; }
}


/* ── PROJECTS ─────────────────────────────────────────────── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.project-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-text-muted);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Featured card spans full width on large screens */
.project-card--featured {
  grid-column: 1 / -1;
  flex-direction: row; /* Image on left, text on right */
}

.project-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-border);
  overflow: hidden;
  flex-shrink: 0;
}

/* Featured card: image takes up ~55% of width */
.project-card--featured .project-card__image-wrap {
  width: 55%;
  aspect-ratio: auto;
}

.project-card__image-wrap--fallback {
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 500ms var(--ease);
}

/* Custom image positioning for individual project cards */
.project-card__image--featured-custom {
  width: 100%;
  height: 100%;
  object-position: top center;
}

.project-card__image--bayesian {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.project-card__image--project3 {
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: top center;
}

.project-card__image--project4 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-card__image--project5 {
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: top center;
}

.project-card:hover .project-card__image {
  transform: scale(1.03);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: var(--space-sm);
}

.project-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #000;
  padding: 0.25em 0.6em;
  border-radius: var(--radius-sm);
}

.project-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.project-card__links {
  display: flex;
  gap: var(--space-xs);
  margin-top: auto;
}


/* ── EXPERIENCE TIMELINE ──────────────────────────────────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical line on the left */
.timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-bg-border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-bg-border);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

/* Dot on the timeline line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 120px;
  top: calc(var(--space-lg) + 0.6rem);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateX(-4px);
}

.timeline-item__meta {
  padding-top: 0.15rem;
}

.timeline-item__date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.timeline-item__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.timeline-item__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.timeline-item__logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-item__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 300ms var(--ease);
}

.timeline-item__logo-img--datably {
  object-position: center;
}

.timeline-item__logo-img--transcard {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.timeline-item__logo-img--utk {
  object-position: center;
}

.timeline-item__company {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.timeline-item__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.timeline-item__stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}


/* ── LEADERSHIP ───────────────────────────────────────────── */
.leadership__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: 0;
}

.leadership-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.leadership-card:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

.leadership-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leadership-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.leadership-card__meta {
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.leadership-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.leadership-card__links {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

/* Flexible icon support: emoji or image */
.leadership-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* For image icons instead of emoji */
.leadership-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Leadership intro section */
.leadership__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-md);
}

.leadership__intro-text {
  max-width: 520px;
}

.leadership__intro-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.leadership__intro-text p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* .leadership__intro-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
} */

.leadership__intro-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;

  width: 100%;
  margin: 0 auto;

  aspect-ratio: 16 / 9;
}

.leadership__intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
}


/* ── SKILLS & INTERESTS ───────────────────────────────────── */
.skills__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.skill-group {
  margin-bottom: var(--space-lg);
}

.skill-group__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* Language pills */
.language-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  gap: var(--space-sm);
}

.language-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(132,102,94,0.08);
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
  animation: pulse 6s ease-in-out infinite alternate;
}

.language-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(132,102,94,0.35);
  background: rgba(132,102,94,0.15);
  box-shadow: 0 18px 40px rgba(132,102,94,0.12);
}

.language-pill:nth-child(2n) {
  animation-delay: 1.2s;
}

.language-pill:nth-child(3n) {
  animation-delay: 2.4s;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 rgba(132,102,94,0.08); }
  100% { box-shadow: 0 12px 24px rgba(132,102,94,0.1); }
}

.language-pill--main {
  border-color: rgba(132,102,94,0.45);
  background: rgba(132,102,94,0.18);
}

.language-pill--main::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(132,102,94,0.5);
  margin-right: 0.7em;
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag-cloud--field {
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.tag-cloud--field .tag {
  background: rgba(132,102,94,0.18);
  border-color: rgba(132,102,94,0.2);
  color: #fff;
  box-shadow: 0 10px 26px rgba(132,102,94,0.12);
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.tag-cloud--field .tag:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(132,102,94,0.28);
  border-color: rgba(132,102,94,0.35);
}

.interest-group + .interest-group {
  margin-top: var(--space-lg);
}

/* Interests */
.interests__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.interest-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.interest-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.interest-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.interest-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}


/* ── CONTACT ──────────────────────────────────────────────── */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__message p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 420px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}

.contact-link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
  transform: translateX(4px);
}

.contact-link__icon {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--duration);
}

.contact-link:hover .contact-link__label {
  color: var(--color-text);
}


/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-bg-border);
  padding: var(--space-lg);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Section dividers — subtle horizontal lines between sections */
.section + .section {
  border-top: 1px solid var(--color-bg-border);
}


/* ── SCROLL REVEAL ANIMATION ──────────────────────────────── */
/* Items start invisible and slide up; JS adds .visible on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── RESPONSIVE / MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {

  :root {
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  /* Show hamburger, hide links */
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.2rem; }

  /* Hero stacks vertically */
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__image-wrap {
    margin: 0 auto;
    width: min(320px, 70vw);
  }
  .hero__bio { margin: 0 auto var(--space-lg); }
  .hero__cta { justify-content: center; }

  /* Featured project card goes vertical */
  .project-card--featured {
    flex-direction: column;
  }
  .project-card--featured .project-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  /* Timeline collapses */
  .timeline::before { display: none; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: var(--space-md) 0;
  }
  .timeline-item::before { display: none; }

  /* Skills and contact stack */
  .skills__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  /* Leadership intro goes vertical */
  .leadership__intro {
    grid-template-columns: 1fr;
  }

  .leadership__intro-image {
    aspect-ratio: 16 / 9;
  }

  /* Section header: button goes on its own line */
  .section__header .btn {
    margin-left: 0;
    order: 2;
    width: 100%;
    justify-content: center;
  }
}