/* =========================
   RESET / BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
li,
figure {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

body {
  font-family: "Lato", sans-serif;
  color: #192344;
  background: #fcfeff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================
   TOKENS
========================= */

:root {
  --bb-page-max: 1440px;

  --bb-header-height: 82px;
  --bb-header-height-mobile: 68px;
  --bb-header-gap: clamp(20px, 2.4vw, 40px);

  --bb-font-title: "Be Vietnam Pro", "Lato", sans-serif;
  --bb-font-body: "Lato", sans-serif;

  --bb-navy: #192344;
  --bb-lime: #def54b;
  --bb-lilac: #b0a7fe;
  --bb-offwhite: #fcfeff;

  --bb-bg: var(--bb-offwhite);
  --bb-bg-light: #f7f8fc;
  --bb-bg-dark: var(--bb-navy);

  --bb-text: var(--bb-navy);
  --bb-text-muted: rgba(25, 35, 68, 0.72);
  --bb-text-light: var(--bb-offwhite);

  --bb-line-light: rgba(25, 35, 68, 0.12);
  --bb-line-dark: rgba(252, 254, 255, 0.16);

  --bb-radius: 14px;

  --bb-container-gutter: clamp(24px, 4vw, 44px);
  --bb-container-gutter-tight: clamp(20px, 3vw, 28px);
  --bb-content-start: clamp(32px, 5.2vw, 88px);

  --bb-section-padding-y: clamp(72px, 9vh, 108px);
  --bb-section-padding-y-mobile: clamp(56px, 7vw, 72px);

  --bb-text-max: 720px;
  --bb-text-narrow: 620px;

  --bb-title-line-height: 0.94;
  --bb-title-letter-spacing: -0.035em;
  --bb-section-title-max: 16ch;

  --bb-body-size: clamp(1rem, 0.34vw + 0.95rem, 1.1rem);
  --bb-body-line-height: 1.68;

  --bb-logo-width-desktop: clamp(150px, 14vw, 220px);
  --bb-logo-width-mobile: clamp(128px, 34vw, 170px);

  --bb-hero-height: calc(100dvh - var(--bb-header-height));
  --bb-hero-max-width: 980px;

  --bb-overlay-bg: #192344;
  --bb-overlay-line: rgba(252, 254, 255, 0.14);
  --bb-mobile-nav-breakpoint: 1024px;

  --bb-gallery-gap-mobile: 24px;
  --bb-gallery-gap-desktop: 22px;
  --bb-gallery-caption-size: 13px;
  --bb-gallery-caption-gap: 8px;

  --bb-gallery-viewer-z: 2000;
  --bb-viewer-stage-max: 1240px;
  --bb-viewer-image-max-height: min(70dvh, 860px);
  --bb-viewer-caption-max: 840px;

  --bb-experience-grid-gap-x: clamp(18px, 1.8vw, 26px);
  --bb-experience-grid-gap-y: clamp(18px, 2vw, 26px);
  --bb-experience-logo-cell-min-height: clamp(122px, 11vw, 152px);
  --bb-experience-logo-max: 252px;
  --bb-experience-logo-max-mobile: 188px;
  --bb-experience-logo-scale: 100%;

  --bb-how-max-width: 820px;
  --bb-how-intro-max: 820px;
  --bb-how-step-max: 820px;
  --bb-how-stack-gap: clamp(28px, 3.2vw, 44px);
}

/* =========================
   GLOBAL LAYOUT
========================= */

section {
  scroll-margin-top: calc(var(--bb-header-height) + 20px);
}

.bb-container {
  width: 100%;
  max-width: var(--bb-page-max);
  margin: 0 auto;
  padding-inline: var(--bb-container-gutter);
}

.bb-text-wrap {
  width: 100%;
  max-width: var(--bb-text-max);
}

.bb-text-wrap--narrow {
  max-width: var(--bb-text-narrow);
}

.bb-section {
  min-height: calc(100dvh - var(--bb-header-height));
  display: flex;
  align-items: center;
  padding-block: var(--bb-section-padding-y);
  position: relative;
  overflow: clip;
}

.bb-section > .bb-container {
  width: 100%;
}

.bb-section--light {
  background: var(--bb-bg-light);
}

.bb-section:not(.bb-section--light):not(.bb-hero) {
  background: var(--bb-bg);
  color: var(--bb-text);
}

.bb-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--bb-line-light);
}

