:root {
  --pl-bg: var(--wp--preset--color--bg, #FFFFFF);
  --pl-surface: var(--wp--preset--color--surface, #F4F6FB);
  --pl-ink: var(--wp--preset--color--ink, #0B1220);
  --pl-muted: var(--wp--preset--color--muted, #5C6776);
  --pl-primary: var(--wp--preset--color--primary, #2D5BFF);
  --pl-accent: var(--wp--preset--color--accent, #F2B705);

  --ink: var(--pl-ink);
  --primary: var(--pl-primary);
  --accent: var(--pl-accent);
}

html { scroll-behavior: smooth; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pl-site-header-shell,
.pl-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--pl-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--pl-ink) 6%, transparent);
}

body.admin-bar .pl-site-header-shell,
body.admin-bar .pl-site-header { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .pl-site-header-shell,
  body.admin-bar .pl-site-header { top: 46px; }
}

:focus-visible {
  outline: 2px solid var(--pl-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--pl-primary);
  color: var(--pl-bg);
}

a, button {
  transition: color .15s ease, background-color .15s ease, opacity .15s ease, transform .15s ease;
}

/* ----------------------------------------------------------------------- */
/* Site logo. SVG canvas is 360x64; at 88px display height the wordmark    */
/* renders ~38px tall, which is properly brand-forward.                     */
/* ----------------------------------------------------------------------- */
.wp-block-site-logo img.custom-logo {
  width: auto;
  height: 66px;
  max-width: 520px;
  display: block;
}
.wp-block-site-logo a.custom-logo-link { display: inline-block; line-height: 0; }

/* Footer logo can be a touch smaller so it doesn't dominate the column.   */
footer .wp-block-site-logo img.custom-logo { height: 72px; max-width: 420px; }

@media (max-width: 900px) {
  .wp-block-site-logo img.custom-logo { height: 44px; }
  footer .wp-block-site-logo img.custom-logo { height: 56px; }
}
@media (max-width: 600px) {
  .wp-block-site-logo img.custom-logo { height: 62px; }
  footer .wp-block-site-logo img.custom-logo { height: 48px; }
}

/* ----------------------------------------------------------------------- */
/* Section headers. Two tiers:                                             */
/*   1. Default eyebrow — used inside cards, proof cells, work rows, etc.  */
/*      Stays modest; just slightly bolder + better-tracked than plain     */
/*      uppercase.                                                          */
/*   2. Section-level eyebrow — when the eyebrow is a direct child of a    */
/*      top-level alignfull band, it gets a bigger size, primary-blue      */
/*      color, and a leading amber accent dash. Pairs with a larger,       */
/*      tighter section H2 underneath so the two read as one announcement. */
/*                                                                          */
/* `display: block` is required even on the default eyebrow — `inline-     */
/* block` defeats the constrained-layout auto-margin centering and the     */
/* eyebrow ends up at the viewport's left edge inside alignfull patterns.  */
/* ----------------------------------------------------------------------- */
.pl-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--pl-muted);
  margin: 0 0 0.5rem 0;
}

/* Section-level eyebrow upgrade. Lands only on eyebrows that sit as a
   direct child of a full-width section (so the muted, tighter version
   above keeps applying inside cards, columns, and the work-row tags),
   but allows the alignfull group itself to be reached via either the
   front-page.html flat structure (main > alignfull) or the page.html
   wrapped one (main > .entry-content > alignfull) — descendant on the
   left of the second `>` makes both work.                              */
main .wp-block-group.alignfull > p.pl-eyebrow,
.pl-page-intro .pl-page-hero-copy > p.pl-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--pl-primary);
  margin-bottom: 1rem;
}
main .wp-block-group.alignfull > p.pl-eyebrow::before,
.pl-page-intro .pl-page-hero-copy > p.pl-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--pl-accent);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Section-level H2. Targets only direct H2 children of full-width
   sections, so card H3s and the hero H1 stay untouched. Patterns whose
   H2 sets its own font-size inline (notably the CTA band) keep their
   bespoke sizing because inline styles outrank class selectors.        */
main .wp-block-group.alignfull > h2.wp-block-heading {
  font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: pretty;
}

/* Give the content that follows a section headline more room to breathe.
   This is most visible on the Work page, where the case-study rows start
   immediately after the large section title. */
