/* ==========================================================================
   Dr. Hossain Sohrawardy — V3 Flagship Editorial Portfolio Stylesheet
   Light Mode: Warm Ivory (#FAF9F5) + Deep Forest Emerald (#0F3D2E) + Antique Gold (#A67C2E)
   Dark Mode: Obsidian Ink (#0B0F0D) + Warm Ivory Typography (#F4F1EA) + Champagne Gold (#D4AF6A)
   Responsive across 320px phones, tablets, laptops & 4K monitors
   ========================================================================== */

:root {
  --bg: #faf9f5;
  --bg-elevated: rgba(250, 249, 245, 0.9);
  --surface: #ffffff;
  --surface-alt: #f1efe8;
  --surface-tint: #e6ebe6;
  --text: #151c18;
  --text-strong: #0e1411;
  --text-muted: #4b5850;
  --text-light: #6e7b73;
  --primary: #0f3d2e;
  --primary-hover: #0a2b20;
  --primary-soft: rgba(15, 61, 46, 0.08);
  --gold: #a67c2e;
  --gold-soft: rgba(166, 124, 46, 0.14);
  --accent: #0f3d2e;
  --gold-bg: #fbf3df;
  --gold-text: #855c14;
  --teal-bg: #e0f2ef;
  --teal-text: #0f4c45;
  --blue-bg: #e5eefb;
  --blue-text: #1e40af;
  --emerald-bg: #e2f2e9;
  --emerald-text: #0f4d36;
  --border: #e2dfd5;
  --border-strong: #cbc6b8;
  --hero-bg: #0b261c;
  --hero-bg-end: #071912;
  --hero-text: #f6f4ee;
  --hero-muted: #c2cec6;
  --hero-gold: #d4af6a;
  --shadow-sm: 0 2px 8px rgba(14, 24, 18, 0.04);
  --shadow-md: 0 12px 32px rgba(14, 24, 18, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 18, 13, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1160px;
}

[data-theme="dark"] {
  --bg: #0b0f0d;
  --bg-elevated: rgba(11, 15, 13, 0.92);
  --surface: #131a17;
  --surface-alt: #18211d;
  --surface-tint: #202c26;
  --text: #e7e4dc;
  --text-strong: #f6f4ee;
  --text-muted: #a6b2aa;
  --text-light: #7c8b82;
  --primary: #d4af6a;
  --primary-hover: #e5c687;
  --primary-soft: rgba(212, 175, 106, 0.12);
  --gold: #d4af6a;
  --gold-soft: rgba(212, 175, 106, 0.16);
  --accent: #d4af6a;
  --gold-bg: rgba(212, 175, 106, 0.16);
  --gold-text: #e9cb8e;
  --teal-bg: rgba(45, 212, 191, 0.14);
  --teal-text: #8be4d6;
  --blue-bg: rgba(96, 165, 250, 0.16);
  --blue-text: #b3d4fc;
  --emerald-bg: rgba(16, 185, 129, 0.15);
  --emerald-text: #9ee5c7;
  --border: #232e28;
  --border-strong: #32423a;
  --hero-bg: #0d1914;
  --hero-bg-end: #070d0a;
  --hero-text: #f6f4ee;
  --hero-muted: #b3c0b8;
  --hero-gold: #d4af6a;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, strong {
  color: var(--text-strong);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.22;
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

/* ==========================================================================
   Scroll Progress Bar & Back To Top
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  z-index: 999;
  transition: width 0.08s linear;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="dark"] .back-to-top:hover {
  color: #0b0f0d;
}

/* ==========================================================================
   Header, Navigation & Mobile Slide-Over Drawer
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--hero-bg);
  border: 1px solid var(--gold);
  color: var(--hero-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-strong);
  background: var(--primary-soft);
}

.nav-links a.active {
  color: #ffffff;
  background: var(--primary);
}

[data-theme="dark"] .nav-links a.active {
  color: #0b0f0d;
  font-weight: 600;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-strong);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Slide-Over Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 8, 0.62);
  backdrop-filter: blur(5px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 210;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-strong);
  min-height: 46px;
}

.drawer-links a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.drawer-links a.active {
  background: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .drawer-links a.active {
  color: #0b0f0d;
  font-weight: 600;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  min-height: 42px;
  font-family: var(--font-sans);
}

.btn svg {
  flex-shrink: 0;
}

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

[data-theme="dark"] .btn-primary {
  color: #0b0f0d;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-primary:hover {
  color: #0b0f0d;
}

.btn-gold {
  background: var(--hero-gold);
  color: #0b1610;
}

.btn-gold:hover {
  background: #e3c280;
  color: #0b1610;
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--hero-text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: var(--hero-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface-alt);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.84rem;
  min-height: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-green {
  background: var(--surface-tint);
  color: var(--text-strong);
}

[data-theme="dark"] .badge-green {
  color: var(--gold);
}

.badge-q1 {
  background: var(--gold-bg);
  color: var(--gold-text);
}

.badge-q2 {
  background: var(--teal-bg);
  color: var(--teal-text);
}

.badge-status {
  background: var(--blue-bg);
  color: var(--blue-text);
}

.badge-open {
  background: var(--emerald-bg);
  color: var(--emerald-text);
}

.badge-neutral {
  background: var(--surface-alt);
  color: var(--text-muted);
}

/* ==========================================================================
   Full-Bleed Dark Emerald Editorial Hero Banner
   ========================================================================== */

.hero-banner {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(212, 175, 106, 0.14) 0%, transparent 45%),
    linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg-end) 100%);
  color: var(--hero-text);
  padding: clamp(44px, 6vw, 84px) 0 clamp(36px, 5vw, 60px);
  border-bottom: 1px solid rgba(212, 175, 106, 0.22);
}

