/* The design system: a port of the live site's app/globals.css and of the
   Tailwind utilities its components use, written as named cb-* rules for the
   cubas-ui components. Loaded last, on every page.

   - Colours come from tokens.css only; this file defines none.
   - effects.css already holds the globals.css effect classes: selection,
     cb-btn-main, cb-btn-primary, cb-btn-secondary, cb-card, cb-hairline,
     cb-glow, cb-grid-lines, cb-grain, cb-eyebrow and cb-underline. They are
     not repeated here.
   - Breakpoints are Tailwind's: 640px (sm), 768px (md) and 1024px (lg).
   - Motion: reveal content is hidden only under html.js, which site.js sets,
     and only when the visitor allows motion. The hero is the exception: it
     plays a CSS entrance from first paint and never waits for site.js. With
     JavaScript off, or with reduced motion, everything shows. */

/* Layout values, also read by brand.css and widgets.css */
:root {
  --cb-font: Inter, "Inter Fallback", system-ui, -apple-system, sans-serif;
  --cb-shell: 1200px;
  --cb-prose: 68ch;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
*,
::after,
::before {
  border-color: var(--cb-border-dark);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cb-bg);
  color: var(--cb-body);
  font-family: var(--cb-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The Elementor kit sets the body line height in em (.elementor-kit-N,
   1.6em), which every child inherits as a fixed 25.6px: 1.05rem paragraphs
   and small card text then miss the live site's unitless 1.6. :root body
   outranks the kit's single class. Rules at Tailwind's text-xs and text-sm
   sizes name its line height with the size (1rem, 1.25rem), as the
   utilities do. */
:root body {
  line-height: 1.6;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--cb-white);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--cb-white);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--cb-white);
}

h4 {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cb-orange);
}

p {
  font-size: 1.05rem;
  font-weight: 400;
}

/* Focus: the orange ring. Hello Elementor's reset draws a black ring on these
   same selectors, so they are listed to override it. */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):not([contenteditable]):focus-visible {
  outline: 2px solid var(--cb-orange);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: none;
}

/* Windows and Linux draw the native select popup on a white system background
   while the options inherit the control's white text, so the list reads as
   empty. Options get their own pair. */
select option {
  background-color: var(--cb-card);
  color: var(--cb-white);
}
select option:disabled {
  color: var(--cb-muted);
}

/* ---------------------------------------------------------------------------
   Utilities from globals.css
   --------------------------------------------------------------------------- */
.cb-shell {
  width: 100%;
  max-width: var(--cb-shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .cb-shell {
    padding-inline: 2rem;
  }
}

.cb-prose {
  max-width: var(--cb-prose);
}
.cb-prose p {
  margin: 0;
}
.cb-prose p + p {
  margin-top: 1.1rem;
}

/* The accent line of a hero headline (text-orange) */
.cb-accent {
  color: var(--cb-orange);
}

.cb-marquee {
  animation: cb-drift 42s linear infinite;
}
.cb-marquee:hover {
  animation-play-state: paused;
}

/* Light showcase band: flips the ink without per-element overrides. As on the
   live site, .band-light p outranks .cb-eyebrow, so eyebrows go ink here. */
.band-light {
  background-color: var(--cb-light-bg);
  color: var(--cb-ink-body);
}
.band-light h1,
.band-light h2,
.band-light h3 {
  color: var(--cb-ink);
}
.band-light p {
  color: var(--cb-ink-body);
}
.band-light .cb-btn-secondary {
  border-color: rgba(17, 17, 17, 0.15);
}
.band-light .cb-btn-secondary:hover {
  background-color: rgba(17, 17, 17, 0.03);
  border-color: var(--cb-ink);
}
.band-light .cb-card {
  background-color: var(--cb-light-card);
  border-color: var(--cb-light-border);
}

/* brand.css and the Elementor kit (.elementor-kit-N a, which outranks a
   single class) colour every link, hover, focus and active included, and
   Hello underlines links in .page-content. A button keeps its own text colour
   and no underline in every state. */
a.cb-btn-main {
  text-decoration: none;
}
a.cb-btn-primary,
a.cb-btn-secondary,
a:is(.cb-btn-primary, .cb-btn-secondary):is(:hover, :focus, :active) {
  color: var(--cb-white);
}
.band-light .cb-btn-secondary,
.band-light .cb-btn-secondary:is(:hover, :focus, :active) {
  color: var(--cb-ink);
}

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

/* Scroll reveal. site.js adds is-visible as each element enters the viewport.
   A component staggers its parts through --cb-reveal-delay. */
.cb-reveal,
.cb-reveal-group > .cb-reveal-item {
  transition:
    opacity 0.45s var(--cb-ease) var(--cb-reveal-delay, 0ms),
    transform 0.45s var(--cb-ease) var(--cb-reveal-delay, 0ms);
}
.cb-reveal-group > .cb-reveal-item:nth-child(2) {
  --cb-reveal-delay: 70ms;
}
.cb-reveal-group > .cb-reveal-item:nth-child(3) {
  --cb-reveal-delay: 140ms;
}
.cb-reveal-group > .cb-reveal-item:nth-child(4) {
  --cb-reveal-delay: 210ms;
}
.cb-reveal-group > .cb-reveal-item:nth-child(5) {
  --cb-reveal-delay: 280ms;
}
.cb-reveal-group > .cb-reveal-item:nth-child(6) {
  --cb-reveal-delay: 350ms;
}
.cb-reveal-group > .cb-reveal-item:nth-child(n + 7) {
  --cb-reveal-delay: 420ms;
}

/* Hero headline wipe: each line rises behind a clip mask, once, on load.
   Pure CSS, so it never waits for JavaScript and always ends visible. */
.cb-mask-line {
  display: block;
  overflow: hidden;
}
.cb-mask-line > span {
  display: block;
}

/* Anyone on a screen who has not asked for less motion gets the hidden
   starting states and the load animations. The hidden states also need
   html.js, and never apply in the Elementor editor (body.elementor-editor-active,
   or elementor-editor-preview in its preview mode), which renders widgets
   after site.js has run. They are screen-only: print and Save as PDF never
   scroll, so nothing below the fold would ever be revealed. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js
    body:not(.elementor-editor-active, .elementor-editor-preview)
    .cb-reveal:not(.is-visible, .cb-hero .cb-reveal, .cb-entry-hero .cb-reveal),
  html.js
    body:not(.elementor-editor-active, .elementor-editor-preview)
    .cb-reveal-group:not(.is-visible)
    > .cb-reveal-item {
    opacity: 0;
    transform: translateY(24px);
  }

  .cb-mask-line > span {
    animation: cb-mask 0.7s var(--cb-ease) both;
  }
  .cb-mask-line:nth-child(2) > span {
    animation-delay: 90ms;
  }
  .cb-mask-line:nth-child(3) > span {
    animation-delay: 180ms;
  }
  .cb-mask-line:nth-child(n + 4) > span {
    animation-delay: 270ms;
  }

  .cb-fade-in {
    animation: cb-fade 0.45s var(--cb-ease) both;
  }

  /* The hero's entrance plays from first paint, in CSS: the hero text is the
     largest content on the page, so it must not wait for site.js to reveal it
     (site.js leaves .cb-hero .cb-reveal and .cb-entry-hero .cb-reveal, the
     hero of the single templates, alone). Same distance, time, easing
     and per-part delay as the scroll reveal. Only the start is held, so no
     transform stays on the element once it has played. Not in the Elementor
     editor, which re-renders widgets and shows them at once. */
  body:not(.elementor-editor-active, .elementor-editor-preview)
    :is(.cb-hero, .cb-entry-hero)
    .cb-reveal {
    animation: cb-hero-rise 0.45s var(--cb-ease) var(--cb-reveal-delay, 0ms)
      backwards;
  }
}

@keyframes cb-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes cb-mask {
  from {
    opacity: 0;
    transform: translateY(18px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0% 0);
  }
}

