/* ==========================================================================
   Cloudpilar — editorial theme
   Paper surfaces, deep-ink anchor bands, Fraunces display / Inter body.
   Tokens come from theme.json; this file is composition and craft only.
   ========================================================================== */

/* --------------------------------------------------------------- Base ---- */

/* No box-sizing reset ships with WordPress core by default. Without this,
   max-width on .cp-container (and any padded/bordered element) is measured
   against the content box alone, so padding silently adds on top of it —
   that is what made .cp-container render at 1280px instead of 1200px. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --cp-ink: var(--wp--preset--color--ink);
  --cp-paper: var(--wp--preset--color--paper);
  --cp-accent: var(--wp--preset--color--accent);
  --cp-rule: var(--wp--preset--color--rule);
  --cp-rule-ink: rgba(255, 255, 255, 0.11);
  --cp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cp-header-h: 76px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--cp-header-h) + 24px);
  /* Belt and braces: body alone does not stop the root scrolling sideways. */
  overflow-x: clip;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: rgba(27, 111, 232, 0.18);
}

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

/* Fraunces reads best with its wonk/soft axes dialled back for UI use. */
h1, h2, h3, h4,
.cp-display {
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ------------------------------------------------------------ Layout ---- */

.cp-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.cp-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}

.cp-section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.cp-section--alt {
  background: var(--wp--preset--color--paper-2);
}

.cp-section--ink {
  background: var(--cp-ink);
  color: var(--wp--preset--color--on-ink);
}

.cp-section--ink h1,
.cp-section--ink h2,
.cp-section--ink h3,
.cp-section--ink h4 {
  color: var(--wp--preset--color--on-ink);
}

.cp-section--ink p {
  color: var(--wp--preset--color--on-ink-muted);
}

/* Hairline dividers between light sections keep the rhythm editorial. */
.cp-section + .cp-section:not(.cp-section--alt):not(.cp-section--ink)::before {
  content: "";
  position: absolute;
  inset-inline: clamp(1.25rem, 5vw, 2.5rem);
  top: 0;
  height: 1px;
  background: var(--cp-rule);
}

.cp-prose {
  max-width: 68ch;
}

/* ------------------------------------------------------ Section heads ---- */

.cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-muted);
  margin: 0 0 1.25rem;
}

.cp-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cp-accent);
  flex: none;
}

.cp-section--ink .cp-eyebrow {
  color: var(--wp--preset--color--on-ink-muted);
}

.cp-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cp-head--center {
  margin-inline: auto;
  text-align: center;
}

.cp-head--center .cp-eyebrow {
  justify-content: center;
}

.cp-head__title {
  margin: 0 0 1.1rem;
}

.cp-head__lede {
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.6;
  color: var(--wp--preset--color--text-muted);
  margin: 0;
}

.cp-section--ink .cp-head__lede {
  color: var(--wp--preset--color--on-ink-muted);
}

/* Split head: title left, lede right — a classic editorial consultancy move. */
.cp-head--split {
  max-width: none;
  display: grid;
  gap: clamp(1rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

@media (min-width: 900px) {
  .cp-head--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .cp-head--split .cp-head__lede {
    padding-bottom: 0.35rem;
  }
}

/* ----------------------------------------------------------- Buttons ---- */

.cp-btn {
  --btn-bg: var(--cp-accent);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.75rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--cp-ease), border-color 200ms var(--cp-ease),
    transform 200ms var(--cp-ease), box-shadow 200ms var(--cp-ease);
}

.cp-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.cp-btn:active {
  transform: translateY(0);
}

.cp-btn--primary:hover {
  --btn-bg: var(--wp--preset--color--accent-deep);
  box-shadow: 0 12px 28px -14px rgba(27, 111, 232, 0.75);
}

.cp-btn--ink {
  --btn-bg: var(--cp-ink);
  --btn-fg: var(--wp--preset--color--on-ink);
}

.cp-btn--ink:hover {
  --btn-bg: #1b2444;
}

/* Ghost on a dark band. */
.cp-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--wp--preset--color--on-ink);
  --btn-bd: rgba(255, 255, 255, 0.24);
}

