/* ============================================================
   KNGHT DOCTRINE 2026 — site system v2 "GEOSPHERE"
   Electric blue ground · white wireframe · engineered grotesk
   coordinate: AMDA.CAB.KNGHT.WEBSITE.BUILD.MASTER.V1
   ============================================================ */

:root {
  --blue: #0B55F6;
  --blue-deep: #0030C8;
  --black: #050407;
  --white: #ffffff;
  --red: #FF4B2E;

  /* legacy token aliases (inline styles in pages reference these) */
  --ink: var(--black);
  --navy: var(--blue);
  --deep-navy: var(--blue);
  --ivory: var(--white);
  --silver: rgba(255, 255, 255, 0.9);
  --graphite: #15151a;
  --knght-blue: var(--blue);
  --clinical-cyan: #57d7ff;
  --warning-red: var(--red);

  --accent: var(--blue);
  --accent-ink: var(--blue);
  --accent-soft: color-mix(in oklab, var(--blue) 12%, transparent);
  --accent-line: color-mix(in oklab, var(--blue) 38%, transparent);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --line-dark: rgba(255, 255, 255, 0.28);   /* hairlines on blue/black */
  --line-light: rgba(5, 4, 7, 0.14);        /* hairlines on white */
  --maxw: 1240px;
  --measure: 64ch;

  --ease-soft: cubic-bezier(0.22, 0.9, 0.3, 1.05);
  --ease-calm: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; }
a { color: inherit; }
::selection { background: var(--white); color: var(--blue); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); font-weight: 560; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.t-display {
  font-size: clamp(54px, 8.4vw, 132px);
  line-height: 0.94;
  font-weight: 640;
  font-stretch: 114%;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
/* keep the white hero title legible when the sphere's bright band passes behind it */
.hero--home .t-display { filter: drop-shadow(0 3px 20px rgba(7, 40, 150, 0.45)) drop-shadow(0 0 56px rgba(7, 40, 150, 0.30)); }
.hero--home .hero__aside { filter: drop-shadow(0 2px 10px rgba(7, 40, 150, 0.55)) drop-shadow(0 0 34px rgba(7, 40, 150, 0.45)); }
.t-h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; font-weight: 600; font-stretch: 108%; letter-spacing: -0.018em; }
.t-h2 { font-size: clamp(29px, 3.4vw, 46px); line-height: 1.08; font-weight: 580; font-stretch: 106%; }
.t-h3 { font-size: clamp(22px, 2.3vw, 29px); line-height: 1.22; font-weight: 580; font-stretch: 105%; }
.t-sub {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.42;
  font-weight: 420;
  letter-spacing: -0.005em;
}
.t-body { max-width: var(--measure); font-size: 17px; }
.t-body-lg { max-width: var(--measure); font-size: clamp(18px, 1.45vw, 20.5px); line-height: 1.6; }
.t-dim { color: var(--silver); }
.t-dim-light { color: rgba(5, 4, 7, 0.7); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
}
.sec--ivory .eyebrow, .sec--white .eyebrow { color: var(--blue); }

