/* varangian.ai v4: an extension of puretensor.ai.
   Near-black zinc, Inter and JetBrains Mono, hairline cards, pill calls to action and
   diagrams drawn in HTML that re-stack on a phone. One gilded touch from the spear-V
   mark, used sparingly. Status colours are for ledger state only and always carry a word.
   No inline styles anywhere: the page CSP is style-src 'self'. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces: the puretensor.ai zinc scale */
  --bg: #09090B;
  --bg-2: #111113;
  --surface: #18181B;
  --elevated: #222225;
  --panel: #0C0C0F;
  /* Text */
  --text: #FAFAFA;
  --text-2: #A1A1AA;
  --quiet: #8E8E98;
  /* The gilded touch, from the spear-V mark */
  --gold: #CFAE74;
  --gold-bright: #E2C690;
  /* Ledger state only, always with a word */
  --ok: #34D399;
  --warn: #FBBF24;
  --red: #F87171;
  /* Calls to action: light zinc pill, dark text */
  --pill: #E4E4E7;
  --on-pill: #09090B;

  --edge: rgba(228, 228, 231, 0.08);
  --edge-strong: rgba(228, 228, 231, 0.15);
  --gold-edge: rgba(207, 174, 116, 0.32);
  --gold-wash: rgba(207, 174, 116, 0.08);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1200px;
  --gutter: 1.5rem;
  --header-h: 72px;
  --space-section: clamp(4.5rem, 8vw, 7rem);
  --radius: 0.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The sticky header carries the announcement bar and the nav */
  scroll-padding-top: 7.5rem;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* The puretensor.ai dot grid, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

body > * {
  position: relative;
  z-index: 1;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--text);
  text-decoration-color: rgba(228, 228, 231, 0.35);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(207, 174, 116, 0.32);
  color: var(--text);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: var(--pill);
  color: var(--on-pill);
  font-weight: 500;
  text-decoration: none;
}

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

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

.mono,
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(228, 228, 231, 0.35);
}

/* ---------- eyebrow (kicker), section heads ---------- */
.kicker {
  display: block;
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--quiet);
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

/* An alternate band, faded in and out so sections meet without a hard line */
.band {
  background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 7rem, var(--bg-2) calc(100% - 7rem), var(--bg) 100%);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  line-height: 1.2;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-2);
}

.lead a {
  color: var(--text);
}

/* ---------- tags and state ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--edge-strong);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--text-2);
}

.tag-accent {
  border-color: var(--gold-edge);
  background: var(--gold-wash);
  color: var(--gold);
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex: none;
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
  color: var(--text-2);
}

.state::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.state-ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.32); background: rgba(52, 211, 153, 0.06); }
.state-warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.32); background: rgba(251, 191, 36, 0.06); }
.state-red { color: var(--red); border-color: rgba(248, 113, 113, 0.36); background: rgba(248, 113, 113, 0.07); }

.dot {
  display: inline-block;
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--quiet);
}

.dot.status-ok { background: var(--ok); }
.dot.status-warn { background: var(--warn); }
.dot.status-red { background: var(--red); }

.live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--quiet);
}

.live-dot.is-live {
  background: var(--ok);
}

.live-dot.is-live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  opacity: 0;
}

.skeleton {
  display: inline-block;
  height: 0.75rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  vertical-align: middle;
}

.sk-xs { width: 1.5rem; }
.sk-s { width: 3.5rem; }
.sk-m { width: 5rem; }
.sk-l { width: 7rem; }

/* ---------- pill calls to action (after puretensor.ai, after reflection.ai) ---------- */
.pill-cta {
  --pill-ease: cubic-bezier(0, 0, 0.2, 1);
  --pill-knob: 52px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.pill-cta__label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 15px calc(var(--pill-knob) + 24px) 15px 24px;
  border: 1px solid var(--pill-border, transparent);
  border-radius: calc(var(--pill-knob) / 2);
  background: var(--pill-bg);
  color: var(--pill-fg);
  text-wrap: balance;
  transition: padding 300ms var(--pill-ease);
}

