:root {
  --bg: #fafaf9;
  --bg-alt: #f0f2ed;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #5a5f66;
  --text-muted: #8e9399;
  --primary: #0f3b2a;
  --on-primary: #ffffff;
  --primary-rgb: 15, 59, 42;
  --primary-light: #1a6b4a;
  --accent: #2d8f6c;
  --accent-rgb: 45, 143, 108;
  --accent-gold: #b8944a;
  --accent-gold-rgb: 184, 148, 74;
  --border: #e4e6e0;
  --border-light: #eef0eb;
  --shadow: 0 1px 2px rgba(9, 48, 33, 0.04), 0 10px 30px rgba(9, 48, 33, 0.055);
  --shadow-hover: 0 4px 12px rgba(9, 48, 33, 0.06), 0 20px 52px rgba(9, 48, 33, 0.09);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --transition: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-width: 1120px;
}

[data-theme="dark"] {
  --bg: #111714;
  --bg-alt: #161f1a;
  --bg-card: #1a241f;
  --text: #e6eae7;
  --text-secondary: #a3b0a8;
  --text-muted: #6d7d73;
  --primary: #6fcf97;
  --on-primary: #0f241a;
  --primary-rgb: 111, 207, 151;
  --primary-light: #5bbf89;
  --accent: #4ec489;
  --accent-rgb: 78, 196, 137;
  --accent-gold: #d4a854;
  --accent-gold-rgb: 212, 168, 84;
  --border: #2a3830;
  --border-light: #1f2b25;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.4), 0 12px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .header,
[data-theme="dark"] .header--scrolled {
  background: rgba(17, 23, 20, 0.9);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: bodyFade 600ms ease;
}

@keyframes bodyFade { from { opacity: 0; } to { opacity: 1; } }

::selection { background: rgba(var(--accent-rgb), 0.2); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select { font: inherit; color: inherit; }
ul { list-style: none; }

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* ============ Progress Bar ============ */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  z-index: 200;
  width: 0;
  transition: width 50ms linear;
  will-change: width;
}

/* ============ Theme Toggle ============ */

.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  transform: scale(1.1);
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
}

/* ============ Chat Assistant ============ */

.chat-bubble {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 150;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
  transition: all var(--transition);
  border: none;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(var(--accent-rgb), 0.5);
}

.chat-bubble svg {
  width: 22px;
  height: 22px;
}

.chat-bubble--active {
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.chat-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 149;
  width: 340px;
  max-height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: all var(--transition-slow);
  overflow: hidden;
}

.chat-panel--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.chat-panel__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.chat-panel__close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}

.chat-panel__close:hover {
  background: rgba(0,0,0,0.06);
  color: var(--text);
}

.chat-panel__messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 320px;
  min-height: 180px;
}

.chat-msg {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 85%;
  animation: chatFade 300ms ease;
}

