.case-study-header .article-deck { max-width: 850px; }

.article-back-link {
  width: fit-content;
  margin: 0 0 30px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--copper-dark);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
}

.article-back-link__arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112, 65, 46, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease;
}

.article-back-link:hover .article-back-link__arrow,
.article-back-link:focus-visible .article-back-link__arrow {
  background: rgba(158, 92, 63, .10);
  transform: translateX(-3px);
}

.article-back-link:focus-visible {
  border-radius: 999px;
  outline: 2px solid var(--copper-dark);
  outline-offset: 4px;
}

.case-study-hero {
  position: relative;
  height: clamp(400px, 60vw, 690px);
}

.case-study-hero figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: min(480px, calc(100% - 36px));
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 18, 19, .76);
  backdrop-filter: blur(10px);
  font-size: 12px;
  line-height: 1.45;
}

.independent-installer-note {
  width: min(920px, calc(100% - 44px));
  margin: 24px auto 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(22, 143, 145, .22);
  border-radius: 18px;
  background: #eef3f1;
}

.independent-installer-note img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
}

.independent-installer-note p {
  margin: 0;
  color: #3b3f42;
  font-size: 14px;
  line-height: 1.65;
}

.independent-installer-note a { color: var(--copper-dark); }

.project-summary {
  width: min(var(--max), calc(100% - 44px));
  margin: clamp(30px, 5vw, 58px) auto 0;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  gap: clamp(30px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--soft-radius);
  background: #f1ebe5;
}

.project-summary__intro h2 {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.project-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-facts div {
  padding-top: 14px;
  border-top: 2px solid rgba(158, 92, 63, .48);
}

.project-facts dt {
  color: var(--copper-dark);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 8px 0 0;
  color: #3b3f42;
  font-size: 14px;
  line-height: 1.6;
}

.case-study-layout { width: min(1080px, calc(100% - 44px)); }

.case-figure {
  margin: 28px 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.case-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.case-figure figcaption {
  padding: 13px 16px 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.case-figure--wide img {
  max-height: 660px;
  object-position: center;
}

.case-figure--portrait {
  width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.case-figure--portrait img { max-height: none; }

.case-gallery {
  margin: 28px 0 40px;
  display: grid;
  gap: 16px;
}

.case-gallery .case-figure { margin: 0; }
.case-gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-gallery--surface { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-gallery--two .case-figure img { aspect-ratio: 4 / 5; }
.case-gallery--surface .case-figure img { aspect-ratio: 4 / 5; }
.case-gallery--results .case-figure img { aspect-ratio: 4 / 3; }

.case-gallery--results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-gallery--results-grid .case-figure img { aspect-ratio: 4 / 3; }
.case-gallery--results-grid .case-figure--full { grid-column: 1 / -1; }

.product-list {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-list > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.product-list strong {
  display: block;
  color: var(--ink);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 15px;
  line-height: 1.35;
}

.product-list span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.installer-quote {
  margin-top: 58px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--soft-radius);
  color: #fff;
  background: linear-gradient(135deg, #293638, #385c5d);
}

.installer-quote h2 {
  margin: 0 0 22px;
  color: #fff;
}

.installer-quote blockquote {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(24px, 3.3vw, 36px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.035em;
}

.installer-quote > p:last-child {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.project-video,
.installer-profile {
  margin-top: 58px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  border: 1px solid var(--line);
  border-radius: var(--soft-radius);
  background: #f1ebe5;
}

.article-body a.project-video {
  color: inherit;
  text-decoration: none;
  background: #fff;
  border-color: rgba(8, 102, 255, .24);
  box-shadow: 0 22px 60px rgba(8, 102, 255, .08);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.article-body a.project-video:hover {
  border-color: rgba(8, 102, 255, .44);
  box-shadow: 0 26px 70px rgba(8, 102, 255, .13);
  transform: translateY(-2px);
}

.article-body a.project-video:active { transform: translateY(0); }

.article-body a.project-video:focus-visible {
  outline: 3px solid #0866ff;
  outline-offset: 4px;
}

.project-video__media {
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.project-video__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-video__play {
  width: 64px;
  height: 64px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 102, 255, .88);
  box-shadow: 0 16px 40px rgba(8, 102, 255, .28);
  transform: translate(-50%, -50%);
}

.project-video__media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(8, 23, 47, .22));
  content: "";
}

.project-video__copy {
  padding: clamp(28px, 4vw, 44px);
  align-self: center;
}

.project-video__origin {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1c1e21;
}

.project-video__facebook-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
}

.project-video__facebook-mark img {
  width: 25px;
  height: 25px;
}

.project-video__origin > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.project-video__origin strong {
  color: #0866ff;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.project-video__origin small {
  color: #65676b;
  font-size: 12px;
  line-height: 1.35;
}

.project-video__copy h2,
.installer-profile h2 {
  margin: 0 0 16px;
  font-size: clamp(27px, 3vw, 38px);
}

.project-video__copy > p,
.installer-profile p:not(.section-label) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.installer-profile a {
  display: inline-flex;
  margin-top: 4px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.project-video__action {
  width: fit-content;
  min-height: 42px;
  margin-top: 5px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: #fff;
  background: #0866ff;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.project-video__destination {
  margin-top: 10px;
  display: block;
  color: #65676b;
  font-size: 11px;
  line-height: 1.4;
}

.installer-profile {
  grid-template-columns: 160px minmax(0, 1fr);
  padding: clamp(26px, 4vw, 38px);
  gap: clamp(24px, 4vw, 38px);
  align-items: center;
  background: #fff;
}

.installer-profile > img {
  width: 160px;
  height: 160px;
  border-radius: 22px;
  object-fit: contain;
  background: #fff;
}

.installer-takeaways {
  margin-top: 58px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(22, 143, 145, .22);
  border-radius: var(--soft-radius);
  background: #eef3f1;
}

.installer-takeaways h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 38px);
}

.installer-takeaways ul { margin-bottom: 0; }

.source-note {
  margin-top: 34px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-cta__actions a + a {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

@media (max-width: 760px) {
  .project-summary { grid-template-columns: 1fr; }
  .project-facts { grid-template-columns: 1fr; }
  .case-gallery--two,
  .case-gallery--surface,
  .case-gallery--results-grid,
  .product-list,
  .project-video,
  .installer-profile { grid-template-columns: 1fr; }
  .case-gallery--two .case-figure img,
  .case-gallery--surface .case-figure img { aspect-ratio: auto; }
  .case-gallery--results-grid .case-figure--full { grid-column: auto; }
  .project-video__media { min-height: 420px; }
  .project-video__copy { align-self: stretch; }
  .installer-profile > img { width: 112px; height: 112px; }
}

@media (max-width: 560px) {
  .case-study-hero { height: 340px; }
  .case-study-hero figcaption { right: 12px; bottom: 12px; }
  .project-summary { padding: 24px 20px; }
  .independent-installer-note { align-items: flex-start; padding: 16px; }
  .independent-installer-note img { width: 52px; height: 52px; }
  .project-video__media { min-height: 320px; }
  .project-video__copy { padding: 26px 22px 28px; }
  .project-video__action { width: 100%; }
  .installer-quote { padding: 26px 22px; }
}
