/* ============================================================
   PROFESSOR PORTFOLIO — SPATIAL UI
   Design Tokens
   ============================================================ */

:root {
  /* Palette */
  --bg-void:       #060a12;
  --bg-deep:       #0b1120;
  --bg-surface:    #111827;
  --glass-fill:    rgba(255,255,255,0.04);
  --glass-border:  rgba(255,255,255,0.09);
  --glass-hover:   rgba(255,255,255,0.07);

  --accent-teal:   #8bcfbe;
  --accent-teal-dim: rgba(139,207,190,0.15);
  --accent-violet: #a78bfa;
  --accent-amber:  #f59e0b;
  --accent-glow:   rgba(139,207,190,0.35);

  --text-primary:  #f0f4f8;
  --text-secondary:#8fa8c8;
  --text-muted:    #4a6080;
  --text-label:    #8bcfbe;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Spatial depth */
  --shadow-float: 0 24px 80px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.4);
  --shadow-card:  0 8px 40px rgba(0,0,0,0.5);
  --glow-teal:    0 0 40px rgba(139,207,190,0.2), 0 0 80px rgba(139,207,190,0.08);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   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: var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--accent-teal);
  color: var(--bg-void);
}

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

/* ============================================================
   SPATIAL BACKGROUND
   ============================================================ */

.spatial-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.depth-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(139,207,190,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(167,139,250,0.06) 0%, transparent 60%),
    linear-gradient(to bottom, var(--bg-void) 0%, transparent 20%, transparent 80%, var(--bg-void) 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 18s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,207,190,0.12) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.10) 0%, transparent 70%);
  top: 30%; right: -150px;
  animation-delay: -6s;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,207,190,0.08) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

/* ============================================================
   GLASS PANEL
   ============================================================ */

