/* ============================================
   ML HEROES — DESIGN SYSTEM
   Dark editorial aesthetic · Bebas + DM Serif + IBM Plex Mono
   ============================================ */

:root {
  --bg: #080c10;
  --bg-2: #0d1117;
  --bg-3: #111827;
  --surface: #161d28;
  --surface-2: #1e2a38;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.14);

  --text: #f0f4f8;
  --text-muted: #7a8fa8;
  --text-dim: #3d5166;

  --accent: #38bdf8;
  --accent-glow: rgba(56,189,248,0.15);
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245,158,11,0.12);

  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Manrope', sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --nav-h: 64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── UTILITY ── */
.mono { font-family: var(--font-mono); }
.small { font-size: 0.75rem; }
.mt { margin-top: 2rem; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.2s;
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}

/* ── HERO SECTION ── */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 5vw, 5rem) 5rem;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  opacity: 0.4;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(56,189,248,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(56,189,248,0); }
}
.hero-eyebrow .mono {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.hero-title .line { display: block; }
.hero-title .line1 { color: var(--text-dim); font-size: 0.5em; letter-spacing: 0.15em; }
.hero-title .line2 { color: var(--text); }
.hero-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.85em;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-primary:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56,189,248,0.3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── HERO VISUAL (right side) ── */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(56,189,248,0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-drift 8s ease-in-out infinite alternate;
}
.orb2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  top: 20%; right: 10%;
  animation: orb-drift 11s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift {
  from { transform: translate(-50%,-50%) scale(1); }
  to { transform: translate(-50%,-50%) scale(1.15) rotate(20deg); }
}
.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.2rem;
  backdrop-filter: blur(12px);
  min-width: 190px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.floating-card:hover { transform: scale(1.04); }
.floating-card .mono { color: var(--accent); font-size: 0.7rem; display: block; margin-bottom: 0.3rem; }
.floating-card p { font-size: 0.85rem; color: var(--text-muted); }
.card-a { top: 10%; left: 5%; animation: float 6s ease-in-out infinite; }
.card-b { top: 55%; left: 0%; animation: float 8s ease-in-out infinite 1s; }
.card-c { top: 25%; right: 0%; animation: float 7s ease-in-out infinite 2s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── STATS STRIP ── */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2.5rem clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent);
  letter-spacing: 0.05em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border-bright);
  flex-shrink: 0;
}

/* ── SECTION HEADERS ── */
.section-header {
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

/* ── FEATURED SECTION ── */
.featured-section {
  padding: 6rem 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  margin-bottom: 3rem;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
}
.hero-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,189,248,0.1);
}
.hero-card-img {
  height: 160px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.hero-card-glyph {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(255,255,255,0.08);
  position: absolute;
  top: 1rem; right: 1rem;
  letter-spacing: 0.05em;
  line-height: 1;
}
.hero-card-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}
.hero-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.hero-card-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.8rem;
}
.hero-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  transition: letter-spacing 0.2s;
}
.hero-card:hover .read-more { letter-spacing: 0.12em; }
.featured-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-gold);
  color: var(--bg);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}
.view-all-row {
  display: flex;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* ── QUOTE BANNER ── */
.quote-banner {
  padding: 6rem clamp(1.5rem, 5vw, 5rem);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.quote-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(56,189,248,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.quote-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-family: var(--font-serif);
  font-size: 6rem;
  color: rgba(56,189,248,0.15);
  line-height: 0.5;
  display: block;
  margin-bottom: 1rem;
}
blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
cite {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-style: normal;
}

/* ── TIMELINE ── */
.timeline-section {
  padding: 6rem 0;
}
.timeline {
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: calc(clamp(1.5rem, 5vw, 5rem) + 5.5rem);
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-bright) 10%, var(--border-bright) 90%, transparent);
}
.tl-item {
  display: grid;
  grid-template-columns: 5rem 24px 1fr;
  gap: 0 1.5rem;
  align-items: start;
  padding: 2rem 0;
  opacity: 0;
  transform: translateX(-20px);
  animation: tl-reveal 0.5s forwards;
}
.tl-item:nth-child(1) { animation-delay: 0.1s; }
.tl-item:nth-child(2) { animation-delay: 0.2s; }
.tl-item:nth-child(3) { animation-delay: 0.3s; }
.tl-item:nth-child(4) { animation-delay: 0.4s; }
.tl-item:nth-child(5) { animation-delay: 0.5s; }
.tl-item:nth-child(6) { animation-delay: 0.6s; }
@keyframes tl-reveal {
  to { opacity: 1; transform: translateX(0); }
}
.tl-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-align: right;
  padding-top: 0.15rem;
}
.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  margin-top: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(56,189,248,0.4);
  position: relative;
  z-index: 1;
}
.tl-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.tl-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: calc(var(--nav-h) + 5rem) clamp(1.5rem, 5vw, 5rem) 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin: 0.5rem 0 1.5rem;
}
.page-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}
.page-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.05rem;
}