@keyframes cb-hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cb-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Reduced motion: no smooth scroll, and every animation and transition ends
   at once (the marquee, Elementor's own motion and the hover lifts included). */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------------------
   Components (wp/plugins/cubas-ui). Hello Elementor's reset gives headings
   and paragraphs margins that Tailwind's preflight removed, so each element
   sets its own.
   --------------------------------------------------------------------------- */

/* Section: py-16 md:py-24, tight py-12 md:py-16, loose py-20 md:py-28 */
.cb-section {
  position: relative;
  padding-block: 4rem;
}
.cb-section--tight {
  padding-block: 3rem;
}
.cb-section--loose {
  padding-block: 5rem;
}
@media (min-width: 768px) {
  .cb-section {
    padding-block: 6rem;
  }
  .cb-section--tight {
    padding-block: 4rem;
  }
  .cb-section--loose {
    padding-block: 7rem;
  }
}
.cb-section--border-top {
  border-top: 1px solid var(--cb-border-dark);
}
.cb-section--border-y {
  border-block: 1px solid var(--cb-border-dark);
}

/* Section header: max-w-3xl, eyebrow mb-4, intro mt-5 */
.cb-section-header {
  max-width: 48rem;
}
.cb-section-header--center {
  margin-inline: auto;
  text-align: center;
}
.cb-section-header__eyebrow {
  margin: 0 0 1rem;
}
.cb-section-header__title {
  margin: 0;
  text-wrap: balance;
}
.cb-section-header__intro {
  margin: 1.25rem 0 0;
  text-wrap: pretty;
}
.cb-section-header__intro + .cb-section-header__intro {
  margin-top: 1rem;
}

/* Hero: grid lines and a glow behind the shell. Base pt-16 pb-12,
   md:pt-24 md:pb-16; large pt-20 pb-14, md:pt-28 md:pb-20. */
.cb-hero {
  position: relative;
  overflow: hidden;
}
.cb-hero__grid {
  position: absolute;
  inset: 0;
}
.cb-hero__glow {
  top: -8rem;
  left: 50%;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
}
.cb-hero__inner {
  position: relative;
  padding-block: 4rem 3rem;
}
.cb-hero--large .cb-hero__inner {
  padding-block: 5rem 3.5rem;
}
@media (min-width: 768px) {
  .cb-hero__inner {
    padding-block: 6rem 4rem;
  }
  .cb-hero--large .cb-hero__inner {
    padding-block: 7rem 5rem;
  }
}
.cb-hero__eyebrow {
  margin: 0 0 1.25rem;
}
.cb-hero__title {
  max-width: 64rem;
  margin: 0;
  text-wrap: balance;
}
.cb-hero__intro-group {
  --cb-reveal-delay: 150ms;
}
.cb-hero__intro {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.625;
  text-wrap: pretty;
}
.cb-hero__intro:first-child {
  margin-top: 1.75rem;
}
@media (min-width: 768px) {
  .cb-hero__intro {
    font-size: 1.15rem;
  }
}
.cb-hero__actions {
  --cb-reveal-delay: 220ms;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.cb-hero__answer {
  --cb-reveal-delay: 300ms;
  max-width: 48rem;
  margin-top: 3rem;
}

/* Answer block: card at 70%, the orange bar on the left, p-6 md:p-8 */
.cb-answer-block {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 12px;
  background-color: var(--cb-card);
  background-color: color-mix(in srgb, var(--cb-card) 70%, transparent);
}
.cb-answer-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 3px;
  border-radius: 9999px;
  background-color: var(--cb-orange);
}
@media (min-width: 768px) {
  .cb-answer-block {
    padding: 2rem;
  }
}
.cb-answer-block__question {
  margin: 0 0 0.75rem;
}
.cb-answer-block__answer {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}
.cb-answer-block__answer + .cb-answer-block__answer {
  margin-top: 1rem;
}

/* FAQ: divided rows of native details; the plus turns into a cross when open */
.cb-faq-list {
  border-block: 1px solid var(--cb-border-dark);
}
.cb-faq-list__item {
  padding-block: 1.25rem;
}
.cb-faq-list__item + .cb-faq-list__item {
  border-top: 1px solid var(--cb-border-dark);
}
.cb-faq-list__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
  text-align: left;
}
.cb-faq-list__summary::-webkit-details-marker {
  display: none;
}
.cb-faq-list__summary::after {
  content: "+";
  content: "+" / "";
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.25rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 9999px;
  color: var(--cb-orange);
  line-height: 1;
  transition: transform 0.3s var(--cb-ease);
}
.cb-faq-list__item[open] > .cb-faq-list__summary::after {
  transform: rotate(45deg);
}
.cb-faq-list__question {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.375;
  color: var(--cb-white);
  transition: color 0.15s var(--cb-ease);
}
.cb-faq-list__item:hover .cb-faq-list__question {
  color: var(--cb-orange);
}
@media (min-width: 768px) {
  .cb-faq-list__question {
    font-size: 1.2rem;
  }
}
.cb-faq-list__answer {
  padding-top: 1rem;
  font-size: 1rem;
  line-height: 1.625;
}

/* CTA band: centred, a glow rising from below, py-20 md:py-28 */
.cb-cta-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--cb-border-dark);
}
.cb-cta-band__glow {
  bottom: -220px;
  left: 50%;
  width: 820px;
  height: 420px;
  transform: translateX(-50%);
}
.cb-cta-band__inner {
  position: relative;
  padding-block: 5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .cb-cta-band__inner {
    padding-block: 7rem;
  }
}
.cb-cta-band__title {
  max-width: 48rem;
  margin: 0 auto;
  text-wrap: balance;
}
.cb-cta-band__text {
  --cb-reveal-delay: 80ms;
  max-width: 42rem;
  margin: 1.5rem auto 0;
}
.cb-cta-band__body {
  margin: 0;
  text-wrap: pretty;
}
.cb-cta-band__body + .cb-cta-band__body {
  margin-top: 1rem;
}
.cb-cta-band__actions {
  --cb-reveal-delay: 140ms;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.cb-cta-band__email {
  --cb-reveal-delay: 200ms;
  margin: 1.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--cb-muted);
}
.cb-cta-band__email a {
  color: var(--cb-orange);
}
.cb-cta-band__email a:hover {
  text-decoration: underline;
}

/* Two-up: stacked, then two columns from 1024px, gap-12 */
.cb-two-up {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .cb-two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}
.cb-two-up__col:nth-child(2) {
  --cb-reveal-delay: 80ms;
}
.cb-two-up__eyebrow {
  margin: 0 0 1rem;
}
.cb-two-up__heading {
  margin: 0;
  text-wrap: balance;
}
.cb-two-up__body {
  margin-top: 1.5rem;
}
.cb-two-up__button {
  margin-top: 2rem;
}

/* ---------------------------------------------------------------------------
   Cards and content types (wp/plugins/cubas-ui, components-cards.php).
   A card that lifts on hover sits inside a cb-reveal-item or cb-reveal
   wrapper, so the reveal and the hover transition never share an element.
   Links inside a card keep their own colour in every state: brand.css and
   the Elementor kit (.elementor-kit-N a and a:hover, which outrank a lone
   class and load first) colour every link, so each colour rule names its
   element.
   --------------------------------------------------------------------------- */

/* Hello underlines links in .page-content with a rule of equal weight, so
   each link-like card names its element. */
a.cb-card-grid__card,
a.cb-pillar-card__point,
a.cb-pillar-card__cta,
a.cb-project-card__anchor,
a.cb-related__link {
  text-decoration: none;
}

/* Card grid: gap-4; two columns from 640px, then 3 or 4 from 1024px */
.cb-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .cb-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .cb-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cb-card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cb-card-grid__item {
  min-width: 0;
}
.cb-card-grid__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1.5rem;
}
a.cb-card-grid__card,
a.cb-card-grid__card:is(:hover, :focus, :active) {
  color: var(--cb-body);
}
@media (min-width: 768px) {
  .cb-card-grid__card {
    padding: 1.75rem;
  }
}
.cb-card-grid__card.cb-card--compact {
  padding: 1.25rem;
}
.cb-card-grid__card:focus-visible {
  border-radius: 14px;
}
.cb-card-grid__meta {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cb-muted);
}
.cb-card-grid__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  transition: color 0.2s var(--cb-ease);
}
@media (min-width: 768px) {
  .cb-card-grid__title {
    font-size: 1.25rem;
  }
}
a.cb-card-grid__card:hover .cb-card-grid__title {
  color: var(--cb-orange);
}
.cb-card-grid__body {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.625;
}
.cb-card-grid__body + .cb-card-grid__body {
  margin-top: 0.6rem;
}
.cb-card-grid__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--cb-orange);
}
.cb-card-grid__arrow,
.cb-pillar-card__arrow,
.cb-project-card__arrow {
  display: inline-block;
  transition: transform 0.3s var(--cb-ease);
}

/* Numbered cards: orange 01, 02; one column, two from 768px */
.cb-numbered-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .cb-numbered-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cb-numbered-cards__item {
  min-width: 0;
}
.cb-numbered-cards__card {
  height: 100%;
  padding: 1.75rem;
}
@media (min-width: 768px) {
  .cb-numbered-cards__card {
    padding: 2rem;
  }
}
.cb-numbered-cards__number {
  display: block;
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--cb-orange);
}
.cb-numbered-cards__title {
  margin: 0.75rem 0 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.cb-numbered-cards__body {
  margin-top: 0.75rem;
  line-height: 1.625;
}
.cb-numbered-cards__body p {
  margin: 0;
}
.cb-numbered-cards__body p + p {
  margin-top: 0.75rem;
}

/* Check list: bordered rows with an orange tick, gap-3 */
ul.cb-check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-check-list__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 12px;
  background-color: var(--cb-card);
}
.cb-check-list__tick {
  margin-top: 0.125rem;
  color: var(--cb-orange);
}
.cb-check-list__text {
  min-width: 0;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--cb-white);
  color: color-mix(in srgb, var(--cb-white) 85%, transparent);
}

/* Chips: stack tags */
ul.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-chips__chip {
  margin: 0;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 8px;
  background-color: var(--cb-card);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cb-white);
  color: color-mix(in srgb, var(--cb-white) 80%, transparent);
}

/* Proof grid: text cells in one bordered grid, 1px dividers */
.cb-proof-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--cb-border-dark);
  border-radius: 16px;
  background-color: var(--cb-border-dark);
}
@media (min-width: 640px) {
  .cb-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cb-proof-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .cb-proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cb-proof-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cb-proof-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cb-proof-grid__cell {
  min-width: 0;
  padding: 1.5rem;
  background-color: var(--cb-card);
  text-align: center;
}
.cb-proof-grid__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--cb-white);
  text-wrap: balance;
}
.cb-proof-grid__body {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cb-muted);
}

/* Pillar card: p-8 md:p-10, the call to action pinned to the bottom */
.cb-pillar-card-wrap {
  height: 100%;
}
.cb-pillar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
}
@media (min-width: 768px) {
  .cb-pillar-card {
    padding: 2.5rem;
  }
}
.cb-pillar-card__eyebrow {
  margin: 0;
}
.cb-pillar-card__title {
  margin: 1rem 0 0;
  font-size: 1.6rem;
}
@media (min-width: 768px) {
  .cb-pillar-card__title {
    font-size: 1.9rem;
  }
}
.cb-pillar-card__lead {
  margin: 1rem 0 0;
  line-height: 1.625;
}
.cb-pillar-card__lead + .cb-pillar-card__lead {
  margin-top: 0.75rem;
}
ul.cb-pillar-card__points {
  display: grid;
  gap: 0.625rem;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--cb-border-dark);
  list-style: none;
}
@media (min-width: 640px) {
  .cb-pillar-card__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cb-pillar-card__point {
  display: flex;
  gap: 0.625rem;
  font-size: 0.93rem;
  line-height: 1.5;
  transition: color 0.2s var(--cb-ease);
}
span.cb-pillar-card__point,
a.cb-pillar-card__point {
  color: var(--cb-muted);
}
a.cb-pillar-card__point:is(:hover, :focus, :active) {
  color: var(--cb-white);
}
.cb-pillar-card__dot {
  flex: none;
  width: 4px;
  height: 4px;
  margin-top: 0.6rem;
  border-radius: 9999px;
  background-color: var(--cb-orange);
}
.cb-pillar-card__note {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cb-border-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cb-body);
  color: color-mix(in srgb, var(--cb-white) 70%, transparent);
}
a.cb-pillar-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cb-orange);
}
a.cb-pillar-card__cta:is(:hover, :focus, :active) {
  color: var(--cb-orange);
}

/* Search list: a card panel of divided rows */
.cb-search-list,
.cb-related {
  padding: 1.75rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 16px;
  background-color: var(--cb-card);
}
@media (min-width: 768px) {
  .cb-search-list,
  .cb-related {
    padding: 2rem;
  }
}
.cb-search-list__eyebrow,
.cb-related__title {
  margin: 0 0 1.25rem;
}
ul.cb-search-list__items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-search-list__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding-block: 0.875rem;
}
.cb-search-list__row + .cb-search-list__row {
  border-top: 1px solid var(--cb-border-dark);
}
.cb-search-list__icon {
  color: var(--cb-orange);
}
.cb-search-list__query {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cb-white);
  color: color-mix(in srgb, var(--cb-white) 85%, transparent);
}

/* Byline card: eyebrow, "Name, Role" and a short bio */
.cb-byline-card {
  padding: 1.5rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 12px;
  background-color: var(--cb-card);
}
.cb-byline-card__eyebrow {
  margin: 0 0 1rem;
}
.cb-byline-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cb-white);
}
.cb-byline-card__bio {
  margin: 0.5rem 0 0;
  font-size: 0.93rem;
  line-height: 1.625;
}
.cb-byline-card__bio + .cb-byline-card__bio {
  margin-top: 0.6rem;
}

/* Project card: an image over the details, the whole card one link */
.cb-project-card-wrap {
  height: 100%;
}
.cb-project-card {
  height: 100%;
  overflow: hidden;
  padding: 0;
}
.cb-project-card:focus-within {
  outline: 2px solid var(--cb-orange);
  outline-offset: 3px;
}
a.cb-project-card__anchor {
  display: block;
  height: 100%;
  color: var(--cb-body);
}
a.cb-project-card__anchor:is(:hover, :focus, :active) {
  color: var(--cb-body);
}
.cb-project-card__anchor:focus-visible {
  outline: none;
}
.cb-project-card__media {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--cb-border-dark);
  background-color: var(--cb-bg);
}
.cb-project-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--cb-ease);
}
.cb-project-card__status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 9999px;
  background-color: var(--cb-bg);
  background-color: color-mix(in srgb, var(--cb-bg) 70%, transparent);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cb-white);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.cb-project-card__body {
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .cb-project-card__body {
    padding: 1.75rem;
  }
}
.cb-project-card__meta {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cb-muted);
}
.cb-project-card__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  transition: color 0.2s var(--cb-ease);
}
.cb-project-card__anchor:hover .cb-project-card__title {
  color: var(--cb-orange);
}
.cb-project-card__tagline {
  margin: 0.375rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cb-white);
  color: color-mix(in srgb, var(--cb-white) 70%, transparent);
}
.cb-project-card__summary {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.625;
}
.cb-project-card__summary + .cb-project-card__summary {
  margin-top: 0.6rem;
}
ul.cb-project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--cb-border-dark);
  list-style: none;
}
.cb-project-card__chip {
  margin: 0;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cb-muted);
}
.cb-project-card__chip--more {
  padding-inline: 0.25rem;
  border-color: transparent;
}
.cb-project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--cb-orange);
}

/* Hover motion, only for visitors who allow it */
@media (prefers-reduced-motion: no-preference) {
  a.cb-card-grid__card:hover .cb-card-grid__arrow,
  .cb-pillar-card:hover .cb-pillar-card__arrow,
  .cb-project-card__anchor:hover .cb-project-card__arrow {
    transform: translateX(4px);
  }
  .cb-project-card__anchor:hover .cb-project-card__img {
    transform: scale(1.03);
  }
}

/* Testimonial wall: a light band, two columns from 768px */
.cb-testimonial-wall__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .cb-testimonial-wall__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cb-testimonial-wall__item {
  min-width: 0;
}
.cb-testimonial {
  height: 100%;
  margin: 0;
  padding: 1.75rem;
}
@media (min-width: 768px) {
  .cb-testimonial {
    padding: 2rem;
  }
}
.cb-testimonial__stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  color: var(--cb-orange);
}
.cb-testimonial__quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--cb-ink-body);
}
.cb-testimonial__quote p {
  margin: 0;
  font-size: inherit;
}
.cb-testimonial__quote p + p {
  margin-top: 0.75rem;
}
/* Upright: Hello's reset sets figcaption in italic */
.cb-testimonial__caption {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cb-light-border);
  font-style: normal;
}
.cb-testimonial__author {
  display: block;
  font-weight: 700;
  color: var(--cb-ink);
}
.cb-testimonial__location {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cb-ink-body);
}

/* Related links: pill links in a panel */
ul.cb-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-related__links > li {
  margin: 0;
}
a.cb-related__link {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 9999px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--cb-muted);
  transition:
    color 0.2s var(--cb-ease),
    border-color 0.2s var(--cb-ease);
}
a.cb-related__link:is(:hover, :focus, :active) {
  border-color: var(--cb-orange);
  color: var(--cb-white);
}

/* ---------------------------------------------------------------------------
   Header, mega menu, mobile drawer, footer and back to top (the theme's
   template-parts/header.php and footer.php; layout/Header.tsx, Footer.tsx
   and ui/BackToTop.tsx). Without JavaScript the header is solid, a group's
   panel opens on hover or keyboard focus and the drawer is a native
   <details>, so every link is reachable. site.js adds the rest: html.js,
   is-open on a group, is-scrolled on the header, the scroll lock and the
   back-to-top button.
   --------------------------------------------------------------------------- */

.cb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* In-page links land below the sticky header (and the admin bar) */
html {
  scroll-padding-top: calc(72px + var(--wp-admin--admin-bar--height, 0px));
}

/* The drawer's scroll lock. It goes on body, whose overflow then passes to
   the viewport, so body never becomes a scroll container and the sticky
   header stays put. */
html.cb-scroll-lock body {
  overflow: hidden;
}

/* Header: sticky, h-[72px], solid (bg-bg/90 with a blur) once scrolled or
   while a panel or the drawer is open; transparent at the top with JS. The
   head script in functions.php sets html.cb-header-js before the first
   paint, so the header never paints solid and then fades. */
.cb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--cb-border-dark);
  background-color: color-mix(in srgb, var(--cb-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transition:
    background-color 0.3s var(--cb-ease),
    border-color 0.3s var(--cb-ease);
}
html.cb-header-js
  .cb-header:not(.is-scrolled, :has(.cb-nav__group.is-open, .cb-drawer[open])) {
  border-bottom-color: transparent;
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.admin-bar .cb-header {
  top: var(--wp-admin--admin-bar--height, 0px);
}
/* Up to 600px the admin bar scrolls away with the page */
@media (max-width: 600px) {
  .admin-bar .cb-header {
    top: 0;
  }
}
.cb-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
a.cb-header__home {
  display: block;
  flex-shrink: 0;
  border-radius: 4px;
}
.cb-logo {
  display: block;
  width: auto;
  height: 3rem;
}
.cb-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
/* Start a Project: !px-5 !py-3 text-[0.85rem], from 640px */
.cb-header__cta {
  display: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
}
@media (min-width: 640px) {
  .cb-header__cta {
    display: inline-flex;
  }
}

/* Primary nav, from 1024px. The list, each item and each label fill the
   bar's height, so the pointer never leaves a group on its way down to the
   panel. */
.cb-nav {
  display: none;
  align-self: stretch;
}
@media (min-width: 1024px) {
  .cb-nav {
    display: flex;
  }
}
.cb-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-nav__group,
.cb-nav__item {
  display: flex;
  align-items: center;
  margin: 0;
}
/* A group label (a link, a button once site.js runs) and a flat link:
   px-3 py-2 text-[0.92rem] font-medium, muted until hovered, open or current.
   Hello's reset styles buttons, and brand.css and the Elementor kit
   (.elementor-kit-N a) colour links, so each state is named on the element. */
:is(a, button).cb-nav__trigger,
a.cb-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background-color: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cb-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s var(--cb-ease);
}
:is(a, button).cb-nav__trigger:is(:hover, :focus, :active),
a.cb-nav__link:is(:hover, :focus, :active),
.cb-nav__group:is(.is-open, .is-active) > :is(a, button).cb-nav__trigger,
a.cb-nav__link[aria-current="page"] {
  background-color: transparent;
  color: var(--cb-white);
}
.cb-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.75rem;
  bottom: -2px;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--cb-orange);
}
.cb-nav__caret {
  width: 0.6rem;
  height: auto;
  transition: transform 0.3s var(--cb-ease);
}
.cb-nav__group.is-open .cb-nav__caret {
  transform: rotate(180deg);
}

/* Mega panel: full width under the bar, two columns split by a hairline */
.cb-mega {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  border-bottom: 1px solid var(--cb-border-dark);
  background-color: var(--cb-bg);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--cb-bg) 65%, transparent);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition:
    opacity 0.2s var(--cb-ease),
    transform 0.2s var(--cb-ease),
    visibility 0s linear 0.2s;
}
html:not(.js) .cb-nav__group:is(:hover, :focus-within) > .cb-mega,
.cb-nav__group.is-open > .cb-mega {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}
.cb-mega__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-block: 2.5rem;
}
.cb-mega__column {
  min-width: 0;
  padding-inline: 2.5rem;
}
.cb-mega__column:first-child {
  padding-left: 0;
  border-right: 1px solid var(--cb-border-dark);
}
a.cb-mega__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.cb-mega__heading {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--cb-white);
  transition: color 0.2s var(--cb-ease);
}
.cb-mega__title:is(:hover, :focus) .cb-mega__heading {
  color: var(--cb-orange);
}
.cb-mega__arrow {
  color: var(--cb-orange);
  transition: transform 0.3s var(--cb-ease);
}
.cb-mega__blurb {
  max-width: 24rem;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--cb-muted);
}
ul.cb-mega__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.cb-mega__links > li {
  margin: 0;
}
a.cb-mega__link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s var(--cb-ease);
}
a.cb-mega__link:is(:hover, :focus) {
  background-color: color-mix(in srgb, var(--cb-white) 4%, transparent);
}
.cb-mega__label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--cb-white) 90%, transparent);
}
.cb-mega__meta {
  display: block;
  font-size: 0.78rem;
  color: var(--cb-muted);
}

/* Mobile drawer, below 1024px: a <details> whose panel drops under the bar */
.cb-drawer {
  display: block;
}
@media (min-width: 1024px) {
  .cb-drawer {
    display: none;
  }
}
.cb-drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 0.5rem;
  color: var(--cb-white);
  list-style: none;
  cursor: pointer;
}
.cb-drawer__toggle::-webkit-details-marker {
  display: none;
}
.cb-drawer__toggle::marker {
  content: "";
}
/* Two bars that cross into an X while the drawer is open */
.cb-drawer__icon {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 0.75rem;
}
.cb-drawer__icon::before,
.cb-drawer__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.25rem;
  height: 2px;
  background-color: currentColor;
  transition:
    top 0.3s var(--cb-ease),
    transform 0.3s var(--cb-ease);
}
.cb-drawer__icon::before {
  top: 0;
}
.cb-drawer__icon::after {
  top: 0.75rem;
}
.cb-drawer[open] .cb-drawer__icon::before {
  top: 0.375rem;
  transform: rotate(45deg);
}
.cb-drawer[open] .cb-drawer__icon::after {
  top: 0.375rem;
  transform: rotate(-45deg);
}
.cb-drawer__panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--cb-border-dark);
  background-color: var(--cb-bg);
}
.cb-drawer__nav {
  padding-block: 1.5rem;
}
.cb-drawer__group {
  margin-bottom: 1.75rem;
}
.cb-drawer__eyebrow {
  margin: 0 0 0.75rem;
}
.cb-drawer__column {
  margin-bottom: 1.25rem;
}
a.cb-drawer__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cb-white);
  text-decoration: none;
}
ul.cb-drawer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.cb-drawer__links > li {
  min-width: 0;
  margin: 0;
}
a.cb-drawer__link {
  display: block;
  padding-block: 0.5rem;
  font-size: 0.9rem;
  color: var(--cb-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cb-drawer__flat {
  padding-top: 1.25rem;
  border-top: 1px solid var(--cb-border-dark);
}
a.cb-drawer__flat-link {
  display: block;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--cb-border-dark);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cb-white);
  text-decoration: none;
}
a:is(.cb-drawer__title, .cb-drawer__link, .cb-drawer__flat-link):is(
    :hover,
    :focus,
    :active,
    [aria-current="page"]
  ) {
  color: var(--cb-white);
}
.cb-drawer__cta {
  width: 100%;
  margin-top: 1.25rem;
}

/* Footer: py-16 md:py-20; the brand column and four link columns from 1024px */
.cb-footer {
  border-top: 1px solid var(--cb-border-dark);
  background-color: var(--cb-bg);
}
.cb-footer__inner {
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .cb-footer__inner {
    padding-block: 5rem;
  }
}
.cb-footer__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .cb-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 0.9fr;
  }
}
.cb-footer__blurb {
  max-width: 20rem;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.625;
  color: var(--cb-muted);
}
.cb-footer__contact {
  margin-top: 1.5rem;
  color: var(--cb-muted);
}
.cb-footer__contact p {
  margin: 0;
}
.cb-footer__contact p + p {
  margin-top: 0.5rem;
}
a.cb-footer__email {
  color: var(--cb-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--cb-ease);
}
a.cb-footer__email:is(:hover, :focus, :active) {
  color: var(--cb-orange);
}
.cb-footer__title {
  margin: 0 0 1rem;
}
ul.cb-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-footer__links > li {
  margin: 0;
}
.cb-footer__links > li + li {
  margin-top: 0.625rem;
}
a.cb-footer__link,
a.cb-footer__legal-link {
  color: var(--cb-muted);
  text-decoration: none;
  transition: color 0.2s var(--cb-ease);
}
a.cb-footer__link {
  font-size: 0.92rem;
}
a:is(.cb-footer__link, .cb-footer__legal-link):is(:hover, :focus, :active) {
  color: var(--cb-white);
}
.cb-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cb-border-dark);
  font-size: 0.85rem;
  color: var(--cb-muted);
}
@media (min-width: 768px) {
  .cb-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cb-footer__copyright {
  margin: 0;
}
ul.cb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-footer__legal > li {
  margin: 0;
}

/* Back to top: shown by site.js after 600px of scroll; absent without it */
.cb-to-top {
  display: none;
}
html.js .cb-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--cb-border-dark);
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--cb-card) 90%, transparent);
  color: var(--cb-white);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--cb-bg) 55%, transparent);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition:
    opacity 0.3s var(--cb-ease),
    transform 0.3s var(--cb-ease),
    background-color 0.3s var(--cb-ease),
    border-color 0.3s var(--cb-ease),
    visibility 0s linear 0.3s;
}
html.js .cb-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}
html.js .cb-to-top:is(:hover, :focus, :active) {
  border-color: var(--cb-orange);
  background-color: var(--cb-orange);
  color: var(--cb-white);
}

/* Hover and opening motion, only for visitors who allow it */
@media (prefers-reduced-motion: no-preference) {
  .cb-mega__title:hover .cb-mega__arrow {
    transform: translateX(4px);
  }
  .cb-drawer[open] .cb-drawer__panel {
    animation: cb-fade 0.3s var(--cb-ease) both;
  }
}

/* ---------------------------------------------------------------------------
   Service templates: the theme's single-web_service.php and
   single-seo_page.php, through template-parts/service-sections.php
   (WebServiceTemplate.tsx, the approved mockup). Both pillars share every
   rule here, so their layouts cannot drift. Their main is .cb-service, not
   Hello's .site-main, so Hello's narrow column and brand.css's fallback
   rules never reach these sections.
   --------------------------------------------------------------------------- */

/* Two columns from 1024px, gap-12: equal and top-aligned, wider on the
   right (lg:grid-cols-[1fr_1.1fr]) or a narrow heading beside the FAQ
   (lg:grid-cols-[0.8fr_1.2fr]). The second column fades in 80ms later. */
.cb-service-split {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .cb-service-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .cb-service-split--wide-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
  .cb-service-split--faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
.cb-service-split__col {
  min-width: 0;
}
.cb-service-split__col:nth-child(2) > .cb-reveal {
  --cb-reveal-delay: 80ms;
}

/* Buyer moment: the byline card mt-8 under the header */
.cb-service-context__byline {
  margin-top: 2rem;
}

/* Districts: a card panel of pill chips, mt-14, p-7 md:p-9
   (LocationTemplate.tsx) */
.cb-service-districts {
  margin-top: 3.5rem;
  padding: 1.75rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 16px;
  background-color: var(--cb-card);
}
@media (min-width: 768px) {
  .cb-service-districts {
    padding: 2.25rem;
  }
}
.cb-service-districts__eyebrow {
  margin: 0 0 1.25rem;
}
.cb-service-districts ul.cb-chips {
  gap: 0.625rem;
}
.cb-service-districts .cb-chips__chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: transparent;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--cb-muted);
}

/* Plays and evidence: the cards mt-12 under the section header */
.cb-service-plays__cards,
.cb-service-evidence__cards {
  margin-top: 3rem;
}

/* Deliverables: the aside (stack chips or trust signals) mt-8 under the
   header, its eyebrow mb-4 */
.cb-service-deliverables__aside {
  margin-top: 2rem;
}
.cb-service-deliverables__eyebrow {
  margin: 0 0 1rem;
}

/* Evidence: project cards, gap-6, two columns from 768px */
.cb-service-projects {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .cb-service-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FAQ: the sibling links mt-12 under the questions */
.cb-service-faq__related {
  margin-top: 3rem;
}

/* ---------------------------------------------------------------------------
   Content templates: the theme's single-project.php, single-case_study.php
   and single-profile.php, through template-parts/content-sections.php
   (app/work/[slug]/page.tsx, app/case-study/[slug]/page.tsx and
   ProfileTemplate.tsx). Their main is .cb-entry, not Hello's .site-main, so
   Hello's narrow column and brand.css's fallback rules never reach these
   sections. They share the service templates' two-column split.
   --------------------------------------------------------------------------- */

/* More split shapes: the features beside an image
   (lg:grid-cols-[1fr_1.15fr]) and the problems beside their header
   (lg:grid-cols-[0.85fr_1.15fr]). In a sticky section the header column
   stays in view while the long column scrolls (lg:sticky lg:top-28). */
@media (min-width: 1024px) {
  .cb-service-split--features {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
  .cb-service-split--problems {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .cb-entry-sticky .cb-service-split__col:first-child {
    position: sticky;
    top: 7rem;
  }
}

/* Cards mt-12 under their section header */
.cb-entry-cards {
  margin-top: 3rem;
}

/* Article header: grid lines and a glow behind the shell, border-b.
   Project py-16 md:py-20; case study py-20 md:py-24 in a centred max-w-4xl
   column. */
.cb-entry-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cb-border-dark);
}
.cb-entry-hero__grid {
  position: absolute;
  inset: 0;
}
.cb-entry-hero__glow {
  top: -10rem;
  left: 50%;
  width: 640px;
  height: 380px;
  transform: translateX(-50%);
}
.cb-entry-hero__inner {
  position: relative;
  padding-block: 4rem;
}
.cb-entry-hero--case .cb-entry-hero__inner {
  padding-block: 5rem;
}
@media (min-width: 768px) {
  .cb-entry-hero__inner {
    padding-block: 5rem;
  }
  .cb-entry-hero--case .cb-entry-hero__inner {
    padding-block: 6rem;
  }
}
.cb-entry-hero--case .cb-entry-hero__body {
  max-width: 56rem;
  margin-inline: auto;
}
.cb-entry-hero__crumbs {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--cb-muted);
}
a.cb-entry-hero__crumb,
a.cb-entry-hero__crumb:is(:focus, :active) {
  color: var(--cb-muted);
  text-decoration: none;
  transition: color 0.2s var(--cb-ease);
}
a.cb-entry-hero__crumb:hover {
  color: var(--cb-orange);
}
.cb-entry-hero__sep {
  margin-inline: 0.5rem;
}
.cb-entry-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.cb-entry-hero__status {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--cb-orange);
  border-color: color-mix(in srgb, var(--cb-orange) 30%, transparent);
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--cb-orange) 10%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cb-orange);
}
.cb-entry-hero__year {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cb-muted);
}
.cb-entry-hero__title {
  max-width: 56rem;
  margin: 1.25rem 0 0;
  text-wrap: balance;
}
.cb-entry-hero__crumbs + .cb-entry-hero__title {
  margin-top: 0;
}
.cb-entry-hero--case .cb-entry-hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
}
.cb-entry-hero__tagline {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.625;
  color: var(--cb-white);
  color: color-mix(in srgb, var(--cb-white) 80%, transparent);
}
.cb-entry-hero__summary {
  margin: 1.25rem 0 0;
  line-height: 1.625;
}
.cb-entry-hero__summary + .cb-entry-hero__summary {
  margin-top: 1rem;
}
.cb-entry-hero__stack {
  margin-top: 2rem;
}
.cb-entry-hero__excerpt {
  margin: 1.5rem 0 0;
  font-size: 1.1rem;
  line-height: 1.625;
}
.cb-entry-hero--case .cb-entry-hero__excerpt {
  max-width: 56rem;
}
.cb-entry-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cb-muted);
}
.cb-entry-hero__meta .cb-entry-hero__sep {
  margin-inline: 0;
}