.glass-panel {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.glass-panel:hover {
  background: var(--glass-hover);
  border-color: rgba(139,207,190,0.2);
  box-shadow: var(--shadow-card), 0 0 40px rgba(139,207,190,0.08);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-panel.scrolled {
  background: rgba(6,10,18,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-prefix {
  color: var(--accent-teal);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.logo-divider {
  color: var(--text-muted);
}

.logo-name {
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-link::before {
  content: attr(data-label);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-fill);
}

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

.nav-link.active { color: var(--accent-teal); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.status-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

.hero-spatial-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.layer {
  position: absolute;
  inset: 0;
}

.floating-node {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139,207,190,0.3);
}

.node-a {
  width: 120px; height: 120px;
  top: 20%; left: 70%;
  background: radial-gradient(circle, rgba(139,207,190,0.08) 0%, transparent 70%);
  animation: nodeFloat 8s ease-in-out infinite;
}

.node-b {
  width: 60px; height: 60px;
  top: 60%; left: 75%;
  background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
  animation: nodeFloat 6s ease-in-out infinite reverse;
  border-color: rgba(167,139,250,0.3);
}

.node-c {
  width: 180px; height: 180px;
  top: 10%; left: 55%;
  background: radial-gradient(circle, rgba(139,207,190,0.04) 0%, transparent 70%);
  animation: nodeFloat 12s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes nodeFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

.connection-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(139,207,190,0.2), transparent);
  height: 1px;
}

.line-1 {
  width: 200px;
  top: 30%; left: 60%;
  transform: rotate(-20deg);
}

.line-2 {
  width: 150px;
  top: 55%; left: 65%;
  transform: rotate(15deg);
}

.mid-card {
  position: absolute;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 110px;
  animation: cardFloat 10s ease-in-out infinite;
}

.card-stats {
  top: 25%; right: 12%;
  animation-delay: 0s;
}

.card-index {
  top: 55%; right: 8%;
  animation-delay: -5s;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-teal);
  line-height: 1;
}

.card-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin-right: auto;
  padding-left: max(2rem, calc((100vw - 1280px) / 2));
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dept-badge {
  background: var(--accent-teal-dim);
  border: 1px solid rgba(139,207,190,0.25);
  color: var(--accent-teal);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
}

.separator { color: var(--text-muted); }
.university { color: var(--text-muted); }

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 1rem;
  position: relative;
}

.name-prefix {
  display: block;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.name-first, .name-last {
  display: block;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.name-last {
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,244,248,0.4);
}

.hero-title {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-teal);
  color: var(--bg-void);
  box-shadow: 0 4px 20px rgba(139,207,190,0.3);
}

.btn-primary:hover {
  background: #a0dfd0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,207,190,0.4);
}

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

.btn-ghost:hover {
  border-color: rgba(139,207,190,0.4);
  color: var(--accent-teal);
  background: var(--accent-teal-dim);
}

/* Hero Portrait */
.hero-portrait-wrap {
  position: absolute;
  right: max(2rem, calc((100vw - 1280px) / 2 + 1rem));
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.portrait-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringRotate 20s linear infinite;
}

.ring-outer {
  width: 380px; height: 380px;
  border: 1px dashed rgba(139,207,190,0.2);
}

.ring-inner {
  width: 300px; height: 300px;
  border: 1px solid rgba(139,207,190,0.15);
  animation-direction: reverse;
  animation-duration: 14s;
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.portrait-frame {
  width: 240px; height: 280px;
  background: linear-gradient(160deg, rgba(139,207,190,0.1) 0%, rgba(167,139,250,0.06) 100%);
  border: 1px solid rgba(139,207,190,0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-float), var(--glow-teal);
  position: relative;
  z-index: 2;
}

.portrait-placeholder {
  text-align: center;
  padding: 1.5rem;
}

.portrait-placeholder svg {
  width: 100px;
  height: 120px;
  margin: 0 auto 0.75rem;
}

.portrait-label {
  font-size: 0.75rem;
  color: var(--accent-teal);
  font-family: var(--font-mono);
}

.portrait-data-tag {
  position: absolute;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  z-index: 3;
}

.tag-top {
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.tag-right {
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.tag-key {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-teal);
  line-height: 1;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  z-index: 2;
}

.scroll-track {
  width: 2px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-thumb {
  width: 100%;
  height: 40%;
  background: var(--accent-teal);
  border-radius: 2px;
  animation: scrollThumb 2s ease-in-out infinite;
}

@keyframes scrollThumb {
  0% { transform: translateY(-100%); opacity: 0; }
  30% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}

/* ============================================================
   SECTION BASE
   ============================================================ */

.section {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
  background: linear-gradient(180deg, transparent, rgba(139,207,190,0.02) 50%, transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.about-bio-panel {
  grid-column: 1 / 3;
  padding: 2rem;
}

.about-bio-panel p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-bio-panel strong { color: var(--text-primary); font-weight: 600; }
.about-bio-panel em { color: var(--accent-teal); font-style: normal; }

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.bio-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: var(--accent-teal-dim);
  border: 1px solid rgba(139,207,190,0.2);
  color: var(--accent-teal);
  letter-spacing: 0.03em;
}

.about-timeline {
  grid-column: 3;
  grid-row: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-teal);
  flex-shrink: 0;
  padding-top: 2px;
  width: 36px;
}

.tl-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.tl-place {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.about-awards {
  grid-column: 1 / 4;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.awards-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 80px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 1;
  min-width: 180px;
}

.award-icon {
  color: var(--accent-amber);
  font-size: 0.65rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.award-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.award-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   RESEARCH SECTION
   ============================================================ */

.research-section {
  background: linear-gradient(180deg, transparent, rgba(167,139,250,0.02) 50%, transparent);
}

.research-spatial-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.research-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.research-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139,207,190,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.research-card:hover::after { opacity: 1; }

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.research-card--featured {
  grid-row: 1 / 3;
}

.rc-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-violet);
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 5px;
  padding: 0.2rem 0.6rem;
  width: fit-content;
}

.rc-icon {
  font-size: 1.5rem;
  color: var(--accent-teal);
  opacity: 0.6;
}

.rc-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.research-card--featured .rc-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.rc-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.rc-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.rc-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.rc-status.active {
  background: rgba(34,197,94,0.1);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.25);
}

.rc-status.completed {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.rc-funding {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}

.rc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.rc-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.rc-link {
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 500;
  transition: letter-spacing 0.2s ease;
}

.rc-link:hover { letter-spacing: 0.03em; }

/* ============================================================
   PUBLICATIONS
   ============================================================ */

.publications-section {
  background: linear-gradient(180deg, transparent, rgba(139,207,190,0.015) 50%, transparent);
}

.pub-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pub-filter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pub-filter:hover {
  color: var(--text-secondary);
  border-color: rgba(139,207,190,0.2);
}

.pub-filter.active {
  background: var(--accent-teal-dim);
  border-color: rgba(139,207,190,0.3);
  color: var(--accent-teal);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s var(--ease-out-expo), opacity 0.3s ease;
}

.pub-item.hidden {
  display: none;
}

.pub-venue {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-teal);
  line-height: 1.4;
}

.pub-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.pub-authors {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pub-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pub-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.pub-btn:hover {
  border-color: rgba(139,207,190,0.35);
  color: var(--accent-teal);
  background: var(--accent-teal-dim);
}

.pub-more-wrap {
  margin-top: 2rem;
  text-align: center;
}

/* ============================================================
   TEACHING
   ============================================================ */

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.course-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-teal);
  letter-spacing: 0.05em;
}

.course-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.course-level {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.course-footer {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.course-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mentorship-panel {
  grid-column: 1 / -1;
  padding: 2rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.mp-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  min-width: 100px;
}

.mp-stats {
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
}

.mp-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mp-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-teal);
  line-height: 1;
}

.mp-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mp-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  min-width: 220px;
}

.mp-btn { margin-left: auto; }

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form-panel, .contact-info-panel, .social-panel {
  padding: 2rem;
}

.cf-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.cf-field {
  margin-bottom: 1.25rem;
}

.cf-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cf-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.cf-input:focus {
  border-color: rgba(139,207,190,0.45);
  background: rgba(139,207,190,0.04);
}

.cf-input::placeholder { color: var(--text-muted); }

.cf-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%234a6080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.cf-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.cf-textarea {
  resize: vertical;
  min-height: 120px;
}

.cf-submit {
  width: 100%;
  justify-content: center;
  padding: 0.875rem;
  font-size: 0.9rem;
}

.ci-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.ci-item:last-child { margin-bottom: 0; }

.ci-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 30px;
  margin-top: 2px;
}

.ci-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.ci-val {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sp-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sp-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sp-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-link::before {
  content: '→';
  color: var(--accent-teal);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sp-link:hover {
  color: var(--accent-teal);
  padding-left: 0.4rem;
}

.sp-link:hover::before { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 700;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1100px) {
  .hero-portrait-wrap { display: none; }
  .hero-content { max-width: 100%; }
  .mid-card { display: none; }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-bio-panel { grid-column: 1 / 3; }
  .about-timeline { grid-column: 1; grid-row: auto; }
  .about-awards { grid-column: 1 / 3; }

  .research-spatial-grid {
    grid-template-columns: 1fr;
  }
  .research-card--featured { grid-row: auto; }

  .pub-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pub-actions { justify-content: flex-start; }

  .teaching-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mentorship-panel { grid-column: 1 / -1; }
}

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

  .hero {
    padding: 100px 1.5rem 60px;
    text-align: center;
  }

  .hero-eyebrow { justify-content: center; flex-wrap: wrap; }
  .hero-actions { justify-content: center; }
  .hero-bio { margin-left: auto; margin-right: auto; }

  .floating-node, .connection-line { display: none; }

  .section { padding: 5rem 1.5rem; }

  .about-grid, .research-spatial-grid { grid-template-columns: 1fr; }
  .about-bio-panel, .about-awards { grid-column: 1; }

  .teaching-grid { grid-template-columns: 1fr; }
  .mentorship-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .mp-btn { margin-left: 0; width: 100%; justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 2rem; }

  .tag-right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
