/* APBS Group website styles
   Flat, square, print-like. No floating cards, no drop shadows, no scroll animations. */
:root {
  --blue: #214B95;
  --blue-dark: #183872;
  --green: #3C7A49;
  --green-dark: #2C5E37;
  --yellow: #FDF151;
  --red: #CD3530;
  --red-dark: #A92822;
  --black: #0A0A0A;
  --ink: #141C24;
  --text: #28323B;
  --muted: #5A6570;
  --line: #D9DFE4;
  --paper: #FFFFFF;
  --grey: #F2F3F1;
  --accent: var(--blue);
  --accent-dark: var(--blue-dark);
  --radius: 2px;
  --wrap: 1200px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
body.div-scaffolding { --accent: var(--green); --accent-dark: var(--green-dark); }
body.div-electrical { --accent: var(--red); --accent-dark: var(--red-dark); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[id] { scroll-margin-top: 90px; }

h1, h2, h3 { color: var(--ink); font-weight: 800; font-stretch: 82%; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: 0; font-stretch: 90%; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hint { color: var(--muted); font-size: .95rem; margin: -.4rem 0 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Top bar */
.topbar { background: var(--ink); color: #C6D0D9; font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; min-height: 38px; padding: .3rem 0; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-note { margin-left: auto; }
@media (max-width: 720px) { .topbar-note, .topbar a[href^="mailto"] { display: none; } }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; position: relative; }
.brand img { width: 128px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav > a:not(.btn), .dd-btn { color: var(--ink); text-decoration: none; font: inherit; font-weight: 700; font-size: .98rem; padding: .35rem 0; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.nav > a:not(.btn):hover, .dd-btn:hover { color: var(--accent); }
.nav > a[aria-current="page"], .dd.is-active .dd-btn { border-bottom-color: var(--accent); }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: .45rem; }
.dd-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dd-menu { display: none; position: absolute; left: -1rem; top: calc(100% + 12px); min-width: 250px; background: #fff; border: 2px solid var(--ink); padding: .4rem 0; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd-menu a { display: block; padding: .6rem 1.1rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--grey); color: var(--accent); }
.dd-menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); }
.dd.open .dd-menu { display: block; }
@media (hover: hover) and (min-width: 1001px) { .dd:hover .dd-menu { display: block; } .nav:has(.dd.open) .dd:not(.open) .dd-menu { display: none; } }
.menu-btn { display: none; margin-left: auto; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); font: inherit; font-weight: 700; padding: .45rem .9rem; cursor: pointer; color: var(--ink); }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: -1.25rem; right: -1.25rem; top: calc(100% + 2px); background: #fff; border-bottom: 2px solid var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 0 1.25rem 1.25rem; max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a:not(.btn), .dd-btn { width: 100%; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--line); text-align: left; }
  .nav > a[aria-current="page"], .dd.is-active .dd-btn { color: var(--accent); border-bottom-color: var(--line); }
  .dd-menu { position: static; border: 0; border-bottom: 1px solid var(--line); padding: .2rem 0 .6rem; min-width: 0; }
  .dd-menu::before { display: none; }
  .dd-menu a { padding: .55rem .9rem; }
  .dd.open .dd-btn::after { transform: translateY(2px) rotate(-135deg); }
  .nav .nav-cta { margin-top: 1rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--accent); background: var(--accent); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white:hover { background: var(--grey); border-color: var(--grey); color: var(--ink); }
.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.text-link { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.text-link::after { content: " \2192"; }
.text-link:hover { color: var(--accent); }

/* Sections */
section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.mist { background: var(--grey); }
.head { max-width: 760px; margin-bottom: 2rem; }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.head-row h2 { margin: 0; }

/* Photo headers */
.has-photo { position: relative; isolation: isolate; background-color: var(--ink); background-size: cover; background-position: center 40%; background-repeat: no-repeat; }
.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; }

/* Home hero */
.hero-home { padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-home.has-photo::before { background: linear-gradient(90deg, rgba(12,18,24,.88) 0%, rgba(12,18,24,.7) 45%, rgba(12,18,24,.25) 100%); }
.hero-copy h1 { color: #fff; max-width: 20ch; font-size: clamp(2.4rem, 5.2vw, 4rem); }
.hero-copy .lead { color: rgba(255,255,255,.88); max-width: 52ch; }
@media (max-width: 700px) { .hero-home.has-photo::before { background: rgba(12,18,24,.72); } }

/* Divisions band */
.divisions-band { padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); background: var(--grey); }
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-top: 0; background: #fff; }
.division { display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.5rem; text-decoration: none; color: var(--text); border-top: 8px solid var(--dc); border-left: 2px solid var(--ink); }
.division:first-child { border-left: 0; }
.division:hover { color: var(--text); background: #FAFAF8; }
.division .logo { width: 170px; height: 80px; object-fit: contain; object-position: left center; margin-bottom: 1.1rem; }
.division h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.division ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.division li { padding: .45rem 0; border-top: 1px solid var(--line); }
.division .go { margin-top: auto; font-weight: 700; color: var(--dc); }
.division .go::after { content: " \2192"; display: inline-block; transition: transform .15s ease; }
.division:hover .go::after { transform: translateX(4px); }
.d-build { --dc: var(--blue); } .d-scaff { --dc: var(--green); } .d-elec { --dc: var(--red); }
@media (max-width: 900px) { .divisions { grid-template-columns: 1fr; } .division { border-left: 0; } }
.creds { margin: 1.4rem 0 0; max-width: none; font-weight: 700; color: var(--ink); font-size: .95rem; }
.creds span { color: #9AA5AE; margin: 0 .5rem; font-weight: 400; }

/* Division hero */
.hero-div { position: relative; overflow: hidden; isolation: isolate; background: var(--accent); color: #fff; border-bottom: 8px solid var(--band, var(--accent-dark)); padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
body.div-scaffolding .hero-div { --band: var(--yellow); }
body.div-electrical .hero-div { background: var(--black); --band: var(--red); }
.hero-div:not(.has-photo)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 24px); }
.hero-div.has-photo::before { background: linear-gradient(90deg, rgba(20,52,30,.95) 0%, rgba(44,94,55,.85) 50%, rgba(44,94,55,.4) 100%); }
.hero-div .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.hero-div h1 { color: #fff; }
.hero-div .lead { color: rgba(255,255,255,.88); }
.hero-div .logo { background: #fff; padding: 20px 24px; width: min(320px, 100%); justify-self: end; }
@media (max-width: 800px) {
  .hero-div .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-div .logo { justify-self: start; width: 220px; order: -1; }
  .hero-div.has-photo::before { background: rgba(28,66,38,.88); }
}

/* Page hero */
.hero-page { background: var(--grey); border-bottom: 2px solid var(--ink); padding: clamp(2.8rem, 6vw, 4.2rem) 0; }
.hero-page h1 { max-width: 22ch; margin-bottom: .3em; }
.hero-page .lead { margin: 0; }

/* Stats strip */
.stats-band { background: #fff; border-bottom: 2px solid var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.4rem 1.2rem 1.3rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.7rem); font-stretch: 80%; line-height: 1; color: var(--ink); font-weight: 800; }
.stat span:not(.num) { display: block; margin-top: .35rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Service lists: ruled rows, not boxes */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 2.5rem; border-top: 2px solid var(--ink); }
.service { padding: 1.2rem 0 1.3rem; border-bottom: 1px solid var(--line); }
.service h3 { margin-bottom: .3rem; }
.service p { color: var(--muted); margin: 0; }
.services-live .service { display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: var(--text); position: relative; padding-right: 1.6rem; }
.services-live .service::after { content: "\2192"; position: absolute; right: .2rem; top: 1.2rem; color: var(--accent); font-weight: 700; opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.services-live .service:hover::after, .services-live .service:focus-visible::after { opacity: 1; transform: none; }
.services-live .service:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.svc-ico { width: 28px; height: 28px; flex: none; margin-top: .1rem; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--ink); counter-reset: step; }
.steps li { counter-increment: step; padding: 1.3rem 1.5rem 1.4rem 0; }
.steps li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 2.6rem; font-weight: 800; font-stretch: 75%; line-height: 1; color: var(--accent); margin-bottom: .7rem; }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Split and key facts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.facts li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts strong { display: block; color: var(--ink); margin-bottom: .1rem; }

/* Panels */
.framed { background: #fff; border: 2px solid var(--ink); padding: clamp(1.4rem, 3.5vw, 2rem); }
.framed.accent { border-left: 8px solid var(--accent); }
.group-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .75rem; font-size: 1.6rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq-a p { color: var(--muted); margin: 0 0 1.2rem; }

/* CTA band */
.cta { background: var(--ink); color: #fff; padding: clamp(2.8rem, 6vw, 4rem) 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.cta h2 { color: #fff; margin: 0; }
.cta p { color: rgba(255,255,255,.8); margin: .4rem 0 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2.5rem; }
.quote { margin: 0; border-left: 6px solid var(--q, var(--blue)); padding: .2rem 0 .2rem 1.5rem; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1.08rem; color: var(--ink); }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: auto; color: var(--muted); font-size: .95rem; }
.quote figcaption strong { color: var(--ink); display: block; }
.quote.q-build { --q: var(--blue); } .quote.q-scaff { --q: var(--green); } .quote.q-elec { --q: var(--red); }
.quote.is-sample::before { content: "Sample text, replace before launch"; align-self: flex-start; font-size: .75rem; font-weight: 700; background: var(--yellow); color: var(--ink); padding: .15rem .55rem; margin-bottom: .8rem; }
.feature-quote { max-width: 900px; padding-left: clamp(1.4rem, 3vw, 2.2rem); }
.feature-quote blockquote { font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.45; font-weight: 500; }
.feature-quote blockquote p::before { content: "\201C"; }
.feature-quote blockquote p::after { content: "\201D"; }
.more-link { margin: 1.4rem 0 0; font-weight: 700; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 2rem; border-top: 2px solid var(--ink); }
.person { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.person strong { display: block; font-size: 1.08rem; color: var(--ink); }
.person span { color: var(--muted); font-size: .97rem; }

/* Accreditations */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 2rem; border-top: 2px solid var(--ink); }
.badge { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.badge h3 { margin-bottom: .2rem; }
.badge p { margin: 0; color: var(--muted); }

/* Project photos */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(180px, 250px)); gap: 6px; }
.tile { position: relative; display: block; overflow: hidden; background: var(--ink); }
.tile:first-child { grid-row: span 2; }
.tile:nth-child(4) { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.tile:hover img { opacity: .85; }
.tile-cap { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #C6D0D9; font-size: .88rem; padding: .45rem .8rem; }
.tile-cap strong { color: #fff; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px 160px; } .tile:first-child { grid-row: auto; grid-column: span 2; } .tile:nth-child(4) { grid-column: span 2; } }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 2rem 1.25rem; }
.project { display: block; text-decoration: none; color: var(--text); }
.project .ph { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.project .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.project:hover .ph img { opacity: .85; }
.project .count { position: absolute; right: 0; bottom: 0; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; padding: .25rem .6rem; }
.project .cap { display: block; padding: .7rem 0 0; color: var(--muted); font-size: .95rem; border-top: 4px solid var(--accent); }
.project .cap strong { display: block; color: var(--ink); font-size: 1.05rem; }
.project:hover .cap strong { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8,12,16,.94); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; }
.lightbox figcaption { color: #fff; font-weight: 600; text-align: center; }
.lightbox button { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); border-radius: var(--radius); width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; justify-self: center; }
.lightbox button:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.lightbox .lb-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.6rem; }
.lightbox .lb-prev { grid-column: 1; grid-row: 1; }
.lightbox .lb-next { grid-column: 3; grid-row: 1; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 44px 1fr 44px; } .lightbox button { width: 40px; height: 40px; font-size: 1.5rem; } }

/* Vacancies: a list, like a jobs board */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chip { font: inherit; font-weight: 700; font-size: .92rem; padding: .45rem .95rem; border-radius: var(--radius); border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.jobs { border-top: 2px solid var(--ink); }
.job { --q: var(--blue); display: grid; grid-template-columns: 2.2fr 1fr 1.2fr .9fr auto; gap: 1.2rem; align-items: center; padding: 1.2rem 0 1.2rem 1.1rem; border-bottom: 1px solid var(--line); border-left: 6px solid var(--q); text-decoration: none; color: var(--text); }
.job.q-scaff { --q: var(--green); } .job.q-elec { --q: var(--red); } .job.q-office { --q: var(--ink); }
.job[hidden] { display: none; }
.job:hover { background: var(--grey); color: var(--text); }
.job-main strong { display: block; font-size: 1.25rem; font-stretch: 90%; color: var(--ink); line-height: 1.2; }
.job:hover .job-main strong { color: var(--q); text-decoration: underline; text-underline-offset: 3px; }
.job-sum { display: block; color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.job-col { font-size: .95rem; }
.job-col em { display: block; font-style: normal; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.job-go { font-weight: 700; color: var(--q); padding-right: 1rem; white-space: nowrap; }
.job-go::after { content: " \2192"; }
@media (max-width: 900px) { .job { grid-template-columns: 1fr 1fr; } .job-main { grid-column: 1 / -1; } .job-go { grid-column: 1 / -1; } }
.sample-tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--yellow); color: var(--ink); padding: .12rem .5rem; margin-bottom: .4rem; }
.no-jobs { max-width: 760px; margin-top: 1.5rem; }

/* Job page */
.job-hero { border-top: 8px solid var(--accent); }
.crumbs { margin: 0 0 1rem; font-weight: 700; font-size: .95rem; }
.crumbs a { color: var(--ink); }
.crumbs a::before { content: "\2190  "; }
.job-div { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.job-hero h1 { margin-top: .3rem; }
.job-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .job-layout { grid-template-columns: 1fr; } }
.job-facts { position: sticky; top: 100px; }
.job-facts dl { margin: 0; }
.job-facts dt { font-weight: 700; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 1rem; }
.job-facts dt:first-child { margin-top: 0; }
.job-facts dd { margin: .1rem 0 0; color: var(--ink); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding: .35rem 0 .35rem 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .8em; width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label { font-weight: 700; color: var(--ink); display: block; margin-bottom: .35rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #AEB8C1; border-radius: var(--radius); padding: .7rem .85rem; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 170px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; color: var(--text); }
.consent input { width: 18px; height: 18px; margin-top: .25rem; flex: none; }
.hp { position: absolute; left: -5000px; }
.status { padding: 1rem 1.2rem; font-weight: 600; display: none; }
.status.ok { display: block; background: #E7F2EA; border-left: 6px solid var(--green); }
.status.err { display: block; background: #FBEAE9; border-left: 6px solid var(--red); }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--ink); margin-top: 1.2rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: .2rem 0 0; }

/* Prose pages */
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }

/* Mobile quote bar on division pages */
.quote-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--ink); transform: translateY(110%); transition: transform .25s ease; }
.quote-bar .btn { flex: 1; min-height: 46px; padding: .5rem .8rem; white-space: nowrap; font-size: .95rem; }
.quote-bar .btn:first-child { flex: 1.6; }
.quote-bar.show { transform: none; }
@media (max-width: 800px) { .quote-bar { display: flex; } body.div-build .site-footer, body.div-scaffolding .site-footer, body.div-electrical .site-footer { padding-bottom: 6rem; } }

/* Footer */
.site-footer { background: #0F1620; color: #C3CDD6; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .7rem; text-transform: uppercase; letter-spacing: .05em; font-stretch: 100%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .22rem 0; }
.foot-logo { background: #fff; padding: 12px 14px; width: 170px; margin-bottom: 1rem; }
.legal { border-top: 1px solid #253341; margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: #8E9BA7; font-size: .88rem; }
.legal p { margin: 0; }

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

/* Office team chart: directors, then Alex, George and Aaron, then the office staff under Alex */
.org { --gap: 1.25rem; --drop: 22px; --card: calc((100% - 2 * var(--gap)) / 3); max-width: 820px; margin: 0 auto; }
.org-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); align-items: stretch; }
.org-row.r1 { grid-template-columns: repeat(2, 1fr); width: calc(2 * var(--card) + var(--gap)); margin: 0 auto; }
.org-row.r2, .org-row.r3 { padding-top: calc(var(--drop) * 2); }
/* horizontal line across each lower row, first card centre to last card centre */
.org-row.r2::before, .org-row.r3::before { content: ""; position: absolute; top: var(--drop); left: calc(var(--card) / 2); right: calc(var(--card) / 2); border-top: 2px solid var(--ink); }
.member { position: relative; margin: 0; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-top: 6px solid var(--mc, var(--ink)); }
.m-build { --mc: var(--blue); } .m-scaff { --mc: var(--green); } .m-elec { --mc: var(--red); }
/* short lines up from each card to the row line, and down from the directors and from Alex */
.r2 .member::before, .r3 .member::before { content: ""; position: absolute; left: 50%; top: calc(var(--drop) * -1 - 6px); height: var(--drop); border-left: 2px solid var(--ink); transform: translateX(-1px); }
.r1 .member::after, .member.has-team::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--drop) * -1 - 2px); height: var(--drop); border-left: 2px solid var(--ink); transform: translateX(-1px); }
.member .photo { display: block; aspect-ratio: 1; background: var(--grey); border-bottom: 2px solid var(--ink); overflow: hidden; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; }
.member .initials { display: grid; place-items: center; height: 100%; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; font-stretch: 80%; color: #A9B3BB; letter-spacing: .02em; }
.member figcaption { flex: 1; padding: .8rem .9rem .9rem; line-height: 1.3; }
.member figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; font-stretch: 90%; }
.member .role { display: block; color: var(--mc, var(--ink)); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .2rem; }
@media (max-width: 700px) {
  .org-row, .org-row.r1 { grid-template-columns: 1fr; width: auto; gap: .75rem; padding-top: .75rem; }
  .org-row::before, .member::before, .member::after { display: none !important; }
  .member { flex-direction: row; border-top-width: 2px; border-left: 6px solid var(--mc, var(--ink)); }
  .member .photo { flex: none; width: 88px; border-bottom: 0; border-right: 2px solid var(--ink); }
  .member .initials { font-size: 1.6rem; }
}

/* Careers: speculative applications band */
.speculative { background: var(--ink); color: rgba(255,255,255,.85); }
.speculative h2 { color: #fff; }
.spec-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.spec-actions { display: grid; border-top: 2px solid #fff; }
.spec-link { display: block; padding: 1rem 2rem 1rem 0; border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; position: relative; }
.spec-link em { display: block; font-style: normal; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #9FB0BF; font-weight: 700; }
.spec-link::after { content: "\2192"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); transition: transform .15s ease; }
.spec-link:hover { color: #fff; }
.spec-link:hover::after { transform: translate(4px, -50%); }
@media (max-width: 800px) { .spec-grid { grid-template-columns: 1fr; } }

/* Home: divisions with a single line of text */
.division p { color: var(--muted); margin: 0 0 1.3rem; }

/* Home: about with an at-a-glance table */
.about-home { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .about-home { grid-template-columns: 1fr; } }
.glance { width: 100%; border-collapse: collapse; font-size: .97rem; }
.glance caption { text-align: left; font-weight: 800; font-stretch: 90%; color: var(--ink); font-size: 1.15rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.glance th, .glance td { text-align: left; vertical-align: top; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.glance th { width: 8.5rem; padding-right: 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: .85rem; }
.glance td { color: var(--ink); }

/* Premier Planner */
.pp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 800px) { .pp-grid { grid-template-columns: 1fr; } }
.pp-grid p { margin: 0; }
.pp-card { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; background: #fff; border: 2px solid var(--ink); padding: 1.5rem 1.6rem; text-decoration: none; color: var(--muted); font-size: .92rem; }
.pp-card:hover { color: var(--ink); }
.pp-card:hover span:last-child { text-decoration: underline; }
.pp-word { font-size: 1.6rem; font-weight: 800; font-stretch: 85%; color: var(--ink); letter-spacing: -.01em; line-height: 1; }
.pp-word b { color: var(--blue); font-weight: 800; }
.pp-logo { height: 40px; width: auto; }
.pp-word.pp-sm { font-size: .95rem; }
.pp-word.pp-sm b { color: #9FB6E0; }
.pp-logo.pp-sm { height: 18px; display: inline-block; vertical-align: middle; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.pp-credit { display: inline-flex; align-items: center; gap: .4rem; color: #8E9BA7 !important; }
.pp-credit .pp-word { color: #C3CDD6; }

/* Team profile links */
.member-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.member-links a { font-size: .8rem; font-weight: 700; color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); padding: .2rem .55rem; }
.member-links a:hover { background: var(--ink); color: #fff; }
.member-links a[href^="http"]::after { content: " \2197"; }

/* Premier Planner logos */
.pp-card { align-items: center; text-align: center; }
.pp-logo { width: 220px; height: auto; }
.pp-credit { gap: .45rem; }
.pp-mark { width: 22px; height: 22px; border-radius: 3px; display: inline-block; }
.pp-credit span { color: #C3CDD6; font-weight: 700; }

/* Rotating home mosaic */
.tile img { transition: opacity .45s ease; }
.tile.fading img { opacity: 0; }
.tile.fading .tile-cap { opacity: 0; }
.tile-cap { transition: opacity .45s ease; }
.head-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* Photo headers on division pages: the .hero-div background shorthand resets size and repeat, so set them again */
.hero-div.has-photo { background-color: var(--ink); background-size: cover; background-repeat: no-repeat; background-position: center 55%; }
body.div-scaffolding .hero-div.has-photo::before { background: linear-gradient(90deg, rgba(18,46,26,.93) 0%, rgba(30,70,40,.78) 45%, rgba(30,70,40,.25) 100%); }

/* Welcome screen on the home page (first visit per session) */
.intro { display: none; }
.show-intro body { overflow: hidden; }
.show-intro .intro { display: flex; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.25rem; background-color: var(--ink); background-size: cover; background-position: center 62%; background-repeat: no-repeat; isolation: isolate; transition: opacity .6s ease, visibility .6s; }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(8,12,18,.55) 0%, rgba(8,12,18,.25) 60%, rgba(8,12,18,.55) 100%); }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.intro-logo { width: min(440px, 78vw); height: auto; filter: drop-shadow(0 4px 24px rgba(0,0,0,.55)); }
.intro-line { color: #fff; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,.7); max-width: none; }
.intro-line span { color: var(--yellow); margin: 0 .5rem; }
.intro-go { min-width: 240px; font-size: 1.05rem; }
.intro.leaving { opacity: 0; visibility: hidden; }
@media (max-width: 600px) { .show-intro .intro { background-position: center 70%; } .intro-line { font-size: .68rem; letter-spacing: .03em; white-space: nowrap; } .intro-line span { margin: 0 .3rem; } }
@media (prefers-reduced-motion: reduce) { .show-intro .intro { transition: none; } }

/* Welcome screen slideshow */
.show-intro .intro { background: var(--ink); }
.intro-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.intro-slide { position: absolute; inset: -2%; background-size: cover; background-position: center 60%; opacity: 0; transition: opacity 1.4s ease; }
.intro-slide.on { opacity: 1; animation: introZoom 9s ease-out both; }
@keyframes introZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.intro::before { z-index: -1; }
@media (prefers-reduced-motion: reduce) { .intro-slide { transition: none; } .intro-slide.on { animation: none; } }

/* Footer: light, four columns with accreditation logos (layout taken from the old APBS sites) */
.site-footer { background: #fff; color: var(--text); border-top: 2px solid var(--ink); padding: 3.5rem 0 2rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--blue); }
.site-footer h3 { color: var(--blue); font-size: 1.05rem; text-transform: none; letter-spacing: 0; font-stretch: 90%; margin: 0 0 .8rem; }
.foot-grid { grid-template-columns: 1.3fr .9fr .9fr 1.6fr; gap: 2.5rem; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo { background: none; padding: 0; width: 180px; margin: 0 0 1.4rem; }
.foot-contact h3 { color: var(--ink); font-size: .95rem; margin: 1rem 0 .2rem; }
.foot-contact h3:first-of-type { margin-top: 0; }
.foot-contact p { margin: 0; line-height: 1.55; }
.site-footer li { padding: .28rem 0; }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--blue); }
.foot-accs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem 1.2rem; align-items: center; justify-items: center; text-decoration: none; }
.foot-acc { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.foot-acc.acc-text { font-weight: 800; font-stretch: 85%; font-size: .95rem; color: var(--ink); border: 2px solid var(--ink); padding: .35rem .55rem; text-align: center; }
.foot-accs:hover .foot-acc { opacity: .85; }
.legal { border-top: 1px solid var(--line); color: var(--muted); }
.legal a { color: var(--muted) !important; }
.pp-credit { color: var(--muted) !important; }
.pp-credit span { color: var(--ink); }

/* Accreditations page: logo beside each entry */
.badge { display: flex; gap: 1.2rem; align-items: center; }
.badge-logo { flex: none; width: 120px; height: 80px; display: grid; place-items: center; }
.acc-logo { max-width: 120px; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.acc-logo.acc-text { font-weight: 800; font-stretch: 85%; color: var(--ink); border: 2px solid var(--ink); padding: .4rem .6rem; font-size: .95rem; text-align: center; }
.badges { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); column-gap: 3rem; }
.badge { padding: 1.3rem 0; }
.badge-logo { width: 140px; height: 100px; }
.acc-logo { max-width: 140px; max-height: 100px; }
.foot-acc { max-height: 72px; }
.foot-acc-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.badge-logo:empty { visibility: hidden; }

/* Division cards: separate cards, even hairline border, colour bar inside the card */
.divisions { border: 0; background: none; gap: 1.25rem; }
.division { position: relative; border: 1px solid var(--line); border-top: 0; background: #fff; padding-top: calc(1.6rem + 6px); }
.division:first-child { border-left: 1px solid var(--line); }
.division::before { content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: 6px; background: var(--dc); }
.division:hover { background: #fff; border-color: #C9D1D8; }
@media (max-width: 900px) { .division { border-left: 1px solid var(--line); } }

/* No focus ring on things we focus from script (headings, status messages); keyboard focus on links and buttons still shows */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.intro-go:focus:not(:focus-visible) { outline: none; }

/* Header: full APBS Group logo */
.brand img { width: 140px; height: auto; }
@media (max-width: 600px) { .brand img { width: 118px; } }

/* Recent news */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 2px solid var(--ink); }
.news-item { padding-top: 1.2rem; border-top: 6px solid var(--nc, var(--ink)); margin-top: -2px; }
.n-build { --nc: var(--blue); } .n-scaff { --nc: var(--green); } .n-elec { --nc: var(--red); }
.news-date { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .4rem; }
.news-item h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.news-item p { color: var(--text); margin: 0; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }

/* Where we are heading */
.growth { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-top: 2px solid var(--ink); }
.growth-item { padding: 1.3rem 0 1.4rem 1.2rem; border-bottom: 1px solid var(--line); border-left: 6px solid var(--gc, var(--ink)); margin-top: 1rem; }
.g-build { --gc: var(--blue); } .g-scaff { --gc: var(--green); } .g-elec { --gc: var(--red); }
.growth-item h3 { margin-bottom: .35rem; }
.growth-item p { margin: 0; color: var(--text); }
@media (max-width: 800px) { .growth { grid-template-columns: 1fr; } }

/* News page: one column list, newest first */
.news-list { grid-template-columns: 1fr; gap: 0; border-top: 0; max-width: 860px; }
.news-list .news-item { margin: 0; padding: 1.6rem 0 1.8rem 1.4rem; border-top: 0; border-left: 6px solid var(--nc, var(--ink)); border-bottom: 1px solid var(--line); }
.news-list .news-item h3 { font-size: 1.5rem; }
.news-link { margin: .9rem 0 0; }
.news-link .text-link::after { content: " \2197"; }
