/* "Some of our favorite past projects" on /past-projects/ (scripts/lib/past-projects.mjs). */
.ppx {
  --ppx-orange: var(--seconday, #f26924);
  --ppx-ink: #111111;
  --ppx-muted: #4b5563;
  padding: 8px 0 56px;
  font-family: var(--robboto, Roboto), system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ppx-ink);
}
.ppx p {
  margin: 0;
}

/* The photo gallery under the project list (the Gallery page's work photos, merged in). */
.ppx__gallery {
  max-width: 1296px;
  margin: 72px auto 0;
  padding: 0 16px;
  scroll-margin-top: 120px;
}

/* Heading */
.ppx__head {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}
.ppx .ppx__eyebrow {
  margin-bottom: 10px;
  color: var(--ppx-orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ppx .ppx__title {
  margin: 0;
  /* the site's h2 rule sets a system font */
  font-family: inherit;
  color: var(--ppx-ink);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.ppx .ppx__intro {
  margin-top: 14px;
  color: var(--ppx-muted);
  font-size: 18px;
  line-height: 1.55;
}

/* Grid: one card per project. Phones: one column. Tablets: two, the first card across
   both. Computers: four columns, the first card a 2x2 tile:
     1 1 2 2
     1 1 3 4
     5 5 6 6 */
.ppx__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 320px;
  gap: 16px;
}
@media (min-width: 640px) {
  .ppx__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }
  .ppx-card--1 {
    grid-column: span 2;
    grid-row: span 2;
  }
  .ppx-card--6 {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .ppx__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
  }
  .ppx-card--2,
  .ppx-card--5,
  .ppx-card--6 {
    grid-column: span 2;
  }
}

/* Card: the photo fills it, the words sit on a dark fade at the bottom. */
.ppx-card {
  min-width: 0;
}
.ppx .ppx-card__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #1f2937;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ppx .ppx-card__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.2);
}
.ppx .ppx-card__link:focus-visible {
  outline: 3px solid var(--ppx-orange);
  outline-offset: 3px;
}
.ppx-card__media,
.ppx .ppx-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  /* the site forces .breakdance img { height: 100% !important } and max-width rules */
  height: 100% !important;
  max-width: none;
}
.ppx .ppx-card__media img {
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ppx .ppx-card__link:hover .ppx-card__media img {
  transform: scale(1.05);
}
.ppx-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 12, 14, 0.9) 0%, rgba(10, 12, 14, 0.66) 40%, rgba(10, 12, 14, 0.12) 72%, rgba(10, 12, 14, 0) 85%);
  pointer-events: none;
}
.ppx-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 22px;
}
.ppx-card__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ppx-orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.ppx-card__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.ppx-card__text {
  display: -webkit-box;
  max-width: 46ch;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ppx-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
}
.ppx-card__more svg,
.ppx__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
.ppx-card__link:hover .ppx-card__more svg,
.ppx__more:hover svg {
  transform: translateX(3px);
}
/* The large first card. */
@media (min-width: 640px) {
  .ppx-card--1 .ppx-card__body {
    padding: 28px 30px;
  }
  .ppx-card--1 .ppx-card__title {
    font-size: 30px;
  }
  .ppx-card--1 .ppx-card__text {
    font-size: 16px;
  }
}
/* The two small tiles on computers: name and link only. */
@media (min-width: 1024px) {
  .ppx-card--3 .ppx-card__text,
  .ppx-card--4 .ppx-card__text {
    display: none;
  }
  .ppx-card--3 .ppx-card__title,
  .ppx-card--4 .ppx-card__title {
    font-size: 19px;
  }
}

/* Call to action under the grid. */
.ppx__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: 18px;
  background: #fff4ee;
  border: 1px solid #fde0d0;
}
.ppx__cta-text {
  flex: 1 1 320px;
}
.ppx .ppx__cta-title {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
.ppx__cta-text p:not(.ppx__cta-title) {
  color: var(--ppx-muted);
  font-size: 16px;
  line-height: 1.5;
}
.ppx__cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.ppx .ppx__btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ppx-orange);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ppx .ppx__btn:hover {
  background: #d9561a;
  color: #ffffff;
  transform: translateY(-1px);
}
.ppx .ppx__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ppx-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, 0.3);
  text-underline-offset: 3px;
}
.ppx .ppx__more:hover {
  color: var(--ppx-orange);
}
.ppx .ppx__btn:focus-visible,
.ppx .ppx__more:focus-visible {
  outline: 3px solid var(--ppx-orange);
  outline-offset: 3px;
}
/* Space between the showcase and the map under it. */
.ppx + .pmap-block {
  padding-top: 24px;
}

@media (max-width: 639px) {
  .ppx__head {
    margin-bottom: 24px;
  }
  .ppx .ppx__intro {
    font-size: 16px;
  }
  .ppx__cta {
    padding: 22px 20px;
  }
  .ppx__cta-actions,
  .ppx .ppx__btn {
    width: 100%;
  }
  .ppx .ppx__btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ppx *,
  .ppx-card__link {
    transition: none !important;
  }
  .ppx .ppx-card__link:hover,
  .ppx .ppx-card__link:hover .ppx-card__media img {
    transform: none;
  }
}

/* ------------------------------------------------------------------ hero */
/* The photo (set on the hero in custom properties, from favorites.json) replaces a stock
   photo of a house pinned to the screen (background-attachment: fixed), which blew it up
   and made it soft. It scrolls with the page, with a dark fade behind the white text. */
.hero-section.ppx-hero {
  position: relative;
  isolation: isolate;
  background-color: #1f262a;
  background-image: var(--ppx-hero-jpg);
  background-image: var(--ppx-hero-lg);
  background-size: cover;
  background-position: var(--ppx-hero-position, 50% 50%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  /* the site's hero rule burns the photo into the background colour (color-burn) */
  background-blend-mode: normal;
}
@media (max-width: 960px) {
  .hero-section.ppx-hero {
    background-image: var(--ppx-hero-sm);
  }
}
.hero-section.ppx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 13, 15, 0.84) 0%, rgba(9, 13, 15, 0.62) 38%, rgba(9, 13, 15, 0.22) 70%, rgba(9, 13, 15, 0.14) 100%),
    linear-gradient(0deg, rgba(9, 13, 15, 0.35) 0%, rgba(9, 13, 15, 0) 40%);
  pointer-events: none;
}
.ppx-hero .text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--robboto, Roboto), system-ui, sans-serif;
}
.ppx-hero .text-section > * {
  margin: 0;
  padding: 0;
}
.ppx-hero .ppx-hero__eyebrow {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.ppx-hero .text-section h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.ppx-hero .text-section .para {
  max-width: 34ch;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.5;
}
.ppx-hero a.ppx-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 6px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--seconday, #f26924);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(242, 105, 36, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ppx-hero a.ppx-hero__btn:hover {
  background: #d9561a;
  color: #ffffff;
  transform: translateY(-1px);
}
.ppx-hero a.ppx-hero__btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
.ppx-hero .ppx-hero__btn svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}
/* Phones and tablets: the text runs across the photo above the form, so the fade goes
   from the top down. */
@media (max-width: 991.98px) {
  .hero-section.ppx-hero::before {
    background: linear-gradient(180deg, rgba(9, 13, 15, 0.82) 0%, rgba(9, 13, 15, 0.6) 45%, rgba(9, 13, 15, 0.35) 100%);
  }
  .ppx-hero .text-section {
    padding-top: 20px;
    padding-bottom: 8px;
  }
  .ppx-hero .text-section .para {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ppx-hero a.ppx-hero__btn {
    transition: none;
  }
}
