/* ==========================================================================
   CB NOVA TECH — COMPONENT LIBRARY
   Every reusable object on the site. These class names are also the contract
   for Elementor: an editor can apply .cb-btn / .cb-card to any Elementor
   widget and inherit the full design system.
   ========================================================================== */

/* ==========================================================================
   1. EYEBROW / KICKER
   ========================================================================== */

.cb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--cb-sp-2);
  font-family: var(--cb-font-body);
  font-size: var(--cb-fs-xs);
  font-weight: var(--cb-fw-bold);
  letter-spacing: var(--cb-ls-label);
  text-transform: uppercase;
  color: var(--cb-blue-600);
  margin-bottom: var(--cb-sp-4);
}
.cb-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cb-grad-brand);
  border-radius: 2px;
  flex: none;
}
.cb-text-center .cb-eyebrow { justify-content: center; }

/* On every dark surface — not just .cb-section--dark. The hero and the CTA
   band are dark too, and brand blue on navy measures ~1.7:1. */
.cb-section--dark .cb-eyebrow,
.cb-hero .cb-eyebrow,
.cb-pagehero .cb-eyebrow,
.cb-cta .cb-eyebrow { color: var(--cb-cyan-300); }

/* ==========================================================================
   2. SECTION HEAD
   ========================================================================== */

.cb-section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); }
.cb-section-head--wide { max-width: 860px; }
.cb-section-head__title { margin-bottom: var(--cb-sp-4); }
.cb-section-head__lead {
  font-size: var(--cb-fs-lg);
  line-height: var(--cb-lh-snug);
  color: var(--cb-ink-muted);
}
.cb-section--dark .cb-section-head__lead { color: var(--cb-on-dark-muted); }

/* Gradient emphasis on a single phrase. Never on a whole heading.
   Fallback-first: solid brand blue is applied unconditionally, and the
   gradient only replaces it where background-clip:text is supported. */
