:root {
  --ink: #12141a;
  --ink-soft: #555b68;
  --paper: #f4f4f0;
  --surface: #ffffff;
  --line: #d8d9d4;
  --accent: #5269f4;
  --accent-dark: #354bd1;
  --radius: 1.25rem;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: .5rem;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.page-frame { min-height: 100vh; overflow: clip; }

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 6rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -.045em;
  text-decoration: none;
  font-size: 1.18rem;
}
.brand em { color: var(--accent); font-style: normal; }
.brand:hover { color: var(--ink); }

.brand-mark { width: 1.65rem; height: 1.25rem; display: inline-block; position: relative; }
.brand-mark i { position: absolute; width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink); border-radius: 50%; top: .08rem; }
.brand-mark i:first-child { left: 0; }
.brand-mark i:last-child { right: 0; border-color: var(--accent); }

.primary-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.6rem; }
.primary-nav a {
  padding: .45rem 0;
  color: var(--ink-soft);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

main > section, .document-shell, .site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent-dark);
  font-size: .76rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; letter-spacing: -.045em; line-height: 1.05; }
h1 { font-size: clamp(3rem, 8vw, 7.2rem); font-weight: 760; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 730; }
h3 { font-size: 1.3rem; font-weight: 720; }

.hero {
  min-height: 42rem;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, .65fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding: 6rem 0 7rem;
}
.hero h1 { max-width: 10ch; margin-bottom: 2rem; }
.hero-lead { max-width: 48rem; margin: 0; color: var(--ink-soft); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; }

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 760;
  text-decoration: none;
}
.button-primary { color: #fff; background: var(--ink); }
.button-primary:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.button-quiet { background: transparent; }

.hero-aside {
  align-self: end;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.hero-aside p { margin: .75rem 0; font-weight: 700; }
.hero-aside .muted { color: var(--ink-soft); font-weight: 450; }
.signal { display: block; width: .65rem; height: .65rem; background: var(--accent); border-radius: 50%; }

.principles { padding: 7rem 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 48rem; margin-bottom: 4.5rem; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle-grid article { min-height: 18rem; padding: 2rem; background: var(--surface); }
.principle-grid .index { display: block; margin-bottom: 5rem; color: var(--ink-soft); font-size: .8rem; font-weight: 800; }
.principle-grid p { color: var(--ink-soft); }

.function { padding: 7rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 9rem); border-top: 1px solid var(--line); }
.function h2 { max-width: 12ch; }
.function-copy { padding-top: 2rem; color: var(--ink-soft); font-size: 1.1rem; }

.trust-card {
  margin-bottom: 7rem;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}
.trust-card .eyebrow { color: #aeb9ff; }
.trust-card h2 { max-width: 10ch; }
.trust-links { align-self: end; display: grid; }
.trust-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid #3d414c; }
.trust-links a:hover { color: #bdc6ff; }

.breadcrumbs { display: flex; gap: .55rem; align-items: center; padding: 2rem 0; color: var(--ink-soft); font-size: .9rem; }
.document-header { max-width: 57rem; padding: 5rem 0 6rem; }
.document-header h1 { margin-bottom: 1.6rem; font-size: clamp(3rem, 7vw, 6.2rem); }
.document-header > p:not(.eyebrow) { max-width: 48rem; color: var(--ink-soft); font-size: 1.25rem; }
.updated { display: inline-block; margin-top: 1.5rem; color: var(--ink-soft); font-size: .87rem; }

.document { max-width: 54rem; margin-bottom: 7rem; }
.document section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.document section:first-child { border-top-color: var(--ink); }
.document h2 { margin-bottom: 1.4rem; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.document p, .document li { color: #333743; }
.document li + li { margin-top: .55rem; }
.document ul, .document ol { padding-left: 1.4rem; }
.document strong { color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 36rem; }
th, td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--ink); background: #e9e9e4; font-size: .85rem; }
tr:last-child td { border-bottom: 0; }

.contact-panel { display: grid; gap: 1px; padding: 1px !important; background: var(--line); border: 0 !important; border-radius: var(--radius); overflow: hidden; }
.contact-panel > div { padding: 1.8rem; background: var(--surface); }
.meta-label { margin: 0 0 .3rem; color: var(--ink-soft) !important; font-size: .85rem; font-weight: 750; }
.contact-link { font-size: clamp(1.1rem, 3vw, 1.55rem); font-weight: 750; }

.facts dl { margin: 0; border-top: 1px solid var(--ink); }
.facts dl > div { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 650; }

.not-found { min-height: 34rem; width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 7rem 0; }
.not-found h1 { margin-bottom: 1.5rem; }
.not-found p:not(.eyebrow) { margin-bottom: 2rem; color: var(--ink-soft); font-size: 1.2rem; }

.site-footer {
  padding: 4.5rem 0 2rem;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 4rem; border-bottom: 1px solid #3d414c; }
.footer-main p { max-width: 28rem; margin: 0; color: #aeb2bd; }
.footer-brand { color: #fff; font-size: 1.7rem; font-weight: 780; letter-spacing: -.06em; text-decoration: none; }
.footer-brand span { color: #8292ff; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem 0; }
.footer-links div { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.footer-links p { margin: 0 0 .4rem; color: #8d929f; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a { color: #ececf0; font-size: .92rem; text-decoration: none; }
.footer-links a:hover { color: #aeb9ff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1.5rem; color: #8d929f; font-size: .8rem; border-top: 1px solid #3d414c; }

@media (max-width: 780px) {
  .site-header { min-height: 5.2rem; align-items: flex-start; padding: 1.2rem 0; flex-direction: column; }
  .primary-nav { width: 100%; justify-content: flex-start; gap: .25rem 1.2rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 4rem; padding: 5rem 0; }
  .hero-aside { margin: 0; }
  .principles, .function { padding: 5rem 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { min-height: auto; }
  .principle-grid .index { margin-bottom: 3rem; }
  .function, .trust-card { grid-template-columns: 1fr; }
  .document-header { padding: 4rem 0; }
  .facts dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  main > section, .document-shell, .site-footer, .site-header, .not-found { width: min(calc(100% - 1.25rem), var(--max)); }
  h1 { font-size: clamp(2.65rem, 15vw, 4.3rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .principle-grid article { padding: 1.5rem; }
  .trust-card { margin-bottom: 4rem; padding: 1.5rem; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .breadcrumbs, .hero-actions { display: none; }
  .document-shell { width: 100%; }
  .document-header { padding: 1rem 0 2rem; }
  .document { max-width: none; }
  a { color: #000; }
}
