/* ==========================================================================
   Inner pages

   Everything a page that is not the homepage needs and the homepage does not.
   Loaded after style.css, which owns the palette, the type tokens, the header,
   the footer and every shared primitive.

   TYPE COMES FROM THE HOMEPAGE. --fs-h1, --fs-h2 and --fs-h3 are style.css's
   own tokens and they already step down at 1024px and 560px, so an h1 here is
   the h1 there at every width. The two roles below exist because the homepage
   has no equivalent of them; everything else on these pages spends the shared
   tokens rather than inventing a size.

   SPACING IS SEVEN STEPS. Before this pass the file held forty distinct
   one-off clamp() values, which is what an untidy layout is made of: no two
   gaps agreeing on a number and nothing to check a new component against.
   ========================================================================== */
:root {
  /* The 404 numeral, which is a graphic rather than a heading. */
  --fs-display: clamp(90px, 18vw, 220px);
  /* One icon size for the inner pages, so a glyph is never sized by eye. */
  --fs-icon: 28px;
  /* No --fs-lede and no --fs-caption. Both were sizes this site does not
     have: the homepage sets its hero lead and every section intro at 16px/400,
     the same as body copy, and its smallest label at 13px. An intro paragraph
     here is --fs-body separated by colour, measure and leading, exactly as it
     is there; a micro label is --fs-label, which is style.css's own token. */

  /* Gaps, four steps. */
  --gap-xs: clamp(10px, 1.2vw, 16px);
  --gap-sm: clamp(16px, 2vw, 24px);
  --gap-md: clamp(20px, 2.6vw, 34px);
  --gap-lg: clamp(32px, 5vw, 80px);

  /* Padding inside a box, three steps. */
  --pad-sm: clamp(20px, 2.2vw, 28px);
  --pad-md: clamp(24px, 2.6vw, 34px);
  --pad-lg: clamp(30px, 3.4vw, 44px);

  /* The rhythm between a section's heading and its content. */
  --gap-head: clamp(36px, 4.4vw, 62px);

  /* An in-and-out curve, for anything that crossfades rather than travels.
     style.css's --ease is cubic-bezier(.16, 1, .3, 1), an expo-out: it puts
     roughly ninety per cent of the change into the first quarter of the
     duration. That is right for a panel arriving from off screen and wrong for
     a colour, where it reads as a hard flip followed by nothing happening.
     This one eases in and out, so a hover fades rather than snaps. */
  --ease-fade: cubic-bezier(.4, 0, .2, 1);
  /* The fill sweeping across a cell, and the type catching up behind it. The
     sweep is the slower of the two on purpose: the ink has to reach a word
     before that word turns white, or the colour change gives the sweep away. */
  --dur-wipe: .38s;
  --dur-ink: .24s;

  /* The dark contact strip above the header. style.css sizes it from its own
     padding rather than a token; this mirrors it so the banner below can work
     out how much of the first screen is already spoken for. --header-h is
     style.css's own token and is used as it stands. */
  --topbar-h: 40px;

  /* The banner's own bottom. Deeper than a gap because it is the only edge on
     the page with nothing under it to hold the type up. */
  --pad-banner: clamp(46px, 6.4vw, 92px);
}

/* The browser's own margins on the grouping elements this site uses. A
   <figure> ships with `margin: 1em 40px`, which was quietly insetting the
   full-bleed photograph band by 40px a side and putting a 40px margin on every
   photograph in a gallery grid. style.css resets p and ul; these are the rest.
   -------------------------------------------------------------------------- */
figure, blockquote, dl, dd { margin: 0; }


/* No word left alone on a last line.

   text-wrap: pretty tells the line breaker to avoid ending a paragraph on a
   single word, which it does by pulling one back from the line above. It is
   the typographic default a book has had for centuries and the web has only
   just got; before it, the only fixes were a non-breaking space hand-placed in
   the copy, which breaks the moment the copy is edited, or a narrower measure,
   which changes the design to solve a wrapping problem.

   Set on the text elements rather than on the root, so it cannot fight the
   balance already set on the headings: balance evens the length of every line
   in a short block, pretty only protects the last one, and a heading wants the
   first of those.
   -------------------------------------------------------------------------- */
p, li, dd, dt, figcaption, address, blockquote { text-wrap: pretty; }


/* --------------------------------------------------------------------------
   Page banner

   The first thing on every main page, and the same idea as the homepage's
   hero: a photograph across the full width, a dark wash over it, and the
   eyebrow, title and description sitting on top.

   Three things keep it from being the homepage twice. It is shorter -- the
   homepage owns the tallest opening on the site. Its title is sentence case
   against the homepage's uppercase.

   The image is a real photograph in an <img>, not a CSS background: it is
   content the browser should be able to size, lazy-load and hand to a
   preloader, and object-fit gives the same result.
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  display: flex;
  /* Centred, which is what the homepage hero does. Bottom-aligned was right
     when this was a 470px strip; at a full screen it left the title sitting on
     the fold with most of the photograph empty above it. */
  align-items: center;
  /* The homepage hero's height. It was a full screen before, which made every
     inner page open taller than the page the visitor had just come from.

     The floor is 578, not the homepage's own 460. style.css says
     `min-height: clamp(460px, 64vh, 640px)`, but that hero also carries two
     buttons, so on any screen under about 900px tall its content is taller
     than its minimum and it renders 578. Copying the rule gave a banner 68px
     shorter than the hero on a 1280x800 laptop. Copying the rendered height
     is what actually matches, so the floor is the number the homepage lands
     on and the rest of the clamp is the homepage's.

     min-height, not height, so a long title on a narrow screen grows the
     banner rather than being clipped by it. */
  min-height: clamp(578px, 64vh, 640px);
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}
.page-banner__media { position: absolute; inset: 0; z-index: -2; }
.page-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner--road-infrastructure .page-banner__media img,
.page-banner--industrial-port .page-banner__media img,
.page-banner--steel-fabrication .page-banner__media img,
.page-banner--machinery-support .page-banner__media img { object-position: 50% 23%; }

/* Darker at the left, where the words are. The second gradient grounds the
   foot of the picture so it does not stop dead at the section boundary; it
   used to be there to carry the description, which now sits in the middle and
   is covered by the first gradient at every height. */
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Heavy enough on the left for white type to sit on any photograph, and
       off almost entirely by the right-hand edge, so the picture is a picture
       rather than a dark rectangle. The two used to stack to near-opaque
       across the whole width, which turned a lit construction site black. */
    linear-gradient(90deg, rgba(15,18,21,.90) 0%, rgba(15,18,21,.76) 34%, rgba(15,18,21,.36) 62%, rgba(15,18,21,.10) 86%, rgba(15,18,21,.04) 100%),
    linear-gradient(0deg, rgba(15,18,21,.40) 0%, rgba(15,18,21,0) 42%);
}

/* Positioned, so it sits above the photograph and the wash over it rather
   than relying on source order. */
/* Equal above and below, or the content is not centred: an asymmetric padding
   inside a centred flex item just moves the block off the middle. */
/* The homepage hero's own padding, from style.css: `.hero__inner
   { padding-block: clamp(56px, 8vw, 88px) clamp(84px, 10vw, 118px) }`. Copied
   rather than approximated, because the two openings are meant to be the same
   height and the padding is half of what decides that. */
