/*
Theme Name: Safeguard Security V27.1
Theme URI: https://safeguard-security.com.au/
Author: Safeguard Security
Description: Custom Safeguard Security website theme based on the approved 2026 architecture, visual system and homepage build.
Version: 27.1
Text Domain: safeguard-security
*/

:root {
  --sg-blue: #263679;
  --sg-blue-dark: #1d2a60;
  --ink: #17191b;
  --graphite: #2e3338;
  --slate: #667078;
  --line: #e4e8eb;
  --soft: #f4f6f7;
  --warm: #fafaf8;
  --white: #ffffff;
  --max: 1320px;
  --read: 760px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.section { padding: 128px 0; }
.eyebrow { color: var(--sg-blue); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin: 0 0 20px; }
h1,h2,h3 { line-height: 1.08; margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 5vw, 4.15rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); max-width: 980px; }
h3 { font-size: 1.35rem; }
p { max-width: var(--read); }
.section-intro { font-size: 1.15rem; color: var(--graphite); margin: 24px 0 56px; }
.skip-link { position: fixed; left: -9999px; top: 8px; z-index: 1000; background: var(--white); padding: 8px 12px; }
.skip-link:focus { left: 8px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228,232,235,.85);
}
.header-inner { height: 88px; display: grid; grid-template-columns: 210px 1fr auto; gap: 28px; align-items: center; }
.brand img { width: 188px; }
.site-nav { display: flex; justify-content: center; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--sg-blue); }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--sg-blue); color: white; }
.button-primary:hover { background: var(--sg-blue-dark); }
.button-secondary { border: 1px solid var(--sg-blue); color: var(--sg-blue); background: transparent; }
.button-secondary:hover { color: white; background: var(--sg-blue); }
.text-link { color: var(--sg-blue); text-decoration: none; font-weight: 700; }
.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 34px; }

