/* ================================================
   MAIN.CSS — Will Deter Portfolio
   Bold & Modern Design System
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

/* ----- CSS Custom Properties ----- */
:root {
  --bg:        #faf5ee;  /* warm adobe cream */
  --bg-2:      #f2e8d5;  /* sand */
  --bg-card:   #fffcf6;  /* near-white warm */
  --border:    #e0ccaa;  /* warm sand */
  --border-h:  #c4a070;  /* deeper sand */

  --accent:    #c84028;  /* Santa Fe vermillion */
  --accent-2:  #e09020;  /* ochre/amber */
  --accent-3:  #29998c;  /* Southwest turquoise */

  --glow:      rgba(200, 64, 40, 0.09);
  --glow-2:    rgba(224, 144, 32, 0.09);

  --grad:      linear-gradient(135deg, #c84028 0%, #e09020 100%);
  --grad-text: linear-gradient(135deg, #c84028 0%, #e09020 100%);

  --text:      #261009;  /* deep warm adobe brown */
  --text-2:    #6b4030;  /* mid adobe */
  --text-3:    #a07050;  /* warm sand */

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow:    0 4px 32px rgba(38, 16, 9, 0.1);
  --shadow-lg: 0 8px 64px rgba(38, 16, 9, 0.16);

  --max-w:     1100px;
  --nav-h:     64px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p {
  color: var(--text-2);
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ----- Layout ----- */
.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}

section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 1.5rem 0;
  opacity: 0.35;
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(250, 245, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  display: block;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: #a83020 !important;
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #a83020;
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 64, 40, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-h);
}

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

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: #a83020;
}

/* ----- Cards ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 40px rgba(200, 64, 40, 0.08);
  transform: translateY(-2px);
}

/* ----- Tags ----- */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  background: var(--bg-2);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.tag-accent {
  background: var(--glow);
  color: var(--accent);
  border-color: rgba(200, 64, 40, 0.25);
}

.tag-hot {
  background: var(--glow-2);
  color: var(--accent-2);
  border-color: rgba(224, 144, 32, 0.3);
}

.tag-purple {
  background: rgba(41, 153, 140, 0.1);
  color: var(--accent-3);
  border-color: rgba(41, 153, 140, 0.3);
}

/* ----- Accent line ----- */
.accent-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

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

footer p {
  font-size: 0.85rem;
  color: var(--text-3);
}

footer a {
  color: var(--text-2);
}

footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ----- Page header for inner pages ----- */
.page-hero {
  padding: calc(var(--nav-h) + 4.5rem) 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  max-width: 62ch;
  line-height: 1.75;
}

.main-content {
  padding-top: var(--nav-h);
}

/* ================================================
   HOME PAGE
   ================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 64, 40, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 15%;
  right: -8%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(200, 64, 40, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 5%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(41, 153, 140, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: 2rem;
  letter-spacing: 0;
}

.hero-body {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero two-column layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-headshot {
  width: 100%;
  max-width: 440px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Team photo */
.team-photo-wrap {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.team-photo-banner {
  margin-top: 0;
  margin-bottom: 3rem;
  border-radius: var(--radius-lg);
}

.team-photo {
  width: 100%;
  height: auto;
  display: block;
}

.team-photo-wrap figcaption {
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-3);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Speaking photo — portrait, sits inline in timeline */
.timeline-role-with-photo {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
}

.timeline-role-content {
  min-width: 0;
}

.speaking-photo-wrap {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.speaking-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.speaking-photo-wrap figcaption {
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-3);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  font-style: italic;
  text-align: center;
}

/* ----- Nav cards section ----- */
.nav-cards {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(200, 64, 40, 0.1);
  text-decoration: none;
  color: inherit;
}

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

.nav-card-icon {
  font-size: 1.4rem;
  color: var(--text-3);
}

.nav-card h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.nav-card p {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ----- Recent work ----- */
.recent-work {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.pub-card {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.pub-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 64, 40, 0.1);
}

.pub-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pub-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pub-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.3;
}

.pub-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* ================================================
   ABOUT PAGE
   ================================================ */

.about-hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4.5rem;
  align-items: center;
}

.about-photo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-headshot {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.about-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* ----- Timeline ----- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(200, 64, 40, 0.06));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-org {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-org-years {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 400;
  font-family: var(--font-body);
}

.timeline-role {
  margin-bottom: 2rem;
}

.timeline-role-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.timeline-role h4 {
  font-size: 0.975rem;
  color: var(--text);
}

.timeline-years {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-head);
  background: var(--glow);
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  border: 1px solid rgba(200, 64, 40, 0.22);
  white-space: nowrap;
}

.timeline-role ul {
  padding: 0;
}

.timeline-role ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.55rem;
  line-height: 1.6;
}

.timeline-role ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 1px;
}

/* ----- Education ----- */
.edu-grid {
  display: grid;
  gap: 0.85rem;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}

.edu-card:hover {
  border-color: var(--border-h);
}

.edu-degree {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 50px;
  line-height: 1;
  padding-top: 2px;
}

.edu-details h4 {
  font-size: 0.975rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.edu-details p {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ----- Skills ----- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  background: var(--bg-card);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--glow);
}

/* ================================================
   RESEARCH PAGE
   ================================================ */

.research-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  transition: all var(--transition);
}

.research-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 12px 48px rgba(200, 64, 40, 0.1);
}

.research-card-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

.research-img-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.research-card-img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.research-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.research-card h2 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.research-abstract {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.research-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ================================================
   READING PAGE
   ================================================ */

.current-reads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.current-read-card {
  padding: 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
}

.current-read-card .book-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0.3rem;
}

.current-read-card .book-author {
  font-size: 0.8rem;
  color: var(--text-3);
}

.book-category {
  margin-top: 3.5rem;
}

.book-category-header {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.book-category-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.book-item {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.book-item:hover {
  border-color: var(--border-h);
}

.book-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0.15rem;
}

.book-item-author {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}

.book-item-note {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ================================================
   LINKS PAGE
   ================================================ */

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 64, 40, 0.12);
  text-decoration: none;
  color: inherit;
}

.link-card h3 {
  font-size: 1rem;
  color: var(--text);
}

.link-card p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.55;
  flex: 1;
}

.link-arrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-head);
  margin-top: 0.25rem;
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.fade-up   { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 960px) {
  .nav-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-photo {
    order: -1;
  }

  .hero-headshot {
    max-width: 200px;
    aspect-ratio: 1 / 1;
  }

  .timeline-role-with-photo {
    grid-template-columns: 1fr;
  }

  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo {
    order: -1;
  }

  .about-headshot {
    max-width: 220px;
    border-radius: var(--radius-lg);
  }

  .research-card-inner {
    grid-template-columns: 1fr;
  }

  .research-card-img {
    height: 220px;
    width: 100%;
  }

  .pub-card {
    grid-template-columns: 1fr;
  }

  .pub-card-img {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-2);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }

  .nav-links.open li {
    width: 100%;
  }

  .nav-links.open a {
    width: 100%;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 3.8rem);
  }

  section {
    padding: 3.5rem 0;
  }

  .page-hero {
    padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -1.5rem;
  }

  .about-hero {
    padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
  }
}