.pill-cta__knob {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--pill-knob);
  height: var(--pill-knob);
  margin-left: calc(var(--pill-knob) * -1);
  color: var(--pill-arrow);
  transition: margin 300ms var(--pill-ease);
}

.pill-cta__dot {
  position: absolute;
  inset: 0;
  width: 6px;
  height: 6px;
  margin: auto;
  border: 0 solid var(--pill-border, transparent);
  border-radius: 999px;
  background: var(--pill-fg);
  transition: all 300ms var(--pill-ease);
}

.pill-cta__arrow {
  position: relative;
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 200ms var(--pill-ease);
}

@media (hover: hover) {
  .pill-cta:hover .pill-cta__label { padding-right: 24px; }
  .pill-cta:hover .pill-cta__knob { margin-left: 0; }
  .pill-cta:hover .pill-cta__dot { width: var(--pill-knob); height: var(--pill-knob); border-width: 1px; background: var(--pill-bg); }
  .pill-cta:hover .pill-cta__arrow { opacity: 1; transition-delay: 100ms; }
}

.pill-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 999px; }
.pill-cta:focus-visible .pill-cta__label { padding-right: 24px; }
.pill-cta:focus-visible .pill-cta__knob { margin-left: 0; }
.pill-cta:focus-visible .pill-cta__dot { width: var(--pill-knob); height: var(--pill-knob); border-width: 1px; background: var(--pill-bg); }
.pill-cta:focus-visible .pill-cta__arrow { opacity: 1; transition-delay: 100ms; }

.pill-cta--primary {
  --pill-bg: var(--pill);
  --pill-fg: var(--on-pill);
  --pill-arrow: var(--on-pill);
}

.pill-cta--secondary {
  --pill-bg: var(--surface);
  --pill-fg: var(--text);
  --pill-border: rgba(228, 228, 231, 0.16);
  --pill-arrow: var(--text);
}

.pill-cta--sm {
  --pill-knob: 40px;
  font-size: 0.8125rem;
}

.pill-cta--sm .pill-cta__label { padding: 9px calc(var(--pill-knob) + 12px) 9px 16px; }
@media (hover: hover) { .pill-cta--sm:hover .pill-cta__label { padding-right: 16px; } }
.pill-cta--sm:focus-visible .pill-cta__label { padding-right: 16px; }

/* A small secondary action: copy an address or a draft */
.button-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 200ms, background-color 200ms;
}

.button-copy:hover {
  border-color: rgba(228, 228, 231, 0.3);
  background: var(--elevated);
}

/* ---------- announcement bar ---------- */
.announce {
  border-bottom: 1px solid var(--edge);
  background: var(--surface);
}

.announce p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.625rem;
  padding: 0.5rem var(--gutter);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-2);
  text-align: center;
}

.announce a {
  color: var(--text);
  text-decoration: none;
}

.announce a:hover {
  text-decoration: underline;
}

.announce .sep {
  color: var(--quiet);
}

@media (max-width: 479px) {
  .announce .wide { display: none; }
}

/* ---------- header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex: none;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand svg {
  width: 1.625rem;
  height: auto;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 200ms;
}

.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--text);
}

/* The current section: a single gilded point under the link */
.nav-links a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: var(--gold);
}

.nav-links .nav-status {
  margin-left: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

.nav-links .nav-status:hover {
  border-color: rgba(228, 228, 231, 0.3);
}

.nav-links .nav-cta a {
  margin-left: 0.375rem;
  color: var(--text);
}

.nav-toggle {
  display: none;
}

/* Desktop: the bar is translucent glass over the page, as on puretensor.ai */
@media (min-width: 981px) {
  .site-header {
    background-color: rgba(9, 9, 11, 0.72);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 60%);
    border-bottom: 1px solid var(--edge);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }
}