.coord {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.kicker-line { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.kicker-line::after {
  content: ""; flex: 0 0 64px; height: 1px;
  background: color-mix(in srgb, currentColor 45%, transparent);
}

.emphasis {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.4;
  font-weight: 520;
  font-stretch: 104%;
  letter-spacing: -0.008em;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.sec { padding: 150px 0 210px; position: relative; }
.sec--dark { background: var(--black); color: var(--white); }
.sec--deep { background: var(--blue); color: var(--white); }
.sec--ink { background: var(--black); color: var(--white); }
.sec--ivory { background: var(--white); color: var(--black); }
.sec--white { background: var(--white); color: var(--black); }
.sec--hairline-top { border-top: 1px solid var(--line-dark); }
.sec--ivory.sec--hairline-top, .sec--white.sec--hairline-top { border-top-color: var(--line-light); }
.sec--white + .sec--ivory, .sec--ivory + .sec--white { border-top: 1px solid var(--line-light); }

.sec__head { display: grid; gap: 22px; margin-bottom: 44px; max-width: 920px; }
.stack { display: grid; gap: 22px; }
.stack-lg { display: grid; gap: 34px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cols-sidebar { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: start; }

/* ---------- nav ---------- */
.knav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background 0.35s var(--ease-calm), border-color 0.35s var(--ease-calm);
  border-bottom: 1px solid var(--line-dark);
  background: color-mix(in srgb, var(--blue) 26%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
}
.knav.scrolled, .knav.open {
  background: color-mix(in srgb, var(--blue) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.knav__bar {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.knav__brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.knav__brand .mark { width: 32px; height: 32px; }
.knav__word {
  font-family: var(--mono); font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.32em; color: var(--white);
}
.knav__word small {
  display: block; font-size: 9px; font-weight: 500; letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.65); margin-top: 1px;
}
.knav__links { display: flex; align-items: center; gap: 6px; }
.knav__links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9); text-decoration: none; padding: 9px 13px; border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.knav__links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.knav__links a[aria-current="page"] { color: var(--white); position: relative; }
.knav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px; background: var(--white);
}
.knav__burger {
  display: none; background: none; border: 1px solid var(--line-dark); border-radius: 2px;
  color: var(--white); font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  padding: 9px 14px; cursor: pointer;
}
.knav__menu { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue);
  display: flex; align-items: flex-end;
  min-height: 92vh;
  padding: 180px 0 96px;
}
.hero--sub { min-height: 74vh; padding-bottom: 88px; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; pointer-events: none; }
.hero--sub .hero__veil {
  background: linear-gradient(98deg, var(--blue) 30%, color-mix(in srgb, var(--blue) 55%, transparent) 52%, transparent 72%);
}
.hero__content { position: relative; z-index: 2; display: grid; gap: 26px; max-width: 920px; }
.hero__rule { width: 64px; height: 2px; background: var(--white); }
.hero .t-sub { color: rgba(255, 255, 255, 0.85); max-width: 52ch; }
.hero__close {
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; font-weight: 460;
  color: rgba(255, 255, 255, 0.82); max-width: 60ch;
  border-left: 1px solid var(--line-dark); padding-left: 22px;
}

/* homepage hero: sphere center-stage */
.hero--home {
  min-height: 100vh;
  align-items: stretch;
  padding: 0;
}
.hero--home .hero__veil {
  background:
    radial-gradient(116% 82% at 50% 40%, transparent 62%, color-mix(in srgb, var(--blue-deep) 20%, transparent) 100%);
}
.hero__frame {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; min-height: 100vh;
  padding: 110px 0 56px;
}
.hero__frame > .wrap { width: 100%; }
.hero__topline { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.hero__bottom { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.hero__aside { display: grid; gap: 26px; justify-items: start; }
.hero__scroll {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; gap: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  body[data-motion="on"] .hero__scroll span { display: inline-block; animation: nudge 2.4s var(--ease-calm) infinite; }
  @keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
}

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s var(--ease-soft);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--white); color: var(--blue); }
.btn--primary:hover { background: rgba(255, 255, 255, 0.88); }
.sec--ivory .btn--primary, .sec--white .btn--primary { background: var(--blue); color: var(--white); }
.sec--ivory .btn--primary:hover, .sec--white .btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { border-color: var(--line-dark); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }
.sec--ivory .btn--ghost, .sec--white .btn--ghost { border-color: var(--line-light); color: var(--black); }
.sec--ivory .btn--ghost:hover, .sec--white .btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--accent-soft); }
.btn--quiet {
  border: none; padding: 15px 8px; color: rgba(255, 255, 255, 0.75); text-decoration: none;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.btn--quiet:hover { color: var(--white); }
.sec--ivory .btn--quiet, .sec--white .btn--quiet { color: rgba(5, 4, 7, 0.6); }
.sec--ivory .btn--quiet:hover, .sec--white .btn--quiet:hover { color: var(--black); }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn .arr { font-family: var(--sans); }

/* ---------- pull quote ---------- */
.pull {
  position: relative;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 52px 0;
  margin: 26px 0;
}
.sec--ivory .pull, .sec--white .pull { border-color: var(--line-light); }
.pull::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 84px; height: 2px; background: currentColor;
}
.pull p {
  font-weight: 330; font-stretch: 102%;
  font-size: clamp(25px, 3vw, 40px); line-height: 1.22; letter-spacing: -0.014em;
  max-width: 24em; text-wrap: balance;
}
.pull cite {
  display: block; margin-top: 20px; font-style: normal;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.65;
}

/* ---------- directive grid (homepage) ---------- */
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.dgrid a {
  background: color-mix(in srgb, var(--blue) 88%, black 9%);
  text-decoration: none; padding: 30px 26px 36px;
  display: grid; gap: 14px; align-content: start; min-height: 200px;
  transition: background 0.25s var(--ease-calm), transform 0.25s var(--ease-soft);
}
.dgrid a:hover { background: var(--white); transform: translateY(-3px); }
.dgrid .dnum { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.9); }
.dgrid .dglyph { display: block; width: 44px; height: 44px; transition: opacity 0.25s; }
.dgrid .dglyph canvas { width: 100%; height: 100%; }
.dgrid a:hover .dglyph { opacity: 0; } /* white lines would vanish on the white hover card anyway */
.dgrid .dname { font-size: 21px; line-height: 1.2; font-weight: 580; font-stretch: 105%; color: var(--white); }
.dgrid .dline { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.dgrid a:hover .dnum { color: var(--blue); }
.dgrid a:hover .dname { color: var(--blue); }
.dgrid a:hover .dline { color: rgba(5, 4, 7, 0.65); }

/* ---------- rejection list ---------- */
.reject { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); max-width: 940px; }
.reject li {
  list-style: none; background: var(--black); padding: 19px 24px;
  display: flex; gap: 16px; align-items: baseline;
  font-size: 15.5px; color: rgba(255, 255, 255, 0.78);
}
.sec--deep .reject li { background: color-mix(in srgb, var(--blue) 88%, black 9%); }
.reject li::before {
  content: "✕"; font-family: var(--mono); font-size: 12px; color: var(--red); flex: 0 0 auto;
}
ul.reject { margin: 0; padding: 0; }

