/* Arkevo FZE: main stylesheet. Mobile first. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #201e1d;
  --ground: #f3f2f2;
  --white: #ffffff;
  --red: #ec3013;

  --ink-80: rgba(32, 30, 29, 0.8);
  --ink-65: rgba(32, 30, 29, 0.68);
  --line: rgba(32, 30, 29, 0.14);
  --line-strong: rgba(32, 30, 29, 0.3);
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --on-ink-line: rgba(255, 255, 255, 0.18);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 76rem;
  --gutter: 1.25rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 4.25rem;
}

@media (min-width: 48em) {
  :root { --gutter: 2rem; }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3.8vw, 2.875rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--red); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

ul, ol { margin: 0; padding: 0; }

strong { font-weight: 700; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink); color: var(--white);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- small type ---------- */

.eyebrow {
  display: block;
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.625rem; height: 0.625rem;
  margin-right: 0.625rem;
  background: var(--red);
  vertical-align: 0.02em;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; text-decoration-color: var(--red); }

.lead {
  font-size: clamp(1.1875rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 40rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  font: inherit;
  /* 19px bold counts as large text, so white on Arkevo Red meets WCAG AA */
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn .icon { width: 1.25rem; height: 1.25rem; transition: transform 0.15s; }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--ink); }
.section--ink .btn--primary:hover,
.cta-band .btn--primary:hover { background: var(--white); color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--red); }

.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--ghost-light { border-color: var(--on-ink-line); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); }

.btn--small { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 1rem; font-weight: 600; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link .icon { width: 1.125rem; height: 1.125rem; color: var(--red); transition: transform 0.15s; }
.text-link:hover { text-decoration: underline; text-decoration-color: var(--red); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}
.site-header__logo { display: block; padding-block: 0.75rem; }
.site-header__logo img { width: 128px; height: auto; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.site-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; list-style: none; }

/* top-level links and the Services toggle */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.2rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav-link:hover::after,
.nav-link[aria-current]::after,
.nav-link[data-current]::after { transform: scaleX(1); }
.nav-link .icon { width: 1rem; height: 1rem; transition: transform 0.2s; }
.nav-sub__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Services dropdown */
.nav-sub { position: relative; }
.nav-sub__menu { display: none; list-style: none; }
.nav-sub__menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-sub__menu a .icon { width: 1.25rem; height: 1.25rem; color: var(--ink-65); transition: color 0.15s; }
.nav-sub__menu a:hover { background: var(--ground); }
.nav-sub__menu a:hover .icon { color: var(--red); }
.nav-sub__menu a[aria-current] { box-shadow: inset 3px 0 0 var(--red); }
.nav-sub__menu .nav-sub__all { font-weight: 700; }
.nav-sub__menu li:first-child { margin-bottom: 0.25rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--line); }
html:not(.js) .nav-sub:focus-within .nav-sub__menu { display: block; }

.menu-toggle { display: none; }

/* Collapsed menu on small screens (only when JS is running) */
@media (max-width: 56.24em) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    margin-right: -0.75rem;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .js .menu-toggle__close,
  .js .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
  .js .menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
  .js .menu-toggle .icon { display: block; }

  .js .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.5rem 0 1.5rem;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.375rem;
    font-weight: 700;
    text-align: left;
  }
  .js .nav-link::after { display: none; }
  .js .nav-link[aria-current],
  .js .nav-link[data-current] { box-shadow: inset 4px 0 0 var(--red); padding-left: 1rem; }
  .js .nav-link .icon { width: 1.375rem; height: 1.375rem; }
  .js .nav-sub__toggle[aria-expanded="true"] + .nav-sub__menu { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  .js .nav-sub__menu a { padding: 0.75rem 0.5rem; font-size: 1.0625rem; white-space: normal; }
  .js .site-nav .btn { width: 100%; min-height: 3.25rem; font-size: 1.125rem; }
}

