/* ==========================================================================
   Boabat Alnoor - 2026 theme
   --------------------------------------------------------------------------
   Layout, typography and component system follow the reference site
   emc-egypt.net (Montserrat headings over Roboto body, a full-bleed hero,
   an animated stat band, filtered project cards, a partner marquee).
   The palette stays Boabat Alnoor's own green/navy - swap the --brand-*
   tokens below to re-skin the whole site.
   Written standalone: it does not depend on the legacy boabat-style.css.
   ========================================================================== */

:root {
  /* brand */
  --brand:            #00964d;
  --brand-600:        #00b25c;
  --brand-700:        #018043;
  --brand-050:        #e8f7ef;
  --ink:              #09213f;
  --ink-800:          #123056;
  --ink-600:          #21456f;

  /* neutrals */
  --bg:               #ffffff;
  --bg-soft:          #f7f9fb;
  --bg-mute:          #eef2f6;
  --line:             #e2e8f0;
  --text:             #16232f;
  --text-soft:        #5b6b7c;
  --text-faint:       #8a99a8;
  --on-dark:          #ffffff;
  --on-dark-soft:     #b9c6d4;

  /* shape */
  --radius:           .5rem;
  --radius-lg:        .875rem;
  --shadow-sm:        0 1px 2px rgba(9,33,63,.06), 0 1px 3px rgba(9,33,63,.08);
  --shadow-md:        0 4px 6px -1px rgba(9,33,63,.08), 0 2px 4px -2px rgba(9,33,63,.06);
  --shadow-lg:        0 18px 40px -12px rgba(9,33,63,.22);

  /* rhythm */
  --section-y:        clamp(3.5rem, 7vw, 6.5rem);
  --container:        1200px;

  --font-head:        "Montserrat", "Segoe UI", sans-serif;
  --font-body:        "Roboto", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-head {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* --------------------------------------------------------------- layout -- */

.bn-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.bn-section { padding-block: var(--section-y); }
.bn-section--tight { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.bn-section--soft { background: var(--bg-soft); }
.bn-section--mute { background: var(--bg-mute); }
.bn-section--dark { background: var(--ink); color: var(--on-dark-soft); }
.bn-section--dark h1,
.bn-section--dark h2,
.bn-section--dark h3 { color: var(--on-dark); }

.bn-grid { display: grid; gap: 1.5rem; }
.bn-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.bn-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.bn-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }

/* --------------------------------------------------------- section head -- */

.bn-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.bn-head--center { margin-inline: auto; text-align: center; }

.bn-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: .85rem;
}
.bn-kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--brand-600);
  border-radius: 2px;
}
.bn-head--center .bn-kicker::before { display: none; }

.bn-section--dark .bn-kicker { color: var(--brand-600); }

.bn-title { font-size: clamp(1.75rem, 3.4vw, 2.65rem); margin-bottom: .5rem; }
.bn-lede { font-size: 1.0625rem; color: var(--text-soft); margin: 0; }
.bn-section--dark .bn-lede { color: var(--on-dark-soft); }

/* --------------------------------------------------------------- button -- */

.bn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  padding: .875rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bn-btn:hover { transform: translateY(-1px); }
.bn-btn:active { transform: translateY(0); }
.bn-btn:focus-visible { outline: 3px solid var(--brand-050); outline-offset: 2px; }

.bn-btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.bn-btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-md); }

.bn-btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.bn-btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }

.bn-btn--on-dark { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.bn-btn--on-dark:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.bn-btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }

.bn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9375rem;
}
.bn-link-arrow::after { content: "\2192"; transition: transform .18s ease; }
.bn-link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------- topbar/nav */

