/* ==========================================================================
   Sections — homepage narrative and inner page furniture
   ========================================================================== */

/* ---- Signature converging path ------------------------------------------ */
.cp-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.cp-path--hero { opacity: 0.85; }
.cp-path--section { opacity: 0.35; }

/* Strands are drawn by JS setting --draw from 0 to 1 as the section scrolls. */
.cp-strand,
.cp-path__main {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: calc(var(--len, 1200) * (1 - var(--draw, 1)));
}
.js .cp-path { --draw: 0; }
.cp-path__node,
.cp-path__pulse { opacity: var(--draw, 1); }
.cp-path__pulse {
  transform-origin: 400px 300px;
  animation: cp-pulse 3.4s var(--cp-ease-out) infinite;
}
@keyframes cp-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(4.5); opacity: 0; }
  100% { transform: scale(4.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .cp-path { --draw: 1; }
  .cp-path__pulse { animation: none; opacity: 0; }
}

/* ---- Hero ----------------------------------------------------------------
   Bright editorial split. Copy sits on a clean white canvas while two columns
   of business-advisory imagery move in opposite directions. Photography stays
   clear: no navy wash, no text overlay and no blend mode.
   -------------------------------------------------------------------------- */

.cp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 58rem);
  background: #f8fbfc;
  color: var(--cp-ink);
  overflow: hidden;
  isolation: isolate;
}

.cp-hero__grid { flex: 1; display: grid; }
@media (min-width: 62rem) {
  .cp-hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(31rem, 0.96fr);
    min-height: 0;
  }
}

/* --- type column --- */
.cp-hero__panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--cp-header-h) + var(--cp-space-lg)) var(--cp-gutter) var(--cp-space-lg);
  background:
    radial-gradient(circle at 88% 24%, rgba(101, 184, 237, 0.2), transparent 24rem),
    radial-gradient(circle at 10% 88%, rgba(200, 229, 213, 0.3), transparent 28rem),
    linear-gradient(145deg, #fff 0%, #fbfdfe 62%, #eef7f9 100%);
}
@media (min-width: 62rem) {
  /* Align the column's inner edge to the site grid. */
  .cp-hero__panel { padding-left: max(var(--cp-gutter), calc((100vw - var(--cp-max)) / 2 + var(--cp-gutter))); }
}

.cp-hero__contours {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 24%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 2%, #000 24%, #000 100%);
}

.cp-hero__contours::before {
  content: "";
  position: absolute;
  right: -8rem;
  top: 12%;
  width: 27rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.88), rgba(101, 184, 237, 0.08) 42%, transparent 70%);
  filter: blur(1px);
}

.cp-hero__contours svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(15, 109, 180, 0.13);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.cp-hero__contour-point {
  fill: var(--cp-azure-vivid);
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3;
}

.cp-hero__contour-ring {
  stroke: rgba(15, 109, 180, 0.22);
  stroke-width: 1;
  stroke-dasharray: 8 5;
}

.cp-hero__contour-traveller {
  opacity: 0;
  will-change: transform, opacity;
}

.cp-hero__contour-rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: cp-hero-contour-spin 2.8s linear infinite;
}

.cp-hero__contour-tick {
  fill: var(--cp-azure-vivid);
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 1.5;
}

@keyframes cp-hero-contour-spin {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .cp-hero__contour-rotor { animation: none; }
}

.cp-hero__content { position: relative; z-index: 1; width: 100%; max-width: 40rem; }
.cp-hero__line { display: block; }

.cp-hero__title {
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.75rem);
  line-height: 1.02;
  margin-bottom: var(--cp-space-md);
  color: var(--cp-ink);
}
.cp-hero__lede {
  max-width: 32rem;
  font-size: var(--cp-step-1);
  color: var(--cp-ink-soft);
  font-weight: 400;
}
.cp-hero__actions { margin-top: var(--cp-space-lg); }

