/* ------------------------------------------------------------------
   Carey Group v3: the inner page components, loaded by every page after
   the homepage. Built to the brief in DESIGN-INNER-V3.md and set in the
   tokens carey.css declares: iron black ground, bone type, gold and
   maroon as signal, square corners, hairline rules, light only inside
   photographs.

   Three ways a page opens
     .page-hero     a chapter: full bleed photograph, big heading
     .record-head   a record: heading, lead and a fact strip on the night
                    surface, with the photograph following as a band
     .case-head     a case: the client and site, with the facts read out
                    across the foot of the photograph

   The body components
     .lede .figures .board .steps .feature .split-l .split-r .cards
     .records .facts .people .quote .gallery .doors .statement
     .jobs .form .prose .exit

   Carried from the homepage stylesheet, unchanged: .clients, .faq,
   .cta-band, .btn, .link, .caption, .body, .display, .note.
   ------------------------------------------------------------------ */

/* ==================================================================
   openers
   ================================================================== */

/* ---------- the chapter opener ----------
   The homepage hero at chapter height: one photograph or clip at full
   brightness, the two veils, a breadcrumb over the heading, the horizon
   at its foot. Section landing pages, Careers, Contact and Safety only. */

.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  overflow: clip;
  background: var(--ink);
  min-height: clamp(560px, 78svh, 820px);
  display: flex;
  flex-direction: column;
}
.page-hero > .hero-img,
.page-hero > .hero-veil { position: absolute; inset: 0; }
.page-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 48px;
}
.crumbs { color: var(--ash); }
.crumbs a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.crumbs .sep { color: var(--rule-strong); }
@media (hover: hover) and (pointer: fine) {
  .crumbs a:hover { color: var(--bone); }
}
.page-h1 {
  font-size: clamp(40px, 5vw, 76px);
  color: var(--bone);
  max-width: 15em;
}
.page-h1 .gold { display: block; }
.page-lead { max-width: 560px; font-size: clamp(15px, 1.32vw, 19px); color: var(--bone); }
.page-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.page-actions .link { color: var(--bone); border-color: var(--gold-dim); }
@media (hover: hover) and (pointer: fine) {
  .page-actions .link:hover { color: var(--gold); border-color: var(--gold); }
}
.page-hero-foot { position: relative; z-index: 2; padding-bottom: 56px; }

/* the pause control for a clip. In the actions row it is a word set as a
   link beside the page's action; resting on the horizon it is the home's box */
.page-actions .hero-toggle {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 0 6px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gold-dim);
  color: var(--bone);
  cursor: pointer;
}
.page-hero-foot .hero-toggle {
  position: absolute;
  right: var(--pad);
  bottom: calc(100% + 16px);
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 11, 10, 0.45);
  color: var(--bone);
  border: 1px solid rgba(239, 233, 223, 0.28);
  cursor: pointer;
}
.page-hero .hero-toggle[hidden] { display: none; }

/* ---------- the record opener ----------
   No photograph: the heading, the lead and the page's own facts, tight
   to the header, ruled off at the foot. A thin page starts on substance
   and its photograph arrives straight after as a .feature band. */

.record-head {
  padding-top: calc(var(--header-h) + 96px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 64px;
  align-items: end;
}
@supports selector(:has(*)) {
  .record-head:not(:has(.head-facts)) { grid-template-columns: minmax(0, 1fr); }
}
.record-head .h { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.record-h1 { font-size: clamp(40px, 5vw, 72px); color: var(--bone); max-width: 16em; }
.record-h1 .gold { display: block; }
.record-lead { max-width: 34em; font-size: clamp(16px, 1.32vw, 19px); color: var(--bone); }

/* the fact strip: three to five key and value pairs set as the rows of a
   specification sheet, the strong rule on top, a hairline under each row */
.head-facts { margin: 0; border-top: 1px solid var(--rule-strong); min-width: 0; }
.head-facts .fact {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 16px 0 17px 0;
  border-bottom: 1px solid var(--rule);
}
.head-facts dt { margin: 0; font-size: 12px; letter-spacing: 0.01em; color: var(--stone); }
.head-facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--bone);
  overflow-wrap: anywhere;
}

/* ---------- the case opener ----------
   A project case: the photograph, the client and site as the heading,
   and the register read out across the foot of the frame. */

.case-head {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  overflow: clip;
  background: var(--ink);
  min-height: clamp(560px, 78svh, 820px);
  display: flex;
  flex-direction: column;
}
.case-head > .hero-img,
.case-head > .hero-veil { position: absolute; inset: 0; }
.case-head-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 40px;
}
.case-h1 { font-size: clamp(34px, 4.44vw, 64px); color: var(--bone); max-width: 14em; }
.case-h1 .gold { display: block; }
.case-lead { max-width: 560px; font-size: clamp(15px, 1.32vw, 19px); color: var(--bone); }

/* the register: one row of ruled cells across the foot of the frame, set
   as the homepage's specification sheet on a translucent band */
.case-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  background: rgba(14, 11, 10, 0.86);
  border-top: 1px solid var(--rule-strong);
}
.case-fact {
  padding: 24px 28px 28px 28px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.case-fact:first-child { border-left: 0; padding-left: 0; }
.case-fact:last-child { padding-right: 0; }
.case-fact dt { margin: 0; font-size: 12px; letter-spacing: 0.01em; color: var(--stone); }
.case-fact dd,
.case-fact .v {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--bone);
  overflow-wrap: anywhere;
}

/* ---------- subnav ----------
   The section's sibling pages, directly under the opener. A gold
   hairline marks the page you are on. Never sticky. */

.subnav { border-bottom: 1px solid var(--rule); }
.subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 36px;
}
.subnav li { flex: 0 0 auto; }
.subnav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 12px;
  letter-spacing: var(--track-label, 0.16em);
  text-transform: none;
  font-weight: 500;
  color: var(--ash);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .subnav a:hover { color: var(--gold); }
}
.subnav a[aria-current="page"],
.subnav a[aria-current="true"] { color: var(--bone); box-shadow: inset 0 -1px 0 var(--gold); }

/* ==================================================================
   body components
   ================================================================== */

/* ---------- band ----------
   The plain section every other component sits in. .alt puts it on
   ink-2; .tight is the rhythm a thin page uses. */

