:root {
  /* Core Variables - Light Mode Default */
  --ink: #0f172a;
  --muted: rgba(15, 23, 42, 0.68);
  --paper: #f8fafc;
  --paper2: #f1f5f9;
  --accent: #0ea5e9;
  --accent2: #8b5cf6;
  --accent-hover: #0284c7;
  --card: rgba(255, 255, 255, 0.7);
  --card-hover: rgba(255, 255, 255, 0.9);
  --ring: rgba(14, 165, 233, 0.35);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
  --shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  --shadow-sm: 0 8px 20px -14px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(15, 23, 42, 0.28);
  --border: rgba(15, 23, 42, 0.08);
  --nav-bg: rgba(248, 250, 252, 0.8);

  --radius: 16px;
  --radius2: 24px;
  --font: "Inter", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --display: "Outfit", "Fraunces", ui-sans-serif, sans-serif;
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="dark"] {
  --ink: #f8fafc;
  --muted: rgba(248, 250, 252, 0.68);
  --paper: #0f172a;
  --paper2: #1e293b;
  --accent: #38bdf8;
  --accent2: #a78bfa;
  --accent-hover: #7dd3fc;
  --card: rgba(30, 41, 59, 0.7);
  --card-hover: rgba(30, 41, 59, 0.9);
  --ring: rgba(56, 189, 248, 0.35);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 10px 26px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 32px 90px -40px rgba(0, 0, 0, 0.85);
  --border: rgba(248, 250, 252, 0.08);
  --nav-bg: rgba(15, 23, 42, 0.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Animated Background Gradient */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(14, 165, 233, 0.08), transparent 55%),
    radial-gradient(900px 680px at 90% 12%, rgba(139, 92, 246, 0.08), transparent 52%),
    radial-gradient(1100px 720px at 50% 92%, rgba(56, 189, 248, 0.06), transparent 62%),
    linear-gradient(180deg, var(--paper), var(--paper2));
  transition: background var(--transition-normal);
  animation: bgShift 20s ease-in-out infinite alternate;
}

.bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .bgCanvas {
  opacity: 0.7;
  mix-blend-mode: screen;
}

@keyframes bgShift {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9em;
  background: rgba(128, 128, 128, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Nav */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  transition: transform var(--transition-bounce);
}

.brand:hover { transform: scale(1.05); }

.brandMark {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.brandText { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }

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

.nav a {
  font-weight: 500; font-size: 14px; color: var(--muted);
  padding: 8px 12px; position: relative;
}

.nav a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--accent); transition: width var(--transition-fast);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 60%; }

.theme-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--ink);
  cursor: pointer; padding: 8px; border-radius: 50%; display: flex;
  transition: all var(--transition-bounce);
}
.theme-toggle:hover { background: var(--card); transform: rotate(45deg) scale(1.1); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }

.modalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.modalBackdrop[hidden] {
  display: none;
}

.modalCard {
  width: min(720px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--card-hover);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.modalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.modalTitle {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.modalSub {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.iconBtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--transition-bounce), background var(--transition-fast), border-color var(--transition-fast);
}

.iconBtn:hover {
  transform: rotate(12deg) scale(1.04);
  background: var(--card-hover);
  border-color: var(--accent);
}

.iconBtn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.modalForm {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.fieldLabel {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.fieldInput {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .fieldInput {
  background: rgba(15, 23, 42, 0.45);
}

.fieldInput:focus {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 0 6px var(--ring);
}

.fieldArea {
  resize: vertical;
  min-height: 160px;
}

.turnstileRow {
  display: grid;
  gap: 8px;
}

.turnstileBox {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.45);
  overflow-x: auto;
}

[data-theme="dark"] .turnstileBox {
  background: rgba(15, 23, 42, 0.28);
}

.turnstileHint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.modalActions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.formStatus {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.formStatus.is-error { color: #b91c1c; }
.formStatus.is-success { color: #15803d; }

/* Global Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Delay modifiers for staggered reveals */
.delay-0 { transition-delay: 0.1s; }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.5s; }

/* Hero */
.hero { padding: 64px 24px 26px; max-width: 1200px; margin: 0 auto; }
.heroGrid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }

.heroCopy { animation: fadeUp 0.8s ease-out forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

.title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(42px, 5vw, 72px); line-height: 1.1; margin: 0 0 16px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--muted) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.tagline { margin: 0 0 32px; color: var(--muted); font-size: 20px; line-height: 1.6; max-width: 50ch; }
.ctaRow { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px;
  border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--ink);
  transition: all var(--transition-bounce);
}

.btn.iconLink {
  gap: 10px;
}

.btn.iconLink svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}
.btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-hover); border-color: var(--accent); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; border: none;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}
.btn.primary:hover { box-shadow: 0 12px 30px rgba(14, 165, 233, 0.6); }

