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

:root {
  --bg: #0c0c0b;
  --bg2: #141412;
  --line: #2a2a26;
  --dot: #c8a96e;
  --text: #e8e4dc;
  --muted: #7a7870;
  --accent: #c8a96e;
  --accent2: #8fb8a0;
  --now: #e8765a;
  --tag-bg: rgba(200,169,110,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(12,12,11,0.95) 0%, transparent 100%);
}
.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--text);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 120px 80px 80px;
  position: relative; overflow: hidden;
}
.hero-ghost {
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(160px, 22vw, 320px);
  font-weight: 300; color: rgba(255,255,255,0.02);
  line-height: 1; pointer-events: none; user-select: none;
  white-space: nowrap;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 40px; height: 1px; background: var(--accent);
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 300; line-height: 1;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.hero-name em { font-style: italic; color: var(--accent); }
.hero-title {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--muted); margin-bottom: 36px;
  font-weight: 300; max-width: 600px;
}
.hero-summary {
  max-width: 640px; font-size: 15px; color: rgba(232,228,220,0.65);
  line-height: 1.8; margin-bottom: 48px;
}
.hero-links { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-link {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.hero-link:hover { color: var(--accent); border-color: var(--accent); }
.scroll-hint {
  position: absolute; bottom: 40px; left: 80px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 12px;
}
.scroll-line {
  width: 1px; height: 48px; background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3 } 50% { opacity: 1 } }

/* NOW BADGE */
.now-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,118,90,0.1); border: 1px solid rgba(232,118,90,0.25);
  color: var(--now); padding: 6px 14px; border-radius: 20px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 24px;
}
.now-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--now);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

/* TIMELINE SECTION */
.timeline-section {
  padding: 0 80px 120px;
  max-width: 1100px; margin: 0 auto;
  position: relative;
}
.section-header {
  padding: 80px 0 60px;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 24px;
}
.section-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); flex-shrink: 0;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; color: var(--text);
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--accent) 0%, var(--line) 30%, var(--line) 80%, transparent 100%);
}

.tl-item {
  position: relative; margin-bottom: 0;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tl-item.visible { opacity: 1; transform: translateY(0); }

.tl-dot {
  position: absolute; left: -44px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot); border: 1px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tl-item:hover .tl-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(200,169,110,0.12);
}
.tl-dot.now {
  background: var(--now);
  box-shadow: 0 0 0 3px rgba(232,118,90,0.2), 0 0 12px rgba(232,118,90,0.4);
  animation: nowGlow 2s ease-in-out infinite;
}
@keyframes nowGlow {
  0%,100% { box-shadow: 0 0 0 3px rgba(232,118,90,0.2), 0 0 12px rgba(232,118,90,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(232,118,90,0.1), 0 0 20px rgba(232,118,90,0.5); }
}
.tl-dot.edu { background: var(--accent2); box-shadow: 0 0 0 3px rgba(143,184,160,0.15); }

.tl-content {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}
.tl-item:last-child .tl-content { border-bottom: none; }

.tl-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.tl-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; font-weight: 400; color: var(--accent);
  letter-spacing: 0.08em;
}
.tl-org {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 2px 10px;
  border: 1px solid var(--line); border-radius: 20px;
}
.tl-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 30px); font-weight: 400;
  line-height: 1.2; margin-bottom: 12px;
  color: var(--text);
}
.tl-role em { font-style: italic; color: var(--accent); }
.tl-desc {
  font-size: 14px; color: rgba(232,228,220,0.55);
  line-height: 1.8; max-width: 580px; margin-bottom: 16px;
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tl-tag {
  font-size: 11px; letter-spacing: 0.05em;
  color: var(--muted); background: var(--tag-bg);
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(200,169,110,0.1);
}
.tl-tag.highlight { color: var(--accent); border-color: rgba(200,169,110,0.25); }
.tl-awards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tl-award {
  font-size: 11px; color: var(--accent2);
  border: 1px solid rgba(143,184,160,0.25);
  padding: 3px 12px; border-radius: 20px;
  background: rgba(143,184,160,0.05);
}
.tl-award.patent {
  color: #b8a06e; border-color: rgba(184,160,110,0.25);
  background: rgba(184,160,110,0.05);
}
.tl-award.speak {
  color: var(--now); border-color: rgba(232,118,90,0.25);
  background: rgba(232,118,90,0.05);
}

/* STATS ROW */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  margin: 0 0 80px; border: 1px solid var(--line);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.stats-row.visible { opacity: 1; transform: translateY(0); }
.stat {
  background: var(--bg2); padding: 40px 36px;
  transition: background 0.3s;
}
.stat:hover { background: rgba(200,169,110,0.04); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300; line-height: 1;
  color: var(--accent); margin-bottom: 8px;
}
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

/* CERTS ROW */
.certs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cert-item {
  background: var(--bg2); padding: 24px 28px;
  transition: background 0.3s;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s;
}
.cert-item.visible { opacity: 1; transform: translateY(0); }
.cert-item:hover { background: rgba(200,169,110,0.04); }
.cert-year { font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 8px; }
.cert-name { font-size: 14px; color: var(--text); line-height: 1.4; margin-bottom: 4px; }
.cert-issuer { font-size: 12px; color: var(--muted); }

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 80px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 300; color: var(--text);
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }

/* BLOGS */
.blogs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.blog-card {
  background: var(--bg2); padding: 32px;
  transition: background 0.3s, transform 0.3s;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
}
.blog-card.visible { opacity: 1; transform: translateY(0); }
.blog-card:hover { background: rgba(200,169,110,0.04); border-color: rgba(200,169,110,0.15); }
.blog-date { font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 12px; }
.blog-title { font-size: 18px; color: var(--text); line-height: 1.4; margin-bottom: 12px; font-weight: 400; }
.blog-excerpt { font-size: 14px; color: rgba(232,228,220,0.55); line-height: 1.6; margin-bottom: 16px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-tag { font-size: 10px; color: var(--muted); background: var(--tag-bg); padding: 3px 10px; border-radius: 16px; border: 1px solid rgba(200,169,110,0.1); }

/* BLOG MODAL */
.blog-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.blog-modal.active { display: flex; }
.blog-modal-content {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 8px; max-width: 800px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 40px;
  position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.blog-modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: var(--muted);
  font-size: 24px; cursor: pointer; transition: color 0.3s;
}
.blog-modal-close:hover { color: var(--accent); }
.blog-modal-title { font-size: 32px; margin-bottom: 12px; color: var(--text); }
.blog-modal-meta { font-size: 12px; color: var(--muted); margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.blog-modal-body {
  font-size: 15px; line-height: 1.8; color: rgba(232,228,220,0.8);
}
.blog-modal-body h1, .blog-modal-body h2, .blog-modal-body h3 { margin-top: 24px; margin-bottom: 12px; color: var(--text); }
.blog-modal-body h1 { font-size: 24px; }
.blog-modal-body h2 { font-size: 20px; }
.blog-modal-body h3 { font-size: 16px; }
.blog-modal-body p { margin-bottom: 16px; }
.blog-modal-body code {
  background: rgba(200,169,110,0.08); padding: 2px 6px; border-radius: 3px;
  font-family: 'Courier New', monospace; font-size: 13px; color: var(--accent);
}
.blog-modal-body pre {
  background: rgba(0,0,0,0.3); border: 1px solid var(--line); padding: 16px;
  border-radius: 6px; overflow-x: auto; margin: 16px 0;
}
.blog-modal-body pre code { background: none; padding: 0; color: rgba(232,228,220,0.8); }
.blog-modal-body blockquote {
  border-left: 3px solid var(--accent); padding-left: 16px; margin: 16px 0;
  color: rgba(232,228,220,0.65); font-style: italic;
}
.blog-modal-body ul, .blog-modal-body ol { margin-left: 24px; margin-bottom: 16px; }
.blog-modal-body li { margin-bottom: 8px; }
.blog-modal-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); transition: color 0.3s; }
.blog-modal-body a:hover { color: var(--accent2); }

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .hero { padding: 100px 24px 60px; }
  .timeline-section { padding: 0 24px 80px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 40px 24px; flex-direction: column; }
  .scroll-hint { left: 24px; }
}