/* =========================
   SHARED TYPOGRAPHY / SECTION HEADERS
========================= */

.bb-section__header {
  width: 100%;
  max-width: var(--bb-text-max);
  margin-left: var(--bb-content-start);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.bb-section__title {
  font-family: var(--bb-font-title);
  font-size: clamp(2.1rem, 3vw, 3.3rem);
  line-height: var(--bb-title-line-height);
  letter-spacing: var(--bb-title-letter-spacing);
  font-weight: 700;
  max-width: var(--bb-section-title-max);
  text-wrap: balance;
}

.bb-section__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--bb-lilac);
}

/* =========================
   HEADER / NAV
========================= */

.bb-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(252, 254, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(25, 35, 68, 0.08);
}

.bb-header.is-menu-open {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bb-header .bb-container {
  padding-inline: var(--bb-container-gutter);
}

.bb-header__inner {
  min-height: var(--bb-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bb-header-gap);
  position: relative;
}

/* Logo */

.bb-logo,
.bb-header .bb-logo,
.bb-header__inner .bb-logo,
.bb-mobile-nav__header .bb-logo,
.bb-logo--mobile {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  text-decoration: none;
}

.header-logo__img,
.bb-header .bb-logo img,
.bb-header__inner .bb-logo img,
.bb-mobile-nav__header .bb-logo img,
.bb-logo--mobile img {
  display: block;
  width: var(--bb-logo-width-desktop);
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Desktop nav */

.bb-nav,
.bb-nav--desktop {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: static;
}

.bb-nav__list,
.landing-nav__flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(24px, 2.6vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-nav__item {
  list-style: none;
}

.bb-nav__link,
.landing-nav__flex a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--bb-text);
  text-decoration: none;
  font-family: var(--bb-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 8px 0;
  white-space: nowrap;
}

.bb-nav__link::after,
.landing-nav__flex a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--bb-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.bb-nav__link:hover::after,
.bb-nav__link:focus-visible::after,
.landing-nav__flex a:hover::after,
.landing-nav__flex a:focus-visible::after {
  transform: scaleX(1);
}

/* Mobile menu toggle */

.bb-menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bb-text);
  cursor: pointer;
  flex: 0 0 auto;
  z-index: 1302;
  appearance: none;
  -webkit-appearance: none;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

.bb-menu-toggle__bars {
  position: absolute;
  inset: 0;
  display: block;
}

.bb-menu-toggle__bars > span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.bb-menu-toggle__bars > span:nth-child(1) {
  top: 14px;
}

.bb-menu-toggle__bars > span:nth-child(2) {
  top: 21px;
}

.bb-menu-toggle__bars > span:nth-child(3) {
  top: 28px;
}

.bb-menu-toggle[aria-expanded="true"] {
  color: var(--bb-offwhite);
}

.bb-menu-toggle[aria-expanded="true"] .bb-menu-toggle__bars > span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.bb-menu-toggle[aria-expanded="true"] .bb-menu-toggle__bars > span:nth-child(2) {
  opacity: 0;
}

.bb-menu-toggle[aria-expanded="true"] .bb-menu-toggle__bars > span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile nav overlay */

.bb-mobile-nav[hidden] {
  display: none !important;
}

.bb-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: var(--bb-overlay-bg);
  color: var(--bb-offwhite);
  isolation: isolate;
}

.bb-mobile-nav.is-open {
  display: block;
}

.bb-mobile-nav::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bb-overlay-bg);
  z-index: 0;
}

.bb-mobile-nav__inner {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.bb-mobile-nav__header {
  min-height: var(--bb-header-height-mobile);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 0 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}

.bb-mobile-nav__header .header-logo__img,
.bb-mobile-nav__header .bb-logo img,
.bb-logo--mobile img {
  width: var(--bb-logo-width-mobile);
  height: auto;
}

.bb-mobile-nav.is-open .bb-mobile-nav__header .bb-logo,
.bb-mobile-nav.is-open .bb-mobile-nav__header .bb-logo::before,
.bb-mobile-nav.is-open .bb-mobile-nav__header .bb-logo::after,
.bb-mobile-nav.is-open .bb-mobile-nav__header .bb-logo *,
.bb-mobile-nav.is-open .bb-mobile-nav__header .bb-logo img {
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}

.bb-mobile-nav__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bb-offwhite);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  margin-left: 0;
}

