/* Isometric: a Line and Grid template, the flagship for scaffolding firms.
   The page is drawn on a scaffold's own grid: four bays across, a standard
   (a 1px line) at every bay line running the full height of the page, a ledger
   where one section meets the next, and a coupler where they cross. Content
   sits inside the bays: every grid below is four columns with a gap of two
   bay pads, so each column starts one bay pad in from a standard. Square
   corners, galvanised greys and one safety colour. To set it up for a firm,
   change the tokens below (--brand does most of the work), swap the photos in
   img/, and edit the copy. */

@font-face {
  font-family: "Anybody";
  src: url("/fonts/anybody.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --brand: #C8410B;        /* the firm's colour: the careers band, buttons, the highlight in the hero */
  --brand-ink: #FFFFFF;    /* text on the brand colour */
  --brand-hi: #F08A55;     /* the brand, lifted to read on the dark sections */
  --ink: #15171A;
  --paper: #EDEEEB;        /* galvanised grey: every other section */
  --white: #FFFFFF;
  --muted: #5A6067;
  --muted-dark: #A4AAB0;   /* small text on the dark sections */
  --rule: #CFD2D4;         /* rules between rows */
  --standard: rgba(21, 23, 26, .09);       /* the bay lines on the light sections */
  --standard-dark: rgba(255, 255, 255, .1);
  --coupler: rgba(21, 23, 26, .5);
  --display: "Anybody", "Arial Black", Arial, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1360px;
  --gutter: clamp(28px, 4.4vw, 72px);      /* from the screen edge to the content */
  --pad: clamp(12px, 1.6vw, 24px);         /* from a standard to the content in its bay */
  --gap: calc(2 * var(--pad));             /* between columns: a pad either side of a standard */
  --bays: 4;
  --header: 84px;

  /* Type: nine sizes, plus the two in the logo. Headings are Anybody, set wide. */
  --fs-hero: clamp(42px, 7vw, 116px);      /* the home page h1 */
  --fs-title: clamp(32px, 5.6vw, 92px);    /* inner page h1s */
  --fs-h2: clamp(30px, 3.8vw, 58px);       /* section titles */
  --fs-statement: clamp(25px, 2.9vw, 42px);/* the opening statement, the first review */
  --fs-phone: clamp(30px, 3.2vw, 46px);
  --fs-figure: clamp(22px, 2vw, 30px);     /* the hero strip, the facts */
  --fs-h3: clamp(19px, 1.5vw, 23px);
  --fs-lead: clamp(18px, 1.4vw, 20px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-logo: 18px;
  --fs-logo-sub: 13px;

  /* Space: six steps, then three that grow with the screen. */
  --s0: 4px;
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s-block: clamp(32px, 4vw, 56px);       /* under a section title */
  --s-step: clamp(48px, 6vw, 88px);        /* between stacked blocks */
  --s-section: clamp(72px, 9vw, 136px);    /* the top and bottom of a section */

  --ease: cubic-bezier(.2, .7, .2, 1);
}
@supports (color: oklch(from red l c h)) {
  :root { --brand-hi: oklch(from var(--brand) 0.76 clamp(0.06, c, 0.16) h); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + var(--s3)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--text); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.dark :focus-visible, .careers :focus-visible, .hero :focus-visible, .foot :focus-visible, .cta :focus-visible { outline-color: var(--white); }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
h1, h2 { font-weight: 800; font-stretch: 115%; text-transform: uppercase; line-height: .94; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; font-stretch: 105%; line-height: 1.15; }
p { margin: 0; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 36em; }
.n { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand); }
.arr { width: 1em; height: 1em; flex: none; transition: transform 200ms var(--ease); }
a:hover .arr { transform: translateX(3px); }
.skip { position: absolute; left: var(--s2); top: -80px; background: var(--brand); color: var(--brand-ink); padding: var(--s2) var(--s3); z-index: 40; }
.skip:focus { top: var(--s2); }

/* ---------- The scaffold: standards down every section, a ledger and couplers where sections meet ---------- */
main > section, .foot { position: relative; }
main > section::before, .foot::before {
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; pointer-events: none;
  left: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter) - var(--pad));
  right: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter) - var(--pad));
  background: linear-gradient(90deg, var(--standard) 0 1px, transparent 1px) 0 0 / calc(100% / var(--bays)) 100% repeat-x;
  border-right: 1px solid var(--standard);
}
main > section + section, .foot { border-top: 1px solid var(--rule); }
main > section + section::after, .foot::after {
  content: ""; position: absolute; z-index: 2; top: -4px; height: 9px; pointer-events: none;
  left: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter) - var(--pad) - 4px);
  right: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter) - var(--pad) - 5px);
  --c: linear-gradient(var(--coupler), var(--coupler));
  background: var(--c) 0% 0 / 9px 9px no-repeat, var(--c) 25% 0 / 9px 9px no-repeat, var(--c) 50% 0 / 9px 9px no-repeat, var(--c) 75% 0 / 9px 9px no-repeat, var(--c) 100% 0 / 9px 9px no-repeat;
}
.dark, .careers, .cta, .foot { --standard: var(--standard-dark); --coupler: rgba(255, 255, 255, .6); }
.dark + section, .careers + section, .cta + .foot, .dark + .foot { border-top-color: transparent; }
@media (max-width: 760px) {
  :root { --bays: 2; }
  main > section + section::after, .foot::after { background: var(--c) 0% 0 / 9px 9px no-repeat, var(--c) 50% 0 / 9px 9px no-repeat, var(--c) 100% 0 / 9px 9px no-repeat; }
}

