/* =========================================================================
   ACS Contracts
   Brand: ACS Navy #192B59, Bronze #A25C1E, Gold #EFC66C, Steel Blue #597CA4,
   Site Teal #52858D, Stone #D6CDC5. Typeface: Maven Pro.
   ========================================================================= */

@font-face {
  font-family: "Maven Pro";
  src: url("../fonts/maven-pro.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --navy: #192B59;
  --navy-900: #0E1a3a;
  --navy-800: #13234b;
  --navy-700: #213a74;
  --frame: clamp(16px, 3.2vw, 46px); /* the border around the dark blocks */
  --frame-r: clamp(22px, 2.4vw, 34px);
  --pad: clamp(76px, 9vw, 136px);   /* the white space above and below every section */
  /* the shade over every hero photo: navy fading up from the bottom, plus a little at the top */
  --hero-fade: linear-gradient(90deg, rgba(14, 26, 58, .9) 0%, rgba(14, 26, 58, .84) 22%, rgba(14, 26, 58, .7) 34%, rgba(14, 26, 58, .5) 45%, rgba(14, 26, 58, .3) 56%, rgba(14, 26, 58, .14) 67%, rgba(14, 26, 58, .05) 78%, rgba(14, 26, 58, 0) 88%), linear-gradient(0deg, rgba(14, 26, 58, .85) 0%, rgba(14, 26, 58, .55) 22%, rgba(14, 26, 58, .2) 45%, rgba(14, 26, 58, 0) 65%), linear-gradient(180deg, rgba(14, 26, 58, .24) 0%, rgba(14, 26, 58, 0) 18%);   /* left to right, as strong as the Why ACS fade: deep navy behind the words (left and bottom), easing off to the clear photo on the right */
  --hero-fade-phone: linear-gradient(0deg, rgba(14, 26, 58, .95) 0%, rgba(14, 26, 58, .8) 30%, rgba(14, 26, 58, .55) 52%, rgba(14, 26, 58, .2) 78%, rgba(14, 26, 58, .3) 100%);   /* on a phone the words fill the width, so it fades up from the bottom */
  --hero-h: clamp(460px, calc(100svh - var(--header-h) - 210px), 800px);   /* every hero is the height of the home page's */
  --bronze: #A25C1E;
  --bronze-600: #8a4d17;
  --gold: #EFC66C;
  --steel: #597CA4;
  --teal: #52858D;
  --stone: #F4F1EE;
  --stone-200: #E8E1DA;
  --stone-400: #D6CDC5;
  --ink: #1C1C1C;
  --text: #3d4250;
  --muted: #6b707c;
  --line: #e3ddd6;
  --white: #fff;
  --credit: #f4b854;                 /* Made by Dale orange */
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 96px;
  --font: "Maven Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* light mode (default) */
  --bg: #fff;
  --surface: #fff;                   /* cards and panels */
  --heading: var(--navy);            /* headings and navy text */
  --grey: #ECECEC;                   /* the "Talk to us" band */
  --hdr-bg: #fff;                    /* header bar */
  --hdr-ink: var(--navy);
  --hdr-soft: rgba(25, 43, 89, .55);
  --hdr-line: rgba(25, 43, 89, .22);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; padding-top: var(--header-h); font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); transition: background-color .3s var(--ease), color .3s var(--ease); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--heading); margin: 0; line-height: 1.08; letter-spacing: -.015em; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--bronze); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.ic-arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform .3s var(--ease); }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin: 0 0 18px; }
