/* cm-theme: main stylesheet */

/* ── Global resets ───────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--text);
  font-family: var(--wp--preset--font-family--sans);
  font-size: var(--wp--preset--font-size--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Skip-to-content link ────────────────────────────────────── */
/* Visually hidden until it receives keyboard focus, then it pins to the
   top-left so a keyboard user can jump past the header into the main content. */
.cm-skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transform: translateY(-120%);
  margin: 10px;
  padding: 12px 18px;
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--text);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--wp--preset--color--accent-hi);
  border-radius: var(--wp--custom--radius--sm);
  transition: transform 160ms ease;
}

.cm-skip-link:focus,
.cm-skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--wp--preset--color--accent-hi);
  outline-offset: 3px;
}

/* Skip-link target should not show a focus ring when reached via the link. */
#cm-main:focus {
  outline: none;
}

/* ── Global keyboard focus ring ──────────────────────────────── */
/* Every interactive element gets a consistent 2px accent ring on keyboard
   focus (the brand spec). Offset >= 2px so the ring clears filled buttons.
   :focus-visible means mouse clicks don't paint a ring, only keyboard/AT nav. */
:where(a, button, input, select, textarea, summary, [tabindex], .wp-block-button__link):focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Site Header ─────────────────────────────────────────────── */
.cm-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 16px clamp(22px, 6vw, 80px);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

/* Scrolled state - applied via JS in reveal.js */
.cm-site-header.is-scrolled {
  background: rgba(15, 13, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--wp--preset--color--border);
}

.cm-site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.cm-site-header__logo img {
  height: 22px;
  width: auto;
  display: block;
}

.cm-site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
  margin-left: auto;
}

.cm-site-header__nav a {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--stone);
  text-decoration: none;
  transition: color 120ms ease;
}

.cm-site-header__nav a:hover {
  color: var(--wp--preset--color--text);
}

.cm-site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text) !important;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 2px 14px rgba(185, 76, 76, 0.35);
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  margin-left: clamp(12px, 1.5vw, 24px);
}

.cm-site-header__cta:hover {
  background: var(--wp--preset--color--accent-hi) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(185, 76, 76, 0.45);
  color: var(--wp--preset--color--text) !important;
}

/* ── Site Footer ─────────────────────────────────────────────── */
.cm-site-footer {
  position: relative;
  border-top: 1px solid var(--wp--preset--color--border);
  padding: clamp(44px, 7vh, 64px) clamp(22px, 6vw, 80px);
  background: var(--wp--custom--color--section-deep);
}

.cm-site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.cm-site-footer__logo img {
  height: 20px;
  width: auto;
  display: block;
}

.cm-site-footer__tagline {
  font-size: 14px;
  color: var(--wp--preset--color--muted);
  line-height: 1.5;
}

.cm-site-footer__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cm-site-footer__links a {
  font-size: 14px;
  color: var(--wp--preset--color--accent-hi);
  text-decoration: none;
  transition: color 120ms ease;
}

.cm-site-footer__links a:hover {
  color: #e0a0a0;
}

.cm-site-footer__links a.cm-footer-secondary {
  font-size: 13px;
  color: var(--wp--preset--color--muted);
}

.cm-site-footer__links a.cm-footer-secondary:hover {
  color: var(--wp--preset--color--stone);
}

/* Legal links: a quiet, secondary row (Privacy Policy / Terms of Service) */
.cm-site-footer__legal {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--wp--preset--color--border);
}

.cm-site-footer__legal a {
  font-size: 13px;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  transition: color 120ms ease;
}

.cm-site-footer__legal a:hover {
  color: var(--wp--preset--color--stone);
}

/* ── Push page content below sticky header ───────────────────── */
.wp-site-blocks > .wp-block-template-part:first-child + * {
  padding-top: 0; /* sections manage their own top padding */
}

/* Ensure the first main content block doesn't hide behind the fixed header */
.cm-page-content {
  padding-top: 0;
}

/* ── Hero Section ────────────────────────────────────────────── */
.cm-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(88vh, 92vh, 100vh);
  display: flex;
  align-items: center;
  padding: 140px clamp(22px, 6vw, 80px) clamp(72px, 11vh, 112px);
  /* Remove default group margins */
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Background image container - fills the section absolutely */
.cm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cm-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  display: block;
}

/* Horizontal gradient: solid dark at left, fades to transparent over the face */
.cm-hero__grad-lr {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--wp--preset--color--bg)  0%,
    var(--wp--preset--color--bg)  38%,
    rgba(15, 13, 11, 0.72)        53%,
    rgba(15, 13, 11, 0.18)        72%,
    rgba(15, 13, 11, 0.42)        100%
  );
}

/* Bottom gradient: ensures proof row always readable */
.cm-hero__grad-bt {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(15, 13, 11, 0.78) 0%,
    transparent 40%
  );
}

/* Content wrapper, sits above the gradients */
.cm-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  /* Remove default block padding */
  padding: 0 !important;
}

.cm-hero__col {
  max-width: 600px;
  /* Remove default block padding */
  padding: 0 !important;
}

/* Eyebrow */
.cm-hero__eyebrow {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-hi);
  margin: 0 0 26px;
  line-height: 1.4;
}

/* Headline */
.cm-hero__headline {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.1rem, 1.3rem + 2.7vw, 3.5rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.018em;
  color: var(--wp--preset--color--text);
  margin: 0 0 28px !important;
}

/* Italic accent emphasis inside the headline */
.cm-hero__headline-em {
  font-style: italic;
  color: var(--wp--preset--color--accent-hi);
}

/* Sub-headline */
.cm-hero__sub {
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.5;
  color: var(--wp--preset--color--stone);
  margin: 0 0 38px;
  max-width: 42ch;
}

/* CTA row */
.cm-hero__ctas {
  display: flex !important;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  padding: 0 !important;
}

/* Primary button */
.cm-hero__btn-primary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 26px;
  border-radius: 8px;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text) !important;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 2px 16px rgba(185, 76, 76, 0.38);
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.cm-hero__btn-primary .wp-block-button__link:hover {
  background: var(--wp--preset--color--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(185, 76, 76, 0.50);
  color: var(--wp--preset--color--text) !important;
}

/* Secondary text link (styled as an outlined button) */
.cm-hero__btn-secondary {
  margin: 0;
}

.cm-hero__btn-secondary a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 8px;
  background: transparent;
  color: var(--wp--preset--color--accent-hi) !important;
  text-decoration: none;
  border: 1px solid var(--wp--preset--color--accent);
  transition: background 120ms ease;
}

.cm-hero__btn-secondary a:hover {
  background: rgba(185, 76, 76, 0.10);
  color: var(--wp--preset--color--accent-hi) !important;
}

/* Proof row */
.cm-hero__proof {
  display: flex !important;
  flex-wrap: wrap;
  gap: clamp(26px, 4vw, 48px);
  margin-top: clamp(48px, 8vh, 76px);
  padding-top: 28px !important;
  border-top: 1px solid var(--wp--preset--color--border);
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.cm-hero__proof-item {
  padding: 0 !important;
}

.cm-hero__proof-stat {
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem);
  line-height: 1;
  color: var(--wp--preset--color--text);
  margin: 0 0 9px;
}

.cm-hero__proof-label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12.5px;
  color: var(--wp--preset--color--muted);
  margin: 0;
  line-height: 1.4;
}

