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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.5;
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

.hl {
  font-weight: 400;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-headline); }
h3 { font-size: var(--step-2); }

p {
  max-width: var(--measure);
  font-size: var(--step-1);
}

a {
  color: var(--brand-500);
}

a:hover,
a:focus {
  color: var(--brand-700);
}

:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--brand-500);
}

.section-head {
  margin-bottom: var(--step-1);
}

.section-head h1,
.section-head h2 {
  margin-top: var(--step-0);
  max-width: 40ch;
  font-size: var(--step-headline);
}

/* Every section that doesn't already end in an obvious next action (a
   card grid, a form, the hero's own buttons) gets one of these: same
   position (end of content), same look, everywhere, so it's recognisable
   on sight rather than something the user has to relearn per section. */
.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--step-2);
  padding-bottom: 0.3em;
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--brand-700);
  text-decoration: none;
  border-bottom: 2px solid var(--brand-500);
}

.section-cta:hover,
.section-cta:focus-visible {
  color: var(--brand-500);
}

@media (prefers-reduced-motion: no-preference) {
  .section-cta {
    transition: color 0.2s ease, gap 0.2s ease;
  }

  .section-cta:hover,
  .section-cta:focus-visible {
    gap: 0.75em;
  }
}

/* Every section shares one flat white canvas: no per-section colour and
   no dividing line between them. With nothing to blend, there's nothing
   to seam: the page reads as one continuous surface, the same way the
   hero's own photo-to-white fade has no hard edge. Separation between
   sections comes from spacing and the reveal animations below, not colour. */
main section:not(.hero) {
  background: var(--surface);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -3rem;
  left: var(--gutter);
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5em 1em;
  border-radius: 0.25em;
  transition: top 0.15s ease;
}

.skip:focus {
  top: var(--gutter);
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--brand-500);
  color: var(--surface);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(50, 50, 50, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .back-to-top {
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  }
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--brand-700);
}

@media (max-width: 640px) {
  .back-to-top {
    width: 2.75rem;
    height: 2.75rem;
    right: var(--step-0);
    bottom: var(--step-0);
  }
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--gutter);
  width: 100%;
  padding-block: var(--step-1);
  padding-inline: var(--gutter);
}

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

.brand__mark {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-size: 1.3rem;
  color: var(--ink);
}

.brand__name-primary {
  font-weight: 700;
}

.brand__name-secondary {
  font-weight: 200;
}

.brand__tagline {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .brand__mark {
    width: 44px;
    height: 44px;
  }

  .brand__name {
    font-size: 1.1rem;
  }

  .brand__tagline {
    font-size: 0.7rem;
  }
}

.nav ul {
  display: flex;
  gap: var(--step-1);
  list-style: none;
  padding: 0;
}

.nav a {
  position: relative;
  white-space: nowrap;
  padding-bottom: 0.35em;
  color: var(--ink);
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--brand-500);
}

@media (prefers-reduced-motion: no-preference) {
  .nav a {
    transition: color 0.2s ease;
  }

  .nav a::after {
    transition: right 0.25s ease;
  }
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--brand-700);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}

.nav a[aria-current="page"] {
  color: var(--brand-700);
  font-weight: 600;
}

.nav a[aria-current="page"]::after {
  right: 0;
  background: var(--brand-700);
}

.nav__item {
  position: relative;
}

.nav__caret {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.35em;
  margin-bottom: 0.15em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: middle;
}

.nav__item .nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: none;
  flex-direction: column;
  min-width: 20rem;
  margin-top: var(--step-0);
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  box-shadow: 0 16px 32px rgba(50, 50, 50, 0.12);
  list-style: none;
}

.nav__item--has-children:hover .nav__submenu,
.nav__item--has-children:focus-within .nav__submenu {
  display: flex;
}

.nav__item--has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 20rem;
  height: var(--step-0);
}

.nav__submenu a {
  display: block;
  padding: 0.65em 0.75em;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav__submenu a::after {
  display: none;
}

.nav__submenu a:hover,
.nav__submenu a:focus-visible {
  background: var(--brand-50);
  color: var(--brand-700);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

.nav-book {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  background: var(--brand-500);
  color: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-book {
    transition: background-color 0.2s ease;
  }
}

.nav-book:hover,
.nav-book:focus-visible {
  background: var(--brand-700);
  color: var(--surface);
}

@media (max-width: 640px) {
  .nav-book {
    padding: 0.55em 1em;
    font-size: 0.82rem;
  }
}

/* Main */

main {
  padding-top: var(--step-2);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 88vh;
  margin-top: calc(-1 * var(--step-2));
  color: var(--surface);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ink);
  background-image: url("/assets/img/site/hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: calc(50% + var(--px, 0px)) calc(50% + var(--py, 0px));
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media {
    transition: background-position 0.2s ease-out;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 55% at 28% 38%, rgba(0, 0, 0, 0.28), transparent 70%),
    linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 55%);
}

.hero__fade {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: var(--step-0);
  background: linear-gradient(to bottom, transparent, var(--surface));
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--step-3) + var(--step-2));
}

.hero__inner :focus-visible {
  outline-color: var(--surface);
}

.hero__title {
  color: var(--surface);
  line-height: 1.35;
}

.hero__mask {
  display: block;
  overflow: hidden;
}

.hero__line {
  display: block;
  font-weight: 600;
}

.hero__line--light {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--step-2);
  margin-top: var(--step-2);
  padding-bottom: 0.3em;
}

.hero__cta {
  text-decoration: none;
  font-weight: 600;
}

.hero__cta--primary {
  display: inline-flex;
  align-items: center;
  padding: 0.85em 1.6em;
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
}

.hero__cta--primary:hover,
.hero__cta--primary:focus {
  background: var(--brand-100);
  color: var(--ink);
}

.hero__cta--secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--surface);
}

.hero__cta--secondary:hover,
.hero__cta--secondary:focus {
  color: var(--brand-100);
}

.hero__scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-cue-line {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: top;
}

.hero__scroll-cue-arrow {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  transform: rotate(45deg);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--step-1);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-cue-line {
  width: 1px;
  height: 2rem;
  background: rgba(50, 50, 50, 0.45);
  transform-origin: top;
}

.scroll-cue-arrow {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1px solid rgba(50, 50, 50, 0.45);
  border-bottom: 1px solid rgba(50, 50, 50, 0.45);
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .scroll-cue {
    display: none;
  }
}

/* Overview: what we do (left) and our three areas (right) */

.overview {
  padding-block: var(--step-3);
}

.overview__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--gutter);
  align-items: start;
}

.overview__lead {
  margin-top: var(--step-0);
  max-width: 26ch;
  font-size: var(--step-2);
}

.overview__body {
  margin-top: var(--step-1);
  max-width: 50ch;
  color: var(--ink-muted);
}

.overview__areas-title {
  padding-bottom: var(--step-1);
}

.area {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  gap: var(--step-1);
  align-items: center;
  padding-block: var(--step-1);
  border-top: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}

.area:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.area__media {
  aspect-ratio: 3 / 2;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--ink);
}

.area__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.area__title {
  font-size: var(--step-1);
  line-height: 1.3;
}