.cb-hl { color: var(--cb-blue-600); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cb-hl {
    background: var(--cb-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.cb-section--dark .cb-hl { color: var(--cb-cyan-300); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cb-section--dark .cb-hl {
    background: linear-gradient(135deg, var(--cb-blue-400) 0%, var(--cb-cyan-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
/* Underline accent — lower-risk alternative to gradient text. */
.cb-underline {
  position: relative;
  display: inline-block;
}
.cb-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.28em;
  background: linear-gradient(90deg, rgba(23,184,224,0.32), rgba(11,95,208,0.14));
  border-radius: 2px;
  z-index: -1;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */

.cb-btn {
  --btn-bg: var(--cb-blue-600);
  --btn-fg: #ffffff;
  --btn-bd: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--cb-sp-3);
  min-height: var(--cb-tap);
  padding: 0.9rem 1.6rem;
  font-family: var(--cb-font-body);
  font-size: var(--cb-fs-sm);
  font-weight: var(--cb-fw-semibold);
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--cb-r-md);
  cursor: pointer;
  transition:
    transform var(--cb-dur-fast) var(--cb-ease-out),
    box-shadow var(--cb-dur-base) var(--cb-ease),
    background-color var(--cb-dur-base) var(--cb-ease),
    color var(--cb-dur-base) var(--cb-ease),
    border-color var(--cb-dur-base) var(--cb-ease);
}
.cb-btn:hover  { color: var(--btn-fg); transform: translateY(-2px); }
.cb-btn:active { transform: translateY(0); transition-duration: 60ms; }
.cb-btn[aria-disabled="true"], .cb-btn:disabled {
  opacity: 0.5; pointer-events: none;
}

/* Arrow micro-interaction. Purely decorative, hidden from AT. */
.cb-btn__arrow {
  width: 16px; height: 16px; flex: none;
  transition: transform var(--cb-dur-base) var(--cb-ease-out);
}
.cb-btn:hover .cb-btn__arrow { transform: translateX(4px); }

/* -- Primary -- */
.cb-btn--primary { box-shadow: var(--cb-shadow-blue); }
.cb-btn--primary:hover {
  --btn-bg: var(--cb-blue-500);
  box-shadow: 0 6px 18px rgba(11,95,208,0.32), 0 14px 40px rgba(11,95,208,0.20);
}
.cb-btn--primary:active { --btn-bg: var(--cb-blue-700); }

/* -- Secondary (outline) -- */
.cb-btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--cb-navy-800);
  --btn-bd: var(--cb-border);
}
.cb-btn--secondary:hover {
  --btn-bd: var(--cb-blue-600);
  --btn-fg: var(--cb-blue-600);
  background: rgba(11, 95, 208, 0.04);
  box-shadow: var(--cb-shadow-sm);
}

/* -- Ghost -- */
.cb-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cb-blue-600);
  --btn-bd: transparent;
  padding-inline: var(--cb-sp-3);
}
.cb-btn--ghost:hover { background: rgba(11, 95, 208, 0.07); }

/* -- On dark surfaces -- */
.cb-btn--light {
  --btn-bg: #ffffff;
  --btn-fg: var(--cb-navy-800);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.cb-btn--light:hover { --btn-bg: #ffffff; --btn-fg: var(--cb-blue-700); }

.cb-btn--outline-light {
  --btn-bg: rgba(255,255,255,0.04);
  --btn-fg: #ffffff;
  --btn-bd: rgba(255,255,255,0.30);
  backdrop-filter: blur(6px);
}
.cb-btn--outline-light:hover {
  --btn-bg: rgba(255,255,255,0.12);
  --btn-bd: rgba(255,255,255,0.60);
}

/* -- Sizes -- */
.cb-btn--lg { padding: 1.1rem 2rem; font-size: var(--cb-fs-base); border-radius: var(--cb-r-lg); }
.cb-btn--sm { padding: 0.6rem 1.1rem; font-size: var(--cb-fs-xs); min-height: 38px; }
.cb-btn--block { display: flex; width: 100%; }

/* -- Button group -- */
.cb-btn-group { display: flex; flex-wrap: wrap; gap: var(--cb-sp-4); align-items: center; }
.cb-text-center .cb-btn-group { justify-content: center; }

/* Below 480px, stacked full-width buttons are far easier to tap than
   two cramped side-by-side ones. */
@media (max-width: 479px) {
  .cb-btn-group { flex-direction: column; align-items: stretch; gap: var(--cb-sp-3); }
  .cb-btn-group .cb-btn { width: 100%; }
}

/* ==========================================================================
   4. CARDS
   ========================================================================== */

.cb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  background: var(--cb-white);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-r-lg);
  box-shadow: var(--cb-shadow-sm);
  transition:
    transform var(--cb-dur-base) var(--cb-ease-out),
    box-shadow var(--cb-dur-base) var(--cb-ease),
    border-color var(--cb-dur-base) var(--cb-ease);
  /* Contain layout so a long unbroken string can never widen the grid. */
  min-width: 0;
}
.cb-card__title { margin-bottom: var(--cb-sp-3); }
.cb-card__text { color: var(--cb-ink-muted); font-size: var(--cb-fs-sm); }
.cb-card__foot { margin-top: auto; padding-top: var(--cb-sp-5); }

/* Interactive card — lifts and reveals a brand hairline along the top edge. */
.cb-card--link { cursor: pointer; }
.cb-card--link::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: var(--cb-grad-brand);
  border-radius: var(--cb-r-lg) var(--cb-r-lg) 0 0;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity var(--cb-dur-base) var(--cb-ease),
              transform var(--cb-dur-slow) var(--cb-ease-out);
}
.cb-card--link:hover, .cb-card--link:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--cb-shadow-lg);
  border-color: rgba(11, 95, 208, 0.22);
}
.cb-card--link:hover::before, .cb-card--link:focus-within::before {
  opacity: 1; transform: scaleX(1);
}

/* Stretched link: makes the whole card clickable while keeping a single,
   properly-labelled <a> in the accessibility tree. */
.cb-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.cb-card__link { text-decoration: none; }

/* Card on dark */
.cb-section--dark .cb-card {
  background: rgba(255,255,255,0.035);
  border-color: var(--cb-border-dark);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.cb-section--dark .cb-card--link:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(111,220,255,0.34);
  box-shadow: 0 18px 44px rgba(0,0,0,0.34);
}
.cb-section--dark .cb-card__text { color: var(--cb-on-dark-muted); }

