/* ==========================================================================
   Portfolio — article layout
   ========================================================================== */
.pf{ padding: 0; }

/* ---- intro ---- */
.pf__intro{
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 13px; max-width: 780px; margin: 0 auto 32px;
}
.pf__eyebrow{
  font-family: Poppins, sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: 2.2px; text-transform: uppercase; color: #D63A4F;
  display: inline-flex; align-items: center; gap: 12px;
}
.pf__eyebrow::before, .pf__eyebrow::after{
  content: ""; width: 26px; height: 3px; background: #F85C70; display: inline-block;
}
.pf__heading{
  font-family: Poppins, sans-serif; font-size: 33px; font-weight: 600;
  line-height: 1.26; color: #151515; margin: 0;
}
.pf__lede{ margin: 0; font-size: 16.5px; line-height: 1.7; color: #4F4F4F; max-width: 660px; }

/* ---- filter chips ---- */
.pf__filter{
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 8px; background: #F7F7F7; border: 1px solid #EAEAEA;
  border-radius: 999px; width: fit-content; max-width: 100%;
  margin: 0 auto 8px; box-sizing: border-box;
}
.pf__chip{
  font-family: Poppins, sans-serif; font-size: 14px; font-weight: 500;
  line-height: 1.4; color: #3B3B3B; background: transparent; border: none;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.pf__chip:hover{ background: #EAEAEA; color: #151515; }
.pf__chip:focus-visible{ outline: 2px solid #D63A4F; outline-offset: 2px; }
.pf__chip.is-active{ background: #151515; color: #fff; font-weight: 600; }
.pf__chipcount{ opacity: .55; font-weight: 500; margin-left: 3px; }
.pf__chip.is-active .pf__chipcount{ opacity: .7; }

/* ---- sections ---- */
.pf__section{ margin-top: 46px; }
.pf__section.is-hidden{ display: none; }
.pf__sectionhead{ display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.pf__sectiontitle{
  font-family: Poppins, sans-serif; font-size: 20px; font-weight: 600;
  color: #151515; margin: 0; white-space: nowrap;
}
.pf__rule{ flex: 1 1 auto; height: 1px; background: #E7E7E7; }
.pf__sectionmeta{ font-size: 13.5px; color: #8A8A8A; white-space: nowrap; }

.pf__row{ display: flex; flex-wrap: wrap; }
.pf__col{ display: flex; margin-bottom: 24px; }

/* ---- card ---- */
.pf__card{
  display: flex; flex-direction: column; width: 100%;
  background: #fff; border: 1px solid #E7E7E7; border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.pf__card:hover{ box-shadow: 0 12px 30px rgba(0,0,0,.10); border-color: #DCDCDC; transform: translateY(-3px); }

.pf__media{ position: relative; background: #F3F3F3; overflow: hidden; line-height: 0; }
.pf__media img{
  width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top center; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.pf__card:hover .pf__media img{ transform: scale(1.04); }

.pf__badge{
  position: absolute; top: 14px; left: 14px;
  font-family: Poppins, sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.3px; text-transform: uppercase; color: #fff;
  background: #F85C70; padding: 5px 12px; border-radius: 3px;
}

.pf__body{ display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.pf__kicker{
  font-family: Poppins, sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: #D63A4F;
}
.pf__title{ font-family: Poppins, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.32; margin: 0; }
.pf__title a{ color: #151515; text-decoration: none; transition: color .25s ease; }
.pf__title a:hover{ color: #D63A4F; }
.pf__text{ margin: 0; font-size: 14.5px; line-height: 1.68; color: #4F4F4F; }
.pf__detail{
  margin: 4px 0 0; padding: 10px 0 10px 14px;
  border-left: 3px solid #F85C70; background: #FDF6F7; border-radius: 0 6px 6px 0;
  font-size: 13.5px; line-height: 1.62; color: #3B3B3B;
}
.pf__detail strong{ font-family: Poppins, sans-serif; font-weight: 600; color: #151515; }

/* ---- featured: image left, text right ---- */
@media (min-width: 992px){
  .pf__card--featured{ flex-direction: row; align-items: stretch; }
  .pf__card--featured .pf__media{ flex: 0 0 46%; width: 46%; }
  .pf__card--featured .pf__media img{ height: 100%; aspect-ratio: auto; }
  .pf__card--featured .pf__body{ flex: 1 1 auto; justify-content: center; padding: 30px 34px; }
  .pf__card--featured .pf__title{ font-size: 25px; }
}
.pf__card--featured{ border-color: #F1C9CF; background: #FFFBFB; }
.pf__card--featured .pf__detail{ background: #fff; }

/* ---- website tiles: title over the screenshot ---- */
.pf__card--tile{ position: relative; border: none; }
.pf__card--tile .pf__media img{ aspect-ratio: 4 / 3; }
.pf__card--tile .pf__body{
  position: absolute; left: 0; right: 0; bottom: 0; gap: 3px;
  padding: 44px 18px 18px;
  background: linear-gradient(to top, rgba(10,10,15,.92) 0%, rgba(10,10,15,.55) 45%, rgba(10,10,15,0) 100%);
}
.pf__card--tile .pf__kicker{ color: #FFB3BE; }
.pf__card--tile .pf__title a{ color: #fff; }
.pf__card--tile .pf__title a:hover{ color: #FFB3BE; }

/* ---- closing CTA ---- */
.pf__cta{
  margin-top: 56px; background: #061526; border-radius: 14px;
  padding: 42px 44px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.pf__ctatitle{ font-family: Poppins, sans-serif; font-size: 27px; font-weight: 600; color: #fff; margin: 0 0 8px; line-height: 1.3; }
.pf__ctalede{ margin: 0; font-size: 16px; line-height: 1.62; color: #C6CFDA; max-width: 540px; }
.pf__ctabtn{
  font-family: Poppins, sans-serif; font-size: 15px; font-weight: 600; color: #fff !important;
  background: #F85C70; padding: 15px 32px; border-radius: 6px;
  text-decoration: none; white-space: nowrap; transition: background .25s ease;
}
.pf__ctabtn:hover{ background: #E04256; }

/* ---- phones ---- */
@media (max-width: 767px){
  .pf__heading{ font-size: 24px; }
  .pf__lede{ font-size: 15px; }
  .pf__chip{ font-size: 12.5px; padding: 10px 14px; }
  .pf__filter{ width: 100%; border-radius: 16px; }
  .pf__section{ margin-top: 34px; }
  .pf__sectiontitle{ font-size: 17px; }
  .pf__cta{ padding: 30px 24px; text-align: left; }
  .pf__ctatitle{ font-size: 21px; }
  .pf__ctabtn{ width: 100%; text-align: center; }
}

/* ---- diagrams are wide screenshots: show the whole thing, don't crop into it ---- */
.pf__card:not(.pf__card--tile) .pf__media{
  background: #FAFAFA;
  border-bottom: 1px solid #EFEFEF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}
.pf__card:not(.pf__card--tile) .pf__media img{
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.pf__card:not(.pf__card--tile) .pf__media a{ display: block; width: 100%; }
.pf__card:hover .pf__media img{ transform: none; }

@media (min-width: 992px){
  .pf__card--featured .pf__media{ padding: 20px; }
  .pf__card--featured .pf__media img{ aspect-ratio: 4 / 3; height: auto; }
}

/* badge clear of the artwork */
.pf__badge{ top: 12px; left: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }

/* chip that navigates to the automation showcase rather than filtering */
.pf__chip--link{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #D63A4F !important;
  background: #FFF1F3;
  border: 1px solid #F6D3D9;
}
.pf__chip--link:hover{
  background: #F85C70;
  color: #fff !important;
  border-color: #F85C70;
}
.pf__chiparrow{ font-size: 15px; line-height: 1; transition: transform .25s ease; }
.pf__chip--link:hover .pf__chiparrow{ transform: translateX(3px); }

/* ==========================================================================
   Automation section — article style, inside the portfolio page
   ========================================================================== */
.pf__section.au .au__tools{
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: #F3F3F3; border: 1px solid #E4E4E4; border-radius: 10px;
  padding: 18px 22px; margin-bottom: 22px;
}
.au__toolslabel{
  font-family: Poppins, sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.7px; text-transform: uppercase; color: #767676; white-space: nowrap;
}
.au__toolslist{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.au__toolslist li{
  font-size: 13px; font-weight: 500; color: #3B3B3B; background: #fff;
  border: 1px solid #E0E0E0; padding: 6px 13px; border-radius: 4px;
}
.au__intro{ margin: 0 0 30px; font-size: 16px; line-height: 1.7; color: #4F4F4F; max-width: 720px; }

.au__block{
  display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center;
  padding: 40px 0; border-top: 1px solid #EDEDED;
}
.au__block:first-of-type{ border-top: none; padding-top: 6px; }
.au__block--flip .au__media{ order: 2; }
.au__media{ min-width: 0; }

.au-shot{
  display: block; position: relative; background: #FAFAFA; border: 1px solid #E7E7E7;
  border-radius: 12px; padding: 14px; overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.au-shot:hover{ box-shadow: 0 14px 34px rgba(0,0,0,.10); border-color: #DCDCDC; }
.au-shot img{ width: 100%; height: auto; display: block; border-radius: 6px; }
.au-shot__zoom{
  position: absolute; right: 12px; bottom: 12px;
  font-family: Poppins, sans-serif; font-size: 11.5px; font-weight: 600;
  color: #fff; background: rgba(10,10,15,.82); padding: 6px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.au-shot:hover .au-shot__zoom{ opacity: 1; transform: translateY(0); }

.au__copy{ min-width: 0; }
.au__num{ font-family: Poppins, sans-serif; font-size: 13px; font-weight: 600; color: #E3B6BD; letter-spacing: 1px; display: block; margin-bottom: 7px; }
.au__blockkicker{ font-family: Poppins, sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #D63A4F; display: block; margin-bottom: 9px; }
.au__h3{ font-family: Poppins, sans-serif; font-size: 25px; font-weight: 600; line-height: 1.28; color: #151515; margin: 0 0 13px; }
.au__text{ margin: 0 0 15px; font-size: 15.5px; line-height: 1.72; color: #4F4F4F; }
.au__detail{
  padding: 13px 0 13px 16px; border-left: 3px solid #F85C70;
  background: #FDF6F7; border-radius: 0 8px 8px 0;
  font-size: 14.5px; line-height: 1.68; color: #3B3B3B;
}
.au__detail strong{ font-family: Poppins, sans-serif; font-weight: 600; color: #151515; }
.au__chips{ list-style: none; margin: 15px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.au__chips li{ font-size: 12.5px; font-weight: 500; color: #5A5A5A; background: #F5F5F5; border: 1px solid #E7E7E7; padding: 5px 11px; border-radius: 999px; }

.au__how{ background: #F3F3F3; border-radius: 12px; padding: 34px; margin-top: 40px; }
.au__howtitle{ font-family: Poppins, sans-serif; font-size: 22px; font-weight: 600; color: #151515; margin: 0 0 22px; }
.au__howgrid{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.au__habit{ background: #fff; border-radius: 10px; padding: 22px 20px; }
.au__habitnum{ font-family: Poppins, sans-serif; font-size: 23px; font-weight: 600; color: #F85C70; display: block; margin-bottom: 8px; }
.au__habit h5{ font-family: Poppins, sans-serif; font-size: 15.5px; font-weight: 600; line-height: 1.34; color: #151515; margin: 0 0 7px; }
.au__habit p{ margin: 0; font-size: 13.5px; line-height: 1.62; color: #4F4F4F; }

@media (max-width: 991px){
  .au__block{ grid-template-columns: 1fr; gap: 24px; }
  .au__block--flip .au__media{ order: 0; }
  .au__howgrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 575px){
  .au__h3{ font-size: 20px; }
  .au__block{ padding: 28px 0; }
  .au__howgrid{ grid-template-columns: 1fr; }
  .au__how{ padding: 22px; }
  .au-shot__zoom{ opacity: 1; transform: none; }
  .pf__section.au .au__tools{ padding: 14px 16px; gap: 14px; }
}
