/* ── Dr Chetan Arora — Shared Dark Theme ── */

/* ── DARK (default) ── */
:root,
[data-theme="dark"] {
  --bg:          #060A13;
  --surface:     #0C1220;
  --surface-2:   #121929;
  --surface-3:   #1A2235;
  --gold:        #B8914A;
  --gold-light:  #D4A853;
  --gold-pale:   rgba(184,145,74,0.12);
  --text:        #EAE2CF;
  --text-muted:  #7A8499;
  --text-dim:    #3E4A5C;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --blue:        #2C5F8A;
  --blue-light:  #4A8BB5;
  --blue-pale:   rgba(44,95,138,0.15);
  --green-pale:  rgba(42,92,74,0.2);
  --amber-pale:  rgba(122,80,32,0.2);
  --radius:      4px;
  --max:         1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.4;
}

/* ── TYPE ── */
.display { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.display-xl { font-size: clamp(3.2rem, 7vw, 6.5rem); }
.display-lg { font-size: clamp(2.4rem, 4.5vw, 4rem); }
.display-md { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.display-sm { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
a { color: inherit; text-decoration: none; }
p { color: var(--text-muted); line-height: 1.8; }
p + p { margin-top: 1rem; }

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
section { padding: 7rem 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,10,19,0.88); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  padding: 0.6rem 1.4rem; border: 1px solid var(--gold);
  color: var(--gold); border-radius: var(--radius); transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }

/* ── HERO (main page) ── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(44,95,138,0.12) 0%, transparent 65%),
              radial-gradient(ellipse 60% 40% at 20% 80%, rgba(184,145,74,0.07) 0%, transparent 60%), var(--bg);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 8rem 2.5rem 5rem;
  max-width: var(--max); margin: 0 auto; width: 100%;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-left { display: flex; flex-direction: column; }
.hero-right { display: flex; justify-content: flex-end; align-items: flex-start; padding-top: 2rem; }
.hero-photo-wrap { position: relative; width: 340px; flex-shrink: 0; }
.hero-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top;
  border-radius: 6px; display: block; border: 1px solid var(--border-2);
  filter: brightness(0.96) contrast(1.02);
}
.hero-photo-card {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: rgba(12,18,32,0.95); backdrop-filter: blur(12px);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; min-width: 220px;
}
.hero-photo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.hero-photo-title { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.04em; margin-top: 0.2rem; margin-bottom: 0.75rem; }
.hero-social { display: flex; gap: 0.6rem; }
.hero-social-link {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); color: var(--text-muted); transition: all 0.2s;
}
.hero-social-link:hover { color: var(--gold); border-color: var(--gold); }

.hero-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards; }
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--gold); }
.hero-heading { opacity: 0; animation: fadeUp 0.9s ease 0.35s forwards; margin-bottom: 2rem; max-width: 900px; }
.hero-heading em { font-style: italic; color: var(--gold-light); }
.hero-sub { max-width: 580px; font-size: 1.05rem; margin-bottom: 3rem; opacity: 0; animation: fadeUp 0.9s ease 0.5s forwards; }
.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  margin-bottom: 3.5rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  opacity: 0; animation: fadeUp 0.9s ease 0.65s forwards;
}
.hero-stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 600; color: var(--text); line-height: 1; }
.hero-stat-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; margin-top: 0.3rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s ease 0.8s forwards; }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 90% 50%, rgba(44,95,138,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 10% 80%, rgba(184,145,74,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.page-hero-line { width: 40px; height: 1px; background: var(--gold); }
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero p { font-size: 1rem; max-width: 650px; }

/* ── BUTTONS ── */
.btn-primary {
  padding: 0.85rem 2rem; background: var(--gold); color: var(--bg);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  border-radius: var(--radius); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary {
  padding: 0.85rem 2rem; border: 1px solid var(--border-2);
  color: var(--text); font-size: 0.78rem; letter-spacing: 0.1em;
  border-radius: var(--radius); transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); transform: translateY(-1px); }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-top: 0.75rem; }

/* ── ABOUT ── */
#about { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
.about-body { padding-top: 0.5rem; }
.about-body h2 { margin-bottom: 1.5rem; }
.about-body p { font-size: 1rem; margin-bottom: 1.2rem; }
.about-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--gold-pale); border: 1px solid rgba(184,145,74,0.2);
  border-radius: 2px;
}
.badge span { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--gold); }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.about-fact {
  padding: 1.1rem 1.3rem;
  background: var(--surface-2); border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-fact strong { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; color: var(--text); margin-bottom: 0.3rem; }
.about-fact p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ── PILLARS ── */
#pillars { background: var(--bg); }
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.pillar { background: var(--surface); padding: 2.5rem 2rem; transition: background 0.3s; }
.pillar:hover { background: var(--surface-2); }
.pillar-num { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300; color: var(--text-dim); line-height: 1; margin-bottom: 1.5rem; }
.pillar-stripe { width: 32px; height: 2px; margin-bottom: 1.2rem; }
.pillar h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--text); margin-bottom: 0.8rem; line-height: 1.3; }
.pillar p { font-size: 0.88rem; line-height: 1.75; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.pillar-link { display: inline-block; margin-top: 1.25rem; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
.pillar-link:hover { opacity: 0.7; }
.tag { font-size: 0.65rem; letter-spacing: 0.08em; padding: 0.3rem 0.7rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border-2); border-radius: 2px; color: var(--text-muted); }

/* ── NUMBERS ── */
#numbers { background: var(--surface); padding: 5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.numbers-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.number-cell { background: var(--bg); padding: 2rem 1.5rem; text-align: center; }
.number-value { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 600; color: var(--text); line-height: 1; display: block; }
.number-label { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-muted); margin-top: 0.5rem; display: block; line-height: 1.5; }

