/* ============================================================
   Client design-review fixes (PowerXP home page, Oct 2026)
   Loaded last, after main.css and the per-section stylesheets,
   so a single reviewable file carries the corrections:
   focus states, contrast, type rhythm, the stable services
   column, the mobile project list and the floating controls.
   ============================================================ */

/* ---------- 1. Keyboard access ---------- */

/* Anchor and pin targets must clear the fixed header. */
html {
  scroll-padding-top: 84px;
}

/* The theme removes outlines on buttons and sets a transparent one on
   the hero CTA, so keyboard users lost the focus position entirely. */
/* Listed one by one on purpose: main.css carries `button:focus { outline: 0 }`
   and `a, button { outline: none }`, which outrank a zero-specificity
   :where() selector and used to win even for keyboard focus. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

/* On the orange hero CTA currentColor is white: keep the ring off the
   edge so it reads against both the button and the photo. */
.pxp-btn--brand:focus-visible,
.at-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.pxp-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #ffffff;
  color: #0f0f0f;
  font-family: var(--at-ff-body, sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.pxp-skip-link:focus-visible,
.pxp-skip-link:focus {
  transform: none;
  outline: 3px solid var(--at-theme-primary, #f0460e);
  outline-offset: 2px;
}

/* ---------- 2. Hero ---------- */

/* 11.5px uppercase on a 18%-white pill over a busy frame is the least
   readable line on the page. Larger type and a darker, blurred pill. */
.pxp-hero__badge {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  padding: 9px 14px;
  background-color: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}

@media (max-width: 767.98px) {
  .pxp-hero__badge {
    /* 12px floor: below that an all-caps label stops being readable. */
    font-size: 12px;
    letter-spacing: 0.04em;
    max-width: 100%;
    border-radius: 14px;
    text-align: center;
  }
  .pxp-hero__title {
    font-size: clamp(34px, 9.6vw, 44px);
    line-height: 1.02;
    padding-right: 0;
  }
  /* Stop the headline from touching the edge of the frame. */
  .pxp-hero__inner {
    padding-inline: 20px;
  }
  /* On a phone the credential text wraps mid-phrase and the body name lands
     on the first line; stack them instead. */
  .pxp-hero__proof {
    gap: 12px;
  }
  .pxp-hero__proof li {
    display: block;
    font-size: 13px;
    line-height: 1.45;
  }
  .pxp-hero__proof strong {
    display: block;
    font-size: 13px;
  }
}

/* ---------- 3. The 3D process section ---------- */

.pxp-process {
  /* The pinned head clears the fixed 66px header instead of running
     underneath it (heading + eyebrow were clipped for the whole pin). */
  --process-header: 66px;
}

.process__eyebrow {
  font-size: 12.5px;
  color: var(--on-dark, #fefefe);
}

.process__step p {
  font-size: 15px;
  line-height: 1.6;
  color: #cfcfcf;
}

.process__step h3 {
  max-width: 22ch;
}

.process__step-meta {
  font-size: 12px;
}

/* 0.68rem (10.9px) is under the 12px floor for the live-generation HUD. */
.process__hud .hud__label,
.process__hud .hud__note {
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  /* The floating back-to-top button sat on top of step 7's pill and the
     progress bar for the whole pinned story; lift the panel clear of it. */
  .pxp-process .process__stage {
    padding-bottom: 58px;
  }
}

/* The "From design to commissioning" intro sits on #0f0f0f but inherited the
   light-theme body colour #585959 — about 2.5:1, i.e. barely visible. */
.sec-5-home-15 .col-xl-4 > p,
.sec-5-home-15__intro p {
  color: #fefefe;
}

.sec-5-home-15__eyebrow-meta {
  color: #e6e6e6;
}

/* The heading is two lines; a stray blank line in the ACF textarea used to
   render as extra <br>s and opened a hole the height of two lines. */
.sec-5-home-15__heading br + br {
  display: none;
}

/* ---------- 4. "From design to commissioning" strip ---------- */

.sec-5-home-15 {
  padding-top: 108px;
  padding-bottom: 108px;
}

.sec-5-home-15__eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.sec-5-home-15__phase-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #e6e6e6;
}

.sec-5-home-15__phase-duration {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #ff7a45;
}

/* ---------- 5. Featured projects ---------- */

.sec-4-home-15__card-badge {
  font-size: 12px;
  padding: 9px 12px;
}

.sec-4-home-15__card-cta {
  font-size: 13px;
  min-height: 44px;
  align-items: center;
  letter-spacing: 0;
}

.sec-4-home-15__card-name {
  letter-spacing: -0.04em;
}

@media (max-width: 767.98px) {
  .sec-4-home-15__card-name {
    font-size: 24px;
    line-height: 1.15;
  }
  .sec-4-home-15__card-badge {
    top: 12px;
    right: 12px;
  }
}

/* ---------- 6. What we do (services) ---------- */

/* The image column used to be ~300px tall next to a ~600px list, so it
   scrolled away and left a dead strip. A 4:5 frame balances the two
   columns; ScrollSmoother transforms the page, which rules out CSS
   position: sticky here. */
.sec-7-home-15__media-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.sec-7-home-15__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec-7-home-15__caption {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #3a3a3a;
  max-width: 46ch;
}

.sec-7-home-15__cta-block p {
  font-size: 16px;
  line-height: 1.6;
  color: #3a3a3a;
}

.sec-7-home-15__service-link {
  min-height: 44px;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.sec-7-home-15__service-link:hover,
.sec-7-home-15__service-link:focus-visible {
  background-color: rgba(15, 15, 15, 0.03);
}

.sec-7-home-15__service-link:hover .sec-7-home-15__service-fab svg,
.sec-7-home-15__service-link:focus-visible .sec-7-home-15__service-fab svg {
  transform: rotate(45deg);
}

.sec-7-home-15__service-fab svg {
  transition: transform 0.3s ease;
}

.sec-7-home-15__service-fab {
  flex-shrink: 0;
}

/* On phones each row keeps a 44px hit area even though the circle is small. */
@media (max-width: 767.98px) {
  .sec-7-home-15__service-link {
    align-items: center;
    gap: 12px;
  }
  .sec-7-home-15__service-title {
    font-size: 20px;
    line-height: 1.25;
  }
  .sec-7-home-15__service-fab {
    min-width: 32px;
    min-height: 32px;
  }
}

/* ---------- 7a. About stats ---------- */

/* Grey labels sat at ~4:1 on the off-white stat card. */
.pxp-about__stat-label {
  color: #555555;
}

/* ---------- 7. Team ---------- */

/* Orange at 3.7:1 on white fails AA for 14px text. */
.pxp-team__eyebrow {
  color: #c2410c;
}

.pxp-team {
  padding-bottom: 96px;
}

/* ---------- 8. Testimonials ---------- */

/* Quote and name were both 48px bold with no gap, so the name read as
   the last line of the quote. */
/* The two-tone display headings: the muted half was set at #B7B7B7 on
   near-white (about 1.6:1). Kept muted, but readable. */
.sec-7-home-15__heading-muted {
  color: #8a8a8a;
}

.sec-8-home-15 {
  padding-bottom: 80px;
}

.sec-8-home-15__quote {
  font-size: 34px;
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sec-8-home-15__quote footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 15, 15, 0.12);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}

.sec-8-home-15__quote strong {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
}

@media (max-width: 767.98px) {
  .sec-8-home-15__quote {
    font-size: 24px;
    line-height: 1.35;
  }
}

/* ---------- 9. About copy ---------- */

/* 16px at line-height 1.2 over a 740px column: lines ran together and
   the measure reached ~115 characters. */
.pxp-about__body p,
.ab-para p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 65ch;
  margin-bottom: 1.1em;
}

.pxp-about__body p:last-child,
.ab-para p:last-child {
  margin-bottom: 0;
}

.pxp-about__lead {
  line-height: 1.5;
}

/* ---------- 10. Partner logo strip ---------- */

.sec-3-home-15__label {
  width: min(100% - 48px, 1750px);
  margin: 0 auto 14px;
  font-family: var(--at-ff-body, sans-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
}

/* Optical size, not natural size: every logo sits in the same box. */
.sec-3-home-15 .at-brand-item .brand img,
.sec-3-home-15 .at-brand-item img {
  max-height: 38px;
  width: auto;
  max-width: 84%;
  object-fit: contain;
}

/* ---------- 11. Footer ---------- */

.footer-15__intro {
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
}

.footer-15__brand-title-muted {
  color: #8a8a8a;
}

@media (max-width: 767.98px) {
  .footer-15__panel {
    min-height: 0;
    gap: 24px;
  }
  .footer-15__brand-title {
    font-size: 30px;
    line-height: 1.15;
  }
  .footer-15__intro {
    max-width: none;
  }
  /* Keep the last footer line clear of the floating back-to-top button. */
  .footer-15 {
    padding-bottom: 96px;
  }
}

/* ---------- 12. Back to top ---------- */

/* The hero scroll hint competes with the FAB in the same corner. The FAB is
   only shown after scrolling, so on its own it is fine — but once both are
   on screen the hint has done its job and can step aside. */
@media (min-width: 1024px) and (min-height: 700px) {
  .pxp-hero__scroll {
    bottom: 104px;
  }
}

@media (max-width: 767.98px) {
  .back-to-top-wrapper {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
  .back-to-top-wrapper.back-to-top-btn-show {
    bottom: 16px;
  }
  .back-to-top-btn {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  /* The button used to sit on the step pills and card CTAs; the pinned
     blocks get their own bottom room. */
  .pxp-process .process__panel,
  .sec-4-home-15,
  .sec-7-home-15,
  .pxp-team {
    scroll-margin-bottom: 72px;
  }
}

/* ---------- 13. Footer balance ---------- */

/* One brand mark across header and footer: the footer used to show a different
   wordmark from the header lockup. */
.footer-15__brand-mark {
  width: auto;
}

.footer-15__brand-mark .pxp-logo {
  display: block;
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

/* The company name is one colour now. The second half used to be #585959 on
   #0f0f0f, and `inherit` alone was not enough: the h2 itself still picked up
   the light-theme heading colour #1d1d1d, so the whole name was invisible. */
.footer-15__brand-title {
  color: var(--footer15-text, #fefefe);
}

.footer-15__brand-title-strong,
.footer-15__brand-title-muted {
  color: inherit;
}

/* The nav panel had a link column on the left and the social pills on the
   right with an empty middle. A short positioning line fills the gap. */
.footer-15__nav-note {
  max-width: 26ch;
  font-family: var(--at-ff-heading, sans-serif);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--footer15-muted, #b7b7b7);
}

/* "Want to know more?" was a single button floating in a 260px box. */
.footer-15__news-copy {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--footer15-muted, #b7b7b7);
}

/* Brand icons instead of a tiny corner arrow, with a full-size hit area. */
.footer-15__tags a {
  min-height: 44px;
  padding: 10px 17px;
  gap: 9px;
}

.footer-15__tags a svg {
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .footer-15__nav-wrap {
    flex-direction: column;
    gap: 24px;
  }

  .footer-15__nav-note {
    max-width: 42ch;
  }
}

/* ---------- 14. Testimonial controls ---------- */

.sec-8-home-15__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.sec-8-home-15__head .sec-8-home-15__eyebrow {
  margin-bottom: 0;
}

.sec-8-home-15__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The avatars were the only way through the quotes. */
.sec-8-home-15__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 50%;
  background-color: transparent;
  color: #0f0f0f;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.sec-8-home-15__nav-btn:hover,
.sec-8-home-15__nav-btn:focus-visible {
  background-color: var(--at-theme-primary, #f0460e);
  border-color: var(--at-theme-primary, #f0460e);
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .sec-8-home-15__head {
    margin-bottom: 32px;
  }

  .sec-8-home-15__nav-btn {
    width: 44px;
    height: 44px;
  }
}

/* ---------- 15. Sub-pages (About, Projects, Services, Contact) ---------- */

/* About: the dark "Who we are" band marks its copy with Bootstrap's
   .text-white, but that only colours the wrapper — the theme's own
   `p { color: #585959 }` still applied to every paragraph inside it, so the
   intro read dark-grey on #1d1d1d (2.4:1). */
.text-white p,
.text-white li,
.text-white dd,
.text-white dt,
.text-white figcaption {
  color: inherit;
}

/* Projects: each character of a project title is wrapped in a span that
   carries `text-shadow: 0 1.05em orange` for the roll-over title effect.
   This grid has no clipping wrapper, so the orange copy painted itself over
   the description below the title. */
.mg-portfolio-content .at-title-text span {
  text-shadow: none;
}

/* Project card copy was 16px / 1.2 (19px) — the same cramped block the
   review flagged elsewhere. */
.mg-portfolio-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #3a3a3a;
}

.cs-portfolio-title {
  margin-bottom: 10px;
  line-height: 1.25;
}

/* The HUD note over the dark 3D stage sat at 10.9px in a mid-grey. */
.process__hud .hud__label,
.process__hud .hud__note {
  color: #e6e6e6;
}

/* ---------- 16. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .pxp-skip-link,
  .sec-7-home-15__service-fab svg,
  .sec-8-home-15__nav-btn,
  .back-to-top-btn {
    transition: none;
  }
  .sec-3-home-15 .carouselTicker__list {
    animation: none !important;
  }
}
