/* ==========================================================================
   Brand Bytes homepage
   Everything is scoped to body.bb-home so shared includes (navbar, footer,
   form) keep their existing look on every other page.
   ========================================================================== */

/* ---------- Design tokens ---------- */
.bb-home {
  /* Colour (sampled from the reference) */
  --bb-ink-950: #101211;
  --bb-ink-900: #141615;
  --bb-ink-800: #1c1d1d;
  --bb-ink-600: #333534;
  --bb-gray-500: #5e605f;
  --bb-gray-400: #9a9b9b;
  --bb-gray-300: #c4c5c5;
  --bb-paper: #eaeaea;
  --bb-paper-2: #f3f3f3;
  --bb-white: #ffffff;
  --bb-text: #111212;
  --bb-text-inverse: #f4f4f4;
  --bb-line: rgba(17, 18, 18, 0.12);
  --bb-line-strong: rgba(17, 18, 18, 0.28);
  --bb-line-inverse: rgba(255, 255, 255, 0.12);

  /* Type */
  --bb-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --bb-font-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --bb-fs-eyebrow: 0.6875rem;
  --bb-fs-sm: 0.8125rem;
  --bb-fs-body: 0.9375rem;
  --bb-fs-h3: clamp(1.125rem, 1.6vw, 1.5rem);
  --bb-fs-h2: clamp(1.625rem, 3.2vw, 2.75rem);
  --bb-fs-list: clamp(1.375rem, 3.4vw, 3rem);
  --bb-fs-display: clamp(2.5rem, 5.6vw, 5rem);
  --bb-fs-stat: clamp(3rem, 6.4vw, 5.75rem);
  --bb-ls-eyebrow: 0.24em;
  --bb-ls-tight: -0.02em;

  /* Layout */
  --bb-container: 1240px;
  /* 1vw, capped so proportional layouts stop growing past 1920px */
  --u: min(1vw, 19.2px);
  --bb-gutter: clamp(20px, 4vw, 56px);
  --bb-section-y: clamp(64px, 9vw, 128px);

  /* Shape */
  --bb-radius-sm: 6px;
  --bb-radius: 10px;
  --bb-radius-lg: 16px;
  --bb-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -18px rgba(0, 0, 0, 0.22);
  --bb-shadow-dark: 0 30px 60px -24px rgba(0, 0, 0, 0.7);

  /* Motion */
  --bb-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --bb-ease-io: cubic-bezier(0.45, 0, 0.55, 1);
  --bb-dur: 240ms;
  --bb-dur-reveal: 800ms;

  font-family: var(--bb-font);
  background: var(--bb-paper);
  color: var(--bb-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1200px) {
  .bb-home { --bb-container: calc(84.44 * var(--u)); }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(body.bb-home) { scroll-behavior: smooth; }
}

/* Set on the scroller: scroll-margin on overflow-clipped sections is ignored when jumping to them */
html:has(body.bb-home) { scroll-padding-top: 88px; }
.bb-home main:focus { outline: none; }

.bb-home a:focus-visible,
.bb-home button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.bb-skip {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 1100;
  padding: 12px 16px;
  border-radius: var(--bb-radius-sm);
  background: #fff;
  color: var(--bb-text);
  font-weight: 600;
  transition: top var(--bb-dur) var(--bb-ease);
}
.bb-skip:focus { top: 12px; color: var(--bb-text); }

/* ---------- Primitives ---------- */
.bb-container {
  width: 100%;
  max-width: calc(var(--bb-container) + 2 * var(--bb-gutter));
  margin-inline: auto;
  padding-inline: var(--bb-gutter);
}

.bb-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--bb-section-y);
}
.bb-section--paper { background: var(--bb-paper); }
.bb-section--dark { background: var(--bb-ink-950); color: var(--bb-text-inverse); }
.bb-section--paper + .bb-section--paper { padding-top: 0; }

.bb-eyebrow {
  margin: 0 0 1rem;
  font-size: var(--bb-fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--bb-ls-eyebrow);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--bb-gray-500);
}
.bb-eyebrow--center { text-align: center; }
.bb-section--dark .bb-eyebrow { color: var(--bb-gray-400); }