/* The example bar: only on the demo. Delete it for a client. */
.example { position: relative; z-index: 21; background: var(--ink); color: var(--muted-dark); font-size: var(--fs-small); }
.example .wrap { display: flex; flex-wrap: wrap; gap: var(--s0) var(--s3); align-items: center; justify-content: space-between; padding-block: var(--s2); }
.example a { color: var(--white); font-weight: 600; }
.example .back { margin-left: auto; font-weight: 400; }
.demo-note { position: fixed; left: var(--s3); right: var(--s3); bottom: var(--s3); z-index: 30; max-width: 560px; margin: 0 auto; display: flex; gap: var(--s3); align-items: flex-start; justify-content: space-between; background: var(--ink); color: var(--white); padding: var(--s3); font-size: var(--fs-small); line-height: 1.5; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.demo-note[hidden] { display: none; }
.demo-note a { color: var(--brand-hi); font-weight: 600; }
.demo-note button { flex: none; background: none; border: 0; color: var(--white); font: inherit; font-size: var(--fs-logo); line-height: 1; padding: 0 var(--s0); cursor: pointer; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--header); margin-bottom: calc(-1 * var(--header)); background: var(--white); border-bottom: 1px solid var(--rule); transition: background-color 250ms ease-out, color 250ms ease-out, border-color 250ms ease-out; }
.js .top:not(.solid) { background: transparent; border-bottom-color: transparent; }
.js .on-hero .top:not(.solid) { color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 100%; }
.logo { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: inherit; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: var(--fs-logo); line-height: 1; text-transform: uppercase; }
.logo .mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: var(--fs-logo); }
.logo .mark.svg { background: none; color: var(--brand); }
.logo .mark svg { display: block; width: 100%; height: 100%; }
.logo small { display: block; margin-top: var(--s0); font-family: var(--text); font-size: var(--fs-logo-sub); font-weight: 400; font-stretch: 100%; text-transform: none; opacity: .75; }
.nav { display: flex; align-items: center; gap: var(--s4); }
.nav a { color: inherit; text-decoration: none; font-weight: 600; padding: var(--s1) 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; text-decoration-color: var(--brand); }
.menu { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: var(--s2) var(--s3); border: 1.5px solid currentColor; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-list { display: grid; }
  .menu-list { display: none; position: absolute; right: 0; top: calc(100% + var(--s1)); min-width: 240px; background: var(--white); border: 1px solid var(--rule); padding: var(--s1); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
  .menu-list a { padding: var(--s2); color: var(--ink); text-decoration: none; font-weight: 600; }
}
@media (max-width: 440px) { .logo small { display: none; } }
/* On a narrow phone the wide setting would push long words (SCAFFOLDING) off the screen. */
@media (max-width: 480px) { h1, h2, .logo { font-stretch: 100%; } .logo { font-size: 16px; } }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s1); min-height: 54px; padding: 0 var(--s4); background: var(--brand); color: var(--brand-ink); text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; transition: filter 150ms ease-out; }
.btn:hover { filter: brightness(1.12); }
.btn.line { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn.line:hover { background: var(--white); color: var(--ink); filter: none; }
.btn.light { background: var(--white); color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 var(--s3); font-size: var(--fs-small); }
.more { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.more:hover { color: var(--brand); }
.dark .more { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-section); }
.section.paper { background: var(--paper); }
.section.dark { background: var(--ink); color: var(--white); }
.dark .lead { color: var(--muted-dark); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3) var(--gap); margin-bottom: var(--s-block); }
.section-head p { margin-top: var(--s3); max-width: 34em; color: var(--muted); font-size: var(--fs-small); }
.grid4 { display: grid; grid-template-columns: repeat(var(--bays), minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: max(640px, 100svh); display: grid; grid-template-rows: 1fr auto; padding-top: var(--header); background: var(--ink); color: var(--white); overflow: hidden; }
.example ~ main .hero { min-height: max(640px, calc(100svh - 44px)); }
.hero .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 16, 18, .45) 0%, rgba(14, 16, 18, .1) 40%, rgba(14, 16, 18, .3) 65%, rgba(14, 16, 18, .88) 100%), linear-gradient(90deg, rgba(14, 16, 18, .6) 0%, rgba(14, 16, 18, .25) 45%, rgba(14, 16, 18, 0) 70%); }
.hero { --standard: rgba(255, 255, 255, .26); }
.js .hero::before { animation: erect 1.6s var(--ease) both; }
@keyframes erect { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.hero-in { align-self: center; padding-block: var(--s-step); }
.hero .intro { font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero h1 { margin-top: var(--s3); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero h1 span { display: block; }
.hero h1 .hl { width: fit-content; margin: .06em 0 0 -.14em; padding: .06em .14em .02em; background: var(--brand); color: var(--brand-ink); text-shadow: none; }
.js .hero h1 span, .js .hero .lead, .js .hero .actions { animation: rise 900ms var(--ease) both; }
.js .hero h1 .hl { animation-delay: 120ms; }
.js .hero .lead { animation-delay: 240ms; }
.js .hero .actions { animation-delay: 340ms; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero .lead { margin-top: var(--s4); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 16px rgba(0, 0, 0, .3); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid rgba(255, 255, 255, .3); }
.strip li { padding: var(--s3) 0 var(--s5); }
.strip span { display: block; font-size: var(--fs-small); color: rgba(255, 255, 255, .75); }
.strip b { display: block; margin-top: var(--s0); font-family: var(--display); font-size: var(--fs-figure); font-weight: 800; font-stretch: 110%; line-height: 1.1; text-transform: uppercase; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip li { padding-block: var(--s2); } }

/* ---------- The opening statement, and who it's for, one bay each ---------- */
.statement { max-width: 24em; font-family: var(--text); font-size: var(--fs-statement); font-weight: 500; font-stretch: 100%; line-height: 1.18; letter-spacing: -0.015em; text-transform: none; }
.clients { list-style: none; margin: var(--s-step) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s5); }
.clients li { padding-top: var(--s3); border-top: 3px solid var(--ink); }
.clients p { margin-top: var(--s1); color: var(--muted); }
@media (max-width: 960px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- What we do: the services as tabs, list in the first bay, the job in the other three ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.tablist { display: none; }
.tabbed .tablist { grid-column: 1; grid-row: 1; display: grid; align-content: start; border-top: 1px solid var(--rule); }
.tablist button { display: flex; align-items: baseline; gap: var(--s2); width: 100%; padding: var(--s3) 0; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--muted); font-family: var(--display); font-size: var(--fs-h3); font-weight: 700; font-stretch: 105%; line-height: 1.15; text-align: left; cursor: pointer; }
.tablist button .n { font-size: var(--fs-small); color: inherit; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { color: var(--ink); }
.tablist button[aria-selected="true"] .n { color: var(--brand); }
.tablist button[aria-selected="true"]::after { content: ""; flex: none; align-self: center; width: 9px; height: 9px; margin-left: auto; background: var(--brand); }
.panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.panel + .panel { margin-top: var(--s-block); }
.tabbed .panel { grid-column: 2 / -1; grid-row: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.panel img { grid-column: span 2; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel-text { grid-column: span 2; }
.tabbed .panel-text { grid-column: span 1; }
.panel-text h3 { display: flex; gap: var(--s2); align-items: baseline; }
.panel-text h3 .n { font-size: var(--fs-small); }
.tabbed .panel-text h3 { display: none; }
.panel-text p { color: var(--muted); }
.tabbed .panel-text p { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); }
.panel-text ul, .service ul, .job ul { list-style: none; margin: var(--s4) 0; padding: 0; border-top: 1px solid var(--rule); }
.panel-text li, .service li, .job li { padding: var(--s1) 0 var(--s1) var(--s4); border-bottom: 1px solid var(--rule); position: relative; }
.panel-text li::before, .service li::before, .job li::before { content: ""; position: absolute; left: 0; top: calc(var(--s1) + .6em); width: 9px; height: 9px; background: var(--brand); }
.panel[hidden] { display: none; }
@media (max-width: 960px) {
  .tabbed .tablist { grid-column: 1 / -1; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: var(--s4); border-top: 0; border-bottom: 1px solid var(--rule); margin-bottom: var(--s4); scrollbar-width: none; }
  .tablist button { border-bottom: 3px solid transparent; white-space: nowrap; }
  .tablist button[aria-selected="true"] { border-bottom-color: var(--brand); }
  .tablist button[aria-selected="true"]::after { display: none; }
  .tabbed .panel, .panel { grid-column: 1 / -1; grid-row: auto; grid-template-columns: minmax(0, 1fr); }
  .panel img { grid-column: auto; margin-bottom: var(--s4); }
}

/* ---------- From survey to strike: a bay per step, along one ledger ---------- */
.process-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3) var(--gap); margin-bottom: var(--s-block); }
.process-head .lead { max-width: 26em; }
.pin { container-type: inline-size; }
.steps { --bay: calc((min(100cqw, var(--max)) - 2 * var(--gutter) + 2 * var(--pad)) / var(--bays)); list-style: none; margin: 0; padding: 0 0 0 calc(max(0px, (100cqw - var(--max)) / 2) + var(--gutter) - var(--pad)); display: flex; }
.steps li { position: relative; flex: 0 0 var(--bay); padding: var(--s5) var(--pad) 0; border-top: 1px solid rgba(255, 255, 255, .45); }
.steps li::before { content: ""; position: absolute; left: -4px; top: -5px; width: 9px; height: 9px; background: var(--brand-hi); }
.steps .n { display: block; font-size: clamp(40px, 4.4vw, 68px); font-weight: 800; font-stretch: 120%; line-height: 1; color: var(--brand-hi); }
.steps h3 { margin-top: var(--s3); font-stretch: 115%; text-transform: uppercase; }
.steps p { margin-top: var(--s2); max-width: 22em; color: var(--muted-dark); }
.progress { height: 3px; margin-top: var(--s-block); background: rgba(255, 255, 255, .15); display: none; }
.progress span { display: block; height: 100%; background: var(--brand-hi); transform: scaleX(0); transform-origin: left; }
.process.pinned { padding-block: 0; }
.process.pinned .pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.process.pinned .steps { will-change: transform; }
.process.pinned .progress { display: block; }
.process:not(.pinned) .steps { flex-wrap: wrap; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; row-gap: var(--s-block); }
.process:not(.pinned) .steps li { flex: 0 0 calc(100% / var(--bays) * 2); }
@media (min-width: 761px) { .process:not(.pinned) .steps li { flex-basis: 50%; } }
@media (min-width: 1100px) { .process:not(.pinned) .steps li { flex-basis: 25%; } }
@media (max-width: 760px) { .process:not(.pinned) .steps li { flex-basis: 100%; } }

/* ---------- Projects: a grid you can sort ---------- */
.sorter { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s4); }
html:not(.js) .sorter { display: none; }
.sorter button { min-height: 44px; padding: 0 var(--s3); border: 1.5px solid var(--ink); background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.sorter button:hover { background: var(--paper); }
.sorter button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 220px); gap: var(--gap); grid-auto-flow: dense; }
.tile { position: relative; grid-row: span 2; overflow: hidden; background: var(--ink); color: var(--white); }
.tile.wide { grid-column: span 2; }
.tile[hidden] { display: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 16, 18, 0) 35%, rgba(14, 16, 18, .88) 100%); }
.tile:has(a:hover) img { transform: scale(1.04); }
.tile-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: var(--s4) var(--pad); }
.tile h2, .tile h3 { font-family: var(--display); font-size: var(--fs-h3); font-weight: 700; font-stretch: 105%; line-height: 1.15; text-transform: none; letter-spacing: 0; }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile .where { margin-top: var(--s0); font-size: var(--fs-small); color: rgba(255, 255, 255, .8); }
.tile .where + p { margin-top: var(--s2); font-size: var(--fs-small); color: rgba(255, 255, 255, .9); }
.tag { display: inline-block; margin-bottom: var(--s2); padding: 2px var(--s1); background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; }
.tag.on { background: var(--brand); color: var(--brand-ink); }
@media (max-width: 960px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 30vw, 240px); } }
@media (max-width: 560px) { .mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } .tile, .tile.wide { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; } .tile.wide { aspect-ratio: 4 / 3; } }