/* ── PHD RESEARCH GROUP ── */
#group { background: var(--bg); }
.group-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 4rem; align-items: end; }
.group-intro p { font-size: 0.95rem; }
.students-label { margin-bottom: 1.5rem; }
.students-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.student-card { background: var(--surface); padding: 1.5rem; transition: background 0.25s; }
.student-card:hover { background: var(--surface-2); }
.student-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.student-name { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.student-role {
  font-size: 0.6rem; letter-spacing: 0.08em; padding: 0.25rem 0.6rem;
  border-radius: 2px; flex-shrink: 0; margin-left: 0.5rem; margin-top: 0.1rem;
}
.role-main { background: rgba(184,145,74,0.15); color: var(--gold); border: 1px solid rgba(184,145,74,0.2); }
.role-assoc { background: rgba(44,95,138,0.15); color: #5B9BD5; border: 1px solid rgba(44,95,138,0.2); }
.student-topic { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; }
.student-institution { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-dim); }
.alumni-row {
  margin-top: 2.5rem; padding: 1.5rem 2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.alumni-row h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.alumni-list { display: flex; flex-wrap: wrap; gap: 1rem; }
.alumni-chip {
  padding: 0.5rem 1rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.78rem;
}
.alumni-chip span { display: block; color: var(--text-muted); font-size: 0.68rem; margin-top: 0.15rem; }

/* ── PHD CLUSTERS ── */
.phd-clusters {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 2.5rem;
}
.phd-cluster { background: var(--surface); padding: 2rem 2rem 1.75rem; transition: background 0.25s; }
.phd-cluster:hover { background: var(--surface-2); }
.cluster-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.cluster-accent { width: 3px; height: 100%; min-height: 44px; border-radius: 2px; flex-shrink: 0; margin-top: 2px; }
.cluster-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.cluster-count { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--gold); margin-top: 0.25rem; }
.cluster-icon { font-size: 1.4rem; margin-left: auto; flex-shrink: 0; opacity: 0.7; }
.cluster-desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.25rem; }
.cluster-outputs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cluster-output {
  font-size: 0.65rem; letter-spacing: 0.07em; padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-2);
  border-radius: 2px; color: var(--text-muted);
}