/* Accent-hi colour helper for the → arrows inside stat text */
.cm-accent-hi {
  color: var(--wp--preset--color--accent-hi);
}

/* ── Mobile nav toggle button ────────────────────────────────── */
.cm-nav-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.cm-nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--wp--preset--color--stone);
  border-radius: 2px;
  transition: background 120ms ease, opacity 200ms ease, transform 200ms ease;
}

.cm-nav-toggle:hover .cm-nav-toggle__bar {
  background: var(--wp--preset--color--text);
}

.cm-nav-toggle:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-hi);
  outline-offset: 3px;
}

/* Hamburger → X animation when open */
.cm-nav-toggle[aria-expanded="true"] .cm-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.cm-nav-toggle[aria-expanded="true"] .cm-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.cm-nav-toggle[aria-expanded="true"] .cm-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile overlay nav ──────────────────────────────────────── */
.cm-mobile-nav {
  display: none; /* revealed only at mobile breakpoint via JS + CSS */
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--wp--preset--color--bg);
  opacity: 0;
  pointer-events: none;
  /* visibility:hidden pulls the overlay's controls out of the tab order while
     collapsed (a CSS fallback in case `inert` is unsupported). Transition it
     with a delay so it only flips back to hidden after the fade-out finishes. */
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.cm-mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.cm-mobile-nav__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 28px 44px;
}

.cm-mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  color: var(--wp--preset--color--stone);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
  margin-bottom: 40px;
}

.cm-mobile-nav__close:hover {
  color: var(--wp--preset--color--text);
  border-color: var(--wp--preset--color--stone);
}

.cm-mobile-nav__close:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-hi);
  outline-offset: 3px;
}

.cm-mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.cm-mobile-nav__link {
  display: block;
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 400;
  color: var(--wp--preset--color--stone);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
  transition: color 120ms ease;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.cm-mobile-nav__link:first-child {
  border-top: 1px solid var(--wp--preset--color--border);
}

.cm-mobile-nav__link:hover {
  color: var(--wp--preset--color--text);
}

.cm-mobile-nav__link--cta {
  color: var(--wp--preset--color--accent-hi);
  border-bottom: none;
  margin-top: 36px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  padding: 16px 26px;
  border-radius: 8px;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text) !important;
  align-self: flex-start;
  box-shadow: 0 2px 16px rgba(185, 76, 76, 0.38);
}

.cm-mobile-nav__link--cta:hover {
  background: var(--wp--preset--color--accent-hi) !important;
  color: var(--wp--preset--color--text) !important;
}

/* ── Hero desktop: proof row 3-across (no wrap) ──────────────── */
@media (min-width: 701px) {
  .cm-hero__proof {
    flex-wrap: nowrap;
    gap: clamp(20px, 3vw, 48px);
  }
  .cm-hero__proof-item {
    flex-shrink: 0;
  }
}

/* ── Hero - Mobile Variant A (default) - refined full-bleed ──── */
/*
 * SWITCHING A ↔ B:
 *   Default = Variant A (full-bleed cinematic). To activate Variant B (stacked),
 *   add class "hero-stacked" to <body> via:
 *     npx @wordpress/env run cli wp eval 'echo body_class();'
 *   OR temporarily edit this file: comment out the @A block, uncomment @B block.
 *   Or use WP Customizer / a body_class filter in functions.php.
 */
@media (max-width: 700px) {

  /* === VARIANT A: cinematic full-bleed === */
  body:not(.hero-stacked) .cm-hero {
    min-height: 100svh;
    padding: 100px 0 52px;
    align-items: flex-end;
    width: 100%;
  }

  /* Stronger top vignette so eyebrow + top area stays dark */
  body:not(.hero-stacked) .cm-hero__grad-lr {
    background: linear-gradient(
      180deg,
      rgba(15, 13, 11, 0.80) 0%,
      rgba(15, 13, 11, 0.55) 28%,
      rgba(15, 13, 11, 0.30) 55%,
      rgba(15, 13, 11, 0.60) 100%
    );
  }

  /* Strong bottom scrim - text zone fully legible */
  body:not(.hero-stacked) .cm-hero__grad-bt {
    background: linear-gradient(
      0deg,
      rgba(15, 13, 11, 0.97) 0%,
      rgba(15, 13, 11, 0.88) 28%,
      rgba(15, 13, 11, 0.60) 50%,
      rgba(15, 13, 11, 0.20) 68%,
      transparent 82%
    );
  }

  /* Push face to upper-right - clear of the text zone at bottom */
  body:not(.hero-stacked) .cm-hero__photo {
    object-position: 62% 18%;
  }

  body:not(.hero-stacked) .cm-hero__col {
    max-width: 100%;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Constrain inner to full width with side padding on mobile */
  body:not(.hero-stacked) .cm-hero__inner {
    width: 100%;
    max-width: 100% !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    box-sizing: border-box;
  }

  body:not(.hero-stacked) .cm-hero__eyebrow {
    font-size: 10px;
    margin-bottom: 18px;
  }

  body:not(.hero-stacked) .cm-hero__headline {
    font-size: clamp(1.7rem, 6vw, 2.2rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 18px !important;
  }

  body:not(.hero-stacked) .cm-hero__sub {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 28px;
  }

  body:not(.hero-stacked) .cm-hero__proof {
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 28px;
  }

  /* === VARIANT B: stacked portrait + text on solid bg === */
  body.hero-stacked .cm-hero {
    min-height: auto;
    padding: 0;
    align-items: stretch;
    display: block;
    overflow: visible;
  }

  body.hero-stacked .cm-hero__bg {
    position: relative;
    height: 44vh;
    min-height: 280px;
  }

  body.hero-stacked .cm-hero__photo {
    object-position: 50% 15%;
  }

  /* Fade bottom of portrait image into bg color */
  body.hero-stacked .cm-hero__grad-lr {
    background: transparent;
  }

  body.hero-stacked .cm-hero__grad-bt {
    background: linear-gradient(
      0deg,
      var(--wp--preset--color--bg) 0%,
      rgba(15, 13, 11, 0.60) 35%,
      transparent 65%
    );
  }

  /* Text block sits on solid bg below the portrait band */
  body.hero-stacked .cm-hero__inner {
    position: relative;
    background: var(--wp--preset--color--bg);
    padding: 36px 22px 52px !important;
    margin: 0 !important;
    max-width: 100%;
  }

  body.hero-stacked .cm-hero__col {
    max-width: 100%;
    padding: 0 !important;
  }

  body.hero-stacked .cm-hero__eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
  }

  body.hero-stacked .cm-hero__headline {
    font-size: clamp(2.2rem, 8vw, 3rem) !important;
    line-height: 1.03 !important;
    margin-bottom: 20px !important;
  }

  body.hero-stacked .cm-hero__sub {
    font-size: 1.0625rem;
    max-width: 100%;
    margin-bottom: 30px;
  }

  body.hero-stacked .cm-hero__proof {
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 32px;
  }
}

/* ── Mobile breakpoint - header layout ──────────────────────── */
@media (max-width: 860px) {
  .cm-site-header__nav {
    display: none;
  }

  .cm-nav-toggle {
    display: flex;
  }

  .cm-mobile-nav {
    display: block;
  }
}

/* ── Section 2: Problem Mirror ───────────────────────────────── */
.cm-problem {
  position: relative;
  background: var(--wp--preset--color--bg);
  border-top: 1px solid var(--wp--preset--color--border);
  padding: clamp(76px, 12vh, 140px) clamp(22px, 6vw, 80px);
  margin: 0 !important;
}

.cm-problem__inner {
  display: flex !important;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 !important;
}

/* Left label column: section number + eyebrow */
.cm-problem__label-col {
  flex: 0 0 188px;
  border-top: 2px solid var(--wp--preset--color--accent);
  padding-top: 18px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.cm-problem__section-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 2.4rem;
  line-height: 1;
  /* muted clears WCAG large-text 3:1; slate (#474342) was ~2:1 and failed. */
  color: var(--wp--preset--color--muted);
  margin: 0 !important;
}

.cm-problem__eyebrow {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-hi);
  margin: 14px 0 0 !important;
  line-height: 1.5;
}