/* Card on mist background needs a whiter fill to separate. */
.cb-section--mist .cb-card { background: var(--cb-white); }

/* Flat card — no shadow, for dense informational grids. */
.cb-card--flat { box-shadow: none; background: var(--cb-mist); border-color: transparent; }
.cb-card--flat:hover { background: var(--cb-mist-deep); }

/* ==========================================================================
   5. ICON TILE
   ========================================================================== */

.cb-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  flex: none;
  margin-bottom: var(--cb-sp-5);
  color: var(--cb-blue-600);
  background: linear-gradient(140deg, rgba(11,95,208,0.10), rgba(23,184,224,0.10));
  border: 1px solid rgba(11,95,208,0.14);
  border-radius: var(--cb-r-md);
  transition: transform var(--cb-dur-base) var(--cb-ease-spring),
              background var(--cb-dur-base) var(--cb-ease);
}
.cb-icon-tile svg { width: 24px; height: 24px; }
.cb-card--link:hover .cb-icon-tile {
  transform: scale(1.06) rotate(-3deg);
  background: linear-gradient(140deg, rgba(11,95,208,0.18), rgba(23,184,224,0.18));
}
.cb-icon-tile--lg { width: 64px; height: 64px; }
.cb-icon-tile--lg svg { width: 30px; height: 30px; }
.cb-icon-tile--solid { background: var(--cb-grad-brand); color: #fff; border-color: transparent; }

.cb-section--dark .cb-icon-tile {
  color: var(--cb-cyan-300);
  background: rgba(111,220,255,0.10);
  border-color: rgba(111,220,255,0.20);
}

/* ==========================================================================
   6. FEATURE / CHECK LISTS
   ========================================================================== */

.cb-list { display: grid; gap: var(--cb-sp-3); }
.cb-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--cb-sp-3);
  font-size: var(--cb-fs-sm);
  color: var(--cb-ink-muted);
  line-height: 1.55;
}
.cb-list__icon {
  width: 20px; height: 20px; flex: none;
  margin-top: 0.15em;
  color: var(--cb-blue-600);
}

/* .cb-list__item sets its own colour, so the low-specificity `:where(p, li)`
   dark rule in 02-base.css cannot reach it. Without this explicit override the
   list text stays --cb-ink-muted on navy, which measures 2.5:1. */
.cb-section--dark .cb-list__item,
.cb-hero .cb-list__item,
.cb-cta .cb-list__item { color: var(--cb-on-dark-muted); }

.cb-section--dark .cb-list__icon,
.cb-hero .cb-list__icon,
.cb-cta .cb-list__icon { color: var(--cb-cyan-400); }
.cb-list--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Compact tag list */
.cb-tags { display: flex; flex-wrap: wrap; gap: var(--cb-sp-2); }
.cb-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  font-size: var(--cb-fs-xs);
  font-weight: var(--cb-fw-medium);
  color: var(--cb-navy-700);
  background: var(--cb-mist-deep);
  border: 1px solid var(--cb-line-soft);
  border-radius: var(--cb-r-pill);
  text-decoration: none;
}
a.cb-tag:hover { background: var(--cb-blue-600); color: #fff; border-color: transparent; }
.cb-section--dark .cb-tag {
  color: var(--cb-cyan-300);
  background: rgba(111,220,255,0.08);
  border-color: rgba(111,220,255,0.18);
}

/* ==========================================================================
   7. BADGES / PILLS
   ========================================================================== */

.cb-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--cb-sp-2);
  padding: 0.34rem 0.85rem;
  font-size: var(--cb-fs-xs);
  font-weight: var(--cb-fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--cb-r-pill);
  color: var(--cb-blue-700);
  background: rgba(11,95,208,0.08);
  border: 1px solid rgba(11,95,208,0.16);
}
.cb-badge--dark {
  color: var(--cb-cyan-300);
  background: rgba(111,220,255,0.10);
  border-color: rgba(111,220,255,0.22);
}
.cb-badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}
/* Clearly-marked placeholder badge for unverified content. */
.cb-badge--placeholder {
  color: var(--cb-warning);
  background: rgba(178,106,0,0.09);
  border-color: rgba(178,106,0,0.22);
}

/* ==========================================================================
   8. NUMBERED STEP / PROCESS
   ========================================================================== */

.cb-step { position: relative; }
.cb-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--cb-sp-5);
  font-family: var(--cb-font-display);
  font-size: var(--cb-fs-base);
  font-weight: var(--cb-fw-extra);
  font-variant-numeric: tabular-nums;
  color: var(--cb-blue-600);
  background: var(--cb-white);
  border: 1.5px solid rgba(11,95,208,0.22);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}
.cb-section--dark .cb-step__num {
  color: var(--cb-cyan-300);
  background: var(--cb-navy-800);
  border-color: rgba(111,220,255,0.30);
}
.cb-step__title { margin-bottom: var(--cb-sp-2); }
.cb-step__text { font-size: var(--cb-fs-sm); color: var(--cb-ink-muted); }
.cb-section--dark .cb-step__text { color: var(--cb-on-dark-muted); }

/* Big display numeral for service cards (01 — Website Development) */
.cb-numeral {
  font-family: var(--cb-font-display);
  font-size: var(--cb-fs-sm);
  font-weight: var(--cb-fw-extra);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--cb-cyan-500);
  margin-bottom: var(--cb-sp-3);
  display: block;
}

/* ==========================================================================
   9. FORMS
   ========================================================================== */

.cb-form { display: grid; gap: var(--cb-sp-5); }
.cb-field { display: grid; gap: var(--cb-sp-2); min-width: 0; }
.cb-field--half { grid-column: span 1; }

@media (min-width: 640px) {
  .cb-form--2col { grid-template-columns: repeat(2, 1fr); }
  .cb-form--2col .cb-field--full { grid-column: 1 / -1; }
}

.cb-label {
  font-size: var(--cb-fs-sm);
  font-weight: var(--cb-fw-semibold);
  color: var(--cb-ink);
}
.cb-label__req { color: var(--cb-danger); margin-left: 2px; }
.cb-label__hint {
  display: block;
  font-weight: var(--cb-fw-regular);
  font-size: var(--cb-fs-xs);
  color: var(--cb-ink-faint);
  margin-top: 2px;
}

.cb-input, .cb-select, .cb-textarea {
  width: 100%;
  min-height: var(--cb-tap);
  padding: 0.8rem 1rem;
  /* 16px minimum prevents iOS Safari from zooming the viewport on focus. */
  font-size: max(16px, var(--cb-fs-sm));
  font-family: var(--cb-font-body);
  color: var(--cb-ink);
  background: var(--cb-white);
  border: 1.5px solid var(--cb-border);
  border-radius: var(--cb-r-md);
  transition: border-color var(--cb-dur-fast) var(--cb-ease),
              box-shadow var(--cb-dur-fast) var(--cb-ease);
  appearance: none;
}
.cb-textarea { min-height: 140px; line-height: 1.6; padding-top: 0.9rem; }

.cb-input::placeholder, .cb-textarea::placeholder { color: var(--cb-ink-faint); opacity: 1; }

.cb-input:hover, .cb-select:hover, .cb-textarea:hover { border-color: #c3d4e8; }
.cb-input:focus, .cb-select:focus, .cb-textarea:focus {
  outline: none;
  border-color: var(--cb-blue-600);
  box-shadow: 0 0 0 4px rgba(11,95,208,0.13);
}
/* Error state uses icon + text + colour — never colour alone (WCAG 1.4.1). */
.cb-input[aria-invalid="true"], .cb-select[aria-invalid="true"], .cb-textarea[aria-invalid="true"] {
  border-color: var(--cb-danger);
  box-shadow: 0 0 0 4px rgba(192,37,37,0.10);
}
.cb-field__error {
  display: none;
  align-items: center;
  gap: var(--cb-sp-2);
  font-size: var(--cb-fs-xs);
  font-weight: var(--cb-fw-medium);
  color: var(--cb-danger);
}
.cb-field__error::before { content: "\26A0"; font-size: 1em; }
.cb-field__error.is-visible { display: flex; }

/* Custom select caret (appearance:none removed the native one). */
.cb-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234a5b75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
  cursor: pointer;
}