.page-banner__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 8vw, 88px) clamp(84px, 10vw, 118px);
}
.page-banner .eyebrow { color: #fff; }
.page-banner__title {
  /* Sentence case, and the homepage's size ceiling. The clamp only bites on a
     narrow screen, where 64px of this length wraps three times. */
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: #fff;
  max-width: 18ch;
  /* Balanced. "Work delivered on site." was breaking after "on", which leaves
     a single short word holding a line of 64px type on its own. Balance splits
     it where the two lines come out closest in length, which is after
     "delivered". Nothing is hard-coded: a title that is edited later gets the
     same treatment without anyone remembering to move a <br>. */
  text-wrap: balance;
}
.page-banner__rule { width: 68px; height: 3px; background: var(--red); border: 0; margin: 22px 0 20px; border-radius: 2px; }
.page-banner__lead {
  margin: 0;
  /* 70ch, not 52. At 52 the measure was cutting sentences that fit the page
     easily: "Two of these have a page of their own, with every photograph from
     site." needs 534px and had 525, so it broke and left one word below. The
     six service leads were doing the same at 555 to 606px. 70ch clears the
     longest of them; the two that are genuinely long sentences, on careers and
     contact, still set in two lines, which is what they should do. */
  max-width: 70ch;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: rgba(255, 255, 255, .84);
}

/* --------------------------------------------------------------------------
   Browser surfaces

   The parts of a page nobody draws, which ship with defaults that belong to no
   design system: the selection highlight, the text caret, the scrollbar, the
   underline offset on prose links. style.css already themes the focus ring;
   these are the rest. Cheap, and the difference between a page that was built
   and a page that was assembled.
   -------------------------------------------------------------------------- */
::selection { background: var(--red); color: #fff; }
::-moz-selection { background: var(--red); color: #fff; }

html {
  caret-color: var(--red);
  /* Firefox and the standard property. The WebKit pseudo-elements below cover
     Chrome and Safari, which ignore it. */
  scrollbar-color: var(--muted-2) var(--bg-alt);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: var(--muted-2);
  border: 3px solid var(--bg-alt);   /* inset, so the thumb reads as a bar not a slab */
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--slate); }

/* Prose links sit clear of their descenders rather than being struck through
   by their own underline. */
.prose a, .acc-body a { text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* A link inside a sentence.

   .link-more is a label: 12.5px, 700, uppercase, tracked out. That is right
   for a stand-alone "All projects" at the end of a section and wrong for an
   email address in the middle of a line, where it was setting the address in
   caps at a different size from the words either side of it.

   This one takes the type of whatever it sits in and changes only the colour,
   plus a faint underline. The underline is not decoration: red on the body
   grey is a 1.45:1 difference, and colour alone at that distance is not
   something a reader with any colour deficiency can pick out. */
.link-inline {
  color: var(--red);
  text-decoration: underline;
  /* The line is the link's own colour and stays that way. It was drawn at 38%
     and brought up to full on hover, which meant the thing marking it as a
     link was at its faintest exactly when nobody was pointing at it. */
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* --------------------------------------------------------------------------
   Page heading, text only

   What the pages without a banner open on: the two legal pages and 404, where
   a photograph of a building would be decoration on a page nobody arrives at
   for the view.
   -------------------------------------------------------------------------- */
/* No padding override. It used to open on 33px and close on 96px, which is
   the one asymmetry left on the site: every other section on every other
   page puts the same air above its content as below it. */

.page-title {
  /* The hero size, and the clamp only takes it down on narrow screens -- a
     64px line of this length wraps three times on a phone. */
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-transform: uppercase;
  max-width: 16ch;
  margin: 0;
}

.page-lead {
  margin: 22px 0 0;
  /* 60ch, so the lead is the wider of the two and the heading stays the thing
     that sets the block's shape. */
  max-width: 60ch;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Contact: the details beside the form

   The heading and lede sit above the contact details. The details card and
   form share the next row, so their top edges line up at the Office entry.
   The form stays wider because it is the task on this page.
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  grid-template-areas:
    "intro ."
    "reach form";
  column-gap: var(--gap-lg);
  row-gap: var(--gap-md);
  align-items: stretch;
}
.contact-intro { grid-area: intro; }
.reach { grid-area: reach; }
.cform-panel { grid-area: form; }
.contact-lede {
  margin: 0;
  max-width: 44ch;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--slate);
}

/* The ways to reach the company: one card, one row each, hairlines between. */
.reach {
  margin-top: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(15, 17, 21, .05), 0 10px 26px rgba(15, 17, 21, .07);
}
.reach__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: var(--pad-sm) var(--pad-md);
}
.reach__row + .reach__row { border-top: 1px solid var(--line); }
/* The office row is a link to the map and the other two are a phone number and
   an address, so all three are clickable and all three should say so. */
.reach__row { transition: background-color var(--dur-ink) var(--ease-fade); }
.reach__row:hover { background: var(--bg-alt); }
.reach__icon { transition: transform var(--dur-wipe) var(--ease-smooth); }
.reach__row:hover .reach__icon { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .reach__row, .reach__icon { transition: none; }
  .reach__row:hover .reach__icon { transform: none; }
}
.reach__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: var(--fs-h3);
}
.reach__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
}
.reach address {
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--slate);
}
/* The address itself goes to the map. No underline at rest: three lines of
   underlined text in a card is a lot of rule, and the whole block moving to
   red under the pointer is signal enough at this size. */
.reach address a { color: inherit; }
.reach address a:hover { color: var(--red); }
/* The value takes the type of the block it sits in and changes only colour:
   a phone number is not a heading, and it was set at --fs-h3 once. */
.reach__value {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--slate);
  overflow-wrap: anywhere;
}
.reach__value:hover { color: var(--red); }
/* Each phone number kept whole, so a narrow cell breaks at the slash. */
.reach__num { white-space: nowrap; }

/* The form, on a card of its own. */
.cform-panel {
  display: flex;
  padding: var(--pad-md);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(15, 17, 21, .05), 0 10px 26px rgba(15, 17, 21, .07);
}
.cform { display: flex; flex: 1; flex-direction: column; gap: var(--gap-xs); }
.cform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-xs); }
.field { display: grid; gap: 8px; }
.field--message { flex: 1; grid-template-rows: auto minmax(110px, 1fr); }
.field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
}
.field__req { color: var(--red); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: inherit;
  /* 16px exactly: anything smaller and iOS Safari zooms the page on focus. */
  font-size: var(--fs-body);
  line-height: 1.4;
  transition: border-color var(--dur-ink) var(--ease-fade),
              box-shadow var(--dur-ink) var(--ease-fade),
              background-color var(--dur-ink) var(--ease-fade);
}
/* 110px, not 150. The panel stood a good deal taller than the column
   beside it, and the box grows if somebody types more than fits. */
.field textarea { min-height: 110px; resize: vertical; }
.field ::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(190, 22, 34, .14);
}
/* Invalid fields are only marked once a submit has been attempted; before
   that every field is empty and therefore invalid, and colouring them on
   arrival is scolding someone for not having typed yet. */
.cform.is-submitted :invalid { border-color: var(--red); }

/* Full width, label centred, an icon at each end. */
.cform__submit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-block: 15px;
}
.cform__submit span { text-align: center; }


/* --------------------------------------------------------------------------
   The map, full width under the form
   -------------------------------------------------------------------------- */
.map-band {
  display: block;
  height: clamp(320px, 38vw, 480px);
  background: var(--bg-alt);
}
.map-band iframe { display: block; width: 100%; height: 100%; border: 0; }


/* --------------------------------------------------------------------------
   Narrow
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "reach" "form";
  }
}

/* Below 1024 the type steps down, the homepage hero's content shrinks with it
   and that hero renders 522. The floor follows it.

   This sits directly above the 560 block on purpose: both queries match on a
   phone and they carry the same specificity, so the one that wins is the one
   written last. */
@media (max-width: 1024px) {
  .page-banner { min-height: clamp(522px, 64vh, 640px); }
}

@media (max-width: 560px) {
  .cform__row { grid-template-columns: 1fr; }
  .page-title { max-width: none; }
  .page-banner__title { max-width: none; }
  /* On a phone style.css drops the hero's minimum entirely and lets its own
     content size it; measured, that lands between 461 and 487 depending on how
     the title wraps. A single floor in the middle of that is as close as two
     different headings can get. */
  .page-banner { min-height: 470px; }
}


/* ==========================================================================
   Entrance

   The only motion on these pages. js/reveal.js adds will-reveal to whatever
   carries data-reveal or sits inside a data-reveal-group, then adds is-in as
   each one arrives. The starting state is applied by the script, so a page
   with no JS shows everything rather than a column of empty boxes.
   ========================================================================== */
.will-reveal {
  opacity: 0;
  transform: translateY(18px);
}
.will-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .will-reveal, .will-reveal.is-in { opacity: 1; transform: none; transition: none; }
}


/* --------------------------------------------------------------------------
   Section heading used across the inner pages
   -------------------------------------------------------------------------- */
.ipage-head { max-width: 60ch; margin-bottom: var(--gap-head); }
/* Balanced, so a two-line heading does not leave one word stranded on the
   second line. Scoped to the inner pages' heading block; style.css's own
   .section-title is shared with the homepage and is left alone. */
.ipage-head .section-title { text-wrap: balance; }

/* The service pages run their headings on one line. style.css caps a
   .section-title at 20ch, which is right when a heading sits over a column of
   text and wrong when it is the only thing on its row: "What a building
   contract includes." broke after the third word for no reason a reader could
   see. The cap comes off and the heading takes the width it needs; below
   1024px the type steps down and it wraps again, which is what should happen
   there. */
.ipage-head--wide, .ipage-head--wide .section-title { max-width: none; }

/* A heading block on the centre line, with its rule and its lede centred with
   it. The rule under a section title is a block with a fixed width, so it
   needs its own auto margins; text-align alone would leave it on the left. */
.ipage-head--center {
  margin-inline: auto;
  text-align: center;
}
/* The class is doubled up on purpose. `.ipage-head .section-title { margin: 0 }`
   sits further down this file at the same specificity, so a single-class rule
   here loses to it on order alone and the heading stays hard left inside its
   centred block. Two classes wins wherever either rule ends up. */
.ipage-head.ipage-head--center .section-title { margin-inline: auto; }
.ipage-head.ipage-head--center .section-title::after { margin-inline: auto; }
.ipage-head.ipage-head--center p { margin-inline: auto; }
/* A centred lede needs a measure of its own.

   .ipage-head--wide takes the cap off the block so the heading can hold one
   line; the lede inherited that and ran the full 1251px of the container --
   one line of 198 characters, or, one step narrower, a line of 1141 and a
   single word under it. A measure and text-wrap: balance make it two even
   lines, which is what it should have been at any width. */
.ipage-head--center p { max-width: 68ch; text-wrap: balance; }

/* A heading with a link on the far side of the row.

   The link out to the full list used to sit under the cards, after the thing
   it was offering an alternative to, carrying an inline margin because it had
   no rule of its own. At the top right it is where a reader looks for it, and
   the row reads as one object: what this section is on the left, where to see
   the rest of it on the right.

   Aligned to the foot of the heading block so it sits on the description, not
   up beside the eyebrow: the description is the last thing read on the left,
   and the link is what to do next. */
.ipage-head--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: var(--gap-md);
  align-items: end;
  max-width: none;
}
.ipage-head--row > div { max-width: 60ch; }
.ipage-head--row .link-more { white-space: nowrap; }
@media (max-width: 700px) {
  .ipage-head--row { grid-template-columns: 1fr; gap: var(--gap-sm); }
}
.ipage-head .section-title { margin: 0; }
/* The same 56px red rule the homepage puts under a section title, so a reader
   moving between the two is looking at one site. Drawn rather than marked up,
   because every one of these headings wants it and none of them wants a
   decorative <hr> in the markup. */
.ipage-head .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 18px;
  background: var(--red);
  border-radius: 2px;
}
.ipage-head p {
  margin: 18px 0 0;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--slate);
}