.band { padding-top: var(--section); padding-bottom: var(--section); }
.band.alt { background: var(--ink-2); }
.band.tight { padding-top: var(--section-sm); padding-bottom: var(--section-sm); }
.band:not(.alt) + .band:not(.alt),
.band.alt + .band.alt { padding-top: 0; }
.band-head { max-width: 900px; margin-bottom: var(--head-gap); display: flex; flex-direction: column; gap: 20px; }
.band-head h2 { font-size: var(--fs-h2); }
.band-head .body { max-width: 620px; }
.band-foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 32px; }
.band-foot p { font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--ash); margin: 0; max-width: 620px; }
.band-foot .link { flex: 0 0 auto; }

/* ---------- lede ----------
   The page's opening argument: one column at reading scale, with an
   optional note or second paragraph beside it. */

.lede { padding-top: var(--section); padding-bottom: var(--section-sm); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 80px; align-items: start; }
.lede.tight { padding-top: var(--section-sm); padding-bottom: var(--section-sm); }
.lede-main {
  margin: 0;
  max-width: 20em;
  font-size: clamp(22px, 2.22vw, 32px);
  line-height: 1.24;
  font-weight: 300;
  color: var(--bone);
  text-wrap: pretty;
}
.lede-side { display: flex; flex-direction: column; gap: 18px; max-width: 34em; }
.lede-side .link { align-self: flex-start; }

/* ---------- figures ----------
   The homepage's specification sheet: ruled cells under a strong top
   rule, the figure large and light with its unit in gold, the label in
   stone and an optional qualifier in ash. A cell never runs narrower
   than its figure, so Top 100 widens its own column instead of spilling.
   A figure that starts with a whole number counts up once (pages.js). */

.figures { padding-top: var(--section-sm); padding-bottom: var(--section-sm); }
.lede + .figures { padding-top: 0; }
.figures + .band:not(.alt),
.figures + .lede { padding-top: 0; }
.fig-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min-content, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.fig {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px 40px 32px;
  border-left: 1px solid var(--rule);
  min-width: 0;
}
.fig:first-child { border-left: 0; padding-left: 0; }
.fig:last-child { padding-right: 0; }
.fig-n {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
/* the unit: gold, and a little over half the figure, as on the homepage */
.fig-n .u { font-size: 55%; font-weight: 300; color: var(--gold); margin-left: 0.04em; letter-spacing: 0; }
/* the counting figure keeps its final width, so the unit never shifts */
.fig-count { display: inline-block; text-align: right; }
.fig-l {
  margin: 20px 0 0 0;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: var(--track-label, 0.16em);
  text-transform: none;
  font-weight: 500;
  color: var(--stone);
}
.fig-q { margin: 8px 0 0 0; max-width: 260px; font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--ash); text-wrap: pretty; }

/* ---------- board ----------
   A scope board: what Carey does, as the homepage's fleet list. Ruled
   rows of bone uppercase, two columns wide. No numbering, because a
   scope is a set and not a sequence. */

.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 0; border-top: 1px solid var(--rule); }
@supports selector(:has(*)) {
  .board:not(:has(> .board-item:nth-child(4))) { grid-template-columns: minmax(0, 1fr); }
}
.board-item { min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.board-item p { font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--stone); margin: 0; }
.board-item .board-t {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone);
  margin: 0;
}

/* ---------- steps ----------
   A sequence, where the order carries meaning. The spine from the
   homepage journey, with a frame at card scale when there is one. */

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.step:first-child::before { top: 30px; }
.step:last-child::before { bottom: 30px; }
.step-n {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
  margin: 0;
  background: var(--ink);
  padding: 2px 0 6px 0;
  font-variant-numeric: tabular-nums lining-nums;
}
.band.alt .step-n { background: var(--ink-2); }
.step-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step-body h2,
.step-body h3 { font-size: var(--fs-h3); }
.step-body .body { max-width: 760px; }
.step-body .link { align-self: flex-start; }
/* a frame inside a step is a card, never a thumbnail */
/* wide enough to carry the work, short of swamping the step it belongs to */
.step-media { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--ink-2); margin-top: 6px; max-width: 820px; }

/* the held screen: on a wide window, a sequence with two or more frames
   is read the way the homepage journey is. pages.js builds one 16:10
   screen from copies of the step frames and holds it under the header
   beside the steps (.jframe, .jscreen, .jshot and .jrail come from the
   homepage stylesheet); the frames inside the steps stand down. The step
   being read is lit, the rest step back. Narrower windows, and no script,
   keep the steps exactly as above. */
.steps-x {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0 72px;
  align-items: start;
}
.steps-x .jrail { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.steps.is-held .step-media { display: none; }
.steps-x .step {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-content: start;
  min-height: 46vh;
  padding: 32px 0 48px 0;
}
.steps-x .step::before { left: 19px; }
.steps-x .step:first-child::before { top: 32px; }
.steps-x .step-body .board { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .steps-x.is-live .step { transition: opacity var(--ui) ease; }
  .steps-x.is-live .step:not(.is-on) { opacity: 0.38; }
  .steps-x.is-live .step:not(.is-on) .step-n { color: var(--ash); }
}

/* ---------- feature ----------
   A photograph at full page width, with its caption under the frame.
   .feature-copy lays a short line over the lower left of the frame. */

.feature { position: relative; background: var(--ink); }
.feature figure { margin: 0; }
.feature img,
.feature video { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; background: var(--ink-2); }
.feature.tall img,
.feature.tall video { aspect-ratio: 16 / 9; }
/* a wide photograph is shown whole, as the homepage shows the Sunrise Dam
   pit: pages.js reads the frame's own proportions into --ar when it is
   wider than 1.6, and the foot of the frame fades into the ground. Without
   the script the frame keeps the crop above. */
.feature figure.is-wide { position: relative; }
.feature figure.is-wide img,
.feature.tall figure.is-wide img { aspect-ratio: var(--ar, 21 / 9); }
.feature figure.is-wide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: var(--ar, 21 / 9);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14,11,10,0) 0%, rgba(14,11,10,0) 64%, rgba(14,11,10,0.72) 88%, rgba(14,11,10,1) 100%);
}
.feature figcaption {
  padding-top: 14px;
  padding-bottom: 2px;
  font-size: clamp(11px, 0.83vw, 12px);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ash);
  font-weight: 500;
}
.feature .wrapcap { padding-left: var(--pad); padding-right: var(--pad); }
.feature-copy {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 34px;
  z-index: 1;
  max-width: 620px;
  color: var(--bone);
  text-shadow: 0 2px 12px rgba(14, 11, 10, 0.9);
}
.feature-veil { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(180deg, rgba(14,11,10,0) 0%, rgba(14,11,10,0.86) 100%); }