.bb-mobile-nav__close span {
  display: block;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-1px);
}

.bb-mobile-nav__panel {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px clamp(22px, 6vw, 40px) 32px;
}

.bb-mobile-nav__list,
.bb-mobile-nav__item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-mobile-nav__item {
  border-bottom: 1px solid var(--bb-overlay-line);
}

.bb-mobile-nav__link {
  width: 100%;
  display: block;
  color: var(--bb-offwhite);
  text-decoration: none;
  font-family: var(--bb-font-title);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: none;
  padding: 18px 0 20px;
}

.bb-mobile-nav__link:hover,
.bb-mobile-nav__link:focus-visible {
  color: var(--bb-lime);
}

body.bb-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* =========================
   HERO
========================= */

.bb-hero {
  min-height: var(--bb-hero-height);
  background: var(--bb-bg-dark);
  color: var(--bb-text-light);
  padding: 0;
}

.bb-hero::after {
  background: var(--bb-line-dark);
}

.bb-hero .bb-container {
  min-height: var(--bb-hero-height);
  display: grid;
  align-items: center;
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: clamp(24px, 4vh, 48px);
}

.bb-hero__content {
  width: 100%;
  max-width: var(--bb-hero-max-width);
  margin-left: var(--bb-content-start);
}

.bb-hero__title {
  font-family: var(--bb-font-title);
  font-size: clamp(2.8rem, 4.15vw, 4.95rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 14ch;
  color: var(--bb-offwhite);
  text-wrap: balance;
}

.bb-hero__title::after {
  content: "";
  display: block;
  width: 88px;
  height: 6px;
  margin-top: 28px;
  border-radius: 999px;
  background: var(--bb-lime);
}

.bb-hero__signoff,
[data-bb-hero-signoff] {
  display: block;
  margin-top: 18px;
  font-family: var(--bb-font-title);
  font-size: clamp(2.8rem, 4.15vw, 4.95rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--bb-lilac);
  text-wrap: balance;
  max-width: 18ch;
}

/* =========================
   SHARED NON-HERO SECTION ALIGNMENT
========================= */

#work.bb-section,
#experience.bb-section,
#our-process.bb-section,
#contact.bb-section {
  align-items: flex-start;
}

#work .bb-container,
#experience .bb-container,
#our-process .bb-container,
#contact .bb-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#work .bb-section__header,
#experience .bb-section__header,
#our-process .bb-section__header,
#contact .bb-section__header {
  margin-left: var(--bb-content-start);
  margin-bottom: clamp(36px, 5vw, 64px);
}

/* =========================
   WORK / GALLERY
========================= */

.bb-gallery {
  width: 100%;
  max-width: none;
}

.bb-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bb-gallery-gap-mobile);
  width: 100%;
  overflow: visible;
  align-items: start;
}

.bb-gallery__item {
  min-width: 0;
}

.bb-gallery__trigger {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.bb-gallery__figure {
  display: flex;
  flex-direction: column;
  gap: var(--bb-gallery-caption-gap);
}

.bb-gallery__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd8cf;
  border-radius: var(--bb-radius);
}

.bb-gallery__caption {
  max-width: 100%;
  font-family: var(--bb-font-body);
  font-size: var(--bb-gallery-caption-size);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--bb-text-muted);
  text-wrap: pretty;
}

.bb-gallery__caption-text {
  font-weight: 700;
  color: var(--bb-text);
}

.bb-gallery__caption-separator,
.bb-gallery__credit {
  color: var(--bb-text-muted);
}

.bb-gallery__credit {
  font-weight: 400;
}

