@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-700.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #132136;
  --ink-2: #23334a;
  --paper: #f3f0e8;
  --paper-2: #eae6dc;
  --surface: #fffefa;
  --blue: #245bc2;
  --blue-hover: #194ea9;
  --blue-dark: #163a7c;
  --blue-soft: #e5ecfa;
  --on-blue: #ffffff;
  --muted: #5b6678;
  --line: #d8d3c8;
  --line-strong: #aaa89f;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c4d5;
  --ink-surface: #132136;
  --blue-surface: #163a7c;
  --radius: 3px;
  --shadow: 0 20px 60px rgba(20, 32, 49, 0.14), 0 3px 10px rgba(20, 32, 49, 0.08);
  --shell: 1240px;
  --gutter: 2rem;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9e4d6;
  --ink-2: #c8cdd8;
  --paper: #0e1826;
  --paper-2: #0b1420;
  --surface: #16283f;
  --blue: #7fa6ea;
  --blue-hover: #9bb9ef;
  --blue-dark: #b7cbf2;
  --blue-soft: #1c3050;
  --on-blue: #0b1420;
  --muted: #97a1b1;
  --line: #263850;
  --line-strong: #3d5170;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c4d5;
  --ink-surface: #091321;
  --blue-surface: #102743;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  text-wrap: balance;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  color: #fff;
  background: var(--blue);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  transform: translateY(-160%);
}

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

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.section-shell {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 7.5rem var(--gutter);
}

.band {
  width: 100%;
}

.band--ink {
  color: var(--on-dark);
  background: var(--ink-surface);
}

.band--paper-2 {
  background: var(--paper-2);
}

.band--blue {
  color: var(--on-dark);
  background: var(--blue-surface);
}

.kicker {
  color: var(--blue);
  font: 500 0.68rem/1.3 "IBM Plex Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker--inverse,
.band--ink .kicker,
.band--blue .kicker {
  color: #8db3ff;
}

.section-number {
  width: 42px;
  padding-top: 0.5rem;
  border-top: 2px solid var(--blue);
  color: var(--blue);
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
}

.button {
  min-height: 50px;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--blue);
}

.button--primary:hover {
  background: var(--blue-hover);
}