/* --------------------------------------------------------------------------
   Prose: About, Careers, News, and the two legal pages
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 44px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose li { font-size: var(--fs-body); line-height: 1.8; color: var(--slate); }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }


/* --------------------------------------------------------------------------
   About: the three bands

   Laid out the way the reference site the client pointed at lays out its own
   about page: the heading and the copy with a photograph beside them, then the
   sequence of a job running across the width, then the principles.

   What the reference carries that this page does not: the year incorporated,
   the contractor grade, the paid-up capital, the headcount, a dated timeline,
   and a quote signed by the managing director. Every one of those is a fact a
   reader could check, and not one of them has been supplied.

   TODO: when the company provides the founding year, the CIDB grade, any ISO
   certification and the size of the team, the band directly under the opening
   one is where they go -- four figures across, which is the shape the
   reference uses and the shape this page is holding open for them.
   -------------------------------------------------------------------------- */

/* The heading and the copy on one side, a photograph on the other -- the same
   shape the service pages open with, and the shape the reference site opens
   its about page with.

   The company's own sentence was the left column here, then a centred strip of
   its own below it. The client has taken it off the page; the banner already
   carries a line at that weight, and a second one three hundred pixels under
   it was the page saying the same kind of thing twice before it had said
   anything specific at all. */
.about-say {
  display: grid;
  /* Not an even split. Between 1024 and about 1200 the type is still at 40px
     while the columns have come in, and an even split left the heading 49px
     short of one line -- so it broke after "the Way" in that band only. The
     copy side takes a little more and the heading holds one line all the way
     down to where the type steps. */
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: var(--gap-lg);
  align-items: center;
}
/* max-width: none. style.css caps a .section-title at 20ch, which is right
   when a heading sits over a column of text and wrong here: the cap stopped
   this one at 504px inside a 624px column, so it broke after "the Way" for no
   reason a reader could see. It needs 525px and has 624. */
.about-say__copy .section-title { margin: 0 0 var(--gap-sm); max-width: none; }
.about-say__copy p {
  margin: 0 0 var(--gap-sm);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--slate);
  max-width: 52ch;
}
.about-say__copy p:last-child { margin-bottom: 0; }
.about-say figure { margin: 0; }
.about-say img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--bg-alt);
}

/* The heading, and the sequence of a job running across underneath it.

   The five steps were five full-width rows in a red band of their own, then a
   column beside the paragraph that introduces them. Across the full width the
   reader sees the shape of the sequence -- a line with five marks on it -- as
   one object, before reading a word of it, and the band is shorter than in
   either of the other two arrangements. */
/* The heading block and the sequence under it.

   The gap was two gaps: the grid's own, plus the margin .ipage-head carries to
   clear a whole section. Together they came to 143px between the lede and the
   first numeral, which is a break, not a gap. The margin comes off and the
   grid keeps one --gap-lg, about 72px here. */
.about-run { display: grid; gap: var(--gap-lg); }
.about-run .ipage-head { margin-bottom: 0; }

/* The sequence: five steps across, on one line.

   The line runs left to right through the centre of the five numerals. It is
   a plain line -- the red used to travel along it as the section was scrolled,
   and that came out: a colour arriving on a schedule the reader did not set is
   a thing to watch rather than a thing to read.

   Each step is centred in its column, numeral, heading and all, so the five
   read as five marks on one line rather than as five left-aligned blocks that
   happen to have a line behind them.

   Below 1024px five columns would give each step 180px, which is narrower than
   the heading it has to carry, so the whole thing turns back into a column and
   the line runs top to bottom instead. js/about-run.js works out which of the
   two it is by looking at where the steps actually landed, rather than by
   carrying its own copy of the breakpoint. */
.seq { position: relative; }
.seq__track {
  position: absolute;
  background: rgba(255, 255, 255, .22);
}
.seq__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap-md);
  margin: 0;
  padding: 0;
  list-style: none;
}
.seq__item { position: relative; text-align: center; }
.seq__n {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin: 0 auto var(--gap-sm);
  border-radius: 50%;
  background: var(--red);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* One column, and the line stands up with it. The numeral goes back to the
   left margin, because centred headings down a single column is a different
   layout and not a better one. */
@media (max-width: 1024px) {
  .seq__list { grid-template-columns: 1fr; gap: var(--gap-md); }
  .seq__item { padding-left: 62px; text-align: left; }
  .seq__n { position: absolute; left: 0; top: 0; margin: 0; }
}

.seq h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}
.seq p {
  margin: 0 auto;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--on-dark-muted);
  max-width: 46ch;
}
/* The five columns are about 250px wide, so the heading has to be allowed to
   wrap; what it must not do is leave one word alone on the last line, which is
   what balance is for. */
.seq h3 { text-wrap: balance; }

@media (max-width: 900px) {
  .about-say { grid-template-columns: 1fr; gap: var(--gap-md); }
}


/* --------------------------------------------------------------------------
   How we work: four numbered principles

   Numerals rather than cards. About already has one card layout below it and
   the homepage has three; a numbered list reads as a sequence, which is what
   these are, and it puts nothing on the page that has to be clicked.
   -------------------------------------------------------------------------- */
/* Four cells in one ruled box, not four floating blocks of text.

   The reference site (Mr Noh Food) builds every group like this: one border
   around the set, hairlines between the cells drawn as the grid's own
   background showing through a 1px gap, and a short accent rule marking each
   item. It is the tidiest structure there is -- nothing can fall out of
   alignment, because the rules ARE the alignment -- and it is far more
   graphic than a row of rules over paragraphs.

   The heading reserves two lines so all four paragraphs start level whether
   the title wraps or not. */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.practice {
  position: relative;
  /* The sweeping panel is wider than the cell so its soft ends finish outside
     it; without this the feather on one side would bleed into the neighbour. */
  overflow: hidden;
  padding: var(--pad-lg);
  background: var(--bg);
  color: var(--ink);
  transition: color var(--dur-ink) var(--ease-fade);
}

/* The ink is a layer that sweeps, not a colour that changes.

   Crossfading the background meant the whole cell went dark at once, which is
   what reads as sudden however long you give it. This grows a panel across the
   cell instead, so there is an edge travelling and the eye can follow it.

   The direction is the whole trick, and it is in the transform-origin rather
   than in any script. At rest the origin is the right edge, so when the pointer
   leaves, the panel collapses back towards the right and the ink retreats the
   way it came. On hover the origin flips to the left, so it grows out of the
   left edge. One property, two directions, and the leaving animation is the
   entering one played backwards because that is literally what it is.

   scaleX on a solid panel is a compositor transform: no layout, no repaint of
   the text above it. */
.practice::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* 16% of overhang each side. Both ends of the panel are faded out, and both
     fades sit outside the cell when the panel is fully extended, so the cell
     fills solid while the travelling edge is always a soft one. */
  left: -16%;
  width: 132%;
  /* Tone in the background, feather in the mask. Keeping them on separate
     properties means the softness of the edge and the colour of the fill can
     be changed without either one disturbing the other -- and if a browser
     ignores the mask, the panel is still a correct solid fill with hard ends,
     which is exactly what it was before this. */
  background: linear-gradient(112deg, #0d1013 0%, var(--ink) 58%, #1d2227 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-wipe) var(--ease-smooth);
}
.practice:hover::before { transform: scaleX(1); transform-origin: left center; }
/* Above the sweep. */
.practice > * { position: relative; z-index: 1; }

/* The type turns a beat after the edge passes it, not with it. h3 takes its
   colour from the cell by inheritance, so the cell's own transition carries it. */
.practice:hover { color: #fff; transition-delay: .07s; }
.practice__rule {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: var(--gap-sm);
  background: var(--red);
  transform-origin: left center;
  transition: transform var(--dur-wipe) var(--ease-smooth),
              background-color var(--dur-ink) var(--ease-fade);
}
/* No delay on the rule: it sits at the left edge, which the sweep reaches first. */
.practice:hover .practice__rule { transform: scaleX(2); background: #fff; }
.practice h3 {
  margin: 0 0 14px;
  /* inherit, not a colour. style.css sets `h1, h2, h3, h4, h5 { color:
     var(--ink) }`, and a rule that matches always beats a value the parent
     only passed down -- so on hover the cell went to ink and the heading
     stayed ink on ink, which is to say it vanished. */
  color: inherit;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  min-height: 2.5em;
  min-height: 2lh;
}
.practice p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--slate);
  transition: color var(--dur-ink) var(--ease-fade);
}
.practice:hover p { color: rgba(255, 255, 255, .78); transition-delay: .07s; }
@media (max-width: 860px) {
  .practice-grid { grid-template-columns: 1fr; }
  .practice h3 { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  /* The cell still answers the pointer; it fades instead of sweeping. */
  .practice::before {
    left: 0;
    width: 100%;
    -webkit-mask-image: none;
            mask-image: none;
    transform: scaleX(1);
    opacity: 0;
    transition: opacity var(--dur-ink) var(--ease-fade);
  }
  .practice:hover::before { transform: scaleX(1); opacity: 1; }
  .practice__rule, .practice:hover .practice__rule { transform: none; }
}


/* --------------------------------------------------------------------------
   About: organisation and collaboration
   -------------------------------------------------------------------------- */
/* Two wider leadership profiles lead the four core-team profiles on desktop. */
.org-grid,
.collab-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.org-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
/* Three to a row below the board: nine people make three even rows. */
.org {
  grid-column: span 4;
  position: relative;
  background: var(--bg);
}
.org--lead { grid-column: span 6; }

/* The face: avatar, role, name, and the button that opens the profile. */
.org__front {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--pad-lg);
  text-align: center;
}
/* A grey figure until photographs are supplied. An <img> dropped in here in
   place of the <svg> takes the same circle. */
.org__avatar {
  display: block;
  width: 120px;
  height: 120px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(180deg, #EEF0F3 0%, #DDE1E6 100%);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line);
  transition: box-shadow var(--dur-ink) var(--ease-fade);
}
.org__avatar svg { display: block; width: 100%; height: 100%; fill: #A9B1B9; }
.org__avatar img { width: 100%; height: 100%; object-fit: cover; }
.org--lead .org__avatar { width: 140px; height: 140px; }
.org:hover .org__avatar,
.org.is-open .org__avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--red); }
/* A card with nothing to open does not answer the pointer. */
.org--plain:hover .org__avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); }
.org__avatar img { display: block; }
.org__more--brief .org__more-inner { text-align: center; }
.org__more--brief .org__more-name { margin-bottom: 0; }

