:root {
  color-scheme: dark;
  --ecosystem-bg: #04100b;
  --ecosystem-panel: #0a1d14;
  --ecosystem-panel-soft: #10271b;
  --ecosystem-paper: #eef2e7;
  --ecosystem-ink: #eff8f0;
  --ecosystem-muted: #9eb3a5;
  --ecosystem-dark-ink: #102119;
  --ecosystem-dark-muted: #52665a;
  --ecosystem-accent: #b4ff54;
  --ecosystem-accent-soft: #71d6a8;
  --ecosystem-line: rgba(178, 225, 192, 0.18);
  --accent: #b4ff54;
  --accent-strong: #2f704d;
  --surface-soft: #e8f2e7;
  --line-strong: #95bca1;
  --radius-pill: 999rem;
  --focus-color: #b4ff54;
}

body {
  background: var(--ecosystem-bg);
  color: var(--ecosystem-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

h1,
h2,
h3,
strong {
  font-family: Georgia, "Times New Roman", serif;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #102119;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ecosystem-hero {
  position: relative;
  min-height: clamp(40rem, 78svh, 48rem);
  overflow: hidden;
  border-bottom: 1px solid var(--ecosystem-line);
  isolation: isolate;
}

.ecosystem-hero__video,
.ecosystem-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ecosystem-hero__video {
  z-index: -3;
  object-fit: cover;
}

.ecosystem-hero__overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 9, 5, 0.96) 0%, rgba(2, 14, 8, 0.84) 45%, rgba(2, 12, 7, 0.28) 100%),
    linear-gradient(180deg, rgba(1, 8, 5, 0.16), rgba(1, 8, 5, 0.9));
}

.ecosystem-hero__shell {
  width: min(92rem, 100%);
  min-height: clamp(40rem, 78svh, 48rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.55fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--container-gutter);
}

