/* Client-approved base: precise fixes for real content, kept separate from the reference CSS. */
@media (min-width: 1280px) and (max-width: 1399px) {
  .site-primary-nav {
    gap: 0.65rem;
    font-size: 0.78rem;
  }

  .site-header-actions {
    gap: 0.5rem;
  }

  .site-header-actions > a:first-child {
    display: none;
  }

  .site-header-actions .btn {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
    font-size: 0.78rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .contact-footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-footer-layout > div {
    padding-right: 0;
    padding-left: 0;
  }

  .contact-footer-layout > :not([hidden]) ~ :not([hidden]) {
    border-left-width: 0;
  }
}

.client-logos-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.client-logos-heading > p:last-child {
  max-width: 38rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.client-logo-card {
  display: flex;
  min-width: 0;
  min-height: 8.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  color: #25282c;
  background: #fff;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.client-logo-card img {
  width: auto;
  max-width: 88%;
  height: 3.5rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.client-logo-card span {
  color: #595d62;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.client-logo-card:hover,
.client-logo-card:focus-visible {
  color: #111;
  background: #f7f4ef;
}

.client-logo-card:hover img,
.client-logo-card:focus-visible img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-0.15rem);
}

@media (min-width: 768px) {
  .client-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Internal pages share the same graphite, warm-white and orange system. */
.akk-inner {
  min-height: 60vh;
  color: var(--color-text);
  background: var(--color-bg);
}

.akk-page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(4rem, 7vw, 7rem);
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 78% 24%, rgba(243, 101, 0, 0.12), transparent 28rem),
    linear-gradient(135deg, #202327, #2d3136);
}

.akk-page-head::after {
  position: absolute;
  right: 4vw;
  bottom: -9rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(243, 101, 0, 0.24);
  border-radius: 50%;
  content: "";
}

.akk-page-head .section-shell {
  position: relative;
  z-index: 1;
}

.akk-page-head h1 {
  max-width: 72rem;
  margin-top: 2.5rem;
  color: var(--color-text);
  font-size: clamp(3rem, 6.4vw, 7rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.akk-breadcrumb,
.akk-section-index {
  color: var(--color-text-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.akk-breadcrumb a { color: var(--color-text); }
.akk-breadcrumb a:hover { color: var(--color-accent); }
.akk-lead,
.akk-page-head > .section-shell > div {
  max-width: 48rem;
  margin-top: 1.75rem;
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
}

.akk-article {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(5rem, 8vw, 9rem);
}

.akk-article__hero {
  margin-bottom: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}

.akk-article__hero img {
  width: 100%;
  max-height: 52rem;
  object-fit: cover;
}

.akk-article__grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 8rem);
}

.akk-article aside {
  align-self: start;
  padding-top: 1.2rem;
  border-top: 2px solid var(--color-accent);
  color: var(--color-text-light);
}

.akk-article aside span {
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.akk-article aside p { margin-top: 1.25rem; line-height: 1.65; }
.akk-prose { max-width: 60rem; color: var(--color-text-muted); font-size: 1.08rem; line-height: 1.85; }
.akk-prose > * + * { margin-top: 1.35rem; }
.akk-prose h2,
.akk-prose h3 { color: var(--color-text); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.akk-prose h2 { margin-top: 3.5rem; font-size: clamp(2rem, 3.8vw, 3.8rem); }
.akk-prose h3 { margin-top: 2.5rem; font-size: clamp(1.5rem, 2.2vw, 2.2rem); }
.akk-prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.25em; }
.akk-prose ul,
.akk-prose ol { display: grid; gap: 0.75rem; padding-left: 1.4rem; }
.akk-prose ul { list-style: disc; }
.akk-prose ol { list-style: decimal; }

.akk-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem 1.5rem;
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(5rem, 8vw, 9rem);
}

.akk-archive-card {
  min-width: 0;
  color: var(--color-text);
}

.akk-archive-card img {
  width: 100%;
  aspect-ratio: 1.3;
  border-radius: var(--radius-card);
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.4s ease;
}

.akk-archive-card:hover img { filter: brightness(1.08); transform: translateY(-0.2rem); }
.akk-archive-card > span { display: block; margin: 1.25rem 0 0.7rem; color: var(--color-text-light); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.akk-archive-card h2 { font-size: clamp(1.5rem, 2.2vw, 2.25rem); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.akk-archive-card p { margin: 1rem 0; color: var(--color-text-muted); line-height: 1.65; }
.akk-archive-card b { color: var(--color-accent); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; }
.am-inline-arrow { display: inline-flex; width: 1.35rem; height: 1.35rem; vertical-align: middle; }
.am-inline-arrow img { width: 100%; height: 100%; object-fit: contain; }

.akk-empty {
  grid-column: 1 / -1;
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}
.akk-empty h2 { font-size: clamp(2rem, 4vw, 4rem); font-weight: 800; line-height: 1; }
.akk-empty p { max-width: 44rem; margin-top: 1.25rem; color: var(--color-text-muted); line-height: 1.7; }
.akk-empty .btn { margin-top: 1.75rem; }

.am-search-form { max-width: 62rem; margin-top: 2.5rem; }
.am-search-form label { display: block; margin-bottom: 0.75rem; color: var(--color-text-light); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.am-search-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--color-border); background: var(--color-panel); }
.am-search-form input { min-width: 0; padding: 1.2rem 1.35rem; outline: none; }
.am-search-form button { padding: 1.2rem 1.5rem; color: #fff; background: var(--color-accent); font-weight: 800; }
.am-search-results { padding-top: 4rem; padding-bottom: 7rem; }
.am-search-results__head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; color: var(--color-text-light); }
.am-search-results .akk-archive-grid { padding-top: 3rem; padding-bottom: 0; }

.am-detail-grid,
.am-editorial-data__facts,
.am-case-passport__copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 4rem;
  background: var(--color-border);
}

.am-detail-grid article,
.am-editorial-data__facts article,
.am-case-passport__copy article {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-panel);
}

.am-detail-grid img { width: 2.75rem; height: 2.75rem; margin-bottom: 1.5rem; object-fit: contain; }
.am-detail-grid h3,
.am-editorial-data h3,
.am-case-passport h3 { font-size: 1.35rem; font-weight: 800; }
.am-detail-grid p,
.am-editorial-data p,
.am-case-passport p { margin-top: 0.9rem; color: var(--color-text-muted); line-height: 1.65; }

.am-detail-process,
.am-editorial-data,
.am-editorial-gallery,
.am-editorial-files,
.am-case-passport { margin-top: clamp(4rem, 8vw, 8rem); }
.am-detail-process h2,
.am-editorial-data h2,
.am-editorial-gallery h2,
.am-editorial-files h2,
.am-case-passport h2 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.am-detail-process > div:last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 2.5rem; background: var(--color-border); }
.am-detail-process article { padding: 2rem; background: var(--color-panel); }
.am-detail-process article > span { display: block; width: 2rem; height: 0.18rem; margin-bottom: 2rem; background: var(--color-accent); }
.am-detail-process p { margin-top: 0.8rem; color: var(--color-text-muted); line-height: 1.65; }

.am-detail-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; margin-top: 4rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(243, 101, 0, 0.35); background: rgba(243, 101, 0, 0.06); }
.am-detail-note > span { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border-radius: 50%; background: var(--color-text); }
.am-detail-note img { width: 1.8rem; height: 1.8rem; }
.am-detail-note h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); font-weight: 800; line-height: 1.1; }
.am-detail-note p { margin-top: 0.8rem; color: var(--color-text-muted); line-height: 1.7; }

