:root {
  --bg: #020603;
  --bg-elev: #061009;
  --panel: #0b140f;
  --panel-strong: #101b13;
  --text: #f4f8ef;
  --muted: #8fa28a;
  --accent: #2f8f4a;
  --accent-strong: #1d6b34;
  --accent-soft: #5fb673;
  --accent-warm: #7fce74;
  --line: rgba(47, 143, 74, 0.28);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 28px 56px rgba(0, 0, 0, 0.55);
  --radius: 20px;
  --radius-sm: 14px;
  --container: min(1100px, calc(100% - 2rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(95, 182, 115, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 143, 74, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(47, 143, 74, 0.1), transparent 45%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  opacity: 0.7;
  z-index: 0;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.container { width: var(--container); margin: 0 auto; position: relative; z-index: 1; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: #03121d;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(2, 6, 3, 0.82);
  border-bottom: 1px solid rgba(47, 143, 74, 0.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.2rem 0.35rem 0.2rem 0.2rem;
  transition: background 0.2s var(--ease);
}
.brand-mark:hover { background: rgba(47, 143, 74, 0.1); }
.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  object-fit: cover;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(47, 143, 74, 0.12);
}
.nav-links a.active {
  color: var(--text);
  background: rgba(47, 143, 74, 0.16);
  box-shadow: inset 0 0 0 1px rgba(95, 182, 115, 0.28);
}
.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-soft);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.nav-toggle:hover { border-color: var(--accent); }

main { position: relative; z-index: 1; overflow: clip; }
section { padding: 4.75rem 0; position: relative; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.85rem;
  max-width: 40rem;
}
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 55%, var(--accent-soft) 100%);
  color: #f7fff4;
  box-shadow: 0 8px 24px rgba(29, 107, 52, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(29, 107, 52, 0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: rgba(95, 182, 115, 0.45);
  background: rgba(47, 143, 74, 0.1);
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(11, 20, 15, 0.96), rgba(3, 8, 4, 0.98));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 182, 115, 0.38);
  box-shadow: var(--shadow-hover);
}

/* HERO — refined */
.hero {
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 2rem));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 143, 74, 0.4), transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  color: var(--accent-soft);
  background: rgba(47, 143, 74, 0.13);
  border: 1px solid rgba(47, 143, 74, 0.3);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  box-shadow: 0 0 0 1px rgba(47, 143, 74, 0.07), 0 10px 28px rgba(0, 0, 0, 0.22);
}
.hero h1 {
  margin: 0 0 1.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.042em;
  font-weight: 700;
  max-width: 15.5ch;
}
.hero h1 .accent-line {
  background: linear-gradient(115deg, var(--accent-soft) 0%, var(--accent-warm) 55%, #a8e0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero .lead {
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
  line-height: 1.72;
}
.role-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.44rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 143, 74, 0.11);
  border: 1px solid rgba(47, 143, 74, 0.24);
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.role-chip:hover {
  background: rgba(47, 143, 74, 0.18);
  border-color: rgba(95, 182, 115, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(47, 143, 74, 0.1);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.55rem;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  padding: 0.44rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-proof span:hover {
  border-color: rgba(95, 182, 115, 0.25);
  background: rgba(47, 143, 74, 0.06);
}
.hero-proof strong {
  color: var(--text);
  font-weight: 700;
  margin-right: 0.35rem;
}

.hero-card {
  position: relative;
  padding: 1.55rem 1.4rem 1.45rem;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(47, 143, 74, 0.3);
  box-shadow: var(--shadow), 0 0 0 1px rgba(47, 143, 74, 0.06), 0 0 32px rgba(47, 143, 74, 0.07);
}
.hero-card:hover {
  border-color: rgba(95, 182, 115, 0.42);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(95, 182, 115, 0.1), 0 0 40px rgba(47, 143, 74, 0.09);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0 22px, rgba(47,143,74,0.06) 23px, transparent 24px),
    linear-gradient(transparent 0 22px, rgba(95,182,115,0.045) 23px, transparent 24px);
  background-size: 24px 24px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
.hero-card::after {
  content: "";
  position: absolute;
  top: -25%;
  right: -18%;
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle, rgba(95, 182, 115, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
}
.hero-card .profile-photo {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  max-width: 200px;
  box-shadow:
    0 16px 36px rgba(0,0,0,0.34),
    0 0 0 1px rgba(47, 143, 74, 0.12),
    0 0 20px rgba(47, 143, 74, 0.06);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-card:hover .profile-photo {
  box-shadow:
    0 18px 40px rgba(0,0,0,0.38),
    0 0 0 1px rgba(95, 182, 115, 0.18),
    0 0 24px rgba(47, 143, 74, 0.09);
  transform: translateY(-2px);
}
.hero-card .panel-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.28rem;
  font-family: "JetBrains Mono", monospace;
}
.hero-card .panel-copy {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.key-message {
  margin-top: 0.1rem;
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(47, 143, 74, 0.16), rgba(47, 143, 74, 0.07));
  border: 1px solid rgba(47, 143, 74, 0.32);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 16px rgba(0,0,0,0.12);
}
.key-message strong { color: var(--accent-soft); }

.about-card { padding: 1.85rem 1.9rem; }
.about-card p { color: var(--muted); margin: 0 0 0.95rem; font-size: 0.98rem; }
.about-card p:last-of-type { margin-bottom: 0; }
.about-card strong { color: var(--text); }
.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.loop-step {
  padding: 1rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line-soft);
  text-align: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.loop-step:hover {
  border-color: rgba(95, 182, 115, 0.3);
  background: rgba(47, 143, 74, 0.08);
}
.loop-step strong {
  display: block;
  color: var(--accent-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.loop-step span { color: var(--muted); font-size: 0.84rem; }

.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.focus-card { padding: 1.4rem 1.35rem; }
.focus-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent-soft);
  font-size: 1.05rem;
  font-family: "Space Grotesk", sans-serif;
}
.focus-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.evidence-card { position: relative; padding: 1.4rem; overflow: hidden; }
.evidence-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -50% 40%;
  height: 11rem;
  background: radial-gradient(circle, rgba(95, 182, 115, 0.12), transparent 70%);
  pointer-events: none;
}
.evidence-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.evidence-card h3 {
  margin: 0 0 0.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}
.evidence-card-header p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.evidence-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: rgba(95, 182, 115, 0.12);
  border: 1px solid rgba(95, 182, 115, 0.24);
  color: var(--accent-soft);
  flex: 0 0 auto;
}
.evidence-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}
.evidence-metric {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
}
.evidence-metric strong {
  display: block;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
}
.evidence-metric span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.74rem;
}
.evidence-caption {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.86rem;
  position: relative;
  z-index: 1;
}
.evidence-caption strong { color: var(--accent-soft); }

