/* varangian.ai v5: the faceplate.
   The page is an instrument panel in pale enclosure grey. What is printed on the panel is a claim;
   what shows in a dark display window is a measurement. Red, amber and green appear only on
   live measurements and always carry a word. The brass spear-V is the maker's mark and the
   only other colour. Decisions: docs/redesign-v5/DESIGN.md. No inline styles (CSP style-src 'self'). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --panel: #EEF0EC;
  --panel-2: #E2E5E0;
  --plate: #FAFBF9;
  --ink: #000000;
  --ink-2: #191C1A;
  --ink-3: #333835;
  --glass: #161A19;
  --glass-2: #212726;
  --glass-3: #2C3331;
  --lumen: #F2F5F2;
  --lumen-2: #C6CFC9;
  --ok: #5BDB8E;
  --warn: #F8B936;
  --red: #F5725F;
  --brass: #CFAE74;

  --cut: rgba(0, 0, 0, 0.26);
  --lip: rgba(255, 255, 255, 0.9);
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  background-color: var(--panel);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

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

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul,
figure,
pre {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--plate);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--cut);
  box-shadow: 0 1px 0 var(--lip);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.brand-plate {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--ink);
  border-radius: 5px;
  box-shadow: 0 1px 0 var(--lip);
}

.brand-plate svg {
  width: 1.375rem;
  height: auto;
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.125rem;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.4vw, 1.5rem);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links li:not(.nav-readout):not(.nav-cta) a {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0.5rem calc(100% - 0.55rem);
  background-size: 0 2px;
  transition: background-size 160ms ease;
}

.nav-links li:not(.nav-readout):not(.nav-cta) a:hover,
.nav-links li:not(.nav-readout):not(.nav-cta) a[aria-current="location"] {
  background-size: calc(100% - 1rem) 2px;
}

.nav-links .nav-status {
  gap: 0.5rem;
  min-height: 2.25rem;
  padding-inline: 0.75rem;
  background: var(--glass);
  color: var(--lumen);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--lip);
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 0.78125rem;
  font-weight: 400;
  white-space: nowrap;
}

.nav-links .nav-cta a {
  min-height: 2.5rem;
  padding-inline: 1.125rem;
  background: var(--ink);
  color: var(--plate);
  border-radius: 4px;
  font-weight: 600;
}

.nav-links .nav-cta a:hover {
  background: var(--ink-2);
}

/* ---------- lamps and states: the only place state colour lives ---------- */
.lamp {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--glass-3);
  box-shadow: inset 0 0 0 1px var(--lumen-2);
}

.lamp.status-ok { background: var(--ok); box-shadow: none; }
.lamp.status-warn { background: var(--warn); box-shadow: none; }
.lamp.status-red { background: var(--red); box-shadow: none; }

.state {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 0.78125rem;
  line-height: 1;
  color: var(--lumen-2);
  white-space: nowrap;
}

.state::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
}

.state-ok { color: var(--ok); }
.state-ok::before { background: var(--ok); box-shadow: none; }

.state-warn,
.state-red {
  padding: 0.3125rem 0.5rem;
  border-radius: 3px;
  color: var(--ink);
  font-weight: 600;
}

.state-warn { background: var(--warn); }
.state-red { background: var(--red); }

.state-warn::before,
.state-red::before {
  background: var(--ink);
  box-shadow: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 80ms ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--plate);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--plate);
  box-shadow: 0 2px 0 var(--lip);
}