/* ---------- split ----------
   The photograph and the copy in two hands, as the homepage sets them. */

.split-l, .split-r { display: grid; gap: 0; }
.split-l .media, .split-r .media { position: relative; overflow: clip; }
.split-l .media .veil, .split-r .media .veil { position: absolute; inset: 0; }
.split-l { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); min-height: 640px; background: var(--ink-2); }
.split-l .media .veil { background: linear-gradient(90deg, rgba(14,11,10,0) 60%, rgba(18,14,12,1) 100%); }
.split-l .copy { padding: 88px var(--pad) 88px 64px; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.split-l h2 { font-size: var(--fs-h2); }
.split-l .link { align-self: flex-start; }
.split-r { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); min-height: 640px; }
.split-r .copy { padding: 96px var(--pad); display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.split-r h2 { font-size: var(--fs-h2); }
.split-r .copy > .body { max-width: 560px; }
.split-r .media .veil { background: linear-gradient(90deg, rgba(14,11,10,1) 0%, rgba(14,11,10,0) 40%); }
.split-r .copy > .link { align-self: flex-start; }

/* ---------- cards ----------
   Projects, cases and news. The frame at 3:2 and never under 480px on
   desktop, the title above its meta line, the whole card the link. */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--rule); min-width: 0; }
.band.alt .card { background: var(--ink-2); }
.card-media { position: relative; overflow: clip; background: var(--surface); }
.card-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 26px 0 28px 0; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.card-body h2,
.card-body h3 { font-size: clamp(22px, 1.94vw, 28px); font-weight: 700; color: var(--bone); transition: color var(--press) ease; }
.card-meta { color: var(--gold); }
.card-body .body { font-size: 15px; }
.card .link { align-self: flex-start; margin-top: auto; }

/* one target, as the homepage's project cards: where a card or a door
   carries exactly one action link, that link covers the whole of it, the
   focus ring goes round the whole of it, and under the pointer a gold rule
   draws across its top, the frame eases in, the title turns gold and the
   arrow steps forward. A card with no link only eases its frame. */
.card-media img,
.door-media img { transition: transform 600ms var(--ease-out); }
@supports selector(:has(a)) {
  .card:has(a.link):not(:has(a.link ~ a.link)) a.link::after,
  .door:has(a.link):not(:has(a.link ~ a.link)) a.link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
  /* the press settle would make the link the box its cover is measured
     from, shrinking the target under a pressed pointer, so it stands down */
  .card:has(a.link):not(:has(a.link ~ a.link)) a.link:active,
  .door:has(a.link):not(:has(a.link ~ a.link)) a.link:active { transform: none; }
  .card:has(a.link):not(:has(a.link ~ a.link)) a.link:focus-visible,
  .door:has(a.link):not(:has(a.link ~ a.link)) a.link:focus-visible { outline: none; }
  .card:has(a.link:focus-visible):not(:has(a.link ~ a.link)),
  .door:has(a.link:focus-visible):not(:has(a.link ~ a.link)) { outline: 2px solid var(--gold); outline-offset: 4px; }
  .card:has(a.link):not(:has(a.link ~ a.link))::before,
  .door:has(a.link):not(:has(a.link ~ a.link))::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 3;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--ui) var(--ease-out);
    pointer-events: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media img,
  .door:hover .door-media img { transform: scale(1.04); }
  .card:has(a.link):not(:has(a.link ~ a.link)):hover::before,
  .door:has(a.link):not(:has(a.link ~ a.link)):hover::before { transform: scaleX(1); }
  .card:has(a.link):not(:has(a.link ~ a.link)):hover .card-body h2,
  .card:has(a.link):not(:has(a.link ~ a.link)):hover .card-body h3,
  .door:has(a.link):not(:has(a.link ~ a.link)):hover h2,
  .door:has(a.link):not(:has(a.link ~ a.link)):hover h3 { color: var(--gold); }
  .card:has(a.link):not(:has(a.link ~ a.link)):hover a.link,
  .door:has(a.link):not(:has(a.link ~ a.link)):hover a.link { color: var(--bone); border-color: var(--gold); }
  .card:has(a.link):not(:has(a.link ~ a.link)):hover a.link svg,
  .door:has(a.link):not(:has(a.link ~ a.link)):hover a.link svg { transform: translateX(4px); }
}

/* ---------- records ----------
   Dated evidence: the year or the label on the left, the record on the
   right. Used for values, outcomes, milestones and pillars. */

.records { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.record {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 32px 0 36px 0;
  border-bottom: 1px solid var(--rule);
}
/* a gold rule draws across the top of a record under the pointer, as it
   does across the homepage's habits */
.record::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--ui) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .record:hover::before { transform: scaleX(1); }
  .record:hover .record-body h2,
  .record:hover .record-body h3 { color: var(--gold); }
}
.record-k,
.record-k.label {
  margin: 0;
  padding-top: 5px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: var(--track-label, 0.16em);
  text-transform: none;
  color: var(--gold);
  font-variant-numeric: tabular-nums lining-nums;
}
.record-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.record-body h2,
.record-body h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; line-height: 1; color: var(--bone); transition: color var(--press) ease; }
.record-body .body { max-width: 760px; font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--stone); }
.record-body .link { align-self: flex-start; }
.record-media { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; display: block; background: var(--ink-2); margin-top: 4px; }

/* ---------- facts ----------
   A register: the key as a caption, the value in bone, on hairlines. */

.facts { margin: 0; max-width: 900px; border-top: 1px solid var(--rule); }
.facts .fact {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
/* a register that opens a band needs air before the band's own heading */
.facts + .band-head { margin-top: 48px; }
.facts dt { margin: 0; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--bone); overflow-wrap: anywhere; }

/* ---------- people ----------
   Where a portrait is cleared it leads. Where none is, the tile carries
   the person's initials in the display face: a considered stand-in, not
   an empty box waiting for a photograph. */

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.person { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person-shot { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--ink-2); margin-bottom: 14px; }
.person-tile {
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.person-tile span {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 4.4vw, 68px);
  line-height: 1;
  color: rgba(239, 233, 223, 0.5);
  letter-spacing: 0;
}
.person-name { font-size: clamp(17px, 1.39vw, 20px); font-weight: 700; color: var(--bone); }
.person-role { color: var(--ash); }
.person .link { align-self: flex-start; margin-top: 8px; }