@media (min-width: 56.25em) {
  .site-header__inner { flex-wrap: nowrap; }
  .site-header__logo img { width: 142px; }
  .site-nav { gap: 2.25rem; }
  .site-nav__list { gap: 2rem; }

  .nav-sub__menu {
    position: absolute;
    top: 100%;
    left: -0.875rem;
    z-index: 60;
    min-width: 17.5rem;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(32, 30, 29, 0.12);
  }
  .nav-sub:hover .nav-sub__menu,
  .nav-sub__toggle[aria-expanded="true"] + .nav-sub__menu { display: block; }
}

/* ---------- sections ---------- */

.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink .lead, .section--ink .muted { color: var(--on-ink-muted); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split {
  display: grid;
  gap: 1.5rem;
  max-width: none;
}
@media (min-width: 56.25em) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 4rem; }
  .section-head--split .lead { justify-self: end; }
}

.muted { color: var(--ink-65); }

/* ---------- home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 10vw, 8rem) clamp(4rem, 10vw, 8.5rem);
  border-bottom: 1px solid var(--line);
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { max-width: 13ch; margin-bottom: 1.5rem; }
.hero .lead { max-width: 34rem; }
.hero__mark {
  width: min(48vw, 14rem);
  margin: 3rem -2rem 0 auto;
}

@media (min-width: 56.25em) {
  .hero { padding-block: 8.5rem 9rem; }
  .hero__inner > * { max-width: min(44rem, 58%); }
  .hero__inner > h1 { max-width: 13ch; }
  .hero__mark {
    position: absolute;
    top: 50%;
    right: max(-7rem, calc((100vw - var(--container)) / 2 - 12rem));
    width: clamp(26rem, 40vw, 38rem);
    margin: 0;
    transform: translateY(-50%);
  }
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.5rem;
  list-style: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-80);
}
.hero-points li { display: flex; align-items: center; gap: 0.5rem; }
.hero-points li::before { content: ""; width: 0.375rem; height: 0.375rem; background: var(--ink); }

/* ---------- interior page hero ---------- */

.page-hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.page-hero--with-icon .page-hero__icon {
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  margin-bottom: 2rem;
  background: var(--ink);
  color: var(--white);
}
.page-hero--with-icon .page-hero__icon .icon { width: 2rem; height: 2rem; }

/* ---------- cards ---------- */

.card-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; }
@media (min-width: 40em) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--white);
  text-decoration: none;
  transition: background-color 0.2s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.service-card:hover::before, .service-card:focus-visible::before { transform: scaleX(1); }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 2.5rem;
  background: var(--ground);
  color: var(--ink);
}
.service-card h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--ink-65); font-size: 1rem; }
.service-card .text-link { margin-top: auto; padding-top: 1.5rem; }
.service-card:hover .text-link .icon { transform: translateX(3px); }

.section--white .service-card { background: var(--ground); }
.section--white .service-card__icon { background: var(--white); }

/* ---------- steps ---------- */

.steps { display: grid; gap: 2.5rem; list-style: none; counter-reset: step; }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; } }
@media (min-width: 64em) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 64em) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.steps li { counter-increment: step; padding-top: 1.5rem; border-top: 2px solid currentColor; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1875rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-65); font-size: 1rem; }
.section--ink .steps p { color: var(--on-ink-muted); }

/* ---------- feature list (why Arkevo, values) ---------- */