/* Related posts after the article: an h2 at text-[1.6rem] md:text-[1.9rem],
   mb-10 */
.cb-entry-more__title {
  margin: 0 0 2.5rem;
  font-size: 1.6rem;
}
@media (min-width: 768px) {
  .cb-entry-more__title {
    font-size: 1.9rem;
  }
}

/* Project: the first image in a rounded frame, the answer mt-10 max-w-3xl */
.cb-project-gallery,
.cb-project-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--cb-border-dark);
  border-radius: 16px;
}
.cb-project-figure {
  border-color: var(--cb-light-border);
}
.cb-project-gallery img,
.cb-project-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.cb-project-answer {
  --cb-reveal-delay: 60ms;
  max-width: 48rem;
  margin-top: 2.5rem;
}
.cb-project-answer:first-child {
  margin-top: 0;
}

/* Project features: plain tick rows (mt-7 space-y-3), not the bordered
   deliverables rows, in the light band's ink */
.cb-project-features__list {
  margin-top: 1.75rem;
}
.cb-project-features .cb-check-list__row {
  gap: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}
.cb-project-features .cb-check-list__tick {
  font-weight: 700;
}
.cb-project-features .cb-check-list__text {
  font-size: 0.98rem;
  color: inherit;
}

/* Project byline and services: two panels, rounded-2xl p-7 md:p-8 */
.cb-project-panel {
  padding: 1.75rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 16px;
  background-color: var(--cb-card);
}
@media (min-width: 768px) {
  .cb-project-panel {
    padding: 2rem;
  }
}
.cb-project-panel .cb-byline-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}
.cb-project-panel .cb-byline-card__name {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.cb-project-panel .cb-byline-card__bio {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}
.cb-project-panel__eyebrow {
  margin: 0 0 1rem;
}
a.cb-project-panel__link,
a.cb-project-panel__link:is(:hover, :focus, :active) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--cb-orange);
  text-decoration: none;
}
ul.cb-project-services {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-project-services > li {
  margin: 0;
}
a.cb-project-services__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s var(--cb-ease);
}
a.cb-project-services__link:hover {
  border-color: color-mix(in srgb, var(--cb-orange) 40%, transparent);
}
.cb-project-services__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cb-white);
  color: color-mix(in srgb, var(--cb-white) 90%, transparent);
}
.cb-project-panel__arrow,
.cb-project-services__arrow,
.cb-profile-counterpart__arrow {
  display: inline-block;
  color: var(--cb-orange);
  transition: transform 0.3s var(--cb-ease);
}

/* Case study body: the post's rich text at a readable measure
   (mx-auto max-w-[min(68ch,100%)], components/mdx/MdxContent.tsx) */
.cb-case-body .cb-article {
  max-width: min(68ch, 100%);
  margin-inline: auto;
}
.cb-article h2 {
  margin: 3.5rem 0 0;
  font-size: 1.75rem;
  scroll-margin-top: 7rem;
}
.cb-article h3 {
  margin: 2.5rem 0 0;
  font-size: 1.25rem;
  scroll-margin-top: 7rem;
}
@media (min-width: 768px) {
  .cb-article h2 {
    font-size: 2rem;
  }
  .cb-article h3 {
    font-size: 1.4rem;
  }
}
.cb-article p,
.cb-article p + p {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  line-height: 1.625;
}
.cb-article > :first-child {
  margin-top: 0;
}
.cb-article ul,
.cb-article ol {
  display: grid;
  gap: 0.625rem;
  margin: 1.25rem 0 0;
  padding: 0;
}
.cb-article ul {
  list-style: none;
}
.cb-article ol {
  padding-left: 1.25rem;
  list-style: decimal;
}
.cb-article li {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.625;
}
.cb-article ul > li {
  position: relative;
  padding-left: 1.25rem;
}
.cb-article ul > li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background-color: var(--cb-orange);
}
.cb-article strong {
  font-weight: 700;
  color: var(--cb-white);
}
.cb-entry .cb-article a {
  padding-bottom: 2px;
  background-image: linear-gradient(var(--cb-orange), var(--cb-orange));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 3px;
  color: var(--cb-white);
  text-decoration: none;
  transition: color 0.2s var(--cb-ease);
}
.cb-entry .cb-article a:is(:hover, :focus) {
  color: var(--cb-orange);
}
.cb-article blockquote {
  margin: 1.75rem 0 0;
  padding: 0 0 0 1.5rem;
  border: 0;
  border-left: 2px solid var(--cb-orange);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cb-white);
  color: color-mix(in srgb, var(--cb-white) 85%, transparent);
}

/* Profile: value pillars md:grid-cols-2 lg:grid-cols-3 and engagements
   md:grid-cols-3, each card p-7 with a 1.15rem title */
@media (min-width: 768px) {
  .cb-profile-engagements .cb-numbered-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .cb-profile-values .cb-numbered-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cb-profile-values .cb-numbered-cards__card,
.cb-profile-engagements .cb-numbered-cards__card {
  padding: 1.75rem;
}
.cb-profile-values .cb-numbered-cards__title,
.cb-profile-engagements .cb-numbered-cards__title {
  font-size: 1.15rem;
}
.cb-profile-values .cb-numbered-cards__body p,
.cb-profile-engagements .cb-numbered-cards__body p {
  font-size: 0.97rem;
}
.cb-profile-external {
  --cb-reveal-delay: 100ms;
  margin: 2.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cb-muted);
}
.cb-entry .cb-profile-external a {
  color: var(--cb-orange);
  text-decoration: none;
}
.cb-entry .cb-profile-external a:is(:hover, :focus) {
  color: var(--cb-orange);
  text-decoration: underline;
}

/* Profile problems: the button mt-8 under the header, then divided rows
   (divide-y border-y, py-7 first:pt-0) with orange and faded labels */
.cb-profile-problems__button {
  margin-top: 2rem;
}
.cb-profile-problems__list {
  border-block: 1px solid var(--cb-light-border);
}
.cb-profile-problems__item {
  padding-block: 1.75rem;
}
.cb-profile-problems__item:first-child {
  padding-top: 0;
}
.cb-profile-problems__item + .cb-profile-problems__item {
  border-top: 1px solid var(--cb-light-border);
}
.cb-profile-problems__problem {
  margin: 0;
  font-size: 1.15rem;
}
@media (min-width: 768px) {
  .cb-profile-problems__problem {
    font-size: 1.25rem;
  }
}
.cb-profile-problems__detail {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.cb-profile-problems__pair {
  margin: 0;
}
.cb-profile-problems__label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cb-profile-problems__label--cost {
  color: var(--cb-orange);
}
.cb-profile-problems__label--response {
  opacity: 0.7;
}
.cb-profile-problems__text {
  margin: 0.375rem 0 0;
}
.cb-profile-problems__text p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.625;
}
.cb-profile-problems__text p + p {
  margin-top: 0.75rem;
}

