/*
Theme Name: bluetribe
Theme URI: https://bluetribe.pt
Author: bluetribe
Author URI: https://bluetribe.pt
Description: Editorial consultancy theme for bluetribe — a specialized business consultancy that uses advanced data and AI as strategic tools. Built on a native system-font stack (Segoe UI / Consolas / Georgia), navy + signal-blue, and a cool white-leaning neutral foundation. Includes a home page composed of hero, three pillars, featured case study, stats, testimonial, insights and a contact modal.
Version: 2.10.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bluetribe
Tags: business, consultancy, editorial, blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   bluetribe Design System — Colors & Type
   Confirmed from bluetribe.pt:
   - Native system stack: Segoe UI (Bold for display) · Consolas (mono)
     · Georgia Italic (editorial accent) — no webfont load, instant render
   - Navy #0a3258 (gcid-secondary) + signal blue #0e8ce3 (gcid-primary)
   - Cool, white-leaning neutrals · body text mid-grey #666666
   ============================================================ */

:root {
  /* BRAND */
  --bt-tribe-ink:      #0a3258;
  --bt-tribe-ink-2:    #14406b;
  --bt-blue:           #0e8ce3;
  --bt-blue-hover:     #0a72ba;
  --bt-blue-link:      #2ea3f2;
  --bt-blue-soft:      #e6f2f5;

  /* NEUTRALS */
  --bt-bone:           #FFFFFF;
  --bt-sand:           #F3F6F9;
  --bt-mist:           #E3E8EE;
  --bt-stone:          #C2CAD3;
  --bt-slate:          #888888;
  --bt-charcoal:       #666666;
  --bt-obsidian:       #07111F;

  /* ACCENT */
  --bt-ember:          #E26A4A;
  --bt-ember-soft:     #FBE8E0;
  --bt-moss:           #3F7A5E;
  --bt-amber:          #C28A2E;
  --bt-rust:           #B23A3A;

  /* SEMANTIC */
  --bg:                var(--bt-bone);
  --bg-elevated:       #FFFFFF;
  --bg-muted:          var(--bt-sand);
  --bg-inverse:        var(--bt-tribe-ink);
  --fg:                var(--bt-charcoal);
  --fg-muted:          var(--bt-slate);
  --fg-subtle:         #8A91A0;
  --fg-inverse:        var(--bt-bone);
  --fg-on-blue:        #FFFFFF;
  --border:            var(--bt-mist);
  --border-strong:     #AEB8C4;
  --border-inverse:    rgba(255,255,255,0.12);
  --link:              var(--bt-blue-link);
  --link-hover:        var(--bt-blue-hover);
  --accent:            var(--bt-ember);
  --success:           var(--bt-moss);
  --warning:           var(--bt-amber);
  --danger:            var(--bt-rust);

  /* TYPE */
  --font-display:      "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-sans:         "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif:        Georgia, "Times New Roman", serif;
  --font-mono:         Consolas, "SF Mono", "Menlo", monospace;

  /* SCALE */
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-64: 4rem;
  --fs-80: 5rem;
  --fs-112: 7rem;

  /* WEIGHTS */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* LEADING & TRACKING */
  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.45;
  --lh-relaxed: 1.65;
  --tr-tighter: -0.04em;
  --tr-tight:   -0.02em;
  --tr-normal:  0;
  --tr-wide:    0.04em;
  --tr-caps:    0.12em;

  /* SPACING */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* RADII */
  --r-none: 0;
  --r-xs:   2px;
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   10px;
  --r-xl:   16px;
  --r-pill: 999px;

  /* SHADOWS */
  --shadow-xs: 0 1px 0 rgba(11, 31, 58, 0.06);
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 1px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(11, 31, 58, 0.08), 0 2px 4px -2px rgba(11, 31, 58, 0.05);
  --shadow-lg: 0 12px 32px -8px rgba(11, 31, 58, 0.14), 0 4px 8px -4px rgba(11, 31, 58, 0.06);
  --shadow-inset: inset 0 0 0 1px var(--border);

  /* MOTION */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--bt-tribe-ink); color: var(--bt-bone); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  background: var(--bt-tribe-ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.bt-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ============================================================
   NAV
   ============================================================ */
.bt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,246,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
/* The header gets a wider container than the content sections so the full menu,
   logo and CTAs fit on one line on desktop. */
.bt-nav .container { max-width: 1440px; }
.bt-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.bt-nav-inner > a { flex-shrink: 0; }            /* logo */
.bt-nav-cta { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bt-nav .logo,
.bt-nav .custom-logo { height: 40px; width: auto; display: block; }
.bt-nav .custom-logo-link { display: inline-flex; align-items: center; }
.bt-nav nav { flex-shrink: 0; }
.bt-nav .nav-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bt-nav .nav-menu li { margin: 0; flex-shrink: 0; }
.bt-nav .nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--bt-tribe-ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all 200ms var(--ease-out);
  display: inline-block;
  white-space: nowrap;
}
.bt-nav .nav-menu a:hover,
.bt-nav .nav-menu .current-menu-item > a,
.bt-nav .nav-menu .current_page_item > a {
  color: var(--bt-blue);
  border-bottom-color: var(--bt-blue);
}

/* ---- Dropdown sub-menus ---- */
.bt-nav .nav-menu > li { position: relative; }
.bt-nav .nav-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
  vertical-align: middle;
}
.bt-nav .nav-menu .menu-item-has-children:hover > a::after,
.bt-nav .nav-menu .menu-item-has-children:focus-within > a::after { transform: translateY(0) rotate(225deg); }
.bt-nav .nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 160ms;
  z-index: 60;
}
.bt-nav .nav-menu .menu-item-has-children:hover > .sub-menu,
.bt-nav .nav-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bt-nav .nav-menu .sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border-bottom: 0;
  font-weight: 400;
  white-space: nowrap;
}
.bt-nav .nav-menu .sub-menu a:hover,
.bt-nav .nav-menu .sub-menu .current-menu-item > a {
  background: var(--bt-blue-soft);
  color: var(--bt-blue);
}

.bt-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.bt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  height: 46px;
  box-sizing: border-box;
  border-radius: 6px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
