:root {
  --navy-950: #070b16;
  --navy-900: #0b1220;
  --navy-800: #111a2e;
  --navy-700: #17223b;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --white: #ffffff;
  --grey-100: #eef1f6;
  --grey-300: #b9c2d4;
  --grey-400: #8a94ab;
  --cyan: #38d6e0;
  --blue: #4f8cff;
  --violet: #8b7bff;
  --shadow: 0 24px 60px rgba(3, 6, 14, 0.45);
  --max: 1180px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--grey-100);
  background: var(--navy-950);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(79, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 15%, rgba(56, 214, 224, 0.10), transparent 55%),
    var(--navy-950);
  color: var(--grey-100);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--navy-950);
  font-weight: 800;
  font-size: 0.82rem;
}

.brand strong { display: block; font-size: 0.96rem; white-space: nowrap; }
.brand small { display: block; margin-top: 2px; color: var(--grey-400); font-size: 0.74rem; }

.site-nav { display: inline-flex; gap: 4px; }

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--grey-300);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.header-cta {
  padding: 0 18px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--grey-100);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 110px) clamp(18px, 5vw, 44px) clamp(40px, 6vw, 60px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(ellipse at top, rgba(79, 140, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-copy { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }

.eyebrow, .section-kicker {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--grey-300);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.hero-credibility {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--grey-400);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.primary-btn, .secondary-btn, .ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--navy-950);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.ghost-btn {
  color: var(--grey-300);
  font-weight: 600;
}

.ghost-btn:hover { color: var(--cyan); }

/* ---------- proof strip ---------- */
.proof-strip {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proof-strip div { padding: 22px 20px; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }

.proof-strip strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--white);
}

.proof-strip span { display: block; color: var(--grey-400); font-size: 0.85rem; line-height: 1.35; }

/* ---------- sections ---------- */
.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 96px) 0;
  border-top: 1px solid var(--line-soft);
}

.section-heading { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-heading h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
}

.about-section .section-heading,
.experience-section .section-heading,
.why-section .section-heading { text-align: left; margin-left: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.about-grid p { color: var(--grey-300); line-height: 1.75; font-size: 1rem; }

/* card grids */
.who-grid, .service-grid, .track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.who-card, .service-card, .track-card, .project-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
}

.who-card h3, .track-card h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
  color: var(--white);
}

.who-card p, .track-card p, .service-card p {
  color: var(--grey-400);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card { position: relative; }
.service-num {
  display: block;
  margin-bottom: 24px;
  color: var(--cyan);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.service-card h3 { font-size: 1.04rem; margin-bottom: 10px; color: var(--white); }

/* ---------- open-source lab ---------- */
.lab-section { border-top: 1px solid var(--line-soft); }

.lab-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--grey-300);
  font-size: 0.98rem;
  line-height: 1.7;
}

.lab-intro strong { color: var(--white); }

.lab-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.lab-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.lab-stats strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.7rem;
  color: var(--cyan);
  margin-bottom: 6px;
}

.lab-stats span { color: var(--grey-400); font-size: 0.82rem; }

/* summary cards: the two top-level entry points into the lab (Done by Me / Library) */
.lab-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.lab-summary-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
}

.lab-summary-card.is-built {
  border-color: rgba(56, 214, 224, 0.35);
  background: linear-gradient(180deg, rgba(56, 214, 224, 0.06), rgba(17, 26, 46, 0.4));
}

.lab-summary-card h3 { font-size: 1.28rem; color: var(--white); }

.lab-summary-card .card-summary { font-size: 0.92rem; }

.lab-summary-toggle {
  align-self: flex-start;
  margin-top: 4px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.lab-summary-toggle:hover,
.lab-summary-toggle:focus-visible { border-color: var(--cyan); color: var(--cyan); }

.lab-summary-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--navy-950);
  border-color: transparent;
}

/* detail panels the summary cards reveal — collapsed by default */
.lab-detail { margin-top: 8px; }
.lab-detail.is-collapsed { display: none; }

.theme-chart {
  max-width: 760px;
  margin: 0 auto 44px;
  padding: 28px clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.chart-title {
  margin-bottom: 20px;
  color: var(--grey-300);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.chart-row:last-child { margin-bottom: 0; }

.chart-label { color: var(--grey-300); font-size: 0.84rem; line-height: 1.3; }

.chart-track {
  position: relative;
  height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.chart-bar {
  position: relative;
  height: 100%;
  width: var(--pct);
  min-width: 34px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.chart-value {
  color: var(--navy-950);
  font-size: 0.76rem;
  font-weight: 800;
}

/* filters */
.lab-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--grey-300);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }

.filter-btn.is-active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--navy-950);
  border-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card { display: flex; flex-direction: column; gap: 12px; transition: transform 0.15s ease, border-color 0.15s ease; }
.project-card:hover { transform: translateY(-2px); border-color: rgba(79, 140, 255, 0.4); }
.project-card.is-hidden { display: none; }

.project-card.is-flagship {
  border-color: rgba(56, 214, 224, 0.35);
  background: linear-gradient(180deg, rgba(56, 214, 224, 0.06), rgba(17, 26, 46, 0.4));
}
.badge-flagship { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--navy-950); }

