:root {
  color-scheme: dark;
  --bg: #070b0a;
  --bg-deep: #030605;
  --ink: #f4f1e8;
  --muted: #b7c1bb;
  --dim: #839089;
  --line: rgba(244, 241, 232, 0.14);
  --line-strong: rgba(104, 224, 183, 0.28);
  --surface: rgba(12, 20, 17, 0.74);
  --surface-solid: #0b1210;
  --emerald: #68e0b7;
  --cyan: #7dd9ec;
  --amber: #f2bd68;
  --danger: #ff9f86;
  --max-width: 1240px;
  --radius: 3px;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Liberation Sans", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(38, 148, 120, 0.12), transparent 30rem),
    radial-gradient(circle at 6% 54%, rgba(44, 142, 163, 0.08), transparent 34rem),
    linear-gradient(148deg, var(--bg-deep), var(--bg) 48%, #07100d);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -4;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.018) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 2px;
}

p,
h1,
h2,
h3,
dd {
  overflow-wrap: anywhere;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

h1 em,
h2 em {
  color: var(--emerald);
  font-style: normal;
  font-weight: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border: 1px solid var(--cyan);
  background: var(--bg-deep);
  color: var(--ink);
  font: 700 0.8rem/1 var(--mono);
}

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

.atmosphere,
.star-field,
.orbit {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.star-field {
  opacity: 0.72;
  background-image:
    radial-gradient(circle, rgba(125, 217, 236, 0.88) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(104, 224, 183, 0.62) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(244, 241, 232, 0.4) 0 0.8px, transparent 1.3px);
  background-position: 2% 8%, 24% 42%, 68% 16%;
  background-size: 37rem 41rem, 29rem 33rem, 19rem 23rem;
  animation: field-drift 38s linear infinite alternate;
}

.orbit {
  width: 72vw;
  height: 72vw;
  inset: auto -30vw -42vw auto;
  border: 1px solid rgba(125, 217, 236, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(104, 224, 183, 0.025) inset;
}

.orbit::after {
  position: absolute;
  top: 18%;
  left: 11%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
  content: "";
}

.orbit-two {
  width: 44vw;
  height: 44vw;
  inset: 5vh auto auto -27vw;
  border-color: rgba(104, 224, 183, 0.07);
}

@keyframes field-drift {
  to { transform: translate3d(-1.25rem, 0.75rem, 0); }
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.08);
  background: linear-gradient(to bottom, rgba(3, 6, 5, 0.96) 72%, rgba(3, 6, 5, 0.76));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.brand img {
  border: 1px solid rgba(104, 224, 183, 0.18);
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(104, 224, 183, 0.08);
}

.brand-type {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.79rem;
  letter-spacing: 0.12em;
}

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

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(244, 241, 232, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 11, 10, 0.66);
}

.primary-nav a {
  padding: 8px 11px;
  border-radius: 2px;
  color: var(--muted);
  font: 650 0.73rem/1 var(--mono);
  letter-spacing: 0.015em;
  transition: background 160ms ease, color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(104, 224, 183, 0.08);
  color: var(--emerald);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(72px, 10vw, 130px) 0;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--emerald);
  font: 760 0.72rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.signal-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 18px rgba(104, 224, 183, 0.8);
}

.signal-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(242, 189, 104, 0.75);
}

h1 {
  max-width: 13ch;
  margin-bottom: 28px;
  font-size: clamp(3.75rem, 7.7vw, 7.4rem);
  font-weight: 630;
  line-height: 0.91;
}

h2 {
  max-width: 17ch;
  margin-bottom: 32px;
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  font-weight: 580;
  line-height: 0.98;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  font-weight: 650;
  line-height: 1.15;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.75vw, 1.34rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 740 0.78rem/1 var(--mono);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

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

.button-primary {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #07110e;
  box-shadow: 0 14px 40px rgba(104, 224, 183, 0.12);
}

.button-secondary {
  background: rgba(244, 241, 232, 0.035);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--cyan);
  background: rgba(125, 217, 236, 0.07);
}

.boundary-panel {
  align-self: end;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(11, 23, 19, 0.86), rgba(7, 11, 10, 0.74));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.panel-heading,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font: 700 0.65rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.live-label {
  color: var(--emerald);
}

.live-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

.evidence-graph {
  position: relative;
  min-height: 260px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 52%, rgba(104, 224, 183, 0.11), transparent 34%),
    linear-gradient(rgba(244, 241, 232, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.024) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.node {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 2px solid var(--emerald);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 0 20px rgba(104, 224, 183, 0.45);
}

.node-source { top: 30%; left: 20%; }
.node-review { top: 53%; left: 50%; width: 14px; height: 14px; background: var(--emerald); }
.node-action { top: 27%; right: 18%; border-color: var(--cyan); box-shadow: 0 0 20px rgba(125, 217, 236, 0.5); }

.graph-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(to right, rgba(104, 224, 183, 0.25), var(--emerald));
}

.line-one { top: 32%; left: 22%; width: 36%; transform: rotate(35deg); }
.line-two { top: 55%; left: 53%; width: 34%; transform: rotate(-38deg); background: linear-gradient(to right, var(--emerald), var(--cyan)); }

.graph-orbit {
  position: absolute;
  top: 21%;
  left: 37%;
  width: 31%;
  height: 52%;
  border: 1px solid rgba(125, 217, 236, 0.16);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.graph-label {
  position: absolute;
  color: var(--dim);
  font: 650 0.57rem/1 var(--mono);
  letter-spacing: 0.06em;
}

.label-source { top: 23%; left: 11%; }
.label-review { top: 63%; left: 43%; color: var(--emerald); }
.label-action { top: 20%; right: 8%; color: var(--cyan); }

.boundary-list {
  margin: 0;
}

.boundary-list div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.07);
}