/* ---------- checklist ---------- */
.check { margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; }
.check li {
  list-style: none; display: flex; gap: 18px; align-items: baseline;
  padding: 15px 4px; border-bottom: 1px solid var(--line-dark); font-size: 16.5px;
}
.sec--ivory .check li, .sec--white .check li { border-bottom-color: var(--line-light); }
.check li::before { content: "—"; color: currentColor; opacity: 0.55; font-family: var(--mono); flex: 0 0 auto; }
.sec--ivory .check li::before, .sec--white .check li::before { color: var(--blue); opacity: 1; }
.check--cols { grid-template-columns: 1fr 1fr; column-gap: 48px; max-width: 920px; }
@media (max-width: 620px) { .check--cols { grid-template-columns: 1fr; } }

/* ---------- numbered layers (governance) ---------- */
.layers { margin: 0; padding: 0; counter-reset: layer; display: grid; gap: 0; }
.layers > li {
  list-style: none; counter-increment: layer;
  display: grid; grid-template-columns: 88px 1fr; gap: 28px;
  padding: 30px 0; border-bottom: 1px solid var(--line-dark);
}
.sec--ivory .layers > li, .sec--white .layers > li { border-bottom-color: var(--line-light); }
.layers > li::before {
  content: "0" counter(layer);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: currentColor; opacity: 0.7;
  padding-top: 6px;
}
.sec--ivory .layers > li::before, .sec--white .layers > li::before { color: var(--blue); opacity: 1; }
.layers h3 { font-size: 22px; margin-bottom: 8px; }
.layers p { max-width: 58ch; font-size: 16px; color: rgba(255, 255, 255, 0.75); }
.sec--ivory .layers p, .sec--white .layers p { color: rgba(5, 4, 7, 0.66); }