.org__role {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.org__name {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
.org--lead .org__name { font-size: calc(var(--fs-h3) * 1.15); }

/* No visible control: the button is stretched over the whole face, so a tap
   anywhere on the card opens it, and its label is for screen readers only. */
.org__toggle {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.org__toggle:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

/* The profile. Dark, like the hovered practice cells, so it reads as the
   other side of the same card. */
.org__more { background: linear-gradient(150deg, #0d1013 0%, var(--ink) 60%, #1d2227 100%); color: rgba(255, 255, 255, .82); }
.org__more-inner { padding: var(--pad-lg); text-align: left; }
.org__more .org__role { color: #F08A91; margin-bottom: 6px; }
.org__more-name {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
.org__lede { margin: 0 0 16px; font-size: 15px; line-height: 1.65; }
.org__facts { margin: 0; display: grid; gap: 12px; }
.org__facts dt {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.org__facts dd { margin: 0; font-size: 14px; line-height: 1.6; color: #fff; }
.org__timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0 0 0 16px;
  border-left: 2px solid rgba(255, 255, 255, .14);
  display: grid;
  gap: 9px;
}
.org__timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: 8px;
  font-size: 13.5px;
  line-height: 1.55;
}
/* A node on the line for each step. */
.org__timeline li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.org__timeline span {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* By default (phones, tablets, anything without hover) the profile opens
   under the face when the button is tapped. The hover layout below overrides
   this where a pointer can hover and the cards are wide enough. */
.org__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-wipe) var(--ease-smooth);
}
.org__more-inner { min-height: 0; overflow: hidden; padding-block: 0; }
.org.is-open .org__more { grid-template-rows: 1fr; }
.org.is-open .org__more-inner { padding-block: var(--pad-md); }
.org__more .org__role,
.org__more-name { display: none; }  /* already on the face just above */

/* With a pointer that hovers, and room for it: the profile sits in the same
   grid cell as the face and fades in over it. Sharing the cell means the card
   is always as tall as the longer of the two, so a long profile never spills
   out, and the row evens its cards out to the tallest. */
@media (hover: hover) and (min-width: 861px) {
  .org { display: grid; }
  .org__front,
  .org__more { grid-area: 1 / 1; }
  .org__more {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-template-rows: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--dur-wipe) var(--ease-smooth),
                transform var(--dur-wipe) var(--ease-smooth),
                visibility 0s linear var(--dur-wipe);
  }
  .org:hover .org__more,
  .org:focus-within .org__more,
  .org.is-open .org__more {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur-wipe) var(--ease-smooth),
                transform var(--dur-wipe) var(--ease-smooth),
                visibility 0s;
  }
  .org__more-inner,
  .org.is-open .org__more-inner { overflow: visible; padding: var(--pad-lg); }
  .org--lead .org__more-inner,
  .org--lead.is-open .org__more-inner { padding: var(--pad-lg) calc(var(--pad-lg) * 1.1); }
  .org__more .org__role { display: block; }
  .org__more-name { display: block; }
  /* A career timeline goes in a column of its own beside the summary, so the
     longest profile sets a row height the face can still fill. */
  .org--lead .org__more-inner:has(.org__timeline) {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr);
    column-gap: clamp(22px, 2.4vw, 36px);
    align-content: center;
  }
  .org--lead .org__more-inner:has(.org__timeline) > * { grid-column: 1; }
  .org--lead .org__more-inner:has(.org__timeline) > .org__timeline {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .org__more, .org__avatar { transition: none !important; }
  .org__more { transform: none !important; }
}

.collab-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collab-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collab {
  padding: var(--pad-lg);
  background: var(--bg);
  text-align: center;
}
/* A fixed box, so a square mark and a wide wordmark sit on the same line.
   The logo gets a fixed height rather than max-height: 100%, which a grid
   item does not resolve against the box. Wide marks run a little shorter so
   they read at the same weight as the square one, as in the homepage row. */
.collab__logo {
  display: grid;
  place-items: center;
  height: 96px;
  margin-bottom: var(--gap-sm);
}
.collab__logo img {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.collab__logo--wide img { height: 64px; }
.collab__project {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.collab__name {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .collab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) and (min-width: 701px) {
  .collab-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .collab-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org, .org--lead { grid-column: span 1; }
  /* An odd one out at the end takes the full row rather than leaving a gap. */
  .org-grid > .org:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .org-grid, .collab-grid { grid-template-columns: 1fr; }
  .org, .org--lead, .org--lead:first-child { grid-column: auto; }
}


/* --------------------------------------------------------------------------
   How a job runs: five steps, one per row
   -------------------------------------------------------------------------- */
/* The section this sits in is ink: the page needed one heavy block that is not
   a photograph, and a sequence read left to right on dark is the one place it
   can go without fighting the banner. */
.section--ink { background: var(--ink); color: #fff; }

/* The red owns a whole surface, once.

   This is the one move the reference site makes that this site was not making
   at all: on Mr Noh Food the brand yellow takes over an entire section twice
   in a page, and everywhere else it is a 2px marker. Here the red had been
   nothing but a 56px rule under every heading and a wash behind the CTA --
   present on every page and strong on none of them. One full-width red band
   is worth more than fifty small red accents.

   White on this red measures 6.3:1, which clears AA for body text, so the
   whole section can be set in it rather than in a tinted grey. */
/* White, and it has to be. This band was briefly set in ink: measured against
   #BE1622 that came out between 2.0 and 3.0 to 1 on every element, where body
   copy needs 4.5 and large type needs 3. White on the same red is 6.31. The
   red is too dark to carry black type, and no amount of weight fixes a
   luminance gap. */
.section--red { background: var(--red); color: #fff; }
.section--red .section-title { color: #fff; }
.section--red .eyebrow { color: #fff; opacity: .78; }
.section--red .ipage-head p { color: rgba(255, 255, 255, .86); }
/* The rule under a section title is red, which on red is nothing. */
.section--red .ipage-head .section-title::after { background: #fff; }

/* White, explicitly. style.css sets `h1, h2, h3, h4, h5 { color: var(--ink) }`
   and a rule that matches always beats a colour the section merely passed
   down, so without this line the heading is ink on ink and simply is not
   there. This is the third time that trap has been walked into on this site;
   validate.py now checks for it on every page. */
.section--ink .section-title { color: #fff; }

.section--ink .section-title, .section--red .section-title { text-wrap: balance; }
/* White at 70%, not the brand red. The red was tried here and measured 2.82:1
   against the ink ground, where a 13px bold label needs 4.5. */
.section--ink .eyebrow { color: #fff; opacity: .7; }
.section--ink .ipage-head p { color: var(--on-dark-muted); }


/* --------------------------------------------------------------------------
   The six disciplines, as a table

   Not the homepage's six picture cards and not the services index either: on
   About this is a scan, so it is a plain two-column table with hairline rules
   between the cells. The hairlines are the grid's own background showing
   through a 1px gap, which is why there are no borders to double up at the
   joins.
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   The three principles

   The homepage opens these one at a time. Here they are read together, which
   is the point of putting them on an About page rather than in an accordion.
   The middle one carries the weight so the row is a set rather than three of
   the same thing.
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Project card

   One card, used in the grids on About, Services and Projects. A link where
   the project has a page of its own and an <article> where it does not, which
   is why the hover work is on the class rather than on a:hover.
   -------------------------------------------------------------------------- */
/* A card, the same one the news entries use: photograph flush to three edges,
   words inset from all four. The lift on hover is on the anchor only -- two of
   the four projects have no page of their own, and a card that rises under the
   pointer is telling the reader there is somewhere to go. */
.work-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 17, 21, .05), 0 10px 26px rgba(15, 17, 21, .07);
}
/* All four lift, including the two that are not links. The one signal kept for
   the linked pair is the title turning red, which is the thing that actually
   says "there is a page behind this". */
.work-card {
  transition: transform var(--dur-wipe) var(--ease-smooth),
              box-shadow var(--dur-wipe) var(--ease-smooth),
              border-color var(--dur-ink) var(--ease-fade);
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: 0 2px 4px rgba(15, 17, 21, .06), 0 22px 48px rgba(15, 17, 21, .14);
}
@media (prefers-reduced-motion: reduce) {
  .work-card { transition: box-shadow var(--dur-ink) var(--ease-fade); }
  .work-card:hover { transform: none; }
}
.work-card figure { margin: 0; overflow: hidden; background: var(--bg-alt); }
.work-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--pad-md); }
.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work-card:hover img { transform: scale(1.05); }
.work-card__tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.work-card h3 {
  margin: 0 0 10px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
  transition: color .35s var(--ease);
}
a.work-card:hover h3 { color: var(--red); }
.work-card p { margin: 0; font-size: var(--fs-small); line-height: 1.7; color: var(--slate); }


/* --------------------------------------------------------------------------
   Service detail: a feature band, the copy beside the 3D index of the others,
   and a pager to the next one
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Service page opening: the copy beside a photograph

   The overview ran the full width of the container with a 68ch measure, which
   left the right-hand half of the screen empty for the length of two
   paragraphs. A photograph fills it, and it is one of the company's own site
   photographs rather than the rendered image the banner uses.

   The caption names the project it was taken on. Without it a photograph
   sitting beside a page headed "Mechanical & Electrical" reads as a picture of
   mechanical and electrical work, which for most of these is not what it is.
   Named, it is what it actually is: our work, next to what we do.
   -------------------------------------------------------------------------- */
.svc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-lg);
  /* The heading and the copy on one side, the photograph on the other. The two
     glossed terms that used to fill out the left column are gone, so the copy
     no longer has to reach the bottom of a 4:3 photograph -- it is centred
     against it instead, and the photograph keeps its own height. */
  align-items: center;
}
.svc-intro__copy .section-title { margin: 0 0 var(--gap-sm); }
.svc-intro .prose { max-width: none; }
.svc-shot { margin: 0; }
.svc-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--bg-alt);
}
@media (max-width: 900px) {
  .svc-intro { grid-template-columns: 1fr; gap: var(--gap-md); }
}


/* --------------------------------------------------------------------------
   Service pages: panels with an accent edge

   Taken from the layout the client pointed at (ingeniouscorporate). Its
   capability block is a dark band carrying six panels, three across, each one
   a tinted rectangle with a 2.4px accent rule down its left edge -- not a
   bordered card and not a ruled table. The rule is what carries the brand
   colour through a page that is otherwise two greys, and it does it six times
   without six boxes.

   One component, two grounds. On a light section the panel sits on the page
   colour with a hairline round it; on an ink section it is a lift of white
   with no outline at all, because on dark a border reads as a box and a tint
   reads as a surface.
   -------------------------------------------------------------------------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-sm); }
.cap-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cap {
  padding: var(--pad-md);
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  transition: background-color var(--dur-ink) var(--ease-fade),
              border-color var(--dur-ink) var(--ease-fade);
}
.cap:hover { border-color: var(--line-2); border-left-color: var(--red); }
.cap i { display: block; margin-bottom: var(--gap-sm); font-size: var(--fs-icon); color: var(--red); }
.cap h3 { margin: 0 0 12px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; text-wrap: balance; }
.cap p { margin: 0; font-size: var(--fs-small); line-height: 1.7; color: var(--slate); }

/* The link version, for the services index.

   The reference site's index writes each service as a tall card: the name, a
   one-line scope under a label, a one-line statement of what the service
   decides under a second label, and a link out. Four words of copy in a card
   beat a paragraph, because the reader is comparing six of them rather than
   reading one.

   Same panel as the detail pages use, so the index and the page it leads to
   are recognisably the same object. */
/* --------------------------------------------------------------------------
   Service cards that turn over

   The front is the photograph with the name on it. The back is the same
   photograph mirrored, blurred, and read through frosted glass -- which is
   what the back of a translucent card actually shows, and the reason the
   mirroring is there rather than being a trick for its own sake.

   The back is the face that sits in the flow, so the pair is exactly as tall
   as the detail needs; the front is absolute over it. A transform does not
   take an element out of flow, so the back can be turned away from the reader
   and still set the height.

   No backdrop-filter. It would be the obvious way to build the glass, and in
   a preserve-3d subtree it flattens the 3D context in several engines and the
   card stops turning. Blurring the image itself and laying a white veil over
   it gets the same picture with none of that risk.
   -------------------------------------------------------------------------- */
.flip {
  perspective: 1600px;
  min-height: 400px;
}
.flip__inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.33, 1, .68, 1);
}
.flip:hover .flip__inner,
.flip:focus-within .flip__inner,
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }

.flip__front,
.flip__back {
  border-radius: var(--r-card);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 2px rgba(15, 17, 21, .05), 0 10px 26px rgba(15, 17, 21, .07);
}
/* In flow: this face decides how tall the card is. */
.flip__back {
  position: relative;
  height: 100%;
  transform: rotateY(180deg);
  background: var(--bg-alt);
}
.flip__front { position: absolute; inset: 0; background: var(--ink); }

/* Which face can be clicked.

   backface-visibility stops a face that is turned away from being drawn. It
   does not stop it being hit-tested. The front face is absolute and sits over
   the back, so with the card turned, an invisible photograph and an invisible
   title were still catching every click aimed at "Read the detail" -- the
   click went to the card, the card turned back, and the link never fired.
   Whichever face is facing away is taken out of hit testing explicitly. */
.flip__back { pointer-events: none; }
.flip:hover .flip__back,
.flip:focus-within .flip__back,
.flip.is-flipped .flip__back { pointer-events: auto; }
.flip:hover .flip__front,
.flip:focus-within .flip__front,
.flip.is-flipped .flip__front { pointer-events: none; }

.flip__front img { width: 100%; height: 100%; object-fit: cover; }
/* Dark at the foot so the name holds whatever the photograph does there. */
.flip__front::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(0deg, rgba(15, 18, 21, .88) 0%, rgba(15, 18, 21, .45) 42%, rgba(15, 18, 21, 0) 100%);
}
.flip__name {
  position: absolute;
  left: var(--pad-md);
  right: var(--pad-md);
  bottom: var(--pad-md);
  z-index: 1;
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}

/* The mirrored photograph, over-scaled so the blur has no soft edge to show
   at the sides of the card. */
.flip__mirror {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1) scale(1.12);
  /* 14px, not 18. Enough to read as glass, little enough that the photograph
     is still recognisably the one on the front. */
  filter: blur(14px) saturate(1.25);
}
/* Smoked glass, not a white panel.

   A white veil heavy enough to carry dark text is heavy enough to hide the
   photograph, which is the whole point of the back of the card. Tinting the
   glass towards the ink instead lets it stay translucent and still hold white
   type: at 65% the composite over the brightest part of any photograph is
   still dark enough for body text, and over a dark part it is darker again.

   The highlight along the top edge and the hairline are what make it read as
   a pane of something rather than a tinted rectangle. */