.area__text {
  margin-top: 0.4em;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.area__arrow {
  color: var(--brand-700);
  font-size: 1.25rem;
}

.area:hover .area__title,
.area:focus-visible .area__title {
  color: var(--brand-700);
}

@media (prefers-reduced-motion: no-preference) {
  .area__img {
    transition: transform 0.6s ease;
  }

  .area__title {
    transition: color 0.2s ease;
  }

  .area__arrow {
    transition: transform 0.2s ease;
  }

  .area:hover .area__img,
  .area:focus-visible .area__img {
    transform: scale(1.05);
  }

  .area:hover .area__arrow,
  .area:focus-visible .area__arrow {
    transform: translateX(0.3rem);
  }
}

@media (max-width: 899px) {
  .overview__grid {
    grid-template-columns: 1fr;
    gap: var(--step-3);
  }
}

@media (max-width: 559px) {
  .area {
    grid-template-columns: 5.5rem 1fr;
  }

  .area__media {
    aspect-ratio: 1;
  }

  .area__arrow {
    display: none;
  }
}

/* Trusted across areas (map-adjacent, combines area logos and the full logo marquee) */

.trusted {
  position: relative;
  padding-block: var(--step-3);
}

.trusted__intro {
  margin-top: var(--step-1);
  color: var(--ink-muted);
  max-width: 55ch;
}

.trusted__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--step-1);
  align-items: stretch;
  margin-top: var(--step-1);
}

.trusted__map-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.trusted__count {
  color: var(--brand-700);
}

.trusted .section-head h2 {
  text-wrap: balance;
}

.trusted__map-embed {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.trusted__map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.trusted__map-block {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

.trusted__map-cover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  margin: 0;
  padding: 0.9em 1.4em 0.9em 1em;
  background: var(--surface);
  border-bottom-right-radius: 0.75rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.trusted__map-marker {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.trusted__map-marker.is-active {
  z-index: 10;
}

.trusted__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-700);
  color: var(--surface);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(50, 50, 50, 0.35);
}

.trusted__pin--national {
  background: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .trusted__pin {
    transition: transform 0.15s ease;
  }
}

.trusted__pin:hover,
.trusted__pin:focus-visible,
.trusted__pin.is-active {
  transform: scale(1.15);
}

.trusted__pin.is-active {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100), 0 2px 6px rgba(50, 50, 50, 0.35);
}

@media (max-width: 799px) {
  .trusted__map-embed {
    aspect-ratio: 4 / 3;
  }
}

.trusted__list {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--surface);
  overflow: hidden;
}

.trusted__list-head {
  padding: var(--step-1) var(--step-1) var(--step-0);
  border-bottom: 1px solid var(--rule);
}

.trusted__list-head h3 {
  font-size: var(--step-1);
}

.trusted__list-head p {
  margin-top: 0.3em;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.trusted__list-scroll {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .trusted__list-scroll {
    scroll-behavior: smooth;
  }
}

.trusted__group-head {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  background: var(--brand-50);
  font-size: inherit;
}

.trusted__group-head button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--step-0);
  width: 100%;
  padding: 0.6em var(--step-1);
  border: 0;
  background: none;
  color: var(--brand-700);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.trusted__group-count {
  min-width: 1.5rem;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  background: var(--brand-700);
  color: var(--surface);
  font-size: 0.72rem;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .trusted__group-head,
  .trusted__group-head button,
  .trusted__group-count {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
}

.trusted__group.is-active .trusted__group-head {
  background: var(--brand-700);
}

.trusted__group.is-active .trusted__group-head button {
  color: var(--surface);
}

.trusted__group.is-active .trusted__group-count {
  background: var(--surface);
  color: var(--brand-700);
}

.trusted__group ul {
  list-style: none;
  margin: 0;
  padding: 0 var(--step-1);
}

.trusted__group li {
  padding: 0.65em 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.4;
}

.trusted__group li:first-child {
  border-top: 0;
}

@media (max-width: 899px) {
  .trusted__layout {
    grid-template-columns: 1fr;
  }

  .trusted__list-scroll {
    flex: none;
    max-height: 24rem;
  }
}

.trusted__areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--step-2);
}

.trusted__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--step-1);
  padding: var(--step-2) var(--step-1);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--brand-500);
  border-radius: 1rem;
  background: var(--surface);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}

.trusted__area[data-area="resilience"] {
  border-top-color: var(--brand-700);
}

.trusted__area[data-area="infrastructure"] {
  border-top-color: var(--ink);
}

.trusted__area-label {
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 20ch;
}

@media (prefers-reduced-motion: no-preference) {
  .trusted__area {
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
}

.trusted__area:hover,
.trusted__area:focus-visible {
  border-color: var(--brand-500);
  transform: translateY(-4px);
}

.trusted__area--list {
  justify-content: flex-start;
}

.trusted__area-clients {
  position: relative;
  margin-top: 0.5em;
  padding-top: var(--step-1);
  border-top: 1px solid var(--rule);
  width: 100%;
  min-height: 5.5rem;
}

.trusted__area-client {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}

.trusted__area-client-logo {
  height: 2.5rem;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  filter: grayscale(1);
}

.trusted__area-client-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 1rem;
}

.trusted__area-client-name {
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

@media (prefers-reduced-motion: no-preference) {
  .trusted__area-client {
    position: absolute;
    inset: var(--step-1) 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .trusted__area-client.is-active {
    opacity: 1;
  }

  .trusted__area-client-logo {
    transition: filter 0.2s ease;
  }
}

.trusted__area:hover .trusted__area-client-logo,
.trusted__area:focus-visible .trusted__area-client-logo {
  filter: grayscale(0);
}

@media (prefers-reduced-motion: reduce) {
  .trusted__area-clients {
    display: flex;
    flex-direction: column;
    gap: var(--step-1);
    min-height: 0;
  }

  .trusted__area-client {
    padding-top: var(--step-0);
    border-top: 1px solid var(--rule);
  }

  .trusted__area-client:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

.trusted .logos__inner {
  margin-top: var(--step-3);
}

@media (max-width: 799px) {
  .trusted__areas {
    grid-template-columns: 1fr;
  }
}

/* Selected work */

.work {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-block: var(--step-3);
}

.work > .wrap {
  margin-block: auto;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: var(--gutter) var(--gutter);
  margin-top: var(--step-2);
}

.work__item {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.work__media {
  position: relative;
  overflow: hidden;
  border-radius: 0.6rem;
  aspect-ratio: 4 / 3;
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: var(--step-1);
  box-shadow: 0 1px 2px rgba(50, 50, 50, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
  .work__item {
    transition: transform 0.3s ease;
  }

  .work__media {
    transition: transform 0.4s ease, box-shadow 0.3s ease;
  }

  .work__item:hover,
  .work__item:focus-visible {
    transform: translateY(-6px);
  }

  .work__item:hover .work__media,
  .work__item:focus-visible .work__media {
    transform: scale(1.035);
    box-shadow: 0 18px 32px rgba(50, 50, 50, 0.18);
  }
}

[data-placeholder] {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 10px, transparent 10px 20px),
    var(--ink);
}

[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: var(--step-0) var(--step-0) auto auto;
  max-width: 60%;
  text-align: right;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.work__col-label {
  padding-bottom: var(--step-0);
  border-bottom: 2px solid var(--brand-700);
  color: var(--brand-700);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work__setting {
  display: none;
  margin-bottom: 0.6em;
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work__caption {
  flex: 0 0 auto;
}

.work__caption h3 {
  font-size: var(--step-1);
  margin-bottom: var(--step-0);
}

.work__client {
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--step-0);
}

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

.work__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--step-0);
  font-weight: 600;
  color: var(--brand-500);
}

.work__item:hover .work__link,
.work__item:focus-visible .work__link {
  color: var(--brand-700);
}

.work .section-cta {
  display: flex;
  width: fit-content;
  margin: var(--step-3) auto 0;
  padding: 0.7em 1.4em;
  border: 1px solid var(--brand-500);
  border-radius: 999px;
  color: var(--brand-700);
}

@media (prefers-reduced-motion: no-preference) {
  .work .section-cta {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
}

.work .section-cta:hover,
.work .section-cta:focus-visible {
  background: var(--brand-500);
  color: var(--surface);
}

@media (max-width: 799px) {
  .work__grid {
    grid-template-columns: 1fr;
  }

  .work__col-label {
    display: none;
  }

  .work__setting {
    display: block;
  }
}

/* Logos */

.logos__inner {
  text-align: center;
}

.logos__head {
  margin-bottom: var(--step-3);
}

.logos__head h2,
.logos__head h3 {
  max-width: 20ch;
  margin-inline: auto;
}

.logos__row {
  overflow: hidden;
  padding-top: var(--step-2);
  border-top: 1px solid rgba(50, 50, 50, 0.12);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logos__track {
  display: flex;
  width: max-content;
  gap: var(--step-2);
}

.logos__logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 9rem;
  height: 4.5rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  background: var(--surface);
  overflow: hidden;
}

.logos__mark {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: 0.02em;
}

img.logos__mark {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
}

.logos__logo:hover img.logos__mark,
.logos__logo:focus-visible img.logos__mark {
  filter: grayscale(0) opacity(1);
}

.logos__name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--surface);
  background: var(--brand-700);
  opacity: 0;
}

.logos__logo:hover .logos__name,
.logos__logo:focus-visible .logos__name {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .logos__mark,
  .logos__name {
    transition: opacity 0.25s ease, filter 0.25s ease;
  }

  .logos__track {
    animation: logos-marquee 30s linear infinite;
  }

  .logos__row:hover .logos__track,
  .logos__row:focus-within .logos__track {
    animation-play-state: paused;
  }

  @keyframes logos-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

/* Our values */

.values {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--step-3);
}

.values__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--gutter);
  align-items: start;
}

.values__lead {
  font-size: var(--step-headline);
  margin-top: var(--step-0);
  max-width: 14ch;
}

.values__body {
  display: flex;
  flex-direction: column;
  gap: var(--step-1);
  margin-top: var(--step-1);
}

.values__body p {
  color: var(--ink-muted);
  max-width: 42ch;
}

.values__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.values__item {
  display: flex;
  flex-direction: column;
  background: var(--brand-50);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(50, 50, 50, 0.05);
}

.values__item-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.values__item-body {
  padding: var(--step-1);
}

.values__num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-500);
  margin-bottom: var(--step-0);
}

