/* ============================================================
   ABIODUN AYODEJI — Portfolio
   styles.css
   ============================================================ */

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

:root {
  --bg:          #080b12;
  --bg-2:        #0d1117;
  --bg-card:     #0f1520;
  --bg-card-2:   #141b28;
  --border:      rgba(255,255,255,0.07);
  --border-glow: rgba(0,210,255,0.25);
  --text:        #e2e8f0;
  --text-muted:  #8899aa;
  --text-dim:    #556070;
  --accent:      #00d4ff;
  --accent-2:    #7c3aed;
  --accent-3:    #06d6a0;
  --gradient:    linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-2:  linear-gradient(135deg, #06d6a0 0%, #00d4ff 100%);
  --radius:      12px;
  --radius-lg:   20px;
  --font:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --nav-h:       64px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

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

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

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 3px; }

/* ── Utility ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 32px rgba(0,212,255,0.2);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,212,255,0.35);
}

.btn--ghost {
  border: 1.5px solid var(--border-glow);
  color: var(--accent);
  background: rgba(0,212,255,0.05);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(0,212,255,0.12);
  transform: translateY(-2px);
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section__label.center { display: block; text-align: center; }

.section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.section__title.center { text-align: center; }

.section__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 60px;
}
.section__sub.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(8,11,18,0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(8,11,18,0.88);
  border-color: var(--border);
  backdrop-filter: blur(20px);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.nav__links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav__links a {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__cta {
  background: rgba(0,212,255,0.1) !important;
  border: 1px solid rgba(0,212,255,0.3) !important;
  color: var(--accent) !important;
  padding: 8px 18px !important;
}
.nav__cta:hover {
  background: rgba(0,212,255,0.18) !important;
  color: var(--accent) !important;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(8,11,18,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 99;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.hero__glow--1 {
  width: 700px; height: 700px;
  background: var(--accent);
  top: -200px; left: -200px;
}
.hero__glow--2 {
  width: 600px; height: 600px;
  background: var(--accent-2);
  bottom: -200px; right: -100px;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--mono);
}

.hero__name {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 48px;
  font-style: italic;
  line-height: 1.7;
}
.hero__tagline--highlight {
  color: rgba(0, 212, 255, 0.7);
  font-style: normal;
  letter-spacing: 0.08em;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13,17,23,0.7);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.stat {
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat__value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat__sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__award {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(255,200,0,0.08);
  border: 1px solid rgba(255,200,0,0.3);
  color: #ffd700;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__award-icon {
  font-size: 1rem;
  line-height: 1;
}

.badge--award {
  background: rgba(255,200,0,0.08);
  border-color: rgba(255,200,0,0.3);
  color: #ffd700;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__scroll-line {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.about__body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about__body strong { color: var(--text); }

.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  letter-spacing: 0.02em;
}

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

.about__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.about__avatar {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}
.avatar__photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.about__links {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.about__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.about__link:hover {
  color: var(--accent);
  border-color: var(--border-glow);
  background: rgba(0,212,255,0.05);
}

.about__affil {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.affil__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.affil__org {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.affil__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise {
  background: var(--bg);
}

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

.expertise__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.expertise__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.expertise__card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.expertise__card:hover::before { opacity: 1; }

.expertise__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.expertise__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.expertise__card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.expertise__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.expertise__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* Tech stack */
.techstack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.techstack__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.techstack__groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.techstack__group {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 20px;
}
.techstack__cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.techstack__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.techstack__items span {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  transition: border-color 0.2s, color 0.2s;
}
.techstack__items span:hover {
  border-color: var(--border-glow);
  color: var(--accent);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 5%, var(--border) 95%, transparent);
}

.timeline__item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 56px;
}

.timeline__marker {
  position: absolute;
  left: -6px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 20px rgba(0,212,255,0.5);
}

.timeline__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s;
}
.timeline__item:hover .timeline__content {
  border-color: var(--border-glow);
}

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

.timeline__role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.timeline__org {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline__date {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text-dim);
  white-space: nowrap;
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline__bullets {
  margin-bottom: 16px;
  padding-left: 4px;
}
.timeline__bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.6;
}
.timeline__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  color: #67d9f0;
  font-family: var(--mono);
}

/* ============================================================
   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-lg);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project__card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.project__card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(124,58,237,0.06) 100%);
  border-color: rgba(0,212,255,0.2);
}
.project__card--featured:hover {
  border-color: rgba(0,212,255,0.5);
}

.project__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--gradient);
  color: #fff;
  margin-bottom: 4px;
}

.project__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.project__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.project__role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--mono);
}

.project__funder {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-3);
  background: rgba(6,214,160,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(6,214,160,0.2);
}

.project__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.project__card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project__tags span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.publications {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pub__stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.pub__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pub__stat-value {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pub__stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pub__list {
  max-width: 820px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  border-radius: 0;
}
.pub__item:first-child { border-top: 1px solid var(--border); }
.pub__item:hover { background: rgba(255,255,255,0.02); }

.pub__year {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
  padding-top: 3px;
}

.pub__body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}

.pub__journal {
  font-size: 0.83rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 10px;
}

.pub__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pub__tags span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: #a78bfa;
  font-family: var(--mono);
}

.pub__cta {
  text-align: center;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg);
}

.contact__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  text-align: left;
}
.contact__card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.contact__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

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

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

.footer__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer__title {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ============================================================
   BLOG
   ============================================================ */

