:root {
  --ink: #171714;
  --paper: #F2F0E9;
  --paper-light: #FAF9F5;
  --signal: #E84B2C;
  --signal-dark: #B8321A;
  --data-blue: #1D4ED8;
  --line: #CBC7BC;
  --muted: #6C6961;
  --success: #287A4B;
  --danger: #B42318;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Newsreader", Georgia, serif;
  --sans: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

body::before {
  background: var(--line);
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.55;
  position: fixed;
  right: 0;
  top: 96px;
  z-index: 5;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--data-blue);
  outline-offset: 4px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--ink);
  color: var(--paper-light);
  left: var(--gutter);
  padding: 10px 14px;
  position: fixed;
  top: 10px;
  transform: translateY(-140%);
  transition: transform 160ms var(--ease);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  transition: min-height 180ms var(--ease);
  z-index: 20;
}

.site-header.is-compact .header-inner {
  min-height: 72px;
}

.header-inner,
.footer-grid,
main > section {
  margin-inline: auto;
  max-width: var(--max);
  padding-inline: var(--gutter);
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  min-height: 96px;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-icon {
  display: block;
  flex: 0 0 auto;
  height: 36px;
  object-fit: contain;
  width: 36px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  justify-content: center;
}

.site-nav a,
.lang-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a.active::after {
  background: var(--signal);
  bottom: -10px;
  content: "";
  height: 6px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 6px;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  display: none;
  height: 44px;
  padding: 10px;
  width: 44px;
}

.nav-toggle span:not(.sr-only) {
  background: var(--ink);
  display: block;
  height: 1px;
  margin: 5px 0;
  width: 100%;
}

.button {
  align-items: center;
  background: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 999px;
  color: var(--paper-light);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1;
  min-height: 46px;
  padding: 0 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.button:hover {
  background: var(--signal-dark);
  border-color: var(--signal-dark);
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
}

.button-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-light);
}

.button-light {
  background: var(--paper-light);
  border-color: var(--paper-light);
  color: var(--ink);
}

.section-pad {
  padding-block: clamp(88px, 12vw, 184px);
}

.section-line {
  border-top: 1px solid var(--line);
}

