/* Cabiny homepage styles
 * The numbered sections match the SECTION comments in index.html.
 * Edit the palette in :root. Screen-size overrides follow the footer rules.
 * Named screenshot crops are grouped at the end under Image crop presets.
 */

/* Brand colours, page defaults and shared components */

:root {
  /* Wordmark colours. A deeper orange keeps the small company descriptor legible. */
  --brand-blue: #29266d;
  --brand-orange: #b54b12;
  --navy: #09223a;
  --navy-deep: #061a2d;
  --blue: #315e9d;
  --blue-soft: #eaf0f7;
  --gold: #d7a43c;
  --paper: #f5f7fa;
  --ink: #102841;
  --muted: #52667c;
  --line: #dae2eb;
  --white: #fff;
  --shadow: 0 16px 42px rgba(8, 29, 49, .1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 56px, 1240px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3000;
  top: -60px;
  left: 20px;
  padding: 10px 16px;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  top: 10px;
}

.eyebrow {
  display: block;
  margin-bottom: 11px;
  color: var(--blue);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--gold);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 5px;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.25;
  transition: background .2s, color .2s, transform .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-navy {
  background: var(--navy);
  color: #fff;
}

.button-navy:hover {
  background: #1b4570;
}

.button-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.button-gold:hover {
  background: #e9bc5d;
}

.button-outline-light {
  border: 1px solid rgba(255, 255, 255, .68);
  background: transparent;
  color: #fff;
}

.button-outline-light:hover {
  background: #fff;
  color: var(--navy-deep);
}

/* Shared HTML placeholders | Reserve space while header.html/footer.html load. */
.site-header-slot { min-height: 122px; background: #fff; }
.site-header-slot::before { content: ""; display: block; height: 38px; background: #061a2b; }
.site-footer-slot { min-height: 320px; background: var(--navy-deep); }
.site-include-error { min-height: 0; padding: 16px max(18px, calc((100% - 1240px) / 2)); }
.site-include-error::before { display: none; }
.site-include-error p { margin-bottom: 4px; }
.site-include-error a { text-decoration: underline; }
@media (max-width: 860px) {
  .site-header-slot { min-height: 110px; }
}
@media (max-width: 600px) {
  /* Phones show only the 72px main header, including while its include loads. */
  .topbar { display: none; }
  .site-header-slot { min-height: 72px; }
  .site-header-slot::before { display: none; }
  .site-footer-slot { min-height: 600px; }
}

/* 01  Top bar */

.topbar {
  background: #061a2b;
  color: var(--white);
  font-size: .8125rem;
  line-height: 1.4;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 4px;
  font-style: normal;
}

.topbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
  min-width: 0;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.topbar-item svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar a {
  min-height: 28px;
}

.topbar a:hover,
.topbar a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar-phone {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
}

/* 02  Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 7px 24px rgba(5, 24, 43, .075);
}

.header-inner {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.brand-mark {
  width: auto;
  height: 52px;
  flex: none;
  /* Keep the supplied PNG's off-white background subtle against the white header and footer icon. */
  filter: brightness(1.03);
}

.brand-wordmark {
  display: grid;
  line-height: 1.15;
}

.brand-wordmark strong {
  color: var(--brand-blue);
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -.06em;
}

.brand-wordmark small {
  margin-top: 3px;
  white-space: nowrap;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .085em;
  color: var(--brand-orange);
}

/* Keep the header tagline beneath the company name and let it wrap on phones. */
.brand {
  min-width: 0;
  flex-shrink: 1;
}

.brand .brand-wordmark {
  min-width: 0;
  max-width: 245px;
}

.brand-tagline {
  margin-top: 4px;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 400;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 1.8vw, 28px);
}

.nav-link {
  position: relative;
  padding: 10px 0;
  color: #162c43;
  white-space: nowrap;
  font-size: .87rem;
  font-weight: 650;
}

.nav-link::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 5px;
  left: 0;
  right: 100%;
  background: var(--gold);
  transition: right .2s;
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

/* Navigation dropdowns: the complete label and chevron form one disclosure button. */
.nav-dropdown {
  /* Adjust this one value to change how quickly either dropdown opens. */
  --dropdown-duration: .32s;
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-dropdown-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dropdown-duration) ease;
}

.nav-submenu {
  position: absolute;
  z-index: 70;
  top: calc(100% - 2px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(590px, calc(100vw - 40px));
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(5, 24, 43, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  /* Keep the closing panel visible until its fade finishes. Opening has no delay. */
  transition: opacity var(--dropdown-duration) ease,
    transform var(--dropdown-duration) cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear var(--dropdown-duration);
}

.nav-submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 5px;
  color: #18334d;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color .18s ease, background-color .18s ease;
}

/* More uses a compact, right-aligned list; Services keeps its two-column panel. */
.nav-submenu-compact {
  left: auto;
  right: 0;
  grid-template-columns: 1fr;
  width: min(244px, calc(100vw - 40px));
  padding: 10px;
  transform: translateY(-8px);
}

.nav-submenu a[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  outline: none;
  background: #f1f5f9;
  color: var(--brand-orange);
}

.nav-dropdown.is-open .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.nav-dropdown.is-open .nav-submenu-compact {
  transform: translateY(0);
}

.nav-dropdown.is-open > .nav-dropdown-toggle::after {
  right: 0;
}

.nav-dropdown.is-open .nav-dropdown-chevron {
  transform: translateY(2px) rotate(225deg);
}

/* The inline mobile panels use the same gentle reveal when tapped open. */
@keyframes nav-submenu-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.nav-cta {
  margin-left: 2px;
  gap: 8px;
  white-space: nowrap;
}

.nav-cta-arrow {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

/* Shared project images */

.media-crop {
  aspect-ratio: 4/3;
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #dce5ef;
  isolation: isolate;
}

.media-crop img {
  position: absolute;
  display: block;
  max-width: none;
  width: var(--image-width, 100%);
  height: var(--image-height, 100%);
  left: var(--image-left, 0);
  top: var(--image-top, 0);
  object-fit: cover;
}

/* 03  Hero slideshow */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
}

.hero-track {
  height: 530px;
  display: flex;
  will-change: transform;
  transform: translateX(0);
}

.hero-slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 47% 53%;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 44px max(40px, calc((100vw - 1240px)/2 + 28px));
  padding-right: 20px;
  background: radial-gradient(circle at 0 100%, #173d62, var(--navy-deep) 65%);
}

.hero-copy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 26px;
  width: 1px;
  background: rgba(255, 255, 255, .09);
  pointer-events: none;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 650px;
  font-size: clamp(2.6rem, 4.1vw, 4.55rem);
  color: #fff;
}

.hero-copy p {
  max-width: 490px;
  margin: 20px 0 30px;
  color: #d8e4ef;
  font-size: 1.07rem;
  line-height: 1.6;
}

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

.hero-photo {
  position: relative;
  overflow: hidden;
  background: #627e96;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 45, .2), transparent 40%);
}

.hero-photo .media-crop {
  height: 100%;
  aspect-ratio: auto !important;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 3px;
}

.hero-mosaic .media-crop {
  min-width: 0;
}

.hero-photo .media-crop img {
  transition: transform 3.5s ease-out;
}

.hero-slide.is-revealed .hero-photo .media-crop img {
  transform: scale(1.045);
}

/* JavaScript marks a slide ready once it has reached the viewport. */
.hero.is-ready .hero-slide:not(.is-revealed) .hero-copy > .eyebrow,
.hero.is-ready .hero-slide:not(.is-revealed) .hero-copy > h1,
.hero.is-ready .hero-slide:not(.is-revealed) .hero-copy > h2,
.hero.is-ready .hero-slide:not(.is-revealed) .hero-copy > p,
.hero.is-ready .hero-slide:not(.is-revealed) .hero-actions .button {
  visibility: hidden;
}

.hero-slide.is-revealed .hero-copy > .eyebrow,
.hero-slide.is-revealed .hero-copy > h1,
.hero-slide.is-revealed .hero-copy > h2,
.hero-slide.is-revealed .hero-copy > p,
.hero-slide.is-revealed .hero-actions .button {
  animation: copy-in .62s cubic-bezier(.22, 1, .36, 1) both;
}

/* Begin at slide arrival, then bring in the remaining content in short steps. */
.hero-slide.is-revealed .hero-copy > .eyebrow {
  animation-delay: 0s;
}

.hero-slide.is-revealed .hero-copy > h1,
.hero-slide.is-revealed .hero-copy > h2 {
  animation-delay: .1s;
}

.hero-slide.is-revealed .hero-copy > p {
  animation-delay: .22s;
}

.hero-slide.is-revealed .hero-actions .button:first-child {
  animation-delay: .34s;
}

.hero-slide.is-revealed .hero-actions .button:nth-child(2) {
  animation-delay: .46s;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-controls {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-arrow {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(5, 22, 38, .62);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.hero-arrow:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.hero-arrow span {
  font-size: 1.8rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 24px;
  height: 3px;
  padding: 0;
  border: 0;
  background: #afc1d1;
  cursor: pointer;
  transition: width .25s, background .25s;
}

.hero-dots button[aria-current="true"] {
  width: 42px;
  background: var(--gold);
}

.hero-counter {
  position: absolute;
  z-index: 4;
  bottom: 37px;
  right: max(30px, calc((100vw - 1240px)/2));
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .1em;
}

.counter-line {
  width: 38px;
  height: 1px;
  background: rgba(255, 255, 255, .7);
}

/* Shared section spacing and headings */

.section {
  padding: 88px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.55rem);
  color: var(--navy);
}

.section-heading > p {
  margin-top: 13px;
  max-width: 720px;
  color: var(--muted);
}

/* 04  What We Do */

.services-section {
  background: var(--paper);
}

/* Shared compact section spacing; the class is on both service grids.
 * Two class selectors keep services.html consistent when about.css loads later.
 */
.services-compact.services-section,
.services-compact.service-catalogue {
  padding: 52px 0 36px;
  background: var(--paper);
}
.services-compact .section-heading { margin-bottom: 24px; }
.services-compact .section-heading h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.15; }
.services-compact .section-heading > p { margin-top: 9px; font-size: .96rem; }

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

/* Shared cards for index.html SECTION 04 and services.html SERVICES 02.
 * Change column counts under Responsive layouts. Images stay inside a fixed frame.
 */
.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(8, 29, 49, .045);
  transition: box-shadow .25s ease, border-color .25s ease;
}

/* Images fill the card width. The outer card clips the upper corners;
 * square lower image corners meet the compact text body directly.
 */
.service-image-link {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: var(--blue-soft);
}

.service-image-link:focus-visible { outline-offset: -4px; }

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.service-image-link::after {
  position: absolute;
  inset: 0;
  content: '';
  background: rgba(6, 26, 45, .16);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.service-image-view {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  /* Hide the View label on both service grids; keep the image zoom and links. */
  display: none;
  place-items: center;
  min-width: 88px;
  min-height: 44px;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: rgba(6, 26, 45, .18);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 5px));
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.service-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px 16px;
}

.service-card h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: -.025em;
  line-height: 1.22;
}

.service-card h3 a:hover { color: var(--blue); }

.service-card p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

/* No reserved blank title/description rows. Auto margin aligns each row's actions.
 * Keep the 44px tap area when adjusting the smaller button appearance.
 */
.service-detail-link {
  gap: 9px;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .8125rem;
  white-space: nowrap;
}

.service-detail-link:hover { transform: none; }

/* Hover and keyboard focus show the same subtle border and image zoom. */
.service-card:focus-within {
  border-color: #b5c9e2;
  box-shadow: 0 6px 18px rgba(8, 29, 49, .075);
}
.service-card:focus-within .service-image { transform: scale(1.035); }
.service-image-link:focus-visible::after,
.service-image-link:focus-visible .service-image-view { opacity: 1; }
.service-image-link:focus-visible .service-image-view { transform: translate(-50%, -50%); }

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    border-color: #b5c9e2;
    box-shadow: 0 6px 18px rgba(8, 29, 49, .075);
  }
  .service-card:hover .service-image { transform: scale(1.035); }
  .service-image-link:hover::after,
  .service-image-link:hover .service-image-view { opacity: 1; }
  .service-image-link:hover .service-image-view { transform: translate(-50%, -50%); }
}

/* Touch users use the linked photograph, title or always-visible navy button. */
@media (hover: none), (pointer: coarse) {
  .service-image-view { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card .service-image { transform: none; }
  .service-card,
  .service-image,
  .service-image-link::after,
  .service-image-view { transition: none; }
}

@media (max-width: 600px) {
  .services-compact.services-section,
  .services-compact.service-catalogue { padding: 40px 0 28px; }
  .services-compact .section-heading { margin-bottom: 20px; }
}

/* Service detail pages share the header, footer and main stylesheet. */
.service-detail {
  padding: 38px 0 76px;
}

.service-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: .875rem;
}

.service-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.service-intro .eyebrow {
  color: var(--brand-orange);
}

.service-intro h1 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: -.035em;
}

.service-intro p {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.service-feature {
  overflow: hidden;
  border-radius: 6px;
}

.service-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-information {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
  gap: 48px;
  margin-top: 42px;
}

.service-information h2 {
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 1.35rem;
  letter-spacing: -.015em;
}

.service-information p,
.service-information li {
  color: var(--muted);
}

.service-information ul {
  margin: 18px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.service-information li + li {
  margin-top: 10px;
}

.service-information h2:not(:first-child) {
  margin-top: 28px;
}

.service-scope {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* Design & Architecture detail page | services/design-architecture.html
 * Edit this clearly grouped section for that page. ARCHITECTURE numbers match
 * the HTML comments; selectors are scoped so other service pages stay intact.
 */

/* ARCHITECTURE 01 | Split hero */
.architecture-hero {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 400px;
  background: var(--navy-deep);
  color: #fff;
}

.architecture-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: 36px 34px 40px max(28px, calc((100vw - 1240px) / 2));
}

.architecture-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 29px;
  color: #d5e0e9;
  font-size: .78rem;
  line-height: 1.4;
}
.architecture-breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.architecture-breadcrumb [aria-current] { color: #fff; font-weight: 650; }

.architecture-hero__eyebrow {
  display: block;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid #e47725;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.55;
  text-transform: uppercase;
}
.architecture-hero h1 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.15vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.03;
}
.architecture-hero__copy > p {
  max-width: 43ch;
  margin: 16px 0 22px;
  color: #e1eaf1;
  font-size: 1rem;
  line-height: 1.55;
}
.architecture-button { gap: 16px; background: #b54b12; color: #fff; }
.architecture-button:hover { background: #963b0a; }
.architecture-button span { font-size: 1.1rem; line-height: 1; }
.architecture-hero__image { min-width: 0; overflow: hidden; }
.architecture-hero__image img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; object-position: center; }

/* ARCHITECTURE 02 | Compact principles strip */
.architecture-principles { background: #fff; border-bottom: 1px solid var(--line); }
.architecture-principles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.architecture-principles__grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 72px;
  color: var(--navy);
  font-size: .96rem;
  font-weight: 700;
  text-align: center;
}
.architecture-principles__grid > div + div { border-left: 1px solid var(--line); }
.architecture-principles svg { width: 30px; height: 30px; flex: none; }

/* Shared section heading for the process, gallery and outputs. */
.architecture-section-heading { margin-bottom: 24px; }
.architecture-section-heading .eyebrow { margin-bottom: 6px; color: #a7440c; }
.architecture-section-heading h2 {
  color: var(--navy);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.15;
}
.architecture-section-heading p { margin-top: 9px; color: var(--muted); }

/* ARCHITECTURE 03 | Large studio photo with a smaller design visualisation. */
.architecture-process { padding: 50px 0 58px; background: #f1f5f8; }
.architecture-process__layout { display: grid; grid-template-columns: 57% minmax(0, 1fr); gap: 34px; align-items: center; }
.architecture-process__media { position: relative; min-width: 0; padding: 0 17% 8% 0; }
.architecture-process__main-image { overflow: hidden; border-radius: 6px; aspect-ratio: 1.65; }
.architecture-process__main-image img,
.architecture-process__inset-image img { width: 100%; height: 100%; object-fit: cover; }
.architecture-process__inset-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 5px;
  aspect-ratio: 1.55;
  box-shadow: 0 8px 22px rgba(8, 29, 49, .15);
}
.architecture-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.architecture-steps li {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 12px 18px;
  border: 1px solid #e6ecf2;
  border-radius: 5px;
  background: #fff;
}
.architecture-steps__number { color: #b54b12; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; }
.architecture-steps h3 { color: var(--navy); font-size: 1.13rem; }
.architecture-steps p { margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.48; }

/* ARCHITECTURE 04 | Selected architectural designs */
.architecture-designs { padding: 52px 0 56px; background: #fff; }
.architecture-designs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.architecture-design-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.architecture-design-card:hover,
.architecture-design-card:focus-visible { border-color: #a9bfd8; box-shadow: 0 8px 22px rgba(8, 29, 49, .08); }
.architecture-design-card__image { overflow: hidden; aspect-ratio: 1.6; }
.architecture-design-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.architecture-design-card:hover img,
.architecture-design-card:focus-visible img { transform: scale(1.035); }
.architecture-design-card__body { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex: 1; padding: 16px; }
.architecture-design-card__body > div > span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.architecture-design-card h3 { margin-top: 4px; color: var(--navy); font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
.architecture-design-card__action { flex: none; color: #a7440c; font-size: .83rem; font-weight: 750; white-space: nowrap; }
.architecture-designs__all { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 22px; color: var(--navy); font-weight: 700; }
.architecture-designs__all:hover { color: #a7440c; }

/* ARCHITECTURE 05 | Typical outputs and preparation note */
.architecture-outputs { padding: 52px 0 56px; background: var(--paper); }
.architecture-outputs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.architecture-outputs__grid li { min-width: 0; padding: 22px 20px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 5px; background: #fff; }
.architecture-outputs__grid li > span { color: #a7440c; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.architecture-outputs__grid h3 { margin-top: 14px; color: var(--navy); font-size: 1.2rem; }
.architecture-outputs__grid p { margin-top: 9px; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.architecture-outputs__note { margin-top: 22px; color: var(--muted); }
.architecture-outputs__note strong { color: var(--navy); }
.architecture-services-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 16px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 750;
  text-underline-offset: 3px;
}
.architecture-services-back:hover { color: var(--brand-orange); text-decoration: underline; }
.architecture-services-back span { font-size: 1.1rem; line-height: 1; }

/* ARCHITECTURE 06 | Consultation */
.architecture-contact { padding: 36px 0; background: var(--navy-deep); color: #fff; }
.architecture-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.architecture-contact h2 { color: #fff; font-size: clamp(1.8rem, 2.7vw, 2.35rem); }
.architecture-contact p { margin-top: 6px; color: #d7e3ed; }
.architecture-contact .architecture-button { flex: none; }

/* Responsive layouts */
@media (max-width: 1100px) {
  .architecture-hero__copy { padding-left: 36px; }
  .architecture-design-card__body { display: block; }
  .architecture-design-card__action { display: inline-block; margin-top: 10px; }
}
@media (max-width: 860px) {
  .architecture-hero { grid-template-columns: 1fr; }
  .architecture-hero__copy { padding: 28px max(18px, calc((100vw - 720px) / 2)) 38px; }
  .architecture-hero__image { max-height: 350px; }
  .architecture-hero__image img { min-height: 0; height: 350px; }
  .architecture-process__layout { grid-template-columns: 1fr; gap: 26px; }
  .architecture-process__media { max-width: 690px; }
  .architecture-designs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture-outputs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .architecture-hero__copy { padding: 24px 16px 34px; }
  .architecture-breadcrumb { margin-bottom: 24px; }
  .architecture-hero h1 { font-size: clamp(2.45rem, 10vw, 3.25rem); }
  .architecture-hero__image,
  .architecture-hero__image img { height: 260px; }
  .architecture-principles__grid { grid-template-columns: 1fr; }
  .architecture-principles__grid > div { justify-content: flex-start; min-height: 54px; gap: 13px; text-align: left; }
  .architecture-principles__grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .architecture-principles svg { width: 25px; height: 25px; }
  .architecture-process,
  .architecture-designs,
  .architecture-outputs { padding: 40px 0; }
  .architecture-section-heading { margin-bottom: 20px; }
  .architecture-process__media { padding-right: 12%; padding-bottom: 10%; }
  .architecture-process__inset-image { width: 43%; border-width: 3px; }
  .architecture-designs__grid,
  .architecture-outputs__grid { grid-template-columns: 1fr; }
  .architecture-design-card__body { display: flex; }
  .architecture-design-card__action { margin: 0; }
  .architecture-contact__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .architecture-design-card__body { display: block; }
  .architecture-design-card__action { margin-top: 10px; }
  .architecture-steps li { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .architecture-design-card,
  .architecture-design-card__image img { transition: none; }
  .architecture-design-card:hover img,
  .architecture-design-card:focus-visible img { transform: none; }
}

/* Modern Houses & Buildings detail page | services/modern-houses-buildings.html
 * MODERN numbers match the HTML comments. Keep these selectors page-specific.
 */

/* MODERN 01 | Image hero with a readable copy area. */
.modern-hero { position: relative; display: flex; align-items: center; min-height: 440px; overflow: hidden; background: var(--navy-deep); color: #fff; }
.modern-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 52%; }
.modern-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,45,.94) 0%, rgba(6,26,45,.82) 30%, rgba(6,26,45,.36) 58%, transparent 82%); }
.modern-hero__inner { position: relative; z-index: 1; padding-block: 38px 46px; }
.modern-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #e2eaf1; font-size: .8rem; }
.modern-breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.modern-breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.modern-hero__eyebrow { display: block; margin-bottom: 12px; color: #f5ac61; font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.modern-hero h1 { max-width: 15ch; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 4.3vw, 4.3rem); letter-spacing: -.045em; line-height: 1.06; }
.modern-hero__inner > p { max-width: 37ch; margin: 17px 0 24px; color: #eef3f7; font-size: 1.08rem; line-height: 1.52; }
.modern-button { gap: 18px; background: var(--brand-orange); color: #fff; }
.modern-button:hover { background: #963b0a; }
.modern-button span { font-size: 1.1rem; line-height: 1; }

/* Shared headings for this service page. */
.modern-section-heading { margin-bottom: 27px; text-align: center; }
.modern-section-heading .eyebrow { margin-bottom: 6px; color: var(--brand-orange); }
.modern-section-heading h2 { color: var(--navy); font-size: clamp(1.85rem, 3vw, 2.6rem); line-height: 1.16; }
.modern-section-heading::after { content: ""; display: block; width: 52px; height: 3px; margin: 14px auto 0; background: var(--brand-orange); }

/* MODERN 02 | Two visual building types. */
.modern-spaces { padding: 52px 0 56px; background: #fff; }
.modern-spaces__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.modern-space-card { min-width: 0; }
.modern-space-card img { width: 100%; aspect-ratio: 1.7; object-fit: cover; border-radius: 5px; }
.modern-space-card h3 { margin-top: 14px; color: var(--navy); font-size: 1.42rem; }
.modern-space-card p { max-width: 48ch; margin-top: 5px; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* MODERN 03 | Three practical priorities. */
.modern-priorities { padding: 48px 0 54px; background: #edf3f8; }
.modern-priorities__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.modern-priorities article { min-width: 0; padding: 21px 22px 23px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.modern-priorities svg { width: 38px; height: 38px; color: var(--navy); }
.modern-priorities h3 { margin-top: 11px; color: var(--navy); font-size: 1.22rem; }
.modern-priorities p { margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* MODERN 04 | Three linked residential examples. */
.modern-projects { padding: 52px 0 48px; background: #fff; }
.modern-projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.modern-project-card { min-width: 0; }
.modern-project-card__image { display: block; overflow: hidden; border-radius: 5px; aspect-ratio: 1.55; }
.modern-project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.modern-project-card__image:hover img, .modern-project-card__image:focus-visible img { transform: scale(1.035); }
.modern-project-card h3 { margin: 13px 0 12px; color: var(--navy); font-size: clamp(1.16rem, 1.7vw, 1.4rem); }
.modern-project-card__link { display: inline-flex; align-items: center; gap: 12px; min-height: 38px; padding: 7px 14px; border: 1px solid var(--navy); border-radius: 4px; color: var(--navy); font-size: .82rem; font-weight: 750; transition: background .2s ease, color .2s ease; }
.modern-project-card__link:hover { background: var(--navy); color: #fff; }
.modern-projects__all { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 17px; color: var(--navy); font-size: .88rem; font-weight: 750; text-underline-offset: 3px; }
.modern-projects__all:hover { color: var(--brand-orange); text-decoration: underline; }
.modern-projects__all span { font-size: 1.1rem; line-height: 1; }

/* MODERN 05 | Consultation strip. */
.modern-contact { padding: 34px 0; background: var(--navy-deep); color: #fff; }
.modern-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.modern-contact h2 { padding-left: 16px; border-left: 4px solid var(--brand-orange); color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.modern-contact p { max-width: 68ch; margin: 7px 0 0 20px; color: #dce7ef; font-size: .94rem; }
.modern-contact .modern-button { flex: none; }

@media (max-width: 860px) {
  .modern-hero { min-height: 410px; }
  .modern-hero::after { background: linear-gradient(90deg, rgba(6,26,45,.92) 0%, rgba(6,26,45,.7) 54%, rgba(6,26,45,.24) 100%); }
  .modern-projects__grid { gap: 14px; }
  .modern-contact__inner { align-items: flex-start; flex-direction: column; }
  .modern-contact p { margin-left: 20px; }
}
@media (max-width: 600px) {
  .modern-hero { min-height: 480px; }
  .modern-hero__image { object-position: 58% center; }
  .modern-hero::after { background: linear-gradient(90deg, rgba(6,26,45,.92), rgba(6,26,45,.63)); }
  .modern-hero__inner { padding-block: 27px 38px; }
  .modern-breadcrumb { margin-bottom: 32px; }
  .modern-hero h1 { font-size: clamp(2.45rem, 10vw, 3.25rem); }
  .modern-spaces, .modern-priorities, .modern-projects { padding: 40px 0; }
  .modern-section-heading { margin-bottom: 22px; }
  .modern-spaces__grid, .modern-priorities__grid, .modern-projects__grid { grid-template-columns: 1fr; gap: 24px; }
  .modern-space-card img { aspect-ratio: 1.6; }
  .modern-priorities__grid { gap: 12px; }
  .modern-project-card__image { aspect-ratio: 1.7; }
  .modern-contact { padding: 35px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .modern-project-card__image img, .modern-project-card__link { transition: none; }
  .modern-project-card__image:hover img, .modern-project-card__image:focus-visible img { transform: none; }
}

/* Civil & Structural Engineering detail page | services/civil-structural-engineering.html
 * ENGINEERING numbers match the HTML comments; all styles are page-scoped.
 */

/* ENGINEERING 01 | Technical split hero. */
.engineering-hero { display: grid; grid-template-columns: 43% 57%; min-height: 410px; background: var(--navy-deep); color: #fff; }
.engineering-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 32px 32px 38px max(28px, calc((100vw - 1240px) / 2)); }
.engineering-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 27px; color: #d5e0e9; font-size: .78rem; line-height: 1.4; }
.engineering-breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.engineering-breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.engineering-hero__eyebrow { display: block; margin-bottom: 12px; color: #f5ac61; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.engineering-hero h1 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 3.65vw, 3.8rem); letter-spacing: -.045em; line-height: 1.06; }
.engineering-hero__copy > p { max-width: 39ch; margin: 16px 0 23px; color: #e5edf4; font-size: 1rem; line-height: 1.55; }
.engineering-button { gap: 16px; background: var(--brand-orange); color: #fff; }
.engineering-button:hover { background: #963b0a; }
.engineering-button span { font-size: 1.1rem; line-height: 1; }
.engineering-hero__image { position: relative; min-width: 0; min-height: 410px; overflow: hidden; }
.engineering-hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ENGINEERING 02 | Compact principles strip. */
.engineering-principles { background: #eaf1f7; border-bottom: 1px solid var(--line); }
.engineering-principles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.engineering-principles__grid > div { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 73px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 700; text-align: center; }
.engineering-principles__grid > div + div { border-left: 1px solid #cad7e4; }
.engineering-principles svg { width: 31px; height: 31px; flex: none; }

/* Shared section heading within this service page. */
.engineering-heading { margin-bottom: 24px; }
.engineering-heading .eyebrow { margin-bottom: 5px; color: var(--brand-orange); }
.engineering-heading h2 { color: var(--navy); font-size: clamp(1.85rem, 3vw, 2.55rem); line-height: 1.16; }
.engineering-heading::after { content: ""; display: block; width: 51px; height: 3px; margin-top: 14px; background: var(--brand-orange); }

/* ENGINEERING 03 | Scope cards. */
.engineering-scope { padding: 51px 0 55px; background: #fff; }
.engineering-scope__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.engineering-scope article { min-width: 0; padding: 22px 18px 23px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.engineering-scope svg { width: 41px; height: 41px; color: var(--navy); }
.engineering-scope h3 { margin-top: 15px; color: var(--navy); font-size: 1.16rem; }
.engineering-scope p { margin-top: 8px; color: var(--muted); font-size: .88rem; line-height: 1.48; }

/* ENGINEERING 04 | Drawing photograph, site images and three steps. */
.engineering-process { padding: 48px 0 54px; background: #eaf1f7; }
.engineering-process__layout { display: grid; grid-template-columns: 51% minmax(0, 1fr); gap: 20px; align-items: stretch; }
.engineering-process__drawing { min-width: 0; overflow: hidden; border-radius: 5px; }
.engineering-process__drawing img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.engineering-process__right { min-width: 0; display: flex; flex-direction: column; gap: 15px; }
.engineering-process__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.engineering-process__photos img { width: 100%; height: 165px; object-fit: cover; border-radius: 5px; }
.engineering-steps { margin: 0; padding: 0; list-style: none; }
.engineering-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; align-items: start; padding: 8px 0; border-bottom: 1px solid #cddbe7; }
.engineering-steps li:first-child { padding-top: 0; }
.engineering-steps li:last-child { border-bottom: 0; }
.engineering-steps li > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--brand-orange); color: #fff; font-size: .75rem; font-weight: 800; }
.engineering-steps h3 { color: var(--navy); font-size: 1.08rem; }
.engineering-steps p { margin-top: 2px; color: var(--muted); font-size: .82rem; line-height: 1.43; }

/* ENGINEERING 05 | Illustrative construction and inspection imagery. */
.engineering-practice { padding: 49px 0 42px; background: #fff; }
.engineering-practice__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.engineering-practice figure { min-width: 0; background: #edf3f8; }
.engineering-practice img { width: 100%; aspect-ratio: 1.85; object-fit: cover; }
.engineering-practice figcaption { padding: 10px 14px; color: var(--navy); font-size: .88rem; font-weight: 650; }
.engineering-services-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 13px; color: var(--navy); font-size: .88rem; font-weight: 750; text-underline-offset: 3px; }
.engineering-services-back:hover { color: var(--brand-orange); text-decoration: underline; }
.engineering-services-back span { font-size: 1.1rem; line-height: 1; }

/* ENGINEERING 06 | Shared consultation action. */
.engineering-contact { padding: 34px 0; background: var(--navy-deep); color: #fff; }
.engineering-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.engineering-contact h2 { color: #fff; font-size: clamp(1.8rem, 2.8vw, 2.25rem); }
.engineering-contact p { max-width: 62ch; margin-top: 6px; color: #dce7ef; font-size: .92rem; }
.engineering-contact .engineering-button { flex: none; }

@media (max-width: 1080px) {
  .engineering-hero__copy { padding-left: 34px; }
  .engineering-scope__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .engineering-hero { grid-template-columns: 1fr; }
  .engineering-hero__copy { padding: 27px max(18px, calc((100vw - 720px) / 2)) 37px; }
  .engineering-hero__image { height: 340px; min-height: 0; }
  .engineering-process__layout { grid-template-columns: 1fr; }
  .engineering-process__drawing img { max-height: 390px; min-height: 0; }
  .engineering-contact__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .engineering-hero__copy { padding: 25px 16px 35px; }
  .engineering-breadcrumb { margin-bottom: 25px; }
  .engineering-hero h1 { font-size: clamp(2.25rem, 9.5vw, 3.05rem); }
  .engineering-hero__image { height: 255px; }
  .engineering-principles__grid { grid-template-columns: 1fr; }
  .engineering-principles__grid > div { justify-content: flex-start; min-height: 56px; gap: 13px; text-align: left; }
  .engineering-principles__grid > div + div { border-left: 0; border-top: 1px solid #cad7e4; }
  .engineering-principles svg { width: 27px; height: 27px; }
  .engineering-scope, .engineering-process, .engineering-practice { padding: 40px 0; }
  .engineering-scope__grid, .engineering-practice__grid { grid-template-columns: 1fr; gap: 13px; }
  .engineering-process__photos img { height: 130px; }
  .engineering-contact { padding: 35px 0; }
}

/* 3D Visualization & Simulations detail page | services/3d-visualization.html
 * VISUALIZATION numbers match the HTML sections. Adjust this group for that page.
 */

/* VISUALIZATION 01 | Split hero */
.visualization-hero { display: grid; grid-template-columns: 43% 57%; min-height: 430px; background: var(--navy-deep); color: #fff; }
.visualization-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 34px 34px 42px max(28px, calc((100vw - 1240px) / 2)); }
.visualization-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 29px; color: #dce7ef; font-size: .78rem; }
.visualization-breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.visualization-breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.visualization-hero__eyebrow { margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--brand-orange); color: #f7b978; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.visualization-hero h1 { max-width: 14ch; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.1vw, 4.2rem); line-height: 1.04; letter-spacing: -.04em; }
.visualization-hero__copy > p { max-width: 43ch; margin: 17px 0 23px; color: #e1eaf1; font-size: 1.02rem; line-height: 1.55; }
.visualization-hero__image { min-width: 0; overflow: hidden; }
.visualization-hero__image img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; object-position: center; }
.visualization-button { gap: 18px; background: var(--brand-orange); color: #fff; }
.visualization-button:hover { background: #963b0a; }
.visualization-button span { font-size: 1.1rem; line-height: 1; }
.visualization-heading { margin-bottom: 24px; }
.visualization-heading .eyebrow { margin-bottom: 7px; color: #a7440c; }
.visualization-heading h2 { color: var(--navy); font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1.13; }
.visualization-heading p { max-width: 68ch; margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* VISUALIZATION 02 | Native range controls a two-layer image comparison */
.visualization-compare { padding: 53px 0 49px; background: #fff; }
.visualization-compare__frame { position: relative; width: 100%; overflow: hidden; border-radius: 8px; aspect-ratio: 1279 / 690; background: #d8e3ec; box-shadow: 0 9px 28px rgba(8, 29, 49, .09); }
.visualization-compare__render,
.visualization-compare__model { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.visualization-compare__model { clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0); }
.visualization-compare__label { position: absolute; bottom: 18px; z-index: 1; padding: 8px 13px; border-radius: 3px; background: rgba(7, 29, 51, .86); color: #fff; font-size: .79rem; font-weight: 750; pointer-events: none; }
.visualization-compare__label--model { left: 18px; }
.visualization-compare__label--render { right: 18px; }
.visualization-compare__divider { position: absolute; inset-block: 0; left: var(--comparison-position); z-index: 2; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); transform: translateX(-50%); pointer-events: none; }
.visualization-compare__divider span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid #fff; border-radius: 50%; background: var(--brand-orange); color: #fff; font-size: 1.55rem; font-weight: 750; box-shadow: 0 3px 16px rgba(7, 29, 51, .25); transform: translate(-50%, -50%); }
.visualization-compare__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; padding: 0; appearance: none; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.visualization-compare__range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.visualization-compare__range::-moz-range-track { height: 100%; background: transparent; }
.visualization-compare__range::-webkit-slider-thumb { width: 2px; height: 100%; appearance: none; background: transparent; }
.visualization-compare__range::-moz-range-thumb { width: 2px; height: 100%; border: 0; background: transparent; }
.visualization-compare__range:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: -5px; }
.visualization-compare__hint { margin-top: 13px; color: var(--muted); font-size: .83rem; text-align: center; }

/* VISUALIZATION 03 | Four examples */
.visualization-explore { padding: 51px 0 58px; background: #f1f5f8; }
.visualization-explore__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.visualization-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.visualization-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.visualization-card:hover img { transform: scale(1.025); }
.visualization-card > div { padding: 17px 17px 21px; }
.visualization-card span { color: #a7440c; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.visualization-card h3 { margin-top: 6px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; line-height: 1.22; }
.visualization-card p { margin-top: 8px; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* VISUALIZATION 04 | Three review steps */
.visualization-process { padding: 54px 0 56px; background: #fff; }
.visualization-process__layout { display: grid; grid-template-columns: 52% minmax(0, 1fr); align-items: center; gap: 38px; }
.visualization-process__image { min-width: 0; overflow: hidden; border-radius: 6px; background: #e7eef4; }
.visualization-process__image img { width: 100%; height: auto; aspect-ratio: 1.28; object-fit: cover; }
.visualization-process__image figcaption { padding: 10px 14px; color: var(--muted); font-size: .78rem; }
.visualization-process__copy { min-width: 0; }
.visualization-process__steps { margin: 0; padding: 0; list-style: none; }
.visualization-process__steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 15px; align-items: start; padding: 15px 0; border-top: 1px solid var(--line); }
.visualization-process__steps li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-orange); color: #fff; font-size: .72rem; font-weight: 800; }
.visualization-process__steps h3 { color: var(--navy); font-size: 1.12rem; }
.visualization-process__steps p { margin-top: 3px; color: var(--muted); font-size: .88rem; line-height: 1.48; }
.visualization-process__note { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--blue); background: #f1f5f8; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.visualization-process__note strong { color: var(--navy); }
.visualization-services-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 12px; color: var(--navy); font-size: .88rem; font-weight: 750; text-underline-offset: 3px; }
.visualization-services-back:hover { color: var(--brand-orange); text-decoration: underline; }
.visualization-services-back span { font-size: 1.1rem; }

/* VISUALIZATION 05 | Shared consultation action */
.visualization-contact { padding: 36px 0; background: var(--navy-deep); color: #fff; }
.visualization-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.visualization-contact h2 { color: #fff; font-size: clamp(1.8rem, 2.7vw, 2.35rem); }
.visualization-contact p { margin-top: 6px; color: #dce7ef; font-size: .94rem; }
.visualization-contact .visualization-button { flex: none; }

@media (max-width: 1100px) {
  .visualization-hero__copy { padding-left: 34px; }
  .visualization-explore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .visualization-hero { grid-template-columns: 1fr; }
  .visualization-hero__copy { padding: 28px max(18px, calc((100vw - 720px) / 2)) 38px; }
  .visualization-hero__image { height: 330px; }
  .visualization-hero__image img { min-height: 0; }
  .visualization-process__layout { grid-template-columns: 1fr; gap: 27px; }
  .visualization-process__image img { max-height: 420px; }
  .visualization-contact__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .visualization-hero__copy { padding: 25px 16px 35px; }
  .visualization-breadcrumb { margin-bottom: 25px; }
  .visualization-hero h1 { font-size: clamp(2.35rem, 9.5vw, 3.1rem); }
  .visualization-hero__image { height: 250px; }
  .visualization-compare, .visualization-explore, .visualization-process { padding: 40px 0; }
  .visualization-compare__frame { aspect-ratio: 4 / 3; }
  .visualization-compare__label { bottom: 10px; padding: 6px 9px; font-size: .69rem; }
  .visualization-compare__label--model { left: 9px; }
  .visualization-compare__label--render { right: 9px; }
  .visualization-explore__grid { grid-template-columns: 1fr; gap: 14px; }
  .visualization-card img { aspect-ratio: 1.65; }
  .visualization-contact { padding: 34px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .visualization-card img { transition: none; }
  .visualization-card:hover img { transform: none; }
}

/* Structural Audits & NDTs | services/structural-audits-ndts.html
 * AUDITS numbers match the HTML comments. These selectors affect this page only.
 */

/* AUDITS 01 | Split hero */
.audits-hero { display: grid; grid-template-columns: 43% 57%; min-height: 410px; background: var(--navy-deep); color: #fff; }
.audits-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 33px 34px 40px max(28px, calc((100vw - 1240px) / 2)); }
.audits-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 27px; color: #dce7ef; font-size: .78rem; line-height: 1.5; }
.audits-breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.audits-breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.audits-hero__eyebrow { display: block; margin-bottom: 12px; color: #f7b978; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.audits-hero h1 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.1vw, 4.2rem); line-height: 1.05; letter-spacing: -.04em; }
.audits-hero__copy > p { max-width: 42ch; margin: 17px 0 23px; color: #e1eaf1; font-size: 1.02rem; line-height: 1.55; }
.audits-hero__image { min-width: 0; overflow: hidden; }
.audits-hero__image img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; object-position: center; }
.audits-button { gap: 18px; background: var(--brand-orange); color: #fff; }
.audits-button:hover { background: #963b0a; }
.audits-button span { font-size: 1.1rem; line-height: 1; }
.audits-heading { margin-bottom: 25px; }
.audits-heading .eyebrow { margin-bottom: 7px; color: #a7440c; }
.audits-heading h2 { color: var(--navy); font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1.14; }
.audits-heading p { max-width: 75ch; margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* AUDITS 02 | Four scope cards */
.audits-scope { padding: 49px 0 54px; background: #fff; }
.audits-scope__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.audits-scope article { min-width: 0; padding: 22px 20px 23px; border: 1px solid #c7d4e2; border-radius: 6px; background: #fff; }
.audits-scope svg { width: 37px; height: 37px; color: var(--navy); }
.audits-scope h3 { margin-top: 13px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.23rem; line-height: 1.2; }
.audits-scope article p { margin-top: 10px; color: var(--muted); font-size: .88rem; line-height: 1.52; }

/* AUDITS 03 | Photograph and enquiry prompts */
.audits-concerns { padding: 43px 0; background: #eaf1f7; }
.audits-concerns__layout { display: grid; grid-template-columns: 49% minmax(0, 1fr); align-items: center; gap: 38px; }
.audits-concerns__media { position: relative; min-width: 0; padding: 0 5% 7% 0; }
.audits-concerns__detail { position: absolute; right: 0; bottom: 0; width: 39%; height: auto; aspect-ratio: 1.2; object-fit: cover; border: 4px solid #fff; border-radius: 5px; box-shadow: 0 5px 16px rgba(8,29,49,.14); }
.audits-concerns__photo { position: relative; min-width: 0; overflow: hidden; border-radius: 6px; }
.audits-concerns__photo img { width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; }
.audits-concerns__photo figcaption { position: absolute; bottom: 14px; left: 14px; max-width: 58%; padding: 6px 11px; border-radius: 3px; background: rgba(6,26,45,.87); color: #fff; font-size: .76rem; }
.audits-concerns__copy { min-width: 0; }
.audits-concerns__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.audits-concerns__list li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid #dde6ef; border-radius: 5px; background: #fff; color: var(--navy); font-size: .93rem; line-height: 1.5; }
.audits-concerns__list span { flex: none; color: #a7440c; font-size: 1.25rem; font-weight: 800; }
.audits-concerns__copy > p { margin-top: 19px; color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* AUDITS 04 | Numbered steps and preparation note */
.audits-process { padding: 48px 0 38px; background: #fff; }
.audits-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.audits-steps li { position: relative; min-width: 0; }
.audits-steps li::before { content: ""; position: absolute; top: 20px; left: 0; right: -30px; height: 1px; background: #b8c8d9; }
.audits-steps li:last-child::before { right: 0; }
.audits-steps__number { position: relative; display: grid; place-items: center; width: 41px; height: 41px; margin-bottom: 14px; border-radius: 50%; background: var(--brand-orange); color: #fff; font-size: .85rem; font-weight: 800; }
.audits-steps h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; line-height: 1.2; }
.audits-steps p { max-width: 34ch; margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.audits-preparation { display: flex; align-items: center; gap: 15px; margin-top: 28px; padding: 15px 19px; border-radius: 5px; background: #edf2f7; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.audits-preparation strong { color: var(--navy); }
.audits-preparation svg { flex: none; width: 28px; height: 28px; color: var(--navy); }
.audits-services-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 13px; color: var(--navy); font-size: .88rem; font-weight: 750; text-underline-offset: 3px; }
.audits-services-back:hover { color: var(--brand-orange); text-decoration: underline; }
.audits-services-back span { font-size: 1.1rem; }

/* AUDITS 05 | Shared consultation action */
.audits-contact { padding: 35px 0; background: var(--navy-deep); color: #fff; }
.audits-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.audits-contact h2 { color: #fff; font-size: clamp(1.8rem, 2.7vw, 2.35rem); }
.audits-contact p { margin-top: 6px; color: #dce7ef; font-size: .94rem; }
.audits-contact .audits-button { flex: none; }

@media (max-width: 1100px) {
  .audits-hero__copy { padding-left: 34px; }
  .audits-scope__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .audits-hero { grid-template-columns: 1fr; }
  .audits-hero__copy { padding: 28px max(18px, calc((100vw - 720px) / 2)) 38px; }
  .audits-hero__image { height: 340px; }
  .audits-hero__image img { min-height: 0; }
  .audits-concerns__layout { grid-template-columns: 1fr; gap: 28px; }
  .audits-concerns__photo img { max-height: 420px; }
  .audits-contact__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .audits-hero__copy { padding: 25px 16px 35px; }
  .audits-breadcrumb { margin-bottom: 25px; }
  .audits-hero h1 { font-size: clamp(2.35rem, 9.5vw, 3.1rem); }
  .audits-hero__image { height: 255px; }
  .audits-scope, .audits-concerns { padding: 40px 0; }
  .audits-process { padding: 40px 0 30px; }
  .audits-scope__grid { grid-template-columns: 1fr; gap: 13px; }
  .audits-steps { grid-template-columns: 1fr; gap: 22px; }
  .audits-steps li { padding-left: 58px; }
  .audits-steps li::before { top: 20px; bottom: -22px; left: 20px; right: auto; width: 1px; height: auto; }
  .audits-steps li:last-child::before { display: none; }
  .audits-steps__number { position: absolute; left: 0; top: 0; }
  .audits-steps h3 { padding-top: 7px; }
  .audits-steps p { max-width: none; }
  .audits-preparation { align-items: flex-start; padding: 14px; gap: 11px; }
  .audits-concerns__list li { padding: 11px 13px; gap: 11px; }
}

/* Roads & Transport Infrastructure | services/roads-transport-infrastructure.html
 * ROADS numbers match the HTML comments. Edit this group for this page only.
 */

/* ROADS 01 | Wide photographic hero */
.roads-hero { position: relative; display: flex; align-items: center; min-height: 435px; overflow: hidden; background: var(--navy-deep); color: #fff; }
.roads-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 54%; }
.roads-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,45,.97), rgba(6,26,45,.88) 29%, rgba(6,26,45,.38) 60%, rgba(6,26,45,.08)); }
.roads-hero__inner { position: relative; z-index: 1; padding-block: 34px 43px; }
.roads-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 27px; color: #e0e9f0; font-size: .78rem; line-height: 1.5; }
.roads-breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.roads-breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.roads-hero__eyebrow { display: block; margin-bottom: 12px; color: #f7b978; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.roads-hero h1 { max-width: 19ch; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 4.1vw, 4.2rem); line-height: 1.06; letter-spacing: -.04em; }
.roads-hero__inner > p { max-width: 39ch; margin: 17px 0 23px; color: #edf3f7; font-size: 1.06rem; line-height: 1.55; }
.roads-button { gap: 18px; background: var(--brand-orange); color: #fff; }
.roads-button:hover { background: #963b0a; }
.roads-button span { font-size: 1.1rem; line-height: 1; }
.roads-heading { margin-bottom: 25px; }
.roads-heading .eyebrow { margin-bottom: 7px; color: #a7440c; }
.roads-heading h2 { color: var(--navy); font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1.14; }
.roads-heading p { max-width: 75ch; margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* ROADS 02 | Four scope cards */
.roads-scope { padding: 49px 0 54px; background: #fff; }
.roads-scope__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.roads-scope article { min-width: 0; padding: 22px 20px 23px; border: 1px solid #c7d4e2; border-radius: 6px; background: #fff; }
.roads-scope svg { width: 37px; height: 37px; color: var(--navy); }
.roads-scope h3 { margin-top: 13px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.23rem; line-height: 1.2; }
.roads-scope article p { margin-top: 10px; color: var(--muted); font-size: .88rem; line-height: 1.52; }

/* ROADS 03 | Three illustrative infrastructure views */
.roads-connections { padding: 44px 0 35px; background: #eaf1f7; }
.roads-connections__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.roads-connections figure { min-width: 0; overflow: hidden; border-radius: 5px; background: #fff; }
.roads-connections img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.roads-connections figcaption { padding: 13px 16px 15px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.roads-connections__note { margin-top: 13px; color: var(--muted); font-size: .78rem; font-style: italic; }

/* ROADS 04 | Site review and three steps */
.roads-process { padding: 49px 0 30px; background: #fff; }
.roads-process__layout { display: grid; grid-template-columns: 49% minmax(0, 1fr); align-items: center; gap: 38px; }
.roads-process__image { min-width: 0; overflow: hidden; border-radius: 5px; }
.roads-process__image img { width: 100%; height: auto; aspect-ratio: 1.32; object-fit: cover; }
.roads-process__copy { min-width: 0; }
.roads-process__copy .roads-heading { margin-bottom: 18px; }
.roads-steps { margin: 0; padding: 0; list-style: none; }
.roads-steps li { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 15px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.roads-steps li:first-child { padding-top: 0; }
.roads-steps li > span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 5px; background: #fff1e7; color: #a7440c; font-size: .84rem; font-weight: 800; }
.roads-steps h3 { color: var(--navy); font-size: 1.08rem; line-height: 1.3; }
.roads-steps p { margin-top: 3px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.roads-preparation { margin-top: 16px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.roads-preparation strong { color: var(--navy); }
.roads-services-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 17px; color: var(--navy); font-size: .88rem; font-weight: 750; text-underline-offset: 3px; }
.roads-services-back:hover { color: var(--brand-orange); text-decoration: underline; }
.roads-services-back span { font-size: 1.1rem; }

/* ROADS 05 | Shared consultation action */
.roads-contact { padding: 35px 0; background: var(--navy-deep); color: #fff; }
.roads-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.roads-contact h2 { color: #fff; font-size: clamp(1.8rem, 2.7vw, 2.35rem); }
.roads-contact p { margin-top: 6px; color: #dce7ef; font-size: .94rem; }
.roads-contact .roads-button { flex: none; }

@media (max-width: 1100px) {
  .roads-scope__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .roads-hero h1 { font-size: 3rem; }
  .roads-process__layout { grid-template-columns: 1fr; gap: 27px; }
  .roads-process__image img { max-height: 420px; }
  .roads-connections__grid { gap: 13px; }
  .roads-contact__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .roads-hero { min-height: 430px; }
  .roads-hero::after { background: rgba(6,26,45,.8); }
  .roads-hero__inner { padding-block: 27px 35px; }
  .roads-breadcrumb { margin-bottom: 25px; }
  .roads-hero h1 { font-size: clamp(2.1rem, 8.6vw, 3rem); }
  .roads-hero h1 br { display: none; }
  .roads-scope, .roads-connections { padding: 40px 0; }
  .roads-process { padding: 40px 0 28px; }
  .roads-scope__grid, .roads-connections__grid { grid-template-columns: 1fr; gap: 14px; }
  .roads-connections img { aspect-ratio: 1.65; }
}

/* Geotechnical Investigations | services/geotechnical-investigations.html
 * GEOTECHNICAL numbers match the HTML comments. Edit this group for this page only.
 */

/* GEOTECHNICAL 01 | Split hero with an angled image edge */
.geotechnical-hero { display: grid; grid-template-columns: 46% 54%; min-height: 410px; overflow: hidden; background: var(--navy-deep); color: #fff; }
.geotechnical-hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 33px 40px 40px max(28px, calc((100vw - 1240px) / 2)); }
.geotechnical-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 27px; color: #dce7ef; font-size: .78rem; line-height: 1.5; }
.geotechnical-breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.geotechnical-breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.geotechnical-hero__eyebrow { display: block; margin-bottom: 12px; color: #f7b978; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.geotechnical-hero h1 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 4vw, 4.15rem); line-height: 1.06; letter-spacing: -.04em; }
.geotechnical-hero__copy > p { max-width: 39ch; margin: 17px 0 23px; color: #e1eaf1; font-size: 1.03rem; line-height: 1.55; }
.geotechnical-hero__image { min-width: 0; width: calc(100% + 38px); margin-left: -38px; overflow: hidden; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.geotechnical-hero__image img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; object-position: center; }
.geotechnical-button { gap: 18px; background: var(--brand-orange); color: #fff; }
.geotechnical-button:hover { background: #963b0a; }
.geotechnical-button span { font-size: 1.1rem; line-height: 1; }
.geotechnical-heading { margin-bottom: 25px; }
.geotechnical-heading .eyebrow { margin-bottom: 7px; color: #a7440c; }
.geotechnical-heading h2 { color: var(--navy); font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1.14; }
.geotechnical-heading p { max-width: 75ch; margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* GEOTECHNICAL 02 | Four scope cards */
.geotechnical-scope { padding: 49px 0 53px; background: #fff; }
.geotechnical-scope__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.geotechnical-scope article { min-width: 0; padding: 22px 20px 23px; border: 1px solid #c7d4e2; border-radius: 6px; background: #fff; }
.geotechnical-scope svg { width: 37px; height: 37px; color: var(--navy); }
.geotechnical-scope h3 { margin-top: 13px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.23rem; line-height: 1.2; }
.geotechnical-scope article p { margin-top: 10px; color: var(--muted); font-size: .88rem; line-height: 1.52; }

/* GEOTECHNICAL 03 | Field photograph and two horizontal context cards */
.geotechnical-context { padding: 43px 0 38px; background: #f5f1e9; }
.geotechnical-context__layout { display: grid; grid-template-columns: 52% minmax(0, 1fr); align-items: start; gap: 20px; }
.geotechnical-context__field { min-width: 0; }
.geotechnical-context__field img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: 5px; }
.geotechnical-context__field figcaption { margin-top: 9px; color: var(--muted); font-size: .77rem; font-style: italic; }
.geotechnical-context__cards { display: grid; gap: 15px; min-width: 0; }
.geotechnical-context-card { display: grid; grid-template-columns: 49% minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid #d9d6cf; border-radius: 5px; background: #fff; }
.geotechnical-context-card img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.geotechnical-context-card > div { align-self: center; min-width: 0; padding: 20px; }
.geotechnical-context-card h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.2; }
.geotechnical-context-card p { margin-top: 8px; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* GEOTECHNICAL 04 | Three numbered steps and preparation note */
.geotechnical-process { padding: 47px 0 30px; background: #fff; }
.geotechnical-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.geotechnical-steps li { min-width: 0; }
.geotechnical-steps__marker { position: relative; display: flex; justify-content: center; margin-bottom: 17px; }
.geotechnical-steps__marker::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: #b8c8d9; }
.geotechnical-steps__marker span { position: relative; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; background: var(--brand-orange); color: #fff; font-size: .84rem; font-weight: 800; box-shadow: 0 0 0 5px #fff; }
.geotechnical-steps h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; line-height: 1.2; }
.geotechnical-steps p { max-width: 34ch; margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.geotechnical-preparation { display: flex; align-items: center; gap: 15px; margin-top: 28px; padding: 15px 19px; border-radius: 5px; background: #eaf1f7; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.geotechnical-preparation strong { color: var(--navy); }
.geotechnical-preparation svg { flex: none; width: 28px; height: 28px; color: var(--navy); }
.geotechnical-services-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 13px; color: var(--navy); font-size: .88rem; font-weight: 750; text-underline-offset: 3px; }
.geotechnical-services-back:hover { color: var(--brand-orange); text-decoration: underline; }
.geotechnical-services-back span { font-size: 1.1rem; }

/* GEOTECHNICAL 05 | Shared consultation action */
.geotechnical-contact { padding: 35px 0; background: var(--navy-deep); color: #fff; }
.geotechnical-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.geotechnical-contact h2 { max-width: 32ch; color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.2; }
.geotechnical-contact p { margin-top: 8px; color: #dce7ef; font-size: .94rem; }
.geotechnical-contact .geotechnical-button { flex: none; }

@media (max-width: 1100px) {
  .geotechnical-hero__copy { padding-left: 34px; }
  .geotechnical-scope__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geotechnical-context__layout { grid-template-columns: 1fr; }
  .geotechnical-context__field img { max-height: 420px; }
  .geotechnical-context__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geotechnical-context-card { grid-template-columns: 1fr; }
  .geotechnical-context-card img { aspect-ratio: 1.8; height: auto; min-height: 0; }
}
@media (max-width: 860px) {
  .geotechnical-hero { grid-template-columns: 1fr; }
  .geotechnical-hero__copy { padding: 28px max(18px, calc((100vw - 720px) / 2)) 38px; }
  .geotechnical-hero__image { width: 100%; height: 330px; margin-left: 0; clip-path: none; }
  .geotechnical-hero__image img { min-height: 0; }
  .geotechnical-contact__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .geotechnical-hero__copy { padding: 25px 16px 35px; }
  .geotechnical-breadcrumb { margin-bottom: 25px; }
  .geotechnical-hero h1 { font-size: clamp(2rem, 8.6vw, 3.1rem); }
  .geotechnical-hero__image { height: 255px; }
  .geotechnical-scope, .geotechnical-context { padding: 40px 0; }
  .geotechnical-process { padding: 40px 0 28px; }
  .geotechnical-scope__grid, .geotechnical-context__cards { grid-template-columns: 1fr; gap: 14px; }
  .geotechnical-context-card { grid-template-columns: 42% minmax(0, 1fr); }
  .geotechnical-context-card img { height: 100%; aspect-ratio: auto; }
  .geotechnical-context-card > div { padding: 18px 15px; }
  .geotechnical-steps { grid-template-columns: 1fr; gap: 22px; }
  .geotechnical-steps li { position: relative; padding-left: 58px; }
  .geotechnical-steps__marker { position: absolute; left: 0; top: 0; margin: 0; }
  .geotechnical-steps__marker::before { display: none; }
  .geotechnical-steps h3 { padding-top: 7px; }
  .geotechnical-steps p { max-width: none; }
  .geotechnical-preparation { align-items: flex-start; padding: 14px; gap: 11px; }
}

/* Water Systems | services/water-systems.html
 * WATER numbers match the HTML comments. Edit this group for this page only.
 */

/* WATER 01 | Split hero */
.water-hero { display: grid; grid-template-columns: 42% 58%; min-height: 390px; background: var(--navy-deep); color: #fff; }
.water-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 33px 34px 40px max(28px, calc((100vw - 1240px) / 2)); }
.water-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 27px; color: #dce7ef; font-size: .78rem; line-height: 1.5; }
.water-breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.water-breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.water-hero__eyebrow { display: block; margin-bottom: 12px; color: #f7b978; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.water-hero h1 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 4.2vw, 4.3rem); line-height: 1.06; letter-spacing: -.04em; }
.water-hero__copy > p { max-width: 39ch; margin: 17px 0 23px; color: #e1eaf1; font-size: 1.03rem; line-height: 1.55; }
.water-hero__image { min-width: 0; overflow: hidden; }
.water-hero__image img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center; }
.water-button { gap: 18px; background: var(--brand-orange); color: #fff; }
.water-button:hover { background: #963b0a; }
.water-button span { font-size: 1.1rem; line-height: 1; }
.water-heading { margin-bottom: 25px; }
.water-heading .eyebrow { margin-bottom: 7px; color: #a7440c; }
.water-heading h2 { color: var(--navy); font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1.14; }
.water-heading p { max-width: 75ch; margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* WATER 02 | Four scope cards */
.water-scope { padding: 49px 0 53px; background: #fff; }
.water-scope__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.water-scope article { min-width: 0; padding: 22px 20px 23px; border: 1px solid #c7d4e2; border-radius: 6px; background: #fff; }
.water-scope svg { width: 37px; height: 37px; color: var(--navy); }
.water-scope h3 { margin-top: 13px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.23rem; line-height: 1.2; }
.water-scope article p { margin-top: 10px; color: var(--muted); font-size: .88rem; line-height: 1.52; }

/* WATER 03 | Three visual system examples */
.water-systems { padding: 43px 0 35px; background: #edf5f8; }
.water-systems__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.water-systems figure { min-width: 0; overflow: hidden; border: 1px solid #d5e2e9; border-radius: 5px; background: #fff; }
.water-systems img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.water-systems figcaption { padding: 13px 16px 15px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.water-systems__note { margin-top: 13px; color: var(--muted); font-size: .78rem; font-style: italic; }

/* WATER 04 | Site review and planning process */
.water-process { padding: 49px 0 30px; background: #fff; }
.water-process__layout { display: grid; grid-template-columns: 49% minmax(0, 1fr); align-items: center; gap: 38px; }
.water-process__image { min-width: 0; overflow: hidden; border-radius: 5px; }
.water-process__image img { width: 100%; height: auto; aspect-ratio: 1.32; object-fit: cover; }
.water-process__copy { min-width: 0; }
.water-process__copy .water-heading { margin-bottom: 18px; }
.water-steps { margin: 0; padding: 0; list-style: none; }
.water-steps li { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 15px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.water-steps li:first-child { padding-top: 0; }
.water-steps li > span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 5px; background: var(--brand-orange); color: #fff; font-size: .84rem; font-weight: 800; }
.water-steps h3 { color: var(--navy); font-size: 1.08rem; line-height: 1.3; }
.water-steps p { margin-top: 3px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.water-preparation { margin-top: 16px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.water-preparation strong { color: var(--navy); }
.water-services-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 17px; color: var(--navy); font-size: .88rem; font-weight: 750; text-underline-offset: 3px; }
.water-services-back:hover { color: var(--brand-orange); text-decoration: underline; }
.water-services-back span { font-size: 1.1rem; }

/* WATER 05 | Shared consultation action */
.water-contact { padding: 35px 0; background: var(--navy-deep); color: #fff; }
.water-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.water-contact h2 { color: #fff; font-size: clamp(1.8rem, 2.7vw, 2.35rem); line-height: 1.2; }
.water-contact p { margin-top: 8px; color: #dce7ef; font-size: .94rem; }
.water-contact .water-button { flex: none; }

@media (max-width: 1100px) {
  .water-hero__copy { padding-left: 34px; }
  .water-scope__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .water-hero { grid-template-columns: 1fr; }
  .water-hero__copy { padding: 28px max(18px, calc((100vw - 720px) / 2)) 38px; }
  .water-hero__image { height: 330px; }
  .water-hero__image img { min-height: 0; }
  .water-process__layout { grid-template-columns: 1fr; gap: 27px; }
  .water-process__image img { max-height: 420px; }
  .water-systems__grid { gap: 13px; }
  .water-contact__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .water-hero__copy { padding: 25px 16px 35px; }
  .water-breadcrumb { margin-bottom: 25px; }
  .water-hero h1 { font-size: clamp(2.4rem, 10vw, 3.25rem); }
  .water-hero__image { height: 255px; }
  .water-scope, .water-systems { padding: 40px 0; }
  .water-process { padding: 40px 0 28px; }
  .water-scope__grid, .water-systems__grid { grid-template-columns: 1fr; gap: 14px; }
  .water-systems img { aspect-ratio: 1.65; }
}

/* SERVICE DETAIL CTAs | Shared stacked actions for the eight active service pages.
 * Keep the coloured primary button's page-specific styling above; edit the
 * outlined portfolio action here for all eight pages at once.
 */
.service-contact-actions {
  display: flex;
  flex: 0 0 250px;
  flex-direction: column;
  gap: 10px;
}

.service-contact-actions .button { width: 100%; gap: 12px; }
.service-contact-projects { border: 1px solid rgba(255, 255, 255, .85); background: transparent; color: #fff; }
.service-contact-projects:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 600px) {
  .service-contact-actions { width: 100%; flex-basis: auto; }
}

/* 05  Featured Project */

.featured-section {
  background: #fff;
}

/* Match the space below Services when these homepage sections are adjacent. */
.services-section + .featured-section {
  padding-top: 40px;
}

.featured-section .section-heading {
  margin-bottom: 26px;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.featured-gallery,
.featured-details {
  min-width: 0;
}

/* Keep the summary distinct from the gallery without adding a heavy border. */
.featured-details {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.7vw, 36px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
}

/* The main image and progress images form one gallery. */
.featured-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper);
  cursor: zoom-in;
}

.featured-gallery .featured-image-link {
  border-radius: 10px;
}

.featured-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-gallery .featured-image-link img {
  transition: transform .35s ease;
}

.featured-gallery .featured-image-link:hover img,
.featured-gallery .featured-image-link:focus-visible img {
  transform: scale(1.025);
}

.featured-main .featured-image-link {
  aspect-ratio: 1.6;
}

/* A transparent View control appears on hover or keyboard focus. */
.featured-image-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 45, .16);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

/* Shared gallery View control matches the transparent pill on project cards. */
.featured-image-view {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  min-width: 88px;
  min-height: 44px;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 26, 45, .18);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 5px));
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.featured-lightbox-control svg {
  width: 23px;
  height: 23px;
}

.featured-image-link:hover::after,
.featured-image-link:focus-visible::after,
.featured-image-link:hover .featured-image-view,
.featured-image-link:focus-visible .featured-image-view {
  opacity: 1;
}

.featured-image-link:hover .featured-image-view,
.featured-image-link:focus-visible .featured-image-view {
  transform: translate(-50%, -50%);
}

/* Touch screens have no hover, so keep the image action visible. */
@media (hover: none), (pointer: coarse) {
  .featured-image-view {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-gallery .featured-image-link img,
  .featured-image-view,
  .featured-image-link::after {
    transition: none;
  }
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.featured-category {
  color: var(--blue);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.featured-intro {
  margin: 24px 0 28px;
}

.featured-intro h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--navy);
}

.featured-intro p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.featured-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
}

.featured-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.featured-facts div {
  display: grid;
  grid-template-columns: minmax(92px, .6fr) minmax(0, 1.4fr);
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.featured-facts dt {
  color: var(--navy);
  font-size: .85rem;
  font-weight: 700;
}

.featured-facts dd {
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.featured-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px 22px;
  margin-top: auto;
  padding-top: 28px;
}

.featured-project-button {
  gap: 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.featured-all-link {
  color: var(--blue);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}

.featured-all-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fact-note {
  font-size: .8rem;
  color: var(--muted);
}

.featured-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.featured-progress .featured-image-link {
  aspect-ratio: 1.9;
}

/* Native dialog keeps keyboard focus inside the enlarged image viewer. */
html.featured-lightbox-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.featured-lightbox {
  /* JavaScript fits the panel to the image ratio and the available screen height. */
  width: var(--featured-viewer-width, min(1040px, calc(100% - 32px)));
  height: var(--featured-viewer-height, auto);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition: opacity .18s ease, transform .18s ease, width .22s ease, height .22s ease;
}

.featured-lightbox.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.featured-lightbox::backdrop {
  background: rgba(6, 26, 45, 0);
  transition: background-color .18s ease;
}

.featured-lightbox.is-visible::backdrop {
  background-color: rgba(6, 26, 45, .76);
}

.featured-lightbox-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
}

.featured-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.featured-lightbox-header p {
  min-width: 0;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.featured-lightbox-control {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.featured-lightbox-control:hover {
  background: var(--blue-soft);
}

.featured-lightbox-control[hidden] {
  display: none;
}

.featured-lightbox-stage {
  /* No fixed stage size: the visible image fills this area edge to edge. */
  width: 100%;
  aspect-ratio: var(--featured-image-ratio, 4/3);
  overflow: hidden;
}

.featured-lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-lightbox figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .875rem;
  text-align: center;
}

.featured-lightbox-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .featured-lightbox,
  .featured-lightbox::backdrop {
    transition: none;
  }
}

/* 09  Our Projects */

.projects-section {
  background: #f3f5f7;
}

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

/* Portfolio concept divider. Spans both columns and keeps illustrative work distinct. */
.project-group-intro {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding: 28px 30px 24px;
  border-top: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.project-group-intro h2 { margin: 5px 0 8px; color: var(--navy); font-size: clamp(1.7rem, 2.5vw, 2.2rem); }
.project-group-intro p { max-width: 70ch; color: var(--muted); }
@media (max-width: 600px) { .project-group-intro { margin-top: 12px; padding: 20px 18px; } }

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(8, 29, 49, .035);
}

.project-image-link {
  display: block;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 2/1;
}

.project-image-link:focus-visible {
  outline-offset: -4px;
}

/* Match the featured gallery's transparent View overlay without changing its destination. */
.project-image-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 45, .16);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.project-image-view {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  min-width: 88px;
  min-height: 44px;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: rgba(6, 26, 45, .18);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 5px));
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.project-image-link:hover::after,
.project-image-link:focus::after,
.project-image-link:hover .project-image-view,
.project-image-link:focus .project-image-view {
  opacity: 1;
}

.project-image-link:hover .project-image-view,
.project-image-link:focus .project-image-view {
  transform: translate(-50%, -50%);
}

@media (hover: none), (pointer: coarse) {
  .project-image-view {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-image-view,
  .project-image-link::after {
    transition: none;
  }
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .65, .3, 1);
}

/* Keep the zoom inside the photo frame so the text and card height stay still. */
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-image {
    transform: scale(1.035);
  }
}

.project-card:focus-within .project-image {
  transform: scale(1.035);
}

.project-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  padding: 20px 22px 18px;
}

/* The category stays above the hover overlay and does not move with the photo zoom. */
.project-type {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(9, 34, 58, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  font-size: .75rem;
  line-height: 1.2;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .045em;
  font-weight: 750;
  pointer-events: none;
}

.project-copy h2,
.project-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  color: var(--navy);
  overflow-wrap: break-word;
}

.project-copy p {
  color: var(--muted);
  font-size: 1rem;
}

.project-copy .project-scope {
  margin-bottom: 16px;
  line-height: 1.55;
}

/* Keep the facts and action aligned even when a project title wraps. */
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.project-copy .project-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.project-location-icon {
  width: 18px;
  height: 20px;
  flex-shrink: 0;
  color: #a77813;
}

.project-button {
  flex-shrink: 0;
  margin-top: 0;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}

.project-button:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .project-image {
    transition: none;
  }

  .project-card:hover .project-image,
  .project-card:focus-within .project-image {
    transform: none;
  }
}

.projects-actions {
  margin-top: 32px;
  text-align: center;
}

/* Homepage portfolio link: a lighter action than the project card buttons. */
.projects-more-button {
  padding-inline: 21px; /* Account for the borders; keep the former button width. */
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
}

.projects-more-button:hover {
  background: var(--navy);
  color: #fff;
}

/* Portfolio page | Image hero banner in projects.html
 * Change the photo in HTML. Adjust overlay opacity and image framing below.
 * The two buttons link to the portfolio grid and the contact footer.
 */
.portfolio-intro {
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 310px;
  padding: 32px 0;
  background: var(--navy-deep);
  color: #fff;
}

.portfolio-hero-image,
.portfolio-intro::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.portfolio-hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 50% 42%;
}

.portfolio-intro::before {
  content: '';
  z-index: -1;
  background: rgba(6, 26, 45, .73);
}

.portfolio-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.portfolio-hero-copy { min-width: 0; }

.portfolio-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.portfolio-intro .eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  flex-shrink: 0;
  background: currentColor;
}

.portfolio-intro .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #d7e1ed;
  font-size: .8125rem;
}

.portfolio-intro .breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.portfolio-intro h1 {
  color: #fff;
  font: 700 clamp(2.4rem, 4.7vw, 3.75rem)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.portfolio-hero-copy > p {
  max-width: 62ch;
  margin-top: 14px;
  color: #e1e9f2;
}

.portfolio-hero-actions { display: flex; flex-direction: column; gap: 12px; }
.portfolio-hero-actions .button { min-height: 48px; justify-content: center; gap: 12px; }
.portfolio-action-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Keep the title and actions comfortable on smaller screens. */
@media (max-width: 760px) {
  .portfolio-intro { padding: 28px 0; }
  .portfolio-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .portfolio-hero-actions { flex-direction: row; flex-wrap: wrap; }
  .portfolio-hero-actions .button { flex: 1 1 190px; }
}

@media (max-width: 480px) {
  .portfolio-intro .breadcrumb { margin-bottom: 16px; }
  .portfolio-hero-actions { flex-direction: column; }
  .portfolio-hero-actions .button { flex: none; }
}

/* Individual project pages | projects/*.html
 * Edit text and image links directly in projects/*.html.
 * js/project-details.js handles only the popup and its controls.
 */

/* PROJECT HEADER | Compact navy title banner.
 * Natural height on phones lets longer project names wrap without clipping.
 */
.project-page-header {
  display: flex;
  align-items: center;
  min-height: 170px;
  padding: 24px 0;
  background: var(--navy);
  color: #fff;
}
.project-page-header .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 12px;
  color: #d5dfeb;
  font-size: .8125rem;
}
.project-page-header .breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-page-header h1 {
  margin-bottom: 10px;
  color: #fff;
  font: 700 clamp(2rem, 3.6vw, 3rem)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
}
.project-page-header h1::before {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--gold);
}
.project-page-header p { max-width: 76ch; color: #e1e9f2; font-size: 1rem; }

/* PROJECT 01 | At-a-glance facts. Alphonse keeps its six existing facts in two rows. */
.project-detail { padding: 24px 0 30px; background: var(--paper); }
.project-facts-strip {
  display: grid;
  grid-template-columns: repeat(var(--project-fact-columns, 4), minmax(0, 1fr));
  gap: 20px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(8, 29, 49, .035);
}
.project-facts-strip > div { min-width: 0; padding-inline: 24px; border-left: 1px solid var(--line); }
.project-facts-strip > div:first-child,
.project-facts-strip--extended > div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.project-facts-strip dt { margin-bottom: 5px; color: var(--muted); font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.project-facts-strip dd { color: var(--navy); font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }

/* PROJECT 02 | Coordinated gallery. The first image is the large cover; later images fill the grid. */
.project-gallery { margin-top: 28px; }
.project-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.project-section-heading h2 { color: var(--navy); font-size: clamp(1.75rem, 2.5vw, 2.25rem); }
.project-section-heading p { color: var(--muted); font-size: .875rem; }
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 185px);
  gap: 12px;
}
.project-gallery-grid > figure {
  position: relative;
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-soft);
}
.project-gallery-grid > figure:first-child { grid-column: 1 / span 4; grid-row: span 2; }
.project-gallery-grid > figure:nth-child(2),
.project-gallery-grid > figure:nth-child(3) { grid-column: 5 / span 2; }
.project-gallery-link { width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit; }
.project-gallery-link:focus-visible { outline-offset: -4px; }
.project-gallery-link img,
.project-lightbox .featured-lightbox-stage img { transform: scale(var(--project-view-scale, 1)); transform-origin: var(--project-view-x, 50%) var(--project-view-y, 50%); }
.project-gallery-grid figcaption,
.project-gallery-label {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(6, 26, 45, .76);
  color: #fff;
  font-size: .8125rem;
  line-height: 1.45;
  pointer-events: none;
}
/* Keep the original cover caption available to the popup and assistive technology. */
.project-gallery-grid > figure:first-child > figcaption {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.project-gallery-action {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(9, 34, 58, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(6, 26, 45, .12);
  transition: background-color .2s ease;
  pointer-events: none;
}
.project-gallery-link:hover .project-gallery-action,
.project-gallery-link:focus-visible .project-gallery-action { background: var(--blue-soft); }

/* PROJECT 03 | One concise overview beneath the gallery. */
.project-overview {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(8, 29, 49, .035);
}
.project-overview h2 { color: var(--navy); font-size: clamp(1.6rem, 2.5vw, 2rem); }
.project-overview p { margin-top: 12px; color: var(--muted); }

/* PROJECT 04 | Similar projects
 * Select related projects and reuse their cover images. The grid remains usable
 * without JavaScript. similar-projects.js enables scrolling when more cards fit off screen.
 */
.similar-projects {
  padding: 32px 0 38px;
  background: var(--paper);
}

.similar-projects-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.similar-projects-heading h2 {
  color: var(--navy);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

.similar-projects-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1rem;
}

.similar-projects-all:hover { color: var(--blue); }

.similar-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.similar-projects-carousel { --similar-visible: 2; }

.similar-projects-carousel.is-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px 12px;
}

.is-carousel .similar-projects-grid {
  grid-area: 1 / 2;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.is-carousel .similar-projects-grid::-webkit-scrollbar { display: none; }
.is-carousel .similar-project-card { scroll-snap-align: start; }

.similar-projects-carousel button:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.similar-projects-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.similar-projects-arrow:hover { background: var(--navy); color: var(--white); }
.similar-projects-prev { grid-area: 1 / 1; }
.similar-projects-next { grid-area: 1 / 3; }

.similar-projects-playback {
  grid-area: 2 / 2;
  justify-self: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  font-size: .875rem;
  cursor: pointer;
}

.similar-projects-playback:hover { text-decoration: underline; text-underline-offset: 3px; }
.similar-projects-play-icon,
.similar-projects-playback.is-paused .similar-projects-pause-icon { display: none; }
.similar-projects-playback.is-paused .similar-projects-play-icon { display: inline; }

.similar-projects-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.similar-project-card {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(8, 29, 49, .04);
}

.similar-project-image {
  display: block;
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 216px;
  border-radius: 7px 0 0 7px;
}

.similar-project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .65, .3, 1);
}

.similar-project-image:focus-visible { outline-offset: -4px; }

.similar-project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
}

.similar-project-meta { color: var(--muted); font-size: .875rem; }

.similar-project-copy h3 {
  margin: 8px 0 18px;
  color: var(--navy);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.similar-project-copy h3 a:hover { color: var(--blue); }

.similar-project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 16px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: .875rem;
  line-height: 1.4;
  font-weight: 400;
  transition: background-color .2s ease, color .2s ease;
}

.similar-project-button:hover { background: var(--navy); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .similar-project-card:hover .similar-project-image img { transform: scale(1.035); }
}

.similar-project-card:focus-within .similar-project-image img { transform: scale(1.035); }

@media (max-width: 900px) {
  .similar-projects-grid { grid-template-columns: 1fr; gap: 18px; }
  .similar-projects-carousel { --similar-visible: 1; }
  .is-carousel .similar-projects-grid { grid-area: 1 / 1 / 2 / 4; grid-auto-columns: 100%; }
  .similar-projects-prev { grid-area: 2 / 1; }
  .similar-projects-next { grid-area: 2 / 3; }
  .similar-project-card { grid-template-columns: 38% minmax(0, 1fr); }
  .similar-project-image { min-height: 200px; }
}

@media (max-width: 600px) {
  .similar-projects { padding: 26px 0 30px; }
  .similar-projects-heading { align-items: flex-start; gap: 2px 20px; margin-bottom: 16px; }
  .similar-project-copy { padding: 18px 16px; }
  .similar-project-copy h3 { font-size: 1.25rem; }
  .similar-project-button { padding-inline: 12px; gap: 6px; }
}

@media (max-width: 460px) {
  .is-carousel .similar-project-card { grid-template-columns: minmax(0, 1fr); }
  .is-carousel .similar-project-image {
    min-height: 0;
    aspect-ratio: 8 / 5;
    border-radius: 7px 7px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .similar-project-image img,
  .similar-project-button { transition: none; }
  .similar-project-card:hover .similar-project-image img,
  .similar-project-card:focus-within .similar-project-image img { transform: none; }
}

/* Project detail carousel refinements. Other pages keep their existing carousel appearance. */
.project-page .similar-projects { padding: 0 0 28px; background: var(--paper); }
.project-page .similar-projects > .container { padding: 20px 24px; border-radius: 10px; background: #edf2f7; }
.project-page .similar-project-copy h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
.project-page .similar-projects-all { color: #895b0c; text-decoration: underline; text-underline-offset: 4px; }
.project-page .similar-projects-all:hover { color: var(--navy); }
.project-page .similar-project-button { border-radius: 6px; background: var(--navy); color: #fff; font-weight: 600; }
.project-page .similar-project-button:hover { border-color: var(--blue); background: var(--blue); }

/* PROJECT 05 | Compact navy enquiry panel with one gold action. */
.project-page .closing-band { padding: 0 0 28px; background: var(--paper); }
.project-page .closing-inner { padding: 24px 26px; border-radius: 10px; background: var(--navy); }
.project-page .closing-inner h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.project-consultation-button { gap: 12px; background: var(--gold); color: var(--navy); font-weight: 650; }
.project-consultation-button:hover { background: #e4b958; }

/* Project pages | Tablet */
@media (max-width: 900px) {
  .project-facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-facts-strip > div:nth-child(n) { padding-inline: 16px; border-left: 1px solid var(--line); }
  .project-facts-strip > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* Project pages | Phone */
@media (max-width: 600px) {
  .project-page-header { min-height: 0; padding: 24px 0; }
  .project-page-header h1 { font-size: clamp(1.75rem, 7.3vw, 2.1rem); }
  .project-detail { padding: 18px 0 24px; }
  .project-facts-strip { padding: 18px 16px; }
  .project-facts-strip dt { font-size: .75rem; }
  .project-facts-strip dd { font-size: .9375rem; }
  .project-overview { margin-top: 22px; padding: 18px; }
  .project-overview h2 { font-size: 1.6rem; }
  .project-gallery { margin-top: 24px; }
  .project-section-heading { gap: 6px; margin-bottom: 14px; }
  .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
  .project-gallery-grid > figure:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
  .project-gallery-grid > figure:first-child { grid-column: 1 / -1; aspect-ratio: 8/5; }
  .project-gallery-grid > figure:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 2/1; }
  .project-gallery-label { top: 10px; bottom: auto; left: 10px; font-size: .75rem; }
  .project-gallery-action { right: 10px; bottom: 10px; padding-inline: 12px; font-size: .875rem; }
  .project-gallery-grid figcaption { bottom: 8px; left: 8px; max-width: calc(100% - 16px); padding: 4px 7px; font-size: .75rem; }
  .project-page .similar-projects > .container { padding: 18px 16px; }
  .project-page .closing-inner { padding: 22px 20px; }
}

@media (hover: none), (pointer: coarse) {
  .project-page .project-gallery .featured-image-view { display: none; }
}


/* 10  Consultation banner */

.closing-band {
  background: var(--blue);
  color: #fff;
  padding: 41px 0;
}

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.closing-inner h2 {
  font-size: 2.2rem;
  color: #fff;
}

.closing-inner p {
  margin-top: 7px;
  color: #e3ebf6;
}

/* Closing invitation | Shared visual treatment for Home, Projects, FAQs and Team.
 * About and individual service pages keep their own section styling.
 */
.closing-band:is(.home-consultation, .page-consultation) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0;
  background: linear-gradient(110deg, #153e68 0%, #214f83 58%, #102f51 100%);
}

.closing-band:is(.home-consultation, .page-consultation)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .1;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 28%, #000 100%);
}

:is(.home-consultation-actions, .page-consultation-actions) {
  display: flex;
  flex: 0 0 250px;
  flex-direction: column;
  gap: 10px;
}

:is(.home-consultation-actions, .page-consultation-actions) .button { width: 100%; gap: 12px; }
:is(.home-services-button, .page-consultation-outline) { border: 1px solid rgba(255, 255, 255, .85); background: transparent; color: #fff; }
:is(.home-services-button, .page-consultation-outline):hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 600px) {
  .closing-band:is(.home-consultation, .page-consultation) { padding: 36px 0; }
  :is(.home-consultation-actions, .page-consultation-actions) { width: 100%; flex-basis: auto; }
}

/* 11  Footer and contact details */

.site-footer {
  background: var(--navy-deep);
  color: #c7d4e1;
  padding: 68px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr .7fr 1fr 1.15fr;
  gap: 34px;
}

.footer-brand {
  width: fit-content;
  padding: 7px 14px 7px 7px;
  border-radius: 5px;
  background: var(--white);
}

.footer-about > p {
  margin-top: 19px;
  color: var(--gold);
  font-weight: 650;
}

.footer-about .footer-about-copy {
  margin-top: 12px;
  color: #bdcede;
  font-weight: 400;
  max-width: 340px;
}

.footer-grid h2 {
  margin: 4px 0 21px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: .02em;
}

.footer-grid li+li {
  margin-top: 11px;
}

.footer-grid a:not(.footer-top) {
  transition: color .2s;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-contact > p {
  margin-bottom: 9px;
}

.contact-pending {
  max-width: 270px;
  font-size: .88rem;
  color: #9fb4c8;
}

.footer-top {
  display: inline-block;
  margin-top: 11px;
  color: var(--gold);
  font-weight: 700;
}

/* Compact homepage footer. Scoped so the footer copies on other pages stay as they are. */
.site-footer.footer-refined {
  padding-top: 46px;
}

.footer-refined > .container {
  max-width: 1120px;
}

.footer-refined .footer-grid {
  grid-template-columns: minmax(235px, 1.2fr) minmax(155px, .9fr) minmax(115px, .7fr) minmax(210px, 1.1fr);
  gap: 30px;
}

.footer-refined .footer-brand {
  padding: 0;
  background: none;
}

.footer-refined .footer-brand .brand-mark {
  height: 48px;
  border-radius: 6px;
}

.footer-refined .brand-wordmark strong {
  color: #fff;
  font-size: 1.4rem;
}

.footer-refined .brand-wordmark small {
  color: #ef9559;
  font-size: .56rem;
}

.footer-refined .footer-about .footer-about-copy {
  max-width: 285px;
  margin-top: 17px;
  color: #bdcede;
  font-size: .86rem;
  line-height: 1.6;
}

.footer-refined .footer-consultation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: #f0b641;
  font-size: .83rem;
  font-weight: 700;
}

.footer-refined .footer-consultation:hover {
  color: #fff;
}

.footer-refined .footer-grid h2 {
  margin: 1px 0 15px;
  color: #fff;
  font: 700 .94rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.footer-refined .footer-grid li + li {
  margin-top: 8px;
}

.footer-refined .footer-links a {
  color: #c7d4e1;
  font-size: .84rem;
  line-height: 1.55;
}

.footer-refined .footer-links a:hover {
  color: var(--gold);
}

.footer-refined .footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .84rem;
  line-height: 1.45;
}

.footer-refined .footer-contact-list li + li {
  margin-top: 14px;
}

.footer-refined .footer-contact-icon {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 5px;
  color: var(--gold);
}

.footer-refined .footer-contact-list span {
  overflow-wrap: anywhere;
}

.footer-refined .footer-contact-list small {
  display: block;
  margin-bottom: 2px;
  color: #9eb2c6;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Circular back-to-top control can be reused on every page with this footer. */
.footer-refined .footer-back-top {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 22px;
  border-radius: 50%;
  background: #2f6db5;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.footer-refined .footer-back-top:hover {
  background: #235a9a;
  color: #fff;
  transform: translateY(-2px);
}

/* JS keeps the footer link fixed and reveals it only near the page bottom.
 * Without JS it remains a normal visible link in the footer above.
 */
html.footer-scroll-ready .footer-refined .footer-back-top {
  position: fixed;
  z-index: 45;
  bottom: 24px;
  left: 24px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: background .2s ease, color .2s ease, opacity .2s ease,
    transform .2s ease, visibility 0s linear .2s;
}

html.footer-scroll-ready .footer-refined .footer-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

html.footer-scroll-ready .footer-refined .footer-back-top.is-visible:hover {
  transform: translateY(-2px);
}

.footer-refined .footer-bottom {
  margin-top: 34px;
  padding-block: 15px;
}

/* At narrower desktop widths the fixed corner controls sit inside the container. */
@media (min-width: 601px) and (max-width: 1200px) {
  .footer-refined .footer-bottom {
    padding-inline: 60px;
  }
}

@media (max-width: 1100px) {
  .footer-refined .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 34px;
  }

  .footer-refined .footer-contact {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .site-footer.footer-refined {
    padding-top: 38px;
  }

  .footer-refined .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .footer-refined .footer-about,
  .footer-refined .footer-contact {
    grid-column: 1/-1;
  }

  .footer-refined .footer-bottom {
    margin-top: 29px;
  }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #29425b;
  margin-top: 58px;
  padding: 21px 0;
  font-size: .78rem;
  color: #9fb4c8;
}

/* 11A  Floating WhatsApp shortcut | Keep clear of the left footer back-to-top control. */
.floating-whatsapp {
  position: fixed;
  z-index: 45;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #22ad5c;
  color: #fff;
  box-shadow: 0 5px 15px rgba(6, 26, 45, .18);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.floating-whatsapp:hover {
  background: #159348;
  color: #fff;
  box-shadow: 0 7px 18px rgba(6, 26, 45, .22);
  transform: translateY(-2px);
}

/* The modal has its own WhatsApp action and should remain the only active layer. */
html.consultation-open .floating-whatsapp,
html.consultation-open .footer-refined .footer-back-top {
  display: none;
}

@media (max-width: 600px) {
  html.footer-scroll-ready .footer-refined .footer-back-top {
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: calc(16px + env(safe-area-inset-left));
  }

  .floating-whatsapp {
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }

  /* Reserve space for the fixed control at the very end of the page. */
  .footer-refined .footer-bottom {
    padding-bottom: 82px;
  }
}

/* Responsive layouts | Small desktop and tablet (1100px and below) */

@media (max-width: 1100px) {
  .site-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: .8rem;
  }

  .nav-cta {
    font-size: .75rem;
    padding-inline: 12px;
  }

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

  .featured-grid {
    gap: 26px;
  }

  .hero-copy {
    padding-left: 36px;
  }

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

  .footer-contact {
    grid-column: 1/-1;
  }
}

/* Responsive layouts | Mobile navigation */

@media (max-width: 1200px) {
  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: grid;
    align-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span {
    height: 2px;
    background: var(--navy);
    transition: transform .2s, opacity .2s;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 18px 20px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-link {
    padding: 12px 8px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-link::after {
    display: none;
  }

  .nav-dropdown {
    display: block;
  }

  .nav-dropdown-toggle {
    width: 100%;
    min-height: 48px;
  }

  .nav-dropdown-chevron {
    margin-right: 10px;
  }

  .nav-submenu {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    width: auto;
    padding: 5px 8px 9px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #f7f9fc;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-dropdown.is-open .nav-submenu {
    display: grid;
    transform: none;
    animation: nav-submenu-reveal var(--dropdown-duration) ease both;
  }

  .nav-submenu a {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: .93rem;
  }

  .site-nav .nav-cta {
    margin: 15px 0 0;
  }

}

/* Responsive layouts | Stacked sections (860px and below) */
@media (max-width: 860px) {
  .container {
    width: min(100% - 36px, 1240px);
  }

  .hero-track {
    height: 490px;
  }

  .hero-slide {
    grid-template-columns: 49% 51%;
  }

  .hero-copy h1, .hero-copy h2 {
    font-size: clamp(2.1rem, 4.5vw, 3rem);
  }

  .hero-counter {
    display: none;
  }

  .service-intro,
  .service-information {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-contact {
    grid-column: auto;
  }
}

/* Responsive layouts | Phones (600px and below) */

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, 1240px);
  }

  /* Leave the full second line available for longer company email addresses. */
  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0;
  }

  .topbar-left {
    display: contents;
  }

  .topbar-left a {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .topbar-phone {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .brand-mark {
    height: 42px;
  }

  .brand-wordmark strong {
    font-size: 1.375rem;
  }

  .brand-wordmark small {
    font-size: .6rem;
  }

  .hero-track {
    /* The tallest slide sets the shared height, even when text wraps or grows. */
    height: auto;
    align-items: stretch;
  }

  .hero-slide {
    display: flex;
    flex-direction: column;
    height: auto;
    min-width: 0;
  }

  .hero-photo {
    order: 0;
    height: clamp(180px, 60vw, 280px);
    flex: none;
  }

  .hero-copy {
    order: 1;
    justify-content: flex-start;
    flex: 1 0 auto;
    padding: 26px 22px 76px;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .hero-actions .button {
    max-width: 100%;
  }

  .hero-copy::after {
    display: none;
  }

  .hero-copy h1, .hero-copy h2 {
    font-size: clamp(2rem, 7.8vw, 2.65rem);
  }

  .hero-copy p {
    margin: 11px 0 18px;
    font-size: .94rem;
  }

  .hero-copy .eyebrow {
    margin-bottom: 8px;
  }

  .hero-controls {
    bottom: 21px;
    gap: 12px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .section {
    padding: 64px 0;
  }

  /* Compact Services-to-Featured spacing on phones. */
  .services-section {
    padding-bottom: 28px;
  }

  .services-section + .featured-section {
    padding-top: 28px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 2.18rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-detail {
    padding: 24px 0 56px;
  }

  .service-scope {
    padding: 20px;
  }

  .featured-main .featured-image-link {
    aspect-ratio: 4/3;
  }

  .featured-progress .featured-image-link {
    aspect-ratio: 1.5;
  }

  .featured-details {
    padding: 22px;
  }

  .featured-intro {
    margin: 20px 0 24px;
  }

  .featured-intro h3 {
    font-size: 1.9rem;
  }

  .featured-facts div {
    grid-template-columns: minmax(82px, .6fr) minmax(0, 1.4fr);
    gap: 10px;
  }

  .featured-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .featured-project-button {
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-copy {
    padding: 20px;
  }

  .project-image-link {
    aspect-ratio: 8/5;
  }

  .project-copy h2,
  .project-copy h3 {
    font-size: 1.35rem;
    margin: 0 0 8px;
  }

  .project-copy p {
    font-size: 1rem;
  }

  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-inner h2 {
    font-size: 1.9rem;
  }

  .site-footer {
    padding-top: 53px;
  }

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

  .footer-about {
    grid-column: 1/-1;
  }

  .footer-contact {
    grid-column: 1/-1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 44px;
  }
}

/* Responsive layouts | Narrow phones (390px and below) */

@media (max-width: 390px) {
  /* Keep standard project facts and the 44px action on one row on narrow phones. */
  .project-copy {
    padding: 18px 16px;
  }

  .project-card-footer {
    gap: 8px;
  }

  .project-button {
    padding-inline: 10px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card .media-crop {
    height: auto;
    aspect-ratio: 1.55 !important;
  }
}

/* Accessibility | Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-submenu,
  .nav-dropdown-chevron {
    transition: none;
  }

  .nav-dropdown.is-open .nav-submenu {
    animation: none;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .hero-slide.is-revealed .hero-photo .media-crop img {
    transform: none;
  }

  .hero-slide.is-revealed .hero-copy > .eyebrow,
  .hero-slide.is-revealed .hero-copy > h1,
  .hero-slide.is-revealed .hero-copy > h2,
  .hero-slide.is-revealed .hero-copy > p,
  .hero-slide.is-revealed .hero-actions .button {
    animation: none;
  }
}

/* Image crop presets
 * Each class selects one photograph from a company-profile screenshot.
 * To use a standalone photo, remove its crop-* class in index.html, keep
 * media-crop, and update the img src and alt. See README.md for an example.
 */

.crop-hero-residence {
  --image-height: auto;
  --image-width: 238.4449%;
  --image-left: -14.0389%;
  --image-top: -40.2564%;
  aspect-ratio: 463/390;
}

.crop-hero-architecture {
  --image-height: auto;
  --image-width: 340.9231%;
  --image-left: -40.0000%;
  --image-top: -47.9167%;
  aspect-ratio: 325/240;
}

.crop-hero-audit {
  --image-height: auto;
  --image-width: 635.6322%;
  --image-left: -54.5977%;
  --image-top: -49.2593%;
  aspect-ratio: 174/270;
}

.crop-hero-ground-investigation {
  --image-height: auto;
  --image-width: 784.3972%;
  --image-left: -236.1702%;
  --image-top: -71.7822%;
  aspect-ratio: 141/202;
}

.crop-hero-bridge {
  --image-height: auto;
  --image-width: 281.6327%;
  --image-left: -23.2143%;
  --image-top: -43.0769%;
  aspect-ratio: 392/260;
}


/* CONTACT | Page content and responsive layout. Shared navigation/footer remain above. */
.contact-hero { background: var(--navy-deep); color: #fff; }
.contact-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.contact-hero-copy { padding: 35px 35px 40px 0; }
.contact-hero nav { margin-bottom: 24px; font-size: .85rem; color: #ceddeb; }
.contact-hero h1 { font-family: Georgia, serif; font-size: clamp(2.7rem, 5vw, 4rem); }
.contact-hero p { margin: 14px 0 24px; font-size: 1.15rem; }
.contact-hero img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.contact-methods { padding: 36px 0; background: var(--paper); }
.contact-methods h2, .contact-preparation h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.contact-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 23px; }
.contact-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.contact-symbol { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 1.4rem; }
.contact-card h3 { font-size: 1.4rem; }
.contact-card p { margin: 7px 0 12px; overflow-wrap: anywhere; }
.contact-card a { color: #963b0e; font-weight: 650; }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-preparation { padding: 34px 0; }
.contact-preparation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-preparation ul { margin-top: 19px; }
.contact-preparation li { margin: 9px 0; padding-left: 23px; position: relative; }
.contact-preparation li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-orange); }
.contact-office { padding: 28px; border-radius: 9px; color: #fff; background: linear-gradient(120deg, var(--navy), #214f83); }
.contact-office p { margin: 12px 0 6px; font-size: 1.1rem; }
.contact-office small { color: #dce7ef; }
@media (max-width: 700px) {
 .contact-hero-grid, .contact-card-grid, .contact-preparation-grid { grid-template-columns: 1fr; }
 .contact-hero-copy { padding: 28px 0; }
 .contact-hero img { height: 230px; min-height: 0; }
 .contact-card-grid { gap: 12px; }
 .contact-preparation-grid { gap: 22px; }
}

/* CAREERS 01–04 | Page layout. Vacancy content is edited in careers.html.
 * Prefixes keep these rules separate from the other pages. */
.careers-hero { background: var(--navy-deep); color: #fff; }
.careers-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.careers-hero-copy { padding: 28px 36px 38px 0; }
.careers-breadcrumb { display: flex; gap: 12px; margin-bottom: 27px; font-size: .82rem; color: #dbe7f3; }
.careers-breadcrumb a:hover { text-decoration: underline; }
.careers-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.5rem, 4.3vw, 3.7rem); letter-spacing: -.03em; line-height: 1.08; }
.careers-hero-copy > p { margin: 16px 0 24px; max-width: 34ch; color: #dbe7f3; font-size: 1.05rem; }
.careers-hero .button { gap: 12px; }
.careers-hero-image { position: relative; min-height: 340px; overflow: hidden; }
.careers-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.careers-intro, .careers-opportunities, .careers-applications { padding: 36px 0; }
.careers-page main h2 { font-size: clamp(1.8rem, 2.8vw, 2.25rem); }
.careers-section-copy { max-width: 78ch; margin-top: 10px; color: var(--muted); }
.careers-values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.careers-value { display: flex; gap: 15px; align-items: flex-start; padding: 21px 18px; border: 1px solid var(--line); border-radius: 8px; }
.careers-value svg { flex: 0 0 38px; width: 38px; height: 38px; color: var(--brand-orange); }
.careers-value h3 { font-size: 1.15rem; line-height: 1.3; }
.careers-value p { margin-top: 7px; font-size: .9rem; color: var(--muted); }
.careers-opportunities { background: var(--paper); scroll-margin-top: 120px; }
.careers-empty { margin-top: 22px; padding: 27px 20px; text-align: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.careers-empty svg { width: 38px; height: 38px; margin: 0 auto 12px; color: var(--muted); }
.careers-empty h3 { font-size: 1.4rem; }
.careers-empty p { margin-top: 7px; color: var(--muted); }
.careers-applications-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 40px; }
.careers-applications-grid > div > p { margin-top: 12px; max-width: 48ch; color: var(--muted); }
.careers-team-link { display: inline-block; margin-top: 17px; color: #963b0e; font-weight: 650; }
.careers-team-link:hover { text-decoration: underline; }
.careers-apply-card { padding: 26px 28px; background: linear-gradient(120deg, var(--navy), #214f83); color: #fff; border-radius: 9px; }
.careers-apply-card h3 { font-size: 1.5rem; }
.careers-email { display: block; margin: 11px 0 17px; overflow-wrap: anywhere; }
.careers-email:hover { text-decoration: underline; }
.careers-apply-card .button { gap: 12px; }
.careers-applications-grid .careers-apply-card > p { color: #dbe7f3; font-size: .83rem; }
@media (max-width: 1000px) {
  .careers-values-grid { grid-template-columns: 1fr; gap: 12px; }
  .careers-value { padding: 18px; }
}
@media (max-width: 700px) {
  .careers-hero-grid, .careers-applications-grid { grid-template-columns: 1fr; }
  .careers-hero-copy { padding: 25px 0 30px; }
  .careers-breadcrumb { margin-bottom: 22px; }
  .careers-hero-image { min-height: 0; height: 230px; }
  .careers-intro, .careers-opportunities, .careers-applications { padding: 28px 0; }
  .careers-applications-grid { gap: 24px; }
  .careers-apply-card { padding: 23px; }
}

/* DOWNLOADS 01–03 | Resource cards and dedicated banner.
 * Edit document names, status and future PDF links in downloads.html. */
.downloads-hero { color: #fff; background: linear-gradient(110deg, var(--navy-deep), #214f83); }
.downloads-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.downloads-hero-copy { padding: 26px 30px 34px 0; }
.downloads-breadcrumb { display: flex; gap: 12px; margin-bottom: 23px; color: #dbe7f3; font-size: .82rem; }
.downloads-breadcrumb a:hover { text-decoration: underline; }
.downloads-hero h1 { font: 700 clamp(2.7rem, 4.5vw, 3.8rem)/1.1 Georgia, serif; letter-spacing: -.025em; }
.downloads-hero p { margin-top: 13px; max-width: 45ch; color: #e3ebf6; font-size: 1.05rem; }
.downloads-hero-image { position: relative; min-height: 270px; overflow: hidden; border-left: 4px solid var(--gold); }
.downloads-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.downloads-resources { padding: 34px 0; }
.downloads-resources h2 { font-size: clamp(1.8rem, 2.8vw, 2.2rem); }
.downloads-intro { margin-top: 9px; color: var(--muted); }
.downloads-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.download-card { display: flex; flex-direction: column; align-items: flex-start; padding: 23px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(145deg, #fff, #f8fafc); }
.download-card-top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; margin-bottom: 16px; }
.download-card-top svg { width: 32px; height: 40px; color: var(--brand-orange); }
.download-type { padding: 3px 9px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: .75rem; font-weight: 650; }
.download-card h3 { font-size: 1.4rem; }
.download-card p { margin: 9px 0 21px; color: var(--muted); font-size: .93rem; }
.download-unavailable { margin-top: auto; min-height: 42px; padding: 10px 20px; border: 1px solid #bac6d2; background: #f2f5f8; color: #52667c; cursor: default; font-weight: 500; }
.download-unavailable:hover { transform: none; }
.downloads-availability { margin-top: 14px; color: var(--muted); font-size: .85rem; }
.downloads-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 27px; padding: 22px 25px; border-radius: 8px; background: var(--blue-soft); }
.downloads-help h2 { font-size: 1.35rem; }
.downloads-help p { margin-top: 4px; color: var(--muted); }
.downloads-help .button { flex-shrink: 0; gap: 12px; }
@media (max-width: 900px) {
  .downloads-grid { gap: 13px; }
  .download-card { padding: 18px; }
}
@media (max-width: 700px) {
  .downloads-hero-grid, .downloads-grid { grid-template-columns: 1fr; }
  .downloads-hero-copy { padding: 25px 0 28px; }
  .downloads-hero-image { min-height: 0; height: 200px; border-left: 0; border-top: 3px solid var(--gold); }
  .downloads-resources { padding: 28px 0; }
  .downloads-help { align-items: flex-start; flex-direction: column; gap: 17px; padding: 21px; }
}

/* GALLERY 01–04 | Images and categories are maintained in gallery.html. */
.gallery-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-deep); }
.gallery-hero > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.gallery-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(6,26,45,.94), rgba(6,26,45,.6)); }
.gallery-hero-copy { padding-block: 25px 32px; }
.gallery-hero nav { display: flex; gap: 12px; margin-bottom: 22px; font-size: .82rem; color: #dbe7f3; }
.gallery-hero nav a:hover { text-decoration: underline; }
.gallery-hero h1 { font: 700 clamp(2.6rem, 4.5vw, 3.7rem)/1.1 Georgia, serif; letter-spacing: -.025em; }
.gallery-hero p { margin-top: 12px; color: #e3ebf6; }
.gallery-content { padding: 26px 0 30px; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 25px; }
.gallery-filters[hidden], .gallery-item[hidden] { display: none; }
.gallery-filters button { min-height: 42px; padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: .86rem; transition: background .2s, color .2s; }
.gallery-filters button:hover { background: var(--blue-soft); }
.gallery-filters button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-image-link { position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 1.5; background: var(--blue-soft); }
.gallery-image-link > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-image-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6,26,45,.35); opacity: 0; transition: opacity .25s; }
.gallery-image-overlay > span { padding: 7px 24px; border: 1px solid rgba(255,255,255,.9); border-radius: 999px; color: #fff; font-size: .87rem; background: rgba(6,26,45,.1); }
.gallery-image-link:hover > img, .gallery-image-link:focus-visible > img { transform: scale(1.035); }
.gallery-image-link:hover .gallery-image-overlay, .gallery-image-link:focus-visible .gallery-image-overlay { opacity: 1; }
.gallery-result { margin-top: 19px; text-align: center; color: var(--muted); font-size: .85rem; }
.gallery-note { margin-top: 5px; text-align: center; color: var(--muted); font-size: .78rem; }
/* Transparent, image-fitted viewer: no white panel or stretched image. */
.gallery-viewer {
  position: fixed;
  inset: 0;
  width: fit-content;
  height: fit-content;
  max-width: calc(100% - 16px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(6px) scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}
.gallery-viewer::backdrop { background: rgba(3,13,24,.94); }
.gallery-viewer.is-visible { opacity: 1; transform: none; }
.gallery-viewer-inner { width: fit-content; max-width: calc(100vw - 48px); margin: auto; }
.gallery-viewer-image {
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: max(62px, calc(100vh - 184px));
  max-height: max(62px, calc(100dvh - 184px));
  margin-inline: auto;
  object-fit: contain;
  border-radius: 5px;
}
/* Include the close control in the centred layout so short viewports cannot clip it. */
.gallery-viewer-close {
  position: sticky;
  top: 4px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 8px auto;
  border: 1px solid #8192a4;
  border-radius: 50%;
  background: #09223a;
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
}
.gallery-viewer-bottom { text-align: center; padding-top: 12px; }
#gallery-viewer-caption { max-width: 65ch; margin-inline: auto; font-size: .85rem; }
.gallery-viewer-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 10px; }
.gallery-viewer-controls button { width: 44px; height: 44px; border: 1px solid #8192a4; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.gallery-viewer-controls button:hover, .gallery-viewer-close:hover { background: #214f83; }
.gallery-viewer-count { font-size: .8rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 13px; }
  .gallery-filters { gap: 7px; margin-bottom: 20px; }
  .gallery-filters button { padding-inline: 14px; font-size: .8rem; }
  .gallery-viewer-inner, .gallery-viewer-image { max-width: calc(100vw - 24px); }
  .gallery-viewer-image {
    max-height: max(62px, calc(100vh - 196px));
    max-height: max(62px, calc(100dvh - 196px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-viewer, .gallery-image-link > img, .gallery-image-overlay { transition: none; }
  .gallery-image-link:hover > img, .gallery-image-link:focus-visible > img { transform: none; }
}

/* Homepage scroll reveals | JS applies this only to off-screen elements.
 * Animations use opacity and translate, preserving layout and hover transforms. */
.home-reveal-pending { opacity: 0; }
@media (prefers-reduced-motion: reduce), print {
  .home-reveal-pending { opacity: 1 !important; }
}

/* Listing-page reveals | JS applies this only to off-screen targets on
 * Projects, Services, Team and FAQs. Animation timing lives in main.js. */
.page-reveal-pending { opacity: 0; }
@media (prefers-reduced-motion: reduce), print {
  .page-reveal-pending { opacity: 1 !important; }
}

/* MOBILE NAVIGATION | Left drawer. Keep these queries in sync with menu layout above.
 * Visibility is delayed on close so the full slide-out animation can finish. */
.mobile-nav-heading, .mobile-nav-backdrop { display: none; }
@media (max-width: 1200px) {
  html.mobile-nav-open { overflow: hidden; }
  html.mobile-nav-open .site-header { z-index: 1100; }
  .mobile-nav-backdrop { display: block; position: fixed; inset: 0; z-index: 100; background: rgba(6,26,45,.55); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 280ms ease, visibility 0s linear 280ms; }
  .site-nav { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 101; width: min(85vw, 360px); height: 100vh; height: 100dvh; padding: 0 20px 24px; border: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: 12px 0 35px rgba(6,26,45,.16); transform: translateX(-100%); visibility: hidden; pointer-events: none; transition: transform 280ms cubic-bezier(.22,.61,.36,1), visibility 0s linear 280ms; }
  .site-nav.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
  html.mobile-nav-open .mobile-nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .mobile-nav-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 2; flex-shrink: 0; min-height: 72px; padding: 12px 0; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-nav-heading strong { color: var(--navy); font-size: 1.15rem; }
  .mobile-nav-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }
  .mobile-nav-close:hover { background: var(--blue-soft); }
  .mobile-nav-close svg { width: 22px; height: 22px; }
  .site-nav > .nav-link, .site-nav > .nav-dropdown, .site-nav > .nav-cta { flex-shrink: 0; }
  .site-nav .nav-cta { margin-top: 20px; min-height: 48px; white-space: normal; font-size: .9rem; line-height: 1.4; }
  /* Leave the toggle's layout/display intact: JS uses display to detect mobile.
   * The drawer has its own close button while the original toggle is hidden. */
  html.mobile-nav-open .menu-toggle { visibility: hidden; pointer-events: none; }
  html.mobile-nav-open .floating-whatsapp { opacity: 0; visibility: hidden; pointer-events: none; }
  /* Current pages and their parent dropdowns remain identifiable without the
   * desktop underline. Inset highlight adds no width or layout movement. */
  .site-nav .nav-link.active,
  .site-nav .nav-link[aria-current="page"],
  .site-nav .nav-submenu a[aria-current="page"] {
    background: var(--blue-soft);
    color: var(--navy);
    box-shadow: inset 3px 0 0 var(--blue);
    border-radius: 4px;
  }
}
@media (max-width: 1200px) and (prefers-reduced-motion: reduce) {
  .site-nav, .mobile-nav-backdrop { transition: none; }
}

/* MOBILE HEALTH 01 | Shared tap targets and narrow-screen header/footer.
 * Link padding creates the hit area without enlarging text or icons. */
@media (max-width: 1200px) {
  .menu-toggle { width: 44px; height: 44px; flex: 0 0 44px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .brand .brand-wordmark { min-width: 0; }
  .brand-tagline { overflow-wrap: break-word; }
  .hero-arrow { width: 44px; height: 44px; }
  .footer-refined .footer-grid > * { min-width: 0; }
  .footer-refined .footer-links a {
    display: flex; align-items: center; min-height: 44px;
    padding-block: 8px; font-size: .875rem; line-height: 1.45;
    overflow-wrap: break-word;
  }
  .footer-refined .footer-links li + li { margin-top: 2px; }
  .footer-refined .footer-grid h2 { margin-bottom: 10px; }
  .footer-refined .footer-consultation { min-height: 44px; }
  .footer-refined .footer-contact-list a {
    display: inline-flex; align-items: center; min-height: 44px;
    max-width: 100%; padding-block: 8px; overflow-wrap: anywhere;
  }
  .footer-refined .footer-contact-list li > span { min-width: 0; }
  .footer-refined .footer-brand { max-width: 100%; }
  .footer-refined .footer-brand .brand-wordmark { min-width: 0; }
  .footer-refined .footer-brand small { white-space: normal; }
}
@media (max-width: 360px) {
  .brand .brand-wordmark small { white-space: normal; }
}

/* MOBILE HEALTH 02 | Readable project captions and footer links on narrow phones. */
@media (max-width: 430px) {
  /* Keep the cover and its View action as they are. Give supporting captions
   * their own space so they can wrap without covering or clipping the photo. */
  .project-page .project-gallery-grid > figure:not(:first-child) {
    aspect-ratio: auto;
  }
  .project-page .project-gallery-grid > figure:not(:first-child) > .project-gallery-link {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }
  .project-page .project-gallery-grid > figure:last-child:nth-child(even):not(:first-child) > .project-gallery-link {
    aspect-ratio: 2 / 1;
  }
  .project-page .project-gallery-grid > figure:not(:first-child) > figcaption {
    position: static;
    max-width: none;
    padding: 7px 9px;
    border-radius: 0;
    background: transparent;
    color: var(--navy);
    font-size: .8125rem;
    overflow-wrap: anywhere;
  }

  /* Retain two compact link columns, with room for long service names. */
  .footer-refined .footer-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 14px;
  }
  .footer-refined .footer-links a { overflow-wrap: anywhere; }
}

/* MOBILE HEALTH 03 | Keep landscape drawers and viewers usable on short screens. */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-nav-heading { min-height: 56px; padding-block: 6px; }
  .site-nav { scroll-padding-top: 56px; }
  .featured-lightbox {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .featured-lightbox-inner { height: auto; padding: 8px; }
  .featured-lightbox-header, .featured-lightbox-navigation { margin-block: 4px; }
  .featured-lightbox figcaption { margin-top: 4px; }
  .gallery-viewer-image {
    max-height: max(62px, calc(100vh - 176px));
    max-height: max(62px, calc(100dvh - 176px));
  }
  .gallery-viewer-close { margin-bottom: 6px; }
  .gallery-viewer-bottom { padding-top: 6px; }
  .gallery-viewer-controls { margin-top: 6px; }
}

/* Shared header search | Logic lives in js/main.js; searchable content in data/search-index.json. */
.site-search-trigger, .site-search-close {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.site-search-trigger svg, .site-search-close svg { width: 22px; height: 22px; }
.site-search-trigger:hover, .site-search-trigger:focus-visible { background: #fff7e7; border-color: var(--gold); }
.site-search-trigger-mobile { display: none; }
html.site-search-open, html.site-search-open body { overflow: hidden; }
.site-search-dialog {
  font: inherit;
  position: fixed;
  inset: var(--search-top, 100px) max(24px, calc((100vw - 1240px) / 2)) auto auto;
  display: none;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: 560px;
  max-width: calc(100% - 32px);
  max-height: var(--search-height, calc(100dvh - 120px));
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 20px 64px #061a2d38;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .24s cubic-bezier(.22,.61,.36,1);
}
.site-search-dialog[open] { display: grid; }
.site-search-dialog.is-visible { opacity: 1; transform: none; }
.site-search-dialog::backdrop { background: #061a2d70; opacity: 0; transition: opacity .2s ease; }
.site-search-dialog.is-visible::backdrop { opacity: 1; }
.site-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.site-search-heading h2 { font-size: 1.8rem; }
.site-search-close { flex: 0 0 44px; border-radius: 50%; background: var(--paper); }
.site-search-close:hover { background: var(--blue-soft); }
.site-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-search-field { display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid #aebed1; border-radius: 7px; }
.site-search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.site-search-field > svg { flex: 0 0 20px; width: 20px; height: 20px; }
.site-search-field input { min-width: 0; width: 100%; min-height: 48px; border: 0; padding: 10px 0; font: inherit; font-size: 16px; outline: none; color: var(--navy); background: transparent; }
.site-search-field input::placeholder { color: var(--muted); opacity: 1; }
.site-search-status { margin: 17px 0 9px; color: var(--muted); font-size: .875rem; }
.site-search-results { overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-gutter: stable; }
.site-search-list { margin: 0; padding: 0; }
.site-search-result { display: flex; gap: 14px; align-items: center; padding: 14px 5px; border-bottom: 1px solid var(--line); border-radius: 4px; }
.site-search-result:hover, .site-search-result:focus-visible { background: var(--paper); }
.site-search-result:focus-visible { outline-offset: -3px; }
.site-search-result img { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 6px; object-fit: cover; }
.site-search-result-copy { display: grid; gap: 2px; min-width: 0; }
.site-search-result-type { font-size: .75rem; font-weight: 650; color: #315c85; }
.site-search-result-title { font-size: 1rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.site-search-result-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.site-search-retry { justify-self: start; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--navy); cursor: pointer; }
.site-search-retry[hidden] { display: none; }
@media (min-width: 1201px) and (max-width: 1440px) {
  .header-inner { gap: 14px; }
  .site-nav { gap: 20px; }
  .nav-link { font-size: .8rem; }
  .nav-cta { font-size: .75rem; padding-inline: 12px; }
  .brand .brand-wordmark { max-width: 205px; }
}
@media (max-width: 1200px) {
  .site-search-trigger-desktop { display: none; }
  .site-search-trigger-mobile { display: inline-flex; margin-left: auto; }
  .header-inner { gap: 10px; }
  .site-search-dialog {
    inset: var(--search-top, 72px) 0 auto;
    width: 100%;
    max-width: 100%;
    height: var(--search-height, calc(100dvh - 72px));
    max-height: var(--search-height, calc(100dvh - 72px));
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .site-search-heading h2 { font-size: 1.6rem; }
  .site-search-heading { margin-bottom: 16px; }
  .site-search-field input { font-size: 16px; }
}
@media (max-width: 390px) {
  .header-inner { gap: 6px; }
  .brand-mark { height: 36px; }
  .brand-wordmark strong { font-size: 1.15rem; }
  .brand-wordmark small { font-size: .49rem; white-space: normal; }
  .brand-tagline { font-size: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-search-dialog, .site-search-trigger { transition: none; transform: none; }
}

[id^="search-"] { scroll-margin-top: 110px; }

@media (prefers-reduced-motion: reduce) {
  .site-search-dialog, .site-search-dialog::backdrop { transition: none; }
}
