/* =====================================================
   Academic Portfolio – Getnet Demil Jenberia
   Warm Ember Design System — Charcoal & Amber Theme
   Inspired by hopr.hasab.ai
   ===================================================== */

/* ---------- CSS Custom Properties ---------- */
:root,
[data-theme="dark"] {
  /* Backgrounds — near-black charcoal */
  --color-bg:            #0d0d10;
  --color-bg-alt:        #111114;
  --color-surface:       #141417;
  --color-surface-2:     #1a1a1f;
  --color-surface-3:     #222228;

  /* Warm amber primary */
  --color-primary:       #d4851f;
  --color-primary-dark:  #b86917;
  --color-primary-light: rgba(212, 133, 31, 0.12);

  /* Lighter amber accent */
  --color-accent:        #ecb866;
  --color-accent-dark:   #d4851f;
  --color-accent-light:  rgba(236, 184, 102, 0.12);

  /* Purple kept for variety */
  --color-purple:        #8b5cf6;
  --color-purple-light:  rgba(139, 92, 246, 0.12);

  /* Text — white-based, layered opacity */
  --color-text:          rgba(255, 255, 255, 0.93);
  --color-text-body:     rgba(255, 255, 255, 0.68);
  --color-text-muted:    rgba(255, 255, 255, 0.42);
  --color-text-faint:    rgba(255, 255, 255, 0.20);

  /* Ultra-subtle borders */
  --color-border:        rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.11);
  --color-card-bg:       rgba(20, 20, 23, 0.90);

  /* publication type colours */
  --color-q1:            #d4851f;
  --color-q1-bg:         rgba(212, 133, 31, 0.14);
  --color-q2:            #60a5fa;
  --color-q2-bg:         rgba(96, 165, 250, 0.14);
  --color-thesis:        #c084fc;
  --color-thesis-bg:     rgba(192, 132, 252, 0.14);
  --color-conf:          #ecb866;
  --color-conf-bg:       rgba(236, 184, 102, 0.14);
  --color-preprint:      #f87171;
  --color-preprint-bg:   rgba(248, 113, 113, 0.14);

  --nav-height:          68px;
  --progress-color:      var(--color-primary);
}

[data-theme="light"] {
  /* Warm cream backgrounds */
  --color-bg:            #fdf8f0;
  --color-bg-alt:        #faecd5;
  --color-surface:       #ffffff;
  --color-surface-2:     #fdf4e7;
  --color-surface-3:     #f7e9ce;

  /* Deep amber for light mode */
  --color-primary:       #b86917;
  --color-primary-dark:  #984f16;
  --color-primary-light: rgba(184, 105, 23, 0.10);

  --color-accent:        #d4851f;
  --color-accent-dark:   #b86917;
  --color-accent-light:  rgba(212, 133, 31, 0.10);

  --color-purple:        #6d28d9;
  --color-purple-light:  rgba(109, 40, 217, 0.10);

  /* Warm dark text */
  --color-text:          #1a0d00;
  --color-text-body:     #3d2a0a;
  --color-text-muted:    #7c5a28;
  --color-text-faint:    #b08a58;

  /* Subtle borders on cream */
  --color-border:        rgba(0, 0, 0, 0.07);
  --color-border-strong: rgba(0, 0, 0, 0.12);
  --color-card-bg:       #ffffff;

  --color-q1:            #b86917;
  --color-q1-bg:         rgba(184, 105, 23, 0.10);
  --color-q2:            #1d4ed8;
  --color-q2-bg:         rgba(29, 78, 216, 0.10);
  --color-thesis:        #7c3aed;
  --color-thesis-bg:     rgba(124, 58, 237, 0.10);
  --color-conf:          #d4851f;
  --color-conf-bg:       rgba(212, 133, 31, 0.10);
  --color-preprint:      #be185d;
  --color-preprint-bg:   rgba(190, 24, 93, 0.10);
}

/* ---------- Fonts ---------- */
:root {
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.18);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.26), 0 2px 8px rgba(0,0,0,0.16);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.36), 0 6px 20px rgba(0,0,0,0.20);
  --shadow-glow: 0 0 40px rgba(212, 133, 31, 0.22);

  --transition: 0.20s ease;
  --transition-slow: 0.38s ease;
}