/* ---------- boundary statement ---------- */
.boundary {
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 34px 38px; max-width: 880px; display: grid; gap: 14px;
}
.sec--dark .boundary, .sec--deep .boundary, .sec--ink .boundary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}
.boundary p { font-size: 15.5px; line-height: 1.7; max-width: none; }

/* ---------- proof / criteria grid ---------- */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.sec--dark .proof, .sec--deep .proof, .sec--ink .proof { background: var(--line-dark); border-color: var(--line-dark); }
.proof > div { background: var(--white); padding: 30px 30px 34px; display: grid; gap: 10px; align-content: start; }
.sec--dark .proof > div, .sec--ink .proof > div { background: var(--black); }
.sec--deep .proof > div { background: color-mix(in srgb, var(--blue) 88%, black 9%); }
.proof h3 { font-size: 21px; }
.proof .pnum { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--blue); text-transform: uppercase; }
.sec--dark .proof .pnum, .sec--deep .proof .pnum, .sec--ink .proof .pnum { color: rgba(255, 255, 255, 0.7); }
.proof p { font-size: 15px; line-height: 1.65; color: rgba(5, 4, 7, 0.66); }
.sec--dark .proof p, .sec--deep .proof p, .sec--ink .proof p { color: rgba(255, 255, 255, 0.75); }

/* ---------- table ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.dtable th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  text-align: left; color: var(--blue); padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line-light); font-weight: 500;
}
.dtable td { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line-light); vertical-align: top; line-height: 1.55; }
.dtable td:first-child { font-weight: 580; font-stretch: 105%; font-size: 16.5px; white-space: nowrap; }
.dtable td:last-child { color: rgba(5, 4, 7, 0.66); }

/* ---------- download cards ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dl-card {
  border: 1px solid var(--line-light); background: var(--white);
  padding: 36px 36px 32px; display: grid; gap: 14px; align-content: start;
  transition: border-color 0.25s, transform 0.25s var(--ease-soft);
}
.dl-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.dl-card .ftype { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--blue); text-transform: uppercase; }
.dl-card h3 { font-size: 24px; }
.dl-card p { font-size: 15.5px; color: rgba(5, 4, 7, 0.66); }
.dl-card .btn { justify-self: start; margin-top: 8px; }
.dl-status { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(5, 4, 7, 0.4); }

/* ---------- section glyphs (mini ambient shapes) ---------- */
.sec__glyph {
  position: absolute;
  top: 22px;
  right: max(24px, calc((100% - var(--maxw)) / 2));
  width: 96px; height: 96px;
  pointer-events: none;
}
.sec__glyph canvas { width: 100%; height: 100%; }
.glyph-tile { background: var(--blue); }

/* full wireframe sphere feature — dark/blue lines on light sections, no tile */
.sec--full > .wrap { position: relative; z-index: 1; }
.sec__full {
  position: absolute; z-index: 0;
  top: 40px;
  right: max(24px, calc((100% - var(--maxw)) / 2));
  width: 120px; height: 120px;
  pointer-events: none;
}
.sec__full canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 1024px) {
  .sec__full { width: 150px; height: 150px; top: 44px; }
}
@media (max-width: 760px) {
  .sec__full { display: none; }
}
.sec--deep .glyph-tile, .sec--dark .glyph-tile, .sec--ink .glyph-tile { background: rgba(255, 255, 255, 0.05); }
.sec__glyph ~ .wrap { text-shadow: 0 2px 16px rgba(7, 40, 150, 0.55), 0 0 34px rgba(7, 40, 150, 0.35); }
.sec--ivory .sec__glyph ~ .wrap, .sec--white .sec__glyph ~ .wrap { text-shadow: none; }