@keyframes chatFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg--bot {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-panel__input-wrap {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.chat-panel__input-wrap input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

.chat-panel__input-wrap input:focus {
  border-color: var(--accent);
}

.chat-panel__input-wrap button {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-panel__input-wrap button:hover {
  background: var(--primary-light);
}

.chat-panel__input-wrap button svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 480px) {
  .chat-panel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 76px;
  }
  .chat-bubble {
    right: 10px;
    bottom: 76px;
  }
}

/* ============ Canvas Bio Background ============ */

#bio-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============ DNA Helix Decorative SVG ============ */

.dna-decoration {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 500px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.dna-decoration svg {
  width: 100%;
  height: 100%;
}

/* ============ Header ============ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 250, 249, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header__logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.header__logo-mark--icon svg {
  width: 20px;
  height: 20px;
  animation: pulseDna 4s ease-in-out infinite;
}

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

.header__logo-text {
  display: grid;
  line-height: 1.2;
}

.header__logo-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.header__logo-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.header__link {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}

.header__link:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}

.header__link--active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.055);
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 4px;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
}

.header__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
  background-color: #f5f8f4;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.025) 1px, transparent 1px),
    radial-gradient(circle at 72% 34%, rgba(var(--accent-rgb), 0.1), transparent 34%),
    linear-gradient(135deg, #fbfcfa 0%, #f1f6f1 55%, #eaf1e9 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

[data-theme="dark"] .hero {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 34%, rgba(var(--accent-rgb), 0.11), transparent 34%),
    linear-gradient(135deg, #111714 0%, #152019 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.hero__image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.hero__image-wrap::before {
  content: '';
  position: absolute;
  top: 18px;
  width: 340px;
  height: 420px;
  transform: translateX(18px);
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero__image-frame {
  position: relative;
  width: 340px;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 65px rgba(var(--primary-rgb), 0.16);
  border: 4px solid var(--bg-card);
  isolation: isolate;
  z-index: 1;
}

.hero__image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__badge {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.065);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__content {
  position: relative;
  min-width: 0;
}

.hero__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.15rem;
  text-wrap: balance;
}

.hero__role {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.hero__role::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--accent-gold);
}

.hero__role span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.hero__desc {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 2rem;
  max-width: 590px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(var(--primary-rgb), 0.11);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .hero__stats {
  background: rgba(26, 36, 31, 0.72);
}

.hero__stat {
  min-width: 0;
  padding: 0 1rem;
  border-right: 1px solid rgba(var(--primary-rgb), 0.1);
}

.hero__stat:first-child { padding-left: 0; }
.hero__stat:last-child { padding-right: 0; border-right: 0; }

.hero__stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.hero__stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  background: #0d4f35;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.25);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.6);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
  transform: translateY(-1px);
}

.btn-text {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  background: none;
  transition: color var(--transition);
}

.btn-text:hover { color: var(--primary); }

/* ============ Sections ============ */

.section {
  padding: 6rem 0;
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
  position: relative;
}

.section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.15;
}

.section--last {
  padding-bottom: 5rem;
}

.section__header {
  margin-bottom: 3rem;
  max-width: none;
  position: relative;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.section__number {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.section__number::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  opacity: 0.5;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* ============ Research Grid ============ */

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.research-card {
  padding: 2rem 2rem 1.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.research-card__number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-gold);
  opacity: 0.72;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.research-card:hover {
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

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

.research-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}

.research-card:hover .research-card__icon {
  background: rgba(var(--accent-rgb), 0.15);
  border-radius: 14px;
  transform: scale(1.05);
}

.research-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  transition: transform var(--transition);
}

.research-card:hover .research-card__icon svg {
  transform: scale(1.1) rotate(-3deg);
}

.research-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.research-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.research-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.research-card__explore {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.research-card__explore span {
  color: var(--accent);
  transition: transform var(--transition);
}

.research-card:hover .research-card__explore span { transform: translateX(4px); }

.research-card__tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

/* ============ Publications ============ */

.pub-controls {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.pub-controls__row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.pub-controls__row input,
.pub-controls__row select {
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  font-size: 0.9rem;
}

.pub-controls__row input { flex: 1; min-width: 200px; }
.pub-controls__row select { min-width: 140px; cursor: pointer; }

.pub-controls__row input:focus,
.pub-controls__row select:focus {
  border-color: var(--accent);
}

.pub-controls__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.pub-list {
  display: grid;
  gap: 0.85rem;
}

.pub-card {
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pub-card__heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.pub-card__year {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.065);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.pub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.pub-card:hover {
  border-color: rgba(var(--accent-rgb), 0.15);
  box-shadow: var(--shadow-hover);
  transform: translateX(3px);
}

.pub-card:hover::before { opacity: 0.6; }

.pub-card__title {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  cursor: pointer;
  color: var(--primary);
  transition: color var(--transition);
}

.pub-card__title:hover { color: var(--accent); }

.pub-card__journal {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 0.65rem 68px;
  font-weight: 600;
  color: var(--accent);
}

.pub-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-left: 68px;
}

.pub-card__tag {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.pub-card__tag--auto {
  background: rgba(var(--accent-gold-rgb), 0.12);
  color: var(--accent-gold);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pub-card__citations {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pub-card__if {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.impact-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  align-items: stretch;
}

.impact-summary {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0f3b2a, #1a6b4a);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.impact-summary::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.035), 0 0 0 52px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.impact-summary > * { position: relative; z-index: 1; }

.impact-summary__eyebrow,
.impact-card__eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.impact-summary h3 {
  max-width: 240px;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.impact-summary p {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.65;
}

.impact-summary__source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
}

.impact-summary__source-row a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.impact-summary__source-row a:hover { color: #c7f3dc; }

.impact-summary__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.4rem 0 1.2rem;
}

.impact-metric {
  min-width: 0;
  padding: 0.75rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.impact-metric__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.impact-metric__label {
  display: block;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.impact-copy {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.78rem;
}

.impact-copy:hover {
  border-color: #fff;
  background: #fff;
  color: #0f3b2a;
}

.impact-copy-status {
  display: block;
  min-height: 1.2em;
  margin-top: 0.45rem;
  color: #bdebd3;
  font-size: 0.75rem;
}

.impact-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.impact-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.impact-card__header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--primary);
}

.impact-card__hint {
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.impact-list {
  display: grid;
  gap: 1rem;
}

.impact-row {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.impact-row:last-child { padding-bottom: 0; border-bottom: 0; }

.impact-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.impact-row__title {
  display: block;
  min-width: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.impact-row__title:hover { color: var(--accent); }

.impact-row__count {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.impact-row__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.08);
}

.impact-row__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
  transition: width 800ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.impact-row__meta {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.impact-list__empty,
.impact-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.impact-note {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-light);
  line-height: 1.55;
}

[data-theme="dark"] .impact-summary { background: linear-gradient(145deg, #123326, #1b6349); }

/* ============ Journey Board ============ */

.journey-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 2rem;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1.85rem;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.09), var(--bg-card) 62%);
  box-shadow: var(--shadow);
}

.journey-overview::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(var(--accent-rgb), 0.035), 0 0 0 56px rgba(var(--accent-rgb), 0.02);
  pointer-events: none;
}

.journey-overview__copy,
.journey-overview__steps { position: relative; z-index: 1; }

.journey-overview__copy { align-self: center; }

.journey-overview__eyebrow,
.journey-lane__eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.journey-overview h3 {
  max-width: 560px;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.journey-overview p {
  max-width: 570px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.journey-overview__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: center;
  gap: 0.6rem;
}

.journey-step {
  position: relative;
  min-width: 0;
  padding: 1rem 0.9rem;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: var(--radius-md);
  background: rgba(var(--bg-card), 0.75);
}

.journey-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -0.72rem;
  z-index: 2;
  color: var(--accent-gold);
  font-size: 1rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.journey-step__index {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.journey-step strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  line-height: 1.2;
}

.journey-step small {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.journey-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0 1rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.journey-controls__label {
  margin: 0 0.35rem 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-filter {
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--transition);
}

.journey-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.journey-filter.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.journey-count {
  margin-left: auto;
  padding: 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.journey-board {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: start;
  gap: 1.25rem;
}

.journey-board--single { grid-template-columns: 1fr; }

.journey-lane {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.journey-lane--education {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.08), var(--bg-card) 58%);
}

.journey-lane__header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.journey-lane__number {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
}

.journey-lane__eyebrow { margin-bottom: 0.2rem; font-size: 0.65rem; }
.journey-lane__title { color: var(--primary); font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.2; }
.journey-lane__cards { display: grid; gap: 0.8rem; }
.journey-lane__empty { padding: 1.25rem 0; color: var(--text-muted); font-size: 0.85rem; }

.journey-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.1rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: all var(--transition);
}

.journey-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.45;
  transition: opacity var(--transition);
}

.journey-card:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.journey-card:hover::before,
.journey-card--current::before { opacity: 1; }

.journey-card--current {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.09), var(--bg));
}

.journey-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.journey-card__index {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.journey-card__type {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey-card__title {
  margin-bottom: 0.3rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.25;
}

.journey-card__org {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.35;
}

.journey-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.journey-card__meta span {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.journey-card__desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
}

.journey-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.journey-card__badge {
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
}

.journey-card__badge--current {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

/* ============ Skills ============ */

.skills-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}

.proficiency-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.proficiency-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.proficiency-bars {
  display: grid;
  gap: 1rem;
}

.proficiency-row {
  display: grid;
  gap: 0.35rem;
}

.proficiency-row__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.proficiency-row__track {
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.06);
  overflow: hidden;
}

.proficiency-row__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  width: 0;
  transition: width 1s ease;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.skill-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  color: var(--accent);
  transition: transform var(--transition);
}

.skill-card:hover .skill-card__icon {
  transform: scale(1.15) rotate(-5deg);
}

.skill-card__icon svg {
  width: 100%;
  height: 100%;
}

.skill-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.skill-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.skill-card__list li {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============ Scholarly Grid ============ */

.scholarly-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.scholarly-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.scholarly-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(var(--accent-rgb), 0.1);
}

.scholarly-card--full {
  grid-column: 1 / -1;
}

.scholarly-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--border-light);
}

.scholarly-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.scholarly-item__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.scholarly-item__detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.scholarly-item__status {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scholarly-toggle {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}

.scholarly-toggle:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============ Project Cards ============ */

.project-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.project-card:last-child {
  border-bottom: none;
}

.project-card__icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.08);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}

.project-card:hover .project-card__icon-wrap {
  background: rgba(var(--accent-rgb), 0.15);
  transform: scale(1.08);
}

.project-card__icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.project-card__body {
  flex: 1;
  min-width: 0;
}

.project-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.project-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.2rem;
}

.project-card__status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.55rem;
  border-radius: 99px;
}

.project-card__status--finished {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.project-card__status--dev {
  background: rgba(234, 179, 8, 0.1);
  color: rgb(234, 179, 8);
}

.scholarly-item__status--finished {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.scholarly-item__status--progress {
  background: rgba(var(--accent-gold-rgb), 0.12);
  color: var(--accent-gold);
}

/* ============ Contact ============ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__links {
  display: grid;
  gap: 0.85rem;
}

.contact__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.contact__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transition: width var(--transition-slow);
}

.contact__link:hover {
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.contact__link:hover::after { width: 100%; }

.contact__link:hover .contact__link-icon {
  color: var(--accent);
  transform: scale(1.15) rotate(-3deg);
}

.contact__link-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.contact__link-icon svg {
  width: 100%;
  height: 100%;
}

.contact__link-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact__link-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* ============ Footer ============ */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary-light), var(--accent), transparent);
  opacity: 0.15;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer__tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer__top {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer__top:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.research-atlas {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.09), var(--bg-card) 65%);
  box-shadow: var(--shadow);
}