/* Right content column */
.cm-problem__content-col {
  flex: 1 1 440px;
  min-width: 0;
  padding: 0 !important;
}

/* Headline */
.cm-problem__headline {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.35rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--text);
  margin: 0 0 clamp(34px, 5vh, 52px) !important;
  max-width: 18ch;
}

.cm-problem__headline-em {
  font-style: italic;
  color: var(--wp--preset--color--accent-hi);
}

/* Recognition items list container */
.cm-problem__list {
  display: flex !important;
  flex-direction: column;
  max-width: 840px;
  padding: 0 !important;
}

/* Each recognition line */
.cm-problem__item {
  display: flex !important;
  gap: 22px;
  align-items: flex-start;
  padding: 24px 0 0 !important;
  border-top: 1px solid var(--wp--preset--color--border);
}

.cm-problem__item--last {
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding-bottom: 24px !important;
}

/* Red bullet dot */
.cm-problem__dot {
  flex: 0 0 auto;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wp--preset--color--accent);
  margin-top: 14px;
}

.cm-problem__item-text {
  margin: 0 !important;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--wp--preset--color--text);
}

/* ── Section 3: Reframe ──────────────────────────────────────── */
.cm-reframe {
  position: relative;
  background: var(--wp--custom--color--section-deep);
  border-top: 1px solid var(--wp--preset--color--border);
  padding: clamp(76px, 12vh, 140px) clamp(22px, 6vw, 80px);
  margin: 0 !important;
}

.cm-reframe__inner {
  display: flex !important;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 !important;
}

/* Left label column */
.cm-reframe__label-col {
  flex: 0 0 188px;
  border-top: 2px solid var(--wp--preset--color--accent);
  padding-top: 18px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.cm-reframe__section-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--wp--preset--color--muted);
  margin: 0 !important;
}

.cm-reframe__eyebrow {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-hi);
  margin: 14px 0 0 !important;
  line-height: 1.5;
}

/* Right content column */
.cm-reframe__content-col {
  flex: 1 1 440px;
  min-width: 0;
  padding: 0 !important;
}

/* Headline */
.cm-reframe__headline {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.4rem, 1.5rem + 3.2vw, 3.9rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.018em;
  color: var(--wp--preset--color--text);
  margin: 0 0 32px !important;
}

.cm-reframe__headline-em {
  font-style: italic;
  color: var(--wp--preset--color--accent-hi);
}

/* Body paragraph */
.cm-reframe__body {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.62;
  color: var(--wp--preset--color--stone);
  margin: 0 0 clamp(40px, 6vh, 60px) !important;
  max-width: 58ch;
}

/* Pull-quote callout block */
.cm-reframe__callout {
  padding: clamp(26px, 3.5vw, 40px) clamp(26px, 4vw, 44px) !important;
  border-left: 3px solid var(--wp--preset--color--accent);
  background: linear-gradient(100deg, rgba(185, 76, 76, 0.08), rgba(185, 76, 76, 0));
  border-radius: 0 14px 14px 0;
}

.cm-reframe__callout-text {
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem);
  line-height: 1.2;
  color: #e0a0a0;
  max-width: 24ch;
}

/* ── Section 4: Operating System ────────────────────────────── */
.cm-os {
  position: relative;
  background: var(--wp--preset--color--bg); /* bg token - matches §2 alternating rhythm */
  border-top: 1px solid var(--wp--preset--color--border);
  padding: clamp(76px, 12vh, 140px) clamp(22px, 6vw, 80px);
  margin: 0 !important;
}

.cm-os__inner {
  display: flex !important;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 !important;
}

/* Left label column */
.cm-os__label-col {
  flex: 0 0 188px;
  border-top: 2px solid var(--wp--preset--color--accent);
  padding-top: 18px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.cm-os__section-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--wp--preset--color--muted);
  margin: 0 !important;
}

.cm-os__eyebrow {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-hi);
  margin: 14px 0 0 !important;
  line-height: 1.5;
}

/* Right content column */
.cm-os__content-col {
  flex: 1 1 440px;
  min-width: 0;
  padding: 0 !important;
}

.cm-os__headline {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.35rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--text);
  margin: 0 0 18px !important;
}

.cm-os__body {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--wp--preset--color--stone);
  margin: 0 0 clamp(36px, 5.5vh, 56px) !important;
  max-width: 54ch;
}

/* Four-beat sequence: vertical timeline */
.cm-os__sequence {
  position: relative;
  max-width: 760px;
  padding: 0 !important;
}

/* Vertical connector line - runs from top-circle to bottom-circle */
.cm-os__connector {
  position: absolute !important;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(185, 76, 76, 0) 0%,
    var(--wp--preset--color--accent) 10%,
    var(--wp--preset--color--accent) 90%,
    rgba(185, 76, 76, 0) 100%
  );
  padding: 0 !important;
  pointer-events: none;
}

/* Each stage row */
.cm-os__stage {
  position: relative;
  display: flex !important;
  gap: clamp(20px, 3vw, 30px);
  padding-bottom: clamp(30px, 4.5vh, 42px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
}

.cm-os__stage--final {
  padding-bottom: 0 !important;
}

/* Numbered circle */
.cm-os__circle {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wp--preset--color--bg);
  border: 1px solid #4a2e2b;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(185, 76, 76, 0.35);
  position: relative;
  z-index: 1;
  padding: 0 !important;
  flex-shrink: 0;
}

/* Stage 4: filled accent circle */
.cm-os__circle--filled {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent-hi);
  box-shadow: 0 0 28px rgba(185, 76, 76, 0.55);
}

.cm-os__circle-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--wp--preset--color--accent-hi);
  margin: 0 !important;
  text-align: center;
}

.cm-os__circle--filled .cm-os__circle-num {
  color: var(--wp--preset--color--text);
}

/* Stage content: name + description */
.cm-os__stage-content {
  padding-top: 4px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  min-width: 0;
}

.cm-os__stage-name {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem) !important;
  line-height: 1.1 !important;
  color: var(--wp--preset--color--text);
  margin: 0 0 9px !important;
}

.cm-os__stage-desc {
  margin: 0 !important;
  font-size: clamp(15px, 0.95rem + 0.1vw, 1.0625rem);
  line-height: 1.55;
  color: var(--wp--preset--color--muted);
  max-width: 52ch;
}

/* Stage 4 description is slightly lighter - closer to stone */
.cm-os__stage-desc--final {
  color: var(--wp--preset--color--stone);
}

/* Footnote: smaller muted AI line */
.cm-os__footnote {
  margin: clamp(36px, 5.5vh, 52px) 0 0 !important;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--wp--preset--color--muted);
  max-width: 56ch;
  padding-left: clamp(20px, 3vw, 28px) !important;
  border-left: 2px solid var(--wp--preset--color--border);
}

