:root {
  --ink: #10231f;
  --muted: #60706b;
  --line: #dbe4df;
  --paper: #fbfdf9;
  --surface: #ffffff;
  --sage: #dfeade;
  --green: #0f6f56;
  --green-dark: #0a4c3c;
  --aqua: #50b8a0;
  --gold: #d39c2c;
  --coral: #d66b55;
  --blue: #315f8d;
  --shadow: 0 24px 70px rgba(20, 55, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(16, 35, 31, 0.08);
  background: rgba(251, 253, 249, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.github-link,
.tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 38%, var(--gold) 0 12%, transparent 13%),
    radial-gradient(circle at 38% 60%, var(--aqua) 0 18%, transparent 19%),
    var(--sage);
  box-shadow: inset 0 0 0 5px rgba(15, 111, 86, 0.13);
}

.tabs {
  justify-self: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.tab-button {
  min-width: 96px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.is-active {
  color: white;
  background: var(--green-dark);
  box-shadow: 0 10px 25px rgba(10, 76, 60, 0.2);
}

.github-link {
  justify-self: end;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.section-band,
.content-section,
.strip,
.people-section,
.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.hero,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(46px, 7vw, 86px) 0 clamp(36px, 5vw, 64px);
}

.about-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  min-height: 520px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.hero-text,
.about-hero p {
  max-width: 690px;
  color: #40534d;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  background: var(--green-dark);
  color: white;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--green-dark);
}

.system-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(15, 111, 86, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(223, 234, 222, 0.68)),
    radial-gradient(circle at 10% 18%, rgba(80, 184, 160, 0.25), transparent 34%),
    radial-gradient(circle at 92% 72%, rgba(211, 156, 44, 0.18), transparent 34%);
  box-shadow: var(--shadow);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.33;
  background-image:
    linear-gradient(rgba(15, 111, 86, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 111, 86, 0.1) 1px, transparent 1px);
  background-size: 38px 38px;
}

.microcapsule {
  position: absolute;
  inset: 50%;
  width: 252px;
  height: 252px;
  transform: translate(-50%, -50%);
}

.shell,
.core,
.particle {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.shell-outer {
  inset: 0;
  border: 22px solid rgba(15, 111, 86, 0.26);
  background: rgba(255, 255, 255, 0.24);
}

.shell-middle {
  inset: 42px;
  border: 18px solid rgba(80, 184, 160, 0.38);
  background: rgba(255, 255, 255, 0.38);
}

.core {
  inset: 94px;
  background: var(--gold);
  box-shadow: 0 0 40px rgba(211, 156, 44, 0.48);
}

.particle {
  width: 16px;
  height: 16px;
  background: var(--coral);
  box-shadow: 0 0 0 8px rgba(214, 107, 85, 0.12);
}

.particle-a {
  top: 68px;
  left: 64px;
}

.particle-b {
  right: 54px;
  top: 108px;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(49, 95, 141, 0.13);
}

.particle-c {
  left: 116px;
  bottom: 48px;
  background: var(--green);
}

.capsule-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 390px;
  height: 172px;
  border: 1px solid rgba(15, 111, 86, 0.24);
  border-radius: 50%;
}

.orbit-one {
  transform: translate(-50%, -50%) rotate(-22deg);
}

.orbit-two {
  transform: translate(-50%, -50%) rotate(28deg);
}

.pipeline-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 96px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(16, 35, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 15px 35px rgba(20, 55, 44, 0.1);
}

.node-reason {
  left: 38px;
  top: 86px;
}

.node-optimize {
  right: 34px;
  top: 160px;
}

.node-evaluate {
  left: 54px;
  bottom: 92px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 80px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.strip > div {
  padding: 22px;
  background: var(--surface);
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 800;
}

.metric-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.content-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 34px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.two-column p,
.feature-card p,
.timeline p,
.person-card p {
  color: var(--muted);
}

.two-column p {
  margin-bottom: 0;
  font-size: 18px;
}

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

.feature-card,
.person-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 55, 44, 0.06);
}

.feature-card {
  padding: 22px;
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.split-focus {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.outcome-list {
  display: grid;
  gap: 14px;
}

.outcome-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.outcome-list strong {
  color: var(--green-dark);
  font-size: 26px;
}

.outcome-list span {
  color: var(--muted);
  font-weight: 600;
}

.beneficiary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.beneficiary-grid div {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), #f6faf3);
  color: var(--green-dark);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline article {
  padding: 22px;
  background: var(--surface);
}

.timeline span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.budget-bars {
  display: grid;
  gap: 12px;
}

.budget-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 800;
}

.budget-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(80, 184, 160, 0.24), rgba(211, 156, 44, 0.16));
}

.budget-row span,
.budget-row strong {
  position: relative;
}

.people-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 80px;
}

.person-card {
  padding: 26px;
}

.person-header {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.person-header h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.person-header p {
  margin-bottom: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: white;
  font-weight: 800;
}

.avatar-kevin {
  background: linear-gradient(145deg, var(--green), var(--blue));
}

.avatar-sirshendu {
  background: linear-gradient(145deg, var(--coral), var(--gold));
}

.person-details {
  padding-top: 24px;
}

.person-details h3 {
  margin-top: 24px;
  color: var(--green-dark);
}

.person-details h3:first-child {
  margin-top: 0;
}

.link-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.link-list a,
.presence-links a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration-color: rgba(15, 111, 86, 0.32);
  text-underline-offset: 4px;
}

.link-list.compact {
  gap: 8px;
}

.about-context {
  padding-top: 0;
}

.presence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.presence-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
  }

  .hero,
  .about-hero,
  .section-heading,
  .split-focus,
  .people-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .system-visual {
    min-height: 470px;
  }

  .strip,
  .feature-grid,
  .beneficiary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 18px;
  }

  .brand span:last-child,
  .github-link span {
    display: none;
  }

  .tabs {
    overflow: hidden;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
  }

  h1 {
    font-size: 44px;
  }

  .hero,
  .about-hero {
    padding-top: 36px;
  }

  .system-visual {
    min-height: 390px;
  }

  .microcapsule {
    width: 204px;
    height: 204px;
  }

  .shell-middle {
    inset: 34px;
  }

  .core {
    inset: 78px;
  }

  .capsule-orbit {
    width: 310px;
    height: 132px;
  }

  .pipeline-node {
    min-width: 82px;
    min-height: 36px;
    font-size: 12px;
  }

  .node-reason {
    left: 18px;
    top: 48px;
  }

  .node-optimize {
    right: 16px;
    top: 112px;
  }

  .node-evaluate {
    left: 22px;
    bottom: 58px;
  }

  .strip,
  .feature-grid,
  .beneficiary-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 58px 0;
  }

  .outcome-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .person-card {
    padding: 20px;
  }

  .person-header {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