.flip__glass {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--pad-md);
  background: linear-gradient(150deg, rgba(15, 18, 21, .68) 0%, rgba(15, 18, 21, .80) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22),
              inset 0 0 0 1px rgba(255, 255, 255, .10);
}
.flip__glass h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}
/* Everything on the glass is white, at three weights of it. Grey text on a
   translucent dark panel loses its contrast wherever the photograph behind it
   is bright, and the photograph is different in every card. */
.flip__glass .cap__spec dt { color: #fff; }
.flip__glass .cap__spec dd { color: rgba(255, 255, 255, .88); }
.flip__glass .cap__more { color: #fff; }

/* The labelled pairs on the back of a card, and the link at its foot. Two
   labels and two short lines beat a paragraph here: a reader on this page is
   comparing six services, not reading one. */
.cap__spec { margin-top: var(--gap-sm); }
.cap__spec dt {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cap__spec dd {
  margin: 8px 0 var(--gap-sm);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--slate);
}
.cap__spec dd:last-child { margin-bottom: 0; }
/* margin-top auto, so the link sits on the floor of the card and six cards of
   different copy lengths still line their links up. */
.cap__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: var(--gap-md);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.cap__more i { transition: transform var(--dur-wipe) var(--ease-smooth); }
.cap__more:hover i { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .cap__more i { transition: none; } }

@media (prefers-reduced-motion: reduce) {
  /* No turn. The back is brought up over the front instead. */
  .flip__inner { transition: none; }
  .flip:hover .flip__inner,
  .flip:focus-within .flip__inner,
  .flip.is-flipped .flip__inner { transform: none; }
  .flip__back { position: relative; transform: none; opacity: 0; transition: opacity var(--dur-ink) var(--ease-fade); }
  .flip:hover .flip__back, .flip:focus-within .flip__back, .flip.is-flipped .flip__back { opacity: 1; }
  .flip:hover .flip__front, .flip:focus-within .flip__front, .flip.is-flipped .flip__front { opacity: 0; }
  .flip__front { transition: opacity var(--dur-ink) var(--ease-fade); }
}

.section--ink .cap {
  background: rgba(255, 255, 255, .045);
  border: 0;
  border-left: 3px solid var(--red);
}
.section--ink .cap:hover { background: rgba(255, 255, 255, .085); }
.section--ink .cap h3 { color: #fff; }
.section--ink .cap p { color: rgba(255, 255, 255, .72); }

/* A delivered project on a service page: where it was, what it was, and the
   client, period and completion date from the company profile. A column, so
   the link sits on the floor of the card whatever the copy length. */
.svc-proj { display: flex; flex-direction: column; }
.svc-proj__place {
  margin-bottom: 10px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.section--ink .svc-proj__place { color: #F08A91; }
.svc-proj__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.section--ink .svc-proj__facts { border-top-color: rgba(255, 255, 255, .12); }
.svc-proj__facts dt {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--ink .svc-proj__facts dt { color: rgba(255, 255, 255, .5); }
.svc-proj__facts dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink); }
.svc-proj .cap__more i { position: relative; top: .5em; }
.section--ink .svc-proj__facts dd { color: #fff; }
@media (max-width: 560px) { .svc-proj__facts { grid-template-columns: 1fr; } }

/* A featured project panel for service pages: a site photograph, a short scope,
   a couple of verified facts, and one clear route to the full project record. */
.svc-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.svc-feature__media {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  background: var(--ink-700);
}
.svc-feature__media::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(0deg, rgba(21, 24, 27, .72), transparent 76%);
  pointer-events: none;
}
.svc-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease-smooth);
}
.svc-feature__media:hover img,
.svc-feature__media:focus-visible img { transform: scale(1.035); }
.svc-feature__media-label {
  position: absolute;
  z-index: 1;
  left: 26px;
  bottom: 26px;
  padding: 9px 13px;
  border-left: 2px solid var(--red);
  background: rgba(21, 24, 27, .82);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.svc-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 52px);
}
.svc-feature__place {
  margin: 0 0 12px;
  color: var(--red);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.svc-feature__body h3 {
  max-width: 20ch;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
.svc-feature__summary {
  max-width: 48ch;
  margin: 16px 0 0;
  color: var(--slate);
  line-height: 1.7;
}
.svc-feature__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  width: 100%;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.svc-feature__facts dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.svc-feature__facts dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.5;
}
.svc-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--red);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.svc-feature__link i {
  position: relative;
  top: .12em;
  transition: transform var(--dur-wipe) var(--ease-smooth);
}
.svc-feature__link:hover i { transform: translateX(5px); }
@media (max-width: 900px) {
  .svc-feature { grid-template-columns: 1fr; min-height: 0; }
  .svc-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .svc-feature__body { min-height: 360px; }
}
@media (max-width: 560px) {
  .svc-feature__body { min-height: 0; }
  .svc-feature__facts { grid-template-columns: 1fr; }
  .svc-feature__media-label { left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-feature__media img,
  .svc-feature__link i { transition: none; }
  .svc-feature__media:hover img,
  .svc-feature__media:focus-visible img { transform: none; }
}

/* Equipment on a service page: the steel works' products, or the plant. Four
   across, a fixed-ratio frame each, so photographs of every shape sit level.
   --contain is for product shots on white, which must not be cropped. */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-sm);
}
.kit { margin: 0; }
.kit__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
}
.kit__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kit-grid--contain .kit__media img { object-fit: contain; padding: 10px; }
.kit figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 1024px) { .kit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The responsive step is for a grid spanning the page. A --stack grid is
   already in a narrow column beside the photograph, so it must keep its one
   track -- without the :not() this rule wins on order and puts the two terms
   side by side again below 1024px, which is most desktop windows. */
@media (max-width: 1024px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cap-grid, .cap-grid--2 { grid-template-columns: 1fr; } }


/* --------------------------------------------------------------------------
   Service pages: the columns with hairlines between them

   The reference site's process block: four columns on white, divided by a
   single hairline each, no boxes. The divider is a left border on every column
   except the first, so there is exactly one line between any two of them and
   none on the outside edges.
   -------------------------------------------------------------------------- */
.proc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.proc > * {
  padding: var(--pad-md) var(--pad-md) 0 0;
  transition: background-color var(--dur-ink) var(--ease-fade);
}
/* A column is not a card and does not lift. What it does is take a faint tint
   under the pointer, so the one being read is the one separated from the two
   beside it. */
.proc > *:hover { background: var(--bg-alt); }
.proc__n { transition: letter-spacing var(--dur-wipe) var(--ease-smooth); }
.proc > *:hover .proc__n { letter-spacing: .2em; }
@media (prefers-reduced-motion: reduce) {
  .proc > *, .proc__n { transition: none; }
  .proc > *:hover .proc__n { letter-spacing: .14em; }
}
.proc > * + * { padding-left: var(--pad-md); border-left: 1px solid var(--line); }
.proc__n {
  display: block;
  margin-bottom: 16px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.proc h3 { margin: 0 0 12px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; text-wrap: balance; }
.proc p { margin: 0; font-size: var(--fs-small); line-height: 1.7; color: var(--slate); }
@media (max-width: 860px) {
  .proc { grid-template-columns: 1fr; }
  .proc > * { padding: var(--pad-md) 0; border-bottom: 1px solid var(--line); }
  .proc > * + * { padding-left: 0; border-left: 0; }
}




/* --------------------------------------------------------------------------
   Vacancies

   <details>, not a scripted accordion. It opens with no JavaScript, it is
   keyboard operable and announced to a screen reader for free, and it will
   survive the move into WordPress, where the markup gets templated and a
   script may not follow it.
   -------------------------------------------------------------------------- */
.vacancies { border-top: 1px solid var(--line); }
.vacancy { border-bottom: 1px solid var(--line); }
.vacancy > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content 30px;
  gap: var(--gap-md);
  align-items: center;
  padding-block: var(--pad-sm);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-ink) var(--ease-fade);
}
.vacancy > summary::-webkit-details-marker { display: none; }
.vacancy > summary:hover { color: var(--red); }
.vacancy > summary:focus-visible { outline-offset: 4px; }
/* The job title is the h3 on this page, at the h3 the rest of the site uses.
   The two labels inside an open panel are h4: they rank under the title, and
   a heading set at label size must not be an h3 or the scale stops meaning
   anything. */