.research-atlas__eyebrow,
.publication-studio__eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.research-atlas h3,
.publication-studio__intro h3 {
  max-width: 650px;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.research-atlas p,
.publication-studio__intro p {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.research-atlas__stats,
.publication-studio__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.research-atlas__stat,
.publication-studio__stat {
  min-width: 0;
  padding: 0.75rem 0.6rem;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: var(--radius-md);
  background: rgba(var(--bg-card), 0.72);
  text-align: center;
}

.research-atlas__stat strong,
.publication-studio__stat strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1;
}

.research-atlas__stat span,
.publication-studio__stat span {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.research-atlas__thread {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.55rem;
  padding: 1.1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-md);
  background: rgba(var(--bg-card), 0.7);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-align: center;
}

.research-atlas__thread b { color: var(--accent-gold); font-family: var(--font-body); }

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.research-card {
  --research-accent: var(--accent);
  display: flex;
  min-width: 0;
  min-height: 300px;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition-slow);
}

.research-card--2 { --research-accent: #b8944a; }
.research-card--3 { --research-accent: #6a8fca; }
.research-card--4 { --research-accent: #b26c8a; }

.research-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--research-accent);
  opacity: 0.65;
}

.research-card:hover {
  border-color: color-mix(in srgb, var(--research-accent) 35%, var(--border));
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.research-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.research-card__number {
  color: var(--research-accent);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.research-card__signal {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--research-accent) 10%, transparent);
  color: var(--research-accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--research-accent) 10%, transparent);
  color: var(--research-accent);
}