@media (min-width: 981px) and (max-width: 1199px) {
  .nav-links a { padding-inline: 0.625rem; }
  .nav-links .nav-status { margin-left: 0.25rem; }
}

/* Phones and tablets: a floating rounded card that opens into a glass menu */
@media (max-width: 980px) {
  :root { --header-h: 56px; }

  /* The bar runs edge to edge; the card floats below it */
  .nav-shell {
    width: auto;
    margin: 0.75rem 0.75rem 0;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding: 0 0.5rem 0 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background-color: rgba(18, 18, 21, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background-color 250ms, border-color 250ms, box-shadow 250ms;
  }

  .nav-shell {
    position: relative;
  }

  /* Open, the card's lower half drops over the page instead of pushing it down */
  .nav-shell:has(.nav-links.open) {
    border-color: rgba(255, 255, 255, 0.14);
    border-bottom-color: transparent;
    border-radius: 16px 16px 0 0;
    background-color: #141418;
  }

  /* and the page behind dims, as on puretensor.ai */
  .site-header:has(.nav-links.open)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.5);
  }

  .brand {
    height: var(--header-h);
  }

  .nav-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle span {
    position: absolute;
    left: 50%;
    width: 1.125rem;
    height: 1.5px;
    margin-left: -0.5625rem;
    border-radius: 1px;
    background: currentColor;
    transition: transform 250ms var(--ease), opacity 200ms;
  }

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

  .nav-links {
    position: absolute;
    top: 100%;
    right: -1px;
    left: -1px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 8rem);
    margin: 0;
    padding: 0.25rem 1.125rem 0.875rem;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background-color: #141418;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  }

  .nav-links::before {
    content: "";
    display: block;
    margin-bottom: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.625rem 0.75rem 0;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
  }

  .nav-links a[aria-current]::after {
    top: 50%;
    right: 0.75rem;
    bottom: auto;
    left: auto;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0;
  }

  .nav-links .nav-status {
    justify-content: flex-start;
    width: auto;
    min-height: 2.75rem;
    margin: 0.5rem 0 0.25rem;
    padding: 0.5rem 0.875rem;
  }

  .nav-links .nav-cta a {
    margin: 0;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2.5rem, 4vw, 3.5rem);
}

/* The ambient stream, after puretensor.ai: doctrine verbs drifting upward behind the fold */
.stream {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: 0 var(--gutter);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 85%);
}

.stream-col {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 2;
  white-space: pre;
  color: var(--text);
  opacity: 0.045;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 4.6vw + 1rem, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* The gilded word */
.h1-warn {
  color: var(--gold);
}

.hero-sub {
  max-width: 36rem;
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-2);
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 3.5rem 0 0;
  border-top: 1px solid var(--edge);
}

.facts div {
  padding: 1rem 1rem 0 0;
}

.facts dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

.facts dd {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- the live ledger card ---------- */
.ledger-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%),
    var(--panel);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.lc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--quiet);
}

.lc-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.lc-summary {
  padding: 1.125rem 1.125rem 1rem;
}

.lc-summary p {
  margin-bottom: 0.875rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lc-summary p span {
  color: var(--text-2);
  font-weight: 400;
}

.lc-bar {
  display: grid;
  grid-template-columns: repeat(var(--n, 11), 1fr);
  gap: 3px;
  height: 0.5rem;
}

.lc-bar i {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.lc-bar i.status-ok { background: var(--ok); }
.lc-bar i.status-warn { background: var(--warn); }
.lc-bar i.status-red { background: var(--red); }

.lc-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--edge);
}

.lc-rows li + li {
  border-top: 1px solid var(--edge);
}

.lc-rows a {
  display: grid;
  /* A long measurement wraps in its own column rather than crushing the label */
  grid-template-columns: minmax(0, 1fr) fit-content(13rem) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.875rem;
  padding: 0.5rem 1.125rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color 200ms;
}

.lc-rows a:hover {
  background: rgba(255, 255, 255, 0.03);
}

.lc-label {
  min-width: 0;
  font-size: 0.875rem;
  color: var(--text);
}

