:root {
  --bb-forest: #5C7A3E;
  --bb-forest-light: #7F9C59;
  --bb-oak: #B9854B;
  --bb-slate: #41505A;
  --bb-slate-dark: #151B1F;
  --bb-slate-soft: #7C8B94;
  --bb-tile: #DCE2E4;
  --bb-cream: #F4EDDD;
}

.bba {
  background:
    radial-gradient(circle at 15% 5%, rgba(92, 122, 62, 0.22), transparent 28%),
    linear-gradient(180deg, #101518 0%, #182126 48%, #0F1315 100%);
  color: var(--bb-cream);
  min-height: 100vh;
  overflow-x: clip;
}

.bba a {
  color: inherit;
}

html,
body {
  overflow-x: hidden;
}

.mesh-bg {
  display: none;
}

.bottom-cta,
.site-footer {
  max-width: 100vw;
  overflow: hidden;
}

.site-footer .wrap-wide,
.footer-grid,
.footer-grid > *,
.footer-join-form input {
  min-width: 0;
}

.bb-hero {
  min-height: 86vh;
  margin: 0 24px 80px;
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 0.92fr);
  gap: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 237, 221, 0.16);
  border-radius: 4px;
  background: #12191D;
}

.bb-hero-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.bb-hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(18, 25, 29, 0.12), rgba(18, 25, 29, 0.68)),
    url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?w=2200&q=85");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.08);
  animation: bbPhotoDrift 28s ease-in-out infinite alternate;
}

@keyframes bbPhotoDrift {
  from { transform: scale(1); }
  to { transform: scale(1.08) translate(-1.2%, -1%); }
}

.bb-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18,25,29,0.10), rgba(18,25,29,0.58)),
    linear-gradient(180deg, rgba(18,25,29,0.02), rgba(18,25,29,0.72));
  pointer-events: none;
}

.bb-tile-grid {
  position: absolute;
  inset: 26px;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 92px;
  gap: 7px;
  transform: rotate(-3deg) scale(1.08);
  opacity: 0.26;
  z-index: 2;
}

.bb-tile-grid span {
  background: linear-gradient(135deg, rgba(220, 226, 228, 0.24), rgba(220, 226, 228, 0.04));
  border: 1px solid rgba(244, 237, 221, 0.07);
}

.bb-niche-model {
  position: absolute;
  width: min(54%, 440px);
  aspect-ratio: 0.74;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.bb-niche-shadow {
  position: absolute;
  inset: 10% -5% -10% 8%;
  background: rgba(0, 0, 0, 0.34);
  filter: blur(28px);
}

.bb-niche-box {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05), transparent 18%),
    linear-gradient(180deg, #202B31, #12181C);
  border: 18px solid #2D3A41;
  box-shadow:
    inset 0 0 0 1px rgba(244,237,221,0.14),
    0 40px 80px rgba(0,0,0,0.42);
}

.bb-niche-box i {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 18%;
  background: linear-gradient(180deg, #B9854B, #76522E);
  border-radius: 2px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.34);
}

.bb-niche-box i:nth-child(1) { top: 18%; }
.bb-niche-box i:nth-child(2) { top: 42%; width: 44%; right: auto; }
.bb-niche-box i:nth-child(3) { bottom: 16%; }

.bb-wood-rail {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -7%;
  height: 16px;
  background: linear-gradient(90deg, #6F4B29, #C59052, #6F4B29);
  transform: rotate(1.5deg);
}

.bb-hero-copy {
  padding: clamp(42px, 6vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.bb-kicker,
.bb-section-head p,
.bb-colophon p {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bb-forest-light);
  margin: 0 0 18px;
}

.bb-hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(62px, 8vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  max-width: 9ch;
}

.bb-deck {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  color: rgba(244, 237, 221, 0.82);
  max-width: 30ch;
  margin: 0 0 34px;
}

.bb-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.bb-hero-actions a,
.bb-feature-copy a,
.bb-colophon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--bb-forest);
  color: #FFF7E5;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
}

.bb-hero-actions span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,237,221,0.55);
}

.bb-hero-card {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: min(330px, calc(100% - 68px));
  padding: 22px;
  border: 1px solid rgba(244, 237, 221, 0.18);
  background: rgba(15, 19, 21, 0.72);
  backdrop-filter: blur(12px);
}

