/* BX1 Group — site theme.
   One clean system implementing the final rendered design of the handoff
   reference (the "Bold" petrol/teal/amber theme). The reference applied this
   look as an override stylesheet fighting an older inline theme; here the
   merged result is expressed directly. Design tokens follow the handoff README.

   Geometry: border-radius 0 everywhere, no decorative shadows, 4px grid gaps,
   ~76px section rhythm, 1360px max content width.
   Type: Barlow Condensed (headings, uppercase) / Barlow (body) / IBM Plex Mono
   (figures, labels, eyebrows). */

:root {
  --primary: #08222b;   /* petrol ink — headers, footer, scrims, tab bar */
  --secondary: #0b4c58;
  --accent: #0f6b7a;    /* teal — links, trails, alternating blocks */
  --amber: #e0a010;     /* primary CTA fill, active markers, hairline rules */
  --amber-hover: #c98d08;
  --bg: #f4f2ed;
  --bg-accent: #e7e3da;
  --text: #14262d;
  --muted: #5b6b70;
  --white: #ffffff;
  --line: rgba(8, 34, 43, .14);
  --line-strong: rgba(8, 34, 43, .24);
  --max: 1360px;
}

/* ---------- Ground ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: 36px; /* room for the fixed utility bar */
  color: var(--text);
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  background: var(--bg);
  overflow-x: hidden;
}
img, canvas, svg, iframe, table { max-width: 100%; }
a { text-decoration: none; color: inherit; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin: auto; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  letter-spacing: -.005em;
  color: var(--primary);
  margin-top: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(46px, 7.4vw, 108px); line-height: .9; font-weight: 700; margin: 0 0 22px; }
h2 { font-size: clamp(34px, 4.6vw, 68px); line-height: .94; font-weight: 700; margin: 0 0 18px; }
h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.02; font-weight: 600; margin: 0 0 12px; }
h4 { font-size: 19px; font-weight: 600; letter-spacing: .02em; margin: 0 0 8px; }
p { margin-top: 0; color: var(--muted); }
.lead { font-size: 18.5px; line-height: 1.6; color: var(--muted); max-width: 780px; }
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 18px;
}
.num, .stat, .legalline, .utility-inner, .footaccred-list, .footnote-accred {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

/* ---------- Utility bar (fixed, petrol) ---------- */
.utility-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  min-height: 36px;
  background: var(--primary);
  color: rgba(255, 255, 255, .74);
  z-index: 10000;
  font-size: 11px;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.utility-inner {
  width: min(var(--max), calc(100% - 44px));
  margin: auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.utility-left {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}
.utility-left span { display: inline-flex; align-items: center; white-space: nowrap; }
.utility-bar a { color: #fff; }
.utility-bar a:hover { color: var(--amber); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 36px;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.head { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: .03em;
  color: var(--primary);
}
.logo img { height: 38px; width: auto; object-fit: contain; }
/* The symbol artwork is white, which disappears against the cream header.
   Give it a petrol ground of its own (the footer sits on petrol already, so
   this is scoped to the header). */
.header .logo img {
  height: 50px;
  padding: 6px;
  box-sizing: border-box;
  background: var(--primary);
}
.nav { display: flex; gap: 24px; align-items: center; color: var(--text); font-size: 14.5px; font-weight: 500; }
.nav a { padding-bottom: 3px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--primary); border-bottom-color: var(--amber); }

/* Interim-width hamburger (941–1050px): the desktop nav no longer fits but the
   app-shell sheet only takes over at 940px. */
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--primary);
  font-weight: 700; font-size: 22px;
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { border-color: var(--amber); }
.mobile-links {
  position: fixed;
  left: 14px; right: 14px; top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.mobile-links a {
  display: block;
  padding: 14px 16px;
  color: var(--primary);
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid var(--line);
}
.mobile-links a:hover { border-color: var(--amber); }
@media (max-width: 1050px) { .nav { display: none; } .mobile-menu { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: .22s ease;
  cursor: pointer;
}
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--primary); }
.btn.primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn.secondary { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--primary); }

/* ---------- Heroes: full-bleed photo, ink scrim ---------- */
.hero, .pagehero {
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
}
.hero { min-height: 640px; display: flex; align-items: center; }
.pagehero { min-height: 380px; display: flex; align-items: center; padding: 92px 0 74px; }
.hero:before, .pagehero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, var(--primary) 14%, rgba(8, 34, 43, .74) 56%, rgba(8, 34, 43, .32) 100%);
  z-index: 0;
}
.hero .wrap, .pagehero .wrap { position: relative; z-index: 1; }
.hero h1, .pagehero h1, .hero h2, .pagehero h2 { color: #fff; }
.hero p, .pagehero p, .hero .lead, .pagehero .lead { color: rgba(255, 255, 255, .84); }
.hero .eyebrow, .pagehero .eyebrow { color: var(--amber); }
.hero .btn.secondary, .pagehero .btn.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
}