.lc-value {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-2);
  text-align: right;
}

.lc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.875rem 1.125rem;
  border-top: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--quiet);
}

.lc-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  color: var(--text);
  text-decoration: none;
}

.lc-foot a:hover {
  text-decoration: underline;
}

/* ---------- services ---------- */
.service-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background-color 220ms, border-color 220ms, transform 220ms;
}

.service:hover {
  border-color: var(--edge-strong);
  background: var(--elevated);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-index {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--quiet);
}

.service h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.service p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}

.service .tags {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- doctrine ---------- */
.rules {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
}

.rule-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.rule-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--edge-strong);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.rule-title {
  flex: 1;
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.rule-body {
  padding: 0 1.5rem 1.5rem calc(1.5rem + 2.5rem + 1rem);
}

.rule-evidence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
}

.rule-evidence-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

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

.evidence-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-height: 2rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 0.71875rem;
  color: var(--text-2);
  text-decoration: none;
  transition: border-color 200ms, color 200ms;
}

.evidence-link:hover {
  border-color: rgba(228, 228, 231, 0.3);
  color: var(--text);
}

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

.rule-col {
  padding-top: 1rem;
  border-top: 1px solid var(--edge);
}

.rule-col h4 {
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

.rule-col p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* On phones the JS turns each title into a disclosure button */
.rule-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.rule-toggle {
  position: relative;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--edge-strong);
  border-radius: 50%;
}

.rule-toggle::before,
.rule-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.625rem;
  height: 1.5px;
  margin: -0.75px 0 0 -0.3125rem;
  background: var(--text);
  transition: transform 250ms var(--ease);
}

.rule-toggle::after { transform: rotate(90deg); }
.rule-btn[aria-expanded="true"] .rule-toggle::after { transform: rotate(0deg); }

/* ---------- the doctrine ledger ---------- */
.ledger-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.ledger-top .section-head {
  margin-bottom: 0;
}

.ledger-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--quiet);
}

.ledger-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 500;
  color: var(--text);
}

.ledger-banner .live-dot {
  margin-top: 0.5625rem;
}

.ledger-banner.is-ok { border-color: rgba(52, 211, 153, 0.3); }
.ledger-banner.is-warn { border-color: rgba(251, 191, 36, 0.32); }
.ledger-banner.is-red { border-color: rgba(248, 113, 113, 0.36); }
.ledger-banner.is-warn .live-dot { background: var(--warn); }
.ledger-banner.is-red .live-dot { background: var(--red); }

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

.tile {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.125rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
}

.tile::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--edge-strong);
}

.tile.t-ok::before { background: var(--ok); }
.tile.t-warn::before { background: var(--warn); }
.tile.t-red::before { background: var(--red); }

.tile dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

.tile dd {
  margin: 0.25rem 0 0;
  font-family: var(--mono);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ledger-panel {
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  border-radius: 1rem;
  background: var(--panel);
}

.ledger-head {
  display: none;
}

.ledger-row {
  border-top: 1px solid var(--edge);
}

.ledger-row:first-child {
  border-top: 0;
}

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

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

.ledger-row summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ledger-row:target {
  background: rgba(207, 174, 116, 0.04);
}

.ledger-identity {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.ledger-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.ledger-value {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.chev {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 0.25rem;
  border-right: 1.5px solid var(--quiet);
  border-bottom: 1.5px solid var(--quiet);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 250ms var(--ease);
}

.ledger-row[open] .chev {
  transform: rotate(225deg) translateY(-2px);
}

.ledger-body {
  display: grid;
  gap: 0.625rem;
  padding: 0 1.125rem 1.125rem;
}

.ledger-detail {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
}

.ledger-rule,
.ledger-source {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--quiet);
}

.ledger-fallback {
  padding: 1.25rem;
  color: var(--text-2);
}

.ledger-note {
  max-width: 48rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--quiet);
}

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

.clock-sub {
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--quiet);
}

