/* Tim Jacobs · NODE-10 · ALKN-Authority-Network
 * Visual register: ktsglobal.live (exact)
 * PHI = 1.618033988749894
 */

:root {
  --bg:        #0a0a0a;
  --surface:   #111111;
  --border:    #1a1a1a;
  --text:      #f5f5f5;
  --muted:     #888888;
  --tertiary:  #444444;
  --gold:      #c9a84c;
  --gold-dim:  #8a6f2e;
  --error:     #8b2020;

  --serif: "IBM Plex Serif", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  --phi: 1.618;
  --phi-inv: 0.618;
  --t: 618ms;
  --ease: cubic-bezier(0.618, 0, 0.382, 1);

  --max: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.618;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
a:hover, a:focus-visible { color: var(--gold-dim); }
a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--bg);
  color: var(--gold);
  padding: 12px 16px;
  border: 1px solid var(--gold);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.skip:focus { left: 16px; top: 16px; }

/* ============== NAV ============== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--gold); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--gold); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============== MAIN LAYOUT ============== */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px 60px;
}
@media (min-width: 721px) {
  main { padding: 140px 0 80px; }
}

/* ============== TYPOGRAPHY ============== */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4.236rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}
.h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.618rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--text);
}
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.618rem;
  line-height: 1.25;
  color: var(--text);
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--text);
}
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 18px;
  display: block;
}
.label.gold { color: var(--gold); }

.subline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 28px;
  max-width: 620px;
}

.prose {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.618;
  color: var(--text);
  margin-top: 24px;
  max-width: 620px;
}
.prose.small { font-size: 0.95rem; color: var(--text); }
.prose.long > p + p { margin-top: 18px; }
.prose .lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 24px;
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.small { font-size: 0.8125rem; }

.meta { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); margin-top: 12px; }

/* ============== HORIZONTAL RULE ============== */
.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 90px 0;
}
@media (max-width: 720px) {
  .rule { margin: 60px 0; }
}

/* ============== HERO ============== */
.hero {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  animation: rise var(--t) var(--ease) both;
}
.hero.short { min-height: auto; padding: 40px 0; }
.hero .display { max-width: 700px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============== STAT ROW ============== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.stat .stat-n {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.236rem);
  color: var(--text);
  letter-spacing: 0.02em;
}
.stat .stat-l {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ============== SECTION ============== */
.section { padding: 16px 0; }
.section .h1 { margin-top: 4px; }
.link-row { margin-top: 32px; font-family: var(--sans); }
.link-row a { font-size: 0.95rem; }

/* ============== CALLOUT ============== */
.callout {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
}
.callout > * + * { margin-top: 12px; }
.callout p { font-family: var(--sans); font-weight: 300; }
.callout .label { margin-bottom: 8px; }

/* ============== RECORD LIST ============== */
.record-list { list-style: none; margin-top: 32px; }
.record-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.record-item .rec-meta { display: flex; gap: 16px; align-items: baseline; }
.record-item .rec-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--text);
}
.record-item .rec-role {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.record-item .rec-evidence { white-space: nowrap; }
@media (max-width: 720px) {
  .record-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .record-item .rec-role { text-align: left; }
}

/* Full record listing */
.record-list.full .record-item.full {
  display: block;
  padding: 28px 0;
}
.rec-grid {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 24px;
  align-items: start;
}
.rec-year {
  font-family: var(--mono);
  font-size: 1.0625rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.rec-body .h3 { margin-bottom: 8px; }
.rec-body .small { margin-top: 12px; color: var(--muted); }
.rec-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
@media (max-width: 720px) {
  .rec-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ============== BADGE ============== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  display: inline-block;
}

/* ============== INTELLIGENCE PANEL ============== */
.intel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 48px 32px;
}
.intel .label.gold { color: var(--gold); }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .intel { padding: 32px 20px; }
}
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric-v {
  font-family: var(--mono);
  font-size: 1.236rem;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color var(--t) var(--ease);
}
.metric.flash .metric-v { color: var(--gold); }
.metric-l {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============== AEGIS LIST ============== */
.aegis-list {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.aegis-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.aegis-list li:last-child { border-bottom: 0; }
.aegis-letter {
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.aegis-list .h3 { color: var(--text); margin-bottom: 8px; }
.aegis-list p { font-family: var(--sans); font-weight: 300; color: var(--muted); }

/* ============== POSITIONS ============== */
.positions {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.positions li {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.positions .pos-role { font-family: var(--serif); font-weight: 400; color: var(--text); }

/* ============== DISAMBIGUATION ============== */
.disamb {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.disamb li {
  padding-left: 20px;
  position: relative;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
}
.disamb li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ============== EVIDENCE LAYERS ============== */
.layers {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.layers li {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

/* ============== CLAIMS LIST ============== */
.claims-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
}
.claim {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.claim-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.claim-text {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.claim-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ============== FAQ ============== */
.faq {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.faq .h3 { margin-bottom: 10px; color: var(--text); }
.faq .prose.small { margin-top: 0; color: var(--muted); }

/* ============== INSIGHTS ============== */
.insights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.insight { padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.insight:last-child { border-bottom: 0; }
.ins-meta { margin-bottom: 12px; }
.insight .h2 a { color: var(--text); }
.insight .h2 a:hover { color: var(--gold); }

/* ============== FORM ============== */
.form {
  max-width: 540px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.form input, .form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-color: var(--tertiary);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  padding: 12px 0;
  outline: none;
  transition: border-color var(--t) var(--ease);
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form input:focus, .form textarea:focus { border-bottom-color: var(--gold); }
.form textarea { resize: vertical; min-height: 120px; }

.btn {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  align-self: flex-start;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.btn:hover, .btn:focus-visible {
  background: var(--gold);
  color: var(--bg);
}

.form-status { margin-top: 8px; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: var(--error); }

/* ============== FOOTER ============== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 120px;
  padding: 60px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 720px) {
  .footer-row { grid-template-columns: 1fr; gap: 32px; }
}
.footer-col p { font-family: var(--sans); font-weight: 300; font-size: 0.875rem; }
.footer-col .label { margin-bottom: 14px; }
.footer .federation, .footer .links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer .federation a, .footer .links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.footer .federation a:hover, .footer .links a:hover { color: var(--gold); }
.footer .federation .mono { color: var(--gold); margin-right: 8px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--muted); }

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============== PRINT ============== */
@media print {
  html, body { background: white; color: black; }
  .nav, .footer, .form, .btn { display: none; }
  main { padding: 0; max-width: none; }
  a { color: black; text-decoration: underline; }
}

/* ============== ENHANCEMENTS ============== */
em { font-style: italic; color: var(--text); }
strong { font-weight: 400; color: var(--text); }
::selection { background: var(--gold); color: var(--bg); }