[data-theme="light"] {
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.12), 0 6px 20px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(184, 105, 23, 0.18);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.inline-link {
  color: var(--color-primary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.inline-link:hover { text-decoration: none; border-bottom-color: var(--color-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #120800;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); box-shadow: 0 4px 20px rgba(212, 133, 31, 0.38); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(212, 133, 31, 0.40);
}
[data-theme="light"] .btn-outline { border-color: rgba(184, 105, 23, 0.40); }
.btn-outline:hover { background: var(--color-primary-light); border-color: var(--color-primary); }

.btn-ghost {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-surface-3); color: var(--color-text); border-color: var(--color-border-strong); }

.btn-accent {
  background: var(--color-accent);
  color: #120800;
  border-color: var(--color-accent);
}
.btn-accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-large {
  padding: 13px 30px;
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin-top: 14px;
  border-radius: var(--radius-full);
  transition: width 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title:hover::after { width: 80px; }

.section-subtitle {
  font-size: 1.025rem;
  color: var(--color-text-muted);
  margin-bottom: 52px;
  max-width: 640px;
  line-height: 1.7;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 64px 0 28px;
  letter-spacing: -0.01em;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.navbar.scrolled {
  background: rgba(13, 13, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border), 0 4px 24px rgba(0,0,0,0.4);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border), 0 4px 24px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.nav-brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}
.nav-links a {
  display: block;
  padding: 6px 11px;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  letter-spacing: 0.005em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  text-decoration: none;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--color-surface-3);
  color: var(--color-primary);
  border-color: rgba(212, 133, 31, 0.35);
}
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #080808 0%, #0d0d10 30%, #100e0c 60%, #141210 100%);
  padding-top: var(--nav-height);
}

[data-theme="light"] .hero {
  background: linear-gradient(180deg, #fdf4e0 0%, #faecd5 30%, #f5e0b5 60%, #eed5a0 100%);
}

/* Ember/Aurora Background */
.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-1, .aurora-2, .aurora-3 {
  position: absolute;
  inset: -60%;
  border-radius: 50%;
}
.aurora-1 {
  background: radial-gradient(
    ellipse 100% 50% at 25% 55%,
    rgba(212, 133, 31, 0.20) 0%,
    rgba(180, 105, 23, 0.07) 45%,
    transparent 70%
  );
  animation: auroraFloat1 20s ease-in-out infinite alternate;
}
.aurora-2 {
  background: radial-gradient(
    ellipse 80% 60% at 72% 42%,
    rgba(180, 75, 15, 0.14) 0%,
    rgba(140, 55, 8, 0.05) 45%,
    transparent 70%
  );
  animation: auroraFloat2 26s ease-in-out infinite alternate;
}
.aurora-3 {
  background: radial-gradient(
    ellipse 70% 80% at 50% 88%,
    rgba(100, 42, 5, 0.10) 0%,
    transparent 60%
  );
  animation: auroraFloat3 16s ease-in-out infinite alternate;
}

[data-theme="light"] .aurora-1 {
  background: radial-gradient(
    ellipse 100% 50% at 25% 55%,
    rgba(212, 133, 31, 0.18) 0%,
    rgba(180, 105, 23, 0.06) 45%,
    transparent 70%
  );
}
[data-theme="light"] .aurora-2 {
  background: radial-gradient(
    ellipse 80% 60% at 70% 45%,
    rgba(180, 75, 15, 0.12) 0%,
    transparent 70%
  );
}
[data-theme="light"] .aurora-3 {
  background: radial-gradient(
    ellipse 70% 80% at 50% 85%,
    rgba(120, 50, 5, 0.08) 0%,
    transparent 60%
  );
}

@keyframes auroraFloat1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8%, -6%) scale(1.2); }
}
@keyframes auroraFloat2 {
  from { transform: translate(0, 0) scale(1) rotate(0deg); }
  to   { transform: translate(-7%, 9%) scale(1.18) rotate(-6deg); }
}
@keyframes auroraFloat3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(5%, 4%) scale(1.12); }
}

/* Hero star field */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 8%, rgba(255,255,255,0.28) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 22%, rgba(255,255,255,0.42) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 5%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 18%, rgba(255,255,255,0.28) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 40%, rgba(255,255,255,0.22) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 35%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 45%, rgba(255,255,255,0.28) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 60%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 72%, rgba(255,255,255,0.32) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 78%, rgba(255,255,255,0.22) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 88%, rgba(255,255,255,0.25) 0%, transparent 100%);
}
[data-theme="light"] .hero-stars { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1380px;
  width: 100%;
  padding: 0 48px;
  padding-bottom: 40px;
}

.hero-avatar {
  position: relative;
  flex-shrink: 0;
}
.avatar-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 133, 31, 0.60);
  box-shadow: 0 0 0 8px rgba(212, 133, 31, 0.08), var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.avatar-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 10px rgba(212, 133, 31, 0.12), var(--shadow-glow);
}
.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(212, 133, 31, 0.22);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.05); opacity: 0.18; }
}

.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-pre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.hero-pre::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-primary);
  border-radius: 2px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.hero-name-accent {
  color: var(--color-primary);
}
[data-theme="light"] .hero-name { color: #1a0d00; }

.hero-affiliation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.925rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.hero-affiliation svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 32px;
}
.hero-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition);
}
[data-theme="light"] .hero-tag { background: rgba(0,0,0,0.04); }
.hero-tag:hover {
  background: var(--color-primary-light);
  border-color: rgba(212, 133, 31, 0.40);
  color: var(--color-primary);
}

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

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  animation: bounce 2.5s ease-in-out infinite;
  transition: color var(--transition);
  z-index: 1;
}
.scroll-down:hover { color: var(--color-primary); text-decoration: none; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* =====================================================
   ABOUT
   ===================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  font-size: 1.025rem;
  line-height: 1.85;
  color: var(--color-text-body);
  margin-bottom: 24px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.highlight-card:hover {
  border-color: rgba(212, 133, 31, 0.30);
  background: var(--color-surface-2);
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--color-primary), var(--shadow-md), 0 0 20px rgba(212, 133, 31, 0.08);
}

.highlight-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
}

.highlight-card h3 {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.highlight-card p {
  font-size: 0.865rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* =====================================================
   NEWS — Aurora Rail Timeline + Tabs
   ===================================================== */

/* ---- Tabs ---- */
.news-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  width: fit-content;
}
.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 20px;
  border-radius: var(--radius-full);
  font-size: 0.845rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.news-tab:hover { color: var(--color-text); }
.news-tab.active { background: var(--color-primary); color: #120800; }

.news-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 700;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}
.news-tab.active .news-tab-badge { background: rgba(18,8,0,0.18); color: #120800; }

/* ---- Aurora Rail (shared by news timeline + CV groups) ---- */
.news-timeline,
.tl-group-items {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-timeline::before,
.tl-group-items::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--color-primary)  0%,
    var(--color-accent)   45%,
    var(--color-primary)  85%,
    var(--color-accent)   100%
  );
  background-size: 100% 300%;
  border-radius: 2px;
  animation: railPulse 8s ease-in-out infinite;
}
@keyframes railPulse {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

/* ---- Timeline item ---- */
.tl-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s ease var(--delay, 0ms),
              transform 0.45s ease var(--delay, 0ms);
}
.tl-item--visible { opacity: 1; transform: translateX(0); }
.tl-item:last-child { margin-bottom: 0; }

