.site-header .container {
  justify-content: space-between;
}

.brand {
  font-size: var(--fs-nav);
  font-weight: 700;
  text-decoration: none;
}

.case {
  padding-block: clamp(1.5rem, 5vw, 4rem);
}

.case__hero {
  text-align: center;
}

.case__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1;
}

.case__title img {
  width: min(100%, 24rem);
  height: auto;
  margin-inline: auto;
}

.case__lead {
  max-width: 52ch;
  margin: 1.25rem auto 0;
  font-size: var(--fs-lead);
  line-height: 1.4;
}

.case__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
}

.case__facts dt {
  font-weight: 700;
  color: var(--c-text-muted);
}

.case__facts dd {
  margin: 0;
}

.case__section {
  max-width: 46rem;
  margin: clamp(3rem, 8vw, 6rem) auto 0;
}

.case__section h2 {
  margin-bottom: 1rem;
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-text-muted);
}

.case__section h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.case__section p,
.case__section li {
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

.case__section ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.case__figure {
  margin: 2.5rem auto 0;
}

.case__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
}

.case__figure figcaption {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}

.case__section--wide {
  max-width: var(--container);
}

.palette {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.palette th,
.palette td {
  padding: 0.5rem clamp(0.35rem, 2vw, 0.75rem);
  border-bottom: 1px solid var(--c-text-muted);
  text-align: left;
  font-weight: 400;
}

.palette th {
  font-weight: 700;
}

.swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  vertical-align: -0.15em;
  border: 1px solid var(--c-text);
  border-radius: 50%;
  background: var(--swatch);
}

.case__gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.case__gallery img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 28rem;
  filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.35));
}

.case__scroll {
  max-height: 40rem;
  margin-top: 1rem;
  overflow-y: auto;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
}

.case__scroll--narrow {
  max-width: 24rem;
  margin-inline: auto;
}

.case__scroll img {
  width: 100%;
  height: auto;
}

.case__hero .case__figure img {
  width: min(100%, 52rem);
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.35));
}

.case__banner img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.case__shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.case__shots img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.case__section .service-list {
  padding-left: 0;
  list-style: none;
}

.service-list li {
  padding: 1.25rem;
  border: 1px solid var(--c-text-muted);
  border-radius: var(--radius-m);
}

.service-list h3 {
  margin-top: 0;
}

.step-list {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  top: 0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 700;
}

.step-list h3 {
  margin-top: 0;
}

.case__section .link-list {
  padding-left: 0;
  list-style: none;
}

.link-list li + li {
  margin-top: 0.5rem;
}

.case__section p + p {
  margin-top: 1rem;
}