/* --- counter-moving photographic rails --- */
.cp-hero__figure {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-left: 1px solid rgba(15, 109, 180, 0.12);
  background:
    radial-gradient(circle at 75% 15%, rgba(101, 184, 237, 0.2), transparent 20rem),
    linear-gradient(145deg, #edf5f7, #f8fbfc 54%, #e8f1f4);
}

.cp-hero__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.68));
}

.cp-hero__gallery {
  position: absolute;
  top: calc(var(--cp-header-h) + 0.75rem);
  right: clamp(1rem, 0.6rem + 1.3vw, 2rem);
  bottom: 1rem;
  left: clamp(1rem, 0.6rem + 1.3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.45rem + 0.8vw, 1.25rem);
  min-height: 0;
}

.cp-hero__rail {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 2.5%, #000 97.5%, transparent);
}

.cp-hero__track {
  will-change: transform;
  animation: cp-hero-rail-up 42s linear infinite;
}

.cp-hero__rail--down .cp-hero__track { animation: cp-hero-rail-down 46s linear infinite; }

.cp-hero__rail-set {
  display: grid;
  gap: clamp(0.75rem, 0.45rem + 0.8vw, 1.25rem);
  padding-bottom: clamp(0.75rem, 0.45rem + 0.8vw, 1.25rem);
}

.cp-hero__image {
  height: clamp(13rem, 24vh, 17rem);
  overflow: hidden;
  border: 1px solid rgba(15, 109, 180, 0.13);
  border-radius: clamp(0.8rem, 0.65rem + 0.45vw, 1.15rem);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 35px rgba(11, 25, 53, 0.11);
}

.cp-hero__rail-set .cp-hero__image:nth-child(2) { height: clamp(16rem, 29vh, 20rem); }
.cp-hero__rail-set .cp-hero__image:nth-child(3) { height: clamp(12rem, 22vh, 15rem); }
.cp-hero__rail-set .cp-hero__image:nth-child(4) { height: clamp(15rem, 27vh, 19rem); }

.cp-hero__rail-media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto !important;
  border-radius: 0;
  background: #fff;
}

.cp-hero__rail-media .cp-media__img {
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.94) contrast(0.98) brightness(1.045);
  transform: none;
}

.cp-hero__rail-media .cp-media__tint { display: none; }

@keyframes cp-hero-rail-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

