/* Editorial content between the opening image and the enquiry form. */
:is(.services, .approach, .gallery, .process) {
  --section-space: clamp(66px, 7.5vw, 116px);
  --section-surface: #f4f3f0;
  --section-border: #e5e2dd;
  --section-radius: clamp(16px, 2vw, 26px);
}

.services.section-pad,
.approach.section-pad,
.gallery.section-pad {
  padding-block: var(--section-space) 0;
}

.process.section-pad {
  padding-block: var(--section-space) 0;
}

.gallery.section-pad {
  padding-bottom: var(--section-space);
}

.editorial-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .58fr);
  align-items: end;
  gap: 16px clamp(24px, 5vw, 72px);
  margin-bottom: clamp(24px, 3.3vw, 42px);
}

.editorial-heading h2,
.approach-copy h2 {
  font-size: clamp(36px, 4.1vw, 61px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.editorial-heading .section-intro {
  max-width: 39ch;
  margin: 0 0 2px;
  font-size: clamp(16px, 1.3vw, 18px);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 245px;
  padding: clamp(19px, 2.35vw, 36px);
  background: var(--section-surface);
  border: 1px solid var(--section-border);
  border-radius: var(--section-radius);
}

.service-card-top {
  --service-icon-size: clamp(41px, 4vw, 57px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.25vw, 18px);
  min-height: max(var(--service-icon-size), 2.3em);
  font-size: clamp(19px, 1.85vw, 27px);
}

.service-card-top h3 {
  min-width: 0;
  padding: 0;
  font-size: inherit;
  line-height: 1.15;
  hyphens: auto;
}

.service-card-icon {
  display: grid;
  flex-shrink: 0;
  width: var(--service-icon-size);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: #fff;
}

.service-card-icon .icon {
  width: 24px;
  height: 24px;
}

.service-card-description {
  max-width: 42ch;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.service-card-link,
.approach-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
}

.service-card-link {
  margin-top: auto;
}

.service-card-link .icon,
.approach-link .icon {
  width: 18px;
  height: 18px;
  color: var(--orange);
}

.service-card-link:hover span,
.approach-link:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.company-profile {
  width: min(var(--content), calc(100% - var(--pad) - var(--pad)));
  margin: clamp(24px, 4vw, 56px) auto 0;
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--radius-panel);
  background: var(--card);
}
.company-profile h2 { font-size: clamp(24px, 2.8vw, 38px); }
.company-profile dl {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin: 18px 0 0;
}
.company-profile dl > div { flex: 1 1 230px; min-width: 0; }
.company-profile dt { font-weight: 700; }
.company-profile dd { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }

.approach {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(26px, 6.3vw, 92px);
}

.approach-image {
  min-height: 0;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  border-radius: var(--section-radius);
}

.approach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% center;
}

.approach-copy {
  min-width: 0;
}

.approach-copy h2 {
  max-width: 15ch;
  text-wrap: balance;
}

.approach-copy .large-copy {
  max-width: 33ch;
  margin-top: 20px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.45;
}

.approach-copy .body-copy {
  max-width: 46ch;
  margin-top: 12px;
  color: var(--muted);
}

.approach-link {
  margin-top: 13px;
}

.gallery-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.gallery-heading h2 {
  max-width: 20ch;
  text-wrap: pretty;
}

.gallery-disclaimer {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
}

.gallery-card {
  position: relative;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--section-radius);
  background: #272521;
  color: #fff;
}

.gallery-photo {
  aspect-ratio: 3 / 2;
  border-radius: 0;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgb(17 14 12 / .88), transparent);
  pointer-events: none;
  content: "";
}

.gallery-card figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: clamp(16px, 2.5vw, 34px);
  pointer-events: none;
}

.gallery-card h3 {
  max-width: 29ch;
  color: inherit;
  font-size: clamp(17px, 1.9vw, 27px);
  font-weight: 650;
  line-height: 1.12;
  text-wrap: balance;
}

.process .editorial-heading {
  grid-template-columns: 1fr;
}

.process-icon-library {
  position: absolute;
}

.process-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
  padding: 5px;
  border-radius: 999px;
  background: var(--section-surface);
}

.process-switcher[hidden],
.process .step[hidden] {
  display: none;
}

.process-switcher button {
  display: flex;
  min-width: 0;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.process-switcher button .icon {
  width: 19px;
  height: 19px;
}

.process-switcher button span { overflow-wrap: anywhere; }

.process-switcher button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.process-switcher button[aria-selected="false"]:hover {
  background: #e8e5df;
}

.process-switcher button:focus-visible {
  outline-offset: -3px;
  outline-color: #bd5c3f;
}

.process .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
}

.process .step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  min-width: 0;
  padding: clamp(20px, 3.6vw, 54px);
  border: 1px solid var(--section-border);
  border-radius: var(--section-radius);
  background: var(--section-surface);
}

.step-info {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.step-info > div {
  min-width: 0;
}

.step-marker {
  display: grid;
  width: clamp(43px, 5vw, 67px);
  aspect-ratio: 1;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
}

.step-marker .icon {
  width: clamp(21px, 2.5vw, 29px);
  height: clamp(21px, 2.5vw, 29px);
}

.step .eyebrow {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 650;
}

.step-info h3 {
  line-height: 1.08;
  letter-spacing: -.035em;
}

.process .step .step-description {
  max-width: 53ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
}

.process.has-process-tabs .steps {
  display: block;
}

.process.has-process-tabs .step:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px clamp(24px, 5vw, 74px);
  min-height: 188px;
}

.process.has-process-tabs .step-info h3 {
  font-size: clamp(25px, 3vw, 42px);
}

@media (prefers-reduced-motion: no-preference) {
  .service-card-link .icon,
  .approach-link .icon {
    transition: transform .2s ease-out;
  }

  .service-card-link:hover .icon,
  .approach-link:hover .icon {
    transform: translateX(3px);
  }

  .gallery-photo img {
    transition: transform .65s cubic-bezier(.2, .7, .3, 1);
  }

  @media (hover: hover) and (pointer: fine) {
    .gallery-card:hover img {
      transform: scale(1.035);
    }
  }

  .process-switcher button {
    transition: color .2s, background-color .2s;
  }

  .process.has-process-tabs .step:not([hidden]) {
    animation: process-step-in .35s cubic-bezier(.2, .7, .3, 1) both;
  }
}

@keyframes process-step-in {
  from { opacity: .55; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 930px) {
  .service-cards,
  .process .steps {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .approach {
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    gap: clamp(20px, 4vw, 42px);
  }
}

@media (max-width: 690px) {
  .editorial-heading,
  .approach,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .approach-image {
    aspect-ratio: 16 / 11;
  }

  .approach-copy h2 {
    max-width: 18ch;
  }

  .process.has-process-tabs .step:not([hidden]) {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 174px;
  }
}

@media (max-width: 460px) {
  #service-1-title:lang(de) {
    inline-size: min-content;
    hyphens: none;
    overflow-wrap: break-word;
  }

  .process-switcher button {
    flex-direction: column;
    gap: 4px;
    min-height: 56px;
    font-size: 12px;
  }
}