/* ---------- quote ----------
   Someone's own approved words, at reading scale, attributed. */

.quote { margin: 0; max-width: 720px; display: flex; flex-direction: column; gap: 20px; border-left: 1px solid var(--gold-line); padding-left: 32px; }
.quote p { margin: 0; font-size: clamp(20px, 2.22vw, 32px); line-height: 1.3; font-weight: 300; color: var(--bone); text-wrap: pretty; }
.quote-by { color: var(--ash); }
/* ".quote p" outranks ".caption", so the byline goes back to caption size here */
.quote .quote-by { font-size: clamp(11px, 0.83vw, 12px); line-height: 1.5; font-weight: 500; }

/* ---------- gallery ----------
   A strip of frames, hairline between them, full page width. */

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--ink); }
.gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ink-2); }
/* under the pointer a frame eases in to 104 percent inside its own edges:
   the clip closes by the same share the scale grows, so the frame never
   spills into the gap or its neighbour */
@media (hover: hover) and (pointer: fine) {
  .gallery img {
    clip-path: inset(0);
    transition: transform 600ms var(--ease-out), clip-path 600ms var(--ease-out);
  }
  .gallery img:hover { transform: scale(1.04); clip-path: inset(1.923%); }
}

/* ---------- doors ----------
   Two ways in, each with its own frame: the careers page's roles and
   training, and any page that routes a reader two ways. */

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); }
.door { position: relative; display: flex; flex-direction: column; background: var(--ink); min-width: 0; }
.door-media { position: relative; overflow: clip; }
.door-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.door-media .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,10,0.1) 0%, rgba(14,11,10,0.86) 100%); }
.door h2,
.door h3 { position: absolute; left: 28px; right: 28px; bottom: 18px; z-index: 1; font-size: clamp(22px, 2.08vw, 30px); color: var(--bone); text-shadow: 0 2px 10px rgba(14,11,10,0.85); transition: color var(--press) ease; }
.door-copy { padding: 20px 28px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.door-copy .body { font-size: 15px; }
.door .link { align-self: flex-start; margin-top: auto; }

/* ---------- statement ----------
   One held sentence on the night surface, ruled top and bottom: the
   community pages' way of saying what the work is for. */

.statement { background: var(--ink-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-top: var(--section-sm); padding-bottom: var(--section-sm); }
.statement p { margin: 0; max-width: 20em; font-size: clamp(24px, 2.78vw, 40px); line-height: 1.2; font-weight: 300; color: var(--bone); text-wrap: pretty; }
.statement .caption { margin-top: 24px; color: var(--gold); }

/* ---------- jobs ---------- */

.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px) minmax(0, 160px) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.job-t { font-size: 18px; font-weight: 700; line-height: 1.15; color: var(--bone); }
.job.is-empty { grid-template-columns: minmax(0, 1fr); }

/* ---------- form ---------- */

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; max-width: 880px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field.full, .form-foot { grid-column: 1 / -1; }
/* the line that says what the stars mean (WCAG 3.3.2, i-241) */
.form-req { grid-column: 1 / -1; margin: 0 0 -8px 0; color: var(--stone); text-transform: none; letter-spacing: 0; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--gold-dim);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none' stroke='%23C9C1B4' stroke-width='1.6'%3E%3Cpath d='M.6 .6 4 4 7.4 .6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 8px 5px;
}
.field select option { background: var(--ink); color: var(--bone); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ash); opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.form .btn { border: 0; cursor: pointer; }
.form .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .form .btn[disabled]:hover { background: var(--gold); color: var(--ink); }
}

/* ---------- prose ---------- */

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 20px; }
.prose > * { margin: 0; }
.prose p,
.prose li { font-size: clamp(15px, 1.18vw, 17px); line-height: 1.55; font-weight: 400; color: var(--stone); text-wrap: pretty; }
.prose h2 { font-family: var(--display); font-weight: 700; text-transform: none; letter-spacing: -0.01em; line-height: 1.05; font-size: clamp(22px, 1.94vw, 28px); color: var(--bone); margin-top: 20px; }
.prose h3 { font-family: var(--display); font-weight: 700; text-transform: none; letter-spacing: -0.01em; line-height: 1.15; font-size: 18px; color: var(--bone); margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--gold); }
.prose strong { font-weight: 500; color: var(--bone); }
.prose a { text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: 1px; }

/* ==================================================================
   1024px to 1199px
   ================================================================== */

@media (max-width: 1199px) {
  .page-hero-inner { padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; }
  .page-hero-foot { padding-bottom: 44px; }
  .record-head { padding-top: calc(var(--header-h) + 72px); gap: 40px; }
  .case-head-inner { padding-top: calc(var(--header-h) + 56px); }
  .case-fact { padding: 20px 20px 24px 20px; }
  .case-fact:first-child { padding-left: 0; }
  .case-fact:last-child { padding-right: 0; }

  .fig { padding: 32px 24px 36px 24px; }
  .fig:first-child { padding-left: 0; }
  .fig:last-child { padding-right: 0; }

  .lede { gap: 48px; }
  .steps-x { gap: 0 48px; }
  .step { grid-template-columns: 60px minmax(0, 1fr); gap: 24px; }
  .step::before { left: 19px; }
  .record { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 28px; }

  .split-l .copy { padding: 72px var(--pad) 72px 40px; }
  .split-r .copy { padding: 80px var(--pad); }
  .split-l, .split-r { min-height: 0; }
  .split-l .media, .split-r .media { min-height: 460px; }

  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .cards { gap: 24px; }
}

/* ==================================================================
   below 1024px
   ================================================================== */