.workflow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
}
.workflow-node {
  padding: 0.95rem 0.7rem;
  border-radius: 12px;
  background: rgba(47, 143, 74, 0.1);
  border: 1px solid rgba(47, 143, 74, 0.2);
  text-align: center;
}
.workflow-node strong { display: block; color: var(--text); font-size: 0.88rem; margin-bottom: 0.2rem; }
.workflow-node span { color: var(--muted); font-size: 0.76rem; word-break: break-word; }
.workflow-arrow { color: var(--accent-soft); font-size: 1.15rem; text-align: center; opacity: 0.85; }

/* PROJECT CARDS — refined */
/* Project filters */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
}
.filter-chip {
  appearance: none;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.filter-chip:hover {
  color: var(--text);
  border-color: rgba(95, 182, 115, 0.35);
  background: rgba(47, 143, 74, 0.08);
}
.filter-chip.active {
  color: #f7fff4;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(29, 107, 52, 0.28);
}
.filter-chip:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.project-card.is-hidden {
  display: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  transition: opacity 0.2s var(--ease);
}
.project-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-soft) 55%, transparent);
  opacity: 0.35;
  transition: opacity 0.28s var(--ease);
}
.project-card:hover::before { opacity: 1; }
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 182, 115, 0.44);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(95, 182, 115, 0.07), 0 10px 28px rgba(47, 143, 74, 0.07);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 143, 74, 0.11);
  border: 1px solid rgba(47, 143, 74, 0.24);
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.project-card:hover .pill {
  background: rgba(47, 143, 74, 0.16);
  border-color: rgba(95, 182, 115, 0.35);
}
.project-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.16rem;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.project-card:hover h3 {
  color: #f8fbf5;
}
.project-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.915rem;
  line-height: 1.56;
  flex-grow: 1;
}
.project-card .meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  opacity: 0.9;
  letter-spacing: 0.01em;
}
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  transition: border-color 0.2s var(--ease);
}
.project-card:hover .project-footer {
  border-top-color: rgba(95, 182, 115, 0.22);
}
.project-footer .meta { margin: 0; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-soft);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.18s var(--ease), gap 0.18s var(--ease), transform 0.18s var(--ease);
}
.project-link:hover {
  color: var(--accent-warm);
  gap: 0.55rem;
  transform: translateX(1px);
}
.why-matters {
  margin: 0;
  padding: 0.85rem 0.95rem 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 143, 74, 0.09), rgba(47, 143, 74, 0.05));
  border: 1px solid rgba(47, 143, 74, 0.18);
  border-left: 3px solid rgba(95, 182, 115, 0.45);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.52;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.project-card:hover .why-matters {
  border-left-color: rgba(95, 182, 115, 0.7);
  background: linear-gradient(135deg, rgba(47, 143, 74, 0.12), rgba(47, 143, 74, 0.06));
}
.why-matters strong { color: var(--accent-soft); }

