/* ============================================================
   MAIN.CSS — Anirudh Arora Portfolio
   Design System: "The Earth Observer"
   Palette: Deep Sky Blue + Warm Sand + Ivory + Terracotta
   Fonts: Playfair Display (headings) + Source Sans 3 (body)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables (Light Mode) ──────────────────────────── */
:root {
  --bg:           #FAF7F2;
  --bg-alt:       #F3EDE3;
  --bg-card:      #FFFFFF;
  --text:         #1A1A1A;
  --text-muted:   #6B6560;
  --text-light:   #9B948D;
  --accent:       #1B5E8A;       /* deep sky blue */
  --accent-light: #E8F2FA;
  --sand:         #C8A96E;       /* warm sand */
  --sand-light:   #F5E6C8;
  --terracotta:   #C4622D;       /* CTA accent */
  --terra-light:  #FAE8DC;
  --border:       #E2D9CE;
  --shadow:       rgba(26,26,26,0.08);
  --shadow-md:    rgba(26,26,26,0.14);
  --nav-bg:       rgba(250,247,242,0.92);
  --hero-grad-a:  #D4E9F7;
  --hero-grad-b:  #F5E6C8;
  --tag-bg:       #EEF5FB;
  --tag-text:     #1B5E8A;
  --timeline-line:#C8A96E;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   0.3s ease;
  --max-width:    1140px;
}

/* ── Dark Mode Variables ─────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #111217;
  --bg-alt:       #1A1C23;
  --bg-card:      #21242E;
  --text:         #EDE8E0;
  --text-muted:   #9A9590;
  --text-light:   #6B6660;
  --accent:       #5BA3D0;
  --accent-light: #1A2A38;
  --sand:         #C8A96E;
  --sand-light:   #2A2318;
  --terracotta:   #D9784E;
  --terra-light:  #2A1B12;
  --border:       #2E3140;
  --shadow:       rgba(0,0,0,0.3);
  --shadow-md:    rgba(0,0,0,0.5);
  --nav-bg:       rgba(17,18,23,0.94);
  --hero-grad-a:  #1A2A38;
  --hero-grad-b:  #231E15;
  --tag-bg:       #1A2A38;
  --tag-text:     #5BA3D0;
  --timeline-line:#C8A96E;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.light-locked {
  --bg:           #FAF7F2;
  --bg-alt:       #F3EDE3;
  --bg-card:      #FFFFFF;
  --text:         #1A1A1A;
  --text-muted:   #6B6560;
  --text-light:   #9B948D;
  --border:       #E2D9CE;
  --nav-bg:       rgba(250,247,242,0.92);
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--text);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 90px 0; }

/* ── Utility Classes ─────────────────────────────────────── */
.text-accent    { color: var(--accent); }
.text-sand      { color: var(--sand); }
.text-terra     { color: var(--terracotta); }
.text-muted     { color: var(--text-muted); }
.font-display   { font-family: var(--font-display); }
.font-mono      { font-family: var(--font-mono); }

.badge-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.badge-status.published   { background: #E6F4EA; color: #2E7D32; }
.badge-status.accepted    { background: #E8F1FA; color: #1B5E8A; }
.badge-status.under-review{ background: var(--sand-light); color: #7A5C1E; }
.badge-status.in-prep     { background: #F3E5F5; color: #6A1B9A; }
.badge-status.conference  { background: #E8F1FA; color: #1B5E8A; }

[data-theme="dark"] .badge-status.published   { background: #1B3A1F; color: #6FCF97; }
[data-theme="dark"] .badge-status.accepted    { background: #13283A; color: #7DB8E8; }
[data-theme="dark"] .badge-status.under-review{ background: #2A2318; color: #C8A96E; }
[data-theme="dark"] .badge-status.in-prep     { background: #2A1B38; color: #BB86FC; }
[data-theme="dark"] .badge-status.conference  { background: #13283A; color: #7DB8E8; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

.story-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px var(--shadow);
}

.story-panel-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 10px;
}

.story-panel h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.theme-list {
  display: grid;
  gap: 14px;
}

.theme-item {
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.theme-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.theme-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sand));
  border-radius: 2px;
  margin: 20px 0 40px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,98,45,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sand {
  background: var(--sand-light);
  color: var(--sand);
  border-color: var(--sand-light);
}
.btn-sand:hover {
  background: var(--sand);
  color: #fff;
  border-color: var(--sand);
}
[data-theme="dark"] .btn-sand {
  color: #F3EDE3;
  border-color: var(--sand);
}

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sand);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links li.active a {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dark mode toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--text-muted);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--bg);
  padding: 32px 24px;
  z-index: 999;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--accent-light);
  color: var(--accent);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, var(--hero-grad-a) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, var(--hero-grad-b) 0%, transparent 50%),
              var(--bg);
  z-index: 0;
}

/* Decorative geo shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-shape-1 {
  width: 400px; height: 400px;
  right: -80px; top: 10%;
  background: radial-gradient(circle, var(--sand-light), transparent 70%);
  opacity: 0.28;
}
.hero-shape-2 {
  width: 200px; height: 200px;
  left: 10%; bottom: 10%;
  background: radial-gradient(circle, var(--accent-light), transparent 70%);
  opacity: 0.36;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-greeting::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--sand);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-role-line {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 24px;
  min-height: 2.4rem;
}

.hero-role-static {
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-style: normal;
  line-height: 1.5;
  max-width: 620px;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--terracotta);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 30px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-focus-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
}

.hero-focus-band { margin-bottom: 12px; }

.hero-focus-band span {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  color: var(--text-muted);
  border-radius: 99px;
  font-size: 0.82rem;
  line-height: 1.3;
}

[data-theme="dark"] .hero-focus-band span {
  background: rgba(33,36,46,0.68);
}

.hero-focus-band span {
  padding: 7px 13px;
  font-weight: 600;
  color: var(--accent);
}

.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.affiliation-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all var(--transition);
}
.affiliation-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.affiliation-chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.affiliation-chip .dot.sand { background: var(--sand); }

/* ── About Section ───────────────────────────────────────── */
.about-section {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px var(--shadow-md);
}

.about-photo-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 8px 30px var(--shadow);
  text-align: center;
}
.about-photo-badge .number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.about-photo-badge .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.about-transition-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent-light), var(--sand-light));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.about-transition-banner strong { color: var(--text); }
.about-transition-banner .icon { font-size: 1.2rem; }