.cp-btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.07);
  --btn-bd: rgba(255, 255, 255, 0.42);
}

/* Ghost on paper. */
.cp-btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--wp--preset--color--text);
  --btn-bd: var(--cp-rule);
}

.cp-btn--outline:hover {
  --btn-bg: #fff;
  --btn-bd: #c9c3b7;
}

.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Inline icons carry no width/height attributes so they inherit currentColor
   cleanly — which means they need an explicit size here, or they balloon to
   the SVG default and wrap the label beside them. */
.cp-btn svg,
.cp-link svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* Deliberately NOT white-space: nowrap. A non-shrinkable button inside a grid
   column raises that column's min-content width and overflows the page. Sizing
   the icons above is what stops labels wrapping awkwardly. */

/* Text link with an animated rule — used for "Read more" style affordances. */
.cp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--accent-text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 260ms var(--cp-ease);
}

.cp-link:hover {
  background-size: 100% 1px;
  text-decoration: none;
}

.cp-link__arrow {
  transition: transform 260ms var(--cp-ease);
}

.cp-link:hover .cp-link__arrow {
  transform: translateX(3px);
}

/* ------------------------------------------------------------ Header ---- */

.cp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--cp-ease), background-color 240ms var(--cp-ease);
}

.cp-header.is-stuck {
  border-bottom-color: var(--cp-rule);
}

.cp-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--cp-header-h);
}

.cp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--cp-ink);
  text-decoration: none;
  flex: none;
}

.cp-brand:hover {
  text-decoration: none;
  color: var(--cp-ink);
}

.cp-brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.cp-nav {
  display: none;
  margin-inline-start: auto;
}

.cp-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-nav__list a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wp--preset--color--text);
  text-decoration: none;
  transition: background-color 180ms var(--cp-ease), color 180ms var(--cp-ease);
}

.cp-nav__list a:hover,
.cp-nav__list .current-menu-item > a {
  background: rgba(11, 16, 32, 0.055);
  color: var(--cp-ink);
  text-decoration: none;
}

.cp-header__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@media (min-width: 1040px) {
  .cp-nav {
    display: block;
  }

  .cp-header__actions {
    margin-inline-start: 0;
  }
}

.cp-header__cta {
  display: none;
}

/* The header CTA only appears once the full nav does — below that the burger
   owns the right-hand side and the CTA lives inside the mobile menu. */
@media (min-width: 1040px) {
  .cp-header__cta {
    display: inline-flex;
    padding: 0.7rem 1.3rem;
    min-height: 42px;
    font-size: 0.9rem;
  }
}

/* Mobile menu toggle */
.cp-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--cp-rule);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.cp-burger span {
  display: block;
  height: 1.5px;
  background: var(--cp-ink);
  border-radius: 2px;
  transition: transform 240ms var(--cp-ease), opacity 180ms var(--cp-ease);
}

.cp-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.cp-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.cp-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 1040px) {
  .cp-burger {
    display: none;
  }
}

.cp-mobilenav {
  display: none;
  border-top: 1px solid var(--cp-rule);
  background: var(--cp-paper);
  padding-block: 1rem 1.5rem;
}

.cp-mobilenav.is-open {
  display: block;
}

@media (min-width: 1040px) {
  .cp-mobilenav,
  .cp-mobilenav.is-open {
    display: none;
  }
}

.cp-mobilenav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-mobilenav__list a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--wp--preset--color--text);
  border-bottom: 1px solid var(--cp-rule);
  text-decoration: none;
}

.cp-mobilenav .cp-btn {
  width: 100%;
  margin-top: 1.25rem;
}

/* -------------------------------------------------------------- Hero ---- */

