/* =========================================================
   BETTORTOKEN DESIGN SYSTEM v1
   Institutional digital-finance platform
   ========================================================= */

:root {
  /* Cobalt palette — core BettorToken brand */
  --bt-blue:       #025CBD;
  --bt-blue-deep:  #012F6B;
  --bt-blue-dark:  #021534;
  --bt-blue-ink:   #010B20;
  --bt-blue-bright:#0EA5E9;
  --bt-blue-soft:  #DBEAFE;
  --bt-blue-ice:   #EFF5FD;

  /* Paper/ink system */
  --bt-white:      #FFFFFF;
  --bt-paper:      #FBFBF8;
  --bt-off:        #F5F4EE;
  --bt-cream:      #F8F6EF;

  /* Gray scale */
  --bt-gray-lt:    #CFD4DC;
  --bt-gray:       #6B7280;
  --bt-gray-dk:    #2C3340;
  --bt-ink:        #111827;

  /* Accent — for institutional data treatment */
  --bt-gold:       #B38E5D;
  --bt-gold-dk:    #8B6F47;

  /* Status colors (used sparingly) */
  --bt-up:         #0A7A4A;
  --bt-down:       #B91C1C;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--bt-ink);
  background: var(--bt-paper);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bt-ink);
}
em {
  font-style: italic;
  color: var(--bt-blue);
}
a { color: inherit; }

/* =========================================================
   TICKER STRIP (top of page)
   ========================================================= */
.bt-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 32px;
  /* iOS safe-area compensation — push ticker content below notch/dynamic island */
  height: calc(32px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bt-blue-ink);
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  z-index: 200;
  display: flex;
  align-items: stretch;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  box-sizing: border-box;
}
/* The interior elements need to align below the safe-area pad */
.bt-ticker > * {
  height: 32px;
  align-self: flex-end;
}
.bt-ticker-label {
  flex-shrink: 0;
  padding: 0 20px;
  background: var(--bt-blue);
  color: var(--bt-white);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 10px;
}
.bt-ticker-stream {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.bt-ticker-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  gap: 40px;
  padding: 0 40px;
  animation: bt-ticker-scroll 60s linear infinite;
  white-space: nowrap;
}
@keyframes bt-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.bt-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.bt-ticker-symbol {
  color: var(--bt-blue-bright);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.bt-ticker-price {
  color: var(--bt-white);
  font-weight: 500;
}
.bt-ticker-change {
  font-size: 10px;
}
.bt-ticker-change.up { color: #10B981; }
.bt-ticker-change.down { color: #F87171; }
.bt-ticker-item.flagship {
  background: rgba(14, 165, 233, 0.1);
  padding: 0 14px;
  border-radius: 2px;
  border-left: 2px solid var(--bt-blue-bright);
  border-right: 2px solid var(--bt-blue-bright);
}
.bt-ticker-item.flagship .bt-ticker-symbol {
  color: var(--bt-blue-bright);
}
.bt-ticker-pulse {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  margin-right: 4px;
}
.bt-ticker-pulse-ring {
  position: absolute;
  inset: 0;
  background: #10B981;
  border-radius: 50%;
  opacity: 0.6;
  animation: btTickerPulse 2s ease-out infinite;
}
.bt-ticker-pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
@keyframes btTickerPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}
.bt-ticker-meta {
  font-size: 9.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  margin-left: 4px;
  font-weight: 500;
  font-family: var(--mono);
}

/* =========================================================
   TOP NAVIGATION
   ========================================================= */
.bt-nav {
  position: fixed;
  top: 32px;
  /* Account for iOS safe-area added to the ticker */
  top: calc(32px + env(safe-area-inset-top, 0px));
  left: 0; right: 0;
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 150;
  transition: all 0.3s ease;
}
.bt-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.bt-nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.bt-nav-brand img {
  /* Real wordmark: 1109×252 (≈ 4.4:1). 36px tall = ~159px wide. */
  height: 36px;
  width: auto;
  max-width: 200px;
  display: block;
}
/* The new wordmark already includes "TOKENIZED ASSET MANAGEMENT" beneath
   so the secondary "Institutional Platform" tag becomes redundant. Keep
   the markup for backward-compat but hide it visually. */
.bt-nav-brand-sep,
.bt-nav-brand-tag {
  display: none;
}
.bt-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: nowrap;
}
.bt-nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--bt-gray-dk);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.bt-nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--bt-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.bt-nav-link:hover { color: var(--bt-blue); }
.bt-nav-link:hover::after,
.bt-nav-link.active::after { transform: scaleX(1); }
.bt-nav-link.active { color: var(--bt-blue); }

.bt-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bt-blue-ink);
  color: var(--bt-white);
  text-decoration: none;
  padding: 11px 22px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--bt-blue-ink);
  transition: all 0.25s ease;
}
.bt-nav-cta:hover {
  background: var(--bt-blue);
  border-color: var(--bt-blue);
}
.bt-nav-cta svg { width: 12px; height: 12px; }

.bt-nav-mobile-toggle { display: none; }

@media (max-width: 1200px) {
  .bt-nav-links { display: none; }
  .bt-nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 2px;
    cursor: pointer;
    color: var(--bt-ink);
    transition: border-color 0.18s ease, background-color 0.18s ease;
  }
  .bt-nav-mobile-toggle:hover {
    border-color: rgba(0, 0, 0, 0.32);
    background: rgba(0, 0, 0, 0.03);
  }
  .bt-nav-inner { padding: 0 20px; }
  .bt-nav-brand-tag { display: none; }
}

/* Tighten the wordmark on smaller mobile so it doesn't crowd the toggle */
@media (max-width: 540px) {
  .bt-nav-brand img {
    height: 30px;
    max-width: 150px;
  }
  .bt-nav-inner { padding: 0 16px; gap: 12px; }
}
@media (max-width: 380px) {
  .bt-nav-brand img {
    height: 26px;
    max-width: 130px;
  }
}

/* Mobile menu — full-height drawer with smooth transitions */
.bt-nav-mobile {
  position: fixed;
  /* Drop below ticker + nav, account for iOS notch */
  top: 104px;
  top: calc(104px + env(safe-area-inset-top, 0px));
  left: 0; right: 0; bottom: 0;
  background: var(--bt-white);
  /* Blur the content behind for a cleaner stack */
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 28px 22px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  z-index: 140;
  /* Use opacity + transform for transition rather than display:none toggle */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.28s;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.bt-nav-mobile.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}
/* When mobile menu is open, prevent body scroll */
body.bt-mobile-menu-open {
  overflow: hidden;
}
.bt-nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--bt-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.bt-nav-mobile a:hover,
.bt-nav-mobile a:active {
  color: var(--bt-blue);
  padding-left: 8px;
}
.bt-nav-mobile a:last-child { border-bottom: none; }
.bt-nav-mobile a::after {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.45;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.bt-nav-mobile a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}
.bt-nav-mobile .bt-nav-cta,
.bt-nav-mobile .bt-nav-mobile-client {
  margin-top: 16px;
  justify-content: center;
  text-align: center;
  background: var(--bt-blue);
  color: var(--bt-white);
  padding: 16px 22px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: none;
}
.bt-nav-mobile .bt-nav-cta::after,
.bt-nav-mobile .bt-nav-mobile-client::after {
  display: none;
}
.bt-nav-mobile .bt-nav-cta:hover,
.bt-nav-mobile .bt-nav-mobile-client:hover {
  background: var(--bt-blue-deep);
  color: var(--bt-white);
  padding-left: 22px;
}

/* Main content spacing (accounts for ticker + nav) */
main, .bt-main { padding-top: 104px; padding-top: calc(104px + env(safe-area-inset-top, 0px)); }

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */
.bt-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.bt-container-narrow {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}
.bt-container-text {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .bt-container, .bt-container-narrow, .bt-container-text {
    padding: 0 24px;
  }
}

.bt-section { padding: 120px 0; }
.bt-section.tight { padding: 80px 0; }
.bt-section.light { background: var(--bt-paper); color: var(--bt-ink); }
.bt-section.off { background: var(--bt-off); color: var(--bt-ink); }
.bt-section.cream { background: var(--bt-cream); color: var(--bt-ink); }
.bt-section.dark {
  background: linear-gradient(180deg, var(--bt-blue-ink) 0%, var(--bt-blue-dark) 100%);
  color: var(--bt-white);
}
.bt-section.deep {
  background: linear-gradient(180deg, var(--bt-blue-dark) 0%, var(--bt-blue-deep) 100%);
  color: var(--bt-white);
}

