.bjp-gallery-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(26, 84, 139, 0.24), transparent 34%),
    linear-gradient(135deg, #06162f 0%, #092143 56%, #0d2d59 100%);
  color: #fff;
  padding: clamp(42px, 4.4vw, 62px) 0 clamp(40px, 4vw, 58px);
}

.bjp-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(550px, 1.2fr);
  grid-template-areas:
    "copy mosaic"
    "proof mosaic";
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: clamp(38px, 4.8vw, 70px);
  row-gap: 20px;
}

.bjp-gallery-copy {
  grid-area: copy;
  max-width: 610px;
  align-self: end;
}

.bjp-gallery-kicker {
  display: block;
  margin-bottom: 17px;
  color: #ff9d8b;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bjp-gallery-hero h1 {
  max-width: 610px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 4.15vw, 4.2rem);
  font-weight: 680;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: balance;
}

.bjp-gallery-copy > p {
  max-width: 590px;
  margin: 24px 0 0;
  color: #cbd7e7;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.bjp-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.bjp-gallery-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.bjp-gallery-button:hover {
  transform: translateY(-1px);
}

.bjp-gallery-button--primary {
  background: #cf0b2d;
  color: #fff;
  box-shadow: 0 14px 30px rgba(118, 4, 26, 0.28);
}

.bjp-gallery-button--primary:hover {
  background: #b70827;
}

.bjp-gallery-button--secondary {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(5, 20, 44, 0.18);
  color: #fff;
}

.bjp-gallery-button--secondary:hover {
  border-color: #fff;
  background: #fff;
  color: #071a39;
}

.bjp-gallery-proof {
  grid-area: proof;
  display: flex;
  flex-wrap: wrap;
  align-self: start;
  gap: 10px 25px;
  margin: 0;
  padding: 0;
  color: #c8d4e4;
  font-size: 0.82rem;
  font-weight: 690;
  line-height: 1.45;
  list-style: none;
}

.bjp-gallery-proof li {
  position: relative;
  padding-left: 15px;
}

.bjp-gallery-proof li::before {
  width: 6px;
  height: 6px;
  position: absolute;
  top: 0.58em;
  left: 0;
  border-radius: 50%;
  background: #ee2b52;
  content: "";
}

.bjp-gallery-mosaic {
  grid-area: mosaic;
  height: clamp(425px, 36vw, 485px);
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.bjp-gallery-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #12335e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(0, 7, 22, 0.2);
}

.bjp-gallery-tile--feature {
  grid-row: 1 / 3;
}

.bjp-gallery-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.02);
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 300ms ease;
}

.bjp-gallery-tile:hover img,
.bjp-gallery-tile:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.03);
}

.bjp-gallery-tile > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 48px 18px 17px;
  background: linear-gradient(transparent, rgba(2, 13, 30, 0.92));
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.bjp-gallery-tile small,
.bjp-gallery-tile strong {
  display: block;
}

.bjp-gallery-tile small {
  margin-bottom: 5px;
  color: #ffab98;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bjp-gallery-tile strong {
  color: #fff;
  font-size: 0.87rem;
  font-weight: 790;
  line-height: 1.28;
}

.bjp-gallery-tile--feature strong {
  font-size: 0.94rem;
}

.bjp-starting-points {
  border-bottom: 1px solid #dfe5ed;
  background: #fbfcfe;
  padding: 30px 0 42px;
}

.bjp-starting-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.bjp-starting-intro {
  align-self: center;
  padding: 16px 25px 16px 0;
}

.bjp-starting-intro > span,
.bjp-starting-card small {
  color: #bd1230;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bjp-starting-intro h2 {
  margin: 10px 0 0;
  color: #101b2d;
  font-size: clamp(1.75rem, 2.45vw, 2.25rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.bjp-starting-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #dce2ea;
  border-top: 3px solid #bd1230;
  border-radius: 7px;
  background: #fff;
  padding: 22px 23px;
  color: #101b2d;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(7, 26, 57, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bjp-starting-card:hover {
  border-color: #c8d0dc;
  box-shadow: 0 18px 38px rgba(7, 26, 57, 0.1);
  transform: translateY(-2px);
}

.bjp-starting-card h3 {
  display: block;
  margin: 10px 0 8px;
  color: #071a39;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.22;
}

.bjp-starting-card > span {
  color: #5c687b;
  font-size: 0.83rem;
  line-height: 1.58;
}

.premium-home .seo-depth-card > a {
  display: inline-flex;
  margin-top: 8px;
  color: #a80d27;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(168, 13, 39, 0.35);
  text-underline-offset: 4px;
}

.premium-home .premium-faq-list p a {
  color: #9e0c26;
  font-weight: 780;
  text-decoration: underline;
  text-decoration-color: rgba(158, 12, 38, 0.35);
  text-underline-offset: 3px;
}

.premium-home .premium-split-heading > p,
.premium-home .premium-faq-grid > div > p {
  color: #596577 !important;
}

.bjp-gallery-button:focus-visible,
.bjp-gallery-tile:focus-visible,
.bjp-starting-card:focus-visible {
  outline: 3px solid #ff9aac !important;
  outline-offset: 4px !important;
}

@media (max-width: 1120px) {
  .bjp-gallery-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
    column-gap: 38px;
  }

  .bjp-gallery-hero h1 {
    font-size: clamp(2.8rem, 4.8vw, 3.65rem);
  }

  .bjp-gallery-mosaic {
    height: 430px;
  }

  .bjp-starting-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bjp-starting-intro {
    grid-column: 1 / -1;
    max-width: 650px;
    padding: 4px 0 8px;
  }
}