/* ── Section 5: Transformation ──────────────────────────────── */
.cm-transformation {
  position: relative;
  background: var(--wp--custom--color--section-deep);
  border-top: 1px solid var(--wp--preset--color--border);
  padding: clamp(76px, 12vh, 140px) clamp(22px, 6vw, 80px);
  margin: 0 !important;
}

.cm-transformation__inner {
  display: flex !important;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 !important;
}

/* Left label column */
.cm-transformation__label-col {
  flex: 0 0 188px;
  border-top: 2px solid var(--wp--preset--color--accent);
  padding-top: 18px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.cm-transformation__section-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--wp--preset--color--muted);
  margin: 0 !important;
}

.cm-transformation__eyebrow {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-hi);
  margin: 14px 0 0 !important;
  line-height: 1.5;
}

/* Right content column */
.cm-transformation__content-col {
  flex: 1 1 440px;
  min-width: 0;
  padding: 0 !important;
}

.cm-transformation__headline {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.35rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--text);
  margin: 0 0 26px !important;
  max-width: 22ch;
}

.cm-transformation__body {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.62;
  color: var(--wp--preset--color--stone);
  margin: 0 0 clamp(40px, 6vh, 60px) !important;
  max-width: 60ch;
}

/* Outcome cards grid */
.cm-transformation__cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  margin-bottom: clamp(40px, 6vh, 62px);
  padding: 0 !important;
}

.cm-transformation__card {
  background: #161210;
  border: 1px solid #2a2320;
  border-radius: 16px;
  padding: clamp(24px, 2.6vw, 32px) !important;
  display: flex !important;
  flex-direction: column;
}

/* Third card: accent-highlighted variant */
.cm-transformation__card--accent {
  background: linear-gradient(135deg, rgba(185, 76, 76, 0.12), rgba(185, 76, 76, 0.02));
  border-color: var(--wp--preset--color--accent);
  box-shadow: 0 0 30px rgba(185, 76, 76, 0.14);
}

.cm-transformation__card-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.25rem;
  color: var(--wp--preset--color--accent-hi);
  margin: 0 0 18px !important;
  line-height: 1;
}

.cm-transformation__card-title {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.625rem) !important;
  line-height: 1.2 !important;
  color: var(--wp--preset--color--text);
  margin: 0 0 12px !important;
}

.cm-transformation__card-desc {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.55;
  color: var(--wp--preset--color--muted);
}

.cm-transformation__card-desc--accent {
  color: var(--wp--preset--color--stone);
}

/* Pull line callout */
.cm-transformation__pull {
  padding-left: clamp(20px, 3vw, 28px) !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-left: 3px solid var(--wp--preset--color--accent);
}

.cm-transformation__pull-text {
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.875rem);
  line-height: 1.14;
  color: var(--wp--preset--color--text);
  max-width: 24ch;
}

.cm-transformation__pull-em {
  color: var(--wp--preset--color--accent-hi);
}

/* ── Section 6: Factory Floor Walk ──────────────────────────── */
.cm-factory {
  position: relative;
  background: var(--wp--custom--color--section-deepest);
  border-top: 1px solid var(--wp--preset--color--border);
  padding: clamp(82px, 13vh, 150px) clamp(22px, 6vw, 80px);
  margin: 0 !important;
}

.cm-factory__inner {
  display: flex !important;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 !important;
}

/* Left label column */
.cm-factory__label-col {
  flex: 0 0 188px;
  border-top: 2px solid var(--wp--preset--color--accent);
  padding-top: 18px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.cm-factory__section-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--wp--preset--color--muted);
  margin: 0 !important;
}

.cm-factory__eyebrow {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-hi);
  margin: 14px 0 0 !important;
  line-height: 1.5;
}

/* Right content column */
.cm-factory__content-col {
  flex: 1 1 440px;
  min-width: 0;
  padding: 0 !important;
}

.cm-factory__headline {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.35rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--text);
  margin: 0 0 24px !important;
}

.cm-factory__body {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.62;
  color: var(--wp--preset--color--stone);
  margin: 0 0 clamp(34px, 5vh, 48px) !important;
  max-width: 58ch;
}

/* Walkthrough video: the real system, framed as visual proof */
.cm-factory__media {
  margin: 0 !important;
}

.cm-factory__video-frame {
  position: relative;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--wp--custom--color--section-deepest);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  aspect-ratio: 16 / 9;
}

.cm-factory__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--wp--custom--color--section-deepest);
}

.cm-factory__video-fallback {
  padding: clamp(18px, 4vw, 28px);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--wp--preset--color--stone);
  margin: 0 !important;
}

.cm-factory__video-fallback a {
  color: var(--wp--preset--color--accent-hi);
}

.cm-factory__media-caption {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  margin-top: 14px;
}

/* Reduced motion: poster + controls only, no autoplay loop motion */
@media (prefers-reduced-motion: reduce) {
  .cm-factory__video[autoplay] {
    /* JS guard in reveal.js strips autoplay/loop; this is the CSS backstop */
    animation: none;
  }
}

/* ── §2 & §3 Mobile ─────────────────────────────────────────── */
@media (max-width: 700px) {

  /* Stack label above content on narrow screens */
  .cm-problem__inner,
  .cm-reframe__inner {
    flex-direction: column;
    gap: clamp(24px, 4vw, 36px);
  }

  .cm-problem__label-col,
  .cm-reframe__label-col {
    flex: 0 0 auto;
  }

  .cm-problem__headline {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
    margin-bottom: 28px !important;
  }

  .cm-reframe__headline {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
    margin-bottom: 24px !important;
  }

  .cm-problem__item-text,
  .cm-reframe__body {
    font-size: 1rem;
  }

  .cm-reframe__callout-text {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }

  /* §4 Operating System - mobile stack */
  .cm-os__inner {
    flex-direction: column;
    gap: clamp(24px, 4vw, 36px);
  }

  .cm-os__label-col {
    flex: 0 0 auto;
  }

  .cm-os__headline {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
    margin-bottom: 16px !important;
  }

  .cm-os__body {
    font-size: 1rem;
    max-width: 100%;
  }

  .cm-os__stage-name {
    font-size: clamp(1.375rem, 5.5vw, 1.75rem) !important;
  }

  .cm-os__stage-desc {
    font-size: 0.9375rem;
  }

  .cm-os__footnote {
    font-size: 12px;
  }

  /* §5 Transformation - mobile stack */
  .cm-transformation__inner {
    flex-direction: column;
    gap: clamp(24px, 4vw, 36px);
  }

  .cm-transformation__label-col {
    flex: 0 0 auto;
  }

  .cm-transformation__headline {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
    margin-bottom: 20px !important;
  }

  .cm-transformation__body {
    font-size: 1rem;
    max-width: 100%;
  }

  .cm-transformation__cards {
    grid-template-columns: 1fr;
  }

  .cm-transformation__pull-text {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  /* §6 Factory Floor - mobile stack */
  .cm-factory__inner {
    flex-direction: column;
    gap: clamp(24px, 4vw, 36px);
  }

  .cm-factory__label-col {
    flex: 0 0 auto;
  }

  .cm-factory__headline {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
    margin-bottom: 16px !important;
  }

  .cm-factory__body {
    font-size: 1rem;
    max-width: 100%;
  }

  .cm-factory__video-frame {
    border-radius: 12px;
  }
}

/* ==========================================================
   §7 Who's Behind This (about-operator + Neil testimonial)
   ========================================================== */

/* Outer wrapper: no padding; split bleeds edge-to-edge */
.cm-about {
  position: relative;
  margin: 0 !important;
  border-top: 1px solid var(--wp--preset--color--border);
}

/* ---- Split band ---- */
.cm-about__split {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--wp--preset--color--bg);
}