.bb-h2 {
  margin: 0;
  font-size: var(--bb-fs-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: inherit;
}

.bb-h2,
.bb-stat__value,
.bb-service-row__name,
.bb-faq__title {
  font-family: var(--bb-font-display);
}

.bb-head {
  max-width: 880px;
  margin: 0 auto clamp(40px, 5vw, 72px);
  text-align: center;
}

.bb-body {
  margin: 0;
  font-size: var(--bb-fs-body);
  line-height: 1.65;
  color: var(--bb-gray-500);
}

.bb-marker {
  font-size: var(--bb-fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--bb-gray-500);
  transition: color var(--bb-dur) var(--bb-ease);
}

.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--bb-radius-sm);
  font-family: var(--bb-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--bb-dur) var(--bb-ease), color var(--bb-dur) var(--bb-ease), border-color var(--bb-dur) var(--bb-ease);
}
.bb-btn:hover { text-decoration: none; }
.bb-btn--dark { background: var(--bb-text); color: #fff; }
.bb-btn--dark:hover { background: var(--bb-ink-600); color: #fff; }
.bb-btn--light { background: #fff; color: var(--bb-text); }
.bb-btn--light:hover { background: var(--bb-paper); color: var(--bb-text); }
.bb-btn__arrow { font-size: 0.75rem; transition: transform var(--bb-dur) var(--bb-ease); }
.bb-btn:hover .bb-btn__arrow,
.bb-link:hover .bb-btn__arrow { transform: translateX(4px); }

.bb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  color: var(--bb-text);
}
.bb-link:hover { color: var(--bb-text); text-decoration-color: transparent; }

/* Decorative chrome renders */
.bb-chrome {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.bb-chrome img { display: block; width: 100%; height: auto; }

.bb-float { animation: bb-float 9s var(--bb-ease-io) infinite; }
.bb-float--slow { animation-duration: 13s; }

.bb-spin { animation: bb-spin 10s linear infinite; }

@keyframes bb-spin {
  to { transform: rotate(360deg); }
}

@keyframes bb-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(2.5deg); }
}

/* Scroll reveal (class added in <head> so content never flashes) */
.bb-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--bb-dur-reveal) var(--bb-ease), transform var(--bb-dur-reveal) var(--bb-ease);
  transition-delay: var(--bb-delay, 0ms);
}
.bb-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Navbar (shared include, homepage skin) ---------- */
.bb-home .navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background-color: transparent !important;
  box-shadow: none;
  transition: background-color var(--bb-dur) var(--bb-ease), padding var(--bb-dur) var(--bb-ease);
}
.bb-home .navbar.sticky {
  position: fixed;
  padding: 8px 0;
  background-color: rgba(16, 18, 17, 0.88) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--bb-line-inverse);
}
.bb-home .navbar > .container {
  max-width: calc(var(--bb-container) + 2 * var(--bb-gutter)) !important;
  padding-inline: var(--bb-gutter);
}
.bb-home .navbar-brand.logo {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
}
.bb-home .navbar-brand img {
  width: clamp(120px, 11vw, 150px);
  height: auto;
  filter: brightness(0) invert(1);
}
.bb-home .navbar .navbar-nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0.25rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--bb-dur) var(--bb-ease);
}
.bb-home .navbar .navbar-nav .nav-link:hover,
.bb-home .navbar .navbar-nav .nav-link:focus,
.bb-home .navbar .navbar-nav .nav-link.active {
  color: #fff !important;
  font-weight: 500;
}
.bb-home .navbar .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 6px;
  height: 1px;
  background: currentColor;
}
.bb-home .navbar .dropdown-menu {
  min-width: 260px;
  padding: 0.5rem;
  border: 1px solid var(--bb-line-inverse);
  border-radius: var(--bb-radius);
  background: var(--bb-ink-900);
  box-shadow: var(--bb-shadow-dark);
}
.bb-home .navbar .dropdown-menu .dropdown-item {
  padding: 0.65rem 0.9rem;
  border-radius: var(--bb-radius-sm);
  font-size: var(--bb-fs-sm);
  color: rgba(255, 255, 255, 0.75);
  transition: background-color var(--bb-dur) var(--bb-ease), color var(--bb-dur) var(--bb-ease);
}
.bb-home .navbar .dropdown-menu .dropdown-item:hover,
.bb-home .navbar .dropdown-menu .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.bb-home .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.3);
}
.bb-home .navbar-toggler-icon { filter: invert(1); }

@media (max-width: 991.98px) {
  .bb-home .navbar { padding: 10px 0; }
  .bb-home .navbar-collapse {
    margin-top: 10px;
    padding: 0.5rem;
    border: 1px solid var(--bb-line-inverse);
    border-radius: var(--bb-radius);
    background: var(--bb-ink-900);
  }
  .bb-home .navbar .dropdown-menu { border: 0; box-shadow: none; background: transparent; }
  .bb-home .navbar .navbar-nav .nav-link.active::after { right: auto; width: 24px; }
}

/* ---------- 1. Hero ---------- */
/* Geometry follows the approved hero frame (1024px wide): 1px there = 0.0977u */
.bb-hero {
  position: relative;
  isolation: isolate;
  background: var(--bb-ink-900);
  color: #fff;
}
.bb-hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(84px + 3.5 * var(--u)) max(20px, 5.86 * var(--u)) calc(5.66 * var(--u));
}
.bb-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(45% 60% at 62% 50%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(22% 30% at 36% 22%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(30% 40% at 30% 55%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 70%),
    #151716;
}
.bb-hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bb-hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center;
  max-width: calc(100 * var(--u) - 2 * max(20px, 5.86 * var(--u)));
  margin-inline: auto;
}
.bb-hero__chrome--left {
  z-index: -1;
  top: calc(14.06 * var(--u));
  left: calc(-18.55 * var(--u) - max(20px, 5.86 * var(--u)));
  width: calc(31.25 * var(--u));
}
.bb-hero__chrome--right {
  z-index: -1;
  top: calc(-10 * var(--u));
  right: calc(-21 * var(--u));
  width: calc(47 * var(--u));
  opacity: 0.85;
  filter: blur(14px) brightness(1.15);
}
.bb-hero__word {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--bb-font-display);
  font-size: max(2rem, 5.24 * var(--u));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #fbfbfb;
}
.bb-hero__line {
  height: max(2px, 0.195 * var(--u));
  background: #8e908f;
}
.bb-hero__line--left { margin-left: calc(2.54 * var(--u)); }
.bb-hero__line--right { margin-right: calc(2.54 * var(--u)); }