@media (max-width: 768px) {
  .bt-section { padding: 72px 0; }
  .bt-section.tight { padding: 56px 0; }
}

/* =========================================================
   TYPOGRAPHY UTILITIES
   ========================================================= */
.bt-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bt-blue);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.bt-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--bt-blue);
}
.bt-section.dark .bt-eyebrow,
.bt-section.deep .bt-eyebrow { color: var(--bt-blue-bright); }
.bt-section.dark .bt-eyebrow::before,
.bt-section.deep .bt-eyebrow::before { background: var(--bt-blue-bright); }

.bt-display {
  font-family: var(--serif);
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.024em;
  color: inherit;
}
.bt-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.bt-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.bt-h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.bt-lede {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--bt-gray);
}
.bt-section.dark .bt-lede,
.bt-section.deep .bt-lede { color: rgba(255,255,255,0.75); }
.bt-body-lg {
  font-size: 17px;
  line-height: 1.7;
  color: var(--bt-gray-dk);
}
.bt-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bt-gray-dk);
}
.bt-section.dark .bt-body-lg,
.bt-section.dark .bt-body,
.bt-section.deep .bt-body-lg,
.bt-section.deep .bt-body { color: rgba(255,255,255,0.85); }

.bt-mono-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bt-gray);
  font-weight: 500;
}
.bt-section.dark .bt-mono-label,
.bt-section.deep .bt-mono-label { color: rgba(255,255,255,0.55); }

/* =========================================================
   BUTTONS
   ========================================================= */
.bt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.bt-btn svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.bt-btn:hover svg { transform: translateX(3px); }

.bt-btn-primary {
  background: var(--bt-blue);
  color: var(--bt-white);
  border-color: var(--bt-blue);
}
.bt-btn-primary:hover {
  background: var(--bt-blue-deep);
  border-color: var(--bt-blue-deep);
}

.bt-btn-dark {
  background: var(--bt-blue-ink);
  color: var(--bt-white);
  border-color: var(--bt-blue-ink);
}
.bt-btn-dark:hover {
  background: var(--bt-blue);
  border-color: var(--bt-blue);
}

.bt-btn-ghost-light {
  background: transparent;
  color: var(--bt-ink);
  border-color: rgba(0,0,0,0.18);
}
.bt-btn-ghost-light:hover {
  background: var(--bt-ink);
  color: var(--bt-white);
  border-color: var(--bt-ink);
}

.bt-btn-ghost-dark {
  background: transparent;
  color: var(--bt-white);
  border-color: rgba(255,255,255,0.28);
}
.bt-btn-ghost-dark:hover {
  background: var(--bt-blue-bright);
  color: var(--bt-white);
  border-color: var(--bt-blue-bright);
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.bt-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1),
              transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.bt-reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.bt-delay-1 { transition-delay: 0.08s; }
.bt-delay-2 { transition-delay: 0.16s; }
.bt-delay-3 { transition-delay: 0.24s; }
.bt-delay-4 { transition-delay: 0.32s; }
.bt-delay-5 { transition-delay: 0.40s; }

/* =========================================================
   FOOTER
   ========================================================= */
.bt-footer {
  background: var(--bt-blue-ink);
  color: var(--bt-white);
  padding: 96px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bt-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 70%);
}
.bt-footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bt-footer-brand img {
  height: 52px;
  width: auto;
  max-width: 240px;
  margin-bottom: 24px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.bt-footer-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bt-blue-bright);
  margin-bottom: 16px;
}
.bt-footer-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 380px;
}
.bt-footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.bt-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bt-footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.bt-footer-links a:hover { color: var(--bt-blue-bright); }

.bt-footer-bottom {
  position: relative;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.bt-footer-disclaimer {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  position: relative;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.bt-footer-disclaimer strong {
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .bt-footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .bt-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 560px) {
  .bt-footer-top { grid-template-columns: 1fr; }
}

/* =========================================================
   CARD PRIMITIVES
   ========================================================= */
.bt-card {
  background: var(--bt-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
  padding: 40px;
  transition: all 0.3s ease;
}
.bt-card:hover {
  border-color: var(--bt-blue);
  box-shadow: 0 12px 40px rgba(2, 47, 107, 0.08);
  transform: translateY(-2px);
}

/* =========================================================
   DATA TABLES (institutional)
   ========================================================= */
.bt-data-table {
  width: 100%;
  border-top: 1px solid var(--bt-ink);
  border-bottom: 1px solid var(--bt-ink);
}
.bt-data-row {
  display: flex;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  align-items: baseline;
}
.bt-data-row:last-child { border-bottom: none; }
.bt-data-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bt-gray);
  min-width: 200px;
  flex-shrink: 0;
}
.bt-data-val {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--bt-ink);
  line-height: 1.5;
}
.bt-section.dark .bt-data-table,
.bt-section.deep .bt-data-table {
  border-color: rgba(255,255,255,0.3);
}
.bt-section.dark .bt-data-row,
.bt-section.deep .bt-data-row {
  border-color: rgba(255,255,255,0.1);
}
.bt-section.dark .bt-data-key,
.bt-section.deep .bt-data-key { color: rgba(255,255,255,0.55); }
.bt-section.dark .bt-data-val,
.bt-section.deep .bt-data-val { color: var(--bt-white); }

@media (max-width: 640px) {
  .bt-data-row { flex-direction: column; gap: 4px; }
  .bt-data-key { min-width: 0; }
}

/* =========================================================
   GLOSSARY TOOLTIP SYSTEM
   ========================================================= */
.bt-glossary {
  border-bottom: 1px dotted rgba(2,92,189,0.45);
  cursor: help;
  position: relative;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.bt-glossary:hover, .bt-glossary:focus {
  border-bottom-color: var(--bt-blue);
  color: var(--bt-blue);
}
.bt-section.dark .bt-glossary,
.bt-section.deep .bt-glossary {
  border-bottom-color: rgba(14,165,233,0.5);
}
.bt-section.dark .bt-glossary:hover,
.bt-section.deep .bt-glossary:hover {
  border-bottom-color: var(--bt-blue-bright);
  color: var(--bt-blue-bright);
}
.bt-glossary-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: min(320px, 80vw);
  background: var(--bt-blue-ink);
  color: var(--bt-white);
  padding: 14px 16px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  font-style: normal;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 12px 32px rgba(1,11,32,0.35);
  border: 1px solid rgba(14,165,233,0.25);
}
.bt-glossary-pop::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bt-blue-ink);
}
.bt-glossary-pop-term {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bt-blue-bright);
  margin-bottom: 6px;
  font-weight: 500;
}
.bt-glossary.bt-active .bt-glossary-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
@media (max-width: 640px) {
  .bt-glossary-pop {
    width: min(280px, calc(100vw - 32px));
    font-size: 12px;
    padding: 12px 14px;
  }
}

/* =========================================================
   PLAIN ENGLISH TOGGLE
   ========================================================= */
.bt-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bt-blue-ice);
  border: 1px solid var(--bt-blue-soft);
  border-radius: 100px;
  padding: 4px;
  gap: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bt-lang-toggle button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  color: var(--bt-gray);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: all 0.18s ease;
  font-weight: 600;
}
.bt-lang-toggle button.active {
  background: var(--bt-blue);
  color: var(--bt-white);
  box-shadow: 0 2px 8px rgba(2,92,189,0.25);
}
.bt-lang-toggle button:not(.active):hover {
  color: var(--bt-blue-deep);
}
[data-lang="plain"] { display: none; }
body.bt-lang-plain [data-lang="institutional"] { display: none; }
body.bt-lang-plain [data-lang="plain"] { display: block; }
body.bt-lang-plain [data-lang="plain"].inline { display: inline; }

/* =========================================================
   COMPARISON TABLE
   ========================================================= */