.btn-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.button-copy {
  min-height: 2.75rem;
  padding: 0.375rem 0.875rem;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.button-copy:hover {
  background: var(--ink);
  color: var(--plate);
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  text-decoration-thickness: 3px;
}

.tag,
.plan {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--ink-3);
  border-radius: 3px;
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.rule-ref {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  background: var(--ink);
  color: var(--plate);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.rule-ref:hover {
  background: var(--ink-2);
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 5.5vw, 5rem) clamp(3rem, 6vw, 5.5rem);
}

h1 {
  font-size: clamp(2.5rem, min(7.7vw, 13.5vh), 7rem);
  font-weight: 600;
  font-stretch: 118%;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.h1-line {
  display: block;
}

.hero-brief {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-sub {
  max-width: 44rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.45;
  color: var(--ink-2);
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The annunciator: a display window set into the panel. */
.ann {
  margin-top: clamp(2.25rem, 4.5vw, 3.75rem);
  padding: 0.375rem;
  background: var(--glass);
  color: var(--lumen);
  border-radius: 10px;
  box-shadow: 0 1px 0 var(--lip), 0 -1px 0 var(--cut);
}

.ann :focus-visible,
.ledger-window :focus-visible,
.reading:focus-visible,
.nav-status:focus-visible,
.rule-evidence :focus-visible {
  outline-color: var(--lumen);
}

.ann-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem 1.5rem;
  align-items: baseline;
  padding: 0.875rem 0.875rem 1rem;
}

.ann-title {
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: 0;
  line-height: 1.3;
}

.ann-title span {
  margin-left: 0.5rem;
  color: var(--lumen-2);
  font-weight: 400;
  font-stretch: 100%;
}

.ann-summary {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.ann-age {
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 0.8125rem;
  color: var(--lumen-2);
}

.ann-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  --cols: 2;
}

.ann-tiles {
  display: contents;
}

.tile,
.ann-ctl {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 0.375rem) / var(--cols));
  min-width: 0;
}

.ann-ctl {
  flex-grow: 1;
  display: flex;
}

.tile a {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.375rem;
  height: 100%;
  min-height: 6.75rem;
  padding: 0.75rem 0.75rem 0.6875rem;
  background: var(--glass-2);
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 120ms linear, color 120ms linear;
}

.tile a:hover {
  background: var(--glass-3);
}

.tile-legend {
  font-stretch: 92%;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.tile-value {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-family: var(--mono);
  font-stretch: 78%;
  font-size: 0.78125rem;
  line-height: 1.45;
  color: var(--lumen);
  overflow-wrap: anywhere;
}

.tile .state {
  align-self: end;
  justify-self: start;
}

/* A lit tile is a control that is not holding: the whole tile takes the state colour. */
.tile.status-warn a,
.tile.status-red a {
  color: var(--ink);
}

.tile.status-warn a { background: var(--warn); }
.tile.status-red a { background: var(--red); }

.tile.status-warn .tile-value,
.tile.status-red .tile-value {
  color: var(--ink);
}

.tile.status-warn .state,
.tile.status-red .state {
  padding: 0;
  background: none;
}

.skeleton {
  display: inline-block;
  width: 62%;
  height: 0.5rem;
  background: var(--glass-3);
  border-radius: 2px;
}

.ann-test {
  flex: 1;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 0.5rem;
  min-height: 4.5rem;
  padding: 0.75rem 0.75rem 0.6875rem;
  background: transparent;
  color: var(--lumen);
  border: 1px solid var(--lumen-2);
  border-radius: 3px;
  font-stretch: 92%;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms linear, color 120ms linear;
}

.ann-test span {
  font-family: var(--mono);
  font-stretch: 78%;
  font-size: 0.78125rem;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.85;
}

.ann-test:hover,
.ann[data-lamp] .ann-test {
  background: var(--lumen);
  color: var(--glass);
}

/* Lamp test: every tile lights red, then amber. Never green. The words on the tiles do not change,
   and the classes that carry the real state are never touched, so the test cannot leave a lie behind. */
.ann[data-lamp] .tile a { color: var(--ink); }
.ann[data-lamp] .tile .tile-value { color: var(--ink); }
.ann[data-lamp] .tile .state { padding: 0; background: none; color: var(--ink); }
.ann[data-lamp] .tile .state::before { background: var(--ink); box-shadow: none; }
.ann[data-lamp="red"] .tile a { background: var(--red); }
.ann[data-lamp="warn"] .tile a { background: var(--warn); }

.ann-tiles .tile:nth-child(2) a { transition-delay: 25ms; }
.ann-tiles .tile:nth-child(3) a { transition-delay: 50ms; }
.ann-tiles .tile:nth-child(4) a { transition-delay: 75ms; }
.ann-tiles .tile:nth-child(5) a { transition-delay: 100ms; }
.ann-tiles .tile:nth-child(6) a { transition-delay: 125ms; }
.ann-tiles .tile:nth-child(7) a { transition-delay: 150ms; }
.ann-tiles .tile:nth-child(8) a { transition-delay: 175ms; }
.ann-tiles .tile:nth-child(9) a { transition-delay: 200ms; }
.ann-tiles .tile:nth-child(10) a { transition-delay: 225ms; }
.ann-tiles .tile:nth-child(11) a { transition-delay: 250ms; }
.ann-tiles .tile:nth-child(n + 12) a { transition-delay: 275ms; }
.ann:not([data-lamp]) .ann-tiles .tile a:hover { transition-delay: 0ms; }

.ann-foot {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1rem 0.875rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--lumen-2);
}

.ann-foot p {
  max-width: 46rem;
}

.ann-foot a {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 2.75rem;
  color: var(--lumen);
  font-weight: 600;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.facts dt,
.spec dt {
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-3);
}

.facts dd {
  margin-top: 0.125rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(4rem, 9vw, 8.5rem);
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
}

.section-recessed {
  background: var(--panel-2);
  box-shadow: inset 0 2px 3px -2px rgba(0, 0, 0, 0.35);
}

.section-recessed + .section {
  border-top-color: transparent;
  box-shadow: inset 0 1px 0 var(--lip);
}

h2 {
  font-size: clamp(1.875rem, 3.7vw, 3.375rem);
  font-weight: 600;
  font-stretch: 118%;
  line-height: 1.04;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.lead {
  margin-top: 1.125rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink-2);
}

.section-head-wide {
  margin-bottom: clamp(2.25rem, 4.5vw, 4rem);
}

.split {
  display: grid;
  gap: 2.5rem;
}

/* ---------- services ---------- */
.service {
  display: grid;
  gap: 0.625rem;
  padding-block: 1.625rem;
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
}

.service:last-child {
  padding-bottom: 0;
}

.service p {
  max-width: 40rem;
  color: var(--ink-2);
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

/* ---------- doctrine ---------- */
.rule {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: clamp(1.75rem, 3.5vw, 3rem);
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
}

.rule-head {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}

.rule-number {
  font-size: 1.75rem;
  font-weight: 700;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.rule-title {
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.rule-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.rule-toggle {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-0.2em) rotate(45deg);
  transition: transform 160ms ease;
}

.rule-btn[aria-expanded="true"] .rule-toggle {
  transform: translateY(0.1em) rotate(-135deg);
}

.rule-body {
  display: grid;
  gap: 1.5rem;
  padding-top: 0.75rem;
}

.rule-cols {
  display: grid;
  gap: 1.25rem 2.5rem;
}

.rule-col h4 {
  margin-bottom: 0.375rem;
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-3);
}

.rule-col p {
  max-width: 36rem;
  color: var(--ink-2);
}

.rule-evidence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
  padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  background: var(--glass);
  color: var(--lumen);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--lip), 0 -1px 0 var(--cut);
}