/* Category color mapping */
.tl-item[data-category="conference"]  { --category-color: var(--color-primary); }
.tl-item[data-category="publication"] { --category-color: var(--color-accent); }
.tl-item[data-category="workshop"]    { --category-color: var(--color-purple); }
.tl-item[data-category="visit"]       { --category-color: #60a5fa; }
.tl-item[data-category="award"]       { --category-color: #f87171; }
.tl-item[data-category="position"]    { --category-color: var(--color-primary); }
.tl-item[data-category="education"]   { --category-color: var(--color-accent); }

/* ---- Dot ---- */
.tl-dot {
  position: absolute;
  left: 13px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2.5px solid var(--category-color, var(--color-primary));
  z-index: 1;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.tl-item--visible .tl-dot {
  box-shadow: 0 0 0 4px rgba(212, 133, 31, 0.14);
}
.tl-item:hover .tl-dot { transform: scale(1.3); }

/* ---- Date label ---- */
.tl-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 7px;
}

/* ---- Card ---- */
.tl-card {
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-md);
  transition: border-left-color var(--transition),
              transform var(--transition),
              background var(--transition),
              box-shadow var(--transition);
}
.tl-item:hover .tl-card {
  border-left-color: var(--category-color, var(--color-primary));
  transform: translateX(4px);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-sm);
}

.tl-cat {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--category-color, var(--color-primary));
  margin-bottom: 5px;
}
.tl-headline {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 5px;
}
.tl-body {
  font-size: 0.845rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* ---- CV Group labels ---- */
.tl-group { position: relative; }
.tl-group-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 24px 56px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: -0.01em;
}
.tl-group + .tl-group { margin-top: 48px; }

/* ---- Divider (between FlowCV + timeline) ---- */
.tl-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 36px;
  color: var(--color-text-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.tl-divider::before,
.tl-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ---- Medium Blog Cards ---- */
.medium-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.linkedin-widget {
  margin-bottom: 16px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid rgba(10, 102, 194, 0.28);
  border-radius: var(--radius-md);
}
.linkedin-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.linkedin-widget-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}
.linkedin-widget-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0a66c2;
  text-decoration: none;
}
.linkedin-widget-link:hover { text-decoration: underline; }
.linkedin-widget-fallback {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-body);
  line-height: 1.65;
}
.linkedin-widget-fallback a {
  color: var(--color-primary);
  text-decoration: none;
}
.linkedin-widget-fallback a:hover { text-decoration: underline; }

/* Official LinkedIn post embeds */
.linkedin-embeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 20px;
}
.linkedin-embed-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.linkedin-embed-frame {
  display: block;
  width: 100%;
  height: 570px;
  border: none;
}
.medium-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.medium-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.medium-card--linkedin {
  border-color: rgba(10, 102, 194, 0.28);
  background: rgba(10, 102, 194, 0.04);
}
.medium-card--linkedin:hover { border-color: rgba(10, 102, 194, 0.50); }

.medium-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.medium-date {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.06em;
}
.medium-read {
  font-size: 0.70rem;
  color: var(--color-text-muted);
}
.medium-title {
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  flex: 1;
  letter-spacing: -0.01em;
}
.medium-title a { color: inherit; }
.medium-title a:hover { color: var(--color-primary); text-decoration: none; }
.medium-excerpt {
  font-size: 0.835rem;
  color: var(--color-text-body);
  line-height: 1.6;
  flex: 1;
}
.medium-read-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
}
.medium-read-link:hover { text-decoration: underline; }

.medium-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
}
.medium-empty {
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  text-align: center;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border-strong);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   RESEARCH
   ===================================================== */
.research-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 0;
}

.project-card {
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 133, 31, 0.10);
}
.project-card:hover::before { opacity: 1; }

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 18px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--color-text-body);
  line-height: 1.68;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.70rem;
  font-weight: 600;
  background: var(--color-surface-3);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.interest-card {
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
}
.interest-card:hover {
  border-color: rgba(212, 133, 31, 0.30);
  background: var(--color-surface-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 22px rgba(212, 133, 31, 0.09);
}

.interest-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin: 0 auto 16px;
  transition: all var(--transition);
}
.interest-card:hover .interest-icon-wrap {
  background: var(--color-primary);
  color: var(--color-bg);
}