/* ---------- Reviews: the first one across two bays ---------- */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-block) var(--gap); }
.review { padding-top: var(--s4); border-top: 3px solid var(--ink); }
.review:first-child { grid-column: span 2; }
.stars { display: flex; gap: 2px; margin: 0; color: var(--brand); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.review blockquote { margin: var(--s3) 0 0; }
.review blockquote p { font-size: var(--fs-lead); line-height: 1.45; }
.review:first-child blockquote p { font-size: var(--fs-statement); line-height: 1.18; font-weight: 500; letter-spacing: -0.015em; }
.who { margin-top: var(--s3); font-size: var(--fs-small); font-weight: 600; }
.who span { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 960px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reviews { grid-template-columns: minmax(0, 1fr); } .review:first-child { grid-column: auto; } }

/* ---------- Careers: the brand colour, edge to edge ---------- */
.careers { background: var(--brand); color: var(--brand-ink); padding-block: var(--s-section); }
.careers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-block); align-items: center; }
.careers-text { grid-column: span 2; }
.careers h2 span { display: block; }
.careers h2 span + span { color: color-mix(in oklab, var(--brand-ink) 72%, var(--brand)); }
.careers-text > p { margin-top: var(--s4); max-width: 34em; font-size: var(--fs-lead); line-height: 1.5; }
.careers .jobs { list-style: none; margin: var(--s5) 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .4); }
.careers .jobs a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid rgba(255, 255, 255, .4); color: inherit; text-decoration: none; }
.careers .jobs b { font-family: var(--display); font-size: var(--fs-h3); font-weight: 700; font-stretch: 105%; }
.careers .jobs span { font-size: var(--fs-small); opacity: .9; }
.careers .jobs a:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.careers .btn { margin-top: var(--s5); }
.careers-img { grid-column: span 2; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 960px) {
  .careers-text, .careers-img { grid-column: 1 / -1; }
  .careers .jobs a { grid-template-columns: minmax(0, 1fr) auto; }
  .careers .jobs span { grid-column: 1; grid-row: 2; }
  .careers .jobs .arr { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Questions ---------- */
.faq-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4) var(--gap); align-items: start; }
/* The title runs across the top: set wide, it won't fit one bay. The questions sit in the last three. */
.faq-wrap h2 { grid-column: 1 / -1; margin-bottom: var(--s-block); }
.faq { grid-column: 2 / -1; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s4) 0; list-style: none; cursor: pointer; font-family: var(--display); font-size: var(--fs-h3); font-weight: 700; font-stretch: 105%; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; color: var(--brand); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform 200ms ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq details p { margin: 0 0 var(--s4); color: var(--muted); max-width: 40em; }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } .faq { grid-column: auto; } }