.values__item p {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  max-width: none;
}

@media (prefers-reduced-motion: no-preference) {
  .values__item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .values__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 28px rgba(50, 50, 50, 0.12);
  }
}

@media (max-width: 799px) {
  .values__grid {
    grid-template-columns: 1fr;
    gap: var(--step-2);
  }
}

@media (max-width: 640px) {
  .values__list {
    grid-template-columns: 1fr;
  }
}

/* What we do overview */

.wwd-lead {
  padding-block: var(--step-3) var(--step-1);
}

.wwd-lead__text {
  margin-top: var(--step-1);
  color: var(--ink-muted);
  font-size: var(--step-1);
  max-width: 55ch;
}

.wwd-selector {
  padding-block: var(--step-1) var(--step-3);
}

.wwd-selector .section-head h2 {
  font-size: var(--step-2);
  max-width: 32ch;
}

.wwd-selector__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: stretch;
  margin-top: var(--step-2);
}

.wwd-selector__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.wwd-selector__item {
  border-bottom: 1px solid var(--rule);
}

.wwd-selector__toggle {
  display: flex;
  align-items: baseline;
  gap: var(--step-1);
  width: 100%;
  padding-block: var(--step-1);
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--ink-muted);
  cursor: pointer;
}

.wwd-selector__index {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-500);
}

.wwd-selector__title {
  flex: 1;
  font-size: var(--step-1);
  font-weight: 600;
}

.wwd-selector__icon {
  position: relative;
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
}

.wwd-selector__icon::before,
.wwd-selector__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--brand-500);
  transform: translate(-50%, -50%);
}

.wwd-selector__icon::before {
  width: 100%;
  height: 2px;
}

.wwd-selector__icon::after {
  width: 2px;
  height: 100%;
}

.wwd-selector__item.is-open .wwd-selector__title {
  color: var(--ink);
}

.wwd-selector__item.is-open .wwd-selector__icon::after {
  height: 0;
}

.wwd-selector__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
}

.wwd-selector__item.is-open .wwd-selector__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.wwd-selector__panel-inner {
  min-height: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .wwd-selector__panel {
    transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
  }

  .wwd-selector__icon::after {
    transition: height 0.25s ease;
  }
}

.wwd-selector__text {
  padding-bottom: var(--step-1);
  color: var(--ink-muted);
  max-width: 52ch;
}

.wwd-selector__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 0.5em;
  margin: -0.7em -0.5em calc(var(--step-1) - 0.7em);
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .wwd-selector__link {
    transition: gap 0.2s ease, background-color 0.2s ease;
  }
}

.wwd-selector__link:hover,
.wwd-selector__link:focus-visible {
  gap: 0.75em;
  background: var(--brand-50);
}

.wwd-selector__media {
  position: relative;
  min-height: 22rem;
  border-radius: 1rem;
  overflow: hidden;
}

.wwd-selector__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}

.wwd-selector__image.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .wwd-selector__image {
    transition: opacity 0.5s ease;
  }
}

@media (max-width: 899px) {
  .wwd-selector__layout {
    grid-template-columns: 1fr;
  }

  .wwd-selector__media {
    order: -1;
    min-height: 14rem;
  }
}

.wwd-ddst {
  padding-block: var(--step-2);
}

.wwd-ddst__inner {
  display: grid;
  grid-template-columns: minmax(6rem, 16%) 1fr;
  gap: var(--gutter);
  padding: var(--step-2);
  border: 1px solid var(--rule);
  border-radius: 1rem;
}

.wwd-ddst__eyebrow {
  margin-top: 0.2em;
}

.wwd-ddst__title {
  font-size: var(--step-2);
}

.wwd-ddst__text {
  margin-top: var(--step-1);
  color: var(--ink-muted);
  max-width: 56ch;
}

@media (max-width: 799px) {
  .wwd-ddst__inner {
    grid-template-columns: 1fr;
    gap: var(--step-1);
  }
}

/* What we do detail pages: block system */

.wd-framework,
.wd-stats,
.wd-benefits,
.wd-key-project,
.wd-publications {
  padding-block: var(--step-3);
}

.wd-framework__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--step-3);
  align-items: center;
}

@media (max-width: 899px) {
  .wd-framework__grid {
    grid-template-columns: 1fr;
  }
}

.wd-framework__body {
  margin-top: var(--step-1);
}

.wd-framework__text {
  color: var(--ink-muted);
  max-width: var(--measure);
}

.wd-framework__text--placeholder {
  color: var(--brand-700);
  font-style: italic;
}

.wd-framework__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step-0);
  margin-top: var(--step-1);
}

.wd-framework__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.3em;
  border: 1px solid var(--brand-500);
  border-radius: 999px;
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .wd-framework__link {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
}

.wd-framework__link:hover,
.wd-framework__link:focus-visible {
  background: var(--brand-500);
  color: var(--surface);
}

.wd-framework__media {
  position: relative;
  aspect-ratio: 21 / 8;
  border-radius: 0.75rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 899px) {
  .wd-framework__media {
    margin-top: var(--step-2);
  }
}

.wd-framework__media--contain {
  aspect-ratio: 1 / 1;
  background-size: contain;
}

.wd-stats__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--step-2);
  list-style: none;
  padding: 0;
}

.wd-stats__item {
  padding-left: var(--step-1);
  border-left: 1px solid var(--rule);
}

.wd-stats__figure {
  display: block;
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--brand-700);
}

.wd-stats__label {
  display: block;
  margin-top: 0.4em;
  color: var(--ink-muted);
}

