/* Auxiliary Force Technology
   Layout: left-aligned content on a 1200px wrap. The motif is a marked-up Dataverse schema:
   navy ink on white, logo-red marks, wide Archivo headings, and Plex Mono only for logical names. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color: banner navy, paper, and the logo red */
  --paper: #ffffff;
  --band: #eef3f7;
  --surface: #ffffff;
  --canvas: #f4f8fb;
  --canvas-dot: #bccbd6;
  --ink: #0f2a3f;
  --ink-2: #3f5566;
  --ink-3: #5a6f7f;
  --line: #d5dee5;
  --line-strong: #0f2a3f;
  --mark: #cf141c;
  --mark-strong: #ad0f16;
  --on-mark: #ffffff;
  --inverse: #0f3a57;
  --on-inverse: #ffffff;
  --on-inverse-2: #b9cedc;
  --erd-head-bg: #0f3a57;
  --erd-head-fg: #ffffff;
  --logo-fg: #ed1c24;
  --todo-bg: #fff1eb;
  --todo-line: #d4501c;
  --error: #b42318;
  --success: #1f7a4d;
  --focus: #0f3a57;
  --shadow: rgba(15, 42, 63, 0.14);

  /* Type: Archivo across widths for voice, Plex Mono for schema names */
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);

  /* Space */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 4px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1a26;
    --band: #102231;
    --surface: #0f2130;
    --canvas: #0d1e2b;
    --canvas-dot: #2a4152;
    --ink: #e6eef4;
    --ink-2: #a9bbc8;
    --ink-3: #8ba0af;
    --line: #213646;
    --line-strong: #e6eef4;
    --mark: #d92027;
    --mark-strong: #ef3b42;
    --on-mark: #ffffff;
    --inverse: #0f3a57;
    --on-inverse: #ffffff;
    --on-inverse-2: #b9cedc;
    --erd-head-bg: #e6eef4;
    --erd-head-fg: #0f2a3f;
    --logo-fg: #ed1c24;
    --todo-bg: #3b2116;
    --todo-line: #ff8f5e;
    --error: #ff8a80;
    --success: #6fd3a0;
    --focus: #7cc4e8;
    --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1a26;
  --band: #102231;
  --surface: #0f2130;
  --canvas: #0d1e2b;
  --canvas-dot: #2a4152;
  --ink: #e6eef4;
  --ink-2: #a9bbc8;
  --ink-3: #8ba0af;
  --line: #213646;
  --line-strong: #e6eef4;
  --mark: #d92027;
  --mark-strong: #ef3b42;
  --on-mark: #ffffff;
  --inverse: #0f3a57;
  --on-inverse: #ffffff;
  --on-inverse-2: #b9cedc;
  --erd-head-bg: #e6eef4;
  --erd-head-fg: #0f2a3f;
  --logo-fg: #ed1c24;
  --todo-bg: #3b2116;
  --todo-line: #ff8f5e;
  --error: #ff8a80;
  --success: #6fd3a0;
  --focus: #7cc4e8;
  --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--paper);
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p, ul, ol, figure, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 {
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-4);
  font-weight: 820;
  font-stretch: 115%;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
h2 { font-size: var(--step-3); font-stretch: 112%; }
h3 { font-size: var(--step-1); font-stretch: 104%; line-height: 1.25; font-weight: 700; }
code { font-family: var(--font-mono); font-size: 0.92em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--mark);
  color: var(--on-mark);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Links get a highlighter stroke instead of a hairline underline. */
.link,
.prose a,
.narrow-text a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 0.24em;
  text-underline-offset: 0.06em;
  text-decoration-skip-ink: none;
}
.link:hover,
.prose a:hover,
.narrow-text a:hover { background: var(--mark); color: var(--on-mark); }