main .wp-block-group.alignfull > h2.wp-block-heading + .wp-block-group,
main .wp-block-group.alignfull > h1.wp-block-heading + .wp-block-group {
  margin-top: clamp(2rem, 1.4rem + 1.4vw, 3.5rem) !important;
}

/* Card. Reset core's word-break:break-word inside the card so headings    */
/* like "Automation & integrations" do not split mid-word, and turn each   */
/* card into a flex column so the "Read more" link pins to the bottom and  */
/* every card across the row ends at the same vertical position.           */
.pl-card {
  background: var(--pl-surface);
  border-radius: 14px;
  padding: clamp(1.6rem, 1.25rem + 0.9vw, 2.2rem) clamp(1.35rem, 1rem + 0.9vw, 2rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  word-break: normal;
  overflow-wrap: break-word;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--pl-ink) 7%, transparent);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--pl-ink) 7%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pl-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pl-primary), var(--pl-accent));
  opacity: 0.85;
}
.pl-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pl-primary) 24%, transparent);
  box-shadow: 0 20px 52px color-mix(in srgb, var(--pl-ink) 10%, transparent);
}
.pl-card h3.wp-block-heading {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-hyphens: none;
          hyphens: none;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  text-wrap: pretty;
}
.pl-card p {
  margin: 0 0 0.6rem 0;
  font-size: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.pl-card p:last-child {
  margin-bottom: 0;
  margin-top: auto;          /* pin the "Read more →" link to the bottom    */
  padding-top: 0.5rem;        /* a little breathing room above the link     */
}
.pl-card .pl-eyebrow { margin-bottom: 0.25rem; }

.pl-card-graphic {
  display: block;
  width: 100%;
  margin: -0.45rem 0 1.15rem;
  aspect-ratio: 16 / 10.5;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--pl-bg) 78%, var(--pl-surface));
  border: 1px solid color-mix(in srgb, var(--pl-primary) 10%, transparent);
}
.pl-card-graphic__svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Equalize card heights across the row. Specificity (.pl-cards.wp-block-  */
/* columns = 2 classes on same element) beats core's `.wp-block-columns`.  */
.pl-cards.wp-block-columns { align-items: stretch; }
.pl-cards.wp-block-columns {
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem) !important;
}
.pl-card p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pl-bg) 74%, var(--pl-surface));
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Stop mid-word breaks anywhere a heading lives in a narrow column.       */
.wp-block-column h2.wp-block-heading,
.wp-block-column h3.wp-block-heading,
.wp-block-column h4.wp-block-heading {
  word-break: normal;
  overflow-wrap: normal;
  -webkit-hyphens: none;
          hyphens: none;
  text-wrap: pretty;
}

.pl-rule {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--pl-ink) 12%, transparent);
  margin: 0;
}

/* Work rows. These appear on the homepage preview and the Work page. The
   selector keys off the row structure rather than page-specific classes,
   since the homepage content is stored as flattened blocks in WordPress. */
main .wp-block-group.alignfull > .wp-block-group > .wp-block-columns:has(> .wp-block-column[style*="flex-basis:22%"]) {
  padding-block: 0.75rem;
}
main .wp-block-group.alignfull > .wp-block-group > .wp-block-columns:has(> .wp-block-column[style*="flex-basis:22%"]) > .wp-block-column:first-child {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pl-surface) 70%, var(--pl-bg));
  border-left: 3px solid var(--pl-accent);
}
main .wp-block-group.alignfull > .wp-block-group > .wp-block-columns:has(> .wp-block-column[style*="flex-basis:22%"]) > .wp-block-column:first-child .pl-eyebrow {
  color: var(--pl-ink);
  letter-spacing: 0.11em;
}
main .wp-block-group.alignfull > .wp-block-group > .wp-block-columns:has(> .wp-block-column[style*="flex-basis:22%"]) h3.wp-block-heading {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin-top: 0;
}

.pl-prose { max-width: 65ch; }

/* Inner page hero graphics: service pages and About use a compact version of
   the homepage visual language. The markup is intentionally a simple two-column
   block so it can live in WordPress page content and still be controlled here. */
