:root {
  /* NCB palette — cool gray, navy and a restrained logo blue.
     Every colour on the site comes from these values (alpha variants included). */
  --navy-950: #0a1230;
  --navy-900: #0f1a45;
  --navy-800: #17245a;
  --navy-700: #1f2f72;
  --blue-600: #293b86;
  --blue-500: #3a50a6;
  --blue-300: #8e9fd6;
  --blue-200: #c4cdea;
  --blue-100: #e4e8f4;
  --blue-50: #f1f3f9;
  --gray-900: #1e2330;
  --gray-700: #3d4454;
  --gray-600: #4f5768;
  --gray-500: #646c7c;
  --gray-400: #9198a6;
  --gray-300: #c3c8d1;
  --gray-200: #dde1e7;
  --gray-100: #eceef2;
  --gray-50: #f5f6f8;
  --muted: #646c7c;
  --accent: #293b86;
  --ink: #0f1a45;
  --deep-blue: #0f1a45;
  --blue: #293b86;
  --sage: #dde1e7;
  --pale-sage: #f5f6f8;
  --cream: #f5f6f8;
  --sand: #eceef2;
  --white: #ffffff;
  --line: #dde1e7;
  --display: var(--font-sans);
  --body: var(--font-sans);
  --footer-blue: #0f1a45;
  --footer-muted: #c4cdea;
  --footer-line: rgba(255, 255, 255, .18)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  /* In-page links (#contact, #services…) land just below the fixed 88px header */
  scroll-padding-top: 88px
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55
}

img {
  max-width: 100%
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: auto
}

.skip-link {
  position: absolute;
  left: -999px
}

.skip-link:focus {
  left: 15px;
  top: 15px;
  z-index: 100;
  padding: 10px 15px;
  background: #fff;
  color: #000
}

.site-header {
  position: fixed !important;
  background: #fff !important;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(24px, calc((100% - 1180px)/2));
  color: #0f1a45
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 4px
}

.brand span {
  font-size: 50px;
  letter-spacing: .5px;
  text-transform: uppercase
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px
}

.site-nav a {
  color: #646c7c;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  transition: opacity .2s ease
}

.site-nav a:hover {
  opacity: .7
}
.nav-button {
  border: 1px solid #fffc;
  padding: 11px 16px
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: #fff
}

.hero {
  position: relative;
  min-height: 790px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff
}

.hero-overlay {
  position: absolute;
  inset: 0
}

.hero-overlay {
  background: linear-gradient(90deg, #0a1230d1, #0a123057 65%, #0a123029), linear-gradient(0deg, rgba(10, 18, 48, .52), transparent 50%)
}

.hero-content{
  position: relative;
  z-index: 1
}

.hero-content {
  padding-top: 95px
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase
}

.eyebrow.light {
  color: #dde1e7
}

.hero h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -.02em
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(45px, 6.2vw, 82px)
}

.hero h1 em {
  font-weight: 500
}

.hero-copy {
  max-width: 540px;
  margin: 28px 0 0;
  color: #eceef2;
  font-size: 18px
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid transparent;
  padding: 15px 20px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease
}

.button-primary {
  border: 0;
  background: #dde1e7;
  color: var(--ink)
}

.button-primary:hover {
  background: #fff;
  transform: translateY(-2px)
}

.button-text {
  padding-left: 0;
  color: #fff
}

.button-text:hover {
  opacity: .75
}
.section {
  padding: 125px 0
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12%
}

.intro h2,
.section-heading h2 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(34px, 4vw, 55px)
}

.intro-text {
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 18px
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none
}

.text-link span {
  margin-left: 8px
}

.services {
  background: #eceef2
}

.section-heading {
  margin-bottom: 50px
}

.services .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: .22em;
  text-transform: uppercase
}

.services .eyebrow:after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--blue)
}

.services .section-heading h2 {
  max-width: 900px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.services .service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  background: #f5f6f8;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: color .35s ease, border-color .35s ease, box-shadow .35s ease
}

.services .service-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(images/backgrounds/contact-panel-blueprint.webp) center / cover no-repeat, var(--deep-blue);
  opacity: 0;
  transition: opacity .4s ease
}

.services .service-card:hover {
  background: #f5f6f8;
  border-color: var(--deep-blue);
  color: #fff;
  box-shadow: 0 18px 40px #0f1a4540
}

.services .service-card:hover:before {
  opacity: 1
}

.service-image {
  aspect-ratio: 16 / 9.6;
  overflow: hidden
}

.service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 10px 14px
}

.service-number {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: .2em;
  opacity: 1;
  transition: color .35s ease
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15
}

.service-card p {
  margin: 0;
  color: #646c7c;
  font-size: 15px;
  line-height: 1.6;
  transition: color .35s ease
}

.service-card ul {
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
  font-size: 14px
}

.service-card li {
  position: relative;
  padding: 6px 0 6px 26px;
  border: 0;
  color: #646c7c;
  transition: color .35s ease
}

.service-card li:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
  transition: background .35s ease
}

.service-card a {
  position: static;
  margin-top: auto;
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .35s ease
}

.service-card a span {
  display: inline-block;
  margin-left: 8px;
  transition: transform .25s ease
}

.service-card a:hover span {
  transform: translate(5px)
}

.service-card:hover .service-number,
.service-card:hover a {
  color: #fff
}

.service-card:hover p,
.service-card:hover li {
  color: #ffffffdb
}

.service-card:hover li:before {
  background: #fff
}

.projects {
  background: var(--ink);
  color: #fff
}

.projects-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: 44px
}

.projects h2 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 62px)
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px
}

.filter-button {
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  padding: 9px 14px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease
}

.filter-button:hover,
.filter-button.active {
  border-color: #dde1e7;
  background: #dde1e7;
  color: var(--ink)
}

.project-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px
}

.process-project-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1
}

.process-project-grid::-webkit-scrollbar {
  display: none
}

.process-project-grid>.project-process {
  scroll-snap-align: start
}

.carousel-arrow {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: #0f1a4559;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease
}

.carousel-arrow:hover {
  background: #fff;
  color: var(--ink)
}

.carousel-arrow:disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none
}

.project-process {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 560px;
  overflow: hidden;
  background: #293b86b3;
  transition: transform .25s ease, opacity .25s ease
}