@keyframes cp-hero-rail-down {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (max-width: 61.99rem) {
  .cp-hero__figure {
    height: clamp(25rem, 70vw, 37rem);
    min-height: 25rem;
    padding: 1rem var(--cp-gutter);
    border-top: 1px solid rgba(15, 109, 180, 0.12);
    border-left: 0;
  }

  .cp-hero__gallery {
    position: relative;
    inset: auto;
    height: 100%;
    max-width: 44rem;
    margin-inline: auto;
  }
}

@media (max-width: 30rem) {
  .cp-hero__actions .cp-btn { width: 100%; justify-content: center; }
  .cp-hero__figure { height: 24rem; min-height: 24rem; padding-inline: 0.75rem; }
  .cp-hero__image { height: 11rem; }
  .cp-hero__rail-set .cp-hero__image:nth-child(2) { height: 14rem; }
  .cp-hero__rail-set .cp-hero__image:nth-child(3) { height: 10rem; }
  .cp-hero__rail-set .cp-hero__image:nth-child(4) { height: 13rem; }
  .cp-hero__contours { opacity: 0.48; transform: translateX(16%); }
  .cp-hero__contours svg { stroke: rgba(15, 109, 180, 0.11); }
}
@media (max-width: 26rem) and (max-height: 46rem) {
  .cp-hero { min-height: 0; }
  .cp-hero__panel { padding-top: calc(var(--cp-header-h) + var(--cp-space-md)); }
  .cp-hero__title { font-size: 2.15rem; }
  .cp-hero__lede { font-size: var(--cp-step-0); }
  .cp-hero__figure { min-height: 20rem; height: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
  /*
   * Both selectors are needed. The down-rail sets its animation through
   * `.cp-hero__rail--down .cp-hero__track` (0,2,0), which outranks a bare
   * `.cp-hero__track` (0,1,0) — so the single-class guard silently lost and
   * that rail kept scrolling for anyone who asked for reduced motion. A media
   * query grants no extra weight; only the selector counts.
   */
  .cp-hero__track,
  .cp-hero__rail--down .cp-hero__track { animation: none; transform: none; will-change: auto; }
  .cp-hero__rail-set[aria-hidden="true"],
  .cp-hero__rail-set + .cp-hero__rail-set { display: none; }
}

/* ---- Intro -------------------------------------------------------------- */
.cp-intro { background: var(--cp-paper); }

/* ---- Services (homepage layout lives in home.css) ----------------------- */
.cp-services { background: var(--cp-navy); color: var(--cp-on-dark); }

/* Detailed service cards (services page). */
.cp-service-card {
  padding: var(--cp-space-lg);
  background: var(--cp-paper);
  border: 1px solid var(--cp-rule-soft);
  border-radius: var(--cp-radius-lg);
  box-shadow: var(--cp-shadow-sm);
  height: 100%;
  transition: transform var(--cp-dur-md) var(--cp-ease-out),
              box-shadow var(--cp-dur-md) var(--cp-ease);
}
@media (hover: hover) {
  .cp-service-card:hover { transform: translateY(-4px); box-shadow: var(--cp-shadow); }
}
.cp-service-card__num {
  font-size: var(--cp-step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--cp-azure);
  display: block;
  margin-bottom: var(--cp-space-sm);
}
.cp-service-card h3 { margin-bottom: var(--cp-space-xs); }
.cp-service-card__points {
  margin-top: var(--cp-space-md);
  padding-top: var(--cp-space-md);
  border-top: 1px solid var(--cp-rule-soft);
}
.cp-service-card__points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--cp-step--1);
  color: var(--cp-ink-soft);
  line-height: 1.6;
}
.cp-service-card__points li + li { margin-top: 0.6rem; }
.cp-service-card__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 0.5rem; height: 1px;
  background: var(--cp-azure);
}

/* ---- Challenges (interactive diagnostic lives in home.css) -------------- */
.cp-challenges { background: var(--cp-ivory-deep); }

/* ---- Approach (scroll path) --------------------------------------------- */
/* GROUND — the three chapters, and how they are told apart.
   How We Work, Why Corepath and Strategic Partners ran consecutively on one
   identical `--cp-navy` fill, which is what made the middle of the page read as
   a single dull block. They are now three different surfaces:

     04 How We Work        a lit navy plate — depth gradient + the atmos mesh
     05 Why Corepath       white editorial split with a contained navy lead
     06 Strategic Partners a pale blue alliance ground (see .cp-partners below)

   The hard navy-to-white change after Approach is deliberate: it closes the
   process chapter before the reasons-to-engage chapter begins. */
.cp-approach {
  --cp-on-dark-soft: rgba(243, 247, 252, 0.84);
  --cp-rule-dark: rgba(190, 218, 240, 0.27);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.055) 0%, transparent 34%),
    radial-gradient(circle at 9% 10%, rgba(101, 184, 237, 0.2), transparent 31rem),
    radial-gradient(circle at 92% 86%, rgba(17, 120, 199, 0.17), transparent 34rem),
    linear-gradient(145deg, #1a426d 0%, #14375e 46%, #102c50 100%);
  color: var(--cp-on-dark);
}

/* A hairline where the light section above ends. The two grounds already meet
   at a hard edge; the rule makes that edge intentional. */
.cp-approach::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(101, 184, 237, 0.34) 22%, rgba(101, 184, 237, 0.34) 78%, transparent);
  pointer-events: none;
}
.cp-approach__track { position: relative; }