.bb-gallery__actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.bb-gallery__load-more {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(25, 35, 68, 0.14);
  background: transparent;
  color: var(--bb-text);
  font-family: var(--bb-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 16px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bb-gallery__load-more:hover,
.bb-gallery__load-more:focus-visible {
  border-color: var(--bb-navy);
  background: var(--bb-navy);
  color: var(--bb-offwhite);
}

@media (hover: hover) and (pointer: fine) {
  .bb-gallery__image {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
  }

  .bb-gallery__trigger:hover .bb-gallery__image,
  .bb-gallery__trigger:focus-visible .bb-gallery__image {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(25, 35, 68, 0.08);
  }
}

/* =========================
   GALLERY VIEWER
========================= */

.bb-gallery-viewer[hidden] {
  display: none !important;
}

.bb-gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: var(--bb-gallery-viewer-z);
  background: var(--bb-bg-dark);
  color: var(--bb-offwhite);
}

.bb-gallery-viewer.is-open {
  display: block;
}

.bb-gallery-viewer__inner {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.bb-gallery-viewer__topbar {
  display: flex;
  justify-content: flex-end;
  padding: 18px clamp(18px, 3vw, 28px) 0;
}

.bb-gallery-viewer__close {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(252, 254, 255, 0.12);
  border-radius: 999px;
  background: rgba(252, 254, 255, 0.04);
  color: var(--bb-offwhite);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.bb-gallery-viewer__close:hover,
.bb-gallery-viewer__close:focus-visible {
  background: rgba(252, 254, 255, 0.1);
  border-color: rgba(252, 254, 255, 0.22);
}

.bb-gallery-viewer__close span {
  display: block;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-1px);
}

.bb-gallery-viewer__stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.2vh, 24px) clamp(56px, 8vw, 120px) clamp(28px, 4vh, 40px);
}

.bb-gallery-viewer__figure {
  width: min(100%, var(--bb-viewer-stage-max));
  min-height: 100%;
  margin: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
}

.bb-gallery-viewer__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: var(--bb-viewer-image-max-height);
  object-fit: contain;
  background: transparent;
}

.bb-gallery-viewer__caption {
  width: min(100%, var(--bb-viewer-caption-max));
  text-align: center;
  font-family: var(--bb-font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(252, 254, 255, 0.78);
  text-wrap: pretty;
}

.bb-gallery-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(252, 254, 255, 0.12);
  border-radius: 999px;
  background: rgba(252, 254, 255, 0.05);
  color: var(--bb-offwhite);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bb-gallery-viewer__nav:hover,
.bb-gallery-viewer__nav:focus-visible {
  background: rgba(252, 254, 255, 0.12);
  border-color: rgba(252, 254, 255, 0.22);
}

.bb-gallery-viewer__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.bb-gallery-viewer__nav span {
  display: block;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-1px);
}

.bb-gallery-viewer__nav--prev {
  left: clamp(16px, 2.5vw, 28px);
}

.bb-gallery-viewer__nav--next {
  right: clamp(16px, 2.5vw, 28px);
}

body.bb-gallery-viewer-open {
  overflow: hidden;
  touch-action: none;
}

/* =========================
   EXPERIENCE
========================= */

#experience {
  background: var(--bb-bg-dark);
  color: var(--bb-text-light);
}

#experience::after {
  background: var(--bb-line-dark);
}

#experience .bb-section__title {
  color: var(--bb-offwhite);
}

#experience .bb-section__title::after {
  background: var(--bb-lime);
}

.bb-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bb-experience-grid-gap-y) var(--bb-experience-grid-gap-x);
  width: 100%;
  align-items: center;
  justify-items: stretch;
}

.bb-logo-grid .bb-logo {
  width: 100%;
  min-height: var(--bb-experience-logo-cell-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 1;
  transition: transform 0.18s ease;
}

.bb-logo-grid .bb-logo:hover,
.bb-logo-grid .bb-logo:focus-visible {
  transform: scale(1.0125);
}

.bb-logo-grid .bb-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(var(--bb-experience-logo-max), var(--bb-experience-logo-scale));
  max-height: 128px;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* =========================
   OUR PROCESS
========================= */

#our-process .bb-container {
  max-width: var(--bb-page-max);
}

.bb-how-we-work {
  width: 100%;
  max-width: min(var(--bb-how-max-width), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.bb-how-we-work__intro {
  width: 100%;
  max-width: var(--bb-how-intro-max);
  margin-left: 0;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.bb-how-we-work__intro > * + * {
  margin-top: 18px;
}

.bb-how-we-work__intro p {
  font-family: var(--bb-font-body);
  font-size: clamp(1.22rem, 1.2vw, 1.42rem);
  line-height: 1.75;
  color: rgba(25, 35, 68, 0.88);
  max-width: 70ch;
}

.bb-how-we-work__intro p + p {
  margin-top: 18px;
}

.bb-how-we-work__steps {
  width: 100%;
  max-width: var(--bb-how-step-max);
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bb-how-stack-gap);
  align-items: stretch;
}

.bb-how-step,
.bb-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  max-width: 100%;
  position: relative;
}

.bb-how-step + .bb-how-step,
.bb-step + .bb-step {
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid rgba(25, 35, 68, 0.09);
}

.bb-how-step__number,
.bb-step__number {
  display: inline-block;
  font-family: var(--bb-font-body);
  font-size: 0.79rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(25, 35, 68, 0.48);
  margin: 0 0 12px;
}

.bb-how-step__title,
.bb-step__title {
  font-family: var(--bb-font-title);
  font-size: clamp(1.55rem, 2vw, 2.12rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bb-navy);
  max-width: 100%;
  margin: 0 0 12px;
  text-wrap: balance;
}

.bb-how-step__subheader,
.bb-how-step__sub,
.bb-step__subheader,
.bb-step__sub {
  font-family: var(--bb-font-body);
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.1rem);
  line-height: 1.58;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #b0a7fe;
  margin: 0 0 14px;
  max-width: 60ch;
}