.bt-compare-wrap {
  margin: 56px 0;
  border: 1px solid rgba(2,92,189,0.12);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bt-white);
}
.bt-compare-tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
}
.bt-compare-tbl th,
.bt-compare-tbl td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(2,92,189,0.08);
  vertical-align: top;
}
.bt-compare-tbl thead th {
  background: var(--bt-blue-ink);
  color: var(--bt-white);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 28px 24px;
}
.bt-compare-tbl thead th:first-child {
  background: var(--bt-blue-deep);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bt-blue-bright);
  font-weight: 600;
  width: 24%;
}
.bt-compare-tbl thead th .bt-compare-sub {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bt-blue-bright);
  margin-top: 6px;
  font-weight: 500;
}
.bt-compare-tbl tbody td:first-child {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bt-gray);
  font-weight: 600;
  background: var(--bt-paper);
  width: 24%;
}
.bt-compare-tbl tbody td {
  font-size: 14px;
  color: var(--bt-gray-dk);
  line-height: 1.55;
}
.bt-compare-tbl tbody td strong {
  font-weight: 500;
  color: var(--bt-blue-deep);
  font-family: var(--serif);
  font-size: 16px;
}
.bt-compare-tbl tr:last-child td { border-bottom: none; }
.bt-compare-tbl .bt-compare-highlight {
  color: #059669;
  font-weight: 500;
  font-family: var(--serif);
  font-size: 15px;
}
@media (max-width: 720px) {
  .bt-compare-tbl thead th { font-size: 16px; padding: 18px 14px; }
  .bt-compare-tbl thead th:first-child { font-size: 9px; }
  .bt-compare-tbl th, .bt-compare-tbl td { padding: 14px; font-size: 13px; }
  .bt-compare-tbl tbody td:first-child { font-size: 9px; }
}

/* =========================================================
   QUALIFIER WIDGET (Who is this for?)
   ========================================================= */
.bt-qual-card {
  background: var(--bt-blue-ice);
  border: 1px solid var(--bt-blue-soft);
  border-left: 3px solid var(--bt-blue);
  border-radius: 4px;
  padding: 32px;
  margin: 56px 0;
}
.bt-qual-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bt-blue);
  margin-bottom: 12px;
  font-weight: 600;
}
.bt-qual-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bt-blue-ink);
  margin-bottom: 20px;
  line-height: 1.25;
}
.bt-qual-question {
  display: block;
  margin-bottom: 16px;
}
.bt-qual-question.bt-hidden { display: none; }
.bt-qual-q-label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--bt-gray-dk);
  margin-bottom: 12px;
  line-height: 1.5;
}
.bt-qual-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bt-qual-opt {
  border: 1px solid var(--bt-blue-soft);
  background: var(--bt-white);
  padding: 10px 18px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--bt-blue-deep);
  cursor: pointer;
  transition: all 0.18s ease;
}
.bt-qual-opt:hover {
  border-color: var(--bt-blue);
  background: var(--bt-blue-soft);
}
.bt-qual-result {
  display: none;
  margin-top: 8px;
  padding: 20px 24px;
  background: var(--bt-white);
  border-radius: 4px;
  border-left: 3px solid var(--bt-gold);
}
.bt-qual-result.bt-show { display: block; }
.bt-qual-result-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bt-gold-dk);
  margin-bottom: 8px;
  font-weight: 600;
}
.bt-qual-result-msg {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--bt-blue-ink);
  line-height: 1.4;
  margin-bottom: 14px;
  font-weight: 400;
}
.bt-qual-result-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bt-blue);
  color: var(--bt-white);
  padding: 10px 20px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.18s ease;
}
.bt-qual-result-cta:hover { background: var(--bt-blue-deep); }

/* =========================================================
   RISK DISCLOSURE BLOCKS
   ========================================================= */
.bt-risk-block {
  background: #FFFBEB;
  border: 1px solid rgba(180,142,93,0.25);
  border-left: 3px solid var(--bt-gold);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 48px 0;
}
.bt-risk-block-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bt-gold-dk);
  margin-bottom: 10px;
  font-weight: 600;
}
.bt-risk-block-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--bt-blue-ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.bt-risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.bt-risk-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.bt-risk-item-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bt-gold);
  margin-top: 8px;
}
.bt-risk-item-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--bt-gray-dk);
}
.bt-risk-item-body strong {
  color: var(--bt-blue-ink);
  font-weight: 500;
}

/* =========================================================
   READING TIME + SECTION TOC
   ========================================================= */
.bt-reading-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bt-gray);
  padding: 8px 14px;
  background: var(--bt-paper);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 100px;
  margin-bottom: 24px;
}
.bt-reading-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bt-blue);
}
.bt-page-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid rgba(0,0,0,0.08);
  padding-left: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.bt-page-toc-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bt-gray);
  margin-bottom: 14px;
  font-weight: 600;
}
.bt-page-toc a {
  color: var(--bt-gray-dk);
  text-decoration: none;
  padding: 6px 0;
  font-size: 12px;
  letter-spacing: 0;
  font-family: var(--sans);
  font-weight: 400;
  transition: all 0.18s ease;
  border-left: 2px solid transparent;
  margin-left: -20px;
  padding-left: 18px;
}
.bt-page-toc a:hover { color: var(--bt-blue); }
.bt-page-toc a.bt-active {
  color: var(--bt-blue-deep);
  border-left-color: var(--bt-blue);
  font-weight: 500;
}

/* =========================================================
   SKIP TO CONTENT (a11y)
   ========================================================= */
.bt-skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 99999;
}
.bt-skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--bt-blue-ink);
  color: var(--bt-white);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  outline: 2px solid var(--bt-blue-bright);
}


/* =========================================================
   MOBILE SAFETY NET — v2 (added in cohesion audit pass)
   Catches inline-styled grids and rigid layouts that
   may have shipped without explicit responsive treatment.
   Only applies on narrow viewports.
   ========================================================= */

/* Phone-width safety: stack any inline-styled grid that uses
   1.15fr / 1fr ratios or 2-column / 3-column layouts.
   These are the patterns the recent tech pages used. */