.bn-topbar {
  background: var(--ink);
  color: var(--on-dark-soft);
  font-size: .8125rem;
}
.bn-topbar .bn-container {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  align-items: center;
  justify-content: flex-end;
  min-height: 2.5rem;
}
.bn-topbar a { color: var(--on-dark-soft); display: inline-flex; align-items: center; gap: .4rem; }
.bn-topbar a:hover { color: #fff; }
.bn-topbar__social { display: inline-flex; gap: .5rem; }
.bn-topbar__social a {
  width: 1.75rem; height: 1.75rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  justify-content: center;
}
.bn-topbar__social a:hover { background: var(--brand); border-color: var(--brand); }

.bn-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bn-nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.bn-nav__logo img { max-height: 3rem; width: auto; }
.bn-nav__spacer { margin-left: auto; }

.bn-nav__links { display: flex; align-items: center; gap: .25rem; }
.bn-nav__link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
  padding: .6rem .9rem;
  border-radius: var(--radius);
}
.bn-nav__link:hover { color: var(--brand-700); background: var(--brand-050); }
.bn-nav__link.is-active { color: var(--brand-700); }
.bn-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .15rem;
  height: 2px;
  background: var(--brand-600);
  border-radius: 2px;
}

/* Both of these belong to the mobile drawer only. They are given their real
   styling inside the narrow-screen media query; here they are switched off, or
   a bare <button> renders in the middle of the desktop nav. */
.bn-nav__toggle,
.bn-nav__close { display: none; }

/* dropdown */
.bn-nav__item { position: relative; }
.bn-nav__menu {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.35rem);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.bn-nav__item:hover > .bn-nav__menu,
.bn-nav__item:focus-within > .bn-nav__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.bn-nav__menu a {
  display: block;
  padding: .55rem .75rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: .9063rem;
  color: var(--text);
}
.bn-nav__menu a:hover { background: var(--bg-soft); color: var(--brand-700); }

/* ----------------------------------------------------------------- hero -- */

.bn-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 78vh, 44rem);
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.bn-hero__media { position: absolute; inset: 0; }
.bn-hero__media img,
.bn-hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bn-hero__slide.is-on { opacity: 1; }
.bn-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(9,33,63,.94) 0%, rgba(9,33,63,.78) 45%, rgba(9,33,63,.35) 100%);
}
.bn-hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 9vw, 7rem); }
.bn-hero__content { max-width: 44rem; }

/* ---------------------------------------------------------------- wordmark --
   The initials lead at display size with the full company name locked up
   beneath, and the loader in header.php reuses the same three classes at a
   smaller step - see the .bn-loader overrides, which are more specific and so
   still win there. Sized in clamp() so it scales with the viewport instead of
   needing a breakpoint of its own. */
.bn-wordmark { display: block; margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.bn-wordmark__initials {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 13vw, 7.5rem);
  line-height: .88;
  letter-spacing: -.03em;
}

.bn-wordmark__name {
  display: block;
  position: relative;
  margin-top: .8rem;
  padding-bottom: .85rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(.875rem, 1.6vw, 1.125rem);
  letter-spacing: .3em;
  text-indent: .3em;      /* balances the trailing space letter-spacing adds */
  text-transform: uppercase;
}
/* The rule under the name.
   Centred on the lockup rather than pinned to the left edge of the line box:
   the block is as wide as the hero column, so left:0 put the rule a long way
   from the mark it belongs to. Themes repaint the colour; it carries one of
   its own so it never vanishes when a theme does not. */
.bn-wordmark__name::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(100%, 18rem);
  height: 2px;
  background: currentColor;
}
.bn-hero .bn-kicker { color: #fff; }
.bn-hero .bn-kicker::before { background: var(--brand-600); }
.bn-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.bn-hero p {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: #d7e2ee;
  max-width: 40rem;
}
.bn-hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2rem; }

.bn-hero__dots {
  position: absolute;
  bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: .5rem;
}
.bn-hero__dots button {
  width: .5rem; height: .5rem; padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}
