:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-muted: #eef3f8;
  --text: #132033;
  --text-muted: #526176;
  --line: #dbe3ed;
  --brand: #1357d4;
  --brand-dark: #0d3e9d;
  --dark: #0f1d30;
  --dark-soft: #172943;
  --modern-cream: #F7F3E9;
  --modern-paper: #FFFCF4;
  --modern-ink: #171512;
  --modern-gold: #A79567;
  --modern-gold-dark: #877348;
  --modern-line: #D9CEB8;
  --max-width: 1160px;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(15, 29, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.1;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -0.065em;
}

h2 {
  max-width: 800px;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 1040px;
}

.section {
  padding: 7rem 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-dark {
  color: #f5f8fc;
  background: var(--dark);
}

.eyebrow,
.card-label,
.project-type {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--brand);
}

.section-dark .eyebrow {
  color: #85adff;
}

.section-lede,
.hero-lede {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-detail {
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.section-dark .section-lede {
  color: #b7c3d4;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid rgba(219, 227, 237, 0.8);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.footer-wrap,
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-wrap {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 12px;
}

.primary-nav {
  display: flex;
  gap: 1.4rem;
}

.primary-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--brand);
}

.nav-toggle {
  display: none;
}

.hero {
  overflow: hidden;
  padding-top: 8rem;
  background:
    radial-gradient(circle at 82% 18%, rgba(19, 87, 212, 0.14), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
}

.hero-grid,
.split-grid,
.about-grid {
  display: grid;
  gap: 4rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
  align-items: end;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 2rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
}

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-dark);
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface);
}

.status-note {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.principle-card,
.project-card,
.feature-card,
.pathway-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principle-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.principle-card blockquote {
  margin: 0 0 1.25rem;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.principle-card p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.problem-grid,
.project-grid,
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.product-card {
  min-height: 330px;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-card-foundation {
  color: #f5f8fc;
  background: var(--dark);
  border-color: var(--dark);
}

.product-status {
  margin-bottom: 1.5rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card-foundation .product-status {
  color: #85adff;
}

.product-card > p:not(.product-status) {
  color: var(--text-muted);
}

.product-card-foundation > p:not(.product-status) {
  color: #c6d1df;
}

.product-detail {
  font-size: 0.92rem;
}

.process-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-loop li {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 2.4rem;
  color: #f5f8fc;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  counter-increment: process;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
}

.process-loop li::before {
  position: absolute;
  left: 0;
  color: #85adff;
  content: counter(process, decimal-leading-zero);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.process-loop li:not(:last-child)::after {
  position: absolute;
  top: 1.22rem;
  right: 0.2rem;
  color: #85adff;
  content: "→";
}

.process-return {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin: 0.65rem 0 0;
  color: #85adff;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-return::before {
  width: 3.5rem;
  height: 1px;
  background: rgba(133, 173, 255, 0.5);
  content: "";
}

.emerging-lane {
  align-items: center;
}

.boundary-note {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  font-size: 0.92rem;
}

.stage-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.stage-panel {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stage-panel > p {
  font-size: 1.1rem;
}

.stage-list,
.contact-topics {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.stage-list li,
.contact-topics li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-top: 1px solid var(--line);
}

.stage-list li::before,
.contact-topics li::before {
  position: absolute;
  left: 0;
  color: var(--brand);
  content: "•";
}

.partnership-intro {
  margin-bottom: 2.5rem;
}

.partnership-intro .section-lede {
  max-width: 820px;
}

.contact-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.problem-grid article {
  padding-top: 1.5rem;
  border-top: 2px solid var(--brand);
}

.problem-grid p,
.project-card p,
.feature-card p,
.pathway-card p,
.about-grid p {
  color: var(--text-muted);
}

.split-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--surface);
}

.feature-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--brand);
  background: #edf4ff;
  border-radius: 14px;
  font-weight: 800;
}

.feature-card p,
.project-card p,
.pathway-card p {
  margin-bottom: 0;
}

.pathway-card {
  min-height: 280px;
  padding: 1.75rem;
  background: var(--dark-soft);
  border-color: rgba(255, 255, 255, 0.1);
}

.pathway-primary {
  background: var(--brand);
}

.pathway-card p {
  color: #c6d1df;
}

.pathway-primary p {
  color: #e8efff;
}

.project-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--surface);
}

.project-type {
  color: var(--brand);
}

.project-card a {
  margin-top: auto;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.about-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

#about .about-grid > div:last-child > div {
  background: var(--modern-paper);
  border: 1px solid var(--modern-line);
}

#about .about-grid > div:last-child > div > img {
  width: 100% !important;
  max-width: 430px;
  margin: 0 0 1.25rem !important;
  padding: 1rem 1.2rem;
  background: var(--modern-cream);
  border-bottom: 1px solid var(--modern-line);
}

#about .about-grid > div:last-child > div > p,
#about .about-grid > div:last-child > div > a {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

#about .about-grid > div:last-child > div > p {
  color: var(--modern-ink);
}

#about .about-grid > div:last-child > div > .button-secondary {
  margin-bottom: 1.35rem;
  color: var(--modern-ink);
  background: var(--modern-gold);
  border-color: var(--modern-gold);
}

#about .about-grid > div:last-child > div > .button-secondary:hover,
#about .about-grid > div:last-child > div > .button-secondary:focus-visible {
  color: var(--modern-paper);
  background: var(--modern-gold-dark);
  border-color: var(--modern-gold-dark);
}

.contact-section {
  padding-top: 4rem;
}

.contact-card {
  padding: 2.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--text-muted);
}

.site-footer {
  padding: 2rem 0;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.footer-wrap p {
  margin-bottom: 0;
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .section {
    padding: 5rem 0;
  }

  .hero-grid,
  .split-grid,
  .about-grid,
  .stage-grid,
  .problem-grid,
  .project-grid,
  .pathway-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .process-loop {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 5rem;
  }

  .primary-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 0.6rem 0.8rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
  }

  .contact-card,
  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-card {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 3.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-actions,
  .hero-actions .button,
  .contact-card .button {
    width: 100%;
  }

  .principle-card,
  .contact-card,
  .project-card,
  .pathway-card,
  .product-card,
  .stage-panel {
    padding: 1.4rem;
  }

  .process-loop,
  .contact-topics {
    grid-template-columns: 1fr;
  }

  .process-loop li:not(:last-child)::after {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