:root[data-theme="dark"] .button--primary {
  color: #0c1725;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

/* Header */
.site-head {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.92);
  box-shadow: 0 1px 0 rgba(19, 33, 54, 0.03);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .site-head {
  background: rgba(14, 24, 38, 0.92);
}

.site-head__inner {
  width: min(100%, var(--shell));
  min-height: 82px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 25px;
  height: 35px;
  margin-right: 0.65rem;
  color: var(--blue);
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__mark circle {
  fill: currentColor;
}

.brand__name {
  display: inline-flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.brand__division {
  min-height: 1.75rem;
  margin-left: 0.65rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.site-nav > a {
  text-decoration: none;
}

.site-nav > a:hover {
  color: var(--blue);
}

.site-nav__parent {
  color: var(--blue);
  font: 500 0.65rem "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__contact {
  padding-left: 1.7rem;
  border-left: 1px solid var(--line);
  font-weight: 600;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.theme-toggle button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle button[aria-pressed="true"] {
  color: var(--on-blue);
  background: var(--blue);
}

.theme-toggle button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.nav-trigger {
  display: none;
}

/* Hero */
.hero {
  width: min(100%, var(--shell));
  min-height: 820px;
  margin: 0 auto;
  padding: 11rem var(--gutter) 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.hero__copy h1 {
  max-width: 11ch;
  margin-top: 1.2rem;
  font-size: clamp(3.7rem, 6.5vw, 6.6rem);
  line-height: 0.94;
}

.hero__copy h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero__lead {
  max-width: 650px;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  line-height: 1.58;
}

.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.proof-line {
  margin-top: 2.7rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  color: var(--muted);
  font-size: 0.73rem;
  list-style: none;
}

.proof-line li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.proof-line li::before {
  width: 4px;
  height: 4px;
  background: var(--blue);
  content: "";
}

.hero__instrument {
  align-self: center;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.instrument__head,
.instrument__foot {
  min-height: 48px;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 500 0.58rem "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

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

.instrument__body {
  position: relative;
  min-height: 500px;
  padding: 3.2rem 2rem 2rem 4.2rem;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
}

.instrument__body::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--surface) 12%, transparent 50%, var(--surface) 94%);
  content: "";
  opacity: 0.72;
}

.instrument__axis {
  position: absolute;
  z-index: 1;
  top: 2.8rem;
  bottom: 2.8rem;
  left: 2rem;
  width: 1px;
  background: var(--blue);
}

.instrument__axis::before,
.instrument__axis::after,
.instrument__axis b {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: var(--surface);
  content: "";
  transform: translateX(-50%);
}

.instrument__axis::before {
  top: 0;
}

.instrument__axis::after {
  bottom: 0;
  background: var(--blue);
}

.instrument__axis b {
  top: 40%;
}

.instrument__statement,
.instrument__body ol {
  position: relative;
  z-index: 2;
}

.instrument__statement {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.92rem;
}

.instrument__statement strong {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--ink);
  font-size: 1.18rem;
}

.instrument__body ol {
  margin-top: 5rem;
  padding: 0;
  list-style: none;
}

.instrument__body li {
  padding: 1rem 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 38px 0.7fr 1fr;
  gap: 0.65rem;
  align-items: baseline;
}

.instrument__body li span,
.instrument__body li small {
  color: var(--muted);
  font-size: 0.66rem;
}

.instrument__body li span {
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
}

.instrument__body li strong {
  font-size: 0.86rem;
}

/* Positioning */
.positioning__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(4rem, 9vw, 9rem);
  align-items: start;
}

.positioning h2 {
  margin-top: 1rem;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.96;
}

.positioning__copy {
  padding-top: 0.2rem;
}

.positioning__copy p {
  max-width: 650px;
  color: var(--on-dark-muted);
}

.positioning__copy .positioning__lead {
  margin-bottom: 2rem;
  color: var(--on-dark);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.42;
  letter-spacing: -0.025em;
}

/* Section heading */
.section-heading {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.45fr) minmax(260px, 0.65fr);
  gap: 2rem;
  align-items: start;
}

.section-heading h2 {
  max-width: 850px;
  margin-top: 0.9rem;
  font-size: clamp(2.6rem, 4.7vw, 4.6rem);
  line-height: 1;
}

.section-heading > p {
  padding-top: 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Services */
.service-list {
  margin-top: 5rem;
  border-top: 1px solid var(--line-strong);
}

.service-list article {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 70px minmax(190px, 0.75fr) minmax(0, 1.35fr) minmax(180px, 0.55fr);
  gap: 2rem;
  align-items: start;
}

.service-list__number {
  color: var(--blue);
  font: 500 0.68rem "IBM Plex Mono", monospace;
}

.service-list h3 {
  font-size: 1.25rem;
}

.service-list p {
  color: var(--muted);
  font-size: 0.88rem;
}

.service-list small {
  color: var(--muted);
  font: 500 0.61rem/1.6 "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Cases */
.section-heading--work {
  margin-bottom: 5rem;
}

.case {
  min-width: 0;
}

.case--feature {
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.case__visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  display: block;
  background: var(--ink-surface);
}

.case__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 8.33;
  object-fit: cover;
  object-position: top center;
  transition: transform 480ms ease, opacity 480ms ease;
}

a.case__visual:hover img {
  opacity: 0.9;
  transform: scale(1.015);
}

.case__status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.48rem 0.65rem;
  color: #fff;
  background: rgba(19, 33, 54, 0.88);
  font: 500 0.58rem "IBM Plex Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case__index {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font: 500 0.63rem "IBM Plex Mono", monospace;
}

.case__body h3 {
  margin-top: 0.7rem;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1;
}

.case__lead {
  margin-top: 1.5rem;
  color: var(--ink) !important;
  font-size: 1.08rem !important;
  line-height: 1.55;
}

.case__body > p:not(.kicker) {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.case__tags {
  margin: 1.8rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.case__tags li {
  padding: 0.55rem 0.8rem 0.55rem 0;
  color: var(--muted);
  font: 500 0.59rem "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case__tags li + li::before {
  margin-right: 0.8rem;
  color: var(--line-strong);
  content: "/";
}

.case__private {
  display: inline-block;
  margin-top: 1.6rem;
  color: var(--muted);
  font: 500 0.65rem "IBM Plex Mono", monospace;
}

.case-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
}

.case-grid .case__body {
  padding-top: 2rem;
}

.case-grid .case__body h3 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.case-grid .case__index {
  margin-bottom: 1.5rem;
}

.case-grid .text-link {
  margin-top: 1.5rem;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(4rem, 10vw, 9rem);
  align-items: start;
}

.process__intro {
  position: sticky;
  top: 3rem;
}

.process__intro .kicker {
  margin-top: 2.5rem;
}

.process__intro h2 {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 4.5vw, 4.3rem);
  line-height: 1;
}

.process__intro > p:last-child {
  margin-top: 1.6rem;
  color: var(--muted);
}

.process__steps {
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.process__steps li {
  min-height: 150px;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.5rem;
}

.process__steps li > span {
  color: var(--blue);
  font: 500 0.68rem "IBM Plex Mono", monospace;
}

.process__steps h3 {
  font-size: 1.35rem;
}

.process__steps p {
  max-width: 570px;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Care */
.care__grid {
  display: grid;
  grid-template-columns: 72px minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.care__mark svg {
  width: 45px;
  height: 60px;
  color: #8db3ff;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.care__mark circle {
  fill: currentColor;
}

.care h2 {
  margin-top: 1rem;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 0.98;
}

.care__copy > p {
  color: #d0d9e7;
  font-size: 1.05rem;
}

.care__copy ul {
  margin-top: 2rem;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  list-style: none;
}

.care__copy li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 1rem;
}

.care__copy li span {
  font-size: 0.82rem;
  font-weight: 600;
}

.care__copy li small {
  color: #bdc9db;
  font-size: 0.75rem;
}

/* Testimonials */
.testimonials[hidden] {
  display: none;
}

.testimonial-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.testimonial {
  padding: 2rem 2rem 0 0;
}

.testimonial + .testimonial {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.testimonial footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.testimonial footer strong,
.testimonial footer span {
  display: block;
}

.testimonial footer strong {
  font-size: 0.83rem;
}

.testimonial footer span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(4rem, 10vw, 9rem);
  align-items: start;
}

.contact__intro .kicker {
  margin-top: 2.5rem;
}

.contact__intro h2 {
  margin-top: 1rem;
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  line-height: 0.98;
}

.contact__intro > p {
  max-width: 520px;
  margin-top: 1.6rem;
  color: var(--muted);
}

.contact__direct {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-strong);
}

.contact__direct span,
.contact__direct a {
  display: block;
}

.contact__direct > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.contact__direct a {
  margin-top: 0.35rem;
  font-weight: 600;
}

.contact__form-wrap {
  padding: 2rem;
  border-top: 3px solid var(--ink);
  background: var(--surface);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label > span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 0 0.8rem;
}

.contact-form textarea {
  min-height: 150px;
  padding: 0.8rem;
  resize: vertical;
}

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

.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form .consent-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.contact-form .consent-check input {
  width: 16px;
  min-height: 16px;
  margin: 0.18rem 0 0;
  accent-color: var(--blue);
}

.contact-form .consent-check span {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.contact-form .button {
  width: 100%;
}

.contact-form > small {
  color: var(--muted);
  text-align: center;
  font-size: 0.63rem;
}

.form-success {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}

.form-success[hidden] {
  display: none;
}

.form-success > span {
  color: var(--blue);
  font-size: 2rem;
}

.form-success strong {
  font-size: 1.25rem;
}

.form-success p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Footer and consent */
.site-foot {
  border-top: 1px solid var(--line);
}

.site-foot__inner {
  width: min(100%, var(--shell));
  min-height: 130px;
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 2rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.brand--footer {
  transform: scale(0.86);
  transform-origin: left center;
}

.site-foot__links {
  display: flex;
  gap: 1.25rem;
}

.consent-banner {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  width: min(520px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.72rem;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner > div {
  display: flex;
  gap: 0.45rem;
}

.consent-banner button {
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.consent-banner button.is-primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

/* Tablet */
@media (max-width: 1050px) {
  .site-nav {
    gap: 1.1rem;
  }

  .site-nav > a:not(.site-nav__contact):not(.site-nav__parent) {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
  }

  .hero__copy h1 {
    font-size: clamp(3.5rem, 7vw, 5.4rem);
  }

  .instrument__body {
    padding-right: 1.3rem;
    padding-left: 3.7rem;
  }

  .instrument__body li {
    grid-template-columns: 34px 1fr;
  }

  .instrument__body li small {
    grid-column: 2;
  }

  .section-heading {
    grid-template-columns: 58px 1fr;
  }

  .section-heading > p {
    grid-column: 2;
    max-width: 680px;
    padding-top: 0;
  }

  .service-list article {
    grid-template-columns: 58px 0.75fr 1.25fr;
  }

  .service-list small {
    grid-column: 2 / 4;
  }

  .case--feature {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process,
  .contact {
    gap: 4rem;
  }

  .care__grid {
    grid-template-columns: 56px 0.85fr 1.15fr;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 780px) {
  :root {
    --gutter: 1.15rem;
  }

  html {
    scroll-padding-top: 74px;
  }

  .section-shell {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .site-head__inner {
    min-height: 72px;
  }

  .nav-trigger {
    min-height: 44px;
    padding: 0 0.2rem;
    border: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    background: transparent;
    font-size: 0.68rem;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav-trigger i,
  .nav-trigger i::after {
    width: 18px;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 160ms ease;
    content: "";
  }

  .nav-trigger i::after {
    transform: translateY(5px);
  }

  .nav-trigger[aria-expanded="true"] i {
    transform: rotate(45deg) translateY(2px);
  }

  .nav-trigger[aria-expanded="true"] i::after {
    transform: rotate(-90deg);
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: var(--gutter);
    left: var(--gutter);
    padding: 1.4rem;
    border: 1px solid var(--line);
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .site-nav > a,
  .site-nav > a:not(.site-nav__contact),
  .site-nav > a:not(.site-nav__contact):not(.site-nav__parent) {
    min-height: 46px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
  }

  .site-nav__contact {
    padding-left: 0;
    border-left: 0;
  }

  .theme-toggle {
    width: max-content;
    margin-top: 1.2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 8.5rem;
    padding-bottom: 4.5rem;
    display: block;
  }

  .hero__copy h1 {
    max-width: 10ch;
    font-size: clamp(3.05rem, 15vw, 4.75rem);
  }

  .hero__lead {
    font-size: 1.05rem;
  }

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

  .hero__actions .text-link {
    min-height: 44px;
    align-items: center;
  }

  .proof-line {
    flex-direction: column;
  }

  .hero__instrument {
    margin-top: 4rem;
  }

  .instrument__body {
    min-height: 430px;
  }

  .positioning__grid,
  .case--feature,
  .case-grid,
  .process,
  .contact {
    display: block;
  }

  .positioning__copy,
  .case--feature .case__body,
  .process__steps,
  .contact__form-wrap {
    margin-top: 3rem;
  }

  .positioning h2 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .positioning__copy .positioning__lead {
    font-size: 1.2rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading > div:nth-child(2) {
    margin-top: 2rem;
  }

  .section-heading h2 {
    font-size: clamp(2.45rem, 11vw, 3.7rem);
  }

  .section-heading > p {
    margin-top: 1.5rem;
  }

  .service-list {
    margin-top: 3.5rem;
  }

  .service-list article {
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.7rem 1rem;
  }

  .service-list p,
  .service-list small {
    grid-column: 2;
  }

  .section-heading--work {
    margin-bottom: 3.5rem;
  }

  .case--feature {
    padding-bottom: 4rem;
  }

  .case__body {
    padding-top: 2rem;
  }

  .case__index {
    margin-bottom: 1.4rem;
  }

  .case-grid {
    margin-top: 4rem;
  }

  .case-grid .case + .case {
    margin-top: 4.5rem;
    padding-top: 4.5rem;
    border-top: 1px solid var(--line-strong);
  }

  .process__intro {
    position: static;
  }

  .process__steps li {
    min-height: 0;
  }

  .care__grid {
    display: block;
  }

  .care__grid > div:nth-child(2),
  .care__copy {
    margin-top: 2.5rem;
  }

  .care__copy li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .testimonial-grid {
    display: block;
  }

  .testimonial,
  .testimonial + .testimonial {
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .contact__intro h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .contact__form-wrap {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-foot__inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .site-foot__links {
    flex-wrap: wrap;
  }

  .consent-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
    grid-template-columns: 1fr;
  }

  .consent-banner > div {
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .brand__mark {
    width: 22px;
    height: 31px;
    margin-right: 0.5rem;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .brand__division {
    min-height: 1.5rem;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    font-size: 0.58rem;
  }
}

@media (max-width: 420px) {

  .hero__copy h1 {
    font-size: 2.95rem;
  }

  .instrument__body {
    padding-left: 3.4rem;
  }

  .case__tags li {
    padding-right: 0.55rem;
  }

  .case__tags li + li::before {
    margin-right: 0.55rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}