.bn-hero__dots button.is-on { width: 1.5rem; border-radius: 1rem; background: #fff; }

/* page banner (inner pages) */
.bn-banner {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.bn-banner__media { position: absolute; inset: 0; opacity: .3; }
.bn-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.bn-banner__inner { position: relative; z-index: 2; }
.bn-banner h1 { color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.75rem); margin-bottom: .35rem; }
.bn-banner p { color: #c6d4e2; margin: 0; max-width: 44rem; }

.bn-crumbs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: .8125rem; color: #9fb2c6;
  margin-bottom: .85rem;
}
.bn-crumbs a { color: #9fb2c6; }
.bn-crumbs a:hover { color: #fff; }
.bn-crumbs span::before { content: "/"; margin-right: .4rem; color: #64798f; }

/* ---------------------------------------------------------------- stats -- */

.bn-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bn-stat { background: #fff; padding: 1.75rem 1.5rem; }
.bn-stat__num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -.02em;
}
.bn-stat__label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: .6rem 0 .35rem;
}
.bn-stat__caption { font-size: .875rem; color: var(--text-soft); margin: 0; }

/* -------------------------------------------------------------- cards ---- */

.bn-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.bn-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-mute);
  overflow: hidden;
}
.bn-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.bn-card:hover .bn-card__media img { transform: scale(1.05); }
.bn-card__media--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-600) 100%);
  color: rgba(255,255,255,.28);
  font-size: 2.25rem;
}

.bn-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.bn-card__title { font-size: 1.0625rem; margin-bottom: .5rem; }
.bn-card__title a { color: inherit; }
.bn-card__title a:hover { color: var(--brand-700); }
.bn-card__text { font-size: .9063rem; color: var(--text-soft); margin: 0 0 1rem; }
.bn-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

.bn-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-head);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand-700);
  white-space: nowrap;
}
.bn-tag--muted { background: var(--bg-mute); color: var(--text-soft); }
.bn-tag--year { background: transparent; border: 1px solid var(--line); color: var(--text-soft); }

.bn-card__badges {
  position: absolute;
  top: .75rem; left: .75rem;
  display: flex; gap: .4rem; flex-wrap: wrap;
  z-index: 2;
}
.bn-card__badges .bn-tag { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: var(--shadow-sm); }

/* service card */
.bn-service { padding: 1.75rem 1.6rem; }
.bn-service__icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.bn-service ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.bn-service li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .9063rem;
  color: var(--text-soft);
  margin-bottom: .4rem;
}
.bn-service li::before {
  content: "";
  position: absolute;
  left: 0; top: .6rem;
  width: .375rem; height: .375rem;
  border-radius: 50%;
  background: var(--brand-600);
}

/* ------------------------------------------------------------- flagship -- */

.bn-hero--flagship .bn-hero__media::after {
  background: linear-gradient(100deg,
    rgba(9,33,63,.95) 0%, rgba(9,33,63,.82) 42%, rgba(9,33,63,.42) 100%);
}

/* Video hero -------------------------------------------------------------
   The poster image sits underneath at all times. The video fades in over it
   only once it has enough data to play, so a slow or refused download simply
   leaves the poster in place rather than showing a black rectangle. */

.bn-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
  /* Sits above the poster but below the ::after scrim and the copy. */
  z-index: 1;
}
.bn-hero__video.is-playing { opacity: 1; }

/* The scrim and content must stay above the video. */
.bn-hero--video .bn-hero__media::after { z-index: 2; }

/* A video hero needs a slightly stronger scrim than a still: moving footage
   competes with the headline in a way a static image does not. */