.vacancy__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
}
.vacancy__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* One plus that becomes a cross. Rotation rather than a second glyph, so the
   open and close states are the same object at two angles. */
.vacancy__sign {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--red);
  font-size: var(--fs-body);
  transition: transform var(--dur-wipe) var(--ease-smooth);
}
.vacancy[open] .vacancy__sign { transform: rotate(45deg); }
/* The row that grows. A grid track in fr units interpolates, which is what
   lets an open panel have a height to animate between; the panel inside it is
   clipped so the copy does not spill while the track is still short. */
.vacancy__reveal {
  display: grid;
  /* Clipped here as well as on the panel inside. The panel's own overflow is
     what should do it, and does; this is the belt to that pair of braces,
     because a row whose content paints outside a zero-height track lands on
     top of the next job in the list. */
  overflow: hidden;
  /* minmax(0, ...), not a bare 0fr. A track's base size is still the item's
     min-content contribution, and padding counts towards that whatever
     min-height says: with a bare 0fr the closed panel measured 33px tall, the
     height of its own bottom padding. The explicit 0 minimum takes it to zero
     and the fraction does the rest. */
  grid-template-rows: minmax(0, 0fr);
  transition: grid-template-rows .42s var(--ease-smooth);
}
.vacancy[open] .vacancy__reveal { grid-template-rows: minmax(0, 1fr); }
.vacancy__reveal > * { overflow: hidden; min-height: 0; }

.vacancy__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Row gap small, column gap wide. The row gap is the space under the facts
     strip, and it used to be --gap-lg on top of the strip's own bottom margin
     and padding: 122px of nothing between two things that belong together. */
  gap: var(--gap-sm) var(--gap-lg);
}
/* The space under the panel is a row of content, not padding.

   Padding is added to a box whatever min-height says, so a padded grid item
   cannot shrink below it: the panel stopped at 33px -- the height of its own
   bottom padding -- and the last third of a second of the closing animation
   had nothing left to move, which is the stutter. An empty final row is
   content, and content collapses to nothing. */
.vacancy__body::after {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: var(--pad-md);
}

/* Where the job is and which discipline it belongs to, at the head of the open
   panel and across both its columns. They used to sit in the closed row beside
   the employment type: three lines of tracked small caps on every row, which
   on a list of five reads as fifteen competing labels and buries the job
   titles they were meant to support. */
.vacancy__facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm) var(--gap-lg);
  padding-bottom: var(--pad-sm);
  border-bottom: 1px solid var(--line);
}
.vacancy__facts dt {
  margin-bottom: 6px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.vacancy__facts dd { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); }
/* The copy fades in behind the opening track. Shorter than the track's own
   transition and started with it, so the words arrive as the space for them
   finishes rather than after it. */
.vacancy[open] .vacancy__body { animation: vacancy-open .34s var(--ease-fade) both; }
@keyframes vacancy-open {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .vacancy[open] .vacancy__body { animation: none; }
  .vacancy__reveal { transition: none; }
  .vacancy__sign { transition: none; }
}
.vacancy__label {
  margin: 0 0 16px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.vacancy ul { display: grid; gap: 10px; }
.vacancy li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--slate);
}
/* A rule, not a bullet: the same 10px mark the reference site uses down its
   own lists, and it lines up with the red used everywhere else on the page. */
.vacancy li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 11px;
  height: 1px;
  background: var(--red);
}
/* No border-top. The list above already closes itself with the last row's
   bottom rule, and a second line one gap below it is the same divider drawn
   twice. */
/* Just the button, on the centre line. The sentence beside it said what the
   button says, one size smaller. */
.vacancy__foot {
  margin-top: var(--gap-lg);
  display: flex;
  justify-content: center;
}
/* "Apply for this role": on its own row under the role's details, opening the
   application form (js/apply.js). */
.vacancy__apply {
  display: inline-flex;
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
  font-size: 13px;
}
}
@media (max-width: 860px) {
  .vacancy > summary { grid-template-columns: minmax(0, 1fr) 30px; }
  .vacancy__meta { grid-column: 1; grid-row: 2; }
  .vacancy__sign { grid-column: 2; grid-row: 1 / span 2; }
  .vacancy__body { grid-template-columns: 1fr; gap: var(--gap-md); }
}


/* --------------------------------------------------------------------------
   News

   Each entry is complete on the card. There are no article pages behind them,
   so there is nothing to click and nothing here pretends otherwise: no hover
   lift, no "read more" leading nowhere.
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-md); }
/* A card: the photograph flush to three edges, the words inset from all four.
   No hover lift -- each entry is complete on the card and there is nowhere to
   click, and a card that rises under the pointer says there is. */
.post {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 17, 21, .05), 0 10px 26px rgba(15, 17, 21, .07);
  transition: transform var(--dur-wipe) var(--ease-smooth),
              box-shadow var(--dur-wipe) var(--ease-smooth);
}
/* The same answer the project cards give: the card lifts and the photograph
   pushes in a little under it. transform and opacity only, so nothing here
   costs a layout pass. */
.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(15, 17, 21, .06), 0 18px 40px rgba(15, 17, 21, .12);
}
.post figure { margin: 0; overflow: hidden; background: var(--bg-alt); }
.post img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease-smooth);
}
.post:hover img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  .post, .post img { transition: none; }
  .post:hover { transform: none; }
  .post:hover img { transform: none; }
}
.post__body { display: flex; flex-direction: column; flex: 1; padding: var(--pad-md); }
/* Stacked, not wrapped. Side by side, "Company announcement" pushed its date
   onto a second line while the two shorter categories kept theirs on the
   first, so one title in three started lower than the others. Two rows always
   is two rows always. */
