/*
Theme Name: Safeguard Security V1
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: 1.0.0
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(3.2rem, 7vw, 5.3rem); max-width: 900px; }
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); }
.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(85vh - 88px); display: flex; align-items: center; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-lede { font-size: 1.28rem; color: var(--graphite); margin-top: 30px; }
.visual-panel {
  background: var(--ink); color: white; border-radius: 8px; min-height: 520px; padding: 56px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.visual-panel::after { content: ""; position: absolute; inset: auto -120px -140px auto; width: 360px; height: 360px; border: 1px solid #445; border-radius: 50%; }
.visual-kicker { color: #bcc6ff; font-size: 13px; letter-spacing: .12em; font-weight: 700; }
.visual-stack { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 40px 0; }
.visual-stack div { border: 1px solid #4c5560; padding: 14px 18px; border-radius: 4px; }
.visual-stack span { color: #9aa4ad; }
.visual-result { border-left: 3px solid var(--sg-blue); padding-left: 18px; font-size: 1.45rem; max-width: 420px; }

.problem-section { background: var(--warm); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.problem-item { padding: 42px 34px 44px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.problem-item:nth-child(even) { padding-left: 34px; border-left: 1px solid var(--line); }
.problem-item span { color: var(--sg-blue); font-weight: 800; font-size: 13px; }
.problem-item h3 { margin: 12px 0; font-size: 1.55rem; }
.problem-item p { color: var(--slate); margin: 0 0 16px; }
.problem-item strong { color: var(--sg-blue); font-size: 15px; }
.problem-item:hover h3 { color: var(--sg-blue); }
.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; }

.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); }

.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: 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; }
  .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; }
}

@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-grid { display: block; }
  .hero-visual { margin-top: 46px; }
  .visual-panel { padding: 34px 26px; min-height: 360px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-item, .problem-item:nth-child(even) { padding: 30px 0; border-left: 0; }
  .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; }
}


/* =========================================================
   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: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.engineering-proof .proof-flow span {
  border: 1px solid rgba(255,255,255,.20);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.engineering-proof p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.78);
}
@media (max-width: 760px) {
  .engineering-proof { min-height: auto; }
}