.research-card__icon svg { width: 25px; height: 25px; }
.research-card__eyebrow { display: block; margin-bottom: 0.45rem; color: var(--text-muted); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.research-card__title { margin-bottom: 0.6rem; color: var(--primary); font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.2; }
.research-card__desc { margin-bottom: 1rem; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.65; }
.research-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.research-card__tag { padding: 0.25rem 0.55rem; border: 1px solid color-mix(in srgb, var(--research-accent) 22%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--research-accent) 7%, transparent); color: var(--research-accent); font-size: 0.68rem; font-weight: 700; }
.research-card__explore { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: auto; padding-top: 1.15rem; color: var(--primary); font-size: 0.78rem; font-weight: 800; }
.research-card__explore span { color: var(--research-accent); transition: transform var(--transition); }
.research-card:hover .research-card__explore span { transform: translateX(4px); }

.publication-studio__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 1.75rem;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), var(--bg-card) 65%);
  box-shadow: var(--shadow);
}

.publication-studio__stats { grid-template-columns: repeat(4, minmax(74px, 1fr)); min-width: 390px; margin-top: 0; }
.publication-studio__stat strong { font-size: 1.35rem; }
.publication-studio__stat span { font-size: 0.6rem; }

.pub-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.pub-controls__row { display: flex; flex: 1; flex-wrap: wrap; gap: 0.55rem; }
.pub-controls input,
.pub-controls select { min-height: 40px; min-width: 150px; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.8rem; }
.pub-controls input { flex: 1 1 260px; }
.pub-controls input:focus,
.pub-controls select:focus { border-color: var(--accent); outline: 2px solid rgba(var(--accent-rgb), 0.15); outline-offset: 1px; }
.pub-controls__info { display: flex; align-items: center; gap: 0.8rem; white-space: nowrap; }
.pub-controls__info span { color: var(--text-muted); font-size: 0.75rem; font-weight: 700; }