.pl-page-hero-cols.wp-block-columns {
  align-items: center !important;
  gap: clamp(2rem, 1.25rem + 2.5vw, 4rem) !important;
}
.pl-page-hero-copy.wp-block-column {
  align-self: center;
}
.pl-page-hero-figure {
  position: relative;
  margin: 0;
  width: min(100%, 520px);
  margin-left: auto;
  padding: clamp(0.75rem, 0.35rem + 1vw, 1.25rem);
  border-radius: 24px;
  background: color-mix(in srgb, var(--pl-surface) 68%, var(--pl-bg));
  border: 1px solid color-mix(in srgb, var(--pl-primary) 14%, transparent);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--pl-ink) 9%, transparent);
}
.pl-page-hero-figure::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--pl-accent) 28%, transparent);
  pointer-events: none;
}
.pl-page-hero-figure svg,
.pl-page-hero-figure img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
@media (max-width: 900px) {
  .pl-page-hero-cols.wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
  }
  .pl-page-hero-figure {
    max-width: 440px;
    margin: 1rem auto 0;
  }
}

.pl-mono {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  letter-spacing: 0;
}

.pl-process-num {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--pl-primary);
  margin: 0 0 0.75rem 0;
}

/* ----------------------------------------------------------------------- */
/* Hero decoration. Pure CSS dot-grid that fades to transparent on the     */
/* right; gives the hero visual interest without an image request.         */
/* ----------------------------------------------------------------------- */
.pl-hero,
.pl-page-intro {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.pl-page-intro {
  width: 100vw;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
}
/* dot grid */
.pl-hero::before,
.pl-page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--pl-ink) 10%, transparent) 1.08px, transparent 1.75px);
  background-size: 18px 18px;
  background-position: top left;
  -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 0.32) 0%, rgb(0 0 0 / 0.72) 45%, #000 100%);
          mask-image: linear-gradient(to right, rgb(0 0 0 / 0.32) 0%, rgb(0 0 0 / 0.72) 45%, #000 100%);
  z-index: -1;
}
/* blue glow effect on the right */
.pl-hero::after,
.pl-page-intro::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -120px;
  width: 380px;
  height: 380px;
  transform: translateY(-50%);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--pl-primary) 16%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 800px) {
  .pl-hero::after,
  .pl-page-intro::after { display: none; }
  .pl-hero::before,
  .pl-page-intro::before { -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
}

/* ----------------------------------------------------------------------- */
/* Capability cards: keep the grid usable between 600 and 1100 px by going */
/* 2-up instead of trying to fit four narrow columns.                      */
/* ----------------------------------------------------------------------- */
@media (min-width: 600px) and (max-width: 1099px) {
  .pl-cards.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: calc(50% - 0.34rem) !important;
    flex-grow: 0 !important;
  }
}

/* ----------------------------------------------------------------------- */
/* Footer. Tighter columns on tablet, centered legal line, sensible link   */
/* style for footer lists.                                                  */
/* ----------------------------------------------------------------------- */
.pl-footer-list { list-style: none !important; padding-left: 0 !important; margin: 0; }
.pl-footer-list li { margin: 0 0 0.45rem 0; }
.pl-footer-list a {
  color: var(--pl-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.pl-footer-list a:hover,
.pl-footer-list a:focus { border-bottom-color: var(--pl-ink); }

.pl-legal {
  text-align: center;
  margin: 0 auto;
  max-width: 60ch;
}

@media (max-width: 781px) {
  .pl-footer-cols.wp-block-columns > .wp-block-column { flex-basis: 50% !important; }
  .pl-footer-cols.wp-block-columns > .wp-block-column:first-child { flex-basis: 100% !important; }
}

/* ========================================================================
   Icon system. All inline SVGs use stroke=currentColor with one accent
   stroke/fill in var(--pl-primary). Sizing & color all live here.
   ======================================================================== */

.pl-icon { display: block; width: 100%; height: 100%; }

/* Service-card icon — sits above the eyebrow inside .pl-card */
.pl-svc-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  color: var(--pl-ink);
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border-radius: 16px;
  background: var(--pl-bg);
  border: 1px solid color-mix(in srgb, var(--pl-primary) 16%, transparent);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--pl-ink) 7%, transparent);
}
@media (max-width: 600px) {
  .pl-svc-icon { width: 44px; height: 44px; }
}