/* ── ACHIEVEMENTS ── */
#achievements { background: var(--surface); border-top: 1px solid var(--border); }
.achievements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 3rem; }
.achievement-card { background: var(--bg); padding: 2rem; transition: background 0.25s; }
.achievement-card:hover { background: var(--surface-2); }
.achievement-icon { font-size: 1.6rem; margin-bottom: 1rem; display: block; }
.achievement-category { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.5rem; display: block; }
.achievement-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 0.6rem; line-height: 1.3; }
.achievement-card p { font-size: 0.83rem; }
.achievement-year { font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.08em; margin-top: 0.75rem; display: block; }
.recognition-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 1.5px;
}
.recognition-cell { background: var(--bg); padding: 1.5rem; text-align: center; transition: background 0.25s; }
.recognition-cell:hover { background: var(--surface-2); }
.recognition-cell-title { font-size: 0.72rem; font-weight: 500; color: var(--text); letter-spacing: 0.04em; line-height: 1.4; }
.recognition-cell-sub { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── MEDIA ── */
#media { background: var(--bg); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 3rem; }
.media-card { background: var(--surface); padding: 2rem 1.75rem; transition: background 0.25s; display: flex; flex-direction: column; }
.media-card:hover { background: var(--surface-2); }
.media-type {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem; border-radius: 2px; width: fit-content; margin-bottom: 1.2rem;
}
.type-keynote { background: rgba(184,145,74,0.15); color: var(--gold-light); border: 1px solid rgba(184,145,74,0.2); }
.type-panel   { background: rgba(44,95,138,0.15);  color: #5B9BD5; border: 1px solid rgba(44,95,138,0.2); }
.type-press   { background: rgba(74,140,106,0.15); color: #6ABF99; border: 1px solid rgba(74,140,106,0.2); }
.type-podcast { background: rgba(140,74,74,0.15);  color: #D4807A; border: 1px solid rgba(140,74,74,0.2); }
.type-article { background: rgba(122,80,32,0.15);  color: #D4A060; border: 1px solid rgba(122,80,32,0.2); }
.media-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 0.6rem; line-height: 1.35; flex: 1; }
.media-card p { font-size: 0.82rem; margin-bottom: 1rem; }
.media-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.8rem; border-top: 1px solid var(--border); margin-top: auto; }
.media-org { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-dim); }
.media-year { font-size: 0.68rem; color: var(--text-dim); }

/* ── PUBLICATIONS ── */
#publications { background: var(--surface); border-top: 1px solid var(--border); }
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 3rem; }
.research-card { background: var(--bg); padding: 2.2rem 2rem; transition: background 0.25s; display: flex; flex-direction: column; }
.research-card:hover { background: var(--surface-2); }
.research-card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.venue-badge { font-size: 0.65rem; letter-spacing: 0.1em; padding: 0.3rem 0.7rem; border-radius: 2px; font-weight: 500; }
.venue-astar { background: rgba(44,95,138,0.2); color: #5B9BD5; border: 1px solid rgba(44,95,138,0.3); }
.venue-award { background: rgba(184,145,74,0.15); color: var(--gold-light); border: 1px solid rgba(184,145,74,0.25); }
.research-year { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.08em; }
.research-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 0.75rem; flex: 1; }
.research-card p { font-size: 0.83rem; margin-bottom: 1.2rem; }
.research-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: auto; }
.cite-count { font-size: 0.7rem; color: var(--text-muted); }
.cite-count strong { color: var(--gold); font-weight: 500; }

/* ── TIMELINE ── */
#timeline { background: var(--bg); }
.timeline-list { position: relative; padding-left: 2rem; margin-top: 3.5rem; }
.timeline-list::before { content: ''; position: absolute; left: 0; top: 0.6rem; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--gold), transparent); }
.timeline-item { position: relative; padding-bottom: 2.5rem; padding-left: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -2.4rem; top: 0.55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }
.timeline-item.dim .timeline-dot { background: var(--text-dim); }
.timeline-period { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.35rem; }
.timeline-item.dim .timeline-period { color: var(--text-dim); }
.timeline-role { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.timeline-org { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.timeline-note { font-size: 0.82rem; color: var(--text-muted); max-width: 500px; }

/* ── ENGAGE ── */
#engage { background: var(--surface); border-top: 1px solid var(--border); }
.engage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3.5rem; }
.engage-col h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.engage-col > p { font-size: 0.9rem; margin-bottom: 1.5rem; }
.topic-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.topic-list li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.88rem; color: var(--text-muted); }
.topic-list li::before { content: '→'; color: var(--gold); flex-shrink: 0; margin-top: 0.05rem; }
.venue-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.venue-chip { font-size: 0.67rem; letter-spacing: 0.07em; padding: 0.3rem 0.8rem; background: var(--gold-pale); border: 1px solid rgba(184,145,74,0.2); border-radius: 2px; color: var(--gold-light); }

/* ── CONTACT ── */
#contact { background: var(--bg); border-top: 1px solid var(--border); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-left h2 { margin-bottom: 1rem; }
.contact-left p { font-size: 0.95rem; max-width: 400px; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.contact-link { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { color: var(--text); }
.contact-link-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--radius); font-size: 0.85rem; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 300;
  padding: 0.75rem 1rem; border-radius: var(--radius); outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--surface-2); }

/* ── FOOTER ── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; color: var(--text); }
.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.06em; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 0.72rem; color: var(--text-dim); }

/* ── SERVICE PAGE ── */
.service-section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.service-section:last-child { border-bottom: none; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.service-item {
  padding: 1.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  transition: background 0.25s;
}
.service-item:hover { background: var(--surface-2); }
.service-item-role { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.service-item-meta { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.04em; }
.service-item-link { font-size: 0.75rem; color: var(--gold); letter-spacing: 0.04em; }
.service-item-link:hover { color: var(--gold-light); }

.pc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: 2rem;
}
.pc-row { background: var(--surface); padding: 1rem 1.5rem; transition: background 0.25s; }
.pc-row:hover { background: var(--surface-2); }
.pc-venue { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; color: var(--text); }
.pc-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ── TEACHING PAGE ── */
.teaching-role-card {
  padding: 2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem; transition: background 0.25s;
}
.teaching-role-card:hover { background: var(--surface-2); }
.teaching-role-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.teaching-role-org { font-size: 0.8rem; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 0.75rem; }
.teaching-role-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }

.course-panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 0.75rem;
}
.course-panel-header {
  padding: 1rem 1.5rem; background: var(--surface);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: background 0.2s;
}
.course-panel-header:hover { background: var(--surface-2); }
.course-panel-title { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.course-panel-toggle { color: var(--gold); font-size: 1.2rem; transition: transform 0.2s; }
.course-panel.open .course-panel-toggle { transform: rotate(45deg); }
.course-panel-body {
  padding: 0 1.5rem; max-height: 0; overflow: hidden;
  background: var(--surface-2); transition: max-height 0.35s ease, padding 0.2s;
}
.course-panel.open .course-panel-body { max-height: 400px; padding: 1.25rem 1.5rem; }
.course-panel-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; letter-spacing: 0.04em; }
.course-panel-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { justify-content: center; padding-top: 0; }
  .hero-photo-wrap { width: 260px; }
  .hero-photo-card { left: 0; bottom: -1rem; min-width: 180px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-facts { grid-template-columns: 1fr; }
  .group-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .students-grid { grid-template-columns: 1fr 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .recognition-strip { grid-template-columns: repeat(2,1fr); }
  .media-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .engage-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(3,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .phd-clusters { grid-template-columns: 1fr; }
  .pc-grid { grid-template-columns: 1fr; }
  section { padding: 5rem 0; }
}
@media (max-width: 560px) {
  .students-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { gap: 1.5rem; }
  .hero-photo-wrap { width: 200px; }
  footer { flex-direction: column; text-align: center; }
}

/* ── LIGHT MODE (Option A: clean academic) ── */
[data-theme="light"] {
  --bg:          #F9F8F5;
  --surface:     #FFFFFF;
  --surface-2:   #F3F2EF;
  --surface-3:   #ECEAE5;
  --gold:        #2E4A6B;
  --gold-light:  #4A6FA5;
  --gold-pale:   rgba(46,74,107,0.07);
  --text:        #1A1E2A;
  --text-muted:  #4B5563;
  --text-dim:    #9CA3AF;
  --border:      rgba(0,0,0,0.07);
  --border-2:    rgba(0,0,0,0.12);
  --blue:        #2E4A6B;
  --blue-light:  #4A6FA5;
  --blue-pale:   rgba(46,74,107,0.07);
  --green-pale:  rgba(30,80,55,0.07);
  --amber-pale:  rgba(120,80,20,0.08);
}

[data-theme="light"] body { font-weight: 400; }
[data-theme="light"] body::before { opacity: 0; }

[data-theme="light"] nav {
  background: rgba(249,248,245,0.94);
  border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .nav-cta {
  background: var(--gold);
  color: #fff;
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(46,74,107,0.05) 0%, transparent 65%),
    var(--bg);
}

[data-theme="light"] .page-hero::before {
  background: radial-gradient(ellipse 60% 70% at 90% 50%, rgba(46,74,107,0.04) 0%, transparent 70%);
}

[data-theme="light"] .hero-photo-card {
  background: #FFFFFF;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

[data-theme="light"] .timeline-list::before {
  background: linear-gradient(to bottom, var(--gold), transparent);
}

[data-theme="light"] .timeline-dot {
  border-color: var(--bg);
}

/* Light mode: individual white cards instead of hairline grid */
[data-theme="light"] .pillars-grid,
[data-theme="light"] .achievements-grid,
[data-theme="light"] .research-grid,
[data-theme="light"] .cluster-grid,
[data-theme="light"] .student-grid,
[data-theme="light"] .completions-grid,
[data-theme="light"] .awards-grid,
[data-theme="light"] .recognition-grid,
[data-theme="light"] .media-grid,
[data-theme="light"] .pc-grid,
[data-theme="light"] .engage-grid,
[data-theme="light"] .numbers-grid,
[data-theme="light"] .nav-cards {
  background: transparent;
  gap: 1.25rem;
  border: none;
}

[data-theme="light"] .pillar,
[data-theme="light"] .achievement-card,
[data-theme="light"] .research-card,
[data-theme="light"] .cluster-card,
[data-theme="light"] .student-card,
[data-theme="light"] .completion-card,
[data-theme="light"] .award-card,
[data-theme="light"] .recognition-cell,
[data-theme="light"] .media-card,
[data-theme="light"] .pc-item,
[data-theme="light"] .engage-item,
[data-theme="light"] .number-cell,
[data-theme="light"] .nav-card {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

[data-theme="light"] .nav-card:hover {
  box-shadow: 0 4px 16px rgba(46,74,107,0.12);
  border-color: rgba(46,74,107,0.2);
}

[data-theme="light"] .teaching-role-card,
[data-theme="light"] .course-panel,
[data-theme="light"] .service-item {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}

[data-theme="light"] section[style*="background: var(--surface)"] {
  background: var(--bg) !important;
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  cursor: pointer;
  width: 34px; height: 34px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }
