@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600;1,700&display=swap');
@import './tokens.css';

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: var(--w-normal);
  line-height: 1.65;
  color: var(--bb-white);
  background: var(--bb-navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }
main#main-content { position: relative; z-index: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── Particle canvas ─────────────────────────────────────── */
#bb-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ─── Accessibility ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-3);
  z-index: 9999;
  background: var(--bb-electric);
  color: var(--bb-white);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  text-decoration: none;
}
.skip-link:focus { left: var(--s-4); }
:focus-visible {
  outline: 2px solid var(--bb-electric);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─── Animation system ───────────────────────────────────── */
.js [data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-expo),
              transform 700ms var(--ease-expo);
}
.js [data-animate="left"]  { transform: translateX(-30px); }
.js [data-animate="right"] { transform: translateX(30px); }
.js [data-animate].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-animate],
  .js [data-animate="left"],
  .js [data-animate="right"] {
    transform: none;
    transition: opacity 400ms ease;
  }
  #bb-particles { display: none; }
  .ghost-word { display: none; }
  .marquee-track { animation: none; }
  .hero-pulse-dot { animation: none; }
  .philosophy-divider { transform: scaleX(1); }
}

/* ─── Section gradient separators ───────────────────────── */
.bb-sec-marquee,
.bb-sec-philosophy,
.bb-sec-bigjoe,
.bb-sec-services,
.bb-sec-global,
.bb-sec-testimonials,
.bb-sec-cta,
.bb-footer {
  border-top: 1px solid rgba(74, 159, 232, 0.08);
}

/* ─── Section label utility ──────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bb-electric);
  margin-bottom: var(--s-4);
  display: block;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  transition: background var(--d-base) var(--ease),
              color var(--d-base) var(--ease),
              border-color var(--d-base) var(--ease),
              transform var(--d-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--bb-electric);
  color: var(--bb-white);
  border-color: var(--bb-electric);
}
.btn-primary:hover { background: var(--bb-bright); border-color: var(--bb-bright); }

.btn-ghost-outline {
  background: transparent;
  color: var(--bb-white);
  border: 1.5px solid rgba(255,255,255,0.28);
}
.btn-ghost-outline:hover { border-color: var(--bb-bright); color: var(--bb-bright); }

.btn-arrow::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width var(--d-base) var(--ease);
}
.btn-arrow:hover::after { width: 26px; }

/* CTA section buttons */
.btn-cta-solid {
  background: var(--bb-white);
  color: var(--bb-navy);
  border-color: var(--bb-white);
  font-weight: var(--w-bold);
}
.btn-cta-solid:hover { background: var(--bb-mist); border-color: var(--bb-mist); }

.btn-cta-ghost {
  background: transparent;
  color: var(--bb-white);
  border: 1.5px solid rgba(255,255,255,0.40);
}
.btn-cta-ghost:hover { border-color: var(--bb-white); }

/* ─── Header ─────────────────────────────────────────────── */
.bb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  background: transparent;
  transition: background var(--d-base) var(--ease),
              box-shadow var(--d-base) var(--ease),
              transform var(--d-base) var(--ease),
              backdrop-filter var(--d-base) var(--ease);
}
.bb-header.scrolled {
  background: rgba(3, 8, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--bb-line);
}
body.nav-open .bb-header { transform: none !important; }
.bb-header.hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin-inline: auto;
}

/* Logo */
.bb-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.bb-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.bb-logo-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: var(--w-bold);
  color: var(--bb-white);
  letter-spacing: 0.01em;
}
.bb-logo-eyebrow {
  font-size: 9px;
  font-weight: var(--w-semi);
  color: var(--bb-electric);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Desktop nav */
.bb-nav {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.bb-nav a,
.bb-nav .nav-has-dropdown {
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  color: var(--bb-white-70);
  transition: color var(--d-base) var(--ease);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
}
.bb-nav a:hover,
.bb-nav .nav-has-dropdown:hover { color: var(--bb-white); }

.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bb-navy-lift);
  border: 1px solid var(--bb-line);
  border-radius: var(--r-md);
  min-width: 240px;
  padding: var(--s-3) 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.nav-dropdown.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: var(--s-3) var(--s-6);
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  color: var(--bb-white-70) !important;
  transition: color var(--d-base) var(--ease), background var(--d-base) var(--ease);
}
.nav-dropdown a:hover {
  color: var(--bb-white) !important;
  background: var(--bb-white-10);
}
.nav-caret {
  width: 10px; height: 10px;
  opacity: 0.5;
  transition: transform var(--d-base) var(--ease);
}
.nav-has-dropdown:hover .nav-caret { transform: rotate(180deg); }
.header-cta { flex-shrink: 0; }