.project-process:hover {
  transform: translateY(-5px)
}

.project-process.hidden {
  display: none
}

.project-process-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 22px 17px
}

.project-category {
  margin: 0 0 7px;
  color: #c3c8d1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase
}

.project-process h3 {
  margin: 0;
  font-size: 25px
}

.project-count {
  color: #dde1e7;
  font-size: 11px
}

.project-stage {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #0a1230
}

.project-stage.open-lightbox {
  cursor: pointer
}

.stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .45s ease, transform .65s ease
}

.stage-image.active {
  opacity: 1;
  transform: scale(1)
}

.stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .62), transparent 48%);
  pointer-events: none
}

.stage-label {
  position: absolute;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  color: #fff;
  font-size: 12px
}

.stage-label b {
  color: #dde1e7
}

.project-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px
}

.project-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: .2s ease
}

.project-arrow:hover:not(:disabled) {
  background: #fff;
  color: var(--ink)
}

.project-arrow:disabled {
  cursor: default;
  opacity: .35
}

.project-progress {
  display: flex;
  gap: 7px
}

.progress-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff4d;
  cursor: pointer;
  transition: .2s ease
}

.progress-dot.active {
  width: 25px;
  border-radius: 8px;
  background: #dde1e7
}
.form-message {
  margin: 0;
  color: #dde1e7;
  font-size: 13px
}

.site-footer {
  padding: 58px 0 22px;
  background: #0f1a45;
  color: #fff
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start
}

.footer-brand {
  display: inline-block
}

.footer-brand img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain
}

.footer-company p,
.footer-social span,
.footer-details p,
.footer-licence p {
  margin: 14px 0 0;
  color: #dde1e7;
  font-size: 14px;
  line-height: 1.7
}

.footer-company p,
.footer-social span {
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase
}

.footer-social-icons {
  display: flex;
  gap: 14px;
  margin-top: 16px
}

.footer-social-icons a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  transition: background .2s ease, border-color .2s ease
}

.footer-social-icons a:hover {
  background: #fff;
  border-color: #fff;
  color: #0f1a45
}

.footer-social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2)
}

.footer-bottom p {
  margin: 0;
  color: #8e9fd6;
  font-size: 12px;
  line-height: 1.5
}

@media(max-width:800px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px
  }
}

@media(max-width:520px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

@keyframes hero-zoom {
  to {
    transform: scale(1)
  }
}

@media(max-width:820px) {
  .site-header {
    padding: 17px 24px
  }

  .brand img {
    width: 46px;
    height: 46px
  }

  .hero {
    min-height: 700px
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 61px)
  }

  .hero-copy {
    font-size: 16px
  }
  .section {
    padding: 82px 0
  }

  .intro{
    grid-template-columns: 1fr;
    gap: 42px
  }

  .service-grid {
    grid-template-columns: 1fr
  }

  .process-project-grid {
    grid-auto-columns: 100%
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 15px
  }

  .service-card {
    min-height: 380px;
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .process-photo img {
    height: 430px
  }

  .projects-heading {
    display: block
  }
  .project-stage {
    height: 330px
  }

  .site-footer {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:480px) {
  .container {
    width: min(100% - 32px, 1180px)
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px
  }

  .site-footer {
    grid-template-columns: 1fr
  }
}

.site-header {
  position: relative;
  min-height: 88px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: #646c7c;
  color: #fff
}

.brand {
  gap: 15px
}

.brand img {
  width: 58px;
  height: 58px;
  padding: 0;
  background: transparent
}

.brand-copy {
  display: grid;
  gap: 3px
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #293b86
}

.brand-copy small {
  color: var(--gray-600);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase
}


.hero {
  min-height: min(720px, calc(100vh - 88px))
}

.hero-slides {
  position: absolute;
  inset: 0;
  background: #0f1a45
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .8s ease, transform 5.5s ease
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1)
}

.hero-overlay {
  /* Navy wash strong enough behind the copy for AA contrast over bright photos */
  background: linear-gradient(90deg, #0f1a45e0, #17245ab3 55%, #17245a40), linear-gradient(0deg, #0a123073, transparent 45%)
}

.hero-content {
  max-width: 650px;
  padding-top: 0
}

.hero-copy {
  max-width: 500px;
  font-size: 16px
}

.hero-arrows {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100% - 1180px)/2));
  bottom: 42px;
  display: flex;
  gap: 10px
}

.hero-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .8);
  background: #0a123038;
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease
}

.hero-arrow:hover {
  background: #fff;
  color: #0f1a45
}

.hero-indicators {
  position: absolute;
  z-index: 3;
  bottom: 58px;
  left: max(24px, calc((100% - 1180px)/2));
  display: flex;
  gap: 6px
}

.hero-dot {
  flex: 0 0 12px;
  width: 12px;
  height: 3px;
  padding: 0;
  border: 0;
  background: #ffffff6b;
  cursor: pointer
}

.hero-dot.active {
  background: #fff
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0)
}

.back-to-top:hover {
  background: #0f1a45
}

@media(max-width:820px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 88px;
    padding-top: 14px;
    padding-bottom: 14px;
    background: #3d4454;
    color: #fff;
    box-shadow: 0 3px 14px #0000002e
  }

  .hero {
    min-height: 650px
  }

  .hero-arrows {
    right: 24px;
    bottom: 30px
  }

  .hero-indicators {
    bottom: 51px;
    left: 24px
  }
}

@media(max-width:500px) {
  .brand img {
    width: 44px;
    height: 44px
  }

  .brand-copy strong {
    font-size: 12px
  }

  .brand-copy small {
    max-width: 180px;
    font-size: 7px
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block !important;
    margin-left: auto;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: #293b86;
    /* dark blue */
  }

  .site-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 16px 28px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  }

  .site-nav.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 18px 0;
    border-bottom: 1px solid #dde1e7;
    color: #646c7c !important;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
  }

  .site-nav a:hover,
  .site-nav a.active {
    color: #293b86 !important;
  }

  .site-nav .nav-button {
    border: 0;
  }
}
@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 24px;
    left: auto;
    width: min(320px, calc(100vw - 48px));
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 16px 20px;
    background: #fff;
    box-shadow: 0 10px 20px #0000001f
  }

  .site-nav.open {
    align-items: stretch;
    gap: 0
  }

  .site-nav a {
    padding: 4px 0;
    border-bottom: 1px solid #dde1e7;
    color: #646c7c !important;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase
  }

  .site-nav a:hover,
  .site-nav a.active {
    color: #293b86 !important
  }

  .site-nav .nav-button {
    border: 0
  }
}