.interest-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.interest-card p {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* =====================================================
   CV TIMELINE
   ===================================================== */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    var(--color-accent)  50%,
    var(--color-primary) 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding: 22px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 2.5px solid var(--color-primary);
  transition: all var(--transition);
  z-index: 1;
}
.timeline-item:nth-child(2)::before { border-color: var(--color-accent); }
.timeline-item:nth-child(3)::before { border-color: var(--color-purple); }
.timeline-item:nth-child(4)::before { border-color: var(--color-primary); }
.timeline-item:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.timeline-item:hover::before {
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.timeline-period {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(212, 133, 31, 0.22);
  margin-bottom: 10px;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.timeline-org {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.865rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid rgba(236, 184, 102, 0.25);
}

/* =====================================================
   PUBLICATIONS
   ===================================================== */
.pub-controls {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.pub-search-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.pub-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  pointer-events: none;
}

.pub-search {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-text);
  transition: all var(--transition);
  outline: none;
}
.pub-search::placeholder { color: var(--color-text-faint); }
.pub-search:focus {
  border-color: rgba(212, 133, 31, 0.45);
  background: var(--color-surface-2);
  box-shadow: 0 0 0 3px rgba(212, 133, 31, 0.10);
}

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

.filter-btn {
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 0.80rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.01em;
}
.filter-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.filter-btn.active {
  background: var(--color-primary);
  color: #120800;
  border-color: var(--color-primary);
}

.pub-year-group {
  margin-bottom: 44px;
}
.pub-year-group:last-of-type { margin-bottom: 0; }

.pub-year-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.09em;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pub-year-label::after {
  content: attr(data-count);
  font-size: 0.68rem;
  padding: 1px 7px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.publication-card {
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  border-left: 3px solid transparent;
}
.publication-card:hover {
  border-left-color: var(--color-primary);
  border-left-width: 3px;
  background: var(--color-surface-2);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm), 0 0 18px rgba(212, 133, 31, 0.07);
}
.publication-card[data-type="thesis"] { border-left-color: var(--color-thesis); }
.publication-card[data-type="thesis"]:hover { border-left-color: var(--color-thesis); }

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

.pub-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pub-badge-journal  { background: var(--color-q1-bg);      color: var(--color-q1); }
.pub-badge-conf     { background: var(--color-conf-bg);     color: var(--color-conf); }
.pub-badge-preprint { background: var(--color-preprint-bg); color: var(--color-preprint); }
.pub-badge-thesis   { background: var(--color-thesis-bg);   color: var(--color-thesis); }

.pub-quality {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}
.pub-q1 { background: var(--color-q1-bg); color: var(--color-q1); border: 1px solid currentColor; }
.pub-q2 { background: var(--color-q2-bg); color: var(--color-q2); border: 1px solid currentColor; }

.pub-cites {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--color-text-muted);
  margin-left: auto;
  padding: 2px 8px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.pub-title {
  font-family: var(--font-sans);
  font-size: 0.955rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.pub-title a { color: inherit; }
.pub-title a:hover { color: var(--color-primary); text-decoration: none; }

.pub-authors {
  font-size: 0.845rem;
  color: var(--color-text-body);
  margin-bottom: 4px;
  line-height: 1.5;
}
.pub-venue {
  font-size: 0.82rem;
  color: var(--color-text-body);
  margin-bottom: 12px;
  line-height: 1.4;
}
.pub-venue em { font-style: italic; }

.pub-no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.pub-no-results.visible { display: block; }

.scholar-cta {
  margin-top: 52px;
  text-align: center;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: rgba(212, 133, 31, 0.30);
  background: var(--color-surface-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: all var(--transition);
}
.contact-card:hover .contact-icon {
  background: var(--color-primary);
  color: var(--color-bg);
}

.contact-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.contact-card p,
.contact-card a {
  font-size: 0.835rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.contact-card a:hover { color: var(--color-primary); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.footer-copy span { color: var(--color-primary); }

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.80rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition);
  text-decoration: none;
}
.footer-social-link:hover {
  border-color: rgba(212, 133, 31, 0.40);
  color: var(--color-primary);
  background: var(--color-primary-light);
  text-decoration: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet – 900px */
@media (max-width: 900px) {
  .section { padding: 80px 0; }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 36px;
    padding-bottom: 80px;
  }
  .hero-pre { justify-content: center; }
  .hero-affiliation { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-links { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .research-projects { grid-template-columns: 1fr; }
  .interests-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .medium-feed  { grid-template-columns: 1fr; }
  .linkedin-embeds-grid { grid-template-columns: 1fr; }
  .linkedin-embed-frame { height: 480px; }
  .news-tabs    { width: 100%; }
  .news-tab     { flex: 1; justify-content: center; }
}

/* Mobile – 640px */
@media (max-width: 640px) {
  :root { --nav-height: 60px; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  .nav-container { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: rgba(13, 13, 16, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
  }
  [data-theme="light"] .nav-links {
    background: rgba(253, 248, 240, 0.97);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1.15rem;
    padding: 12px 24px;
  }
  .nav-toggle { display: flex; }

  .avatar-img { width: 140px; height: 140px; }
  .hero-name { font-size: 2.4rem; }

  .interests-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }

  .pub-controls { flex-direction: column; }
  .pub-search-wrap { min-width: 100%; }

  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -20px; width: 12px; height: 12px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* Small – 400px */
@media (max-width: 400px) {
  .hero-name { font-size: 2rem; }
  .hero-links { flex-direction: column; align-items: stretch; }
  .hero-links .btn { justify-content: center; }
}

/* =====================================================
   PROJECTS (full project cards)
   ===================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card-full {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card-full::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card-full:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 133, 31, 0.10);
}
.project-card-full:hover::after { opacity: 1; }

.project-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.project-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: all var(--transition);
}
.project-card-full:hover .project-card-icon {
  background: var(--color-primary);
  color: var(--color-bg);
}
.project-card-title {
  font-family: var(--font-display);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  flex: 1;
  padding-top: 4px;
  letter-spacing: -0.015em;
}

.project-card-desc {
  font-size: 0.865rem;
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tech-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--color-surface-3);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.project-card-full:hover .tech-badge {
  border-color: rgba(212, 133, 31, 0.35);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.project-card-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.project-card-link:hover { color: var(--color-primary); text-decoration: none; }

.project-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
}
.status-active    { background: var(--color-primary-light); color: var(--color-primary);  border: 1px solid rgba(212,133,31,0.28); }
.status-award     { background: var(--color-accent-light);  color: var(--color-accent);   border: 1px solid rgba(236,184,102,0.28); }
.status-published { background: var(--color-q2-bg);         color: var(--color-q2);       border: 1px solid rgba(96,165,250,0.28); }

/* =====================================================
   SERVICE
   ===================================================== */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.service-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all var(--transition);
}
.service-block:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-md);
}
.service-block-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.service-block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  flex-shrink: 0;
}
.service-block h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.service-event {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-event:last-child { border-bottom: none; padding-bottom: 0; }
.service-event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 7px;
}
.service-event-dot.dot-accent { background: var(--color-accent); }
.service-event-dot.dot-purple { background: var(--color-purple); }
.service-event-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 2px;
}
.service-event-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* =====================================================
   SKILLS REDESIGN
   ===================================================== */
.skills-redesign { margin-top: 48px; }

.skills-redesign-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.skills-redesign-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.skill-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skill-cat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--cat-color, var(--color-primary));
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: box-shadow var(--transition);
}
.skill-cat:hover { box-shadow: var(--shadow-md); }

.skill-cat--eo   { --cat-color: var(--color-primary); }
.skill-cat--cv   { --cat-color: var(--color-accent); }
.skill-cat--fm   { --cat-color: var(--color-purple); }
.skill-cat--prog { --cat-color: #60a5fa; }

.skill-cat-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--cat-color, var(--color-primary));
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-pill {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  transition: border-color 0.2s, color 0.2s;
  position: relative;
  overflow: hidden;
}
.skill-cat:hover .skill-pill {
  border-color: color-mix(in srgb, var(--cat-color) 38%, transparent);
}
.skill-pill:hover {
  border-color: var(--cat-color, var(--color-primary)) !important;
  color: var(--cat-color, var(--color-primary));
}
.skill-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.11), transparent);
  transition: left 0.40s ease;
}
.skill-pill:hover::after { left: 160%; }