/* A timeline: one rail, a point per obligation */
.obligations {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.75rem;
  list-style: none;
}

.obligations::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.3125rem;
  width: 1px;
  background: linear-gradient(180deg, var(--edge-strong), var(--edge-strong) 85%, transparent);
}

.obligation {
  position: relative;
  padding-bottom: 1.75rem;
}

.obligation::before {
  content: "";
  position: absolute;
  top: 0.4375rem;
  left: calc(-1.75rem + 0.3125rem - 0.25rem);
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--text-2);
  border-radius: 50%;
  background: var(--bg);
}

.obligation:last-child::before {
  border-color: var(--gold);
}

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

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

.ob-top time {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.fact {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}

.source {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.5rem;
  margin-top: 0.375rem;
  font-family: var(--mono);
  font-size: 0.71875rem;
  color: var(--text);
  text-decoration: none;
}

.source span:first-child {
  color: var(--quiet);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source:hover {
  text-decoration: underline;
}

.show-all {
  min-height: 2.75rem;
  margin-left: 1.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.show-all:hover {
  background: var(--elevated);
}

.evidence-cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

.stat {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}

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

.infra-grid .section-head {
  margin-bottom: 2rem;
}

.spec {
  margin: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
}

.spec div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.4fr);
  gap: 1rem;
  padding: 0.875rem 1.125rem;
}

.spec div + div {
  border-top: 1px solid var(--edge);
}

.spec dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
  padding-top: 0.125rem;
}

.spec dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.infra-extra {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.fine-print {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--quiet);
}

/* ---------- diagrams, as on puretensor.ai: drawn in HTML, re-stacked on a phone ---------- */
.dg {
  --dg-run: 1.75rem;
  margin: 0;
  container-type: inline-size;
}

.dg-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.875rem;
  border: 1px solid var(--edge);
  border-radius: 1.25rem;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 70%),
    var(--panel);
}

.dg-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 1.25rem 1.25rem;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 20%, transparent 100%);
}

.dg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dg-head h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.dg-caption {
  max-width: 34rem;
  margin: 1.125rem auto 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
  text-align: center;
  text-wrap: balance;
}

.dg-steps {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dg-steps > li {
  display: flex;
  flex-direction: column;
}

.dg-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.875rem 0.9375rem;
  border: 1px solid rgba(228, 228, 231, 0.1);
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 60%),
    #111114;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px -14px rgba(0, 0, 0, 0.8);
}

.dg-node__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(228, 228, 231, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  color: #D4D4D8;
}

.dg-node__icon svg {
  width: 1rem;
  height: 1rem;
}

.dg-node__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.dg-node__kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet);
}

.dg-node__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.dg-node__body {
  margin-top: 0.1875rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* The output of a diagram wears the gilded touch */
.dg-node--accent {
  border-color: var(--gold-edge);
  background:
    linear-gradient(180deg, rgba(207, 174, 116, 0.09), rgba(207, 174, 116, 0.015) 65%),
    #111114;
  box-shadow: inset 0 1px 0 rgba(244, 228, 193, 0.08), 0 0 0 4px rgba(207, 174, 116, 0.04), 0 16px 40px -18px rgba(207, 174, 116, 0.35);
}

.dg-node--accent .dg-node__icon {
  border-color: var(--gold-edge);
  background: var(--gold-wash);
  color: var(--gold);
}

.dg-wire {
  position: relative;
  flex: none;
  align-self: center;
  width: 0.5625rem;
  height: var(--dg-run);
  color: rgba(228, 228, 231, 0.28);
}

.dg-wire::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: currentColor;
}

.dg-wire::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 0.375rem;
  height: 0.375rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.dg-wire--long {
  --dg-run: 3rem;
}

.dg-wire__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.375rem);
  width: max-content;
  /* Wraps within the half of the diagram right of the wire, never past its edge */
  max-width: calc(50cqw - 1.75rem);
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--quiet);
}

