.site-nav a[aria-current="page"] {
  color: white;
}

.features-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, .75fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.features-hero h1 {
  max-width: 13ch;
  margin: .55rem 0 0;
  font-size: clamp(3.45rem, 6.8vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.features-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
}

.features-hero-copy > p:last-child {
  max-width: 49rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.intent-map {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.016);
  box-shadow: var(--shadow);
}

.intent-map a {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: .9rem;
  align-items: center;
  min-height: 4.7rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background .18s ease;
}

.intent-map a:last-child {
  border-bottom: 0;
}

.intent-map a:hover {
  background: rgba(103,232,249,.04);
}

.intent-map span {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .68rem;
  font-weight: 850;
}

.intent-map strong {
  font-size: .9rem;
}

.intent-map small {
  color: var(--muted-2);
  font-size: .7rem;
}

.feature-principle {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 85% 40%, rgba(103,232,249,.05), transparent 24rem),
    rgba(255,255,255,.012);
}

.principle-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.principle-grid h2 {
  margin: .4rem 0 0;
  font-size: clamp(2.2rem, 4.2vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.principle-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.feature-area {
  padding-top: clamp(5.5rem, 9vw, 8rem);
  padding-bottom: clamp(5.5rem, 9vw, 8rem);
  scroll-margin-top: 5.5rem;
}

.feature-area-alt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.012);
}

.area-heading {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 62rem;
  margin-bottom: 3rem;
}

.area-number {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(103,232,249,.2);
  border-radius: 1rem;
  background: rgba(103,232,249,.045);
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .78rem;
  font-weight: 900;
}

.area-heading h2 {
  margin: .45rem 0 0;
  font-size: clamp(2.5rem, 5vw, 4.65rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.area-heading > div:last-child > p:last-child {
  max-width: 48rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.capability-card {
  min-height: 20rem;
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0, rgba(124,156,255,.04), transparent 13rem),
    rgba(255,255,255,.014);
}

.capability-card.spotlight {
  background:
    radial-gradient(circle at 95% 0, rgba(103,232,249,.08), transparent 16rem),
    linear-gradient(135deg, rgba(103,232,249,.03), rgba(124,156,255,.02)),
    rgba(255,255,255,.018);
}

.capability-label {
  display: inline-block;
  color: var(--cyan);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.capability-card h3 {
  max-width: 22ch;
  margin: .85rem 0 0;
  color: white;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.capability-card > p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.75;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin-top: 1.4rem;
}

.chip-row span {
  padding: .27rem .47rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(255,255,255,.015);
  font-size: .61rem;
  font-weight: 800;
}

.proof-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: .55rem;
  margin-bottom: 1rem;
}

.proof-flow article {
  min-height: 12rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.014);
}

.proof-flow article.proof-final {
  border-color: rgba(181,140,255,.24);
  background: rgba(181,140,255,.05);
}

.proof-flow > i {
  align-self: center;
  color: #425675;
  font-style: normal;
}

.proof-flow span {
  color: var(--cyan);
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.proof-flow article:nth-of-type(2) span,
.proof-flow article:nth-of-type(3) span {
  color: var(--green);
}

.proof-flow .proof-final span {
  color: var(--violet);
}

.proof-flow strong {
  display: block;
  margin-top: .65rem;
  font-size: 1rem;
}

.proof-flow p {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .77rem;
}

.proof-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-cards .capability-card {
  min-height: 15rem;
}

.object-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.012);
}