.pub-list { display: grid; gap: 0.85rem; }
.pub-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow); transition: all var(--transition); }
.pub-card:hover { border-color: rgba(var(--accent-rgb), 0.25); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pub-card--featured { border-color: rgba(var(--primary-rgb), 0.24); background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.07), var(--bg-card) 65%); }
.pub-card__rail { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; gap: 0.35rem; padding: 1.1rem 0.65rem; border-right: 1px solid var(--border-light); }
.pub-card__index { color: var(--accent-gold); font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; }
.pub-card__year { color: var(--primary); font-size: 0.72rem; font-weight: 800; writing-mode: vertical-rl; transform: rotate(180deg); }
.pub-card__rail-line { width: 1px; min-height: 24px; background: linear-gradient(var(--accent), transparent); opacity: 0.45; }
.pub-card__body { min-width: 0; padding: 1.1rem 1.25rem; }
.pub-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.55rem; }
.pub-card__journal { min-width: 0; overflow: hidden; color: var(--accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pub-card__if { flex-shrink: 0; padding: 0.25rem 0.55rem; border-radius: 999px; background: rgba(var(--primary-rgb), 0.08); color: var(--primary); font-size: 0.65rem; font-weight: 800; white-space: nowrap; }
.pub-card__title { display: block; width: 100%; margin-bottom: 0.75rem; color: var(--primary); font-family: var(--font-heading); font-size: 1.12rem; font-weight: 700; line-height: 1.35; text-align: left; }
.pub-card__title:hover { color: var(--accent); }
.pub-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.9rem; }
.pub-card__tag { padding: 0.22rem 0.52rem; border-radius: 999px; background: rgba(var(--accent-rgb), 0.08); color: var(--accent); font-size: 0.68rem; font-weight: 700; }
.pub-card__tag--auto { background: rgba(var(--accent-gold-rgb), 0.12); color: var(--accent-gold); text-transform: uppercase; }
.pub-card__metrics { display: flex; align-items: center; gap: 0.8rem; }
.pub-card__citations { flex-shrink: 0; color: var(--text-muted); font-size: 0.72rem; font-weight: 700; }
.pub-card__bar { display: block; flex: 1; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(var(--primary-rgb), 0.07); }
.pub-card__bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-gold)); }
.pub-empty { padding: 2rem; color: var(--text-muted); text-align: center; }

.skills-atlas {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.skills-atlas__intro,
.skills-atlas__signal {
  min-width: 0;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.skills-atlas__intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.12), var(--bg-card) 65%);
}

.skills-atlas__intro::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(var(--accent-rgb), 0.04), 0 0 0 52px rgba(var(--accent-rgb), 0.025);
  pointer-events: none;
}

.skills-atlas__intro > *,
.skills-atlas__signal > * { position: relative; z-index: 1; }

.skills-atlas__eyebrow,
.scholarly-studio__eyebrow,
.scholarly-panel__eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.skills-atlas h3,
.skills-atlas__signal h3 {
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.18;
}

.skills-atlas__intro p {
  max-width: 470px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.skills-atlas__stats,
.scholarly-studio__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.skills-atlas__stat,
.scholarly-studio__stat {
  min-width: 0;
  padding: 0.75rem 0.6rem;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: var(--radius-md);
  background: rgba(var(--bg-card), 0.72);
  text-align: center;
}

.skills-atlas__stat strong,
.scholarly-studio__stat strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1;
}

.skills-atlas__stat span,
.scholarly-studio__stat span {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skills-atlas__signal {
  background: var(--bg-card);
}

.skills-atlas__signal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.skills-atlas__signal-head h3 { margin-bottom: 0; font-size: 1.35rem; }

.skills-atlas__signal-note {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.proficiency-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
}

.proficiency-row:last-child { border-bottom: 0; padding-bottom: 0; }

.proficiency-row__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.proficiency-row__header strong {
  color: var(--accent);
  font-size: 0.82rem;
}

.proficiency-row__track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.07);
}

.proficiency-row__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.22);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.skill-card:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.skill-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.skill-card__index,
.project-card__index,
.scholarly-panel__number,
.scholarly-entry__index {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.skill-card__count {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skill-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  place-items: center;
  border-radius: 13px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.skill-card__icon svg { width: 23px; height: 23px; }
.skill-card__title { margin-bottom: 0.8rem; color: var(--primary); font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.2; }

.skill-card__list {
  display: grid;
  gap: 0.42rem;
  margin-bottom: 1rem;
}

.skill-card__list li {
  display: flex;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.35;
}

.skill-card__list li::before {
  content: '•';
  color: var(--accent);
  font-weight: 800;
}

.skill-card__footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.scholarly-studio__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), var(--bg-card) 65%);
  box-shadow: var(--shadow);
}

.scholarly-studio__intro h3 {
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.scholarly-studio__intro p {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.scholarly-studio__stats {
  grid-template-columns: repeat(5, minmax(62px, 1fr));
  min-width: 370px;
  margin-top: 0;
}

.scholarly-studio__stat { padding: 0.8rem 0.55rem; }
.scholarly-studio__stat strong { font-size: 1.35rem; }
.scholarly-studio__stat span { font-size: 0.6rem; }

.scholarly-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.scholarly-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all var(--transition);
}

.scholarly-index a span { color: var(--accent-gold); font-family: var(--font-heading); }
.scholarly-index a:hover { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); transform: translateY(-1px); }

.scholarly-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 1.25rem;
}

.scholarly-layout__column { display: grid; align-content: start; gap: 1.25rem; min-width: 0; }

.scholarly-panel,
.scholarly-projects {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.scholarly-panel--patent { background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.07), var(--bg-card) 65%); }
.scholarly-panel--chapters { background: linear-gradient(145deg, rgba(var(--accent-gold-rgb), 0.08), var(--bg-card) 65%); }

.scholarly-panel__head,
.scholarly-projects__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.scholarly-panel__number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.85rem;
}