.labs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lab-card { padding: 1.35rem 1.4rem; }
.lab-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}
.lab-card p { margin: 0 0 0.95rem; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.stack-card { padding: 1.2rem 1.15rem; }
.stack-card h3 {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: var(--accent-soft);
  font-weight: 700;
}
.stack-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.stack-card li {
  color: var(--muted);
  font-size: 0.84rem;
  padding-left: 0.85rem;
  position: relative;
}
.stack-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.contact-card { padding: 1.85rem 1.9rem; }
.contact-card p { color: var(--muted); margin: 0 0 1.1rem; font-size: 0.98rem; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.contact-meta a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
}
.contact-meta a:hover { color: var(--accent-warm); }

footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(47, 143, 74, 0.18);
  color: var(--muted);
  font-size: 0.85rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
footer a {
  color: var(--accent-soft);
  text-decoration: none;
}
footer a:hover { color: var(--accent-warm); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.maturity-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
  border: 1px solid transparent;
}
.maturity-starter {
  color: #8ec9a0;
  background: rgba(47, 143, 74, 0.12);
  border-color: rgba(47, 143, 74, 0.28);
}
.maturity-lab {
  color: #7ec8e3;
  background: rgba(40, 130, 170, 0.14);
  border-color: rgba(40, 130, 170, 0.3);
}
.maturity-pattern {
  color: #e0c07a;
  background: rgba(180, 140, 40, 0.12);
  border-color: rgba(180, 140, 40, 0.28);
}
.maturity-applied {
  color: #c9a0e8;
  background: rgba(140, 90, 180, 0.12);
  border-color: rgba(140, 90, 180, 0.28);
}

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  gap: 0.55rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(2, 6, 3, 0.92);
  border-top: 1px solid rgba(47, 143, 74, 0.22);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.mobile-cta.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.mobile-cta .btn {
  flex: 1;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .project-grid,
  .evidence-grid,
  .labs-grid,
  .focus-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-diagram { grid-template-columns: 1fr; gap: 0.4rem; }
  .workflow-arrow { transform: rotate(90deg); font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: rgba(2, 6, 3, 0.96);
    border-bottom: 1px solid rgba(47, 143, 74, 0.2);
    backdrop-filter: blur(16px);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0.9rem; border-radius: 12px; }
  .nav-inner { position: relative; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
}
@media (max-width: 640px) {
  section { padding: 3.4rem 0; }
  .hero { padding-top: 2.5rem; }
  .stack-grid,
  .loop-grid { grid-template-columns: 1fr; }
  .hero-actions,
  .contact-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .about-card,
  .contact-card { padding: 1.4rem; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); max-width: none; }
  .project-footer { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
}

/* Custom robotic cursor — dark green */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
  transition:
    opacity 0.22s var(--ease),
    width 0.2s var(--ease),
    height 0.2s var(--ease),
    margin 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.cursor-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: #1d6b34;
  box-shadow:
    0 0 0 1px rgba(95, 182, 115, 0.35),
    0 0 10px rgba(47, 143, 74, 0.55);
}
.cursor-ring {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px solid rgba(47, 143, 74, 0.55);
  background: rgba(47, 143, 74, 0.05);
  box-shadow: 0 0 12px rgba(47, 143, 74, 0.12);
}
.cursor-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(95, 182, 115, 0.12);
  pointer-events: none;
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
  opacity: 1;
}
body.cursor-ready,
body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready .btn,
body.cursor-ready .filter-chip,
body.cursor-ready .nav-toggle,
body.cursor-ready .project-link,
body.cursor-ready input,
body.cursor-ready textarea,
body.cursor-ready [role="button"] {
  cursor: none !important;
}
body.cursor-hover .cursor-ring {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-color: rgba(95, 182, 115, 0.8);
  background: rgba(47, 143, 74, 0.1);
  box-shadow: 0 0 18px rgba(47, 143, 74, 0.22);
}
body.cursor-hover .cursor-dot {
  background: #2f8f4a;
  box-shadow:
    0 0 0 1px rgba(127, 206, 116, 0.45),
    0 0 14px rgba(95, 182, 115, 0.7);
}
body.cursor-click .cursor-ring {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-color: rgba(47, 143, 74, 0.9);
}
body.cursor-click .cursor-dot {
  background: #5fb673;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring { display: none !important; }
  body.cursor-ready,
  body.cursor-ready a,
  body.cursor-ready button,
  body.cursor-ready .btn,
  body.cursor-ready .filter-chip,
  body.cursor-ready .nav-toggle,
  body.cursor-ready .project-link,
  body.cursor-ready input,
  body.cursor-ready textarea,
  body.cursor-ready [role="button"] {
    cursor: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .project-card, .focus-card, .stack-card, .loop-step, .mobile-cta, .filter-chip { transition: none; }
  .cursor-dot,
  .cursor-ring { display: none !important; }
  body.cursor-ready,
  body.cursor-ready a,
  body.cursor-ready button,
  body.cursor-ready .btn,
  body.cursor-ready .filter-chip,
  body.cursor-ready .nav-toggle,
  body.cursor-ready .project-link,
  body.cursor-ready input,
  body.cursor-ready textarea,
  body.cursor-ready [role="button"] {
    cursor: auto !important;
  }
}

.project-evidence-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  object-fit: cover;
  max-height: 200px;
  display: block;
}

.project-evidence-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.project-evidence-gallery .project-evidence-img {
  margin-bottom: 0;
}