.metaRow { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-weight: 600; font-size: 13px; color: var(--muted); backdrop-filter: blur(10px); }
.pillDot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); }

/* Avatar Profile Image styling */
.heroVisual {
  display: flex; justify-content: center; align-items: center;
  animation: fadeLeft 0.8s ease-out forwards 0.2s; opacity: 0;
}
@keyframes fadeLeft { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.heroImageWrapper {
  position: relative; width: 280px; height: 280px; border-radius: 30px;
  z-index: 1; transform-style: preserve-3d;
}

.heroAvatar {
  width: 100%; height: 100%; object-fit: cover; border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-hover);
  position: relative; z-index: 2;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.5s;
}

.heroImageWrapper:hover .heroAvatar {
  filter: grayscale(0%) contrast(1);
}

.avatarGlow {
  position: absolute; inset: -15px; border-radius: 40px; z-index: 0;
  background: linear-gradient(45deg, var(--accent), var(--accent2), var(--accent));
  filter: blur(25px); opacity: 0.6;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.4; transform: scale(0.98); }
  100% { opacity: 0.8; transform: scale(1.05); }
}

.heroCard {
  border-radius: var(--radius2); background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow: hidden; width: 100%;
}
.heroCardInner { padding: 32px; display: flex; gap: 40px; justify-content: space-around; flex-wrap: wrap; }
.heroStat { text-align: center; }
.heroStatLabel { font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;}
.heroStatValue { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--accent); }

/* Sections */
.section { padding: 44px 24px; max-width: 1200px; margin: 0 auto; }
.sectionHead { margin-bottom: 26px; }
.sectionHead h2 { font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -0.02em; margin: 0 0 12px; display: inline-block; position: relative; }
.sectionHead h2::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 40px; height: 4px; border-radius: 2px; background: var(--accent); transition: width 0.3s; }
.section:hover .sectionHead h2::after { width: 100%; }

.sub { margin: 0; color: var(--muted); font-size: 18px; max-width: 60ch; line-height: 1.6; }
.twoCol { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; }

.prose {
  padding: 32px; border-radius: var(--radius2); border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(12px);
  font-size: 16px; line-height: 1.8; color: var(--muted);
}
.prose b, .prose strong { color: var(--ink); font-weight: 700; }

.cards { display: grid; gap: 16px; }
.card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); transition: all var(--transition-fast); }
.cardTitle { font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 12px; color: var(--accent); margin: 0 0 12px; }
.cardBody { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.5; }

/* Timeline for Experience and Education */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border);
}

.timelineItem {
  position: relative;
  margin-bottom: 30px;
}

.timelineItem:last-child {
  margin-bottom: 0;
}

.timelineDot {
  position: absolute;
  left: -37px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--paper), 0 0 15px var(--accent);
  transition: transform var(--transition-bounce);
}

.timelineItem:hover .timelineDot {
  transform: scale(1.5);
}

.timelineContent {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-bounce);
}