/* ---------- Sections & grids ---------- */
section { padding: 96px 0; }
.compact { padding: 76px 0; }
.row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.title { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.title p { max-width: 620px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }

.card, .panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 30px;
}
.card { display: block; transition: border-color .22s ease; }
.card:hover { border-color: var(--primary); }
.link {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  margin-top: 12px;
}
.content .panel { margin-bottom: 24px; }
ul { color: var(--muted); padding-left: 22px; }
li { margin-bottom: 8px; }

/* ---------- Process steps ---------- */
.step { border-top: 1px solid var(--line-strong); padding: 28px 8px 0; }
.num { color: var(--accent); font-weight: 500; letter-spacing: .16em; font-size: 13px; margin-bottom: 18px; }
.checks { display: grid; gap: 14px; }
.check { border: 1px solid var(--line); background: #fff; padding: 20px; color: var(--muted); }
.check strong { color: var(--primary); }

/* ---------- Division blocks (alternating petrol/teal) ---------- */
.home-division-card, .home-sector-card, .division-card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home-division-card > *, .home-sector-card > *, .division-card > * { position: relative; z-index: 1; }
.home-division-card { min-height: 270px; }
.home-sector-card { min-height: 330px; }
.division-block {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.division-block > * { position: relative; z-index: 1; }
.home-division-card, .division-block {
  border: 0;
  margin-bottom: 4px;
  padding: 38px 34px;
  background-color: var(--primary);
  color: #fff;
}
.home-division-card::before, .division-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(8, 34, 43, .94), rgba(8, 34, 43, .72));
}
.home-division-card h2, .home-division-card h3, .division-block h2, .division-block h3 { color: #fff; }
.home-division-card p, .division-block p { color: rgba(255, 255, 255, .82); }
/* Reversed type is for the block's own copy only: nested cards/tiles keep a
   light fill, so their text must stay dark. */
.home-division-card .card, .division-block .card,
.home-division-card .tile, .division-block .tile,
.home-division-card .panel, .division-block .panel { background: var(--bg-accent); }
.home-division-card .tile, .division-block .tile,
.home-division-card .tile p, .division-block .tile p,
.home-division-card .card p, .division-block .card p,
.home-division-card .panel p, .division-block .panel p,
.home-division-card .card li, .division-block .card li { color: var(--text); }
.home-division-card .tile h2, .home-division-card .tile h3, .home-division-card .tile h4,
.division-block .tile h2, .division-block .tile h3, .division-block .tile h4,
.home-division-card .card h2, .home-division-card .card h3, .home-division-card .card h4,
.division-block .card h2, .division-block .card h3, .division-block .card h4,
.home-division-card .panel h3, .division-block .panel h3 { color: var(--primary); }
.home-division-card .tile span, .division-block .tile span,
.home-division-card .card a, .division-block .card a { color: var(--accent); }
.home-division-card .eyebrow, .division-block .eyebrow { color: var(--amber); }
.home-division-card:nth-of-type(2n), .division-block:nth-of-type(2n) { background-color: var(--accent); }
.home-division-card:nth-of-type(2n)::before, .division-block:nth-of-type(2n)::before {
  background: linear-gradient(90deg, rgba(15, 107, 122, .94), rgba(15, 107, 122, .74));
}
.divhead { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; margin-bottom: 28px; }
.servicegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  border: 1px solid var(--line);
  padding: 22px;
  background: #fff;
  display: block;
  min-height: 148px;
  transition: border-color .22s ease;
}
.tile:hover { border-color: var(--primary); }