.wd-stats__source {
  display: block;
  margin-top: 0.75em;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.7;
}

.wd-benefits__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--gutter);
  margin-top: var(--step-2);
  list-style: none;
  padding: 0;
}

.wd-benefits__item {
  padding: var(--step-1);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
}

.wd-benefits__figure {
  display: block;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--brand-500);
  margin-bottom: 0.5em;
}

.wd-benefits__icon {
  display: block;
  width: 2rem;
  height: 2rem;
  color: var(--brand-500);
  margin-bottom: 0.75em;
}

.wd-benefits__icon svg {
  width: 100%;
  height: 100%;
}

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

.wd-key-project__list {
  display: flex;
  flex-direction: column;
  gap: var(--step-1);
  margin-top: var(--step-2);
}

.wd-key-project__list--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.wd-key-project__list--grid .wd-key-project__card {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.wd-key-project__list--grid .wd-key-project__media {
  aspect-ratio: 4 / 3;
}

.wd-key-project__list--grid .wd-key-project__title {
  font-size: var(--step-1);
}

@media (max-width: 899px) {
  .wd-key-project__list--grid {
    grid-template-columns: 1fr;
  }
}

.wd-key-project__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  gap: var(--gutter);
  align-items: center;
  padding: var(--step-1);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
}

.wd-key-project__media {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: 0.6rem;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
}

.wd-key-project__client {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.wd-key-project__title {
  margin-top: 0.4em;
  font-size: var(--step-2);
}

.wd-key-project__summary {
  margin-top: var(--step-0);
  color: var(--ink-muted);
}

.wd-key-project__body .work__link {
  margin-top: var(--step-1);
}

@media (prefers-reduced-motion: no-preference) {
  .wd-key-project__card {
    transition: border-color 0.25s ease;
  }
}

.wd-key-project__card:hover,
.wd-key-project__card:focus-visible {
  border-color: var(--brand-500);
}

@media (max-width: 799px) {
  .wd-stats__list {
    grid-template-columns: 1fr 1fr;
  }

  .wd-key-project__card {
    grid-template-columns: 1fr;
  }
}

.wd-pub-carousel {
  position: relative;
  margin-top: var(--step-2);
  padding: var(--step-2);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--brand-50);
}

.wd-pub-slide {
  padding-right: var(--step-3);
}

.wd-pub-slide__layout--video {
  display: grid;
  grid-template-columns: 1fr 34rem;
  gap: var(--step-2);
  align-items: start;
}

.wd-pub-slide__video {
  margin-top: 3rem;
}

.wd-pub-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}

.wd-pub-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-pub-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.3em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-700);
  font-size: 1.8rem;
}

@media (prefers-reduced-motion: no-preference) {
  .wd-pub-video__play {
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
}

.wd-pub-video:hover .wd-pub-video__play,
.wd-pub-video:focus-visible .wd-pub-video__play {
  transform: scale(1.1);
  background: var(--surface);
}

.wd-pub-video__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.75rem;
  display: block;
}

@media (max-width: 799px) {
  .wd-pub-slide__layout--video {
    grid-template-columns: 1fr;
  }

  .wd-pub-slide__video {
    margin-top: var(--step-1);
  }
}

.wd-pub-slide__type {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wd-pub-slide__title {
  margin-top: var(--step-1);
  font-size: var(--step-1);
  max-width: 46ch;
}

.wd-pub-slide__meta {
  margin-top: var(--step-0);
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.wd-pub-slide__label {
  margin-top: var(--step-1);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.wd-pub-slide__meta .wd-pub-slide__label {
  margin-top: 0;
  font-weight: 700;
  display: inline;
  color: var(--ink);
}

.wd-pub-slide__list {
  margin-top: 0.5em;
  padding-left: 1.1em;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.wd-pub-slide__by {
  margin-top: var(--step-1);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.wd-pub-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step-0);
  margin-top: var(--step-2);
}

.wd-pub-arrow {
  position: absolute;
  top: var(--step-2);
  right: var(--step-2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.wd-pub-arrow--prev {
  right: calc(var(--step-2) + 2.75rem);
}

@media (prefers-reduced-motion: no-preference) {
  .wd-pub-arrow {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
}

.wd-pub-arrow:hover,
.wd-pub-arrow:focus-visible {
  background: var(--brand-500);
  color: var(--surface);
  border-color: var(--brand-500);
}

.carousel__progress.wd-pub-dots {
  gap: 0.5rem;
  margin-top: var(--step-2);
}

.carousel__segment.wd-pub-dot {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rule);
}

.carousel__segment.wd-pub-dot.is-active {
  background: var(--brand-500);
}

@media (max-width: 640px) {
  .wd-pub-carousel {
    padding: var(--step-1);
  }

  .wd-pub-slide {
    padding-right: 0;
    padding-top: 3rem;
  }

  .wd-pub-arrow {
    top: var(--step-1);
  }
}

.wd-close {
  padding-block: var(--step-2) var(--step-3);
}

/* Our team */

.team-intro {
  padding-block: var(--step-3) var(--step-2);
}

main:has(.team-intro) .eyebrow {
  font-size: 1.85rem;
}

.team-intro__text {
  margin-top: var(--step-1);
  max-width: 60ch;
  color: var(--ink-muted);
}

.team {
  padding-block: var(--step-2) var(--step-3);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--step-2);
  margin-top: var(--step-2);
}

.team-member {
  display: block;
  color: inherit;
  text-decoration: none;
}

.team-member__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--ink);
  background-size: cover;
  background-position: center top;
  filter: grayscale(1) contrast(1.02);
  box-shadow: 0 1px 2px rgba(50, 50, 50, 0.06);
}

.team-member__info {
  position: relative;
  margin-top: var(--step-1);
  padding-top: 0.8em;
}

.team-member__info::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 2px;
  background: var(--brand-500);
  margin-bottom: 0.8em;
}

.team-member__name {
  font-size: 1.2rem;
  line-height: 1.25;
}

.team-member__role {
  margin-top: 0.35em;
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-member__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.7em;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-700);
  opacity: 0;
  transform: translateY(4px);
}

@media (prefers-reduced-motion: no-preference) {
  .team-member__portrait {
    transition: filter 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }

  .team-member__link {
    transition: opacity 0.2s ease, transform 0.2s ease, gap 0.2s ease;
  }
}

.team-member:hover .team-member__portrait,
.team-member:focus-visible .team-member__portrait {
  filter: grayscale(0);
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(50, 50, 50, 0.14);
}

.team-member:hover .team-member__link,
.team-member:focus-visible .team-member__link {
  opacity: 1;
  transform: translateY(0);
  gap: 0.75em;
}

@media (max-width: 900px) {
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .team__grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    max-width: 340px;
  }
}

/* Associates */

.associates {
  padding-block: var(--step-2) var(--step-3);
}

.associates-spotlight {
  display: grid;
  grid-template-columns: minmax(14rem, 26%) 1fr;
  gap: var(--step-2);
  align-items: start;
  margin-top: var(--step-2);
}

.associates-spotlight__toc {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  position: sticky;
  top: var(--step-1);
}

.associates-spotlight__toc-item {
  display: flex;
  align-items: center;
  gap: 0.75em;
  width: 100%;
  padding-block: 0.65em;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  font: inherit;
  text-align: left;
  color: var(--ink-muted);
  cursor: pointer;
}

.associates-spotlight__toc-avatar {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.02);
}

.associates-spotlight__toc-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 0.85rem;
}