.post__meta {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-bottom: 14px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.post__cat { color: var(--red); }
.post__date { color: var(--muted); }
.post h3 {
  margin: 0 0 12px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
/* :not, because the meta line above is a <p> too and this rule sits after it
   in the sheet: same specificity, later wins, and the 13px label was quietly
   rendering at 16px. */
.post p:not(.post__meta) { margin: 0; font-size: var(--fs-body); line-height: 1.75; color: var(--slate); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }


/* --------------------------------------------------------------------------
   Project overview: the description beside the facts

   The two project pages used to run on a stylesheet of their own, with an h1
   at weight 600 against the site's 500 and four different h2 sizes -- 34, 38,
   41 and 46px -- none of which is the 40px every other h2 on the site is set
   at. They are on the shared scale now and this is the one component they
   needed that did not already exist.
   -------------------------------------------------------------------------- */
.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: var(--gap-lg);
  align-items: start;
}
.overview p {
  margin: 0 0 var(--gap-sm);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--slate);
  max-width: 62ch;
}
.overview p:last-child { margin-bottom: 0; }
/* The work-order reference: a fact for the record, not part of the argument. */
.overview p.overview__ref { font-size: var(--fs-small); color: var(--muted); }

/* Hairlines top and bottom of every row, so the list closes rather than
   trailing off, and one padding step above and below each value. */
.facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.facts > div { padding-block: var(--pad-sm); border-bottom: 1px solid var(--line); }
.facts dt {
  margin: 0 0 10px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--ink); }
@media (max-width: 900px) { .overview { grid-template-columns: 1fr; gap: var(--gap-md); } }


/* --------------------------------------------------------------------------
   Projects: the draggable track
   -------------------------------------------------------------------------- */
.work-card { display: block; }

/* The photographs, as a gallery. They used to sit in a strip you had to drag
   sideways, which hid two thirds of them behind a gesture. Every one is on the
   page now, and the first of each project runs double width so the grid has a
   rhythm rather than being thirteen identical squares. */
/* dense is the safety net, not the plan. The builders already choose how many
   shots run double width so the cells divide by four exactly; this is here so
   that someone dropping one more photograph into the folder later gets a short
   last row rather than a hole punched in the middle of the grid. */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--gap-xs);
}
.shot {
  position: relative;
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-alt);
}
.shot img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
a.shot:hover img { transform: scale(1.05); }
.shot--wide { grid-column: span 2; }
.shot--wide img { aspect-ratio: 8 / 3; }

/* The label rides up out of the bottom edge on hover, and is simply there on a
   touch screen, where there is no hover to bring it. */
.shot span {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 7px 12px;
  border-radius: var(--r-btn);
  background: rgba(21, 24, 27, .84);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
a.shot:hover span { opacity: 1; transform: none; }
@media (hover: none) { .shot span { opacity: 1; transform: none; } }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .shot--wide { grid-column: auto; } .shot--wide img { aspect-ratio: 4 / 3; } }

/* The grid below the track: every project, no scrolling sideways. */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-md); }


/* --------------------------------------------------------------------------
   Notes: three short blocks read together

   What the Careers page used to make you click through one at a time. Three
   answers of two sentences each are quicker to read than to open.
   -------------------------------------------------------------------------- */
.note-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-sm); }
.note-card {
  padding: var(--pad-md);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.note-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--ink); }
/* The heading sits over a rule; the card does not wear a coloured bar along
   its top edge. A thick accent border on a rounded card is the most
   recognisable tell there is, and it fought the corner radius besides. */
.note-card h3 { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-h3); font-weight: 600; }
.note-card p { margin: 0; font-size: var(--fs-small); line-height: 1.75; color: var(--slate); }
@media (max-width: 900px) { .note-cards { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Empty state: a section with nothing in it yet says so
   -------------------------------------------------------------------------- */
/* Nothing here yet, said deliberately.

   It was a dashed box, which is the visual language of a placeholder -- an
   unfortunate thing to say on a page whose whole message is that there is
   nothing to show yet. A solid card with the red rule the note cards use says
   the same words as a finished piece of design. */
.empty-state {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--gap-lg) var(--pad-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.empty-state i {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--red-tint);
  font-size: var(--fs-icon);
  color: var(--red);
}
.empty-state h2 { margin: 26px 0 12px; font-size: var(--fs-h3); font-weight: 600; }
.empty-state p { margin: 0 auto; max-width: 46ch; font-size: var(--fs-body); line-height: 1.75; color: var(--slate); }
.empty-state .btn { margin-top: 30px; }


/* --------------------------------------------------------------------------
   Legal pages: contents beside the text
   -------------------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: minmax(0, .28fr) minmax(0, .72fr); gap: var(--gap-lg); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc span {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin-bottom: 10px; }
.legal-toc a { display: block; font-size: var(--fs-small); line-height: 1.5; color: var(--slate); }
.legal-toc a::before { content: counter(toc) ". "; color: var(--muted-2); }
.legal-toc a:hover { color: var(--red); }

/* Anchored headings must clear the sticky header when jumped to. */
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }


/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.nf { text-align: center; padding-block: var(--gap-lg); }
.nf__code {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--ink);
  margin: 0;
}
/* :not, because the numeral is a <p> too and `.nf p` -- one class and one
   element -- outranks the bare `.nf__code` class that sets its size. It was
   setting the 404 in 17px. */
.nf p:not(.nf__code) { margin: 20px auto 32px; max-width: 44ch; font-size: var(--fs-body); line-height: 1.7; color: var(--slate); }
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }


/* --------------------------------------------------------------------------
   CTA strip, shared by every inner page
   -------------------------------------------------------------------------- */
/* The closing band, on every inner page.

   A photograph rather than a black rectangle, and one column centred rather
   than words left and button right: the heading, the line under it and the
   button read as one stack aimed at the middle of the page, which is where
   the reader's eye already is by the foot of a page.

   The heading needs its colour said out loud: style.css sets h2 { color:
   var(--ink) } globally, which beats the white this strip passes down by
   inheritance, and the heading was black type on a black band -- invisible,
   and invisible in a way that reads as a missing element rather than a broken
   one. */
.cta-strip {
  position: relative;
  /* Same layering as the page banner: the photograph and the wash over it sit
     behind the content on negative z-indexes, and `isolation` keeps those
     negatives inside this section instead of sliding under the page. */
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding-block: clamp(84px, 10vw, 148px);
}
.cta-strip__media { position: absolute; inset: 0; z-index: -2; }
.cta-strip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Above the middle. The band is a shallow crop out of a landscape, and
     centring it vertically cuts the cranes off and keeps the ground. */
  object-position: 50% 42%;
}

/* A vignette, not a flat sheet: darkest at the edges, where it hands over to
   the section above and the footer below, and held at .80 across the middle so
   the sunset still shows behind the words while white type keeps its contrast
   over the brightest part of the sky. The red keeps its corner, so the band
   still has the direction it had when it was a black rectangle. */
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(74% 130% at 50% 50%, rgba(15, 18, 21, .80) 0%, rgba(15, 18, 21, .86) 52%, rgba(15, 18, 21, .93) 100%),
    radial-gradient(closest-side at 100% 40%, rgba(190, 22, 34, .40), rgba(190, 22, 34, 0));
  pointer-events: none;
}
.cta-strip__inner { position: relative; }
.cta-strip .eyebrow { color: #fff; opacity: .72; }
.cta-strip h2 {
  margin: 0 auto;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  max-width: 20ch;
  text-wrap: balance;
}
.cta-strip p {
  margin: 16px auto 0;
  font-size: var(--fs-body);
  line-height: 1.7;
  /* Not --on-dark-muted, which is the grey for type on the flat ink panels.
     Over the lit part of this photograph that grey comes to about 3.6:1 and
     body text needs 4.5. White at .88 stays secondary to the heading beside it
     and clears the ratio over every part of the picture. */
  color: rgba(255, 255, 255, .88);
  max-width: 52ch;
}

/* Under the description, not beside it. */
.cta-strip__actions { display: grid; justify-items: center; margin-top: 34px; }


/* --------------------------------------------------------------------------
   Narrow
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 860px) {
  .project-grid { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   About page, tablet and mobile (body.page-about, 1024px and below only)
   The homepage standard: centred throughout, the banner shaded from the top
   rather than the left, and one type size per role:
     labels, buttons 13px · small text 14px · paragraphs 16px ·
     card titles --fs-h3 · section titles --fs-h2.
   Desktop is untouched.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Banner */
  :is(.page-about, .page-news, .page-contact, .page-careers, .page-projects, .page-services, .page-service, .page-legal) .page-banner::before {
    background: linear-gradient(
      180deg,
      rgba(15,18,21,.92) 0%,
      rgba(15,18,21,.82) 38%,
      rgba(15,18,21,.6)  68%,
      rgba(15,18,21,.38) 100%
    );
  }
  :is(.page-about, .page-news, .page-contact, .page-careers, .page-projects, .page-services, .page-service, .page-legal) .page-banner__inner { text-align: center; }
  :is(.page-about, .page-news, .page-contact, .page-careers, .page-projects, .page-services, .page-service, .page-legal) .page-banner__title { margin-inline: auto; }
  :is(.page-about, .page-news, .page-contact, .page-careers, .page-projects, .page-services, .page-service, .page-legal) .page-banner__rule,
  :is(.page-about, .page-news, .page-contact, .page-careers, .page-projects, .page-services, .page-service, .page-legal) .page-banner__lead { margin-inline: auto; }

  /* Introduction */
  .page-about .about-say__copy { text-align: center; }
  .page-about .about-say__copy p { margin-inline: auto; }
  /* One column across the whole tablet range, photograph first. */
  .page-about .about-say { grid-template-columns: 1fr; gap: var(--gap-md); }
  .page-about .about-say figure { order: -1; }

  /* How We Work: the numeral above each step, the step centred under it.
     The connecting line would run straight through centred text, so it goes. */
  .page-about .seq__item { padding-left: 0; text-align: center; }
  .page-about .seq__n { position: static; margin: 0 auto var(--gap-sm); }
  .page-about .seq__track { display: none; }
  /* One step under another, each centred. */
  .page-about .seq__list { grid-template-columns: 1fr; }

  /* Core Capabilities: one to a row, centred. */
  .page-about .practice-grid { grid-template-columns: 1fr; }
  .page-about .practice { text-align: center; }
  .page-about .practice h3 { min-height: 0; }
  .page-about .practice p { font-size: 14px; line-height: 1.6; }
  .page-about .practice__rule { margin-inline: auto; transform-origin: center; }

  /* Organisation: the Chairman on a row of his own at the top, everyone
     else two to a row beneath. */
  .page-about .org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-about .org,
  .page-about .org--lead,
  .page-about .org-grid > .org:last-child:nth-child(odd) { grid-column: auto; }
  .page-about .org-grid > .org:first-child { grid-column: 1 / -1; }

  /* Organisation: directors' names at the card-title size like everyone
     else's; the profile panel's small type on the standard steps. */
  .page-about .org--lead .org__name { font-size: var(--fs-h3); }
  .page-about .org__more-name { font-size: var(--fs-h3); }
  .page-about .org__more-inner { text-align: center; }
  .page-about .org__lede { font-size: 14px; }
  .page-about .org__facts dt { font-size: 13px; }
  .page-about .org__facts dd { font-size: 14px; }
  .page-about .org__timeline { text-align: left; max-width: 420px; margin-inline: auto; }
  .page-about .org__timeline li { font-size: 14px; }
  .page-about .org__timeline span { font-size: 13px; }

  /* Call to action */
  .page-about .cta-strip .btn { font-size: 13px; }
}