@media (max-width: 1023px) {
  .record-head { grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
  /* the figures: two by two, ruled between the columns and the rows */
  .fig-row { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig,
  .fig:first-child,
  .fig:last-child { padding: 28px 0 32px 0; border-left: 0; }
  .fig:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .fig:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .fig:only-child { grid-column: 1 / -1; }

  .case-facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-fact,
  .case-fact:first-child,
  .case-fact:last-child { border-left: 0; padding: 18px 0 20px 0; }
  .case-fact:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .case-fact:nth-child(n+3) { border-top: 1px solid var(--rule); }

  .cards, .cards.three { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doors { grid-template-columns: minmax(0, 1fr); }

  .split-l, .split-r { grid-template-columns: minmax(0, 1fr); }
  .split-l .media, .split-r .media { min-height: 0; height: 340px; }
  .split-l .media .veil { background: linear-gradient(180deg, rgba(18,14,12,0) 55%, rgba(18,14,12,1) 100%); }
  .split-r .media .veil { background: linear-gradient(180deg, rgba(14,11,10,0) 55%, rgba(14,11,10,1) 100%); }
  .split-r .media { order: -1; }
  .split-l .copy, .split-r .copy { padding: 8px var(--pad) 56px var(--pad); gap: 22px; }

  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { grid-template-columns: minmax(0, 1fr) minmax(0, 180px) auto; }
  .job-type { display: none; }
  .feature img, .feature video { aspect-ratio: 16 / 9; }
}

/* ==================================================================
   phones
   ================================================================== */

@media (max-width: 767px) {
  .page-hero { min-height: clamp(460px, 62svh, 640px); }
  .page-hero-inner { padding-top: calc(var(--header-h) + 88px); padding-bottom: 32px; gap: 16px; }
  .page-hero-foot { padding-bottom: 32px; }
  .page-lead { max-width: none; }
  .page-h1,
  .record-h1 { font-size: clamp(32px, 9.2vw, 40px); }
  .case-h1 { font-size: clamp(30px, 8.2vw, 36px); }
  .page-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .page-actions .btn { align-self: stretch; }
  .page-actions .link { align-self: flex-start; min-height: 44px; }

  .record-head { padding-top: calc(var(--header-h) + 56px); padding-bottom: 32px; gap: 24px; }
  .record-lead { max-width: none; }
  .head-facts .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; }

  .case-head { min-height: clamp(460px, 62svh, 680px); }
  .case-head-inner { padding-top: calc(var(--header-h) + 88px); padding-bottom: 28px; }
  .case-fact,
  .case-fact:first-child,
  .case-fact:last-child { padding: 16px 0 18px 0; }
  .case-fact:nth-child(2n) { padding-left: 16px; }
  .case-fact dd { font-size: 15px; }

  .subnav a { min-height: 48px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .subnav ul { gap: 0 24px; }
  /* one row that swipes sideways, running to the window's right edge, with
     a fade on whichever edge has more tabs past it */
  .subnav { padding-right: 0; }
  .subnav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-right: var(--pad);
  }
  .subnav ul::-webkit-scrollbar { display: none; }
  .subnav ul.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .subnav ul.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
  .subnav ul.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

  .lede { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lede-main { max-width: none; }
  .lede-side { max-width: none; }
  /* every action a thumb has to find keeps its 44px, wherever it sits */
  .lede-side .link, .band-foot .link, .record-body .link, .step-body .link,
  .card .link, .door .link, .split-l .link, .split-r .copy > .link,
  .person .link, .prose a, .facts dd a,
  .board-item .link { min-height: 44px; display: inline-flex; align-items: center; }

  .fig,
  .fig:first-child,
  .fig:last-child { padding: 22px 0 24px 0; }
  .fig:nth-child(2n) { padding-left: 16px; }
  .fig-n { font-size: 40px; }
  .fig-l { margin-top: 14px; font-size: 11px; letter-spacing: 0.01em; }
  .fig-q { max-width: none; }

  .board { grid-template-columns: minmax(0, 1fr); }

  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  .step::before { left: 13px; }
  .step-n { font-size: 22px; }
  .step-media { max-width: none; }

  .record { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 0 28px 0; }
  .record-k,
  .record-k.label { padding-top: 0; }
  .record-media { aspect-ratio: 16 / 9; }

  .facts .fact { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; }

  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .person-tile span { font-size: 34px; }

  .quote { padding-left: 20px; }
  .gallery, .gallery.three { grid-template-columns: minmax(0, 1fr); }

  .feature img, .feature video { aspect-ratio: 4 / 3; }
  .feature-copy { left: var(--pad); right: var(--pad); bottom: 24px; }
  .feature .wrapcap { padding-left: var(--pad); padding-right: var(--pad); }

  .statement p { max-width: none; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .form-foot .btn { align-self: stretch; width: 100%; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; }
  .job-type { display: block; }
  .job .link { justify-self: start; min-height: 44px; margin-top: 6px; }
  .door h3 { left: 20px; right: 20px; }
  .door-copy { padding: 18px 20px 24px 20px; }
}

/* ==================================================================
   reduced motion: the states still answer, nothing moves
   ================================================================== */

@media (prefers-reduced-motion: reduce) {
  .card:hover .card-media img,
  .door:hover .door-media img,
  .card:hover .link svg,
  .door:hover .link svg,
  .gallery img:hover { transform: none; }
  .gallery img:hover { clip-path: inset(0); }
}

/* ==================================================================
   the work strip, the numbered services, the certification plate
   Shared by the capability pages (mining, civil construction, marine).
   The strip drifts sideways and can be taken by hand (pages.js); the
   services read as a plain numbered list beside a held heading; the
   plate carries supplied certification marks on the page's own ground.
   ================================================================== */

.mstrip {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mstrip::-webkit-scrollbar { display: none; }
.mstrip.is-live { overflow: hidden; cursor: grab; touch-action: pan-y; }
.mstrip.is-held { cursor: grabbing; }
/* with a mouse the pointer itself becomes the invitation: a small ring that
   follows it, Carey's chevron either side of the word. Pressed, the ring
   closes in and the chevrons part. The native pointer steps aside only
   while the ring is there to replace it. */
.mstrip.has-ring, .mstrip.has-ring.is-held { cursor: none; }
.strip-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  pointer-events: none;
  will-change: transform;
}
.strip-ring-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(14, 11, 10, 0.78);
  color: var(--bone);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 180ms ease, transform 260ms var(--ease-out), gap 220ms var(--ease-out);
}
.strip-ring-in svg { flex: 0 0 auto; color: var(--gold); }
.strip-ring-in span { margin-right: -0.18em; }
.strip-ring.is-on .strip-ring-in { opacity: 1; transform: scale(1); }
.strip-ring.is-held .strip-ring-in { transform: scale(0.82); gap: 11px; background: rgba(14, 11, 10, 0.9); }
.mstrip img { user-select: none; -webkit-user-drag: none; }
.mrail { display: flex; gap: 20px; width: max-content; padding-bottom: 2px; }
.mstrip.is-live .mrail { will-change: transform; }
.mframe {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  width: clamp(252px, 27vw, 400px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-2);
}
.mframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mframe::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--rule); pointer-events: none; }

.cs-band { padding-top: var(--section-sm); padding-bottom: var(--section-sm); }
.cs { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px 96px; align-items: start; }
.cs-head h2 { font-size: var(--fs-h2); }
.cs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); counter-reset: cs; }
.cs-list li {
  counter-increment: cs;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 22px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--bone);
}
/* a service that carries a line of its own: the name keeps the list's
   scale, the line sits under it at body scale so the column still scans */
