/* ============================================================
   SYZYGY CORP — Design System
   ------------------------------------------------------------
   Tokens, typography, layout primitives, and components for
   the public corporate site. Keep this file as the single
   source of design language.
   ============================================================ */

/* ---------- 1. Design tokens ------------------------------- */
:root {
  /* Color — neutrals */
  --ink:        #0b0d10;   /* near-black, headlines + UI */
  --ink-2:      #1a1d22;   /* dark surfaces */
  --body:       #2a2e35;   /* body copy */
  --muted:      #6b7180;   /* secondary text */
  --rule:       #d9d6cd;   /* hairline divider */
  --rule-soft:  #ece9e1;   /* very faint divider */
  --paper:      #fafaf6;   /* warm off-white page */
  --paper-2:    #f1eee5;   /* alt section bg */
  --paper-3:    #e8e4d8;   /* deeper bg */

  /* Color — brand accents (echo the logo marks) */
  --syz-red:    #d6201e;
  --syz-blue:   #1797cf;
  --syz-ink:    #0b0d10;

  /* Type */
  --f-display:  "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-serif:    "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale */
  --t-display:  clamp(44px, 6.2vw, 84px);
  --t-h2:       clamp(32px, 4vw, 52px);
  --t-h3:       clamp(22px, 2vw, 28px);
  --t-lede:     clamp(18px, 1.4vw, 21px);
  --t-body:     17px;
  --t-small:    14px;
  --t-eyebrow:  12px;

  /* Layout */
  --max:        1240px;
  --max-wide:   1440px;
  --gutter:     32px;
  --section-y:  clamp(72px, 9vw, 140px);

  /* Other */
  --ease:       cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Reset / base -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms var(--ease);
}
a:hover { color: var(--syz-red); }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- 3. Layout primitives --------------------------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-y) 0;
}
.section + .section { border-top: 1px solid var(--rule); }
.section--alt   { background: var(--paper-2); }
.section--deep  { background: var(--paper-3); }
.section--dark  { background: var(--ink); color: #c8ccd4; }
.section--dark + .section { border-top: none; }

/* ---------- 4. Typography components ----------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--syz-red);
  margin: 0 0 24px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--syz-red);
}
.section--dark .eyebrow { color: var(--syz-blue); }
.section--dark .eyebrow::before { background: var(--syz-blue); }

.section-num {
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
}

.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 22ch;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 14px;
}
.lede {
  font-size: var(--t-lede);
  line-height: 1.55;
  color: var(--body);
  margin: 0 0 32px;
  max-width: 56ch;
}
.section--dark .display,
.section--dark .h2,
.section--dark .h3 { color: #ffffff; }
.section--dark .lede { color: #c8ccd4; }

.italic { font-style: italic; }

/* ---------- 5. Buttons & links ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.section--dark .btn:hover { background: transparent; color: #fff; }
.section--dark .btn--ghost { background: transparent; color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}
.arrow-link:hover { color: var(--syz-red); border-color: var(--syz-red); }
.arrow-link::after { content: "\2192"; font-size: 16px; }
/* Light variant for arrow-links on dark backgrounds (callout, dark sections),
   where the default var(--ink) text/underline would be invisible. */
.callout .arrow-link,
.section--dark .arrow-link { color: #fff; border-bottom-color: #fff; }
.callout .arrow-link:hover,
.section--dark .arrow-link:hover { color: var(--syz-blue); border-color: var(--syz-blue); }

/* ---------- 6. Top ribbon --------------------------------- */
.ribbon {
  background: var(--ink);
  color: #a7adb8;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ribbon-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  gap: 24px;
  flex-wrap: wrap;
}
.ribbon-inner span { white-space: nowrap; }
.ribbon-inner .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--syz-red);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- 7. Site header -------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 52px; width: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--ink);
  color: #fff !important;
}

