@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Cognitive Asset Profiling Ltd
   Palette: paper, ink, petrol (brand), sea glass (accent on dark), rule. */
:root {
  --paper: #f3f5f2;
  --paper-2: #e9eeeb;
  --ink: #16202a;
  --ink-soft: #55636b;
  --petrol: #0d4a57;
  --petrol-deep: #083842;
  --glass: #8fc3b9;
  --rule: #d3dad6;

  --font: "Schibsted Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale (1.25 minor third-ish, stretched at display sizes) */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --t-xl: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --t-display: clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem);

  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(243 245 242 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  color: var(--paper);
  background: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover {
  color: var(--paper);
  background: var(--petrol);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.button-primary {
  background: var(--petrol);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--petrol-deep);
}

.button-quiet {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}

.button-quiet:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 13ch;
}

.lead {
  margin-top: 28px;
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-figure {
  margin: 0;
  position: relative;
  min-width: 0;
}

.profile-map {
  width: 118%;
  max-width: none;
  height: auto;
  margin-left: -4%;
  overflow: visible;
}

.profile-map .c {
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.25;
}

/* Contours fade outward: the core is dense, the edges are faint. */
.profile-map .c0 { stroke-width: 2; opacity: 1; }
.profile-map .c1 { opacity: 0.9; }
.profile-map .c2 { opacity: 0.8; }
.profile-map .c3 { opacity: 0.72; stroke: var(--ink); }
.profile-map .c4 { opacity: 0.6; }
.profile-map .c5 { opacity: 0.52; stroke: var(--ink); }
.profile-map .c6 { opacity: 0.42; }
.profile-map .c7 { opacity: 0.34; stroke: var(--ink); }
.profile-map .c8 { opacity: 0.26; }
.profile-map .c9 { opacity: 0.18; }

.profile-map .node circle {
  fill: var(--petrol);
}

.profile-map .node .halo {
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.5;
  opacity: 0.35;
}

.profile-map .node text {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  fill: var(--ink);
  letter-spacing: -0.01em;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.hero-figure figcaption {
  margin-top: 8px;
  max-width: 30em;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 2px solid var(--glass);
}

/* The one orchestrated moment: the profile draws itself on load. */
@media (prefers-reduced-motion: no-preference) {
  .profile-map .c {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.6s cubic-bezier(0.6, 0, 0.2, 1) forwards;
  }

  .profile-map .c0 { animation-delay: 0s; }
  .profile-map .c1 { animation-delay: 0.08s; }
  .profile-map .c2 { animation-delay: 0.16s; }
  .profile-map .c3 { animation-delay: 0.24s; }
  .profile-map .c4 { animation-delay: 0.32s; }
  .profile-map .c5 { animation-delay: 0.4s; }
  .profile-map .c6 { animation-delay: 0.48s; }
  .profile-map .c7 { animation-delay: 0.56s; }
  .profile-map .c8 { animation-delay: 0.64s; }
  .profile-map .c9 { animation-delay: 0.72s; }

  .profile-map .node {
    opacity: 0;
    animation: appear 0.5s ease-out forwards;
    animation-delay: calc(1.4s + var(--d) * 0.18s);
  }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes appear {
  to { opacity: 1; }
}

/* ---------- Capabilities strip ---------- */

.capabilities {
  border-block: 1px solid var(--rule);
  background: var(--paper-2);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capabilities-grid > div {
  padding-block: 28px;
  padding-right: 24px;
}

.capabilities-grid > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.capabilities h2 {
  font-size: var(--t-base);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.capabilities p {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-heading h2 {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
}

.section-heading p {
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: 32em;
}

/* ---------- Services: an index, not a card grid ---------- */

.service-list {
  border-top: 2px solid var(--ink);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 48px;
  padding-block: 36px;
  border-bottom: 1px solid var(--rule);
}

.service h3 {
  font-size: var(--t-lg);
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 14ch;
}

.service-body p {
  max-width: 36em;
  color: var(--ink);
}

.service-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.service-body li {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--petrol);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(13 74 87 / 0.07);
}

/* ---------- Approach (dark band) ---------- */

.section-dark {
  background: var(--petrol-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

/* Echo of the mark: faint nested arcs bleeding off the right edge. */
.section-dark::after {
  content: "";
  position: absolute;
  right: -400px;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%238FC3B9' stroke-linecap='round' stroke-width='.6'%3E%3Cpath d='M40.4 12.5A20 20 0 1 0 40.4 35.5' stroke-opacity='.12'/%3E%3Cpath d='M35.5 16A14 14 0 1 0 35.5 32' stroke-opacity='.16'/%3E%3Cpath d='M30.6 19.4A8 8 0 1 0 30.6 28.6' stroke-opacity='.2'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.split-intro h2 {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  max-width: 15ch;
}

.split-intro p {
  margin-top: 28px;
  font-size: var(--t-md);
  line-height: 1.6;
  color: rgb(243 245 242 / 0.78);
  max-width: 32em;
}

.principles {
  margin: 0;
  display: grid;
}

.principles > div {
  padding-block: 24px;
  border-top: 1px solid rgb(143 195 185 / 0.3);
}

.principles > div:last-child {
  border-bottom: 1px solid rgb(143 195 185 / 0.3);
}

.principles dt {
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--glass);
  letter-spacing: -0.01em;
}

.principles dd {
  margin: 6px 0 0;
  color: rgb(243 245 242 / 0.82);
}

/* ---------- Process: a real sequence ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  position: relative;
}

/* Connecting rule runs through the step numbers. */
.steps::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 0;
  top: 22px;
  height: 1px;
  background: var(--rule);
}

.steps li {
  position: relative;
}

.step-no {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--petrol);
  color: var(--petrol);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  position: relative;
}

.steps li:last-child .step-no {
  background: var(--petrol);
  color: var(--paper);
}

.steps h3 {
  margin-top: 24px;
  font-size: var(--t-lg);
  letter-spacing: -0.025em;
}

.steps p {
  margin-top: 10px;
  color: var(--ink-soft);
  max-width: 26em;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 7vw, 112px);
  align-items: start;
}

.contact h2 {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.contact-lead {
  margin-top: 24px;
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: 30em;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.75rem, 1rem + 3vw, 3rem);
  line-height: 1.1;
  color: var(--petrol);
  padding-bottom: 0.08em;
  border-bottom: 2px solid var(--glass);
  transition: border-color 0.15s ease;
}

.contact-email:hover {
  border-bottom-color: var(--petrol);
}

.contact-tel {
  display: block;
  margin-top: 14px;
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.contact-tel:hover {
  color: var(--petrol);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-details address {
  margin-top: 20px;
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Enquiry form ---------- */

.enquiry-wrap {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 40px);
}

.enquiry {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: var(--t-sm);
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.5;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2316202A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover {
  border-color: #b7c2bd;
}

.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--petrol);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(13 74 87 / 0.14);
}

.was-validated :is(input, select, textarea):invalid {
  border-color: #b3261e;
}

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}

.field-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--petrol);
}

.field-check label {
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.5;
}

.field-check a {
  color: var(--petrol);
  text-underline-offset: 0.15em;
}

.was-validated .field-check input:invalid {
  outline: 2px solid #b3261e;
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.form-actions .button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.form-actions .button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  font-size: var(--t-sm);
  color: #b3261e;
}

.form-status:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  padding-block: 24px;
}

.form-success h3 {
  font-size: var(--t-lg);
  color: var(--petrol);
}

.form-success p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.form-success:focus {
  outline: none;
}

/* ---------- Email shown as an image ----------
   Outlined glyphs (assets/email-*.svg) used as a mask so the image takes the link colour.
   Metrics come from the font so it sits on the baseline like text. */

.email-link {
  cursor: pointer;
  text-decoration: none;
}

.email-link:not(.contact-email) {
  border-bottom: 1px solid currentColor;
}

.email-img {
  display: inline-block;
  height: 1.2344em;
  aspect-ratio: 14217 / 2528;
  vertical-align: -0.2578em;
  background-color: currentColor;
  -webkit-mask: url("assets/email-400.svg") center / contain no-repeat;
  mask: url("assets/email-400.svg") center / contain no-repeat;
}

.email-img--bold {
  aspect-ratio: 15247 / 2528;
  -webkit-mask-image: url("assets/email-700.svg");
  mask-image: url("assets/email-700.svg");
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgb(243 245 242 / 0.7);
  font-size: var(--t-sm);
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
}

.footer-reg {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: rgb(243 245 242 / 0.6);
}

.footer-brand img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ---------- Service prompts ---------- */

.service-prompt {
  margin-bottom: 8px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--petrol);
}