/* Submit loading state (set by JS while waiting for the server) */
.bt-btn.is-loading { pointer-events: none; opacity: 0.75; }
.bt-btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: bt-btn-spin 600ms linear infinite;
}
@keyframes bt-btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bt-btn.is-loading::after { content: "…"; width: auto; height: auto; border: 0; animation: none; }
}
.bt-btn--primary { background: var(--bt-blue); color: #fff; border-color: var(--bt-blue-hover); }
.bt-btn--primary:hover { background: var(--bt-blue-hover); color: #fff; border-color: var(--bt-blue-hover); }
.bt-btn--primary:active { transform: translateY(1px); }
.bt-btn--ghost { background: transparent; color: var(--bt-tribe-ink); border-color: var(--border-strong); }
.bt-btn--ghost:hover { background: var(--bt-sand); }
.bt-btn--dark { background: var(--bt-tribe-ink); color: #fff; border-color: var(--bt-tribe-ink-2); }
.bt-btn--dark:hover { background: var(--bt-tribe-ink-2); color: #fff; border-color: var(--bt-tribe-ink-2); }
.bt-btn--soft { background: var(--bt-blue-soft); color: var(--bt-blue); border-color: rgba(14,140,227,0.35); }
.bt-btn--soft:hover { background: #d4e9f3; color: var(--bt-blue-hover); border-color: rgba(14,140,227,0.5); }
.bt-btn--text {
  background: transparent;
  height: auto;
  padding: 8px 0;
  color: var(--bt-blue);
  border-radius: 0;
}
.bt-btn--text:hover { color: var(--bt-blue-hover); }
.bt-btn .arrow { transition: transform 200ms var(--ease-out); }
.bt-btn:hover .arrow { transform: translateX(3px); }
.bt-btn:focus-visible { outline: 2px solid var(--bt-blue); outline-offset: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.bt-hero {
  padding: 80px 0 96px;
  border-bottom: 1px solid var(--border);
}
.bt-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.bt-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bt-blue);
  font-weight: 500;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bt-hero .eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--bt-blue);
}
.bt-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--bt-tribe-ink);
  margin: 0 0 24px;
}
.bt-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bt-blue);
}
.bt-hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--bt-charcoal);
  max-width: 480px;
  margin: 0 0 32px;
}
.bt-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.bt-hero-meta {
  border-top: 1px solid var(--border-strong);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bt-hero-meta .row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  font-size: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.bt-hero-meta .row:last-child { border-bottom: 0; padding-bottom: 0; }
.bt-hero-meta .key {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.bt-hero-meta .val { color: var(--bt-charcoal); }
.bt-hero-meta .val .highlight { color: var(--bt-tribe-ink); font-weight: 500; }

/* ============================================================
   PILLARS
   ============================================================ */
.bt-pillars { padding: 96px 0 64px; }
.bt-pillars-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 48px;
}
.bt-pillars-head h2 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bt-tribe-ink);
  margin: 0;
  max-width: 520px;
  line-height: 1.1;
}
.bt-pillars-head .index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.bt-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.bt-pillar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-xs);
  transition: all 200ms var(--ease-out);
  cursor: pointer;
  min-height: 320px;
}
.bt-pillar:hover {
  border-color: var(--bt-tribe-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.bt-pillar.active {
  background: var(--bt-tribe-ink);
  border-color: var(--bt-tribe-ink);
}
.bt-pillar.active .num { color: rgba(255,255,255,0.5); }
.bt-pillar.active h3 { color: #fff; }
.bt-pillar.active p { color: rgba(255,255,255,0.78); }
.bt-pillar.active .arrow-link { color: #fff; }
.bt-pillar .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}
.bt-pillar h3 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--bt-tribe-ink);
  margin: 0;
}
.bt-pillar p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bt-charcoal);
  margin: 0;
  flex: 1;
}
.bt-pillar .arrow-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--bt-blue);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* ============================================================
   CASE STUDY
   ============================================================ */
.bt-work { padding: 64px 0 96px; }
.bt-case {
  background: var(--bt-tribe-ink);
  color: var(--bt-bone);
  border-radius: 10px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.bt-case::before {
  content: "";
  position: absolute;
  top: 32px; right: 32px;
  width: 32px; height: 32px;
  border: 1px solid var(--bt-blue);
  border-radius: 999px;
  background: var(--bt-blue);
  opacity: 0.4;
}
.bt-case .eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #92B6F0;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.bt-case .eyebrow::before { content: ""; width: 24px; height: 1px; background: #92B6F0; }
.bt-case h2,
.bt-case h1 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
}
.bt-case p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0 0 32px;
  max-width: 440px;
}
.bt-case__right { display: flex; flex-direction: column; gap: 32px; }
.bt-case__media {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.05);
}
.bt-case .meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 32px;
}
/* When the media block is present, the stats no longer need the top divider */
.bt-case__media + .meta-grid { border-top: 0; padding-top: 0; }

/* Single Case Study page — reuses the dark card outside the slider */
.bt-case-single { padding: 64px 0 96px; }
.bt-case--single { align-items: start; }
.bt-case--single .bt-content { color: rgba(255,255,255,0.82); max-width: 460px; }
.bt-case--single .bt-content a { color: #92B6F0; }
.bt-case-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.bt-case-cats a {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92B6F0;
  border: 1px solid rgba(146,182,240,0.4);
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
}
.bt-case-cats a:hover { background: rgba(146,182,240,0.12); }

/* Case slider */
.bt-case-stage { position: relative; }
.bt-case[data-bt-case-slide][data-active="false"] { display: none; }
.bt-case[data-bt-case-slide][data-active="true"] { animation: bt-ts-fade 420ms var(--ease-out); }
.bt-case-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.bt-case-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  border: 0; padding: 0; cursor: pointer;
  background: var(--bt-stone);
  transition: background 200ms var(--ease-out), width 200ms var(--ease-out);
}
.bt-case-dot:hover { background: var(--bt-slate); }
.bt-case-dot[data-active="true"] { background: var(--bt-blue); width: 22px; }
.bt-case .meta-item .key {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-bottom: 6px;
}
.bt-case .meta-item .val {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bt-case .meta-item .val small {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-left: 4px;
}

/* ============================================================
   STATS
   ============================================================ */
.bt-stats {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.bt-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.bt-stat {
  padding: 0 24px;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
  text-align: center;
}
.bt-stat:first-child { border-left: 0; padding-left: 0; }
.bt-stat .num {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bt-tribe-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}
.bt-stat .num small { font-size: 28px; color: var(--bt-blue); margin-left: 4px; vertical-align: top; }
.bt-stat .lab {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bt-charcoal);
  max-width: 180px;
  margin: 0 auto;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.bt-testimonial {
  padding: 96px 0;
  background: var(--bt-sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bt-testimonial-grid {
  display: grid;
  grid-template-columns: 80px 1fr 240px;
  gap: 48px;
  align-items: start;
}
.bt-testimonial .glyph {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.7;
  color: var(--bt-blue);
}
.bt-testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--bt-tribe-ink);
  font-weight: 400;
  margin: 0;
}
.bt-testimonial .attrib {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 32px;
  font-size: 14px;
}
.bt-testimonial .attrib .name { font-weight: 500; color: var(--bt-tribe-ink); }
.bt-testimonial .attrib .role { color: var(--fg-muted); }
.bt-testimonial .portrait {
  aspect-ratio: 3/4;
  background: var(--bt-mist);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* ---- Testimonial slider ---- */
.bt-testimonial-stage { position: relative; }
.bt-testimonial-slide { display: none; }
.bt-testimonial-slide[data-active="true"] { display: block; animation: bt-ts-fade 420ms var(--ease-out); }
@keyframes bt-ts-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bt-testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.bt-ts-arrow {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  color: var(--bt-tribe-ink);
  font-size: 18px;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.bt-ts-arrow:hover { background: var(--bt-tribe-ink); color: #fff; border-color: var(--bt-tribe-ink); }
.bt-ts-dots { display: flex; gap: 8px; }
.bt-ts-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--bt-stone);
  cursor: pointer;
  padding: 0;
  transition: background 200ms var(--ease-out), width 200ms var(--ease-out);
}
.bt-ts-dot[data-active="true"] { background: var(--bt-blue); width: 22px; }

/* ============================================================
   INSIGHTS
   ============================================================ */
.bt-insights {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}
.bt-insights-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
}
.bt-insights-head h2 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bt-tribe-ink);
  margin: 0;
}
.bt-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.bt-post { display: flex; flex-direction: column; gap: 16px; }
.bt-post a.cover {
  display: block;
}
.bt-post .img {
  aspect-ratio: 4/3;
  background: var(--bt-sand);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
/* Round the thumbnail whether it's a background image (above) or a real <img>. */
.bt-post .cover,
.bt-post .img img,
.bt-post .cover img {
  border-radius: 10px;
  overflow: hidden;
}
.bt-post .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bt-post .img-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--bt-stone);
  font-family: var(--font-mono);
  font-size: 12px;
}
.bt-post .meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.bt-post h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--bt-tribe-ink);
  margin: 0;
  transition: color 200ms var(--ease-out);
}
.bt-post h3 a:hover { color: var(--bt-blue); }
.bt-post p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

/* ============================================================
   CONTACT BAND
   ============================================================ */