.bb-device {
  position: relative;
  width: max(200px, 26.37 * var(--u));
  aspect-ratio: 270 / 433;
  overflow: hidden;
  border: max(3px, 0.29 * var(--u)) solid #fefefe;
  border-radius: max(12px, 1.37 * var(--u));
  background: #121212;
}
.bb-device img,
.bb-device video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }


/* ---------- 2. Intro ---------- */
/* Sizes follow the approved 1440px design (1px there = 0.0694u) */
.bb-intro {
  --bb-intro-gap: max(24px, 6.3 * var(--u));
  --bb-intro-chrome: 130%;
  isolation: isolate;
}
.bb-intro .bb-head { max-width: max(880px, 61.1 * var(--u)); margin-bottom: max(40px, 5.85 * var(--u)); }
.bb-intro__heading { font-size: max(1.75rem, 3.34 * var(--u)); line-height: 1.26; }
.bb-intro__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bb-intro-gap);
  align-items: stretch;
}
.bb-intro__media-wrap { position: relative; }
.bb-intro__chrome {
  z-index: -1;
  /* Centre sits on the viewport's left edge (as in the hero): the column's offset
     from the edge is (100vw - grid width) / 2, and the grid is two columns + gap. */
  top: -4%;
  left: calc((2 * 100% + var(--bb-intro-gap) - 100vw + var(--bb-sbw, 0px)) / 2 - var(--bb-intro-chrome) / 2);
  width: var(--bb-intro-chrome);
  filter: contrast(1.15) brightness(0.88);
}
.bb-intro__media {
  position: relative;
  aspect-ratio: 401 / 352;
  margin: 0;
  overflow: hidden;
  border-radius: max(10px, 1.04 * var(--u));
  background: #101010;
}
.bb-intro__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb-intro__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 40px);
}
.bb-intro__text {
  max-width: max(360px, 36.1 * var(--u));
  margin: 0;
  padding: max(5px, 0.49 * var(--u)) 0 0 max(6px, 0.69 * var(--u));
  font-family: var(--bb-font-display);
  font-size: max(0.9375rem, 1.111 * var(--u));
  line-height: 1.6;
  color: #1e1f21;
}