/* ---------- Book a survey ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-block); align-items: start; }
.quote-text, .quote { grid-column: span 2; }
.quote-text .lead { margin-top: var(--s4); }
.phone { display: inline-block; margin-top: var(--s5); font-family: var(--display); font-size: var(--fs-phone); font-weight: 800; font-stretch: 110%; line-height: 1; color: var(--ink); text-decoration: none; }
.phone:hover { color: var(--brand); }
.quote-text dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s1) var(--s4); margin: var(--s5) 0 0; }
.quote-text dt { color: var(--muted); }
.quote-text dd { margin: 0; }
.quote { display: grid; gap: var(--s3); padding: var(--gap); background: var(--white); border: 1px solid var(--rule); }
.quote .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
.quote label { display: grid; gap: var(--s1); font-size: var(--fs-small); font-weight: 600; }
.quote input:not([type="radio"]), .quote textarea { width: 100%; min-height: 52px; padding: var(--s2) var(--s3); border: 1px solid #9DA3A8; border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-weight: 400; font-size: var(--fs-body); }
.quote textarea { min-height: 120px; resize: vertical; }
.kind { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0; padding: 0; border: 0; }
.kind legend { width: 100%; margin-bottom: var(--s1); padding: 0; font-size: var(--fs-small); font-weight: 600; }
.kind label { display: block; font-weight: 600; }
.kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 var(--s3); border: 1.5px solid var(--ink); cursor: pointer; }
.kind input:checked + span { background: var(--ink); color: var(--white); }
.kind input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.quote .done { font-weight: 600; color: var(--brand); }
.quote .done:empty { display: none; }
@media (max-width: 960px) { .quote-text, .quote { grid-column: 1 / -1; } }
@media (max-width: 560px) { .quote .pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The end of every inner page ---------- */
.cta { background: var(--ink); color: var(--white); padding-block: var(--s-step); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5) var(--gap); }
.cta h2 span { display: block; color: var(--brand-hi); }
.cta-side { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.cta .phone { margin-top: 0; color: var(--white); font-size: var(--fs-h3); }

/* ---------- Inner pages ---------- */
.page-head { padding-top: calc(var(--header) + var(--s-step)); background: var(--paper); }
.page-head h1 { font-size: var(--fs-title); max-width: 14em; }
.page-head .lead { margin-top: var(--s4); }
.page-head .lead a { color: var(--brand); }
.head-photo { margin-top: var(--s-block); }
.head-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 760px) { .head-photo img { aspect-ratio: 16 / 9; } }