.bt-contact { padding: 96px 0; }
.bt-contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.bt-contact h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bt-tribe-ink);
  font-weight: 700;
  margin: 0;
  max-width: 720px;
}
.bt-contact h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--bt-blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.bt-footer {
  background: var(--bt-tribe-ink);
  color: var(--bt-bone);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
/* Brand symbol watermark (set via --bt-footer-watermark in wp_head) */
.bt-footer::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 520px;
  height: 520px;
  background-image: var(--bt-footer-watermark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: var(--bt-footer-watermark-opacity, 0.05);
  pointer-events: none;
  z-index: 0;
}
.bt-footer .container { position: relative; z-index: 1; }
.bt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.bt-footer .logo { width: 200px; margin-bottom: 24px; filter: brightness(0) invert(1); }
.bt-footer .blurb {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 360px;
}
.bt-footer h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.bt-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bt-footer li a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  transition: color 200ms var(--ease-out);
}
.bt-footer li a:hover { color: #fff; }
.bt-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.bt-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,31,58,0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
}
.bt-modal-backdrop.is-open {
  display: flex;
  animation: bt-fade-in 200ms var(--ease-out);
}
@keyframes bt-fade-in { from { opacity: 0 } to { opacity: 1 } }
.bt-modal {
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  animation: bt-rise 240ms var(--ease-out);
}
@keyframes bt-rise {
  from { opacity: 0; transform: translateY(8px) }
  to { opacity: 1; transform: translateY(0) }
}
.bt-modal h3 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--bt-tribe-ink);
  margin: 0 0 8px;
}
.bt-modal .intro { color: var(--fg-muted); margin: 0 0 24px; font-size: 15px; }
.bt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bt-form-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--danger);
  background: var(--bt-ember-soft);
  border-radius: var(--r-sm);
}
.bt-modal label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.bt-modal input,
.bt-modal select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  height: 46px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--fg);
  outline: none;
  transition: border-color 200ms;
  margin-bottom: 16px;
}
.bt-modal select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230a3258' stroke-width='1.5'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.bt-modal textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 16px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--fg);
  outline: none;
  transition: border-color 200ms;
  margin-bottom: 16px;
  resize: vertical;
}
.bt-modal input:focus,
.bt-modal textarea:focus,
.bt-modal select:focus {
  border-color: var(--bt-blue);
  box-shadow: 0 0 0 3px rgba(14,140,227,0.15);
}
.bt-modal .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.bt-modal .success { text-align: center; padding: 24px 0; }
.bt-modal .success .check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--bt-blue-soft);
  color: var(--bt-blue);
  display: flex; align-items: center; justify-content: center;
}
.bt-modal [hidden] { display: none; }

/* ============================================================
   GENERIC PAGE / POST CONTENT
   ============================================================ */
.bt-page,
.bt-single,
.bt-archive {
  padding: 80px 0 96px;
}
.bt-page-header,
.bt-archive-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.bt-page-header .eyebrow,
.bt-archive-header .eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bt-blue);
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}
.bt-page-header h1,
.bt-archive-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--bt-tribe-ink);
  margin: 0;
  max-width: 800px;
}
/* ---- Post header band ----
   Full-bleed: the image runs edge to edge, wider than the 1280px container the
   old title band sat in, with the title laid over it on a navy scrim. Without
   any image the band keeps the navy, so the white title always has a ground. */
.bt-single--hero { padding-top: 0; }
.bt-post-hero {
  position: relative;
  overflow: hidden;
  background: var(--bt-tribe-ink);
  margin-bottom: 56px;
}
.bt-post-hero-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  z-index: 0;
}
.bt-post-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg,
    rgba(10, 50, 88, var(--bt-post-scrim, 0.55)) 25%,
    rgba(10, 50, 88, var(--bt-post-scrim-2, 0.38)));
}
.bt-post-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
}
/* Doubled selector on purpose: `.container { padding: 0 Npx }` is redeclared in
   the responsive blocks below, and a shorthand there would zero these out. */
.bt-post-hero .bt-post-hero-inner { padding-top: 88px; padding-bottom: 56px; }
.bt-post-hero .bt-post-meta { color: rgba(255,255,255,0.78); }
.bt-post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--bt-bone);
  margin: 0;
  /* Wider than the old 800px title column — the band is full-bleed, so the
     headline is allowed to use it. */
  max-width: 1040px;
  text-wrap: balance;
}

.bt-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--bt-charcoal);
  max-width: 720px;
}
.bt-content--wide { max-width: none; }

/* Blog filter bar */
.bt-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 40px;
  align-items: center;
}
.bt-blog-filters select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
}
.bt-blog-filters .bt-btn { height: 44px; }
.bt-content h2 {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bt-tribe-ink);
  line-height: 1.2;
  margin: 56px 0 16px;
}
.bt-content h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--bt-tribe-ink);
  line-height: 1.3;
  margin: 40px 0 12px;
}
.bt-content p { margin: 0 0 20px; }
.bt-content a {
  color: var(--bt-blue-link);
  border-bottom: 1px solid currentColor;
}
.bt-content a:hover { color: var(--bt-blue-hover); }
.bt-content blockquote {
  border-left: 2px solid var(--bt-blue);
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--bt-tribe-ink);
}
.bt-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bt-sand);
  padding: 2px 6px;
  border-radius: 4px;
}
.bt-content pre {
  background: var(--bt-tribe-ink);
  color: var(--bt-bone);
  padding: 24px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
}
.bt-content img { border-radius: 10px; margin: 24px 0; }
.bt-content ul, .bt-content ol { padding-left: 24px; margin: 0 0 20px; }
.bt-content li { margin-bottom: 8px; }

.bt-post-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.bt-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.bt-pagination {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.bt-pagination a,
.bt-pagination span {
  font-size: 14px;
  color: var(--bt-blue);
}

/* ============================================================
   404
   ============================================================ */
.bt-404 {
  padding: 160px 0;
  text-align: center;
}
.bt-404 .code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bt-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--bt-tribe-ink);
  margin: 0 0 24px;
}
.bt-404 p {
  font-size: 19px;
  color: var(--bt-charcoal);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ============================================================
   COMMENTS (minimal)
   ============================================================ */
.bt-comments {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.bt-comments h2 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--bt-tribe-ink);
  margin: 0 0 24px;
}
.bt-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}
.bt-comments .comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Collapse the primary nav to the hamburger before the horizontal row runs out
   of room (the long "Consultancy/Professional Services" labels need ~1280px). */
@media (max-width: 1279px) {
  .bt-nav .nav-menu {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    background: var(--bt-bone);
    padding: 16px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .bt-nav.is-open .nav-menu { display: flex; }
  .bt-nav-toggle { display: inline-flex; }
  /* Sub-menus inline (no dropdown) once collapsed */
  .bt-nav .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 4px 0 4px 14px;
    margin: 4px 0 4px 2px;
    min-width: 0;
    background: transparent;
  }
  .bt-nav .nav-menu .menu-item-has-children > a::after { display: none; }
}

@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .bt-hero-grid,
  .bt-case,
  .bt-contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .bt-pillars-grid,
  .bt-insights-grid,
  .bt-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .bt-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .bt-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .bt-footer-grid { grid-template-columns: 1fr 1fr; }
  .bt-testimonial-grid { grid-template-columns: 1fr; }
  .bt-testimonial .glyph { font-size: 64px; }
  .bt-testimonial .portrait { max-width: 240px; }
  .bt-testimonial-nav { padding-left: 0; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .bt-hero { padding: 56px 0 64px; }
  .bt-post-hero-inner { min-height: 280px; }
  .bt-post-hero .bt-post-hero-inner { padding-top: 56px; padding-bottom: 36px; }
  .bt-post-hero { margin-bottom: 40px; }
  .bt-pillars,
  .bt-work,
  .bt-stats,
  .bt-testimonial,
  .bt-insights,
  .bt-contact { padding: 64px 0; }
  .bt-pillars-grid,
  .bt-insights-grid,
  .bt-archive-grid { grid-template-columns: 1fr; }
  .bt-stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .bt-stat { border-left: 0; padding-left: 0; }
  .bt-case { padding: 40px 24px; }
  .bt-case h2 { font-size: 32px; }
  .bt-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .bt-footer-bottom { flex-direction: column; gap: 12px; }
  .bt-pillars-head,
  .bt-insights-head { flex-direction: column; align-items: flex-start; }
  .bt-modal { padding: 24px; }
  .bt-modal h3 { font-size: 24px; }
}