/* Proof-strip icon — small leading icon on each cell */
.pl-proof-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  margin-bottom: 0.7rem;
  color: var(--pl-ink);
  align-items: center;
  justify-content: center;
  padding: 0.42rem;
  border-radius: 999px;
  background: var(--pl-bg);
  border: 1px solid color-mix(in srgb, var(--pl-primary) 16%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--pl-ink) 6%, transparent);
}
.wp-block-columns.pl-proof {
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.75rem) !important;
}
.wp-block-columns.pl-proof .wp-block-column {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--pl-bg) 72%, var(--pl-surface));
  border: 1px solid color-mix(in srgb, var(--pl-ink) 6%, transparent);
}
.wp-block-columns.pl-proof .wp-block-column p:last-child {
  margin-bottom: 0;
}

/* Step icon — small variant for the home-page teaser, large for /approach/ */
.pl-step-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  margin-bottom: 0.6rem;
  color: var(--pl-ink);
  align-items: center;
  justify-content: center;
}
.pl-step-icon--lg {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  margin-bottom: 0;
}

/* Homepage process teaser. Turn the four plain columns into a quiet set of
   mini-cards with a shared timeline hairline, so the section feels designed
   without adding another big illustration. */
.pl-steps.wp-block-columns {
  position: relative;
  gap: clamp(1rem, 0.75rem + 1vw, 1.75rem) !important;
}
.pl-steps.wp-block-columns::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 1.55rem;
  height: 1px;
  background: linear-gradient(90deg, var(--pl-primary), var(--pl-accent), color-mix(in srgb, var(--pl-ink) 12%, transparent));
  opacity: 0.35;
}
.pl-steps.wp-block-columns > .wp-block-column {
  position: relative;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--pl-bg) 78%, var(--pl-surface));
  border: 1px solid color-mix(in srgb, var(--pl-ink) 7%, transparent);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--pl-ink) 5%, transparent);
}
.pl-steps .pl-step-icon {
  width: 42px;
  height: 42px;
  padding: 0.48rem;
  border-radius: 999px;
  background: var(--pl-bg);
  border: 1px solid color-mix(in srgb, var(--pl-primary) 18%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--pl-ink) 6%, transparent);
}
.pl-steps .pl-process-num {
  color: var(--pl-primary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* /approach/ long-form rows: icon left, copy right */
.pl-step-row {
  display: grid !important;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 600px) {
  .pl-step-row {
    grid-template-columns: 44px 1fr;
    gap: 0.85rem;
  }
  .pl-step-icon--lg { width: 44px; height: 44px; flex-basis: 44px; }
}

/* ========================================================================
   Approach-flow diagram (process-steps top). Constrains to the alignwide
   width and scales fluidly; centers itself in the constrained column.
   ======================================================================== */
.pl-approach-flow {
  margin: 1rem auto 2.5rem;
  max-width: 1100px;
  width: 100%;
}
.pl-approach-flow svg {
  width: 100%;
  height: auto;
  max-width: 1100px;
  display: block;
}

/* ========================================================================
   Hero 2-column layout. The illustration column is hidden below 800 px
   so it never pushes the H1 below the fold on phones.
   ======================================================================== */
.pl-hero-cols.wp-block-columns { align-items: center !important; }
.pl-hero-illo {
  margin: 0;
  width: 100%;
  max-width: 520px;
}
.pl-hero-illo svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 800px) {
  .pl-hero-illo-col.wp-block-column { display: none !important; }
  .pl-hero-cols.wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
}

/* When the illustration is showing, drop the dot-grid + side glow that the
   hero used to lean on — the illustration carries that weight now.        */
.pl-hero:has(.pl-hero-illo)::before { opacity: 0.78; -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 0.32) 0%, rgb(0 0 0 / 0.72) 45%, #000 100%); mask-image: linear-gradient(to right, rgb(0 0 0 / 0.32) 0%, rgb(0 0 0 / 0.72) 45%, #000 100%); }
.pl-hero:has(.pl-hero-illo)::after { display: none; }

/* Quiet background motifs for the main homepage sections. These use the
   existing card/step classes as anchors, so they also work when the homepage
   content has been flattened into the database. */
main .wp-block-group.alignfull:has(.pl-cards),
main .wp-block-group.alignfull:has(.pl-steps) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
main .wp-block-group.alignfull:has(.pl-cards)::after {
  content: "";
  position: absolute;
  right: max(2rem, calc((100vw - 1200px) / 2));
  top: 3rem;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--pl-primary) 18%, transparent) 1px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 72%);
          mask-image: radial-gradient(circle, #000 45%, transparent 72%);
  z-index: -1;
}
main .wp-block-group.alignfull:has(.pl-steps)::after {
  content: "";
  position: absolute;
  right: max(1.5rem, calc((100vw - 1200px) / 2));
  bottom: 1.5rem;
  width: 280px;
  height: 130px;
  background:
    linear-gradient(135deg, transparent 0 46%, color-mix(in srgb, var(--pl-accent) 35%, transparent) 46% 49%, transparent 49% 100%);
  background-size: 28px 28px;
  opacity: 0.24;
  z-index: -1;
}