.scholarly-panel__eyebrow { margin-bottom: 0.2rem; font-size: 0.63rem; }
.scholarly-panel h3,
.scholarly-projects h3 { color: var(--primary); font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.2; }

.scholarly-panel__count,
.scholarly-panel__status {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scholarly-list { display: grid; }

.scholarly-entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.scholarly-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.scholarly-entry__rail { display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 0.4rem; }
.scholarly-entry__index { font-size: 0.82rem; }
.scholarly-entry__line { width: 1px; min-height: 100%; background: linear-gradient(var(--accent), transparent); opacity: 0.35; }
.scholarly-entry__body { min-width: 0; }
.scholarly-entry__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.scholarly-entry__title { color: var(--primary); font-family: var(--font-heading); font-size: 1rem; line-height: 1.3; }
.scholarly-entry__meta { margin-top: 0.3rem; color: var(--accent); font-size: 0.72rem; font-weight: 700; line-height: 1.4; }
.scholarly-entry__desc { margin-top: 0.45rem; color: var(--text-secondary); font-size: 0.8rem; line-height: 1.6; }

.scholarly-entry__status {
  flex-shrink: 0;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scholarly-entry__status--finished { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.scholarly-entry__status--progress { background: rgba(var(--accent-gold-rgb), 0.12); color: var(--accent-gold); }

.patent-card { display: grid; gap: 0.85rem; }
.patent-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.patent-card__label { padding: 0.3rem 0.6rem; border-radius: 999px; background: rgba(var(--primary-rgb), 0.09); color: var(--primary); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.patent-card__icon { width: 28px; height: 28px; color: var(--accent); }
.patent-card__icon svg { width: 100%; height: 100%; }
.patent-card__title { color: var(--primary); font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.3; }
.patent-card__desc { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.65; }
.patent-card__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; padding-top: 0.8rem; border-top: 1px solid var(--border-light); }
.patent-card__meta div { display: grid; gap: 0.2rem; }
.patent-card__meta span { color: var(--text-muted); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.patent-card__meta strong { color: var(--text-secondary); font-size: 0.72rem; line-height: 1.4; }

.scholarly-accordion__list { display: grid; gap: 0.55rem; }
.scholarly-entry--chapter,
.scholarly-entry--conference { display: block; padding: 0; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: rgba(var(--bg), 0.5); overflow: hidden; }
.scholarly-entry--chapter[open],
.scholarly-entry--conference[open] { border-color: rgba(var(--accent-rgb), 0.28); background: rgba(var(--accent-rgb), 0.035); }
.scholarly-entry__summary { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.9rem 1rem; cursor: pointer; list-style: none; }
.scholarly-entry__summary::-webkit-details-marker { display: none; }
.scholarly-entry__summary::after { content: '+'; flex: 0 0 auto; color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.scholarly-entry[open] .scholarly-entry__summary::after { content: '−'; }
.scholarly-entry__summary-main { display: flex; align-items: flex-start; gap: 0.65rem; min-width: 0; }
.scholarly-entry__year { flex: 0 0 auto; padding: 0.22rem 0.45rem; border-radius: 999px; background: rgba(var(--primary-rgb), 0.08); color: var(--primary); font-size: 0.64rem; font-weight: 800; }
.scholarly-entry__summary-title { min-width: 0; color: var(--primary); font-family: var(--font-heading); font-size: 0.9rem; line-height: 1.35; }
.scholarly-entry__details { display: grid; gap: 0.35rem; padding: 0 1rem 1rem 3rem; color: var(--text-secondary); font-size: 0.75rem; line-height: 1.5; }
.scholarly-entry__details p:last-child { color: var(--text-muted); }
.scholarly-entry__link { display: inline-flex; margin-top: 0.2rem; color: var(--accent); font-size: 0.72rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.scholarly-entry__link:hover { color: var(--primary); }

.scholarly-projects { margin-top: 1.25rem; background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.08), var(--bg-card) 62%); }
.scholarly-projects__head { grid-template-columns: minmax(0, 1fr) auto; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.project-card { display: flex; min-width: 0; flex-direction: column; align-items: stretch; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); text-align: left; transition: all var(--transition); }
.project-card:hover { border-color: rgba(var(--accent-rgb), 0.3); box-shadow: var(--shadow); transform: translateY(-2px); }
.project-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.85rem; }
.project-card__index { font-size: 0.85rem; }
.project-card__status { padding: 0.2rem 0.45rem; border-radius: 999px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.project-card__status--finished { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.project-card__status--dev { background: rgba(var(--accent-gold-rgb), 0.12); color: var(--accent-gold); }
.project-card__icon-wrap { display: grid; width: 38px; height: 38px; margin-bottom: 0.8rem; place-items: center; border-radius: 11px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.project-card__icon-wrap svg { width: 20px; height: 20px; }
.project-card__title { margin-bottom: 0.45rem; color: var(--primary); font-family: var(--font-heading); font-size: 0.98rem; line-height: 1.3; }
.project-card__desc { color: var(--text-secondary); font-size: 0.78rem; line-height: 1.55; }



.dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}

.dialog::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.dialog__shell { padding: 2rem; }

.dialog__close {
  float: right;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.dialog__close:hover {
  background: var(--border);
  color: var(--text);
}

.dialog__journal {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dialog__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-right: 3rem;
}

.dialog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.dialog__meta span {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text-secondary);
}

.dialog__body {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.dialog__body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.dialog__body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.dialog__actions {
  display: flex;
  gap: 0.75rem;
}

/* ============ Scroll Animations ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* ============ Responsive ============ */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
  }
  .hero__image-frame { width: 260px; height: 330px; }
  .hero__image-wrap::before { width: 260px; height: 330px; }
  .skills-layout { grid-template-columns: 1fr; }
  .impact-layout { grid-template-columns: 1fr; }
  .journey-overview,
  .journey-board { grid-template-columns: 1fr; }
  .dna-decoration { display: none; }
}

@media (max-width: 768px) {
  .container { width: min(100% - 32px, var(--max-width)); }

  .header__nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-hover);
    display: none;
  }
  .header__nav--open { display: flex; }
  .header__toggle { display: flex; }
  .header__link { padding: 0.75rem 1rem; width: 100%; border-radius: var(--radius-sm); }

  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; text-align: center; }
  .hero__grid > * { min-width: 0; }
  .hero__image-wrap { align-items: center; }
  .hero__image-frame { width: 220px; height: 280px; }
  .hero__image-wrap::before { width: 220px; height: 280px; top: 12px; transform: translateX(12px); }
  .hero__content { width: 100%; overflow: hidden; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 430px); margin-inline: auto; }
  .hero__stat { padding: 0.8rem; border-right: 0; border-bottom: 1px solid rgba(var(--primary-rgb), 0.1); }
  .hero__stat:nth-child(odd) { border-right: 1px solid rgba(var(--primary-rgb), 0.1); }
  .hero__stat:nth-child(n+3) { border-bottom: 0; }
  .hero__stat:first-child, .hero__stat:last-child { padding: 0.8rem; }
  .hero__actions { justify-content: center; }
  .hero__desc { max-width: 100%; }
  .hero__label { text-align: center; width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .hero__role { justify-content: center; flex-wrap: wrap; width: 100%; }
  .hero__role span { flex: 0 0 100%; width: 100%; }
  .hero__name { width: 100%; max-width: 100%; text-align: center; font-size: clamp(2.35rem, 8.5vw, 3rem); overflow-wrap: anywhere; }
  .hero__desc { width: 100%; overflow-wrap: anywhere; }
  .hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 430px); margin-inline: auto; }
  .hero__actions .btn { width: 100%; }

  .section { padding: 4rem 0; }
  .section__header { max-width: 100%; }

  .research-grid { grid-template-columns: 1fr; gap: 1rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .scholarly-grid { grid-template-columns: 1fr; }

  .journey-overview,
  .journey-board { grid-template-columns: 1fr; }
  .journey-overview { padding: 1.35rem; }
  .journey-overview__steps { gap: 0.45rem; }
  .journey-step { padding: 0.8rem 0.7rem; }
  .journey-step:not(:last-child)::after { right: -0.58rem; }
  .journey-controls { align-items: flex-start; }
  .journey-count { width: 100%; margin-left: 0; padding: 0.25rem 0.25rem 0; }

  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }

  .contact__link { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .contact__link-value { overflow-wrap: anywhere; }

  .pub-controls__row { flex-direction: column; }
  .pub-controls__row input { min-width: 0; }
  .pub-controls__row select { min-width: 0; }

  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 600px) {
  .hero__content {
    width: min(100%, 390px);
    margin-inline: auto;
  }
  .hero__label,
  .hero__role,
  .hero__name { max-width: 390px; margin-inline: auto; }
  .hero__desc,
  .hero__stats,
  .hero__actions { width: min(100%, 360px); margin-inline: auto; }
  .hero__desc { margin-bottom: 1.6rem; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 20px, var(--max-width)); }
  .section { padding: 3rem 0; }
  .header__logo-name { font-size: 0.8rem; }
  .header__logo-role { font-size: 0.63rem; }
  .hero { padding-top: 5.5rem; }
  .hero__image-frame { width: min(74vw, 240px); height: min(94vw, 305px); }
  .hero__image-wrap::before { width: min(74vw, 240px); height: min(94vw, 305px); }
  .hero__badge { font-size: 0.68rem; padding: 0.28rem 0.62rem; }
  .hero__label { font-size: 0.68rem; letter-spacing: 0.075em; line-height: 1.65; }
  .hero__role { gap: 0.45rem; font-size: 0.78rem; }
  .hero__role::before { display: none; }
  .hero__role span { width: 100%; font-size: 0.7rem; }
  .hero__name { font-size: clamp(2.45rem, 12vw, 3.25rem); }
  .hero__desc { font-size: 0.94rem; line-height: 1.65; }
  .hero__stats { padding: 0; overflow: hidden; }
  .hero__stat-value { font-size: 1.65rem; }
  .hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .hero__actions .btn { width: 100%; padding-inline: 0.7rem; }
  .section__header { margin-bottom: 2rem; }
  .research-card { padding: 1.5rem 1.35rem 1.25rem; }
  .pub-card { padding: 1.2rem; }
  .pub-card__heading { grid-template-columns: 44px minmax(0, 1fr); gap: 0.75rem; }
  .pub-card__journal, .pub-card__meta { margin-left: 56px; }
  .pub-card__title { font-size: 1rem; }
  .impact-summary, .impact-card { padding: 1.25rem; }
  .impact-summary h3 { font-size: 1.4rem; }
  .impact-summary__source-row { align-items: flex-start; flex-direction: column; }
  .impact-summary__metrics { gap: 0.35rem; }
  .impact-metric { padding: 0.65rem 0.35rem; }
  .impact-metric__value { font-size: 1.35rem; }
  .impact-card__header { flex-direction: column; gap: 0.65rem; }
  .impact-row__top { gap: 0.5rem; }
  .impact-row__title { font-size: 0.9rem; }
  .journey-overview__steps { grid-template-columns: 1fr; }
  .journey-step { padding: 0.85rem 1rem; }
  .journey-step:not(:last-child)::after { top: auto; right: 50%; bottom: -0.82rem; transform: translateX(50%); content: '↓'; }
  .journey-filter { flex: 1 1 calc(50% - 0.45rem); text-align: center; }
  .journey-lane { padding: 1rem; }
  .journey-card { padding: 1rem; }
  .journey-card__title { font-size: 1rem; }
  .journey-card__meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1200px) {
  .research-atlas,
  .publication-studio__intro { grid-template-columns: 1fr; }
  .publication-studio__stats { min-width: 0; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scholarly-studio__intro { grid-template-columns: 1fr; }
  .scholarly-studio__stats { min-width: 0; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .research-grid { grid-template-columns: 1fr; }
  .publication-studio__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-controls { align-items: stretch; flex-direction: column; }
  .pub-controls__row { flex-direction: column; }
  .pub-controls input,
  .pub-controls select { width: 100%; min-width: 0; }
  .pub-controls input { flex: 0 0 40px; height: 40px; }
  .pub-controls select { flex: 0 0 40px; height: 40px; }
  .pub-controls__info { justify-content: space-between; }
  .pub-card { grid-template-columns: 64px minmax(0, 1fr); }
  .skills-atlas,
  .scholarly-layout { grid-template-columns: 1fr; }
  .skills-grid,
  .project-grid { grid-template-columns: 1fr; }
  .scholarly-studio__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scholarly-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scholarly-index a { justify-content: center; }
}

@media (max-width: 480px) {
  .research-atlas,
  .publication-studio__intro { padding: 1rem; }
  .research-atlas__stats,
  .publication-studio__stats { gap: 0.35rem; }
  .research-atlas__stat,
  .publication-studio__stat { padding: 0.65rem 0.35rem; }
  .research-card { min-height: 0; padding: 1.25rem; }
  .pub-card { grid-template-columns: 1fr; }
  .pub-card__rail { display: flex; align-items: center; justify-content: flex-start; gap: 0.6rem; padding: 0.65rem 0.8rem; border-right: 0; border-bottom: 1px solid var(--border-light); }
  .pub-card__year { writing-mode: horizontal-tb; transform: none; }
  .pub-card__rail-line { width: 24px; min-height: 1px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
  .pub-card__body { padding: 1rem; }
  .pub-card__top { align-items: flex-start; flex-direction: column; }
  .pub-card__journal { white-space: normal; }
  .skills-atlas__intro,
  .skills-atlas__signal,
  .scholarly-studio__intro,
  .scholarly-panel,
  .scholarly-projects { padding: 1rem; }
  .skills-atlas__stats { gap: 0.35rem; }
  .skills-atlas__stat { padding: 0.65rem 0.35rem; }
  .skills-atlas__stat strong { font-size: 1.25rem; }
  .proficiency-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .scholarly-studio__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scholarly-index { grid-template-columns: 1fr; }
  .scholarly-panel__head { grid-template-columns: auto minmax(0, 1fr); }
  .scholarly-panel__count,
  .scholarly-panel__status { grid-column: 2; justify-self: start; }
  .scholarly-entry__summary { align-items: flex-start; }
  .scholarly-entry__details { padding-left: 1rem; }
  .patent-card__meta { grid-template-columns: 1fr; }
}

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