/* The vertical spine that grows with scroll. */
.cp-approach__spine {
  position: absolute;
  left: 0.6875rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--cp-rule-dark);
}
.cp-approach__spine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cp-azure-bright), var(--cp-azure));
  transform: scaleY(var(--grow, 0));
  transform-origin: top center;
  transition: transform 120ms linear;
}
/* Without JS, or with motion reduced, the spine is simply drawn in full. */
.no-js .cp-approach__spine::after { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .cp-approach__spine::after { transform: scaleY(1); transition: none; }
}

.cp-step {
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: var(--cp-space-xl);
}
.cp-step:last-child { padding-bottom: 0; }
.cp-step__dot {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.375rem; height: 1.375rem;
  border-radius: 999px;
  border: 1px solid var(--cp-rule-dark);
  background: rgba(14, 42, 76, 0.88);
  display: grid;
  place-items: center;
  transition: border-color var(--cp-dur-md) var(--cp-ease),
              background var(--cp-dur-md) var(--cp-ease);
}
.cp-step__dot::after {
  content: "";
  width: 0.375rem; height: 0.375rem;
  border-radius: 999px;
  background: var(--cp-rule-dark);
  transition: background var(--cp-dur-md) var(--cp-ease), transform var(--cp-dur-md) var(--cp-ease-out);
}
.cp-step.is-reached .cp-step__dot { border-color: var(--cp-azure-bright); }
.cp-step.is-reached .cp-step__dot::after { background: var(--cp-azure-bright); transform: scale(1.35); }

.cp-step__num {
  font-size: var(--cp-step--1);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cp-azure-bright);
  display: block;
  margin-bottom: 0.4rem;
}
.cp-step__title { font-size: var(--cp-step-3); margin-bottom: 0.5rem; }
.cp-step__body { max-width: 34rem; color: var(--cp-on-dark-soft); }

/* ---- Why (layout lives in home.css) ------------------------------------- */
.cp-why { background: var(--cp-ivory); }

/* Post/card grid, used by the blog index. */
.cp-cardgrid { display: grid; gap: var(--cp-space-lg); }
@media (min-width: 48rem) { .cp-cardgrid { grid-template-columns: repeat(2, 1fr); gap: var(--cp-space-xl); } }
.cp-card { border-top: 1px solid var(--cp-rule); padding-top: var(--cp-space-md); }
.cp-card h2 { font-size: var(--cp-step-2); margin-bottom: 0.5rem; }

/* ---- Partners (alliance layout lives in home.css) ----------------------- */
/* The blue-grey wash is scoped to this section. It is visibly distinct from
   Why's white canvas and the dark statement band that now follows it. */
.cp-partners {
  background:
    radial-gradient(80% 110% at 100% 0%, rgba(101, 184, 237, 0.18), transparent 62%),
    linear-gradient(145deg, #e4eef2 0%, #f1f5f4 74%);
  color: var(--cp-ink);
  position: relative;
  overflow: hidden;
  /* Hairline seams make both ground changes read as deliberate edges. */
  border-block: 1px solid var(--cp-rule);
}

/* ---- Values / Principles (stepped layout lives in home.css) -------------
   Sits on the mint ground from the React palette. Mint is light enough that
   the default body and accent inks fall under AA, so both are deepened here. */
.cp-values {
  background: var(--cp-mint);
  --cp-ink-soft: #46525f;
  --cp-azure: #0b5a97;
  /* The rules now carry the section's structure, the oversized words having
     gone, so they are a shade firmer than the 0.16 that sat under them. */
  --cp-rule: rgba(11, 25, 53, 0.22);
}

/* ---- Brand statement (dark → light transition) -------------------------- */
/* Dark-to-light transition band.
   The light half is a fixed-height strip painted by ::after rather than a
   percentage stop in the gradient. A percentage cannot know how many lines the
   statement wraps to, so at some viewports the type straddled the boundary and
   the lower half of the letters went white-on-ivory. The strip height and the
   inner's bottom padding are tied to the same value, so the text clears it at
   every size. */
.cp-statement {
  --cp-statement-band: 7rem;
  position: relative;
  background: linear-gradient(180deg, var(--cp-navy) 0%, var(--cp-navy-raised) 100%);
  padding-block: 0;
  isolation: isolate;
}
.cp-statement::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--cp-statement-band);
  background: var(--cp-paper);
  z-index: -1;
}
.cp-statement__inner {
  max-width: var(--cp-max);
  margin-inline: auto;
  padding: var(--cp-space-2xl) var(--cp-gutter)
           calc(var(--cp-space-2xl) + var(--cp-statement-band));
  text-align: center;
}
.cp-statement__quote {
  font-family: var(--cp-font-display);
  font-size: var(--cp-step-5);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--cp-on-dark);
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* ---- FAQ ---------------------------------------------------------------- */
.cp-faq { background: var(--cp-paper); }