.cp-hero {
  position: relative;
  background: var(--cp-ink);
  color: var(--wp--preset--color--on-ink);
  padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

/* One slow, directional light — restraint reads as expensive. */
.cp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70rem 44rem at 12% -18%, rgba(27, 111, 232, 0.24), transparent 62%),
    radial-gradient(48rem 40rem at 96% 8%, rgba(184, 146, 90, 0.09), transparent 60%);
}

/* Fine engineering grid, faded out — a nod to the technical work. */
.cp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(closest-side at 30% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(closest-side at 30% 0%, #000 20%, transparent 78%);
}

.cp-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .cp-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.cp-hero__title {
  font-size: var(--wp--preset--font-size--hero);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0 0 1.5rem;
  color: var(--wp--preset--color--on-ink);
}

/* The accent clause carries the proposition — italic Fraunces earns its keep.
   A precise rule under it reads more considered than a highlighter block. */
.cp-hero__title em {
  font-style: italic;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--cp-accent);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.cp-hero__lede {
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
  line-height: 1.65;
  color: var(--wp--preset--color--on-ink-muted);
  max-width: 40rem;
  margin: 0 0 2.25rem;
}

.cp-hero__actions {
  margin-bottom: 2.5rem;
}

.cp-hero__note {
  font-size: 0.875rem;
  color: var(--wp--preset--color--on-ink-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cp-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
  flex: none;
}

/* Portrait — sits in the hero's second grid column at desktop, stacks below
   the text on mobile since it is the grid's second DOM child. */
.cp-hero__portrait {
  border-radius: var(--wp--custom--radius--xl);
  overflow: hidden;
  border: 1px solid var(--cp-rule-ink);
  box-shadow: var(--wp--preset--shadow--ink, 0 30px 70px -30px rgba(11, 16, 32, 0.55));
}

.cp-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Metrics — a full-width belt beneath the hero grid, not a grid column, so it
   can stretch across the whole container once the portrait takes the second
   column. */
.cp-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--cp-rule-ink);
  border: 1px solid var(--cp-rule-ink);
  border-radius: 16px;
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 700px) {
  .cp-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cp-metric {
  background: rgba(255, 255, 255, 0.022);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.cp-metric__value {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.5rem;
}

.cp-metric__label {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--wp--preset--color--on-ink-muted);
  margin: 0;
}

/* ------------------------------------------------------- Credentials ---- */

.cp-creds {
  border-bottom: 1px solid var(--cp-rule);
  /* Tighter than .cp-section--tight: this is a proof strip between the hero
     and the first real section, so it should not eat a mobile screen. */
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
}

.cp-creds__head {
  max-width: 46rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.cp-creds__title {
  /* Restrained on purpose — this is a supporting proof section, not a
     headline act competing with the hero. */
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.cp-creds__lede {
  font-size: 0.9688rem;
  line-height: 1.6;
  color: var(--wp--preset--color--text-muted);
  margin: 0;
  max-width: 42rem;
}

.cp-creds__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem 1.5rem;
}

@media (min-width: 640px) {
  .cp-creds__list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  }
}

.cp-cred {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cp-cred__badge {
  flex: none;
  height: auto;
}

/* Expert and trainer badges lead the hierarchy, but stay small enough that
   the section reads as evidence rather than a wall of vendor imagery. */
.cp-cred--primary .cp-cred__badge {
  width: 46px;
}

.cp-cred--secondary .cp-cred__badge {
  width: 30px;
  opacity: 0.9;
}

@media (min-width: 640px) {
  .cp-cred--primary .cp-cred__badge {
    width: 52px;
  }

  .cp-cred--secondary .cp-cred__badge {
    width: 32px;
  }
}

.cp-cred__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cp-cred__name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wp--preset--color--ink);
}

.cp-cred--secondary .cp-cred__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--text-muted);
}

