/* =========================================================
   Solid Core Digital — Valvepine Plumbing & Drain case study
   Loads after project.css (shared case-study template).
   Only the values where the Valvepine Figma frame (1440 × 4868) differs from the template.
   ========================================================= */

/* ---------- Hero ---------- */
.page-valvepine .phero__inner { min-height: 733px; }
@media (min-width: 1101px) {
  .page-valvepine .phero__copy { margin-top: 158px; }
  .page-valvepine .phero__visual { margin-top: 159px; }
  .page-valvepine .ppills { margin-left: 2px; }
  .page-valvepine .phero__inner { padding-bottom: 31.7px; }
}
.page-valvepine .phero__tag { font-weight: 500; }
.page-valvepine .phero__title { width: 493px; max-width: 100%; font-size: 60px; line-height: 68px; letter-spacing: -1.3px; }
.page-valvepine .ppills { margin-top: 19px; }
@media (min-width: 1101px) { .page-valvepine .phero__title { max-width: none; } }

/* ---------- Concept preview + context ---------- */
.page-valvepine .pctx { min-height: 1282px; padding-bottom: 0; }
.page-valvepine .concept-pill { border-width: 1px; padding: 0 13px; }
@media (min-width: 1200px) { .page-valvepine .lap2-wrap { translate: 0 0; } }
.page-valvepine .ctx { margin-top: 131.75px; }
.ctx__lead--medium { font-weight: 500; }
.page-valvepine .preserved--list { height: 238px; }
.page-valvepine .preserved--list .preserved__title { margin-bottom: 16px; }

/* ---------- Three key changes ---------- */
.page-valvepine .changes__inner { padding-top: 103px; padding-bottom: 25.2px; }
.page-valvepine .changes__head { margin-top: 20px; }
.page-valvepine .changes__grid { margin-top: 48px; }
.page-valvepine .change + .change .change__title { line-height: 24px; }
.page-valvepine .change__text--tight { line-height: 20px; }

.page-valvepine .pbub--tr { right: 1px; top: 9px; width: 170px; height: 162px; }
.page-valvepine .pbub--tr .pbub__ring { left: 8px; top: 0; width: 162px; height: 162px; border-width: .555px; }
.page-valvepine .pbub--tr .pbub__orb { left: 0; top: .4px; width: 129.7px; height: 120.5px; }
.page-valvepine .pbub--bl { left: 1px; top: auto; bottom: 7px; width: 151px; height: 145px; }
.page-valvepine .pbub--bl .pbub__ring { left: 0; top: 0; width: 140px; height: 140px; border-width: .555px; }
.page-valvepine .pbub--bl .pbub__orb { left: 51px; top: 45px; width: 100px; height: 100px; }

/* ---------- Specs · status · CTA · next project ---------- */
.page-valvepine .pspec { padding-top: 57px; padding-bottom: 78px; }
.page-valvepine .pspec__bg { top: 3px; bottom: 0; }
@media (min-width: 1280px) {
  .page-valvepine .spec-grid { margin-left: -16px; }
}
.spec__list li.spec__item--m450 { font-family: var(--f-body); font-weight: 450; }
.spec__list li.spec__item--i450 { font-weight: 450; }
.page-valvepine .status { margin-top: 59.52px; }
.page-valvepine .pcta { margin-top: 26.37px; }

.next--trench { margin-top: 45px; min-height: 522px; border: 1px solid #e5e7eb; padding-top: 0; padding-bottom: 0; }
.next--trench .next__bg { inset: 0; }
.next--trench .next__bg::before { content: none; }
/* Trenchspire services section as a dimmed backdrop; translateY is a % of the image's own height, so it stays on the same section at every width */
.next__bgimg {
  position: absolute; left: 0; top: 0; width: 100.2%; max-width: none; height: auto; opacity: .4; transform: translateY(-23.85%);
  /* stop at the end of the services section so taller (tablet/mobile) cards never show the next, lighter section */
  -webkit-mask-image: linear-gradient(180deg, #000 34.8%, transparent 36.2%); mask-image: linear-gradient(180deg, #000 34.8%, transparent 36.2%);
}
.next--trench .next__bg::after { inset: 0; background: rgba(0, 0, 0, .6); }
.next--trench .next__grid { margin: 95px 81px 0 31px; }
.next--trench .next__head { height: 52px; margin-bottom: 26px; }
.next--trench .next__title { font-size: 48px; line-height: 52px; letter-spacing: -1.15px; }
.next--trench .next__title a { padding-block: 0; }
.next__w900 { font-weight: 700; }
.next--trench .next__w700 { letter-spacing: -1.3px; }
.next--trench .next__text { min-height: 0; margin-bottom: 36px; }
.next--trench .next__thumb > img { height: 785.79%; object-fit: fill; } /* Figma squeezes this thumbnail vertically */
.pager--manrope .pager__text b { font-family: var(--f-body); font-weight: 700; }
.pager--manrope .pager__link--next .pager__text b { font-weight: 800; }
@media (min-width: 1280px) {
  .next--trench .pager { margin: 66.5px 94px 58px 18px; }
}

@media (max-width: 1279px) {
  .page-valvepine .change__title .br-desk, .page-valvepine .change__text .br-desk { display: none; }
  .page-valvepine .changes__inner { padding-bottom: 120px; }
  .page-valvepine .preserved--list { height: auto; min-height: 238px; }
  .next--trench .next__grid { margin: 72px 40px 0; }
  .next--trench .next__head { height: auto; margin-bottom: 16px; }
  .next--trench .next__title { font-size: 40px; line-height: 46px; }
  .next--trench .next__text { margin-bottom: 20px; }
  .next--trench .pager { margin-bottom: 48px; }
}
@media (max-width: 1023px) {
  .page-valvepine .pctx { min-height: 0; padding-bottom: 72px; }
  .page-valvepine .ctx { margin-top: 88px; }
  .page-valvepine .preserved--list { height: auto; }
  .page-valvepine .changes__inner { padding: 96px 24px 120px; }
  .page-valvepine .changes__head { margin-top: 24px; }
  .page-valvepine .changes__grid { margin-top: 44px; }
  .page-valvepine .pspec { padding-top: 72px; padding-bottom: 72px; }
  .page-valvepine .status { margin-top: 32px; }
  .page-valvepine .pcta { margin-top: 32px; }
  .next__bgimg { opacity: .25; }
}
@media (max-width: 767px) {
  .page-valvepine .phero__title { width: auto; font-size: clamp(40px, 11.5vw, 52px); line-height: 1.1; }
  .page-valvepine .pctx { padding-bottom: 56px; }
  .page-valvepine .ctx { margin-top: 56px; }
  .page-valvepine .preserved--list { min-height: 0; }
  .page-valvepine .changes__inner { padding: 72px 20px 110px; }
  .page-valvepine .pspec { padding: 56px 16px 48px; }
  .next--trench { margin-top: 32px; min-height: 0; }
  .next__bgimg { width: 190%; left: -45%; }
  .next--trench .next__grid { margin: 40px 20px 0; }
  .next--trench .next__title { font-size: 30px; line-height: 36px; }
  .next--trench .pager { margin: 32px 20px 28px; }
}

/* ≥1441: keep the blue wave anchored at the bottom of the light section, as in the 1440 frame */
@media (min-width: 1441px) {
  .page-valvepine .pspec__bg img { position: absolute; left: 0; width: 100%; height: auto; bottom: -21.3vw; object-fit: fill; }
}