/* ---- Final CTA ---------------------------------------------------------- */
.cp-cta {
  position: relative;
  background: var(--cp-azure-vivid);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  /* On a solid mid-blue, only pure white clears AA at body sizes — the usual
     translucent on-dark inks measure ~2.7:1 here. Pin them for this section. */
  --cp-on-dark: #fff;
  --cp-on-dark-soft: #fff;
  --cp-on-dark-faint: rgba(255, 255, 255, 0.92);
  --cp-rule-dark: rgba(255, 255, 255, 0.42);
}

/* Set directly rather than by pinning --cp-azure-bright: that token also feeds
   the primary button's hover fill, so overriding it here filled the button
   white and left a white label on it — the button vanished on hover. */
.cp-cta .cp-eyebrow { color: #fff; justify-content: center; }

/* On this ground the primary button inverts to white with navy text (17:1)
   rather than sweeping in a light azure that white text cannot sit on. */
.cp-cta .cp-btn--primary {
  --btn-fill: #fff;
  --btn-fg-hover: var(--cp-navy);
}
/* Decorative path layer. Was borrowing .cp-hero__drift, which lost its rules
   when the hero was rebuilt as full-bleed photography — leaving this element
   unstyled. It has its own class now so the two cannot drift apart again. */
.cp-cta__drift {
  position: absolute;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 12px), 0);
  transition: transform 900ms var(--cp-ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .cp-cta__drift { transform: none; }
}

.cp-cta__inner { position: relative; z-index: 2; }
.cp-cta__title { font-size: var(--cp-step-5); max-width: 18ch; margin-inline: auto; }
.cp-cta__lede { margin-inline: auto; margin-top: var(--cp-space-md); text-align: center; }
.cp-cta .cp-actions { justify-content: center; }

/* ---- Page header (inner pages) ------------------------------------------ */
.cp-page-head {
  background:
    radial-gradient(ellipse 75% 70% at 75% 30%, rgba(22, 103, 163, 0.30), transparent 55%),
    linear-gradient(175deg, var(--cp-navy) 0%, var(--cp-navy-raised) 100%);
  color: var(--cp-on-dark);
  padding-top: calc(var(--cp-header-h) + var(--cp-space-xl));
  padding-bottom: var(--cp-space-xl);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Photographic ground for the page headers. These previously borrowed
   .cp-hero__media / .cp-hero__scrim, and lost their rules when the hero was
   rebuilt — they own them now so the two cannot be coupled again. */
.cp-page-head__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cp-page-head__media .cp-media__img {
  opacity: 0.82;
  object-position: 50% 40%;
}
.cp-page-head__media .cp-media__tint { display: none; }

.cp-page-head__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(11, 25, 53, 0.88) 0%,
      rgba(11, 25, 53, 0.72) 38%,
      rgba(11, 25, 53, 0.42) 70%,
      rgba(11, 25, 53, 0.20) 100%),
    linear-gradient(180deg,
      rgba(11, 25, 53, 0.55) 0%,
      transparent 35%,
      transparent 60%,
      rgba(11, 25, 53, 0.75) 100%);
}
@media (max-width: 67.99rem) {
  .cp-page-head__scrim {
    background: linear-gradient(180deg,
      rgba(11, 25, 53, 0.82) 0%,
      rgba(11, 25, 53, 0.65) 40%,
      rgba(11, 25, 53, 0.80) 100%);
  }
}