/* ============================================================
   EXTENDED SECTIONS — ported from the design-system website
   kit (hero slider, client strip, capability grid, value
   cards, careers grid). Foundations from the tokens above.
   ============================================================ */

/* ---------------- SECTION SCAFFOLD ---------------- */
.bt-section { padding: 96px 0; }
.bt-section--muted { background: var(--bg-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bt-section--ink { background: var(--bt-tribe-ink); color: #fff; }

.bt-section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--bt-tribe-ink);
  margin: 0;
  max-width: 16ch;
}
.bt-section--ink .bt-section-title { color: #fff; }
.bt-section-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--bt-blue); }

.bt-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 56px;
}
.bt-section-head .bt-section-title { max-width: 22ch; }
.bt-section-head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
  max-width: 420px;
}
.bt-section--ink .bt-section-head p { color: rgba(255,255,255,0.7); }

/* ---------------- HERO SLIDER (rotating pillars) ---------------- */
.bt-heroslider {
  position: relative;
  background: var(--bt-tribe-ink);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.bt-heroslider::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
/* Brand symbol watermark (set via --bt-hero-watermark in wp_head) */
.bt-heroslider::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 620px;
  height: 620px;
  background-image: var(--bt-hero-watermark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: var(--bt-hero-watermark-opacity, 0.06);
  pointer-events: none;
  z-index: 0;
}
.bt-heroslider-inner {
  position: relative;
  z-index: 1;
  display: block;
  padding: 96px 0;
}
.bt-hs-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bt-blue);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.bt-hs-index b { color: #fff; font-weight: 500; }
.bt-hs-stage { position: relative; min-height: 480px; }
.bt-hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
  pointer-events: none;
}
.bt-hs-slide[data-active="true"] {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  min-height: 480px;
}
.bt-hs-aside { width: 100%; }
.bt-hs-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #92c5f5;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.bt-hs-slide h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  color: #fff;
  max-width: 14ch;
}
.bt-hs-slide h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #6db4f0; }
.bt-hs-slide p {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  margin: 0 0 32px;
  max-width: 46ch;
}
.bt-hs-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bt-btn--on-ink { color: #fff; border-color: rgba(255,255,255,0.3); }
.bt-btn--on-ink:hover { background: rgba(255,255,255,0.08); color: #fff; }

.bt-hs-panel {
  /* The fill % controls the frosted card behind the metrics — the numbers
     themselves always stay fully opaque/legible. */
  border: 1px solid rgba(255,255,255, calc(var(--bt-hs-panel-opacity, 0.9) * 0.28));
  border-radius: 12px;
  padding: 32px 28px;
  background: rgba(255,255,255, calc(var(--bt-hs-panel-opacity, 0.9) * 0.16));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.bt-hs-panel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6db4f0;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.bt-hs-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bt-hs-metric:last-child { border-bottom: 0; }
.bt-hs-metric .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: #fff;
  letter-spacing: -0.03em;
}
.bt-hs-metric .l {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-align: right;
  max-width: 140px;
}

.bt-hs-imagepanel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}
.bt-hs-imagepanel img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}

/* Hero slider dots */
.bt-hs-dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 8px;
}
.bt-hs-dot {
  width: 9px; height: 9px;
  border-radius: var(--r-pill);
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.32);
  transition: background 200ms var(--ease-out), width 200ms var(--ease-out);
}
.bt-hs-dot:hover { background: rgba(255,255,255,0.6); }
.bt-hs-dot[data-active="true"] { background: var(--bt-blue); width: 26px; }

/* ---------------- CLIENT LOGO STRIP ---------------- */
.bt-clients {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.bt-clients .container { display: flex; align-items: center; gap: 48px; }
.bt-clients .lbl {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-subtle);
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 140px;
  line-height: 1.4;
}
/* Viewport clips the row; when the logos overflow, JS turns the row into a
   seamless auto-scrolling marquee (see bluetribe.js). */
.bt-clients-viewport { flex: 1; min-width: 0; overflow: hidden; }
.bt-clients .marks {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: nowrap;
}
/* When it fits, spread the logos across the row. */
.bt-clients .marks:not(.is-marquee) { width: 100%; justify-content: space-between; }
/* When it overflows, become a content-width track and rotate continuously. */
.bt-clients .marks.is-marquee {
  width: max-content;
  justify-content: flex-start;
  animation: bt-marquee var(--bt-marquee-duration, 30s) linear infinite;
  will-change: transform;
}
.bt-clients .marks.is-marquee:hover { animation-play-state: paused; }
@keyframes bt-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--bt-marquee-shift, 0px))); }
}
@media (prefers-reduced-motion: reduce) {
  .bt-clients .marks.is-marquee { animation: none; }
}
.bt-clients .mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--bt-stone);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 200ms var(--ease-out);
}
.bt-clients .mark:hover { color: var(--bt-tribe-ink); }

/* ---------------- CAPABILITY / SERVICE GRID ---------------- */
.bt-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.bt-cap {
  background: var(--bg);
  /* Hairlines are drawn per-card (right + bottom), so a disabled/absent card
     leaves clean white space instead of a grey empty cell. */
  box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 200ms var(--ease-out);
  cursor: default;
}
.bt-cap:hover { background: var(--bt-blue-soft); }
.bt-cap--link { text-decoration: none; color: inherit; cursor: pointer; }
.bt-cap--link:focus-visible { outline: 2px solid var(--bt-blue); outline-offset: -2px; }
.bt-cap .ico {
  width: 40px; height: 40px;
  color: var(--bt-blue);
}
.bt-cap .ico svg { width: 100%; height: 100%; fill: currentColor; }
.bt-cap h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--bt-tribe-ink);
  margin: 4px 0 0;
}
.bt-cap p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

/* ---------------- VALUE / WHY-US CARDS ---------------- */
.bt-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bt-why {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.bt-section--ink .bt-why {
  background: var(--bt-tribe-ink-2);
  border-color: rgba(255,255,255,0.1);
}
.bt-why--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.bt-why--link:hover { transform: translateY(-2px); }
.bt-section--ink .bt-why--link:hover { border-color: rgba(255,255,255,0.28); }
.bt-why--link:focus-visible { outline: 2px solid var(--bt-blue); outline-offset: 2px; }
.bt-why .ico {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bt-blue-soft);
  color: var(--bt-blue);
}
.bt-section--ink .bt-why .ico { background: rgba(109,180,240,0.16); color: #8fc6f5; }
.bt-why .ico svg { width: 24px; height: 24px; fill: currentColor; }
.bt-why h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--bt-tribe-ink);
}
.bt-section--ink .bt-why h4 { color: #fff; }
.bt-why p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--fg-muted);
}
.bt-section--ink .bt-why p { color: rgba(255,255,255,0.72); }

/* ---------------- OPEN JOBS — HOMEPAGE GRID ---------------- */
/* "View all jobs" — both right-aligned, button fill matches the section background. */
.bt-jobs-viewall { display: flex; justify-content: flex-end; }
.bt-jobs-viewall--top { margin-bottom: 28px; }
.bt-jobs-viewall-btn { background: var(--bg-muted); color: var(--bt-tribe-ink); border: 1px solid var(--border-strong); }
.bt-jobs-viewall-btn:hover { background: #e9eef3; color: var(--bt-tribe-ink); }
/* Cards mirror the archive's card view (.bt-job-rows.is-cards):
   left-aligned content, flat navy surface, same radius/padding/grid. */
.bt-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.bt-job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  background: var(--bt-tribe-ink);
  color: #fff;
  text-decoration: none;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.bt-job-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(10,50,88,0.25); }
