:root {
  color-scheme: light;
  --navy-950: #07111f;
  --navy-900: #0a1728;
  --navy-850: #0d1c30;
  --navy-800: #13243a;
  --ink: #0b1524;
  --ink-soft: #344256;
  --muted: #5b687a;
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --line: #dce2e8;
  --line-strong: #c9d2dc;
  --teal: #18c8bd;
  --teal-deep: #007d78;
  --blue: #4f81ff;
  --amber: #f5a642;
  --actor: #356cc9;
  --actor-soft: #edf4ff;
  --risk: #b64b42;
  --risk-soft: #fff1ef;
  --control: #087c66;
  --control-soft: #eaf8f4;
  --shadow-sm: 0 1px 2px rgba(7, 17, 31, 0.04), 0 10px 30px rgba(7, 17, 31, 0.04);
  --shadow-md: 0 20px 50px rgba(7, 17, 31, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-width: 1480px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--navy-950);
  background: var(--teal);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #f7fbff;
  background: rgba(7, 17, 31, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
}

.site-header__inner,
.hero__inner,
.trust-strip,
.intro-section,
.explorer,
.evidence-section,
.framework-cta,
.site-footer,
.content-shell,
.page-hero__inner {
  width: min(var(--max-width), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(5, 3px);
  align-items: end;
  gap: 3px;
  width: 27px;
  height: 25px;
  flex: 0 0 auto;
}

.brand__mark span {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: var(--teal);
}

.brand__mark span:nth-child(1),
.brand__mark span:nth-child(5) {
  height: 42%;
  opacity: 0.56;
}

.brand__mark span:nth-child(2),
.brand__mark span:nth-child(4) {
  height: 70%;
  opacity: 0.78;
}

.brand__mark span:nth-child(3) {
  height: 100%;
}

.brand__name {
  overflow: hidden;
  color: inherit;
  font-size: 0.91rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: #aebbd0;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #ffffff;
}

.site-nav .site-nav__github {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-inline: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #eef4fb;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  min-width: 4.25rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #eef4fb;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 680;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] summary {
  color: var(--navy-950);
  background: var(--teal);
}

.mobile-nav nav {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(19rem, calc(100vw - 1.5rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #0d1a2b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.mobile-nav nav a {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #d6e0ed;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav nav a:last-child {
  border-bottom: 0;
}

.mobile-nav nav a:hover,
.mobile-nav nav a:focus-visible,
.mobile-nav nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(112deg, #07111f 0%, #081525 58%, #0b1d2a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 80%, transparent);
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding-block: 6.5rem 7.5rem;
}

.hero__copy {
  max-width: 680px;
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--teal-deep);
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.framework-cta .eyebrow {
  color: #7de3dc;
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(24, 200, 189, 0.11);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: inherit;
  font-weight: 720;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(3.9rem, 7vw, 7.2rem);
  line-height: 0.88;
}

h1 span {
  color: #bac5d4;
}

h2 {
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.14;
}

.lede {
  max-width: 61ch;
  margin: 1.8rem 0 0;
  color: #aebbd0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding-inline: 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.91rem;
  font-weight: 730;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--navy-950);
  background: var(--teal);
  box-shadow: 0 14px 32px rgba(24, 200, 189, 0.17);
}

.button--primary:hover {
  background: #35d9cf;
}

.button--secondary {
  color: #eef4fb;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.button--light {
  color: var(--navy-950);
  background: #ffffff;
}

.hero__note {
  margin: 1.15rem 0 0;
  color: #8d9bb0;
  font-size: 0.78rem;
}

.hero-system {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(11, 28, 45, 0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-system__topline,
.hero-system__signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #8290a6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.live-label span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--teal);
}

.hero-system__metric {
  display: flex;
  align-items: end;
  gap: 1rem;
  padding-block: 2rem 1.8rem;
}

.hero-system__metric strong {
  color: #ffffff;
  font-size: 5.7rem;
  font-weight: 680;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.hero-system__metric span {
  max-width: 21ch;
  color: #9eacc0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-system__phases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-system__phases span {
  min-width: 0;
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.5rem;
  padding: 1rem 0.7rem;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  color: #dce5ef;
  font-size: 0.76rem;
  font-weight: 680;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: linear-gradient(to top, rgba(24, 200, 189, 0.08), transparent 75%);
}

.hero-system__phases span:last-child {
  border-right: 0;
}

.hero-system__phases small {
  color: var(--teal);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.hero-system__signal {
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 1rem;
}

.hero-system__signal > span {
  margin-right: auto;
}

.hero-system__signal div {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  color: #aebbd0;
  letter-spacing: 0;
  text-transform: none;
}

.signal,
.legend__item i {
  width: 0.48rem;
  height: 0.48rem;
  display: inline-block;
  border-radius: 999px;
}

.signal--actor,
.legend__item--actor i {
  background: var(--actor);
}

.signal--risk,
.legend__item--risk i {
  background: var(--risk);
}

.signal--control,
.legend__item--control i {
  background: var(--control);
}

.trust-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.trust-strip > div {
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.6rem;
  border-right: 1px solid var(--line);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip strong {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 690;
  letter-spacing: -0.05em;
  line-height: 1;
}

.trust-strip span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 610;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding-block: 9rem 6rem;
}

.intro-section h2 {
  max-width: 19ch;
}

.intro-section > p,
.evidence-section__intro > p,
.framework-cta > p,
.page-hero__copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.explorer {
  padding-bottom: 8rem;
}

.explorer__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.text-button {
  min-height: 2.75rem;
  padding-inline: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 690;
}

.text-button:hover {
  color: var(--ink);
  border-color: #aeb8c3;
}

.control-bar {
  position: relative;
  top: auto;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 0.85rem 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}

.control-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.control-panel--domains {
  grid-column: 1 / -1;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.control-panel--view {
  align-self: end;
}

.control-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.control-heading > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.control-label {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-group,
.view-switch {
  gap: 0.4rem;
}

.chip-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.05rem 0 0.3rem;
}

.view-switch {
  display: flex;
}

.chip,
.view-switch__button {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.chip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 0.9rem;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.chip__number {
  flex: 0 0 auto;
  padding-top: 0.08rem;
  color: #5f6d7e;
  font-size: 0.63rem;
  letter-spacing: 0.05em;
}

.chip:hover,
.view-switch__button:hover {
  border-color: #aeb8c4;
  transform: translateY(-1px);
}

.chip.is-active,
.view-switch__button.is-active {
  color: #ffffff;
  border-color: var(--navy-900);
  background: var(--navy-900);
}

.chip.is-active .chip__number {
  color: var(--teal);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field > span {
  position: absolute;
  left: 0.85rem;
  color: var(--muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 4rem 0 2.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 0.8rem;
}

.search-field input::placeholder {
  color: #5f6d7e;
}

.search-field input:focus {
  border-color: var(--blue);
  background: #ffffff;
  outline: 3px solid #356cc9;
  outline-offset: 2px;
}

.search-field__clear {
  position: absolute;
  right: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.65rem;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 680;
}

.search-field__clear:hover {
  color: var(--ink);
  background: #e9edf1;
}

.view-switch {
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.view-switch__button {
  min-height: 2.75rem;
  padding-inline: 0.8rem;
  border-color: transparent;
  background: transparent;
}

.active-domain {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.active-domain__header {
  display: grid;
  padding: 2rem;
}

.domain-name {
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.active-domain__lead {
  max-width: 78ch;
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.65;
}

.active-domain__context,
.reference-context {
  max-width: 90ch;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.active-domain__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.active-domain__meta span,
.reference-count,
.source-org,
.source-type,
.source-scope {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding-inline: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 0.67rem;
  font-weight: 720;
}

.domain-details {
  border-top: 1px solid var(--line);
}

.domain-details summary {
  position: relative;
  padding: 1rem 3.25rem 1rem 2rem;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.81rem;
  font-weight: 690;
  list-style: none;
}

.domain-details summary::-webkit-details-marker {
  display: none;
}

.domain-details summary::after {
  content: "+";
  position: absolute;
  right: 2rem;
  color: var(--teal-deep);
  font-size: 1.15rem;
  font-weight: 500;
}

.domain-details[open] summary::after {
  content: "−";
}

.domain-brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.domain-brief {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.domain-brief:last-child {
  border-right: 0;
}

.domain-brief__title {
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.domain-brief__list {
  display: grid;
  gap: 0.65rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.domain-brief__list li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.domain-brief__list li::before {
  content: "";
  position: absolute;
  top: 0.48rem;
  left: 0;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--teal-deep);
}

.matrix-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #e9edf1;
}

.matrix-panel__top {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.45rem 0.9rem;
}

.matrix-panel__top > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 620;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.matrix-scroll {
  overflow: auto;
  border: 1px solid #d4dbe2;
  border-radius: var(--radius-md);
  background: #f2f4f6;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  gap: 0.65rem;
  min-width: 1320px;
  padding: 0.65rem;
}

.phase-detail {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.phase-detail__header {
  min-height: 12rem;
  display: grid;
  align-content: start;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7f9fa);
}

.phase-kicker {
  margin: 0 0 1.35rem;
  color: var(--teal-deep);
  font-size: 0.63rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.phase-title {
  color: var(--ink);
  font-size: 1.4rem;
}

.phase-summary {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.phase-detail__meta {
  align-self: end;
  margin: 1rem 0 0;
  color: #59677a;
  font-size: 0.65rem;
  font-weight: 660;
}

.phase-stack {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.65rem;
  list-style: none;
  background: #f8f9fa;
}

.matrix-tile {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.matrix-tile--actors {
  border-color: #c9d9f2;
  background: var(--actor-soft);
}

.matrix-tile--risks {
  border-color: #f0d1cd;
  background: var(--risk-soft);
}

.matrix-tile--mitigations {
  border-color: #c7e7de;
  background: var(--control-soft);
}

.matrix-tile__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.matrix-tile__label {
  margin: 0;
  font-size: 0.61rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-tile__code {
  flex: 0 0 auto;
  color: #59677a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.55rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.matrix-tile--actors .matrix-tile__label {
  color: var(--actor);
}

.matrix-tile--risks .matrix-tile__label {
  color: var(--risk);
}

.matrix-tile--mitigations .matrix-tile__label {
  color: var(--control);
}

.matrix-tile__text {
  margin: 0;
  color: #29374a;
  font-size: 0.76rem;
  line-height: 1.5;
}

.phase-empty {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 5rem 1.5rem;
  border: 1px dashed #bdc7d1;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state span {
  font-size: 0.82rem;
}

.evidence-section {
  padding-block: 7rem;
  border-top: 1px solid var(--line);
}

.evidence-section__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

.evidence-section__intro h2 {
  max-width: 16ch;
}

.reference-grid {
  margin-top: 3rem;
}

.reference-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.reference-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  border-bottom: 1px solid var(--line);
}

.reference-card__header .domain-name {
  font-size: 1.55rem;
}

.reference-count {
  color: var(--teal-deep);
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sources;
}

.source-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.35rem 2rem;
  border-bottom: 1px solid var(--line);
}

.source-list li:last-child {
  border-bottom: 0;
}

.source-list li:hover {
  background: var(--surface-soft);
}

.source-number {
  color: #5f6d7e;
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.05em;
}

.source-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.source-org,
.source-type,
.source-scope {
  min-height: 1.55rem;
  padding-inline: 0.5rem;
  font-size: 0.59rem;
}

.source-org {
  color: var(--teal-deep);
  border-color: #b9ddd8;
  background: #edf9f7;
}

.source-scope {
  color: #5b4b24;
  border-color: #e4d5ad;
  background: #fff9e9;
}

.source-link {
  display: inline;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 690;
  line-height: 1.45;
  text-decoration: none;
}

.source-link:hover,
.source-link:focus-visible {
  color: var(--teal-deep);
}

.source-arrow {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--teal-deep);
}

.source-note {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.evidence-section__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.evidence-section__footer a {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 690;
  text-decoration: none;
}

.evidence-section__footer a:hover {
  color: var(--teal-deep);
}

.framework-cta {
  margin-bottom: 7rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 25%, rgba(24, 200, 189, 0.18), transparent 25rem),
    var(--navy-900);
  box-shadow: var(--shadow-md);
}

.framework-cta h2 {
  max-width: 21ch;
}

.framework-cta > p {
  max-width: 59ch;
  margin-top: 1.2rem;
  color: #aebbd0;
}

.framework-cta .button {
  margin-top: 1.8rem;
}

.site-footer {
  color: #afbdd0;
  background: var(--navy-950);
}

.site-footer__top {
  min-height: 14rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand--footer {
  color: #ffffff;
}

.site-footer__top > div > p {
  max-width: 44ch;
  margin: 0.9rem 0 0;
  color: #71839b;
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
}

.site-footer nav a {
  color: #9cacc2;
  font-size: 0.79rem;
  font-weight: 620;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: #ffffff;
}

.site-footer__bottom {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #8190a5;
  font-size: 0.68rem;
}

/* Secondary pages */
.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(24, 200, 189, 0.15), transparent 28rem),
    var(--navy-950);
}

.page-hero__inner {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
  gap: 5rem;
  align-items: end;
  padding-block: 6rem;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
}

.page-hero__copy > p:last-child {
  color: #aebbd0;
}

.content-shell {
  padding-block: 7rem;
}

.content-section + .content-section {
  margin-top: 8rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.45fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  max-width: 17ch;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.content-card {
  min-height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.content-card__index {
  margin: 0 0 2.5rem;
  color: var(--teal-deep);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.content-card h3 {
  color: var(--ink);
  font-size: 1.2rem;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

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

.maturity-card {
  position: relative;
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.maturity-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal-deep);
  opacity: 0.25;
}

.maturity-card--level-1::before {
  opacity: 0.38;
}

.maturity-card--level-2::before {
  opacity: 0.51;
}

.maturity-card--level-3::before {
  opacity: 0.64;
}

.maturity-card--level-4::before {
  opacity: 0.77;
}

.maturity-card small {
  color: var(--teal-deep);
  font-weight: 760;
  letter-spacing: 0.1em;
}

.maturity-card h3 {
  margin-top: auto;
  color: var(--ink);
}

.maturity-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.formula-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.formula-panel__score {
  display: grid;
  place-content: center;
  padding: 3rem;
  color: #ffffff;
  background: var(--navy-900);
  text-align: center;
}

.formula-panel__score strong {
  color: var(--teal);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.08em;
  line-height: 1;
}

.formula-panel__score span {
  margin-top: 0.75rem;
  color: #9fafc3;
  font-size: 0.75rem;
}

.formula-panel__body {
  display: grid;
  gap: 1.25rem;
  padding: 2.5rem;
}

.score-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.score-row > span:first-child {
  width: 1.8rem;
  color: var(--teal-deep);
  font-size: 0.72rem;
  font-weight: 760;
}

.score-row strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.score-row p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.score-row > span:last-child {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 720;
}

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

.timeline article {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-right: 1px solid var(--line);
}

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

.timeline strong {
  color: var(--teal-deep);
  font-size: 2.6rem;
  font-weight: 650;
  letter-spacing: -0.06em;
}

.timeline h3 {
  margin-top: auto;
  color: var(--ink);
}

.timeline p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.notice {
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  background: #fff8ed;
  font-size: 0.82rem;
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .hero__inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 3rem;
  }

  .control-bar {
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .control-panel--view {
    grid-column: auto;
  }

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

  .view-switch {
    width: fit-content;
  }

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

  .domain-brief:nth-child(2) {
    border-right: 0;
  }

  .domain-brief:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

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

@media (max-width: 860px) {
  .site-header__inner,
  .hero__inner,
  .trust-strip,
  .intro-section,
  .explorer,
  .evidence-section,
  .framework-cta,
  .site-footer,
  .content-shell,
  .page-hero__inner {
    width: min(100% - 1.5rem, var(--max-width));
  }

  .site-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 5rem 6.5rem;
  }

  .hero-system {
    max-width: 680px;
  }

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

  .trust-strip > div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .intro-section,
  .evidence-section__intro,
  .section-heading,
  .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .control-bar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }

  .control-panel--view {
    grid-column: auto;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .matrix-scroll {
    overflow: visible;
  }

  .phase-detail__header {
    min-height: auto;
  }

  .domain-brief-grid,
  .maturity-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .timeline article:nth-child(2),
  .timeline article:nth-child(4) {
    border-right: 0;
  }

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

  .formula-panel {
    grid-template-columns: 1fr;
  }

  .site-footer__top,
  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .site-header__inner {
    min-height: 4.25rem;
  }

  .brand__name {
    max-width: 12.5rem;
  }

  .site-nav__github {
    font-size: 0 !important;
  }

  .site-nav__github::before {
    content: "GitHub";
    font-size: 0.76rem;
  }

  .site-nav__github span {
    font-size: 0.76rem;
  }

  .hero__inner {
    padding-block: 4rem 5rem;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .hero-system__metric strong {
    font-size: 4.5rem;
  }

  .hero-system__phases span {
    min-height: 8rem;
    padding-inline: 0.45rem;
    font-size: 0.66rem;
  }

  .trust-strip > div {
    min-height: 6rem;
    padding: 1rem;
  }

  .intro-section {
    padding-block: 6.5rem 4.5rem;
  }

  .explorer {
    padding-bottom: 5rem;
  }

  .explorer__heading,
  .matrix-panel__top,
  .reference-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .explorer__heading {
    display: flex;
  }

  .control-heading > span {
    display: none;
  }

  .chip-group {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.55rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .chip-group::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 min(72vw, 17rem);
    scroll-snap-align: start;
  }

  .view-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .view-switch__button {
    width: 100%;
    white-space: normal;
  }

  .active-domain__header,
  .domain-details summary,
  .reference-card__header,
  .source-list li {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .domain-details summary::after {
    right: 1.25rem;
  }

  .domain-brief-grid,
  .card-grid,
  .maturity-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .domain-brief,
  .domain-brief:nth-child(2),
  .timeline article,
  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .domain-brief + .domain-brief,
  .timeline article + article {
    border-top: 1px solid var(--line);
  }

  .matrix-panel {
    padding: 0.5rem;
  }

  .legend {
    gap: 0.55rem;
  }

  .reference-card__header {
    display: flex;
  }

  .source-list li {
    gap: 0.75rem;
  }

  .evidence-section {
    padding-block: 5rem;
  }

  .framework-cta {
    width: calc(100% - 1.5rem);
    margin-bottom: 5rem;
  }

  .content-shell {
    padding-block: 5rem;
  }

  .content-section + .content-section {
    margin-top: 5rem;
  }

  .page-hero__inner {
    min-height: 360px;
    padding-block: 4.5rem;
  }

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

  .formula-panel__score,
  .formula-panel__body {
    padding: 2rem 1.25rem;
  }

  .score-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .score-row > span:last-child {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .hero__actions,
  .control-bar,
  .explorer__actions,
  .framework-cta,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000000;
    background: #ffffff;
  }

  .hero,
  .page-hero {
    color: #000000;
    background: #ffffff;
  }

  .hero__inner,
  .page-hero__inner {
    min-height: auto;
    padding-block: 2rem;
  }

  .hero-system,
  .trust-strip {
    box-shadow: none;
  }

  .matrix-grid {
    display: block;
    min-width: 0;
    padding: 0;
  }

  .phase-detail {
    margin-bottom: 1rem;
    break-inside: auto;
    box-shadow: none;
  }

  .phase-detail + .phase-detail {
    break-before: page;
  }

  .matrix-tile,
  .reference-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .matrix-panel,
  .matrix-scroll,
  .phase-stack {
    padding: 0;
    border: 0;
    background: #ffffff;
  }
}