.hero-bg-visual {
  position: absolute;
  inset: 0;
  background-image: url("../img/visual-wheat-blast.svg");
  background-size: cover;
  background-position: center right;
  opacity: 0.22;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 320px;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.14);
  border: 1px solid rgba(212, 175, 106, 0.35);
  color: var(--hero-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hero-gold);
}

.hero-banner .hero-title {
  font-size: clamp(2.15rem, 4.8vw, 3.45rem);
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-banner .hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 600;
  color: var(--hero-gold);
  margin: 0 0 6px;
}

.hero-banner .hero-org {
  font-size: 0.96rem;
  color: var(--hero-muted);
  margin: 0 0 20px;
}

.hero-banner .hero-summary {
  margin: 0 0 28px;
  color: #dde6e0;
  font-size: 1.03rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Editorial Portrait Card */
.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(212, 175, 106, 0.32);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.portrait-img-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #e9efe9;
}

.portrait-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.02);
}

.portrait-caption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--hero-muted);
}

.portrait-caption strong {
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
}

/* Frosted Emerald Glass Stat Cards inside Hero */
.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(30px, 4.5vw, 44px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: 14px;
}

.hero-metric-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(212, 175, 106, 0.24);
  backdrop-filter: blur(8px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.hero-metric-item:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 106, 0.62);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.04));
}

.metric-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.metric-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(212, 175, 106, 0.14);
  border: 1px solid rgba(212, 175, 106, 0.28);
  color: var(--hero-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-micro-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(212, 175, 106, 0.12);
  color: var(--hero-gold);
}

.metric-value {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #f6f4ee;
  line-height: 1.15;
}

.metric-label {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--hero-muted);
}

/* Authority Logo Marquee Strip */
.authority-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 22px;
  overflow: hidden;
}

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

.authority-hint {
  font-size: 0.74rem;
  color: var(--text-light);
}

.authority-marquee-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

@keyframes authorityMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.authority-marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: authorityMarquee 30s linear infinite;
}

.authority-marquee-wrap:hover .authority-marquee-track {
  animation-play-state: paused;
}

.authority-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 15px 9px 10px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.authority-pill:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.authority-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent, var(--primary));
  background: color-mix(in srgb, var(--brand-accent, var(--primary)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-accent, var(--primary)) 28%, transparent);
  flex-shrink: 0;
}

[data-theme="dark"] .authority-logo-mark {
  color: #e4c485;
  background: rgba(212, 175, 106, 0.12);
  border-color: rgba(212, 175, 106, 0.28);
}

.authority-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.authority-pill-name {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
}

.authority-pill-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .authority-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .authority-marquee-wrap {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.authority-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
}

.authority-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  flex: 1;
  justify-content: flex-end;
}