.bb-hero-card span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--bb-oak);
  text-transform: uppercase;
}

.bb-hero-card p {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  line-height: 1.4;
  margin: 10px 0 0;
}

.bb-menu,
.bb-intel,
.bb-contributors {
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 56px;
}

.bb-section-head {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: end;
  gap: 54px;
  border-top: 1px solid rgba(244,237,221,0.16);
  padding-top: 22px;
  margin-bottom: 46px;
}

.bb-section-head h2,
.bb-feature-copy h2,
.bb-pro h2,
.bb-related h2,
.bb-colophon h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 0;
}

.bb-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(244,237,221,0.16);
  border-left: 1px solid rgba(244,237,221,0.16);
}

.bb-project-card {
  min-height: 280px;
  padding: 0 26px 26px;
  border-right: 1px solid rgba(244,237,221,0.16);
  border-bottom: 1px solid rgba(244,237,221,0.16);
  text-decoration: none;
  background: rgba(244,237,221,0.025);
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bb-project-card:hover {
  background: rgba(92,122,62,0.16);
  transform: translateY(-2px);
}

.bb-project-card.featured {
  background: linear-gradient(135deg, rgba(92,122,62,0.34), rgba(185,133,75,0.14));
}

.bb-project-photo {
  height: 170px;
  margin: 0 -26px 24px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.88) contrast(1.08);
  position: relative;
}

.bb-project-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,25,29,0.03), rgba(18,25,29,0.62));
}

.bb-project-num {
  font-family: "JetBrains Mono", monospace;
  color: var(--bb-oak);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.bb-project-card h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  margin: 32px 0 12px;
}

.bb-project-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-forest-light);
}

.bb-project-card p:not(.bb-project-meta) {
  color: rgba(244,237,221,0.68);
  font-size: 15px;
  line-height: 1.55;
}

.bb-feature {
  margin: 60px 24px 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  border: 1px solid rgba(244,237,221,0.16);
  background: #101518;
}

.bb-photo-spread {
  max-width: 1360px;
  margin: 20px auto 96px;
  padding: 80px 56px 0;
}

.bb-photo-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  gap: 1px;
  background: rgba(244,237,221,0.16);
  border: 1px solid rgba(244,237,221,0.16);
}

.bb-photo-card {
  min-height: 360px;
  background: #12191D;
  display: grid;
  grid-template-rows: 1fr auto;
}

.bb-photo-card.c1 {
  grid-row: span 2;
  min-height: 720px;
}

.bb-photo-card .photo {
  min-height: 240px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.88) contrast(1.08);
}

.bb-photo-card.c1 .photo {
  min-height: 520px;
}

.bb-photo-card .copy {
  padding: 28px;
  background: #101518;
}

.bb-photo-card .copy span {
  display: block;
  margin-bottom: 12px;
  color: var(--bb-oak);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.bb-photo-card h3 {
  margin: 0;
  color: var(--bb-cream);
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 2.8vw, 46px);
  font-weight: 400;
  line-height: 1.0;
}

.bb-photo-card p {
  margin: 16px 0 0;
  color: rgba(244,237,221,0.7);
  font-size: 14px;
  line-height: 1.58;
}

.bb-feature-diagram {
  position: relative;
  background:
    linear-gradient(90deg, transparent 49%, rgba(244,237,221,0.06) 50%, transparent 51%),
    linear-gradient(180deg, rgba(220,226,228,0.12), rgba(65,80,90,0.18));
  overflow: hidden;
}

.bb-feature-photo {
  background:
    linear-gradient(180deg, rgba(16,21,24,0.08), rgba(16,21,24,0.54)),
    url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?w=1800&q=85");
  background-size: cover;
  background-position: center;
}

.bb-feature-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,21,24,0.10), rgba(16,21,24,0.62)),
    linear-gradient(180deg, rgba(16,21,24,0.08), rgba(16,21,24,0.72));
}

.bb-feature-photo .bb-wall-cavity,
.bb-feature-photo .bb-wall-label {
  display: none;
}

.bb-wall-cavity {
  position: absolute;
  inset: 14% 18%;
  border: 1px solid rgba(244,237,221,0.22);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(1px);
}

