.footer-logo-invert img { filter: brightness(0) invert(1); }
.hero-divider-left { margin-left: 0 !important; margin-right: auto !important; }

.pf-card-top { position: relative; min-height: 280px; background: #0a0a0a; }
.pf-ghost-num { position: absolute; top: 24px; left: 24px; font-size: 4.5rem; font-weight: 700; color: rgba(255,255,255,0.08); font-family: "Playfair Display", serif; line-height: 1; margin: 0; }
.pf-view-site { position: absolute !important; bottom: 24px; right: 24px; }
.pf-tag { display: inline-block; background: rgba(201,169,110,0.15); color: #c9a96e; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; padding: 6px 12px; margin: 0 8px 8px 0; border-radius: 2px; }


.ns-thumb { position: relative; height: 190px; overflow: hidden; }
.ns-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-badge { position: absolute; top: 14px; left: 14px; background: #c9a96e; color: #1a1917; font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 4px 12px; margin: 0; }
.ns-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(201,169,110,0.92); display: flex; align-items: center; justify-content: center; }
.ns-asseenon { border-left: 3px solid #c9a96e; }
.ns-watch-link { color: #c9a96e; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; }

/* ===== Site-wide motion & interaction polish (Sept 2026) ===== */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .entry-content > .wp-block-cover,
    .entry-content > .wp-block-columns,
    .entry-content > .wp-block-group {
      animation: ph-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes ph-fade-up {
      from { opacity: 0; transform: translateY(28px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}

/* Card hover-lift: feature cards (e.g. What Sets Us Apart) */
main .wp-block-columns.has-border-color > .wp-block-column {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}
main .wp-block-columns.has-border-color > .wp-block-column:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26,25,23,0.12);
}

/* Testimonial tile hover-lift (dark background sections) */
main .wp-block-group.has-custom-espresso-black-background-color .wp-block-columns:not(.has-border-color) > .wp-block-column {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}
main .wp-block-group.has-custom-espresso-black-background-color .wp-block-columns:not(.has-border-color) > .wp-block-column:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(201,169,110,0.18);
}

/* Partner & media logo hover */
main .wp-block-group.has-global-padding.is-layout-constrained > .wp-block-group.is-content-justification-center .wp-block-image img {
  transition: transform 0.3s ease;
}
main .wp-block-group.has-global-padding.is-layout-constrained > .wp-block-group.is-content-justification-center .wp-block-image img:hover {
  transform: scale(1.06);
}

/* CTA button micro-interaction */
.wp-block-button__link {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease, filter 0.25s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(26,25,23,0.15);
}


/* Logo row sizing safety net (Media & Press + Our Partners) - locks size independent of block width/height attributes, which have repeatedly been stripped */
.entry-content .wp-image-235,
.entry-content .wp-image-240,
.entry-content .wp-image-241,
.entry-content .wp-image-244,
.entry-content .wp-image-248,
.entry-content .wp-image-254,
.entry-content .wp-image-255 {
  height: 42px !important;
  width: auto !important;
  max-width: none !important;
}


/* Personal & Corporate section - equal-height columns with vertically centered text panel (text stays left-aligned) */
.ph-vcenter-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
}


/* Homepage Welcome section - left-align the divider under "The Posh House Experience" (default separator style centers it) */
.ph-sep-left {
  margin-left: 0 !important;
  margin-right: auto !important;
}


/* Mobile fixes: As Seen In on one line, Our Services left-aligned */
@media (max-width: 600px) {
  .ph-seenin-band {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .ph-seenin-row {
    gap: 2px !important;
    flex-wrap: nowrap !important;
  }
  .ph-seenin-heading {
    font-size: 1.1rem !important;
    white-space: nowrap !important;
  }
  .ph-seenin-row .wp-image-235,
  .ph-seenin-row .wp-image-240,
  .ph-seenin-row .wp-image-241 {
    height: 22px !important;
    width: auto !important;
  }
  .ph-services-kicker,
  .ph-services-heading {
    text-align: left !important;
  }
  .ph-services-sep {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}


/* Desktop: slim full-width "As Seen In" logo strip (ph-seenin-strip) */
@media (min-width: 601px) {
  .ph-seenin-band {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  .ph-seenin-band > .wp-block-group {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .ph-seenin-row {
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
  }
  .ph-seenin-heading {
    font-size: 1.5rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  .ph-seenin-row .wp-image-235,
  .ph-seenin-row .wp-image-240,
  .ph-seenin-row .wp-image-241 {
    height: 32px !important;
    width: auto !important;
  }
}


/* "As Seen In" strip: gentle scroll-reveal + logo hover (ph-seenin-rise) */
@keyframes ph-seenin-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .ph-seenin-row figure img {
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .ph-seenin-row figure:hover img {
    transform: translateY(-3px) scale(1.07);
  }
  @media (min-width: 601px) {
    /* ph-seenin-load */
    .ph-seenin-heading,
    .ph-seenin-row figure { animation: ph-seenin-rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
    .ph-seenin-heading { animation-delay: 0.2s; }
    .ph-seenin-row figure:nth-of-type(1) { animation-delay: 0.45s; }
    .ph-seenin-row figure:nth-of-type(2) { animation-delay: 0.65s; }
    .ph-seenin-row figure:nth-of-type(3) { animation-delay: 0.85s; }
  }
  @media (max-width: 600px) { @supports (animation-timeline: view()) {
    .ph-seenin-heading,
    .ph-seenin-row figure {
      animation: ph-seenin-rise linear both;
      animation-timeline: view();
    }
    .ph-seenin-heading { animation-range: entry 0% entry 70%; }
    .ph-seenin-row figure:nth-of-type(1) { animation-range: entry 10% entry 80%; }
    .ph-seenin-row figure:nth-of-type(2) { animation-range: entry 20% entry 90%; }
    .ph-seenin-row figure:nth-of-type(3) { animation-range: entry 30% entry 100%; }
  } }
}

/* Seen In strip: continuous logo carousel (ph-marquee) */
.ph-seenin-row > .wp-block-html { flex: 1 1 0 !important; min-width: 0 !important; margin: 0 !important; }
.ph-marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.ph-marquee-track { display: flex; align-items: center; width: max-content; }
.ph-marquee-track img { display: block; flex: none; height: 32px !important; width: auto !important; max-width: none !important; margin: 0 !important; padding-right: 72px; box-sizing: content-box; }
@keyframes ph-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .ph-marquee-track { animation: ph-marquee-scroll 42s linear infinite; will-change: transform; }
  .ph-marquee:hover .ph-marquee-track { animation-play-state: paused; }
}
@media (max-width: 600px) {
  .ph-marquee-track img { height: 24px !important; padding-right: 40px; }
  .ph-marquee-track { animation-duration: 30s; }
}

/* ph-marquee-fix: keep carousel inside the band on every width */
.ph-seenin-row > .ph-marquee { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; }
.ph-seenin-band > .wp-block-group { min-width: 0 !important; max-width: 100% !important; width: 100% !important; }

/* Steel City Leadership Cohort logo (stacked mark needs more height to stay legible) */
.wp-image-343 { height: 64px !important; width: auto !important; max-width: none !important; }