/* Placeholders that must be replaced before launch. */
.todo {
  background: var(--todo-bg);
  color: var(--ink);
  outline: 1.5px dashed var(--todo-line);
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 0.3em;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.65em 1.1em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-lg { min-height: 52px; padding: 0.8em 1.35em; font-size: 1.0625rem; }
.btn-mark { background: var(--mark); border-color: var(--mark); color: var(--on-mark); }
.btn-mark:hover { background: var(--mark-strong); border-color: var(--mark-strong); }
.btn-quiet { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.lm-mark { fill: var(--logo-fg); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.0625rem; font-weight: 800; font-stretch: 122%; letter-spacing: -0.01em; }
.brand-sub { margin-top: 4px; font-size: 0.8125rem; color: var(--ink-2); letter-spacing: 0.02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.nav-desktop { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9688rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-link:hover,
.nav-link[aria-current="page"],
.menu-toggle[aria-expanded="true"] {
  text-decoration-line: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 0.24em;
  text-underline-offset: 0.3em;
}
.caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 120ms ease; }
.menu-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.has-menu { position: relative; }
.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 290px;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 16px 40px -12px var(--shadow);
}
html:not(.js) .has-menu:hover .submenu,
html:not(.js) .has-menu:focus-within .submenu,
.js .submenu.is-open { display: block; }
.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.submenu a:hover,
.submenu a[aria-current="page"] { background: var(--band); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 150ms ease, opacity 150ms ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile { display: none; }

@media (max-width: 999px) {
  .nav-desktop { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .nav-mobile {
    display: block;
    border-top: 1px solid var(--line);
    padding-block: 12px 24px;
    background: var(--paper);
  }
  .js .nav-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px var(--shadow);
  }
  html:not(.js) .site-header { position: static; }
  .nav-mobile-label { margin-top: 8px; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
  .nav-mobile-list { list-style: none; padding: 0; margin-block: 4px 12px; }
  .nav-mobile-list + .nav-mobile-list { border-top: 1px solid var(--line); padding-top: 8px; }
  .nav-mobile-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 700;
    font-stretch: 106%;
    text-decoration: none;
  }
  .nav-mobile-list a[aria-current="page"] {
    text-decoration-line: underline;
    text-decoration-color: var(--mark);
    text-decoration-thickness: 0.24em;
  }
  .nav-mobile .btn { width: 100%; margin-top: 8px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.band { background: var(--band); }
.section-title { margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.section-head .section-title { margin-bottom: 0; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.narrow > * { max-width: 820px; }
.narrow-text { font-size: var(--step-1); line-height: 1.55; max-width: 38em; }

/* ---------- Hero ---------- */
.hero { padding-block: 0 clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
/* The original site banner, under a navy scrim so white text clears 4.5:1 even over the globe. */
.hero-banner {
  padding-block: clamp(44px, 6vw, 88px);
  background: linear-gradient(rgba(8, 32, 50, 0.5), rgba(8, 32, 50, 0.5)), #0f3a57 url("../img/banner.jpg") right center / cover no-repeat;
  color: #ffffff;
}
.hero-title {
  max-width: 17em;
  font-size: clamp(1.875rem, 0.9rem + 4vw, 4.25rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 52px);
}
.proof-line { margin-top: 28px; max-width: 38em; font-size: 0.9375rem; color: var(--ink-2); }

/* The schema figure */
.erd { min-width: 0; }
.erd-canvas {
  padding: clamp(20px, 3vw, 32px);
  background-color: var(--canvas);
  background-image: radial-gradient(circle at 1px 1px, var(--canvas-dot) 1px, transparent 1.5px);
  background-size: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.erd-table {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
}
.erd-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: var(--erd-head-bg);
  color: var(--erd-head-fg);
}
.erd-name { font-family: var(--font-mono); font-weight: 500; font-size: 0.9375rem; }
.erd-kind { font-size: 0.75rem; opacity: 0.75; }
.erd-table table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.erd-table th,
.erd-table td { padding: 8px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.erd-table tbody tr:first-child th,
.erd-table tbody tr:first-child td { border-top: 0; }
.erd-table th { font-family: var(--font-mono); font-weight: 400; white-space: nowrap; }
.erd-type { color: var(--ink-3); white-space: nowrap; }
.erd-val { font-weight: 650; }
.erd-rel { display: flex; align-items: center; gap: 10px; height: 56px; margin-left: 28px; }
.erd-rel svg { width: 24px; height: 56px; flex: none; overflow: visible; }
.rel-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.rel-label { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-2); }
.erd figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--ink-3); }

mark.hl {
  padding: 0.05em 0.45em;
  border-radius: 2px;
  color: var(--on-mark);
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 0 / 100% 100%;
  animation: hl-sweep 700ms 350ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes hl-sweep {
  from { background-size: 0% 100%; color: var(--ink); }
  to { background-size: 100% 100%; color: var(--on-mark); }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .erd { max-width: 560px; }
}
@media (max-width: 599px) {
  h1, .cta-band h2 { font-stretch: 108%; }
}
@media (max-width: 479px) {
  .erd-type { display: none; }
  .erd-table th, .erd-table td { padding: 8px 10px; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Client roll ---------- */
.clients-strip { padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.roll-title { font-size: var(--step-0); font-stretch: 100%; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.roll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 3vw, 36px);
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.roll li {
  font-size: clamp(1rem, 0.85rem + 0.7vw, 1.4375rem);
  font-weight: 760;
  font-stretch: 112%;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.roll-more { margin-top: 22px; }

/* ---------- Service rows ---------- */
.service-rows { list-style: none; padding: 0; border-top: 2px solid var(--line-strong); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 40px;
  align-items: baseline;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.service-row h3 { font-size: var(--step-2); font-stretch: 112%; }
.service-row h3 a { color: var(--ink); text-decoration: none; }
.service-row h3 a::after { content: ""; position: absolute; inset: 0; }
.service-row:hover h3 a,
.service-row h3 a:focus-visible {
  text-decoration-line: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 0.22em;
  text-underline-offset: 0.08em;
}
.service-row p { color: var(--ink-2); max-width: 38em; }
@media (max-width: 759px) {
  .service-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Why / models ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}
.why-item { padding-block: 22px 30px; border-top: 2px solid var(--line-strong); }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--ink-2); max-width: 34em; }
.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
}
.model { padding-top: 22px; border-top: 2px solid var(--line-strong); }
.model h3 { margin-bottom: 8px; }
.model p { color: var(--ink-2); }
@media (max-width: 859px) {
  .models { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 759px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Case teasers ---------- */
.case-teasers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 48px);
  list-style: none;
  padding: 0;
}
.case-teaser { padding-top: 18px; border-top: 2px solid var(--line-strong); }
.teaser-sector { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.case-teaser h3 { margin-top: 10px; font-size: var(--step-1); font-stretch: 100%; font-weight: 650; line-height: 1.4; }
.case-teaser h3 a { color: var(--ink); text-decoration: none; }
.case-teaser h3 a:hover,
.case-teaser h3 a:focus-visible {
  text-decoration-line: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 0.22em;
}
@media (max-width: 859px) {
  .case-teasers { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Bench + sample document ---------- */
.bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.bench-copy { display: grid; gap: 16px; justify-items: start; }
.bench-copy .section-title { margin-bottom: 4px; }
.bench-lead { font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 859px) {
  .bench-grid { grid-template-columns: minmax(0, 1fr); }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1.4;
}
.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mark);
  box-shadow: 0 0 0 1.5px var(--line-strong);
}
.status-available::before { background: var(--success); }
.status-planned::before { background: transparent; }

.sample-doc { min-width: 0; }
.doc-sheet {
  padding: clamp(18px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px var(--shadow);
}
.doc-head { padding-bottom: 14px; border-bottom: 2px solid var(--line-strong); }
.doc-title { font-size: var(--step-2); font-weight: 780; font-stretch: 112%; line-height: 1.15; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: var(--step--1); color: var(--ink-2); }
.doc-table-wrap { margin-top: 4px; overflow-x: auto; }
.doc-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.8438rem; }
.doc-table th {
  padding: 10px 12px 8px 0;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.doc-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table code { font-size: 0.8125rem; }
.sample-doc figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--ink-3); }
@media (max-width: 559px) {
  .sample-doc.is-compact .req { display: none; }
  .sample-doc.is-compact .doc-table { min-width: 0; }
}

/* ---------- About teaser + avatar ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.about-teaser-body { display: grid; gap: 16px; max-width: 46em; }
.about-teaser-body p:first-of-type { font-size: var(--step-1); line-height: 1.55; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--inverse);
  color: var(--on-inverse);
  font-weight: 800;
  font-stretch: 120%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--mark);
}
.avatar-md { width: 84px; height: 84px; font-size: 1.5rem; }
.avatar-lg { width: 144px; height: 144px; font-size: 2.5rem; }
@media (max-width: 559px) {
  .about-teaser { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Closing call to action ---------- */
.cta-band { padding-block: clamp(64px, 8vw, 112px); background: var(--inverse); color: var(--on-inverse); }
.cta-inner { display: grid; gap: 20px; justify-items: start; }
.cta-band h2 { font-size: var(--step-4); font-stretch: 115%; font-weight: 820; letter-spacing: -0.022em; line-height: 1.02; }
.cta-band p { max-width: 34em; font-size: var(--step-1); line-height: 1.5; color: var(--on-inverse-2); }
.cta-band .btn { margin-top: 8px; }
.cta-band :focus-visible { outline-color: var(--mark); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 32px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { max-width: 24em; color: var(--ink-2); }
.footer-col h2 { margin-bottom: 12px; font-size: 0.9375rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 8px; padding: 0; list-style: none; color: var(--ink-2); }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 0.24em;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.footer-legal p { max-width: 60em; }
@media (max-width: 859px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Inner page header ---------- */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 15em; }
.page-head .lead { margin-top: 24px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Service page ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.ticks { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ticks li {
  position: relative;
  padding: 15px 0 15px 32px;
  border-bottom: 1px solid var(--line);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 16px;
  height: 7px;
  background: var(--mark);
  border-radius: 1px;
}
.fit-panel {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--band);
  border-radius: 8px;
}
.fit-panel h2 { font-size: var(--step-2); font-stretch: 108%; margin-bottom: 16px; }
.fit-panel ul { display: grid; gap: 12px; padding-left: 1.15em; }
.fit-panel li::marker { color: var(--ink-3); }
@media (max-width: 859px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .fit-panel { position: static; }
}
.proof-card {
  display: grid;
  gap: 10px;
  max-width: 780px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.proof-sector,
.proof-cta { font-size: var(--step--1); font-weight: 650; color: var(--ink-2); }
.proof-title { font-size: var(--step-2); font-weight: 760; font-stretch: 110%; line-height: 1.25; }
.proof-card:hover .proof-title,
.proof-card:focus-visible .proof-title {
  text-decoration-line: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 0.22em;
}

/* ---------- Case studies ---------- */
.case { padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.case:last-child { border-bottom: 0; }
.case-head { max-width: 900px; }
.case-sector { margin-bottom: 12px; font-size: var(--step--1); font-weight: 650; color: var(--ink-2); }
.case-client { margin-top: 12px; color: var(--ink-2); }
.case-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 48px);
  margin-top: 36px;
}
.case-part h3 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line-strong);
  font-size: 1rem;
  font-stretch: 100%;
  font-weight: 700;
}
.case-part ul { display: grid; gap: 8px; padding-left: 1.1em; }
.case-part li::marker { color: var(--ink-3); }
.case-result p { font-weight: 600; }
.case-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tech {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
@media (max-width: 859px) {
  .case-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- Clients register ---------- */
.register { padding-block: clamp(32px, 5vw, 72px) var(--section); }
.register-group {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 16px clamp(24px, 4vw, 56px);
  padding-block: 28px;
  border-top: 2px solid var(--line-strong);
}
.register-sector {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  font-size: var(--step-0);
  font-stretch: 104%;
  font-weight: 700;
  letter-spacing: 0;
}
.register-list { padding: 0; list-style: none; }
.register-item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 8px 32px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.register-item:first-child { padding-top: 0; }
.register-item:last-child { border-bottom: 0; padding-bottom: 0; }
.client-names { display: grid; gap: 4px; font-size: var(--step-1); font-stretch: 110%; font-weight: 760; line-height: 1.25; }
.register-item p { color: var(--ink-2); }
.register-also { max-width: 44em; color: var(--ink-2); }
@media (max-width: 859px) {
  .register-group { grid-template-columns: minmax(0, 1fr); }
  .register-sector { position: static; }
  .register-item { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Projects ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.project-info h2 { margin-top: 18px; }
.project-type { margin-top: 10px; color: var(--ink-2); }
.project-info h3 { margin: 28px 0 8px; font-size: 1rem; font-stretch: 100%; font-weight: 700; }
.project-info > p { max-width: 36em; }
.project-cta {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 32px;
}
@media (max-width: 959px) {
  .project { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- About ---------- */
.story { display: grid; gap: 20px; }
.story p { max-width: 760px; font-size: var(--step-1); line-height: 1.6; }
.story .story-lead { font-size: var(--step-2); line-height: 1.45; font-weight: 600; }
.founder {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.founder-id { display: grid; gap: 10px; justify-items: start; }
.founder-id .avatar { margin-bottom: 14px; }
.founder-role { color: var(--ink-2); font-weight: 600; }
.founder-body { display: grid; gap: 20px; max-width: 44em; }
.founder-body > p { font-size: var(--step-1); line-height: 1.6; }
.founder-body h3 { margin-top: 12px; font-size: 1rem; font-stretch: 100%; }
.certs { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.certs li { padding: 11px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 759px) {
  .founder { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9688rem; font-weight: 650; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 0.9063rem; font-weight: 600; color: var(--error); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--band);
  font-weight: 600;
}
.form-status.is-success { border-color: var(--success); }
.form-status.is-error { border-color: var(--error); }
.contact-aside { display: grid; gap: 36px; }
.aside-block { display: grid; gap: 12px; justify-items: start; }
.aside-block h2 { font-size: var(--step-1); font-stretch: 104%; }
.aside-quiet { color: var(--ink-2); }
.aside-block a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration-color: var(--mark); text-decoration-thickness: 0.24em; }
.steps { display: grid; gap: 14px; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: baseline; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  transform: translateY(-1px);
}
@media (max-width: 859px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Prose (privacy) ---------- */
.prose { display: grid; gap: 14px; }
.prose > * { max-width: 720px; }
.prose h2 { margin-top: 20px; font-size: var(--step-2); font-stretch: 106%; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 40em; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Tutorials ---------- */
.tutorial-list { padding: 0; list-style: none; border-top: 2px solid var(--line-strong); }
.tutorial-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 8px 40px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.tutorial-meta { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.tutorial-item h2 { font-size: var(--step-2); font-stretch: 108%; }
.tutorial-item h2 a { color: var(--ink); text-decoration: none; }
.tutorial-item h2 a::after { content: ""; position: absolute; inset: 0; }
.tutorial-item:hover h2 a,
.tutorial-item h2 a:focus-visible {
  text-decoration-line: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
}
.tutorial-item p:last-child { margin-top: 8px; color: var(--ink-2); max-width: 44em; }
.article { max-width: 780px; display: grid; gap: 18px; min-width: 0; overflow-wrap: anywhere; }
.article > * { min-width: 0; }
.article h2 { margin-top: 24px; font-size: var(--step-2); font-stretch: 108%; }
.article h3 { margin-top: 12px; }
.article ul, .article ol { display: grid; gap: 8px; padding-left: 1.3em; }
.article a { color: var(--ink); font-weight: 600; text-decoration-color: var(--mark); text-decoration-thickness: 0.14em; }
.article code { padding: 0.1em 0.3em; background: var(--band); border-radius: 3px; font-size: 0.875em; }
.article pre {
  margin: 0;
  overflow-x: auto;
  padding: 16px 18px;
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 6px;
  line-height: 1.5;
}
.article pre code { padding: 0; background: none; white-space: pre; }
.article-back { margin-top: 36px; }
@media (max-width: 759px) {
  .tutorial-item { grid-template-columns: minmax(0, 1fr); }
}