.authority-item {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Page Headers & Editorial Sections
   ========================================================================== */

.page-header {
  padding: clamp(38px, 5vw, 58px) 0 30px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-alt) 0%, transparent 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 10px;
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 70ch;
}

.section {
  padding: clamp(46px, 6vw, 76px) 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head,
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2,
.section-header h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  margin-bottom: 6px;
}

.section-head p,
.section-header p,
.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Asymmetric Overview Split (Borderless Editorial) */
.overview-split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  line-height: 1.38;
  color: var(--text-strong);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 0;
}

.overview-bio {
  font-size: 1.03rem;
  color: var(--text-muted);
  margin: 0;
}

/* Open Hairline Grid for Research Focus (No Boxy Card Fatigue) */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.editorial-item {
  border-top: 2px solid var(--border-strong);
  padding-top: 20px;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.editorial-item:hover {
  border-top-color: var(--gold);
  transform: translateY(-2px);
}

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

.card-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface-tint);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.editorial-item h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.editorial-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Grids & Visual Cards (Featured Projects & Blog) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.visual-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.visual-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hero-bg);
}

.visual-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.visual-card:hover .visual-card-media img {
  transform: scale(1.04);
}

.visual-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  flex: 1;
}

/* ==========================================================================
   Publications List, Breakdown Bar & Filters
   ========================================================================== */

.pub-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.pub-stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pub-stat-pill strong {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-strong);
}

.pub-stat-pill span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.filter-tab {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 36px;
  font-family: var(--font-sans);
  transition: all 0.18s ease;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .filter-tab.active {
  color: #0b0f0d;
}

.search-input {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text);
}

.search-input:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pub-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary);
}

.pub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.pub-title {
  font-family: var(--font-serif);
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  font-weight: 600;
  color: var(--text-strong);
  margin: 0 0 6px;
}

.pub-authors {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.pub-authors .author-self {
  color: var(--text-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.pub-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.pub-meta strong {
  color: var(--text-strong);
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ==========================================================================
   Publications Page — Editorial Hero, Visual Analytics, Spotlight & Year Rail
   ========================================================================== */

.pub-hero {
  padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 5vw, 52px);
}

.pub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.pub-hero-content .hero-summary {
  max-width: 68ch;
}

.pub-visual-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.pub-chart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.pub-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pub-chart-head .badge {
  white-space: nowrap;
  flex-shrink: 0;
}

.pub-chart-head h3 {
  margin: 0 0 4px;
}

.pub-chart-head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pub-bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 200px;
  padding: 12px 6px 4px;
  border-top: 1px dashed var(--border);
}

.pub-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 6px 2px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, transform 0.18s ease;
  font-family: var(--font-sans);
}

.pub-bar-col:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.pub-bar-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-strong);
}

.pub-bar-track {
  width: 100%;
  max-width: 34px;
  height: 132px;
  border-radius: 8px 8px 4px 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 2px;
}

.pub-bar-fill {
  width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--primary) 0%, #1c5e47 100%);
  transition: height 0.85s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
  will-change: height;
}