.service { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s4); align-items: start; padding-block: var(--s-block); }
.service:first-child { padding-top: 0; }
.service:last-child { padding-bottom: 0; }
.service + .service { border-top: 1px solid var(--rule); }
.service > img { grid-column: span 2; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service > div { grid-column: span 2; }
.service:nth-child(even) > img { order: 2; }
.service .n { display: block; font-size: var(--fs-small); }
.service h2 { margin-top: var(--s2); font-size: clamp(28px, 3vw, 44px); }
.service .lead { margin-top: var(--s3); color: var(--ink); }
.service p:not(.lead) { margin-top: var(--s3); color: var(--muted); max-width: 36em; }
@media (max-width: 960px) { .service > img, .service > div { grid-column: 1 / -1; } .service:nth-child(even) > img { order: 0; } }

.story { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-block); align-items: start; }
.story > div { grid-column: span 3; }
.story .lead { color: var(--ink); font-size: var(--fs-statement); line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; max-width: 26em; }
.story p + p { margin-top: var(--s4); color: var(--muted); max-width: 40em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { padding: var(--s3) 0; border-top: 3px solid var(--ink); }
.facts b { display: block; font-family: var(--display); font-size: clamp(40px, 4vw, 64px); font-weight: 800; font-stretch: 115%; line-height: 1; }
.facts span { color: var(--muted); }
@media (max-width: 960px) { .story > div { grid-column: 1 / -1; } .facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); } }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s5); }
.values li { padding-top: var(--s3); border-top: 3px solid var(--ink); }
.values .n { display: block; font-size: var(--fs-small); }
.values h3 { margin-top: var(--s2); }
.values p { margin-top: var(--s1); color: var(--muted); }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.areas ul { list-style: none; margin: var(--s-block) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--rule); }
.areas li { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-size: var(--fs-h3); font-weight: 700; font-stretch: 105%; }
@media (max-width: 760px) { .areas ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.job { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); padding-block: var(--s-block); border-bottom: 1px solid var(--rule); }
.job > * { grid-column: 1 / span 3; }
.job:first-child { padding-top: 0; }
.job:last-child { border-bottom: 0; padding-bottom: 0; }
.job h2 { font-size: clamp(28px, 3vw, 44px); }
.job .facts-row { display: flex; flex-wrap: wrap; gap: var(--s0) var(--s4); margin-top: var(--s2); color: var(--brand); font-weight: 600; }
.job p { margin-top: var(--s3); color: var(--muted); max-width: 46em; }
.job .btn { justify-self: start; }
@media (max-width: 960px) { .job > * { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--muted-dark); font-size: var(--fs-small); padding-top: var(--s-step); }
.foot .logo { color: var(--white); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s5); padding-bottom: var(--s-step); }
.foot h2 { margin-bottom: var(--s2); font-family: var(--text); font-size: var(--fs-body); font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.6; text-transform: none; color: var(--white); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { color: var(--brand-hi); text-decoration: underline; }
.foot .logo:hover { text-decoration: none; }
.foot .base { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .16); }
.foot .base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); padding-block: var(--s3) var(--s4); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- Phones: call or ask for a survey, always in reach ---------- */
.callbar { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: 65px; }
  .callbar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s1); padding: var(--s1) var(--gutter); background: var(--white); border-top: 1px solid var(--rule); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: var(--fs-small); font-weight: 600; text-decoration: none; white-space: nowrap; }
  .cb-call { background: var(--brand); color: var(--brand-ink); }
  .cb-quote { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .demo-note { bottom: calc(65px + var(--s2)); }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero::before, .js .hero h1 span, .js .hero .lead, .js .hero .actions { animation: none; }
  .tile img, .arr, .faq summary::after { transition: none; }
}
