/* Mobile first. Shared across every page; see docs/browser-testing.md. */
:root { --font-heading: "Playfair Display", Georgia, "Times New Roman", serif; --font-body: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --font-accent: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color-scheme: light; --ink: #191a37; --navy: #1c2f66; --muted: #34466b; --paper: #fff; --line: #dce2ef; --accent: rgb(203, 25, 57); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--font-body); overflow-wrap: anywhere; }
main { flex: 1; min-width: 0; }
img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; font-size: 1rem; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
/* Keep the no-script navigation fallback from painting before initialization.
   Reserve the controls' space so initialization cannot shift the header. */
.js-navigation:not(.navigation-ready) #primary-navigation .submenu { display: none; }
.js-navigation:not(.navigation-ready) .submenu-toggle[hidden] { display: inline-flex !important; visibility: hidden; }
@media (max-width: 74.999rem) {
  .js-navigation:not(.navigation-ready) .menu-toggle[hidden] { display: flex !important; visibility: hidden; }
}
.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
.site-header { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.5rem; font-weight: 750; text-decoration: none; letter-spacing: -.05em; }
.logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: 0; }
nav a { min-height: 44px; display: inline-flex; align-items: center; padding-block: .5rem; text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; font-weight: 650; }
nav a[aria-disabled="true"] { color: var(--muted); cursor: default; }
#primary-navigation { width: 100%; }
#primary-navigation ul { flex-direction: column; }
.menu-toggle { min-width: 44px; min-height: 44px; background: transparent; border: 0; border-radius: 0; padding: .625rem; cursor: pointer; }
.intro { padding-top: clamp(4rem, 12vw, 10rem); padding-bottom: clamp(4rem, 12vw, 10rem); }
h1 { max-width: 14ch; margin: 1rem 0; font-size: clamp(2.75rem, 8vw, 6rem); line-height: 1.05; letter-spacing: -.055em; }
.lead { max-width: 38rem; color: var(--muted); font-size: clamp(1.125rem, 2vw, 1.375rem); }
.skip-link { position: absolute; top: -10rem; left: 1rem; z-index: 10; background: var(--paper); padding: .75rem; }
.skip-link:focus { top: max(1rem, env(safe-area-inset-top, 0px)); }
@media (min-width: 48rem) {
  #primary-navigation { width: auto; }
  #primary-navigation ul { flex-direction: row; }
}
@media (hover: hover) and (pointer: fine) { nav a:not([aria-disabled="true"]):hover { text-decoration: underline; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Shared light grey header with the full-colour logo. --header-overhang is how far
   the tablet/desktop logo panel hangs below it, so hiding clears the panel too. */
:root { --accent: rgb(203, 25, 57); --ink: #191a37; --header-ink: #191a37; --menu-frost: #e8f4f8; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; }
/* Accents: navigation, buttons, eyebrows and labels use Roboto. */
button, label, .skip-link, .header-tagline, .primary-list a, .submenu a, .quote-link, .breadcrumb, .site-footer a, .footer-bottom, .back-to-top,
.page-btn, .closing-banner-btn, .hero-cta, .who-cta, .industries-cta, .industry-link, .case-more, .case-location, .case-study-link, .sv-case-more,
.quote-card-cta, .sv-tier-link, .sv-cta-phone, .history-pill,
.sv-eyebrow, .other-services-eyebrow, .industry-dialog-eyebrow, .mp-eyebrow, .onsite-eyebrow, .history-eyebrow, .cu-eyebrow,
.ty-eyebrow, .sa-eyebrow, .ep-eyebrow, .contact-eyebrow, .contact-label,
.cs-label, .sv-tier-label, .ra-option-label, .leadership-role, .ep-panel-label, .ep-card-label, .sv-timeline-label, .st-q-label, .sv-report-label,
.st-sheet-label, .sv-finding-meta { font-family: var(--font-accent); }
.site-header { --header-overhang: 0px; position: sticky; top: 0; z-index: 20; isolation: isolate; background: transparent; border: 0; color: var(--ink); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(246, 246, 246); box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s ease; pointer-events: none; }
.header-inner { width: 100%; max-width: 160rem; margin-inline: auto; padding: 1.25rem max(1.25rem, env(safe-area-inset-right, 0px)) 1.25rem max(1.25rem, env(safe-area-inset-left, 0px)); gap: 1rem; }
.header-logo { flex: 0 1 26.6rem; min-width: 0; width: calc(100% - 4rem); }
.header-logo img { width: 100%; height: auto; }
.header-tagline { display: none; }
.menu-icon { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: 27px; transition: transform .46s cubic-bezier(.22, 1, .36, 1); }
.menu-icon span { height: 2px; width: 27px; background: var(--accent); border-radius: 2px; transition: transform .36s cubic-bezier(.22, 1, .36, 1), width .3s ease, opacity .2s ease; }
.menu-icon span:nth-child(2) { width: 20px; }
.menu-icon span:last-child { width: 13px; }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(180deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; transform: translateX(8px) scaleX(0); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { width: 27px; transform: translateY(-8px) rotate(-45deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#primary-navigation { width: 100%; }
#primary-navigation .primary-list { flex-direction: column; gap: .35rem; }
#primary-navigation a { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
#primary-navigation a[aria-disabled="true"]:not(.quote-link) { color: inherit; }
.nav-parent { display: flex; align-items: center; justify-content: space-between; gap: .15rem; }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .5rem; border: 0; background: transparent; cursor: pointer; }
.chevron { width: 0; height: 0; border-top: 6px solid var(--accent); border-right: 5px solid transparent; border-left: 5px solid transparent; transition: transform .2s ease; }
.submenu-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
#primary-navigation .submenu .chevron { border-top: 5px solid transparent; border-right: 0; border-bottom: 5px solid transparent; border-left: 6px solid var(--accent); }
#primary-navigation .submenu .submenu-toggle[aria-expanded="true"] .chevron { transform: rotate(90deg); }
#primary-navigation .submenu { display: flex; flex-direction: column; gap: 0; margin: .25rem 0 .5rem; padding: .25rem 0; background: #fff; border-top: .3125rem solid var(--accent); box-shadow: 0 10px 24px rgb(18 22 42 / .12); color: var(--ink); }
#primary-navigation .submenu a { position: relative; padding: .6rem 1rem; color: var(--ink); font-size: 1rem; line-height: 1.3; letter-spacing: 0; text-transform: none; font-weight: 700; text-decoration: none; }
#primary-navigation .submenu .submenu-toggle { margin-right: .25rem; }
#primary-navigation .submenu .nav-group:hover > .nav-parent > a, #primary-navigation .submenu .nav-parent:has(> .submenu-toggle[aria-expanded="true"]) > a, #primary-navigation .submenu a:hover, #primary-navigation .submenu a:focus-visible, #primary-navigation .submenu a[aria-current="page"] { color: var(--accent); text-decoration: none; }
#primary-navigation .quote-link { display: inline-flex; justify-content: center; min-height: 48px; padding: .8rem 1.65rem; border-radius: 999px; background: rgb(203, 25, 57); color: #fff; font-size: .9375rem; letter-spacing: .02em; text-transform: none; font-weight: 600; text-decoration: none; }
.quote-item { margin-top: .65rem; }
@media (min-width: 48rem) { #primary-navigation { width: 100%; } #primary-navigation ul { flex-direction: column; } }
@media (min-width: 75rem) {
  .header-inner { flex-wrap: nowrap; padding-block: 2rem; padding-left: max(2.75rem, env(safe-area-inset-left, 0px)); padding-right: max(2.75rem, env(safe-area-inset-right, 0px)); gap: 2rem; }
  .header-logo { flex-basis: clamp(13.47rem, 17.44vw, 19.82rem); width: auto; }
  #primary-navigation { width: auto; margin-left: auto; }
  #primary-navigation .primary-list { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem clamp(.75rem, 3.2vw - 1.625rem, 2.5rem); }
  #primary-navigation .primary-list > li > a:not(.quote-link), #primary-navigation .primary-list > li > .nav-parent > a { font-size: .9375rem; }
  .nav-group { position: relative; }
  .submenu-toggle { min-width: 28px; }
  .js-navigation #primary-navigation .submenu { position: absolute; top: calc(100% + 1.4rem); left: 0; min-width: 22rem; margin: 0; padding: .5rem 0; box-shadow: 0 18px 40px rgb(12 16 30 / .2); }
  /* Red pyramid centred under the open link, resting on the panel's red rule. */
  .js-navigation #primary-navigation .primary-list > .nav-group > .nav-parent > a { position: relative; }
  .js-navigation.navigation-ready #primary-navigation .primary-list > .nav-group > .nav-parent:has(> .submenu-toggle[aria-expanded="true"]):has(+ .submenu:not([hidden])) > a::after { content: ""; position: absolute; top: calc(100% + 1px); left: 50%; width: 3.5rem; height: 1.4rem; background: linear-gradient(90deg, #e2425e 0%, rgb(203, 25, 57) 49.5%, #8f0f27 50.5%, #b3152f 100%); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: translateX(-50%); pointer-events: none; }
  /* Invisible bridge keeps the pointer path from link to panel continuous. */
  .js-navigation #primary-navigation .primary-list > .nav-group > .submenu::after { content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: calc(1.4rem + .3125rem + 2px); }
  .js-navigation #primary-navigation .primary-list > .nav-group > .nav-parent .chevron { transform: none; }
  #primary-navigation .submenu a { display: flex; padding: .95rem 1.75rem; font-size: 1.0625rem; }
  #primary-navigation .submenu .submenu-toggle { margin-right: .75rem; }
  .quote-item { margin-top: 0; }
}

/* Keep the complete photograph visible alongside the introduction. */
.who-section { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); max-width: 100rem; margin-inline: auto; padding: clamp(2.5rem, 5vw, 5rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(2.5rem, 5vw, 5rem) max(1.25rem, env(safe-area-inset-left, 0px)); background: #fff; color: var(--ink); }
.who-media { min-width: 0; }
.who-media img { display: block; width: 100%; height: auto; }
.who-content { min-width: 0; }
.who-copy { min-width: 0; max-width: 52ch; margin-inline: auto; }
.who-copy h2 { margin: 0 0 2rem; font-size: clamp(2rem, 3.2vw, 3.5rem); line-height: 1.1; letter-spacing: -.035em; }
.who-copy p { margin: 0 0 1.25rem; font-size: 1.125rem; line-height: 1.65; }
.who-copy p:last-of-type { margin-bottom: 2rem; }
.who-cta { display: inline-flex; align-items: center; min-height: 48px; padding-block: .6rem; border-bottom: 2px solid rgb(203, 25, 57); color: rgb(203, 25, 57); font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
@media (min-width: 75rem) {
  .who-section { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); padding-inline: max(2.75rem, env(safe-area-inset-left, 0px)) max(2.75rem, env(safe-area-inset-right, 0px)); }
}

/* Headline set directly on the hero photograph, over a bottom scrim only. */
.has-hero .site-header { position: fixed; inset: 0 0 auto; width: 100%; }
.has-hero .skip-link { z-index: 30; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 38rem; min-height: max(38rem, 82svh); padding: 13rem max(1.25rem, env(safe-area-inset-right, 0px)) 3rem max(1.25rem, env(safe-area-inset-left, 0px)); background: #191a37; color: #fff; }
/* Bottom scrim measured in rem, so it covers the copy at any hero height. */
.hero::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 36rem; background: linear-gradient(180deg, rgb(18 20 23 / 0) 0%, rgb(18 20 23 / .34) 12%, rgb(17 19 22 / .62) 28%, rgb(16 18 21 / .78) 54%, rgb(15 17 20 / .88) 100%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: 52rem; padding: 0; text-align: left; }
.hero h1 { max-width: 24ch; margin: 0; font-size: clamp(2.25rem, 3vw, 3.25rem); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
.hero-description { max-width: 52ch; margin: 1.25rem 0 2rem; font-size: 1.125rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 32rem; }
.hero-cta { display: inline-flex; flex: 1 1 13rem; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: .8rem 1rem; border: 1px solid transparent; background: rgb(203, 25, 57); border-radius: 999px; color: #fff; font-weight: 600; text-align: center; text-decoration: none; }
.hero-cta-call { border-color: rgb(255 255 255 / .75); background: transparent; }
@media (hover: hover) {
  .hero-cta:hover { background: rgb(180, 22, 50); text-decoration: none; }
  .hero-cta-call:hover { background: #fff; border-color: #fff; color: #000; }
}
.hero-cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
@media (max-width: 47.999rem) {
  .hero-media img { object-position: 22% center; }
}
@media (min-width: 48rem) {
  /* Start the photo where the header ends (109px tall here, 141px from 75rem), so no face sits beneath it. */
  .hero-media img { object-position: 58% 6.8125rem; }
}
.site-header #primary-navigation { color: var(--ink); }
@media (max-width: 74.999rem) {
  .site-header #primary-navigation { color: var(--ink); background: var(--menu-frost); padding: 1rem; max-height: 65vh; max-height: 65svh; overflow-y: auto; }
}
@media (min-width: 64rem) {
  .hero { min-height: clamp(36rem, 46vw, 50rem); align-items: flex-end; padding: 10rem 2.75rem 4rem max(2.75rem, env(safe-area-inset-left, 0px)); }
  .hero-media img { object-position: center 6.8125rem; }
}
/* Desktop: a taller photo, scaled with the width and at least 85% of the window
   height, but never taller than the window itself. */
@media (min-width: 75rem) {
  .hero { min-height: min(max(clamp(40rem, 53vw, 60rem), 85vh), 100vh); min-height: min(max(clamp(40rem, 53vw, 60rem), 85svh), 100svh); }
  .hero-media img { object-position: center 8.8125rem; }
}

/* Shared footer: white with soft blue glows that drift slowly off-centre. */
.site-footer { --footer-blue: 44 110 235; position: relative; isolation: isolate; overflow: hidden; background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
.footer-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer-glow span { position: absolute; border-radius: 50%; will-change: transform; animation: footer-drift-a 28s ease-in-out infinite alternate; }
.footer-glow span:nth-child(1) { top: -45%; left: -15%; width: max(34rem, 60vw); aspect-ratio: 1; background: radial-gradient(closest-side, rgb(var(--footer-blue) / .38), rgb(var(--footer-blue) / .16) 55%, rgb(var(--footer-blue) / 0)); }
.footer-glow span:nth-child(2) { top: 5%; right: -20%; width: max(30rem, 48vw); aspect-ratio: 1; background: radial-gradient(closest-side, rgb(120 175 255 / .55), rgb(120 175 255 / 0)); animation-name: footer-drift-b; animation-duration: 34s; }
.footer-glow span:nth-child(3) { bottom: -55%; left: 30%; width: max(26rem, 40vw); aspect-ratio: 1; background: radial-gradient(closest-side, rgb(20 70 190 / .3), rgb(20 70 190 / 0)); animation-name: footer-drift-c; animation-duration: 40s; }
@keyframes footer-drift-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18%, 12%) scale(1.12); } 100% { transform: translate(34%, -4%) scale(.95); } }
@keyframes footer-drift-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-22%, 18%) scale(.9); } 100% { transform: translate(-40%, -8%) scale(1.1); } }
@keyframes footer-drift-c { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30%, -20%) scale(1.15); } 100% { transform: translate(25%, -30%) scale(1); } }
.footer-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; max-width: 100rem; margin-inline: auto; padding: clamp(3rem, 6vw, 5.5rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(2.5rem, 5vw, 4.5rem) max(1.25rem, env(safe-area-inset-left, 0px)); }
.footer-brand, .footer-contact { grid-column: 1 / -1; min-width: 0; }
.footer-logo { display: inline-block; width: min(100%, 17rem); }
.footer-logo img { width: 100%; height: auto; }
.footer-brand p { max-width: 22rem; margin: 1rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.footer-column { min-width: 0; }
.footer-column h2 { margin: 0 0 .75rem; color: var(--ink); font-size: 1.125rem; line-height: 1.3; }
.footer-column ul { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer-column li { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.footer-column a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .35rem; color: var(--ink); font-size: .9375rem; line-height: 1.4; text-decoration: none; }
.site-footer a[aria-disabled="true"] { color: var(--ink); }
.footer-column a[aria-current="page"] { color: var(--accent); }
.footer-contact li { padding-block: .35rem; }
.footer-contact li:has(a) { padding-block: 0; }
.footer-contact address { font-style: normal; }
.footer-phone { font-weight: 700; }
.site-footer a.footer-quote { margin-top: .5rem; padding-inline: 1.25rem; background: var(--accent); color: #fff; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8125rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; max-width: 100rem; margin-inline: auto; padding: .75rem max(1.25rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px)); border-top: 1px solid rgb(25 26 55 / .14); }
.footer-bottom ul { gap: 0 1.25rem; }
.footer-bottom a { min-height: 44px; color: var(--muted); font-size: .875rem; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .875rem; }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:not([aria-disabled="true"]):not(.footer-quote):hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
  .site-footer a.footer-quote:not([aria-disabled="true"]):hover { background: #a8142f; color: #fff; }
}
@media (min-width: 40rem) { .footer-contact { grid-column: auto; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 64rem) {
  .footer-main { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .footer-brand { grid-column: auto; }
  .footer-column { text-align: right; }
  .footer-column ul { align-items: flex-end; }
}
@media (min-width: 75rem) {
  .footer-main, .footer-bottom { padding-inline: max(2.75rem, env(safe-area-inset-left, 0px)) max(2.75rem, env(safe-area-inset-right, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .footer-glow span { animation: none; } }

/* Scroll-aware header and shared, safe-area-aware return control. */
.site-header { transition: transform .3s ease; }
.site-header.is-scrolled::before { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgb(12 16 30 / .08); }
.site-header.is-hidden { transform: translateY(calc(-100% - var(--header-overhang) - 2rem)); pointer-events: none; }
.back-to-top { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 25; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgb(203, 25, 57); color: #fff; border: 1px solid rgb(255 255 255 / .3); box-shadow: 0 4px 18px rgb(0 0 0 / .25); font-size: 1.75rem; line-height: 1; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.back-to-top span { transition: transform .25s ease; }
.back-to-top:active { transform: scale(.94); }
/* Keep the copyright clear of the fixed back-to-top control. */
.footer-bottom { padding-right: max(5rem, env(safe-area-inset-right, 0px)); }
@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover { transform: translateY(-3px); box-shadow: 0 7px 22px rgb(0 0 0 / .3); }
  .back-to-top:hover span { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header::before, .back-to-top, .back-to-top span { transition: none; }
  .back-to-top:hover, .back-to-top:hover span, .back-to-top:active { transform: none; }
}

/* Keep the header in flow while the mobile panel animates independently. */
@media (max-width: 74.999rem) {
  /* Reserve the menu button's space before shrinking the logo; never wrap it. */
  .js-navigation .header-inner { flex-wrap: nowrap; }
  .header-logo { flex: 0 1 21rem; width: auto; }
  html.mobile-menu-active, .mobile-menu-active body { overflow: hidden; overscroll-behavior: none; }
  .mobile-menu-active .site-header { transform: none; pointer-events: auto; background: transparent; z-index: 40; }
  .mobile-menu-active .site-header::before { opacity: 0; }
  /* Pin the header so the X never moves while the drawer scrolls; the logo stays beneath the scrim and drawer. */
  .mobile-menu-active .site-header { position: fixed; inset: 0 0 auto; width: 100%; }
  .mobile-menu-active body { position: fixed; inset: var(--menu-scroll-lock, 0) 0 auto; width: 100%; }
  .js-navigation .menu-toggle { position: relative; z-index: 3; flex: 0 0 48px; width: 48px; min-width: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  /* Drawer slides in from the right; the page behind it blurs under a scrim. */
  /* Its top border sits outside the scrolling area, so services never slide beneath the X. */
  .js-navigation .site-header #primary-navigation { position: fixed; z-index: 2; inset: 0 0 0 auto; width: min(22rem, 86vw); height: 100vh; height: 100dvh; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: .5rem max(1.5rem, env(safe-area-inset-right, 0px)) max(2rem, env(safe-area-inset-bottom, 0px)) 1.5rem; border-top: max(5.5rem, calc(env(safe-area-inset-top, 0px) + 4.5rem)) solid var(--menu-frost); background: var(--menu-frost); box-shadow: -18px 0 42px rgb(8 12 20 / .32); transform: translateX(100%); transition: transform .42s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
  .mobile-menu-open .site-header #primary-navigation { transform: translateX(0); pointer-events: auto; }
  .js-navigation .site-header::after { content: ""; position: fixed; z-index: 1; inset: 0; display: none; background: rgb(10 14 22 / .34); -webkit-backdrop-filter: blur(10px) saturate(.88); backdrop-filter: blur(10px) saturate(.88); opacity: 0; transition: opacity .38s ease; pointer-events: none; }
  .mobile-menu-active .site-header::after { display: block; pointer-events: auto; }
  .mobile-menu-open .site-header::after { opacity: 1; }
  /* Without backdrop-filter the scrim leans on opacity alone to separate layers. */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .js-navigation .site-header::after { background: rgb(10 14 22 / .66); }
  }
  .js-navigation #primary-navigation .primary-list { gap: .35rem; }
  .js-navigation #primary-navigation .primary-list > li { opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .22s ease; }
  .mobile-menu-open #primary-navigation .primary-list > li { opacity: 1; transform: translateY(0); transition-duration: .28s; transition-delay: calc(var(--menu-order, 0) * 35ms); }
  .js-navigation #primary-navigation .primary-list > li > a:not(.quote-link), .js-navigation #primary-navigation .primary-list > li > .nav-parent > a { font-size: clamp(1.0625rem, 3.6vw, 1.25rem); }
  .js-navigation #primary-navigation .submenu a { font-size: 1rem; }
  .js-navigation #primary-navigation .quote-link { margin-top: .75rem; }
  .mobile-menu-active .back-to-top { visibility: hidden; }
}
/* Tablets size the logo alongside desktop; phones show it at 0.6x the space beside the menu button. */
@media (min-width: 48rem) and (max-width: 74.999rem) {
  .header-logo { flex: 0 1 11.9rem; }
}
@media (max-width: 47.999rem) {
  .header-logo { flex-basis: min(12.6rem, calc((100% - 48px - 1rem) * .6)); }
}
/* Tablets and desktops: the logo and tagline sit centred in a slanted white
   panel that hangs below the header over a red strip. --panel-w centres the
   --logo-box in the panel: 2 x (inline padding + box / 2) + half the slant. */
@media (min-width: 48rem) {
  .site-header { --logo-box: 18rem; --logo-img: 14rem; --panel-w: 22rem; --panel-drop: 1.5rem; --strip: 1.25rem; --header-overhang: calc(var(--panel-drop) + var(--strip)); }
  .header-inner { position: relative; }
  .header-inner::before, .header-inner::after { content: ""; position: absolute; top: 0; pointer-events: none; }
  .header-inner::before { z-index: -1; bottom: calc(-1 * var(--panel-drop)); left: -4rem; width: calc(var(--panel-w) + 4rem); background: #fff; border-bottom-right-radius: 1.25rem; transform: skewX(-20deg); transform-origin: top; }
  .header-inner::after { z-index: -2; bottom: calc(-1 * var(--header-overhang)); left: 0; width: calc(var(--panel-w) * .7); background: var(--accent); border-bottom-right-radius: 1.25rem; }
  .header-logo { flex: 0 0 var(--logo-box); width: var(--logo-box); flex-direction: column; gap: .45rem; transform: translateY(calc(var(--panel-drop) / 2)); }
  .header-logo img { width: var(--logo-img); }
  .header-logo .header-tagline { display: block; color: #000; font-size: .75rem; font-weight: 700; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
}
@media (min-width: 75rem) {
  .site-header { --logo-box: 19rem; --logo-img: 16rem; --panel-w: 26.5rem; --panel-drop: 2.25rem; --strip: 1.75rem; }
  .header-logo .header-tagline { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-icon, .menu-icon span, .js-navigation .site-header #primary-navigation, .js-navigation .site-header::after, .js-navigation #primary-navigation .primary-list > li { transition: none; }
}

/* Third-level services: an inline mobile accordion and desktop side flyout. */
#primary-navigation .submenu .nav-parent > a { flex: 1; min-width: 0; }
#primary-navigation .submenu .submenu { margin: 0 0 .5rem 1rem; padding: 0 0 0 .5rem; border-top: 0; border-left: 2px solid rgb(203, 25, 57); box-shadow: none; }
#primary-navigation .submenu .submenu a { font-weight: 400; }
@media (min-width: 75rem) {
  .js-navigation #primary-navigation .submenu > .nav-group { position: static; }
  .js-navigation #primary-navigation .submenu > .nav-group > .nav-parent { position: relative; }
  .js-navigation #primary-navigation .submenu > .nav-group > .nav-parent::before,
  .js-navigation #primary-navigation .submenu > .nav-group > .nav-parent::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc(.75rem + 2px); }
  .js-navigation #primary-navigation .submenu > .nav-group > .nav-parent::before { right: 100%; }
  .js-navigation #primary-navigation .submenu > .nav-group > .nav-parent::after { left: 100%; }

  .js-navigation #primary-navigation .submenu .submenu { top: 0; left: 100%; width: 19rem; min-width: 0; margin: 0; padding: .5rem 0; border-left: 0; box-shadow: 0 18px 40px rgb(12 16 30 / .2); max-height: calc(100vh - 12rem); max-height: calc(100svh - 12rem); overflow-y: auto; overscroll-behavior: contain; }
  .js-navigation #primary-navigation .submenu .submenu.submenu-align-left { left: auto; right: 100%; }
  #primary-navigation .submenu .submenu a { font-weight: 700; }
  /* Flyout carets keep pointing toward the panel they open. */
  #primary-navigation .submenu .submenu-toggle[aria-expanded="true"] .chevron { transform: none; }
  .js-navigation #primary-navigation .submenu .nav-parent:has(+ .submenu-align-left) .chevron { transform: rotate(180deg); }
}

/* Client logos retain their original colors and proportions. */
.clients-section { background: #f5f7fa; padding-block: 1.5rem; }
.clients-section h2 { margin: 0 0 1rem; color: var(--ink); font-size: 1.125rem; font-weight: 400; line-height: 1.4; letter-spacing: .08em; text-align: center; }
.clients-inner { max-width: 88rem; margin-inline: auto; padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)); }
.clients-carousel { --client-gap: 1.5rem; min-width: 0; }
.clients-row { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; border-radius: .35rem; }
.clients-track { display: flex; width: max-content; }
.clients-list { display: flex; flex-shrink: 0; gap: var(--client-gap); padding: .5rem var(--client-gap) .75rem 0; margin: 0; list-style: none; }
/* White cards absorb the white backgrounds baked into many logo files and lift every logo off the grey band. */
.client-tile { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: clamp(10rem, 14vw, 12rem); height: 6.5rem; padding: 1rem 1.25rem; border: 1px solid rgb(14 29 63 / .06); border-radius: .5rem; background: #fff; box-shadow: 0 4px 14px rgb(14 29 63 / .07); }
.client-tile img { width: 100%; height: 100%; object-fit: contain; }
.clients-duplicate { display: none; }
.clients-animated .clients-row { overflow-x: hidden; }
.clients-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.clients-animated .clients-row:focus { overflow-x: auto; }
.clients-animated .clients-row:focus .clients-track { animation: none; }
.clients-animated .clients-row:focus .clients-duplicate { display: none; }
.clients-animated .clients-duplicate { display: flex; }
.clients-animated .clients-track { animation: clients-drift 300s linear infinite; }
.clients-paused .clients-track, .clients-carousel:focus-within .clients-track { animation-play-state: paused; }
@media (hover: hover) { .clients-carousel:hover .clients-track { animation-play-state: paused; } }
@keyframes clients-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .clients-animated .clients-track { animation: none; }
  .clients-animated .clients-row { overflow-x: auto; }
  .clients-animated .clients-duplicate { display: none; }
}

/* Breadcrumb trail shared by interior pages. */
.breadcrumb { padding-block: .75rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.breadcrumb li { display: flex; align-items: center; gap: .75rem; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); }
.breadcrumb a { color: var(--accent); text-transform: none; }

/* Interior page banner: the title in a navy panel over the blue gradient
   backdrop (as on Request a Quote). Shared by Leadership and Case Studies. */
.page-banner { background: #191a37 url("../images/background.jpg") center / cover no-repeat; }
.page-banner-inner { display: flex; align-items: center; min-height: clamp(18rem, 38vw, 33rem); padding-block: 3rem; }
.page-banner h1 { width: fit-content; max-width: 100%; margin: 0; padding: 1.25rem 1.5rem; background: rgb(25 26 55 / .88); color: #fff; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.15; letter-spacing: -.025em; }
.page-banner h1 span { display: block; margin-bottom: .25rem; font-family: var(--font-accent); font-size: .75em; font-weight: 400; letter-spacing: 0; }
/* Compact banner (History, Leadership, Contact Us, Case Studies): ends where
   the Request a Quote hero ends at each width, measured from the top of the
   page. */
.page-banner-compact .page-banner-inner { min-height: 11.75rem; padding-block: 2rem; }
@media (min-width: 48rem) { .page-banner-compact .page-banner-inner { min-height: calc(9.06rem + 10.9vw); } }
@media (min-width: 75rem) { .page-banner-compact .page-banner-inner { min-height: calc(17.9rem + 3.5vw); } }

/* Pill buttons shared by interior pages: red for the main action, outlined in
   navy for the secondary one (usually the phone call). */
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .85rem 2.1rem; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font-size: clamp(1.0625rem, 1.15vw, 1.125rem); font-weight: 700; text-align: center; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.page-btn-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .page-btn:hover { border-color: #a5142e; background: #a5142e; }
  .page-btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .page-btn { transition: none; } }

/* Security personnel: officer cutouts standing in front of slanted navy panels,
   in a scroll-snap row paged by dots (one card per page, three on wide screens).
   The viewport's padding, cancelled by a negative margin, leaves room for the
   hover zoom and focus ring that its overflow would otherwise clip. */
.personnel-section { --personnel-gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(3rem, 6vw, 6rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(3rem, 6vw, 5.5rem) max(1.25rem, env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, #fff 0%, #f3f5f9 100%); color: var(--ink); }
.personnel-intro { max-width: 48rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.personnel-intro h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -.03em; }
.personnel-carousel { position: relative; max-width: 26rem; margin: 0 auto; container-type: inline-size; }
/* White arrow boxes float over the row's edges, centred on the photos (60% of a
   card's width down, as the figure is 5:6), so the cards keep their size. They
   sit beside the lone card on tablets, and just inside the row elsewhere until
   the section's side padding can hold half a box. */
.personnel-arrow { --card: 100cqi; position: absolute; top: calc(var(--card) * .6); z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: .25rem; background: #fff; box-shadow: 0 6px 18px rgb(18 22 42 / .18); color: var(--accent); cursor: pointer; transform: translateY(-50%); transition: background-color .2s ease, color .2s ease; }
.personnel-arrow[hidden] { display: none; }
.personnel-arrow svg { width: 26px; height: 26px; }
.personnel-prev { left: .5rem; }
.personnel-prev svg { transform: scaleX(-1); }
.personnel-next { right: .5rem; }
.personnel-arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (min-width: 48rem) and (max-width: 63.999rem) {
  .personnel-prev { left: calc(-48px - 1.5rem); }
  .personnel-next { right: calc(-48px - 1.5rem); }
}
.personnel-viewport { margin: -1.25rem -.75rem; padding: 1.25rem .75rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: .75rem; scrollbar-width: none; }
.personnel-viewport::-webkit-scrollbar { display: none; }
.personnel-list { display: flex; gap: var(--personnel-gap); margin: 0; padding: 0; list-style: none; }
.personnel-card { position: relative; display: flex; flex: 0 0 100%; min-width: 0; flex-direction: column; align-items: center; text-align: center; scroll-snap-align: start; scroll-snap-stop: always; }
.personnel-figure { position: relative; width: 100%; aspect-ratio: 5 / 6; margin-bottom: 1.5rem; }
/* The slanted panel sits to the right so each officer overlaps its leading edge. */
.personnel-figure::before, .personnel-figure::after { content: ""; position: absolute; top: 0; bottom: 0; }
.personnel-figure::before { left: 20%; right: 1rem; background: repeating-linear-gradient(115deg, rgb(255 255 255 / .04) 0 2px, transparent 2px 14px), linear-gradient(160deg, #34466b 0%, #1f2747 55%, #121631 100%); clip-path: polygon(34% 0, 100% 0, 66% 100%, 0 100%); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.personnel-figure::after { left: calc(20% + (80% - 1rem) * .66); right: 0; background: var(--accent); clip-path: polygon(calc(100% - .4rem) 0, 100% 0, 1rem 100%, .6rem 100%); }
.personnel-figure img { position: absolute; bottom: 0; left: 2%; z-index: 1; width: auto; height: 100%; max-width: 80%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 18px 24px rgb(18 22 42 / .22)); transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
/* Narrow cutouts share the full-width officers' centre line (2% + 80% / 2), straddling the panel's leading edge. */
.personnel-figure-centered img { left: 42%; transform: translateX(-50%); }
.personnel-title { margin: 0 0 .5rem; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; }
.personnel-title a { color: inherit; text-decoration: none; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .25em; }
/* Stretch the title link across the whole card so the image is clickable too. */
.personnel-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.personnel-copy { max-width: 22rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.personnel-title a:focus-visible { outline: none; text-decoration: underline; }
.personnel-title a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .personnel-card:hover .personnel-title a { text-decoration: underline; }
  .personnel-card:hover .personnel-figure img { transform: scale(1.03); }
  .personnel-card:hover .personnel-figure-centered img { transform: translateX(-50%) scale(1.03); }
  .personnel-card:hover .personnel-figure::before { transform: translateX(.5rem); }
  .personnel-arrow:hover { background: var(--accent); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .personnel-figure::before, .personnel-figure img, .personnel-arrow { transition: none; } }
@media (min-width: 64rem) {
  .personnel-carousel { max-width: 88rem; }
  .personnel-arrow { --card: calc((100cqi - var(--personnel-gap) * 2) / 3); }
  .personnel-card { flex-basis: calc((100% - var(--personnel-gap) * 2) / 3); scroll-snap-align: none; }
  .personnel-card:nth-child(3n + 1) { scroll-snap-align: start; }
}
@media (min-width: 75rem) {
  .personnel-section { padding-inline: max(2.75rem, env(safe-area-inset-left, 0px)) max(2.75rem, env(safe-area-inset-right, 0px)); }
  .personnel-prev { left: -24px; }
  .personnel-next { right: -24px; }
}

/* Proven expertise: centered intro with a responsive industry card grid. */
.industries-section { --industry-placeholder: #26314f; max-width: 100rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 6rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(3rem, 6vw, 6rem) max(1.25rem, env(safe-area-inset-left, 0px)); background: #fff; color: var(--ink); }
.industries-intro { max-width: 60rem; margin-inline: auto; text-align: center; }
.industries-intro h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -.03em; }
.industries-lead { margin: 0 auto 1rem; max-width: 52rem; font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.6; }
.industries-lead:last-of-type { margin-bottom: 2.25rem; }
.industries-cta { display: inline-flex; align-items: center; gap: 1rem; min-height: 48px; color: rgb(203, 25, 57); font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.industries-cta-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: rgb(203, 25, 57); color: #fff; font-size: 1.125rem; line-height: 1; }
.industries-cta-label { min-width: 0; text-align: left; }
.industry-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 3.5rem); max-width: 88rem; margin: clamp(2.5rem, 6vw, 5rem) auto 0; padding: 0; list-style: none; }
.industry-card { display: flex; min-width: 0; flex-direction: column; }
.industry-media { display: block; width: 100%; min-height: 8rem; aspect-ratio: 16 / 9; margin-bottom: 1.5rem; background: var(--industry-placeholder); object-fit: cover; }
/* Keep subjects whose heads sit near the top edge from being cropped. */
.industry-media-top { object-position: center 15%; }
.industry-media-low { object-position: center 70%; }
.industry-media-bottom { object-position: center bottom; }
.industry-title { margin: 0 0 1rem; color: var(--navy); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.industry-copy { margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.6; }
.industry-link { display: inline-flex; align-items: center; align-self: flex-start; gap: .5rem; min-height: 44px; margin-top: auto; color: var(--navy); font-size: 1rem; font-weight: 700; text-decoration: none; }
.industry-link-label { text-underline-offset: .2em; }
.industry-arrow { display: inline-block; color: rgb(203, 25, 57); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
/* Every card link previews its hover cue, including placeholders for unbuilt pages. */
.industry-link:focus-visible .industry-link-label { text-decoration: underline; }
.industry-link:focus-visible .industry-arrow { transform: translateX(.35rem); }
@media (hover: hover) and (pointer: fine) {
  .industries-cta:not([aria-disabled="true"]):hover .industries-cta-label,
  .industry-link:hover .industry-link-label { text-decoration: underline; }
  .industry-link:hover .industry-arrow { transform: translateX(.35rem); }
}
@media (prefers-reduced-motion: reduce) { .industry-arrow { transition: none; } }
/* Industry pop-ups: "Learn more" opens a dialog listing where security adds the most value. */
:root:has(.industry-dialog[open]) { overflow: hidden; }
.industry-dialog { width: min(100% - 2rem, 40rem); max-width: none; max-height: calc(100% - 2rem); padding: 0; border: 0; border-top: 6px solid var(--accent); background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgb(10 14 22 / .3); overflow: auto; overscroll-behavior: contain; }
.industry-dialog::backdrop { background: rgb(10 14 22 / .6); }
.industry-dialog-panel { position: relative; padding: clamp(1.5rem, 5vw, 2.75rem); }
.industry-dialog-close { position: absolute; top: .5rem; right: .5rem; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.industry-dialog-eyebrow { margin: 0 2.5rem .5rem 0; color: var(--accent); font-size: .9375rem; font-weight: 700; line-height: 1.4; }
.industry-dialog h3.industry-dialog-title { margin: 0 2.5rem 1.5rem 0; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.industry-dialog-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.industry-dialog-list li { position: relative; padding-left: 1.5rem; color: var(--muted); line-height: 1.55; }
.industry-dialog-list li::before { content: ""; position: absolute; top: .55em; left: 0; width: .55rem; height: .55rem; background: var(--accent); }
.industry-dialog-list strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.industry-dialog-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 39.999rem) { .industry-dialog-actions .page-btn { width: 100%; } }
@media (hover: hover) and (pointer: fine) {
  .industry-dialog-close:hover { background: #f3f5f9; }
}
@media (min-width: 48rem) {
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 75rem) {
  .industries-section { padding-inline: max(2.75rem, env(safe-area-inset-left, 0px)) max(2.75rem, env(safe-area-inset-right, 0px)); }
}

/* Case studies: a scroll-snap row that pages through the cards on its own,
   with arrows beside it and one dot per page below. --visible is how many whole
   cards make a page; only each page's first card is a snap point, so a swipe
   moves one page. Media blocks are placeholders for future photos. */
.cases-section { --case-gap: clamp(1rem, 2.4vw, 2.5rem); --arrow-space: 0px; --visible: 1; max-width: 100rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 5.5rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(2.5rem, 5vw, 4.5rem) max(1.25rem, env(safe-area-inset-left, 0px)); color: var(--ink); }
.cases-section h2 { margin: 0 var(--arrow-space) clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -.03em; }
.cases-carousel { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: .75rem; }
.cases-viewport { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cases-viewport::-webkit-scrollbar { display: none; }
.cases-list { display: flex; gap: var(--case-gap); margin: 0; padding: 0; list-style: none; }
.case-card { position: relative; display: flex; flex: 0 0 calc((100% - var(--case-gap) * (var(--visible) - 1)) / var(--visible)); flex-direction: column; gap: .5rem; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.case-media { position: relative; overflow: hidden; aspect-ratio: 1.91 / 1; border-radius: .375rem; background: #26314f; }
/* A client logo sits centred on the navy media panel. */
.case-media-logo { display: flex; align-items: center; justify-content: center; padding: 12%; }
.case-media-logo img { width: 100%; max-width: 20rem; height: auto; }
/* Dark logos on light backgrounds sit on a white panel with a hairline border. */
.case-media-light { border: 2px solid #d7dbe2; background: #fff; }
/* A site photo fills the whole media panel. */
.case-media-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-media-light img { max-width: 12rem; }
.case-media-wordmark img { max-width: 17rem; }
/* Two clients split the panel, each logo on the background it was made for. */
.case-media-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid #d7dbe2; background: #fff; }
.case-media-cell { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 12%; }
.case-media-cell-dark { background: #26314f; }
.case-media-cell img { width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.case-body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.25rem, 2.2vw, 2rem); border: 2px solid #d7dbe2; border-radius: .375rem; background: #fff; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.case-title { margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.3; letter-spacing: -.015em; }
.case-link { color: inherit; text-decoration: none; }
.case-link::after { content: ""; position: absolute; inset: 0; border-radius: .375rem; }
.case-link:focus-visible { outline: none; }
.case-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 4px; }
.case-location { margin: .75rem 0 0; color: var(--accent); transition: color .25s ease; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.case-more { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: auto 0 0; padding-top: 2.5rem; font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.case-arrow { flex: 0 0 auto; color: var(--accent); transition: transform .25s ease, color .25s ease; }
/* Hover and keyboard focus turn the card's text panel brand red. */
.case-card:has(.case-link:focus-visible) .case-body { border-color: var(--accent); background: var(--accent); color: #fff; }
.case-card:has(.case-link:focus-visible) :is(.case-location, .case-arrow) { color: #fff; }
.case-card:has(.case-link:focus-visible) .case-arrow { transform: translateX(.35rem); }
.cases-arrow { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a909c; cursor: pointer; transition: color .2s ease; }
.cases-arrow svg { width: 32px; height: 32px; }
.cases-prev svg { transform: scaleX(-1); }
/* Position dots shared by the case studies and security personnel carousels. */
.carousel-controls { display: flex; justify-content: center; margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.carousel-controls[hidden] { display: none; }
.carousel-dots { display: flex; }
.carousel-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carousel-dot span { width: 12px; height: 12px; border: 1.5px solid #8a909c; border-radius: 50%; transition: background-color .2s ease, border-color .2s ease; }
.carousel-dot[aria-current="true"] span { border-color: var(--accent); background: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .case-card:hover .case-body { border-color: var(--accent); background: var(--accent); color: #fff; }
  .case-card:hover :is(.case-location, .case-arrow) { color: #fff; }
  .case-card:hover .case-arrow { transform: translateX(.35rem); }
  .cases-arrow:hover { color: var(--accent); }
  .carousel-dot:hover span { border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .case-body, .case-location, .case-arrow, .cases-arrow, .carousel-dot span { transition: none; }
}
@media (min-width: 48rem) {
  .cases-section { --visible: 2; --arrow-space: calc(44px + .75rem); }
  .case-card { scroll-snap-align: none; }
  .case-card:nth-child(2n + 1) { scroll-snap-align: start; }
  .cases-carousel { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .cases-arrow:not([hidden]) { display: inline-flex; }
}
@media (min-width: 64rem) {
  .cases-section { --visible: 3; }
  .case-card:nth-child(2n + 1) { scroll-snap-align: none; }
  .case-card:nth-child(3n + 1) { scroll-snap-align: start; }
}
@media (min-width: 75rem) {
  .cases-section { padding-inline: max(2.75rem, env(safe-area-inset-left, 0px)) max(2.75rem, env(safe-area-inset-right, 0px)); }
}

/* Google reviews: an edge-to-edge row drifting right; it pauses for reading and becomes a scroll row with reduced motion. */
.reviews-section { background: #f5f7fa; color: var(--ink); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.reviews-intro { max-width: 88rem; margin-inline: auto; padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)); text-align: center; }
.reviews-intro h2 { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -.03em; }
.review-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.reviews-carousel { --review-gap: 1rem; min-width: 0; }
.reviews-row { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding-block: .25rem; }
.reviews-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.reviews-track { display: flex; width: max-content; }
.reviews-list { display: flex; flex-shrink: 0; align-items: flex-start; gap: var(--review-gap); margin: 0; padding: 0 var(--review-gap) 0 0; list-style: none; }
.reviews-list:first-child { padding-left: var(--review-gap); }
.reviews-duplicate { display: none; }
.reviews-animated .reviews-row { overflow-x: hidden; }
.reviews-animated .reviews-list:first-child { padding-left: 0; }
.reviews-animated .reviews-duplicate { display: flex; }
.reviews-animated .reviews-track { animation: reviews-drift var(--reviews-duration, 120s) linear infinite; }
.reviews-paused .reviews-track { animation-play-state: paused; }
/* Keyboard users can stop the row; a mouse click on Read more does not pause it. */
.reviews-carousel:has(:focus-visible) .reviews-track { animation-play-state: paused; }
@keyframes reviews-drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.review-card { display: flex; flex-direction: column; width: min(80vw, 20rem); padding: 1.125rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: .5rem; }
.review-source { display: flex; align-items: center; gap: .5rem; margin-bottom: .625rem; }
.review-google { flex: 0 0 auto; width: 1.125rem; height: 1.125rem; }
.review-stars { display: inline-flex; gap: .0625rem; }
.review-star { display: block; width: 1rem; height: 1rem; fill: #f4b400; }
.review-star.is-empty { fill: var(--line); }
/* Every card reserves five lines so the row stays one even height. */
.review-text { min-height: calc(1.5em * 5); margin: 0; font-size: .9375rem; line-height: 1.5; }
.review-text p { margin: 0 0 .5rem; }
.review-text p:last-child { margin-bottom: 0; }
.reviews-enhanced .review-text.is-clamped { max-height: calc(1.5em * 5); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.review-author { display: flex; align-items: center; gap: .625rem; margin: .875rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); }
.review-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 700; }
.review-card:nth-child(3n + 2) .review-avatar { background: var(--accent); }
.review-card:nth-child(3n + 3) .review-avatar { background: #34466b; }
.review-name { min-width: 0; font-size: .9375rem; font-weight: 700; }
.review-more { flex: 0 0 auto; min-height: 44px; margin: -.5rem 0 -.5rem auto; padding: 0 0 0 .5rem; background: none; border: 0; color: var(--accent); font-size: .875rem; font-weight: 700; cursor: pointer; }
.reviews-footer { margin-top: 1.75rem; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .review-more:hover { text-decoration: underline; }
  .reviews-footer a:hover .industries-cta-label { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-animated .reviews-track { animation: none; }
  .reviews-animated .reviews-row { overflow-x: auto; }
  .reviews-animated .reviews-duplicate { display: none; }
  .reviews-animated .reviews-list:first-child { padding-left: var(--review-gap); }
}

/* Talk to an expert: dark form panel beside the front desk photograph. */
.contact-section { --contact-surface: #262626; --contact-line: rgb(255 255 255 / .34); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "panel"; background: var(--contact-surface); color: #fff; }
.contact-panel { grid-area: panel; min-width: 0; padding: clamp(2.5rem, 6vw, 5rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(3rem, 6vw, 5rem) max(1.25rem, env(safe-area-inset-left, 0px)); }
.contact-eyebrow { margin: 0 0 .75rem; font-size: .9375rem; font-weight: 700; line-height: 1.4; }
.contact-panel h2 { margin: 0 0 2rem; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; letter-spacing: -.03em; }
.contact-form { max-width: 44rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.contact-field { min-width: 0; margin: 0; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; min-height: 48px; padding: .75rem 1rem; border: 1px solid var(--contact-line); border-radius: 0; background: transparent; color: #fff; font-size: 1rem; line-height: 1.5; }
.contact-field textarea { min-height: 6rem; resize: vertical; }
.contact-field ::placeholder { color: rgb(255 255 255 / .72); opacity: 1; }
.contact-field select { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; padding-right: 3rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px 9px; }
.contact-field select:invalid { color: rgb(255 255 255 / .72); }
.contact-field select:has(option[value=""]:checked) { color: rgb(255 255 255 / .72); }
.contact-label { display: block; margin-bottom: .5rem; color: rgb(255 255 255 / .72); font-size: .9375rem; line-height: 1.4; }
.contact-field input[type="date"] { display: block; height: calc(1.5em + 1.5rem + 2px); -webkit-appearance: none; appearance: none; color-scheme: dark; }
.contact-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.contact-field input[type="date"].is-empty { color: rgb(255 255 255 / .72); }
.contact-field optgroup, .contact-field option { background: var(--contact-surface); color: #fff; }
.contact-field input:focus-visible, .contact-field select:focus-visible, .contact-field textarea:focus-visible { outline: 3px solid rgb(203, 25, 57); outline-offset: 2px; }
.contact-consent { display: flex; align-items: flex-start; gap: .75rem; margin: 1.5rem 0 0; }
.contact-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: .75rem 0 0; accent-color: rgb(203, 25, 57); }
.contact-consent label { min-width: 0; padding-block: .625rem; font-size: .9375rem; line-height: 1.55; }
.contact-consent a { color: #fff; font-weight: 700; }
.contact-consent a[aria-disabled="true"] { text-decoration: none; }
.contact-required { color: rgb(233, 78, 105); }
.contact-submit { display: inline-flex; align-items: center; gap: 1rem; min-height: 48px; margin-top: 2.5rem; padding: 0; border: 0; background: transparent; color: #fff; font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.contact-submit-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: rgb(203, 25, 57); font-size: 1.125rem; line-height: 1; }
.contact-media { grid-area: media; min-width: 0; }
.contact-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 36%; }
@media (hover: hover) and (pointer: fine) {
  .contact-submit:hover .contact-submit-label { text-decoration: underline; }
  .contact-submit:hover .contact-submit-icon { background: rgb(180, 22, 50); }
}
@media (min-width: 48rem) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-field-wide { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .contact-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "panel media"; }
  .contact-panel { padding-left: max(2.75rem, env(safe-area-inset-left, 0px)); padding-right: 2.75rem; }
  .contact-media img { aspect-ratio: auto; min-height: 100%; object-position: center 30%; }
}