.cp-cred__level {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

/* Expert is the claim worth emphasising, so it alone gets a tinted chip. */
.cp-cred__level--expert {
  align-self: flex-start;
  color: var(--wp--preset--color--accent-deep);
  background: var(--wp--preset--color--accent-soft);
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
}

.cp-cred__level--trainer {
  align-self: flex-start;
  color: var(--wp--preset--color--text-muted);
  background: var(--wp--preset--color--paper-2);
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
}

.cp-cred__level--associate {
  color: var(--wp--preset--color--text-subtle, var(--wp--preset--color--text-muted));
  opacity: 0.8;
}

.cp-creds__secondary {
  margin-top: clamp(1.1rem, 2vw, 1.5rem);
  padding-top: clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid var(--cp-rule);
}

.cp-creds__secondary-label,
.cp-creds__tech-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-muted);
  margin: 0 0 0.9rem;
}

.cp-creds__list--secondary {
  gap: 0.75rem 1.5rem;
}

@media (min-width: 640px) {
  .cp-creds__list--secondary {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  }
}

/* Technology row — names only. A row of third-party logos would read as
   endorsement, which is the impression this whole section avoids. */
.cp-creds__tech {
  margin-top: clamp(1.1rem, 2vw, 1.5rem);
  padding-top: clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid var(--cp-rule);
}

.cp-creds__tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cp-creds__tech-list li {
  font-size: 0.8438rem;
  font-weight: 500;
  color: var(--wp--preset--color--text-muted);
  background: var(--wp--preset--color--paper-2);
  border: 1px solid var(--cp-rule);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  line-height: 1.2;
}

/* ------------------------------------------------------------- Grids ---- */

.cp-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.cp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.cp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.cp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

/* ------------------------------------------------------------- Cards ---- */

.cp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cp-rule);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 300ms var(--cp-ease), box-shadow 300ms var(--cp-ease),
    border-color 300ms var(--cp-ease);
}

.cp-card:hover {
  transform: translateY(-3px);
  border-color: #d3cdc1;
  box-shadow: 0 24px 50px -30px rgba(11, 16, 32, 0.4);
}

.cp-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--wp--preset--color--accent-soft);
  color: var(--wp--preset--color--accent-deep);
  margin-bottom: 1.25rem;
  flex: none;
}

.cp-card__icon svg {
  width: 21px;
  height: 21px;
}

.cp-card__title {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

.cp-card__title a {
  color: inherit;
  text-decoration: none;
}

.cp-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.cp-card__body {
  font-size: 0.9688rem;
  line-height: 1.6;
  color: var(--wp--preset--color--text-muted);
  margin: 0;
}

.cp-card__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.cp-card__list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.9063rem;
  line-height: 1.5;
  color: var(--wp--preset--color--text-muted);
}

.cp-card__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--cp-accent);
}

.cp-card__foot {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* Ink variant for cards on dark bands */
.cp-section--ink .cp-card {
  background: rgba(255, 255, 255, 0.032);
  border-color: var(--cp-rule-ink);
}

.cp-section--ink .cp-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.cp-section--ink .cp-card__body,
.cp-section--ink .cp-card__list li {
  color: var(--wp--preset--color--on-ink-muted);
}

.cp-section--ink .cp-card__icon {
  background: rgba(27, 111, 232, 0.16);
  color: #8fbaff;
}

/* ----------------------------------------------------------- Pillars ---- */

.cp-pillar {
  padding-top: 1.75rem;
  border-top: 2px solid var(--cp-ink);
}

.cp-pillar__title {
  font-size: 1.375rem;
  margin: 0 0 0.7rem;
}

.cp-pillar__body {
  color: var(--wp--preset--color--text-muted);
  font-size: 0.9688rem;
  line-height: 1.65;
  margin: 0;
}

/* ----------------------------------------------------------- Process ---- */

.cp-steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  counter-reset: step;
}

@media (min-width: 760px) {
  .cp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .cp-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cp-step {
  position: relative;
  padding-top: 2.25rem;
  border-top: 1px solid var(--cp-rule-ink);
}

.cp-step__num {
  position: absolute;
  top: -0.15rem;
  inset-inline-start: 0;
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cp-accent);
}

.cp-step__title {
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}