.cp-page-head__title { font-size: var(--cp-step-5); max-width: 20ch; }
.cp-page-head__lede { margin-top: var(--cp-space-md); }

.cp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--cp-space-md);
  font-size: var(--cp-step--1);
  color: var(--cp-on-dark-faint);
}
.cp-breadcrumb a { color: inherit; text-decoration: none; }
.cp-breadcrumb a:hover { color: var(--cp-on-dark); }
.cp-breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.cp-breadcrumb li { display: inline-flex; }

/* ---- Contact ------------------------------------------------------------ */
.cp-contact__grid { display: grid; gap: var(--cp-space-xl); }
@media (min-width: 62rem) {
  .cp-contact__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--cp-space-2xl); }
}
.cp-contact__detail + .cp-contact__detail { margin-top: var(--cp-space-lg); }
.cp-contact__detail--icon {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.cp-contact__icon {
  display: grid;
  width: 2.8rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(15, 109, 180, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--cp-azure);
  box-shadow: 0 10px 28px rgba(11, 25, 53, 0.07);
}
.cp-contact__icon svg { width: 1.15rem; height: 1.15rem; }
.cp-contact__label {
  font-size: var(--cp-step--1);
  font-weight: 500;
  letter-spacing: var(--cp-track-wide);
  text-transform: uppercase;
  color: var(--cp-azure);
  margin-bottom: 0.5rem;
}
.cp-contact__value { font-size: var(--cp-step-1); line-height: 1.5; font-style: normal; overflow-wrap: anywhere; }
.cp-contact__value a { text-decoration: none; border-bottom: 1px solid var(--cp-rule); }
.cp-contact__value a:hover { border-bottom-color: var(--cp-azure); color: var(--cp-azure); }

/* Map is click-to-load so no third party is contacted on page view. */
.cp-map {
  position: relative;
  margin-top: var(--cp-space-xl);
  aspect-ratio: 16 / 9;
  border-radius: var(--cp-radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--cp-navy) 0%, var(--cp-navy-deep) 100%);
  display: grid;
  place-items: center;
}
.cp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp-map__prompt { text-align: center; color: var(--cp-on-dark-soft); padding: var(--cp-space-md); }

/* ---- Editorial prose (privacy, terms, posts) ---------------------------- */
.cp-prose { max-width: 44rem; }
.cp-prose h2 { font-size: var(--cp-step-3); margin-top: var(--cp-space-xl); margin-bottom: var(--cp-space-sm); }
.cp-prose h3 { font-size: var(--cp-step-2); margin-top: var(--cp-space-lg); margin-bottom: var(--cp-space-xs); }
.cp-prose > *:first-child { margin-top: 0; }
.cp-prose ul, .cp-prose ol { margin: 0 0 1.15em; padding-left: 1.4rem; }
.cp-prose li { list-style: disc; margin-bottom: 0.5rem; }
.cp-prose ol li { list-style: decimal; }
.cp-prose a { color: var(--cp-azure); }
.cp-prose blockquote {
  margin: var(--cp-space-lg) 0;
  padding-left: var(--cp-space-md);
  border-left: 2px solid var(--cp-azure);
  font-family: var(--cp-font-display);
  font-size: var(--cp-step-2);
  font-style: italic;
  color: var(--cp-ink);
}

