/* Pexstral BUILD 005 HF3 — compact, stable header and shared layout refinements. */

/* Reserve 80px in both states: 80px + 0px, or 60px + 20px.
   The existing 20px scroll trigger therefore cannot move the page or expose a gap. */
:root{--pssx-header-height:80px;--pssx-sticky-height:60px;--pssx-admin-offset:0px}
body.admin-bar{--pssx-admin-offset:32px}
.pss-header{--pssx-active-header-height:var(--pssx-header-height);height:var(--pssx-active-header-height);min-height:0;margin-bottom:calc(var(--pssx-header-height) - var(--pssx-active-header-height));overflow-anchor:none;transition:box-shadow .2s ease}
.pss-header.is-scrolled{--pssx-active-header-height:var(--pssx-sticky-height)}
.pss-header .pss-header-inner,
.pss-header.is-scrolled .pss-header-inner{height:100%;min-height:0;padding-block:0;flex-wrap:nowrap;transition:none}
.pss-header .pss-menu-toggle{margin-block:0}
.pss-header .pss-brand-mark{max-width:60px;max-height:60px}
.pss-header.is-scrolled .pss-brand-mark{max-width:44px;max-height:44px}
.pss-header.is-scrolled .pss-brand-name{font-size:26px;line-height:1.15}
.pss-header.is-scrolled .pss-brand-tagline{font-size:12px;line-height:1.4;margin-top:2px}
.pss-section-nav,
.admin-bar .pss-section-nav{top:calc(var(--pssx-sticky-height) + var(--pssx-admin-offset))}

/* Let the mobile menu open below the bar without changing its reserved height. */
@media(max-width:1180px){
  .pss-header .pss-navigation{position:absolute;top:100%;left:0;right:0;width:100%;margin:0;padding-inline:var(--pss-gutter);background:var(--pss-paper);border-bottom:1px solid var(--pss-line);box-shadow:0 10px 18px #28334a0d}
  .pss-header.is-enhanced.is-menu-open .pss-navigation{max-height:calc(100svh - var(--pssx-active-header-height) - var(--pssx-admin-offset));overflow-y:auto}
  .pss-header:not(.is-enhanced) .pss-header-inner{flex-wrap:wrap}
  .pss-header:not(.is-enhanced) .pss-navigation{position:static;padding-inline:0;border-bottom:0;box-shadow:none}
}
.pss-header:not(.is-enhanced){height:auto;min-height:var(--pssx-header-height);margin-bottom:0}
.pss-header:not(.is-enhanced) .pss-header-inner{height:auto;min-height:calc(var(--pssx-header-height) - 1px)}

/* WordPress flow spacing must not stagger children of a CSS grid. */
.pssx-cards{align-items:stretch}
.pssx-cards>.pssx-card{margin-block:0;align-self:stretch}

/* Direct page callouts share the same centered content container. */
.entry-content>.pssx-cta{margin-inline:auto}

/* Show the entire project capture at its natural height, without letterboxing. */
.pss-work-image{align-items:flex-start;aspect-ratio:auto;height:auto;min-height:0}
.pss-work-image img{display:block;height:auto;object-fit:contain;object-position:center top;transform:none;transition:none}
.pss-work-card:hover .pss-work-image img{transform:none}
.single-ps_work .pss-single-cover img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center top}
.single-ps_work .pss-project-identity img{object-position:center top}

/* The third footer block is the existing Our services menu in BUILD 004. */
.pss-footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,.6fr) minmax(0,1.9fr) minmax(0,1fr);gap:36px}
.pss-footer-grid>div{min-width:0}
.pss-footer-grid>div:nth-child(3)>.pss-footer-links,
.pss-footer .pssx-footer-services{display:block;columns:2;column-gap:26px}
.pss-footer-grid>div:nth-child(3)>.pss-footer-links>li,
.pss-footer .pssx-footer-services>li{break-inside:avoid;margin:0 0 12px}

/* BUILD 013 HF1: social profiles flow beneath the footer introduction. */
.pss-footer .pssx-footer-socials{margin-top:24px}
.pss-footer .pssx-footer-socials .pss-footer-heading{margin:0 0 12px;color:#f7961d;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:.02em;text-transform:none}
.pss-footer .pssx-social-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0;padding:0}
.pss-footer .pssx-social-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;box-sizing:border-box;color:#fbfaf7;background:rgba(255,255,255,.06);border:1px solid rgba(251,250,247,.3);border-radius:10px;line-height:1;text-decoration:none;transition:color .16s ease,background-color .16s ease,border-color .16s ease}
.pss-footer .pssx-social-link svg{display:block;width:22px;height:22px;pointer-events:none}
.pss-footer .pssx-social-link:hover,.pss-footer .pssx-social-link:focus-visible{color:#28334a;background:#f7961d;border-color:#f7961d;text-decoration:none}
.pss-footer .pssx-social-link:focus-visible{outline:2px solid #fbfaf7;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.pss-footer .pssx-social-link{transition:none}}

@media(max-width:1000px){
  .pss-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
  .pss-footer-grid>div:nth-child(3),.pss-footer-contact{grid-column:1/-1}
  .pss-footer .pss-contact-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 26px}
}
@media(max-width:781px){body.admin-bar{--pssx-admin-offset:46px}}
@media(max-width:600px){
  body.admin-bar{--pssx-admin-offset:0px}
  .pss-header .pss-brand-mark{max-width:44px;max-height:49px}
  .pss-header.is-scrolled .pss-brand-mark{max-width:36px;max-height:38px}
  .pss-header.is-scrolled .pss-brand-name{font-size:22px}
  .pss-header.is-scrolled .pss-brand-tagline{font-size:10.5px}
  .pss-footer-grid{gap:30px 24px}
  .pss-footer-grid>div:nth-child(2){grid-column:1/-1}
  .pss-footer-grid>div:nth-child(3)>.pss-footer-links,
  .pss-footer .pssx-footer-services{column-gap:22px}
}
@media(max-width:360px){
  .pss-header .pss-brand-mark{max-width:36px;max-height:41px}
  .pss-header.is-scrolled .pss-brand-name{font-size:20px}
  .pss-header.is-scrolled .pss-brand-tagline{font-size:9.5px}
}