.rule-evidence-label {
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lumen-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.evidence-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--glass-2);
  border-radius: 3px;
  font-stretch: 96%;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.evidence-link:hover {
  background: var(--glass-3);
}

.evidence-link.status-warn,
.evidence-link.status-red {
  color: var(--ink);
  font-weight: 600;
}

.evidence-link.status-warn { background: var(--warn); }
.evidence-link.status-red { background: var(--red); }

.evidence-link.status-warn .lamp,
.evidence-link.status-red .lamp {
  background: var(--ink);
}

.evidence-word {
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ---------- ledger ---------- */
.ledger-window {
  padding: 0.375rem;
  background: var(--glass);
  color: var(--lumen);
  border-radius: 10px;
  box-shadow: 0 1px 0 var(--lip), 0 -1px 0 var(--cut);
}

.ledger-top {
  display: grid;
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: 1rem 0.875rem;
}

.ledger-banner {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.ledger-banner .lamp {
  transform: translateY(-0.1em);
}

.ledger-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 0.8125rem;
  color: var(--lumen-2);
}

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

.count {
  padding: 0.75rem 0.875rem 0.875rem;
  background: var(--glass-2);
  border-radius: 3px;
}

.count dt {
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--lumen-2);
}

.count dd {
  margin-top: 0.25rem;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 600;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.c-ok dd { color: var(--ok); }
.c-warn dd { color: var(--warn); }
.c-red dd { color: var(--red); }

.count[data-zero] dd {
  color: var(--lumen-2);
}

.ledger-panel {
  margin-top: 0.375rem;
}

.ledger-head {
  display: none;
}

.ledger-row {
  background: var(--glass-2);
  border-radius: 3px;
}

.ledger-row + .ledger-row {
  margin-top: 0.125rem;
}

.ledger-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  cursor: pointer;
  list-style: none;
}

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

.ledger-row summary:hover {
  background: var(--glass-3);
  border-radius: 3px;
}