/* Portrait panel: full-bleed photo, no padding */
.cm-about__portrait-panel {
  flex: 1 1 380px;
  min-height: clamp(440px, 74vh, 780px);
  /* background-image injected dynamically via wp_add_inline_style in functions.php */
  background-size: cover;
  background-position: center 28%;
  background-color: #0b0908;
}

/* Content panel */
.cm-about__content-panel {
  flex: 1 1 540px;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 8vh, 104px) clamp(22px, 6vw, 80px);
}

.cm-about__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* accent-hi (4.96:1) clears WCAG AA for this 12px label; accent was 3.88:1. */
  color: var(--wp--preset--color--accent-hi);
  margin: 0 0 22px !important;
  line-height: 1.4;
}

.cm-about__headline {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--text) !important;
  margin: 0 0 22px !important;
  max-width: 18ch;
}

.cm-about__headline-em {
  font-style: italic;
  color: var(--wp--preset--color--accent);
}

.cm-about__body {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
  margin: 0 0 clamp(30px, 4.5vh, 44px) !important;
  max-width: 46ch;
}

/* Credential table */
.cm-about__creds {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--wp--preset--color--border);
  max-width: 580px;
  margin-bottom: 24px;
}

.cm-about__cred-row {
  display: flex;
  gap: clamp(16px, 2.2vw, 26px);
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.cm-about__cred-stat {
  flex: 0 0 auto;
  min-width: 128px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.3rem, 1.05rem + 0.6vw, 1.6rem);
  line-height: 1;
  color: var(--wp--preset--color--text);
}

.cm-about__cred-arrow {
  color: var(--wp--preset--color--accent);
}

.cm-about__cred-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cm-about__cred-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* accent-hi (#d05c5c) measures 5.11:1 on this bg and passes WCAG AA for
     small text; the dimmer accent (#b94c4c) failed at 3.88:1. */
  color: var(--wp--preset--color--accent-hi);
  line-height: 1.3;
}

.cm-about__cred-desc {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--wp--preset--color--stone);
}

/* Honesty line: left-bordered, quieter */
.cm-about__honesty {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--wp--preset--color--stone);
  margin: 0 !important;
  padding-left: 18px;
  border-left: 2px solid var(--wp--preset--color--accent);
  max-width: 52ch;
}

/* ---- Testimonial band ---- */
.cm-about__testimonial-band {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 13vh, 150px) clamp(22px, 6vw, 80px);
  background: var(--wp--custom--color--section-deep);
  border-top: 1px solid var(--wp--preset--color--border);
}

/* Radial glow: accent hint top-left */
.cm-about__testimonial-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 52% 52% at 15% 14%, rgba(185, 76, 76, 0.16) 0%, transparent 60%);
}

.cm-about__testimonial-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

/* Blockquote: large serif italic, left accent border */
.cm-about__quote {
  border-left: 3px solid var(--wp--preset--color--accent) !important;
  padding-left: clamp(24px, 4vw, 44px) !important;
  margin: 0 0 clamp(30px, 4.5vh, 44px) !important;
}

.cm-about__quote-text {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-style: italic;
  font-size: clamp(1.55rem, 1.05rem + 2vw, 2.6rem) !important;
  line-height: 1.28 !important;
  color: var(--wp--preset--color--text) !important;
  margin: 0 !important;
}

/* Strip the default WP quote cite/divider chrome */
.cm-about__quote cite,
.cm-about__quote .wp-block-quote__citation {
  display: none;
}

/* Attribution row: avatar + name/title */
.cm-about__attribution {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-left: clamp(24px, 4vw, 44px);
}

.cm-about__neil-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--wp--preset--color--border);
  background: #13100e;
  display: block;
}

.cm-about__neil-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cm-about__neil-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  line-height: 1.3;
  display: block;
}

.cm-about__neil-title {
  font-size: 13.5px;
  /* accent-hi passes WCAG AA (5.11:1) for this small text; accent was 4.0:1. */
  color: var(--wp--preset--color--accent-hi);
  line-height: 1.4;
  display: block;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .cm-about__split {
    flex-direction: column;
  }

  .cm-about__portrait-panel {
    min-height: clamp(280px, 56vw, 440px);
    flex: 0 0 auto;
  }

  .cm-about__content-panel {
    padding: clamp(40px, 8vw, 60px) clamp(20px, 6vw, 36px);
  }

  .cm-about__headline {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
    max-width: 100%;
    margin-bottom: 18px !important;
  }

  .cm-about__body {
    font-size: 1rem;
    max-width: 100%;
  }

  .cm-about__cred-stat {
    min-width: 96px;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  .cm-about__quote-text {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem) !important;
  }

  .cm-about__testimonial-band {
    padding: clamp(56px, 10vh, 82px) clamp(20px, 6vw, 36px);
  }

  .cm-about__attribution {
    padding-left: clamp(20px, 5vw, 36px);
  }
}

/* ══════════════════════════════════════════════════════════════
   §8 - Fit Filter (cm-fit)
   bg: section-deep (same as §6 factory, alternating dark)
   ══════════════════════════════════════════════════════════════ */

.cm-fit {
  position: relative;
  padding: clamp(76px, 12vh, 140px) clamp(22px, 6vw, 80px);
  background: var(--wp--custom--color--section-deep);
  border-top: 1px solid var(--wp--preset--color--border);
}

/* ── Two-column inner layout (label left, content right) ── */
.cm-fit__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
}

/* ── Label column ── */
.cm-fit__label-col {
  flex: 0 0 188px;
  border-top: 2px solid var(--wp--preset--color--accent);
  padding-top: 18px;
}

.cm-fit__section-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 2.4rem;
  line-height: 1;
  /* was raw #3a322d (~1.6:1, failed); muted clears WCAG large-text 3:1. */
  color: var(--wp--preset--color--muted);
  margin: 0 !important;
}

.cm-fit__eyebrow {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-hi);
  margin: 14px 0 0 !important;
  line-height: 1.5;
}

/* ── Content column ── */
.cm-fit__content-col {
  flex: 1 1 440px;
  min-width: 0;
}

.cm-fit__headline {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.35rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.015em !important;
  color: var(--wp--preset--color--text) !important;
  margin: 0 0 clamp(36px, 5.5vh, 56px) !important;
}

/* ── Two-card grid ── */
.cm-fit__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

/* ── Shared card styles ── */
.cm-fit__card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  padding: clamp(26px, 3vw, 34px);
}

.cm-fit__card--yes {
  background: #161210;
}

.cm-fit__card--no {
  background: #13100e;
}

/* Card sub-label */
.cm-fit__card-label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.4;
}

.cm-fit__card-label--yes {
  color: var(--wp--preset--color--olive);
}

.cm-fit__card-label--no {
  color: var(--wp--preset--color--stone);
}

/* List reset */
.cm-fit__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* List item row */
.cm-fit__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  color: var(--wp--preset--color--text);
}

.cm-fit__item--no {
  color: var(--wp--preset--color--stone);
}

/* Marker badges */
.cm-fit__marker {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}

.cm-fit__marker--yes {
  background: rgba(166, 189, 126, 0.14);
  color: var(--wp--preset--color--olive);
}

