/* ════════════════════════════════════════════════════
   Natheer Khasawneh — Personal Website
   Design: Modern Academic / Tech Professional
   ════════════════════════════════════════════════════ */

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

:root {
  --bg:         #080e1a;
  --bg-alt:     #0d1525;
  --bg-card:    #111827;
  --bg-card-2:  #161f30;
  --border:     rgba(255,255,255,0.07);
  --border-h:   rgba(99,179,237,0.3);
  --accent:     #3b9eff;
  --accent-2:   #63b3ed;
  --accent-glow:rgba(59,158,255,0.18);
  --text:       #e2e8f0;
  --text-muted: #6b7a99;
  --text-faint: #3a4560;
  --white:      #ffffff;
  --green:      #10b981;
  --font:       'Inter', system-ui, sans-serif;
  --mono:       'JetBrains Mono', monospace;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 32px rgba(0,0,0,0.5);
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.dot { color: var(--accent); }

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(8,14,26,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.6); }

.nav-inner {
  width: 100%; max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 6px 16px !important;
  border-radius: 100px !important;
}
.nav-cta:hover { background: var(--accent-2) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Sections shared ── */
section { padding: 100px 0; }

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.15;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: -32px;
  margin-bottom: 48px;
  max-width: 600px;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 65% 45%, rgba(59,158,255,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(99,102,241,0.06) 0%, transparent 60%),
    var(--bg);
}

.hero-visual {
  position: absolute; inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.orb-1 { width: 600px; height: 600px; background: #3b9eff; top: -100px; right: -100px; animation: orb-drift 12s ease-in-out infinite alternate; }
.orb-2 { width: 400px; height: 400px; background: #6366f1; bottom: 0; left: -100px; animation: orb-drift 16s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 250px; height: 250px; background: #10b981; top: 40%; right: 20%; animation: orb-drift 10s ease-in-out infinite alternate; }

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  background: rgba(16,185,129,0.07);
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero-summary {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-plus { color: var(--accent); font-size: 1.1rem; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); margin: 0 20px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: #5aadff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,158,255,0.3); }

.btn-outline {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,0.05); }

/* ── About ── */
#about { background: var(--bg-alt); }

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

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.expertise-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(59,158,255,0.08);
}
.expertise-icon { font-size: 1.5rem; margin-bottom: 10px; }
.expertise-title { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.expertise-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ── Experience / Timeline ── */
#experience { background: var(--bg); }

.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px rgba(59,158,255,0.5);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: all var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 40px rgba(59,158,255,0.08);
  transform: translateX(6px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.timeline-role { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.timeline-org { font-size: 0.875rem; color: var(--accent); font-weight: 500; }
.timeline-period {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-points li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}
.timeline-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ── Education ── */
#education { background: var(--bg-alt); }

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

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
}
.edu-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,158,255,0.1);
}

.edu-level {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.edu-degree {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.edu-school {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 10px;
}
.edu-year {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Projects ── */
#projects { background: var(--bg); }

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
  cursor: default;
}
.project-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(59,158,255,0.1);
}

.project-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-funding {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 4px;
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.project-year {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: auto;
}

/* ── Skills ── */
#skills { background: var(--bg-alt); }

.skills-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skill-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.skill-tag {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: default;
}
.skill-tag.primary {
  background: rgba(59,158,255,0.1);
  border: 1px solid rgba(59,158,255,0.25);
  color: var(--accent-2);
}
.skill-tag.secondary {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
}
.skill-tag.tertiary {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.22);
  color: #6ee7b7;
}
.skill-tag:hover { transform: translateY(-2px); filter: brightness(1.2); }

/* ── Research Interests ── */
#research-interests { background: var(--bg); }

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

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all var(--transition);
}
.interest-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(59,158,255,0.08);
}
.interest-icon { font-size: 1.5rem; margin-bottom: 10px; }
.interest-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.35;
}
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.interest-tags span {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 9px;
  line-height: 1.4;
}

/* ── Publications ── */
#publications { background: var(--bg-alt); }

.scholar-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.scholar-link:hover { text-decoration: underline; }

/* Research statement */
.research-statement {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin-bottom: 36px;
  background: rgba(59,158,255,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
}

/* Scroll-to-top button */
#scrollTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59,158,255,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99;
}
#scrollTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#scrollTop:hover {
  background: #5aadff;
  transform: translateY(-2px);
}

.pub-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pub-filter {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.pub-filter:hover { border-color: var(--accent); color: var(--accent); }
.pub-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.pub-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 1px 7px;
}
.pub-filter.active .pub-count { background: rgba(255,255,255,0.25); }

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

.pub-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}
.pub-item:hover {
  border-color: var(--border-h);
  background: var(--bg-card-2);
  transform: translateX(4px);
}
.pub-item.hidden { display: none; }

.pub-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  margin-top: 2px;
}
.pub-badge.journal {
  background: rgba(59,158,255,0.12);
  color: var(--accent-2);
  border: 1px solid rgba(59,158,255,0.2);
}
.pub-badge.conference {
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
}

.pub-body { flex: 1; min-width: 0; }
.pub-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 5px;
}
.pub-authors {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pub-venue {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pub-venue em { color: var(--text); font-style: italic; }
.pub-doi {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.pub-doi:hover { text-decoration: underline; }

.pub-year {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  padding-top: 2px;
  min-width: 36px;
  text-align: right;
}

.pub-show-more {
  text-align: center;
  margin-top: 28px;
}

/* ── Contact ── */
#contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.contact-card:not(.no-link):hover {
  border-color: var(--border-h);
  background: var(--bg-card-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,158,255,0.1);
}

.contact-icon { font-size: 1.75rem; margin-bottom: 4px; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; font-family: var(--mono); }
.contact-value { font-size: 0.95rem; color: var(--text); font-weight: 500; }
a.contact-card .contact-value { color: var(--accent); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── Scroll fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .interests-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .edu-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .interests-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-item { flex-wrap: wrap; }
  .pub-year { min-width: auto; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .edu-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .interests-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .timeline { padding-left: 24px; }
  .timeline-marker { left: -28px; }
  .timeline-card { padding: 20px; }
  .timeline-header { flex-direction: column; gap: 8px; }
  .pub-item { padding: 16px; }
  .pub-badge { font-size: 0.62rem; }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}
