/* ─── TOKENS ─── */
:root {
  --bg: #111e2d;
  --bg-card: #1e3452;
  --bg-hover: #264268;
  --border: #2e4f78;
  --border-muted: #1c3250;
  --text: #edf5ff;
  --text-muted: #7b9abf;
  --text-faint: #3d5a7a;
  --accent: #f59820;
  --accent-dim: rgba(245, 152, 32, 0.10);
  --accent-hover: #f8ac3a;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-width: 1100px;
  --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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: rgba(17, 30, 45, 0.75);
  border-bottom: 1px solid var(--border-muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(17, 30, 45, 0.97);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-brand:hover { color: var(--text); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a svg { flex-shrink: 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}
.hero-content { min-width: 0; }
.hero-photo {
  opacity: 0;
  animation: fadeUp 0.9s 0.7s ease forwards;
}
.hero-headshot {
  width: 100%;
  border-radius: 6px;
  display: block;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.6s 0.15s ease forwards;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(60px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.75s 0.25s ease forwards;
}
.hero-tagline {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.75s 0.4s ease forwards;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.75s 0.5s ease forwards;
}
.hero-stat { display: flex; flex-direction: column; gap: 6px; }
.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--text);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.75s 0.55s ease forwards;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.75s 0.62s ease forwards;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #13202f;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
  transform: translateY(-2px);
}

/* ─── SECTION SHELL ─── */
.section {
  padding: 96px 40px;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 56px;
  color: var(--text);
}

/* ─── THREE-CARD STRIP ─── */
.strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.strip-card {
  background: var(--bg-card);
  padding: 52px 40px;
  transition: background 0.2s;
}
.strip-card:hover { background: var(--bg-hover); }
.strip-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 14px;
}
.strip-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── TIMELINE (EXPERIENCE) ─── */
.timeline {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-muted);
}
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-muted);
  position: relative;
  transition: padding-left 0.2s;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.2s;
}
.timeline-item:hover::before { background: var(--accent); }
.timeline-meta { padding-top: 3px; }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}
.timeline-badge {
  display: inline-block;
  padding: 3px 9px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 152, 32, 0.35);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}
.timeline-company {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.15;
}
.timeline-company-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.timeline-company-list span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
}
.timeline-company-list span + span::before {
  content: '·';
  margin-right: 8px;
  color: var(--text-muted);
  font-weight: 400;
}
.timeline-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.timeline-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}

/* ─── TECH STACK ─── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 52px 88px;
}
.stack-category h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-tag {
  display: inline-block;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.stack-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ─── WRITING ─── */
.writing-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}
.see-all {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.see-all:hover { color: var(--accent); border-color: var(--accent); }
.posts-list { display: flex; flex-direction: column; }
.post-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-muted);
  transition: color 0.2s;
}
.post-item:first-child { border-top: 1px solid var(--border-muted); }
.post-item:hover .post-title { color: var(--accent); }
.post-title { font-size: 16px; color: var(--text); transition: color 0.2s; flex: 1; }
.post-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ─── CONNECT ─── */
.connect-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
}
.connect-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(40px, 6vw, 76px);
  color: var(--text);
  line-height: 0.95;
  margin-bottom: 24px;
}
.connect-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 52px;
  line-height: 1.7;
}
.connect-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.connect-link svg { flex-shrink: 0; }
.connect-link:hover { color: var(--accent); border-color: var(--accent); }

/* ─── FOOTER ─── */

/* ─── ABOUT PAGE ─── */
.page-header {
  padding: calc(var(--nav-h) + 80px) 40px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border-muted);
}
.page-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.92;
  color: var(--text);
}
.about-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}
.about-prose p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.about-prose a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.about-prose a:hover { border-color: var(--accent); }
.about-prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--text);
  margin: 52px 0 20px;
  line-height: 1.2;
}
.about-prose ul, .about-prose ol {
  margin: 0 0 28px 20px;
}
.about-prose li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}
.about-sidebar { position: sticky; top: calc(var(--nav-h) + 32px); }
.about-headshot {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.1);
}
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 24px;
  margin-bottom: 16px;
}
.sidebar-widget-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-muted);
  transition: color 0.2s;
}
.sidebar-item svg { flex-shrink: 0; }
.sidebar-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-item:hover { color: var(--text); }

/* ─── BLOG LIST PAGE ─── */
.blog-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 72px) 40px 100px;
}
.blog-page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 64px;
}
.year-group { margin-bottom: 52px; }
.year-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-muted);
}
.year-post {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-muted);
  transition: color 0.2s;
}
.year-post:hover { color: var(--text); }
.year-post-title { font-size: 16px; line-height: 1.4; transition: color 0.2s; }
.year-post:hover .year-post-title { color: var(--accent); }
.year-post-date {
  font-family: var(--font-mono);
  font-size: 11px;
  flex-shrink: 0;
}

/* ─── BLOG POST ─── */
.post-page {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 40px 100px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 64px;
  transition: color 0.2s;
}
.post-back:hover { color: var(--accent); }
.post-head { margin-bottom: 56px; }
.post-head-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
}
.post-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  color: var(--text);
}
.post-content { font-size: 17px; line-height: 1.85; color: var(--text-muted); }
.post-content p { margin-bottom: 28px; }
.post-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--text);
  margin: 52px 0 20px;
}
.post-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--text);
  margin: 40px 0 16px;
}
.post-content a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.post-content a:hover { border-color: var(--accent); }
.post-content ul, .post-content ol { margin: 0 0 28px 22px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 12px 0 12px 28px;
  margin: 36px 0;
  font-style: italic;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 2px;
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 28px;
  border-radius: 2px;
}
.post-content pre code { background: none; border: none; padding: 0; }
.post-content strong { color: var(--text); font-weight: 500; }

/* ─── ANIMATION ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .strip-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .stack-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-body { grid-template-columns: 1fr; gap: 0; }
  .about-sidebar { position: static; margin-top: 56px; }
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 200px;
    gap: 48px;
    align-items: start;
  }
  .hero-photo { align-self: start; margin-top: 6px; }
}
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .nav-link-text { display: none; }
  .nav-links a svg { width: 20px; height: 20px; }
  .nav-links li:has(.nav-link-text) a { padding: 8px; margin: -8px; }
  .section { padding: 72px 20px; }
  .hero-inner {
    padding: 72px 20px;
    grid-template-columns: 1fr 100px;
    gap: 16px;
    align-items: start;
  }
  .hero-photo { max-width: 100px; align-self: start; margin-top: 6px; }
  .hero-name { font-size: clamp(36px, 9vw, 48px); margin-bottom: 24px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .page-header { padding: calc(var(--nav-h) + 52px) 20px 48px; }
  .about-body { padding: 52px 20px 80px; }
  .blog-page { padding: calc(var(--nav-h) + 48px) 20px 80px; }
  .post-page { padding: calc(var(--nav-h) + 48px) 20px 80px; }
}