/* Blog hero */
.blog-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}
.blog-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blog-hero__glow--1 {
  position: absolute;
  top: -100px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.blog-hero__glow--2 {
  position: absolute;
  bottom: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.blog-hero__content {
  position: relative;
  max-width: 700px;
}
.blog-hero__title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.blog-hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 580px;
}
.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-hero__tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
}

/* Post tags */
.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 3px 10px;
  border-radius: 4px;
}
.post-tag--featured {
  color: var(--accent-3);
  background: rgba(6,214,160,0.1);
  border-color: rgba(6,214,160,0.25);
}

/* Featured post */
.blog__featured {
  margin-bottom: 32px;
}

/* Post cards */
.post-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.post-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0,212,255,0.1);
}
.post-card--featured {
  background: var(--bg-card-2);
  border-color: rgba(0,212,255,0.15);
}
.post-card--soon {
  opacity: 0.65;
  cursor: default;
}
.post-card--soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.post-card__label {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.post-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
  transition: color 0.2s;
}
.post-card:hover .post-card__title { color: var(--accent); }
.post-card--featured .post-card__title { font-size: 1.7rem; }
.post-card--soon:hover .post-card__title { color: var(--text); }
.post-card__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.post-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-glow);
}
.post-card__author-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.post-card__date {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.post-card__read-time {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--mono);
  white-space: nowrap;
}

/* Blog grid */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

/* Subscribe section */
.blog__subscribe {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 40px;
}
.blog__subscribe-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.blog__subscribe-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.blog__subscribe-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog__subscribe-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Series block */
.series-block {
  margin-bottom: 56px;
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.series-block__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.series-block__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.series-block__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.series-block__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}
.series-block__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Rabbi series post card */
.post-card--rabbi {
  border-color: rgba(124,58,237,0.2);
  background: rgba(124,58,237,0.04);
}
.post-card--rabbi:hover {
  border-color: rgba(124,58,237,0.45);
  box-shadow: 0 12px 48px rgba(124,58,237,0.12);
}

/* Rabbi post tag */
.post-tag--rabbi {
  color: var(--accent-2);
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.25);
}

/* ── POST PAGE ── */
.post-hero {
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--border);
}
.post-hero__inner {
  max-width: 760px;
}
.post-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color 0.2s;
}
.post-hero__back:hover { color: var(--accent); }
.post-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.post-hero__date {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--mono);
}
.post-hero__title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.post-hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Post body */
.post-body {
  padding: 72px 0 100px;
}
.post-body__inner {
  max-width: 720px;
}
.post-body__lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--text);
}
.post-body h2:first-of-type { margin-top: 0; }
.post-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.post-body ul,
.post-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-body strong { color: var(--text); font-weight: 600; }
.post-body em { color: var(--accent); font-style: normal; font-weight: 500; }

/* Prose variant — for narrative/dialogue posts */
.post-body--prose p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 14px;
  color: var(--text);
}
.post-body--prose .post-body__lead {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
}
.post-body__pause {
  margin-top: 32px !important;
  margin-bottom: 32px !important;
  color: var(--accent) !important;
  font-style: italic;
}
.post-body__close {
  margin-top: 32px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  font-size: 1.1rem !important;
  border-left: 3px solid var(--accent-2);
  padding-left: 20px;
}

.post-body__end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-body__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .expertise__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project__card--featured { grid-column: span 1; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__aside { flex-direction: row; flex-wrap: wrap; }
  .about__card { flex: 1; min-width: 240px; }
  .about__affil { flex: 1; min-width: 200px; }
  .techstack__group { grid-template-columns: 120px 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .section { padding: 72px 0; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stat__sep { display: none; }
  .stat { padding: 18px 20px; border: 1px solid var(--border); border-radius: 0; }

  .expertise__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }

  .timeline::before { display: none; }
  .timeline__item { padding-left: 0; }
  .timeline__marker { display: none; }
  .timeline__header { flex-direction: column; gap: 12px; }

  .pub__stats { gap: 32px; }
  .pub__item { grid-template-columns: 48px 1fr; gap: 16px; }

  .contact__cards { grid-template-columns: 1fr; }

  .techstack__group { grid-template-columns: 1fr; gap: 8px; }
  .techstack__cat { font-size: 0.75rem; }

  .blog__grid { grid-template-columns: 1fr; }
  .post-card--featured .post-card__title { font-size: 1.4rem; }
  .blog__subscribe { padding: 40px 28px; }
  .post-hero { padding: 110px 0 48px; }
  .post-body__end { flex-direction: column; align-items: flex-start; }
  .series-block { padding: 28px 24px; }
  .series-block__header { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero__name { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; justify-content: center; }

  .timeline__content { padding: 22px 18px; }
  .techstack { padding: 24px 18px; }
  .blog__grid { grid-template-columns: 1fr; }
  .post-card--featured { padding: 28px 22px; }
  .post-hero__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .post-body__inner { padding: 0; }
}
}