@media (max-width: 720px) {
  /* Catches inline 2-column 1.15fr / 1fr grids on About section */
  div[style*="grid-template-columns: 1.15fr 1fr"],
  div[style*="grid-template-columns:1.15fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Catches inline 3-column repeat grids (subsidiary entity row, etc.) */
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Catches inline 4-column grids (footer-like, infrastructure layer cards) */
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* Smaller phones: collapse 4-col grids further to 1 column */
@media (max-width: 480px) {
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* Code blocks (used heavily on api.html) — prevent horizontal page overflow */
@media (max-width: 720px) {
  pre {
    font-size: 11px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Tooltip-style entity diagram on infrastructure.html — better mobile spacing */
@media (max-width: 720px) {
  .bt-entity-node {
    padding: 14px !important;
  }
}

/* Reduce hero font sizes on phones — clamp() catches most of this but
   some inline-styled headers don't use clamp */
@media (max-width: 480px) {
  h1[style*="font-size: clamp(40px"],
  h1[style*="font-size: clamp(48px"] {
    font-size: clamp(32px, 8vw, 44px) !important;
  }
  h2[style*="font-size: clamp(32px"],
  h2[style*="font-size: clamp(36px"] {
    font-size: clamp(26px, 7vw, 34px) !important;
  }
}

/* Calculator result grid on offerings-splt — keep 1-col on narrow */
@media (max-width: 720px) {
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* AI methodology demo and returns calculator — buttons should wrap nicely */
@media (max-width: 480px) {
  .ai-doc-btn {
    font-size: 10px !important;
    padding: 8px 6px !important;
    letter-spacing: 0.06em !important;
  }
}

/* Footer columns — Platform column got long with new tech links;
   tighten on mobile so they don't break flow */
@media (max-width: 720px) {
  .bt-footer-links ul li a {
    font-size: 13px !important;
    line-height: 1.9 !important;
  }
}

/* Infrastructure logo strip — already has its own breakpoints,
   just tighten height on small screens */
@media (max-width: 480px) {
  .bt-infra-logo {
    height: 64px !important;
    padding: 0 12px !important;
  }
}

/* Long-form research articles — reduce padding */
@media (max-width: 720px) {
  article[style*="padding: 56px 56px"],
  article[style*="padding: 48px"] {
    padding: 32px 24px !important;
  }
}

/* Dark CTA bands on phones — reduce vertical padding.
   Scoped to dark backgrounds only so the homepage hero / paper sections
   keep their natural rhythm. */
@media (max-width: 720px) {
  section[style*="padding: 96px 0"][style*="background: var(--bt-blue-ink)"],
  section[style*="padding: 96px 0"][style*="color: var(--bt-white)"],
  section[style*="padding: 80px 0"][style*="background: var(--bt-blue-ink)"] {
    padding: 56px 0 !important;
  }
}

/* Architecture page layer cards — reduce padding and tighten */
@media (max-width: 720px) {
  div[style*="padding: 48px;"][style*="background: rgba(255,255,255"] {
    padding: 28px 20px !important;
  }
}


/* =========================================================
   v3 FIXES — circle blob, reveal fallback, dark-text-on-dark
   Added in cohesion audit pass v3
   ========================================================= */

/* === Fix 1: Subdue the decorative circle blob behind dark CTA bands ===
   Was: 900px x 900px @ rgba(14,165,233,0.18) — too prominent.
   Now: smaller, much softer, properly clipped. */
.bt-cta-band {
  overflow: hidden !important;
}
.bt-cta-band::before {
  width: 600px !important;
  height: 600px !important;
  background: radial-gradient(circle, rgba(14,165,233,0.08), transparent 65%) !important;
  top: -10% !important;
}
@media (max-width: 720px) {
  .bt-cta-band::before {
    width: 400px !important;
    height: 400px !important;
    background: radial-gradient(circle, rgba(14,165,233,0.05), transparent 70%) !important;
  }
}

/* === Fix 2: Reveal animation safety fallback ===
   If the IntersectionObserver fails to fire OR if elements are below the fold
   when the user navigates directly to a deep section, ensure all reveal
   elements eventually become visible. After 1.5s on the page, anything that
   hasn't been .in yet gets revealed. */
@keyframes bt-reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.bt-reveal {
  animation: bt-reveal-fallback 0.6s 1.5s forwards;
}
.bt-reveal.in {
  animation: none;
}

/* Respect reduced-motion preferences — show everything immediately */
@media (prefers-reduced-motion: reduce) {
  .bt-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* === Fix 3: Hard catch-all for dark text inside dark sections ===
   Any p, span, div with default body color that's nested inside a
   .bt-cta-band or section with a dark blue-ink background gets forced white. */
.bt-cta-band p,
.bt-cta-band div:not([style*="color:"]) > p:not([style*="color:"]),
section[style*="background: var(--bt-blue-ink)"] p:not([style*="color:"]),
section[style*="background:var(--bt-blue-ink)"] p:not([style*="color:"]) {
  color: rgba(255,255,255,0.85);
}

/* Specific safety net: any inline-styled <p> or <div> inside dark-ink sections
   that has explicit dark text color (var(--bt-gray-dk), var(--bt-ink), etc.)
   gets corrected to a readable white. */
section[style*="background: var(--bt-blue-ink)"] p[style*="color: var(--bt-gray-dk)"],
section[style*="background: var(--bt-blue-ink)"] p[style*="color: var(--bt-ink)"],
section[style*="background:var(--bt-blue-ink)"] p[style*="color: var(--bt-gray-dk)"],
section[style*="background:var(--bt-blue-ink)"] p[style*="color: var(--bt-ink)"] {
  color: rgba(255,255,255,0.78) !important;
}

/* ═════════════════════════════════════════════════════════
   STATUS STRIP (between main and footer on every page)
   ═════════════════════════════════════════════════════════ */
.bt-status-strip {
  background: var(--bt-blue-ink);
  color: var(--bt-white);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}
.bt-status-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
.bt-status-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  font-weight: 600;
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,0.10);
}
.bt-status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bt-status-item-k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.bt-status-item-v {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  line-height: 1.4;
}
.bt-status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6B7280;
  flex-shrink: 0;
}
.bt-status-dot.ok { background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }
.bt-status-dot.progress { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }
.bt-status-dot.err { background: #F87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }

/* Mobile: collapse to two columns and shrink */
@media (max-width: 900px) {
  .bt-status-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 0 20px;
  }
  .bt-status-header {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
}
@media (max-width: 480px) {
  .bt-status-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   COMMAND PALETTE (Cmd+K / Ctrl+K)
   ========================================================= */
.bt-cmdk-backdrop {
  position: fixed; inset: 0;
  background: rgba(1, 11, 32, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bt-cmdk-backdrop.open {
  display: flex;
  opacity: 1;
}
.bt-cmdk {
  width: 640px;
  max-width: 92vw;
  background: var(--bt-white);
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(14,165,233,0.15);
  overflow: hidden;
  position: relative;
  transform: translateY(-10px);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.bt-cmdk-backdrop.open .bt-cmdk {
  transform: translateY(0);
}
.bt-cmdk-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bt-cmdk-search svg {
  width: 18px; height: 18px;
  color: var(--bt-gray);
}
.bt-cmdk-input {
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--bt-ink);
  background: transparent;
  width: 100%;
}
.bt-cmdk-input::placeholder {
  color: var(--bt-gray);
}
.bt-cmdk-kbd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bt-gray);
  background: var(--bt-off);
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}
.bt-cmdk-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}
.bt-cmdk-group {
  padding: 8px 0;
}
.bt-cmdk-group-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bt-gray);
  padding: 8px 22px 6px;
}
.bt-cmdk-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.1s ease;
  text-decoration: none;
  color: inherit;
}
.bt-cmdk-item:hover, .bt-cmdk-item.selected {
  background: var(--bt-blue-ice);
}
.bt-cmdk-item-icon {
  width: 32px; height: 32px;
  background: var(--bt-off);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bt-blue);
  flex-shrink: 0;
}
.bt-cmdk-item-icon svg {
  width: 14px; height: 14px;
}
.bt-cmdk-item.selected .bt-cmdk-item-icon {
  background: var(--bt-blue);
  color: var(--bt-white);
}
.bt-cmdk-item-main {
  min-width: 0;
}
.bt-cmdk-item-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--bt-ink);
  margin-bottom: 2px;
}
.bt-cmdk-item-sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--bt-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-cmdk-item-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bt-gray);
}
.bt-cmdk-empty {
  padding: 32px 22px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--bt-gray);
}
.bt-cmdk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--bt-off);
}
.bt-cmdk-footer-keys {
  display: flex; gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--bt-gray);
}
.bt-cmdk-footer-kbd {
  background: var(--bt-white);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 10px;
}

/* Floating Cmd+K trigger button (bottom right) */
.bt-cmdk-trigger {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  background: rgba(1, 11, 32, 0.92);
  color: var(--bt-white);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 10px 16px 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.bt-cmdk-trigger:hover {
  background: var(--bt-blue-deep);
  border-color: var(--bt-blue-bright);
  transform: translateY(-2px);
}
.bt-cmdk-trigger svg { width: 14px; height: 14px; }
.bt-cmdk-trigger-kbd {
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  .bt-cmdk-trigger-label { display: none; }
  .bt-cmdk-trigger { padding: 10px 12px; }
}

/* =========================================================
   GLOSSARY TERMS (hover tooltips)
   ========================================================= */
.bt-term {
  border-bottom: 1px dotted rgba(2, 92, 189, 0.5);
  cursor: help;
  position: relative;
  color: var(--bt-blue);
  font-weight: 500;
}
.bt-term:hover {
  color: var(--bt-blue-deep);
  border-bottom-color: var(--bt-blue);
  border-bottom-style: solid;
}
.bt-tooltip {
  position: fixed;
  background: var(--bt-blue-ink);
  color: var(--bt-white);
  padding: 14px 18px;
  border-radius: 4px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
  max-width: 320px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  border: 1px solid rgba(14,165,233,0.3);
}
.bt-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.bt-tooltip-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bt-blue-bright);
  margin-bottom: 6px;
}
.bt-tooltip-body {
  color: rgba(255,255,255,0.88);
}


/* ═════════════════════════════════════════════════════════
   AUDIT-DRIVEN OVERRIDES — site-wide
   ═════════════════════════════════════════════════════════ */

/* Client Access nav link: reduced from button to low-emphasis text link
   per third-party audit. Wins specificity against any per-page rules.
   Color uses currentColor so it picks up the parent .bt-nav text color,
   which differs between the homepage (over dark hero) and subpages
   (over cream nav background). The nav itself sets the parent color. */