.ecosystem-hero__copy {
  max-width: 53rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--ecosystem-accent-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.concept-emphasis {
  padding-inline: 0.08em;
  background: linear-gradient(
    transparent 68%,
    rgba(180, 255, 84, 0.17) 68%
  );
  color: var(--ecosystem-accent);
  font-family: inherit;
  font-style: normal;
  font-weight: 800;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ecosystem-section--paper .concept-emphasis {
  background: linear-gradient(
    transparent 68%,
    rgba(47, 112, 77, 0.16) 68%
  );
  color: #245d3c;
}

.ecosystem-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7.5vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-wrap: balance;
}

.ecosystem-hero__lead {
  max-width: 64ch;
  margin: 1.6rem 0 0;
  color: #d4e4d8;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.ecosystem-hero__context {
  max-width: 70ch;
  margin: 1rem 0 0;
  color: var(--ecosystem-muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ecosystem-accent);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease-out;
}

.primary-action {
  background: var(--ecosystem-accent);
  color: #0b180f;
}

.secondary-action {
  background: rgba(4, 16, 11, 0.68);
  color: var(--ecosystem-ink);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  transform: scale(1.02);
}

.ecosystem-nav {
  align-self: end;
  padding: 1.2rem;
  border: 1px solid var(--ecosystem-line);
  border-radius: 1.25rem;
  background: rgba(4, 16, 11, 0.76);
  backdrop-filter: blur(12px);
}

.ecosystem-nav__label {
  margin: 0 0 0.9rem;
  color: var(--ecosystem-accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ecosystem-nav ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ecosystem-nav a {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ecosystem-line);
  color: #d9e8dc;
  font-size: 0.86rem;
  text-decoration: none;
}

.ecosystem-nav a::after {
  color: var(--ecosystem-accent);
  content: "↘";
}

.ecosystem-section {
  padding: clamp(4.5rem, 9vw, 8rem) var(--container-gutter);
}

.ecosystem-section + .ecosystem-section {
  border-top: 1px solid var(--ecosystem-line);
}

.ecosystem-section--paper {
  background: var(--ecosystem-paper);
  color: var(--ecosystem-dark-ink);
}

.section-shell {
  width: min(82rem, 100%);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.65fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.section-heading > p {
  margin: 0;
  color: var(--ecosystem-muted);
  line-height: 1.75;
  text-align: left;
}

.ecosystem-section--paper .section-heading > p {
  color: var(--ecosystem-dark-muted);
}

.portal-section {
  background:
    radial-gradient(circle at 12% 0%, rgba(113, 214, 168, 0.13), transparent 32rem),
    var(--ecosystem-bg);
}

.portal-heading {
  align-items: end;
}

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

.portal-card {
  position: relative;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
  overflow: hidden;
  border: 1px solid var(--ecosystem-line);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(180, 255, 84, 0.09), transparent 40%),
    var(--ecosystem-panel);
  color: var(--ecosystem-ink);
  text-decoration: none;
  transition:
    transform 180ms ease-out,
    border-color 180ms ease-out,
    background-color 180ms ease-out;
}

.portal-card--primary {
  background:
    radial-gradient(circle at 100% 0%, rgba(180, 255, 84, 0.19), transparent 46%),
    var(--ecosystem-panel-soft);
}

.portal-card--planned {
  grid-column: 1 / -1;
  min-height: 13rem;
  border-color: rgba(255, 98, 108, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(181, 38, 52, 0.2), transparent 46%),
    var(--ecosystem-panel);
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: rgba(180, 255, 84, 0.58);
  transform: translateY(-0.2rem) scale(1.01);
}

.portal-card--planned:hover,
.portal-card--planned:focus-visible {
  border-color: rgba(255, 98, 108, 0.72);
}

.portal-card:focus-visible {
  outline: 0.18rem solid var(--focus-color);
  outline-offset: 0.2rem;
}

.portal-card:active {
  transform: translateY(-0.05rem) scale(0.995);
}

.portal-card__index {
  color: var(--ecosystem-accent-soft);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-card--planned .portal-card__index {
  color: #ff9da3;
}

.portal-card h3 {
  max-width: 15ch;
  margin: auto 0 0.85rem;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1;
}

.portal-card p {
  margin: 0;
  color: var(--ecosystem-muted);
  line-height: 1.65;
}

.portal-card__action {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ecosystem-line);
  color: var(--ecosystem-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-card--planned .portal-card__action {
  border-top-color: rgba(255, 98, 108, 0.25);
  color: #ff9da3;
}

.portal-card--planned p {
  max-width: 72ch;
}

.kingdom-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kingdom-card,
.data-card,
.pipeline-card,
.governance-panel,
.boundary-card {
  border-radius: 1.25rem;
}

.kingdom-card {
  position: relative;
  min-height: 23rem;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--ecosystem-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(180, 255, 84, 0.12), transparent 38%),
    var(--ecosystem-panel);
}

.kingdom-card__index,
.card-label {
  color: var(--ecosystem-accent-soft);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kingdom-card h3 {
  margin: auto 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
}

.kingdom-card p {
  margin: 0;
  color: var(--ecosystem-muted);
  line-height: 1.7;
  text-align: left;
}

.kingdom-card a {
  width: fit-content;
  margin-top: 1rem;
  color: var(--ecosystem-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.evidence-boundary {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(113, 214, 168, 0.32);
  border-radius: 1rem;
  background: rgba(113, 214, 168, 0.08);
  color: #c4d7ca;
  line-height: 1.7;
}

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

.market-panel {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #c7d5c8;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
}

.market-panel--accent {
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 154, 101, 0.2), transparent 42%),
    #e5f0e2;
}

.market-panel h3 {
  max-width: 22ch;
  margin: auto 0 0.9rem;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
}

.market-panel p {
  margin: 0;
  color: var(--ecosystem-dark-muted);
  line-height: 1.75;
  text-align: left;
}

.domain-intro {
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1.55fr);
  gap: 1.5rem;
  align-items: baseline;
  margin: 2.4rem 0 1rem;
}

.domain-intro .eyebrow,
.domain-intro p {
  margin: 0;
}

.domain-intro > p:last-child {
  color: var(--ecosystem-dark-muted);
  line-height: 1.7;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.domain-card {
  min-height: 16rem;
  padding: 1.2rem;
  border: 1px solid #cbd8cc;
  border-radius: 1.1rem;
  background: #f8faf4;
}

.domain-card__index {
  color: #4f765c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.domain-card h3 {
  margin: 2.6rem 0 0.7rem;
  font-size: 1.4rem;
}

.domain-card p {
  margin: 0;
  color: var(--ecosystem-dark-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: left;
}

.data-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.data-card,
.boundary-card {
  padding: 1.4rem;
  border: 1px solid #ccd9cc;
  background: rgba(255, 255, 255, 0.68);
}

.data-card h3,
.boundary-card h3,
.pipeline-card h3,
.governance-panel h3 {
  margin: 0.8rem 0;
  font-size: 1.45rem;
}

.data-card p,
.boundary-card p {
  margin: 0;
  color: var(--ecosystem-dark-muted);
  line-height: 1.7;
  text-align: left;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: pipeline;
}

.pipeline-card {
  min-height: 15rem;
  padding: 1.25rem;
  border: 1px solid var(--ecosystem-line);
  background: var(--ecosystem-panel);
  counter-increment: pipeline;
}

.pipeline-card::before {
  color: var(--ecosystem-accent);
  content: "0" counter(pipeline);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pipeline-card p {
  margin: 0;
  color: var(--ecosystem-muted);
  line-height: 1.65;
}

.governance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #b9cdbb;
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 155, 106, 0.18), transparent 38%),
    #f9fbf5;
}

.governance-panel p {
  color: var(--ecosystem-dark-muted);
  line-height: 1.75;
  text-align: left;
}

.governance-status {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1.3rem;
  border: 1px solid rgba(181, 38, 52, 0.3);
  border-radius: 1rem;
  background: rgba(181, 38, 52, 0.07);
}

.governance-status strong {
  color: #a51f2d;
  font-size: 1.35rem;
}

.governance-status span {
  color: #486051;
  line-height: 1.6;
}

.planned-action {
  display: inline-flex;
  width: fit-content;
  min-height: 2.8rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(181, 38, 52, 0.45);
  background: #a92735;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecosystem-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem var(--container-gutter);
  border-top: 1px solid var(--ecosystem-line);
  color: var(--ecosystem-muted);
}

.ecosystem-footer p {
  margin: 0;
}

.ecosystem-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ecosystem-footer a {
  color: #dce9df;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 64rem) {
  .ecosystem-hero,
  .ecosystem-hero__shell {
    min-height: auto;
  }

  .ecosystem-hero__shell,
  .section-heading,
  .governance-panel {
    grid-template-columns: 1fr;
  }

  .ecosystem-hero__shell {
    align-content: center;
    padding-block: 4rem;
  }

  .ecosystem-nav {
    align-self: auto;
  }

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

  .kingdom-card {
    min-height: 17rem;
  }

  .data-grid,
  .boundary-grid,
  .domain-grid,
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .domain-intro {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 42rem) {
  .ecosystem-hero__shell {
    padding: 2.75rem 1rem;
  }

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

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .ecosystem-section {
    padding-inline: 1rem;
  }

  .data-grid,
  .boundary-grid,
  .domain-grid,
  .portal-grid,
  .market-thesis,
  .pipeline-grid,
  .ecosystem-footer {
    grid-template-columns: 1fr;
  }

  .market-panel {
    min-height: 15rem;
  }

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

  .portal-card {
    min-height: 17rem;
  }

  .ecosystem-footer nav {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-hero__video {
    display: none;
  }

  .primary-action,
  .secondary-action,
  .portal-card {
    transition: none;
  }

  .portal-card:hover,
  .portal-card:focus-visible,
  .portal-card:active {
    transform: none;
  }
}