.cp-step__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

/* ------------------------------------------------------ Case studies ---- */

.cp-case {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cp-rule);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: transform 320ms var(--cp-ease), box-shadow 320ms var(--cp-ease);
}

.cp-case:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -34px rgba(11, 16, 32, 0.45);
}

.cp-case__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--wp--preset--color--paper-3);
}

.cp-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms var(--cp-ease);
}

.cp-case:hover .cp-case__media img {
  transform: scale(1.04);
}

.cp-case__body {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cp-case__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-muted);
  margin: 0 0 0.85rem;
}

.cp-case__metric {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--accent-deep);
  margin: 0 0 0.6rem;
  line-height: 1;
}

.cp-case__title {
  font-size: 1.1875rem;
  line-height: 1.35;
  margin: 0 0 0.7rem;
}

.cp-case__title a {
  color: inherit;
  text-decoration: none;
}

.cp-case__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cp-case__body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--wp--preset--color--text-muted);
  margin: 0;
}

.cp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cp-rule);
}

.cp-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--wp--preset--color--paper-2);
  color: var(--wp--preset--color--text-muted);
}

/* -------------------------------------------------------- Engagement ---- */

.cp-plans {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .cp-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cp-plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cp-rule);
  border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  height: 100%;
}

.cp-plan--featured {
  border-color: var(--cp-ink);
  border-width: 1.5px;
  box-shadow: 0 30px 70px -40px rgba(11, 16, 32, 0.5);
  position: relative;
}

.cp-plan__badge {
  position: absolute;
  top: -0.75rem;
  inset-inline-start: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--cp-ink);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.cp-plan__name {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.cp-plan__price {
  font-family: var(--wp--preset--font-family--display);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cp-ink);
  margin: 0;
}

.cp-plan__cadence {
  font-size: 0.875rem;
  color: var(--wp--preset--color--text-muted);
  margin: 0.45rem 0 1.25rem;
}

.cp-plan__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--wp--preset--color--text-muted);
  margin: 0 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cp-rule);
}

.cp-plan__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cp-plan__list li {
  position: relative;
  padding-inline-start: 1.6rem;
  font-size: 0.9063rem;
  line-height: 1.5;
}

.cp-plan__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.36em;
  width: 12px;
  height: 7px;
  border-inline-start: 1.5px solid var(--cp-accent);
  border-bottom: 1.5px solid var(--cp-accent);
  transform: rotate(-45deg);
}

.cp-plan .cp-btn {
  margin-top: auto;
  width: 100%;
}

/* ------------------------------------------------------ Testimonials ---- */

.cp-quote {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-top: 2px solid var(--cp-ink);
  padding-top: 1.75rem;
}

.cp-quote__text {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--cp-ink);
  margin: 0 0 1.75rem;
}

.cp-quote__who {
  margin-top: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cp-quote__name {
  font-weight: 600;
  color: var(--cp-ink);
  display: block;
}

.cp-quote__role {
  color: var(--wp--preset--color--text-muted);
}

/* ---------------------------------------------------------- Industry ---- */

.cp-industry {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--cp-rule);
}

.cp-industry__icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--wp--preset--color--paper-2);
  color: var(--cp-ink);
}

.cp-industry__icon svg {
  width: 19px;
  height: 19px;
}

.cp-industry__title {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 0.3rem;
}

.cp-industry__body {
  font-size: 0.9063rem;
  line-height: 1.55;
  color: var(--wp--preset--color--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------- FAQ ---- */

.cp-faq {
  border-top: 1px solid var(--cp-rule);
  max-width: 52rem;
}

.cp-faq details {
  border-bottom: 1px solid var(--cp-rule);
}

.cp-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--cp-ink);
}

.cp-faq summary::-webkit-details-marker {
  display: none;
}

.cp-faq__icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  position: relative;
}

.cp-faq__icon::before,
.cp-faq__icon::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--cp-accent);
  translate: -50% -50%;
  transition: transform 260ms var(--cp-ease), opacity 200ms var(--cp-ease);
}