.cm-fit__marker--no {
  background: rgba(168, 154, 146, 0.12);
  color: var(--wp--preset--color--stone);
  font-size: 14px;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .cm-fit__label-col {
    flex: 0 0 100%;
    padding-top: 14px;
  }

  .cm-fit__section-num {
    font-size: 1.8rem;
  }

  .cm-fit__headline {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
    margin-bottom: 28px !important;
  }

  .cm-fit__grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════════════════════════
   §9 - The Conversation (cm-conversation)
   bg: bg token (darkest, closing anchor)
   ══════════════════════════════════════════════════════════════ */

.cm-conversation {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 15vh, 170px) clamp(22px, 6vw, 80px);
  text-align: center;
  background: var(--wp--preset--color--bg);
  border-top: 1px solid var(--wp--preset--color--border);
}

/* Radial accent glow */
.cm-conversation__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 62% at 50% 0%,
    rgba(185, 76, 76, 0.16) 0%,
    transparent 60%
  );
}

/* Monogram watermark */
.cm-conversation__watermark {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(200px, 30vw, 380px);
  line-height: 1;
  color: var(--wp--preset--color--text);
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Inner content wrapper */
.cm-conversation__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

/* Eyebrow */
.cm-conversation__eyebrow {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-hi);
  margin: 0 0 22px !important;
}

/* Headline */
.cm-conversation__headline {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.018em !important;
  color: var(--wp--preset--color--text) !important;
  margin: 0 0 28px !important;
}

/* Body */
.cm-conversation__body {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem) !important;
  line-height: 1.6 !important;
  color: var(--wp--preset--color--muted) !important;
  margin: 0 auto 40px !important;
  max-width: 54ch;
}

/* CTA button */
.cm-conversation__cta-link,
.cm-conversation__cta-link:visited {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 18px 30px !important;
  border-radius: 8px !important;
  background: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--text) !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  box-shadow: 0 2px 18px rgba(185, 76, 76, 0.42);
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.cm-conversation__cta-link:hover,
.cm-conversation__cta-link:focus-visible {
  background: var(--wp--preset--color--accent-hi) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(185, 76, 76, 0.55);
  color: var(--wp--preset--color--text) !important;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .cm-conversation__headline {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }

  .cm-conversation__body {
    font-size: 1.0625rem !important;
  }

  .cm-conversation__cta-link {
    padding: 16px 24px !important;
    width: 100%;
    justify-content: center;
  }
}

/* ── Scroll reveal ───────────────────────────────────────────────
   Hide + animate is scoped to `html.js-reveal`, the class reveal.js
   sets synchronously on load. Without JS (or for crawlers), the class
   is never present, so every .cm-reveal element renders normally
   and nothing is ever hidden. reveal.js adds `is-revealed` when an
   element scrolls into view (or immediately, under reduced motion). */
html.js-reveal .cm-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .6s cubic-bezier(.2, .8, .2, 1),
    transform .6s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}

html.js-reveal .cm-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* Per-element entrance delay (e.g. the §8 "not for you" card). */
html.js-reveal .cm-reveal--delay {
  transition-delay: 120ms;
}

/* Tasteful stagger for grouped items. Capped so the cascade stays
   subtle (max ~4 steps of 60ms). */

/* Hero proof items: each child starts hidden, reveals when the parent
   group gets .is-revealed, cascading via per-child transition-delay. */
html.js-reveal .cm-hero__proof .cm-hero__proof-item {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .6s cubic-bezier(.2, .8, .2, 1),
    transform .6s cubic-bezier(.2, .8, .2, 1);
}
html.js-reveal .cm-hero__proof.is-revealed .cm-hero__proof-item {
  opacity: 1;
  transform: none;
}
html.js-reveal .cm-hero__proof .cm-hero__proof-item:nth-child(1) { transition-delay: 0ms; }
html.js-reveal .cm-hero__proof .cm-hero__proof-item:nth-child(2) { transition-delay: 60ms; }
html.js-reveal .cm-hero__proof .cm-hero__proof-item:nth-child(3) { transition-delay: 120ms; }
html.js-reveal .cm-hero__proof .cm-hero__proof-item:nth-child(n+4) { transition-delay: 180ms; }

/* §4 operating-system stages: each stage is its own reveal target and
   enters as it scrolls into view, so the cascade is mostly driven by
   scroll position. Add a tiny extra delay based on how many stages
   precede it (counted via the general-sibling combinator, so it does
   not depend on the stage's tag-position among mixed siblings like the
   connector div). Capped at ~180ms. */
html.js-reveal .cm-os__stage.cm-reveal ~ .cm-os__stage.cm-reveal {
  transition-delay: 60ms;
}
html.js-reveal .cm-os__stage.cm-reveal ~ .cm-os__stage.cm-reveal ~ .cm-os__stage.cm-reveal {
  transition-delay: 120ms;
}
html.js-reveal .cm-os__stage.cm-reveal ~ .cm-os__stage.cm-reveal ~ .cm-os__stage.cm-reveal ~ .cm-os__stage.cm-reveal {
  transition-delay: 180ms;
}

/* §8 fit cards inside the revealed grid */
html.js-reveal .cm-fit__grid .cm-fit__card {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .6s cubic-bezier(.2, .8, .2, 1),
    transform .6s cubic-bezier(.2, .8, .2, 1);
}
html.js-reveal .cm-fit__grid.is-revealed .cm-fit__card {
  opacity: 1;
  transform: none;
}
html.js-reveal .cm-fit__grid .cm-fit__card:nth-child(1) { transition-delay: 0ms; }
html.js-reveal .cm-fit__grid .cm-fit__card:nth-child(2) { transition-delay: 60ms; }
html.js-reveal .cm-fit__grid .cm-fit__card:nth-child(n+3) { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .cm-reveal,
  html.js-reveal .cm-hero__proof.is-revealed .cm-hero__proof-item,
  html.js-reveal .cm-fit__grid.is-revealed .cm-fit__card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   GROW-READY TEMPLATES - single post, page, blog/archive
   Reuses the landing-page look: dark bg, DM Serif headings, Inter
   body, accent-hi links. Colours via theme presets + custom tokens.
   ════════════════════════════════════════════════════════════════ */

/* ── Shared: clear the fixed header + comfortable vertical rhythm ──
   Specificity note: the global rule
   `.wp-site-blocks > .wp-block-template-part:first-child + *`
   (0,2,1) zeroes top padding for the block right after the header,
   and `:where(.wp-site-blocks) > *` adds a 24px top margin. We match
   that structural pattern so our templates win the cascade cleanly. */
.wp-site-blocks > .wp-block-template-part:first-child + .cm-post,
.wp-site-blocks > .wp-block-template-part:first-child + .cm-page,
.wp-site-blocks > .wp-block-template-part:first-child + .cm-archive,
.cm-post,
.cm-page,
.cm-archive {
  padding-top: clamp(110px, 16vh, 168px);
  padding-bottom: clamp(72px, 12vh, 132px);
  padding-left: clamp(22px, 6vw, 80px);
  padding-right: clamp(22px, 6vw, 80px);
  background: var(--wp--preset--color--bg);
}

/* Neutralise the global 24px sibling top-margin so our padding governs */
.wp-site-blocks > .cm-post,
.wp-site-blocks > .cm-page,
.wp-site-blocks > .cm-archive {
  margin-block-start: 0;
}

/* Constrain the article column to a comfortable reading measure.
   WP emits the 70ch contentSize as an inline style on the inner group;
   these rules add the brand spacing + alignment. */
.cm-post__inner,
.cm-page__inner {
  margin-inline: auto;
}

/* ── Post / Page titles ──────────────────────────────────────── */
.cm-post__title,
.cm-page__title {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--text);
  margin: 0 0 var(--wp--preset--spacing--5);
}