/* Hamburger */
.bb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  cursor: pointer;
}
.bb-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--bb-white);
  transition: transform var(--d-base) var(--ease),
              opacity var(--d-base) var(--ease),
              width var(--d-base) var(--ease);
}
.bb-hamburger span:nth-child(3) { width: 70%; }
.bb-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.bb-hamburger.open span:nth-child(2) { opacity: 0; }
.bb-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); width: 100%; }

/* Mobile nav overlay */
.bb-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bb-void);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s-6);
  padding: 100px var(--s-6) var(--s-12);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-base) var(--ease);
}
.bb-mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.bb-mobile-nav a {
  font-size: var(--t-2xl);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-semi);
  color: var(--bb-white);
  letter-spacing: -0.01em;
}
.bb-mobile-nav a:hover { color: var(--bb-ice); }
.mobile-service-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.mobile-service-links a {
  font-size: var(--t-base) !important;
  font-family: var(--font-body) !important;
  font-weight: var(--w-medium) !important;
  font-style: normal !important;
  color: var(--bb-white-70) !important;
}

/* ─── Hero ───────────────────────────────────────────────── */
.bb-sec-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: #030810;
  overflow: hidden;
  isolation: isolate;
}

/* Ghost word parallax */
.ghost-word {
  position: absolute;
  left: -4vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-bold);
  font-size: clamp(14rem, 30vw, 30vw);
  color: var(--bb-white);
  opacity: 0.04;
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  will-change: transform;
}

/* Decorative number */
.hero-deco-num {
  position: absolute;
  right: var(--gutter);
  bottom: 10%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(6rem, 12vw, 14rem);
  font-weight: var(--w-bold);
  color: var(--bb-white);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 160px 0 120px;
  width: 100%;
}
.hero-content {
  max-width: 55%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bb-electric);
  margin-bottom: var(--s-6);
  display: block;
}

.hero-h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-hero);
  font-weight: var(--w-bold);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--bb-white);
  margin-bottom: var(--s-6);
}
.hero-h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-h1.revealed .word { opacity: 1; transform: none; }

.hero-sub {
  font-size: clamp(var(--t-base), 1.4vw, var(--t-lg));
  line-height: 1.7;
  color: var(--bb-white-70);
  max-width: 520px;
  margin-bottom: var(--s-10);
}
.js .hero-sub {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js .hero-sub.revealed { opacity: 1; transform: none; }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-12);
}

/* Breath pulse dot */
.hero-pulse-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.hero-pulse-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bb-electric);
  box-shadow: 0 0 12px var(--bb-glow);
  animation: breath-pulse 2s var(--ease) infinite;
}
@keyframes breath-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* ─── Marquee / Social proof ──────────────────────────────── */
.bb-sec-marquee {
  background: #060D1A;
  padding: var(--s-8) 0;
  border-top: 1px solid var(--bb-line);
  border-bottom: 1px solid var(--bb-line);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee-eyebrow {
  text-align: center;
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bb-white-40);
  margin-bottom: var(--s-5);
}
.marquee-track-wrap {
  overflow: hidden;
}
.marquee-track-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  color: var(--bb-white-40);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.marquee-dot {
  color: var(--bb-electric) !important;
  opacity: 0.5;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Philosophy ─────────────────────────────────────────── */
.bb-sec-philosophy {
  background: #0B1428;
  padding: var(--s-30) 0;
  position: relative;
  z-index: 1;
}
.bb-sec-philosophy .section-label { margin-bottom: var(--s-10); }

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.philosophy-left {}
.philosophy-pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-2xl), 3vw, var(--t-4xl));
  font-weight: var(--w-semi);
  line-height: 1.25;
  color: var(--bb-ice);
  letter-spacing: -0.01em;
}

/* Animated divider line */
.philosophy-divider {
  width: 1px;
  background: var(--bb-electric);
  height: 100%;
  min-height: 220px;
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 900ms var(--ease-expo);
  opacity: 0.35;
  align-self: stretch;
}
.philosophy-divider.in-view { transform: scaleY(1); }

.philosophy-right {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.philosophy-right p {
  font-size: var(--t-base);
  line-height: 1.8;
  color: var(--bb-white-70);
}

/* ─── Meet Big Joe ───────────────────────────────────────── */
.bb-sec-bigjoe {
  background: #0D1B3E;
  padding: var(--s-30) 0;
  position: relative;
  z-index: 1;
}
.bigjoe-grid {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

/* Portrait placeholder */
.bigjoe-portrait {
  aspect-ratio: 3/4;
  background: var(--bb-navy-lift);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bigjoe-portrait-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-2xl), 4vw, var(--t-4xl));
  font-weight: var(--w-bold);
  color: var(--bb-electric);
  letter-spacing: 0.04em;
}

.bigjoe-content { display: flex; flex-direction: column; gap: var(--s-6); }
.bigjoe-h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: var(--w-bold);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--bb-white);
}
.bigjoe-h2 em { font-style: italic; }

.bigjoe-story {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-left: var(--s-4);
  border-left: 2px solid var(--bb-line);
}
.bigjoe-story li,
.bigjoe-story p {
  font-size: var(--t-base);
  line-height: 1.8;
  color: var(--bb-white-70);
}

/* Stat counters */
.bigjoe-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--bb-line);
}
.bigjoe-stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.bigjoe-stat .stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-3xl), 3.5vw, var(--t-5xl));
  font-weight: var(--w-bold);
  color: var(--bb-electric);
  line-height: 1;
  letter-spacing: -0.02em;
}
.bigjoe-stat .stat-suffix {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-xl), 2vw, var(--t-3xl));
  font-weight: var(--w-bold);
  color: var(--bb-electric);
  line-height: 1;
}
.bigjoe-stat .stat-label {
  display: block;
  font-size: var(--t-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.08em;
  color: var(--bb-white-40);
  text-transform: uppercase;
  margin-top: var(--s-1);
}

/* ─── Services ───────────────────────────────────────────── */
.bb-sec-services {
  background: #112244;
  padding: var(--s-30) 0;
  position: relative;
  z-index: 1;
}
.services-h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-3xl), 4vw, var(--t-5xl));
  font-weight: var(--w-bold);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bb-white);
  margin-bottom: var(--s-12);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-10);
}
.service-card {
  background: var(--bb-navy-lift);
  border-top: 3px solid var(--bb-electric);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform var(--d-base) var(--ease),
              box-shadow var(--d-base) var(--ease),
              background var(--d-base) var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  background: var(--bb-navy-mid);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.service-card-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: var(--w-semi);
  letter-spacing: -0.005em;
  color: var(--bb-white);
  line-height: 1.15;
}
.service-card-desc {
  font-size: var(--t-sm);
  color: var(--bb-white-70);
  line-height: 1.7;
  flex: 1;
}
.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-bright);
  margin-top: var(--s-2);
  transition: gap var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.service-card-cta::after {
  content: '\2192';
  font-size: 1em;
  transition: transform var(--d-base) var(--ease);
}
.service-card:hover .service-card-cta { gap: var(--s-3); color: var(--bb-ice); }
.service-card:hover .service-card-cta::after { transform: translateX(4px); }

.services-secondary-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--bb-line);
}
.services-secondary-links a {
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  color: var(--bb-white-40);
  letter-spacing: 0.04em;
  transition: color var(--d-base) var(--ease);
}
.services-secondary-links a:hover { color: var(--bb-white); }