/* ── FILTER CHIPS ── */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.1rem;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ── HEROES FULL GRID ── */
.heroes-list-section {
  padding: 3rem 0 6rem;
}
.heroes-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.hcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.hcard:hover {
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}
.hcard-header {
  height: 120px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
}
.hcard-initials {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(255,255,255,0.15);
  line-height: 1;
}
.hcard-era-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  align-self: flex-start;
}
.hcard-body {
  padding: 1.4rem;
  flex: 1;
}
.hcard-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.hcard-meta .mono { color: var(--accent); }
.hcard-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}
.hcard-title-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.8rem;
}
.hcard-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.hcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  color: var(--accent);
  border-radius: 3px;
}

/* ── PROFILE PAGES ── */
.profile-hero {
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.profile-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(var(--accent, 56 189 248) / 0.12) 0%, transparent 70%);
}
.profile-hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.back-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: color 0.2s;
  width: fit-content;
}
.back-link:hover { color: var(--accent); }
.profile-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
}
.profile-era {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.profile-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}
.profile-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.profile-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── PROFILE BODY ── */
.profile-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 4rem clamp(1.5rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 3rem;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.sidebar-card h4 {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.83rem;
}
.sidebar-card dt { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.sidebar-card dd { color: var(--text); }
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.pub-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pub-list .mono { color: var(--accent); }

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.profile-section {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.profile-section:last-child { border-bottom: none; }
.profile-section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.profile-section p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.highlight-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box .mono { color: var(--accent); font-size: 0.7rem; display: block; margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.highlight-box p { color: var(--text); font-size: 0.92rem; margin-bottom: 0; }

/* ── NEXT HERO BAR ── */
.next-hero-bar {
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.next-hero-bar > .mono { color: var(--text-muted); font-size: 0.72rem; }
.next-hero-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.2s;
}
.next-hero-link:hover { opacity: 0.7; }
.next-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
}
.next-hero-link strong { display: block; font-size: 0.95rem; }
.next-hero-link p { font-size: 0.8rem; color: var(--text-muted); }

/* ── ABOUT PAGE ── */
.about-section {
  padding: 5rem clamp(1.5rem, 5vw, 5rem);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  max-width: 1100px;
}
.about-main h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.about-main p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}
.about-list {
  list-style: none;
  margin: 1rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.about-list li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.values-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value-item {
  background: var(--bg-2);
  padding: 3rem clamp(1.5rem, 3vw, 3rem);
}
.value-icon {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.value-item h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.value-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem clamp(1.5rem, 5vw, 5rem);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
}
.footer-logo span { color: var(--accent); }
.footer-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav {
  display: flex;
  gap: 2rem;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 4rem;
  }
  .hero-visual { display: none; }
  .profile-body { grid-template-columns: 1fr; }
  .profile-sidebar { padding-right: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .values-section { grid-template-columns: 1fr; }
  .timeline::before { left: calc(clamp(1.5rem, 5vw, 5rem) + 4.5rem); }
}
@media (max-width: 600px) {
  .stats-strip { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 60px; height: 1px; }
  .nav-links { gap: 1rem; }
  .hero-title { font-size: 3.5rem; }
  .tl-item { grid-template-columns: 3.5rem 20px 1fr; gap: 0 0.75rem; }
}

/* ── PAGE LOAD ANIMATION ── */
body { animation: body-in 0.4s ease-out; }
@keyframes body-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