.dg-wire__pulse {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0.875rem;
  margin-left: -1px;
  border-radius: 1px;
  background: linear-gradient(to bottom, rgba(226, 198, 144, 0), var(--gold) 70%, #F4E4C1);
  box-shadow: 0 0 10px 1px rgba(207, 174, 116, 0.55);
  opacity: 0;
}

/* Contact: three steps, wired like a diagram */
.steps {
  display: flex;
  flex-direction: column;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(228, 228, 231, 0.1);
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 60%),
    #111114;
}

.steps li + li {
  margin-top: var(--dg-run, 1.75rem);
}

/* The wire between two steps */
.steps li + li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: var(--dg-run, 1.75rem);
  background: rgba(228, 228, 231, 0.28);
}

.steps li + li::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  width: 0.375rem;
  height: 0.375rem;
  border-right: 1px solid rgba(228, 228, 231, 0.28);
  border-bottom: 1px solid rgba(228, 228, 231, 0.28);
  transform: translateX(-50%) rotate(45deg);
}

.steps .n {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(228, 228, 231, 0.12);
  border-radius: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
}

.steps li:last-child .n {
  border-color: var(--gold-edge);
  background: var(--gold-wash);
  color: var(--gold);
}

.steps strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.steps p {
  margin-top: 0.1875rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* ---------- leadership ---------- */
.people {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
}

.person img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.02);
}

.person h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.person .role {
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

.person p.bio {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}

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

.trust-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
}

.trust-card h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.trust-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}

.trust-card .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: auto;
  font-size: 0.9375rem;
}

.sectxt {
  margin: 0;
  padding: 0.875rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-2);
}

.sectxt b {
  font-weight: 500;
  color: var(--text);
}

.cert-list {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cert-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.015);
}

.cert-list li span:first-child {
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
}

.cert-list strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.inception {
  align-self: flex-start;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  background: #FFFFFF;
}

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

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

.contact h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  line-height: 1.2;
}

.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--edge-strong);
  border-radius: 1rem;
  background: var(--surface);
}

.contact-card .label {
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

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

.contact-email {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(228, 228, 231, 0.3);
  overflow-wrap: anywhere;
}

.contact-email:hover {
  text-decoration-color: var(--text);
}

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

.compose .label {
  margin-bottom: 0;
}

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

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

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--edge-strong);
  border-radius: 0.625rem;
  background: var(--panel);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 200ms, box-shadow 200ms;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.75rem 0.5rem;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: var(--quiet);
  opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--gold-edge);
  outline: none;
  box-shadow: 0 0 0 3px rgba(207, 174, 116, 0.18);
}

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

.compose-note,
.contact-aside {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--quiet);
}

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

.contact-aside a {
  color: var(--text);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--edge);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

.footer-col h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--quiet);
}

.footer-col ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-block;
  padding: 0.3125rem 0;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 200ms;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--edge);
}

.footer-entity {
  max-width: 52rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--quiet);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
}

.footer-top-link:hover {
  color: var(--text);
}

.footer-bottom button,
.consent-settings {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-decoration-color: rgba(228, 228, 231, 0.3);
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* ---------- consent ---------- */
.consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
  max-width: 34rem;
  margin-left: auto;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background-color: rgba(20, 20, 24, 0.94);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 45%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.consent p {
  flex: 1 1 16rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-2);
}

.consent a {
  color: var(--text);
}

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

.consent-actions button {
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.consent-actions button.is-primary {
  border-color: var(--pill);
  background: var(--pill);
  color: var(--on-pill);
}

/* ---------- legal pages ---------- */
.legal-hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--edge);
}

.crumbs {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--quiet);
}