/* ─── Global Reach ───────────────────────────────────────── */
.bb-sec-global {
  background: #1A3260;
  padding: var(--s-30) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.global-h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-3xl), 4vw, var(--t-5xl));
  font-weight: var(--w-bold);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bb-white);
  margin-bottom: var(--s-8);
  max-width: 700px;
}
.global-countries {
  font-size: clamp(var(--t-base), 1.6vw, var(--t-xl));
  line-height: 1.9;
  color: var(--bb-white-40);
  max-width: 800px;
  margin-bottom: var(--s-10);
}
.global-cta {}

/* ─── Testimonials ───────────────────────────────────────── */
.bb-sec-testimonials {
  background: #1E3A72;
  padding: var(--s-30) 0;
  position: relative;
  z-index: 1;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-8);
}
.testimonial-card {
  background: var(--bb-navy-lift);
  border-left: 3px solid var(--bb-electric);
  border-radius: var(--r-md);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-lg), 1.5vw, var(--t-xl));
  font-weight: var(--w-semi);
  line-height: 1.45;
  color: var(--bb-white);
  letter-spacing: -0.005em;
}
.testimonial-attr {
  font-size: var(--t-sm);
  color: var(--bb-white-40);
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* ─── CTA Close ──────────────────────────────────────────── */
.bb-sec-cta {
  background: #1B6FD8;
  padding: var(--s-30) 0;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.cta-h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-3xl), 4.5vw, var(--t-5xl));
  font-weight: var(--w-bold);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bb-white);
  margin-bottom: var(--s-4);
  margin-top: 0;
}
.cta-sub {
  font-size: var(--t-lg);
  line-height: 1.7;
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--s-10);
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.cta-contact {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

/* ─── Footer ─────────────────────────────────────────────── */
.bb-footer {
  background: #030810;
  padding: var(--s-20) 0 var(--s-10);
  color: var(--bb-white-70);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--bb-line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-16);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.footer-logo-text .bb-logo-name { color: var(--bb-white); }
.footer-logo-text .bb-logo-eyebrow { color: var(--bb-electric); }
.footer-email {
  font-size: var(--t-sm);
  color: var(--bb-white-40);
  letter-spacing: 0.04em;
}
.footer-col-title {
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bb-electric);
  margin-bottom: var(--s-5);
  display: block;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-links a {
  font-size: var(--t-sm);
  color: var(--bb-white-40);
  transition: color var(--d-base) var(--ease);
  line-height: 1.5;
}
.footer-links a:hover { color: var(--bb-white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.footer-copy {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}
.footer-legal { display: flex; gap: var(--s-6); }
.footer-legal a {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--d-base) var(--ease);
}
.footer-legal a:hover { color: var(--bb-white); }

/* ─── Inner page hero (for sub-pages) ────────────────────── */
.bb-inner-hero {
  padding: 148px 0 80px;
  background: var(--bb-void);
  border-bottom: 1px solid var(--bb-line);
}
.inner-hero-h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-3xl), 5vw, var(--t-5xl));
  font-weight: var(--w-bold);
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--bb-white);
  margin-top: var(--s-4);
  margin-bottom: var(--s-5);
}
.inner-hero-sub {
  font-size: var(--t-lg);
  color: var(--bb-white-70);
  line-height: 1.75;
  max-width: 640px;
}

/* ─── Content prose (inner pages) ───────────────────────── */
.bb-content-sec {
  padding: var(--s-25) 0;
  background: var(--bb-navy);
}
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-xl), 2.8vw, var(--t-3xl));
  font-weight: var(--w-semi);
  letter-spacing: -0.01em;
  color: var(--bb-white);
  margin-top: var(--s-10);
  margin-bottom: var(--s-4);
}
.prose p {
  font-size: var(--t-base);
  line-height: 1.8;
  color: var(--bb-white-70);
  margin-bottom: var(--s-5);
}
.prose ul { margin-bottom: var(--s-5); padding-left: var(--s-6); list-style: disc; }
.prose li {
  font-size: var(--t-base);
  line-height: 1.75;
  color: var(--bb-white-70);
  margin-bottom: var(--s-2);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-10); }
  .bigjoe-stats { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .philosophy-divider {
    width: 100%;
    height: 1px;
    min-height: unset;
    transform-origin: left center;
    transform: scaleX(0);
  }
  .philosophy-divider.in-view { transform: scaleX(1); }
}

