/* MatStudio Projects v2.2.40 — editorial architectural accents.
   Page scoped: replaces the previous grid and contour accents only.
   No typography, content, project cards, gallery geometry or interactive elements changed.
*/
body.page-projects #main-content.ms-projects-page {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  background: #101011;
}

/* Asymmetric technical frame — deliberately lighter than the project artwork. */
body.page-projects .ms-projects-page .pf-hero {
  position: relative;
  isolation: isolate;
}
body.page-projects .ms-projects-page .pf-hero::before {
  content: "";
  position: absolute;
  top: 32px;
  right: calc((min(1240px, 86.3vw) - 100vw)/2 - 14px);
  width: clamp(380px, 49vw, 710px);
  height: 350px;
  z-index: -1;
  pointer-events: none;
  background: url('images/projects/projects-frame.svg') right top / contain no-repeat;
  opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 23%, #000 83%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 23%, #000 83%, transparent);
}

/* Registration ticks and hairline rule remain out in the gallery's gutter. */
body.page-projects .ms-projects-page .pf-list {
  position: relative;
  isolation: isolate;
}
body.page-projects .ms-projects-page .pf-list::before {
  content: "";
  position: absolute;
  top: 10px;
  left: calc((min(1240px, 86.3vw) - 100vw)/2);
  width: clamp(82px, 9.5vw, 150px);
  height: 530px;
  z-index: -1;
  pointer-events: none;
  background: url('images/projects/projects-rail.svg') left top / contain no-repeat;
  opacity: .68;
}
/* Right-side corner marks frame the breathing room, not project cards. */
body.page-projects .ms-projects-page .pf-list::after {
  content: "";
  position: absolute;
  right: calc((min(1240px, 86.3vw) - 100vw)/2);
  bottom: -12px;
  width: clamp(92px, 12vw, 178px);
  height: 175px;
  z-index: -1;
  pointer-events: none;
  background: url('images/projects/projects-corner.svg') right bottom / contain no-repeat;
  opacity: .58;
}

/* The dark CTA surface continues the same visual language as Services. */
body.page-projects .ms-projects-page .pf-cta {
  background: linear-gradient(90deg,#101011e8,#101011c9),
    url('images/home/homepage-slate-v213.webp') center / cover no-repeat;
}

@media (max-width: 1000px) {
  body.page-projects .ms-projects-page .pf-hero::before {
    width: 49vw;
    right: -7vw;
    top: 24px;
    opacity: .62;
  }
  body.page-projects .ms-projects-page .pf-list::before,
  body.page-projects .ms-projects-page .pf-list::after {
    opacity: .34;
  }
}
@media (max-width: 760px) {
  body.page-projects .ms-projects-page .pf-hero::before {
    width: 61vw;
    height: 270px;
    right: -10vw;
    top: 32px;
    opacity: .34;
    -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 80%);
    mask-image: linear-gradient(90deg, transparent 4%, #000 80%);
  }
  body.page-projects .ms-projects-page .pf-list::before,
  body.page-projects .ms-projects-page .pf-list::after { display: none; }
}
@media (max-width: 480px) {
  body.page-projects .ms-projects-page .pf-hero::before {
    width: 78vw;
    height: 205px;
    top: 24px;
    right: -16vw;
    opacity: .23;
  }
}