.about-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.about-text p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── Research Interests ──────────────────────────────────── */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.interest-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sand));
  opacity: 0;
  transition: opacity var(--transition);
}
.interest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px var(--shadow-md);
  border-color: var(--accent);
}
.interest-card:hover::before { opacity: 1; }

.interest-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: block;
}

.interest-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.interest-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--sand), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -47px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-dot.sand {
  background: var(--sand);
  box-shadow: 0 0 0 2px var(--sand);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 10px;
  vertical-align: middle;
}

/* ── Academic history ───────────────────────────────────── */
.academic-history {
  display: grid;
  gap: 60px;
}

.education-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.academic-section-kicker {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sand);
  margin: 0;
}

.education-timeline .timeline-item { margin-bottom: 0; }

.experience-history {
  width: min(100%, 860px);
}

.experience-history .academic-section-kicker { margin-bottom: 36px; }

@media (max-width: 700px) {
  .academic-history { gap: 48px; }
  .education-summary { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Publication Cards ───────────────────────────────────── */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.pub-filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.pub-filter-btn:hover,
.pub-filter-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pub-list { display: flex; flex-direction: column; gap: 20px; }

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  transition: all var(--transition);
  position: relative;
}
.pub-card.highlight {
  border-left: 4px solid var(--terracotta);
  background: linear-gradient(90deg, rgba(196,98,45,0.05), var(--bg-card) 18%);
}
.pub-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.pub-card-body { flex: 1; }

.pub-authors {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 6px;
  font-style: italic;
}
.pub-authors strong { color: var(--accent); font-style: normal; }

.pub-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.45;
}

.pub-venue {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.pub-card-meta {
  text-align: right;
  flex-shrink: 0;
}

.pub-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.citation-copy { white-space: nowrap; }

.pub-year {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 8px;
}

/* ── Project Cards ───────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.project-tier {
  margin-bottom: 70px;
}

.project-tier:last-child { margin-bottom: 0; }

.project-tier-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.project-tier-head p {
  max-width: 620px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.project-tier-title {
  font-size: 1.35rem;
  margin: -2px 0 8px;
}

.project-tier-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.project-card.pinned {
  border-color: rgba(196,98,45,0.45);
  box-shadow: 0 18px 48px var(--shadow);
}
.project-card.pinned::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--sand));
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px var(--shadow-md);
}

.project-tier[data-tier="Interdisciplinary / Earlier Work"] .project-card {
  opacity: 0.88;
}

.project-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4));
}

.project-category-pill {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 4px 12px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
}

.project-pin {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 12px;
  background: rgba(196,98,45,0.94);
  color: #fff;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.project-head-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.project-category-inline,
.project-pin-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-category-inline {
  padding: 6px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(27,94,138,0.16);
}

.project-pin-inline {
  padding: 6px 11px;
  background: var(--terra-light);
  color: var(--terracotta);
  border: 1px solid rgba(196,98,45,0.22);
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.4;
}
.project-title a { color: inherit; }
.project-title a:hover { color: var(--accent); }

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 20px;
}

.project-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-methods span {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.3;
}

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

.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ── Awards Section ──────────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: start;
  transition: all var(--transition);
}
.award-card:hover {
  border-color: var(--sand);
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-3px);
}

.award-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--sand);
  font-weight: 700;
  background: var(--sand-light);
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.award-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.award-org {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}

.award-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Talk Cards ──────────────────────────────────────────── */
.talk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: start;
  transition: all var(--transition);
}
.talk-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px var(--shadow);
}

.talk-type-badge {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.talk-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.talk-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.talk-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--sand);
  font-weight: 500;
  margin-top: 8px;
}
.talk-note::before { content: '★'; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-light);
}

.legacy-redirect {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

.legacy-redirect-box {
  max-width: 520px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px var(--shadow-md);
}

/* ── Scroll Reveal Animations ────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="left"].revealed,
[data-reveal="right"].revealed { transform: translateX(0); }

/* Staggered children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal-stagger].revealed > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.05s; }
[data-reveal-stagger].revealed > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.15s; }
[data-reveal-stagger].revealed > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.25s; }
[data-reveal-stagger].revealed > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.35s; }
[data-reveal-stagger].revealed > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.45s; }
[data-reveal-stagger].revealed > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.55s; }

/* Progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--terracotta));
  z-index: 9998;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo-wrap { max-width: 380px; margin: 0 auto; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }

  .hero-name { font-size: 2.8rem; }
  .hero-role-static { font-size: 1.02rem; }

  .pub-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .pub-card-meta { text-align: left; }
  .pub-actions { align-items: flex-start; }

  .project-tier-head {
    display: block;
  }
  .project-tier-count {
    display: block;
    margin-top: 10px;
  }

  .talk-card {
    flex-direction: column;
    gap: 12px;
  }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .story-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* ── Page-specific: hidden items ─────────────────────────── */
.pub-card.hidden,
.project-card.hidden { display: none; }