.bb-wall-cavity .stud {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  background: linear-gradient(180deg, #7B5530, #A6713B);
}

.bb-wall-cavity .left { left: 0; }
.bb-wall-cavity .right { right: 0; }

.bb-feature-niche {
  position: absolute;
  left: 29%;
  right: 29%;
  top: 24%;
  bottom: 26%;
  border: 12px solid #DCE2E4;
  background: #172025;
  box-shadow: inset 0 -10px 0 rgba(92,122,62,0.55);
}

.bb-feature-niche b {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  color: var(--bb-oak);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bb-wall-label {
  position: absolute;
  left: 32px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244,237,221,0.58);
}

.bb-wall-label.top { top: 30px; }
.bb-wall-label.bottom { bottom: 30px; }

.bb-feature-copy {
  padding: clamp(42px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bb-feature-copy p:not(.bb-kicker) {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  line-height: 1.58;
  color: rgba(244,237,221,0.78);
  max-width: 42ch;
}

.bb-feature-copy a {
  align-self: flex-start;
  margin-top: 18px;
}

.bb-intel-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
}

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

.bb-materials article,
.bb-tools,
.bb-pro-list article,
.bb-contributor-grid article {
  border: 1px solid rgba(244,237,221,0.15);
  background: rgba(244,237,221,0.035);
  padding: 24px;
}

.bb-materials h3,
.bb-tools h3,
.bb-pro-list h3,
.bb-contributor-grid h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 25px;
  margin: 0 0 12px;
}

.bb-materials p,
.bb-pro p,
.bb-pro-list p,
.bb-contributor-grid p {
  color: rgba(244,237,221,0.7);
  line-height: 1.6;
  margin: 0;
}

.bb-tools ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bb-tools li {
  border-top: 1px solid rgba(244,237,221,0.12);
  padding: 11px 0;
  color: rgba(244,237,221,0.72);
}

.bb-pro {
  max-width: 1360px;
  margin: 30px auto 70px;
  padding: 70px 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  background: linear-gradient(135deg, rgba(65,80,90,0.42), rgba(92,122,62,0.12));
}

.bb-pro > div:first-child p:not(.bb-kicker) {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(244,237,221,0.75);
}

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

.bb-contributor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bb-contributor-grid span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bb-oak);
  margin-bottom: 24px;
}

.bb-related {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 56px;
  text-align: center;
}

.bb-related h2 {
  max-width: 15ch;
  margin: 0 auto 34px;
}

.bb-related div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bb-related a {
  border: 1px solid rgba(244,237,221,0.18);
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  color: rgba(244,237,221,0.78);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

.bb-colophon {
  margin: 40px 24px 0;
  padding: 90px 32px;
  text-align: center;
  border-top: 1px solid rgba(244,237,221,0.16);
}

.bb-colophon h2 {
  max-width: 18ch;
  margin: 0 auto 28px;
}

@media (max-width: 1050px) {
  .bb-hero,
  .bb-feature,
  .bb-intel-grid,
  .bb-pro,
  .bb-photo-grid,
  .bb-section-head {
    grid-template-columns: 1fr;
  }

  .bb-project-grid,
  .bb-contributor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bb-hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0 34px 34px auto;
  }

  .bb-photo-card.c1 {
    grid-row: auto;
    min-height: 0;
  }

  .bb-photo-card.c1 .photo {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .bb-hero,
  .bb-feature {
    margin-left: 12px;
    margin-right: 12px;
  }

  .bb-menu,
  .bb-intel,
  .bb-contributors,
  .bb-photo-spread,
  .bb-pro,
  .bb-related {
    padding-left: 22px;
    padding-right: 22px;
  }

  .bb-project-grid,
  .bb-materials,
  .bb-pro-list,
  .bb-contributor-grid {
    grid-template-columns: 1fr;
  }

  .bb-hero-media {
    min-height: 440px;
  }

  .bb-project-photo,
  .bb-photo-card .photo,
  .bb-photo-card.c1 .photo {
    min-height: 240px;
  }

  .bb-hero h1 {
    font-size: clamp(48px, 15vw, 76px);
  }

  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-join-form {
    max-width: 100%;
  }
}