.hero { min-height: calc(88vh - 88px); display: flex; align-items: center; background: var(--white); }
.hero-signature { padding: 92px 0 102px; overflow: hidden; }
.hero-signature .container { width: min(calc(100% - 48px), 1480px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(620px, 1.15fr); gap: clamp(42px, 4vw, 68px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 720px; font-size: clamp(3.05rem, 4.6vw, 4.4rem); }
.hero-copy h1 span { display: block; color: var(--sg-blue); }
.hero-lede { max-width: 670px; margin-top: 30px; color: var(--graphite); font-size: clamp(1.14rem, 1.5vw, 1.36rem); line-height: 1.5; }
.hero-copy > p:not(.eyebrow):not(.hero-lede) { max-width: 640px; color: var(--slate); }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof span { display: grid; gap: 1px; padding-right: 18px; color: var(--slate); font-size: 11px; line-height: 1.35; }
.hero-proof span + span { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-proof strong { color: var(--ink); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

.hero-environment { min-width: 0; }
.environment-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 42%, rgba(81,103,214,.19), transparent 34%),
    radial-gradient(circle at 95% 0%, rgba(81,103,214,.12), transparent 26%),
    linear-gradient(145deg, #151a25 0%, #0e121a 100%);
  border: 1px solid #292f3a;
  border-radius: 14px;
  box-shadow: 0 34px 80px rgba(17,25,40,.22), 0 3px 10px rgba(17,25,40,.12);
}
.environment-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 77%);
  mask-image: linear-gradient(to bottom, #000, transparent 77%);
}
.environment-header { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.environment-header > div { display: grid; gap: 4px; }
.environment-kicker { color: #aebcff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.environment-header strong { font-size: 1.18rem; }
.environment-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #354052; border-radius: 999px; color: #cbd2dc; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.environment-status i { width: 6px; height: 6px; border-radius: 50%; background: #69d5a0; box-shadow: 0 0 0 0 rgba(105,213,160,.55); animation: environment-status 2.2s ease-out infinite; }
.environment-canvas { position: relative; z-index: 2; height: 370px; margin: 18px 0 12px; }
.environment-paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.environment-paths .path { fill: none; stroke: #3a4554; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 9; opacity: .7; transition: stroke .3s ease, opacity .3s ease, stroke-width .3s ease; animation: environment-flow 5s linear infinite; }
.environment-source,
.environment-outcomes { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; }
.environment-source { left: 0; width: 19%; }
.environment-outcomes { right: 0; width: 23%; padding: 30px 0; }
.environment-node,
.environment-core,
.environment-phases button {
  appearance: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.environment-node {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: #cfd5dd;
  background: rgba(20,26,36,.88);
  border: 1px solid #3a4554;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
  text-align: left;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.environment-node i { flex: 0 0 auto; width: 7px; height: 7px; border: 1px solid #8290a1; border-radius: 50%; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.environment-node:hover,
.environment-node:focus-visible,
.environment-node.is-active { color: var(--white); background: rgba(38,54,121,.46); border-color: #8192e6; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.22); outline: 0; }
.environment-node:hover i,
.environment-node:focus-visible i,
.environment-node.is-active i { background: #aebcff; border-color: #aebcff; box-shadow: 0 0 0 4px rgba(129,146,230,.15); }
.environment-core {
  position: absolute;
  left: 51.4%;
  top: 35%;
  display: grid;
  width: 18%;
  min-width: 124px;
  aspect-ratio: 1;
  place-content: center;
  gap: 4px;
  padding: 15px;
  color: var(--white);
  background: linear-gradient(145deg, #34458f 0%, #222f6c 100%);
  border: 1px solid #7183df;
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(77,96,190,.08), 0 0 55px rgba(69,88,187,.2);
  text-align: center;
  transform: translate(-50%, -10%);
  transition: box-shadow .25s ease, transform .25s ease;
}
.environment-core:hover,
.environment-core:focus-visible,
.environment-core.is-active { outline: 0; transform: translate(-50%, -13%) scale(1.025); box-shadow: 0 0 0 16px rgba(77,96,190,.1), 0 0 70px rgba(83,103,207,.32); }
.environment-core span { color: #c5ceff; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.environment-core strong { font-size: 13px; line-height: 1.15; }
.environment-core small { color: #aebcff; font-size: 7px; font-weight: 800; letter-spacing: .09em; }
.environment-story { position: relative; z-index: 2; display: grid; grid-template-columns: 38px 1fr; min-height: 76px; align-items: start; gap: 14px; padding: 17px 18px; background: rgba(255,255,255,.045); border-left: 3px solid #7183df; border-radius: 3px; }
.environment-story > span { color: #9eacf0; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.environment-story div { display: grid; gap: 2px; }
.environment-story strong { font-size: 14px; line-height: 1.3; }
.environment-story small { color: #b7c0cb; font-size: 10px; line-height: 1.45; }
.environment-phases { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; border-top: 1px solid #303846; }
.environment-phases button { display: grid; gap: 1px; padding: 13px 5px 4px; color: #788493; background: transparent; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transition: color .2s ease; }
.environment-phases button span { font-size: 8px; }
.environment-phases button::before { content: ""; height: 2px; margin: -14px -5px 7px; background: transparent; transition: background .2s ease, box-shadow .2s ease; }
.environment-phases button:hover,
.environment-phases button:focus-visible,
.environment-phases button.is-active { color: var(--white); outline: 0; }
.environment-phases button.is-active::before { background: #8192e6; box-shadow: 0 0 13px rgba(129,146,230,.75); }
.environment-caption { margin: 13px 0 0; color: var(--slate); font-size: 11px; text-align: right; }

.hero-environment.phase-design .environment-core,
.hero-environment.phase-integrate [data-system-phase="integrate"],
.hero-environment.phase-network [data-system-phase="network"],
.hero-environment.phase-monitor [data-system-phase="monitor"],
.hero-environment.phase-support [data-system-phase="support"] { color: var(--white); background-color: rgba(38,54,121,.46); border-color: #8192e6; }
.hero-environment.phase-integrate .path-access,
.hero-environment.phase-integrate .path-video,
.hero-environment.phase-integrate .path-alarm,
.hero-environment.phase-integrate .path-entry,
.hero-environment.phase-network .path-network,
.hero-environment.phase-monitor .path-monitor,
.hero-environment.phase-support .path-support { stroke: #91a2fa; stroke-width: 3; opacity: 1; }

@keyframes environment-flow { to { stroke-dashoffset: -96; } }
@keyframes environment-status {
  0% { box-shadow: 0 0 0 0 rgba(105,213,160,.5); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(105,213,160,0); }
}

.problem-section { background: var(--warm); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 34px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-item { min-width: 0; padding: 36px 30px 38px; background: var(--warm); }
.problem-trigger { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.problem-trigger span { color: var(--sg-blue); font-weight: 800; font-size: 13px; }
.problem-trigger h3 { margin: 12px 0 0; font-size: 1.4rem; transition: color .18s ease; }
.problem-trigger:hover h3,
.problem-trigger[aria-expanded="true"] h3 { color: var(--sg-blue); }
.problem-trigger:focus-visible { outline: 3px solid var(--sg-blue); outline-offset: 7px; border-radius: 2px; }
.problem-answer { padding-top: 15px; }
.problem-answer p { color: var(--slate); margin: 0 0 16px; }
.problem-answer a { color: var(--sg-blue); font-size: 15px; font-weight: 800; text-decoration: none; }
.problem-answer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.problem-answer a:focus-visible { outline: 3px solid var(--sg-blue); outline-offset: 4px; border-radius: 2px; }
.problem-selector-ready .problem-answer { display: grid; grid-template-rows: 0fr; padding-top: 0; opacity: 0; transition: grid-template-rows .22s ease, opacity .18s ease, padding-top .22s ease; }
.problem-selector-ready .problem-answer-inner { overflow: hidden; }
.problem-selector-ready .problem-item.is-open .problem-answer { grid-template-rows: 1fr; padding-top: 15px; opacity: 1; }
.quiet-cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.quiet-cta a { color: var(--sg-blue); font-weight: 700; text-decoration: none; }

.callback-section { scroll-margin-top: 88px; padding: 86px 0; color: var(--white); background: var(--graphite); }
.callback-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
.callback-intro .eyebrow { color: #aebcff; }
.callback-intro h2 { color: var(--white); }
.callback-intro > p:not(.eyebrow) { color: #d2d7dc; max-width: 560px; }
.callback-phone { display: inline-flex; flex-direction: column; margin-top: 22px; color: var(--white); text-decoration: none; }
.callback-phone span { color: #b8c0c7; font-size: 14px; }
.callback-phone strong { color: #aebcff; font-size: 1.45rem; }
.callback-phone:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.callback-form-shell { padding: 38px; color: var(--ink); background: var(--white); border-radius: 5px; }
.callback-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.callback-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 750; }
.callback-form label span { color: var(--slate); font-weight: 400; }
.callback-form input,
.callback-form select { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid #cfd5da; border-radius: 3px; color: var(--ink); background: var(--white); font: inherit; }
.callback-form input:focus,
.callback-form select:focus { outline: 3px solid rgba(38,54,121,.2); border-color: var(--sg-blue); }
.callback-wide { grid-column: 1 / -1; }
.callback-note { margin: -2px 0 0; color: var(--slate); font-size: 13px; line-height: 1.55; }
.callback-message { padding: 24px; border-left: 4px solid var(--sg-blue); background: var(--soft); }
.callback-message p { margin: 7px 0 0; }
.callback-error { border-left-color: #a43b3b; }
.callback-success { padding: 34px; }
.callback-success .eyebrow { margin-bottom: 10px; color: var(--sg-blue); }
.callback-success h3 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.callback-reference { margin: 26px 0; border-top: 1px solid var(--line); }
.callback-reference div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.callback-reference dt { color: var(--slate); }
.callback-reference dd { margin: 0; font-weight: 700; }
.callback-email-note { padding: 14px 16px; color: #374047; background: #eef1f8; }

.capabilities { background: var(--white); }
.family { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 34px 0; border-top: 1px solid var(--line); }
.family:last-child { border-bottom: 1px solid var(--line); }
.family-title { color: var(--sg-blue); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
.service-list { display: grid; gap: 22px; }
.service-list.three { grid-template-columns: repeat(3,1fr); }
.service-list.two { grid-template-columns: repeat(2,1fr); }
.service-list a { text-decoration: none; }
.service-list h3 { margin-bottom: 8px; }
.service-list p { margin: 0; color: var(--slate); font-size: 16px; }
.service-list a:hover h3 { color: var(--sg-blue); }

.health-section { scroll-margin-top: 88px; color: var(--white); background: #20252a; }
.health-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.health-intro { position: sticky; top: 128px; }
.health-intro .eyebrow { color: #aebcff; }
.health-intro h2 { max-width: 520px; color: var(--white); font-size: clamp(2.5rem, 4.1vw, 4.4rem); }
.health-intro > p:not(.eyebrow) { color: #cbd1d6; }
.health-privacy { display: grid; margin-top: 30px; padding: 20px; border-left: 3px solid #7183df; background: rgba(255,255,255,.04); }
.health-privacy span { color: #b6bec5; font-size: 14px; }
.health-check { min-height: 440px; padding: clamp(28px, 4vw, 52px); border: 1px solid #454d55; border-radius: 8px; background: #292f35; box-shadow: 0 24px 60px rgba(0,0,0,.16); }
.health-progress { margin-bottom: 52px; }
.health-progress > div:first-child { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 13px; color: #c7cdd2; font-size: 13px; }
.health-progress strong { color: #aebcff; font-size: 12px; }
.health-progress-track { height: 3px; overflow: hidden; background: #414a52; }
.health-progress-track span { display: block; width: 17%; height: 100%; background: #8192e6; transition: width .22s ease; }
.health-ready .health-question[hidden] { display: none; }
.health-question { margin: 0; padding: 0; border: 0; }
.health-question legend { width: 100%; padding: 0; color: var(--white); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 650; line-height: 1.35; }
.health-question legend span { display: block; margin-bottom: 12px; color: #aebcff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.health-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.health-options label { cursor: pointer; }
.health-options input { position: absolute; opacity: 0; pointer-events: none; }
.health-options span { display: inline-flex; width: 100%; min-height: 64px; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid #59636c; border-radius: 5px; color: #d9dde0; background: rgba(255,255,255,.015); font-size: 15px; font-weight: 700; transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease; }
.health-options label:hover span { border-color: #91a0ec; }
.health-options input:focus-visible + span { outline: 3px solid #aebcff; outline-offset: 3px; }
.health-options input:checked + span { border-color: #9caaef; color: var(--white); background: var(--sg-blue); transform: translateY(-2px); }
.health-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #414a52; }
.health-navigation[hidden] { display: none; }
.health-back,
.health-reset { padding: 0; border: 0; color: #c3cad0; background: transparent; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.health-back:disabled { opacity: .38; cursor: default; }
.health-noscript { padding: 20px; border-left: 3px solid #8192e6; color: #d9dde0; background: rgba(255,255,255,.04); }
.health-noscript a { color: #bcc6ff; }
.health-result { padding: 34px; border-left: 4px solid #8192e6; color: var(--ink); background: var(--white); }
.health-result:focus { outline: none; }
.health-result .eyebrow { color: var(--sg-blue); }
.health-result h3 { margin: 8px 0 12px; font-size: 1.7rem; }
.health-services { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.health-services > div { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 9px; }
.health-services a { color: var(--sg-blue); font-size: 14px; font-weight: 750; text-decoration: none; }
.health-services a:hover { text-decoration: underline; text-underline-offset: 3px; }
.health-result-actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 28px; }
.health-result > .health-reset { margin-top: 24px; color: var(--slate); }

.integration { background: var(--soft); padding-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.callout { border-left: 3px solid var(--sg-blue); padding-left: 18px; font-weight: 700; font-size: 1.15rem; }
.diagram { position: relative; min-height: 390px; }
.diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.diagram line { stroke: var(--sg-blue); stroke-width: 2; opacity: .8; }
.node { position: absolute; z-index: 2; background: var(--white); border: 1px solid #cfd5da; border-radius: 6px; padding: 12px 16px; font-size: 14px; font-weight: 700; text-align: center; }
.node.core { left: 40%; top: 34%; width: 20%; background: var(--ink); color: white; border-color: var(--ink); }
.n1 { top: 0; left: 38%; width: 24%; } .n2 { top: 42%; left: 2%; width: 22%; }
.n3 { top: 42%; right: 2%; width: 22%; } .n4 { bottom: 2%; left: 9%; width: 27%; }
.n5 { bottom: 2%; right: 9%; width: 27%; } .n6 { bottom: 0; left: 38%; width: 24%; transform: translateY(115%); }
.scenario-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 78px; }
.scenario-grid article { border-top: 2px solid var(--sg-blue); padding-top: 20px; }
.scenario-grid span { font-size: 12px; color: var(--sg-blue); font-weight: 800; letter-spacing: .08em; }
.scenario-grid p { font-size: 16px; color: var(--slate); }
.statement-band { margin-top: 120px; background: var(--ink); color: white; padding: 130px 0; }
.statement-band p { font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1.05; font-weight: 650; margin: 0; max-width: 1000px; }

.engineering { background: var(--white); }
.image-split figure { margin: 0; }
.image-split figure img { width: 100%; border-radius: 6px; }
figcaption { margin-top: 12px; color: var(--slate); font-size: 13px; }
.process { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; counter-reset: step; }
.process li { counter-increment: step; border-top: 1px solid var(--line); padding: 12px 0; font-weight: 700; }
.process li::before { content: "0" counter(step); color: var(--sg-blue); margin-right: 10px; font-size: 12px; }

.dark-section { background: var(--ink); color: white; }
.dark-section .eyebrow { color: #aeb8f7; }
.giant { font-size: clamp(4rem, 10vw, 8rem); line-height: .9; font-weight: 750; margin: 24px 0 34px; }
.dark-intro { color: #d7dce0; font-size: 1.15rem; }
.path-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #3a4046; margin-top: 62px; }
.path-grid div { padding: 28px 30px 28px 0; border-bottom: 1px solid #3a4046; }
.path-grid div:nth-child(3n+2), .path-grid div:nth-child(3n+3) { padding-left: 30px; border-left: 1px solid #3a4046; }
.path-grid strong { display: block; color: #c6ceff; text-transform: uppercase; letter-spacing: .07em; font-size: 13px; margin-bottom: 10px; }
.path-grid span { color: #d7dce0; font-size: 16px; }
.dark-statement { font-size: 1.6rem; font-weight: 700; margin-top: 55px; }

.national { background: var(--warm); padding-bottom: 0; }
.delivery-model { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 38px; }
.delivery-head { background: var(--ink); color: white; padding: 18px; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.delivery-head.secondary { background: var(--sg-blue); }
.delivery-step { border-bottom: 1px solid var(--line); padding: 16px 8px; text-align: center; }
.delivery-bridge { text-align: center; color: var(--sg-blue); font-size: 30px; padding: 8px; }
.delivery-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 16px; }
.delivery-row span { background: var(--soft); padding: 12px; text-align: center; font-size: 13px; font-weight: 700; }
.mini-statement { background: var(--sg-blue); color: white; margin-top: 110px; padding: 55px 0; font-size: 1.65rem; }

.work { background: var(--white); padding-bottom: 0; }
.proof-model { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.proof-public, .proof-private { border: 1px solid var(--line); padding: 28px; display: grid; gap: 10px; }
.proof-public strong { color: var(--sg-blue); }
.proof-private strong { color: var(--slate); }
.proof-public span, .proof-private span { font-size: 15px; }
.proof-divider { color: var(--slate); font-size: 13px; writing-mode: vertical-rl; }
.statement-light { background: var(--soft); margin-top: 120px; padding: 110px 0; }
.statement-light p { font-size: clamp(2.4rem, 4.5vw, 4.5rem); line-height: 1.08; font-weight: 650; margin: 0; max-width: 1100px; }

.story { background: var(--warm); }
.story-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; align-items: start; }
.timeline { border-left: 2px solid var(--sg-blue); padding-left: 32px; display: grid; gap: 40px; }
.timeline div { display: grid; gap: 5px; }
.timeline span { color: var(--sg-blue); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.story-statement { margin-top: 90px; border-top: 1px solid var(--line); padding-top: 48px; display: flex; justify-content: space-between; gap: 30px; font-size: 1.6rem; }
.story-statement span { color: var(--sg-blue); font-weight: 700; }

.people { background: var(--white); }
.people-placeholder { min-height: 420px; background: var(--soft); border: 1px dashed #b8c1c8; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; color: var(--graphite); }
.people-placeholder small { max-width: 380px; color: var(--slate); margin-top: 10px; }

.credential { background: var(--warm); }
.credential-grid { display: grid; grid-template-columns: 1fr 380px; gap: 90px; align-items: center; }
.credential-grid img { width: 100%; max-width: 340px; justify-self: center; }

.contact-section { background: var(--ink); color: white; }
.contact-section .eyebrow { color: #b9c1f8; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.contact-big { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; font-weight: 700; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.contact-form label:nth-last-of-type(-n+2) { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #4d555d; background: #23272b; color: white; border-radius: 5px; padding: 13px 14px; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: 12px; color: #aeb5bb; margin: 0; }

.site-footer { background: #0e1012; color: #d9dde0; padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 50px; }
.footer-brand img { width: 190px; filter: invert(1) grayscale(1) brightness(5); opacity: .92; }
.footer-grid > div { display: grid; align-content: start; gap: 9px; }
.footer-grid strong { color: white; }
.footer-grid a { text-decoration: none; color: #d9dde0; }
.footer-grid a:hover { color: white; }
.footer-grid span, .footer-grid p { font-size: 14px; color: #aab1b6; margin: 0; }
.footer-bottom { border-top: 1px solid #2d3236; margin-top: 50px; padding-top: 22px; font-size: 12px; color: #8e969c; }

@media (max-width: 1260px) {
  .hero-signature .hero-grid { grid-template-columns: 1fr; }
  .hero-signature .hero-copy { max-width: 780px; }
  .hero-signature .hero-proof { max-width: 680px; }
  .hero-signature .hero-environment { width: 100%; max-width: 820px; margin: 0 auto; }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; height: 76px; }
  .brand img { width: 160px; }
  .menu-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 5px; padding: 8px 12px; }
  .header-cta { display: none; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); padding: 20px 24px 28px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .hero { min-height: auto; }
  .hero-grid, .split, .story-grid, .credential-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .hero-copy { max-width: 760px; }
  .hero-proof { max-width: 680px; }
  .hero-environment { width: 100%; max-width: 780px; margin: 0 auto; }
  .visual-panel { min-height: 390px; }
  .family { grid-template-columns: 1fr; gap: 14px; }
  .service-list.three, .service-list.two { grid-template-columns: 1fr 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr 1fr; }
  .path-grid div:nth-child(3n+2), .path-grid div:nth-child(3n+3) { border-left: 0; padding-left: 0; }
  .path-grid div:nth-child(even) { padding-left: 28px; border-left: 1px solid #3a4046; }
  .delivery-row { grid-template-columns: 1fr 1fr; }
  .proof-model { grid-template-columns: 1fr; }
  .proof-divider { writing-mode: initial; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .problem-grid { grid-template-columns: 1fr 1fr; }
    .callback-layout { grid-template-columns: 1fr; gap: 42px; }
    .health-layout { grid-template-columns: 1fr; gap: 42px; }
    .health-intro { position: static; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 76px 0; }
  .hero { padding-top: 70px; }
  .hero-signature { padding-bottom: 78px; }
  .hero-signature .container { width: min(calc(100% - 32px), 1480px); }
  .hero-grid { display: block; }
  .hero-visual { margin-top: 46px; }
  .hero-copy h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .hero-proof { grid-template-columns: 1fr; gap: 12px; }
  .hero-proof span,
  .hero-proof span + span { padding: 0 0 12px; border-left: 0; border-bottom: 1px solid var(--line); }
  .environment-panel { min-height: 0; padding: 22px 18px 20px; border-radius: 10px; }
  .environment-header strong { font-size: 1.02rem; }
  .environment-status { display: none; }
  .environment-canvas { display: grid; height: auto; gap: 13px; margin: 24px 0 17px; }
  .environment-paths { display: none; }
  .environment-source,
  .environment-outcomes { position: static; display: grid; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; }
  .environment-core { position: static; width: 142px; min-width: 0; margin: 7px auto; transform: none; }
  .environment-core:hover,
  .environment-core:focus-visible,
  .environment-core.is-active { transform: scale(1.025); }
  .environment-node { min-height: 44px; }
  .environment-story { grid-template-columns: 28px 1fr; min-height: 94px; padding: 15px 14px; }
  .environment-phases button { font-size: 7px; letter-spacing: .02em; }
  .environment-phases button span { font-size: 7px; }
  .environment-caption { text-align: left; }
  .visual-panel { padding: 34px 26px; min-height: 360px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-item { padding: 30px 0; }
  .callback-section { padding: 70px 0; }
  .callback-form-shell { padding: 28px 20px; }
  .callback-form { grid-template-columns: 1fr; }
  .callback-wide { grid-column: auto; }
  .callback-reference div { grid-template-columns: 1fr; gap: 5px; }
  .health-check { min-height: 410px; padding: 28px 20px; }
  .health-progress { margin-bottom: 38px; }
  .health-question { padding: 0; }
  .health-options { display: grid; grid-template-columns: repeat(3, 1fr); }
  .health-options span { min-width: 0; width: 100%; padding: 7px 8px; }
  .health-result { padding: 26px 20px; }
  .service-list.three, .service-list.two { grid-template-columns: 1fr; }
  .diagram { min-height: 480px; margin-top: 30px; transform: scale(.94); transform-origin: center; }
  .n1 { left: 30%; width: 40%; }
  .n2 { left: 0; width: 30%; } .n3 { right: 0; width: 30%; }
  .node.core { left: 34%; width: 32%; }
  .n4 { left: 0; width: 38%; } .n5 { right: 0; width: 38%; }
  .n6 { left: 28%; width: 44%; }
  .statement-band, .statement-light { margin-top: 70px; padding: 78px 0; }
  .process { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .path-grid div, .path-grid div:nth-child(even) { padding: 22px 0; border-left: 0; }
  .delivery-row { grid-template-columns: 1fr; }
  .story-statement { display: grid; }
  .credential-grid { gap: 40px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label, .contact-form label:nth-last-of-type(-n+2) { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .environment-paths .path,
  .environment-status i { animation: none; }
  .environment-node,
  .environment-core,
  .environment-phases button { transition-duration: .01ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .problem-trigger h3,
  .problem-selector-ready .problem-answer,
  .visual-stack li,
  .health-options span,
  .health-progress-track span,
  .engineering-proof .proof-flow li { transition: none; }
  .visual-stack li:hover { transform: none; }
}


/* =========================================================
   SERVICES INFRASTRUCTURE + MASTER SERVICE PAGE V1
   ========================================================= */

.services-hero,
.service-hero {
  background: var(--white);
}
.services-hero-grid,
.service-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: center;
}
.services-hero-panel,
.service-hero-panel {
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 46px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.services-hero-panel .route-label,
.service-hero-panel .route-label {
  color: #c6ceff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}
.intent-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: 44px;
}
.intent-link {
  display: block;
  text-decoration: none;
  padding: 34px 30px 34px 0;
  border-bottom: 1px solid var(--line);
}
.intent-link:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.intent-link .intent-no {
  color: var(--sg-blue);
  font-size: 12px;
  font-weight: 800;
}
.intent-link h3 {
  margin: 10px 0;
  font-size: 1.45rem;
}
.intent-link p {
  margin: 0;
  color: var(--slate);
  font-size: 16px;
}
.intent-link:hover h3 { color: var(--sg-blue); }

.routing-note {
  background: var(--soft);
  border-left: 3px solid var(--sg-blue);
  padding: 22px 24px;
  margin-top: 42px;
  max-width: 800px;
}

.services-capability-layer {
  background: var(--white);
}
.service-family-block {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}
.service-family-block:last-child {
  border-bottom: 1px solid var(--line);
}
.service-family-name {
  color: var(--sg-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.service-destinations {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 28px 36px;
}
.service-destination {
  text-decoration: none;
  border-top: 2px solid var(--line);
  padding-top: 16px;
}
.service-destination h3 {
  margin-bottom: 8px;
}
.service-destination p {
  color: var(--slate);
  font-size: 16px;
  margin: 0;
}
.service-destination:hover {
  border-top-color: var(--sg-blue);
}
.service-destination:hover h3 { color: var(--sg-blue); }

.service-hero-lede {
  font-size: 1.22rem;
  color: var(--graphite);
  margin-top: 26px;
}
.service-question-band {
  background: var(--warm);
}
.question-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  border-top: 1px solid var(--line);
  margin-top: 44px;
}
.question-list p {
  font-size: 1.25rem;
  font-weight: 650;
  padding: 28px 30px 28px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.question-list p:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.approach-flow {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.approach-flow li {
  padding: 22px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
}
.approach-flow li:not(:last-child)::after {
  content: "→";
  color: var(--sg-blue);
  position: absolute;
  right: -6px;
}
.service-editorial {
  background: var(--white);
}
.editorial-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.editorial-index {
  color: var(--sg-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}
.editorial-copy h2 {
  margin-bottom: 28px;
}
.editorial-copy p {
  color: var(--graphite);
}
.service-statement {
  background: var(--ink);
  color: var(--white);
  padding: 130px 0;
}
.service-statement p {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.04;
  font-weight: 650;
  max-width: 1120px;
}
.architecture-panel {
  background: var(--soft);
}
.architecture-diagram {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 34px;
}
.arch-flow {
  display: grid;
  gap: 13px;
}
.arch-node {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 15px 18px;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
}
.arch-node.primary {
  border-color: var(--sg-blue);
  background: #f3f5ff;
  color: var(--sg-blue);
}
.arch-arrow {
  color: var(--sg-blue);
  text-align: center;
  font-weight: 800;
}

.permission-matrix {
  display: grid;
  grid-template-columns: 1.25fr repeat(4,1fr);
  border: 1px solid var(--line);
  background: var(--white);
}
.permission-matrix div {
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.permission-matrix .matrix-head {
  font-weight: 800;
  background: var(--soft);
}
.permission-matrix .allow {
  text-align: center;
  color: var(--sg-blue);
  font-weight: 900;
}
.permission-matrix .deny {
  text-align: center;
  color: var(--slate);
}
.permission-matrix div:nth-child(5n) {
  border-right: 0;
}
.permission-matrix div:nth-last-child(-n+5) {
  border-bottom: 0;
}

.tech-depth {
  background: var(--warm);
}
.tech-accordion {
  border-top: 1px solid var(--line);
}
.tech-accordion details {
  border-bottom: 1px solid var(--line);
}
.tech-accordion summary {
  padding: 22px 0;
  font-weight: 750;
  cursor: pointer;
}
.tech-accordion details p {
  color: var(--graphite);
  padding-bottom: 22px;
  margin-top: 0;
}

.existing-service {
  background: var(--ink);
  color: var(--white);
}
.existing-service .eyebrow { color: #c4cbff; }
.existing-actions {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid #3a4046;
  margin-top: 50px;
}
.existing-actions div {
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid #3a4046;
}
.existing-actions div:nth-child(3n+2),
.existing-actions div:nth-child(3n+3) {
  padding-left: 24px;
  border-left: 1px solid #3a4046;
}
.existing-actions strong {
  display: block;
  color: #c6ceff;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.private-proof {
  background: var(--white);
}
.related-services {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 40px;
}
.related-service {
  text-decoration: none;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}
.related-service:hover { border-top-color: var(--sg-blue); }
.related-service p { color: var(--slate); font-size: 15px; }

.service-final-cta {
  background: var(--sg-blue);
  color: var(--white);
}
.service-final-cta .eyebrow { color: #e0e4ff; }
.service-final-cta h2 { max-width: 960px; }
.service-final-cta p { color: #eef0ff; font-size: 1.1rem; }

.services-mega {
  display: none;
  position: absolute;
  left: 50%;
  top: 74px;
  transform: translateX(-50%);
  width: min(1000px, calc(100vw - 48px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(20,25,30,.10);
}
.services-nav-wrap {
  position: relative;
}
.services-nav-wrap:hover .services-mega,
.services-nav-wrap:focus-within .services-mega {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.mega-family strong {
  color: var(--sg-blue);
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .08em;
}
.mega-family a {
  display: block;
  margin: 7px 0;
  font-size: 14px;
}

@media (max-width: 980px) {
  .services-hero-grid,
  .service-hero-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .service-family-block {
    grid-template-columns: 1fr;
  }
  .approach-flow {
    grid-template-columns: repeat(3,1fr);
  }
  .related-services {
    grid-template-columns: 1fr;
  }
  .services-nav-wrap:hover .services-mega,
  .services-nav-wrap:focus-within .services-mega {
    display: none;
  }
}
@media (max-width: 680px) {
  .intent-list,
  .question-list,
  .service-destinations {
    grid-template-columns: 1fr;
  }
  .intent-link,
  .intent-link:nth-child(even),
  .question-list p,
  .question-list p:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .approach-flow {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }
  .approach-flow li {
    text-align: left;
    border-bottom: 1px solid var(--line);
  }
  .approach-flow li:not(:last-child)::after {
    content: "↓";
    right: 10px;
  }
  .permission-matrix {
    grid-template-columns: 1.35fr repeat(4,.8fr);
    font-size: 12px;
  }
  .permission-matrix div {
    padding: 9px 6px;
    font-size: 11px;
  }
  .existing-actions {
    grid-template-columns: 1fr;
  }
  .existing-actions div,
  .existing-actions div:nth-child(3n+2),
  .existing-actions div:nth-child(3n+3) {
    padding: 18px 0;
    border-left: 0;
  }
}

/* V15.1 Our Work engineering feature */
.engineering-feature{
  position:relative;
  overflow:hidden;
}
.engineering-feature::before{
  content:"ENGINEERING / ROOT CAUSE";
  display:block;
  max-width:var(--container,1200px);
  margin:0 auto 18px;
  padding:0 24px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  opacity:.58;
}
.engineering-feature .dark-statement{
  max-width:780px;
  margin:18px 0 38px;
  font-size:clamp(1.25rem,2vw,1.75rem);
  line-height:1.35;
}

/* =========================================================
   CONTACT / REQUEST A SECURITY REVIEW V16
   ========================================================= */
.contact-hero {
  background: var(--white);
}
.contact-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 72px;
  align-items: start;
}
.contact-intro {
  position: sticky;
  top: 110px;
}
.contact-intro .contact-direct {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.contact-direct-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-direct-item strong {
  display: block;
  color: var(--sg-blue);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-direct-item a {
  text-decoration: none;
  font-weight: 700;
}
.contact-form-shell {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 24px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-field.full {
  grid-column: 1 / -1;
}
.contact-field label,
.contact-field legend {
  font-size: 14px;
  font-weight: 750;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #cbd0d6;
  background: var(--white);
  color: var(--ink);
  padding: 14px 15px;
  border-radius: 4px;
  font: inherit;
}
.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 3px solid rgba(38,54,121,.12);
  border-color: var(--sg-blue);
}
.contact-help {
  color: var(--slate);
  font-size: 13px;
  margin: 0;
}
.contact-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.contact-submit .form-note {
  color: var(--slate);
  font-size: 13px;
  margin: 0;
}
.contact-privacy-note {
  grid-column: 1 / -1;
  padding: 16px 18px;
  background: var(--white);
  border-left: 3px solid var(--sg-blue);
  font-size: 13px;
  color: var(--graphite);
}
.contact-route-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 40px;
}
.contact-route {
  border-top: 2px solid var(--line);
  padding-top: 18px;
}
.contact-route h3 {
  margin-bottom: 8px;
}
.contact-route p {
  color: var(--slate);
  font-size: 15px;
}
.contact-route a {
  text-decoration: none;
  font-weight: 700;
}
.contact-assurance {
  background: var(--ink);
  color: var(--white);
}
.contact-assurance .eyebrow {
  color: #c6ceff;
}
.contact-assurance-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid #3a4046;
  margin-top: 38px;
}
.contact-assurance-grid div {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid #3a4046;
}
.contact-assurance-grid div:nth-child(3n+2),
.contact-assurance-grid div:nth-child(3n+3) {
  border-left: 1px solid #3a4046;
  padding-left: 24px;
}
.contact-assurance-grid strong {
  display: block;
  color: #c6ceff;
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-intro {
    position: static;
  }
  .contact-route-grid,
  .contact-assurance-grid {
    grid-template-columns: 1fr;
  }
  .contact-assurance-grid div,
  .contact-assurance-grid div:nth-child(3n+2),
  .contact-assurance-grid div:nth-child(3n+3) {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-form-shell {
    padding: 28px 20px;
  }
}


/* =========================================================
   KEY PEOPLE / OUR STORY V19
   ========================================================= */
.key-people-section {
  background: #f5f6f8;
}
.key-people-heading {
  max-width: 780px;
  margin-bottom: 42px;
}
.key-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.key-person {
  background: #fff;
  border: 1px solid rgba(22,34,55,.10);
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 250px;
  overflow: hidden;
}
.key-person-photo {
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.key-person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.key-person-copy {
  padding: 30px 28px;
}
.key-person-copy h3 {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1.15;
}
.key-person-role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #263679;
  margin: 0 0 18px;
}
.key-person-copy p:last-child {
  margin-bottom: 0;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .key-people-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .key-person { grid-template-columns: 1fr; }
  .key-person-photo { height: 320px; }
  .key-person-photo img { object-fit: contain; }
}


/* =========================================================
   V20 CLEAN DEPLOYMENT — NO PROJECT PHOTOGRAPHY
   ========================================================= */
.engineering-clean {
  align-items: stretch;
}
.engineering-proof {
  background: #111a2c;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}
.engineering-proof .proof-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.66);
  margin-bottom: 28px;
}
.engineering-proof .proof-flow {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.engineering-proof .proof-flow li {
  position: relative;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.20);
  min-height: 72px;
  padding: 12px;
  background: rgba(255,255,255,.025);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.engineering-proof .proof-flow li:nth-child(1) { grid-column: 1 / 4; }
.engineering-proof .proof-flow li:nth-child(2) { grid-column: 4 / 7; }
.engineering-proof .proof-flow li:nth-child(3) { grid-column: 7 / 10; }
.engineering-proof .proof-flow li:nth-child(4) { grid-column: 10 / 13; }
.engineering-proof .proof-flow li:nth-child(5) { grid-column: 9 / 13; }
.engineering-proof .proof-flow li:nth-child(6) { grid-column: 5 / 9; }
.engineering-proof .proof-flow li:nth-child(7) { grid-column: 1 / 5; }
.engineering-proof .proof-flow li:nth-child(-n+3)::after { content: "→"; position: absolute; top: 50%; right: -18px; color: rgba(255,255,255,.52); transform: translateY(-50%); }
.engineering-proof .proof-flow li:nth-child(4)::after { content: "↓"; position: absolute; right: 50%; bottom: -25px; color: rgba(255,255,255,.52); }
.engineering-proof .proof-flow li:nth-child(5)::after,
.engineering-proof .proof-flow li:nth-child(6)::after { content: "←"; position: absolute; top: 50%; left: -18px; color: rgba(255,255,255,.52); transform: translateY(-50%); }
.engineering-proof .proof-flow li:hover { border-color: rgba(156,170,239,.72); background: rgba(38,54,121,.32); transform: translateY(-2px); }
.engineering-proof .proof-flow span { color: #aebcff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.engineering-proof .proof-flow strong { font-size: 13px; }
.engineering-proof p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.78);
}
@media (max-width: 760px) {
  .engineering-proof { min-height: auto; }
  .engineering-proof .proof-flow { grid-template-columns: 1fr; gap: 18px; }
  .engineering-proof .proof-flow li:nth-child(n) { grid-column: 1; }
  .engineering-proof .proof-flow li:nth-child(n)::after { content: "↓"; top: auto; right: auto; bottom: -18px; left: 24px; line-height: 18px; transform: none; }
  .engineering-proof .proof-flow li:last-child::after { content: none; }
}


/* =========================================================
   V22 NAVIGATION + HEADER ALIGNMENT FIX
   - Keeps Services mega-menu open while pointer moves into it
   - Removes hover gap between Services tab and mega-menu
   - Constrains logo inside the header/bottom rule
   ========================================================= */

.header-inner {
  min-height: 88px;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.brand img {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 76px;
  object-fit: contain;
}

.services-nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

/* The mega menu now begins exactly at the bottom of the
   full-height Services navigation wrapper, so there is no
   dead mouse gap that causes it to close. */
.services-mega {
  top: 100%;
  margin-top: 0;
  visibility: hidden;
  opacity: 0;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  pointer-events: none;
  transition: opacity .12s ease, visibility .12s ease;
}

.services-nav-wrap:hover .services-mega,
.services-nav-wrap:focus-within .services-mega,
.services-mega:hover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Small invisible bridge makes diagonal mouse movement into
   the wide menu more forgiving on desktop. */
.services-nav-wrap::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: 100%;
  height: 12px;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .brand img {
    max-width: 138px;
    max-height: 68px;
  }

  .services-mega,
  .services-nav-wrap:hover .services-mega,
  .services-nav-wrap:focus-within .services-mega,
  .services-mega:hover {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .services-nav-wrap::after {
    display: none;
  }
}


/* V23 contact form production submission */
.contact-honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
.contact-submit .form-note { max-width: 520px; }
.turnstile-field { grid-column: 1 / -1; min-height: 65px; }

/* =========================================================
   V26.2 PRE-DEPLOYMENT PHOTOGRAPHY + INSIGHTS
   ========================================================= */
.predeployment-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.predeployment-gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.predeployment-gallery figure:first-child {
  grid-column: 1 / -1;
}
.predeployment-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.predeployment-gallery figure:first-child img {
  aspect-ratio: 3 / 2;
}
.predeployment-gallery figcaption {
  padding: 15px 18px 17px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.45;
}
.predeployment-flow {
  grid-template-columns: repeat(4, 1fr);
}
.case-summary-grid,
.insight-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.case-summary-grid > div,
.insight-question-grid > div {
  border-top: 2px solid var(--sg-blue);
  padding-top: 18px;
}
.case-summary-grid h3,
.insight-question-grid h3 {
  margin: 0 0 10px;
}
.case-summary-grid p,
.insight-question-grid p {
  margin: 0;
  color: var(--graphite);
}
.insight-article .editorial-copy {
  max-width: 820px;
}
.insight-article .article-lede {
  font-size: 1.28rem;
  color: var(--graphite);
}
.insight-card {
  display: block;
  text-decoration: none;
  border-top: 2px solid var(--sg-blue);
  padding-top: 24px;
  margin-top: 34px;
  max-width: 900px;
}
.insight-card p { color: var(--slate); }
.insight-note {
  background: #f3f5ff;
  border-left: 4px solid var(--sg-blue);
  padding: 22px 26px;
  margin: 32px 0;
}
@media (max-width: 980px) {
  .predeployment-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .predeployment-gallery,
  .case-summary-grid,
  .insight-question-grid,
  .predeployment-flow {
    grid-template-columns: 1fr;
  }
  .predeployment-gallery figure:first-child { grid-column: auto; }
  .predeployment-gallery figure:first-child img,
  .predeployment-gallery img { aspect-ratio: 4 / 3; }
}

/* =========================================================
   V27.0 COMPLEXITY-LED POSITIONING
   ========================================================= */
.complexity-home {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 5%, rgba(101,119,218,.22), transparent 34%),
    linear-gradient(135deg, #101828 0%, #17223a 62%, #1e2d58 100%);
  color: var(--white);
}
.complexity-home::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  bottom: -250px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.complexity-home .eyebrow { color: #b9c4ff; }
.complexity-home-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: start;
}
.complexity-home-intro p { color: rgba(255,255,255,.78); }
.complexity-home .text-link { color: #fff; }
.complexity-proof-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,.17);
  border-bottom: 1px solid rgba(255,255,255,.17);
}
.complexity-proof-grid article {
  padding: 30px 26px 34px;
  border-left: 1px solid rgba(255,255,255,.17);
}
.complexity-proof-grid article:first-child { border-left: 0; padding-left: 0; }
.complexity-proof-grid article:last-child { padding-right: 0; }
.complexity-proof-grid article > span {
  display: block;
  color: #aebcff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.complexity-proof-grid h3 { font-size: 1.22rem; margin-bottom: 12px; }
.complexity-proof-grid p { color: rgba(255,255,255,.7); font-size: 15px; margin: 0; }
.scale-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.scale-proof > div {
  padding: 25px 24px;
  border-left: 1px solid var(--line);
}
.scale-proof > div:first-child { border-left: 0; padding-left: 0; }
.scale-proof strong,
.scale-proof span { display: block; }
.scale-proof strong { color: var(--sg-blue); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.1; }
.scale-proof span { margin-top: 8px; color: var(--slate); font-size: 13px; }
.complexity-home .scale-proof { border-color: rgba(255,255,255,.17); }
.complexity-home .scale-proof > div { border-color: rgba(255,255,255,.17); }
.complexity-home .scale-proof strong { color: #fff; }
.complexity-home .scale-proof span { color: rgba(255,255,255,.66); }
.scale-proof-note { position: relative; z-index: 1; color: var(--slate); font-size: 13px; margin: 18px 0 0; }
.complexity-home .scale-proof-note { color: rgba(255,255,255,.55); }
.national-scale-proof { background: var(--soft); }
.national-scale-proof h2 { max-width: 760px; }
.complex-project-types,
.remote-challenge-grid {
  border-color: var(--line);
}
.complex-project-types div,
.remote-challenge-grid div {
  border-color: var(--line);
}
.complex-project-types div:nth-child(3n+2),
.complex-project-types div:nth-child(3n+3),
.remote-challenge-grid div:nth-child(3n+2),
.remote-challenge-grid div:nth-child(3n+3) {
  border-color: var(--line);
}
.complex-project-types strong,
.remote-challenge-grid strong { color: var(--sg-blue); }
.complex-project-types span,
.remote-challenge-grid span {
  display: block;
  margin-top: 8px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
}
.complex-projects-hero .service-hero-panel,
.remote-estates-hero .service-hero-panel {
  background: linear-gradient(150deg, #111a2c, #263679);
}
.remote-pathway {
  margin-top: 42px;
  grid-template-columns: 1fr auto 1fr auto 1.25fr auto 1fr auto 1.25fr;
  align-items: center;
}

@media (max-width: 980px) {
  .complexity-home-heading { grid-template-columns: 1fr; gap: 30px; }
  .complexity-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .complexity-proof-grid article:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.17); }
  .complexity-proof-grid article:nth-child(4) { border-top: 1px solid rgba(255,255,255,.17); }
  .scale-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale-proof > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .scale-proof > div:nth-child(4) { border-top: 1px solid var(--line); }
  .complexity-home .scale-proof > div:nth-child(3),
  .complexity-home .scale-proof > div:nth-child(4) { border-top-color: rgba(255,255,255,.17); }
  .remote-pathway { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .complexity-proof-grid,
  .scale-proof { grid-template-columns: 1fr; }
  .complexity-proof-grid article,
  .complexity-proof-grid article:first-child,
  .complexity-proof-grid article:nth-child(3),
  .complexity-proof-grid article:last-child {
    padding: 25px 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.17);
  }
  .complexity-proof-grid article:first-child { border-top: 0; }
  .scale-proof > div,
  .scale-proof > div:first-child,
  .scale-proof > div:nth-child(3) {
    padding: 22px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .scale-proof > div:first-child { border-top: 0; }
  .complexity-home .scale-proof > div { border-top-color: rgba(255,255,255,.17); }
}
/* V27.1 content refinement */
.remote-pathway-v271{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:42px 0 0;padding:0;list-style:none;counter-reset:pathway}
.remote-pathway-v271:before{content:"";position:absolute;top:21px;left:10%;right:10%;height:2px;background:#c7cfe9}
.remote-pathway-v271 li{position:relative;z-index:1;padding:0 16px;color:var(--graphite);text-align:center;font-weight:700;line-height:1.35}
.remote-pathway-v271 li:before{counter-increment:pathway;content:counter(pathway,decimal-leading-zero);display:grid;place-items:center;width:44px;height:44px;margin:0 auto 14px;border-radius:50%;background:var(--sg-blue);color:var(--white);font-size:12px;letter-spacing:.08em}
.predeployment-gallery-v271{grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}
.predeployment-gallery-v271 figure,.predeployment-gallery-v271 figure:first-child{grid-column:span 4}
.predeployment-gallery-v271 figure:nth-child(1),.predeployment-gallery-v271 figure:nth-child(4){grid-column:span 8}
.predeployment-gallery-v271 figure:nth-child(1) img,.predeployment-gallery-v271 figure:nth-child(4) img,.predeployment-gallery-v271 img{aspect-ratio:16/10}
@media(max-width:980px){.remote-pathway-v271{grid-template-columns:1fr;gap:18px}.remote-pathway-v271:before{top:0;bottom:0;left:21px;right:auto;width:2px;height:auto}.remote-pathway-v271 li{display:grid;grid-template-columns:44px 1fr;align-items:center;gap:16px;padding:0;text-align:left}.remote-pathway-v271 li:before{margin:0}.predeployment-gallery-v271 figure,.predeployment-gallery-v271 figure:first-child,.predeployment-gallery-v271 figure:nth-child(1),.predeployment-gallery-v271 figure:nth-child(4){grid-column:span 6}}
@media(max-width:680px){.predeployment-gallery-v271 figure,.predeployment-gallery-v271 figure:first-child,.predeployment-gallery-v271 figure:nth-child(1),.predeployment-gallery-v271 figure:nth-child(4){grid-column:1/-1}}