.cs-list li > div { display: flex; flex-direction: column; gap: 7px; }
.cs-list .cs-t { margin: 0; }
.cs-list .cs-d {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(15px, 1.12vw, 16px);
  line-height: 1.6;
  color: var(--ash);
  max-width: 44em;
}
.cs-list li::before {
  content: counter(cs, decimal-leading-zero);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.ct { display: flex; flex-direction: column; gap: 28px; }
/* the heading, with the way on to the Safety & ESG page beside it */
.ct-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; }
.ct-h {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(20px, 1.94vw, 28px);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone);
}
.ct-plate {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.ct-plate.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ct-cell {
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 24px 28px 24px;
  text-align: center;
  min-width: 0;
}
.ct-cell img { display: block; width: auto; height: 96px; }
.ct-n {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone);
}
.ct-s { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 400; color: var(--ash); }
/* the credentials that come as words rather than marks */
.ct-note { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 400; color: var(--stone); max-width: 900px; }
.ct-note .sep { color: var(--gold-dim); }

/* client marks supplied in colour, shown as the row's light marks */
.client-logos img.l-white { filter: brightness(0) invert(1); }
.client-logos img.l-defence      { max-height: 46px; max-width: 68px; }
.client-logos img.l-southernports { max-height: 32px; max-width: 71px; }
.client-logos img.l-sharkbay     { max-height: 30px; max-width: 73px; }
.client-logos img.l-auspotash    { max-height: 28px; max-width: 62px; }
.client-logos img.l-cpb          { max-height: 34px; max-width: 120px; }
.client-logos img.l-fultonhogan  { max-height: 22px; max-width: 128px; }
.client-logos img.l-laingorourke { max-height: 26px; max-width: 122px; }

@media (min-width: 1024px) {
  .cs-head { position: sticky; top: calc(var(--header-h) + 40px); }
}
@media (max-width: 1199px) {
  .cs { column-gap: 56px; }
}
@media (max-width: 1023px) {
  .cs { grid-template-columns: minmax(0, 1fr); }
  .ct-plate, .ct-plate.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-cell { padding: 28px 18px 24px 18px; }
}
@media (max-width: 767px) {
  .mrail { gap: 12px; }
  .cs-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 0 18px 0; }
  .ct-plate, .ct-plate.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-cell { padding: 26px 16px 22px 16px; gap: 14px; }
  .ct-cell img { height: 92px; }
  .client-logos img.l-defence      { max-height: 40px; }
  .client-logos img.l-southernports { max-height: 26px; }
  .client-logos img.l-sharkbay     { max-height: 24px; }
  .client-logos img.l-auspotash    { max-height: 22px; }
  .client-logos img.l-cpb          { max-height: 27px; }
  .client-logos img.l-fultonhogan  { max-height: 18px; }
  .client-logos img.l-laingorourke { max-height: 21px; }
}

/* the capability profile: the story, the strip, then the standing figures.
   Shared by the capability pages; a page may still set its own measure. */
.gp { display: flex; flex-direction: column; gap: 52px; padding-top: var(--section-sm); padding-bottom: 0; }
.gp-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 96px; align-items: start; }
.gp-lead {
  margin: 0;
  max-width: 30em;
  font-size: clamp(21px, 1.95vw, 28px);
  line-height: 1.42;
  font-weight: 300;
  color: var(--bone);
  text-wrap: pretty;
}
.gp-body {
  margin: 0;
  padding-top: 8px;
  max-width: 34em;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
  font-weight: 400;
  color: var(--stone);
  text-wrap: pretty;
}
.gp .figures { padding: 0; }
.gp .figures .fig-n { font-size: clamp(34px, 3.2vw, 48px); }

/* the client marks hang straight off the figures' own bottom rule */
.cl { padding-top: 0; padding-bottom: 72px; }
.cl .client-row { align-items: center; border-top: 0; padding-top: 28px; }
.ct { padding-top: 72px; padding-bottom: 80px; }

/* a feature split's words: the heading, then its points as a ruled pair */
.gi-points { margin: 0; border-top: 1px solid var(--rule-strong); }
.gi-pt { padding: 22px 0 24px 0; border-bottom: 1px solid var(--rule); }
.gi-pt dt { margin: 0 0 12px 0; color: var(--gold); }
.gi-pt dd {
  margin: 0;
  max-width: 32em;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--bone);
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  /* the mirrored feature split: the photograph takes the right hand */
  .split.mining.mirror { grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); min-height: 640px; }
  .split.mining.mirror .media { order: 2; }
  .split.mining.mirror .media .veil { background: linear-gradient(270deg, rgba(14,11,10,0) 60%, rgba(14,11,10,1) 100%); }
  .split.mining.mirror .copy { padding: 96px 64px 96px var(--pad); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gp-top { column-gap: 56px; }
  .split.mining.mirror .copy { padding: 72px 40px 72px var(--pad); }
}
@media (max-width: 1023px) {
  .gp { gap: 48px; }
  .gp-top { grid-template-columns: minmax(0, 1fr); }
  .split.mining.mirror .media .veil { background: linear-gradient(180deg, rgba(14,11,10,0) 55%, rgba(14,11,10,1) 100%); }
}
@media (max-width: 767px) {
  .gp .figures .fig-n { font-size: 34px; }
  .gi-pt { padding: 18px 0 20px 0; }
}

/* ---------- the way out ----------
   A page about a Carey business with its own website ends on the door to
   it: a photograph held back behind a veil, the heading, the one button,
   then how to reach the business directly, office by office, and a quiet
   route to Carey Group itself. First Nation Engineering's door is its own
   page-scoped version of the same idea. */
