/* Three compact service cards. One page per area. */
.site-header .nav-panel.v3-expertise-panel { inset:86px max(24px,calc((100vw - 1320px)/2 + 40px)) auto auto; width:min(1100px,calc(100vw - 48px)); max-width:calc(100vw - 48px); padding:12px; background:#f5f8f9; border:1px solid #d5e2e6; border-radius:18px; }
.v3-expertise-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:stretch; }
.v3-nav-card { min-width:0; display:flex; border:1px solid #d7e2e6; border-radius:12px; overflow:hidden; }
.v3-nav-card[data-active-group="true"] { border-color:#6aa8be; box-shadow:0 0 0 2px #6aa8be; }
.site-header .nav-panel .v3-nav-card-overview { position:relative; display:flex; flex-direction:column; align-items:stretch; width:100%; min-height:0; padding:18px 20px; gap:9px; color:#fff!important; border:0; border-radius:0; background:radial-gradient(ellipse at 100% 0%,#28596f,transparent 72%),#092c43; transition:background-color .18s ease; }
.site-header .nav-panel .v3-nav-card-safety .v3-nav-card-overview { background:radial-gradient(ellipse at 100% 0%,#2b577a,transparent 72%),#112c45; }
.site-header .nav-panel .v3-nav-card-engineering .v3-nav-card-overview { background:radial-gradient(ellipse at 100% 0%,#34676b,transparent 72%),#133c44; }
.site-header .nav-panel .v3-nav-card-overview:hover { background-color:#16465a; }
.site-header .nav-panel .v3-nav-card-overview:focus-visible { outline:3px solid #b5efff; outline-offset:-5px; }
.v3-nav-card-top { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.v3-nav-card-number { font-size:10px; letter-spacing:.14em; font-weight:500; color:#a7d9e7; }
.v3-nav-card-icon { display:flex; align-items:center; justify-content:center; width:25px; height:25px; color:#b9e9f3; }
.v3-nav-card-icon svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.v3-nav-card-title { color:#fff; min-height:48px; font-size:21px; font-weight:650; line-height:1.15; letter-spacing:-.03em; overflow-wrap:normal; }
.v3-nav-card-description { display:block; color:#c7dfe7; font-size:12px; line-height:1.5; }
.v3-nav-card-cta { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-top:1px; padding-top:9px; border-top:1px solid #a4cad936; color:#c8f4ff; font-size:11px; font-weight:650; }
.v3-nav-card-cta>span { font-size:19px; line-height:1; }
@media(min-width:1081px) {
 /* The backdrop stays below the header and catches outside clicks, which the
    existing dropdown handler uses to close the menu without following a link. */
 body:has(.v3-expertise-drop[open])::before { content:""; position:fixed; inset:0; z-index:999; background:#071f3126; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
}
@media(max-width:1080px) {
 /* A blurred header creates a containing block for fixed descendants.
    Release it while the mobile menu is open so the menu fills the viewport. */
 body.menu-open .site-header, body.menu-open .site-header.is-scrolled { position:fixed; inset:0 0 auto; background:#fff!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
 body.menu-open .site-header .primary-nav { position:fixed; inset:82px 0 0; height:calc(100dvh - 82px); box-sizing:border-box; background:#fff!important; }
 /* Expanded mobile navigation uses navy links on white. The three Portfolio
    cards keep their original colored surfaces, light text and focus states. */
 body.menu-open .site-header .brand>img { filter:none; }
 body.menu-open .site-header :is(.brand-description,.brand-industry,.brand-rail,.menu-toggle) { color:#09273e!important; }
 body.menu-open .site-header .menu-toggle { border-color:#b8cbd7; }
 body.menu-open .site-header .menu-toggle-lines i { background:#09273e!important; }
 body.menu-open .site-header .primary-nav>a,
 body.menu-open .site-header .nav-drop>summary,
 body.menu-open .site-header .nav-legal-options :is(a,button) { color:#09273e!important; border-color:#d5e2e6!important; }
 body.menu-open .site-header .primary-nav>a:not(.nav-contact)::after,
 body.menu-open .site-header .nav-drop>summary::after { background:#09273e; }
 body.menu-open .site-header .primary-nav>a:not(.nav-contact):hover,
 body.menu-open .site-header .nav-drop>summary:hover,
 body.menu-open .site-header .nav-legal-options :is(a,button):hover { background:#edf5f9; }
 body.menu-open .site-header .primary-nav .nav-contact { background:#edf5f9!important; border-color:#b8cbd7!important; }
 body.menu-open .site-header .primary-nav .nav-contact:hover { background:#e1eff7!important; }
 body.menu-open .site-header .language-switch { color:#09273e; background:#fff; border-color:#b8cbd7; }
 body.menu-open .site-header .language-switch :is(a,button) { color:#09273e; }
 body.menu-open .site-header .language-switch :is(a,button):hover { background:#edf5f9; }
 body.menu-open .site-header .language-switch :is(a,button)[aria-current="page"] { color:#09273e; background:#e1eff7; box-shadow:inset 0 0 0 1px #006bbb; }
 body.menu-open .site-header .language-switch-divider { background:#b8cbd7; }
 body.menu-open .site-header :is(a,button,summary):not(.v3-nav-card-overview):focus-visible { outline-color:#006bbb!important; }
 .site-header .nav-panel.v3-expertise-panel { position:static!important; inset:auto!important; width:100%!important; max-width:none; max-height:none; margin:10px 0 18px; padding:0; border:0!important; background:transparent!important; box-shadow:none; overflow:visible; }
 .v3-expertise-grid { grid-template-columns:1fr; gap:10px; }
 .site-header .nav-panel .v3-nav-card-overview { padding:17px 20px; gap:7px; }
 .v3-nav-card-title { min-height:0; padding-right:30px; font-size:22px; }
 .v3-nav-card-top { height:15px; }
 .v3-nav-card-icon { position:absolute; top:18px; right:20px; }
 .v3-nav-card-description { max-width:48ch; }
 .v3-nav-card-cta { margin-top:3px; padding-top:8px; }
}
@media(max-width:420px) { .site-header .nav-panel .v3-nav-card-overview { padding:16px 17px; } .v3-nav-card-title { font-size:20px; } .v3-nav-card-description { font-size:11px; } }
@media(prefers-reduced-motion:reduce) { .v3-expertise-panel * { animation:none!important; transition:none!important; } }
@media(forced-colors:active) { .v3-nav-card,.v3-nav-card-overview { border:1px solid CanvasText; } }
@media print { body:has(.v3-expertise-drop[open])::before { display:none; } }

/* A compact header while reading. Reuse the existing is-scrolled lifecycle;
   matching the negative margin keeps the page position unchanged. */
.site-header, .site-header.is-scrolled { height: auto; }
.site-header {
  transition: background .22s ease, box-shadow .22s ease, margin-bottom .22s ease;
}
.site-header .header-inner {
  transition: height .22s ease, min-height .22s ease;
}
.site-header .brand { width: auto; height: auto; flex-shrink: 0; }
.site-header .brand > img {
  width: 104px; height: 62px; max-width: none; padding: 6px 13px;
  object-fit: contain;
  transition: width .22s ease, height .22s ease, padding .22s ease, border-radius .22s ease;
}
body:not(.menu-open) .site-header.is-scrolled { margin-bottom: -67px; }
body:not(.menu-open) .site-header.is-scrolled .header-inner { height: 67px; min-height: 67px; }
body:not(.menu-open) .site-header.is-scrolled .brand { height: auto; width: auto; padding: 0; }
body:not(.menu-open) .site-header.is-scrolled .brand > img {
  width: 78px; height: 46px; padding: 4px 10px; border-radius: 7px;
}
@media(min-width:1081px) {
  .site-header.is-scrolled .nav-panel.v3-expertise-panel {
    top: 57px; max-height: calc(100dvh - 81px);
  }
}
@media(max-width:1080px) {
  .site-header .brand > img { width: 82px; height: 50px; padding: 5px 10px; }
  body:not(.menu-open) .site-header.is-scrolled { margin-bottom: -58px; }
  body:not(.menu-open) .site-header.is-scrolled .header-inner { height: 58px; min-height: 58px; }
  body:not(.menu-open) .site-header.is-scrolled .brand > img {
    width: 68px; height: 42px; padding: 4px 8px; border-radius: 6px;
  }
  body:not(.menu-open) .site-header.is-scrolled .brand { min-height: 44px; }
  .site-header .menu-toggle {
    min-width: 88px; min-height: 44px; padding: 8px 0 8px 12px;
    justify-content: flex-end; gap: 12px;
    border: 0; border-radius: 4px; box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }
  .site-header .menu-toggle-label { font-size: 11px; font-weight: 650; letter-spacing: .1em; }
  .site-header .menu-toggle-lines { position: relative; display: block; width: 28px; height: 28px; flex: 0 0 28px; }
  .site-header .menu-toggle-lines i { position: absolute; left: 0; top: 13px; height: 2px; border-radius: 2px; transform: translateY(-4px); }
  .site-header .menu-toggle-lines i:last-child { transform: translateY(4px); }
  body.menu-open .site-header .menu-toggle-lines i:first-child { transform: rotate(45deg); }
  body.menu-open .site-header .menu-toggle-lines i:last-child { transform: rotate(-45deg); }
  .site-header .menu-toggle:focus-visible { outline: 2px solid #9be5f4; outline-offset: 5px; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header, .site-header .header-inner, .site-header .brand > img { transition: none; }
}

/* Legal pages share the native disclosure behaviour used by Portfolio. */
.site-header .nav-drop.nav-legal-drop { position: relative; }
.site-header .nav-panel.nav-legal-panel {
  inset: calc(100% + 10px) 0 auto auto;
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 40px);
  padding: 8px;
  background: #fff;
  border: 1px solid #d5e2e6;
  border-radius: 12px;
}
.site-header .nav-legal-panel a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 12px;
  color: #17384f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 7px;
  transition: color 180ms ease, background-color 180ms ease;
}
.site-header .nav-legal-panel a::after { content: none; }
.site-header .nav-legal-icon { display: block; color: #006b96; transition: color 180ms ease; }
.site-header .nav-legal-arrow {
  display: block; color: #0078a7; opacity: .75;
  transition: transform 180ms ease, opacity 180ms ease;
}
.site-header .nav-legal-panel a:is(:hover, :focus-visible) .nav-legal-arrow {
  opacity: 1; transform: translateX(3px);
}
.site-header .nav-legal-panel a:is(:hover, :focus-visible, [aria-current="page"]) {
  color: #004b76;
  background: #edf5f9;
}
.site-header .nav-legal-panel a:focus-visible { outline: 2px solid #006bbb; outline-offset: -2px; }
@media(max-width:1080px) {
  .site-header .nav-panel.nav-legal-panel {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 8px 0 16px;
    padding: 4px;
    border-radius: 8px;
    box-shadow: none;
    background: #fff !important;
    border-color: #d5e2e6 !important;
  }
  .site-header .nav-panel.nav-legal-panel a {
    font-size: 12px;
    white-space: nowrap;
    color: #09273e !important;
    background: transparent !important;
  }
  .site-header .nav-panel.nav-legal-panel a:is(:hover, :focus-visible, [aria-current="page"]) {
    color: #004b76 !important;
    background: #edf5f9 !important;
  }
}
@media(prefers-reduced-motion:reduce) {
  .site-header .nav-legal-panel a,
  .site-header .nav-legal-icon,
  .site-header .nav-legal-arrow { transition: none; }
  .site-header .nav-legal-panel a:is(:hover, :focus-visible) .nav-legal-arrow { transform: none; }
}

.site-footer .footer-bottom button[data-site-privacy-settings] {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c4d8e3;
  font: inherit;
  cursor: pointer;
}
.site-footer .footer-bottom :is(a, button):hover { color: #fff; }
.site-footer .footer-bottom :is(a, button):focus-visible {
  outline: 2px solid #9be5f4;
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .site-footer .footer-bottom > div {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: start;
    justify-items: start;
    gap: 12px 18px;
  }
}