[data-theme="dark"] .pub-bar-fill {
  background: linear-gradient(180deg, #d4af6a 0%, #8f6b29 100%);
}

.pub-bar-col.active .pub-bar-fill {
  background: linear-gradient(180deg, var(--gold) 0%, #c89d47 100%);
}

[data-theme="dark"] .pub-bar-col.active .pub-bar-fill {
  background: linear-gradient(180deg, #f6f4ee 0%, #d4af6a 100%);
}

.pub-bar-col.active {
  background: var(--gold-soft);
}

.pub-bar-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pub-bar-col.active .pub-bar-year {
  color: var(--text-strong);
}

.pub-dist-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-dist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.pub-dist-head span {
  color: var(--text-muted);
}

.pub-dist-head strong {
  color: var(--text-strong);
  font-family: var(--font-serif);
  font-size: 0.98rem;
}

.pub-dist-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}

.pub-dist-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

[data-theme="dark"] .pub-dist-bar {
  background: linear-gradient(90deg, #9f7d3c, #e5c687);
}

.pub-topics-block {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pub-topics-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
  margin-bottom: 10px;
}

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

.topic-chip {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.18s ease;
}

.topic-chip:hover {
  border-color: var(--gold);
  color: var(--text-strong);
}

.topic-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .topic-chip.active {
  background: #d4af6a;
  border-color: #d4af6a;
  color: #0b0f0d;
}

/* Flagship Spotlight Cards with Editorial Monograph Cover Plates */
.pub-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.spotlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.spotlight-plate {
  position: relative;
  padding: 24px 26px 22px;
  background: radial-gradient(circle at 85% 20%, rgba(212, 175, 106, 0.22), transparent 55%),
    linear-gradient(135deg, #0b261c 0%, #133c2d 100%);
  color: #f6f4ee;
  border-bottom: 1px solid rgba(212, 175, 106, 0.28);
}

.spotlight-plate-alt {
  background: radial-gradient(circle at 18% 85%, rgba(212, 175, 106, 0.22), transparent 55%),
    linear-gradient(135deg, #102a21 0%, #1d4537 100%);
}

.spotlight-plate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.spotlight-foil-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e4c485;
}

.spotlight-year {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.9;
}

.spotlight-plate-venue {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.spotlight-plate-sub {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(246, 244, 238, 0.78);
}

.spotlight-plate-rule {
  margin-top: 16px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, #d4af6a, transparent);
}

.spotlight-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spotlight-body h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
}

.spotlight-abstract {
  margin: 10px 0 0;
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.62;
  flex: 1;
}

/* Status Row & Active Filters */
.pub-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 22px;
}

.pub-count-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.pub-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-chip {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: var(--text-strong);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}

.active-filter-reset {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}

.active-filter-reset:hover {
  border-color: var(--primary);
  color: var(--text-strong);
}

/* Year-Grouped Archive */
.pub-archive {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pub-year-group {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: start;
}

.pub-year-rail {
  padding-top: 6px;
}

.pub-year-sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.pub-year-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.1;
}

.pub-year-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pub-item-q {
  border-left-color: var(--gold);
}

.pub-item-book {
  border-left-color: var(--primary);
}

.pub-doi-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--text-light);
}

.pub-excerpt {
  margin: 10px 0 0;
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ==========================================================================
   CV & Background Page — Jump Bar, Competencies, Footprint, Awards & Trainings
   ========================================================================== */

.cv-jump-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 60;
}

.cv-jump-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.cv-jump-inner::-webkit-scrollbar {
  display: none;
}

.cv-jump-inner a {
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.18s ease;
}

.cv-jump-inner a:hover {
  border-color: var(--gold);
  color: var(--text-strong);
  background: var(--gold-soft);
}

.cv-block {
  scroll-margin-top: 136px;
  margin-bottom: 44px;
}

.cv-block:last-child {
  margin-bottom: 0;
}

.cv-block-head {
  margin-bottom: 18px;
}

.cv-block-head h2 {
  margin: 0;
}

.cv-block-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.cv-sidebar-sticky {
  position: sticky;
  top: 136px;
}

.cv-footprint-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cv-footprint-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

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

.cv-flag-box {
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: var(--shadow-sm);
}

.cv-flag-svg {
  width: 38px;
  height: 26px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  display: block;
}

.cv-dual-flags {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.cv-flag-mini {
  width: 28px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: block;
}

.cv-footprint-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.cv-footprint-top strong {
  color: var(--text-strong);
  font-size: 0.96rem;
}

.cv-footprint-top span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}

.cv-footprint-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.timeline-item-current {
  border-left: 3px solid var(--gold);
}

.timeline-period-active {
  background: var(--gold-soft);
  color: var(--text-strong);
  border: 1px solid var(--gold);
}

.cv-awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cv-award-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-award-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cv-award-date {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

.cv-award-card h3 {
  font-size: 1.02rem;
  margin: 2px 0 0;
}

.cv-award-event {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.cv-award-loc {
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.cv-trainings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cv-training-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cv-training-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.cv-training-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cv-training-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
}

.cv-training-card h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.4;
}

.cv-training-card p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.cv-member-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.cv-member-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}

.cv-lang-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   Publication Detail & Citation Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 10, 8, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3.5vw, 32px);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

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

.modal-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-section h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 8px;
}

.cite-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 10px;
}

/* ==========================================================================
   CV Timeline & Lists
   ========================================================================== */

.cv-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 2px solid var(--border-strong);
  padding-left: 20px;
  margin-left: 6px;
}

.timeline-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-strong);
}

