/* ==========================================================
   Sentry Services: one site, two divisions.
   Each division is a theme: set data-division on <html>.
   ========================================================== */

:root {
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Security: dark charcoal, signal red, warm cream (from sentry-security.ca) */
html[data-division="security"] {
  --bg: #141716;
  --bg-alt: #1b1f1e;
  --surface: #222726;
  --surface-2: #2a302e;
  --text: #fff4e9;
  --muted: #c4b9ae;
  --line: rgba(255, 234, 208, .12);
  --accent: #d52b13;
  --accent-hover: #ff6a52;
  --accent-press: #b8230e;
  --accent-ink: #fff4e9;
  --accent-soft: rgba(237, 77, 54, .14);
  --highlight: #ffead0;
  --hero-a: rgba(237, 77, 54, .28);
  --hero-b: rgba(255, 234, 208, .06);
  --cross-bg: #ffead0;
  --cross-text: #1d201f;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* Health: deep navy, sky blue, soft mint (from sentrysecurityhealth.ca) */
html[data-division="health"] {
  --bg: #f6fbf8;
  --bg-alt: #ebf5ee;
  --surface: #ffffff;
  --surface-2: #f1f7fb;
  --text: #001b2e;
  --muted: #4b6070;
  --line: rgba(0, 61, 102, .12);
  --accent: #003d66;
  --accent-hover: #00528a;
  --accent-press: #00528a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(51, 173, 255, .14);
  --highlight: #33adff;
  --hero-a: rgba(51, 173, 255, .30);
  --hero-b: rgba(162, 197, 226, .35);
  --cross-bg: #003d66;
  --cross-text: #ebf5ee;
  --shadow: 0 10px 30px rgba(0, 40, 70, .10);
  color-scheme: light;
}

/* Show only the active division's content */
html[data-division="security"] .only-health,
html[data-division="health"] .only-security { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color .45s var(--ease), color .45s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
html[data-division="health"] .eyebrow { color: #0071b5; }
html[data-division="security"] .eyebrow { color: var(--accent-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-press); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
html[data-division="security"] .btn--ghost { border-color: rgba(255, 234, 208, .35); }
html[data-division="health"] .btn--ghost { border-color: rgba(0, 61, 102, .3); }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: var(--cross-text); color: var(--cross-bg); }
.btn--light:hover { opacity: .9; }

/* ---------- Top bar ---------- */
.topbar { background: var(--accent); color: var(--accent-ink); font-size: .875rem; transition: background-color .45s var(--ease); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.topbar__item svg { width: 15px; height: 15px; fill: currentColor; opacity: .85; }
.topbar__phone strong { font-weight: 700; }
.topbar__phone:hover strong { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .45s var(--ease);
}
.header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.brand__logo { height: 54px; width: auto; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; }
.brand__sub { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }

/* ---------- Division switch ---------- */
.switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-left: auto;
  flex-shrink: 0;
}
.switch__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  transition: transform .4s var(--ease), background-color .45s var(--ease);
}
html[data-division="health"] .switch__thumb { transform: translateX(100%); }
.switch__btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-size: .92rem; font-weight: 600;
  padding: .5rem 1rem;
  min-width: 112px;
  border: 0; background: none; color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  transition: color .3s;
}
.switch__btn svg { width: 16px; height: 16px; fill: currentColor; }
.switch__btn { text-decoration: none; }
.switch__btn[aria-current] { color: var(--accent-ink); }
.switch__btn:not([aria-current]):hover { color: var(--text); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav__cta { padding: .6rem 1.1rem; font-size: .95rem; }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Division panel transition ---------- */
.division { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 8vw, 96px); }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 10%, var(--hero-a), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, var(--hero-b), transparent 70%);
}
html[data-division="security"] .hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
  opacity: .6;
}
.hero__inner { max-width: 980px; margin-left: 0; margin-right: auto; }
@media (min-width: 1180px) { .hero__inner { margin-left: calc((100vw - var(--wrap)) / 2); } }
.hero h1 { max-width: 17ch; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 3rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 900px; }
.stats > div { background: var(--surface); padding: 1.25rem 1.4rem; }
.stats dt { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
html[data-division="security"] .stats dt { color: var(--highlight); }
.stats dd { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-alt); transition: background-color .45s var(--ease); }
.section__head { max-width: 680px; margin-bottom: 2.5rem; }
.section__head p:last-child { color: var(--muted); }
.section__head--center { text-align: center; margin-inline: auto; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card p { color: var(--muted); }
.card--feature { grid-row: span 2; background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 1.1rem; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-division="security"] .card__icon svg { stroke: var(--accent-hover); }
.card__link { margin-top: auto; padding-top: .75rem; font-weight: 600; text-decoration: none; color: var(--accent); }
html[data-division="security"] .card__link { color: var(--highlight); }
.card__link::after { content: " →"; transition: margin .2s; }
.card__link:hover::after { margin-left: .25rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; font-size: .96rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--top { align-items: start; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.feature-list li { padding-left: 1.1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.feature-list strong { color: var(--text); }

.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.callout__tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--highlight); }
.callout p { color: var(--muted); font-size: .98rem; }
.callout__title { font-size: 1.25rem; }
.callout__result { color: var(--text) !important; font-weight: 600; border-top: 1px solid var(--line); padding-top: 1rem; margin: 0; }

/* ---------- Health tiles ---------- */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tiles li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; color: var(--muted); font-size: .95rem; line-height: 1.5; border-top: 4px solid var(--highlight); }
.tiles strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: .25rem; }
.tiles__wide { grid-column: 1 / -1; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: p; }
.pillars > div { counter-increment: p; border-top: 2px solid var(--accent); padding-top: 1.25rem; }
.pillars > div::before { content: "0" counter(p); display: block; font-weight: 800; font-size: .85rem; color: var(--num, #0071b5); margin-bottom: .5rem; letter-spacing: .1em; }
.pillars p { color: var(--muted); }

/* ---------- Clients ---------- */

.logo-wall { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.logo-wall li { flex: 0 1 calc(25% - .75rem); min-width: 150px; height: 128px; display: grid; place-items: center; padding: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.logo-wall li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-wall img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; }

/* ---------- Crosslink band ---------- */
.crosslink { background: var(--cross-bg); color: var(--cross-text); padding: clamp(48px, 7vw, 80px) 0; transition: background-color .45s var(--ease); }
.crosslink__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.crosslink .eyebrow { color: inherit !important; opacity: .7; }
.crosslink h2 { margin-bottom: .35rem; }
.crosslink p { margin: 0; opacity: .85; max-width: 56ch; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
html[data-division="security"] .contact__list svg { stroke: var(--accent-hover); }
.contact__list span { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact__list a { text-decoration: none; font-weight: 600; word-break: break-word; }
.contact__list a:hover { text-decoration: underline; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: var(--shadow); }
.form__division { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.form__division legend { font-weight: 600; font-size: .92rem; margin-bottom: .6rem; padding: 0; }
.form__division label { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: .95rem; transition: border-color .2s, background-color .2s; }
.form__division label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.form__division input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field label span { color: var(--accent); }
html[data-division="security"] .field label span { color: var(--accent-hover); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
html[data-division="security"] .field input,
html[data-division="security"] .field select,
html[data-division="security"] .field textarea { border-color: rgba(255, 234, 208, .18); }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--highlight); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #e5484d !important; }
.field__error { margin: .35rem 0 0; font-size: .85rem; color: #f2555a; min-height: 0; }
html[data-division="health"] .field__error { color: #c62a2f; }
.field__error:empty { display: none; }
.field--check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--muted); }
.field--check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--accent); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { text-align: center; font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }
.form__status:empty { display: none; }
.form__status { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; }
.form__status.is-ok { background: rgba(46, 160, 90, .14); border: 1px solid rgba(46, 160, 90, .45); }
.form__status.is-err { background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .45); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.footer { background: #0e1110; color: #d8cfc6; padding: 64px 0 24px; font-size: .95rem; }
html[data-division="health"] .footer { background: #001b2e; color: #c7d9e8; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer strong { color: #fff; font-size: 1.1rem; }
.footer__brand p { margin: .6rem 0 1rem; max-width: 36ch; opacity: .8; }
.footer__title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { text-decoration: none; opacity: .85; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer .mobile-call { opacity: 1; text-decoration: none; }
.footer__logo { display: flex; align-items: center; gap: .9rem; }
.footer__logo img { height: 84px; width: auto; }
.footer__social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #a69f97; }
html[data-division="health"] .footer__legal { color: #9fb4c4; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer__legal a { opacity: 1; text-decoration: underline; text-underline-offset: 2px; }

.mobile-call { display: none; }

/* ---------- Nav dropdown ---------- */
.nav a[aria-current="page"] { color: var(--text) !important; font-weight: 600; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub { position: absolute; top: calc(100% + 12px); left: -1rem; min-width: 240px; display: grid !important; gap: 0 !important; padding: .5rem !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .55rem .75rem; border-radius: 8px; }
.sub a:hover { background: var(--accent-soft); }

/* ---------- Subpages ---------- */
html[data-division="security"] { --num: var(--accent-hover); }
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 22ch; }
.page-hero .lede { max-width: 66ch; }
.page-hero .hero__actions { margin-bottom: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

.prose { max-width: 70ch; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--text); }
.prose--lead p:first-child { font-size: 1.2rem; color: var(--text); }
.split .prose { max-width: none; }

.spaced-top { margin-top: 2.5rem; }
.btn-row, .link-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.link-row { margin-top: 1.5rem; }
.link-row .card__link { padding: 0; }

.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.card--wide { grid-column: 1 / -1; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card .ticks { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

.faq { display: grid; gap: .75rem; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
html[data-division="security"] .faq summary::after { color: var(--accent-hover); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--muted); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.quote { margin: 0; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.25rem; font-size: 1.1rem; line-height: 1.6; position: relative; padding-top: 1.75rem; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -.6rem; left: -.1rem; font-size: 3.5rem; line-height: 1; color: var(--accent); font-weight: 800; }
html[data-division="security"] .quote blockquote::before { color: var(--accent-hover); }
.quote figcaption { margin-top: auto; color: var(--muted); font-size: .92rem; }
.quote figcaption strong { color: var(--text); display: block; }

.story { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.story:first-child { border-top: 0; padding-top: 0; }
.story__title { font-size: 1.4rem; margin-bottom: .35rem; }
.story__tag { font-size: .88rem; color: var(--muted); margin: 0; }
.story .prose p:last-child { margin-bottom: 0; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li.chip--feature { border: 1.5px solid var(--accent-hover); background: var(--accent-soft); font-weight: 600; }
.chip-note { margin: 1rem 0 0; font-size: .92rem; color: var(--muted); max-width: 60ch; }
.chip-note strong { color: var(--text); }
.chips li { padding: .55rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: .95rem; }

.area { padding: clamp(40px, 6vw, 64px) 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.area h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.area p { color: var(--muted); max-width: 75ch; margin: 0; }

.feature-band { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }

/* ---------- Careers form ---------- */
.field input[type="file"] { padding: .6rem; background: var(--bg); cursor: pointer; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: .9rem; margin-right: .75rem; padding: .45rem .9rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.field__hint { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Photography ---------- */
.hero--media, .page-hero--media { isolation: isolate; }
.hero__bg { z-index: -2; }
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: -1;
  width: 52%; height: 100%;
  object-fit: cover; object-position: center 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .55) 22%, #000 55%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .55) 22%, #000 55%);
  animation: heroPhoto .9s var(--ease) both;
}
html[data-division="security"] .hero__photo { filter: brightness(.88) saturate(.95); }
@keyframes heroPhoto { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.hero--media .hero__inner { max-width: var(--wrap); margin-inline: auto; }
.hero--media .hero__inner > :not(.stats),
.page-hero--media .wrap > * { max-width: min(48%, 600px); }
.hero--media .stats { position: relative; }
html[data-division="security"] .hero--media .stats > div { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html[data-division="health"] .hero--media .stats > div { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.media { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split .media { margin-top: 1.75rem; }
.split > .media { margin-top: 0; }

.card--spotlight { display: grid; grid-template-columns: 1fr 1.15fr; padding: 0; overflow: hidden; margin-bottom: 1.25rem; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card--spotlight:hover { transform: none; }
.card__photo { width: 100%; height: 0; min-height: 100%; object-fit: cover; object-position: center 22%; }
.card__body { padding: clamp(1.5rem, 3.5vw, 2.5rem); display: flex; flex-direction: column; }
.card__body h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.card__tag { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--highlight); margin-bottom: .9rem; }
.card__body .btn-row { margin-top: 1.25rem; }
.ticks--2col { grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }

.mosaic { display: grid; grid-template-columns: 1.4fr 1fr .8fr; grid-template-rows: 240px 240px; gap: 1rem; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); transition: transform .5s var(--ease); }
.mosaic img:hover { transform: scale(1.02); }
.mosaic img:nth-child(1) { grid-row: 1 / 3; }
.mosaic img:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }

.stats--stack { grid-template-columns: 1fr; }
.spaced-top-sm { margin-top: 1.25rem; }
.quote--feature { max-width: 860px; margin-inline: auto; text-align: center; background: none; border: 0; padding: 0; }
.quote--feature blockquote { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 500; line-height: 1.45; padding-top: 2.5rem; }
.quote--feature blockquote::before { left: 50%; transform: translateX(-50%); }

/* Scroll-in motion (only when JS runs and the visitor hasn't asked for reduced motion) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Privacy policy ---------- */
.policy h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.policy h2:first-child { margin-top: 0; }
.policy .ticks { margin-bottom: 1rem; color: var(--muted); }
.policy a { color: var(--text); }

/* ---------- Review drafts only ---------- */
.review-bar { background: #fff3c4; color: #3d2f00; font-size: .9rem; }
.review-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.review-bar__btn { font: inherit; font-weight: 700; color: #3d2f00; background: none; border: 1.5px solid #3d2f00; border-radius: 999px; padding: .25rem .8rem; cursor: pointer; }
.review-bar__btn:hover { background: #3d2f00; color: #fff3c4; }
.review-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-weight: 700; font-size: .92rem;
  padding: .7rem 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: #ffd84d; color: #2b2100; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.review-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.review-fab:hover { background: #ffe57f; }
body:has(.review-fab) .footer { padding-bottom: 96px; }
.feedback { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: calc(var(--radius) + 4px); background: transparent; color: var(--text); }
.feedback::backdrop { background: rgba(0, 0, 0, .55); }
.feedback .form { box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.feedback__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.feedback__head h2 { font-size: 1.4rem; margin: 0; }
.feedback__close { font-size: 1.8rem; line-height: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); cursor: pointer; }
.feedback .field__hint { margin: .5rem 0 1.25rem; }

/* ==========================================================
   Responsive
   ========================================================== */
/* The full nav needs ~1140px next to the switch; below that it folds into the menu */
@media (max-width: 1140px) {
  :root { --header-h: 64px; }
  .menu-btn { display: inline-flex; }
  .switch { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 100px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .95rem 0; font-size: 1.1rem !important; border-bottom: 1px solid var(--line); color: var(--text) !important; }
  .nav__cta { margin-top: 1rem; }
  .sub { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 1rem !important; min-width: 0; }
  .sub::before, .has-sub > a::after { display: none; }
  .sub a { font-size: 1rem !important; color: var(--muted) !important; padding: .7rem 0 !important; border-radius: 0; }
}

@media (max-width: 900px) {
  .hero--media, .page-hero--media { padding-top: 0; }
  .hero__photo {
    position: relative; display: block; width: 100%; height: clamp(220px, 52vw, 380px); margin-bottom: 1.75rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
  }
  .hero--media .hero__inner > :not(.stats),
  .page-hero--media .wrap > * { max-width: none; }
  .card--spotlight { grid-template-columns: 1fr; }
  .card__photo { min-height: 0; height: clamp(260px, 75vw, 420px); }
  .ticks--2col { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: .75rem; }

  .split, .contact__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillars--4 { grid-template-columns: 1fr 1fr; }
  .card--feature { grid-row: auto; }
  .crosslink__inner { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 72px; }
  .topbar__item:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { gap: .6rem; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.1rem; }
  .brand__logo { height: 46px; }
  .switch__btn { min-width: 0; padding: .5rem .75rem; font-size: .85rem; }
  .switch__btn svg { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 1.1rem; }
  .stats dt { min-width: 5.5rem; font-size: 1.4rem; }
  .tiles { grid-template-columns: 1fr; }
  .pillars--4 { grid-template-columns: 1fr; }
  .logo-wall { gap: .6rem; }
  .logo-wall li { flex-basis: calc(50% - .3rem); min-width: 0; height: 96px; padding: .8rem; }
  .logo-wall img { max-height: 60px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; gap: .6rem; }
  .mosaic img:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  .mosaic img:nth-child(4) { grid-column: 2; grid-row: 2 / 4; }
  .form__row, .form__division { grid-template-columns: 1fr; }
  .crosslink .btn { width: 100%; white-space: normal; }
  .footer__inner { grid-template-columns: 1fr; }
  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    padding: .9rem; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 700; text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  }
  .review-fab { bottom: calc(84px + env(safe-area-inset-bottom)); padding: .6rem .95rem; font-size: .85rem; }
  .review-bar__note { display: none; }
  .mobile-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
}

@media (max-width: 400px) {
  .brand__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