.associates-spotlight__toc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.associates-spotlight__toc-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.associates-spotlight__toc-org {
  margin-top: 0.1em;
  font-size: 0.75rem;
  color: var(--brand-700);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (prefers-reduced-motion: no-preference) {
  .associates-spotlight__toc-item,
  .associates-spotlight__toc-name {
    transition: color 0.2s ease;
  }
}

.associates-spotlight__toc-item:hover {
  color: var(--brand-700);
}

.associates-spotlight__toc-item.is-active {
  color: var(--ink);
}

.associates-spotlight__toc-item.is-active .associates-spotlight__toc-name {
  color: var(--ink);
}

.associates-spotlight__panels {
  min-width: 0;
  padding-left: var(--step-2);
  border-left: 2px solid var(--brand-500);
}

.associates-spotlight__panel {
  display: flex;
  gap: var(--step-1);
}

.associates-spotlight__panel[hidden] {
  display: none;
}

.associates-spotlight__avatar {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.02);
}

.associates-spotlight__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 1.6rem;
}

.associates-spotlight__body {
  min-width: 0;
}

.associates-spotlight__name {
  font-size: var(--step-1);
  color: var(--ink);
}

.associates-spotlight__org {
  margin-top: 0.2em;
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.associates-spotlight__org a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.associates-spotlight__org a:hover,
.associates-spotlight__org a:focus-visible {
  border-bottom-color: var(--brand-500);
}

.associates-spotlight__experience {
  margin-top: 0.2em;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.associates-spotlight__experience--placeholder {
  color: var(--brand-700);
  font-style: italic;
}

.associates-spotlight__text {
  margin-top: 0.9em;
  max-width: var(--measure);
  color: var(--ink-muted);
}

.associates-spotlight__text--placeholder {
  color: var(--brand-700);
  font-style: italic;
}

.associates-spotlight__tags {
  list-style: none;
  padding: 0;
  margin-top: 0.9em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.associates-spotlight__tags li {
  padding: 0.35em 0.75em;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.associates-spotlight__services {
  margin-top: 1.4em;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule);
}

.associates-spotlight__services-label {
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.associates-spotlight__services-grid {
  margin-top: 0.9em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem 1.75rem;
}

.associates-spotlight__service-group h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--rule);
}

.associates-spotlight__service-group ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5em;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.associates-spotlight__link {
  margin-top: 1.1em;
  font-size: 0.9rem;
}

.associates-spotlight__link a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.associates-spotlight__link a:hover,
.associates-spotlight__link a:focus-visible {
  border-bottom-color: var(--brand-500);
}

.associates-spotlight__quals {
  list-style: none;
  padding: 0;
  margin-top: 0.85em;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.associates-spotlight__quals li {
  position: relative;
  padding-left: 1.15em;
}

.associates-spotlight__quals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--brand-500);
}

.associates-spotlight__meta {
  margin-top: 0.6em;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.associates-spotlight__meta a {
  color: var(--brand-700);
  font-weight: 600;
}

@media (max-width: 799px) {
  .associates-spotlight {
    grid-template-columns: 1fr;
  }

  .associates-spotlight__toc {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    border-top: 0;
  }

  .associates-spotlight__toc-item {
    flex: 1 1 auto;
    width: auto;
    border-bottom: 2px solid var(--rule);
    padding-block: var(--step-0);
  }

  .associates-spotlight__toc-item.is-active {
    border-bottom-color: var(--brand-500);
  }

  .associates-spotlight__toc-org {
    display: none;
  }

  .associates-spotlight__panels {
    padding-left: 0;
    border-left: 0;
    padding-top: var(--step-1);
  }

  .associates-spotlight__panel {
    flex-direction: column;
  }
}

/* Collaboration partners */

main section.partners {
  padding-block: var(--step-3);
  background: var(--brand-50);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--step-2);
  margin-top: var(--step-2);
}

.partner-card {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: var(--step-1);
}

.partner-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85em;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
}

.partner-card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.partner-card__name {
  font-size: 1.15rem;
}

.partner-card__name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.partner-card__name a:hover,
.partner-card__name a:focus-visible {
  border-bottom-color: var(--brand-500);
}

.partner-card__institution {
  margin-top: 0.3em;
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.partner-card__text {
  margin-top: 0.6em;
  color: var(--ink-muted);
}

.partner-card__text--placeholder {
  color: var(--brand-700);
  font-style: italic;
}

/* Team member profile */

.profile {
  padding-block: var(--step-2) var(--step-3);
}

.profile__back-row {
  margin-bottom: var(--step-2);
}

.profile__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink-muted);
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .profile__back {
    transition: color 0.2s ease;
  }
}

.profile__back:hover,
.profile__back:focus-visible {
  color: var(--brand-700);
}

.profile__grid {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: var(--gutter);
  align-items: start;
}

.profile__side {
  display: flex;
  flex-direction: column;
  gap: var(--step-1);
}

.profile__portrait {
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  background-color: var(--ink);
  background-size: cover;
  background-position: center top;
  filter: grayscale(1);
}

.profile__main {
  padding: var(--step-2);
  border: 1px solid var(--rule);
  border-radius: 1rem;
}

.profile__name {
  margin-top: var(--step-0);
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
}

.profile__role {
  margin-top: 0.4em;
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile__bio {
  margin-top: var(--step-1);
  color: var(--ink-muted);
  font-size: var(--step-0);
  line-height: 1.75;
  max-width: 62ch;
}

.profile__bio a {
  color: var(--brand-700);
}

.profile__fact {
  margin-top: var(--step-2);
  padding: var(--step-1) var(--step-1) var(--step-1) var(--step-2);
  border-left: 3px solid var(--brand-500);
  background: var(--brand-50);
  border-radius: 0 0.5rem 0.5rem 0;
}

.profile__fact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 0.5em;
}

.profile__fact-text {
  font-size: var(--step-0);
  color: var(--ink-muted);
}

.profile__contact {
  padding: var(--step-2);
  border: 1px solid var(--rule);
  border-radius: 1rem;
}

.profile__contact-block + .profile__contact-block {
  margin-top: var(--step-1);
  padding-top: var(--step-1);
  border-top: 1px solid var(--rule);
}

.profile__contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 0.5em;
}

.profile__contact-value {
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.profile__contact-value:hover,
.profile__contact-value:focus-visible {
  color: var(--brand-700);
}

.profile__contact-list {
  list-style: none;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.profile__contact-list--check li {
  position: relative;
  padding-left: 1.25em;
}

.profile__contact-list--check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand-500);
}

.profile__contact-list--tags {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5em;
}

.profile__contact-list--tags li {
  padding: 0.35em 0.75em;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.profile__queue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: var(--step-3);
  padding-top: var(--step-2);
  border-top: 1px solid var(--rule);
}

.profile__queue-item {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: var(--step-1);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.profile__queue-item--next {
  text-align: right;
  align-items: flex-end;
}

.profile__queue-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.profile__queue-name {
  font-size: var(--step-1);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .profile__queue-item {
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
}

.profile__queue-item:hover,
.profile__queue-item:focus-visible {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

@media (max-width: 1023px) {
  .profile__grid {
    grid-template-columns: minmax(280px, 340px) 1fr;
  }
}

@media (max-width: 799px) {
  .profile__grid {
    grid-template-columns: 1fr;
  }

  .profile__side {
    max-width: 24rem;
  }

  .profile__main {
    padding-top: var(--step-1);
  }

  .profile__queue {
    grid-template-columns: 1fr;
  }

  .profile__queue-item--next {
    text-align: left;
    align-items: flex-start;
  }
}

/* What we do: feature block (text + hexagon / capabilities / puzzle / ribbon / photo) */

.wd-feature {
  padding-block: var(--step-3);
}

.wd-feature__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gutter);
  align-items: start;
}

.wd-feature__body {
  margin-top: var(--step-1);
  color: var(--ink-muted);
  max-width: 60ch;
}

.wd-feature__bullets {
  margin-top: var(--step-1);
  padding-left: 1.2em;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.wd-feature__visual {
  display: flex;
  justify-content: center;
}

/* Hexagon tag graphic */

.wd-hexagon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--step-0);
  text-align: center;
}