.lab-tier { margin-bottom: 48px; }
.lab-tier:last-of-type { margin-bottom: 28px; }
.lab-tier.is-tier-hidden { display: none; }

.tier-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.tier-header h3 {
  font-size: 1.08rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tier-header .tier-count {
  color: var(--grey-400);
  font-weight: 600;
  font-size: 0.8rem;
}

.tier-header p {
  flex-basis: 100%;
  margin-top: 2px;
  color: var(--grey-400);
  font-size: 0.86rem;
  line-height: 1.55;
}

.lab-tier[data-tier="portfolio"] .tier-header h3 { color: var(--cyan); }
.lab-tier[data-tier="datascience"] .tier-header h3 { color: var(--violet); }

.lab-group { margin-bottom: 36px; margin-left: 4px; padding-left: 18px; border-left: 2px solid var(--line-soft); }
.lab-group:last-of-type { margin-bottom: 4px; }
.lab-group.is-hidden { display: none; }

.group-header {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
}

.group-header span {
  color: var(--grey-400);
  font-size: 0.84rem;
  font-weight: 500;
}

.project-grid-single { grid-template-columns: minmax(0, 380px); max-width: 380px; }

.also-exploring-label {
  margin: 16px 0 8px;
  color: var(--grey-400);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.also-exploring-label.is-hidden,
.also-exploring.is-hidden { display: none; }

.also-exploring {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.also-exploring a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--grey-300);
  font-size: 0.78rem;
  font-weight: 600;
}

.also-exploring a:hover { color: var(--cyan); border-color: rgba(56, 214, 224, 0.4); }

.also-exploring.is-collapsed { display: none; }

.also-exploring-toggle {
  display: inline-flex;
  align-items: center;
  margin: 16px 0 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--grey-400);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.also-exploring-toggle:hover,
.also-exploring-toggle:focus-visible { color: var(--cyan); }

.also-exploring-more {
  padding: 6px 12px;
  color: var(--grey-400);
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
}

.card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-built { background: rgba(56, 214, 224, 0.16); color: var(--cyan); }
.badge-curated { background: rgba(139, 123, 255, 0.16); color: var(--violet); }
.badge-placeholder { background: rgba(255, 255, 255, 0.06); color: var(--grey-400); }

.project-card.is-placeholder {
  border-style: dashed;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.project-card.is-placeholder .card-summary { font-style: italic; }
.project-card.is-placeholder h3 { color: var(--grey-300); }

.track-tag {
  color: var(--grey-400);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.project-card h3 { font-size: 1rem; color: var(--white); line-height: 1.3; }

.card-summary { color: var(--grey-400); font-size: 0.86rem; line-height: 1.55; flex: 1; }

.card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.card-meta span {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--grey-300);
  font-size: 0.72rem;
}

.card-link {
  margin-top: 4px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 700;
}
.card-link:hover { text-decoration: underline; }

.lab-footnote {
  margin-top: 32px;
  text-align: center;
  color: var(--grey-400);
  font-size: 0.82rem;
}
.lab-footnote a { color: var(--cyan); font-weight: 600; }

/* ---------- experience timeline ---------- */
.timeline {
  display: grid;
  gap: 0;
  max-width: 820px;
}

.timeline-item {
  position: relative;
  padding: 0 0 30px 30px;
  border-left: 1px solid var(--line);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(56, 214, 224, 0.15);
}

.timeline-item h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--white); }
.timeline-item p { color: var(--grey-400); font-size: 0.92rem; line-height: 1.65; max-width: 640px; }

.role-arc {
  margin-bottom: 10px !important;
  color: var(--cyan) !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role-detail-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.role-detail-list li {
  position: relative;
  padding-left: 18px;
  color: var(--grey-400);
  font-size: 0.9rem;
  line-height: 1.55;
}

.role-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.role-detail-list li strong {
  color: var(--grey-100);
  font-weight: 700;
}

.role-summary {
  color: var(--grey-400);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 640px;
}

/* ---------- why work with me ---------- */
.why-list {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.why-list li {
  position: relative;
  padding-left: 28px;
  color: var(--grey-300);
  font-size: 0.98rem;
  line-height: 1.6;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

/* ---------- final cta ---------- */
.final-cta {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 0;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin: 14px 0 18px;
  line-height: 1.1;
}

.final-cta-sub {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--grey-400);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 40px clamp(18px, 4vw, 44px) 32px;
  border-top: 1px solid var(--line);
  color: var(--grey-400);
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer a { color: var(--grey-100); font-weight: 600; }
.site-footer a:hover { color: var(--cyan); }

.footer-copy {
  margin: 24px 0 0;
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .who-grid, .service-grid, .track-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-strip div:nth-child(2n) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .lab-summary { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .who-grid, .service-grid, .track-grid, .project-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip div:last-child { border-bottom: 0; }
  .chart-row { grid-template-columns: 1fr; gap: 6px; }
  .lab-stats { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* mobile nav open state */
.site-header.is-open .site-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px 18px 18px;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line);
}