/* Profile practices: the toolkit groups (mt-10, three columns from 640px,
   small pill chips) under the header, the practices one card per row
   (gap-3, p-6, 1.05rem titles) */
.cb-profile-toolkit {
  display: grid;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
}
@media (min-width: 640px) {
  .cb-profile-toolkit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cb-profile-toolkit__group {
  min-width: 0;
  margin: 0;
}
.cb-profile-toolkit__label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cb-muted);
}
.cb-profile-toolkit__items {
  margin: 0.625rem 0 0;
}
.cb-profile-toolkit ul.cb-chips {
  gap: 0.375rem;
}
.cb-profile-toolkit .cb-chips__chip {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: transparent;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: inherit;
}
.cb-profile-practices .cb-card-grid {
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}
.cb-profile-practices .cb-card-grid__card {
  padding: 1.5rem;
}
.cb-profile-practices .cb-card-grid__title {
  font-size: 1.05rem;
}
.cb-profile-practices .cb-card-grid__body {
  margin-top: 0.5rem;
  font-size: 0.93rem;
}

/* Profile counterpart: one card link, stacked, then name and link side by
   side from 768px (p-7 md:p-9) */
a.cb-profile-counterpart__card,
a.cb-profile-counterpart__card:is(:hover, :focus, :active) {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem;
  color: var(--cb-body);
  text-decoration: none;
}
@media (min-width: 768px) {
  a.cb-profile-counterpart__card,
  a.cb-profile-counterpart__card:is(:hover, :focus, :active) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.25rem;
  }
}
.cb-profile-counterpart__card:focus-visible {
  border-radius: 14px;
}
.cb-profile-counterpart__eyebrow {
  margin: 0 0 0.75rem;
}
.cb-profile-counterpart__name {
  margin: 0;
  font-size: 1.5rem;
  transition: color 0.2s var(--cb-ease);
}
@media (min-width: 768px) {
  .cb-profile-counterpart__name {
    font-size: 1.9rem;
  }
}
a.cb-profile-counterpart__card:hover .cb-profile-counterpart__name {
  color: var(--cb-orange);
}
.cb-profile-counterpart__role {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cb-orange);
}
.cb-profile-counterpart__intro {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: 0.97rem;
  line-height: 1.625;
}
.cb-profile-counterpart__intro + .cb-profile-counterpart__intro {
  margin-top: 0.75rem;
}
.cb-profile-counterpart__link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--cb-orange);
}

/* Arrow nudges on hover, only for visitors who allow motion */
@media (prefers-reduced-motion: no-preference) {
  a.cb-project-services__link:hover .cb-project-services__arrow,
  a.cb-project-panel__link:hover .cb-project-panel__arrow,
  a.cb-profile-counterpart__card:hover .cb-profile-counterpart__arrow {
    transform: translateX(4px);
  }
}

/* ---------------------------------------------------------------------------
   Core page layouts: the patterns of the code renderer (wp/plugins/cubas-ui,
   patterns.php), placed as the approved home mockup (app/page.tsx) and the
   hubs of the live site place them. Their main is .cb-layout, not Hello's
   .site-main, so Hello's narrow column and brand.css's fallback rules never
   reach these sections.
   --------------------------------------------------------------------------- */

/* The cards mt-12 under their section header */
.cb-pattern__body {
  margin-top: 3rem;
}

/* A button under the copy (mt-8), or centred under the cards (mt-10) */
.cb-pattern__button {
  margin-top: 2rem;
}
.cb-pattern__more {
  margin-top: 2.5rem;
  text-align: center;
}

/* Proof: a tight band. The eyebrow and a smaller heading beside the intro
   from 768px (md:flex-row md:items-end md:justify-between, mb-8), then text
   cells, left aligned: a font-black title over a muted line (p-6). */
.cb-pattern-proof__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .cb-pattern-proof__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.cb-pattern-proof__eyebrow {
  margin: 0 0 0.75rem;
}
.cb-pattern-proof__title {
  margin: 0;
  font-size: 1.6rem;
}
@media (min-width: 768px) {
  .cb-pattern-proof__title {
    font-size: 1.9rem;
  }
}
.cb-pattern-proof__intro {
  max-width: 28rem;
}
.cb-pattern-proof__intro p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.625;
  color: var(--cb-muted);
}
.cb-pattern-proof__intro p + p {
  margin-top: 0.5rem;
}
.cb-pattern--proof-grid .cb-proof-grid__cell {
  text-align: left;
}
.cb-pattern--proof-grid .cb-proof-grid__title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-wrap: wrap;
}
.cb-pattern--proof-grid .cb-proof-grid__body {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.625;
  text-transform: none;
  letter-spacing: normal;
}