.bn-hero--video .bn-hero__media::after {
  background: linear-gradient(100deg,
    rgba(9,33,63,.96) 0%, rgba(9,33,63,.86) 45%, rgba(9,33,63,.55) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .bn-hero__video { display: none; }
}

.bn-flagship {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 62rem) {
  .bn-flagship { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.bn-flagship__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(50%, 8rem), 1fr));
  gap: 1.25rem 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.bn-flagship__facts div { display: flex; flex-direction: column; }
.bn-flagship__facts strong {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -.02em;
}
.bn-flagship__facts span {
  font-size: .8125rem;
  color: var(--text-soft);
  margin-top: .3rem;
}

.bn-flagship__media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.bn-flagship__shot {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-mute);
  box-shadow: var(--shadow-md);
}
.bn-flagship__shot.is-lead { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.bn-flagship__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.bn-flagship__shot:hover img { transform: scale(1.05); }

/* system cards (dark section) */
.bn-syscard {
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.bn-syscard:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-3px);
}
.bn-syscard__icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: rgba(0,178,92,.16);
  color: var(--brand-600);
  font-size: 1.375rem;
  margin-bottom: 1.1rem;
}
.bn-syscard__label {
  font-family: var(--font-head);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: .35rem;
}
.bn-syscard h3 { color: #fff; font-size: 1.125rem; margin-bottom: .6rem; }
.bn-syscard p { font-size: .9063rem; color: var(--on-dark-soft); margin: 0; }

/* --------------------------------------------------------------- filter -- */

.bn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.bn-chip {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.bn-chip:hover { border-color: var(--brand); color: var(--brand-700); }
.bn-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bn-chip__count { opacity: .6; font-weight: 500; margin-left: .3rem; }

/* ------------------------------------------------------------- listings -- */

.bn-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bn-table { width: 100%; border-collapse: collapse; min-width: 46rem; background: #fff; }
.bn-table th, .bn-table td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; }
.bn-table thead th {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.bn-table tbody tr + tr td { border-top: 1px solid var(--line); }
.bn-table tbody tr:hover td { background: var(--bg-soft); }
.bn-table td { font-size: .9063rem; color: var(--text-soft); }
.bn-table td:first-child { color: var(--text); font-weight: 500; }

.bn-empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--text-faint);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.bn-pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.bn-pager a, .bn-pager span {
  min-width: 2.5rem;
  padding: .55rem .8rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-soft);
  background: #fff;
}
.bn-pager a:hover { border-color: var(--brand); color: var(--brand-700); }
.bn-pager .is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bn-pager .is-off { opacity: .45; }

/* --------------------------------------------------------- project page -- */

.bn-project { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) {
  .bn-project { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
}

.bn-prose { font-size: 1rem; color: var(--text); }
.bn-prose p { margin-bottom: 1.1em; }
.bn-prose h2, .bn-prose h3 { margin-top: 1.8em; }
.bn-prose ul, .bn-prose ol { padding-left: 1.25rem; margin-bottom: 1.2em; }
.bn-prose li { margin-bottom: .35em; }
.bn-prose img { border-radius: var(--radius); margin: 1.4em 0; }
.bn-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .9375rem; }
.bn-prose th, .bn-prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.bn-prose a { text-decoration: underline; }

/* --------------------------------------------------------- address as link --
   The address opens the visitor's maps app with directions. The pin sits on
   the same line as the last word so it never wraps onto a line of its own. */
.bn-maplink {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.bn-maplink .bi {
  margin-left: .35rem;
  font-size: .875em;
  color: var(--brand-600);
  vertical-align: baseline;
}
.bn-maplink:hover,
.bn-maplink:focus-visible {
  color: var(--brand-700);
  border-bottom-color: currentColor;
}

/* Visible to a screen reader, not on screen: the address alone does not say
   that following it opens a map. */
.bn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- about page --
   A wide establishing photograph, then the prose in a comfortable measure.
   The measure matters more than the width of the column: long lines of body
   text are the main thing that made this page hard to read. */
.bn-about { display: block; }

.bn-about__hero { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.bn-about__hero img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.bn-about__hero figcaption {
  margin-top: .75rem;
  font-size: .875rem;
  color: var(--text-soft);
  text-align: center;
}

.bn-about__body { max-width: 46rem; margin-inline: auto; }
.bn-about__body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
}
.bn-about__body p { margin-bottom: 1.35em; }

/* The opening paragraph carries the summary, so it is set a step larger. */
.bn-about__lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-600);
}