.bb-how-step__text,
.bb-step__text {
  font-family: var(--bb-font-body);
  font-size: clamp(1.04rem, 0.28vw + 0.99rem, 1.12rem);
  line-height: 1.8;
  color: var(--bb-text-muted);
  max-width: 70ch;
  margin: 0;
}

.bb-how-step__text p,
.bb-step__text p {
  margin: 0;
}

.bb-how-step__text p + p,
.bb-step__text p + p {
  margin-top: 16px;
}

/* =========================
   CONTACT
========================= */

#contact {
  background: var(--bb-bg-dark);
  color: var(--bb-text-light);
}

#contact::after {
  background: var(--bb-line-dark);
}

#contact .bb-section__title {
  color: var(--bb-offwhite);
}

#contact .bb-section__title::after {
  background: var(--bb-lilac);
}

.bb-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: var(--bb-text-max);
  margin-left: var(--bb-content-start);
}

.bb-contact__item a,
.bb-contact a {
  color: var(--bb-offwhite);
  text-decoration: none;
  font-family: var(--bb-font-title);
  font-size: clamp(1.15rem, 2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: inline-flex;
  width: fit-content;
  border-bottom: 2px solid rgba(176, 167, 254, 0.4);
  padding-bottom: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bb-contact__item a:hover,
.bb-contact a:hover,
.bb-contact__item a:focus-visible,
.bb-contact a:focus-visible {
  border-color: var(--bb-lime);
  color: var(--bb-lime);
}

/* =========================
   FOOTER
========================= */

.bb-footer {
  position: relative;
  background: var(--bb-bg-dark);
  color: rgba(252, 254, 255, 0.72);
  border-top: 1px solid rgba(252, 254, 255, 0.12);
}

.bb-footer .bb-container {
  padding-top: 26px;
  padding-bottom: 26px;
}

.bb-footer__text {
  font-family: var(--bb-font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bb-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.bb-footer__right img {
  width: 36px;
  height: auto;
  opacity: 0.9;
}

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 768px) {
  .bb-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bb-gallery-gap-desktop);
  }

  .bb-gallery__figure {
    gap: 9px;
  }

  .bb-gallery__caption {
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (min-width: 1200px) {
  .bb-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bb-gallery__image {
    aspect-ratio: 16 / 10;
  }

  .bb-gallery-viewer__figure {
    gap: 12px;
  }

  .bb-gallery-viewer__image {
    max-height: min(68dvh, 820px);
  }

  .bb-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 22px;
  }

  .bb-logo-grid .bb-logo {
    min-height: clamp(118px, 8.8vw, 144px);
  }

  .bb-logo-grid .bb-logo img {
    max-width: min(252px, 100%);
    max-height: 132px;
  }
}

@media (max-width: 1200px) {
  :root {
    --bb-content-start: clamp(24px, 4vw, 56px);
    --bb-hero-max-width: 880px;
  }

  .bb-hero__title {
    font-size: clamp(2.6rem, 4.6vw, 4.45rem);
    max-width: 12ch;
  }

  .bb-hero__signoff,
  [data-bb-hero-signoff] {
    font-size: clamp(1.02rem, 0.9vw + 0.92rem, 1.34rem);
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .bb-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 20px;
  }

  .bb-logo-grid .bb-logo {
    min-height: clamp(112px, 11vw, 136px);
  }

  .bb-logo-grid .bb-logo img {
    max-width: min(220px, 96%);
    max-height: 116px;
  }
}

@media (max-width: 1023px) {
  :root {
    --bb-header-height: var(--bb-header-height-mobile);
    --bb-content-start: 0px;
    --bb-container-gutter: clamp(20px, 5vw, 28px);
    --bb-section-padding-y: var(--bb-section-padding-y-mobile);
    --bb-hero-height: calc(100dvh - var(--bb-header-height));
    --bb-viewer-image-max-height: min(62dvh, 640px);
    --bb-title-line-height: 0.96;
    --bb-how-intro-max: 100%;
    --bb-how-step-max: 720px;
    --bb-how-stack-gap: 34px;
  }

  .bb-header__inner,
  .bb-mobile-nav__header {
    min-height: var(--bb-header-height-mobile);
  }

  .header-logo__img,
  .bb-header .bb-logo img,
  .bb-header__inner .bb-logo img,
  .bb-mobile-nav__header .bb-logo img,
  .bb-logo--mobile img {
    width: var(--bb-logo-width-mobile);
    height: auto;
  }

  .bb-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bb-nav,
  .bb-nav--desktop {
    display: none;
  }

  .bb-section {
    min-height: auto;
  }

  .bb-hero {
    min-height: var(--bb-hero-height);
  }

  .bb-hero .bb-container {
    min-height: var(--bb-hero-height);
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .bb-hero__content {
    max-width: min(100%, 34rem);
    margin-left: 0;
  }

  .bb-hero__title {
    font-size: clamp(2.15rem, 7.8vw, 3.7rem);
    line-height: 1.05;
    max-width: 12ch;
  }

.bb-hero__signoff,
[data-bb-hero-signoff] {
  margin-top: 14px;
  font-size: clamp(1.95rem, 9.2vw, 3.1rem);
  line-height: 0.96;
  max-width: 9.8ch;
}

  .bb-section__header,
  .bb-contact,
  .bb-how-we-work,
  .bb-how-we-work__intro,
  .bb-how-we-work__steps {
    margin-left: 0;
  }

  .bb-gallery-viewer__stage {
    padding: 14px 24px 30px;
  }

  .bb-gallery-viewer__figure {
    gap: 12px;
  }

  .bb-gallery-viewer__caption {
    width: min(100%, 700px);
  }

  .bb-how-we-work {
    max-width: none;
  }

  .bb-how-we-work__intro {
    margin-bottom: 38px;
  }

  .bb-how-we-work__steps {
    max-width: 700px;
    gap: 30px;
  }

  .bb-how-step + .bb-how-step,
  .bb-step + .bb-step {
    padding-top: 28px;
  }

  .bb-how-step__title,
  .bb-step__title {
    max-width: 18ch;
  }

  .bb-how-step__text,
  .bb-step__text {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .bb-gallery__grid {
    grid-template-columns: 1fr;
    gap: var(--bb-gallery-gap-mobile);
  }

  .bb-gallery__image {
    aspect-ratio: 4 / 3;
  }

  .bb-gallery__figure {
    gap: 8px;
  }

  .bb-gallery__caption {
    font-size: 13px;
    line-height: 1.46;
  }

  .bb-gallery-viewer__topbar {
    padding: 14px 16px 0;
  }

  .bb-gallery-viewer__stage {
    padding: 10px 18px 78px;
  }

  .bb-gallery-viewer__figure {
    width: min(100%, 720px);
    gap: 10px;
    align-content: center;
  }

  .bb-gallery-viewer__image {
    max-height: min(56dvh, 520px);
  }

  .bb-gallery-viewer__caption {
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    width: min(100%, 560px);
  }

  .bb-gallery-viewer__close {
    width: 42px;
    height: 42px;
  }

  .bb-gallery-viewer__close span {
    font-size: 30px;
  }

  .bb-gallery-viewer__nav {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 22px;
    transform: none;
    background: rgba(252, 254, 255, 0.08);
  }

  .bb-gallery-viewer__nav span {
    font-size: 26px;
  }

  .bb-gallery-viewer__nav--prev {
    left: 18px;
  }

  .bb-gallery-viewer__nav--next {
    right: 18px;
  }

  .bb-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .bb-logo-grid .bb-logo {
    min-height: 104px;
  }

  .bb-logo-grid .bb-logo img {
    max-width: min(var(--bb-experience-logo-max-mobile), 96%);
    max-height: 96px;
  }
}

@media (max-width: 640px) {
  :root {
    --bb-container-gutter: clamp(18px, 5.5vw, 24px);
    --bb-how-stack-gap: 24px;
  }

  .bb-header__inner,
  .bb-mobile-nav__header {
    min-height: var(--bb-header-height-mobile);
  }

  .header-logo__img,
  .bb-header .bb-logo img,
  .bb-header__inner .bb-logo img,
  .bb-mobile-nav__header .bb-logo img,
  .bb-logo--mobile img {
    width: clamp(122px, 38vw, 158px);
  }

  .bb-menu-toggle,
  .bb-mobile-nav__close {
    width: 42px;
    height: 42px;
  }

  .bb-menu-toggle__bars > span {
    left: 9px;
    width: 24px;
  }

  .bb-mobile-nav__panel {
    padding: 32px 20px 24px;
  }

  .bb-mobile-nav__link {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
    line-height: 0.98;
    padding: 16px 0 18px;
  }

  .bb-gallery {
    margin-top: 0;
  }

  .bb-gallery__figure {
    gap: 8px;
  }

  .bb-gallery__caption {
    font-size: 13px;
  }

  .bb-gallery__actions {
    margin-top: 32px;
  }

  .bb-gallery__load-more {
    width: 100%;
    justify-content: center;
  }

  .bb-hero {
    min-height: var(--bb-hero-height);
  }

  .bb-hero .bb-container {
    min-height: var(--bb-hero-height);
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .bb-hero__content {
    max-width: min(100%, 30rem);
  }

  .bb-hero__title {
    font-size: clamp(1.95rem, 9.2vw, 3.1rem);
    line-height: 0.96;
    max-width: 9.8ch;
  }

  .bb-hero__title::after {
    width: 72px;
    height: 5px;
    margin-top: 22px;
  }

  .bb-hero__signoff,
  [data-bb-hero-signoff] {
    margin-top: 14px;
    font-size: clamp(0.96rem, 4.2vw, 1.12rem);
    line-height: 1.14;
    max-width: 15ch;
  }

  .bb-section__header {
    margin-bottom: 36px;
  }

  .bb-section__title {
    max-width: 12ch;
  }

  .bb-how-we-work__intro {
    margin-bottom: 30px;
  }

  .bb-how-we-work__intro p {
    font-size: 1.08rem;
    line-height: 1.72;
  }

  .bb-how-we-work__steps {
    gap: 24px;
  }

  .bb-how-step + .bb-how-step,
  .bb-step + .bb-step {
    padding-top: 22px;
  }

  .bb-how-step__number,
  .bb-step__number {
    margin-bottom: 10px;
  }

  .bb-how-step__title,
  .bb-step__title {
    font-size: clamp(1.28rem, 5.4vw, 1.52rem);
    line-height: 1.12;
    margin-bottom: 10px;
    max-width: 16ch;
  }

  .bb-how-step__subheader,
  .bb-how-step__sub,
  .bb-step__subheader,
  .bb-step__sub {
    font-size: 0.95rem;
    line-height: 1.52;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .bb-how-step__text,
  .bb-step__text {
    font-size: 1rem;
    line-height: 1.72;
  }

  .bb-how-step__text p + p,
  .bb-step__text p + p {
    margin-top: 14px;
  }

  .bb-contact__item a,
  .bb-contact a {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    line-height: 1.18;
  }
}

@media (max-width: 420px) {
  .bb-hero__title {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
    line-height: 0.97;
    max-width: 9.2ch;
  }

  .bb-hero__signoff,
  [data-bb-hero-signoff] {
    font-size: clamp(0.92rem, 4.4vw, 1.02rem);
    max-width: 14ch;
  }

  .bb-gallery-viewer__topbar {
    padding-top: 12px;
  }

  .bb-gallery-viewer__stage {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 74px;
  }

  .bb-gallery-viewer__nav--prev {
    left: 14px;
  }

  .bb-gallery-viewer__nav--next {
    right: 14px;
  }

  .bb-logo-grid {
    gap: 16px 12px;
  }

  .bb-logo-grid .bb-logo {
    min-height: 96px;
  }

  .bb-logo-grid .bb-logo img {
    max-width: min(164px, 98%);
    max-height: 88px;
  }
}

@media (min-width: 1024px) {
  .bb-menu-toggle,
  .bb-mobile-nav {
    display: none !important;
  }

  .bb-nav,
  .bb-nav--desktop {
    display: flex !important;
  }

  .bb-nav__list,
  .landing-nav__flex {
    flex-direction: row;
  }
}