/* Pillars: two equal cards from 1024px, gap-5, mt-12 */
.cb-pattern-pillars__cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 3rem;
}
@media (min-width: 1024px) {
  .cb-pattern-pillars__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Numbered cards: three columns from 1024px when the layout asks */
@media (min-width: 1024px) {
  .cb-pattern-numbered--3 .cb-numbered-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Two-up: the columns top aligned (lg:items-start) */
.cb-pattern--two-up .cb-two-up {
  align-items: start;
}

/* Two columns from 1024px, gap-12: the copy beside stacked cards
   (lg:grid-cols-[1.1fr_1fr] lg:items-center), or a narrow header beside the
   questions (lg:grid-cols-[0.8fr_1.2fr]). The second column fades in 80ms
   later. */
.cb-pattern-split {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .cb-pattern-split--list {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }
  .cb-pattern-split--faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}
.cb-pattern-split__col {
  min-width: 0;
}
.cb-pattern-split__col:nth-child(2) > .cb-reveal {
  --cb-reveal-delay: 80ms;
}

/* Split list: the cards stacked (gap-4), p-6 at every width, a 1.1rem
   title over the body (mt-2.5) */
.cb-pattern-split .cb-card-grid {
  grid-template-columns: minmax(0, 1fr);
}
.cb-pattern-split .cb-card-grid__card {
  padding: 1.5rem;
}
.cb-pattern-split .cb-card-grid__title {
  font-size: 1.1rem;
}
.cb-pattern-split .cb-card-grid__body {
  margin-top: 0.625rem;
  line-height: 1.6;
}

/* Projects: gap-6, two columns from 768px, three from 1024px */
.cb-pattern-projects__cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .cb-pattern-projects__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .cb-pattern-projects__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Prose: running text under a smaller heading, as the legal pages
   (text-[1.5rem] md:text-[1.75rem]) and the contact and audit request panels
   (text-[1.6rem] md:text-[1.9rem]) of the reference set theirs, with the
   body mt-5 under it. The items are a list at the same measure, each title
   over its paragraphs; the email line is mt-6. */
.cb-pattern--prose .cb-section-header__title {
  font-size: 1.6rem;
}
@media (min-width: 768px) {
  .cb-pattern--prose .cb-section-header__title {
    font-size: 1.9rem;
  }
}
.cb-pattern-prose__body {
  margin-top: 1.25rem;
}
.cb-pattern-prose__list {
  max-width: var(--cb-prose);
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
}
.cb-pattern-prose__item + .cb-pattern-prose__item {
  margin-top: 1rem;
}
.cb-pattern-prose__item::marker {
  color: var(--cb-orange);
}
.cb-pattern-prose__term {
  display: block;
  font-weight: 700;
  color: var(--cb-white);
}
.band-light .cb-pattern-prose__term {
  color: var(--cb-ink);
}
.cb-pattern-prose__item p {
  margin: 0.35rem 0 0;
}
.cb-pattern-prose__email {
  margin: 1.5rem 0 0;
  font-weight: 600;
  color: var(--cb-white);
}
.cb-pattern-prose__email a {
  color: var(--cb-orange);
}
.cb-pattern-prose__email a:hover {
  text-decoration: underline;
}

/* A prose band straight after another, with no border of its own, carries
   on its column: the sections 3rem apart (space-y-12), as the reference's
   legal pages print them in one band. The code renderer prints the bands as
   siblings; Elementor (wp cubas layouts) puts each in its own container
   (.e-con), so the second selector of each rule reads the containers. */
.cb-pattern--prose:has(
  + .cb-pattern--prose:not(.cb-section--border-top, .cb-section--border-y)
),
.e-con:has(
    + .e-con
      .cb-pattern--prose:not(.cb-section--border-top, .cb-section--border-y)
  )
  .cb-pattern--prose {
  padding-bottom: 1.5rem;
}
.cb-pattern--prose
  + .cb-pattern--prose:not(.cb-section--border-top, .cb-section--border-y),
.e-con:has(.cb-pattern--prose)
  + .e-con
  .cb-pattern--prose:not(.cb-section--border-top, .cb-section--border-y) {
  padding-top: 1.5rem;
}

/* ---------------------------------------------------------------------------
   Lead form pattern (L7-03): the contact page of the live site,
   app/contact-us/page.tsx, with the fields of components/forms/LeadForm.tsx.
   --------------------------------------------------------------------------- */

/* The band: the form card beside the side cards from 1024px
   (lg:grid-cols-[1.3fr_0.85fr], gap-10 and lg:gap-14); a band with only one
   column (no side cards, or no form card) is that column alone. */
.cb-lead-split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .cb-lead-split:not(.cb-lead-split--single) {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    align-items: start;
  }
}

/* The form card: rounded-2xl, border, bg-card/50, p-6 (md:p-9); the heading
   1.6rem (md 1.9rem) and the form mt-8 under the intro. */
.cb-lead {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 16px;
  background-color: var(--cb-card);
  background-color: color-mix(in srgb, var(--cb-card) 50%, transparent);
}
@media (min-width: 768px) {
  .cb-lead {
    padding: 2.25rem;
  }
}
.cb-lead .cb-section-header__title {
  font-size: 1.6rem;
}
@media (min-width: 768px) {
  .cb-lead .cb-section-header__title {
    font-size: 1.9rem;
  }
}
.cb-lead .cb-section-header__intro {
  margin-top: 0.75rem;
  font-size: 0.98rem;
}
.cb-lead__form {
  margin-top: 2rem;
}
.cb-lead__form:first-child {
  margin-top: 0;
}

/* The side cards: space-y-6, rounded-2xl, border, bg-card, p-7 */
.cb-lead-side {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}
.cb-lead-side__card {
  padding: 1.75rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 16px;
  background-color: var(--cb-card);
}
.cb-lead-side__card .cb-section-header__eyebrow {
  margin-bottom: 1rem;
}
.cb-lead-side__card .cb-section-header__title {
  font-size: 1.25rem;
}
.cb-lead-side__card .cb-section-header__intro {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.625;
}
.cb-lead-side__card .cb-pattern-prose__email {
  margin: 0;
}

/* The form: space-y-5, pairs side by side from 640px (sm:grid-cols-2) */
.cb-lead-form {
  position: relative;
  display: grid;
  gap: 1.25rem;
}
.cb-lead-form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .cb-lead-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cb-lead-form__field {
  min-width: 0;
}

/* The honeypot sits off screen, out of the tab order and of assistive tech */
.cb-lead-form__trap {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Label: mb-2, text-sm, semibold, white at 85% */
.cb-lead-form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--cb-white);
  color: color-mix(in srgb, var(--cb-white) 85%, transparent);
}
.cb-lead-form__star {
  margin-left: 0.25rem;
  color: var(--cb-orange);
}
.cb-lead-form .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Controls: rounded-lg, dark border, on the card colour, px-4 py-3.5, 0.98rem;
   the border goes orange on focus and on an error. Written under .cb-lead-form
   so they outrank the parent theme's own input rules. */
.cb-lead-form .cb-lead-form__control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
  border: 1px solid var(--cb-border-dark);
  border-radius: 8px;
  background-color: var(--cb-card);
  color: var(--cb-white);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: border-color 0.15s var(--cb-ease);
}
.cb-lead-form .cb-lead-form__control::placeholder {
  color: var(--cb-muted);
  color: color-mix(in srgb, var(--cb-muted) 70%, transparent);
}
.cb-lead-form .cb-lead-form__control:focus,
.cb-lead-form .cb-lead-form__control[aria-invalid="true"] {
  border-color: var(--cb-orange);
}
.cb-lead-form textarea.cb-lead-form__control {
  resize: vertical;
  min-height: 7rem;
}

/* The select arrow: two token-coloured strokes, no image */
.cb-lead-form select.cb-lead-form__control {
  appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cb-muted) 50%),
    linear-gradient(135deg, var(--cb-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.4rem) 50%,
    calc(100% - 1.05rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

/* Errors: mt-2, text-sm, orange; the summary a rounded-lg box with an orange
   border and wash */
.cb-lead-form__error {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cb-orange);
}
.cb-lead-form__alert {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cb-orange);
  border: 1px solid color-mix(in srgb, var(--cb-orange) 40%, transparent);
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--cb-orange) 5%, transparent);
  font-size: 0.95rem;
  color: var(--cb-orange);
}
.cb-lead-form__submit {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}
.cb-lead-form__submit:disabled {
  opacity: 0.7;
  cursor: default;
}
.cb-lead-form__note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cb-muted);
}

/* The success panel: rounded-2xl, orange border at 30%, p-8 (md:p-12), centred */
.cb-lead-success {
  padding: 2rem;
  border: 1px solid var(--cb-orange);
  border: 1px solid color-mix(in srgb, var(--cb-orange) 30%, transparent);
  border-radius: 16px;
  background-color: var(--cb-card);
  text-align: center;
  outline: none;
}
@media (min-width: 768px) {
  .cb-lead-success {
    padding: 3rem;
  }
}
.cb-lead-success__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: 9999px;
  background-color: var(--cb-orange);
  color: var(--cb-white);
  font-size: 1.25rem;
  font-weight: 900;
}
.cb-lead-success__title {
  margin: 0;
  font-size: 1.4rem;
}
.cb-lead-success__text {
  max-width: 28rem;
  margin: 0.75rem auto 0;
  font-size: 1rem;
}

/* ---------------------------------------------------------------------------
   Cookie banner (L7-05): printed hidden in the footer; consent.js shows it.
   Fixed, so it moves no content and adds no layout shift.
   --------------------------------------------------------------------------- */
.cb-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--cb-border-dark);
  background-color: var(--cb-card);
  color: var(--cb-body);
}
.cb-consent[hidden] {
  display: none;
}
@media (min-width: 768px) {
  .cb-consent {
    right: auto;
    bottom: 1.5rem;
    left: 1.5rem;
    width: calc(100% - 3rem);
    max-width: 26rem;
    padding: 1.25rem;
    border: 1px solid var(--cb-border-dark);
    border-radius: 14px;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--cb-bg) 55%, transparent);
  }
}
.cb-consent__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
a.cb-consent__link {
  color: var(--cb-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.cb-consent__link:is(:hover, :focus, :active) {
  color: var(--cb-orange);
}
.cb-consent__actions {
  display: flex;
  gap: 0.75rem;
}
/* Equal weight: the same style and the same share of the row. */
.cb-consent__button {
  flex: 1 1 0;
  padding: 0.75rem 1rem;
  cursor: pointer;
}
.cb-consent__button:is(:hover, :focus, :active) {
  color: var(--cb-white);
}
.cb-consent :is(a, button):focus-visible,
button.cb-footer__legal-link:focus-visible {
  outline: 2px solid var(--cb-orange);
  outline-offset: 2px;
}

/* The footer's "Cookie settings" button reads as its legal links */
button.cb-footer__legal-link {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--cb-muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s var(--cb-ease);
}
button.cb-footer__legal-link:is(:hover, :focus, :active) {
  background: none;
  color: var(--cb-white);
}