.exit { position: relative; overflow: clip; background: var(--ink-2); min-height: clamp(520px, 64svh, 720px); display: flex; }
.exit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exit-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,11,10,0.97) 0%, rgba(14,11,10,0.88) 50%, rgba(14,11,10,0.4) 100%); }
.exit-inner { position: relative; z-index: 1; align-self: center; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 88px; padding-bottom: 88px; }
.exit-inner h2 { font-size: clamp(30px, 3.6vw, 56px); max-width: 14em; }
/* the way out is the one thing this band is for: Carey Training's own mark
   over the heading, then a larger button lifted off the photograph by a
   plain dark shadow, and the address it opens beside it */
.exit-logo { margin: 0 0 -6px 0; }
.exit-logo img { display: block; width: auto; height: 40px; aspect-ratio: 575 / 114; }
.exit-go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.exit-inner .btn { padding: 24px 40px; min-height: 68px; font-size: clamp(13px, 1vw, 15px); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.85); }
.exit-url { font-family: var(--display); font-weight: 500; font-size: clamp(15px, 1.2vw, 18px); letter-spacing: 0.02em; color: var(--bone); }
.exit-inner .btn svg { transition: transform var(--ui) var(--ease-out); }
.exit-reach { display: flex; flex-direction: column; border-top: 1px solid var(--rule-strong); width: min(100%, 880px); }
.exit-reach p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.45; font-weight: 400; color: var(--stone); }
.exit-k { flex: 0 0 11.5em; font-size: 12px; letter-spacing: 0.01em; text-transform: none; font-weight: 500; color: var(--gold); }
.exit-reach a { color: var(--bone); border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.exit-alt { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--ash); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
@media (hover: hover) and (pointer: fine) {
  .exit-inner .btn:hover svg { transform: translate(2px, -2px); }
  .exit-reach a:hover { color: var(--gold); border-bottom-color: var(--gold); }
}
.exit-inner .btn:focus-visible svg { transform: translate(2px, -2px); }
@media (max-width: 767px) {
  .exit-veil { background: linear-gradient(180deg, rgba(14,11,10,0.9) 0%, rgba(14,11,10,0.96) 100%); }
  .exit-inner { gap: 26px; padding-top: 64px; padding-bottom: 64px; }
  .exit-inner .btn { align-self: stretch; justify-content: center; width: 100%; }
  .exit-go { width: 100%; }
  .exit-logo img { height: 34px; }
  .exit-k { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .exit-inner .btn:hover svg, .exit-inner .btn:focus-visible svg { transform: none; }
}

/* ==================================================================
   The project page (mining): overview, the work, the gallery.
   The story sits beside a photograph of the site; scope and outcomes
   share one band, the outcomes set as a specification sheet; the
   gallery leads with one wide frame and follows with eight.
   ================================================================== */
.co { padding-top: var(--section-sm); padding-bottom: var(--section-sm); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.co-text { display: flex; flex-direction: column; gap: 24px; }
.co-text .lede-main { margin: 0; }
.co-text .body { margin: 0; max-width: 34em; color: var(--stone); }
.co-shot { margin: 0; position: relative; background: var(--ink-2); }
.co-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.co-shot::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--rule); pointer-events: none; }

.cw { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px 96px; align-items: start; }
.cw h2 { font-size: var(--fs-h2-band); margin: 0 0 28px 0; }
.cw-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.cw-list li { position: relative; padding: 18px 0 19px 26px; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.15; text-transform: none; color: var(--bone); }
.cw-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--gold); }
.cw-sub { margin: 44px 0 14px 0; color: var(--gold); }
.cw-miles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.cw-miles li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0 15px 0; border-bottom: 1px solid var(--rule); }
.cw-miles .y { font-family: var(--display); font-weight: 300; font-size: 24px; line-height: 1; color: var(--bone); font-variant-numeric: lining-nums tabular-nums; }
.cw-miles .t { font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--stone); text-wrap: pretty; }

/* a specification sheet: the figure in the display face, its unit in gold,
   what it counts beside it. */
.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.spec li { display: grid; grid-template-columns: minmax(0, 13.5em) minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 0 19px 0; border-bottom: 1px solid var(--rule); }
.spec .v { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 3vw, 44px); line-height: 1; letter-spacing: -0.01em; color: var(--bone); font-variant-numeric: lining-nums tabular-nums; }
.spec .v .u { font-size: 0.42em; font-weight: 500; letter-spacing: 0.02em; color: var(--gold); }
.spec .v .pre { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.01em; text-transform: none; color: var(--ash); }
.spec .l { font-size: 16px; line-height: 1.45; font-weight: 400; color: var(--stone); text-wrap: pretty; }
/* an outcome with no number is a statement, not an empty figure: it takes
   the whole row behind a small gold chevron, so nothing reads as missing */
.spec li.t { grid-template-columns: 9px minmax(0, 1fr); gap: 16px; align-items: center; }
.spec li.t::before { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); }
.spec li.t .l { color: var(--bone); }

.cg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.cg img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink-2); }
.cg img:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