/* ---- Legal pages -------------------------------------------------------- */
.cp-legal-head {
  position: relative;
  padding-top: calc(var(--cp-header-h) + clamp(2.5rem, 1.7rem + 2.5vw, 4.5rem));
  padding-bottom: clamp(3.5rem, 2.2rem + 4vw, 6.5rem);
  background:
    radial-gradient(circle at 84% 18%, rgba(48, 159, 222, 0.12), transparent 25rem),
    linear-gradient(135deg, #f5f9fc 0%, #ffffff 68%);
  border-bottom: 1px solid var(--cp-rule);
}
.cp-legal-head .cp-breadcrumb { margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); color: var(--cp-ink-faint); }
.cp-legal-head .cp-breadcrumb a:hover { color: var(--cp-azure); }
.cp-legal-head__eyebrow {
  margin: 0 0 1rem;
  color: var(--cp-azure);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--cp-track-wide);
  text-transform: uppercase;
}
.cp-legal-head__row {
  display: grid;
  gap: 1.75rem;
  align-items: end;
}
.cp-legal-head h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--cp-navy-deep);
  font-family: var(--cp-font-display);
  font-size: clamp(3rem, 2rem + 4.2vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.cp-legal-head__meta { max-width: 32rem; }
.cp-legal-head__meta p { margin: 0 0 1rem; color: var(--cp-ink-soft); font-size: var(--cp-step-1); line-height: 1.6; }
.cp-legal-head__meta span {
  color: var(--cp-ink-faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--cp-track-wide);
  text-transform: uppercase;
}
@media (min-width: 56rem) {
  .cp-legal-head__row { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr); gap: var(--cp-space-2xl); }
}

.cp-legal-page { background: #fff; }
.cp-legal-layout { display: grid; gap: clamp(2.5rem, 1.8rem + 2vw, 4rem); align-items: start; }
@media (min-width: 64rem) {
  .cp-legal-layout { grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr); }
}
.cp-legal-index {
  padding: 1.5rem;
  background: var(--cp-ivory-deep);
  border-top: 2px solid var(--cp-azure);
}
@media (min-width: 64rem) {
  .cp-legal-index { position: sticky; top: calc(var(--cp-header-h) + 2rem); }
}
.cp-legal-index__title {
  margin: 0 0 1rem;
  color: var(--cp-navy-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--cp-track-wide);
  text-transform: uppercase;
}
.cp-legal-index ol { margin: 0; padding: 0; counter-reset: cp-legal; }
.cp-legal-index li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
  color: var(--cp-ink-faint);
  counter-increment: cp-legal;
  font-size: var(--cp-step--1);
}
.cp-legal-index li::before { content: counter(cp-legal, decimal-leading-zero); color: var(--cp-azure); font-size: 0.65rem; letter-spacing: 0.08em; }
.cp-legal-index li + li { margin-top: 0.75rem; }
.cp-legal-index a { color: inherit; text-decoration: none; }
.cp-legal-index a:hover,
.cp-legal-index a:focus-visible { color: var(--cp-navy-deep); }

.cp-legal-document { max-width: 50rem; }
.cp-legal-document > section {
  scroll-margin-top: calc(var(--cp-header-h) + 2rem);
  padding-block: clamp(1.75rem, 1.35rem + 1.25vw, 2.75rem);
  border-top: 1px solid var(--cp-rule);
}
.cp-legal-document > section:first-child { padding-top: 0; border-top: 0; }
.cp-legal-document h2 {
  margin: 0 0 1rem;
  color: var(--cp-navy-deep);
  font-size: clamp(1.65rem, 1.4rem + 0.8vw, 2.2rem);
  line-height: 1.15;
}
.cp-legal-document p,
.cp-legal-document li { color: var(--cp-ink-soft); line-height: 1.78; }
.cp-legal-document p:last-child,
.cp-legal-document ul:last-child { margin-bottom: 0; }
.cp-legal-document a { font-weight: 600; text-underline-offset: 0.2em; }

/* ---- Parallax (disabled for performance) -------------------------------- */
.js [data-parallax] { transform: none; }

/* ---- Editorial image ----------------------------------------------------- */
.cp-figure { position: relative; overflow: hidden; border-radius: var(--cp-radius-lg); }
.cp-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--cp-ease-out); }
@media (hover: hover) {
  .cp-figure:hover img { transform: scale(1.03); }
}
