/* ──────────────────────────────────────────────────────────
   Project Showcase Index, Portfolio Gallery Layout
   Distinct DNA from testimonials. Sidebar + image-forward.
   ────────────────────────────────────────────────────────── */

:root {
  --ps-ink: #1a1a1a;
  --ps-paper: #fbfaf6;
  --ps-rule: rgba(0, 0, 0, 0.12);
  --ps-muted: rgba(0, 0, 0, 0.58);
}

/* ── Editorial Hero ─────────────────────────────────────── */

.ps-hero {
  background: var(--ps-paper);
  border-bottom: 1px solid var(--ps-rule);
  padding: 25vh 30px 56px;
}

.ps-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: end;
}

.ps-hero-eyebrow {
  display: inline-block;
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--new-green, #094c11);
  margin-bottom: 18px;
}

.ps-hero-title {
  font-family: Pertili, "Bitter", serif;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--ps-ink);
  text-align: left;
}

.ps-hero-title em {
  font-style: italic;
  color: var(--new-green, #094c11);
}

.ps-hero-lede {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ps-muted);
  max-width: 540px;
  margin: 0;
}

.ps-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
  border-left: 1px solid var(--ps-rule);
  padding-left: 40px;
}

.ps-stat {
  display: flex;
  flex-direction: column;
}

.ps-stat-num {
  font-family: Pertili, "Bitter", serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--new-green, #094c11);
  margin-bottom: 6px;
}

.ps-stat-label {
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

@media (max-width: 991px) {
  .ps-hero { padding: 25vh 24px 48px; }
  .ps-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ps-hero-stats {
    border-left: 0;
    border-top: 1px solid var(--ps-rule);
    padding-left: 0;
    padding-top: 32px;
  }
}

@media (max-width: 479px) {
  .ps-hero { padding: 44px 18px 36px; }
  .ps-stat-num { font-size: 2rem; }
  .ps-stat-label { font-size: 0.7rem; }
  .ps-hero-stats { gap: 22px 16px; }
}

/* ── Gallery Section: Sidebar + Asymmetric Cards ────────── */

.ps-gallery {
  background: #fff;
  padding: 72px 30px;
  border-bottom: 1px solid var(--ps-rule);
}

.ps-gallery-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.ps-sidebar {
  position: sticky;
  top: 100px;
}

.ps-sidebar-label {
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ps-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ps-rule);
}

.ps-sidebar .showcase-filters {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
}

.ps-sidebar .showcase-filter {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ps-ink);
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border-left: 2px solid transparent;
}

.ps-sidebar .showcase-filter:hover {
  background: rgba(9, 76, 17, 0.06);
  color: var(--new-green, #094c11);
}

.ps-sidebar .showcase-filter.active {
  background: rgba(9, 76, 17, 0.08);
  color: var(--new-green, #094c11);
  border-left-color: var(--new-green, #094c11);
}

/* ── Asymmetric grid: feature, then two stacked ─────────── */

.ps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

.ps-grid .showcase-card {
  grid-column: span 3;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  position: relative;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ps-grid .showcase-card.is-feature {
  grid-column: span 6;
}

.ps-grid .showcase-card.is-feature .showcase-card-img {
  aspect-ratio: 16 / 9;
}

.ps-grid .showcase-card.is-feature .showcase-card-title,
.ps-grid .showcase-card.is-feature .showcase-card-title a {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1.1;
}

.ps-grid .showcase-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.ps-grid .showcase-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ps-grid .showcase-card:hover .showcase-card-img::after {
  opacity: 1;
}

.ps-grid .showcase-card-img img {
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ps-grid .showcase-card:hover .showcase-card-img img {
  transform: scale(1.04);
}

.ps-grid .showcase-card-body {
  padding: 20px 0 8px;
}

.ps-grid .showcase-card-title,
.ps-grid .showcase-card-title a {
  font-family: Pertili, "Bitter", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.18;
  margin: 6px 0 12px;
  color: var(--ps-ink);
}

.ps-grid .case-study-tag {
  background: transparent;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

/* Reveal on scroll */
.ps-reveal {
  opacity: 0;
  transform: translateY(14px);
}
.ps-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (max-width: 991px) {
  .ps-gallery { padding: 56px 24px; }
  .ps-gallery-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ps-sidebar {
    position: static;
  }
  .ps-sidebar .showcase-filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ps-sidebar .showcase-filter {
    border-left: 0;
    border: 1px solid var(--ps-rule);
    padding: 7px 14px;
  }
  .ps-sidebar .showcase-filter.active {
    border-color: var(--new-green, #094c11);
  }
  .ps-grid { gap: 24px; }
  .ps-grid .showcase-card,
  .ps-grid .showcase-card.is-feature {
    grid-column: span 6;
  }
  .ps-grid .showcase-card.is-feature .showcase-card-title,
  .ps-grid .showcase-card.is-feature .showcase-card-title a {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .ps-gallery { padding: 44px 18px; }
  .ps-grid .showcase-card-title { font-size: 1.25rem; }
}

/* ── Generic section scaffolding ────────────────────────── */

.ps-section {
  padding: 84px 30px;
  background: #fff;
}

.ps-section.is-tint {
  background: var(--ps-paper);
  border-top: 1px solid var(--ps-rule);
  border-bottom: 1px solid var(--ps-rule);
}

.ps-section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.ps-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.ps-section-head h2 {
  font-family: Pertili, "Bitter", serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin: 12px 0 0;
  color: var(--ps-ink);
}

.ps-section-eyebrow {
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--new-green, #094c11);
}

.ps-section-blurb {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ps-muted);
  margin: 0;
  max-width: 480px;
  justify-self: end;
}

@media (max-width: 767px) {
  .ps-section { padding: 56px 18px; }
  .ps-section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  .ps-section-blurb { justify-self: start; }
}

/* ── Services Grid ──────────────────────────────────────── */

.ps-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ps-rule);
  border: 1px solid var(--ps-rule);
}

.ps-service {
  background: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
  position: relative;
  min-height: 220px;
}

.ps-service:hover {
  background: var(--ps-paper);
}

.ps-service-num {
  font-family: Montserrat, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ps-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.ps-service h3 {
  font-family: Pertili, "Bitter", serif;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ps-ink);
}

.ps-service p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ps-muted);
  margin: 0 0 22px;
  flex: 1;
}

.ps-service-arrow {
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--new-green, #094c11);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ps-service-arrow::after {
  content: "→";
  transition: transform 0.3s ease;
}

.ps-service:hover .ps-service-arrow::after {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .ps-services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .ps-services { grid-template-columns: 1fr; }
  .ps-service { padding: 28px 22px; min-height: 0; }
  .ps-service h3 { font-size: 1.35rem; }
}

/* ── Materials & Brands — editorial spec sheet ──────────── */

.ps-materials {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ps-rule);
}

.ps-material {
  display: grid;
  grid-template-columns: 180px minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 32px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--ps-rule);
  align-items: baseline;
  transition: background 0.25s ease, padding 0.25s ease;
  position: relative;
}

.ps-material::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--new-green, #094c11);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ps-material:hover {
  background: rgba(9, 76, 17, 0.025);
  padding-left: 20px;
}