.cm-post__title a,
.cm-page__title a { color: inherit; text-decoration: none; }

/* ── Post meta (date · author) ───────────────────────────────── */
.cm-post__meta {
  align-items: center;
  gap: var(--wp--preset--spacing--3);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--caption);
  letter-spacing: 0.02em;
  margin: 0 0 var(--wp--preset--spacing--7);
}

.cm-post__meta .wp-block-post-date,
.cm-post__meta .wp-block-post-author-name,
.cm-post__meta-sep {
  color: var(--wp--preset--color--muted);
  margin: 0;
}

.cm-post__meta .wp-block-post-date a,
.cm-post__meta .wp-block-post-author-name a {
  color: var(--wp--preset--color--muted);
  text-decoration: none;
}

.cm-post__meta-sep { opacity: 0.6; }

/* ── Featured image ──────────────────────────────────────────── */
.cm-post__featured {
  margin: 0 0 var(--wp--preset--spacing--7);
}

.cm-post__featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--wp--custom--radius--lg);
  border: 1px solid var(--wp--preset--color--border);
}

/* ════════════════════════════════════════════════════════════════
   PROSE - post-content defaults (essays / long-form pages)
   Body: Inter 16px / 1.6. Headings: DM Serif. Links: accent-hi.
   ════════════════════════════════════════════════════════════════ */
.cm-prose {
  margin-inline: auto;
  color: var(--wp--preset--color--stone);
  font-family: var(--wp--preset--font-family--sans);
  font-size: var(--wp--preset--font-size--body); /* 1rem / 16px */
  line-height: 1.6;
}

.cm-prose > * { margin-block: 0; }
.cm-prose > * + * { margin-block-start: var(--wp--preset--spacing--5); }

/* The post-content is an is-layout-constrained group; WP auto-centres any
   child narrower than the container (margin-inline:auto + capped max-width),
   which would push headings/blockquotes off the left edge. Keep prose flush
   left at the full reading measure. */
.cm-prose.is-layout-constrained > *,
.cm-prose > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

.cm-prose p {
  color: var(--wp--preset--color--stone);
  line-height: 1.6;
}

.cm-prose h2,
.cm-prose h3,
.cm-prose h4,
.cm-prose h5,
.cm-prose h6 {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--wp--preset--color--text);
  margin-block-start: var(--wp--preset--spacing--8);
  margin-block-end: var(--wp--preset--spacing--4);
}

.cm-prose h2 { font-size: var(--wp--preset--font-size--h2); }
.cm-prose h3 { font-size: var(--wp--preset--font-size--h3); }
.cm-prose h4 { font-size: var(--wp--preset--font-size--callout); }

.cm-prose a {
  color: var(--wp--preset--color--accent-hi);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--wp--preset--color--accent-hi) 45%, transparent);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

.cm-prose a:hover {
  color: var(--wp--preset--color--accent);
  text-decoration-color: var(--wp--preset--color--accent);
}

/* Strong / emphasis */
.cm-prose strong { color: var(--wp--preset--color--text); font-weight: 600; }
.cm-prose em { font-style: italic; }

/* Lists */
.cm-prose ul,
.cm-prose ol {
  padding-inline-start: 1.4em;
  color: var(--wp--preset--color--stone);
}

.cm-prose li { margin-block: var(--wp--preset--spacing--2); line-height: 1.6; }
.cm-prose li::marker { color: var(--wp--preset--color--accent); }
.cm-prose ul ul,
.cm-prose ol ol,
.cm-prose ul ol,
.cm-prose ol ul { margin-block-start: var(--wp--preset--spacing--2); }

/* Blockquote */
.cm-prose blockquote {
  margin: var(--wp--preset--spacing--7) 0;
  padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--6);
  border-left: 3px solid var(--wp--preset--color--accent);
  background: var(--wp--custom--color--section-deep);
  border-radius: var(--wp--custom--radius--sm);
  color: var(--wp--preset--color--cream);
}

.cm-prose blockquote p { color: var(--wp--preset--color--cream); }
.cm-prose blockquote cite {
  display: block;
  margin-block-start: var(--wp--preset--spacing--3);
  font-style: normal;
  font-size: var(--wp--preset--font-size--caption);
  color: var(--wp--preset--color--muted);
}

/* Inline + block code */
.cm-prose code,
.cm-prose kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--wp--custom--color--section-deep);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--sm);
  padding: 0.12em 0.4em;
  color: var(--wp--preset--color--cream);
}

.cm-prose pre {
  background: var(--wp--custom--color--section-deepest);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--md);
  padding: var(--wp--preset--spacing--5);
  overflow-x: auto;
  line-height: 1.5;
}

.cm-prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--wp--preset--color--stone);
}

/* Images / figures inside prose */
.cm-prose img,
.cm-prose .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--wp--custom--radius--md);
}

.cm-prose figure { margin: var(--wp--preset--spacing--7) 0; }
.cm-prose figcaption {
  margin-block-start: var(--wp--preset--spacing--2);
  font-size: var(--wp--preset--font-size--caption);
  color: var(--wp--preset--color--muted);
  text-align: center;
}

/* Horizontal rule */
.cm-prose hr {
  border: 0;
  height: 1px;
  background: var(--wp--preset--color--border);
  margin: var(--wp--preset--spacing--8) 0;
}

/* Tables */
.cm-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wp--preset--font-size--small);
}

.cm-prose th,
.cm-prose td {
  border: 1px solid var(--wp--preset--color--border);
  padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
  text-align: left;
}

.cm-prose th {
  background: var(--wp--custom--color--section-deep);
  color: var(--wp--preset--color--text);
  font-weight: 600;
}

/* ── Legal pages (Privacy Policy / Terms of Service) ─────────── */

/* "Last updated" line: quiet, sits under the title, above the prose body */
.cm-legal__updated {
  font-size: var(--wp--preset--font-size--caption);
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.02em;
  margin: calc(-1 * var(--wp--preset--spacing--3)) 0 var(--wp--preset--spacing--7);
}

/* Slightly tighter rhythm than essay prose; legal copy is dense and scanned */
.cm-legal h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.25;
  margin-block-start: var(--wp--preset--spacing--7);
  margin-block-end: var(--wp--preset--spacing--3);
}

/* Email shown as a transparent image (the address text is never in the HTML);
   the mailto is assembled only on click by reveal.js. Sized in em to match
   whatever text surrounds it (footer, controller block, inline legal copy). */
.cm-email {
  display: inline-block;
  cursor: pointer;
}
/* Override the generic .cm-prose img rule (block/full-width) so the email image
   sizes to the surrounding text instead of filling the column. */
.cm-email-img {
  display: inline-block !important;
  height: 1.05em !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  vertical-align: -0.16em;
}
.cm-email:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.cm-legal ul {
  margin-block-start: var(--wp--preset--spacing--3);
}

.cm-legal li {
  margin-block: var(--wp--preset--spacing--1);
}

/* Controller / identification block: rendered as an un-bulleted definition
   list so the legal-name / CNPJ / address read as a card, not body bullets */
