:root {
  color-scheme: light;
  --bg: #fbfcff;
  --surface: #ffffff;
  --surface-soft: #f3f7fb;
  --text: #0f1f33;
  --muted: #465a70;
  --subtle: #7a8999;
  --border: #d8e2ee;
  --line: #cbd7e4;
  --accent: #2f6df6;
  --accent-soft: #edf4ff;
  --mint: #e8fbf0;
  --peach: #fff0e7;
  --lavender: #f1edff;
  --sky: #eaf7ff;
  --navy: #0a1a2f;
  --shadow: 0 12px 30px rgba(16, 32, 51, 0.05);
  --max-width: 1160px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.96)),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

body.dark-mode {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0c1a2b;
  --surface-soft: #101f32;
  --text: #edf4fc;
  --muted: #bdcad8;
  --subtle: #8fa0b2;
  --border: #263a52;
  --line: #314863;
  --accent: #75a8ff;
  --accent-soft: #10233e;
  --navy: #f2f7ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 251, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.dark-mode .site-header {
  background: rgba(7, 17, 31, 0.92);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(100% - 40px, var(--max-width));
  min-height: 70px;
  margin: 0 auto;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
}

.mark {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px var(--surface);
  background: var(--accent-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.toggle-indicator {
  width: 24px;
  height: 13px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  position: relative;
}

.toggle-indicator::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 180ms ease;
}

.dark-mode .toggle-indicator::after {
  transform: translateX(11px);
}

.content-wrap {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.overview-section {
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--border);
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 72px;
  align-items: end;
}

.overview-copy {
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.65rem, 5.4vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 700;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 650;
}

.lead {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

.identity-line {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  margin: -4px 0 24px;
}

.identity-line img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
}

.identity-line span {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 750;
}

.identity-line small {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
}

.human-note {
  max-width: 720px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid #d9e7ff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #f7fbff;
  color: var(--text);
}

.action-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

.button.primary:hover {
  background: #1f55d8;
  border-color: #1f55d8;
}

.button.secondary {
  background: var(--surface);
  color: var(--navy);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.signal-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.overview-brief,
.project-card,
.capability-grid article,
.reference-card,
.roadmap-card,
.domain-grid article,
.evidence-grid article {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dark-mode .overview-brief,
.dark-mode .project-card,
.dark-mode .capability-grid article,
.dark-mode .reference-card,
.dark-mode .roadmap-card,
.dark-mode .domain-grid article,
.dark-mode .evidence-grid article {
  background: rgba(12, 26, 43, 0.9);
}

.overview-brief {
  padding: 28px;
}

.profile-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-card img {
  width: 92px;
  height: 112px;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.profile-card figcaption {
  display: grid;
  gap: 6px;
}

.profile-card strong {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.25;
}

.profile-card span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.brief-header {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.brief-header span,
.brief-list dt,
.project-meta,
.project-detail span,
.roadmap-card p,
.capability-grid span,
.domain-grid span,
.evidence-grid span {
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief-header strong {
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 700;
}

.profile-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0 0;
}

.profile-index div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.profile-index strong {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-index span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.brief-list {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
}

.brief-list div {
  display: grid;
  gap: 5px;
}

.brief-list dt,
.brief-list dd {
  margin: 0;
}

.brief-list dd {
  color: var(--muted);
}

.section-block {
  padding: 78px 0;
}

.muted-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 76px;
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1rem;
}

.copy-stack p,
.section-intro p,
.references-layout > div > p {
  margin-bottom: 0;
}

.section-intro {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 36px;
}

.section-intro p,
.references-layout > div > p {
  color: var(--muted);
  font-size: 1rem;
}

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

.roadmap-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.roadmap-card {
  padding: 18px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(16, 32, 51, 0.07);
}

.roadmap-card.active {
  border-color: rgba(47, 109, 246, 0.38);
}

.roadmap-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1.08;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 31, 51, 0.06);
}

.roadmap-visual span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.08);
}

.sattvicly-card {
  background: linear-gradient(145deg, #fff1ec, #ffe2d9);
}

.spillo-card {
  background: linear-gradient(145deg, #eaf6ff, #d9ecff);
}

.sage-card {
  background: linear-gradient(145deg, #f0edff, #e4dcff);
}

.future-card {
  background: linear-gradient(145deg, #e8fbf0, #d8f7e5);
}

.roadmap-card h3 {
  margin-bottom: 4px;
}

.roadmap-card p {
  margin: 0;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
}

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

.domain-grid article {
  min-height: 250px;
  padding: 24px;
  box-shadow: none;
}

.domain-grid h3 {
  margin: 16px 0 12px;
}

.domain-grid p {
  margin: 0;
  color: var(--muted);
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 58px;
  align-items: start;
}

.evidence-grid {
  display: grid;
  gap: 14px;
}

.evidence-grid article {
  padding: 24px;
  box-shadow: none;
}

.evidence-grid h3 {
  margin: 14px 0 10px;
}

.evidence-grid p {
  margin: 0;
  color: var(--muted);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 170px;
  padding: 24px;
  box-shadow: none;
}

.timeline-item.active {
  border-color: rgba(37, 99, 235, 0.42);
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.timeline-item p {
  margin-bottom: 6px;
}

.timeline-item span:not(.timeline-step) {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr) minmax(210px, 0.32fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-card.featured {
  border-left: 4px solid var(--accent);
}

.project-meta {
  display: grid;
  gap: 10px;
}

.project-meta span:first-child {
  color: var(--accent);
}

.project-main p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-points {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-points li::marker {
  color: var(--accent);
}

.project-detail {
  display: grid;
  gap: 8px;
}

.project-detail p {
  margin: 0;
  color: var(--navy);
  font-weight: 650;
}

.link-row {
  grid-column: 2 / 4;
  padding-top: 4px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 700;
}

.link-row a:hover {
  border-color: var(--accent);
}

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

.capability-grid article {
  min-height: 210px;
  padding: 24px;
  box-shadow: none;
}

.capability-grid h3 {
  margin: 18px 0 10px;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.references-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.reference-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 20px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.reference-card:hover {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: var(--shadow);
}

.reference-card span {
  color: var(--navy);
  font-weight: 700;
}

.reference-card small {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav-shell {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .theme-toggle {
    order: 3;
  }

  .nav-links {
    display: none;
    flex: 1 0 100%;
    order: 4;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 18px;
  }

  .overview-layout,
  .split-layout,
  .references-layout,
  .evidence-layout,
  .timeline,
  .roadmap-cards,
  .capability-grid,
  .domain-grid {
    grid-template-columns: 1fr;
  }

  .overview-section,
  .section-block {
    padding: 66px 0;
  }

  .overview-layout,
  .split-layout,
  .references-layout,
  .evidence-layout {
    gap: 36px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .link-row {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .content-wrap,
  .nav-shell,
  .site-footer {
    width: min(100% - 26px, var(--max-width));
  }

  .nav-links.open,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .theme-label {
    display: none;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .lead {
    font-size: 1.04rem;
  }

  .action-row .button {
    width: 100%;
  }

  .overview-brief,
  .timeline-item,
  .roadmap-card,
  .project-card,
  .domain-grid article,
  .evidence-grid article,
  .capability-grid article,
  .reference-card {
    padding: 20px;
  }

  .profile-card {
    grid-template-columns: 76px 1fr;
    gap: 14px;
  }

  .profile-card img {
    width: 76px;
    height: 92px;
  }

  .profile-index {
    grid-template-columns: 1fr;
  }

  .roadmap-visual {
    aspect-ratio: 1.35;
  }
}