.ps-material:hover::before {
  opacity: 1;
}

.ps-material-tag {
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--new-green, #094c11);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ps-material-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.ps-material-name {
  font-family: Pertili, "Bitter", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
  margin: 0;
  color: var(--ps-ink);
}

.ps-material p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ps-muted);
  margin: 0;
  max-width: 56ch;
}

@media (max-width: 991px) {
  .ps-material {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 8px;
  }
  .ps-material:hover { padding-left: 8px; }
  .ps-material:hover::before { opacity: 0; }
  .ps-material-name { font-size: 1.5rem; }
}

/* ── Process Steps ──────────────────────────────────────── */

.ps-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: ps-step;
}

.ps-step {
  position: relative;
  padding: 32px 28px 32px 0;
  border-top: 1px solid var(--ps-rule);
}

.ps-step + .ps-step {
  padding-left: 32px;
  border-left: 1px solid var(--ps-rule);
}

.ps-step-num {
  font-family: Pertili, "Bitter", serif;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(9, 76, 17, 0.18);
  margin-bottom: 14px;
}

.ps-step h3 {
  font-family: Pertili, "Bitter", serif;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ps-ink);
}

.ps-step p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ps-muted);
  margin: 0;
}

@media (max-width: 991px) {
  .ps-process { grid-template-columns: repeat(2, 1fr); }
  .ps-step + .ps-step { padding-left: 28px; }
  .ps-step:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 479px) {
  .ps-process { grid-template-columns: 1fr; }
  .ps-step,
  .ps-step + .ps-step {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Locations served ───────────────────────────────────── */

.ps-locations {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.ps-locations-prose p {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ps-muted);
  margin: 0 0 18px;
}

.ps-locations-prose .ps-origin {
  display: inline-block;
  background: rgba(9, 76, 17, 0.06);
  border-left: 3px solid var(--new-green, #094c11);
  padding: 14px 18px;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ps-ink);
}

.ps-locations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.ps-locations-list li {
  display: flex;
  position: relative;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.ps-locations-list.is-visible li {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ps-locations-list a {
  display: inline-flex;
  align-items: center;
  padding: clamp(10px, 1vw, 14px) clamp(18px, 2vw, 24px);
  background: #fff;
  border: 1px solid var(--ps-rule);
  border-radius: 999px;
  font-family: Pertili, "Bitter", serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ps-ink);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ps-locations-list a:hover {
  background: var(--new-green, #094c11);
  border-color: var(--new-green, #094c11);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(9, 56, 15, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .ps-locations-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 991px) {
  .ps-locations { grid-template-columns: 1fr; gap: 36px; }
}

/* ── CTA Strip ──────────────────────────────────────────── */

.ps-cta-strip {
  background: var(--new-green, #094c11);
  color: #fff;
  padding: 64px 30px;
}

.ps-cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.ps-cta-inner h2 {
  font-family: Pertili, "Bitter", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}

.ps-cta-inner p {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-width: 540px;
}

.ps-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #fff;
  color: var(--new-green, #094c11);
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ps-cta-btn.is-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

.ps-cta-btn:hover {
  transform: translateY(-1px);
}

.ps-cta-btn.is-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}

.ps-cta-btn::after {
  content: "→";
  margin-left: 18px;
}

@media (max-width: 991px) {
  .ps-cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .ps-cta-strip { padding: 48px 24px; }
}
