/* Grango */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0c0e0d;
  --ink-2: #151917;
  --ink-line: rgb(236 235 230 / 0.12);
  --on-ink: #ecebe6;
  --on-ink-muted: #a7aca8;

  --paper: #f5f3ee;
  --sand: #ebe7df;
  --sheet: #fffdf9;
  --text: #1a1d1b;
  --muted: #565b58;
  --rule: #d8d3c9;

  --green: #1d6a4e;
  --green-deep: #154f3a;
  --green-bright: #78d6a8;
  --green-wash: #e3efe7;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 75rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 10vw, 8.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green-bright); color: var(--ink); }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header :focus-visible,
.hero :focus-visible,
.section--ink :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible { outline-color: var(--green-bright); }

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--green-bright);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.display-1,
.display-2,
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}
.display-1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; }
.display-2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.08; }
.display-1 em,
.display-2 em,
.hero__title em { color: var(--green); }
.hero__title em,
.section--ink em,
.closing em { color: var(--green-bright); }

.lead {
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn--primary { background: var(--green-bright); color: var(--ink); }
.btn--primary:hover { background: #9ae4bf; }
.btn--primary:active { background: #63c494; }
.section--paper .btn--primary,
.section--sand .btn--primary { background: var(--green); color: #fff; }
.btn--ghost { border-color: rgb(236 235 230 / 0.35); color: var(--on-ink); }
.btn--ghost:hover { border-color: var(--on-ink); background: rgb(236 235 230 / 0.06); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.05rem; font-size: 0.9rem; }
.btn--lg { min-height: 3.4rem; padding: 0.9rem 1.75rem; font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--ink-line); }
.site-header__row {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}
.wordmark__mark {
  width: 1.35rem; height: 1.35rem;
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.site-nav { margin-left: auto; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  margin-left: auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(236 235 230 / 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--on-ink);
  font: 500 0.9rem/1 var(--sans);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out);
}
.nav-toggle__bars { position: relative; transform: translateY(-3px); }
.nav-toggle__bars::before { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.925rem;
  color: var(--on-ink-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s var(--ease-out);
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--on-ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  min-height: min(calc(100vh - var(--header-h)), 52rem);
  display: flex;
  align-items: center;
}
.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 22%, #000 62%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.hero__title {
  max-width: 15.5ch;
  font-size: clamp(2.75rem, 6.6vw, 5.6rem);
  line-height: 1.02;
}
.hero__lede {
  max-width: 34rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--on-ink-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero__note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--on-ink-muted);
}

/* ---------- Sections ---------- */

.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--ruled .wrap { position: relative; }
.section--paper + .section--ruled { padding-top: 0; }
.section--paper + .section--ruled > .wrap { padding-top: var(--section-y); }
.section--paper + .section--ruled > .wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--rule);
}
.section--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.section-head p {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.split > .display-2 { max-width: 20ch; }

.principles {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.principles li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.principles h3 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
}
.principles p { margin-top: 0.35rem; color: var(--muted); }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--text);
}
.step__no {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
.step h3 {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.step p { margin-top: 0.75rem; color: var(--muted); font-size: 1rem; }

/* Capabilities: a ruled two-by-two */
.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.cap {
  padding: clamp(2rem, 4vw, 3rem) clamp(0rem, 3vw, 3rem) clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--rule);
}
.cap:nth-child(even) {
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: 0;
  border-left: 1px solid var(--rule);
}
.cap h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.cap p { margin-top: 0.75rem; max-width: 30rem; color: var(--muted); }
.cap .cap__eg {
  margin-top: 1.25rem;
  font-size: 0.925rem;
  color: var(--green-deep);
}

/* Reference artefacts */
.artefacts {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.artefacts__tabs {
  display: grid;
  gap: 0.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.artefacts__tabs [role="tab"] {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.artefacts__tabs [role="tab"]:hover { background: var(--sand); color: var(--text); }
.artefacts__tabs [aria-selected="true"],
.artefacts__tabs [aria-selected="true"]:hover {
  background: var(--sheet);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(20 22 18 / 0.06), 0 8px 24px -12px rgb(20 22 18 / 0.18);
}
.artefacts__tab-title { font-weight: 600; font-size: 1.0625rem; }
.artefacts__tab-sub { font-size: 0.9rem; }
.artefacts__tabs [aria-selected="true"] .artefacts__tab-sub { color: var(--green); }

.doc {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border-radius: 14px;
  background: var(--sheet);
  box-shadow: 0 2px 4px rgb(20 22 18 / 0.04), 0 28px 60px -28px rgb(20 22 18 / 0.28);
}
.js .doc { animation: doc-in 0.45s var(--ease-out); }
@keyframes doc-in {
  from { transform: translateY(8px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .doc { animation: none; }
}
.doc__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
}
.doc__kind { font-weight: 600; color: var(--muted); }
.doc__tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green-deep);
  font-weight: 600;
}
.doc__title {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.doc__meta { margin-top: 0.5rem; font-size: 0.925rem; color: var(--muted); }

.doc__scroll { margin-top: 2rem; overflow-x: auto; }
.doc__table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.doc__table th,
.doc__table td {
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.doc__table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom-color: var(--text);
}
.doc__table tbody th { font-weight: 500; }
.doc__table--matrix td:not(:first-child) { white-space: nowrap; }
.doc__table td { color: var(--muted); }
.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--text);
  font-size: 0.825rem;
  font-weight: 600;
}
.pill--high { background: var(--green); color: #fff; }
.pill--low { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--muted); }
.doc__note {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: var(--green-wash);
  color: var(--green-deep);
  font-size: 0.975rem;
}

.doc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 2rem 0 0;
}
.doc__grid div { padding: 1rem 0; border-top: 1px solid var(--rule); }
.doc__grid dt { font-size: 0.85rem; font-weight: 600; color: var(--green); }
.doc__grid dd { margin: 0.3rem 0 0; font-size: 0.975rem; }

.doc__flow {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.doc__flow li {
  position: relative;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 10px;
  counter-increment: flow;
}
.doc__flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0.75rem; top: 1rem;
  width: 1.5rem; height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.doc__flow li + li { margin-top: 0.25rem; }
.doc__actor { font-weight: 600; font-size: 0.95rem; }
.doc__flow li span:last-child { color: var(--muted); font-size: 0.975rem; }
.doc__flow .is-human { background: var(--green-wash); }
.doc__flow .is-human::before { background: var(--green); color: #fff; box-shadow: none; }
.doc__flow .is-human .doc__actor { color: var(--green-deep); }
.doc__flow .is-human span:last-child { color: var(--text); }

/* Control */
.section--ink .lead { color: var(--on-ink); }
.flow { margin: 2.75rem 0 0; }
.flow__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow__track::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: 0;
  border-top: 1px solid rgb(236 235 230 / 0.28);
}
.flow__node {
  position: relative;
  display: grid;
  gap: 0.3rem;
  align-content: start;
  padding-top: 2.1rem;
}
.flow__node::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgb(236 235 230 / 0.55);
}
.flow__who {
  font-size: 0.85rem;
  color: var(--on-ink-muted);
}
.flow__what { font-size: 1rem; line-height: 1.4; color: var(--on-ink); }
.flow__node--human::before {
  top: -0.35rem; left: -0.35rem;
  width: 1.8rem; height: 1.8rem;
  background: var(--green-bright);
  box-shadow: 0 0 0 6px rgb(120 214 168 / 0.16);
}
.flow__node--human .flow__who { color: var(--green-bright); font-weight: 600; }
.flow__node--human .flow__what { font-weight: 600; }
.flow figcaption {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.925rem;
  color: var(--on-ink-muted);
}

/* Engagement terms */
.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--text);
}
.term { padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem) 0 0; }
.term + .term {
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  padding-right: 0;
  border-left: 1px solid var(--rule);
}
.term__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
  max-width: 16ch;
}
.term__title em { color: var(--green); }
.ticks {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2rem;
  border-top: 1px solid var(--rule);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 1.1rem; height: 1.1rem;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* FAQ */
.faq { border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.75rem;
  padding: 1.15rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.8rem; height: 0.8rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq details p { padding: 0 2.5rem 1.5rem 0; max-width: 40rem; color: var(--muted); }

/* Closing */
.closing {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
}
.closing__field {
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
  opacity: 0.8;
}
.closing__inner {
  position: relative;
  padding-block: clamp(6rem, 13vw, 10rem);
}
.closing h2 { max-width: 14ch; }
.closing p {
  max-width: 32rem;
  margin: 1.5rem 0 2.5rem;
  font-size: 1.15rem;
  color: var(--on-ink-muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  border-top: 1px solid var(--ink-line);
  font-size: 0.925rem;
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-block: 2.25rem;
}
.site-footer .wordmark { color: var(--on-ink); font-size: 1.3rem; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--on-ink); }
.site-footer__legal { margin-left: auto; }

/* Gentle entrance from an already-visible state */
.js .reveal { transition: transform 0.8s var(--ease-out); }
.js .reveal.is-pending { transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-pending { transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-header__row { gap: 0.75rem; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.9rem 0; font-size: 1.05rem; color: var(--on-ink); border-bottom: 1px solid var(--ink-line); border-radius: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .artefacts { grid-template-columns: minmax(0, 1fr); }
  .artefacts__tabs {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: minmax(12rem, 1fr);
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .display-2 { max-width: 18ch; }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .cap,
  .cap:nth-child(even) { padding: 2rem 0; border-left: 0; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .term + .term { padding-left: 0; border-left: 0; margin-top: 2.5rem; border-top: 1px solid var(--rule); }
  .doc__grid { grid-template-columns: minmax(0, 1fr); }
  .flow__track { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .flow__track::before { top: 0.55rem; bottom: 0.5rem; left: 0.55rem; right: auto; border-top: 0; border-left: 1px solid rgb(236 235 230 / 0.28); }
  .flow__node { padding: 0 0 0 2.25rem; }
  .hero__field {
    -webkit-mask-image: linear-gradient(180deg, transparent 62%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 62%, #000 100%);
    opacity: 0.6;
  }
}

@media (max-width: 560px) {
  :root { --header-h: 4rem; }
  body { font-size: 1rem; }
  .wordmark { font-size: 1.3rem; }
  .hide-sm { display: none; }
  .btn--sm { padding-inline: 0.85rem; font-size: 0.85rem; }
  .hero { min-height: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step h3 { margin-top: 1rem; }
  .doc__flow li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .faq details p { padding-right: 0; }
  .site-footer__legal { margin-left: 0; }
  .term { padding-right: 0; }
  .artefacts__tabs { grid-auto-flow: row; overflow: visible; }
  .doc__table { min-width: 0; }
  .doc__table thead { display: none; }
  .doc__table tbody, .doc__table tr, .doc__table tbody th { display: block; }
  .doc__table tr { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .doc__table tbody th, .doc__table td { padding: 0; border: 0; }
  .doc__table td { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; font-size: 0.9rem; }
  .doc__table td::before { content: attr(data-label); color: var(--muted); }
  .doc__table td { color: var(--text); }
}