.cp-faq__icon::after {
  transform: rotate(90deg);
}

.cp-faq details[open] .cp-faq__icon::after {
  transform: rotate(0deg);
  opacity: 0;
}

.cp-faq__answer {
  padding: 0 0 1.6rem;
  max-width: 60ch;
}

.cp-faq__answer p {
  font-size: 0.9688rem;
  line-height: 1.7;
  color: var(--wp--preset--color--text-muted);
  margin: 0;
}

/* ---------------------------------------------------------- CTA band ---- */

.cp-cta {
  background: var(--cp-ink);
  color: var(--wp--preset--color--on-ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(56rem 30rem at 78% 120%, rgba(27, 111, 232, 0.3), transparent 62%);
}

.cp-cta__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 940px) {
  .cp-cta__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}

.cp-cta__title {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 400;
  margin: 0 0 1.1rem;
  color: #fff;
}

.cp-cta__lede {
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.6;
  color: var(--wp--preset--color--on-ink-muted);
  margin: 0;
  max-width: 38rem;
}

.cp-cta__panel {
  display: grid;
  gap: 0.9rem;
}

.cp-cta__contact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--on-ink-muted);
  text-decoration: none;
}

.cp-cta__contact:hover {
  color: #fff;
  text-decoration: none;
}

.cp-cta__contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: 0.75;
}

/* ------------------------------------------------------------ Footer ---- */

.cp-footer {
  background: var(--cp-ink);
  color: var(--wp--preset--color--on-ink-muted);
  border-top: 1px solid var(--cp-rule-ink);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  font-size: 0.9063rem;
}

.cp-footer__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--cp-rule-ink);
}

@media (min-width: 720px) {
  .cp-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .cp-footer__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

.cp-footer .cp-brand {
  color: #fff;
  margin-bottom: 1.1rem;
}

.cp-footer .cp-brand:hover {
  color: #fff;
}

.cp-footer__blurb {
  line-height: 1.65;
  max-width: 26rem;
  margin: 0 0 1.5rem;
  color: var(--wp--preset--color--on-ink-muted);
}

.cp-footer__title {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.15rem;
}

.cp-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.cp-footer__list a {
  color: var(--wp--preset--color--on-ink-muted);
  text-decoration: none;
  transition: color 180ms var(--cp-ease);
}

.cp-footer__list a:hover {
  color: #fff;
  text-decoration: none;
}

.cp-footer__office {
  margin: 0 0 1.15rem;
  line-height: 1.6;
}

.cp-footer__office strong {
  color: #fff;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.cp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8438rem;
}

.cp-footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-footer__legal a {
  color: var(--wp--preset--color--on-ink-muted);
  text-decoration: none;
}

.cp-footer__legal a:hover {
  color: #fff;
}

.cp-social {
  display: flex;
  gap: 0.5rem;
}

.cp-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cp-rule-ink);
  border-radius: 10px;
  color: var(--wp--preset--color--on-ink-muted);
  transition: border-color 200ms var(--cp-ease), color 200ms var(--cp-ease),
    background-color 200ms var(--cp-ease);
}

.cp-social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.cp-social svg {
  width: 17px;
  height: 17px;
}

/* ------------------------------------------------------------- Forms ---- */

.cp-form {
  display: grid;
  gap: 1.25rem;
}

.cp-form__row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cp-form__row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cp-field {
  display: grid;
  gap: 0.45rem;
}

.cp-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cp-ink);
}

.cp-field .cp-req {
  color: #c0392b;
}

.cp-field input,
.cp-field select,
.cp-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--wp--preset--color--text);
  background: #fff;
  border: 1px solid var(--cp-rule);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  transition: border-color 180ms var(--cp-ease), box-shadow 180ms var(--cp-ease);
}

.cp-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.cp-field input:focus,
.cp-field select:focus,
.cp-field textarea:focus {
  outline: none;
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 3px rgba(27, 111, 232, 0.16);
}