/* ---------- Who we work with ---------- */

.section-tint {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}

.fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  border-top: 2px solid var(--ink);
}

.fit-list li {
  position: relative;
  padding: 24px 0 24px 44px;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-md);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Bullet is the brand mark in miniature. */
.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 26px;
  height: 26px;
  background: url("assets/mark.svg") center / contain no-repeat;
}

/* ---------- Proof slots (hidden until real content exists) ---------- */

.split-plain {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.founder-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Footer nav ---------- */

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  color: rgb(243 245 242 / 0.8);
  text-underline-offset: 0.2em;
}

.footer-nav a:hover {
  color: var(--paper);
}

.site-footer :focus-visible {
  outline-color: var(--glass);
}

/* ---------- Prose pages (privacy) ---------- */

.prose {
  max-width: calc(44rem + 2 * var(--gutter));
}

.prose-head {
  padding-bottom: 32px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.prose h1 {
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.prose-meta {
  margin-top: 12px;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

.prose-lead {
  margin-top: 20px;
  font-size: var(--t-md);
  color: var(--ink-soft);
}

.prose h2 {
  margin-top: 48px;
  font-size: var(--t-md);
  letter-spacing: -0.015em;
}

.prose p,
.prose ul {
  margin-top: 14px;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--petrol);
}

.prose a {
  color: var(--petrol);
  text-underline-offset: 0.15em;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - 76px - 90px);
  display: grid;
  align-items: center;
}

.notfound-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: center;
}

.notfound h1 {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 11ch;
}

.notfound-map {
  width: 100%;
  margin: 0;
}

@media (max-width: 820px) {
  .notfound-grid {
    grid-template-columns: 1fr;
  }

  .notfound-map {
    max-width: 280px;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    max-width: 520px;
  }

  .profile-map {
    width: 100%;
    margin-left: 0;
  }

  .section-heading,
  .service,
  .fit-list,
  .split-plain {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .steps::before,
  .section-dark::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    font-size: 1.0625rem;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }

  .site-nav .nav-cta {
    margin-top: 16px;
    border-bottom: 0;
    text-align: center;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .capabilities-grid > div {
    padding-block: 20px;
  }
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 0.9375rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .section-dark::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