/* icon inside pill */
.skill-pill { display: inline-flex; align-items: center; gap: 5px; }
.sp-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Language strip */
.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lang-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex: 1;
  min-width: 150px;
  transition: box-shadow var(--transition);
}
.lang-card:hover { box-shadow: var(--shadow-md); }
.lang-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.lang-badge {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.lang-badge--native       { background: rgba(212,133,31,0.14);  color: var(--color-primary); }
.lang-badge--professional { background: rgba(236,184,102,0.14); color: var(--color-accent);  }
.lang-badge--a1           { background: rgba(139,92,246,0.14);  color: var(--color-purple);  }

/* =====================================================
   RESPONSIVE – new sections
   ===================================================== */
.timeline-item:nth-child(5)::before { border-color: var(--color-accent); }
.timeline-item:nth-child(6)::before { border-color: var(--color-primary); }
.timeline-item:nth-child(7)::before { border-color: var(--color-accent); }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .skill-cats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .tl-item { padding-left: 40px; }
  .news-timeline::before, .tl-group-items::before { left: 12px; }
  .tl-dot { left: 5px; }
  .tl-group-title { margin-left: 40px; }
}

/* =====================================================
   FLOWCV EMBED
   ===================================================== */
.flowcv-wrap {
  margin-bottom: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flowcv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 10px;
}
.flowcv-title {
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}
.flowcv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.flowcv-frame-wrap {
  position: relative;
  width: 100%;
  height: 700px;
}
.flowcv-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.flowcv-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--color-surface-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 24px;
}
.flowcv-wrap--error .flowcv-fallback { display: flex; }
.flowcv-wrap--error .flowcv-iframe   { display: none; }

@media (max-width: 640px) {
  .flowcv-frame-wrap { height: 480px; }
}

/* =====================================================
   SEE MORE / COLLAPSE
   ===================================================== */
.see-more-wrap {
  text-align: center;
  margin-top: 24px;
}
.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 24px;
  border-radius: var(--radius-full);
  font-size: 0.845rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.see-more-btn:hover {
  background: var(--color-surface-2);
  border-color: rgba(212, 133, 31, 0.35);
  color: var(--color-primary);
}
.see-more-icon {
  transition: transform var(--transition);
  flex-shrink: 0;
}

/* =====================================================
   FOOTER SOCIAL STRIP (icons only)
   ===================================================== */
.footer-socials-only {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0 6px;
}
.footer-copy-center {
  text-align: center;
  font-size: 0.80rem;
  color: var(--color-text-faint);
  margin: 0;
}

/* =====================================================
   HERO TITLE (two-line professional title)
   ===================================================== */
.hero-title {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 600;
  color: var(--color-primary);
  margin: 6px 0 2px;
  letter-spacing: -0.01em;
}
.hero-subtitle {
  font-size: clamp(0.83rem, 1.6vw, 0.95rem);
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0 0 18px;
}

/* =====================================================
   EVENT STREAM (News section)
   ===================================================== */