/* ---------- ambient background sphere (partially shown behind a section) ---------- */
.geo-field {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.geo-field ~ .wrap { position: relative; z-index: 1; }
.sec--deep .geo-field ~ .wrap,
.sec--dark .geo-field ~ .wrap,
.sec--ink .geo-field ~ .wrap {
  text-shadow: 0 2px 18px rgba(7, 40, 150, 0.5), 0 0 42px rgba(7, 40, 150, 0.34);
}
@media (max-width: 620px) {
  .geo-field { display: none; }
}

@media (max-width: 760px) {
  .sec__glyph { display: none; } /* avoid overlap with text on phones */
}
@media (max-width: 960px) {
  .sec__glyph { width: 88px; height: 88px; top: 64px; }
}
@media (max-width: 620px) {
  .sec__glyph { display: none; }
}

/* ---------- footer ---------- */
.kfoot { background: var(--black); border-top: 1px solid var(--line-dark); padding: 84px 0 56px; color: rgba(255, 255, 255, 0.78); }
.kfoot__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.kfoot__brand { display: flex; gap: 16px; align-items: flex-start; }
.kfoot__brand .mark { width: 38px; height: 38px; flex: 0 0 auto; }
.kfoot p { font-size: 14px; line-height: 1.75; max-width: 54ch; }
.kfoot__links { display: grid; gap: 10px; justify-items: start; }
.kfoot__links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); text-decoration: none; padding: 2px 0;
  white-space: nowrap;
}
.kfoot__links a:hover { color: var(--white); }
.kfoot__motto {
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
}
.kfoot__motto strong {
  font-weight: 620; font-stretch: 110%; text-transform: uppercase;
  font-size: 17px; letter-spacing: 0.02em; color: var(--white);
}

/* ---------- declaration band ---------- */
.declare { text-align: center; padding: 150px 0; }
.declare .t-h1 { margin: 0 auto; }
.declare .stack { justify-items: center; }
.declare .t-body-lg { margin: 0 auto; }

/* ---------- reveal + transitions (motion-gated) ---------- */
.wipe {
  position: fixed; inset: 0; z-index: 100; background: var(--blue);
  opacity: 0; pointer-events: none; transition: opacity 0.24s var(--ease-calm);
}
.wipe.on { opacity: 1; pointer-events: all; }

@media (prefers-reduced-motion: no-preference) {
  body[data-motion="on"] .rv {
    opacity: 0; transform: translateY(34px);
    transition: opacity 1.15s var(--ease-calm), transform 1.15s var(--ease-soft);
  }
  body[data-motion="on"] .rv.in { opacity: 1; transform: none; }
  body[data-motion="on"] .rv-d1 { transition-delay: 0.12s; }
  body[data-motion="on"] .rv-d2 { transition-delay: 0.24s; }
  body[data-motion="on"] .rv-d3 { transition-delay: 0.36s; }
  body[data-motion="on"] main { animation: pageIn 0.65s var(--ease-calm) both; }
  @keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  body[data-motion="on"] .spin-slow { animation: spinSlow 90s linear infinite; transform-origin: center; }
  @keyframes spinSlow { to { transform: rotate(360deg); } }
}

/* ---------- directive orbit (directives hero) ---------- */
.dir-orbit { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; justify-self: end; margin: 56px 0 60px; }
.dir-orbit__ring { position: absolute; inset: 9%; border: 1px solid var(--line-dark); border-radius: 50%; }
.dir-orbit__ring::before { content: ""; position: absolute; inset: 26%; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 50%; }
.dir-orbit .cnode {
  position: absolute; transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  text-decoration: none;
}
.dnode-glyph { width: 100%; height: 100%; display: block; }
.dnode-glyph canvas { width: 100%; height: 100%; }
.dir-orbit .cnode .rn { position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.6); transition: color 0.25s; }
.dir-orbit .cnode:hover .rn { color: var(--white); }
.dir-orbit .cnode.active .rn { color: var(--white); }
.dir-orbit .cnode .rn { transition: color 0.25s; }
.dir-orbit .compass-rn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(-50% - 60px));
  font-family: var(--mono); font-size: 34px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--white); pointer-events: none;
}
.dir-orbit .compass-label {
  position: absolute; top: 50%; left: 50%; bottom: auto; transform: translate(-50%, calc(-50% + 18px));
  width: 60%; white-space: normal; text-align: center; font-family: var(--mono); font-size: 18px;
  letter-spacing: 0.12em; line-height: 1.5; color: var(--white); pointer-events: none;
}
.dir-orbit .compass-label .cl-the { font-size: 12px; letter-spacing: 0.3em; opacity: 0.75; }