.eyebrow--gold { color: var(--gold); }
.sec-num { display: inline-flex; align-items: center; gap: 14px; color: var(--heading); font-weight: 700; letter-spacing: .08em; }
.sec-num::after { content: ""; width: 34px; height: 2px; background: linear-gradient(var(--gold), var(--gold)); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--font); padding: 16px 26px; border-radius: 60px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:hover .ic-arrow { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #f6d58b; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-800); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.section:not(.section--navy) .btn--ghost { border-color: var(--heading); color: var(--heading); background: transparent; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: var(--hdr-bg); transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-solid { --hdr-bg: var(--navy-900); --hdr-ink: #fff; --hdr-soft: rgba(255, 255, 255, .75); --hdr-line: rgba(255, 255, 255, .28); box-shadow: 0 12px 30px rgba(6, 12, 30, .22); }   /* once you scroll: the footer's dark blue, with the colour logo's navy parts in white */
.site-header.is-solid .brand__light { display: block; }
.site-header.is-solid .brand__dark { display: none; }
.site-header.is-solid .header__phone svg { color: var(--gold); }
/* logo and phone on the left, the menu in the middle, the buttons on the right (they line up with the border) */
.header__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 0 var(--frame); }   /* logo and phone on the left; the menu sits beside Contact us on the right */
.header__left { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.brand__light { display: none; }   /* the colour logo with its navy parts in white (make_logo_on_navy.py): on the blue bar and in the phone menu */
.menu-open .brand__light { display: block; }
.menu-open .brand__dark { display: none; }
.menu-open .site-header { --hdr-bg: var(--navy-900); --hdr-ink: #fff; --hdr-soft: rgba(255, 255, 255, .75); --hdr-line: rgba(255, 255, 255, .3); box-shadow: none; }
.nav { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; }
.nav__list { display: flex; align-items: center; gap: 12px; }
.nav__item--link { margin-right: 5px; }   /* Home has no arrow: this evens out the space after it with the space after an arrow */
.nav__item { position: static; display: flex; align-items: center; }
.nav__top { position: relative; color: var(--hdr-ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 30px 6px 30px 14px; }
.nav__top::after { content: ""; position: absolute; left: 14px; right: 6px; bottom: 22px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__item:hover .nav__top::after, .nav__item.is-section .nav__top::after, .nav__item.is-open .nav__top::after { transform: scaleX(1); }
.nav__toggle { background: none; border: 0; color: var(--hdr-soft); padding: 6px 8px 6px 2px; cursor: pointer; display: grid; place-items: center; }
.nav__toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__extra { display: none; }
.header__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 18px; }
.header__phone { display: inline-flex; align-items: center; gap: 9px; color: var(--hdr-ink); text-decoration: none; font-weight: 600; font-size: 16px; padding-left: 26px; border-left: 1px solid var(--hdr-line); line-height: 34px; white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; color: var(--bronze); }
.header__email svg { width: 19px; height: 19px; }   /* the email beside the phone number, with the same divider */
@media (max-width: 1300px) { .header__left { gap: 18px; } .header__phone { padding-left: 18px; font-size: 15px; } }   /* tighter so the email still fits beside the menu */
@media (max-width: 1380px) { .header__email { display: none; } }   /* with five menu items the email only fits on wider screens */
.header__cta { padding: 13px 22px; font-size: 15px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hdr-line); background: transparent; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--hdr-ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.menu-btn i:nth-child(2) { top: 16px; } .menu-btn i:nth-child(3) { top: 22px; } .menu-btn i:nth-child(4) { top: 28px; }
.menu-open .menu-btn i:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(3) { opacity: 0; }
.menu-open .menu-btn i:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* dropdown: every page in the menu shown as its own preview tile (desktop) */
.nav__dd { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 6px); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.nav__item.is-open .nav__dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__dd-inner { --tile: 216px; width: max-content; max-width: 100%; margin: 0 auto; background: var(--surface); border-radius: 22px; box-shadow: 0 30px 70px rgba(6, 12, 30, .35); display: grid; grid-template-columns: 232px auto; gap: 26px; padding: 18px 18px 18px 30px; }
.nav__dd-intro { display: flex; flex-direction: column; padding: 14px 0 8px; border-right: 1px solid var(--line); padding-right: 26px; }
.nav__dd-label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin: 0 0 14px; }
.nav__dd-text { font-size: 22px; line-height: 1.22; font-weight: 700; color: var(--heading); letter-spacing: -.01em; margin: 0 0 22px; }
.nav__dd-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.nav__dd-all { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; line-height: 1; color: var(--heading); text-decoration: none; padding: 14px 18px; border-radius: 40px; border: 1.5px solid var(--navy); transition: background .2s, color .2s; }
.nav__dd-chat { justify-content: center; font-size: 15px; padding: 14px 18px; }
.nav__dd-all:hover { background: var(--navy); color: #fff; }
.nav__dd-all:hover .ic-arrow { transform: translateX(4px); }
.nav__tiles { display: grid; grid-template-columns: repeat(var(--cols, 3), var(--tile)); gap: 18px 14px; }
.nav__tiles a { display: block; text-decoration: none; color: var(--heading); border-radius: 14px; padding: 6px 6px 10px; transition: background .25s var(--ease), opacity .25s var(--ease); }
.nav__thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--stone-200); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.nav__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.nav__thumb { outline: 1px solid var(--line); outline-offset: -1px; }   /* a fine edge so the white sector tiles read as tiles on the white panel */
.nav__thumb img:not([src]) { opacity: 0; }
/* the navy badge in the corner of each tile: the client's logo in white, or an icon */
.nav__badge { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(6, 12, 30, .3), 0 0 0 2px rgba(255, 255, 255, .9); transition: background .25s var(--ease); }
.nav__thumb .nav__badge img { width: auto; height: auto; max-width: 34px; max-height: 28px; object-fit: contain; transform: none; opacity: 1; transition: none; }
.nav__badge svg { width: 22px; height: 22px; }
.nav__tiles a:hover .nav__badge, .nav__tiles a:focus-visible .nav__badge { background: var(--navy-700); }
.nav__thumb .nav__badge--centre { left: 50%; top: 50%; bottom: auto; width: auto; height: auto; background: none; box-shadow: none; color: #fff; transform: translate(-50%, -50%); }   /* plain tiles: the icon or logo in the middle */
.nav__thumb .nav__badge--centre img { max-width: 92px; max-height: 40px; }
.nav__thumb .nav__badge--centre svg { width: 48px; height: 48px; }
.nav__tiles a:hover .nav__badge--centre, .nav__tiles a:focus-visible .nav__badge--centre { background: none; }
.nav__thumb::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(var(--gold), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__tile-name { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.25; margin: 11px 4px 2px; }
.nav__tile-meta { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin: 0 4px; }
.nav__tiles:hover a:not(:hover) { opacity: .72; }
.nav__tiles a:hover, .nav__tiles a:focus-visible { background: var(--stone); }
.nav__tiles a:hover .nav__thumb > img, .nav__tiles a:focus-visible .nav__thumb > img { transform: scale(1.06); }
.nav__tiles a:hover .nav__thumb::after, .nav__tiles a:focus-visible .nav__thumb::after, .nav__tiles a[aria-current="page"] .nav__thumb::after { transform: none; }
.nav__tiles a[aria-current="page"] .nav__tile-name { color: var(--bronze); }
@media (max-width: 1240px) { .nav__dd-inner { --tile: 188px; grid-template-columns: 200px auto; } .nav__dd-text { font-size: 19px; } }

/* turning mark used by the page change */
@keyframes swirl-turn { to { rotate: 360deg; } }

/* ---------- home hero ---------- */
.hero { position: relative; margin: 0 var(--frame) var(--frame); border-radius: var(--frame-r); min-height: max(560px, calc(84vh - var(--header-h))); min-height: max(560px, calc(84svh - var(--header-h))); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy-900); isolation: isolate; }
.hero__media, .page-hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img, .hero__media video, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media::after, .page-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-fade); }   /* one shade for every hero */

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 clamp(30px, 6vw, 100px); align-items: end; margin-block: auto; padding-block: clamp(40px, 5vw, 72px); }
.hero__eyebrow { grid-column: 1 / -1; }
.hero__side { padding-bottom: 6px; }
.hero__title { color: #fff; font-size: clamp(38px, 4.6vw, 70px); line-height: 1; letter-spacing: -.03em; margin: 0; max-width: 15ch; }
.hero__title span { display: block; }
.hero__title em { color: var(--gold); font-style: normal; }
.hero__text { font-size: 17px; color: rgba(255, 255, 255, .85); max-width: 520px; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
/* sectors: separate cards sliding along the bottom of the hero; they stop while pointed at */
.hero__sectors { position: relative; z-index: 2; padding: 0 0 clamp(20px, 2.4vw, 32px); }
.hero__slide { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.hero__track { display: flex; width: max-content; }
.hero__track li { flex: none; padding-right: 12px; }
.hero__track a { display: flex; align-items: center; gap: 12px; padding: 16px 20px 16px 22px; border-radius: 16px; background: rgba(10, 19, 44, .5); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; text-decoration: none; font-weight: 600; font-size: 15.5px; line-height: 1.2; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.hero__track a span { color: var(--gold); font-size: 12px; letter-spacing: .08em; transition: color .25s; }
.hero__track a .ic-arrow { width: 16px; height: 16px; opacity: .6; transition: transform .25s var(--ease), opacity .25s; }
.hero__track a:hover, .hero__track a:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero__track a:hover span, .hero__track a:focus-visible span { color: var(--navy); }
.hero__track a:hover .ic-arrow, .hero__track a:focus-visible .ic-arrow { opacity: 1; transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) { .hero__track { animation: sector-slide 46s linear infinite; } .hero__sectors:hover .hero__track, .hero__sectors:focus-within .hero__track { animation-play-state: paused; } }
@keyframes sector-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero__slide { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter); } .hero__track li[aria-hidden] { display: none; } }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; margin: 0 var(--frame) var(--frame); border-radius: var(--frame-r); min-height: var(--hero-h); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy-900); }
/* number strip under the About, Projects and Sectors heroes: four cards in the stone of the home project previews */
.page-stats { margin: 0 var(--frame) var(--frame); }
.page-stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--frame); }
.page-stats__list li { container-type: inline-size; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px); border-radius: 20px; background: var(--stone); }
.page-stats__list b { font-size: min(clamp(30px, 3vw, 46px), 17cqi); line-height: 1; font-weight: 700; letter-spacing: -.02em; color: var(--heading); }
.page-stats__list b em { font-style: normal; color: var(--bronze); }   /* the numbers shrink to fit their card (the longest is 100,000m²+) */
.page-stats__list span { font-size: 15px; line-height: 1.4; color: var(--muted); }
@media (max-width: 900px) { .page-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-stats__list span { font-size: 14px; } }
.page-hero--plain { min-height: 80vh; }
.page-hero--logo { background: radial-gradient(90% 120% at 100% 0%, var(--navy-700) 0%, var(--navy-900) 70%); }
.page-hero--logo .page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(30px, 6vw, 90px); align-items: end; }
.page-hero--logo .page-hero__inner > * { grid-column: 1; }
.page-hero--logo .page-hero__logo { grid-column: 2; grid-row: 1 / span 5; align-self: end; margin: 0; width: clamp(200px, 22vw, 300px); aspect-ratio: 4 / 3; border-radius: var(--radius); background: #fff; display: grid; place-items: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.page-hero__logo img { max-width: 62%; max-height: 52%; width: auto; height: auto; object-fit: contain; }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero .page-hero__inner { max-width: none; margin: 0; padding: clamp(26px, 4vw, 64px); }   /* the words sit where the home page's do */
.page-hero h1 { color: #fff; font-size: clamp(38px, 4.8vw, 76px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 12px; max-width: 18ch; }   /* the same as the home page's project name */
.page-hero h1 em { color: var(--gold); }
.page-hero__text { font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 640px; margin: 0; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.page-hero__meta a, .page-hero__meta span { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; text-decoration: none; }
.page-hero__meta a { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.crumbs a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { color: rgba(255, 255, 255, .4); }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--pad) 0; overflow: hidden; }
.section--stone { background: var(--stone); }
.section--grey { margin: var(--frame); border-radius: var(--frame-r); background: var(--grey); }   /* framed like the navy blocks, in the grey of the "Talk to us" band */
/* A faint cladding texture behind the grey and stone blocks, the "Talk to us" band and the navy ACS Group
   block. Each is turned or flipped differently (the photo, or a copy turned a quarter, spun round or mirrored)
   so it never looks repeated, and always fills its block edge to edge */
.section--grey, .section--stone, .section--navy:not(.why-wide), .cta-band { position: relative; isolation: isolate; overflow: clip; }
.section--grey::before, .section--stone::before, .section--navy:not(.why-wide)::before, .cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex-img, url(../img/textures/cladding.jpg)) var(--tex-pos, center) / cover no-repeat; transform: rotate(var(--tex-rot, 0deg)) scaleX(var(--tex-flip, 1)); mix-blend-mode: multiply; opacity: var(--tex-o, .4); pointer-events: none; }
.cta-band { --tex-img: url(../img/textures/cladding-cta.jpg); --tex-pos: center; }   /* the same on every page: a crop of the middle of the photo, without the lines at its far left and right */
.section--grey { --tex-img: url(../img/textures/cladding-90.jpg); --tex-flip: -1; }
.section--stone { --tex-rot: 180deg; --tex-o: .3; }
.section--stone:nth-of-type(even) { --tex-img: url(../img/textures/cladding-90.jpg); --tex-rot: 180deg; --tex-flip: -1; }
.section--navy:not(.why-wide) { --tex-flip: -1; --tex-pos: 60% 30%; --tex-o: .14; }
.section--navy:not(.why-wide)::before { mix-blend-mode: screen; filter: invert(1); }   /* on navy the panel lines show light, not dark */
.section.no-texture::before { content: none; }   /* plain: home Sectors, the Sectors page clients and the Projects list */
#sectors.section--grey { padding-bottom: clamp(40px, 5vw, 70px); }   /* home sectors: just enough space under the cards, like the space at the sides */
@media (min-width: 901px) { #sectors.section--grey > .wrap { max-width: none; padding-inline: clamp(40px, 5vw, 70px); } }   /* on bigger screens the cards stretch, keeping the same space at the sides as underneath */
/* Even white space everywhere: a white section next to a framed block (hero, grey, navy, next project,
   the "Talk to us" band) loses the block's margin from its padding, so the white above every heading
   matches the white below every section, the same as the home page */
:is(.page-hero, .home-hero, .hero, .section--grey, .section--navy, .next-project, .page-stats) + .section:not(.section--stone, .section--grey, .section--navy) { padding-top: calc(var(--pad) - var(--frame)); }
.section:not(.section--stone, .section--grey, .section--navy):has(+ .section--grey, + .section--navy, + .next-project),
main > .section:not(.section--stone, .section--grey, .section--navy):last-child { padding-bottom: calc(var(--pad) - var(--frame)); }
.section--navy { margin: var(--frame); border-radius: var(--frame-r); background: radial-gradient(120% 80% at 100% 0%, #213a74 0%, var(--navy) 45%, var(--navy-900) 100%); color: rgba(255, 255, 255, .82); }
.section--navy h2, .section--navy h3, .side-block--navy h2 { color: #fff; }
.section--navy h2 em, .side-block--navy h2 em { color: var(--gold); }
.section > .wrap { position: relative; z-index: 2; }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.025em; }
.sec-head__text { margin: 20px 0 0; font-size: 18px; color: var(--muted); max-width: 640px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; max-width: 860px; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .sec-head__text { margin-left: auto; margin-right: auto; }
.sec-head--light .sec-num { color: #fff; }
.sec-head--light .eyebrow { color: var(--gold); }
.sec-head--light .sec-head__text { color: rgba(255, 255, 255, .72); }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-row .sec-head { margin-bottom: 0; }
.sec-row:last-child { margin-bottom: 0; }
.sec-row--center { align-items: center; }   /* a button level with the middle of the heading and text (home: What we deliver) */
.sec-row > .btn, .sec-row__actions { flex: none; }
.sec-row__actions { display: flex; flex-wrap: wrap; gap: 12px; }   /* an outline button and a filled one, side by side */
@media (max-width: 1080px) { .sec-row--center { flex-direction: column; align-items: flex-start; } }
/* Home hero on smaller laptops: four tabs don't fit side by side, so the row shows three and slides along
   (like tablets and phones, but keeping the picture beside the name) */
@media (min-width: 901px) and (max-width: 1240px) {
  .home-hero .showcase__tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin: calc(var(--frame) - 10px) calc(var(--frame) * -1) -22px; padding: 10px var(--frame) 22px; scroll-padding-inline: var(--frame); scroll-snap-type: x mandatory; }
  .home-hero .showcase__tabs::-webkit-scrollbar { display: none; }
  .home-hero .showcase__tab { flex: none; width: calc((100% - 2 * var(--frame)) / 3); scroll-snap-align: start; }
}   /* not enough room beside the heading: the buttons go under it */
@media (max-width: 620px) { .sec-row__actions { align-self: stretch; } .sec-row__actions .btn { flex: 1 1 auto; justify-content: center; padding-inline: 18px; } }   /* phones: the two buttons share the width, or each takes a full line if they don't fit side by side */
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: var(--heading); font-weight: 500; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.split .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 30px); }
.split__text p { font-size: 18px; }
.split--static .sec-head { position: static; }
.split--flip { grid-template-columns: 7fr 5fr; }
.split--middle { align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; }
.split > * { min-width: 0; }
.split--flip > :first-child { order: 2; }
.filter--center { justify-content: center; }
.pill-list--center { justify-content: center; }
.eyebrow--center { justify-content: center; }
.split__text--light .lead { color: #fff; }
.split__text--light p { color: rgba(255, 255, 255, .78); }
.list-title { font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin: 34px 0 16px; }
.tick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.tick-list li { position: relative; padding-left: 32px; color: var(--heading); font-weight: 500; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 16px; height: 9px; border-left: 3px solid var(--bronze); border-bottom: 3px solid var(--bronze); transform: rotate(-45deg); }

/* ---------- sector cards ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: max(var(--frame), 32px) var(--frame); }   /* the gaps between the cards match the page's frame margins */
.sector-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.sector-card__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.sector-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sector-card__body { flex: 1; display: flex; flex-direction: column; padding: 22px 4px 4px; }
.sector-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); }
.sector-card__meta b { display: inline-flex; align-items: center; gap: 12px; color: var(--heading); letter-spacing: .08em; }
.sector-card__meta b::after { content: ""; width: 26px; height: 2px; background: linear-gradient(var(--gold), var(--gold)); }
.sector-card__name { font-size: clamp(23px, 2vw, 29px); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; color: var(--heading); transition: color .25s; }
.sector-card__text { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.sector-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; color: var(--heading); }
.sector-card__go::before { content: ""; width: 26px; height: 2px; background: var(--gold); transition: width .4s var(--ease); }
.sector-card a:hover .sector-card__media img, .sector-card a:focus-visible .sector-card__media img { transform: scale(1.06); }
.sector-card a:hover .sector-card__name { color: var(--bronze); }
.sector-card a:hover .sector-card__go::before { width: 44px; }
.sector-card a:hover .sector-card__go .ic-arrow { transform: translateX(4px); }
.sector-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sector-links--four { grid-template-columns: repeat(4, 1fr); }   /* the eight other services */
.sector-links a { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; color: var(--heading); font-weight: 600; line-height: 1.25; transition: border-color .2s, background .2s; height: 100%; }
.sector-links a span { color: var(--bronze); font-size: 12px; letter-spacing: .08em; }
.sector-links a .ic-arrow { margin-left: auto; color: var(--bronze); }
.sector-links a:hover { border-color: var(--bronze); background: var(--stone); }

/* ---------- project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--frame); }
.project-card a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.project-card a:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(14, 26, 58, .14); }
.section--navy .project-card a { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); box-shadow: none; }
.section--navy .project-card a:hover { background: rgba(255, 255, 255, .08); box-shadow: 0 24px 50px rgba(0, 0, 0, .25); }
.project-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card a:hover .project-card__media img { transform: scale(1.05); }
.project-card__media--logo { display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.project-card__media--logo img { width: auto; height: auto; max-width: 38%; max-height: 40%; object-fit: contain; }
.project-card a:hover .project-card__media--logo img { transform: scale(1.04); }
.section--navy .project-card__media--logo { border-bottom: 0; }
.project-card__tag { position: absolute; left: 18px; top: 18px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 13px; border-radius: 30px; }
.project-card__body { display: flex; flex-direction: column; padding: 26px 28px 28px; flex: 1; }
.project-card__loc { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin-bottom: 8px; }
.section--navy .project-card__loc { color: var(--gold); }
.project-card__name { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; color: var(--heading); line-height: 1.1; letter-spacing: -.015em; margin-bottom: 10px; }
.section--navy .project-card__name { color: #fff; }
.project-card__text { font-size: 16px; line-height: 1.55; }
.project-card__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.project-card__facts li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--stone); color: var(--heading); font-weight: 700; font-size: 17px; line-height: 1.2; }
.project-card__facts small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.section--navy .project-card__facts li { background: rgba(255, 255, 255, .08); color: #fff; }
.section--navy .project-card__facts small { color: rgba(255, 255, 255, .6); }
.project-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--heading); }
.section--navy .project-card__go { color: var(--gold); }
.project-card a:hover .ic-arrow { transform: translateX(4px); }

/* filter (projects page) */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { font: 600 15px/1 var(--font); padding: 13px 20px; border-radius: 40px; border: 1.5px solid var(--stone-400); background: var(--surface); color: var(--heading); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.project-card.is-hidden { display: none; }
.filter-empty { text-align: center; padding: 40px; color: var(--muted); }
/* Projects page filter */
.pfilter { margin-bottom: 22px; padding: clamp(18px, 2vw, 26px); border-radius: 20px; background: var(--surface); box-shadow: 0 1px 0 rgba(14, 26, 58, .04), 0 14px 34px rgba(14, 26, 58, .06); }
.pfilter__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pfilter__field { display: grid; gap: 8px; min-width: 0; }
.pfilter__field > span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.pfilter__select { position: relative; display: block; }
.pfilter__select select { width: 100%; height: 52px; padding: 0 44px 0 16px; border: 1.5px solid var(--stone-400); border-radius: 14px; background: var(--surface); font: 600 15px/1 var(--font); color: var(--heading); appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; transition: border-color .2s, background .2s; }
.pfilter__select select:hover { border-color: var(--navy); }
.pfilter__select select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pfilter__select svg { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--heading); pointer-events: none; }
.pfilter__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pfilter__count { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.pfilter__clear { padding: 10px 18px; border: 0; border-radius: 40px; background: var(--navy); color: #fff; font: 600 14px/1 var(--font); cursor: pointer; transition: background .2s; }
.pfilter__clear:hover { background: var(--navy-900); }
.pfilter__clear[hidden] { display: none; }
@media (max-width: 900px) { .pfilter__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 560px) { .pfilter__select select { height: 48px; padding: 0 34px 0 12px; font-size: 14px; } .pfilter__select svg { right: 11px; width: 16px; height: 16px; margin-top: -8px; } .pfilter__field > span:first-child { font-size: 11px; letter-spacing: .12em; } }
.filter-empty[hidden] { display: none; }

/* ---------- service cards (home) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--frame); }
.svc-card__in { position: relative; display: flex; flex-direction: column; height: 100%; padding: 30px 26px 28px; border-radius: var(--radius); background: var(--stone); color: var(--text); }
.svc-card__num { font-weight: 700; color: var(--bronze); letter-spacing: .08em; font-size: 14px; }
.svc-card__name { font-size: 23px; font-weight: 700; color: var(--heading); line-height: 1.15; margin: 34px 0 10px; }
.svc-card__text { font-size: 15.5px; line-height: 1.5; margin: 0; }
a.svc-card__in { text-decoration: none; }
.svc-card__go { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: auto; border-radius: 50%; background: var(--surface); color: var(--navy); transition: background .25s var(--ease), color .25s var(--ease); }
.svc-card__text { margin-bottom: 22px; }
.svc-card__go svg { width: 18px; height: 18px; }
a.svc-card__in:hover .svc-card__go, a.svc-card__in:focus-visible .svc-card__go { background: var(--navy); color: var(--gold); }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--frame); counter-reset: step; }
.steps li { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); }
.section--stone .steps li { background: var(--surface); }
.section:not(.section--stone) .steps li { background: var(--stone); }   /* cards stand out on a white section */
.step__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 28px; border-radius: 50%; background: var(--stone); color: var(--bronze); transition: background .3s var(--ease), color .3s var(--ease); }
.section:not(.section--stone) .step__icon { background: var(--surface); }
.step__icon svg { width: 30px; height: 30px; }
.steps li:hover .step__icon { background: var(--navy); color: var(--gold); }
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { margin: 0; font-size: 16px; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.why__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; }
.why__media > img { width: 100%; height: 100%; object-fit: cover; }
.why__badge { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); }
.why__badge img { width: 54px; height: 54px; flex: none; }
.why__badge p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.why__badge b { display: block; color: var(--heading); font-size: 17px; }
.why__list li { padding: 22px 0 22px 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list h3 { font-size: 21px; margin-bottom: 6px; }
.why__list p { margin: 0; font-size: 16px; }
.why__list--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; }
.why__list--grid li:last-child { border-bottom: 0; }
/* Home "Why ACS Contracts": a wide photo band to break up the white. The operative stays clear on the left,
   the reasons sit on a navy fade on the right with gold tick boxes */
.why-wide { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: clamp(640px, 50vw, 860px); padding-block: clamp(64px, 6.5vw, 104px); background: var(--navy-900); }
.why-wide__media { position: absolute; inset: 0; z-index: -1; }
.why-wide__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }   /* keeps the helmet in on very wide screens */
.why-wide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 26, 58, .1) 0%, rgba(14, 26, 58, 0) 11%, rgba(14, 26, 58, .07) 19%, rgba(14, 26, 58, .2) 27%, rgba(14, 26, 58, .4) 35%, rgba(14, 26, 58, .62) 43%, rgba(14, 26, 58, .8) 51%, rgba(14, 26, 58, .9) 59%, rgba(14, 26, 58, .95) 70%, rgba(14, 26, 58, .96) 100%), linear-gradient(0deg, rgba(14, 26, 58, .35) 0%, rgba(14, 26, 58, 0) 32%); }   /* a long, eased fade so there's no visible edge */
.why-wide__inner { display: flex; justify-content: flex-end; width: 100%; }
.why-wide__panel { width: min(100%, 580px); }
.why-wide .sec-head { margin-bottom: clamp(22px, 2.6vw, 34px); }
.why-wide__list li { display: grid; grid-template-columns: 32px 1fr; column-gap: 18px; align-items: start; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.why-wide__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.why-wide__tick { width: 32px; height: 32px; color: var(--gold); margin-top: -3px; }
.why-wide__list h3 { color: #fff; font-size: 20px; margin: 0 0 4px; }
.why-wide__list p { margin: 0; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
@media (max-width: 1320px) and (min-width: 901px) {   /* laptops: the photo takes the left part and fades into the navy, so the list never sits over the operative */
  .why-wide__media { right: auto; width: 60%; }
  .why-wide__media img { object-position: 22% 50%; }
  .why-wide__media::after { background: linear-gradient(90deg, rgba(14, 26, 58, 0) 20%, rgba(14, 26, 58, .12) 33%, rgba(14, 26, 58, .32) 45%, rgba(14, 26, 58, .58) 57%, rgba(14, 26, 58, .8) 69%, rgba(14, 26, 58, .94) 81%, var(--navy-900) 92%), linear-gradient(0deg, rgba(14, 26, 58, .35) 0%, rgba(14, 26, 58, 0) 32%); }
  .why-wide__panel { width: min(100%, 46%); }
}

/* sector "what matters" points */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--frame); }
.points li { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; }
.point__num { display: block; color: var(--bronze); font-weight: 700; letter-spacing: .08em; font-size: 14px; margin-bottom: 30px; }
.points h3 { font-size: 21px; margin-bottom: 8px; }
.points p { margin: 0; font-size: 16px; }

/* ---------- pages with a sticky menu on the left (sectors) ----------
   The menu follows the page down and highlights the part in view (site.js). */
.section--open { overflow: visible; }   /* lets the menu stick */
.side-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(36px, 5vw, 84px); align-items: start; }
.side { position: sticky; top: calc(var(--header-h) + 30px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; min-width: 0; }
.side__index { min-width: 0; }
.side__label { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.side__index ol { display: grid; border-left: 1px solid var(--line); }
.side__index a { display: flex; align-items: baseline; gap: 12px; margin-left: -1px; padding: 10px 0 10px 18px; border-left: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: 15.5px; line-height: 1.3; text-decoration: none; transition: color .2s, border-color .2s; }
.side__index a span { flex: none; font-size: 12px; letter-spacing: .08em; color: var(--bronze); }
.side__index a:hover { color: var(--heading); }
.side__index a[aria-current="true"] { color: var(--heading); border-image: linear-gradient(var(--gold), var(--gold)) 1; }
.side__card { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--stone); }
.section--stone .side__card { background: var(--surface); }   /* on a stone section (the Sectors page list) the card turns white */
.side__card-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--heading); }
.side__card p:not(.side__card-title) { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.side__card .btn { justify-self: start; margin-top: 6px; padding: 13px 20px; font-size: 15px; }
.side__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--heading); text-decoration: none; }
.side__phone svg { width: 18px; height: 18px; color: var(--bronze); }
.side-block { scroll-margin-top: calc(var(--header-h) + 30px); }
.side-block + .side-block { margin-top: var(--pad); }
.side-main .sec-head h2 { font-size: clamp(32px, 3.8vw, 54px); }
.side-main .lead { margin: 0; max-width: 760px; }
.side-block--navy { padding: clamp(30px, 4vw, 54px); border-radius: var(--radius); background: radial-gradient(120% 80% at 100% 0%, #213a74 0%, var(--navy) 45%, var(--navy-900) 100%); color: rgba(255, 255, 255, .82); }
.section .side-block--navy .btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .04); }
.section .side-block--navy .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.side-block--navy .sec-row:last-child .sec-head__text { margin-bottom: 0; }
/* sector page parts */
.sector-figure { margin: clamp(30px, 4vw, 46px) 0 0; }
.sector-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.sector-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 2px 0; font-size: 15px; color: var(--muted); }
.sector-figure figcaption a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--heading); text-decoration: none; }
.sector-figure figcaption a:hover .ic-arrow { transform: translateX(4px); }
.points--two { grid-template-columns: repeat(2, 1fr); }
.side-main .points li { background: var(--stone); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--frame); }
.works-grid--two { grid-template-columns: repeat(2, 1fr); }   /* a service's four items */
.works-grid li { display: flex; align-items: center; gap: 14px; min-height: 86px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--heading); font-weight: 600; line-height: 1.3; }
.works-grid li::after { content: ""; order: -1; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--stone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23A25C1E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
/* sectors index: one chapter per sector, image and words side by side, alternating */
.sector-chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, 3.4vw, 54px); align-items: center; }
.side-block.sector-chapter + .sector-chapter { margin-top: clamp(44px, 5vw, 70px); padding-top: clamp(44px, 5vw, 70px); border-top: 1px solid var(--line); }
.sector-chapter--flip .sector-chapter__media { order: 2; }
.sector-chapter__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.sector-chapter__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sector-chapter:hover .sector-chapter__media img { transform: scale(1.04); }
.sector-chapter__name { margin: 0 0 14px; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.02em; }
.sector-chapter__name a { color: inherit; text-decoration: none; }
.sector-chapter__name a:hover { color: var(--bronze); }
.sector-chapter__intro { margin: 0; font-size: 17px; }
.sector-chapter .list-title { margin: 26px 0 12px; }
.tick-list--one { grid-template-columns: 1fr; gap: 10px; }
.sector-chapter__go { margin-top: 30px; }
.section--stone .sector-links a { background: var(--surface); }