.cm-legal ul.cm-legal__controller {
  list-style: none;
  padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--6);
  margin-block-start: var(--wp--preset--spacing--4);
  border: 1px solid var(--wp--preset--color--border);
  border-left: 3px solid var(--wp--preset--color--accent);
  border-radius: var(--wp--custom--radius--md);
  background: var(--wp--custom--color--section-deep);
}

.cm-legal ul.cm-legal__controller li {
  margin-block: var(--wp--preset--spacing--2);
}

.cm-legal ul.cm-legal__controller li::marker {
  content: "";
}

.cm-legal ul.cm-legal__controller strong {
  color: var(--wp--preset--color--text);
}

/* ── Post navigation (previous / next) ───────────────────────── */
.cm-post__nav {
  margin-block-start: var(--wp--preset--spacing--9);
  padding-block-start: var(--wp--preset--spacing--6);
  border-top: 1px solid var(--wp--preset--color--border);
  gap: var(--wp--preset--spacing--5);
}

.cm-post__nav .wp-block-post-navigation-link {
  font-size: var(--wp--preset--font-size--small);
}

.cm-post__nav .wp-block-post-navigation-link a {
  color: var(--wp--preset--color--accent-hi);
  text-decoration: none;
  font-weight: 500;
  transition: color 120ms ease;
}

.cm-post__nav .wp-block-post-navigation-link a:hover {
  color: var(--wp--preset--color--accent);
}

.cm-post__nav-next { margin-inline-start: auto; text-align: right; }

/* ════════════════════════════════════════════════════════════════
   ARCHIVE / BLOG INDEX - title + card grid + pagination
   ════════════════════════════════════════════════════════════════ */
.cm-archive__header {
  max-width: 1180px;
  margin: 0 auto var(--wp--preset--spacing--8);
  text-align: center;
}

.cm-archive__title {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--wp--preset--color--text);
  margin: 0;
}

.cm-archive__desc {
  margin: var(--wp--preset--spacing--4) auto 0;
  max-width: 60ch;
  color: var(--wp--preset--color--muted);
  line-height: 1.5;
}

.cm-archive__query {
  max-width: 1180px;
  margin-inline: auto;
}

/* Grid: 3-up desktop, collapses to 1 on mobile (see media query) */
.cm-archive__grid {
  gap: var(--wp--preset--spacing--6);
}

/* ── Post card ───────────────────────────────────────────────── */
.cm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--lg);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cm-card:hover {
  border-color: color-mix(in srgb, var(--wp--preset--color--accent) 55%, var(--wp--preset--color--border));
  transform: translateY(-3px);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--wp--custom--color--section-deepest) 70%, transparent);
}

/* Featured image (or fallback band when no image is set) */
.cm-card__image {
  margin: 0;
  display: block;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg,
      var(--wp--custom--color--section-deep) 0%,
      var(--wp--preset--color--surface) 100%);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.cm-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback: when the post has no featured image, the block renders empty.
   The gradient band above shows through, keeping cards uniform. */
.cm-card__image:not(:has(img)) {
  aspect-ratio: 16 / 9;
}

.cm-card__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--wp--preset--spacing--3);
  padding: var(--wp--preset--spacing--6);
  flex: 1 1 auto;
}

/* Keep card content flush-left: cancel the constrained-layout auto-centre.
   WP's global stylesheet centres narrow children with `margin-left:auto`;
   !important guarantees flush-left regardless of layout-class ordering. */
.cm-card__body.is-layout-constrained > *,
.cm-card__body > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
  text-align: left;
}

.cm-card__date {
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

.cm-card__title {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 400;
  line-height: 1.18;
  margin: 0;
}

.cm-card__title a {
  color: var(--wp--preset--color--text);
  text-decoration: none;
  transition: color 120ms ease;
}

.cm-card__title a:hover { color: var(--wp--preset--color--accent-hi); }

.cm-card__excerpt {
  color: var(--wp--preset--color--muted);
  line-height: 1.55;
  margin: 0;
}

.cm-card__excerpt .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-block-start: var(--wp--preset--spacing--2);
  color: var(--wp--preset--color--accent-hi);
  text-decoration: none;
  font-weight: 600;
}

.cm-card__excerpt .wp-block-post-excerpt__more-link:hover {
  color: var(--wp--preset--color--accent);
}

/* ── Pagination ──────────────────────────────────────────────── */
.cm-archive__pagination {
  margin-block-start: var(--wp--preset--spacing--8);
  gap: var(--wp--preset--spacing--3);
  align-items: center;
}

.cm-archive__pagination .wp-block-query-pagination-numbers,
.cm-archive__pagination a,
.cm-archive__pagination .page-numbers {
  color: var(--wp--preset--color--stone);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
}

.cm-archive__pagination a:hover,
.cm-archive__pagination .page-numbers:hover {
  color: var(--wp--preset--color--accent-hi);
}

.cm-archive__pagination .page-numbers.current {
  /* accent-hi clears WCAG AA for this small bold current-page indicator. */
  color: var(--wp--preset--color--accent-hi);
  font-weight: 700;
}

.cm-archive__empty {
  text-align: center;
  color: var(--wp--preset--color--muted);
  padding-block: var(--wp--preset--spacing--8);
}

/* ── Responsive: single column on mobile ─────────────────────── */
@media (max-width: 781px) {
  .cm-archive__grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .cm-post,
  .cm-page,
  .cm-archive {
    padding-left: clamp(18px, 6vw, 22px);
    padding-right: clamp(18px, 6vw, 22px);
  }
}

/* ── Form Page (page-background / Help Me Help You) ──────────── */

/* Page wrapper: dark bg, push below fixed header */
.cm-formpage {
  padding-top: clamp(100px, 14vh, 140px);
  padding-bottom: clamp(72px, 10vh, 120px);
  background: var(--wp--preset--color--bg);
  min-height: 100vh;
}

/* Hero intro block */
.cm-formpage__hero {
  text-align: center;
  margin-bottom: clamp(32px, 5vh, 52px);
  padding-left: clamp(20px, 6vw, 48px) !important;
  padding-right: clamp(20px, 6vw, 48px) !important;
}

/* Page title: DM Serif, on-brand */
.cm-formpage__title {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--text) !important;
  margin: 0 0 16px !important;
}

/* Sub-heading copy */
.cm-formpage__sub {
  font-family: var(--wp--preset--font-family--sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
  margin: 0 !important;
  max-width: 52ch;
  margin-inline: auto !important;
}

/* Form wrapper: constrain and center */
.cm-formpage__form-wrap {
  padding-left: clamp(20px, 6vw, 48px) !important;
  padding-right: clamp(20px, 6vw, 48px) !important;
}

/* Light card: Tally form uses transparentBackground=1 so its fields render
   against whatever surface is behind them. The form's own labels and inputs
   are styled for a LIGHT background, which would be invisible on the dark
   brand bg. Wrapping in a cream/off-white card keeps the form legible while
   still looking intentional and on-brand. */
.cm-formpage__card {
  background: #faf7f2;
  border-radius: var(--wp--custom--radius--lg);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.32);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 44px);
  overflow: hidden;
}

/* Iframe fills the card */
.cm-formpage__card iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Mobile: tighten padding, full-width card */
@media (max-width: 600px) {
  .cm-formpage__hero,
  .cm-formpage__form-wrap {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .cm-formpage__card {
    padding: 24px 18px;
    border-radius: var(--wp--custom--radius--md);
  }
}