.boundary-list div:last-child {
  border-bottom: 0;
}

.boundary-list dt {
  color: var(--amber);
  font: 700 0.62rem/1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.boundary-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 10, 0.72);
}

.trust-strip div {
  min-height: 108px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

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

.trust-strip span {
  display: block;
  margin-bottom: 9px;
  color: var(--amber);
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.trust-strip strong {
  display: block;
  max-width: 27ch;
  font-size: 0.95rem;
  font-weight: 580;
  line-height: 1.45;
}

.section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(100px, 14vw, 190px) 0;
  border-bottom: 1px solid var(--line);
}

.section-index {
  padding-top: 8px;
  color: var(--dim);
  font: 680 0.66rem/1.4 var(--mono);
  letter-spacing: 0.07em;
}

.section-body {
  min-width: 0;
}

.section-body > h2 {
  max-width: 18ch;
}

.two-column-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 76px);
  max-width: 900px;
}

.two-column-copy p,
.large-copy {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle-grid article {
  min-height: 270px;
  padding: clamp(25px, 4vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(13, 23, 19, 0.56), rgba(7, 11, 10, 0.22));
}

.principle-grid article:hover {
  background: linear-gradient(145deg, rgba(17, 34, 27, 0.72), rgba(7, 11, 10, 0.35));
}

.principle-grid .principle-wide {
  grid-column: 1 / -1;
  min-height: 220px;
}

.principle-number,
.workflow-grid article > span,
.relationship-grid article > span {
  display: block;
  margin-bottom: 58px;
  color: var(--emerald);
  font: 700 0.66rem/1 var(--mono);
}

.principle-grid h3 {
  max-width: 17ch;
  font-size: 1.55rem;
}

.principle-grid p,
.evidence-card p,
.relationship-grid p,
.workflow-grid p {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.evidence-list {
  display: grid;
  gap: 18px;
}

.evidence-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 16, 14, 0.58);
}

.evidence-card.featured {
  border-color: var(--line-strong);
  background: linear-gradient(120deg, rgba(104, 224, 183, 0.075), rgba(7, 11, 10, 0.58));
}