.event-stream {
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}
.event-row {
  display: grid;
  grid-template-columns: 88px 108px 1fr;
  gap: 0 18px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.event-row:hover { background: var(--color-primary-light); border-radius: var(--radius-sm); }
.event-date {
  font: 500 0.76rem var(--font-mono);
  color: var(--color-text-faint);
  padding-top: 3px;
  white-space: nowrap;
}
.event-badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  margin-top: 1px;
}
.event-badge--presentation { background: var(--color-primary-light);  color: var(--color-primary); }
.event-badge--conference   { background: var(--color-primary-light);  color: var(--color-primary); }
.event-badge--workshop     { background: var(--color-purple-light);   color: var(--color-purple); }
.event-badge--publication  { background: var(--color-accent-light);   color: var(--color-accent); }
.event-badge--award        { background: rgba(248,113,113,0.12);      color: #f87171; }
.event-title {
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 3px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.event-detail {
  font-size: 0.80rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .event-row { grid-template-columns: 1fr; gap: 4px; }
  .event-date { order: 2; font-size: 0.70rem; }
  .event-badge { order: 1; }
  .event-body { order: 3; }
}

/* =====================================================
   CV ALTERNATING TIMELINE
   ===================================================== */
.cv-timeline {
  position: relative;
  padding: 24px 0 8px;
}
.cv-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    var(--color-primary) 0%,
    var(--color-accent)  45%,
    var(--color-primary) 85%,
    var(--color-accent)  100%);
  background-size: 100% 300%;
  animation: railPulse 8s ease-in-out infinite;
  border-radius: 2px;
}
.cv-entry {
  position: relative;
  width: calc(50% - 32px);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease var(--delay, 0ms), transform 0.45s ease var(--delay, 0ms);
}
.cv-entry--visible { opacity: 1; transform: translateY(0); }
.cv-entry--left  { margin-right: auto; }
.cv-entry--right { margin-left: auto;  }
.cv-entry:last-child { margin-bottom: 0; }
.cv-dot {
  position: absolute;
  top: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--category-color, var(--color-primary));
  border: 2px solid var(--color-bg);
  z-index: 2;
  box-shadow: 0 0 0 2px var(--category-color, var(--color-primary)),
              0 0 10px rgba(212, 133, 31, 0.32);
  transition: transform var(--transition);
}
.cv-entry--left  .cv-dot { right: -39px; left: auto; }
.cv-entry--right .cv-dot { left: -39px; }
.cv-entry:hover .cv-dot  { transform: scale(1.25); }
.cv-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cv-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
/* Arrow connector pointing toward central rail */
.cv-entry--left .cv-card::after {
  content: '';
  position: absolute;
  right: -9px; top: 19px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 9px solid var(--color-border);
}
.cv-entry--left .cv-card::before {
  content: '';
  position: absolute;
  right: -8px; top: 20px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 8px solid var(--color-surface);
  z-index: 1;
}
.cv-entry--right .cv-card::after {
  content: '';
  position: absolute;
  left: -9px; top: 19px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid var(--color-border);
}
.cv-entry--right .cv-card::before {
  content: '';
  position: absolute;
  left: -8px; top: 20px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid var(--color-surface);
  z-index: 1;
}
/* category colors */
.cv-entry[data-category="position"]  { --category-color: var(--color-primary); }
.cv-entry[data-category="visit"]     { --category-color: #60a5fa; }
.cv-entry[data-category="education"] { --category-color: var(--color-accent); }

/* Responsive: collapse to single column */
@media (max-width: 768px) {
  .cv-timeline::before { left: 18px; transform: none; }
  .cv-entry { width: calc(100% - 46px); margin-left: 46px; }
  .cv-entry--left  .cv-dot,
  .cv-entry--right .cv-dot { left: -35px; right: auto; }
  .cv-entry--left .cv-card::after,
  .cv-entry--right .cv-card::after { display: none; }
  .cv-entry--left .cv-card::before,
  .cv-entry--right .cv-card::before { display: none; }
}

/* =====================================================
   FOOTER — icons-only layout
   ===================================================== */
.footer-inner {
  display: flex;
}

/* =====================================================
   ENHANCEMENTS — Animations, Visual Depth
   ===================================================== */

/* ---------- Section Label (decorative pre-title) ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
  opacity: 0.90;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ---------- Animated section divider ---------- */
.section-divider {
  display: block;
  width: 100%;
  height: 1px;
  border: none;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary) 25%,
    var(--color-accent)  55%,
    var(--color-primary) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: dividerScroll 5s linear infinite;
  opacity: 0.40;
}
@keyframes dividerScroll {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- Improved about-text readability ---------- */
.about-text p {
  font-size: 1.025rem;
  line-height: 1.90;
  margin-bottom: 24px;
}

/* ---------- Hero entrance animations ---------- */
.hero-avatar {
  animation: heroScaleIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both;
}
@keyframes heroScaleIn {
  from { opacity: 0; transform: scale(0.80); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-pre         { animation: heroFadeUp 0.60s ease 0.28s both; }
.hero-name        { animation: heroFadeUp 0.60s ease 0.42s both; }
.hero-title       { animation: heroFadeUp 0.60s ease 0.56s both; }
.hero-subtitle    { animation: heroFadeUp 0.60s ease 0.68s both; }
.hero-affiliation { animation: heroFadeUp 0.60s ease 0.82s both; }
.hero-tags        { animation: heroFadeUp 0.60s ease 0.96s both; }
.hero-links       { animation: heroFadeUp 0.60s ease 1.10s both; }

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

@media (prefers-reduced-motion: reduce) {
  .hero-avatar, .hero-pre, .hero-name, .hero-title,
  .hero-subtitle, .hero-affiliation, .hero-tags, .hero-links {
    animation: none;
  }
}

/* ---------- Typing cursor ---------- */
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 0.82em;
  background: var(--color-primary);
  margin-left: 1px;
  vertical-align: middle;
  border-radius: 1px;
  animation: cursorBlink 0.65s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---------- Staggered card delays ---------- */
.about-highlights .highlight-card:nth-child(1) { transition-delay:   0ms; }
.about-highlights .highlight-card:nth-child(2) { transition-delay:  80ms; }
.about-highlights .highlight-card:nth-child(3) { transition-delay: 160ms; }
.about-highlights .highlight-card:nth-child(4) { transition-delay: 240ms; }

.interests-grid .interest-card:nth-child(1) { transition-delay:   0ms; }
.interests-grid .interest-card:nth-child(2) { transition-delay:  80ms; }
.interests-grid .interest-card:nth-child(3) { transition-delay: 160ms; }
.interests-grid .interest-card:nth-child(4) { transition-delay: 240ms; }
.interests-grid .interest-card:nth-child(5) { transition-delay: 320ms; }

.research-projects .project-card:nth-child(1) { transition-delay:   0ms; }
.research-projects .project-card:nth-child(2) { transition-delay:  80ms; }
.research-projects .project-card:nth-child(3) { transition-delay: 160ms; }

.projects-grid .project-card-full:nth-child(1) { transition-delay:   0ms; }
.projects-grid .project-card-full:nth-child(2) { transition-delay:  80ms; }
.projects-grid .project-card-full:nth-child(3) { transition-delay: 160ms; }
.projects-grid .project-card-full:nth-child(4) { transition-delay: 240ms; }
.projects-grid .project-card-full:nth-child(5) { transition-delay: 320ms; }
.projects-grid .project-card-full:nth-child(6) { transition-delay: 400ms; }

.service-layout .service-block:nth-child(1) { transition-delay:   0ms; }
.service-layout .service-block:nth-child(2) { transition-delay: 100ms; }

/* ---------- Dot-grid texture for alternate sections ---------- */
.section-alt {
  position: relative;
}
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.section-alt > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Floating particles canvas ---------- */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Improve card text legibility ---------- */
.highlight-card p {
  font-size: 0.875rem;
  line-height: 1.62;
}
.project-card-desc {
  font-size: 0.875rem;
  line-height: 1.70;
}
.interest-card p {
  font-size: 0.840rem;
  line-height: 1.65;
  color: var(--color-text-body);
}

/* =====================================================
   VISUAL ENHANCEMENTS — Animations, Motion & Polish
   ===================================================== */

/* --- Hero entrance stagger --- */
.hero-avatar {
  animation: heroAvatarIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}
.hero-pre        { animation: heroSlideIn 0.7s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.20s; }
.hero-name       { animation: heroSlideIn 0.8s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.33s; }
.hero-title      { animation: heroSlideIn 0.7s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.47s; }
.hero-subtitle   { animation: heroSlideIn 0.7s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.58s; }
.hero-affiliation{ animation: heroSlideIn 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.70s; }
.hero-tags       { animation: heroSlideIn 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.82s; }
.hero-links      { animation: heroSlideIn 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.95s; }

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroAvatarIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- Hero name accent animated shimmer gradient --- */
.hero-name-accent {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-accent)  38%,
    #f5d090              56%,
    var(--color-primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: nameShimmer 5s linear infinite;
  animation-delay: 1.4s;
}
@keyframes nameShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* --- Orbit rings with glowing satellite dots (hero background) --- */
.orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: 50%;
  left: 50%;
}
.orbit--1 {
  width: 580px;
  height: 580px;
  margin-top: -290px;
  margin-left: -290px;
  border: 1px solid rgba(212, 133, 31, 0.13);
  animation: orbitSpin 38s linear infinite;
}
.orbit--2 {
  width: 380px;
  height: 380px;
  margin-top: -190px;
  margin-left: -190px;
  border: 1px solid rgba(236, 184, 102, 0.09);
  animation: orbitSpin 24s linear infinite reverse;
}
.orbit-satellite {
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(212, 133, 31, 0.85), 0 0 24px rgba(212, 133, 31, 0.35);
}
.orbit-satellite--2 {
  width: 6px;
  height: 6px;
  top: -3px;
  left: calc(50% - 3px);
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(236, 184, 102, 0.75), 0 0 18px rgba(236, 184, 102, 0.30);
}
[data-theme="light"] .orbit--1 { border-color: rgba(184, 105, 23, 0.12); }
[data-theme="light"] .orbit--2 { border-color: rgba(212, 133, 31, 0.08); }
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Second outer avatar ring (phase-shifted pulse) --- */
.avatar-ring--outer {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(212, 133, 31, 0.10);
  animation: pulse 5s ease-in-out infinite;
  animation-delay: -2.5s;
}

/* --- Research section dot-grid texture --- */
#research {
  position: relative;
}
#research::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
#research > .container {
  position: relative;
  z-index: 1;
}