.bt-job-card:focus-visible { outline: 2px solid var(--bt-blue); outline-offset: 2px; }
.bt-job-card__symbol {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
}
.bt-job-card__symbol img { width: 100%; height: 100%; object-fit: contain; }
.bt-job-card__title { font-size: 17px; font-weight: 600; color: #fff; margin: 0; }
.bt-job-card__meta {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 13px; color: rgba(255,255,255,0.72);
}
.bt-job-card__meta strong { color: #fff; font-weight: 600; }
.bt-job-card__apply {
  margin-top: auto;
  font-size: 14px; font-weight: 600; color: #8fc6f5;
  display: inline-flex; gap: 6px; align-items: center;
}
.bt-job-card:hover .bt-job-card__apply .arrow { transform: translateX(3px); }
.bt-job-card__apply .arrow { transition: transform 200ms var(--ease-out); }
.bt-jobs-viewall--bottom { margin-top: 32px; }

/* ---------------- OPEN JOBS — ARCHIVE (VIEW ALL) ---------------- */
.bt-jobs-archive .bt-page-header { margin-bottom: 40px; }
.bt-job-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.bt-job-row { border-bottom: 1px solid var(--border); }
.bt-job-row__link {
  display: flex; align-items: center; gap: 24px;
  padding: 24px 8px;
  text-decoration: none; color: var(--bt-tribe-ink);
  transition: background 160ms var(--ease-out), padding 160ms var(--ease-out);
}
.bt-job-row__link:hover { background: var(--bt-sand); padding-left: 16px; }
.bt-job-row__main { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bt-job-row__title { font-size: 20px; font-weight: 600; }
.bt-job-row__excerpt { font-size: 14px; color: var(--fg-muted); }
.bt-job-row__meta { display: flex; gap: 16px; font-size: 14px; color: var(--fg-muted); }
.bt-job-row__meta strong { color: var(--bt-tribe-ink); font-weight: 600; }
.bt-job-row__apply {
  font-size: 14px; font-weight: 600; color: var(--bt-blue);
  display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
}
.bt-job-row__apply .arrow { transition: transform 200ms var(--ease-out); }
.bt-job-row__link:hover .bt-job-row__apply .arrow { transform: translateX(3px); }
.bt-job-empty { color: var(--fg-muted); }

/* ---- Jobs archive: list/cards toggle ---- */
.bt-jobs-archive-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.bt-jobs-viewtoggle { display: flex; gap: 6px; flex-shrink: 0; }
.bt-jobs-viewtoggle button {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--bt-tribe-ink);
  cursor: pointer;
  transition: all 160ms var(--ease-out);
}
.bt-jobs-viewtoggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.bt-jobs-viewtoggle button:hover { background: var(--bt-sand); }
.bt-jobs-viewtoggle button[aria-pressed="true"] { background: var(--bt-tribe-ink); border-color: var(--bt-tribe-ink); color: #fff; }
.bt-jobs-viewtoggle button:focus-visible { outline: 2px solid var(--bt-blue); outline-offset: 2px; }

/* List view keeps the classic rows; the card-only symbol stays hidden. */
.bt-job-rows.is-list .bt-job-row__symbol { display: none; }

/* Card view — navy cards like the homepage Roles section. */
.bt-job-rows.is-cards {
  border-top: 0;
  display: grid;
  /* fluid: 4 per row on a full container, fewer as space shrinks */
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.bt-job-rows.is-cards .bt-job-row { border-bottom: 0; }
.bt-job-rows.is-cards .bt-job-row__link {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 22px;
  background: var(--bt-tribe-ink);
  border-radius: 14px;
  color: #fff;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.bt-job-rows.is-cards .bt-job-row__link:hover { background: var(--bt-tribe-ink); padding-left: 22px; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(10,50,88,0.25); }
.bt-job-rows.is-cards .bt-job-row__symbol { display: block; width: 36px; height: 36px; }
.bt-job-rows.is-cards .bt-job-row__symbol img { width: 100%; height: 100%; object-fit: contain; }
.bt-job-rows.is-cards .bt-job-row__excerpt { display: none; }
.bt-job-rows.is-cards .bt-job-row__main { flex: 0 0 auto; }
.bt-job-rows.is-cards .bt-job-row__title { color: #fff; font-size: 17px; }
.bt-job-rows.is-cards .bt-job-row__meta { flex-direction: column; gap: 5px; font-size: 13px; color: rgba(255,255,255,0.72); }
.bt-job-rows.is-cards .bt-job-row__meta strong { color: #fff; }
.bt-job-rows.is-cards .bt-job-row__apply { margin-top: auto; color: #8fc6f5; }

@media (max-width: 640px) {
  .bt-jobs-archive-header { flex-direction: column; align-items: flex-start; }
  .bt-job-rows.is-cards { grid-template-columns: 1fr; }
}

/* ---------------- OPEN JOBS — DETAIL ---------------- */
/* The body is fully modular now, so the header shares the same 1280px
   container grid as the modules — their left edges line up. Tighten the
   header's bottom gap so it doesn't stack with the first module's padding. */
.bt-job-single .bt-job-header { margin-bottom: 0; padding-bottom: 32px; }
.bt-job-back { display: inline-block; margin-bottom: 16px; font-size: 14px; color: var(--bt-blue); text-decoration: none; }
.bt-job-header__meta {
  list-style: none; margin: 16px 0 24px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 15px; color: var(--fg-muted);
}
.bt-job-header__meta strong { color: var(--bt-tribe-ink); font-weight: 600; }
.bt-job-header__apply { text-align: left; margin: 0; }
.bt-job-block { margin: 32px 0; }
.bt-job-block h2 { font-size: 22px; margin-bottom: 12px; }
.bt-job-list-items { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.bt-job-block--about { background: var(--bt-sand); border-radius: 10px; padding: 24px; }
.bt-job-footer-apply { margin: 40px 0 72px; padding-top: 32px; border-top: 1px solid var(--border); text-align: left; }
/* Privacy note under the contact form */
.bt-form-privacy {
  margin: 4px 0 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.bt-form-privacy a { color: var(--bt-blue); text-decoration: underline; }

/* Custom file input (CV) — native control hidden, styled "Load file" button + filename */
.bt-file { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.bt-file input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.bt-modal .bt-file .bt-file-btn,
.bt-file .bt-file-btn {
  display: inline-flex; align-items: center;
  margin: 0;
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--fg);
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.bt-file .bt-file-btn:hover { border-color: var(--bt-blue); background: var(--bt-blue-soft); }
.bt-file input[type="file"]:focus-visible + .bt-file-btn { outline: 2px solid var(--bt-blue); outline-offset: 2px; }
.bt-file .bt-file-name { font-size: 14px; color: var(--fg-muted); }

/* Job application form (inline, with CV upload) */
.bt-apply { margin-top: 48px; padding: 32px; background: var(--bt-sand); border-radius: 12px; scroll-margin-top: 96px; }
.bt-apply h2 { font-size: 24px; margin-bottom: 8px; }
.bt-apply-intro { color: var(--fg-muted); margin-bottom: 24px; }
.bt-apply-form label { display: block; font-size: 14px; font-weight: 600; color: var(--bt-tribe-ink); margin: 16px 0 6px; }
.bt-apply-form input[type="text"],
.bt-apply-form input[type="email"],
.bt-apply-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--bt-tribe-ink);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
.bt-apply-form input[type="file"] {
  width: 100%;
  padding: 10px 0;
  font: inherit;
}
.bt-apply-form input:focus,
.bt-apply-form textarea:focus { outline: 2px solid var(--bt-blue); outline-offset: 1px; border-color: var(--bt-blue); }
.bt-apply-actions { margin-top: 24px; }
.bt-apply .bt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bt-apply .bt-form-error { color: #b3261e; font-size: 14px; margin-top: 12px; }
.bt-apply-success { text-align: center; padding: 16px 0; }
.bt-apply-success .check {
  width: 52px; height: 52px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--bt-blue-soft); color: var(--bt-blue);
}
.bt-apply-success h3 { font-size: 20px; margin-bottom: 6px; }
.bt-apply-success p { color: var(--fg-muted); }

/* ---------------- EXTENDED SECTIONS — RESPONSIVE ---------------- */
@media (max-width: 1080px) {
  .bt-hs-slide[data-active="true"] { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .bt-hs-stage { min-height: 0; }
  .bt-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .bt-why-grid { grid-template-columns: 1fr; }
  .bt-section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 640px) {
  .bt-section { padding: 64px 0; }
  .bt-cap-grid { grid-template-columns: 1fr; }
  .bt-jobs-grid { grid-template-columns: 1fr; }
  .bt-clients .container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .bt-job-row__link { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bt-nav-cta a.bt-btn { display: none; } /* hide the Jobs link on small screens */
}

/* ============================================================
   PAGE-BUILDER MODULES — "Página de Conteúdo" / Insights
   (template-parts/module-*.php)
   ============================================================ */
.bt-mod { padding: 56px 0; }
.bt-page--modular { padding: 0; } /* modules manage their own spacing; hero sits flush under the nav */

.bt-mod-header { max-width: 720px; margin-bottom: 40px; }
.bt-mod-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-36);
  font-weight: var(--fw-bold);
  color: var(--bt-tribe-ink);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.bt-mod-header p { color: var(--fg); margin: 0; }

/* ---- Top hero — reuses the homepage .bt-heroslider look (single slide).
   Optional photo background: parallax layer + navy scrim under the content. ---- */
.bt-mod-hero-bg {
  position: absolute;
  left: 0; right: 0;
  top: -20%; bottom: -20%; /* bleed for the scroll parallax drift (covers the 0.2 factor) */
  background: center/cover no-repeat;
  will-change: transform;
  z-index: 0;
}
.bt-mod-hero-bg.bt-parallax--strong { top: -30%; bottom: -30%; }
/* No right panel (background image or no image): let the text use the row */
.bt-mod-hero--full .bt-hs-slide[data-active="true"] { grid-template-columns: 1fr; }
.bt-mod-hero--full .bt-hs-slide h1 { max-width: 22ch; }
.bt-mod-hero--full .bt-hs-slide p { max-width: 62ch; }
.bt-mod-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(10, 50, 88, var(--bt-hero-scrim, 0.92)) 25%,
    rgba(10, 50, 88, var(--bt-hero-scrim-2, 0.55)));
  z-index: 0;
}
/* Content hero is shorter than the homepage hero */
.bt-mod-hero .bt-heroslider-inner { padding: 56px 0 64px; }
.bt-mod-hero .bt-hs-slide[data-active="true"] { min-height: 320px; }


/* ---- Texto + imagem / vídeo ---- */
.bt-mod-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.bt-mod-split--media-left .bt-mod-split-text  { order: 2; }
.bt-mod-split--media-left .bt-mod-split-media { order: 1; }
.bt-mod-split-text h2 {
  font-family: var(--font-display);
  font-size: var(--fs-30);
  font-weight: var(--fw-bold);
  color: var(--bt-tribe-ink);
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}
.bt-mod-split-text .bt-mod-body { color: var(--fg); margin-bottom: 24px; }
.bt-mod-split-text .bt-mod-body p { margin: 0 0 14px; }
.bt-mod-split-media img { width: 100%; height: auto; border-radius: 10px; display: block; }
.bt-mod-split-media video { width: 100%; border-radius: 10px; display: block; background: #000; }
.bt-mod-embed { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.bt-mod-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Iconografia + texto ---- */
.bt-mod-icons-grid {
  display: grid;
  grid-template-columns: repeat(var(--bt-mod-cols, 3), 1fr);
  gap: 24px;
}
.bt-mod-icon-card {
  position: relative;
  display: block;
  background: var(--bt-sand); /* sand-on-white for contrast; sand sections flip to white (see theme rules) */
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
/* Icon size (module "Icon size" field): small 0.75 / medium 1 / large 1.35 */
.bt-mod-icon-card .icon svg {
  width: calc(44px * var(--bt-icon-scale, 1));
  height: calc(44px * var(--bt-icon-scale, 1));
  fill: var(--bt-blue);
  color: var(--bt-blue); /* stroke-based icons (e.g. lion) inherit via currentColor */
}
/* Icon shape variants (module "Icon shape" field) — soft tonal container
   behind the icon; rounded corners or full circle. */
.bt-mod-icon-card .icon--rounded,
.bt-mod-icon-card .icon--circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: calc(64px * var(--bt-icon-scale, 1));
  height: calc(64px * var(--bt-icon-scale, 1));
  background: var(--bt-blue-soft);
}
.bt-mod-icon-card .icon--rounded { border-radius: 12px; }
.bt-mod-icon-card .icon--circle { border-radius: 50%; }
/* Circle shape centers the card content; plain/rounded stay left-aligned. */
.bt-mod-icons-grid--center .bt-mod-icon-card { text-align: center; }
/* Card shape (module "Card shape" field): circular cards mirror the icon
   rule — square tile, fully round, content centered both ways. The hover
   arrow moves from the corner (it would clip) to under the text. */
.bt-mod-icons-grid--card-circle .bt-mod-icon-card {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16%;
  overflow: hidden;
}
.bt-mod-icons-grid--card-circle .bt-mod-icon-card .arrow {
  position: static;
  margin-top: 8px;
}
.bt-mod-icon-card .icon--rounded svg,
.bt-mod-icon-card .icon--circle svg {
  width: calc(30px * var(--bt-icon-scale, 1));
  height: calc(30px * var(--bt-icon-scale, 1));
}
.bt-mod--navy .bt-mod-icon-card .icon--rounded,
.bt-mod--navy .bt-mod-icon-card .icon--circle,
.bt-mod--blue .bt-mod-icon-card .icon--rounded,
.bt-mod--blue .bt-mod-icon-card .icon--circle { background: rgba(255,255,255,0.12); }
.bt-mod-icon-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: var(--fw-semibold);
  color: var(--bt-tribe-ink);
  margin: 14px 0 8px;
}
.bt-mod-icon-card p { font-size: var(--fs-14); color: var(--fg); margin: 0; }
.bt-mod-icon-card .arrow { position: absolute; top: 24px; right: 24px; color: var(--bt-blue); opacity: 0; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.bt-mod-icon-card.is-link:hover { border-color: var(--bt-blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,50,88,0.08); }
.bt-mod-icon-card.is-link:hover .arrow { opacity: 1; transform: translateX(2px); }

/* ---- Call-out ---- */
.bt-mod-callout { padding: 72px 0; }
.bt-mod-callout-inner { display: grid; gap: 48px; align-items: center; }
.bt-mod-callout-inner.has-image { grid-template-columns: 1fr 1.2fr; }
.bt-mod-callout-media img { width: 100%; height: auto; border-radius: 10px; display: block; }
.bt-mod-callout-text h2 {
  font-family: var(--font-display);
  font-size: var(--fs-30);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.bt-mod-callout-text p { margin: 0 0 24px; }
.bt-btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.bt-btn--on-dark:hover { background: #fff; color: var(--bt-tribe-ink); border-color: #fff; }

/* ---- Imagem full-width ---- */
.bt-mod-fullimage { width: 100vw; margin-left: calc(50% - 50vw); padding: 0; }
.bt-mod-fullimage-media { position: relative; overflow: hidden; }
.bt-mod-fullimage--normal .bt-mod-fullimage-media { height: 520px; }
.bt-mod-fullimage--tall .bt-mod-fullimage-media   { height: 760px; }
.bt-mod-fullimage-media img.bt-parallax--strong { top: -30%; height: 160%; }
.bt-mod-fullimage-media img {
  position: absolute;
  left: 0; top: -20%; /* bleed for the scroll parallax drift (covers the 0.2 factor) */
  width: 100%; height: 140%;
  object-fit: cover;
  will-change: transform;
  display: block;
}
.bt-mod-fullimage figcaption { font-size: var(--fs-13); color: var(--fg-muted); padding-top: 12px; }

/* ---- Module sliders (carousel + quotes) — homepage dots behaviour.
   Slides crossfade with a slight drift: the outgoing one fades out in place
   while the incoming one slides in, like the homepage hero slider. ---- */
.bt-mod-stage { position: relative; }
.bt-mod-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.992);
  /* outgoing slide: quick, clean fade */
  transition: opacity 360ms ease, transform 360ms ease;
  pointer-events: none;
}
.bt-mod-slide[data-active="true"] {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  /* incoming slide: longer, soft-landing ease with a slight delay so the
     outgoing one clears first — reads as one organic motion */
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1) 90ms, transform 720ms cubic-bezier(0.22, 1, 0.36, 1) 90ms;
}
@media (prefers-reduced-motion: reduce) {
  .bt-mod-slide { transition: none; transform: none; }
}
.bt-mod-nav { display: flex; justify-content: center; margin-top: 36px; }

/* ---- Carrossel imagem + texto ---- */
.bt-mod-carousel-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.bt-mod-carousel-media img { width: 100%; height: auto; border-radius: 10px; display: block; }
.bt-mod-carousel-text h3 {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: var(--fw-bold);
  color: var(--bt-tribe-ink);
  margin: 0 0 12px;
}
.bt-mod-carousel-text p { color: var(--fg); margin: 0 0 20px; }

/* ---- Quadrícula (3 por linha) ---- */
.bt-mod-grid-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bt-mod-grid-card {
  display: block;
  background: var(--bt-sand); /* sand-on-white for contrast; sand sections flip to white (see theme rules) */
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.bt-mod-grid-media { aspect-ratio: 3/2; background: var(--bt-mist); }
.bt-mod-grid-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-mod-grid-text { padding: 20px 24px 24px; }
.bt-mod-grid-text h3 {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: var(--fw-semibold);
  color: var(--bt-tribe-ink);
  margin: 0 0 8px;
}
.bt-mod-grid-text h3 .arrow { color: var(--bt-blue); transition: transform 200ms var(--ease-out); }
.bt-mod-grid-text p { font-size: var(--fs-14); color: var(--fg); margin: 0; }
/* Rich-text body (wysiwyg "Text" field) — restore flow spacing inside the card. */
.bt-mod-grid-body { font-size: var(--fs-14); color: var(--fg); }
.bt-mod-grid-body p { margin: 0 0 8px; }
.bt-mod-grid-body ul,
.bt-mod-grid-body ol { margin: 0 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.bt-mod-grid-body > :last-child { margin-bottom: 0; }
.bt-mod-grid-body a { color: var(--bt-blue); }
.bt-mod-grid-body strong { color: var(--bt-tribe-ink); }
.bt-mod-grid-body blockquote {
  border-left: 2px solid var(--bt-blue);
  padding-left: 14px;
  margin: 12px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-16);
  line-height: 1.45;
  color: var(--bt-tribe-ink);
}
.bt-mod-grid-body blockquote p { margin: 0; }
.bt-mod-grid-card.is-link:hover { border-color: var(--bt-blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,50,88,0.08); }
.bt-mod-grid-card.is-link:hover h3 .arrow { transform: translateX(3px); }

/* ---- Author block (Insights) ---- */
.bt-mod-author {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 32px 0 48px;
}
.bt-mod-author-photo img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; }
.bt-mod-author-info h3 {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  color: var(--bt-tribe-ink);
  margin: 4px 0 2px;
}
.bt-mod-author-info .role { display: block; font-size: var(--fs-14); color: var(--fg-muted); }
/* The email sits directly under the role — the two together read as one
   contact line, with the bio below them. */
.bt-mod-author-info .email { display: inline-block; margin-top: 2px; }
.bt-mod-author-info p { font-size: var(--fs-14); color: var(--fg); margin: 10px 0; }
.bt-mod-author-info .email { font-size: var(--fs-14); color: var(--bt-blue-link); text-decoration: none; }
.bt-mod-author-info .email:hover { color: var(--link-hover); text-decoration: underline; }

/* ---- Text only ---- */
.bt-mod-text--narrow .bt-mod-text-inner { max-width: 720px; }
.bt-mod-text--center .bt-mod-text-inner { margin: 0 auto; text-align: center; }
.bt-mod-text--right .bt-mod-text-inner { margin-left: auto; text-align: right; }
/* Alignment positions the block (title/eyebrow/button); body copy always reads left-aligned. */
.bt-mod-text .bt-mod-body { text-align: left; }
.bt-mod-text-inner h2 {
  font-family: var(--font-display);
  font-size: var(--fs-30);
  font-weight: var(--fw-bold);
  color: var(--bt-tribe-ink);
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}
.bt-mod-text-inner .bt-mod-body { color: var(--fg); margin-bottom: 8px; }
.bt-mod-text-inner .bt-mod-body p { margin: 0 0 14px; }
.bt-mod-text-inner .bt-btn { margin-top: 12px; }

/* ---- Modules: responsive ---- */
@media (max-width: 1200px) {
  /* 4-6 column icon grids get cramped below desktop width — cap at 3
     (min() keeps 2-column modules at 2). */
  .bt-mod-icons-grid { grid-template-columns: repeat(min(3, var(--bt-mod-cols, 3)), 1fr); }
}
@media (max-width: 960px) {
  .bt-mod-split-grid, .bt-mod-carousel-grid { grid-template-columns: 1fr; gap: 32px; }
  .bt-mod-split--media-left .bt-mod-split-text { order: 1; }
  .bt-mod-split--media-left .bt-mod-split-media { order: 2; }
  .bt-mod-icons-grid { grid-template-columns: repeat(2, 1fr); }
  .bt-mod-grid-items { grid-template-columns: repeat(2, 1fr); }
  .bt-mod-callout-inner.has-image { grid-template-columns: 1fr; }
  /* Round images: once the text/image columns stack, a full-width circle
     dwarfs the text — cap and center it. */
  .bt-mod-split--img-round .bt-mod-split-media img,
  .bt-mod-callout-inner--img-round .bt-mod-callout-media img,
  .bt-mod-carousel--img-round .bt-mod-carousel-media img { max-width: 280px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .bt-mod { padding: 40px 0; }
  .bt-mod-fullimage--normal .bt-mod-fullimage-media { height: 320px; }
  .bt-mod-fullimage--tall .bt-mod-fullimage-media   { height: 440px; }
  .bt-mod-icons-grid, .bt-mod-grid-items { grid-template-columns: 1fr; }
  .bt-mod-author { flex-direction: column; }
  /* Circle cards in the single-column grid: keep the circle a sane size. */
  .bt-mod-icons-grid--card-circle .bt-mod-icon-card {
    width: 100%;
    max-width: 260px;
    justify-self: center;
  }
}

/* ============================================================
   MODULE THEMES — per-module background/foreground scheme
   (white default · sand · navy · brand blue)
   ============================================================ */
.bt-mod--sand { background: var(--bt-sand); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bt-mod--navy { background: var(--bt-tribe-ink); }
.bt-mod--blue { background: var(--bt-blue); }

.bt-mod--navy, .bt-mod--blue { color: rgba(255,255,255,0.85); }
.bt-mod--navy h1, .bt-mod--navy h2, .bt-mod--navy h3,
.bt-mod--blue h1, .bt-mod--blue h2, .bt-mod--blue h3 { color: #fff; }
.bt-mod--navy p, .bt-mod--navy .bt-mod-body,
.bt-mod--blue p, .bt-mod--blue .bt-mod-body { color: rgba(255,255,255,0.82); }
.bt-mod--navy .eyebrow { color: #9CC8EE; }
.bt-mod--blue .eyebrow { color: rgba(255,255,255,0.9); }
.bt-mod--navy .bt-btn--text, .bt-mod--blue .bt-btn--text { color: #fff; }

/* Cards (icons + grid) per theme: sand-on-white / white-on-sand keeps the
   card visible on both light themes; dark themes use a stronger tonal fill. */
.bt-mod--sand .bt-mod-icon-card, .bt-mod--sand .bt-mod-grid-card {
  background: var(--bg-elevated);
}
.bt-mod--navy .bt-mod-icon-card,
.bt-mod--navy .bt-mod-grid-card {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
}
/* Brand-blue sections: a light tonal card can't reach AA contrast with any
   text color (white tops out at ~3:1), so the card goes darker instead. */
.bt-mod--blue .bt-mod-icon-card,
.bt-mod--blue .bt-mod-grid-card {
  background: rgba(10,50,88,0.4);
  border-color: rgba(255,255,255,0.28);
}
/* Grid card rich body (lists, strong, links) on dark themes — the base
   .bt-mod-grid-body colors are for light cards and fall to ~1.5:1 here. */
.bt-mod--navy .bt-mod-grid-body, .bt-mod--blue .bt-mod-grid-body { color: rgba(255,255,255,0.88); }
.bt-mod--navy .bt-mod-grid-body strong, .bt-mod--blue .bt-mod-grid-body strong { color: #fff; }
.bt-mod--navy .bt-mod-grid-body a { color: #9CC8EE; }
.bt-mod--blue .bt-mod-grid-body a { color: #fff; text-decoration: underline; }
.bt-mod--navy .bt-mod-icon-card .icon svg { fill: var(--bt-blue-link); color: var(--bt-blue-link); }
.bt-mod--blue .bt-mod-icon-card .icon svg { fill: #fff; color: #fff; }
.bt-mod--navy .bt-mod-icon-card.is-link:hover, .bt-mod--blue .bt-mod-icon-card.is-link:hover,
.bt-mod--navy .bt-mod-grid-card.is-link:hover, .bt-mod--blue .bt-mod-grid-card.is-link:hover {
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.bt-mod--navy .bt-mod-grid-media, .bt-mod--blue .bt-mod-grid-media { background: rgba(255,255,255,0.08); }

/* Quotes module refinements: the quote mark sits right on top of the text
   (no glyph column), portrait follows the site's rounded-image pattern
   (homepage testimonial stays square). */
.bt-mod-quotes .bt-testimonial-grid { grid-template-columns: 1fr 240px; gap: 40px; }
.bt-mod-quotes--img-xsmall .bt-testimonial-grid { grid-template-columns: 1fr 100px; }
.bt-mod-quotes--img-small .bt-testimonial-grid { grid-template-columns: 1fr 150px; }
.bt-mod-quotes--img-large .bt-testimonial-grid { grid-template-columns: 1fr 340px; }
.bt-mod-quotes .glyph { display: none; }
.bt-mod-quotes blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 110px;
  line-height: 0.45;
  color: var(--bt-blue);
  margin-bottom: 6px;
}
.bt-mod-quotes .portrait { border-radius: 10px; }
@media (max-width: 900px) {
  .bt-mod-quotes .bt-testimonial-grid { grid-template-columns: 1fr; }
  .bt-mod-quotes .portrait { max-width: 240px; }
  .bt-mod-quotes--img-xsmall .bt-testimonial-grid,
  .bt-mod-quotes--img-small .bt-testimonial-grid,
  .bt-mod-quotes--img-large .bt-testimonial-grid { grid-template-columns: 1fr; }
  .bt-mod-quotes--img-xsmall .portrait { max-width: 100px; }
  .bt-mod-quotes--img-small .portrait { max-width: 150px; }
}

/* Quotes on dark themes */
.bt-mod--navy blockquote, .bt-mod--blue blockquote { color: #fff; }
.bt-mod--navy .glyph, .bt-mod--navy.bt-mod-quotes blockquote::before { color: var(--bt-blue-link); }
.bt-mod--blue .glyph, .bt-mod--blue.bt-mod-quotes blockquote::before { color: #fff; }
.bt-mod--navy .attrib .name, .bt-mod--blue .attrib .name { color: #fff; }
.bt-mod--navy .attrib .role, .bt-mod--blue .attrib .role { color: rgba(255,255,255,0.65); }

/* Slider dots on dark themes */
.bt-mod--navy .bt-ts-dot, .bt-mod--blue .bt-ts-dot { background: rgba(255,255,255,0.35); }
.bt-mod--navy .bt-ts-dot[data-active="true"] { background: var(--bt-blue-link); }
.bt-mod--blue .bt-ts-dot[data-active="true"] { background: #fff; }

/* ============================================================
   MODULE IMAGE SIZE — extra small / small / medium (default) / large
   Adjusts how much room the image column takes next to the text.
   ============================================================ */
/* Text + Image (medium = 1fr 1fr, set on .bt-mod-split-grid) */
.bt-mod-split--media-right.bt-mod-split--img-xsmall .bt-mod-split-grid { grid-template-columns: 2.4fr 1fr; }
.bt-mod-split--media-left.bt-mod-split--img-xsmall  .bt-mod-split-grid { grid-template-columns: 1fr 2.4fr; }
.bt-mod-split--media-right.bt-mod-split--img-small .bt-mod-split-grid { grid-template-columns: 1.6fr 1fr; }
.bt-mod-split--media-left.bt-mod-split--img-small  .bt-mod-split-grid { grid-template-columns: 1fr 1.6fr; }
.bt-mod-split--media-right.bt-mod-split--img-large .bt-mod-split-grid { grid-template-columns: 1fr 1.6fr; }
.bt-mod-split--media-left.bt-mod-split--img-large  .bt-mod-split-grid { grid-template-columns: 1.6fr 1fr; }

/* Call-out with image (medium = 1fr 1.2fr, image first) */
.bt-mod-callout-inner.has-image.bt-mod-callout-inner--img-xsmall { grid-template-columns: 0.45fr 1.6fr; }
.bt-mod-callout-inner.has-image.bt-mod-callout-inner--img-small { grid-template-columns: 0.7fr 1.6fr; }
.bt-mod-callout-inner.has-image.bt-mod-callout-inner--img-large { grid-template-columns: 1.4fr 1fr; }

/* Carousel (medium = 1.1fr 1fr, image first) */
.bt-mod-carousel--img-xsmall .bt-mod-carousel-grid { grid-template-columns: 0.55fr 1.3fr; }
.bt-mod-carousel--img-small .bt-mod-carousel-grid { grid-template-columns: 0.8fr 1.3fr; }
.bt-mod-carousel--img-large .bt-mod-carousel-grid { grid-template-columns: 1.6fr 1fr; }

/* ============================================================
   MODULE IMAGE STYLE — rounded corners (default) / round (circle)
   Circle square-crops the image via aspect-ratio + object-fit.
   ============================================================ */
.bt-mod-split--img-round .bt-mod-split-media img,
.bt-mod-callout-inner--img-round .bt-mod-callout-media img,
.bt-mod-carousel--img-round .bt-mod-carousel-media img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
/* Quotes portrait is a background-image div (cover/center already set),
   so the circle only needs the square ratio + radius. */
.bt-mod-quotes--img-round .portrait {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

@media (max-width: 960px) {
  .bt-mod-split--img-xsmall .bt-mod-split-grid,
  .bt-mod-split--img-small .bt-mod-split-grid,
  .bt-mod-split--img-large .bt-mod-split-grid,
  .bt-mod-carousel--img-xsmall .bt-mod-carousel-grid,
  .bt-mod-carousel--img-small .bt-mod-carousel-grid,
  .bt-mod-carousel--img-large .bt-mod-carousel-grid,
  .bt-mod-callout-inner.has-image.bt-mod-callout-inner--img-xsmall,
  .bt-mod-callout-inner.has-image.bt-mod-callout-inner--img-small,
  .bt-mod-callout-inner.has-image.bt-mod-callout-inner--img-large { grid-template-columns: 1fr; }
}