/* ---------- compass interactive (directives page) ---------- */
.compass-stage { position: relative; display: grid; place-items: center; }
.compass-stage svg { width: min(520px, 80vw); height: auto; }
.cnode { cursor: pointer; }
.cnode circle.dot { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.6); stroke-width: 1; transition: all 0.25s var(--ease-calm); }
.cnode text { fill: rgba(255, 255, 255, 0.8); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; transition: fill 0.25s; }
.cnode:hover circle.dot, .cnode.active circle.dot { fill: var(--white); stroke: var(--white); }
.cnode:hover text, .cnode.active text { fill: var(--blue); }
.compass-label {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap; pointer-events: none;
}

/* directive chapter */
.dir-chapter { border-top: 1px solid var(--line-light); padding: 96px 0; }
.dir-chapter:first-of-type { border-top: none; }
.dir-meta { display: grid; gap: 18px; position: sticky; top: 110px; }
.dir-meta .dnum-lg { font-family: var(--mono); font-size: 13px; letter-spacing: 0.24em; color: var(--black); }
.dir-meta .t-h3 { color: var(--blue); font-weight: 640; }
.dir-glyph { width: 184px; height: 184px; margin: -26px 0 0 -14px; }
.dir-glyph canvas { width: 100%; height: 100%; }
.dir-meta .short { font-size: 18px; line-height: 1.45; font-weight: 520; color: rgba(5, 4, 7, 0.66); }
.dir-meta .meaning { font-size: 14.5px; line-height: 1.7; color: rgba(5, 4, 7, 0.7); border-left: 2px solid var(--accent-line); padding-left: 16px; }
.dir-chapter .pull { max-width: fit-content; }
.dir-facets { display: grid; gap: 26px; margin-top: 40px; }
.dir-facets > div { display: grid; gap: 8px; }
.dir-facets h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }
.dir-facets p { font-size: 15.5px; line-height: 1.7; color: rgba(5, 4, 7, 0.7); max-width: var(--measure); }

/* chapter rail */
.rail {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: grid; gap: 10px;
}
.rail a {
  width: 30px; height: 30px; display: grid; place-items: center; text-decoration: none;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em;
  color: rgba(5, 4, 7, 0.4); border: 1px solid transparent; border-radius: 50%;
  transition: all 0.2s;
}
.rail a:hover { color: var(--black); border-color: var(--line-light); }
.rail a.active { color: var(--white); background: var(--blue); }
.rail { opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease-calm); }
.rail.on { opacity: 1; pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .rail { display: none; }
}
@media (max-width: 960px) {
  .dgrid { grid-template-columns: 1fr 1fr; }
  .cols-2, .cols-sidebar { grid-template-columns: 1fr; gap: 40px; }
  .dir-meta { position: static; }
  .knav__links { display: none; }
  .knav__burger { display: block; }
  .knav.open .knav__menu {
    display: grid; gap: 4px; padding: 18px 40px 30px;
    border-top: 1px solid var(--line-dark);
  }
  .knav__menu a {
    font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9); text-decoration: none; padding: 13px 0;
  }
  .knav__menu a[aria-current="page"] { color: var(--white); border-left: 2px solid var(--white); padding-left: 14px; }
  .proof { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .kfoot__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 22px; }
  .knav__bar { padding: 0 22px; }
  .sec { padding: 84px 0; }
  .hero { padding-top: 140px; min-height: 84vh; }
  .hero--home { min-height: 100vh; padding-top: 0; }
  .hero__frame { padding-top: 100px; }
  .hero__topline { flex-wrap: wrap; }
  .hero__topline .coord { display: none; } /* build code clips off-screen on phones */
  .dgrid { grid-template-columns: 1fr; }
  .reject { grid-template-columns: 1fr; }
  .layers > li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .dtable td:first-child { white-space: normal; }
  .knav.open .knav__menu { padding: 18px 22px 30px; }
}

