:root {
  --midnight: #07111f;
  --slate: #111c2d;
  --slate-soft: #172438;
  --gold: #d5a94e;
  --gold-soft: #f0cd7a;
  --porcelain: #f4f6f8;
  --steel: #91a3b8;
  --assurance: #56c596;
  --line: rgba(145, 163, 184, 0.25);
  --line-strong: rgba(213, 169, 78, 0.45);
  --surface: rgba(17, 28, 45, 0.82);
  --display: Bahnschrift, "Arial Narrow", "Aptos Display", sans-serif;
  --body: Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --shell: min(1180px, calc(100vw - 48px));
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--midnight);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--porcelain);
  background:
    radial-gradient(circle at 78% 8%, rgba(213, 169, 78, 0.1), transparent 28rem),
    linear-gradient(180deg, #07111f 0%, #091525 48%, #07111f 100%);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(145, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(213, 169, 78, 0.24);
}

button:active,
a:active {
  opacity: 0.82;
}

[id] {
  scroll-margin-top: 92px;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--midnight);
  background: var(--porcelain);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 168px;
  height: auto;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-links a {
  min-height: 44px;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.header-links a:hover {
  color: var(--porcelain);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 92px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  top: 12%;
  right: -7vw;
  width: min(35vw, 520px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(213, 169, 78, 0.13);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(330px, 0.83fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy > .eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.hero-copy > .eyebrow span + span {
  color: var(--steel);
}

.hero-copy > .eyebrow span + span::before {
  margin-right: 24px;
  color: var(--line-strong);
  content: "/";
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 650;
  line-height: 0.98;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 6vw, 6.3rem);
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4.1vw, 4.25rem);
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 720px;
  margin: 0;
  color: #c4ced9;
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  color: var(--midnight);
  background: var(--gold);
}

.button-primary:hover {
  background: var(--gold-soft);
}

.button-secondary {
  color: var(--porcelain);
  border-color: var(--line);
  background: rgba(17, 28, 45, 0.45);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: var(--slate);
}

.hero-note {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--steel);
  font-size: 0.84rem;
}

.hero-note span {
  margin-right: 8px;
  color: var(--assurance);
}

.evidence-board {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(17, 28, 45, 0.96), rgba(9, 21, 37, 0.78));
  box-shadow: 28px 28px 0 rgba(213, 169, 78, 0.035);
}

.evidence-board::before,
.evidence-board::after {
  position: absolute;
  width: 22px;
  height: 22px;
  content: "";
  pointer-events: none;
}

.evidence-board::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.evidence-board::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-status {
  color: var(--assurance);
}

.board-status i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(86, 197, 150, 0.12);
}

.trace-map {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 26px 0 26px 30px;
  border-bottom: 1px solid var(--line);
}

.trace-line {
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 6px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--assurance));
  transform-origin: top;
  animation: trace-in 900ms 180ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trace-node {
  position: relative;
  display: grid;
  gap: 2px;
}