/* --- Icon pop on card hover --- */
.interest-card:hover .interest-icon-wrap,
.highlight-card:hover .highlight-icon-wrap {
  animation: iconPop 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes iconPop {
  0%   { transform: scale(1) rotate(0deg); }
  35%  { transform: scale(1.28) rotate(-10deg); }
  68%  { transform: scale(0.94) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* --- Section heading entrance (classes added by JS) --- */
.section-label--anim {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-label--anim.visible { opacity: 0.9; transform: translateX(0); }

.section-title--anim {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title--anim.visible { opacity: 1; transform: translateY(0); }

.section-subtitle--anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease 0.16s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
}
.section-subtitle--anim.visible { opacity: 1; transform: translateY(0); }

/* --- Project card 3D tilt support --- */
.project-card-full,
.project-card {
  will-change: transform;
  transform-style: preserve-3d;
}

/* --- Tech badge float shimmer on project card hover --- */
.project-card-full:hover .tech-badge {
  animation: badgeFloat 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.project-card-full .tech-badges .tech-badge:nth-child(1) { animation-delay: 0ms; }
.project-card-full .tech-badges .tech-badge:nth-child(2) { animation-delay: 40ms; }
.project-card-full .tech-badges .tech-badge:nth-child(3) { animation-delay: 80ms; }
.project-card-full .tech-badges .tech-badge:nth-child(4) { animation-delay: 120ms; }
.project-card-full .tech-badges .tech-badge:nth-child(5) { animation-delay: 160ms; }
.project-card-full .tech-badges .tech-badge:nth-child(6) { animation-delay: 200ms; }
@keyframes badgeFloat {
  from { opacity: 0.7; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   STATS BAR  —  animated counters after hero
   ===================================================== */
.stats-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% -20%, rgba(212,133,31,0.07), transparent 65%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 38px 20px;
  position: relative;
  transition: background var(--transition);
  cursor: default;
}
.stat-item:hover { background: var(--color-primary-light); }
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--color-border);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 16px;
  transition: all var(--transition);
}
.stat-item:hover .stat-icon {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: scale(1.08);
}

.stat-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 7px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  min-width: 1.5ch;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3)::before { display: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--color-border); }
  .stat-item { padding: 26px 14px; }
}

/* =====================================================
   HERO SVG EARTH ILLUSTRATION
   ===================================================== */
.hero-earth-wrap {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(440px, 38vw);
  height: min(440px, 38vw);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  animation: earthReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}
[data-theme="light"] .hero-earth-wrap { opacity: 0.10; }

@keyframes earthReveal {
  from { opacity: 0; transform: translateY(-50%) scale(0.88) rotate(-8deg); }
  to   { opacity: 0.16; transform: translateY(-50%) scale(1) rotate(0deg); }
}

.hero-earth-svg { width: 100%; height: 100%; }

@media (max-width: 1200px) { .hero-earth-wrap { opacity: 0.09; right: -4%; } }
@media (max-width: 1000px) { .hero-earth-wrap { display: none; } }

/* =====================================================
   JOURNEY TRACK  —  About section
   ===================================================== */
.journey-track {
  margin-top: 40px;
  padding: 24px 28px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.journey-track::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 20%, var(--color-accent) 50%, var(--color-purple) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: journeyFlow 5s linear infinite;
}
@keyframes journeyFlow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.journey-header {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.journey-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.journey-stops {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
}

.journey-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 100px;
  padding: 4px 8px;
  gap: 6px;
}

.journey-stop-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg-alt);
  box-shadow: 0 0 0 3px rgba(212,133,31,0.18), 0 0 12px rgba(212,133,31,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.journey-stop:hover .journey-stop-dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 5px rgba(212,133,31,0.15), 0 0 22px rgba(212,133,31,0.55);
}