.bn-about__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.bn-about__cta .bn-btn { text-decoration: none; }

}

.bn-facts {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 6rem;
}
.bn-facts__head {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .9rem 1.25rem;
}
.bn-fact { padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.bn-fact:last-child { border-bottom: 0; }
.bn-fact__k {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .2rem;
}
.bn-fact__v { font-family: var(--font-head); font-weight: 600; color: var(--ink); }

.bn-lightgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: .75rem;
}
.bn-lightgrid a {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-mute);
}
.bn-lightgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bn-lightgrid a:hover img { transform: scale(1.07); }

/* --------------------------------------------------------------- logos --- */

.bn-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bn-logo {
  background: #fff;
  display: grid;
  place-items: center;
  padding: 1.6rem 1.25rem;
  min-height: 7rem;
}
.bn-logo img {
  max-height: 3.25rem;
  width: auto;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.bn-logo:hover img { filter: none; opacity: 1; transform: scale(1.04); }

/* marquee (partners) */
.bn-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bn-marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: bn-scroll 42s linear infinite; }
.bn-marquee:hover .bn-marquee__track { animation-play-state: paused; }
.bn-marquee img { max-height: 2.75rem; width: auto; filter: grayscale(1); opacity: .6; }
.bn-marquee a:hover img { filter: none; opacity: 1; }
@keyframes bn-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ cta -- */

.bn-cta {
  position: relative;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-600) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.bn-cta::after {
  content: "";
  position: absolute;
  right: -6rem; top: -6rem;
  width: 22rem; height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,178,92,.28), transparent 65%);
}
.bn-cta > * { position: relative; z-index: 2; }
.bn-cta h2 { color: #fff; margin-bottom: .35rem; }
.bn-cta p { color: #c3d2e1; margin: 0; }

/* --------------------------------------------------------------- notice -- */

.bn-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--brand-050);
  border-left: 4px solid var(--brand);
  background: var(--brand-050);
  border-radius: var(--radius);
}
.bn-notice__title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .15rem;
}
.bn-notice p { font-size: .9375rem; color: var(--text-soft); margin: 0; }

.bn-trialbar {
  background: #92400e;
  color: #fff;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  padding: .5rem 1rem;
}

/* ---------------------------------------------------------------- forms -- */

.bn-field { margin-bottom: 1.1rem; }
.bn-label {
  display: block;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.bn-input, .bn-textarea, .bn-select {
  width: 100%;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text);
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.bn-input:focus, .bn-textarea:focus, .bn-select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-050);
}
.bn-textarea { min-height: 9rem; resize: vertical; }
.bn-hint { font-size: .8125rem; color: var(--text-faint); margin: .35rem 0 0; }

.bn-alert { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .9375rem; margin-bottom: 1.25rem; }
.bn-alert--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.bn-alert--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.bn-alert--info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* --------------------------------------------------------------- footer -- */