.credential-logos {
  display: flex;
  align-items: center;
  gap: 24px
}

.credential-logo {
  width: 105px;
  height: 105px;
  object-fit: contain
}

.apchq-logo {
  width: 300px
}

.inspection-credentials {
  padding: 45px 0;
  background: var(--pale-sage);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.credentials-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px
}

.inspection-credentials h3 {
  max-width: 480px;
  margin: 0;
  font-size: 24px;
  color: var(--ink)
}

.credential-logos {
  display: flex;
  align-items: center;
  gap: 28px
}

.credential-logos img {
  width: 92px;
  height: 92px;
  object-fit: contain
}

.credential-logos .apchq-logo {
  width: 150px;
  height: 105px;
  object-fit: contain
}

@media(max-width:700px) {
  .credentials-row {
    align-items: flex-start;
    flex-direction: column
  }
}

.footer-social {
  display: grid;
  gap: 12px
}

.footer-social>span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase
}

.footer-social-icons {
  display: flex;
  gap: 10px
}

.footer-social-icons a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  color: inherit;
  transition: background .2s ease, color .2s ease
}

.footer-social-icons a:hover {
  background: #293b86;
  border-color: #293b86;
  color: #fff
}

.footer-social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor
}

.contact-section {
  padding: 100px 0;
  background: #f5f6f8;
  color: #0f1a45
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 16px 34px #0f1a4524
}

.contact-form-panel {
  padding: 58px
}

.contact-form-panel h2,
.contact-info-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px)
}

.contact-intro {
  max-width: 570px;
  margin: 0 0 30px;
  color: #646c7c
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #0f1a45;
  font-size: 12px;
  font-weight: 700
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dde1e7;
  border-radius: 2px;
  outline: 0;
  background: #fff;
  color: #0f1a45;
  padding: 14px 15px;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #293b86;
  box-shadow: 0 0 0 3px #293b861f
}

.message-field {
  grid-column: 1 / -1
}

.contact-form textarea {
  min-height: 145px;
  resize: vertical
}

.contact-submit {
  justify-self: end;
  border: 0;
  background: #293b86;
  color: #fff;
  padding: 15px 23px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease
}

.contact-submit:hover {
  background: #0f1a45;
  transform: translateY(-2px)
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  color: #293b86;
  font-size: 13px
}

.contact-info-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 58px 42px;
  overflow: hidden;
  background: linear-gradient(#0f1a45eb, #293b86e0), url(images/contact/contact-building.jpg) center / cover;
  color: #fff
}

.contact-info-content {
  position: relative;
  z-index: 1
}

.contact-info-panel .eyebrow {
  color: #e4e8f4
}

.contact-info-panel h2 {
  color: #fff
}

.contact-info-panel>div>a {
  display: block;
  margin-top: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none
}

.contact-info-panel>div>a:hover {
  color: #e4e8f4
}

.contact-info-panel p:not(.eyebrow) {
  color: #eceef2
}

/* "Follow NCB" in Contact Info: divider, heading, one full-width row per
   channel with its brand icon, name and an arrow */
.contact-social {
  margin-top: clamp(22px, 3.6vh, 36px);
  padding-top: clamp(22px, 3.6vh, 36px);
  border-top: 1px solid rgba(255, 255, 255, .22)
}

.contact-info-panel .social-heading {
  margin: 0;
  color: #fff;
  line-height: 1.1
}

.contact-info-panel .social-heading span {
  color: #b9a8ff
}

.contact-info-panel .contact-social p.social-intro {
  max-width: 30ch;
  margin: 8px 0 clamp(16px, 2.6vh, 24px);
  color: #dfe4f5;
  line-height: 1.45
}

.social-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none
}

:is(.contact-info-panel, .social-callout) .social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: clamp(62px, 8vh, 72px);
  margin: 0;
  padding: 8px 18px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease
}

:is(.contact-info-panel, .social-callout) .social-row:hover,
:is(.contact-info-panel, .social-callout) .social-row:focus-visible {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transform: translateY(-1px)
}

:is(.contact-info-panel, .social-callout) .social-row:focus-visible {
  outline: 3px solid #b9a8ff;
  outline-offset: 2px
}

/* Brand icons */
.social-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px
}

.social-icon svg {
  width: 26px;
  height: 26px
}

.social-icon--youtube {
  width: 50px;
  height: 36px;
  background: #ff0000
}

.social-icon--youtube svg {
  width: 22px;
  height: 22px;
  fill: #fff
}

.social-icon--instagram svg {
  width: 38px;
  height: 38px
}

.social-icon--linkedin {
  background: #0a66c2;
  border-radius: 6px
}

.social-icon--linkedin svg {
  width: 30px;
  height: 30px;
  fill: #fff
}

.social-name {
  flex: 1;
  min-width: 0
}

/* Chevron drawn with borders so it inherits no font */
.social-arrow {
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border: solid #b9a8ff;
  border-width: 2.5px 2.5px 0 0;
  transform: rotate(45deg);
  transition: transform .2s ease
}

:is(.contact-info-panel, .social-callout) .social-row:hover .social-arrow,
:is(.contact-info-panel, .social-callout) .social-row:focus-visible .social-arrow {
  transform: translateX(3px) rotate(45deg)
}

@media (prefers-reduced-motion: reduce) {

  :is(.contact-info-panel, .social-callout) .social-row,
  .social-arrow {
    transition: none
  }
}

@media(max-width:800px) {
  .contact-card {
    grid-template-columns: 1fr
  }

  .contact-form-panel,
  .contact-info-panel {
    padding: 38px 25px
  }
}

@media(max-width:560px) {
  .contact-form {
    grid-template-columns: 1fr
  }

  .message-field {
    grid-column: auto
  }

  .contact-submit {
    justify-self: start
  }
}
.mobile-services-toggle.open span {
  transform: rotate(45deg)
}
.mobile-services-list.open {
  display: block
}

.company-intro {
  padding: 96px 0;
  background: var(--pale-sage);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  align-items: center;
  gap: 80px
}