.evidence-card .card-meta {
  display: grid;
  align-content: space-between;
  justify-content: stretch;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.card-meta span:last-child {
  color: var(--amber);
}

.evidence-card > div:last-child {
  padding: clamp(30px, 5vw, 54px);
}

.evidence-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.evidence-card p {
  max-width: 68ch;
  margin-bottom: 25px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(104, 224, 183, 0.4);
  color: var(--emerald);
  font: 700 0.75rem/1.5 var(--mono);
}

.text-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.relationship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.relationship-grid article {
  min-height: 260px;
  padding: 30px;
  background: var(--bg);
}

.relationship-grid h3 {
  font-size: 1.45rem;
}

.status-callout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 110px);
  margin: clamp(90px, 13vw, 170px) 0;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid rgba(242, 189, 104, 0.34);
  background:
    linear-gradient(120deg, rgba(242, 189, 104, 0.07), transparent 40%),
    rgba(10, 15, 13, 0.76);
}

.status-callout h2 {
  margin-bottom: 0;
}

.status-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.status-copy .status-boundary {
  padding: 18px 0 18px 20px;
  border-left: 2px solid var(--amber);
  color: var(--ink);
  font-weight: 620;
}

.contact {
  padding: clamp(100px, 16vw, 210px) 0 clamp(80px, 12vw, 150px);
  text-align: center;
}

.contact .eyebrow {
  justify-content: center;
}

.contact h2 {
  max-width: 17ch;
  margin-right: auto;
  margin-left: auto;
}

.contact > p:not(.eyebrow, .location) {
  color: var(--muted);
}

.contact-address {
  display: inline-flex;
  gap: 16px;
  margin: 12px 0 26px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--emerald);
  color: var(--emerald);
  font-size: clamp(1.3rem, 3vw, 2.3rem);
  font-weight: 560;
}

.contact-address:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.location {
  color: var(--dim);
  font: 650 0.7rem/1.5 var(--mono);
  letter-spacing: 0.04em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  min-height: 112px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  justify-self: start;
}

.site-footer > p {
  margin: 0;
  color: var(--dim);
  font: 620 0.65rem/1.5 var(--mono);
}

.site-footer nav {
  display: flex;
  justify-self: end;
  gap: 20px;
  color: var(--muted);
  font: 650 0.7rem/1.5 var(--mono);
}

.site-footer a:hover {
  color: var(--emerald);
}

/* Responsible AI security page */
.subpage-hero {
  position: relative;
  min-height: 78vh;
  padding: clamp(100px, 15vw, 190px) 0 90px;
  border-bottom: 1px solid var(--line);
}

.subpage-hero h1 {
  max-width: 12ch;
}

.subpage-hero .hero-lede {
  max-width: 760px;
}

.scope-stamp {
  position: absolute;
  right: 0;
  bottom: 90px;
  display: grid;
  gap: 8px;
  width: min(310px, 34%);
  padding: 20px;
  border: 1px solid rgba(242, 189, 104, 0.4);
  background: rgba(18, 16, 10, 0.68);
  font-family: var(--mono);
}