.journey-stop-country {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.journey-stop-role {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.journey-connector {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  opacity: 0.30;
  font-size: 0.85rem;
  padding-top: 10px;
  flex-shrink: 0;
  user-select: none;
}

@media (max-width: 640px) {
  .journey-stops { flex-direction: column; gap: 10px; }
  .journey-stop  { flex-direction: row; align-items: center; text-align: left; min-width: auto; gap: 12px; }
  .journey-connector { display: none; }
}

/* =====================================================
   BENTO GRID  —  Research Interests
   ===================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.bento-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* animated top-edge reveal bar */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-card:hover::after { transform: scaleX(1); }

/* radial glow in corner */
.bento-card::before {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,133,31,0.08), transparent 70%);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.bento-card:hover::before { transform: scale(1.3); }

.bento-card:hover {
  border-color: rgba(212, 133, 31, 0.28);
  background: var(--color-surface-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 28px rgba(212, 133, 31, 0.09);
}

/* Tall card spans 2 rows */
.bento-card--tall { grid-row: span 2; }

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 18px;
  transition: all var(--transition);
}
.bento-card--tall .bento-icon { width: 58px; height: 58px; margin-bottom: 22px; }
.bento-card:hover .bento-icon { background: var(--color-primary); color: var(--color-bg); }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.bento-card--tall h3 { font-size: 1.12rem; margin-bottom: 14px; }

.bento-card p {
  font-size: 0.86rem;
  color: var(--color-text-body);
  line-height: 1.68;
}
.bento-card--tall p { font-size: 0.92rem; line-height: 1.75; }

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.bento-tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(212,133,31,0.22);
  transition: all var(--transition);
}
.bento-card:hover .bento-tag {
  background: rgba(212,133,31,0.18);
  border-color: rgba(212,133,31,0.40);
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--tall { grid-row: span 1; }
}
@media (max-width: 580px) {
  .bento-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   GLASSMORPHISM  —  Project cards (dark mode)
   ===================================================== */
[data-theme="dark"] .project-card-full {
  background: rgba(20, 20, 23, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.065);
}
[data-theme="dark"] .project-card-full:hover {
  background: rgba(28, 28, 34, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: rgba(212, 133, 31, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 133, 31, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* =====================================================
   RESEARCH PIPELINE VISUAL
   ===================================================== */
.research-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 44px 0 0;
  padding: 46px 24px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.research-pipeline::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.20;
  pointer-events: none;
}

.rp-label {
  position: absolute;
  top: 11px; left: 20px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.rp-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  position: relative;
  z-index: 1;
}

.rp-box {
  width: 84px; height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 6px;
  transition: all var(--transition);
}
.rp-box-label {
  font-size: 0.60rem;
  color: var(--color-text-faint);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.3;
  max-width: 90px;
}

.rp-box--sar  { background: rgba(212,133,31,0.09);  border-color: rgba(212,133,31,0.28);  color: var(--color-primary); }
.rp-box--opt  { background: rgba(96,165,250,0.09);  border-color: rgba(96,165,250,0.28);  color: #60a5fa; }
.rp-box--dem  { background: rgba(74,222,128,0.09);  border-color: rgba(74,222,128,0.28);  color: #4ade80; }
.rp-box--fuse { background: rgba(139,92,246,0.09);  border-color: rgba(139,92,246,0.28);  color: var(--color-purple); }
.rp-box--nn   { background: rgba(236,184,102,0.09); border-color: rgba(236,184,102,0.28); color: var(--color-accent); }
.rp-box--out  { background: rgba(212,133,31,0.14);  border-color: rgba(212,133,31,0.45);  color: var(--color-primary); font-size: 0.52rem; }

.rp-arrow {
  z-index: 1;
  color: var(--color-text-faint);
  font-size: 0.85rem;
  padding: 0 2px;
  margin-top: -22px;
  flex-shrink: 0;
}

.rp-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.research-pipeline:hover .rp-box { transform: translateY(-2px); }

@media (max-width: 680px) { .research-pipeline { display: none; } }

/* =====================================================
   MOTION ENTRANCE  —  scroll-triggered via JS
   ===================================================== */
.mo-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.mo-hidden.mo-visible {
  opacity: 1;
  transform: translateY(0);
}
.mo-hidden-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.52s cubic-bezier(0.22,1,0.36,1),
              transform 0.52s cubic-bezier(0.22,1,0.36,1);
}
.mo-hidden-left.mo-visible { opacity: 1; transform: translateX(0); }

.mo-delay-1 { transition-delay: 80ms; }
.mo-delay-2 { transition-delay: 160ms; }
.mo-delay-3 { transition-delay: 240ms; }
.mo-delay-4 { transition-delay: 320ms; }
.mo-delay-5 { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .mo-hidden, .mo-hidden-left { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   HERO VISUAL PANEL  (EO dashboard illustration)
   ===================================================== */
.hero-visual {
  flex-shrink: 0;
  width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 1.1s both;
}
/* hide the old faint background earth now that we have a real panel */
.hero-earth-wrap { display: none !important; }

.eo-dashboard-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(212,133,31,0.18));
}

@media (max-width: 1200px) { .hero-visual { width: 320px; } }
@media (max-width: 1050px) { .hero-visual { display: none; } }

/* =====================================================
   WORLD JOURNEY SVG  (About section)
   ===================================================== */
.world-journey-wrap {
  margin-top: 40px;
  padding: 28px 28px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.world-journey-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%,
    var(--color-primary) 20%, var(--color-accent) 50%,
    var(--color-purple) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: journeyFlow 5s linear infinite;
}
.world-journey-header {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.world-journey-header::after {
  content: ''; flex: 1; height: 1px; background: var(--color-border);
}
.world-journey-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   RESEARCH CARD THUMBNAILS
   ===================================================== */
.project-thumb {
  width: 100%;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.project-thumb svg {
  width: 100%; height: 100%;
  display: block;
}
.project-card:hover .project-thumb {
  border-color: rgba(212,133,31,0.28);
}

/* =====================================================
   ABOUT  – no longer using journey-track, remove residual space
   ===================================================== */
.journey-track { display: none; }