/* ---------- 8. Hero --------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 120px) 0 0;
  background: var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: clamp(48px, 6vw, 88px);
}
.hero-copy { max-width: 640px; }
.hero-kicker {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--syz-red);
  margin: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-kicker::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--syz-red);
}
.hero h1 { margin-bottom: 32px; }
.hero-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--muted);
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-figure .figcaption {
  position: absolute;
  left: 24px; bottom: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(11,13,16,0.65);
  text-transform: uppercase;
}

/* ---------- 9. Trust bar ---------------------------------- */
.trust-bar {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-inner strong { color: var(--ink); font-weight: 600; }

/* ---------- 10. Metrics ----------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
  margin-top: 64px;
}
.metric {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.metric-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.metric-num .unit { font-size: 0.5em; color: var(--muted); margin-left: 4px; }
.metric-label {
  margin: 14px 0 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 11. Two-column section header ----------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 72px;
  align-items: end;
}
.section-head .lede { margin: 0; }

/* ---------- 12. Capability rows --------------------------- */
.capability {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}
.capability:first-of-type { border-top: 1px solid var(--ink); }
.capability--reverse .capability-fig { order: 2; }
.capability-fig {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.capability-fig img { width: 100%; height: 100%; object-fit: cover; }
.capability-body { max-width: 520px; }
.capability-num {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--syz-red);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.capability-num::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--syz-red);
}
.capability h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink);
}
.capability p { margin: 0 0 22px; }
.capability ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  border-top: 1px solid var(--rule);
}
.capability ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}
.capability ul li span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- 13. Pull-quote / callout band ----------------- */
.callout {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0;
}
.callout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.callout-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  color: #fff;
}
.callout-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--f-display);
  font-size: 1em;
  line-height: 0.5;
  color: var(--syz-red);
  margin-bottom: 16px;
}
.callout-quote::after {
  content: "\201D";
  display: block;
  font-family: var(--f-display);
  font-size: 1em;
  line-height: 0.5;
  color: var(--syz-red);
  margin-top: 28px;
  text-align: right;
}
.callout-body p {
  color: #c8ccd4;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.callout-fig {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-2);
  margin-top: 56px;
  filter: grayscale(0.2) contrast(1.05);
}
.callout-fig img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }

/* ---------- 14. About row --------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-fig {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}
.about-fig img { width: 100%; height: 100%; object-fit: cover; }
.about-body p { margin: 0 0 20px; max-width: 50ch; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.about-stats .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-stats .v {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--ink);
  margin-top: 4px;
}

/* ---------- 15. Sectors ----------------------------------- */
.sectors {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.sectors li {
  padding: 22px 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.sectors li::after {
  content: attr(data-code);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- 16. Leaders ----------------------------------- */
.leaders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-top: 56px;
}
.leader-fig {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
  margin-bottom: 18px;
}
.leader-fig img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.leader h4 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 2px;
  color: var(--ink);
}
.leader p {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 17. Newsroom ---------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.news-item { border-top: 2px solid var(--ink); padding-top: 22px; }
.news-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.news-meta .cat { color: var(--ink); }
.news-item h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 16px;
}
.news-item p { margin: 0 0 22px; font-size: 16px; color: var(--body); }

/* ---------- 18. CTA band ---------------------------------- */
.cta-band {
  background: var(--paper-3);
  padding: clamp(72px, 8vw, 120px) 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-band h2 { margin: 0 0 24px; }
.cta-band p { margin: 0 0 32px; color: var(--body); }

/* ---------- 19. Footer ------------------------------------ */
.site-footer {
  background: var(--ink);
  color: #a7adb8;
  padding: 88px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid #2a2e35;
}
.footer-brand { max-width: 360px; }
.footer-logo {
  background: var(--paper);
  padding: 14px 18px;
  width: fit-content;
  margin-bottom: 18px;
}
.footer-logo img { height: 48px; width: auto; }
.footer-brand p { color: #c8ccd4; line-height: 1.65; margin: 0; }
.site-footer h5 {
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer a { color: #c8ccd4; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
address { font-style: normal; line-height: 1.7; color: #c8ccd4; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a7180;
}
.footer-bottom p { margin: 0; }
.legal-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.legal-links a { color: #a7adb8; }

/* ---------- 20. Helpers ----------------------------------- */
.mono { font-family: var(--f-mono); letter-spacing: 0.1em; }
.rule { height: 1px; background: var(--rule); margin: 32px 0; }
.rule--dark { background: #2a2e35; }

/* Veiled text — invisible against the page background. In flow,
   selectable, and present in the DOM for any reader that does not
   render color. */
.veiled {
  color: var(--paper);
  background: transparent;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  user-select: text;
}
.veiled p {
  color: inherit;
  margin: 0 0 12px;
}
.veiled p:last-child { margin-bottom: 0; }

/* On pages whose body background isn't var(--paper), .veiled needs to
   pick up the actual page background so it remains invisible. */
.portal-page .veiled,
.portal-page .veiled p { color: var(--paper-2); }

/* ---------- 21. Reading Room ------------------------------ */
.breadcrumb-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.breadcrumb {
  margin: 0;
  padding: 16px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 10px; opacity: 0.6; }

.rr-hero {
  background: var(--paper);
  padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 72px);
}
.rr-hero .display { max-width: 22ch; margin-bottom: 28px; }
.rr-hero .lede    { margin: 0; max-width: 62ch; }

.rr-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rr-entry {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 56px;
  align-items: start;
}
.rr-entry:first-child {
  border-top: 2px solid var(--ink);
}
.rr-meta-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rr-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--syz-red);
}
.rr-cycle {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.rr-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.rr-title a { color: var(--ink); }
.rr-title a:hover { color: var(--syz-red); }
.rr-title .external {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.5em;
  font-family: var(--f-mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  vertical-align: middle;
  transform: translateY(-2px);
}
.rr-byline {
  font-family: var(--f-sans);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 16px;
}
.rr-note {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  max-width: 68ch;
  margin: 0;
}

/* Restricted variant — for "[For Partners]" entries */
.rr-entry--restricted .rr-title a { color: var(--muted); pointer-events: none; }
.rr-entry--restricted .rr-meta { color: var(--ink); }
.rr-restricted-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .rr-entry { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- 22. Syzygy Standard (foundational doc) -------- */
.standard-page {
  background: var(--paper);
}

.standard-hero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.standard-hero .eyebrow { justify-content: center; }
.standard-hero h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}
.standard-subtitle {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--muted);
  margin: 0 0 32px;
}
.standard-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.standard-body {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.standard-preamble {
  margin: 0 0 clamp(64px, 7vw, 96px);
  padding: 28px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
}

.principle {
  margin: 0 0 clamp(56px, 6vw, 84px);
}
.principle:last-child { margin-bottom: 0; }

.principle-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.principle-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(42px, 4vw, 56px);
  line-height: 1;
  color: var(--syz-red);
  letter-spacing: -0.01em;
  min-width: 80px;
}
.principle-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

.principle-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 22px;
}

.principle-spec {
  margin: 22px 0;
  padding: 20px 24px;
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.principle-spec strong {
  font-style: normal;
  font-weight: 600;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--syz-red);
  display: block;
  margin-bottom: 8px;
}

.principle-axiom {
  margin: 22px 0 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  text-align: right;
}

.standard-colophon {
  margin-top: clamp(72px, 8vw, 112px);
  padding-top: 36px;
  border-top: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}
.standard-colophon p { margin: 0 0 4px; }

/* ---------- 23. Data Sovereignty Charter ------------------ */
.charter-page { background: var(--paper); }

.charter-hero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.charter-hero .display {
  margin: 0 0 22px;
  max-width: 18ch;
}
.charter-hero .lede {
  margin: 0 0 36px;
  max-width: 64ch;
}

.charter-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--ink);
  padding-top: 28px;
  margin-top: 12px;
}
.charter-stats .metric-num { font-size: clamp(36px, 4vw, 52px); }
.charter-stats .metric-label { margin-top: 12px; }

/* Sumerian section header */
.sumerian-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  flex-wrap: wrap;
}
.sumerian-glyph {
  font-family: "Noto Sans Cuneiform", "Segoe UI Historic", serif;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.sumerian-translit {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--syz-red);
}
.sumerian-english {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.sumerian-english::before { content: "— "; color: var(--muted); }

.charter-section {
  padding: clamp(64px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
}
.charter-section:last-of-type { border-bottom: none; }
.charter-section p { margin: 0 0 18px; max-width: 70ch; }
.charter-section .container > p:last-of-type { margin-bottom: 0; }

.charter-lead {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  margin: 24px 0 32px;
  max-width: 60ch;
}

/* Temple grid */
.temple-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  margin-top: 48px;
}
.temple-card { display: flex; flex-direction: column; }
.temple-fig {
  background: var(--paper-3);
  margin-bottom: 22px;
}
.temple-fig img { width: 100%; height: auto; display: block; }
.temple-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.temple-meta .temple-num { color: var(--syz-red); }
.temple-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--ink);
}
.temple-card h3 .glyph {
  font-family: "Noto Sans Cuneiform", "Segoe UI Historic", serif;
  margin-right: 10px;
  font-size: 0.85em;
}
.temple-card .temple-dedication {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 16px;
}
.temple-card p { margin: 0 0 12px; font-size: 15px; max-width: none; }