.crumbs a {
  color: var(--text-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.legal-hero h1 {
  font-size: clamp(2.25rem, 4vw + 0.75rem, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.legal-hero .updated {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--quiet);
}

.legal-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem 5rem;
}

.toc {
  align-self: start;
  padding: 1.25rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc h2 {
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--quiet);
}

.toc ol {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc a {
  display: block;
  padding: 0.3125rem 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
}

.legal-content {
  min-width: 0;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
}

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

.legal-content h2 {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--edge);
  font-size: 1.5rem;
  line-height: 1.3;
  scroll-margin-top: 8rem;
}

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

.legal-content hr {
  display: none;
}

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

.legal-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

.legal-content h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}

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

.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.375rem;
}

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

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

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(228, 228, 231, 0.35);
  overflow-wrap: anywhere;
}

.legal-content a:hover {
  text-decoration-color: var(--text);
}

.legal-content code {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--text);
}

.legal-content pre {
  margin: 0 0 1rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  background: var(--panel);
}

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

.legal-content blockquote {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--edge-strong);
  background: var(--surface);
}

.legal-content table {
  display: block;
  width: 100%;
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-content th,
.legal-content td {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--edge);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.legal-content .placeholder {
  color: var(--warn);
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts div { padding-top: 1.25rem; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .compose .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { font-size: 2rem; }
  .dg-panel { padding: 2rem 1.75rem; }
}

@media (min-width: 760px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evidence-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger-head {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    gap: 0.875rem;
    padding: 0.75rem 1.125rem;
    border-bottom: 1px solid var(--edge);
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--quiet);
  }
  .ledger-head span:nth-child(3) { display: none; }
  .ledger-row summary { grid-template-columns: 5.5rem minmax(0, 1fr) auto; }
  .ledger-row .state { justify-self: start; }
  .ledger-identity { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
  .ledger-value { text-align: right; }
  .ledger-body { padding-left: calc(1.125rem + 5.5rem + 0.875rem); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clock-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 4rem; }
  .evidence-cards { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; }
  .legal-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: 8rem; }
  /* The words stay in view beside the diagram, as on puretensor.ai */
  .infra-grid > div:first-child,
  .contact-grid > div:first-child { position: sticky; top: 8.5rem; }
}

/* ---------- phones ---------- */
@media (max-width: 759px) {
  .rule-head { padding: 1rem 1.125rem; }
  .rule-body { padding: 0 1.125rem 1.25rem; }
  .rule-title { font-size: 1.0625rem; }
  .stream { grid-template-columns: repeat(2, 1fr); }
  .stream-col:nth-child(n+3) { display: none; }
}

@media (max-width: 479px) {
  :root { --gutter: 1.25rem; }
  .hero-actions .pill-cta { width: 100%; }
  .hero-actions .pill-cta__label { flex: 1; }
  .lc-rows a { grid-template-columns: minmax(0, 1fr) auto; }
  .lc-rows .lc-value { display: none; }
  .service,
  .person,
  .trust-card,
  .evidence-card,
  .contact-card { padding: 1.25rem; }
}

/* ---------- motion, for those who allow it ---------- */
@media (prefers-reduced-motion: no-preference) {
  .stream-col {
    animation: stream-up 60s linear infinite;
  }

  .stream-col:nth-child(2) { animation-duration: 75s; }
  .stream-col:nth-child(3) { animation-duration: 66s; }
  .stream-col:nth-child(4) { animation-duration: 82s; }
  .stream-col:nth-child(5) { animation-duration: 70s; }

  .live-dot.is-live::after {
    animation: live-ring 2.4s ease-out infinite;
  }

  .skeleton {
    animation: shimmer 1.6s linear infinite;
  }

  .dg-wire__pulse {
    animation: dg-pulse 2.8s linear infinite;
  }

  .dg-steps > li:nth-child(2) .dg-wire__pulse { animation-delay: 1.2s; }
}

@keyframes stream-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes live-ring {
  0% { opacity: 0.7; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.6); }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes dg-pulse {
  0% { opacity: 0; transform: translateY(-0.875rem); }
  8% { opacity: 1; }
  52% { opacity: 1; }
  60%, 100% { opacity: 0; transform: translateY(var(--dg-run)); }
}

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

@media print {
  body::before,
  .stream,
  .site-header,
  .consent {
    display: none;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }
}