/* Checkbox / radio */
.cb-check {
  display: flex;
  align-items: flex-start;
  gap: var(--cb-sp-3);
  font-size: var(--cb-fs-sm);
  color: var(--cb-ink-muted);
  cursor: pointer;
  /* Keep the whole row a comfortable tap target. */
  min-height: var(--cb-tap);
  padding-block: 0.4rem;
}
.cb-check input[type="checkbox"], .cb-check input[type="radio"] {
  width: 20px; height: 20px; flex: none; margin-top: 0.12em;
  accent-color: var(--cb-blue-600);
  cursor: pointer;
}

/* Form feedback */
.cb-form-note {
  display: flex; align-items: flex-start; gap: var(--cb-sp-3);
  padding: var(--cb-sp-4);
  font-size: var(--cb-fs-sm);
  border-radius: var(--cb-r-md);
  border: 1px solid;
}
.cb-form-note--ok {
  color: #0b5c41; background: rgba(15,138,95,0.08); border-color: rgba(15,138,95,0.24);
}
.cb-form-note--err {
  color: #8f1c1c; background: rgba(192,37,37,0.07); border-color: rgba(192,37,37,0.24);
}

/* Honeypot — visually and programmatically hidden from real users, but
   still submitted by naive bots. Not display:none (some bots skip those). */
.cb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   10. ACCORDION (FAQ)
   ========================================================================== */

.cb-accordion { display: grid; gap: var(--cb-sp-3); }
.cb-accordion__item {
  background: var(--cb-white);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-r-lg);
  overflow: hidden;
  transition: border-color var(--cb-dur-base) var(--cb-ease),
              box-shadow var(--cb-dur-base) var(--cb-ease);
}
.cb-accordion__item[open] {
  border-color: rgba(11,95,208,0.24);
  box-shadow: var(--cb-shadow-md);
}
.cb-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cb-sp-4);
  width: 100%;
  padding: var(--cb-sp-5);
  font-family: var(--cb-font-display);
  font-size: var(--cb-fs-base);
  font-weight: var(--cb-fw-semibold);
  color: var(--cb-ink);
  text-align: left;
  cursor: pointer;
  list-style: none;
  min-height: var(--cb-tap);
}
.cb-accordion__trigger::-webkit-details-marker { display: none; }
.cb-accordion__trigger:hover { color: var(--cb-blue-600); }
.cb-accordion__icon {
  width: 22px; height: 22px; flex: none;
  color: var(--cb-blue-600);
  transition: transform var(--cb-dur-base) var(--cb-ease-out);
}
.cb-accordion__item[open] .cb-accordion__icon { transform: rotate(45deg); }
.cb-accordion__panel {
  padding: 0 var(--cb-sp-5) var(--cb-sp-5);
  font-size: var(--cb-fs-sm);
  color: var(--cb-ink-muted);
  line-height: var(--cb-lh-body);
}

/* ==========================================================================
   11. TESTIMONIAL
   ========================================================================== */