/* Failover table */
.failover-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
  font-size: 15px;
}
.failover-table th,
.failover-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.failover-table thead th {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.failover-table tbody th {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--syz-red);
  font-weight: 500;
  width: 100px;
}
.failover-table td .glyph {
  font-family: "Noto Sans Cuneiform", "Segoe UI Historic", serif;
  margin-right: 8px;
}
.failover-table .arrow { color: var(--muted); }

/* Availability breakdown */
.availability {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-top: 36px;
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}
.availability .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.availability .v {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Citation list */
.citation-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}
.citation {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  align-items: start;
}
.citation:first-child { border-top: 2px solid var(--ink); }
.citation-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--syz-red);
  line-height: 1;
}
.citation-ref {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 10px;
}
.citation-ref .title { font-style: normal; font-weight: 500; }
.citation-note {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
  max-width: 68ch;
}
.citation-note .turn {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-display);
  font-style: italic;
  color: var(--ink);
}

/* Charter colophon */
.charter-colophon {
  text-align: center;
  padding: clamp(56px, 6vw, 88px) 0;
  border-top: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.85;
}
.charter-colophon p { margin: 0 0 4px; max-width: none; }

@media (max-width: 880px) {
  .charter-stats { grid-template-columns: 1fr; gap: 28px; }
  .temple-grid { grid-template-columns: 1fr; gap: 40px; }
  .availability { grid-template-columns: repeat(2, 1fr); }
  .citation { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- 24. Partner Portal ---------------------------- */
.portal-page {
  background: var(--paper-2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.portal-page main { flex: 1; }

.portal-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.portal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 24px;
}
.portal-context {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.portal-shell {
  padding: clamp(48px, 6vw, 88px) 0;
}

.portal-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  max-width: 460px;
  margin: 0 auto;
  padding: 48px 44px;
}
.portal-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--syz-red);
  margin: 0 0 14px;
}
.portal-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.portal-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.55;
}

.portal-form {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.portal-field {
  margin-bottom: 18px;
}
.portal-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.portal-field input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 0;
  outline: none;
  transition: border-color 150ms var(--ease);
}
.portal-field input:focus {
  border-color: var(--ink);
}
.portal-field input::placeholder {
  color: #b6b8bd;
  letter-spacing: 0.1em;
}

.portal-submit {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.portal-submit:hover {
  background: transparent;
  color: var(--ink);
}

.portal-error {
  display: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--syz-red);
  background: var(--paper-2);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--syz-red);
  line-height: 1.55;
}
.portal-error.is-visible { display: block; }

.portal-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.portal-secondary a { color: var(--muted); }
.portal-secondary a:hover { color: var(--ink); }
.portal-secondary .sep { color: var(--rule); }

.portal-notice {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  margin: 28px auto 0;
  max-width: 460px;
}

/* ---------- 25. Legal documents (Privacy / Terms / Access) - */
.legal-page { background: var(--paper); }

.legal-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
}
.legal-hero h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}
.legal-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(64px, 7vw, 96px);
}
.legal-body h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  margin: 52px 0 16px;
  letter-spacing: -0.005em;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 28px 0 10px;
}
.legal-body p {
  margin: 0 0 18px;
  line-height: 1.7;
}
.legal-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body address {
  font-style: normal;
  line-height: 1.7;
  margin: 18px 0;
}
.legal-body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---------- 26. Legal pages: language selector ------------ */
.legal-i18n {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.legal-i18n-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.legal-i18n-label { color: var(--muted); }
.legal-i18n-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-i18n-list a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.legal-i18n-list a:hover { color: var(--ink); }
.legal-i18n-list .active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  pointer-events: none;
}

/* Translations-pending stub page (centered notice) */
.pending-shell {
  padding: clamp(72px, 9vw, 140px) 0;
  background: var(--paper);
}
.pending-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.pending-card h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 22px;
}
.pending-card p { line-height: 1.7; margin: 0 0 18px; }

