/* Targeted additions to the original homepage design. */
.brand-logo { display: block; width: 280px; max-width: 100%; height: auto; }
.section { isolation: isolate; scroll-margin-top: 100px; }
#regions { background-color: #edf4fa; }
#regions::after {
  background-image: linear-gradient(110deg, #f2f7fb99, #edf4fa1a), url("engineering-blueprint.svg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 1040px 640px;
  background-position: center, center;
}
#regions .region-card { background: #fffffff2; }
@media (max-width: 700px) {
  #regions::after { background-size: cover, 780px 480px; }
}
.section::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, #3276ac07 1px, transparent 1px), linear-gradient(#3276ac07 1px, transparent 1px), linear-gradient(135deg, transparent 72%, #3276ac0c 72%, #3276ac0c calc(72% + 1px), transparent calc(72% + 1px));
  background-size: 96px 96px, 96px 96px, 100% 100%;
}
.light-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.systems-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.light-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px #122a480f; }
.light-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #f1f7fb; }
.light-card h3 { margin: 0; padding: 18px; font-size: 17px; line-height: 1.4; }
.light-card p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.image-card-link { display: inline-block; margin: 0 18px 20px; color: var(--blue); font-weight: 700; }
#services .service-card { overflow: hidden; padding: 0 0 24px; }
#services .service-card > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 22px; }
#services .service-card > .service-num, #services .service-card > h3, #services .service-card > p { margin-left: 24px; margin-right: 24px; }
#services .service-card > h3 { font-size: 21px; }
.about-screen { overflow: hidden; border-radius: 8px; background: #f1f7fb; box-shadow: var(--shadow); }
.about-screen img { width: 100%; height: auto; }
#services .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.hero-secondary { background: #ffffff12; color: #fff; border: 1px solid #ffffff80; }
.hero-secondary:hover { background: #ffffff25; color: #fff; }
.hero-lead { color: #fff; text-shadow: 0 1px 8px #081a36; }
.about-copy > strong { display: block; font-size: clamp(23px, 2.4vw, 30px); line-height: 1.2; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #2788ce; outline-offset: 4px; }
.hero-inner > div { min-width: 0; }
@media (max-width: 860px) {
  .hero::before { background-image: linear-gradient(90deg, rgba(5,18,39,.8), rgba(5,18,39,.28)), url("optimized/state-960.webp"); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.topbar-links { gap: 12px; }
.topbar-text { max-width: 540px; }
.contact-list li { flex-wrap: wrap; }
.object-gallery { min-width: 0; }
.gallery-stage { margin: 0; border-radius: 8px; overflow: hidden; background: #edf2f7; border: 1px solid var(--line); }
.gallery-stage > img { width: 100%; height: clamp(260px,45vw,600px); object-fit: contain; background: #e8eef4; }
.gallery-stage figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #fff; }
.gallery-stage strong { font-size: 20px; }
.gallery-stage figcaption span { color: var(--muted); }
.gallery-controls { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin: 16px 0; }
.gallery-controls button { width: 46px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue); font-size: 24px; cursor: pointer; }
.gallery-strip { display: flex; gap: 12px; overflow-x: auto; padding: 3px 3px 14px; scroll-snap-type: x proximity; }
.gallery-thumb { flex: 0 0 170px; padding: 5px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 8px; cursor: pointer; scroll-snap-align: start; }
.gallery-thumb img { width: 100%; height: 98px; object-fit: cover; border-radius: 4px; }
.gallery-thumb span { display: block; font-size: 13px; font-weight: 750; margin: 9px 3px 4px; }
.gallery-thumb small { display: block; margin: 0 3px 5px; color: var(--muted); font-size: 11px; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--blue); background: #eff5ff; }
.gallery-thumb:focus-visible, .gallery-controls button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.client-directory, .project-details { margin-top: 24px; }
.client-directory summary, .project-details summary { color: var(--blue); font-weight: 700; cursor: pointer; padding: 14px 0; }
.client-directory[open] summary { margin-bottom: 14px; }
@media(max-width: 1000px) {
  .systems-grid, #services .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topbar-inner { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
}
@media(max-width: 700px) {
  .light-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-stage figcaption { flex-direction: column; gap: 6px; padding: 16px; }
}
@media(max-width: 480px) {
  .brand-logo { width: 240px; }
  .systems-grid, #services .services-grid { grid-template-columns: 1fr; }
  .light-card h3 { padding: 12px; font-size: 15px; }
  .object-grid .light-card img { height: auto; }
  .topbar-links { white-space: normal; gap: 8px; }
  .gallery-thumb { flex-basis: 142px; }
}

#services .service-card > h3 { display:block; margin-top:0; margin-bottom:8px; line-height:1.3; color:var(--ink); }
.footer-credit { margin-top: 24px; padding-top: 18px; border-top: 1px solid #ffffff26; font-size: 14px; line-height: 1.6; color: #c5d2e3; }
.footer-credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