.features { display: grid; gap: 2.5rem; list-style: none; }
@media (min-width: 40em) { .features { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.features li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.features .icon { width: 1.75rem; height: 1.75rem; margin-top: 0.125rem; }
.features h3 { margin-bottom: 0.375rem; }
.features p { color: var(--ink-65); font-size: 1rem; }
.section--ink .features p { color: var(--on-ink-muted); }

/* ---------- split layout ---------- */

.split { display: grid; gap: 2.5rem; }
@media (min-width: 56.25em) {
  .split { grid-template-columns: 5fr 7fr; gap: 5rem; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split__sticky { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- lists ---------- */

.check-list { display: grid; gap: 0.875rem; list-style: none; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 0.75rem; height: 0.75rem;
  background: var(--red);
}
.check-list--cols { gap: 1rem 2.5rem; }
@media (min-width: 40em) { .check-list--cols { grid-template-columns: repeat(2, 1fr); } }

.offer-list { display: grid; list-style: none; border-top: 1px solid var(--line); }
.offer-list li { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 40em) {
  .offer-list li { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; }
}
.offer-list h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.offer-list p { color: var(--ink-65); }

.link-list { list-style: none; display: grid; gap: 0.5rem; }
.link-list a { font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; }
.tags li {
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---------- problem block ---------- */

.problem {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border-left: 4px solid var(--red);
}
.problem h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.problem p { color: var(--ink-80); font-size: 1.125rem; }

/* ---------- work ---------- */

.work-grid { display: grid; gap: 1.5rem; }
@media (min-width: 40em) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card[hidden] { display: none; }
.work-card__link { display: flex; flex-direction: column; height: 100%; background: var(--white); text-decoration: none; }
.work-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.work-card__link:hover img { transform: scale(1.03); }
.work-card__placeholder {
  display: block; width: 100%; height: 100%;
  background:
    linear-gradient(var(--red), var(--red)) 50% 50% / 18% 28% no-repeat,
    var(--ink);
}
.work-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.work-card__meta { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-65); }
.work-card__title { margin: 0; font-size: 1.375rem; }
.work-card__link:hover .work-card__title { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.work-card__body p { color: var(--ink-65); font-size: 1rem; margin: 0; }
.work-card .tags { margin-top: auto; padding-top: 0.5rem; }

.filters { display: none; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.js .filters { display: flex; }

.empty-state {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--line);
}
@media (min-width: 48em) { .empty-state { grid-template-columns: auto 1fr; align-items: center; gap: 2.5rem; } }
.empty-state__mark { width: 5rem; }
.empty-state h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* case study */
.case-meta { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 2rem 0 0; }
.case-meta dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-65); }
.case-meta dd { margin: 0; font-weight: 600; }
.case-figure { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.case-figure img { width: 100%; }
.case-grid { display: grid; gap: 3rem; }
@media (min-width: 56.25em) { .case-grid { grid-template-columns: 7fr 4fr; gap: 5rem; } }
.case-aside { align-self: start; padding: 2rem; background: var(--white); }
@media (min-width: 56.25em) { .case-aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.case-aside__heading { margin-top: 2rem; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }

.stats { display: grid; gap: 1.5rem; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 0.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.stat dd { margin: 0; font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat dt { color: var(--ink-65); font-size: 0.9375rem; }

/* ---------- prose (legal, about) ---------- */

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; font-size: 1.1875rem; }
.prose ul:not(.check-list), .prose ol { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.375rem; }
.prose li::marker { color: var(--red); }
.prose .check-list { margin-bottom: 1.25em; }
.prose a { font-weight: 500; }

.facts { display: grid; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.facts div { padding-block: 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 40em) { .facts div { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; } }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-80); }

.updated { font-size: 0.9375rem; color: var(--ink-65); }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 56.25em) { .contact-grid { grid-template-columns: 2fr 1fr 1fr; } }
.contact-block { padding: 2rem 1.75rem; background: var(--white); }
.contact-block > .icon { width: 1.75rem; height: 1.75rem; margin-bottom: 1.5rem; }
.contact-block h2 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.contact-block p { color: var(--ink-80); }
.contact-block__email { color: var(--ink); font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; word-break: break-word; }
.contact-block address { font-style: normal; color: var(--ink-80); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--ink);
  color: var(--white);
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band h2 { max-width: 16ch; font-size: clamp(2.125rem, 5vw, 3.75rem); }
.cta-band p { max-width: 34rem; color: var(--on-ink-muted); font-size: 1.125rem; }
.cta-band__mark {
  position: absolute;
  right: -5rem; bottom: -5rem;
  width: 16rem;
}
.cta-band .btn--primary { word-break: break-word; }
@media (max-width: 39.99em) {
  .cta-band__mark { width: 11rem; right: -3.5rem; bottom: -3.5rem; }
  .cta-band .btn { width: 100%; }
}
@media (min-width: 56.25em) {
  .cta-band__mark { width: 30rem; right: -6rem; bottom: -9rem; }
}

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--white); border-top: 1px solid var(--on-ink-line); font-size: 0.9375rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}
@media (min-width: 40em) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 0.8fr 1.4fr; gap: 3rem; } }
.site-footer__brand img { width: 142px; margin-bottom: 1.25rem; }
.site-footer__brand p { color: var(--on-ink-muted); }
.site-footer__heading {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}
.site-footer ul { list-style: none; display: grid; gap: 0.625rem; }
.site-footer__contact li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.site-footer__contact .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--on-ink-muted); }
.site-footer__contact span { color: var(--on-ink-muted); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--on-ink-line);
  color: var(--on-ink-muted);
  font-size: 0.875rem;
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- 404 ---------- */

.not-found { padding-block: clamp(5rem, 14vw, 10rem); }
.not-found__code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 1.5rem; }
.not-found__code span { color: var(--red); }

/* ---------- motion ---------- */

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

@media print {
  .site-header, .cta-band, .site-footer__grid, .menu-toggle { display: none; }
  body { background: #fff; }
}

/* related services line under service steps */
.related { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-65); }
.related a { color: var(--ink); font-weight: 600; }

/* references band (home) */
.references {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--white);
  border-left: 4px solid var(--red);
}
.references h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
.references p { max-width: 40rem; }
.references .btn-row { margin-top: 0; }
@media (min-width: 64em) { .references { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; } }

/* contact map */
.map {
  margin-top: 1.5rem;
  height: clamp(22rem, 45vw, 28rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 3rem 3rem,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 3rem 3rem,
    var(--white);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-link { margin-top: 1rem; }

/* company frameworks grid (management consultancy) */
.doc-groups { display: grid; gap: 2.5rem; }
@media (min-width: 40em) { .doc-groups { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; } }
@media (min-width: 64em) { .doc-groups { grid-template-columns: repeat(4, 1fr); } }
.doc-groups > div { padding-top: 1.5rem; border-top: 2px solid currentColor; }
.doc-groups h3 { margin-bottom: 1.25rem; }
.doc-groups .check-list { gap: 0.75rem; font-size: 0.9375rem; }
.doc-groups .check-list li { padding-left: 1.5rem; }
.doc-groups .check-list li::before { width: 0.5rem; height: 0.5rem; top: 0.55em; }
.section--ink .doc-groups .check-list { color: var(--on-ink-muted); }
.doc-groups__note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--on-ink-line); color: var(--on-ink-muted); font-size: 0.9375rem; }

/* service page hero with illustration */
.page-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.page-hero__art { width: 100%; max-width: 22rem; height: auto; }
@media (min-width: 56.25em) {
  .page-hero__grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .page-hero__art { max-width: 30rem; justify-self: end; }
}

/* icons in "what we do" lists */
.offer-list h3 { display: flex; align-items: flex-start; gap: 0.75rem; }
.offer-icon {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; margin-top: -0.4rem;
  background: var(--white); color: var(--ink);
}
.offer-icon .icon { width: 1.125rem; height: 1.125rem; }

/* icons on grouped grids */
.doc-groups h3 { display: flex; align-items: center; gap: 0.75rem; }
.doc-groups h3 .icon { width: 1.5rem; height: 1.5rem; color: var(--red); }

/* illustration at the top of service cards */
.service-card__art {
  display: block;
  margin: -2rem -1.75rem 1.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.service-card__art img { width: 100%; max-width: 15rem; height: auto; margin-inline: auto; transition: transform 0.3s; }
.service-card:hover .service-card__art img { transform: translateY(-4px); }
.section--white .service-card__art { background: var(--white); }

/* photo band below page heroes */
.photo-band { margin-top: clamp(2rem, 5vw, 3.5rem); }
.photo-band img { width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; background: var(--line); }
@media (max-width: 39.99em) { .photo-band img { aspect-ratio: 16 / 10; } }

/* full-width city photo on home */
.city-band { position: relative; margin: 0; }
.city-band img { width: 100%; height: clamp(16rem, 38vw, 34rem); object-fit: cover; background: var(--line); }
.city-band figcaption { position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vw, 2rem); }
.city-band figcaption span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--ink); color: var(--white);
  font-size: 0.9375rem; font-weight: 600;
}
.city-band figcaption .icon { width: 1.125rem; height: 1.125rem; color: var(--red); }