.layout-grid {
  display: grid;
  gap: clamp(36px, 6vw, 96px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.hero {
  min-height: calc(100svh - 96px);
  padding-top: clamp(72px, 8vw, 120px);
}

.hero-copy {
  grid-column: 1 / 9;
}

.ledger-panel {
  align-self: end;
  background: var(--paper-light);
  border: 1px solid var(--ink);
  grid-column: 9 / 13;
  min-height: 320px;
  padding: 24px;
  position: relative;
}

.ledger-panel::after {
  border: 1px solid var(--line);
  bottom: 14px;
  content: "";
  left: 14px;
  position: absolute;
  right: 14px;
  top: 62px;
}

.ledger-panel p {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding-block: 14px;
  position: relative;
  z-index: 1;
}

.ledger-panel .eyebrow {
  border: 0;
  padding-top: 0;
}

.signal-map {
  display: block;
  height: auto;
  margin-top: 28px;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 540;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 8.5rem);
  line-height: 0.92;
  margin-bottom: 28px;
  max-width: 980px;
}

h2 {
  font-size: clamp(2.35rem, 4.6vw, 5rem);
  line-height: 0.98;
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-intro,
.page-hero > p,
.large-body,
.statement {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.hero-intro {
  max-width: 720px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.statement {
  font-family: var(--display);
  grid-column: 1 / 7;
  line-height: 1.25;
}

.capability-list {
  border-top: 1px solid var(--line);
  grid-column: 7 / 13;
}

.ledger-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 52px 1fr;
  padding-block: 28px;
}

.ledger-row > span,
.loop-list span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-head {
  max-width: 860px;
}

.loop-list {
  counter-reset: loop;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
}

.loop-list li {
  border: 1px solid var(--line);
  border-left: 0;
  min-height: 280px;
  padding: 22px;
}

.loop-list li:first-child {
  border-left: 1px solid var(--line);
}

.loop-list strong,
.loop-list em {
  display: block;
}

.loop-list strong {
  font-family: var(--display);
  font-size: 2rem;
  font-style: normal;
  line-height: 1;
  margin-top: 42px;
}

.loop-list em {
  color: var(--data-blue);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-block: 18px 10px;
  text-transform: uppercase;
}

.proof-band {
  background: var(--ink);
  color: var(--paper-light);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.proof-band {
  max-width: none;
}

.proof-band > * {
  max-width: 720px;
}

.proof-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.proof-list li {
  border-top: 1px solid rgba(250, 249, 245, 0.28);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 12px;
  text-transform: uppercase;
}

.proof-band .eyebrow,
.contact-cta .eyebrow {
  color: var(--line);
}

.principles {
  display: grid;
  gap: 18px;
}

.principles h2 {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding-bottom: 18px;
}

.company-profile {
  background: var(--paper-light);
  border: 1px solid var(--ink);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  padding: clamp(24px, 5vw, 56px);
}

.company-profile h2 {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  margin-bottom: 0;
}

.company-profile-body {
  align-self: end;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 4vw, 56px);
}

.company-profile-body p {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.65;
  max-width: 680px;
}

.company-profile-body ul {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.company-profile-body li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 42px 1fr;
  min-height: 54px;
}

.company-profile-body li span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact-cta {
  background: var(--ink);
  color: var(--paper-light);
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  margin-inline: auto;
  max-width: var(--max);
  padding-block: clamp(72px, 9vw, 132px);
  padding-inline: var(--gutter);
}

.contact-cta-head {
  grid-column: 1 / -1;
}

.contact-cta h2 {
  font-size: clamp(3.2rem, 7vw, 7.8rem);
  line-height: 0.96;
  margin-bottom: 0;
  max-width: 1040px;
}

.contact-cta-action {
  align-items: end;
  border-top: 1px solid rgba(250, 249, 245, 0.28);
  display: grid;
  gap: 24px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 720px) auto;
  padding-top: 28px;
}

.contact-cta-action p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.62;
  margin-bottom: 0;
  max-width: 720px;
}

.contact-cta .button {
  justify-self: start;
}

.contact-cta + .site-footer {
  margin-top: 0;
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 760px;
}

.content-stack {
  padding-block: clamp(64px, 8vw, 128px);
}

.content-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 6vw, 80px);
  grid-template-columns: 80px minmax(0, 1fr);
  padding-block: clamp(36px, 5vw, 72px);
}

.content-section:last-child {
  border-bottom: 1px solid var(--line);
}

.content-section p,
.content-section ul {
  max-width: 820px;
}

.content-section ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.content-section li {
  border-left: 4px solid var(--signal);
  padding-left: 14px;
}

.section-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-top: 24px;
}

.table-wrap {
  border: 1px solid var(--line);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

th,
td {
  border: 1px solid var(--line);
  padding: 18px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--ink);
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form-section {
  padding-top: 0;
}

.contact-form {
  background: var(--paper-light);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  max-width: 840px;
  padding: clamp(20px, 5vw, 48px);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--data-blue);
  outline: 2px solid transparent;
}

.consent {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 20px 1fr;
}

.consent input {
  min-height: auto;
  margin-top: 4px;
}

.form-error {
  color: var(--danger);
  font-weight: 700;
  min-height: 1.5em;
}

.site-footer {
  background: var(--paper-light);
  border-top: 1px solid var(--ink);
  margin-top: clamp(64px, 8vw, 112px);
  padding-block: 56px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.7fr);
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-grid p {
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-note {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  body::before {
    top: 72px;
  }

  .header-inner {
    grid-template-columns: auto auto;
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    background: var(--paper);
    border-top: 1px solid var(--line);
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding-block: 18px;
  }

  .site-nav.is-open,
  .header-actions.is-open {
    display: flex;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav a.active::after {
    bottom: 50%;
    left: -12px;
    transform: translateY(50%);
  }

  .layout-grid,
  .proof-band,
  .footer-grid,
  .company-profile {
    grid-template-columns: 1fr;
  }

  .company-profile-body {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }

  .contact-cta {
    padding-block: 64px;
  }

  .contact-cta-action {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .ledger-panel,
  .statement,
  .capability-list {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
  }

  .loop-list {
    grid-template-columns: 1fr;
  }

  .loop-list li,
  .loop-list li:first-child {
    border: 1px solid var(--line);
    min-height: auto;
  }

  .loop-list li + li {
    border-top: 0;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ledger-row,
  .content-section {
    grid-template-columns: 1fr;
  }

  .content-section {
    gap: 14px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