/* ========================================================================
   CTA closing band — subtle white-on-ink circuit/grid texture overlay.
   ======================================================================== */
.pl-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--pl-accent) 28%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--pl-accent) 18%, transparent);
}
.pl-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../graphics/cta-circuit.svg");
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}
.pl-cta > * { position: relative; }
.pl-cta h2.wp-block-heading {
  max-width: 16ch;
}
.pl-cta p.pl-prose {
  max-width: 62ch;
}
.pl-cta .wp-block-button__link {
  box-shadow: 0 12px 28px color-mix(in srgb, var(--pl-primary) 35%, transparent);
}
.pl-cta .wp-block-button__link:hover,
.pl-cta .wp-block-button__link:focus {
  background: var(--pl-accent) !important;
  color: var(--pl-ink) !important;
}

/* ========================================================================
   Section rhythm. Consistent vertical breathing room around every
   top-level full-width band on the home and inner pages, so consecutive
   sections feel visually separated even when their background colors
   touch.

   !important is intentional here: Gutenberg block patterns inline their
   section padding via the style="" attribute, which has higher specificity
   than any normal selector. Overriding once at this layer keeps the
   spacing in one place rather than scattered across every pattern PHP
   file and every DB-baked page record.
   ======================================================================== */
/* The descendant (`main ...alignfull`) rather than direct-child combinator
   is intentional: front-page.html nests sections directly under <main>,
   but page.html wraps them in an extra <div class="entry-content"> for
   single-post / single-page templates. Descendant matches both.       */
main .wp-block-group.alignfull {
  padding-block: clamp(3rem, 2.25rem + 2vw, 5rem) !important;
}

/* Hero gets a touch more — primary above-the-fold real estate. */
main .wp-block-group.alignfull.pl-hero {
  padding-block: clamp(4rem, 3rem + 2.5vw, 6.25rem) !important;
}

/* Proof strip is a deliberately tight pill-band; keep it modest. The
   selector targets the wrapping group via its .pl-proof columns child so
   we don't need to add a marker class to the pattern. :has() is widely
   supported; older browsers fall through to the default rule above and
   the proof strip just renders a bit taller — graceful degradation.    */
main .wp-block-group.alignfull:has(> .wp-block-columns.pl-proof) {
  padding-block: clamp(1.25rem, 1rem + 0.5vw, 2rem) !important;
}

/* ========================================================================
   Engineering-amber accent. Used sparingly to keep it special.
   ======================================================================== */

/* Inline-SVG opt-in: any path/circle with class="pl-accent" inside an
   inline icon picks up the accent color via fill OR stroke (whichever the
   element already declares; CSS only sets the color value).               */
svg .pl-accent { fill: var(--pl-accent); }
svg .pl-accent-stroke { stroke: var(--pl-accent); }

/* Last-paragraph "Read more →" arrow inside service cards goes amber. The
   trailing arrow character (›→ etc.) is split into its own gradient so the
   underlined text stays primary-blue and only the arrow changes color.   */
.pl-card a[href][href*="/services/"] {
  background-image: linear-gradient(to right, var(--pl-primary) 0%, var(--pl-primary) calc(100% - 1.2em), var(--pl-accent) calc(100% - 1.2em), var(--pl-accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-decoration-color: var(--pl-primary);
}

/* Generic accent callout — bordered card with an amber left rule. Use
   class="pl-callout" on a wp:group when you want to highlight a quote,
   stat, warning, or aside.                                               */
.pl-callout {
  border-left: 3px solid var(--pl-accent);
  background: color-mix(in srgb, var(--pl-accent) 8%, var(--pl-bg));
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