.cp-field__hint {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--text-muted);
}

/* Honeypot — visually and programmatically hidden from real users. */
.cp-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cp-notice {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  border: 1px solid;
}

.cp-notice--ok {
  background: #edfaf1;
  border-color: #b6e6c6;
  color: #145c31;
}

.cp-notice--err {
  background: #fdeeec;
  border-color: #f3c2bc;
  color: #8c2617;
}

/* -------------------------------------------------------- Utilities ---- */

.cp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cp-skip {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 999;
  background: var(--cp-ink);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 200ms var(--cp-ease);
}

.cp-skip:focus {
  top: 0;
  color: #fff;
}

/* ---------------------------------------------------------- Motion ---- */

/* Scoped to .cp-anim, which is armed inline in <head> and removed again by a
   failsafe timer if theme.js never runs. Content is therefore never
   permanently hidden by a script that failed to load. */
.cp-anim .cp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 640ms var(--cp-ease), transform 640ms var(--cp-ease);
}

.cp-anim .cp-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .cp-anim .cp-reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------- Article / prose ---- */

.cp-article {
  max-width: 44rem;
  margin-inline: auto;
}

.cp-article h2 {
  font-size: 1.875rem;
  margin: 2.75rem 0 1rem;
}

.cp-article h3 {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.85rem;
}

.cp-article p,
.cp-article li {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.cp-article p {
  margin: 0 0 1.35rem;
}

.cp-article ul,
.cp-article ol {
  margin: 0 0 1.35rem;
  padding-inline-start: 1.3rem;
}

.cp-article li {
  margin-bottom: 0.6rem;
}

.cp-article img {
  border-radius: 14px;
  margin-block: 2rem;
}

/* Legal pages read denser and narrower. */
.cp-legal {
  max-width: 46rem;
}

.cp-legal h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.9rem;
}

.cp-legal p,
.cp-legal li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--wp--preset--color--text-muted);
}

/* ------------------------------------------------------------- Founder ---- */

.cp-founder {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .cp-founder {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.cp-founder__media {
  border-radius: var(--wp--custom--radius--xl);
  overflow: hidden;
  border: 1px solid var(--cp-rule);
  box-shadow: var(--wp--preset--shadow--lg, 0 24px 60px -24px rgba(11, 16, 32, 0.28));
}

.cp-founder__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-founder__title {
  margin: 0 0 1.1rem;
}

.cp-founder__body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--wp--preset--color--text-muted);
  margin: 0 0 1.1rem;
}

.cp-founder__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.cp-founder__list li {
  position: relative;
  padding-inline-start: 1.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
}

.cp-founder__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--cp-accent);
}

/* ------------------------------------- Detail page: content + sidebar ---- */

@media (min-width: 980px) {
  .cp-service-layout {
    grid-template-columns: minmax(0, 1fr) 21rem !important;
    align-items: start;
  }
}

/* ------------------------------------------------------- Page header ---- */

.cp-pagehead {
  background: var(--cp-ink);
  color: var(--wp--preset--color--on-ink);
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cp-pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(52rem 32rem at 8% -20%, rgba(27, 111, 232, 0.22), transparent 62%);
}

.cp-pagehead__title {
  font-size: var(--wp--preset--font-size--mega);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: #fff;
  margin: 0 0 1.1rem;
  max-width: 22ch;
}

.cp-pagehead__lede {
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.6;
  color: var(--wp--preset--color--on-ink-muted);
  margin: 0;
  max-width: 44rem;
}

.cp-breadcrumb {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--on-ink-muted);
  margin: 0 0 1.5rem;
}

.cp-breadcrumb a {
  color: var(--wp--preset--color--on-ink-muted);
  text-decoration: none;
}

.cp-breadcrumb a:hover {
  color: #fff;
}

/* ------------------------------------------------------------ Print ---- */

@media print {
  .cp-header,
  .cp-footer,
  .cp-cta,
  .cp-burger {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