/* Organisation, tablet and phone: a tap opens the profile as a card over the
   page (js/org.js builds it), so the cards themselves never move or grow. The
   panel under each face is not used at this size. */
@media (max-width: 1024px) {
  .page-about .org__more { display: none; }
  .page-about .org.is-open .org__avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); }

  .org-pop {
    width: min(440px, calc(100% - 32px));
    max-height: min(86vh, 760px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--r-card);
    overflow: hidden;
    background: linear-gradient(150deg, #0d1013 0%, var(--ink) 60%, #1d2227 100%);
    color: rgba(255, 255, 255, .82);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  }
  .org-pop[open] { display: flex; flex-direction: column; animation: org-pop-in .45s var(--ease-smooth); }
  .org-pop::backdrop { background: rgba(15, 18, 21, .72); backdrop-filter: blur(3px); }
  .org-pop__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 40px 24px 28px;
    text-align: center;
  }
  .org-pop__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
  }
  .org-pop__close:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
  .org-pop__close svg { width: 18px; height: 18px; }
  .org-pop .org__avatar {
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
    box-shadow: 0 0 0 4px #15191d, 0 0 0 6px var(--red);
  }
  .org-pop .org__role { display: block; color: #F08A91; margin-bottom: 6px; }
  .org-pop .org__more-name { display: block; margin: 0 0 16px; font-size: var(--fs-h3); }
  .org-pop .org__more--brief .org__more-name,
  .org-pop .org__more-inner > .org__more-name:last-child { margin-bottom: 0; }
  .org-pop .org__lede { font-size: 14px; }
  .org-pop .org__facts dt { font-size: 13px; }
  .org-pop .org__facts dd { font-size: 14px; }
  .org-pop .org__timeline { text-align: left; }
  .org-pop .org__timeline li { font-size: 14px; }
  .org-pop .org__timeline span { font-size: 13px; }
}
@keyframes org-pop-in {
  from { opacity: 0; transform: perspective(1000px) rotateY(-18deg) scale(.94); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .org-pop[open] { animation: none; }
}

/* Organisation, phone: two even columns of square cards. The Chairman keeps
   the full row at the top, with his face held to one card's width in the
   middle so it reads the same as the rest. A tighter face (smaller photo,
   less padding) is what lets each card come out square. */
@media (max-width: 560px) {
  /* Each row at least as tall as a card is wide (the grid is the page width
     less the 20px gutters), growing only when a long name needs it. */
  .page-about .org-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(calc((100vw - 41px) / 2), auto);
  }
  .page-about .org,
  .page-about .org--lead,
  .page-about .org-grid > .org:last-child:nth-child(odd) { grid-column: auto; }
  .page-about .org-grid > .org:first-child { grid-column: 1 / -1; }
  .page-about .org-grid > .org:first-child .org__front { width: 50%; margin-inline: auto; }
  .page-about .org__front { height: 100%; gap: 4px; padding: 16px 10px; }
  .page-about .org__avatar,
  .page-about .org--lead .org__avatar { width: 68px; height: 68px; margin-bottom: 8px; }
  .page-about .org__role { letter-spacing: .08em; }
  .page-about .org__name,
  .page-about .org--lead .org__name { font-size: 16px; line-height: 1.3; }
}

/* --------------------------------------------------------------------------
   News and Contact, tablet and mobile (1024px and below only)
   The banner is shared with the About page above: gradient from the top,
   words centred. The rest follows the homepage standard: headings centred,
   card text at 14px, labels at 13px.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* News */
  :is(.page-news, .page-careers, .page-projects, .page-services) .ipage-head { margin-inline: auto; text-align: center; }
  :is(.page-news, .page-careers, .page-projects, .page-services) .ipage-head .section-title,
  :is(.page-news, .page-careers, .page-projects, .page-services) .ipage-head .section-title::after,
  :is(.page-news, .page-careers, .page-projects, .page-services) .ipage-head p { margin-inline: auto; }

  /* Services: the projects heading row stacked and centred, link beneath. */
  .page-services .ipage-head--row { grid-template-columns: 1fr; gap: var(--gap-sm); justify-items: center; text-align: center; }
  .page-services .ipage-head--row > div { margin-inline: auto; }
  .page-services .ipage-head--row .section-title,
  .page-services .ipage-head--row .section-title::after,
  .page-services .ipage-head--row p { margin-inline: auto; }

  /* Projects: the machinery introduction centred, button included. */
  .page-projects #machinery .about-say__copy { text-align: center; }
  .page-projects #machinery .about-say__copy .section-title,
  .page-projects #machinery .about-say__copy .section-title::after,
  .page-projects #machinery .about-say__copy p { margin-inline: auto; }
  .page-news .post p:not(.post__meta) { font-size: 14px; line-height: 1.7; }

  /* Careers: the vacancy details at the card-text size, the button at the
     standard 13px. */
  .page-careers .vacancy__facts dd,
  .page-careers .vacancy li { font-size: 14px; }
  .page-careers .btn,
  .page-projects main .btn,
  .page-services main .btn,
  .page-services .link-more,
  .page-service main .btn,
  .page-service .link-more { font-size: 13px; }

  /* Service pages: the introduction one column, photograph first, then the
     heading and copy centred beneath it. */
  .page-service .svc-intro { grid-template-columns: 1fr; gap: var(--gap-md); }
  .page-service .svc-shot { order: -1; }
  .page-service .svc-intro__copy { text-align: center; }
  .page-service .svc-intro__copy .section-title { margin-inline: auto; }
  .page-service .svc-intro .prose p { margin-inline: auto; }

  /* Every section heading centred: title, rule and lede (and the "All..."
     link where a heading row has one, stacked beneath). */
  .page-service .ipage-head { margin-inline: auto; text-align: center; }
  .page-service .ipage-head .section-title,
  .page-service .ipage-head .section-title::after,
  .page-service .ipage-head p { margin-inline: auto; }
  .page-service .ipage-head--row { grid-template-columns: 1fr; gap: var(--gap-sm); justify-items: center; }
  .page-service .ipage-head--row > div { margin-inline: auto; }

  /* "What Decides How It Goes": each step centred, number over title over
     text. */
  .page-service .proc > * { text-align: center; }
  .page-service .proc p { margin-inline: auto; }

  /* Projects delivered (Earthworks and IBS pages): white cards on the dark
     band, the ink text and red marks of the light card. */
  .page-service .section--ink .svc-proj {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
  }
  .page-service .section--ink .svc-proj:hover { background: #fff; }
  .page-service .section--ink .svc-proj h3 { color: var(--ink); }
  .page-service .section--ink .svc-proj p { color: var(--slate); }
  .page-service .section--ink .svc-proj__place { color: var(--red); }
  .page-service .section--ink .svc-proj__facts { border-top-color: var(--line); }
  .page-service .section--ink .svc-proj__facts dt { color: var(--muted); }
  .page-service .section--ink .svc-proj__facts dd { color: var(--ink); }

  /* Service pages: fact labels at the 13px label size, equipment captions
     at the small-card size. */
  .page-service .svc-proj__facts dt,
  .page-service .svc-feature__facts dt { font-size: 13px; }
  .page-service .kit figcaption { font-size: 14px; }

  /* 404: its buttons at the standard 13px. */
  .nf__links .btn { font-size: 13px; }

  /* Contact: the intro centred, then the ways to reach us as one list, a
     row each, icon beside label and value. */
  .page-contact .contact-intro { text-align: center; }
  .page-contact .contact-intro .section-title,
  .page-contact .contact-lede { margin-inline: auto; }
  .page-contact .reach__row { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; }
  /* The address runs on as one line of text and wraps where the screen
     needs it, rather than breaking after every part. */
  .page-contact .reach address br { display: none; }
  .page-contact .reach__icon { width: 48px; height: 48px; }
  .page-contact .reach__label { margin-bottom: 4px; font-size: 14px; }
  .page-contact .reach address,
  .page-contact .reach__value { font-size: 13px; line-height: 1.6; }
  .page-contact .reach__value { display: block; }
  .page-contact .field label { font-size: 13px; }
  .page-contact .cform__submit { font-size: 13px; }
}
/* Tablet: the details card and the form held to one comfortable width. */
@media (min-width: 561px) and (max-width: 1024px) {
  .page-contact .reach,
  .page-contact .cform-panel { width: 100%; max-width: 640px; margin-inline: auto; }
}