.timeline-period {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-strong);
  background: var(--surface-tint);
  padding: 3px 10px;
  border-radius: 999px;
}

[data-theme="dark"] .timeline-period {
  color: var(--gold);
}

.timeline-org {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clean-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   Blog / Research Notes & Gallery
   ========================================================================== */

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-light);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  background: var(--hero-bg);
}

.article-inner {
  padding: clamp(22px, 4vw, 40px);
}

.article-body p {
  margin: 0 0 18px;
  font-size: 1.04rem;
  color: var(--text);
}

.gallery-card {
  padding: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-caption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Page & Forms
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-strong);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}

.form-control:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
  background: var(--surface);
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 36px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* ==========================================================================
   Blog Lead Card, Article Author Byline & Contact Pathways
   ========================================================================== */

.blog-lead-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

.blog-lead-media {
  display: block;
  overflow: hidden;
  min-height: 280px;
  background: var(--hero-bg);
}

.blog-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-lead-card:hover .blog-lead-media img {
  transform: scale(1.04);
}

.blog-lead-body {
  padding: clamp(22px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-lead-body h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin: 12px 0 10px;
}

.blog-lead-body p {
  color: var(--text-muted);
  margin: 0 0 14px;
}

.author-byline {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.author-byline-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.author-byline-info {
  flex: 1;
  min-width: 200px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.author-byline-info strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.98rem;
}

.author-byline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-pathway-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.contact-pathway-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Multi-Column Editorial Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  margin: 14px 0 0;
  max-width: 44ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-nav-list a:hover {
  color: var(--text-strong);
}

.footer-links-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links-stack a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links-stack a:hover {
  color: var(--text-strong);
}

.footer-links-stack a svg {
  flex-shrink: 0;
  opacity: 0.88;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-bottom strong {
  color: var(--text-strong);
}

.footer-credit-link {
  color: var(--text-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.footer-credit-link:hover {
  color: var(--gold);
}

/* ==========================================================================
   Scroll-Reveal & Light Editorial Micro-Animations
   ========================================================================== */

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

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 106, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(212, 175, 106, 0);
  }
}

.hero-banner .status-pill {
  animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-banner .status-dot {
  animation: subtlePulse 2.8s ease-in-out infinite;
}

.hero-banner .hero-title {
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.hero-banner .hero-subtitle,
.hero-banner .hero-org,
.hero-banner .hero-summary {
  animation: heroFadeUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-banner .hero-actions {
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.hero-banner .portrait-frame {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.hero-banner .hero-metrics {
  animation: heroFadeUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.visual-card-media img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.visual-card:hover .visual-card-media img {
  transform: scale(1.04);
}

.timeline-item,
.cv-award-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.timeline-item:hover,
.cv-award-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.54s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.54s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-banner .status-pill,
  .hero-banner .status-dot,
  .hero-banner .hero-title,
  .hero-banner .hero-subtitle,
  .hero-banner .hero-org,
  .hero-banner .hero-summary,
  .hero-banner .hero-actions,
  .hero-banner .portrait-frame,
  .hero-banner .hero-metrics {
    animation: none !important;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints (Tablet, Large Phone, 320px Small Phone)
   ========================================================================== */

@media (max-width: 1080px) {
  .nav-links a {
    padding: 7px 11px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 270px;
  }
  .hero-metrics,
  .pub-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3,
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-split,
  .cv-layout,
  .contact-grid,
  .pub-visual-grid,
  .pub-spotlight-grid {
    grid-template-columns: 1fr;
  }
  .authority-list {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .pub-year-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pub-year-sticky {
    position: static;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 8px;
  }
  .cv-awards-grid,
  .cv-trainings-grid,
  .blog-lead-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cv-sidebar-sticky {
    position: static;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .portrait-frame {
    max-width: 300px;
    margin: 0 auto;
    order: -1;
  }
  .hero-content {
    text-align: center;
  }
  .hero-banner .hero-summary {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .editorial-grid,
  .pub-stats-bar {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hero-metric-item {
    padding: 13px 14px;
  }
  .search-input {
    max-width: 100%;
  }
  .pub-item {
    padding: 16px;
  }
  .card {
    padding: 18px;
  }
  .brand-sub {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .back-to-top,
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  .card,
  .timeline-item,
  .pub-item {
    box-shadow: none;
    break-inside: avoid;
  }
}