@media (max-width: 1023px) {
  .co { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cw { grid-template-columns: minmax(0, 1fr); }
  .cg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg img:first-child { aspect-ratio: 2 / 1; }
}
@media (max-width: 767px) {
  .spec li { grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 14px; padding: 15px 0; }
  .spec .v { font-size: 28px; }
  .spec .v .pre { display: block; margin-bottom: 4px; }
  .spec .l { font-size: 14px; }
  .spec li.t { grid-template-columns: 9px minmax(0, 1fr); gap: 14px; }
  .cg img:first-child { aspect-ratio: 3 / 2; }
}

/* ==================================================================
   Case study cards (civil construction, marine). Each card is one
   target: the job's photograph, where and for whom, an optional line,
   and the one figure that sums it up. They open the full case study
   or story.
   ================================================================== */
.cc-band .projects-head { margin-bottom: var(--head-gap); }
.cc-band .projects-head h2 { font-size: var(--fs-h2-band); }
.cc-band .projects-head .body { max-width: 34em; }
.cc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cc { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cc-shot { position: relative; overflow: hidden; background: var(--ink); margin-bottom: 8px; }
.cc-shot::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--ui) var(--ease-out); }
.cc-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease-out); }
.cc-meta { margin: 0; color: var(--gold); }
.cc-h { margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.08; color: var(--bone); transition: color var(--press) ease; }
.cc-link { color: inherit; }
.cc-link::after { content: ""; position: absolute; inset: 0; }
.cc-link:focus-visible { outline: none; }
.cc:has(.cc-link:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.cc-fig { margin: auto 0 0 0; padding-top: 14px; border-top: 1px solid var(--rule-strong); display: flex; flex-direction: column; gap: 6px; }
.cc-fig .v { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 2.5vw, 36px); line-height: 1; letter-spacing: -0.01em; color: var(--bone); font-variant-numeric: lining-nums; }
.cc-fig .v .u { font-size: 0.48em; font-weight: 500; letter-spacing: 0.02em; color: var(--gold); }
.cc-fig .l { font-size: 14px; line-height: 1.45; min-height: 2.9em; color: var(--stone); }
@media (hover: hover) and (pointer: fine) {
  .cc:hover .cc-h { color: var(--gold); }
  .cc:hover .cc-shot img { transform: scale(1.04); }
  .cc:hover .cc-shot::after { transform: scaleX(1); }
}
@media (max-width: 1099px) { .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .cc-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.cc-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.cc-d { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--stone); text-wrap: pretty; }
.cc-fig .v.w { font-size: clamp(22px, 2vw, 28px); font-weight: 500; text-transform: none; letter-spacing: 0; }
@media (max-width: 1099px) { .cc-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .cc-grid.three { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
/* the way on, under the cards */
.cc-foot { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); display: flex; justify-content: center; }
@media (max-width: 599px) { .cc-foot { margin-top: 40px; padding-top: 32px; justify-content: flex-start; } }

/* ==================================================================
   Civil project pages (/civil/projects/<slug>/). The case opener and
   overview are shared with the mining cases; below them the key
   figures, then each part of the account under its own heading, then
   the gallery laid in rows of four, three or two.
   ================================================================== */
.pg-civil-project .co { align-items: start; }
.pg-civil-project .co-text .body { max-width: 38em; }
.pg-civil-project .co-text .co-first { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--bone); }
.pg-civil-project .co.solo { grid-template-columns: minmax(0, 1fr); }
.pg-civil-project .co.solo .co-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; row-gap: 18px; align-items: start; }
.pg-civil-project .co.solo .co-text .body { max-width: none; }
.pg-civil-project .co.solo .co-first { grid-column: 1; grid-row: 1 / span 4; }
.pg-civil-project .co.solo .co-first ~ .body { grid-column: 2; }
.pg-civil-project .co.solo .co-first:only-child { grid-column: 1 / -1; max-width: 46em; }
.pg-civil-project .co + .figures { padding-top: 0; }
.pg-civil-project .fig-n { font-size: clamp(34px, 3.2vw, 48px); }
.pg-civil-project .fig-n .pre { font-size: 34%; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--stone); margin-right: 0.3em; }
.pg-civil-project .case-fact dd { text-wrap: balance; }

.pjs { padding-top: 0; padding-bottom: 0; }
.pjs + .cc-band { margin-top: var(--section); }
.pg-civil-project .pjs + .band:not(.alt) { padding-top: var(--section); }
.pjs-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 64px; padding: 44px 0; border-top: 1px solid var(--rule-strong); }
.pjs-row:first-child { border-top: 0; padding-top: 0; }
.pjs-row:last-child { padding-bottom: 0; }
.pjs-row h2 { margin: 0; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.04; }
.pjs-c { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pjs-c p { margin: 0; max-width: 40em; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; font-weight: 400; color: var(--stone); text-wrap: pretty; }
.pjs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pjs-list li { position: relative; padding: 14px 0 14px 25px; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--bone); text-wrap: pretty; }
.pjs-list li::before { content: ""; position: absolute; left: 1px; top: 1.42em; width: 7px; height: 7px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); }

.pgal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.pgal img { display: block; width: 100%; height: auto; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink-2); grid-column: span 3; }
.pgal img.nl { grid-column: 1 / span 3; }
.pgal img.s4 { grid-column: span 4; }
.pgal img.s4.nl { grid-column: 1 / span 4; }
.pgal img.s6 { grid-column: span 6; aspect-ratio: 3 / 2; }
.pgal img.s6.nl { grid-column: 1 / span 6; }
.pgal img.p { aspect-ratio: 3 / 4; }

@media (max-width: 1023px) {
  .pjs-row { grid-template-columns: minmax(0, 1fr); padding: 36px 0; }
  .pg-civil-project .co.solo .co-text { grid-template-columns: minmax(0, 1fr); }
  .pg-civil-project .co.solo .co-first, .pg-civil-project .co.solo .co-first ~ .body { grid-column: 1; grid-row: auto; }
}
@media (max-width: 767px) {
  /* on a phone the heading sits over the photograph: show the photograph
     in a clear strip under the header, then read the words on a deep veil */
  .pg-civil-project .case-head-inner { padding-top: calc(var(--header-h) + 150px); }
  .pg-civil-project .case-head .veil-b { background: linear-gradient(180deg, rgba(14,11,10,0.6) 0, rgba(14,11,10,0.08) 72px, rgba(14,11,10,0.2) calc(var(--header-h) + 70px), rgba(14,11,10,0.88) calc(var(--header-h) + 140px), rgba(14,11,10,0.95) 70%, rgba(14,11,10,1) 100%); }
  .pg-civil-project .fig-n { font-size: 28px; }
  .pjs-list li { font-size: 15px; }
  .pgal img, .pgal img.nl, .pgal img.s4, .pgal img.s4.nl, .pgal img.s6, .pgal img.s6.nl { grid-column: span 6; aspect-ratio: 4 / 3; }
  .pgal img.p { aspect-ratio: 3 / 4; }
  .pgal img.w { grid-column: span 12; aspect-ratio: 3 / 2; }
}

/* ==================================================================
   Self-playing films (first use: the Civic Heart completion clip on the
   GTO page). The clip fills its frame; carey.js adds the pause and play
   button, which sits in the lower right corner like the timeline's.
   ================================================================== */
.auto-film { position: relative; }
.auto-film .film-toggle { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; color: var(--bone); background: rgba(14, 11, 10, 0.46); box-shadow: inset 0 0 0 1.25px rgba(239, 233, 223, 0.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: color 0.2s ease, box-shadow 0.2s ease; }
.auto-film .film-toggle svg { display: block; }
.auto-film .film-toggle .i-play { display: none; }
.auto-film .film-toggle[data-state="paused"] .i-pause { display: none; }
.auto-film .film-toggle[data-state="paused"] .i-play { display: block; }
.auto-film .film-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .auto-film .film-toggle:hover { color: var(--gold); box-shadow: inset 0 0 0 1.25px var(--gold); }
}