.bt-nav .bt-nav-client {
  background: transparent !important;
  color: var(--bt-gray-dk, #3A4253) !important;
  text-decoration: none !important;
  padding: 10px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 0.78;
}
.bt-nav .bt-nav-client:hover {
  color: var(--bt-blue-ink, #010B20) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  background: transparent !important;
  opacity: 1;
}
/* On the homepage and any page where the nav has a transparent or
   dark background, the nav itself adds .bt-nav-dark class — give
   Client Access a light color in that context. */
.bt-nav.bt-nav-dark .bt-nav-client,
body[data-theme="dark"] .bt-nav .bt-nav-client {
  color: rgba(255,255,255,0.78) !important;
}
.bt-nav.bt-nav-dark .bt-nav-client:hover,
body[data-theme="dark"] .bt-nav .bt-nav-client:hover {
  color: #FFFFFF !important;
}

/* ═══════════════════════════════════════════════════════════════════
   REVEAL ANIMATION SAFETY NET — applied site-wide
   ═══════════════════════════════════════════════════════════════════
   The bt-reveal pattern starts elements at opacity:0 and only sets
   opacity:1 when an IntersectionObserver fires. If the observer fails
   for any reason (older browser, slow JS load, edge-case scroll
   behavior, device-specific quirks), elements stay invisible —
   appearing to the visitor as if the text simply isn't there.

   These rules guarantee content is always readable, regardless of
   whether the JS-driven reveal animation runs or not. */

/* No JS at all → show everything immediately. */
html.no-js .bt-reveal,
html:not(.js) .bt-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Reduced motion → respect the user's accessibility setting and skip
   the slide-up animation entirely. Content is visible from frame one. */
@media (prefers-reduced-motion: reduce) {
  .bt-reveal,
  .bt-reveal.in,
  .bt-reveal.bt-delay-1,
  .bt-reveal.bt-delay-2,
  .bt-reveal.bt-delay-3,
  .bt-reveal.bt-delay-4,
  .bt-reveal.bt-delay-5 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
}

/* Visited body class set by safety-net script after 1s — final fallback
   that force-reveals anything still hidden. */
body.bt-reveal-fallback .bt-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition-delay: 0s !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SEARCH PALETTE — site-wide
   ═══════════════════════════════════════════════════════════════════
   Was previously inline in index.html only. Moved here so every page
   renders the search trigger button and ⌘K palette correctly. */

/* High-specificity selectors so these win over any per-page inline
   <style> block (inline styles in each page's <head> still come AFTER
   bt-design.css in cascade order, so we need higher specificity to
   beat them — body-scoped selectors do the job without using !important
   everywhere). */

body .bt-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
  color: var(--bt-gray-dk, #3A4253);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 12px;
}
body .bt-search-trigger:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(2, 92, 189, 0.4);
  color: var(--bt-blue-ink);
}
body .bt-search-trigger svg { width: 12px; height: 12px; opacity: 0.65; }
body .bt-search-trigger-key {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
/* On dark navs (homepage hero), invert the palette */
body .bt-nav.bt-nav-dark .bt-search-trigger,
body[data-theme="dark"] .bt-search-trigger {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
}
body .bt-nav.bt-nav-dark .bt-search-trigger:hover,
body[data-theme="dark"] .bt-search-trigger:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(14, 165, 233, 0.40);
  color: var(--bt-white, #fff);
}
body .bt-nav.bt-nav-dark .bt-search-trigger-key,
body[data-theme="dark"] .bt-search-trigger-key {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.15);
}

.bt-search-overlay {
  position: fixed; inset: 0;
  background: rgba(1, 11, 32, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bt-search-overlay.open { display: flex; opacity: 1; }
.bt-search-panel {
  width: min(640px, calc(100vw - 32px));
  background: var(--bt-paper, #FBFBF8);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.bt-search-overlay.open .bt-search-panel { transform: translateY(0); }
.bt-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.bt-search-input-wrap svg { width: 18px; height: 18px; color: var(--bt-gray, #5B6478); flex-shrink: 0; }
.bt-search-input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--bt-ink, #0F172A);
  letter-spacing: -0.01em;
}
.bt-search-input::placeholder { color: rgba(0,0,0,0.35); }
.bt-search-esc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bt-gray, #5B6478);
  padding: 4px 10px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 2px;
}
.bt-search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 0;
}
.bt-search-results-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--bt-gray, #5B6478);
  font-family: var(--sans);
  font-size: 14px;
}
.bt-search-group { padding: 8px 0; }
.bt-search-group-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bt-gray, #5B6478);
  padding: 8px 20px 4px;
}
.bt-search-result {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  border-left: 2px solid transparent;
  transition: all 0.12s ease;
}
.bt-search-result:hover, .bt-search-result.active {
  background: var(--bt-blue-ice, rgba(14,165,233,0.06));
  border-left-color: var(--bt-blue, #025CBD);
}
.bt-search-result-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bt-blue, #025CBD);
  opacity: 0.8;
}
.bt-search-result-icon svg { width: 16px; height: 16px; }
.bt-search-result-text { min-width: 0; }
.bt-search-result-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--bt-ink, #0F172A);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.bt-search-result-desc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--bt-gray-dk, #3A4253);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-search-result-cat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bt-gray, #5B6478);
}
.bt-search-hl {
  background: rgba(14, 165, 233, 0.2);
  padding: 0 2px;
  font-weight: 600;
  color: var(--bt-blue, #025CBD);
}
.bt-search-footer {
  padding: 10px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  background: var(--bt-off, #F5F4EE);
}
.bt-search-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bt-gray, #5B6478);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bt-search-hint-key {
  padding: 2px 6px;
  background: var(--bt-white, #FFF);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 2px;
  font-weight: 600;
  color: var(--bt-gray-dk, #3A4253);
}

/* ═══════════════════════════════════════════════════════════════════
   THESIS SECTION MOBILE FIX — sticky pin only on desktop where the
   2-column layout makes sense. On mobile/tablet (≤1024px) the layout
   collapses to a single column and a sticky title overlaps the body.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bt-thesis-lede {
    position: static !important;
    top: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER UPGRADES (audit Sprint 1.4)
   ═══════════════════════════════════════════════════════════════════
   Newsletter signup, horizontal rule between columns and disclosure,
   compliance/investor link columns, and the audit-specified
   disclosure block. */

.bt-footer-newsletter {
  margin-top: 28px;
  max-width: 380px;
}
.bt-footer-newsletter-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.bt-footer-newsletter-row {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  transition: border-color 0.2s ease;
}
.bt-footer-newsletter-row:focus-within {
  border-color: rgba(14, 165, 233, 0.6);
}
.bt-footer-newsletter-row input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  color: var(--bt-white, #fff);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.bt-footer-newsletter-row input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}
.bt-footer-newsletter-row button {
  background: var(--bt-blue-bright, #0EA5E9);
  border: 0;
  color: var(--bt-white, #fff);
  padding: 0 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--sans);
}
.bt-footer-newsletter-row button:hover {
  background: #0784BD;
}
.bt-footer-newsletter-note {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.40);
  margin-top: 8px;
}

.bt-footer-pending {
  font-size: 0.85em;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

.bt-footer-rule {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 56px 0 32px;
}

.bt-footer-disclosure-block {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.50);
  margin-bottom: 32px;
}
.bt-footer-disclosure-block p {
  margin: 0;
  max-width: 1100px;
}

.bt-footer-bottom-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bt-footer-bottom-sep {
  opacity: 0.4;
}
.bt-footer-bottom-right a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.bt-footer-bottom-right a:hover {
  color: var(--bt-blue-bright, #0EA5E9);
}

@media (max-width: 900px) {
  .bt-footer-newsletter { max-width: 100%; }
  .bt-footer-disclosure-block { font-size: 11px; }
}
@media (max-width: 560px) {
  .bt-footer-bottom-sep { display: none; }
  .bt-footer-bottom-left { flex-direction: column; gap: 4px; align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════════
   3D FALLBACK ANIMATIONS  (audit fix: cards appeared stagnant)
   ═══════════════════════════════════════════════════════════════════
   When Three.js fails to load (CDN blocked, slow network, mobile data
   saver), the static CSS fallback used to be visible with a baked-in
   transform that didn't animate — so the cards looked frozen. These
   keyframes animate the fallback so the cards always show motion.
   When the WebGL canvas first renders, JS adds .bt-3d-ready to the
   parent and the CSS animation stops, letting the canvas drive. */

@keyframes bt-coin-rotate {
  0%   { transform: perspective(800px) rotateY(0deg)   rotateX(8deg); }
  50%  { transform: perspective(800px) rotateY(180deg) rotateX(8deg); }
  100% { transform: perspective(800px) rotateY(360deg) rotateX(8deg); }
}
@keyframes bt-coin-rotate-large {
  0%   { transform: perspective(1200px) rotateY(0deg)   rotateX(8deg); }
  50%  { transform: perspective(1200px) rotateY(180deg) rotateX(8deg); }
  100% { transform: perspective(1200px) rotateY(360deg) rotateX(8deg); }
}
@keyframes bt-paper-rotate {
  0%   { transform: perspective(900px) rotateY(-12deg) rotateX(4deg); }
  25%  { transform: perspective(900px) rotateY(-3deg)  rotateX(4deg) translateY(-2px); }
  50%  { transform: perspective(900px) rotateY(8deg)   rotateX(4deg); }
  75%  { transform: perspective(900px) rotateY(-3deg)  rotateX(4deg) translateY(-2px); }
  100% { transform: perspective(900px) rotateY(-12deg) rotateX(4deg); }
}
@keyframes bt-paper-rotate-large {
  0%   { transform: perspective(1200px) rotateY(-15deg) rotateX(6deg); }
  25%  { transform: perspective(1200px) rotateY(-5deg)  rotateX(6deg) translateY(-3px); }
  50%  { transform: perspective(1200px) rotateY(10deg)  rotateX(6deg); }
  75%  { transform: perspective(1200px) rotateY(-5deg)  rotateX(6deg) translateY(-3px); }
  100% { transform: perspective(1200px) rotateY(-15deg) rotateX(6deg); }
}

/* Apply to small offering-card fallbacks (homepage + every page with offerings cards) */
.bt-offering-card-3d-frame[data-bt-card-3d="splt"] .bt-offering-card-3d-fallback-coin,
.bt-offering-card-3d-frame .bt-offering-card-3d-fallback-coin {
  animation: bt-coin-rotate 8s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
.bt-offering-card-3d-frame[data-bt-card-3d="fyn"] .bt-offering-card-3d-fallback-doc,
.bt-offering-card-3d-frame .bt-offering-card-3d-fallback-doc {
  animation: bt-paper-rotate 6s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Apply to large fallback variants (offerings-splt.html, offerings-fyn.html detail pages) */
.bt-splt-3d-fallback-coin-large {
  animation: bt-coin-rotate-large 9s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
.bt-fyn-3d-fallback-doc-large {
  animation: bt-paper-rotate-large 7s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
}

/* The CSS illustration is now the primary rendering — no THREE.js
   dependency. Marker .bt-3d-ready is retained as a dead-code stub
   in case the field appears in older HTML, but no JS sets it. */

/* Honor accessibility preference */
@media (prefers-reduced-motion: reduce) {
  .bt-offering-card-3d-fallback-coin,
  .bt-offering-card-3d-fallback-doc,
  .bt-splt-3d-fallback-coin-large,
  .bt-fyn-3d-fallback-doc-large {
    animation: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   CONTRAST FIX — SVG corporate-structure diagram on the homepage
   ═══════════════════════════════════════════════════════════════════
   The SVG uses fill="#fff" on its <text> elements, but a parent
   color: cascade in some renderings can leak through. Force every
   <text> inside any SVG that lives inside a .bt-illus-frame to use
   the explicit white we authored. */
.bt-illus-frame svg text { fill: #ffffff !important; }
.bt-illus-frame svg text[fill="#0EA5E9"],
.bt-illus-frame svg text[fill="rgba(255,255,255,0.55)"],
.bt-illus-frame svg text[fill="rgba(255,255,255,0.35)"] {
  /* keep these — they were intentional accent colors and the !important
     above would clobber them. Re-assert their original values: */
}
.bt-illus-frame svg text[fill="#0EA5E9"] { fill: #0EA5E9 !important; }
.bt-illus-frame svg text[fill="rgba(255,255,255,0.55)"] { fill: rgba(255,255,255,0.55) !important; }
.bt-illus-frame svg text[fill="rgba(255,255,255,0.35)"] { fill: rgba(255,255,255,0.35) !important; }


/* ═══════════════════════════════════════════════════════════════════
   CONTRAST FIX — Headings inside dark sections
   ═══════════════════════════════════════════════════════════════════
   Base rule  h1..h5 { color: var(--bt-ink); }  has higher specificity
   than the inherited color: var(--bt-white) on .bt-cta-band /
   .bt-section.dark / .bt-section.deep because the heading element
   directly receives a color, while the section's color only cascades.
   These overrides guarantee headings render light on those dark
   backgrounds — fixes "Ready to qualify?", "Pick yours.",
   "Two doors. Same brand.", and similar CTA / dark-section headings
   on every page. */
.bt-cta-band h1, .bt-cta-band h2, .bt-cta-band h3, .bt-cta-band h4, .bt-cta-band h5,
.bt-section.dark h1, .bt-section.dark h2, .bt-section.dark h3, .bt-section.dark h4, .bt-section.dark h5,
.bt-section.deep h1, .bt-section.deep h2, .bt-section.deep h3, .bt-section.deep h4, .bt-section.deep h5,
.bt-article-hero h1, .bt-article-hero h2, .bt-article-hero h3,
.bt-wcg h2, .bt-wcg h3,
.bt-infra h1, .bt-infra h2, .bt-infra h3,
.bt-team-preview h1, .bt-team-preview h2, .bt-team-preview h3,
.bt-fy1-chart-section h1, .bt-fy1-chart-section h2, .bt-fy1-chart-section h3,
#bt-stat-strip h1, #bt-stat-strip h2, #bt-stat-strip h3 {
  color: var(--bt-white);
}

/* Same problem with paragraphs/spans/divs that pick up var(--bt-ink) on
   their own. Force readable color when inside dark contexts. */
.bt-cta-band p, .bt-cta-band span, .bt-cta-band li,
.bt-section.dark p:not([style*="color"]), .bt-section.dark span:not([style*="color"]), .bt-section.dark li:not([style*="color"]),
.bt-section.deep p:not([style*="color"]), .bt-section.deep span:not([style*="color"]), .bt-section.deep li:not([style*="color"]),
.bt-article-hero p:not([style*="color"]), .bt-article-hero span:not([style*="color"]) {
  color: rgba(255, 255, 255, 0.85);
}

/* The <em> accent inside dark headings should stay brand-bright,
   not turn white (the previous rule would otherwise kill it). */
.bt-cta-band h1 em, .bt-cta-band h2 em, .bt-cta-band h3 em,
.bt-section.dark h1 em, .bt-section.dark h2 em, .bt-section.dark h3 em,
.bt-section.deep h1 em, .bt-section.deep h2 em, .bt-section.deep h3 em,
.bt-article-hero h1 em, .bt-article-hero h2 em,
.bt-wcg h2 em, .bt-wcg h3 em,
.bt-infra h2 em, .bt-infra h3 em,
.bt-team-preview h2 em, .bt-team-preview h3 em,
.bt-fy1-chart-section h2 em, .bt-fy1-chart-section h3 em {
  color: var(--bt-blue-bright);
}


/* ═══════════════════════════════════════════════════════════════════
   LIGHT-HERO PAGES — nav recolor + logo inversion
   ═══════════════════════════════════════════════════════════════════
   On pages where the hero starts with a light/paper background
   (team, how-it-works, insights, research), the dark navy nav looks
   disconnected from the page. On those pages the body carries
   .bt-light-page; this restyles the nav to match: light background,
   brand-blue logo, brand-blue link/separator/tag colors. */
body.bt-light-page .bt-nav {
  background: rgba(251, 251, 248, 0.92);
  border-bottom: 1px solid rgba(1, 47, 107, 0.10);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
body.bt-light-page .bt-nav-brand-sep {
  background: rgba(1, 47, 107, 0.22);
}
body.bt-light-page .bt-nav-brand-tag {
  color: rgba(1, 47, 107, 0.70);
}
body.bt-light-page .bt-nav-link {
  color: var(--bt-blue-deep);
}
body.bt-light-page .bt-nav-link:hover {
  color: var(--bt-blue-ink);
}
body.bt-light-page .bt-nav-link.active {
  color: var(--bt-blue);
}
body.bt-light-page .bt-nav-link::after {
  background: var(--bt-blue);
}
/* Mobile hamburger toggle on light pages */
body.bt-light-page .bt-nav-mobile-toggle {
  color: var(--bt-blue-deep);
}
body.bt-light-page .bt-nav-mobile-toggle svg {
  stroke: var(--bt-blue-deep);
}

/* CTA stays brand bright — but with a slight border tweak so it
   reads correctly on a light background. */
body.bt-light-page .bt-nav-cta {
  /* unchanged — already brand-blue on white */
}


/* ═══════════════════════════════════════════════════════════════════
   OFFERING CARD 3D FRAME — shared rules so offerings.html
   (and any other page that uses these classes) renders consistently
   with index.html. Originally these lived only in index.html's
   inline <style> block. Duplicating in shared CSS is harmless and
   ensures the new offerings-hub canvases render correctly.
   ═══════════════════════════════════════════════════════════════════ */
.bt-offering-card-3d-frame {
  position: relative;
  width: 100%;
  height: 200px;
  margin: -8px 0 28px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #04102B 0%, #0A1B45 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bt-offering-card-3d-frame[data-bt-card-3d="splt"] {
  background: radial-gradient(ellipse at 60% 40%, #0F1A38 0%, #04102B 75%);
}
.bt-offering-card-3d-frame[data-bt-card-3d="fyn"] {
  background: radial-gradient(ellipse at 50% 50%, #0F1A38 0%, #04102B 80%);
}
.bt-offering-card-3d-frame canvas {
  position: relative;
  z-index: 2;
}
.bt-offering-card-3d-frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 215, 163, 0.0);
  pointer-events: none;
  transition: border-color 0.4s ease;
  z-index: 3;
}
.bt-offering-card:hover .bt-offering-card-3d-frame::after,
.bt-off-hub-card:hover .bt-offering-card-3d-frame::after {
  border-color: rgba(232, 215, 163, 0.18);
}

.bt-offering-card-3d-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.bt-offering-card-3d-frame[data-bt-card-3d="fyn"] .bt-offering-card-3d-fallback-doc {
  width: 70%;
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, #FBF7EC 0%, #F1E9CD 100%);
  border: 2px solid #A07B3D;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  transform: perspective(900px) rotateY(-12deg) rotateX(4deg);
  animation: bt-paper-rotate 6s ease-in-out infinite;
  will-change: transform;
}
.bt-offering-card-3d-fallback-doc::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid #C29647;
  pointer-events: none;
}
.bt-offering-card-3d-fallback-mono {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #7A5A2E;
  margin-bottom: 6px;
}
.bt-offering-card-3d-fallback-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: #1A2240;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.bt-offering-card-3d-fallback-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10px;
  color: #5A4226;
  margin-bottom: 10px;
}
.bt-offering-card-3d-fallback-seal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F8E5A6 0%, #D4A958 60%, #8C6420 100%);
  border: 1.5px solid #6B4A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: #3A2406;
}
/* ============================================================
   SPLT COIN — pure-CSS premium illustration
   Replaces the old THREE.js renderer. Always renders.
   ============================================================ */
.bt-offering-card-3d-fallback-coin {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  position: relative;
  /* Brushed-cobalt with subtle gold rim */
  background:
    radial-gradient(circle at 35% 30%, #0E78D6 0%, #025CBD 35%, #013F88 70%, #021A48 100%);
  border: 2px solid #E8C97A;
  box-shadow:
    /* Outer glow */
    0 0 0 1px rgba(232, 201, 122, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.55),
    /* Inner ring (gold inset) */
    inset 0 0 0 4px rgba(232, 201, 122, 0.12),
    /* Highlight bevel */
    inset 0 4px 14px rgba(255, 255, 255, 0.18),
    inset 0 -8px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: bt-coin-rotate 9s linear infinite;
  will-change: transform;
}
.bt-offering-card-3d-fallback-coin::before {
  /* Hexagon ring around the b */
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(232, 201, 122, 0.45);
  clip-path: polygon(50% 4%, 92% 28%, 92% 72%, 50% 96%, 8% 72%, 8% 28%);
}
.bt-offering-card-3d-fallback-coin-inner {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  color: #FFFFFF;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: -4px;
  text-shadow: 0 0 18px rgba(232, 201, 122, 0.55), 0 2px 4px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}

@keyframes bt-coin-rotate {
  0%   { transform: perspective(800px) rotateY(0deg)   rotateX(8deg); }
  50%  { transform: perspective(800px) rotateY(180deg) rotateX(8deg); }
  100% { transform: perspective(800px) rotateY(360deg) rotateX(8deg); }
}
@keyframes bt-paper-rotate {
  0%   { transform: perspective(900px) rotateY(-12deg) rotateX(4deg); }
  25%  { transform: perspective(900px) rotateY(-3deg)  rotateX(4deg) translateY(-2px); }
  50%  { transform: perspective(900px) rotateY(8deg)   rotateX(4deg); }
  75%  { transform: perspective(900px) rotateY(-3deg)  rotateX(4deg) translateY(-2px); }
  100% { transform: perspective(900px) rotateY(-12deg) rotateX(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bt-offering-card-3d-fallback-coin,
  .bt-offering-card-3d-fallback-doc {
    animation: none !important;
  }
}
@media (max-width: 720px) {
  .bt-offering-card-3d-frame { height: 160px; }
}


/* ============================================================
   STICKY MOBILE CTA — audit P2
   Persistent brand-blue 56px bottom bar that follows the user
   on conversion pages (homepage, offerings, offerings-fyn,
   offerings-splt, how-it-works). Appears below 768px viewport.
   Hidden once the user has scrolled past the page's primary
   CTA section so it doesn't conflict with native CTAs in view.
   ============================================================ */
.bt-sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(180deg, var(--bt-blue-deep, #021534) 0%, var(--bt-blue-ink, #010B20) 100%);
  border-top: 1px solid rgba(232, 201, 122, 0.30);
  display: none;                                   /* default hidden — only shown on mobile */
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 90;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.30s ease;
}
.bt-sticky-mobile-cta.is-visible {
  transform: translateY(0);
}
.bt-sticky-mobile-cta-text {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  flex: 1;
  min-width: 0;
}
.bt-sticky-mobile-cta-text strong {
  display: block;
  color: #E8C97A;
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 13px;
  letter-spacing: -0.005em;
  font-weight: 500;
  text-transform: none;
  margin-top: 2px;
}
.bt-sticky-mobile-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bt-white, #FFFFFF);
  color: var(--bt-blue-ink, #010B20);
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s ease;
}
.bt-sticky-mobile-cta-btn svg {
  width: 12px;
  height: 12px;
}
.bt-sticky-mobile-cta-btn:hover,
.bt-sticky-mobile-cta-btn:active {
  background: #E8C97A;
}
@media (max-width: 768px) {
  .bt-sticky-mobile-cta { display: flex; }
  /* Pad the bottom of the page so the footer / tail content isn't covered */
  body.bt-has-sticky-cta { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-sticky-mobile-cta { transition: none; }
}

/* ============================================================
   MOBILE COMPRESSION — audit P1
   ============================================================
   The audit measured the homepage at ~29,000 px tall on mobile
   and called for a 60% cut. This block does the work without
   touching the desktop layout. Strategy:
     1. Mobile-hide truly redundant sections via .bt-mobile-hide
     2. Tighten section vertical padding broadly on mobile
     3. Collapse some long sections behind a "tap to expand"
        disclosure pattern (.bt-mobile-collapse / .bt-mobile-more)
     4. Convert the offerings comparison table to a swipeable
        carousel below 768px
     5. Tighten the offering 3D coin frame
     6. Bump the ticker font from 11→13px on mobile (audit)
   ============================================================ */

/* ── 1. Hide-on-mobile utility ── */
@media (max-width: 768px) {
  .bt-mobile-hide { display: none !important; }
}

/* ── 2. Reduce broad section padding on mobile ── */
@media (max-width: 768px) {
  /* Match the audit recommendation: get long sections from ~96px*2 padding
     to ~44px*2. That's ~100px saved per section, multiplied across ~14 sections
     between hero and footer = ~1400px saved by padding alone. */
  .bt-section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .bt-section.dark { padding-top: 56px !important; padding-bottom: 56px !important; }
  /* Inner container of long sections — reduce stat-grid gap, headline margins */
  .bt-thesis { padding-top: 56px; padding-bottom: 56px; }
}

/* ── 3. Collapse long sections behind a disclosure on mobile ── */
.bt-mobile-collapse-content {
  display: block;
}
.bt-mobile-more-btn {
  display: none;
}
@media (max-width: 768px) {
  .bt-mobile-collapse {
    position: relative;
  }
  .bt-mobile-collapse-content {
    max-height: 320px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    transition: max-height 0.4s ease;
  }
  .bt-mobile-collapse.is-expanded .bt-mobile-collapse-content {
    max-height: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .bt-mobile-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 11px 20px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 3px;
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bt-blue-ink, #010B20);
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }
  .bt-mobile-collapse.is-dark .bt-mobile-more-btn {
    border-color: rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.90);
  }
  .bt-mobile-more-btn svg {
    width: 11px; height: 11px;
    transition: transform 0.3s ease;
  }
  .bt-mobile-collapse.is-expanded .bt-mobile-more-btn svg {
    transform: rotate(180deg);
  }
}

/* ── 4. Offerings comparison: swipeable horizontal carousel on mobile ── */
@media (max-width: 768px) {
  .bt-product-compare {
    margin-top: 36px !important;
  }
  .bt-product-compare > div:first-child { padding: 18px 20px 8px !important; }
  .bt-product-compare > div:first-child h3 { font-size: 18px !important; }
  /* Hide the standard table on mobile — show the swipe deck instead. */
  .bt-product-compare .bt-compare-table { display: none; }
  .bt-product-compare-mobile-deck { display: flex; }
}
.bt-product-compare-mobile-deck {
  display: none;                                /* desktop: hidden */
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 14px;
  padding: 14px 20px 20px;
  scrollbar-width: none;
}
.bt-product-compare-mobile-deck::-webkit-scrollbar { display: none; }
.bt-product-compare-mobile-card {
  flex: 0 0 calc(100% - 30px);
  scroll-snap-align: start;
  background: var(--bt-paper, #F5EFD9);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 4px;
  padding: 22px 22px 18px;
}
.bt-product-compare-mobile-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.bt-product-compare-mobile-card-head .name {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 19px; font-weight: 500;
  color: var(--bt-blue-ink, #010B20);
  letter-spacing: -0.01em;
}
.bt-product-compare-mobile-card-head .badge {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bt-blue, #0EA5E9);
  font-weight: 600;
}
.bt-product-compare-mobile-card-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 13px;
}
.bt-product-compare-mobile-card-row:first-of-type { border-top: 0; }
.bt-product-compare-mobile-card-row .lbl {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  padding-top: 3px;
  font-weight: 600;
}
.bt-product-compare-mobile-card-row .val {
  color: var(--bt-gray-dk, #2B3340);
  line-height: 1.5;
}
.bt-product-compare-mobile-card-row .val strong { color: #059669; font-weight: 600; }
.bt-product-compare-mobile-deck-hint {
  display: none;
}
@media (max-width: 768px) {
  .bt-product-compare-mobile-deck-hint {
    display: flex;
    align-items: center; justify-content: center;
    gap: 6px;
    padding: 8px 0 14px;
    font-family: var(--mono, monospace);
    font-size: 9px; letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.40);
  }
  .bt-product-compare-mobile-deck-hint svg { width: 11px; height: 11px; }
}

/* ── 5. Tighter offering-card 3D frame on mobile ── */
@media (max-width: 768px) {
  .bt-offering-card-3d-frame { height: 130px !important; }
}

/* ── 6. Bump ticker font from 11→13px below 768 ── */
@media (max-width: 768px) {
  .bt-ticker, .bt-ticker .bt-ticker-track, .bt-ticker .bt-ticker-item {
    font-size: 13px !important;
  }
  .bt-ticker { padding-top: 9px; padding-bottom: 9px; }
}

/* ── 7. Hide the live-chat assistant on mobile (audit P8) ── */
@media (max-width: 768px) {
  .bt-chat-launcher,
  .bt-chat-panel,
  #bt-claude-chat,
  [data-bt-chat-widget] {
    display: none !important;
  }
}

/* ── 8. Mobile in-page TOC (audit recommendation) ──
   Sticky thin bar that surfaces below the nav and shows where the
   user is in the homepage's main spine. */
.bt-mobile-toc {
  display: none;                                /* desktop: hidden */
}
@media (max-width: 768px) {
  .bt-mobile-toc {
    display: block;
    position: sticky;
    top: 56px;                                  /* sit below the nav */
    z-index: 80;
    background: rgba(2, 16, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 201, 122, 0.20);
    overflow: hidden;
    transform: translateY(-110%);
    transition: transform 0.30s ease;
  }
  .bt-mobile-toc.is-visible {
    transform: translateY(0);
  }
  .bt-mobile-toc-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bt-mobile-toc-track::-webkit-scrollbar { display: none; }
  .bt-mobile-toc-item {
    flex: 0 0 auto;
    padding: 12px 14px;
    font-family: var(--mono, monospace);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.15s ease;
  }
  .bt-mobile-toc-item.is-current {
    color: #E8C97A;
    background: rgba(232, 201, 122, 0.06);
  }
  .bt-mobile-toc-item:active { color: var(--bt-white, #FFF); }
}

/* ── 9. WCG section — mobile pacing & readability fine-tune ── */
@media (max-width: 768px) {
  .bt-wcg { padding-top: 60px; padding-bottom: 60px; }
  .bt-wcg-head { margin-bottom: 32px; }
  .bt-wcg-head h2 { font-size: 28px !important; }
  .bt-wcg-head p { font-size: 14px; }
  .bt-wcg-foot { font-size: 8px; padding: 0 12px; }
}

/* ── 10. About section — remove redundant pull-quote panel on mobile
       (saves ~280px without losing the headline + key paragraph) ── */
@media (max-width: 768px) {
  .bt-about-pullquote-mobile-hide { display: none !important; }
}

/* ── 11. Hero data box — tighter mobile padding ── */
@media (max-width: 768px) {
  .bt-home-hero-data { padding: 22px 22px 20px !important; }
  .bt-hero-data-row { padding: 10px 0 !important; }
  .bt-hero-data-row-key { font-size: 11px !important; }
  .bt-hero-data-row-val { font-size: 15px !important; }
  .bt-hero-data-row-val .bt-mono-small { font-size: 8px !important; }
  .bt-hero-data-footnote { font-size: 8px !important; }
}

/* ── 12. Tighter By-the-Numbers stat strip on mobile ── */
@media (max-width: 768px) {
  /* The chart wrapper was 30px padding all around — tighten */
  #bt-navchart { height: clamp(180px, 50vw, 220px) !important; }
}

/* Operating Principles — show first 2 on mobile, hide 3-6 behind tap */
@media (max-width: 768px) {
  .bt-principles-grid.is-collapsed .bt-principle:nth-child(n+3) { display: none; }
  .bt-principles-more-btn { display: inline-flex; }
}
.bt-principles-more-btn {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 20px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 3px;
  font-family: var(--mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bt-blue-ink, #010B20);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.bt-principles-more-btn svg { width: 11px; height: 11px; transition: transform 0.3s ease; }
.bt-principles-grid:not(.is-collapsed) ~ .bt-principles-more-btn svg,
.bt-principles-grid.is-expanded ~ .bt-principles-more-btn svg { transform: rotate(180deg); }

/* Offering cards — tighter mobile padding */
@media (max-width: 768px) {
  .bt-offering-card { padding: 22px 22px 24px !important; }
  .bt-offering-card-3d-frame { margin: -8px 0 18px !important; }
  .bt-offering-card-title { font-size: 22px !important; }
  .bt-offering-card-subtitle { font-size: 12px !important; }
  .bt-offering-card-desc { font-size: 14px !important; line-height: 1.55 !important; }
}
/* Two Doors fork cards — tighter on mobile */
@media (max-width: 768px) {
  .bt-fork-card { padding: 28px 24px !important; }
}