/* ---------- 27. Candidacy acknowledgment gate ------------- */
/* Out-of-game clickwrap. Sits on .portal-page (paper-2 background).
   The plain-language notice is intentionally conspicuous: the legal
   value of the gate comes from the player seeing it and actively
   consenting, so it must NOT read as decorative fine print. */
.candidacy-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 52px) clamp(28px, 5vw, 56px);
}
.candidacy-card .portal-sub { margin-bottom: 30px; }

.ack-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.ack-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--syz-red);
  cursor: pointer;
}

.ack-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.candidacy-proceed {
  display: block;
  width: 100%;
  padding: 14px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.candidacy-proceed:hover { background: transparent; color: var(--ink); }
.candidacy-proceed:disabled,
.candidacy-proceed[disabled] {
  background: var(--rule);
  border-color: var(--rule);
  color: var(--muted);
  cursor: not-allowed;
}
.ack-decline {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ack-decline:hover { color: var(--ink); }

/* ---------- 28. Candidacy assessment (Zener screening) ---- */
/* Sits on .portal-page, reuses .candidacy-card as the panel.
   The screening is rigged client-side; see candidacy-assessment.html. */
.zener-progress {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.zener-progress .tally { color: var(--syz-red); }

.zener-reveal {
  width: 132px;
  height: 168px;
  margin: 0 auto 22px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.zener-reveal.is-down {
  background:
    repeating-linear-gradient(45deg, var(--paper) 0 6px, var(--paper-2) 6px 12px);
}
.zener-reveal.is-match { border-color: var(--syz-red); }
.zener-reveal svg { width: 76px; height: 76px; color: var(--ink); }
.zener-reveal.is-match svg { color: var(--syz-red); }

.zener-verdict {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-height: 16px;
  margin: 0 0 24px;
  color: var(--muted);
}
.zener-verdict.is-match { color: var(--syz-red); }

.zener-prompt {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 18px;
}

.zener-choices {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.zener-choice {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease);
}
.zener-choice svg { width: 40px; height: 40px; }
.zener-choice:hover:not(:disabled) { border-color: var(--ink); }
.zener-choice:disabled { cursor: default; }
.zener-choice.is-picked { border-color: var(--ink); background: var(--ink); color: #fff; }
.zener-choices.is-locked .zener-choice:not(.is-picked) { opacity: 0.4; }

.zener-result { text-align: center; }
.zener-score {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(56px, 11vw, 92px);
  line-height: 1;
  color: var(--ink);
  margin: 8px 0 4px;
}
.zener-score .of { color: var(--muted); }
.zener-rate {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--syz-red);
  margin: 0 0 26px;
}
.zener-result p { text-align: left; }

.zener-actions { margin-top: 26px; }

/* ---------- 29. Candidacy Screening II (flock) ------------ */
/* Reuses the .zener-* components (progress / choices / actions / result).
   Adds the flock canvas and the three-cell You/Flock/Card reveal row.
   The flock animation is cosmetic; the outcome is rigged in
   candidacy-flock.html. */
.flock-stage {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 22px;
}
.flock-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}
.flock-caption {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 16px;
  margin: 12px 0 0;
}

.flock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}
.flock-cell { text-align: center; }
.flock-cell .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.flock-cell .box {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.flock-cell .box svg { width: 38px; height: 38px; }
.flock-cell .box.is-match { border-color: var(--syz-red); color: var(--syz-red); }
.flock-cell.truth .box { border-color: var(--ink); }

/* ---------- 30. Candidacy Screening III (remote viewing) -- */
/* Reuses the .zener-* components (progress / reveal / actions / result).
   Adds the impression-chip palette and the correspondence readout. The
   target is selected post-hoc to fit the chosen impressions and the score
   is rigged high; see candidacy-viewing.html. */
.rv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 6px;
}
.rv-chip {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease);
}
.rv-chip:hover:not(:disabled) { border-color: var(--ink); }
.rv-chip:disabled { cursor: default; }
.rv-chip.is-sel { border-color: var(--ink); background: var(--ink); color: #fff; }
.rv-chips.is-locked .rv-chip:not(.is-sel) { opacity: 0.4; }
/* On reveal: a selected impression that matched the target (a hit) goes solid
   green; a target tag the candidate did NOT pick shows as a green outline, so
   they can see the full reading and that nothing was withheld. */
.rv-chip.is-hit { border-color: #2f9e57; background: #2f9e57; color: #fff; opacity: 1; }
.rv-chips.is-locked .rv-chip.is-target { border-color: #2f9e57; color: #2f9e57; opacity: 1; }

.rv-target-name {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--syz-red);
  min-height: 16px;
  margin: 0 0 18px;
}
.rv-readout {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 8px;
  min-height: 20px;
}
.rv-readout strong { color: var(--ink); }

/* Protocol briefing + attestation shown before the test begins. */
.rv-protocol {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.rv-protocol p { margin: 0 0 10px; color: var(--ink); }
.rv-protocol ol { margin: 0; padding-left: 1.2em; }
.rv-protocol li { margin: 0 0 8px; }
.rv-protocol li:last-child { margin-bottom: 0; }

/* Encrypted coordinate cue — the only thing the candidate is given. */
.rv-coord {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.rv-coord strong { color: var(--ink); letter-spacing: 0.14em; }

/* Target description. Written in the inner-temple voice and normalized by an
   editor; the struck phrasing (<del>) is left legible on purpose. */
.rv-desc {
  max-width: 44ch;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.rv-desc del { color: #b6b8bd; text-decoration-thickness: 1px; }
/* Description sits in a reserved, fixed-min-height block below the controls, so
   revealing it never changes the card height. The top margin is the gap between
   the button and the description. */
.rv-descwrap { margin-top: 26px; min-height: 108px; }
.rv-desc.is-pending { color: var(--muted); font-style: italic; }
.rv-attrib {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* Enlarged target stage for the viewing screenings — overrides the smaller
   .zener-reveal box (declared earlier, so these single-class rules win). */
.rv-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 auto 18px;
}
.rv-stage svg { width: 78%; height: 78%; }
/* Pin the photo to fill the aspect-ratio box, so the sealed (coordinate) state
   and the revealed (image) state are exactly the same size. */
.rv-stage .rv-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Reveal outcome: green box on a hit (>=1 impression matched), red on a miss. */
.rv-stage.is-hit { border-color: #2f9e57; }
.rv-stage.is-miss { border-color: var(--syz-red); }
/* The encrypted coordinate, shown on the sealed placeholder so the candidate
   fixes on the numbers before any image appears. */
.rv-coord-in {
  text-align: center;
  font-family: var(--f-mono);
  font-size: clamp(18px, 5vw, 26px);
  letter-spacing: 0.18em;
  color: var(--ink);
}
.rv-coord-in .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ---------- 31. Candidacy Screening IV (flock-assisted) --- */
/* Reuses the .rv-* viewing components. Adds the solo-vs-assisted stat pair,
   the contribution delta, and the cohort "love-bomb" feed. All rigged warm
   in candidacy-assisted.html. */
.assist-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 14px;
}
.assist-stat {
  text-align: center;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 14px 10px;
}
.assist-stat .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.assist-stat .val {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.assist-stat.assisted { border-color: var(--syz-red); }
.assist-stat.assisted .val { color: var(--syz-red); }
.assist-delta {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--syz-red);
  margin: 0 0 18px;
  min-height: 16px;
}
/* Live cohort chat window — fixed lower-right (Screening IV). Read-only: the
   candidate watches the flock talk among themselves. Messages arrive on their
   own clock, independent of the candidate's clicks, only after the fifth
   viewing. */
.flockchat[hidden] { display: none; }   /* honor hidden attr — the class sets display:flex */
.flockchat {
  position: fixed;
  right: 24px;
  top: 84px;
  bottom: 28px;                          /* raised + tall: occupies most of the right side */
  width: min(380px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 36px rgba(20, 20, 28, 0.22);
  z-index: 60;
  overflow: hidden;
}
.flockchat.is-deep { width: min(440px, calc(100vw - 40px)); }

.flockchat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  flex: none;
}
.flockchat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #46c46a;
}
.flockchat-title { font-family: var(--f-sans); font-weight: 600; font-size: 13px; }
.flockchat-sub {
  margin-left: auto;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.flockchat-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flockmsg {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}
.flockmsg.is-in { opacity: 1; transform: none; }
.flockmsg .who {
  display: block;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--syz-red); margin-bottom: 3px;
}
.flockmsg .bubble {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 9px 12px;
  font-size: 13.5px; line-height: 1.5;
  color: var(--ink);
}
.flockchat.is-deep .flockmsg .bubble { font-size: 15px; padding: 12px 14px; }

.flockchat-foot { flex: none; border-top: 1px solid var(--rule); padding: 10px; }
.flockchat-input {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .flockmsg { transition: opacity 140ms linear; transform: none; }
  .flockmsg.is-in { transform: none; }
}

/* Revealed partner-key fragment — pinned banner beneath the chat header. */
.flockkey {
  flex: none;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--syz-red);
  padding: 10px 14px;
}
.flockkey-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--syz-red);
  margin-bottom: 5px;
}
.flockkey-val {
  font-family: var(--f-mono);
  font-size: 17px;
  letter-spacing: 0.24em;
}

/* Disclaimer cross-fade — opacity through the page background. */
.notice-fade { transition: opacity 600ms var(--ease); }

/* ---------- 32. News / legal body figures ----------------- */
/* Editorial images inside .legal-body articles (news releases). The figure
   frame doubles as a graceful placeholder: until the WebP is generated and
   copied in, the img hides on error and the captioned grey frame remains. */
.legal-figure {
  margin: 36px 0;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.legal-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.legal-figure img.is-missing { display: none; }
.legal-figure figcaption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 10px 14px;
}
/* placeholder hint shown only while the image is absent */
.legal-figure .fig-pending {
  display: none;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.legal-figure img.is-missing + .fig-pending { display: flex; }

/* ---------- 33. Focus visibility (accessibility) ---------- */
/* Honours the posted Accessibility statement (§3): "a logical
   reading order with visible focus indicators." A keyboard ring is
   drawn for every interactive element via :focus-visible, so it
   appears for keyboard/AT users without showing on mouse click. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--syz-blue);
  outline-offset: 2px;
  border-radius: 1px;
}

/* The portal field clears the native outline (§24); give it the same
   visible focus treatment so keyboard users are not left without one. */
.portal-field input:focus-visible {
  outline: 2px solid var(--syz-blue);
  outline-offset: 2px;
  border-color: var(--ink);
}

/* ---------- 34. The Standing Ledger (partner rooms) -------- */
/* Interior portal pages only (body.portal-page.portal-room).
   Register: a 1971 annual report that learned HTML. Two-ink discipline —
   blue numerals, red verdicts; no cards, no shadows, no icons. */

.portal-room main { padding: 40px 0 64px; }

.ledger-kicker {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.ledger-masthead {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05;
  color: var(--ink); margin: 0 0 6px;
}
.ledger-rule {
  border: 0; border-top: 3px solid var(--syz-red);
  margin: 14px 0 6px;
}
.ledger-rule-fine {
  border: 0; border-top: 1px solid var(--ink); margin: 0 0 28px;
}
.ledger-letter {
  font-family: var(--f-serif); font-size: var(--t-lede);
  max-width: 66ch; color: var(--body);
}
.ledger-letter p { margin: 0 0 1em; }

/* Leader-dot contents */
.toc-leaders { list-style: none; margin: 18px 0 34px; padding: 0; max-width: 620px; }
.toc-leaders li {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--f-mono); font-size: 14px; margin: 6px 0;
}
.toc-leaders .toc-fill {
  flex: 1; border-bottom: 1px dotted var(--muted);
  transform: translateY(-4px);
}
.toc-leaders a { color: var(--ink); text-decoration: none; }
.toc-leaders a:hover { color: var(--syz-blue); }

/* Double-rule ledger tables */
.ledger-scroll { overflow-x: auto; margin: 22px 0 30px; }
table.ledger-table {
  border-collapse: collapse; width: 100%; min-width: 640px;
  font-family: var(--f-mono); font-size: 13.5px; color: var(--body);
  border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink);
}
.ledger-table th {
  font-family: var(--f-sans); font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  text-align: left; padding: 10px 14px 8px;
  border-bottom: 3px double var(--ink);
}
.ledger-table td {
  padding: 9px 14px; vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.ledger-table tr:last-child td { border-bottom: 0; }
.ledger-table .num { color: var(--syz-blue); }
.ledger-table .blank-cell { color: var(--muted); }
.ledger-caption {
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
  margin: -18px 0 30px;
}

/* Eclipse-dial cohesion meter: one disc occluding another.
   Set --held (0-100); at 100 the occlusion is total and the corona remains. */
.eclipse-dial {
  position: relative; display: inline-block; width: 24px; height: 24px;
  border-radius: 50%; background: var(--syz-blue);
  border: 1px solid var(--syz-blue); overflow: hidden;
  vertical-align: middle; margin-right: 8px;
}
.eclipse-dial::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: var(--paper-2);
  transform: translateX(calc(24px - (var(--held, 0) * 0.24px)));
}

/* Disposition chips + stamps */
.disposition-chip {
  display: inline-block; font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .1em; padding: 1px 8px 2px; border: 1px solid currentColor;
}
.disposition-chip.held   { color: var(--syz-blue); }
.disposition-chip.turned { color: var(--syz-red); }
.stamp {
  display: inline-block; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--syz-red);
  border: 2px solid var(--syz-red); padding: 3px 10px;
  transform: rotate(-4deg); opacity: .85;
}

/* The badge chit — the reader's number, pinned to every room */
.badge-chit {
  position: fixed; right: 14px; bottom: 14px; z-index: 40;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); padding: 6px 10px;
}
.badge-chit .chit-label { color: var(--muted); margin-right: 6px; }

/* Chamber rosters */
.seat-dash {
  font-family: var(--f-mono); font-size: inherit; color: var(--ink);
  background: none; border: 0; padding: 0 6px; cursor: default;
}
.seat-dash[title] { cursor: pointer; }

/* Strategy papers */
.paper-folio {
  max-width: 62ch; font-family: var(--f-serif); font-size: 17.5px;
  color: var(--body); margin: 0 0 34px;
}
.paper-folio h3 { font-family: var(--f-display); font-size: var(--t-h3); margin: 0 0 4px; }
.paper-folio .folio-no {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.folio-foot {
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
  text-align: right; border-top: 1px solid var(--rule); padding-top: 6px;
  max-width: 62ch;
}

/* Redaction blocks and struck-but-legible text */
.roll-redact {
  display: inline-block; height: .85em; min-width: 7ch;
  background: var(--ink); vertical-align: baseline; opacity: .9;
}
.portal-room del {
  text-decoration: line-through; text-decoration-color: var(--syz-red);
  text-decoration-thickness: 1.5px; color: var(--body);
}

/* Corner filing stamps */
.file-stamps {
  display: flex; gap: 18px; flex-wrap: wrap; margin: 34px 0 0;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

/* Room navigation */
.portal-nav {
  display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 30px;
  font-family: var(--f-mono); font-size: 12.5px;
}
.portal-nav a { color: var(--muted); text-decoration: none; letter-spacing: .06em; }
.portal-nav a:hover, .portal-nav a[aria-current="page"] { color: var(--syz-blue); }

/* Paper pages: prev/next strip + numbered study findings */
.paper-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.paper-strip-sep { color: var(--rule); }
.paper-strip-muted { color: var(--muted); }
.paper-findings, .review-findings {
  margin: 0 0 30px; padding-left: 1.4em; max-width: 68ch;
  font-family: var(--f-serif); font-size: 17px; color: var(--body);
}
.paper-findings li, .review-findings li { margin: 0 0 .8em; padding-left: .3em; }

/* Locks reuse .portal-field / .portal-submit / .portal-error from §24.
   Hidden-until-unsealed sections: */
.sealed[hidden] { display: none; }

/* The tombstone reproduction */
.tombstone {
  max-width: 420px; margin: 26px 0; padding: 22px 26px; text-align: center;
  border: 1px solid var(--ink); outline: 3px double var(--ink); outline-offset: 3px;
  font-family: var(--f-serif); color: var(--body); font-size: 15.5px;
}
.tombstone .tomb-kicker {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

@media (max-width: 720px) {
  .badge-chit { position: static; display: inline-block; margin: 18px 0 0; }
  .file-stamps { gap: 10px; }
}

/* ---------- 35. Responsive -------------------------------- */
@media (max-width: 1080px) {
  .hero-grid,
  .section-head,
  .capability,
  .about-grid,
  .callout-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .capability--reverse .capability-fig { order: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .leaders { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .primary-nav ul { gap: 18px; }
  .primary-nav a:not(.nav-cta) { display: none; }
  .sectors { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .ribbon-inner span:nth-child(n+3) { display: none; }
}