.timelineItem:hover .timelineContent {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.timelineTitle {
  margin: 0 0 8px 0;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
}

.timelineMeta {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.timelineDesc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.timelineBullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.timelineBullets li {
  margin: 6px 0;
}

/* Skills Grid */
.skillsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.skillCategory {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.skillCategory:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
}

.skillCatTitle {
  margin: 0 0 16px 0;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skillIcon {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex: 0 0 auto;
}

.miniLogo {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  flex: 0 0 auto;
}

.pubTitleRow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.skillPills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skillPill {
  padding: 6px 12px;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.skillLogo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.skillPill:hover {
  background: rgba(14, 165, 233, 0.12);
  color: var(--ink);
  border-color: rgba(14, 165, 233, 0.35);
  transform: translateY(-2px);
}

/* Activities */
.activityGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.activityList {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.activityList li {
  margin: 8px 0;
}

/* News */
.newsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.newsToggleRow {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.newsMeta {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.newsTitle {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.newsBody {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.metaPill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.metaPill svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
  fill: currentColor;
}

.timelineMetaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

/* Publications Controls */
.pubControls { display: grid; gap: 16px; margin-bottom: 24px; }
.search input { width: 100%; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 500; box-shadow: var(--shadow-sm); transition: all var(--transition-fast); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.chips { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: all var(--transition-fast); }
.chip:hover { background: var(--card-hover); color: var(--ink); }
.chip[aria-pressed="true"] { color: white; border-color: var(--accent); background: var(--accent); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); }

/* Carousel */
.carouselWrap { margin: 32px 0; padding: 24px; border-radius: var(--radius2); border: 1px solid var(--border); background: linear-gradient(135deg, var(--card), transparent); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.carouselHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.h3 { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 0; color: var(--ink); }
.carouselBtns { display: flex; gap: 8px; }
.iconBtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--ink); font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-bounce); }
.iconBtn:hover { background: var(--accent); color: white; border-color: var(--accent); transform: scale(1.1); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.slide { scroll-snap-align: start; padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; height: 100%; transition: transform var(--transition-bounce); }
.slideTitle { font-weight: 700; font-size: 16px; margin: 0 0 12px; line-height: 1.4; color: var(--ink); }
.slideMeta { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.slideRow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.badge { display: inline-flex; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: rgba(128, 128, 128, 0.05); font-weight: 600; font-size: 12px; color: var(--muted); }
.badge.link { background: var(--accent); color: white; border-color: var(--accent); transition: all var(--transition-fast); }
.badge.link:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Citations chart */
.chartWrap {
  margin: 20px 0 26px;
  padding: 22px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--card), transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.pubHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pubHeadText {
  min-width: 0;
}

.chartWrap.chartCompact {
  margin: 0;
  padding: 14px;
  width: min(440px, 42vw);
  flex: 0 0 auto;
}

.chartWrap.chartCompact .h3 {
  font-size: 18px;
}

.chartWrap.chartCompact .footnote {
  margin-top: 10px;
}

.chartWrap.chartCompact .chart {
  height: 130px;
}

.chartHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chart {
  display: block;
  height: 170px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(128, 128, 128, 0.04);
  overflow: hidden;
}

.chartSvg {
  display: block;
  height: 100%;
  width: 100%;
}

.chartGrid line {
  stroke: rgba(128, 128, 128, 0.18);
  stroke-width: 1;
}

.chartY {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.chartYear {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.chartLine {
  fill: none;
  stroke: rgba(15, 23, 42, 0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] .chartLine {
  stroke: rgba(248, 250, 252, 0.38);
}

.chartDot {
  fill: var(--paper);
  stroke: rgba(15, 23, 42, 0.45);
  stroke-width: 1.2;
}

[data-theme="dark"] .chartDot {
  fill: var(--paper);
  stroke: rgba(248, 250, 252, 0.5);
}

/* Accordion */
.accordion { display: grid; gap: 12px; }
.accItem { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: all var(--transition-fast); }
.accItem:hover { border-color: rgba(14, 165, 233, 0.5); }
.accBtn { width: 100%; text-align: left; padding: 20px; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.accYear { font-family: var(--display); font-weight: 800; font-size: 20px; }
.accCount { font-weight: 600; font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: rgba(128, 128, 128, 0.1); }
.accPanel { display: none; padding: 0 20px 20px; animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.accItem[data-open="true"] .accPanel { display: block; }
.pubList { display: grid; gap: 12px; }
.pub { padding: 20px; border-radius: 12px; background: rgba(128, 128, 128, 0.03); border: 1px solid var(--border); transition: all var(--transition-bounce); }
.pub:hover { background: var(--card-hover); transform: translateX(10px); border-left: 4px solid var(--accent); }
.pubTitle { margin: 0 0 8px; font-weight: 700; font-size: 16px; line-height: 1.4; }
.pubMeta { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pubActions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Contact Section */
.contactGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contactCard { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); transition: all var(--transition-bounce); text-align: center; }
.contactCard:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-hover); border-color: var(--accent); background: var(--card-hover); }
.contactCardButton { width: 100%; font: inherit; color: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; }
.contactLabel { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.contactValue { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--accent); }

/* Footer */
.footer { padding: 40px 24px; max-width: 1200px; margin: 0 auto; color: var(--muted); text-align: center; border-top: 1px solid var(--border); }
.footerLine { margin: 0; font-weight: 500; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }

.sep {
  opacity: 0.45;
}

/* Responsive */
@media (max-width: 992px) {
  .heroGrid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .ctaRow { justify-content: center; }
  .metaRow { justify-content: center; }
  .heroVisual { order: -1; margin-bottom: 20px; }
  .twoCol { grid-template-columns: 1fr; }
  .contactGrid { grid-template-columns: 1fr 1fr; }
  .modalCard { padding: 18px; }
}

@media (max-width: 940px) {
  .pubHead {
    flex-direction: column;
  }
  .chartWrap.chartCompact {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 70px; right: 24px; left: 24px; padding: 20px; border-radius: var(--radius2); background: var(--nav-bg); backdrop-filter: blur(20px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; gap: 12px; }
  .nav[data-open="true"] { display: flex; animation: slideDown 0.3s ease-out; }
  .navToggle { display: flex; align-items: center; justify-content: center; flex-direction: column; background: transparent; border: none; }
  .contactGrid { grid-template-columns: 1fr; }
  .title { font-size: 40px; }
  .heroCardInner { flex-direction: column; gap: 20px; }
  .modalActions { flex-direction: column-reverse; }
  .modalActions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
