/* The complete expertise introduction is one viewport-sized editorial spread. */
.service-chapters > .expertise-overview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2svh, 24px) clamp(24px, 3.4vw, 64px);
  height: 100svh;
  min-height: 100svh;
  padding-top: var(--header-clearance);
  padding-bottom: clamp(64px, 8svh, 84px);
  background: #000;
  color: #fff;
}
.expertise-overview > .case-opening--expertise,
.expertise-overview > .service-chapters__combined,
.expertise-overview .service-chapters__row,
.expertise-overview .service-chapters__details { display: contents; }
.expertise-overview .case-opening--expertise::after,
.expertise-overview .case-opening--expertise > .scroll-indicator,
.expertise-overview .case-gallery-track__start,
.expertise-overview .case-gallery-track__end { display: none; }
.expertise-overview .case-opening__toolbar,
.expertise-overview .case-opening__caption {
  position: static;
  inset: auto;
  grid-column: 1 / -1;
  height: auto;
  padding: 0;
}
.expertise-overview .case-opening__toolbar { grid-row: 1; min-height: 28px; }
.expertise-overview .case-opening__caption {
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 64px);
  align-items: center;
}
.expertise-overview .case-opening__caption h1 {
  font-size: clamp(28px, min(2.8vw, 4.6svh), 48px);
  line-height: 1.08;
  white-space: normal;
  text-wrap: balance;
  color: var(--coral);
}
.expertise-overview .case-opening__description p {
  max-width: 42ch;
  margin-left: auto;
  font-size: clamp(14px, min(1.05vw, 1.9svh), 18px);
  line-height: 1.5;
}
.expertise-overview .case-opening__media {
  position: relative;
  inset: auto;
  grid-column: 1 / 6;
  grid-row: 3;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  z-index: auto;
  background: transparent;
}
.expertise-overview .case-opening__media :is(img, video) { object-fit: contain; object-position: left center; }
.expertise-overview .service-chapters__narrative { min-width: 0; }
.expertise-overview .service-chapters__narrative--approach {
  grid-column: 6 / 13;
  grid-row: 3;
  align-self: center;
}
.expertise-overview .type-content-title {
  margin: 0 0 clamp(8px, 1.2svh, 14px);
  font-size: clamp(22px, min(2vw, 3.6svh), 36px);
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.expertise-overview .service-chapters__approach-copy p,
.expertise-overview .service-chapters__narrative > p {
  margin: 0;
  font-size: clamp(14px, min(1vw, 1.9svh), 17px);
  line-height: 1.5;
  text-wrap: pretty;
}
.expertise-overview .service-chapters__photo {
  display: grid;
  grid-column: 1 / 6;
  grid-row: 4;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.expertise-overview .service-chapters__photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: left center; }
.expertise-overview .service-chapters__details-copy {
  display: grid;
  grid-column: 6 / 13;
  grid-row: 4;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 64px);
  align-self: center;
  align-items: start;
  min-width: 0;
}
.expertise-overview .capabilities-list {
  display: grid;
  gap: clamp(3px, .5svh, 6px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.expertise-overview .capabilities-list li {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 10px;
  justify-content: initial;
  padding: 0;
  border: 0;
  font-size: clamp(14px, min(1vw, 1.9svh), 17px);
  line-height: 1.4;
}
.expertise-overview .capabilities-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: .58em;
  border-radius: 50%;
  background: var(--coral);
}
.expertise-overview .service-chapters__combined > .scroll-indicator { position: absolute; right: 0; bottom: 20px; left: 0; margin-inline: auto; }
/* Match project cards: the column sets the image width, with height following its ratio. */
.service-chapters .case-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
.service-chapters .case-related__image { width: 100%; height: auto; min-width: 0; }
.service-chapters .case-related__grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.service-chapters .case-related__grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-chapters .case-related__caption h3 { display: flex; align-items: baseline; gap: .35em; }
.service-chapters .case-related__arrow { flex: 0 0 .78em; margin-left: 0; }


/* Keep the complete copy readable when the viewport cannot hold a desktop spread. */
@media (max-width: 1000px), (max-height: 700px) {
  .service-chapters > .expertise-overview {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto;
    row-gap: 28px;
  }
  .expertise-overview .case-opening__caption { grid-template-columns: 1fr; gap: 12px; }
  .expertise-overview .case-opening__description { text-align: left; }
  .expertise-overview .case-opening__description p { max-width: 60ch; margin-left: 0; }
  .expertise-overview .case-opening__media { grid-column: 1; grid-row: 3; height: auto; aspect-ratio: 16 / 9 !important; }
  .expertise-overview .service-chapters__photo { grid-column: 2; grid-row: 3; height: auto; }
  .expertise-overview .service-chapters__photo img { height: auto; align-self: center; }
  .expertise-overview .service-chapters__narrative--approach { grid-column: 1 / -1; grid-row: 4; }
  .expertise-overview .service-chapters__details-copy { grid-column: 1 / -1; grid-row: 5; }
  .expertise-overview .service-chapters__approach-copy p,
  .expertise-overview .service-chapters__narrative > p,
  .expertise-overview .capabilities-list li { font-size: 15px; }
}
@media (max-width: 700px) {
  .service-chapters > .expertise-overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(6, auto);
  }
  .expertise-overview .case-opening__caption h1 { font-size: 30px; }
  .expertise-overview .case-opening__media { grid-column: 1 / -1; }
  .expertise-overview .service-chapters__photo { grid-column: 1 / -1; grid-row: 5; }
  .expertise-overview .service-chapters__details-copy { grid-row: 6; grid-template-columns: 1fr; gap: 28px; }
  .service-chapters .case-related__grid,
  .service-chapters .case-related__grid[data-count="2"] { grid-template-columns: minmax(0, 1fr); }
  .service-chapters .case-related__card a { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: center; }
  .service-chapters .case-related__caption { min-width: 0; padding: 0; }
  .service-chapters .case-related__caption h3.type-card-title { font-size: clamp(20px, 5.5vw, 25px); }
}