.ledger-row summary .state {
  grid-column: 1;
  justify-self: start;
}

.ledger-identity {
  grid-column: 1;
  display: grid;
  gap: 0.25rem 1.5rem;
}

.ledger-label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.ledger-value {
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--lumen);
  overflow-wrap: anywhere;
}

.chev {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 0.5625rem;
  height: 0.5625rem;
  margin-right: 0.375rem;
  border-right: 1.5px solid var(--lumen-2);
  border-bottom: 1.5px solid var(--lumen-2);
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform 160ms ease;
}

.ledger-row[open] .chev {
  transform: translateY(0.15em) rotate(-135deg);
}

.ledger-body {
  display: grid;
  gap: 0.625rem;
  padding: 0.25rem 0.875rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--lumen);
}

.ledger-body p {
  max-width: 54rem;
  overflow-wrap: anywhere;
}

.ledger-detail {
  font-weight: 500;
}

.ledger-source {
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 0.78125rem;
}

.ledger-fallback {
  padding: 1.25rem 0.875rem;
  font-weight: 600;
}

.ledger-note {
  margin-top: 1.25rem;
  max-width: 50rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ---------- regulatory clock ---------- */
.clock-grid {
  display: grid;
  gap: 3rem;
}

.clock-sub {
  margin-bottom: 1rem;
}

.obligation,
.evidence-card {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
}

.ob-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.ob-top time {
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 108%;
}

.fact {
  max-width: 40rem;
  color: var(--ink-2);
}

.source {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.source span {
  display: inline-block;
  margin-right: 0.3em;
  font-weight: 400;
  color: var(--ink-2);
}

.source:hover {
  text-decoration-thickness: 2px;
}

.stat {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  font-stretch: 118%;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.stat-label {
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-3);
}

.obligations.is-collapsed .obligation:nth-child(n + 4) {
  display: none;
}

.show-all {
  margin-top: 1rem;
  min-height: 2.75rem;
  padding: 0.375rem 1rem;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- infrastructure ---------- */
.infra-grid {
  display: grid;
  gap: 2.5rem;
}

.spec div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.8125rem;
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
}

.spec dd {
  font-weight: 600;
}

.spec .num {
  font-variant-numeric: tabular-nums;
}

.infra-extra {
  margin-top: 1.25rem;
  font-weight: 600;
}

.fine-print {
  margin-top: 0.5rem;
  max-width: 36rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.path {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.path-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.path-steps {
  display: grid;
}

.path-step {
  display: grid;
}

.path-node {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--plate);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

/* The vault is drawn sealed: a second line around it. */
.path-node-vault {
  box-shadow: 0 0 0 4px var(--panel), 0 0 0 5.5px var(--ink);
}

.path-place {
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-3);
}

.path-name {
  font-size: 1.25rem;
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.path-node p {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.125rem 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5625rem 0.75rem;
  background: var(--glass);
  color: var(--lumen);
  border-radius: 4px;
  text-decoration: none;
}

.reading:hover {
  background: var(--glass-2);
}

.reading-label {
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lumen-2);
}

.reading-value {
  grid-column: 1;
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 0.8125rem;
}

.reading .state {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.path-wire {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.diode {
  flex: none;
  width: 3.25rem;
  height: auto;
  transform: rotate(90deg);
}

.path-wire-label {
  text-wrap: balance;
  font-stretch: 88%;
  font-size: 0.875rem;
  font-weight: 600;
}

.path-caption {
  margin-top: 1.5rem;
  max-width: 46rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ---------- leadership ---------- */
.people {
  display: grid;
  gap: 2.5rem;
}

.person {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  align-content: start;
}

.person img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  filter: grayscale(1) contrast(1.05);
}

.role {
  margin-top: 0.25rem;
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-3);
}

.bio {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ---------- trust ---------- */
.trust-grid {
  display: grid;
  gap: 2.5rem;
}

.trust-item {
  display: grid;
  align-content: start;
  gap: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
}

.trust-item p {
  color: var(--ink-2);
}

.sectxt {
  padding: 0.875rem 1rem;
  background: var(--glass);
  color: var(--lumen);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--lip), 0 -1px 0 var(--cut);
  font-family: var(--mono);
  font-stretch: 78%;
  font-size: 0.78125rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sectxt b {
  font-weight: 400;
  color: var(--lumen-2);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.cert-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.cert-list li:first-child {
  border-top: 0;
  box-shadow: none;
  padding-top: 0;
}

.cert-list strong {
  display: block;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
}

.inception img {
  width: 8.25rem;
  height: auto;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.steps {
  display: grid;
  margin-top: 2.25rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.125rem;
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
}

.steps .n {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  font-stretch: 118%;
  line-height: 1;
}

.steps li:last-child .n {
  background: var(--ink);
  color: var(--plate);
}

.steps strong {
  font-size: 1.125rem;
  font-weight: 600;
}

.steps p {
  margin-top: 0.125rem;
  max-width: 30rem;
  color: var(--ink-2);
}

.contact-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--plate);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}

.label {
  font-stretch: 96%;
  letter-spacing: 0.005em;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-3);
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 0.375rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cut);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.compose {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.row2 {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6875rem 0.875rem;
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.4;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field ::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.compose-note,
.contact-aside {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.contact-aside {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cut);
}

.compose-note a,
.contact-aside a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

/* ---------- footer ---------- */
.site-footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
}

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

.footer-brand {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 0.875rem;
}

.footer-brand p {
  max-width: 24rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.footer-brand .footer-by a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.footer-col h2 {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 96%;
  letter-spacing: 0.005em;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink-3);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-col a:hover,
.footer-top-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* The entity statement is set as a maker's rating plate. */
.footer-bottom {
  display: grid;
  gap: 0.75rem 1.5rem;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1rem 1.125rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

.footer-entity {
  font-stretch: 88%;
  font-size: 0.875rem;
  line-height: 1.45;
}

.footer-top-link,
.consent-settings {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.consent-settings {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- consent ---------- */
.consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  display: grid;
  gap: 0.875rem;
  max-width: 34rem;
  margin-left: auto;
  padding: 1.125rem 1.25rem;
  background: var(--plate);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.consent p {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.consent a {
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.consent-actions {
  display: flex;
  gap: 0.5rem;
}

.consent-actions button {
  min-height: 2.75rem;
  padding: 0.375rem 1.125rem;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.consent-actions button.is-primary {
  background: var(--ink);
  color: var(--plate);
}

/* ---------- legal pages ---------- */
.legal-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-stretch: 88%;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-3);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.crumbs a:hover {
  text-decoration-thickness: 2px;
}

.legal-hero h1 {
  margin-top: 0.5rem;
  max-width: 22ch;
  font-size: clamp(2.125rem, 5.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.legal-hero .updated {
  margin-top: 1.125rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.legal-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--cut);
  box-shadow: inset 0 1px 0 var(--lip);
}

.toc {
  align-self: start;
  padding: 1.125rem 1.25rem;
  background: var(--plate);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

.toc h2 {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 96%;
  letter-spacing: 0.005em;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink-3);
}

.toc ol {
  display: grid;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding-block: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.legal-content {
  min-width: 0;
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.legal-content > h1:first-child {
  display: none;
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  color: var(--ink);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content hr {
  margin-block: 2.5rem;
  height: 0;
  border: 0;
  border-top: 1px solid var(--cut);
  box-shadow: 0 1px 0 var(--lip);
}

.legal-content hr + h2 {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.625rem;
  color: var(--ink);
  font-size: 1.1875rem;
}

.legal-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.125rem;
  padding-left: 1.375rem;
}

.legal-content ul { list-style: square; }
.legal-content ol { list-style: decimal; }

.legal-content li {
  margin-bottom: 0.4375rem;
  padding-left: 0.25rem;
}

.legal-content li::marker {
  color: var(--ink);
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-content a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.legal-content a:hover {
  text-decoration-thickness: 3px;
}

.legal-content code {
  padding: 0.125rem 0.375rem;
  background: var(--plate);
  border: 1px solid var(--cut);
  border-radius: 3px;
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 0.8125em;
  color: var(--ink);
}

.legal-content pre {
  margin-bottom: 1.25rem;
  padding: 1rem;
  overflow-x: auto;
  background: var(--plate);
  border: 1px solid var(--cut);
  border-radius: 4px;
}

.legal-content pre code {
  padding: 0;
  background: none;
  border: 0;
}

.legal-content blockquote {
  margin: 0 0 1.25rem;
  padding: 0.25rem 0 0.25rem 1.125rem;
  border-left: 3px solid var(--ink);
}

.legal-content table {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.legal-content th,
.legal-content td {
  padding: 0.6875rem 0.875rem 0.6875rem 0;
  border-bottom: 1px solid var(--cut);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  color: var(--ink);
  font-weight: 600;
  font-stretch: 88%;
  border-bottom: 1.5px solid var(--ink);
}

.legal-content .placeholder {
  font-weight: 600;
  text-decoration: underline dotted;
}

.legal-content .disclaimer-section {
  margin-bottom: 1.75rem;
}

.legal-content .legal-caps {
  font-stretch: 92%;
  font-weight: 500;
}

.legal-content .disclaimer-meta {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .ann-grid { --cols: 3; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person { grid-template-columns: 7rem minmax(0, 1fr); }
}

@media (min-width: 760px) {
  .ann-grid { --cols: 4; }
  .ann-head { grid-template-columns: auto 1fr auto; }
  .ann-summary { justify-self: center; text-align: center; }
  .ann-foot { grid-template-columns: 1fr auto; align-items: end; }
  .ledger-top { grid-template-columns: 1fr auto; }

  .rule { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .rule-head { grid-template-columns: 4.5rem minmax(0, 1fr); align-content: start; }
  .rule-number { font-size: 2.5rem; }
  .rule-body { padding-top: 0.25rem; }

  .ledger-head {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 1.15fr) 1.5rem;
    gap: 1rem;
    padding: 0.5rem 0.875rem 0.625rem;
    font-stretch: 96%;
  letter-spacing: 0.005em;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lumen-2);
  }
  .ledger-row summary {
    grid-template-columns: 6.5rem minmax(0, 1fr) 1.5rem;
    gap: 1rem;
  }
  .ledger-row summary .state { grid-column: 1; }
  .ledger-identity {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: baseline;
  }
  .chev { grid-column: 3; grid-row: 1; justify-self: center; margin-right: 0; }
  .ledger-body { padding-left: 8.375rem; }

  .obligation { grid-template-columns: 13.5rem minmax(0, 1fr); column-gap: 1.5rem; }
  .obligation .ob-top { grid-row: 1 / span 2; align-self: start; flex-direction: column; align-items: flex-start; }
  .obligation .fact,
  .obligation .source { grid-column: 2; }

  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .person { grid-template-columns: 1fr; }
  .person img { max-width: 13rem; }

  .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
  .footer-bottom { grid-template-columns: 1fr auto auto; }
  /* A slim bar, so the first-visit cookie choice does not sit on top of the annunciator. */
  .consent { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; max-width: none; padding: 0.75rem 0.875rem 0.75rem 1.25rem; }
  .footer-top-link, .consent-settings { justify-self: end; }
  .rule-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .hero-brief { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }

  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .split .section-head { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
  .service:first-child { border-top: 0; box-shadow: none; padding-top: 0.375rem; }

  .clock-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5rem; }
  .infra-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .legal-layout { grid-template-columns: 16rem minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100dvh - var(--header-h) - 3rem); overflow-y: auto; }

  .path-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.82fr); }
  .path-step { grid-template-columns: minmax(0, 1fr) 10.5rem; }
  .path-step:last-child { grid-template-columns: minmax(0, 1fr); }
  .path-wire { flex-direction: column; justify-content: center; gap: 0.625rem; padding: 0 0.5rem; text-align: center; }
  .diode { width: 100%; transform: none; }
  .path-wire-label { order: -1; }
}

@media (min-width: 1100px) {
  .ann-grid { --cols: 6; }
  .tile a { min-height: 7.25rem; }
}

/* ---------- phones: the menu drops from the header ---------- */
@media (max-width: 979px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--plate);
    border-bottom: 1.5px solid var(--ink);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; min-height: 3rem; font-size: 1.0625rem; }
  .nav-links li:not(.nav-readout):not(.nav-cta) { border-bottom: 1px solid var(--cut); }
  .nav-links .nav-readout { margin-top: 0.875rem; }
  .nav-links .nav-status { min-height: 2.75rem; }
  .nav-links .nav-cta { margin-top: 0.5rem; }
  .nav-links .nav-cta a { justify-content: center; min-height: 3rem; }
}

@media (max-width: 759px) {
  h1 { font-size: clamp(2rem, 10.2vw, 4.5rem); font-stretch: 106%; letter-spacing: -0.03em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .rule-body[hidden] { display: none; }
}

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

@media print {
  .site-header, .consent, .nav-toggle, .ann-test { display: none; }
  body { background: #FFFFFF; }
}