/* ---------- Sector cards (photo, ink gradient, white type) ---------- */
.sector-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  border: 0;
  padding: 28px;
  background-size: cover;
  background-position: center;
}
.sector-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(8, 34, 43, .1) 32%, var(--primary) 100%);
}
.sector-card > div { position: relative; z-index: 1; }
.sector-card h3, .sector-card h4 { color: #fff; }
.sector-card p { color: rgba(255, 255, 255, .8); }
.sector-card .link { color: #fff; border-bottom-color: var(--amber); }

/* ---------- Trust band ---------- */
.trust, .truststrip { background: var(--secondary); color: #fff; }
.trust { padding: 58px 0 48px; }
.trusthead { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: center; margin-bottom: 28px; }
.trusthead h2 { color: inherit; margin: 0; }
.trusthead p { color: rgba(255, 255, 255, .8); }
.trustrow { display: grid; grid-template-columns: repeat(9, 1fr); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.trustrow a {
  min-height: 92px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  font-size: 11px; line-height: 1.25; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--text);
}
.trustrow a:last-child { border-right: 0; }
.trustrow a:hover { background: var(--bg-accent); color: var(--accent); }
.trustrow a .blogo, .footlogos a .blogo { display: block; width: 34px; height: 34px; object-fit: contain; margin: 0 auto 7px; background: #fff; padding: 2px; }
.footlogos a .blogo { width: 30px; height: 30px; }
.trustgrid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 14px; }
.trustitem {
  min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  padding: 18px;
  background: #fff;
  font-weight: 700; text-transform: uppercase; font-size: 12px;
  color: var(--text);
}
.trustitem.sia { text-align: left; align-items: flex-start; justify-content: flex-start; }
.trustitem small { display: block; color: var(--muted); font-weight: 400; text-transform: none; margin-top: 6px; }
.trustitem span { display: block; }
.trustitem strong { display: block; color: var(--primary); font-size: 13px; margin-bottom: 5px; }
.trustitem small { font-size: 11px; line-height: 1.4; }
.tglogo { display: block; width: 40px; height: 40px; object-fit: contain; margin: 0 auto 9px; background: #fff; padding: 3px; }
.sia strong { display: block; color: var(--primary); font-size: 12px; margin-bottom: 7px; }
.sia small { display: block; color: var(--muted); font-size: 9px; line-height: 1.3; max-width: 132px; text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ---------- SIA ACS band — compliance geometry, never restyle the mark ------
   The mark stays 150x180, static, with 16px clear space; the SIA's rules
   forbid animating or shrinking it. Motion belongs to the band's background
   only (pseudo-elements behind the content). */
section:has(.acsband) { position: relative; overflow: hidden; isolation: isolate; }
section:has(.acsband) > * { position: relative; z-index: 1; }
section.acsband-wrap { background: var(--secondary); }
section:has(.acsband)::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: bx1Grid 34s linear infinite;
  pointer-events: none;
}
section:has(.acsband)::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%; left: -40%;
  width: 45%;
  z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(224, 160, 16, .13), rgba(15, 107, 122, .1), transparent);
  filter: blur(28px);
  animation: bx1Sweep 17s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bx1Grid { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(56px, 56px, 0); } }
@keyframes bx1Sweep {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translate3d(280%, 0, 0); opacity: 0; }
}
.acsband {
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 30px 32px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
  color: var(--text);
}
.acsband-head { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
.acsmark { flex: none; display: block; padding: 16px; background: #fff; border: 1px solid var(--line); line-height: 0; }
.acsmark img { display: block; width: 150px; height: 180px; object-fit: contain; }
.acsstate { flex: 1; min-width: 290px; }
.acsstate-lead {
  margin: 0 0 12px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--primary);
}
.acsstate-lead strong { color: var(--accent); }
.acsstate-body { margin: 0 0 12px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.acsstate-scope { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--primary); font-weight: 600; }
.acsstate-link { font-size: 13.5px; font-weight: 600; color: var(--accent); border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.acr-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.acr-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s;
}
.acr-item:hover { border-color: var(--primary); }
.acr-logo { display: block; height: 52px; width: auto; max-width: 104px; object-fit: contain; }
.acr-logo-text {
  display: grid; place-items: center;
  width: 52px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
}
.acr-item strong { font-size: 12.5px; line-height: 1.3; color: var(--primary); }
.acr-item small { font-size: 11px; line-height: 1.4; color: var(--muted); }
.trustnote {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  border-left: 3px solid var(--amber);
  padding: 12px 0 12px 14px;
}
.acsband .trustnote { margin: 24px 0 0; border-top: 0; }

/* ---------- "Arranged, not delivered" notice (systems pages) ---------- */
.arranged-notice { padding: 0; margin: -6px 0 0; }
.arranged-notice .arranged-box {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: #fff;
  padding: 22px 26px;
  margin-top: 26px;
}
.arranged-notice strong {
  display: block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 17px;
  margin-bottom: 8px;
}
.arranged-notice p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.arranged-notice p + p { margin-top: 12px; }

/* Marker on link tiles pointing at a service BX1 arranges rather than delivers */
.tile-arranged {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-accent);
  color: var(--primary);
  font-family: 'Barlow Condensed', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  line-height: 1;
}

/* ---------- Accreditations table (accreditations.html) ---------- */
.accred-h { font-family: 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; color: var(--primary); font-size: 30px; margin: 0 0 18px; }
.accred-tablewrap { overflow-x: auto; border: 1px solid var(--line-strong); background: #fff; }
.accred-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 940px; }
.accred-table th {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 2px solid var(--line-strong);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}
.accred-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; color: var(--muted); }
.accred-table tr:last-child td { border-bottom: none; }
.accred-table td strong { color: var(--primary); }
.accred-table a { color: var(--accent); font-weight: 600; }
.onreq { color: var(--muted); font-style: italic; }
.accred-foot { margin: 16px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }
.workingpanel { border-left: 4px solid var(--accent); }
.worklist { margin: 12px 0; padding-left: 22px; }
.worklist li { margin-bottom: 7px; }
.certcell { display: flex; align-items: center; gap: 12px; }
.certlogo { width: 52px; height: 52px; object-fit: contain; flex: none; background: #fff; border: 1px solid var(--line); padding: 4px; }
.certlogo-none { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.certcell strong { line-height: 1.35; }

/* ---------- Contact CTA band ---------- */
.cta { background: var(--amber); }
.cta h2, .cta .contact p { color: var(--primary); }
.cta .lead, .cta p { color: rgba(8, 34, 43, .8); }
.cta .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.cta .btn.primary:hover { background: #0b303c; border-color: #0b303c; }
.cta .panel { border-color: rgba(8, 34, 43, .3); }

/* ---------- Forms ---------- */
form { display: grid; gap: 13px; }
input, textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 16px;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 107, 122, .16); }
textarea { min-height: 140px; }
.contact p { color: var(--primary); }
.contact span {
  display: block;
  color: var(--muted);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
.footer { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.foot { padding: 54px 0 36px; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: 36px; }
.footer .logo, .footer h4 { color: #fff; }
.footer p, footer a { color: rgba(255, 255, 255, .70); }
footer h4 { margin: 0 0 14px; }
footer a { display: block; margin: 8px 0; }
footer a:hover { color: #fff; }
.footacc { border-top: 1px solid rgba(255, 255, 255, .12); padding: 28px 0; text-align: center; }
.footacc > .wrap > strong { display: none; } /* duplicate label; .footaccred-h carries the heading */
.footaccred { text-align: left; }
.footaccred-h {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.footaccred-list { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 12.5px; }
.footaccred-list a { display: inline; margin: 0; color: rgba(255, 255, 255, .82); }
.footaccred-list a:hover { color: #fff; text-decoration: underline; }
.footnote-accred { margin: 14px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.footnote-accred a { display: inline; margin: 0; color: rgba(255, 255, 255, .75); }
.footlogos { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.footlogos a { border: 1px solid rgba(255, 255, 255, .18); padding: 8px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.footer-policy-bar { background: #061a21; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-policy-inner {
  width: min(var(--max), calc(100% - 44px));
  margin: auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 600;
}
.footer-policy-left { white-space: nowrap; }
.footer-policy-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; white-space: nowrap; }
.footer-policy-right a { display: inline; margin: 0; color: #fff; }
.footer-policy-right a:hover { color: var(--amber); }
.footer-policy-right .divider { color: rgba(255, 255, 255, .45); }

/* ---------- Patrol canvas (page background, drawn by bx1-app.js) ---------- */
#bx1-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}
/* Lift page content above the canvas. :where() keeps this at zero
   specificity so it can never override the shell's own positioning
   (fixed utility bar, sticky header). */
body > :where(:not(#bx1-canvas):not(#bx1-tabs):not(#bx1-sheet):not(#bx1-scrim):not(#bx1-ask):not(#bx1-chat)) {
  position: relative;
  z-index: 1;
}
body > .header { z-index: 60; }
@media (prefers-reduced-motion: reduce) { #bx1-canvas { display: none; } }

/* ---------- Footer deployment map ---------- */
#bx1-footmap {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
#bx1-footmap-tiles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(1) grayscale(1) brightness(.72) contrast(1.05);
  pointer-events: none;
}
#bx1-footmap-overlay { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.footer > :where(:not(#bx1-footmap)) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #bx1-footmap { display: none; } }

/* ---------- Ask BX1 assistant ---------- */
#bx1-ask {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--amber);
  color: var(--primary);
  border: 0;
  cursor: pointer;
  padding: 19px 30px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(8, 34, 43, .38);
  transition: background .2s ease, transform .2s ease;
}
#bx1-ask svg { width: 26px; height: 26px; }
#bx1-ask:hover { background: var(--amber-hover); transform: translateY(-2px); }
#bx1-ask.on { background: var(--primary); color: #fff; }

#bx1-chat {
  position: fixed;
  right: 26px;
  bottom: 100px;
  z-index: 141;
  width: 460px;
  max-width: calc(100vw - 52px);
  max-height: min(720px, calc(100vh - 160px));
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--amber);
  display: none;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(8, 34, 43, .3);
}
#bx1-chat.on { display: flex; }
.bx1-chat-head {
  background: var(--primary);
  color: #fff;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex: none;
}
.bx1-chat-head strong {
  display: block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bx1-chat-head small {
  display: block;
  margin-top: 2px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.bx1-chat-x { background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px; }
.bx1-chat-x:hover { color: #fff; }
.bx1-chat-log { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-accent); }
.bx1-b {
  max-width: 90%;
  margin: 0 0 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}
.bx1-b.me { margin-left: auto; background: var(--primary); border-color: var(--primary); color: #fff; }
.bx1-b a { color: var(--accent); font-weight: 600; }
.bx1-b.me a { color: var(--amber); }
.bx1-b strong { color: inherit; }
.bx1-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.bx1-chips button {
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
}
.bx1-chips button:hover { border-color: var(--amber); }
.bx1-chat-foot { flex: none; padding: 13px 15px; border-top: 1px solid var(--line); background: var(--bg); }
.bx1-chat-row { display: flex; gap: 8px; }
.bx1-chat-row input {
  flex: 1;
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 16px;
  padding: 14px 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}
.bx1-chat-send {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 0;
  background: var(--amber);
  color: var(--primary);
  cursor: pointer;
}
.bx1-chat-send:hover { background: var(--amber-hover); }
.bx1-chat-foot small { display: block; margin-top: 9px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.bx1-chat-foot small a { color: var(--accent); font-weight: 600; }

@media (max-width: 940px) {
  #bx1-ask { bottom: 98px; right: 16px; padding: 16px 22px; font-size: 19px; }
  #bx1-chat { bottom: 164px; right: 14px; left: 14px; width: auto; max-height: calc(100vh - 240px); }
}
/* On a phone the assistant takes the screen: a 380px panel in a 360px viewport
   is unusable, and a half-height sheet cuts answers off mid-sentence. */
@media (max-width: 620px) {
  #bx1-ask { right: 14px; bottom: 94px; padding: 15px 20px; font-size: 18px; }
  #bx1-ask svg { width: 22px; height: 22px; }
  #bx1-chat {
    left: 0; right: 0; bottom: 84px;
    max-width: none;
    max-height: calc(100vh - 150px);
    border-left: 0; border-right: 0;
  }
  .bx1-chat-log { padding: 16px; }
  .bx1-b { max-width: 94%; font-size: 15px; }
}

/* ---------- Mobile app shell ---------- */
#bx1-tabs { display: none; }
#bx1-menu-btn {
  display: none;
  align-items: center;
  gap: 9px;
  background: var(--primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (max-width: 940px) {
  body { padding-bottom: 84px; }
  .nav { display: none !important; }
  /* The interim hamburger is replaced by the sheet menu, not supplemented. */
  .mobile-menu { display: none !important; }
  #bx1-menu-btn { display: inline-flex; }
  .head { gap: 14px; }
  .head .btn.primary { margin-left: auto; white-space: nowrap; }
  #bx1-tabs { display: grid; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .foot { grid-template-columns: 1fr; }
  /* swipeable rails for sector and division rows */
  .grid3.bx1-rail, .grid4.bx1-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .grid3.bx1-rail::-webkit-scrollbar, .grid4.bx1-rail::-webkit-scrollbar { display: none; }
  .grid3.bx1-rail > *, .grid4.bx1-rail > * { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Below ~620px the logo, CTA and Menu button cannot fit on one nowrap row.
   Drop the header CTA: the sheet menu ends in "Request an assessment" and the
   tab bar carries Call, so no action is lost. */
@media (max-width: 620px) {
  .head { gap: 12px; }
  .head .btn.primary { display: none; }
}

#bx1-tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  grid-template-columns: repeat(5, 1fr);
  background: var(--primary);
  padding-bottom: env(safe-area-inset-bottom);
}
#bx1-tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 4px 10px;
  color: rgba(255, 255, 255, .62);
  border-top: 3px solid transparent;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
}
#bx1-tabs a.on { color: #fff; border-top-color: var(--amber); }

#bx1-scrim {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(8, 34, 43, .62);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#bx1-scrim.on { opacity: 1; pointer-events: auto; }
#bx1-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 131;
  background: var(--bg);
  border-top: 4px solid var(--amber);
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.16, .84, .24, 1);
  max-height: 80vh; overflow-y: auto;
}
#bx1-sheet.on { transform: translateY(0); }
#bx1-sheet .bx1-grab { display: flex; justify-content: center; padding: 11px 0 4px; }
#bx1-sheet .bx1-grab span { width: 44px; height: 4px; background: var(--line-strong); display: block; }
#bx1-sheet .bx1-sheet-in { padding: 8px 22px 26px; }
#bx1-sheet a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 23px; font-weight: 600; text-transform: uppercase;
  color: var(--primary);
}
#bx1-sheet a:after { content: "\2192"; color: var(--accent); }
#bx1-sheet .bx1-sheet-cta {
  display: block; margin-top: 20px; background: var(--amber); color: var(--primary);
  text-align: center; padding: 18px; border-bottom: 0;
  font-size: 18px; letter-spacing: .05em;
}
#bx1-sheet .bx1-sheet-cta:after { content: none; }

/* Motion: only where a stalled animation is invisible rather than fatal.
   No opacity-driven reveals — content always paints. */
@keyframes bx1Pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.bx1-pulse { animation: bx1Pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .bx1-pulse { animation: none !important; }
  #bx1-sheet { transition: none; }
  section:has(.acsband)::before,
  section:has(.acsband)::after { animation: none !important; }
  section:has(.acsband)::after { opacity: .5; }
}

/* ================= RESPONSIVE =================
   Tuned to real device widths: 1024 iPad landscape / small laptops, 834 iPad
   portrait, 620 large phones, 430 iPhone Pro Max / Pixel, 380 small phones,
   plus a landscape-phone rule. Tap targets stay >= 44px. */

@media (max-width: 1024px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: clamp(40px, 7vw, 76px); }
  h2 { font-size: clamp(30px, 4.6vw, 54px); }
  .compact { padding: 62px 0; }
  .hero { min-height: 560px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .acsband-head { flex-wrap: wrap; }
}

@media (max-width: 980px) {
  .title { display: block; }
  .trusthead { grid-template-columns: 1fr; }
  .trustrow { grid-template-columns: 1fr; }
  .trustrow a { border-right: 0; border-bottom: 1px solid var(--line); }
  .divhead, .servicegrid, .trustgrid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) { .trustgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trustgrid { grid-template-columns: 1fr; } }

@media (max-width: 834px) {
  #bx1-footmap { height: 240px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .acr-row { grid-template-columns: repeat(3, 1fr); }
  .compact { padding: 54px 0; }
  .hero { min-height: 500px; }
  .pagehero { min-height: 320px; padding: 66px 0 54px; }
  .panel, .card { padding: 26px; }
  .home-division-card, .division-block { padding: 30px 26px; }
}

@media (max-width: 620px) {
  #bx1-footmap { height: 190px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: clamp(34px, 10vw, 52px); line-height: .94; }
  h2 { font-size: clamp(26px, 8vw, 38px); }
  h3 { font-size: 20px; }
  .lead, p { font-size: 16px; }
  .compact { padding: 44px 0; }
  .hero { min-height: 440px; }
  .pagehero { min-height: 260px; padding: 52px 0 42px; }
  .acr-row { grid-template-columns: repeat(2, 1fr); }
  .grid4 { grid-template-columns: 1fr; }
  /* Full-width buttons: thumb-friendly and no orphaned half-rows. */
  .hero .btn, .pagehero .btn, .cta .btn { display: block; width: 100%; text-align: center; }
  .hero .btn + .btn, .pagehero .btn + .btn { margin-top: 10px; }
  .btn { padding: 16px 22px; min-height: 44px; }
  .utility-inner { flex-direction: column; gap: 4px; align-items: flex-start; font-size: 12px; }
  .utility-left { flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
  /* The ACS mark must stay 150px wide, so it gets its own row rather than
     being squeezed alongside the statement. */
  .acsband { padding: 20px 18px; }
  .acsband-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .acsstate-lead { font-size: 21px; }
  .footer .foot { grid-template-columns: 1fr; gap: 30px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .footer-policy-inner { min-height: auto; padding: 14px 0; flex-direction: column; text-align: center; gap: 8px; font-size: 12px; }
  .footer-policy-right { justify-content: center; }
}

/* On a phone the utility bar is dropped entirely: the two phone lines stack
   into a 56px band that costs a fifth of the first screen, and the bottom tab
   bar already carries Call. The numbers stay in the markup (and in the footer)
   for crawlers and for anyone on a larger screen. */
@media (max-width: 760px) {
  .utility-bar { display: none; }
  .header { top: 0; }
  body { padding-top: 0; }
}

@media (max-width: 430px) {
  h1 { font-size: clamp(31px, 10.5vw, 42px); }
  h2 { font-size: 27px; }
  .compact { padding: 38px 0; }
  .hero { min-height: 400px; }
  .panel, .card { padding: 22px; }
  .acr-row { grid-template-columns: 1fr; }
  .bx1-chips button { font-size: 13px; padding: 11px 13px; }
  #bx1-tabs a { padding: 9px 2px 8px; }
  #bx1-tabs a span { font-size: 8.5px; }
}

@media (max-width: 380px) {
  .wrap { padding-left: 15px; padding-right: 15px; }
  h1 { font-size: 29px; }
  h2 { font-size: 24px; }
  #bx1-ask span { display: none; }
  #bx1-ask { padding: 16px; }
  #bx1-tabs a svg { width: 19px; height: 19px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 360px; }
  #bx1-chat { max-height: calc(100vh - 110px); bottom: 74px; }
  #bx1-tabs a { padding: 7px 2px 6px; }
}

/* Notch and home-indicator safe areas on iOS. */
@supports (padding: max(0px)) {
  #bx1-tabs { padding-bottom: max(env(safe-area-inset-bottom), 4px); }
  .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
}

/* Coarse pointers get no hover-dependent affordances and larger hit areas. */
@media (hover: none) and (pointer: coarse) {
  .nav a, .footer a, .bx1-chips button { min-height: 44px; display: inline-flex; align-items: center; }
}