/* ---------- card trim ----------
   Every card grid gets a bronze-to-gold trim along its top edge (it follows the rounded corners,
   like the underlines). It draws in from the left when the card is pointed at. */
.svc-card__in, .steps li, .points li, .project-card a, .sector-card__media, .sector-links a, .works-grid li { position: relative; }
.svc-card__in::before, .steps li::before, .points li::before, .project-card a::before, .sector-card__media::before, .sector-links a::before, .works-grid li::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; border-top: 3px solid transparent; background: linear-gradient(var(--gold), var(--gold)) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease); }
.svc-card__in:hover::before, .steps li:hover::before, .points li:hover::before, .project-card a:hover::before, .sector-card a:hover .sector-card__media::before, .sector-links a:hover::before, .works-grid li:hover::before, .project-card a:focus-visible::before, .sector-card a:focus-visible .sector-card__media::before, .sector-links a:focus-visible::before { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .svc-card__in::before, .steps li::before, .points li::before, .project-card a::before, .sector-card__media::before, .sector-links a::before, .works-grid li::before { transition: none; } }

/* ---------- featured projects showcase (home) ---------- */
.showcase__tabs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.showcase__tab { display: flex; align-items: center; gap: 14px; text-align: left; font: 600 16px/1.25 var(--font); color: #fff; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 10px 16px 10px 10px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.showcase__tab img { flex: none; width: 92px; height: 62px; object-fit: cover; border-radius: 11px; opacity: .75; transition: opacity .25s var(--ease); }
.showcase__tab span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.showcase__tab small { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.showcase__tab[aria-selected="true"] small { color: var(--bronze-600); }
.showcase__tab:hover img, .showcase__tab[aria-selected="true"] img { opacity: 1; }
.showcase__tab:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.showcase__tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.showcase__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.showcase__panel { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; min-height: 520px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: clamp(24px, 3.4vw, 46px); isolation: isolate; }
.showcase__panel[hidden] { display: none; }
.showcase__panel.is-active { animation: show-in .6s var(--ease) both; }
@keyframes show-in { from { opacity: 0; } to { opacity: 1; } }
.showcase__panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* each project's photos cross-fade (site.js), with a slow drift on the one showing */
.showcase__pics { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.showcase__pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity .8s var(--ease), transform 0s .9s; }
.showcase__pics img.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .showcase__panel.is-active .showcase__pics img.is-on { transform: scale(1.09); transition: opacity .8s var(--ease), transform 3.2s linear; } }
.showcase__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 26, 58, .92) 0%, rgba(14, 26, 58, .55) 38%, rgba(14, 26, 58, 0) 72%), linear-gradient(90deg, rgba(14, 26, 58, .5) 0%, rgba(14, 26, 58, 0) 60%); }
.showcase__panel .project-card__tag { position: absolute; left: clamp(24px, 3.4vw, 46px); top: clamp(24px, 3.4vw, 46px); }
.showcase__body { max-width: 640px; color: rgba(255, 255, 255, .86); }
.showcase__loc { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.showcase__name { color: #fff; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 12px; }
.showcase__text { margin: 0 0 18px; font-size: 17px; }
.showcase__body .project-card__facts { margin: 0; }
.showcase__panel .project-card__facts li { background: rgba(255, 255, 255, .1); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.showcase__panel .project-card__facts small { color: rgba(255, 255, 255, .65); }
.showcase__go { flex: none; }
.sec-head--tight { margin-bottom: 26px; }
.showcase__all { text-align: center; margin: 0 0 clamp(30px, 4vw, 46px); }
.showcase__more { text-align: center; margin: clamp(30px, 4vw, 44px) 0 0; }

/* ---------- client logos strip ---------- */
.clients .sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.clients .showcase__more { margin-top: clamp(40px, 6vw, 80px); }   /* the same space above and below the logo slider */
.clients .showcase__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }   /* "See the projects" (outline) beside "About us" (navy) */
@media (max-width: 560px) { .clients .showcase__more { flex-direction: column; align-items: center; } .clients .showcase__more .btn { width: 100%; max-width: 260px; justify-content: center; } }   /* phones: stacked, the same width */
.logo-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-strip__track { display: flex; align-items: center; gap: clamp(50px, 6vw, 96px); width: max-content; padding: 10px 0; }
.logo-strip li { flex: none; }
.logo-strip img { height: clamp(46px, 5vw, 64px); width: auto; max-width: 200px; object-fit: contain; }   /* the clients' logos in their own colours */
.logo-strip img[src$="thales.png"], .logo-strip img[src$="btg-eddisons.svg"] { max-width: 160px; }   /* the two wide wordmarks, a little smaller so they sit evenly with the rest */
@media (prefers-reduced-motion: no-preference) { .logo-strip__track { animation: logo-scroll 38s linear infinite; } }   /* keeps moving on hover */
@keyframes logo-scroll { to { transform: translateX(calc(-50% - clamp(25px, 3vw, 48px))); } }
@media (prefers-reduced-motion: reduce) { .logo-strip__track { flex-wrap: wrap; justify-content: center; width: auto; } .logo-strip li[aria-hidden] { display: none; } .logo-strip { -webkit-mask-image: none; mask-image: none; } }

/* ---------- project page ---------- */
.facts-band { background: var(--surface); color: var(--heading); padding: 0; position: relative; z-index: 3; border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.facts li { padding: 30px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 8px; }
.facts b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { padding: 12px 18px; border-radius: 40px; background: var(--surface); border: 1px solid var(--stone-400); color: var(--heading); font-weight: 600; font-size: 15.5px; }
/* ---------- home hero: the featured projects ----------
   One big picture with the project's details, the four projects underneath as tabs.
   It sits on the page itself (no blue section behind it); the tabs turn blue when chosen or pointed at. */
.home-hero { margin: 0 var(--frame) var(--frame); }
.home-hero .showcase__tabs { margin-top: var(--frame); column-gap: var(--frame); }   /* the space above and between the tabs matches the hero's side margins */
.home-hero .showcase__panel { aspect-ratio: auto; min-height: var(--hero-h); border-radius: var(--frame-r); padding: clamp(26px, 4vw, 64px); }
.home-hero .showcase__panel .project-card__tag { left: clamp(26px, 4vw, 64px); top: clamp(26px, 4vw, 64px); }
/* along the top: the sector and the number */
.home-hero .showcase__top { position: absolute; left: clamp(26px, 4vw, 64px); right: clamp(26px, 4vw, 64px); top: clamp(26px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home-hero .showcase__top .project-card__tag, .home-hero .showcase__top .showcase__count { position: static; flex: none; }
/* along the bottom: the facts, a white bar with a gold timer showing the time left on this project, and the button */
.home-hero .showcase__panel { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0; }
.home-hero .showcase__foot { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.home-hero .showcase__foot .project-card__facts { flex: none; margin: 0; }
.showcase__timer { flex: 1; min-width: 60px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.showcase__timer i { display: block; height: 100%; border-radius: inherit; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.home-hero .showcase__panel.is-timing .showcase__timer i { animation: tab-time var(--slide, 12s) linear forwards; }
.home-hero .showcase.is-paused .showcase__panel.is-timing .showcase__timer i { animation-play-state: paused; }
.home-hero .showcase__body { max-width: 780px; }
.home-hero .showcase__name { font-size: clamp(38px, 4.8vw, 76px); }
.home-hero .showcase__text { font-size: 18px; max-width: 640px; }
/* moving to another project: the next project dissolves in over the last one (which stays underneath
   until it's covered) and its words rise into place. Photos inside one project cross-fade too. */
.home-hero .showcase__panels { position: relative; }
.home-hero .showcase__panel.is-active { animation: none; z-index: 1; }
.home-hero .showcase__panel.is-leaving { position: absolute; inset: 0; z-index: 0; }
@media (prefers-reduced-motion: no-preference) {
  .home-hero .showcase__panel.is-active.is-entering { animation: panel-in 1.1s cubic-bezier(.4, 0, .2, 1) both; }
  .home-hero .showcase__panel.is-entering .showcase__pics img.is-on { animation: pic-settle 1.6s cubic-bezier(.2, .6, .2, 1) both; }
}
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pic-settle { from { filter: blur(6px); } to { filter: none; } }
/* the blue fade from the left, the same as the page heroes */
.home-hero .showcase__body, .home-hero .showcase__count { text-shadow: 0 1px 14px rgba(14, 26, 58, .5); }   /* keeps the words clear on the brighter photos */
.home-hero .showcase__panel::after { background: var(--hero-fade); }
@media (prefers-reduced-motion: no-preference) {
  .home-hero .showcase__panel.is-active .showcase__body > *, .home-hero .showcase__panel.is-active .showcase__foot, .home-hero .showcase__panel.is-active .showcase__top { animation: rise .8s var(--ease) both; }
  .home-hero .showcase__panel.is-active .showcase__top { animation-delay: .3s; }
  .home-hero .showcase__panel.is-active .showcase__loc { animation-delay: .34s; }
  .home-hero .showcase__panel.is-active .showcase__name { animation-delay: .42s; }
  .home-hero .showcase__panel.is-active .showcase__text { animation-delay: .5s; }
  .home-hero .showcase__panel.is-active .showcase__foot { animation-delay: .58s; }
}
.showcase__count { position: absolute; right: clamp(26px, 4vw, 64px); top: clamp(26px, 4vw, 64px); margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 600; letter-spacing: .14em; }
.showcase__count b { color: #fff; font-size: 22px; letter-spacing: .04em; }
.home-hero .showcase__tab { position: relative; overflow: hidden; align-items: stretch; gap: 18px; padding: 12px 20px 12px 12px; border-radius: 20px; font-size: 18px; background: var(--stone); border-color: transparent; color: var(--heading); }
.home-hero .showcase__tab img { width: clamp(96px, 8vw, 132px); height: auto; min-height: 86px; border-radius: 13px; }   /* a smaller picture on smaller laptops, so the names fit beside it */
.home-hero .showcase__tab > span { align-self: center; }
.home-hero .showcase__tab small { font-size: 12px; }
/* "Up next" on the project that comes in after this one (site.js moves it along) */
.showcase__up, .showcase__now { position: absolute; left: 20px; top: 20px; display: none; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 20px; background: var(--gold); color: var(--navy); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1; box-shadow: 0 4px 12px rgba(6, 12, 30, .25); }
.showcase__now { background: #fff; color: var(--navy); }   /* the white "Current" badge on the chosen project's picture */
.showcase__tab[data-next] .showcase__up, .showcase__tab[aria-selected="true"] .showcase__now { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) { .showcase__tab[data-next] .showcase__up, .showcase__tab[aria-selected="true"] .showcase__now { animation: rise .5s var(--ease) both; } }
/* the bar along the chosen tab fills while that project is showing, then the next one comes in */
/* the chosen project's tab grows a little (the timer is on the picture now, by the View project button) */
.home-hero .showcase__tab { transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
.home-hero .showcase__tab[aria-selected="true"] { transform: scale(1.05); box-shadow: 0 16px 34px rgba(14, 26, 58, .22); z-index: 1; }
@keyframes tab-time { to { transform: scaleX(1); } }
.home-hero .showcase__tab small { color: var(--bronze); }
.home-hero .showcase__tab img { opacity: 1; }
.home-hero .showcase__tab:hover, .home-hero .showcase__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.home-hero .showcase__tab:hover small, .home-hero .showcase__tab[aria-selected="true"] small { color: var(--gold); }
.home-hero .showcase__tab:focus-visible { outline-color: var(--navy); }

/* project photos: one big picture, the rest underneath (works like the home page showcase) */
.pics__stage { position: relative; }
.pics__panel { margin: 0; }
.pics__panel[hidden] { display: none; }
.pics__panel.is-active { animation: show-in .6s var(--ease) both; }
.pics__panel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.pics__panel figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 2px 0; color: var(--text); font-size: 17px; line-height: 1.45; }
.pics__panel figcaption span:first-child { max-width: 680px; }
.pics__count { flex: none; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--bronze); }
/* three thumbnails in view; the row slides along to follow the arrows */
.pics__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; margin: 17px -5px 0; padding: 5px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 5px; scrollbar-width: none; }
.pics__thumbs::-webkit-scrollbar { display: none; }
.pics__arrows { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; pointer-events: none; }
.pics__arrow { pointer-events: auto; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; box-shadow: 0 10px 24px rgba(14, 26, 58, .25); transition: background .2s, transform .2s var(--ease); }
.pics__arrow:hover { background: var(--gold); }
.pics__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pics__arrow svg { width: 20px; height: 20px; }
.pics__arrow--prev svg { transform: rotate(180deg); }
.pics__thumb { display: block; scroll-snap-align: start; padding: 0; border: 0; background: var(--stone-200); border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; cursor: pointer; }
.pics__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pics__thumb:hover img { transform: scale(1.05); }
.pics__thumb[aria-selected="true"] { outline: 2px solid var(--navy); outline-offset: 3px; }
.pics__thumb:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.quote { max-width: 960px; margin: 0 auto; text-align: center; }
.quote p { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4; color: var(--heading); font-weight: 500; letter-spacing: -.01em; }
.quote cite { font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); }
.next-project { margin: var(--frame); }
.next-project a { border-radius: var(--frame-r); position: relative; display: block; min-height: 380px; background: var(--navy-900); color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.next-project__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 26, 58, .95), rgba(14, 26, 58, .5)); }
.next-project__inner { display: flex; flex-direction: column; justify-content: center; min-height: 380px; }
.next-project small { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.next-project b { font-size: clamp(36px, 5vw, 70px); line-height: 1.05; letter-spacing: -.03em; margin: 10px 0; }
.next-project span:not(.next-project__shade) { color: rgba(255, 255, 255, .8); }
.next-project .ic-arrow { width: 40px; height: 40px; margin-top: 20px; color: var(--gold); }
.next-project a:hover img { transform: scale(1.04); }
.next-project a:hover .ic-arrow { transform: translateX(10px); }

/* before / after slider (from the ACS website) */
/* before & after: words and buttons on the left, the slider on the right */
.ba { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.ba__text .sec-head { margin-bottom: 18px; }
.ba__cap { font-size: 18px; margin: 0 0 26px; max-width: 460px; }
.ba__controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ba__hint { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0; }
.ba__hint svg { width: 16px; height: 16px; transform: rotate(-90deg); color: var(--bronze); }
.ba__note { display: inline-block; margin: 18px 0 0; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); background: rgba(162, 92, 30, .1); padding: 7px 12px; border-radius: 20px; }
.ba .compare__frame { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px rgba(14, 26, 58, .16); }
.ba--tall { grid-template-columns: 6fr 5fr; }
.ba .compare--tall { max-width: none; width: 100%; margin: 0; }
.ba .compare--tall .compare__frame { aspect-ratio: 4 / 5; }

/* client feedback card */
.testimonial { display: block; margin: 0; padding: clamp(30px, 4vw, 56px); border-radius: var(--radius); background: var(--stone); }
.testimonial__mark { display: block; height: .5em; margin-bottom: 26px; font: 700 clamp(90px, 9vw, 130px)/.75 Georgia, "Times New Roman", serif; color: var(--gold); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0 0 20px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.45; font-weight: 500; color: var(--heading); letter-spacing: -.01em; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 2px; }
.testimonial figcaption b { color: var(--heading); font-size: 17px; }
.testimonial figcaption span { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.testimonial__title { margin: 0 0 8px; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; font-weight: 700; color: var(--heading); letter-spacing: -.015em; }
.testimonial--pending p:not(.testimonial__title) { margin: 0 0 22px; font-size: 17px; }

.compare { position: relative; --pos: 50%; }
.compare__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare.is-gliding .compare__before { transition: clip-path .5s var(--ease); }
.compare.is-gliding .compare__line { transition: left .5s var(--ease); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.compare__knob svg { width: 18px; height: 18px; }
.compare__knob svg:first-child { transform: rotate(90deg); } .compare__knob svg:last-child { transform: rotate(-90deg); }
.compare__tag { position: absolute; top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 8px 13px; border-radius: 30px; background: rgba(14, 26, 58, .8); color: #fff; }
.compare__tag--before { left: 18px; } .compare__tag--after { right: 18px; background: var(--gold); color: var(--navy); }
.compare__range { position: absolute; inset: auto 0 0; width: 100%; opacity: 0; height: 1px; }
.compare--tall { max-width: 620px; margin: 0 auto; }
.compare--tall .compare__frame { aspect-ratio: 4 / 5; }
.compare--tall + .compare__cap { text-align: center; }
.compare__cap { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- about ---------- */
/* The reference list booklet (About, "Safe by design") */
.booklet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: clamp(30px, 5vw, 80px); margin-top: clamp(40px, 5vw, 70px); padding: clamp(30px, 4.4vw, 64px); border-radius: var(--frame-r); background: var(--stone); }   /* full width under the accreditations: the booklet on the left, the words on the right */
.booklet__stack { position: relative; display: block; width: min(260px, 70%); justify-self: center; margin-top: 2%; }
.booklet__sheet, .booklet__cover { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 14px 34px rgba(14, 26, 58, .14); transition: transform .6s var(--ease); }
.booklet__sheet { position: absolute; inset: 0; height: 100%; object-fit: cover; transform-origin: 50% 100%; }
.booklet__sheet:nth-child(1) { transform: rotate(-8deg) translateX(-7%); }
.booklet__sheet:nth-child(2) { transform: rotate(5deg) translateX(8%); }
.booklet__cover { position: relative; box-shadow: 0 26px 56px rgba(14, 26, 58, .26); }
.booklet:hover .booklet__cover { transform: translateY(-8px); }
.booklet:hover .booklet__sheet:nth-child(1) { transform: rotate(-12deg) translateX(-12%); }
.booklet:hover .booklet__sheet:nth-child(2) { transform: rotate(8deg) translateX(13%); }
.booklet__text h3 { margin: 0 0 14px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.02em; color: var(--heading); }
.booklet__text p { margin: 0; }
.booklet__text { max-width: 480px; }
.booklet__text .eyebrow { margin-bottom: 14px; }
@media (max-width: 760px) { .booklet { grid-template-columns: 1fr; justify-items: center; text-align: center; } .booklet__text .eyebrow { justify-content: center; } }   /* phones: the booklet above the words, centred */
.booklet__meta { margin: 16px 0 24px !important; font-size: 14px; font-weight: 600; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .booklet__sheet, .booklet__cover { transition: none; } }
.acc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }   /* four logos, two by two */
.acc-list li { display: flex; align-items: center; justify-content: center; height: 76px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.acc-list img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.acc-list img[src*="constructionline"] { height: 30px; }   /* the wide wordmark looks bigger than the others at the same height */

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact__info h2 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 30px; }
.contact__list li a, .contact__list li p { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--heading); font-weight: 600; font-size: 18px; margin: 0; }
.contact__list svg { width: 26px; height: 26px; color: var(--bronze); flex: none; }
.contact__list small { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.form { background: var(--stone); border-radius: 24px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--heading); }
.form input, .form select, .form textarea { font: 500 16px/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1.5px solid var(--stone-400); border-radius: 12px; padding: 14px 16px; width: 100%; transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); }
.form .is-invalid { border-color: #b3261e; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-weight: 600; color: var(--heading); }
.hp { position: absolute; left: -9999px; }

/* ---------- CTA band + footer ---------- */
.cta-band { position: relative; margin: var(--frame); border-radius: var(--frame-r); background: var(--grey); color: var(--text); padding: clamp(64px, 8vw, 110px) 0; }
.cta-band__inner { display: grid; grid-template-columns: 7fr 5fr; gap: 26px clamp(30px, 6vw, 90px); align-items: end; }
.cta-band h2 { color: var(--heading); font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -.03em; max-width: 13ch; }
.cta-band h2 em { color: var(--bronze); font-style: normal; }
.cta-band .eyebrow { margin-bottom: 16px; }
.cta-band__text { margin: 0; font-size: 18px; color: var(--text); max-width: 460px; }
.cta-band__ways { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--frame); margin-top: clamp(20px, 3vw, 34px); }   /* each item as wide as its content, the same space between them, edge to edge */
.cta-band__ways a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; height: 100%; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); color: var(--heading); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.cta-band__ways a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(6, 12, 30, .1); }
.cta-band__ic { grid-row: 1 / span 2; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--stone); color: var(--bronze); }
.cta-band__ic svg { width: 22px; height: 22px; }
.cta-band__ways small { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cta-band__ways b { font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; line-height: 1.25; white-space: nowrap; }   /* each card's number, email or link on one line: the cards size to fit them */
@media (max-width: 1120px) {   /* tighter cards so all three still sit in a row, sized like buttons */
  .cta-band__ways { gap: 14px; }
  .cta-band__ways a { padding: 16px 18px; column-gap: 12px; }
  .cta-band__ic { width: 40px; height: 40px; }
  .cta-band__ic svg { width: 19px; height: 19px; }
  .cta-band__ways small { font-size: 11px; letter-spacing: .12em; }
  .cta-band__ways b { font-size: 16px; }
}
@media (max-width: 900px) { .cta-band__ways { flex-wrap: wrap; justify-content: flex-start; gap: 12px; } }   /* tablets: each card as wide as its text, wrapping onto the next line, never a wide bar */
@media (max-width: 620px) { .cta-band__ways li { flex: 1 1 100%; } .cta-band__ways .cta-band__main { flex: 0 0 auto; } }   /* phones: full-width buttons */
@media (max-width: 359px) { .cta-band__ways b { white-space: normal; overflow-wrap: anywhere; } .btn { white-space: normal; } }   /* the very smallest phones: let the email wrap rather than spill out */
/* the enquiry card: gold with a navy arrow (matches the gold buttons) */
.cta-band__main a { grid-template-columns: auto auto; }   /* the words first, the arrow circle on the right */
.cta-band__main .cta-band__ic { grid-column: 2; grid-row: 1 / span 2; }
.cta-band__main small, .cta-band__main b { grid-column: 1; }
.cta-band__main a { background: var(--gold); color: var(--navy); border-radius: 999px; padding-left: 32px; padding-right: 32px; }   /* pill, like the other buttons, the same padding both ends */
@media (max-width: 1120px) { .cta-band__main a { padding-left: 24px; padding-right: 24px; } }
.cta-band__main a:hover { background: #f6d58b; }
.cta-band__main small { color: rgba(25, 43, 89, .7); }
.cta-band__main .cta-band__ic { background: var(--navy); color: var(--gold); }
.cta-band__main a:hover .ic-arrow { transform: translateX(4px); }
/* phone and email: no box, just the details beside a white icon circle; the gold enquiry card is the one button */
.cta-band__ways li:not(.cta-band__main) a { background: none; padding-left: 0; padding-right: 0; }
.cta-band__ways li:not(.cta-band__main) a:hover { transform: none; box-shadow: none; }
.cta-band__ways li:not(.cta-band__main) .cta-band__ic { background: #fff; transition: background .3s, color .3s; }
.cta-band__ways li:not(.cta-band__main) a:hover .cta-band__ic { background: var(--navy); color: var(--gold); }
.site-footer { margin: 0 var(--frame) var(--frame); border-radius: var(--frame-r); overflow: hidden; background: var(--navy-900); color: rgba(255, 255, 255, .7); font-size: 15.5px; padding-top: clamp(56px, 6vw, 84px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 46px; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 22px; }
.footer__brand p { max-width: 330px; }
.footer__group { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; text-decoration: none; }
.footer__group:hover .ic-arrow { transform: translateX(4px); }
.site-footer h3 { color: #fff; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin: 6px 0 18px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { text-decoration: none; color: rgba(255, 255, 255, .72); transition: color .2s; }
.site-footer ul a:hover { color: #fff; }
.footer__contact a, .footer__contact p { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; color: rgba(255, 255, 255, .8); margin: 0 0 14px; line-height: 1.5; }
.footer__contact svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }
.footer__acc { display: flex; align-items: center; gap: 24px; padding: 26px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__acc p { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); font-weight: 600; }
.footer__acc ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer__acc li { display: flex; align-items: center; height: 58px; padding: 0 18px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.footer__acc img { height: 32px; width: auto; }
.footer__acc img[src*="constructionline"] { height: 24px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 22px var(--gutter) 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .5); }
.footer__base p { margin: 0; }
.footer__photo { display: inline-block; }
.footer__photo a { white-space: nowrap; color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.footer__photo a:hover { color: #fff; }
.footer__credit a { color: #fff; font-weight: 600; text-decoration: none; }
.footer__credit a span { color: var(--credit); }
.footer__credit a:hover { text-decoration: underline; text-decoration-color: var(--credit); text-underline-offset: 3px; }

/* ---------- page change: the navy wipe with the swirl ---------- */
.page-wipe { position: fixed; inset: 0; z-index: 500; background: var(--navy-900); display: grid; place-items: center; pointer-events: none; transform: translateY(100%); }
.page-wipe::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(var(--gold), var(--gold)); }
.page-wipe img { width: 96px; height: 96px; opacity: 0; }
.page-wipe.is-covering { transform: none; transition: transform .55s cubic-bezier(.7, 0, .3, 1); }
.page-wipe.is-covering img { opacity: 1; transition: opacity .3s .25s; animation: swirl-turn 1.2s linear infinite; }
.wipe-in .page-wipe { transform: none; }
.wipe-in .page-wipe img { opacity: 1; animation: swirl-turn 1.2s linear infinite; }
.page-wipe.is-revealing { transform: translateY(-100%); transition: transform .7s cubic-bezier(.7, 0, .3, 1); }
.page-wipe.is-revealing img { opacity: 0; transition: opacity .2s; }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero__eyebrow, .hero__title span, .hero__text, .hero__actions { animation: rise .9s var(--ease) both; }
  .hero__title span:nth-child(1) { animation-delay: .1s; } .hero__title span:nth-child(2) { animation-delay: .2s; }
  .hero__text { animation-delay: .32s; } .hero__actions { animation-delay: .42s; }
  .wipe-in .hero__eyebrow, .wipe-in .hero__title span, .wipe-in .hero__text, .wipe-in .hero__actions { animation-play-state: paused; }
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav__top { padding-left: 10px; font-size: 15.5px; }
  .nav__list { gap: 6px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 30px; }
  .footer__contact h3 { width: 100%; }
}
@media (max-width: 1100px) {
  .side-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; margin-bottom: 40px; }
  .side__label, .side__card { display: none; }
  .side__index ol { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; border: 0; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .side__index ol::-webkit-scrollbar { display: none; }
  .side__index a { margin: 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 40px; white-space: nowrap; font-size: 14.5px; }
  .side__index a[aria-current="true"] { border-image: none; border-color: var(--navy); background: var(--navy); color: #fff; }
  .side__index a[aria-current="true"] span { color: var(--gold); }
  :root { --header-h: 76px; }
  .menu-btn { display: block; }
  .header__phone, .header__cta { display: none; }
  .header__actions { margin-left: auto; }
  .nav { --hdr-ink: #fff; position: fixed; inset: 0; z-index: -1; display: block; background: var(--navy-900); padding: calc(var(--header-h) + 20px) var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
  .menu-open .nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav { clip-path: inset(var(--header-h) 0 0 0); }   /* the menu scrolls under the logo bar, not over it */
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: var(--navy-900); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item--link { margin-right: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav__top { flex: 1; font-size: 26px; font-weight: 700; padding: 18px 0; }
  .nav__top::after { display: none; }
  .nav__toggle { width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; padding: 0; color: #fff; }
  .nav__dd { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__item.is-open .nav__dd { display: block; }
  .nav__dd-inner { display: flex; flex-direction: column; width: auto; background: none; box-shadow: none; padding: 0 0 16px; gap: 0; }
  .nav__dd-intro { order: 2; border: 0; padding: 4px 0 0; }
  .nav__dd-label, .nav__dd-text { display: none; }
  /* the same preview tiles as the desktop menu, two to a row */
  .nav__tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 12px; padding: 6px 0 8px; }
  .nav__tiles a { color: #fff; padding: 0; border-radius: 0; }
  .nav__tiles a:hover, .nav__tiles a:focus-visible { background: none; }
  .nav__tiles:hover a:not(:hover) { opacity: 1; }
  .nav__thumb { outline-color: rgba(255, 255, 255, .12); background: var(--navy-700); }
  .nav__badge { left: 8px; bottom: 8px; width: 40px; height: 40px; }
  .nav__thumb .nav__badge img { max-width: 26px; max-height: 21px; }
  .nav__badge svg { width: 18px; height: 18px; }
  .nav__thumb .nav__badge--centre { left: 50%; top: 50%; width: auto; height: auto; }
  .nav__thumb .nav__badge--centre svg { width: 38px; height: 38px; }
  .nav__thumb .nav__badge--centre img { max-width: 70px; max-height: 30px; }
  .nav__tile-name { margin: 10px 0 2px; font-size: 15px; font-weight: 600; }
  .nav__tile-meta { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
  .nav__tiles a[aria-current="page"] .nav__tile-name { color: var(--gold); }
  .nav__dd-all { justify-content: flex-start; border: 0; padding: 12px 0; color: var(--gold); }
  .nav__dd-chat { display: none; }
  .nav__dd-all:hover { background: none; color: var(--gold); }
  .nav { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--navy-900) url(../img/textures/cladding-navy.jpg) center / cover no-repeat; }   /* the cladding texture, faint, behind the open menu */
  .nav { overflow: hidden; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .nav__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }   /* the links scroll on their own... */
  .nav__list::-webkit-scrollbar { display: none; }
  .nav__list { -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }   /* links fade out above the pinned block */
  .nav__extra { flex: none; display: flex; flex-direction: column; gap: 22px; margin-top: auto; padding-top: 28px; }   /* ...so accreditations and contact stay pinned to the bottom, even with a section open */
  .nav__acc-label { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
  .nav__acc ul { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
  .nav__acc img { height: 26px; width: auto; }
  .nav__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .nav__contact .nav__cta { margin-left: auto; }
  .nav__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; }
  .nav__phone svg { width: 20px; height: 20px; color: var(--gold); }
  @media (max-width: 560px) {   /* phones: smaller links so the pinned block fits; phone and email share one line, the button below */
    .nav { padding-top: calc(var(--header-h) + 6px); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    .nav__top { font-size: 20px; padding: 13px 0; }
    .nav__toggle { width: 38px; height: 38px; }
    .nav__extra { gap: 16px; padding-top: 18px; }
    .nav__acc-label { margin-bottom: 10px; font-size: 10px; }
    .nav__acc ul { gap: 10px 18px; }
    .nav__acc img { height: 20px; }
    .nav__contact { justify-content: space-between; gap: 12px 14px; padding-top: 16px; }
    .nav__phone { gap: 7px; font-size: min(14px, 3.55vw); white-space: nowrap; }
    .nav__phone svg { width: 15px; height: 15px; }
    .nav__contact .nav__cta { flex: 1 1 100%; justify-content: center; margin-left: 0; padding-top: 13px; padding-bottom: 13px; }
  }
  @media (max-height: 520px) {   /* very short screens (phones on their side): the whole menu scrolls instead */
    .nav { overflow-y: auto; }
    .nav__list { flex: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  }
  .hero__track a { padding: 13px 16px 13px 18px; font-size: 14.5px; border-radius: 14px; }
  .svc-grid, .steps, .points { grid-template-columns: repeat(2, 1fr); }
  .svc-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* nine services: the last one spans the row */
  .sector-links { grid-template-columns: repeat(3, 1fr); }
  .sector-links--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sector-chapter { grid-template-columns: minmax(0, 1fr); }
  .sector-chapter__media { aspect-ratio: 16 / 10; }
  .sector-chapter--flip .sector-chapter__media { order: 0; }
  .points--two { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .sector-figure figcaption { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ba { grid-template-columns: 1fr; }
  .pics__panel img { aspect-ratio: 4 / 3; }
  .pics__panel figcaption { padding-top: 14px; font-size: 15px; gap: 16px; }
  .pics__arrows { aspect-ratio: 4 / 3; padding: 0 12px; }
  .pics__arrow { width: 42px; height: 42px; }
  .sec-row { flex-direction: column; align-items: flex-start; }
  .split--flip > :first-child { order: 0; }
  .showcase__tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .showcase__tabs::-webkit-scrollbar { display: none; }
  .showcase__tab { flex: none; width: 250px; font-size: 15px; }
  .showcase__tab img { width: 76px; height: 52px; }
  .home-hero .showcase__tab { width: 290px; font-size: 16px; gap: 14px; }
  .home-hero .showcase__tab img { width: 100px; min-height: 68px; }
  .showcase__up, .showcase__now { left: 18px; top: 18px; font-size: 9.5px; padding: 4px 7px; }
  .showcase__panel { display: block; aspect-ratio: auto; min-height: 0; padding: 0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
  .showcase__panel > img { position: relative; z-index: auto; height: auto; aspect-ratio: 4 / 3; }
  .showcase__panel::after { display: none; }
  .showcase__panel .project-card__tag { left: 18px; top: 18px; }
  .showcase__body { padding: 22px 22px 0; }
  .showcase__go { margin: 20px 22px 24px; }
  .showcase__text { font-size: 16px; }
  .home-hero .showcase__panel { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: clamp(520px, 80svh, 680px); padding: 22px 20px; border: 0; background: none; }
  .home-hero .showcase__panel[hidden] { display: none; }
  .home-hero .showcase__panel::after, .page-hero__media::after { display: block; background: var(--hero-fade-phone); }
  .home-hero .showcase__panel .project-card__tag { left: 20px; top: 20px; }
  .home-hero .showcase__top { left: 20px; right: 20px; top: 20px; gap: 14px; }
  .home-hero .showcase__foot { flex-direction: column; align-items: stretch; gap: 18px; }   /* on a phone: the facts, the bar under them, then the button */
  .home-hero .showcase__foot .showcase__go { align-self: flex-start; }
  .home-hero .showcase__timer { flex: none; width: 100%; }
  .showcase__count { right: 20px; top: 24px; }
  .showcase__count b { font-size: 18px; }
  .home-hero .showcase__body { padding: 0; }
  .home-hero .showcase__go { margin: 0; }
  .home-hero .showcase__tabs { margin-left: calc(var(--frame) * -1); margin-right: calc(var(--frame) * -1); padding: 10px calc(var(--frame) + 8px) 22px; margin-top: calc(var(--frame) - 10px); margin-bottom: -22px; }   /* room for the bigger chosen tab and its shadow, which would be cut off by the sideways scroll */
  /* tablets: three project tabs across, exactly filling the width, each a picture with the place and name
     under it; the row slides along to the fourth as the projects play (phones: two, below) */
  .home-hero .showcase__tabs { --tabs: 3; padding-inline: var(--frame); scroll-padding-inline: var(--frame); scroll-snap-type: x mandatory; }
  .home-hero .showcase__tab { width: calc((100% - (var(--tabs) - 1) * var(--frame)) / var(--tabs)); flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 8px 14px; border-radius: 18px; font-size: 15px; scroll-snap-align: start; }
  .home-hero .showcase__tab img { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 10; border-radius: 12px; }
  .home-hero .showcase__tab > span { align-self: stretch; padding: 0 6px; }
  .home-hero .showcase__tab small { font-size: 11px; }
  .home-hero .showcase__up, .home-hero .showcase__now { left: 14px; top: 14px; }
  .hero__inner { grid-template-columns: 1fr; gap: 22px; }
  .hero__side { padding-bottom: 0; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .split, .why, .contact, .cta-band__inner { grid-template-columns: 1fr; }
  .split .sec-head { position: static; }
  .why__list--grid { grid-template-columns: 1fr; }
  .why-wide { display: block; min-height: 0; padding-top: 0; }   /* phones and tablets: the photo on top, the list underneath */
  .why-wide__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; margin-bottom: -48px; }
  .why-wide__media img { object-position: 24% 50%; }
  .why-wide__media::after { background: linear-gradient(0deg, var(--navy-900) 0%, rgba(14, 26, 58, .6) 22%, rgba(14, 26, 58, 0) 50%); }
  .why-wide__inner { position: relative; }
  .why-wide__panel { width: 100%; }
  .sec-row { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .facts li:first-child { padding-left: 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { border-top: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 620px) {
  .sector-chapter__go { white-space: normal; max-width: 100%; }   /* long project names wrap instead of widening the page */
  .svc-grid { gap: 10px; }   /* nine services: compact cards, arrow in the corner */
  .svc-card__in { padding: 18px 64px 20px 20px; }
  .svc-card__name { font-size: 19px; margin: 8px 0 6px; }
  .svc-card__text { font-size: 14.5px; margin-bottom: 0; }
  .svc-card__go { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; }
  .works-grid { grid-template-columns: 1fr; }
  .home-hero .showcase__tabs { --tabs: 2; }   /* phones: two project tabs across */
  /* phones: the hero card and the two preview tabs fit the screen together. The tabs are compact
     (a square picture beside the name, "Current"/"Up next" above it) and the card fills what's left. */
  .home-hero .showcase__tab { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 16px; font-size: 13.5px; line-height: 1.25; }
  .home-hero .showcase__tab img { width: 56px; height: 56px; min-height: 0; aspect-ratio: 1; flex: none; border-radius: 10px; }
  .home-hero .showcase__tab > span { align-self: center; padding: 15px 0 0; }
  .home-hero .showcase__tab small { display: none; }
  .home-hero .showcase__up, .home-hero .showcase__now { left: 74px; top: 9px; padding: 3px 6px; font-size: 8.5px; box-shadow: none; }
  .home-hero .showcase__panel { min-height: calc(100vh - var(--header-h) - 72px - var(--frame) * 3); min-height: calc(100svh - var(--header-h) - 72px - var(--frame) * 3); padding: 64px 18px 20px; }   /* top padding keeps the text clear of the sector tag */
  .home-hero .showcase__top { left: 18px; right: 18px; top: 18px; }
  .home-hero .showcase__top .project-card__tag { padding: 7px 12px; font-size: 10px; }
  .home-hero .showcase__count b { font-size: 16px; }
  .home-hero .showcase__loc { font-size: 11px; margin-bottom: 6px; }
  .home-hero .showcase__name { font-size: 32px; margin-bottom: 8px; }
  .home-hero .showcase__text { font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
  .home-hero .showcase__foot { gap: 14px; }
  .home-hero .showcase__foot .project-card__facts { gap: 6px; }
  .home-hero .project-card__facts li { padding: 7px 10px; border-radius: 10px; font-size: 13.5px; }
  .home-hero .project-card__facts small { font-size: 8.5px; letter-spacing: .1em; margin-bottom: 2px; }
  .home-hero .showcase__go { padding: 11px 18px; font-size: 14.5px; gap: 8px; }
  .home-hero .showcase__go svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {   /* narrow phones (360px): three facts still fit on one row, tab names on two lines */
  .home-hero .project-card__facts li { padding: 6px 8px; font-size: 12.5px; }
  .home-hero .project-card__facts small { font-size: 8px; letter-spacing: .08em; }
  .home-hero .showcase__name { font-size: 29px; }
  .home-hero .showcase__tab { gap: 8px; font-size: 13px; }
  .home-hero .showcase__tab img { width: 48px; height: 48px; }
  .home-hero .showcase__up, .home-hero .showcase__now { left: 64px; }
}
@media (max-width: 620px) and (max-height: 640px) {   /* short phones (iPhone SE): the description keeps to two lines so the tabs still show */
  .home-hero .showcase__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  :root { --frame: 12px; --frame-r: 22px; }
  body { font-size: 16px; }
  .brand img { height: 36px; }
  .sector-grid, .svc-grid, .steps, .points, .tick-list, .form__row, .sector-links { grid-template-columns: 1fr; }
  .steps li, #how .points li { text-align: center; }   /* the four "how we work" boxes, centred once they stack */
  .steps .step__icon { margin-left: auto; margin-right: auto; }
  .hero__title { font-size: clamp(36px, 10.5vw, 52px); }
  .page-hero { min-height: clamp(520px, 80svh, 680px); }
  .page-hero .page-hero__inner { padding: 22px 20px; }
  .page-hero__text, .home-hero .showcase__text { font-size: 16px; }
  .page-hero--logo .page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; }
  .page-hero--logo .page-hero__logo { order: -1; align-self: flex-start; width: 170px; margin-bottom: 26px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__acc { flex-direction: column; align-items: flex-start; }
  .booklet__stack { width: 62%; }
  .acc-list li { height: 64px; padding: 0 16px; }
  .acc-list img { height: 32px; }
  .acc-list img[src*="constructionline"] { height: 24px; }
  .btn { padding: 15px 22px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { border-left: 0; padding-left: 0 !important; }
}

/* ---------- 'Add image' placeholder: a blue panel where a photo is still to be chosen (services) ---------- */
.img-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--navy); color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.img-ph::after { content: ""; position: absolute; inset: 14px; border: 1.5px dashed rgba(255, 255, 255, .22); border-radius: calc(var(--radius) - 8px); pointer-events: none; }
.img-ph svg { width: 48px; height: 48px; color: var(--gold); }
.page-hero__media .img-ph { padding-left: 46%; font-size: 18px; }
.page-hero__media .img-ph svg { width: 64px; height: 64px; }   /* keep the icon clear of the hero text */
.page-hero__media .img-ph::after { inset: 18px; border-radius: calc(var(--frame-r) - 10px); }
@media (max-width: 900px) { .page-hero__media .img-ph { padding: 0 0 38%; } }

/* ---------- 'Photos coming soon': the On site section of a project with no site photos yet ---------- */
.pics-soon { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.pics-soon .img-ph { padding: 0 32px; text-align: center; gap: 10px; }
.pics-soon .img-ph svg { width: 56px; height: 56px; margin-bottom: 6px; }
.pics-soon .img-ph b { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; color: #fff; letter-spacing: -.01em; }
.pics-soon .img-ph span { max-width: 380px; font-weight: 500; font-size: 16px; line-height: 1.5; }
@media (max-width: 560px) { .pics-soon { aspect-ratio: 4 / 3; } }
.ba .pics-soon { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px rgba(14, 26, 58, .16); }
