/* Shared product-and-role section for portfolio cases. */
.case-template .product-role {
  min-height: 900px;
  padding: 0 64px 64px;
  border-top: 1px solid var(--line);
  background: #eef0ed;
}

.case-template .section-kicker {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4a5256;
  font-size: 12px;
  font-weight: 750;
}

.case-template .product-role-grid {
  min-height: 748px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}

.case-template .product-story {
  padding: 64px 72px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-template .product-story h2 {
  max-width: 700px;
  margin: 0;
  font-size: 68px;
  line-height: 1.02;
  font-weight: 800;
}

.case-template .product-lead {
  max-width: 690px;
  margin: 40px 0 0;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 650;
}

.case-template .product-description {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.case-template .product-highlight {
  width: 100%;
  max-width: 690px;
  min-height: 122px;
  margin-top: auto;
  padding: 24px 28px;
  border: 1px solid var(--ink);
  background: var(--case-product-highlight);
  color: var(--case-product-highlight-ink, var(--ink));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.case-template .product-highlight strong {
  white-space: nowrap;
  font-size: 43px;
  line-height: 1;
}

.case-template .product-highlight span {
  max-width: 235px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
}

.case-template .role-scope {
  padding: 64px 0 0 64px;
  border-left: 1px solid var(--line);
}

.case-template .project-facts {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.case-template .project-facts div {
  min-height: 96px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 20px;
}

.case-template .project-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.case-template .project-facts dd {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
}

.case-template .responsibilities {
  margin-top: 52px;
}

.case-template .responsibilities h3 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.case-template .responsibilities ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.case-template .responsibilities li {
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

.case-template .responsibilities li::before {
  width: 6px;
  height: 6px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--case-responsibility-dot, var(--case-product-highlight));
  content: "";
  flex: 0 0 auto;
}

@media (max-width: 1279px) {
  .case-template .product-role {
    min-height: 0;
    padding: 0 20px 64px;
  }

  .case-template .section-kicker {
    min-height: 70px;
  }

  .case-template .section-kicker span:last-child {
    display: none;
  }

  .case-template .product-role-grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .case-template .product-story {
    min-width: 0;
    padding: 52px 0 0;
  }

  .case-template .product-story h2 {
    font-size: 44px;
    overflow-wrap: anywhere;
  }

  .case-template .product-lead {
    margin-top: 32px;
    font-size: 22px;
  }

  .case-template .product-description {
    font-size: 16px;
  }

  .case-template .product-highlight {
    min-height: 150px;
    margin-top: 44px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .case-template .product-highlight strong {
    font-size: 38px;
  }

  .case-template .role-scope {
    min-width: 0;
    margin-top: 56px;
    padding: 0;
    border-left: 0;
  }

  .case-template .project-facts div {
    grid-template-columns: 112px 1fr;
  }

  .case-template .project-facts dd {
    font-size: 19px;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .case-template .product-role {
    padding-right: 48px;
    padding-left: 48px;
  }

  .case-template .product-story {
    max-width: 820px;
  }

  .case-template .product-story h2 {
    font-size: 52px;
  }
}