.wd-hexagon__shape {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14rem;
  aspect-ratio: 1 / 0.92;
  clip-path: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0% 50%);
  background: var(--brand-100);
  padding: 1.5rem;
}

.wd-hexagon__shape span {
  color: var(--surface);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

.wd-hexagon__tag {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  max-width: 22ch;
}

/* Capabilities split panel */

.wd-feature__panel {
  width: 100%;
  padding: var(--step-2);
  border-radius: 1rem;
  background: var(--brand-700);
  color: var(--surface);
}

.wd-feature__panel h3 {
  color: var(--surface);
  font-size: var(--step-1);
  max-width: 20ch;
}

.wd-feature__panel-col {
  margin-top: var(--step-1);
  padding-top: var(--step-1);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.wd-feature__panel-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-100);
}

.wd-feature__panel-col ul {
  list-style: none;
  padding: 0;
  margin-top: 0.6em;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.wd-feature__panel-col li {
  position: relative;
  padding-left: 1em;
  font-size: 0.9rem;
}

.wd-feature__panel-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5em;
  height: 1px;
  background: var(--brand-100);
}

/* Puzzle grid (VITAL system) */

.wd-puzzle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
}

.wd-puzzle__piece {
  padding: var(--step-1);
  background: var(--brand-100);
}

.wd-puzzle__piece:nth-child(even) {
  background: var(--brand-50);
}

.wd-puzzle__index {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: 0.4em;
}

.wd-puzzle__piece p {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink);
}

/* Ribbon stack (Precinct Impact needs) */

.wd-ribbon {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.wd-ribbon__item {
  padding: 1em 1.25em;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brand-500);
  font-weight: 600;
}

.wd-ribbon__item + .wd-ribbon__item {
  margin-top: -1px;
}

/* Placeholder photo */

.wd-feature__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 799px) {
  .wd-feature__grid {
    grid-template-columns: 1fr;
  }
}

/* Capabilities */

.capabilities {
  position: relative;
  padding-block: calc(var(--step-3) * 1.4);
}

.capabilities__panel {
  margin-top: var(--step-2);
  padding: var(--step-2);
  border: 1px solid var(--rule);
  border-radius: 1rem;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--gutter);
}

.capabilities__col.capabilities__col--wide ul {
  display: block;
  columns: 3;
  column-gap: var(--gutter);
  column-rule: 1px solid var(--rule);
}

.capabilities__col.capabilities__col--split ul {
  display: block;
  columns: 2;
  column-gap: var(--gutter);
  column-rule: 1px solid var(--rule);
}

.capabilities__col--wide li,
.capabilities__col--split li {
  break-inside: avoid;
}

.capabilities__note {
  margin-top: var(--step-2);
  padding-top: var(--step-1);
  border-top: 1px solid var(--rule);
  max-width: none;
  color: var(--ink-muted);
  font-size: var(--step-0);
}

.capabilities .section-head h2 {
  text-wrap: balance;
}

@media (min-width: 900px) {
  .capabilities .section-head h2 {
    max-width: none;
    white-space: nowrap;
    font-size: min(var(--step-headline), calc((100vw - 6rem) / 24));
  }
}

.capabilities__col + .capabilities__col {
  padding-left: var(--gutter);
  border-left: 1px solid var(--rule);
}

.capabilities__col-label {
  margin-bottom: var(--step-1);
  padding-bottom: 0.6em;
  border-bottom: 1px solid var(--rule);
  color: var(--brand-700);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capabilities__col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.capabilities__col li {
  position: relative;
  padding: 0.65em 0 0.65em 1.4em;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.capabilities__col li + li {
  border-top: 1px solid rgba(50, 50, 50, 0.08);
}

.capabilities__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.55em;
  height: 1px;
  background: var(--brand-500);
}

@media (prefers-reduced-motion: no-preference) {
  .capabilities__panel:not(.is-visible) .capabilities__col li {
    opacity: 0;
    transform: translateX(-10px);
  }

  .capabilities__panel.is-visible .capabilities__col li {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    transition-delay: var(--stagger-delay, 0ms);
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 799px) {
  .capabilities__grid {
    grid-template-columns: 1fr;
    gap: var(--step-2);
  }

  .capabilities__col.capabilities__col--wide ul,
  .capabilities__col.capabilities__col--split ul {
    columns: 1;
    column-rule: 0;
  }

  .capabilities__col + .capabilities__col {
    padding-left: 0;
    border-left: 0;
    padding-top: var(--step-2);
    border-top: 1px solid var(--rule);
  }
}

/* Testimonial carousel */

.testimonial {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-block: var(--step-3);
}

.testimonial__stack {
  margin-block: auto;
}

.testimonial__stack .section-head {
  margin-bottom: var(--step-2);
}

.testimonial__grid {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: calc(var(--gutter) * 1.4);
  align-items: start;
}

.testimonial__lead-col {
  min-width: 0;
  padding-top: 0.1em;
}

.testimonial__mark {
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-family: var(--font-serif);
  color: var(--brand-500);
  line-height: 1;
}

.testimonial__attribution {
  display: flex;
  align-items: center;
  gap: 0.65em;
  margin-top: var(--step-1);
  color: var(--ink-muted);
}

.testimonial__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: var(--surface);
}

@media (prefers-reduced-motion: no-preference) {
  .testimonial__avatar {
    animation: avatar-float 3s ease-in-out infinite;
  }

  @keyframes avatar-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
}

.carousel {
  min-width: 0;
  margin-top: var(--step-0);
}

@media (max-width: 799px) {
  .testimonial__grid {
    grid-template-columns: 1fr;
    gap: var(--step-1);
  }
}

.carousel__viewport {
  position: relative;
  min-height: 16rem;
}

.carousel__track {
  position: relative;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.carousel__slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.carousel__slide.is-leaving {
  position: absolute;
  opacity: 0;
  transform: translateY(-16px);
}

.carousel__quote {
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  line-height: 1.5;
  max-width: none;
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .carousel__slide {
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
}

.carousel__progress {
  display: flex;
  gap: var(--step-2);
  margin-top: var(--step-3);
}

.carousel__segment {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.carousel__segment-track {
  display: block;
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: var(--rule);
  overflow: hidden;
}

.carousel__segment-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: var(--brand-500);
}

.carousel__segment-label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel__segment:hover .carousel__segment-track {
  background: var(--brand-100);
}

.carousel__segment.is-active .carousel__segment-label {
  color: var(--brand-700);
}

@media (prefers-reduced-motion: no-preference) {
  .carousel__segment-fill {
    transition: width 0.2s ease;
  }
}

/* Contact CTA */

.cta {
  position: relative;
  padding-block: var(--step-3);
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--step-2);
}

.cta__text h2 {
  max-width: 24ch;
}

.cta__text p {
  color: var(--ink-muted);
  margin-top: var(--step-1);
  max-width: 42ch;
}

.cta__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  background: var(--brand-500);
  color: var(--surface);
  border-radius: 999px;
  font-size: var(--step-1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cta__link:hover,
.cta__link:focus {
  background: var(--brand-700);
  color: var(--surface);
}

@media (max-width: 640px) {
  .cta__inner {
    align-items: flex-start;
  }
}

/* Motion */

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-converge--media,
.reveal-converge--text,
.reveal-converge--left,
.reveal-converge--right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Converging reveal: for image+text pairs only. Image rises from
     below, text descends from above, meeting at rest. Text-only
     sections keep the standard fade-and-rise above. */
  .reveal-converge--media,
  .reveal-converge--text {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: var(--stagger-delay, 0ms);
  }

  .reveal-converge--media {
    transform: translateY(64px);
  }

  .reveal-converge--text {
    transform: translateY(-64px);
  }

  .reveal-converge--media.is-visible,
  .reveal-converge--text.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Horizontal converge: for the same image+text pattern turned on its
     side. Text enters from the left, its partner from the right, so
     the page alternates between vertical and horizontal entrances
     rather than repeating the same motion in every section. */
  .reveal-converge--left,
  .reveal-converge--right {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: var(--stagger-delay, 0ms);
  }

  .reveal-converge--left {
    transform: translateX(-40px);
  }

  .reveal-converge--right {
    transform: translateX(40px);
  }

  .reveal-converge--left.is-visible,
  .reveal-converge--right.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  .stagger > *:nth-child(1) { transition-delay: 0ms; --stagger-delay: 0ms; }
  .stagger > *:nth-child(2) { transition-delay: 70ms; --stagger-delay: 70ms; }
  .stagger > *:nth-child(3) { transition-delay: 140ms; --stagger-delay: 140ms; }
  .stagger > *:nth-child(4) { transition-delay: 210ms; --stagger-delay: 210ms; }
  .stagger > *:nth-child(5) { transition-delay: 280ms; --stagger-delay: 280ms; }
  .stagger > *:nth-child(6) { transition-delay: 350ms; --stagger-delay: 350ms; }
  .stagger > *:nth-child(7) { transition-delay: 420ms; --stagger-delay: 420ms; }
  .stagger > *:nth-child(8) { transition-delay: 490ms; --stagger-delay: 490ms; }

  .hero__media {
    animation: hero-zoom 1.2s ease-out forwards;
  }

  .hero__line {
    animation: hero-line-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero__mask:nth-child(1) .hero__line {
    animation-delay: 0.08s;
  }

  .hero__mask:nth-child(2) .hero__line {
    animation-delay: 0.2s;
  }

  .hero__mask:nth-child(3) .hero__line {
    animation-delay: 0.32s;
  }

  .hero__mask:nth-child(4) .hero__line {
    animation-delay: 0.44s;
  }

  @keyframes hero-zoom {
    from { transform: scale(1.12); }
    to { transform: scale(1.06); }
  }

  @keyframes hero-line-in {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
  }

  .hero__scroll-cue-line,
  .scroll-cue-line {
    animation: scroll-cue 1.8s ease-in-out infinite;
  }

  @keyframes scroll-cue {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(0.5); opacity: 1; }
  }
}

/* Footer */

.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--step-2);
  padding-block: var(--step-3);
}