@media print {
  .knav, .wipe, .rail, .hero__field { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- headline events: calm, affirming motion on the display headline ---------- */
.reaffirm .word { display: inline-block; perspective: 640px; will-change: filter, transform, opacity; }
.reaffirm .ltr { display: inline-block; will-change: transform, filter; }
@keyframes wordReaffirm {
  0%   { filter: blur(0) brightness(1); transform: translateY(0) scale(1); text-shadow: 0 0 0 rgba(255,255,255,0); }
  16%  { filter: blur(2.4px) brightness(1.5); transform: translateY(-1px) scale(1.015); text-shadow: 0 0 26px rgba(255,255,255,0.55); }
  38%  { filter: blur(0.3px) brightness(1.12); transform: translateY(0) scale(1.004); text-shadow: 0 0 13px rgba(255,255,255,0.26); }
  100% { filter: blur(0) brightness(1); transform: none; text-shadow: 0 0 0 rgba(255,255,255,0); }
}
/* per-letter Y-axis rotation cascade (the "twist") */
@keyframes ltrFlip {
  0%   { transform: rotateY(0deg);   filter: brightness(1); text-shadow: 0 0 0 rgba(255,255,255,0); }
  50%  { transform: rotateY(180deg); filter: brightness(1.5); text-shadow: 0 0 20px rgba(255,255,255,0.55); }
  100% { transform: rotateY(360deg); filter: brightness(1); text-shadow: 0 0 0 rgba(255,255,255,0); }
}
/* per-letter light sweep (shimmer passing across) */
@keyframes ltrShimmer {
  0%   { filter: brightness(1); text-shadow: 0 0 0 rgba(255,255,255,0); transform: translateY(0); }
  40%  { filter: brightness(1.7); text-shadow: 0 0 22px rgba(255,255,255,0.62); transform: translateY(-0.04em); }
  100% { filter: brightness(1); text-shadow: 0 0 0 rgba(255,255,255,0); transform: translateY(0); }
}
/* per-letter rise + settle cascade */
@keyframes ltrLift {
  0%   { transform: translateY(0) scale(1); filter: brightness(1); text-shadow: 0 0 0 rgba(255,255,255,0); }
  35%  { transform: translateY(-0.16em) scale(1.04); filter: brightness(1.32); text-shadow: 0 0 16px rgba(255,255,255,0.42); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); text-shadow: 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: no-preference) {
  .reaffirm span.word.is-reaffirming { animation: wordReaffirm 1.15s var(--ease-soft) both; }
  /* slightly different cadence per word so it feels alive, not mechanical */
  .reaffirm span.word:nth-of-type(1).is-reaffirming { animation-duration: 1.05s; }
  .reaffirm span.word:nth-of-type(2).is-reaffirming { animation-duration: 1.22s; }
  .reaffirm span.word:nth-of-type(3).is-reaffirming { animation-duration: 1.10s; }
  .reaffirm span.word:nth-of-type(4).is-reaffirming { animation-duration: 1.32s; }
  .reaffirm .ltr.fx-flip    { animation: ltrFlip 0.84s var(--ease-calm) both; }
  .reaffirm .ltr.fx-shimmer { animation: ltrShimmer 0.78s var(--ease-soft) both; }
  .reaffirm .ltr.fx-lift    { animation: ltrLift 0.70s var(--ease-soft) both; }
  .reaffirm .word.fx-rise   { animation: wordRise 0.72s var(--ease-soft) both; }
  .reaffirm .ltr.fx-typehide { opacity: 0; }
  .reaffirm .type-cursor { animation: cursorBlink 0.46s steps(1, end) 3; }
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes wordRise {
  0%   { clip-path: inset(0 0 100% 0); transform: translateY(0.4em); opacity: 0.35; }
  100% { clip-path: inset(0 0 -14% 0); transform: translateY(0); opacity: 1; }
}