.bb-stat {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(180px, 19.45 * var(--u));
  padding: max(18px, 1.8 * var(--u)) max(18px, 1.8 * var(--u)) max(16px, 1.53 * var(--u));
  overflow: hidden;
  border: max(3px, 0.28 * var(--u)) solid #fff;
  border-radius: max(12px, 1.11 * var(--u));
  background: #1e201f;
  color: #fff;
}
.bb-stat::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 72%;
  background: url("../images/home/stat-texture.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 30%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 30%, #000 58%);
}
.bb-stat__value {
  margin: 0 0 max(8px, 0.97 * var(--u));
  font-size: max(4.5rem, 9 * var(--u));
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.03em;
}
.bb-stat__plus { color: #939594; }
.bb-stat__label {
  margin: 0;
  font-family: var(--bb-font-display);
  font-size: max(0.9375rem, 1.04 * var(--u));
  line-height: 1.3;
  color: #fff;
}

/* ---------- 3. Logos ---------- */
.bb-logos .bb-eyebrow {
  font-family: 'Manrope', var(--bb-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d161a;
}
.bb-logos {
  --bb-logo-gap: clamp(10px, 1.6vw, 20px);
  --bb-logo-cols: 4;
  --bb-flip-dur: 900ms;
  --bb-flip-step: 140ms;
  --bb-marquee-dur: 32s;
}
.bb-logos__row {
  container-type: inline-size;
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;
}
.bb-logos__row + .bb-logos__row { margin-top: var(--bb-logo-gap); }
.bb-js .bb-logos__row[data-reveal] { opacity: 1; transform: none; }
.bb-logos__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bb-logos__item {
  flex: 0 0 auto;
  /* Every item carries its gap as margin so one copy of the set is exactly 50% of the track */
  width: calc((100cqw - (var(--bb-logo-cols) - 1) * var(--bb-logo-gap)) / var(--bb-logo-cols));
  margin-right: var(--bb-logo-gap);
  aspect-ratio: 2.4 / 1;
  border-radius: var(--bb-radius-sm);
  perspective: 1000px;
  transition: transform var(--bb-dur) var(--bb-ease), box-shadow var(--bb-dur) var(--bb-ease);
}
/* No opacity/filter/overflow here: any of them flattens the 3D card and shows both faces */
.bb-logos__card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.bb-logos__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.6vw, 22px);
  border-radius: var(--bb-radius-sm);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.bb-logos__face--front { background: #fff; }
.bb-logos__face--back {
  background: #0d161a;
  color: var(--bb-gray-400);
  transform: rotateY(180deg);
}
.bb-logos__face--back::before {
  content: "";
  width: 34%;
  aspect-ratio: 1872 / 1134;
  background: currentColor;
  -webkit-mask: url("../images/home/wordmark.svg") center / contain no-repeat;
  mask: url("../images/home/wordmark.svg") center / contain no-repeat;
}
.bb-js .bb-logos__row:not(.is-visible) .bb-logos__card { transform: rotateY(180deg); }
.bb-logos__row.is-visible .bb-logos__card {
  animation: bb-card-flip var(--bb-flip-dur) cubic-bezier(0.65, 0, 0.35, 1) calc(var(--bb-row-delay, 0ms) + var(--i, 0) * var(--bb-flip-step)) backwards;
}
.bb-logos__row.is-visible .bb-logos__track {
  animation: bb-marquee-rtl var(--bb-marquee-dur) linear calc(var(--bb-row-delay, 0ms) + var(--bb-flip-dur) + 3 * var(--bb-flip-step)) infinite both;
}
.bb-logos__row--ltr.is-visible .bb-logos__track { animation-name: bb-marquee-ltr; }
.bb-logos__row:hover .bb-logos__track { animation-play-state: paused; }

@keyframes bb-card-flip {
  from { transform: rotateY(180deg); }
  50% { transform: rotateY(90deg) scale(1.06); }
  to { transform: rotateY(0deg); }
}
@keyframes bb-marquee-ltr {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes bb-marquee-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.bb-logos__item:hover { transform: translateY(-3px); box-shadow: var(--bb-shadow-card); }
.bb-logos__link { display: grid; place-items: center; width: 100%; height: 100%; }
.bb-logos__item img {
  width: auto;
  max-width: 80%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.25);
  opacity: 0.85;
  transition: opacity var(--bb-dur) var(--bb-ease);
}
.bb-logos__item:hover img { opacity: 1; }

/* ---------- 4. Services ---------- */
.bb-services__head { padding-bottom: 16px; }
.bb-services__head .bb-eyebrow { margin: 0; font-family: var(--bb-font); }

.bb-service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--bb-line); }
.bb-service-row {
  --bb-service-marker: clamp(44px, 4.6vw, 64px);
  --bb-service-media: 0px;
  position: relative;
  display: grid;
  grid-template-columns: var(--bb-service-marker) minmax(0, 1fr) var(--bb-service-media) 20px;
  /* The empty 1fr row absorbs the media's extra height so the copy stays tight under the title */
  grid-template-rows: auto auto 1fr;
  align-items: center;
  column-gap: clamp(12px, 2vw, 32px);
  padding-block: clamp(6px, 0.9vw, 12px);
  border-bottom: 1px solid var(--bb-line);
  transition: opacity var(--bb-dur) var(--bb-ease), grid-template-columns 450ms var(--bb-ease), padding 450ms var(--bb-ease);
}
.bb-service-row.is-open,
html:not(.bb-js) .bb-service-row {
  --bb-service-media: clamp(220px, 30vw, 380px);
  padding-block: clamp(18px, 2.6vw, 34px) clamp(24px, 3.4vw, 48px);
}
.bb-service-row > .bb-marker { grid-column: 1; grid-row: 1; white-space: nowrap; }
.bb-service-row.is-open > .bb-marker { align-self: start; padding-top: 0.6em; }
.bb-service-row__total { opacity: 0; transition: opacity 300ms var(--bb-ease); }
.bb-service-row.is-open .bb-service-row__total { opacity: 1; }
.bb-service-row__name {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: 'Manrope', var(--bb-font-display);
  font-size: clamp(1.75rem, 5.2vw, 4.6875rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--bb-ls-tight);
  text-transform: uppercase;
  color: #0d161a;
}
.bb-service-row__btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}
.bb-service-row__btn::after { content: ""; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.bb-service-row__btn:focus { outline: none; }
.bb-service-row:has(:focus-visible) { outline: 2px solid var(--bb-text); outline-offset: 4px; }
.bb-service-row__label { display: inline-block; transition: transform 300ms var(--bb-ease); }
.bb-service-row:not(.is-open):hover .bb-service-row__label,
.bb-service-row:not(.is-open):has(:focus-visible) .bb-service-row__label { transform: translateX(clamp(8px, 1.4vw, 20px)); }
.bb-service-toggle {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--bb-gray-500);
  transition: transform 300ms var(--bb-ease), color 300ms var(--bb-ease);
}
.bb-service-row:hover .bb-marker,
.bb-service-row:hover .bb-service-toggle,
.bb-service-row:has(:focus-visible) .bb-marker,
.bb-service-row:has(:focus-visible) .bb-service-toggle,
.bb-service-row.is-open .bb-marker,
.bb-service-row.is-open .bb-service-toggle { color: #0d161a; }
.bb-service-row.is-open .bb-service-toggle { transform: rotate(180deg); }
@media (hover: hover) {
  .bb-service-list:hover .bb-service-row:not(:hover):not(.is-open) { opacity: 0.45; }
}

/* Above the row-wide click target so the copy stays selectable */
.bb-service-panel {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
.bb-service-panel__inner { min-height: 0; overflow: hidden; }
.bb-service-panel__body { padding-top: clamp(12px, 1.4vw, 18px); }
.bb-service-panel__detail {
  max-width: 520px;
  margin: 0;
  font-size: clamp(0.875rem, 1.05vw, 0.9375rem);
  line-height: 1.6;
  color: #0d161a;
}
.bb-service-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(24px, 3.6vw, 48px);
  margin: clamp(24px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--bb-font-display);
  font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #0d161a;
}

.bb-service-media {
  position: relative;
  z-index: 2;
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: start;
  aspect-ratio: 3 / 2;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--bb-radius);
  background: var(--bb-paper-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--bb-ease), visibility 0s linear 450ms;
}
.bb-service-row.is-open .bb-service-media,
html:not(.bb-js) .bb-service-media {
  opacity: 1;
  visibility: visible;
  transition: opacity 450ms var(--bb-ease) 150ms, visibility 0s;
}
.bb-service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html:not(.bb-js) .bb-service-media img[data-src] { display: none; }