@media (max-width: 768px) {
  :root { --gutter: 22px; }
  .bb-nav, .header-cta { display: none; }
  .bb-hamburger { display: flex; }

  .hero-content { max-width: 100%; }
  .hero-inner { padding: 130px 0 80px; }
  .hero-h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero-deco-num { display: none; }

  .bigjoe-grid { grid-template-columns: 1fr; gap: var(--s-10); }
  .bigjoe-portrait { max-height: 320px; }
  .bigjoe-stats { grid-template-columns: repeat(2, 1fr); }

  .services-grid { grid-template-columns: 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
  .services-secondary-links { flex-direction: column; gap: var(--s-3); }
  .bigjoe-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}

/* ─── New sections border-top ────────────────────────────── */
.bb-sec-science,
.bb-sec-gallery {
  border-top: 1px solid rgba(74, 159, 232, 0.08);
}

/* ─── Logo mark ──────────────────────────────────────────── */
.nav-logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.footer-logo-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ─── Big Joe portrait — real image ─────────────────────── */
.bigjoe-portrait {
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bb-navy-lift);
  flex-shrink: 0;
  display: block;
}
.bigjoe-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ─── Gold stat accent ───────────────────────────────────── */
.bigjoe-stat .stat-num,
.bigjoe-stat .stat-suffix {
  color: var(--bb-gold);
}

/* ─── Science section ────────────────────────────────────── */
.bb-sec-science {
  background: #060D1A;
  padding: var(--s-30) 0;
  position: relative;
  z-index: 1;
}
.science-h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-3xl), 4vw, var(--t-5xl));
  font-weight: var(--w-bold);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bb-white);
  margin-bottom: var(--s-12);
  max-width: 600px;
}
.science-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.science-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: background var(--d-base) var(--ease), border-color var(--d-base) var(--ease);
}
.science-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--bb-gold-glow);
}
.sci-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-3xl), 3vw, var(--t-4xl));
  font-weight: var(--w-bold);
  color: var(--bb-gold);
  line-height: 1;
}
.sci-title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: var(--w-semi);
  color: var(--bb-white);
  line-height: 1.2;
}
.sci-body {
  font-size: var(--t-sm);
  color: var(--bb-white-70);
  line-height: 1.75;
  flex: 1;
}

/* ─── In the Room gallery ────────────────────────────────── */
.bb-sec-gallery {
  background: #060D1A;
  padding-top: var(--s-30);
  padding-bottom: var(--s-30);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.gallery-h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-3xl), 4vw, var(--t-5xl));
  font-weight: var(--w-bold);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bb-white);
  margin-bottom: var(--s-10);
}
.gallery-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--gutter) var(--s-4);
}
.gallery-track-wrap::-webkit-scrollbar { display: none; }
.gallery-track-wrap.dragging { cursor: grabbing; user-select: none; }
.gallery-track {
  display: flex;
  gap: var(--s-5);
  width: max-content;
}
.gallery-item {
  flex-shrink: 0;
  width: clamp(260px, 32vw, 480px);
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bb-navy-lift);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 600ms var(--ease);
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ─── Two-path CTA ───────────────────────────────────────── */
.cta-paths {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: var(--s-10);
  margin-bottom: var(--s-8);
  text-align: left;
}
.cta-path {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.cta-path-label {
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cta-path-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-xl), 2.2vw, var(--t-3xl));
  font-weight: var(--w-semi);
  line-height: 1.2;
  color: var(--bb-white);
  letter-spacing: -0.01em;
}
.cta-path-divider {
  width: 1px;
  height: 160px;
  background: rgba(255,255,255,0.20);
  align-self: center;
  flex-shrink: 0;
}

/* ─── Responsive additions ───────────────────────────────── */
@media (max-width: 1024px) {
  .science-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .science-grid { grid-template-columns: 1fr; }
  .cta-paths {
    grid-template-columns: 1fr;
    gap: var(--s-8);
    text-align: center;
  }
  .cta-path-divider { width: 100%; height: 1px; }
  .gallery-item { width: clamp(220px, 75vw, 320px); }
}