.company-copy h2 {
  max-width: 610px;
  margin: 0 0 20px;
  color: var(--ink)
}

.company-copy>p:not(.eyebrow) {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75
}

.company-explore {
  margin-top: 30px
}

.company-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border: 1px solid #293b86;
  background: transparent;
  color: #293b86;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease
}

.company-explore-link span {
  font-size: 1.3rem;
  line-height: 1
}

.company-explore-link:hover {
  background: #293b86;
  color: #fff;
  transform: translateY(-2px)
}

a.company-explore-link:hover,
a.company-explore-link:hover span {
  color: #fff !important
}

.company-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px
}

.company-highlights div {
  display: flex;
  flex-direction: column;
  max-width: 145px
}

.company-highlights strong {
  color: var(--accent);
  font-size: 30px;
  line-height: 1
}

.company-highlights span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45
}

.company-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.company-photo {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #dde1e7
}

.company-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top
}

.company-person-label {
  margin: 15px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600
}

.company-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .2s ease, gap .2s ease
}

.company-explore-link:hover {
  color: var(--accent);
  gap: 14px
}

@media(max-width:800px) {
  .company-intro {
    padding: 70px 0
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 42px
  }

  .company-photo {
    max-width: 460px
  }
}

@media(max-width:520px) {
  .company-intro {
    padding: 58px 0
  }

  .company-highlights {
    gap: 20px
  }

  .company-highlights div {
    max-width: 130px
  }

  .company-photo {
    aspect-ratio: 1 / 1
  }
}

.projects {
  position: relative;
  overflow: hidden;
  background: linear-gradient(#0f1a452e, #0f1a452e), url(images/backgrounds/project-gallery-blueprint.webp) center / cover no-repeat
}

.contact-info-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(#17245a61, #17245a61), url(images/backgrounds/contact-panel-blueprint.webp) center / cover no-repeat;
  color: #fff
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(#0f1a452e, #0f1a452e), url(images/backgrounds/project-gallery-blueprint.webp) center top / cover no-repeat;
  color: #fff
}

.section-heading h2,
.projects-heading h2,
.company-copy h2 {
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08
}

.intro h2,
.contact-form-panel h2,
.contact-info-panel h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08
}

.intro h2 {
  font-size: clamp(36px, 5vw, 64px)
}

.eyebrow {
  letter-spacing: .22em;
  text-transform: uppercase
}

h3 {
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15
}

p {
  line-height: 1.6
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
  margin: -22px 0
}

.nav-dropdown .dropdown-toggle:after {
  content: "\25be";
  margin-left: 6px;
  font-size: 12px
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 200;
  min-width: 280px;
  padding: 8px 0;
  background: #fff;
  border-top: 3px solid var(--blue);
  box-shadow: 0 14px 30px #0f1a452e;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.site-nav .dropdown-menu a {
  display: block;
  padding: 14px 22px;
  color: #4f5768;
  font-size: 14px;
  text-transform: none;
  white-space: nowrap;
  border-bottom: 1px solid #eceef2
}

.site-nav .dropdown-menu a:last-child {
  border-bottom: 0
}

.site-nav .dropdown-menu a:hover {
  background: var(--pale-sage);
  color: var(--blue);
  opacity: 1
}

@media(max-width:900px) {
  .nav-dropdown {
    padding: 0;
    margin: 0
  }

  .nav-dropdown .dropdown-toggle:after {
    display: none
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 22px;
    border-top: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none
  }

  .site-nav .dropdown-menu a {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid #eceef2
  }
}

body.lightbox-locked {
  overflow: hidden
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 24px
}

.gallery-lightbox.open {
  display: flex
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a1230f0, #0a1230f7)
}

.lightbox-close,
.image-zoom-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(236, 238, 242, .45);
  border-radius: 50%;
  background: #0a12308c;
  color: #eceef2;
  font-size: 28px;
  line-height: 1;
  cursor: pointer
}

.lightbox-close:hover,
.image-zoom-close:hover {
  background: #eceef2;
  color: #0a1230
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1000px, 100%);
  max-height: calc(100vh - 100px);
  color: #eceef2;
  font-family: var(--display);
  text-align: center;
  overflow-y: auto
}

.lightbox-compare {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 840px
}

.compare-image {
  position: relative;
  flex: 1;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(236, 238, 242, .22);
  background: #0a1230
}

.zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in
}

.zoom-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease
}

.zoom-trigger:hover img {
  transform: scale(1.035)
}

.zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: #0a1230b8;
  color: #fff;
  font-size: 21px;
  line-height: 1;
  opacity: .9
}

.compare-image figcaption {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 16px;
  padding: 6px 13px;
  background: #0a1230bf;
  color: #eceef2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: none
}

.lightbox-divider-label {
  position: relative;
  margin: 24px 0 18px;
  color: #eceef2ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase
}

.lightbox-divider-label:before,
.lightbox-divider-label:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 64px;
  height: 1px;
  background: #eceef238
}

.lightbox-divider-label:before {
  right: 100%;
  margin-right: 18px
}

.lightbox-divider-label:after {
  left: 100%;
  margin-left: 18px
}

.lightbox-process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%
}
.process-zoom-trigger {
  width: 100%;
  height: clamp(220px, 34vh, 340px);
  border: 1px solid rgba(236, 238, 242, .25);
  border-radius: 10px;
  background: #0a1230;
  box-shadow: 0 20px 44px #0006
}

.process-zoom-trigger img {
  object-fit: contain
}

.process-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 3px 2px 8px;
  overflow-x: auto
}

.process-thumbnail {
  position: relative;
  flex: 0 0 76px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(236, 238, 242, .25);
  border-radius: 6px;
  background: #0a1230;
  cursor: pointer;
  opacity: .62
}

.process-thumbnail.active {
  border-color: #fff;
  opacity: 1
}

.process-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.process-thumbnail span {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #0a1230cc;
  color: #fff;
  font-size: 9px
}

.lightbox-arrow {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(236, 238, 242, .4);
  background: #0a123080;
  color: #eceef2;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease
}

.lightbox-arrow:hover:not(:disabled) {
  background: #eceef2;
  color: #0a1230
}

.lightbox-arrow:disabled {
  cursor: default;
  opacity: .25
}
.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 70px 32px 32px;
  background: #0a1230f5
}