[data-services].is-ready .bb-service-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 450ms var(--bb-ease), visibility 0s linear 450ms;
}
[data-services].is-ready .bb-service-panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 450ms var(--bb-ease), visibility 0s;
}
[data-services].is-ready .bb-service-panel__body {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 250ms var(--bb-ease), transform 250ms var(--bb-ease);
}
[data-services].is-ready .bb-service-panel.is-open .bb-service-panel__body {
  opacity: 1;
  transform: none;
  transition: opacity 450ms var(--bb-ease) 150ms, transform 450ms var(--bb-ease) 150ms;
}

/* ---------- 5. Projects ---------- */
.bb-projects__head { margin-bottom: clamp(24px, 3vw, 40px); }
/* Visible overflow: a clipping ancestor would stop the cards from pinning */
.bb-projects { --bb-stack-top: clamp(76px, 11vh, 110px); overflow: visible; }
.bb-projects__list {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Every card pins at the same offset, so each one scrolls up and settles over the last */
.bb-projects__list > li { position: sticky; top: var(--bb-stack-top); }
.bb-project {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  aspect-ratio: 2 / 1;
  max-height: calc(100svh - var(--bb-stack-top) - 24px);
  padding: clamp(18px, 2.6vw, 40px);
  overflow: hidden;
  border-radius: var(--bb-radius);
  background: var(--bb-ink-900);
  color: #fff;
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.45);
  transform: scale(calc(1 - var(--bb-stack, 0) * 0.06));
  transform-origin: 50% 0;
}
.bb-project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #05080c;
  opacity: calc(var(--bb-stack, 0) * 0.55);
  pointer-events: none;
}
.bb-project picture { position: absolute; inset: 0; z-index: -2; }
.bb-project__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  transition: transform 600ms var(--bb-ease), filter 300ms var(--bb-ease);
}
.bb-project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.35) 0%, rgba(5, 8, 12, 0) 30%, rgba(5, 8, 12, 0) 55%, rgba(5, 8, 12, 0.7) 100%);
  pointer-events: none;
}
/* For artwork with its own text on the left: dims it so the card title stays readable */
.bb-project--shade::after {
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.35) 0%, rgba(5, 8, 12, 0) 28%, rgba(5, 8, 12, 0) 40%, rgba(5, 8, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(5, 8, 12, 0.78) 0%, rgba(5, 8, 12, 0.45) 42%, rgba(5, 8, 12, 0) 68%);
}
.bb-project:hover .bb-project__img { transform: scale(1.04); filter: none; }
.bb-project__tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: clamp(120px, 11vw, 150px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bb-project__tag {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-family: 'Manrope', var(--bb-font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bb-project__body { grid-column: 1; grid-row: 3; align-self: end; }
.bb-project__subtitle {
  margin: 0 0 clamp(6px, 0.8vw, 12px);
  font-family: 'Manrope', var(--bb-font);
  font-size: clamp(0.75rem, 1vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
}
.bb-project__title {
  max-width: 10em;
  margin: 0;
  font-family: 'Manrope', var(--bb-font-display);
  font-size: clamp(1.75rem, 4.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
}
.bb-project__more {
  --bb-bracket: 9px;
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  padding: 8px 10px;
  font-family: 'Manrope', var(--bb-font);
  font-size: clamp(0.8125rem, 1.1vw, 1rem);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #ffffff;
  background:
    linear-gradient(#fff, #fff) left top / 1px 100% no-repeat,
    linear-gradient(#fff, #fff) right top / 1px 100% no-repeat,
    linear-gradient(#fff, #fff) left top / var(--bb-bracket) 1px no-repeat,
    linear-gradient(#fff, #fff) left bottom / var(--bb-bracket) 1px no-repeat,
    linear-gradient(#fff, #fff) right top / var(--bb-bracket) 1px no-repeat,
    linear-gradient(#fff, #fff) right bottom / var(--bb-bracket) 1px no-repeat;
  transition: background-size 300ms var(--bb-ease), background-color 300ms var(--bb-ease);
}
.bb-project__more:hover,
.bb-project:hover .bb-project__more {
  color: #ffffff;
  text-decoration: none;
  background-size: 1px 100%, 1px 100%, 51% 1px, 51% 1px, 51% 1px, 51% 1px;
}
.bb-project__more::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bb-project__more:focus-visible { outline: none; }
.bb-project:focus-within { outline: 2px solid var(--bb-text); outline-offset: 4px; }

/* ---------- 6. Process ---------- */
.bb-process { isolation: isolate; }
.bb-process .bb-head { margin-bottom: clamp(40px, 6vw, 88px); }
.bb-process__stage { position: relative; }
/* ~705px square at 1440 wide, starting ~117px above the first card and ending
   ~470px in from the section's left edge */
.bb-process__chrome {
  z-index: -1;
  top: calc(-8.2 * var(--u));
  left: calc(-24.4 * var(--u));
  width: calc(49.2 * var(--u));
}
.bb-process__title { font-family: 'Manrope', var(--bb-font-display); font-weight: 800; }
.bb-process__steps {
  --bb-step-border: 2px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Cards are 304.7 x 373.6 in the design and each drops 124.2 (40.76% of a card's width) */
.bb-step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  align-self: start;
  aspect-ratio: 304.742 / 373.649;
  margin-top: calc(var(--bb-step, 0) * 40.76%);
  padding: clamp(18px, 2vw, 29px);
  border: var(--bb-step-border) solid #7c7c7c;
  background: #141515;
  transition: border-color var(--bb-dur) var(--bb-ease), background-color var(--bb-dur) var(--bb-ease);
}
.bb-step + .bb-step { margin-left: calc(-1 * var(--bb-step-border)); }
.bb-step:hover { position: relative; z-index: 1; border-color: #bdbdbd; background: #1a1b1b; }
.bb-step__num {
  font-family: 'Manrope', var(--bb-font);
  font-size: clamp(0.8125rem, 1.1vw, 1rem);
  font-weight: 500;
  line-height: 1.55;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.bb-step__title {
  margin: 0 0 clamp(6px, 0.7vw, 10px);
  font-family: 'Manrope', var(--bb-font-display);
  font-size: clamp(1.0625rem, 1.7vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}
.bb-step__text {
  margin: 0;
  font-family: 'Manrope', var(--bb-font);
  font-size: clamp(0.8125rem, 0.98vw, 0.875rem);
  font-weight: 500;
  line-height: 1.775;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 7. Contact ---------- */
.bb-contact { isolation: isolate; }
.bb-contact__chrome {
  z-index: -1;
  top: 12%;
  right: calc(-1 * clamp(40px, 6vw, 120px));
  width: clamp(320px, 50vw, 760px);
}
.bb-contact__col { max-width: 560px; }
.bb-contact__sub { margin: 1rem 0 clamp(28px, 3vw, 40px); font-size: var(--bb-fs-body); color: var(--bb-gray-500); }

.bb-form .form-group { margin-bottom: 1.25rem; }
.bb-form .bb-field-label {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 0.5rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: var(--bb-fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bb-text);
}
.bb-form .form-control {
  height: 52px;
  margin: 0;
  padding: 0 1rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius-sm);
  background: var(--bb-paper-2);
  box-shadow: none;
  font-family: var(--bb-font);
  font-size: var(--bb-fs-body);
  color: var(--bb-text);
  transition: border-color 200ms var(--bb-ease), background-color 200ms var(--bb-ease), box-shadow 200ms var(--bb-ease);
}
.bb-form textarea.form-control { height: auto; min-height: 140px; padding: 0.875rem 1rem; resize: vertical; }
.bb-form .form-control:hover { border-color: var(--bb-line-strong); }
.bb-form .form-control:focus {
  outline: none;
  border-color: var(--bb-text);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17, 18, 18, 0.14);
}
.bb-form .form-control::placeholder { color: #767676; opacity: 1; }
.bb-form input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.bb-form input[type="number"]::-webkit-outer-spin-button,
.bb-form input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bb-form .submit-btn {
  width: auto;
  height: auto;
  min-height: 52px;
  margin-top: 0.5rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--bb-radius-sm);
  background: var(--bb-text);
  color: #fff;
  font-family: var(--bb-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--bb-dur) var(--bb-ease);
}
.bb-form .submit-btn:hover { background: var(--bb-ink-600); }
.bb-form .submit-btn:focus-visible { outline: 2px solid var(--bb-text); outline-offset: 3px; }

/* ---------- 9. FAQ ---------- */
.bb-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}
.bb-faq__title {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: var(--bb-ls-tight);
  text-transform: uppercase;
}
.bb-faq__card,
.bb-faq__list {
  border-radius: var(--bb-radius-lg);
  background: #fff;
  box-shadow: var(--bb-shadow-card);
}
.bb-faq__card { padding: clamp(20px, 2.4vw, 32px); }
.bb-faq__card-title {
  margin: 0 0 0.75rem;
  font-size: var(--bb-fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.bb-faq__contact { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.bb-faq__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--bb-fs-body);
  color: var(--bb-text);
}
.bb-faq__list { padding: clamp(4px, 1vw, 12px) clamp(18px, 2.4vw, 36px); }
.bb-faq__item + .bb-faq__item { border-top: 1px solid var(--bb-line); }
.bb-faq__q { margin: 0; font-size: inherit; }
.bb-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 18px 0;
  border: 0;
  background: none;
  font-family: var(--bb-font);
  font-size: var(--bb-fs-body);
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: var(--bb-text);
  cursor: pointer;
}
.bb-faq__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--bb-line-strong);
  border-radius: 50%;
  transition: background-color var(--bb-dur) var(--bb-ease), border-color var(--bb-dur) var(--bb-ease), color var(--bb-dur) var(--bb-ease);
}
.bb-faq__icon::before,
.bb-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--bb-dur) var(--bb-ease);
}
.bb-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.bb-faq__btn:hover .bb-faq__icon { border-color: var(--bb-text); }
.bb-faq__btn[aria-expanded="true"] .bb-faq__icon { border-color: var(--bb-text); background: var(--bb-text); color: #fff; }
.bb-faq__btn[aria-expanded="true"] .bb-faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.bb-faq__panel-inner p {
  margin: 0;
  padding: 0 46px 20px 0;
  font-size: var(--bb-fs-body);
  line-height: 1.65;
  color: var(--bb-gray-500);
}
.bb-faq__panel-inner a { color: var(--bb-text); text-decoration: underline; }
[data-faq].is-ready .bb-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 300ms var(--bb-ease), visibility 0s linear 300ms;
}
[data-faq].is-ready .bb-faq__panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 300ms var(--bb-ease), visibility 0s;
}
.bb-faq__panel-inner { min-height: 0; overflow: hidden; }

/* ---------- 10. Footer ---------- */
.bb-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 6vw, 88px) 0 clamp(32px, 4vw, 56px);
  background:
    radial-gradient(45% 70% at 22% 60%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 60% at 72% 40%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%),
    #151515;
  color: #fff;
  font-family: 'Manrope', var(--bb-font);
  isolation: isolate;
}
/* Out-of-focus chrome behind the content gives the smoky silver backdrop */
.bb-footer__silver { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bb-footer__silver img { position: absolute; display: block; height: auto; filter: grayscale(1) blur(clamp(16px, 1.9vw, 28px)); }
.bb-footer__silver-main { top: -16%; left: 16%; width: min(62vw, 900px); opacity: 0.32; }
.bb-footer__silver-side { top: 6%; right: -10%; width: min(44vw, 640px); opacity: 0.2; }
.bb-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 543px);
  justify-content: space-between;
  gap: clamp(40px, 6vw, 96px);
}
.bb-footer__eyebrow {
  margin: 0 0 clamp(24px, 3.4vw, 44px);
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.bb-footer__lines { display: grid; gap: clamp(8px, 1vw, 16px); margin: 0; padding: 0; list-style: none; }
.bb-footer__lines a {
  font-size: clamp(1rem, 1.55vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color var(--bb-dur) var(--bb-ease);
}
.bb-footer__lines a:hover { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.bb-footer__logo {
  display: block;
  width: min(100%, clamp(220px, 26.3vw, 378px));
  height: auto;
  margin-top: clamp(32px, 4.2vw, 60px);
  /* Flattens the two-tone logo to #8a8a8a */
  filter: brightness(0) invert(0.54);
}
.bb-footer__title {
  margin: 0 0 clamp(8px, 0.8vw, 12px);
  font-family: 'Manrope', var(--bb-font-display);
  font-size: clamp(1.875rem, 3.1vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
.bb-footer__text {
  max-width: 520px;
  margin: 0;
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  font-weight: 500;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}
.bb-footer__start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(56px, 4.6vw, 66px);
  margin-top: clamp(16px, 1.7vw, 24px);
  padding: 0 14px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: border-color var(--bb-dur) var(--bb-ease), color var(--bb-dur) var(--bb-ease);
}
.bb-footer__start:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; text-decoration: none; }
.bb-footer__start-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 0.9375rem;
}
.bb-footer__start-icon i,
.bb-footer__social-arrow i { transform: rotate(45deg); transition: transform var(--bb-dur) var(--bb-ease); }
.bb-footer__start:hover .bb-footer__start-icon i,
.bb-footer__social a:hover .bb-footer__social-arrow i { transform: rotate(45deg) translateY(-2px); }
.bb-footer__social { margin: clamp(20px, 2.3vw, 33px) 0 0; padding: 0; list-style: none; }
.bb-footer__social li + li { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.bb-footer__social a {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 26px);
  min-height: clamp(48px, 4vw, 58px);
  font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--bb-dur) var(--bb-ease);
}
.bb-footer__social a:hover { color: #fff; text-decoration: none; }
.bb-footer__social-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
  color: #fff;
}
.bb-footer__social-name { flex: 1; }
.bb-footer__social-arrow { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.7); }
.bb-footer__legal {
  margin: clamp(40px, 5vw, 74px) 0 0;
  padding-top: clamp(20px, 2.5vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: clamp(0.75rem, 1.05vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.bb-footer__legal a { color: inherit; text-decoration: none; }
.bb-footer__legal a:hover { color: #fff; text-decoration: none; }

.bb-home .whatsapp-float {
  right: 12px;
  width: 48px;
  height: 48px;
  font-size: 24px;
  background: var(--bb-text);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.bb-home .whatsapp-float:hover { background: var(--bb-ink-600); color: #fff; }
.bb-home #scrollTopBtn {
  background: #fff;
  color: var(--bb-text);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(0, 0, 0, 0.2);
}
.bb-home #scrollTopBtn:hover { background: var(--bb-text); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1023.98px) {
  .bb-intro__grid { grid-template-columns: minmax(0, 1fr); }
  .bb-intro { --bb-intro-chrome: 80%; }
  .bb-intro__chrome { left: calc((100% - 100vw + var(--bb-sbw, 0px)) / 2 - var(--bb-intro-chrome) / 2); }
  .bb-contact__col { max-width: 480px; }
  .bb-contact__chrome { top: 3%; right: -40px; width: 36vw; }
  .bb-project { aspect-ratio: 16 / 10; }
  .bb-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-step,
  .bb-step:nth-child(3) { aspect-ratio: auto; min-height: clamp(260px, 38vw, 340px); margin-top: 0; margin-left: 0; }
  .bb-step:nth-child(even) { margin-top: 40.76%; margin-left: calc(-1 * var(--bb-step-border)); }
  .bb-step:nth-child(3) { margin-top: calc(-40.76% - var(--bb-step-border)); }
  .bb-step:nth-child(4) { margin-top: calc(-1 * var(--bb-step-border)); }
}

@media (max-width: 767.98px) {
  .bb-hero__frame { padding-top: 88px; padding-bottom: 40px; }
  .bb-hero__stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .bb-hero__word { font-size: clamp(2.5rem, 13vw, 4rem); }
  .bb-hero__line { width: 2px; height: 28px; }
  .bb-hero__line--left { margin: 14px 0 0; }
  .bb-hero__line--right { margin: 0 0 14px; }
  .bb-device { width: min(58vw, 250px); }
  .bb-hero__chrome--left { top: 30%; left: -110px; width: 200px; }
  .bb-hero__chrome--right { top: -6%; right: -90px; width: 220px; }

  .bb-intro__grid,
  .bb-faq__grid,
  .bb-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .bb-intro { --bb-intro-chrome: 110%; }
  .bb-intro__text { padding-left: 0; }

  .bb-logos { --bb-logo-cols: 2; }

  .bb-service-row,
  .bb-service-row.is-open { grid-template-columns: var(--bb-service-marker) minmax(0, 1fr) 16px; grid-template-rows: auto auto auto; }
  .bb-service-row { --bb-service-marker: 52px; }
  .bb-service-toggle { grid-column: 3; }
  .bb-service-media { grid-column: 2 / -1; grid-row: 3; margin-top: 20px; }
  .bb-service-row:not(.is-open) .bb-service-media { display: none; }
  html:not(.bb-js) .bb-service-row .bb-service-media { display: block; }

  .bb-project { aspect-ratio: 4 / 5; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; }
  .bb-project__more { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 18px; }

  .bb-process__title br { display: none; }
  .bb-process__steps { grid-template-columns: minmax(0, 1fr); }
  .bb-step,
  .bb-step:nth-child(n) { aspect-ratio: auto; min-height: 220px; margin: 0; }
  .bb-step + .bb-step { margin-top: calc(-1 * var(--bb-step-border)); }
  .bb-process__chrome { top: -40px; left: -24vw; width: 80vw; opacity: 0.55; }

  .bb-contact { padding-bottom: calc(var(--bb-section-y) + 180px); }
  .bb-contact__chrome { top: auto; bottom: -30px; right: -50px; width: 280px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bb-home *,
  .bb-home *::before,
  .bb-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .bb-js [data-reveal] { opacity: 1; transform: none; }
  .bb-logos__row .bb-logos__card,
  .bb-logos__row .bb-logos__track { animation: none !important; }
}