.site-foot__head {
  font-size: var(--step-1);
  margin-bottom: var(--step-0);
}

.site-foot address {
  font-style: normal;
  color: var(--ink-muted);
}

.site-foot__linkedin {
  display: inline-block;
  margin-top: var(--step-0);
}

.site-foot__map {
  flex: 0 0 auto;
  width: min(280px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.site-foot__map iframe {
  display: block;
}

.site-foot__nav {
  display: flex;
  flex-direction: column;
  gap: var(--step-0);
  list-style: none;
  padding: 0;
}

.site-foot__nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-foot__legal {
  padding-block: var(--step-1);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.site-foot__legal a {
  color: inherit;
}

@media (max-width: 1099px) {
  .nav-toggle {
    display: inline-flex;
  }

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

  .nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
  }

  .nav.is-open {
    max-height: 40rem;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-block: var(--step-0) var(--step-1);
  }

  .nav > ul > .nav__item {
    border-bottom: 1px solid var(--rule);
  }

  .nav a {
    display: block;
    padding-block: 0.85em;
  }

  .nav a::after,
  .nav__item--has-children::after {
    display: none;
  }

  .nav__item .nav__submenu {
    position: static;
    min-width: 0;
    display: flex;
    transform: none;
    margin-top: 0;
    margin-left: var(--step-1);
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--rule);
    border-radius: 0;
    padding: 0 0 0.25rem 0.75rem;
  }

  .nav__submenu a {
    padding-block: 0.5em;
    font-size: 0.9rem;
  }

}

@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  .nav {
    transition: max-height 0.3s ease;
  }
}

/* Selected work index page */

.work-list {
  position: relative;
  padding-block: var(--step-2);
}

.work-list__intro {
  margin-top: var(--step-1);
  color: var(--ink-muted);
  max-width: 55ch;
}

.work-rows {
  margin-top: var(--step-1);
}

.work-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--step-1);
  padding-block: var(--step-2);
  padding-inline: var(--step-0);
  margin-inline: calc(var(--step-0) * -1);
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  border-radius: 0.75rem;
}

.work-rows > a:last-child {
  border-bottom: 1px solid var(--rule);
}

.work-row__index {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-500);
}

.work-row__thumb {
  display: block;
  flex: 0 0 auto;
  width: 5rem;
  aspect-ratio: 4 / 3;
  border-radius: 0.5rem;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.6);
}

.work-row__title {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 600;
  max-width: 26ch;
  flex: 1 1 auto;
}

.work-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3em;
  flex: 0 0 auto;
  max-width: 28ch;
  text-align: right;
}

.work-row__meta-item {
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.work-row__meta-item:first-child {
  color: var(--brand-700);
  font-weight: 600;
}

.work-row__arrow {
  flex: 0 0 auto;
  font-size: 1.25rem;
  color: var(--brand-500);
  opacity: 0;
  transform: translateX(-6px);
}

@media (prefers-reduced-motion: no-preference) {
  .work-row__title,
  .work-row,
  .work-row__thumb,
  .work-row__arrow {
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, filter 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
  }
}

.work-row:hover,
.work-row:focus-visible {
  border-color: var(--brand-500);
  background-color: var(--brand-50);
}

.work-row:hover .work-row__title,
.work-row:focus-visible .work-row__title {
  color: var(--brand-700);
}

.work-row:hover .work-row__thumb,
.work-row:focus-visible .work-row__thumb {
  filter: grayscale(0);
}

.work-row:hover .work-row__arrow,
.work-row:focus-visible .work-row__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Desktop / mouse: a single floating card follows the cursor and swaps
   content per row, so nothing shifts the row layout itself. It carries
   the case study's summary (not just a bigger copy of the row's own
   thumbnail) so hovering surfaces new information. */
.work-list__preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 19rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 24px 48px rgba(50, 50, 50, 0.22);
}

.work-list__preview-image {
  aspect-ratio: 16 / 10;
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.work-list__preview-body {
  padding: var(--step-0);
}

.work-list__preview-summary {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.work-list__preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.75em;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-700);
}

@media (prefers-reduced-motion: no-preference) {
  .work-list__preview {
    transition: opacity 0.3s ease;
  }
}

.work-list__preview.is-visible {
  opacity: 1;
}

/* Touch and narrow viewports: no hover, so show a static thumbnail in
   the row instead of the floating preview. */
@media (max-width: 799px), (hover: none) {
  .work-list {
    min-height: 0;
  }

  .work-list__preview {
    display: none;
  }

  .work-row {
    flex-wrap: wrap;
  }

  .work-row__title {
    font-size: var(--step-2);
    max-width: none;
  }

  .work-row__meta {
    align-items: flex-start;
    text-align: left;
  }

  .work-row__thumb {
    position: relative;
    display: block;
    order: 3;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    margin-top: var(--step-1);
    background-color: var(--ink);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: none;
  }

  .work-row__arrow {
    display: none;
  }
}

/* Case study */

.case-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 60vh;
  margin-top: calc(-1 * var(--step-2));
  padding-block: var(--step-2) var(--step-3);
  color: var(--surface);
}

.case-hero__back-row {
  position: relative;
  z-index: 2;
}