.trace-node::before {
  position: absolute;
  top: 7px;
  left: -28px;
  width: 9px;
  height: 9px;
  content: "";
  border: 2px solid var(--slate);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.trace-node:last-child::before {
  background: var(--assurance);
  box-shadow: 0 0 0 1px var(--assurance);
}

.trace-node span {
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trace-node strong {
  font-size: 0.92rem;
  font-weight: 600;
}

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

.inventory > div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 10px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.inventory dt {
  color: var(--porcelain);
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
}

.inventory dd {
  margin: 6px 0 0;
  color: var(--steel);
  font-size: 0.72rem;
}

.inventory-note {
  margin: 15px 0 0;
  color: var(--steel);
  font-size: 0.7rem;
  line-height: 1.5;
}

.evidence-section {
  padding: 104px 0 112px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading > p {
  max-width: 420px;
  justify-self: end;
  margin: 0 0 4px;
  color: var(--steel);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.55);
}

.filter-label {
  margin-right: 5px;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-button {
  min-height: 44px;
  padding: 8px 13px;
  color: var(--steel);
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.82rem;
  cursor: pointer;
}

.filter-button:hover {
  color: var(--porcelain);
  border-color: var(--line);
}

.filter-button.is-active {
  color: var(--midnight);
  border-color: var(--gold);
  background: var(--gold);
  font-weight: 750;
}

.filter-result {
  margin-left: auto;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.filter-result strong {
  color: var(--porcelain);
  font-size: 0.94rem;
}

.load-status {
  min-height: 26px;
  margin: 18px 0 0;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.project-list {
  border-bottom: 1px solid var(--line);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0 22px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  transition: background 180ms ease;
}

.project-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: transparent;
  transition: background 180ms ease;
}

.project-card:hover::after {
  background: rgba(17, 28, 45, 0.36);
}

.project-index {
  padding-top: 6px;
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.project-content {
  min-width: 0;
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.project-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--assurance);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-kind::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.project-status {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.project-summary {
  max-width: 920px;
  margin: 0;
  color: #c6d0db;
  font-size: 1.02rem;
}

.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-tags li {
  padding: 5px 9px;
  color: var(--steel);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.035em;
}

.record-trace {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.record-trace::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 25%;
  height: 1px;
  content: "";
  background: var(--gold);
}

.trace-field span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.trace-field p {
  margin: 0;
  color: var(--steel);
  font-size: 0.78rem;
  line-height: 1.52;
}

.project-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
}

.project-links a:first-child {
  color: var(--midnight);
  border-color: var(--porcelain);
  background: var(--porcelain);
}

.project-links a:hover {
  border-color: var(--gold);
}

.rights-details {
  min-width: min(100%, 360px);
  flex: 1;
}

.rights-details summary {
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-left: auto;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.73rem;
  cursor: pointer;
}

.rights-details[open] summary {
  color: var(--gold-soft);
}

.rights-details p {
  max-width: 620px;
  margin: 13px 0 0 auto;
  padding: 12px 14px;
  color: var(--steel);
  border-left: 2px solid var(--assurance);
  background: rgba(17, 28, 45, 0.68);
  font-size: 0.76rem;
}

.empty-state,
.error-state,
.noscript-card {
  margin: 26px 0;
  padding: 22px;
  color: var(--steel);
  border: 1px solid var(--line);
  background: var(--surface);
}

.error-state p {
  margin: 8px 0 14px;
}

.error-state ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 0;
  padding-left: 20px;
}

.error-state a,
.noscript-card a {
  color: var(--gold-soft);
}

.noscript-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.noscript-list {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.noscript-list li {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.noscript-list strong,
.noscript-list span {
  display: block;
}

.noscript-list span {
  margin: 4px 0 8px;
  color: var(--steel);
}

.noscript-card a {
  color: var(--gold-soft);
}

.boundary-section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 28, 45, 0.42);
}

.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.85fr) minmax(230px, 0.45fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.boundary-copy p {
  margin: 0;
  color: #c4ced9;
}

.boundary-copy p + p {
  margin-top: 18px;
  color: var(--steel);
  font-size: 0.9rem;
}

.boundary-seal {
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: var(--midnight);
  font-family: var(--mono);
}

.boundary-seal span {
  display: block;
  color: var(--assurance);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.boundary-seal strong {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
}

.boundary-seal hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--line);
}

.boundary-seal hr ~ span {
  color: var(--gold-soft);
}

.continue-section {
  padding: 94px 0 104px;
}

.continue-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.continue-links {
  border-top: 1px solid var(--line);
}

.continue-links a {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 80px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.continue-links a:hover strong {
  color: var(--gold-soft);
}

.continue-links span {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.continue-links strong {
  font-size: 1rem;
  transition: color 160ms ease;
}

.continue-links i {
  color: var(--gold-soft);
  font-style: normal;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner > div {
  display: grid;
  gap: 4px;
}

.footer-inner strong {
  font-family: var(--display);
  letter-spacing: 0.08em;
}

.footer-inner span {
  color: var(--steel);
  font-size: 0.76rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-inner nav a {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.72rem;
}

@keyframes trace-in {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

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

  .evidence-board {
    max-width: 720px;
  }

  .boundary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .boundary-seal {
    grid-column: 2;
  }

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

  .continue-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 30px, 1180px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 66px;
  }

  .header-links {
    gap: 14px;
  }

  .header-links a:first-child {
    display: none;
  }

  .hero {
    padding: 68px 0 62px;
  }

  .hero-grid {
    gap: 46px;
  }

  .hero-copy > .eyebrow {
    display: block;
  }

  .hero-copy > .eyebrow span {
    display: block;
  }

  .hero-copy > .eyebrow span + span {
    margin-top: 7px;
  }

  .hero-copy > .eyebrow span + span::before {
    margin-right: 10px;
  }

  h1 {
    font-size: clamp(2.85rem, 14.5vw, 4.5rem);
  }

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

  .evidence-board {
    padding: 19px;
    box-shadow: 12px 12px 0 rgba(213, 169, 78, 0.04);
  }

  .trace-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px 0;
  }

  .trace-line {
    top: 50%;
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    height: 1px;
    transform-origin: left;
  }

  .trace-node {
    min-height: 68px;
    padding: 9px;
    background: var(--slate);
  }

  .trace-node::before {
    display: none;
  }

  .evidence-section {
    padding: 74px 0 82px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading > p {
    justify-self: start;
  }

  .filter-bar {
    align-items: stretch;
  }

  .filter-label,
  .filter-result {
    width: 100%;
    margin: 2px 0;
  }

  .filter-button {
    flex: 1 1 calc(50% - 8px);
  }

  .error-state ul {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .project-index {
    margin-bottom: 13px;
  }

  .record-trace {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .record-trace::before {
    width: 42%;
  }

  .project-bottom,
  .project-links,
  .project-links a {
    width: 100%;
  }

  .rights-details summary {
    width: 100%;
    margin: 6px 0 0;
  }

  .rights-details p {
    margin-left: 0;
  }

  .boundary-section,
  .continue-section {
    padding: 70px 0;
  }

  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .boundary-seal {
    grid-column: auto;
  }

  .continue-links a {
    grid-template-columns: 1fr auto;
    gap: 5px 14px;
  }

  .continue-links span {
    grid-column: 1;
  }

  .continue-links strong {
    grid-column: 1;
  }

  .continue-links i {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 142px;
  }

  .header-links a {
    font-size: 0.68rem;
  }

  .inventory {
    grid-template-columns: 1fr;
  }

  .inventory > div,
  .inventory > div:nth-child(2n),
  .inventory > div:nth-last-child(-n + 2) {
    min-height: 74px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inventory > div:last-child {
    border-bottom: 0;
  }

  .filter-button {
    flex-basis: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
