/* ================================================================
   Dr. Ahmad Nasikun – Personal Academic Website
   Design: Refined editorial, deep navy + warm gold palette
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1a2e45;
  --navy-soft:  #243b55;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale:  #f7edd5;
  --white:      #fafaf8;
  --gray-100:   #f4f4f0;
  --gray-200:   #e8e8e2;
  --gray-400:   #9a9a90;
  --gray-600:   #5a5a52;
  --gray-800:   #2a2a24;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:  'IBM Plex Mono', monospace;

  --radius:     6px;
  --shadow-sm:  0 2px 8px rgba(13,27,42,0.08);
  --shadow-md:  0 6px 24px rgba(13,27,42,0.12);
  --shadow-lg:  0 16px 48px rgba(13,27,42,0.18);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utility ───────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gold-pale);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border-left: 3px solid var(--gold);
}
.badge-dark {
  background: var(--navy-mid);
  color: var(--gold-light);
  border-left-color: var(--gold-light);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  border-radius: 3px;
  margin: 0.15rem;
}

.divider {
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--gray-600);
  max-width: 52rem;
  font-size: 1.0rem;
}

/* ── Navigation ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.2rem 0;
}
#navbar.scrolled {
  background: rgba(13, 27, 42, 0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  padding: 0.75rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-brand span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}
.nav-cta a {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
}
.nav-cta a:hover { background: var(--gold-light) !important; }

#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
#hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(36,59,85,0.8) 0%, transparent 60%),
    linear-gradient(135deg, #0d1b2a 0%, #1a2e45 50%, #0d1b2a 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}
.hero-text { animation: fadeUp 0.8s ease both; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 42rem;
  margin-bottom: 2rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.hero-tag {
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 2px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  background: rgba(201,168,76,0.06);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 0.85rem 1.8rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn-secondary {
  padding: 0.85rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.hero-card {
  animation: fadeUp 0.8s 0.2s ease both;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}
.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--navy-mid);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.hero-card-info { text-align: center; margin-bottom: 1.5rem; }
.hero-card-info h3 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.hero-card-info p {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-style: italic;
}
.hero-card-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-link-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.hero-link-item:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,0.05);
}
.hero-link-item svg { flex-shrink: 0; opacity: 0.7; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ── About ─────────────────────────────────────────────────────── */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--gray-600);
  margin-bottom: 1.2rem;
  line-height: 1.85;
}
.about-text p:first-of-type {
  font-size: 1.05rem;
  color: var(--gray-800);
}
.education-card {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}
.education-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.edu-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}
.edu-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.edu-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  font-weight: 700;
  font-family: var(--font-mono);
}
.edu-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 0.15rem; }
.edu-info p  { font-size: 0.8rem; color: var(--gray-600); line-height: 1.4; }
.edu-info .year { font-size: 0.72rem; color: var(--gold); font-family: var(--font-mono); margin-top: 0.15rem; }

/* ── Research ──────────────────────────────────────────────────── */
#research { background: var(--gray-100); }
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.research-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.research-card:hover::before { transform: scaleX(1); }
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.research-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.research-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.research-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.research-projects { list-style: none; }
.research-projects li {
  font-size: 0.78rem;
  color: var(--gray-600);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
  font-family: var(--font-mono);
}
.research-projects li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.research-card h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid rgba(201, 168, 76, 0.45);
  transition: border-color var(--transition), color var(--transition);
}
.research-card h3 a:hover {
  color: var(--navy-soft);
  border-bottom-color: var(--gold);
}