.case-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .case-hero__back {
    transition: gap 0.2s ease, background-color 0.2s ease;
  }
}

.case-hero__back:hover,
.case-hero__back:focus-visible {
  background: rgba(0, 0, 0, 0.55);
  gap: 0.75em;
}

.case-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

@media (prefers-reduced-motion: no-preference) {
  .case-hero__media {
    transition: opacity 0.2s ease;
  }
}

.case-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.1) 100%);
}

.case-hero__inner {
  position: relative;
  z-index: 2;
}

.case-hero__inner .eyebrow {
  color: var(--brand-100);
}

.case-hero__inner .eyebrow::before {
  background: var(--brand-100);
}

.case-hero__title {
  margin-top: var(--step-0);
  font-size: var(--step-headline);
  color: var(--surface);
  max-width: 20ch;
}

.case-hero__client {
  margin-top: var(--step-0);
  font-weight: 600;
  color: var(--brand-100);
}

.case-hero__note {
  display: inline-block;
  margin-top: var(--step-1);
  padding: 0.4em 0.85em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--surface);
}

.case-hero__note[hidden] {
  display: none;
}

.case-lead {
  padding-top: var(--step-2);
}

.case-lead__text {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  max-width: 48ch;
}

.case-meta {
  padding-block: var(--step-3);
}

.case-meta__panel {
  padding: var(--step-2);
  border: 1px solid var(--rule);
  border-radius: 1rem;
}

.case-meta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gutter);
}

.case-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding-left: var(--step-1);
  border-left: 2px solid var(--brand-500);
}

.case-meta__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.case-meta__value {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 799px) {
  .case-meta__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--step-1) var(--gutter);
  }
}

.case-intro-image {
  padding-bottom: var(--step-2);
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--step-1);
  padding-bottom: var(--step-2);
}

.case-gallery__item {
  margin: 0;
}

.case-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.6rem;
  object-fit: cover;
}

.case-gallery__item figcaption {
  margin-top: 0.6em;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

@media (max-width: 799px) {
  .case-gallery {
    grid-template-columns: 1fr;
  }
}

.case-body {
  padding-bottom: var(--step-3);
}

.case-panels {
  display: grid;
  grid-template-columns: minmax(14rem, 22%) 1fr;
  gap: var(--step-2);
  align-items: start;
}

.case-panels__tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  position: sticky;
  top: var(--step-1);
}

.case-panels__tab {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  padding-block: var(--step-1);
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  font: inherit;
  text-align: left;
  color: var(--ink-muted);
  cursor: pointer;
}

.case-panels__tab-index {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-500);
}

.case-panels__tab-label {
  font-size: 1.05rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .case-panels__tab-label,
  .case-panels__tab-index {
    transition: color 0.2s ease;
  }
}

.case-panels__tab:hover .case-panels__tab-label,
.case-panels__tab:hover .case-panels__tab-index {
  color: var(--brand-700);
}

.case-panels__tab.is-active {
  color: var(--ink);
}

.case-panels__tab.is-active .case-panels__tab-label {
  color: var(--ink);
}

.case-panels__tab.is-active .case-panels__tab-index {
  color: var(--brand-700);
}

.case-panels__panels {
  min-width: 0;
  padding-left: var(--step-2);
  border-left: 2px solid var(--brand-500);
}

.case-panels__panel h3 {
  font-size: var(--step-1);
  color: var(--ink);
  margin-bottom: 0.6em;
}

.case-panels__body {
  color: var(--ink-muted);
  max-width: var(--measure);
}

@media (max-width: 799px) {
  .case-panels {
    grid-template-columns: 1fr;
  }

  .case-panels__tabs {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    border-top: 0;
  }

  .case-panels__tab {
    flex: 1 1 auto;
    border-bottom: 2px solid var(--rule);
    padding-block: var(--step-0);
    justify-content: center;
  }

  .case-panels__tab.is-active {
    border-bottom-color: var(--brand-500);
  }

  .case-panels__panels {
    padding-left: 0;
    border-left: 0;
    padding-top: var(--step-1);
  }
}

.case-inline-image {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-block: var(--step-1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .case-inline-image {
    transition: opacity 0.2s ease;
  }
}

.case-inline-image.is-contain {
  background-size: contain;
  background-color: var(--brand-50);
}

.case-inline-image--full {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  aspect-ratio: 16 / 7;
  border-radius: 0;
}


.case-presentation {
  padding-block: 0 var(--step-3);
}

.case-presentation__card {
  display: flex;
  align-items: center;
  gap: var(--step-1);
  max-width: 30rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.case-presentation__icon {
  display: flex;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--brand-50);
  color: var(--brand-700);
}

.case-presentation__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.case-presentation__text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.case-presentation__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.case-presentation__title {
  margin-top: 0.15em;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-presentation__link {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-700);
}

@media (prefers-reduced-motion: no-preference) {
  .case-presentation__card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
}

.case-presentation__card:hover,
.case-presentation__card:focus-visible {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

.case-related {
  padding-bottom: var(--step-3);
}

.case-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  margin-top: var(--step-1);
  margin-bottom: var(--step-2);
}

.case-related__item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.case-related__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0.6rem;
  overflow: hidden;
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: var(--step-0);
}

.case-related__item h3 {
  font-size: var(--step-1);
  margin-bottom: 0.3em;
}

@media (prefers-reduced-motion: no-preference) {
  .case-related__media {
    transition: transform 0.4s ease;
  }

  .case-related__item:hover .case-related__media,
  .case-related__item:focus-visible .case-related__media {
    transform: scale(1.03);
  }
}

@media (max-width: 799px) {
  .case-related__grid {
    grid-template-columns: 1fr;
  }
}

/* Get in touch */

.contact-lead {
  padding-block: var(--step-3) var(--step-2);
}

.contact-lead__text {
  margin-top: var(--step-1);
  color: var(--ink-muted);
  font-size: var(--step-1);
  max-width: 55ch;
}

.contact-main {
  padding-block: var(--step-2) var(--step-3);
}

.contact-main__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--gutter);
  align-items: start;
}

.contact-form {
  max-width: 34rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: var(--step-1);
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.form-field input,
.form-field textarea {
  padding: 0.75em 1em;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--brand-700);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-width: 2px;
  border-color: var(--ink);
  background-image: repeating-linear-gradient(135deg, rgba(50, 50, 50, 0.04) 0 6px, transparent 6px 12px);
}

.form-error {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.form-status {
  margin-bottom: var(--step-1);
  padding: var(--step-1);
  border-radius: 0.5rem;
  font-weight: 600;
}

.form-status--error {
  border: 2px solid var(--ink);
  background: var(--brand-50);
  color: var(--ink);
}

.form-status--success {
  border: 2px solid var(--brand-700);
  background: var(--brand-50);
  color: var(--brand-700);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--step-1);
  padding: 0.9em 1.7em;
  border: 0;
  border-radius: 999px;
  background: var(--brand-500);
  color: var(--surface);
  font-size: var(--step-1);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .form-submit {
    transition: background-color 0.2s ease;
  }
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--brand-700);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--step-2);
  padding: var(--step-2);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--brand-50);
}

.contact-details__address {
  margin-top: var(--step-1);
  font-style: normal;
  color: var(--ink-muted);
  line-height: 1.5;
}

.contact-details__list {
  list-style: none;
  padding: 0;
  margin-top: var(--step-1);
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.contact-details__list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.contact-details__list a:hover,
.contact-details__list a:focus-visible {
  color: var(--brand-700);
}

.contact-details__map {
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  filter: grayscale(0.3) contrast(1.05);
}

.contact-details__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 899px) {
  .contact-main__grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    max-width: none;
  }
}