.image-zoom.open {
  display: flex
}

.image-zoom-photo {
  display: block;
  max-width: min(94vw, 1500px);
  max-height: calc(100vh - 140px);
  object-fit: contain
}

.image-zoom-caption {
  margin: 0;
  color: #ffffffdb;
  font-size: 13px;
  text-align: center
}

.gallery-lightbox.single-image .compare-before,
.gallery-lightbox.single-image .lightbox-divider-label,
.gallery-lightbox.single-image .lightbox-process,
.gallery-lightbox.single-image .lightbox-stage-label {
  display: none
}

.gallery-lightbox.single-image .lightbox-compare {
  max-width: 620px
}

.gallery-lightbox.single-image .compare-after figcaption {
  display: none
}

@media(max-width:800px) {
  .gallery-lightbox {
    padding: 56px 16px 24px
  }

  .lightbox-content {
    max-height: calc(100vh - 80px)
  }

  .lightbox-compare {
    gap: 12px
  }
  .process-zoom-trigger {
    height: clamp(200px, 32vh, 280px)
  }

  .process-thumbnail {
    flex-basis: 62px;
    height: 48px
  }

  .lightbox-arrow {
    width: 38px;
    height: 38px;
    font-size: 15px
  }

  .lightbox-close,
  .image-zoom-close {
    top: 12px;
    right: 14px
  }

  .image-zoom {
    padding: 62px 14px 20px
  }
}

.image-zoom-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: #0a1230b8;
  color: #fff;
  font-size: 22px;
  cursor: pointer
}

.image-zoom-previous {
  left: 24px
}

.image-zoom-next {
  right: 24px
}

.image-zoom-arrow:disabled {
  cursor: default;
  opacity: .28
}

.gallery-lightbox.gallery-only .lightbox-compare {
  display: none
}

.project-gallery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 3px;
  background: #0f1a45d9;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease
}

.project-gallery-link:hover {
  background: #dde1e7;
  color: var(--ink);
  transform: translateY(-2px)
}

.project-gallery-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px
}

.project-gallery-link span {
  font-size: 18px
}

@media(max-width:800px) {
  .projects-heading .project-gallery-link {
    margin-top: 18px
  }
}

/* ==========================================================================
   Project lightbox — light "Before & After + Project process" layout
   Keep this block LAST in the stylesheet so it overrides the older dark
   lightbox rules above it.
   ========================================================================== */