.scope-stamp span {
  color: var(--amber);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.scope-stamp strong {
  font-size: 0.82rem;
}

.section-body.narrow {
  max-width: 900px;
}

.large-copy {
  max-width: 760px;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.boundary-note {
  max-width: 760px;
  margin-top: 46px;
  padding: 26px 28px;
  border: 1px solid rgba(242, 189, 104, 0.35);
  background: rgba(242, 189, 104, 0.045);
}

.boundary-note span,
.column-label,
.prohibition strong {
  color: var(--amber);
  font: 720 0.67rem/1.4 var(--mono);
  letter-spacing: 0.07em;
}

.boundary-note p {
  margin: 12px 0 0;
  color: var(--ink);
  font-weight: 580;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.workflow-grid article {
  min-height: 240px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 16, 14, 0.46);
}

.workflow-grid article > span {
  margin-bottom: 42px;
}

.workflow-grid h3 {
  font-size: 1.15rem;
}

.workflow-grid p {
  font-size: 0.92rem;
}

.prohibition {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 2px solid var(--amber);
  background: rgba(242, 189, 104, 0.045);
  color: var(--muted);
}

.prohibition strong {
  margin-right: 8px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.boundary-column {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  background: rgba(10, 16, 14, 0.54);
}

.boundary-column.allowed {
  border-color: rgba(104, 224, 183, 0.28);
}

.boundary-column.denied {
  border-color: rgba(255, 159, 134, 0.22);
}

.boundary-column.denied .column-label {
  color: var(--danger);
}

.boundary-column ul {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.boundary-column li {
  position: relative;
  padding: 15px 0 15px 24px;
  border-top: 1px solid rgba(244, 241, 232, 0.08);
  color: var(--muted);
}

.boundary-column li::before {
  position: absolute;
  top: 22px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  content: "";
}

.boundary-column.denied li::before {
  width: 8px;
  height: 1px;
  border-radius: 0;
  background: var(--danger);
}

.decision-path {
  margin: clamp(100px, 14vw, 180px) 0;
}

.decision-path > h2 {
  max-width: 18ch;
}

.decision-path ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 60px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.decision-path li {
  position: relative;
  min-height: 230px;
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}

.decision-path li:last-child {
  border-right: 0;
}

.decision-path li::before {
  position: absolute;
  top: -5px;
  left: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 16px rgba(104, 224, 183, 0.55);
  content: "";
}

.decision-path li > span {
  display: block;
  margin-bottom: 52px;
  color: var(--emerald);
  font: 700 0.64rem/1 var(--mono);
}

.decision-path strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.decision-path li p {
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-contact {
  border-top: 1px solid var(--line);
}

/* 404 */
.error-shell {
  min-height: 100vh;
}

.error-content {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100vh - 82px);
  padding: 70px 0;
}

.error-content h1 {
  width: 10ch;
  max-width: 100%;
  justify-self: start;
  font-size: clamp(3.3rem, 7vw, 6.8rem);
}

.error-content > p:not(.eyebrow) {
  width: 600px;
  max-width: 100%;
  justify-self: start;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.1rem;
}

.error-content .button {
  justify-self: start;
}

.error-code {
  position: absolute;
  z-index: -1;
  right: -2vw;
  color: rgba(104, 224, 183, 0.045);
  font: 800 clamp(13rem, 30vw, 28rem)/1 var(--mono);
  letter-spacing: -0.12em;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .primary-nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .primary-nav a {
    flex: 0 0 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding-top: 32px;
  }

  .boundary-panel {
    width: min(100%, 560px);
  }

  .section {
    grid-template-columns: 120px minmax(0, 1fr);
  }

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

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

  .decision-path li:nth-child(2) {
    border-right: 0;
  }

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

  .scope-stamp {
    position: static;
    width: min(100%, 420px);
    margin-top: 44px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    position: relative;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .primary-nav a {
    padding: 10px 6px;
    text-align: center;
  }

  .brand-type {
    font-size: 0.72rem;
  }

  .hero {
    gap: 54px;
    padding: 70px 0 90px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  h2 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-strip,
  .relationship-grid,
  .status-callout,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 100px 0;
  }

  .section-index {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .two-column-copy,
  .principle-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid .principle-wide {
    grid-column: auto;
  }

  .principle-grid article {
    min-height: 240px;
  }

  .evidence-card {
    grid-template-columns: 1fr;
  }

  .evidence-card .card-meta {
    min-height: 100px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-callout {
    padding: 34px 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 36px 0;
  }

  .site-footer nav,
  .footer-brand {
    justify-self: start;
  }

  .subpage-hero {
    min-height: 0;
    padding: 90px 0;
  }

  .decision-path ol {
    grid-template-columns: 1fr;
  }

  .decision-path li,
  .decision-path li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .decision-path li:last-child {
    border-bottom: 0;
  }

  .error-code {
    top: 17%;
    font-size: 45vw;
  }
}

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

@media (forced-colors: active) {
  .signal-dot,
  .live-label i,
  .node,
  .boundary-column li::before,
  .decision-path li::before {
    forced-color-adjust: none;
  }
}