.object-grid article {
  min-height: 12rem;
  padding: 1.4rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.object-grid article:nth-child(3n) {
  border-right: 0;
}

.object-grid article:nth-last-child(-n+3) {
  border-bottom: 0;
}

.object-grid strong {
  font-size: 1rem;
}

.object-grid p {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.reference-grid article {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  min-height: 15rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.014);
}

.reference-symbol {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: .85rem;
  color: var(--cyan);
  background: rgba(103,232,249,.04);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.reference-grid h3 {
  margin: .15rem 0 0;
  font-size: 1.2rem;
}

.reference-grid p {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.extend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.extend-grid article {
  min-height: 16rem;
  padding: 1.35rem;
  border-right: 1px solid var(--border);
  background: rgba(255,255,255,.012);
}

.extend-grid article:last-child {
  border-right: 0;
}

.extend-grid span {
  color: var(--violet);
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.extend-grid h3 {
  margin: .8rem 0 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.extend-grid p {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.feature-page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.3rem 1.45rem;
  border: 1px solid rgba(181,140,255,.17);
  border-radius: var(--radius-md);
  background: rgba(181,140,255,.035);
}

.feature-page-cta strong {
  color: white;
}

.feature-page-cta p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 980px) {
  .features-hero,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .intent-map {
    max-width: 44rem;
  }

  .proof-flow {
    grid-template-columns: 1fr;
  }

  .proof-flow > i {
    display: none;
  }

  .proof-cards {
    grid-template-columns: 1fr;
  }

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

  .object-grid article,
  .object-grid article:nth-child(3n),
  .object-grid article:nth-last-child(-n+3) {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .object-grid article:nth-child(2n) {
    border-right: 0;
  }

  .object-grid article:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .extend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .features-hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .features-hero h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .intent-map a {
    grid-template-columns: 2rem 1fr;
  }

  .intent-map small {
    display: none;
  }

  .area-heading {
    grid-template-columns: 1fr;
  }

  .area-number {
    width: 3rem;
    height: 3rem;
    border-radius: .8rem;
  }

  .capability-grid,
  .object-grid,
  .reference-grid,
  .extend-grid {
    grid-template-columns: 1fr;
  }

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

  .object-grid article,
  .object-grid article:nth-child(2n),
  .object-grid article:nth-child(3n),
  .object-grid article:nth-last-child(-n+2),
  .object-grid article:nth-last-child(-n+3) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .object-grid article:last-child {
    border-bottom: 0;
  }

  .extend-grid article,
  .extend-grid article:nth-child(2n),
  .extend-grid article:nth-last-child(-n+2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .extend-grid article:last-child {
    border-bottom: 0;
  }

  .feature-page-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Pipeline deep dive */

.pipeline-deep-dive {
  scroll-margin-top: 5.5rem;
  padding-top: clamp(5.5rem, 9vw, 8rem);
  padding-bottom: clamp(5.5rem, 9vw, 8rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 100% 15%, rgba(103,232,249,.055), transparent 28rem),
    rgba(255,255,255,.01);
}

.pipeline-heading {
  max-width: 68rem;
}

.pipeline-target-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.012);
}

.pipeline-target-grid article {
  min-height: 12rem;
  padding: 1.35rem;
  border-right: 1px solid var(--border);
}

.pipeline-target-grid article:last-child {
  border-right: 0;
}

.pipeline-target-grid span,
.pipeline-trust-grid span {
  color: var(--cyan);
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pipeline-target-grid strong {
  display: block;
  margin-top: .65rem;
  color: white;
  font-size: 1.03rem;
}

.pipeline-target-grid p {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.pipeline-module-wall {
  display: grid;
  grid-template-columns: .34fr .66fr;
  gap: 1rem;
  margin-top: 1rem;
}

.module-wall-copy,
.module-groups {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.014);
}

.module-wall-copy {
  padding: 1.6rem;
}

.module-wall-count {
  display: block;
  margin-top: 1rem;
  color: white;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .85;
  letter-spacing: -.08em;
}

.module-wall-copy h3 {
  margin: .55rem 0 0;
  font-size: 1.25rem;
}

.module-wall-copy > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.7;
}

.module-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.module-groups div {
  min-height: 7.1rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.module-groups div:nth-child(2n) {
  border-right: 0;
}

.module-groups div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.module-groups strong {
  display: block;
  color: white;
  font-size: .82rem;
}

.module-groups span {
  display: block;
  margin-top: .4rem;
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.55;
}

.pipeline-trust-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.pipeline-trust-grid article {
  min-height: 14rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.014);
}

.pipeline-trust-grid h3 {
  margin: .7rem 0 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.pipeline-trust-grid p {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .79rem;
}

@media (max-width: 980px) {
  .pipeline-target-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .pipeline-target-grid article:nth-child(2) {
    border-right: 0;
  }

  .pipeline-target-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .pipeline-module-wall {
    grid-template-columns: 1fr;
  }

  .pipeline-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pipeline-target-grid,
  .module-groups {
    grid-template-columns: 1fr;
  }

  .pipeline-target-grid article,
  .pipeline-target-grid article:nth-child(2),
  .pipeline-target-grid article:nth-child(-n+2),
  .module-groups div,
  .module-groups div:nth-child(2n),
  .module-groups div:nth-last-child(-n+2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .pipeline-target-grid article:last-child,
  .module-groups div:last-child {
    border-bottom: 0;
  }
}


/* Evidence and Library boundaries */

.capability-card#lattices,
.capability-card#quartics {
  scroll-margin-top: 6rem;
}

.proof-boundary-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem 1rem;
  align-items: start;
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.012);
}

.proof-boundary-note strong {
  color: var(--green);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.proof-boundary-note span {
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.65;
}

.library-boundary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: .7rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.library-boundary > div {
  min-height: 8.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: rgba(255,255,255,.012);
}

.library-boundary-middle {
  border-style: dashed !important;
}

.library-boundary > i {
  align-self: center;
  color: var(--muted-2);
  font-style: normal;
}

.library-boundary span,
.library-boundary strong {
  display: block;
}

.library-boundary span {
  color: var(--cyan);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.library-boundary strong {
  margin-top: .6rem;
  color: white;
  font-size: .82rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .proof-boundary-note,
  .library-boundary {
    grid-template-columns: 1fr;
  }

  .library-boundary > i {
    display: none;
  }

  .library-boundary > div {
    min-height: auto;
  }
}