.gallery-lightbox {
  --lb-ink: #0f1a45;
  --lb-accent: #293b86;
  --lb-muted: #646c7c;
  --lb-body: #646c7c;
  --lb-bg: #dde1e7;
  --lb-card: #f5f6f8;
  --lb-tint: #eceef2;
  --lb-serif: var(--font-sans);
  padding: 0;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.lightbox-overlay {
  position: fixed;
  background: var(--lb-bg);
}

.lightbox-content {
  width: min(1180px, 100%);
  max-height: none;
  padding: 56px clamp(16px, 4vw, 40px) 64px;
  overflow: visible;
  align-items: stretch;
  color: var(--lb-ink);
  text-align: left;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  border: 1.5px solid var(--lb-ink);
  background: #fffc;
  color: var(--lb-ink);
}
.lightbox-close:hover { background: var(--lb-ink); color: #fff; }

/* ---- Header --------------------------------------------------------- */
.lightbox-header { text-align: center; }

.lightbox-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 6px;
  color: var(--lb-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.lightbox-eyebrow::before,
.lightbox-eyebrow::after {
  content: "";
  width: clamp(24px, 5vw, 40px);
  height: 1px;
  background: var(--lb-muted);
}

.lightbox-title {
  margin: 0;
  color: var(--lb-ink);
  font-family: var(--lb-serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}

.lightbox-subtitle,
.lightbox-process-intro {
  margin: 10px auto 0;
  max-width: 62ch;
  color: var(--lb-muted);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.45;
}

/* ---- Before / After --------------------------------------------------- */
.lightbox-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2vw, 20px);
  max-width: none;
  margin-top: 26px;
}

.compare-image {
  aspect-ratio: 3 / 2;
  border: 0;
  border-radius: 6px;
  background: #dde1e7;
}

.compare-image figcaption {
  bottom: clamp(10px, 1.6vw, 16px);
  left: clamp(10px, 1.6vw, 16px);
  padding: 8px 16px;
  border-radius: 3px;
  background: #0f1a45;
  color: #fff;
  font-family: var(--lb-serif);
  font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing: .14em;
}

/* ---- Project process heading ------------------------------------------ */
.lightbox-process-head { margin: clamp(32px, 5vw, 48px) 0 22px; text-align: center; }

.lightbox-divider-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  color: var(--lb-ink);
  font-family: var(--lb-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.lightbox-divider-label::before,
.lightbox-divider-label::after {
  content: "";
  position: static;
  width: clamp(28px, 6vw, 56px);
  height: 1px;
  margin: 0;
  background: #9198a6;
}

/* ---- Stage card (big photo + text) ------------------------------------ */
.lightbox-process { display: block; width: 100%; }

.stage-card {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 4px;
  border-radius: 14px;
  background: var(--lb-card);
  box-shadow: 0 0 0 1px #fff, 0 12px 32px #0f1a4524;
}

.process-zoom-trigger {
  height: auto;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 10px;
  background: #dde1e7;
  box-shadow: none;
}
.process-zoom-trigger img { object-fit: cover; } /* use "contain" to never crop photos */

.stage-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px);
}

.stage-count {
  margin: 0 0 10px;
  color: var(--lb-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.stage-count b { color: var(--lb-accent); font-weight: 800; }

.stage-title {
  margin: 0;
  color: var(--lb-ink);
  font-family: var(--lb-serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.15;
}
.stage-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin: 16px 0 18px;
  background: var(--lb-accent);
}

.stage-desc {
  margin: 0;
  color: var(--lb-body);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
}

/* No titles/descriptions for this project: photo only */
.stage-card.no-info { grid-template-columns: 1fr; width: min(100%, 760px); }
.stage-card.no-info .stage-info { display: none; }

/* ---- Thumbnail strip --------------------------------------------------- */
.process-strip {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
  margin-top: 16px;
}

.lightbox-arrow {
  width: 50px;
  height: 50px;
  border: 1.5px solid var(--lb-ink);
  background: transparent;
  color: var(--lb-ink);
  font-size: 22px;
}
.lightbox-arrow:hover:not(:disabled) { background: var(--lb-ink); color: #fff; }
.lightbox-arrow:disabled { opacity: .3; }

.process-thumbnails {
  position: relative;
  flex: 1;
  min-width: 0;
  gap: 10px;
  margin: 0;
  padding: 6px 4px;
  justify-content: flex-start;
  scrollbar-width: thin;
}
.process-thumbnails .process-thumbnail:first-child { margin-left: auto; }
.process-thumbnails .process-thumbnail:last-child { margin-right: auto; }

.process-thumbnail {
  display: flex;
  flex: 0 0 max(64px, calc((100% - 70px) / 8));
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: auto;
  padding: 4px 4px 6px;
  overflow: visible;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  opacity: 1;
}
.process-thumbnail:hover { background: #ffffff80; }
.process-thumbnail:focus-visible { outline: 2px solid var(--lb-accent); outline-offset: 2px; }
.process-thumbnail.active {
  border-color: var(--lb-ink);
  background: var(--lb-tint);
  opacity: 1;
}

.process-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 3px solid #fff;
  border-radius: 3px;
  box-shadow: 0 1px 4px #0f1a4526;
  object-fit: cover;
}

.process-thumbnail span {
  position: static;
  padding: 0;
  background: none;
  color: #17245a;
  font-size: 14px;
  font-weight: 500;
}
.process-thumbnail.active span { color: var(--lb-ink); font-weight: 700; }

/* ---- Single-photo and gallery-only variants ---------------------------- */
.gallery-lightbox.single-image .lightbox-compare {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin-inline: auto;
}
.gallery-lightbox.single-image .lightbox-process-head,
.gallery-lightbox.single-image .lightbox-process { display: none; }

.gallery-lightbox.gallery-only .lightbox-compare { display: none; }
.gallery-lightbox.gallery-only .lightbox-process-head { margin-top: 28px; }

/* ---- Small screens ------------------------------------------------------ */
@media (max-width: 760px) {
  .lightbox-content { padding-top: 64px; }
  .lightbox-close { top: 10px; right: 12px; }
  .stage-card { grid-template-columns: 1fr; }
  .stage-info { padding: 18px 18px 22px; }
  .lightbox-arrow { width: 38px; height: 38px; font-size: 16px; }
  .process-thumbnail { flex-basis: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox *, .gallery-lightbox *::before, .gallery-lightbox *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Fit-to-screen: the whole lightbox fits in one window, no scrolling.
   Every section shares the available height (vh-based sizes).
   ========================================================================== */
.gallery-lightbox { overflow: hidden; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: clamp(10px, 2vh, 22px) clamp(14px, 3vw, 36px) clamp(10px, 2vh, 20px);
  overflow: hidden;
}

/* Header: compact */
.lightbox-header { flex: none; }
.lightbox-eyebrow { margin-bottom: 2px; font-size: clamp(10px, 1.5vh, 12px); }
.lightbox-title { font-size: clamp(22px, 4.6vh, 40px); }
.lightbox-subtitle,
.lightbox-process-intro {
  margin-top: 3px;
  font-size: clamp(12px, 1.8vh, 15px);
  line-height: 1.3;
}

/* Before / After: takes a share of the height */
.lightbox-compare {
  flex: 1 1 0;
  min-height: 0;
  margin-top: clamp(8px, 1.6vh, 16px);
  grid-template-rows: minmax(0, 1fr);
}
.compare-image { aspect-ratio: auto; height: 100%; min-height: 0; }
.compare-image figcaption { padding: 5px 12px; font-size: clamp(10px, 1.5vh, 13px); }
.zoom-icon { width: 28px; height: 28px; font-size: 17px; }

/* Project process heading: compact */
.lightbox-process-head { flex: none; margin: clamp(8px, 1.8vh, 18px) 0 clamp(6px, 1.2vh, 12px); }
.lightbox-divider-label { font-size: clamp(15px, 2.7vh, 24px); }

/* Stage card + thumbnails: take the bigger share */
.lightbox-process {
  display: flex;
  flex: 1.5 1 0;
  flex-direction: column;
  min-height: 0;
}
.stage-card {
  flex: 1 1 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}
.process-zoom-trigger { height: 100%; aspect-ratio: auto; min-height: 0; }
.stage-info { min-height: 0; padding: clamp(12px, 2.4vh, 28px) clamp(16px, 2.4vw, 32px); overflow: hidden; }
.stage-count { margin-bottom: 6px; font-size: clamp(10px, 1.5vh, 12px); }
.stage-title { font-size: clamp(20px, 3.6vh, 30px); }
.stage-title::after { margin: clamp(8px, 1.4vh, 14px) 0; }
.stage-desc { font-size: clamp(13px, 2vh, 17px); line-height: 1.45; }
.stage-card.no-info { width: min(100%, 900px); }

/* Thumbnails: small, fixed height */
.process-strip { flex: none; margin-top: clamp(6px, 1.2vh, 12px); }
.lightbox-arrow { width: clamp(34px, 5vh, 44px); height: clamp(34px, 5vh, 44px); font-size: 18px; }
.process-thumbnails { padding: 3px 4px; }
.process-thumbnail { flex: 0 0 auto; gap: 3px; padding: 3px 3px 4px; }
.process-thumbnail img {
  width: auto;
  height: clamp(34px, 7.5vh, 64px);
  aspect-ratio: 4 / 3;
  border-width: 2px;
}
.process-thumbnail span { font-size: clamp(11px, 1.6vh, 14px); line-height: 1; }

/* Single photo: one image fills the page */
.gallery-lightbox.single-image .lightbox-compare { width: 100%; max-width: 900px; }

/* Phones: stack photo over text, shorten the text so it still fits */
@media (max-width: 760px) {
  .lightbox-content { padding-top: 48px; }
  .lightbox-subtitle,
  .lightbox-process-intro { display: none; }
  .stage-card { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .stage-info { padding: 10px 14px 12px; }
  .stage-title::after { display: none; }
  .stage-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Very short windows (small laptops, landscape phones) */
@media (max-height: 640px) {
  .lightbox-subtitle,
  .lightbox-process-intro,
  .stage-count { display: none; }
}

/* ==========================================================================
   Lightbox — dark navy theme (works with the blueprint background)
   Keep this AFTER the lightbox layout block.
   ========================================================================== */
.gallery-lightbox {
  --lb-ink: #fff;
  --lb-accent: #c4cdea;
  --lb-muted: #c4cdea;
  --lb-tint: #ffffff26;
}
.gallery-lightbox .lightbox-overlay {
  background-color: #0f1a45;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.lightbox-close { background: #0f1a45cc; border-color: #fff; color: #fff; }
.lightbox-close:hover { background: #fff; color: #0f1a45; }

.lightbox-arrow { border-color: #fff; color: #fff; }
.lightbox-arrow:hover:not(:disabled) { background: #fff; color: #0f1a45; }

.process-thumbnail:hover { background: #ffffff1f; }
.process-thumbnail span { color: #e4e8f4; }
.process-thumbnail.active span { color: #fff; }

/* The stage card stays light, so its text uses the dark colours again */
.stage-card {
  --lb-ink: #0f1a45;
  --lb-accent: #293b86;
  --lb-muted: #646c7c;
  --lb-body: #646c7c;
  box-shadow: 0 14px 36px #0009;
}

/* ==========================================================================
   Home page — "What we do" cards (desktop + mobile designs) and responsive
   fixes for the What we do, Project gallery, About, Let's Get Started and
   Contact Info sections. Keep this block LAST so it overrides older rules.
   ========================================================================== */

/* Nothing on the page may cause sideways scrolling (e.g. the zoomed hero slides) */
html,
body {
  overflow-x: clip
}

.hero {
  overflow: hidden
}

/* ---------- Introduction: white band, two columns with a divider ---------- */
.intro-band {
  background: #fff
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: clamp(40px, 6vw, 76px) 0
}

.intro-heading {
  min-width: 0;
  padding-right: clamp(24px, 5vw, 80px)
}

.intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  color: #3a50a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em
}

.intro .eyebrow:after {
  content: "";
  flex: none;
  width: 52px;
  height: 2px;
  background: #3a50a6
}

.intro h2 {
  max-width: 560px;
  color: #0f1a45;
  font-size: clamp(34px, 4.3vw, 62px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.04;
  overflow-wrap: break-word
}

.intro-text {
  min-width: 0;
  padding: 0 0 0 clamp(24px, 5vw, 90px);
  border-top: 0;
  border-left: 1px solid #d3d9e4;
  color: #4f5768;
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.6
}

.intro-text p {
  margin: 0 0 1em
}

.intro .text-link {
  margin-top: 4px;
  color: #3a50a6;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 500
}

.intro .text-link span {
  display: inline-block;
  transition: transform .25s ease
}

.intro .text-link:hover span {
  transform: translate(4px)
}

@media (max-width: 820px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px
  }

  .intro-heading {
    padding-right: 0
  }

  .intro-text {
    padding: 24px 0 0;
    border-top: 1px solid #d3d9e4;
    border-left: 0
  }
}

/* ---------- What we do: compact white cards on cool light gray ---------- */
.services {
  padding: clamp(44px, 6vw, 80px) 0;
  background: #e7e9ec
}

.services .section-heading {
  margin-bottom: clamp(18px, 2.4vw, 28px)
}

.services .eyebrow {
  margin: 0 0 12px;
  color: #3a50a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em
}

.services .eyebrow:after {
  width: 52px;
  height: 2px;
  background: #3a50a6
}

.services .section-heading h2 {
  max-width: none;
  color: #0f1a45;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  overflow-wrap: break-word
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px)
}

.services .service-card {
  min-width: 0;
  padding: 4px;
  border: 1px solid #d3d9e4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px #0f1a450f
}

.services .service-card:hover {
  background: #fff
}

.services .service-image {
  aspect-ratio: 5 / 2;
  border-radius: 2px
}

/* Badge beside the title; description under the title; list and link full width */
.services .service-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 16px;
  padding: 16px 16px 18px
}

.services .service-body> :not(.service-number):not(h3):not(p) {
  grid-column: 1 / -1
}

.services .service-body>p {
  grid-column: 2
}

.services .service-number {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  align-self: start;
  min-width: 52px;
  height: 52px;
  margin: 0;
  padding: 0 8px;
  border-radius: 3px;
  background: #eef1f5;
  color: #3a50a6;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  transition: color .35s ease, background .35s ease
}

.services .service-card:hover .service-number {
  background: #ffffff1f
}

.services .service-card h3 {
  align-self: end;
  margin: 2px 0 4px;
  color: #0f1a45;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
  overflow-wrap: break-word;
  transition: color .35s ease
}

.services .service-card p {
  margin: 0;
  color: #4f5768;
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.45
}

.services .service-card ul {
  margin: 14px 0 16px;
  font-size: clamp(13.5px, 1vw, 14.5px)
}

.services .service-card li {
  padding: 3px 0 3px 24px;
  color: #4f5768;
  line-height: 1.4
}

.services .service-card li:before {
  top: calc(3px + .7em);
  left: 6px;
  width: 6px;
  height: 6px;
  background: #3a50a6
}

.services .service-card a {
  justify-self: start;
  align-self: end;
  margin-top: 0;
  color: #3a50a6;
  font-size: clamp(15px, 1.1vw, 16px);
  font-weight: 500
}

.services .service-card a:hover {
  text-decoration: none
}

/* Hover keeps the original navy blueprint look */
.services .service-card:hover h3,
.services .service-card:hover .service-number,
.services .service-card:hover a {
  color: #fff
}

.services .service-card:hover p,
.services .service-card:hover li {
  color: #ffffffdb
}

.services .service-card:hover li:before {
  background: #fff
}

/* "Explore … services" link: becomes a dark blue button on hover / keyboard
   focus. The padding is always there (offset by a negative margin) so the
   text does not move when the background appears. */
.services .service-card a {
  margin-left: -12px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease
}

.services .service-card a:hover,
.services .service-card a:focus-visible,
.services .service-card:hover a:hover {
  background: #293b86;
  color: #fff;
  outline: none
}

.services .service-card a:focus-visible {
  box-shadow: 0 0 0 3px #c4cdea
}

/* Tablet and phone: one card per row */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px
  }

  .services .service-card {
    min-height: 0;
    border-bottom: 1px solid #d3d9e4
  }

  .services .service-image {
    aspect-ratio: 16 / 8
  }
}

@media (max-width: 420px) {
  .services .service-body {
    column-gap: 12px;
    padding: 14px 12px 16px
  }

  .services .service-number {
    min-width: 44px;
    height: 44px;
    font-size: 17px
  }

  .services .service-body>p {
    grid-column: 1 / -1;
    margin-top: 10px
  }

  .services .service-number {
    grid-row: 1
  }

  .services .service-card h3 {
    align-self: center;
    margin: 0
  }
}

/* ---------- Project gallery ---------- */
.projects-home .projects-heading {
  flex-wrap: wrap;
  gap: 18px 40px
}

.projects-home .projects-heading>div {
  min-width: 0;
  flex: 1 1 420px
}

.projects-home .projects-heading h2,
.projects-home .projects-subtitle {
  overflow-wrap: break-word
}

.projects-home .process-project-grid,
.projects-home .project-process {
  min-width: 0
}

@media (max-width: 820px) {
  .projects-home .container {
    width: min(1360px, calc(100% - 32px))
  }

  .projects-home .projects-heading h2 {
    font-size: clamp(34px, 10vw, 52px)
  }

  .projects-home .project-filters {
    gap: 8px;
    margin-bottom: 26px
  }

  .projects-home .filter-button {
    padding: 9px 14px;
    font-size: 13px
  }

  .projects-home .project-process h3 {
    font-size: clamp(19px, 5.4vw, 24px)
  }

  .projects-home .project-stage {
    height: clamp(200px, 62vw, 300px)
  }
}

/* ---------- About NCB Construction (home) ----------
   The whole section fits one window height: the photo's height follows the
   window height (88px header + section padding + caption are subtracted). */
.company-intro {
  padding: clamp(28px, 6vh, 88px) 0
}

.company-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 80px)
}

.company-copy {
  min-width: 0
}

.company-copy h2 {
  overflow-wrap: break-word
}

.company-highlights {
  gap: 16px 28px;
  margin-top: clamp(18px, 3vh, 34px)
}

.company-highlights div {
  flex: 1 1 90px;
  max-width: 170px
}

.company-explore {
  margin-top: clamp(16px, 2.6vh, 30px)
}

.company-explore-link {
  max-width: 100%
}

.company-person {
  align-items: flex-start
}

.company-photo {
  width: auto;
  max-width: 100%;
  height: clamp(220px, calc(100svh - 88px - 12vh - 56px), 500px);
  aspect-ratio: 4 / 5
}

.company-person-label {
  margin-top: 10px
}

/* Narrow tablets: photo column shrinks, still side by side */
@media (max-width: 900px) {
  .company-photo {
    height: clamp(220px, min(calc(100svh - 88px - 12vh - 56px), 52vw), 420px)
  }
}

/* Phones: small square photo beside the name, under the text */
@media (max-width: 700px) {
  .company-intro {
    padding: 24px 0
  }

  .company-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px
  }

  .company-person {
    flex-direction: row;
    align-items: center;
    gap: 14px
  }

  .company-photo {
    flex: none;
    width: auto;
    height: clamp(72px, calc(100svh - 610px), 180px);
    aspect-ratio: 1;
    border-radius: 6px
  }

  .company-person-label {
    margin: 0
  }

  .company-highlights {
    gap: 12px 20px
  }
}

@media (max-width: 340px) {
  .company-highlights div {
    flex-basis: 100%;
    max-width: none
  }
}

/* ---------- Let's Get Started + Contact Info ---------- */
.contact-section {
  padding: clamp(56px, 8vw, 100px) 0
}

.contact-card {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr)
}

.contact-form-panel {
  min-width: 0;
  padding: clamp(26px, 5vw, 58px)
}

.contact-info-panel {
  min-width: 0;
  padding: clamp(32px, 4.5vw, 58px) clamp(24px, 3.5vw, 42px)
}

.contact-form-panel h2,
.contact-info-panel h2 {
  font-size: clamp(30px, 4vw, 52px);
  overflow-wrap: break-word
}

.contact-form>label {
  min-width: 0
}

.contact-info-panel>div>a,
.contact-info-panel p {
  overflow-wrap: anywhere
}

@media (max-width: 1000px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr)
  }
}

@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: minmax(0, 1fr)
  }

  .contact-form .message-field {
    grid-column: auto
  }

  .contact-submit {
    justify-self: stretch
  }
}

/* ---------- Credentials strip (home) ---------- */
.credentials-row>div:first-child {
  flex: 1 1 320px;
  min-width: 0
}

.credential-logos {
  flex: 0 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  gap: clamp(14px, 2.5vw, 28px)
}

.credential-logos img {
  flex: 0 1 auto;
  width: clamp(64px, 18vw, 92px);
  height: auto;
  aspect-ratio: 1;
  min-width: 0
}

.credential-logos .apchq-logo {
  width: clamp(110px, 30vw, 150px);
  height: auto;
  aspect-ratio: 150 / 105
}

@media (max-width: 1100px) and (min-width: 701px) {
  .credentials-row {
    flex-wrap: wrap
  }
}

@media (max-width: 700px) {
  .credentials-row>div:first-child {
    flex-basis: auto
  }
}

/* ---------- Project cards: many photo dots wrap instead of pushing the arrows out ---------- */
.project-controls {
  gap: 12px
}

.project-controls .project-arrow {
  flex: none
}

.project-progress {
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
  row-gap: 6px
}


/* ==========================================================================
   Project lightbox: show the whole main process photo (the Before / After
   frames keep their original fill). The frame keeps its size; the photo keeps its own
   proportions (object-fit: contain) on a soft gray where it doesn't fill the
   frame. The ⤢ zoom view still opens them larger.
   ========================================================================== */
#galleryLightbox .stage-card .zoom-trigger {
  background: #eceef2;
}

#galleryLightbox .stage-card .active-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #eceef2;
}

/* The hover zoom would crop the edges again, so these photos stay still;
   the frame outline shows they are clickable instead. */
#galleryLightbox .stage-card .zoom-trigger:hover img {
  transform: none;
}

#galleryLightbox .stage-card .zoom-trigger:hover {
  box-shadow: inset 0 0 0 2px #8e9fd6;
}