.cb-quote { display: flex; flex-direction: column; height: 100%; }
.cb-quote__mark {
  width: 34px; height: 26px;
  color: var(--cb-cyan-500);
  opacity: 0.55;
  margin-bottom: var(--cb-sp-4);
}
.cb-quote__text {
  font-size: var(--cb-fs-lg);
  line-height: var(--cb-lh-snug);
  color: var(--cb-ink);
  margin-bottom: var(--cb-sp-6);
}
.cb-section--dark .cb-quote__text { color: #fff; }
.cb-quote__attr { display: flex; align-items: center; gap: var(--cb-sp-4); margin-top: auto; }
.cb-quote__avatar {
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cb-mist-deep);
}
.cb-quote__name { font-weight: var(--cb-fw-semibold); font-size: var(--cb-fs-sm); color: var(--cb-ink); }
.cb-quote__role { font-size: var(--cb-fs-xs); color: var(--cb-ink-faint); }
.cb-section--dark .cb-quote__name { color: #fff; }
.cb-section--dark .cb-quote__role { color: var(--cb-on-dark-muted); }

/* ==========================================================================
   12. POST / CASE STUDY CARD
   ========================================================================== */

.cb-post-card { padding: 0; overflow: hidden; }
.cb-post-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cb-mist-deep);
}
.cb-post-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--cb-dur-slow) var(--cb-ease-out);
}
.cb-post-card:hover .cb-post-card__img { transform: scale(1.045); }
.cb-post-card__body {
  display: flex; flex-direction: column; flex: 1;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.cb-post-card__cat {
  position: absolute; top: var(--cb-sp-4); left: var(--cb-sp-4);
  z-index: 2;
  background: rgba(4,18,43,0.82);
  color: #fff;
  border-color: transparent;
  backdrop-filter: blur(6px);
}
.cb-post-card__title {
  font-size: var(--cb-fs-h4);
  margin-bottom: var(--cb-sp-3);
}
.cb-post-card__title a { color: inherit; text-decoration: none; }
.cb-post-card__title a:hover { color: var(--cb-blue-600); }
.cb-post-card__excerpt { font-size: var(--cb-fs-sm); color: var(--cb-ink-muted); }
.cb-post-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--cb-sp-2);
  margin-top: auto; padding-top: var(--cb-sp-5);
  font-size: var(--cb-fs-xs); color: var(--cb-ink-faint);
}
.cb-post-card__meta > * + *::before {
  content: "\00B7"; margin-right: var(--cb-sp-2); color: var(--cb-line);
}

/* ==========================================================================
   13. STAT / METRIC  (structure only — never populated with invented data)
   ========================================================================== */

.cb-stat__value {
  font-family: var(--cb-font-display);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  font-weight: var(--cb-fw-extra);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--cb-navy-800);
  letter-spacing: -0.03em;
}
.cb-section--dark .cb-stat__value { color: #fff; }
.cb-stat__label {
  margin-top: var(--cb-sp-2);
  font-size: var(--cb-fs-sm);
  color: var(--cb-ink-muted);
}

/* ==========================================================================
   14. LOGO / BRAND
   ========================================================================== */

.cb-logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.cb-logo__img { height: 40px; width: auto; }
.cb-logo__text { display: flex; flex-direction: column; line-height: 1; }
.cb-logo__name {
  font-family: var(--cb-font-display);
  font-size: 1.2rem;
  font-weight: var(--cb-fw-extra);
  letter-spacing: -0.02em;
  color: var(--cb-navy-800);
}
.cb-logo__tag {
  /* 8px was legible in the mock-up and not on a real screen. 10px with wide
     tracking keeps the mark compact while staying readable. */
  font-size: 0.625rem;
  font-weight: var(--cb-fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cb-blue-600);
  margin-top: 4px;
  white-space: nowrap;
}
/* The tagline is decorative next to the wordmark; drop it on narrow screens
   rather than letting it wrap or shrink the logo. */
@media (max-width: 400px) {
  .cb-logo__tag { display: none; }
}

/* ==========================================================================
   15. DIVIDER / DECORATION
   ========================================================================== */

.cb-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cb-border) 18%, var(--cb-border) 82%, transparent);
  border: 0;
  margin: 0;
}
.cb-section--dark .cb-rule {
  background: linear-gradient(90deg, transparent, rgba(111,220,255,0.20) 18%, rgba(111,220,255,0.20) 82%, transparent);
}

/* Subtle technical grid — signals "engineering" without noise. Decorative. */
.cb-gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
}
.cb-gridlines--light {
  background-image:
    linear-gradient(to right, rgba(10,27,51,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,27,51,0.045) 1px, transparent 1px);
}

/* ==========================================================================
   16. SCROLL REVEAL
   Progressive enhancement: the .cb-reveal class only hides content once JS
   has confirmed IntersectionObserver support by adding .cb-js to <html>.
   Without JS, content is simply visible.
   ========================================================================== */

.cb-js .cb-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--cb-dur-reveal) var(--cb-ease-out),
    transform var(--cb-dur-reveal) var(--cb-ease-out);
  transition-delay: var(--cb-reveal-delay, 0ms);
  will-change: opacity, transform;
}
.cb-js .cb-reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  .cb-js .cb-reveal { opacity: 1; transform: none; }
}