/* ── Research area subpages (research/*.html) ───────────────────── */
.page-research-detail .page-sub-main {
  padding-top: 4.5rem;
  min-height: 70vh;
}
.research-page-hero {
  background: var(--gray-100);
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: var(--navy-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breadcrumb a:hover { color: var(--navy); }
.research-page-title-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.research-page-icon {
  font-size: 2.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.research-page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.research-page-lead {
  color: var(--gray-600);
  margin-top: 0.5rem;
  font-size: 1rem;
  max-width: 40rem;
  line-height: 1.6;
}
.research-detail-body > .research-detail-intro p {
  margin-bottom: 1rem;
  color: var(--gray-800);
  max-width: 48rem;
  line-height: 1.75;
}
.research-detail-topic {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
.research-detail-topic:first-of-type {
  border-top: none;
  padding-top: 0;
}
.research-detail-topic h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.research-detail-topic > p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 48rem;
  margin-bottom: 0.5rem;
}
.research-detail-papers-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
}
.research-detail-paper-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.research-detail-paper-links li {
  font-size: 0.9rem;
  margin: 0.35rem 0;
  padding-left: 0;
}
.research-detail-paper-links a {
  color: var(--navy-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.research-detail-paper-links a:hover { color: var(--navy); }
.research-detail-pubs-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-200);
}
.research-detail-pubs-section .section-header {
  margin-bottom: 2rem;
}
.research-detail-topic h2 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid rgba(201, 168, 76, 0.45);
  transition: border-color var(--transition), color var(--transition);
}
.research-detail-topic h2 a:hover {
  color: var(--navy-soft);
  border-bottom-color: var(--gold);
}

/* Subpages: readable nav on light background before scroll */
.page-research-detail #navbar:not(.scrolled) {
  background: rgba(250, 250, 248, 0.94);
  box-shadow: 0 1px 0 var(--gray-200);
  padding: 0.75rem 0;
}
.page-research-detail #navbar:not(.scrolled) .nav-brand {
  color: var(--navy);
}
.page-research-detail #navbar:not(.scrolled) .nav-links a {
  color: var(--gray-800);
}
.page-research-detail #navbar:not(.scrolled) .nav-links a:hover,
.page-research-detail #navbar:not(.scrolled) .nav-links a.active {
  color: var(--navy);
  background: var(--gray-100);
}
.page-research-detail #navbar:not(.scrolled) #hamburger span {
  background: var(--navy);
}

/* ── Publications ──────────────────────────────────────────────── */
#publications { background: var(--white); }
#publications .section-header code {
  font-size: 0.88em;
  background: var(--gray-100);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}
.pub-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.pub-filter {
  padding: 0.4rem 1rem;
  border: 1px solid var(--gray-200);
  background: none;
  border-radius: 99px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.pub-filter.active, .pub-filter:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.pub-list { display: flex; flex-direction: column; gap: 1.25rem; }
.pub-item {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.pub-item:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
/* Add class `pub-hidden` to a `.pub-item` in index.html to exclude it from the site (stays hidden even when using journal/conference filters). */
.pub-item.pub-hidden {
  display: none !important;
}
.pub-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.1rem;
  min-width: 3rem;
}
.pub-content h4 {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.pub-content .pub-authors {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 0.3rem;
}
.pub-content .pub-authors strong { color: var(--navy); }
.pub-content .pub-venue {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gray-400);
  margin-bottom: 0.6rem;
}
.pub-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--gray-600);
  transition: var(--transition);
}
.pub-link:hover { border-color: var(--gold); color: var(--navy); }

/* ── Teaching ──────────────────────────────────────────────────── */
#teaching { background: var(--navy); }
#teaching .section-header h2 { color: var(--white); }
#teaching .section-header p  { color: rgba(255,255,255,0.6); }
#teaching .divider { background: var(--gold); }

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.course-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.course-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-3px);
}
.course-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.course-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.course-card p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}
.course-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Projects ──────────────────────────────────────────────────── */
#projects { background: var(--gray-100); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.project-header {
  background: var(--navy-mid);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.project-icon {
  width: 2.5rem; height: 2.5rem;
  background: rgba(201,168,76,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.project-header h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.3;
}
.project-header span {
  font-size: 0.72rem;
  color: var(--gold-light);
  font-style: italic;
}
.project-body { padding: 1.25rem; }
.project-body p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.project-funder {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
}

/* ── Contact ───────────────────────────────────────────────────── */
#contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: var(--gold); }
.contact-item-icon {
  width: 2.5rem; height: 2.5rem;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-item-text h4 { font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.15rem; }
.contact-item-text p, .contact-item-text a {
  font-size: 0.85rem;
  color: var(--gray-600);
}
.contact-item-text a:hover { color: var(--gold); }

.contact-affiliations {
  background: var(--navy);
  border-radius: 8px;
  padding: 2rem;
  color: var(--white);
}
.contact-affiliations h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
}
.affil-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}
.affil-item:last-child { border-bottom: none; }
.affil-item h4 { font-size: 0.9rem; color: var(--white); margin-bottom: 0.2rem; }
.affil-item p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
}
footer a { color: var(--gold); }
footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Back to top ───────────────────────────────────────────────── */
#back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}
#back-top.visible { opacity: 1; pointer-events: auto; }
#back-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
  .hero-card { max-width: 360px; margin: 0 auto; }
  .hero-eyebrow { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.2rem; }
  #hamburger { display: flex; z-index: 1000; }
  .pub-item { grid-template-columns: 1fr; }
  .pub-year { margin-bottom: 0.25rem; }
  .section { padding: 3.5rem 0; }
}