.am-editorial-data__chips,
.am-case-passport ul { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.am-editorial-data__chips span,
.am-case-passport li { padding: 0.65rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-muted); }
.am-editorial-gallery > div:last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.am-editorial-gallery a { min-width: 0; }
.am-editorial-gallery img { width: 100%; aspect-ratio: 1.2; border-radius: var(--radius-card); object-fit: cover; }
.am-editorial-gallery span { display: block; margin-top: 0.75rem; color: var(--color-text-muted); }
.am-editorial-files > div:last-child { display: grid; gap: 0.75rem; margin-top: 2rem; }
.am-editorial-files a { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border: 1px solid var(--color-border); background: var(--color-panel); }
.am-editorial-files img { width: 2rem; height: 2rem; }
.am-editorial-files small { display: block; margin-top: 0.2rem; color: var(--color-text-light); }
.am-case-passport dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 2.5rem; background: var(--color-border); }
.am-case-passport dl > div { padding: 1.5rem; background: var(--color-panel); }
.am-case-passport dt { color: var(--color-text-light); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.am-case-passport dd { margin-top: 0.5rem; font-size: 1.2rem; font-weight: 800; }

.akk-inner + .contact-footer { margin: 0; border-radius: 0; }

#lead .lead-layout > * { min-width: 0; }
#lead h2.h-section { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 1023px) {
  .akk-article__grid { grid-template-columns: 1fr; gap: 3rem; }
  .akk-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-detail-grid,
  .am-editorial-data__facts,
  .am-case-passport__copy,
  .am-detail-process > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-editorial-gallery > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .client-logos-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .client-logo-card {
    min-height: 7.5rem;
    padding: 1rem;
  }

  .client-logo-card img {
    height: 2.75rem;
  }

  .client-logo-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .akk-page-head { padding: 3.5rem 0 3rem; }
  .akk-page-head::after { right: -12rem; }
  .akk-page-head h1 { margin-top: 1.75rem; font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .akk-archive-grid,
  .am-detail-grid,
  .am-editorial-data__facts,
  .am-case-passport__copy,
  .am-detail-process > div:last-child,
  .am-editorial-gallery > div:last-child,
  .am-case-passport dl { grid-template-columns: minmax(0, 1fr); }
  .am-search-form > div { grid-template-columns: 1fr; }
  .am-search-form button { justify-content: center; }
  .am-detail-note { grid-template-columns: 1fr; }
}