@media (max-width: 1040px) {
  .bjp-gallery-hero {
    padding: 31px 0 34px;
  }

  .bjp-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "mosaic"
      "proof";
    row-gap: 27px;
  }

  .bjp-gallery-copy {
    max-width: 720px;
  }

  .bjp-gallery-hero h1 {
    max-width: 680px;
    font-size: clamp(2.55rem, 9vw, 4rem);
    line-height: 1;
  }

  .bjp-gallery-copy > p {
    max-width: 680px;
    margin-top: 20px;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .bjp-gallery-actions {
    margin-top: 23px;
  }

  .bjp-gallery-mosaic {
    height: clamp(270px, 66vw, 430px);
    gap: 8px;
  }

  .bjp-gallery-proof {
    gap: 9px 20px;
    font-size: 0.78rem;
  }

  .bjp-starting-points {
    padding: 28px 0 36px;
  }
}

@media (max-width: 680px) {
  .bjp-gallery-hero {
    padding-top: 29px;
  }

  .bjp-gallery-kicker {
    margin-bottom: 13px;
    font-size: 0.69rem;
  }

  .bjp-gallery-hero h1 {
    max-width: 470px;
    font-size: clamp(2.35rem, 10.8vw, 3.2rem);
    letter-spacing: -0.045em;
    line-height: 1.01;
  }

  .bjp-gallery-copy > p {
    margin-top: 18px;
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .bjp-gallery-button {
    min-height: 46px;
    padding: 11px 14px;
    font-size: 0.82rem;
  }

  .bjp-gallery-mosaic {
    height: clamp(285px, 78vw, 360px);
  }

  .bjp-gallery-tile > span {
    padding: 36px 11px 10px;
  }

  .bjp-gallery-tile small {
    margin-bottom: 3px;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
  }

  .bjp-gallery-tile strong,
  .bjp-gallery-tile--feature strong {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .bjp-gallery-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    font-size: 0.82rem;
  }

  .bjp-gallery-proof li:last-child {
    grid-column: 1 / -1;
  }

  .bjp-starting-grid {
    grid-template-columns: 1fr;
  }

  .bjp-starting-card {
    min-height: 128px;
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .premium-home-main :where(
    .bjp-gallery-grid,
    .cinematic-inventory-heading,
    .bjp-build-studio-head,
    .premium-national-grid,
    .premium-split-heading,
    .premium-feature-grid,
    .premium-feature-card,
    .premium-type-grid,
    .premium-operation-grid,
    .premium-concept-grid,
    .premium-seo-grid,
    .premium-faq-grid,
    .premium-final-cta-inner,
    .home-blog-grid,
    .home-blog-card,
    .bjp-partner-panel--compact
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .premium-home-main :where(
    .bjp-gallery-grid > *,
    .cinematic-inventory-heading > *,
    .bjp-build-studio-head > *,
    .premium-national-grid > *,
    .premium-split-heading > *,
    .premium-feature-grid > *,
    .premium-feature-card > *,
    .premium-type-grid > *,
    .premium-operation-grid > *,
    .premium-concept-grid > *,
    .premium-seo-grid > *,
    .premium-faq-grid > *,
    .premium-final-cta-inner > *,
    .home-blog-grid > *,
    .home-blog-card > *,
    .bjp-partner-panel--compact > *,
    .bjp-partner-copy,
    .bjp-partner-logos,
    .bjp-partner-logo-card,
    .premium-city-finder,
    .premium-search-box,
    .premium-city-results
  ) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .premium-home-main :where(
    h1,
    h2,
    h3,
    .bjp-gallery-tile small,
    .bjp-gallery-tile strong
  ) {
    overflow-wrap: anywhere;
  }

  .premium-home-main .bjp-project-showcase-head > span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .bjp-gallery-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bjp-gallery-button {
    width: 100%;
  }

  .bjp-gallery-mosaic {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(210px, 64vw) minmax(190px, 56vw);
  }

  .bjp-gallery-tile--feature {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .bjp-gallery-tile > span {
    padding: 24px 11px 10px;
  }

  .bjp-gallery-tile small {
    display: none;
  }

  .bjp-gallery-proof {
    grid-template-columns: 1fr;
  }

  .bjp-gallery-proof li:last-child {
    grid-column: auto;
  }

  .bjp-build-studio--classy .bjp-build-process,
  .bjp-partner-panel--compact .bjp-partner-logos {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bjp-gallery-button,
  .bjp-gallery-tile img,
  .bjp-starting-card {
    transition: none;
  }
}

/* Cool-neutral homepage finish and a non-clipping native scroll container. */
.premium-home-main {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.premium-home .premium-shop-types,
.premium-home .premium-faq {
  background: #f5f7fa !important;
}

.premium-home .premium-operation-planner {
  background: linear-gradient(135deg, #f3f6fa, #fff) !important;
}

.premium-home .home-blog-section {
  background: linear-gradient(145deg, #f5f7fb 0%, #fff 62%) !important;
}

/* Pause large ambient tracks once per native scroll gesture. */
body.premium-home.bjp-scroll-active .cinematic-inventory-sequence,
body.premium-home.bjp-scroll-active .customer-review-track,
body.premium-home.bjp-scroll-active .gst-featured-stock,
body.premium-home.bjp-scroll-active .bjp-build-studio::before,
body.premium-home.bjp-scroll-active .bjp-blueprint-grid {
  animation-play-state: paused !important;
}

/* Keep the workflow photo and copy anchored to the same top edge on wide screens. */
@media (min-width: 1041px) {
  .premium-home .premium-operation-grid {
    align-items: start !important;
  }

  .premium-home .premium-operation-media {
    align-self: start;
  }
}