.bn-footer { background: var(--ink); color: var(--on-dark-soft); padding-block: clamp(3rem, 5vw, 4.5rem) 0; }
.bn-footer h3 {
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.bn-footer a { color: var(--on-dark-soft); }
.bn-footer a:hover { color: #fff; }
.bn-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.bn-footer__about { max-width: 24rem; }
.bn-footer__about img { max-height: 3.25rem; margin-bottom: 1.1rem; background: #fff; padding: .4rem .6rem; border-radius: var(--radius); }
.bn-footer ul { list-style: none; margin: 0; padding: 0; }
.bn-footer li { margin-bottom: .55rem; font-size: .9375rem; }
.bn-footer__contact li { display: flex; gap: .6rem; }
.bn-footer__contact i { color: var(--brand-600); margin-top: .25rem; }
.bn-footer__bar {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.35rem;
  font-size: .8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

/* ------------------------------------------------------------ lightbox -- */

.bn-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,16,29,.94);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  animation: bn-fade .2s ease;
}
@keyframes bn-fade { from { opacity: 0; } to { opacity: 1; } }

.bn-lb figure { margin: 0; grid-column: 2; display: grid; gap: .9rem; justify-items: center; min-height: 0; }
.bn-lb img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
}
.bn-lb figcaption { color: #cbd5e1; font-size: .9375rem; text-align: center; max-width: 46rem; }

.bn-lb__nav, .bn-lb__x {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.bn-lb__nav { width: 3rem; height: 3.5rem; font-size: 1.75rem; line-height: 1; }
.bn-lb__nav:hover, .bn-lb__x:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.bn-lb__prev { grid-column: 1; }
.bn-lb__next { grid-column: 3; }

.bn-lb__x {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2.75rem; height: 2.75rem;
  font-size: 1.5rem; line-height: 1;
}
.bn-lb__count {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  color: #94a3b8;
  font-family: var(--font-head);
  font-size: .8125rem;
  letter-spacing: .08em;
}

@media (max-width: 36rem) {
  .bn-lb { grid-template-columns: 1fr; }
  .bn-lb figure { grid-column: 1; }
  .bn-lb__nav { position: absolute; bottom: 3.25rem; }
  .bn-lb__prev { left: 1rem; }
  .bn-lb__next { right: 1rem; }
}

/* ------------------------------------------------------------- reveal ---- */

.bn-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.bn-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .bn-reveal { opacity: 1; transform: none; transition: none; }
  .bn-marquee__track { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --------------------------------------------------------------- mobile -- */

@media (max-width: 61.9375rem) {
  /* backdrop-filter makes an element the containing block for its
     position:fixed descendants, which would trap the slide-in drawer inside
     the header box instead of letting it fill the viewport. The blur is a
     desktop nicety, so drop it here and paint a solid bar instead. */
  .bn-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  .bn-nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem; height: 2.75rem;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font-size: 1.25rem;
    cursor: pointer;
  }
  .bn-nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(21rem, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-left: 1px solid var(--line);
    padding: 5rem 1rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: var(--shadow-lg);
  }
  .bn-nav__links.is-open { transform: none; }
  .bn-nav__link { padding: .85rem .75rem; border-radius: var(--radius); }
  .bn-nav__link.is-active::after { display: none; }
  .bn-nav__menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0 0 .5rem .75rem;
    padding: 0 0 0 .5rem;
    min-width: 0;
    display: none;
  }
  .bn-nav__item.is-open > .bn-nav__menu { display: block; }
  .bn-nav__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 1rem; right: 1rem;
    width: 2.5rem; height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-size: 1.25rem;
    cursor: pointer;
  }
  .bn-navscrim {
    position: fixed; inset: 0;
    background: rgba(9,33,63,.45);
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility .28s;
    z-index: 55;
  }
  .bn-navscrim.is-open { opacity: 1; visibility: visible; }
  .bn-facts { position: static; }
}

@media (max-width: 36rem) {
  .bn-topbar { display: none; }
  .bn-cta { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------------------------------------------------------------- print -- */

@media print {
  .bn-nav, .bn-topbar, .bn-footer, .bn-hero__dots, .bn-filters, .bn-trialbar { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* A partner with no logo file uploaded yet still belongs in the row. */
.bn-marquee__name {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1rem;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}
.bn-marquee a:hover .bn-marquee__name { color: var(--brand-700); border-color: var(--brand); }

/* --------------------------------------------------------- social links -- */

.bn-nav__social { display: inline-flex; gap: .35rem; margin-left: .5rem; }
.bn-nav__social a {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 1.05rem;
  transition: color .18s ease, background-color .18s ease;
}
.bn-nav__social a:hover { color: #fff; background: var(--brand); }

.bn-footer__social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.bn-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: .8125rem;
  font-family: var(--font-head);
  font-weight: 600;
}
.bn-footer__social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.bn-footer__social i { font-size: 1rem; }

@media (max-width: 61.9375rem) {
  .bn-nav__social { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------- credit -- */

/* Author credit. Deliberately the quietest line on the page: it belongs to the
   person who built the site, not to the company's message, so it sits below
   the copyright bar at a smaller size and lower contrast. */
.bn-credit {
  margin: 0;
  padding-bottom: 1.5rem;
  font-size: .75rem;
  line-height: 1.6;
  color: rgba(185, 198, 212, .55);
}
.bn-credit strong { font-weight: 600; color: rgba(185, 198, 212, .8); }
.bn-credit a { color: rgba(185, 198, 212, .7); text-decoration: none; }
.bn-credit a:hover { color: var(--brand-600); }

/* Each social mark takes its own brand colour on hover, rather than all of
   them going green - a LinkedIn icon that turns LinkedIn blue is recognised
   without being read. */
.bn-nav__social a[aria-label="Linkedin"]:hover,
.bn-topbar__social a[aria-label="Linkedin"]:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.bn-footer__social a[aria-label="Linkedin"]:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }

.bn-nav__social a[aria-label="Facebook"]:hover,
.bn-topbar__social a[aria-label="Facebook"]:hover,
.bn-footer__social a[aria-label="Facebook"]:hover { background: #1877f2; border-color: #1877f2; color: #fff; }

.bn-nav__social a[aria-label="Instagram"]:hover,
.bn-topbar__social a[aria-label="Instagram"]:hover,
.bn-footer__social a[aria-label="Instagram"]:hover { background: #d62976; border-color: #d62976; color: #fff; }

/* A fixed column count, so the gallery never ends on a short row. The page
   size and the trim in gallery.php are both multiples of 12, which divides
   evenly by all three of these. */
.bn-lightgrid--even { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 61.9375rem) { .bn-lightgrid--even { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 36rem)      { .bn-lightgrid--even { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------- certificate card mark --
   Stands in for a preview thumbnail. The certificates are PDFs and the old
   preview images were of expired documents, so the card carries the standard
   number itself rather than a picture of it. */
.bn-certmark {
  aspect-ratio: 3 / 4;
  display: grid;
  place-content: center;
  gap: .6rem;
  justify-items: center;
  background: linear-gradient(160deg, var(--brand-050), var(--bg-soft));
  border-bottom: 1px solid var(--line);
  color: var(--brand-700);
  text-align: center;
  padding: 1rem;
}
.bn-certmark .bi { font-size: clamp(2.5rem, 6vw, 3.5rem); line-height: 1; }
.bn-certmark span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  letter-spacing: .02em;
}

/* -------------------------------------------------------- certificates --
   Three cards centred in the middle of the page rather than stretched across
   it. At full width the scans came out large enough to read, which is a job
   for the PDF behind them - here they only need to be recognisable. */
.bn-certs {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 22rem;
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .bn-certs {
    grid-template-columns: repeat(3, 1fr);
    max-width: 46rem;   /* about half the 1200px container */
  }
}

/* ---------------------------------------------------- certificate card --
   The scan the certifier issued, shown whole. Portrait A4, so the frame keeps
   that ratio and the image is contained rather than cropped - a certificate
   with its corners cut off looks like a certificate with something to hide. */
.bn-cert__doc {
  aspect-ratio: 1 / 1.414;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bn-cert__doc img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bn-cert__doc .bn-certmark { height: 100%; aspect-ratio: auto; border-bottom: 0; }

/* The card is an <article> here, not a link, so it carries its own layout. */
.bn-cert { display: flex; flex-direction: column; }
.bn-cert .bn-card__body { flex: 1; }

/* A showcase without a facts panel states its scope on one line instead, so
   the text column does not end abruptly above the button. */
.bn-flagship__scope {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brand-700);
}
