/* ------------------------------------------------------------------
   Carey Group v5: a modern take on the home page. Loaded last, by the
   v5 home page only, over carey.css, nav.css and the page's own styles.
   The structure, the words, the photographs and the motion are v4's.
   What changes is the voice: the brand's own Exo in sentence case for the
   headings and the menu (the Carey brand guidelines name Exo for every
   heading; the client asked for it back on 7 Oct 2026, without the all
   caps), a plain grotesk for reading, larger and steadier reading
   text, soft corners on every frame and control, pill buttons, and the
   figures and services set as tiles. Night ground, bone type, gold and
   maroon are kept.
   ------------------------------------------------------------------ */

:root {
  --display: "Exo", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-h2: clamp(34px, 4.1vw, 60px);
  --fs-h2-band: clamp(30px, 3.5vw, 50px);
  --fs-h3: clamp(20px, 1.6vw, 24px);

  /* corners: small for thumbnails and fields, the standard frame, the large panel */
  --r-s: 10px;
  --r: 18px;
  --r-l: 26px;

  /* the tile: a breath of bone over the ground, and its edge */
  --tile: rgba(239, 233, 223, 0.045);
  --tile-line: rgba(239, 233, 223, 0.1);
}
@media (max-width: 767px) {
  :root { --r: 14px; --r-l: 20px; }
}

/* ---------- browser surfaces ---------- */

::-webkit-scrollbar-thumb { border-radius: 999px; border: 3px solid var(--ink); }
:focus-visible { border-radius: 6px; }

/* ---------- type primitives ---------- */

.display {
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

/* a hyphenated word that must not split across two lines of a heading */
.nb { white-space: nowrap; }

.body {
  font-size: clamp(16px, 1.22vw, 18px);
  line-height: 1.6;
  font-weight: 400;
}
.body.sm { font-size: clamp(15px, 1.08vw, 16px); }
.body.xs { font-size: 14px; }

.caption {
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
}

.btn {
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  padding: 15px 26px;
  gap: 12px;
}

.link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 0;
  padding-bottom: 0;
  gap: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--bone); }
}

.skip { border-radius: 999px; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; }

/* ---------- header ---------- */

/* once the page leaves the top the bar is the ground seen through glass,
   so the footage and photographs pass under it softly */
.site-header::before {
  background: rgba(14, 11, 10, 0.72);
  border-bottom-color: var(--tile-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}
.site-header.dd-open::before,
.site-header.menu-open::before { background: rgba(14, 11, 10, 0.96); }

.brand-line { font-family: var(--display); font-weight: 400; letter-spacing: 0; font-size: 15px; }
.brand-line strong { font-weight: 600; }

.nav-desktop { gap: 30px; }
.nav-desktop a,
.nav-top {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.nav-desktop a.nav-cta { border-radius: 999px; padding: 10px 20px; font-weight: 600; }
.nav-mobile a.nav-cta { border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none; padding: 9px 16px; }

/* the menu panels */
.nav-dd-name { font-weight: 700; letter-spacing: -0.04em; text-transform: none; line-height: 1.02; }
.nav-desktop .nav-dd-list a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  text-transform: none;
}
.nav-dd-media { border-radius: var(--r); }
.sheet-head { font-weight: 700; letter-spacing: -0.04em; text-transform: none; }
.sheet-body a { font-family: var(--display); }

/* ---------- hero ---------- */

.hero-h1 {
  font-size: clamp(41px, 5.67vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.hero-copy { gap: 32px; }
.hero-lead { font-size: clamp(17px, 1.39vw, 20px); line-height: 1.55; font-weight: 400; }
body.pg-home .hero-lead { max-width: 620px; }

.hero-actions { gap: 12px; }
/* the second way on is a quiet outlined pill beside the gold one */
.hero-actions .link {
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.25px rgba(239, 233, 223, 0.38);
  color: var(--bone);
}
@media (hover: hover) and (pointer: fine) {
  .hero-actions .link:hover { color: var(--gold); box-shadow: inset 0 0 0 1.25px var(--gold); }
}

.hero-toggle { border-radius: 999px; }

/* on a phone the headline block keeps v4's height, so it still starts
   below the photograph rather than over it */
@media (max-width: 767px) {
  .hero-h1 { font-size: 36px; line-height: 1.02; }
  .hero-copy { gap: 20px; }
  .hero-lead { font-size: 16px; line-height: 1.5; }
  /* the ground comes up sooner behind the headline, so the gold line reads */
  .veil-b { background: linear-gradient(180deg, rgba(14,11,10,0.7) 0%, rgba(14,11,10,0.18) 11%, rgba(14,11,10,0.6) 27%, rgba(14,11,10,0.93) 42%, rgba(14,11,10,1) 50%, rgba(14,11,10,1) 100%); }
}

/* on the stage the three frames stand as rounded pictures. The middle
   frame is drawn in by scale, so its corner is cut large and arrives
   small; it stays square while it fills the window */
.hero.is-staged .hero-frame-main { overflow: clip; transition: border-radius 700ms var(--ease-out); }
.hero.is-staged .hero-frame-main.is-moving { border-radius: 44px; }
.hero.is-staged .hero-frame-side { border-radius: var(--r); }

.hero-cap a::before { height: 3px; border-radius: 999px; }
.hero-cap-k { font-weight: 700; letter-spacing: -0.03em; text-transform: none; font-size: clamp(20px, 1.7vw, 26px); }
.hero-cap-t { font-size: clamp(14px, 1.05vw, 16px); }

/* ---------- the proof ---------- */

.proof-lead { font-size: clamp(17px, 1.39vw, 20px); font-weight: 400; }
.proof-own { font-weight: 600; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.015em; }
.proof-cred {
  padding: 9px 16px 9px 12px;
  margin-top: 6px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--tile-line);
  background: var(--tile);
  color: var(--bone);
}

/* the four figures stand as tiles rather than ruled cells */
body.pg-home .proof-figs { gap: 12px; border-top: 0; border-bottom: 0; }
.proof-figs .proof-fig,
.proof-figs .proof-fig:first-child,
.proof-figs .proof-fig:last-child {
  padding: 28px 28px 30px 28px;
  border: 1px solid var(--tile-line);
  border-radius: var(--r);
  background: var(--tile);
}
body.pg-home .proof-n { font-size: clamp(40px, 4.3vw, 64px); font-weight: 300; letter-spacing: -0.045em; }
/* two tiles across on a phone: the longest figure needs the room */
@media (max-width: 767px) {
  .proof-figs .proof-fig,
  .proof-figs .proof-fig:first-child,
  .proof-figs .proof-fig:last-child { padding: 22px 18px 24px 18px; }
  body.pg-home .proof-n { font-size: 36px; }
}
.proof-n .u { letter-spacing: -0.01em; margin-left: 0.08em; }
.proof-l { margin-top: 18px; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; }
body.pg-home .proof-more { font-size: 15px; }

.client-statement { font-weight: 400; letter-spacing: -0.015em; }

/* ---------- what we do ---------- */

.what-copy strong { font-weight: 600; }

/* the three services are rounded panels with air between them */
.services {
  margin-left: 0;
  margin-right: 0;
  gap: 20px;
  border-top: 0;
  border-bottom: 0;
}
.services .svc,
.services .svc:first-child,
.services .svc:last-child {
  border: 1px solid var(--tile-line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--tile);
}
.svc-media { aspect-ratio: 16 / 10; }
.svc h3 { left: 26px; right: 26px; bottom: 20px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.svc-copy { padding: 22px 26px 26px 26px; gap: 16px; }
.svc-copy .body { font-size: 16px; line-height: 1.55; }
@supports selector(:has(a)) {
  .svc:has(.link:focus-visible) { outline-offset: 3px; }
}
@media (max-width: 1023px) {
  .services { gap: 16px; }
}

/* ---------- the mine-life journey ---------- */

.jscreen { border-radius: var(--r-l); }
.jrail { gap: 8px; margin-top: 16px; }
.jrail a { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.jrail a::after { height: 3px; border-radius: 999px; }
.jnum { font-weight: 300; letter-spacing: -0.04em; }
.jbody { gap: 16px; }
.jbody h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.06; }
.jbody .body { font-size: clamp(16px, 1.22vw, 18px); }
.jfleet .k { font-size: 13px; letter-spacing: 0; text-transform: none; }
.jfleet .v { font-size: 15px; }
.jnpi { font-size: 14px; }
@media (max-width: 1023px) {
  .jscreen { border-radius: var(--r); }
}

/* ---------- history ---------- */

.hist-count .n { letter-spacing: -0.045em; }
.timeline .yr { font-weight: 400; letter-spacing: -0.04em; }
.timeline .yr.word { font-weight: 700; letter-spacing: -0.03em; }
.timeline .caption { font-size: 12px; }
.timeline .body { font-size: 14px; }

/* the photograph is named in a small frosted tag, top right of the band
   on a wide window and under the photograph on a phone: Lake Carey, where
   the company takes its name */
.hist-place {
  position: absolute;
  z-index: 2;
  top: 100px;
  right: var(--pad);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(239, 233, 223, 0.18);
  background: rgba(14, 11, 10, 0.46);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--bone);
}
.hist-place svg { flex: 0 0 auto; color: var(--gold); }
.hist-head .hist-more { align-self: flex-start; margin-top: 6px; }

/* seventeen horizons. Below 1200px they stay one sideways row of bands, the
   light rising across all seventeen. */
.timeline .item:nth-child(1)  { --band: rgba(14,11,10,0.72); }
.timeline .item:nth-child(2)  { --band: rgba(16,12,11,0.70); }
.timeline .item:nth-child(3)  { --band: rgba(19,14,12,0.68); }
.timeline .item:nth-child(4)  { --band: rgba(23,17,13,0.65); }
.timeline .item:nth-child(5)  { --band: rgba(29,20,14,0.63); }
.timeline .item:nth-child(6)  { --band: rgba(35,23,15,0.61); }
.timeline .item:nth-child(7)  { --band: rgba(42,26,16,0.59); }
.timeline .item:nth-child(8)  { --band: rgba(50,30,17,0.57); }
.timeline .item:nth-child(9)  { --band: rgba(58,34,19,0.54); }
.timeline .item:nth-child(10) { --band: rgba(68,39,20,0.52); }
.timeline .item:nth-child(11) { --band: rgba(78,45,22,0.50); }
.timeline .item:nth-child(12) { --band: rgba(89,51,23,0.48); }
.timeline .item:nth-child(13) { --band: rgba(100,57,25,0.46); }
.timeline .item:nth-child(14) { --band: rgba(111,64,28,0.43); }
.timeline .item:nth-child(15) { --band: rgba(122,72,31,0.41); }
.timeline .item:nth-child(16) { --band: rgba(134,80,34,0.40); }
.timeline .item:nth-child(17) { --band: rgba(146,88,37,0.38); }
/* on the warmest bands the record reads in bone, not stone */
.timeline .item:nth-child(n+12) .body { color: var(--bone); }

/* On a wide window, once the script is running, the sixteen stand side by
   side as tall bands of light and one is open at a time: it plays through
   the years on its own, holds while a pointer or the keyboard is on it, and
   any band opens when it is pointed at or tapped. Without the script the
   sideways row above stays. */
.timeline { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 216px; overflow-x: auto; }
.tl-toggle { display: none; }
@media (min-width: 1200px) {
  .timeline.is-live {
    display: flex;
    height: 236px;
    overflow: hidden;
    contain: layout paint;
  }
  .timeline.is-live .item {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    padding: 20px 14px 22px 16px;
    gap: 6px;
    cursor: pointer;
    transition: flex-grow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .timeline.is-live .item.is-open { flex-grow: 6; cursor: default; }
  .timeline.is-live .item:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
  /* every year is set at the open band's size; a closed band draws it
     smaller by scale (below), so the size can change without the year being
     set again on every frame of the change */
  .timeline.is-live .yr { font-size: 34px; white-space: nowrap; transform-origin: 0 0; transition: scale 0.4s ease, color 0.3s ease; }
  .timeline.is-live .yr.word { font-size: 24px; }
  .timeline.is-live .item:not(.is-open) .yr { color: var(--stone); }
  .timeline.is-live .caption { white-space: nowrap; transition: translate 0.4s ease; }
  .timeline.is-live .item:not(.is-open) .hz { display: none; }
  .timeline.is-live .body,
  .timeline.is-live .item:nth-child(n+9) .body {
    margin-top: auto;
    /* the open band's inner width, worked out so the lines never reflow as it opens */
    width: min(360px, calc(35.3vw - 142px));
    font-size: 16px;
    line-height: 1.45;
    color: var(--bone);
    text-wrap: pretty;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.3s ease;
  }
  .timeline.is-live .item.is-open .body { opacity: 1; transform: none; transition-delay: 0.12s; }
  /* a gold bead marks every closed band, so it reads as something to open */
  .timeline.is-live .item::before {
    content: "";
    position: absolute;
    left: 16px;
    bottom: 22px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--gold);
    opacity: 0.8;
    transition: opacity 0.2s ease;
  }
  .timeline.is-live .item.is-open::before { opacity: 0; }
  /* while it plays, a thin gold line along the foot of the open band counts
     down to the next year */
  .timeline.is-live .item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
  }
  .timeline.is-live.is-running .item.is-open::after { animation: tl-fill var(--dwell, 4s) linear both; }
  /* while the page itself is being scrolled the countdown holds where it is */
  .timeline.is-live.is-running.is-coasting .item.is-open::after { animation-play-state: paused; }
  /* the pause and play control sits on the horizon line, at the right */
  .tl-toggle {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 var(--pad) 16px 0;
    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;
  }
  .tl-toggle[hidden] { display: none; }
  .tl-toggle svg { display: block; }
  .tl-toggle .i-play { display: none; }
  .tl-toggle[data-state="paused"] .i-pause { display: none; }
  .tl-toggle[data-state="paused"] .i-play { display: block; }
}
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .tl-toggle:hover { color: var(--gold); box-shadow: inset 0 0 0 1.25px var(--gold); }
}
/* sixteen bands on a wide window: the open band takes a set width and the
   fifteen closed ones share the rest, each carrying its year on its side
   like a book's spine, so no year is cut off however narrow the band */
@media (min-width: 1200px) {
  .timeline.is-live { height: 300px; }
  .timeline.is-live .item { transition: flex 0.45s cubic-bezier(0.22, 1, 0.36, 1); padding: 20px 10px 22px 12px; }
  .timeline.is-live .item.is-open { flex: 0 0 min(440px, 33vw); padding: 20px 16px 22px 18px; }
  /* A closed band's year reads at 19px, a word at 15px: drawn by scale from
     the open size, from the year's top left corner, so it grows and shrinks
     exactly as a changing font size did, without the frame by frame layout.
     The half turn that stands it on its spine is the same half turn about its
     centre as before, written from that corner. */
  .timeline.is-live .item:not(.is-open) .yr,
  .timeline.is-live .item:not(.is-open) .yr.word {
    writing-mode: vertical-rl;
    transform: rotate(180deg) translate(-100%, -100%);
    scale: calc(19 / 34);
    white-space: nowrap;
    align-self: flex-start;
  }
  .timeline.is-live .item:not(.is-open) .yr.word { scale: calc(15 / 24); }
  /* The horizon number under the year is out of a closed band, and held up
     by the height the smaller year gives back (its line is one font size
     tall, a word's 1.2), so as a band opens it slides down with the growing
     year, as it did when the year's own size pushed it. */
  .timeline.is-live .item:not(.is-open) .caption { position: absolute; visibility: hidden; translate: 0 calc(19px - 34px); }
  .timeline.is-live .item:not(.is-open) .yr.word + .caption { translate: 0 calc((15px - 24px) * 1.2); }
  .timeline.is-live .body,
  .timeline.is-live .item:nth-child(n+12) .body { width: min(400px, calc(33vw - 34px)); font-size: 15px; line-height: 1.5; }
}
/* a browser without the scale property changes the year's size itself, as before */
@supports not (scale: 1) {
  @media (min-width: 1200px) {
    .timeline.is-live .yr { transition: font-size 0.4s ease, color 0.3s ease; }
    .timeline.is-live .item:not(.is-open) .yr { font-size: 19px; }
    .timeline.is-live .item:not(.is-open) .yr.word { font-size: 15px; }
    .timeline.is-live .item:not(.is-open) .caption { display: none; }
  }
}
@keyframes tl-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline.is-live .item, .timeline.is-live .yr, .timeline.is-live .caption, .timeline.is-live .body { transition: none; }
}
/* the sideways row gives each record room for its longest line */
@media (max-width: 1199px) {
  .timeline { grid-auto-columns: 216px; }
}
@media (max-width: 767px) {
  .timeline { grid-auto-columns: 204px; }
  .hist-place { position: static; order: 2; align-self: flex-start; margin: 14px var(--pad) 18px var(--pad); }
}

/* ---------- projects and news cards ---------- */

.project {
  border: 1px solid var(--tile-line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: #17120F;
}
.project .shot { background: var(--ink-2); }
.project h3 { font-weight: 700; line-height: 1.1; }
@media (min-width: 1024px) {
  body.pg-home .project-grid-3 .project h3 { font-size: clamp(20px, 1.7vw, 25px); }
}
.project .caption { margin-top: -2px; }
.project:has(.project-link:focus-visible) { outline-offset: 3px; }

body.pg-home .news { border-top: 0; }
body.pg-home .news-lead { background: #17120F; }
body.pg-home .news-list { border-top-color: var(--tile-line); }
body.pg-home .news-row { border-bottom-color: var(--tile-line); }
body.pg-home .news-row img { border-radius: var(--r-s); }
body.pg-home .news-row h3 { font-weight: 700; font-size: clamp(17px, 1.39vw, 20px); line-height: 1.18; letter-spacing: -0.03em; }

/* ---------- the difference on site ---------- */

.diff-years { letter-spacing: -0.045em; }
.diff-proof .n { font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; }
.diff-proof .l { font-size: 16px; font-weight: 400; }
.points h3 { font-weight: 700; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.1; }
.points p { font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--stone); }
.points .pt::before { height: 3px; }
.diff-foot p { font-size: 16px; font-weight: 400; }
body.pg-home .diff-foot p.diff-line { font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; }

/* ---------- straight answers ---------- */

.faq { background: var(--ink); }
.faq-list { border-top-color: var(--tile-line); }
.faq-list details { border-bottom-color: var(--tile-line); }
.faq-list summary {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-size: clamp(17px, 1.39vw, 20px);
  padding: 22px 0;
}
/* the plus sits in a ring, a control the size of a fingertip */
.faq-plus { width: 36px; height: 36px; border-radius: 999px; box-shadow: inset 0 0 0 1.25px var(--tile-line); transition: background-color var(--ui) ease; }
.faq-plus::before { left: 11px; top: 17.5px; width: 14px; }
.faq-plus::after { left: 17.5px; top: 11px; height: 14px; }
.faq-list details[open] .faq-plus { background: var(--tile); }
.faq-a { font-size: 16px; line-height: 1.6; font-weight: 400; padding-bottom: 26px; }
@media (max-width: 767px) {
  .faq-list summary { padding: 18px 0; }
  .faq-a { font-size: 15px; }
}

/* ---------- contact ---------- */

/* the closing band is a rounded panel set into the page */
.cta-band {
  margin: 0 var(--pad) var(--section-sm) var(--pad);
  padding: 64px;
  border-radius: var(--r-l);
}
@media (max-width: 767px) {
  .cta-band { padding: 40px 24px; }
}

/* ---------- footer ---------- */

.foot-desc { font-size: 16px; font-weight: 400; }
.foot-contact span, .foot-contact a { font-size: 15px; }
.badge { border-radius: 999px; padding: 9px 16px 9px 12px; }
.badge .caption { letter-spacing: 0; }
.foot-links { border-radius: var(--r-l) 0 0 0; }
.foot-col .caption { font-size: 13px; letter-spacing: 0; margin-bottom: 12px; }
.foot-col a { font-size: 16px; line-height: 2.05; }
@media (max-width: 767px) {
  .foot-links { border-radius: var(--r-l) var(--r-l) 0 0; }
}

/* ==================================================================
   The inner pages. The same voice carried through the shared inner
   components: rounded frames, tiles for figures and marks, soft fields.
   Full-bleed bands (page heroes, split halves, feature films) stay
   square, because they run to the window's edge.
   ================================================================== */

:root { --track-label: 0.01em; }

/* ---------- openers ---------- */

.page-h1, .record-h1 { font-size: clamp(38px, 5.2vw, 78px); line-height: 1.0; }
.case-h1 { font-size: clamp(34px, 4.6vw, 66px); line-height: 1.02; }
.page-lead, .case-lead, .record-lead { font-size: clamp(17px, 1.39vw, 20px); line-height: 1.55; font-weight: 400; }
.page-actions { gap: 12px; }
.page-actions .link {
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.25px rgba(239, 233, 223, 0.38);
  color: var(--bone);
}
@media (hover: hover) and (pointer: fine) {
  .page-actions .link:hover { color: var(--gold); box-shadow: inset 0 0 0 1.25px var(--gold); }
}
.page-hero-foot .hero-toggle { border-radius: 999px; }
.page-actions .hero-toggle { border-bottom: 0; padding: 0; min-height: 52px; }
.crumbs a { text-underline-offset: 3px; }
.head-facts dt, .case-fact dt { font-size: 14px; }
.head-facts dd, .case-fact dd, .case-fact .v { font-family: var(--sans); font-weight: 500; font-size: 17px; }
.subnav a { font-size: 15px; min-height: 58px; }
.subnav ul { gap: 0 32px; }
@media (max-width: 767px) {
  .page-h1, .record-h1 { font-size: clamp(32px, 9vw, 40px); }
}

/* ---------- reading ---------- */

.lede-main { letter-spacing: -0.015em; line-height: 1.28; }
.gp-lead { letter-spacing: -0.012em; }
.statement p { letter-spacing: -0.02em; }
.quote p { letter-spacing: -0.015em; }
.band-foot p { font-size: 16px; }
.prose p, .prose li { font-size: clamp(16px, 1.22vw, 18px); line-height: 1.65; }
.prose h2 { letter-spacing: -0.035em; line-height: 1.1; }
.prose h3 { letter-spacing: -0.03em; font-size: 20px; }
.prose strong { font-weight: 600; }

/* ---------- figures: tiles, as on the home page ---------- */

.fig-row { gap: 12px; border-top: 0; border-bottom: 0; }
.fig-row .fig,
.fig-row .fig:first-child,
.fig-row .fig:last-child {
  padding: 26px 26px 28px 26px;
  border: 1px solid var(--tile-line);
  border-radius: var(--r);
  background: var(--tile);
}
.fig-n { letter-spacing: -0.045em; }
.fig-n .u { letter-spacing: -0.01em; margin-left: 0.08em; }
.fig-l { margin-top: 18px; font-size: 15px; }
.fig-q { font-size: 14px; }
@media (max-width: 767px) {
  .fig-row .fig,
  .fig-row .fig:first-child,
  .fig-row .fig:last-child { padding: 20px 18px 22px 18px; }
}

/* ---------- lists and registers ---------- */

.board-item .board-t { font-family: var(--sans); font-weight: 600; font-size: 16px; }
.board-item p { font-size: 15px; }
.record-k, .record-k.label { font-size: 14px; }
.record-body h2, .record-body h3 { line-height: 1.1; }
.record-body .body { font-size: 16px; line-height: 1.55; }
.facts dd { font-size: 16px; }
.cs-list li::before { font-family: var(--sans); font-size: 14px; }
.cw-list li { font-weight: 600; letter-spacing: -0.02em; }
.job-t { font-weight: 600; }
.exit-k { font-size: 14px; }
.exit-url { font-family: var(--sans); letter-spacing: 0; }
.exit-inner .btn { font-size: 16px; padding: 20px 34px; min-height: 64px; }
.spec .v .pre { font-size: 13px; }
.cc-fig .v.w { font-weight: 600; letter-spacing: -0.02em; }
.ct-h { font-weight: 400; letter-spacing: -0.015em; }

/* ---------- frames: every set-in picture is rounded ---------- */

.step-media,
.record-media,
.person-shot,
.cc-shot,
.card-media,
.mframe,
.co-shot { border-radius: var(--r); }
.co-shot { overflow: hidden; }
.co-shot::after, .mframe::after { border-radius: inherit; border-color: var(--tile-line); }
.person-tile { border: 1px solid var(--tile-line); border-radius: var(--r); background: var(--tile); }

/* cards: the picture is the frame, the words sit under it with no rule */
.card { border-bottom: 0; background: transparent; }
.band.alt .card { background: transparent; }
.card-body { padding: 22px 0 26px 0; }
.card-body h2, .card-body h3 { line-height: 1.1; }
.card-body .body { font-size: 16px; }
.card::before { display: none; }

/* mosaics open up into rounded frames with air between them */
.gallery, .cg, .pgal { gap: 12px; }
.gallery img, .cg img, .pgal img { border-radius: var(--r); }
@media (hover: hover) and (pointer: fine) {
  .gallery img { clip-path: none; }
  .gallery img:hover { clip-path: none; transform: none; }
}
@media (max-width: 767px) {
  .gallery, .cg, .pgal { gap: 8px; }
}

/* the two doors stand as rounded panels set into the page */
.doors { gap: 20px; background: none; padding-left: var(--pad); padding-right: var(--pad); }
.doors .door { border: 1px solid var(--tile-line); border-radius: var(--r-l); overflow: hidden; background: var(--tile); }
.door h2, .door h3 { line-height: 1.05; }
.door-copy .body { font-size: 16px; }
@media (max-width: 1023px) {
  .doors { gap: 16px; }
}

/* certification marks: tiles in place of the ruled plate */
.ct-plate { gap: 12px; background: none; border: 0; }
.ct-cell { border: 1px solid var(--tile-line); border-radius: var(--r); background: var(--tile); }
.ct-n { font-family: var(--sans); font-weight: 600; font-size: 15px; }

/* ---------- forms ---------- */

.field input,
.field select,
.field textarea {
  border-radius: 12px;
  border-color: rgba(239, 233, 223, 0.22);
  background-color: var(--tile);
  font-size: 16px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.field label.caption, .field .caption { font-size: 14px; color: var(--stone); }
.note { border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.strip-ring-in { font-family: var(--sans); }

/* ---------- page-scoped frames, carried into the same language ---------- */

/* set-in pictures the pages draw for themselves */
.pc-shot, .fx-shot, .rig-frame, .reach-shot, .lr-frame, .lb-frame { border-radius: var(--r); overflow: hidden; }
.cx-media, .nl-media, .na-photo { border-radius: var(--r-l); overflow: hidden; }
.nx-thumb { border-radius: var(--r-s); overflow: hidden; }
.pc-shot img, .fx-shot img, .rig-frame img, .reach-shot img, .lr-frame img, .lb-frame img,
.cx-media img, .nl-media img, .na-photo img, .nx-thumb img { border-radius: inherit; }
body.pg-wa-child-safety-services .partner-plate { border-radius: var(--r); }
body.pg-civil-fne .spine-logo { border-radius: var(--r-s); }
body.pg-training-projects .tp-plate { border-radius: var(--r); border-color: var(--tile-line); background: var(--tile); }

/* careers: the doors stand apart, the pathways are tiles */
body.pg-careers .doors { gap: 20px; }
body.pg-careers .door + .door { border: 1px solid var(--tile-line); }
body.pg-careers .path { border: 1px solid var(--tile-line); border-radius: var(--r); background: var(--tile); }
@media (hover: hover) and (pointer: fine) {
  body.pg-careers .path:hover { border-color: rgba(201, 162, 74, 0.6); }
}
@media (max-width: 1023px) {
  body.pg-careers .doors { gap: 16px; }
}

/* training projects: the Gabon panel is a rounded panel */
body.pg-training-projects .gb { border: 1px solid var(--tile-line); border-radius: var(--r-l); overflow: hidden; background: var(--tile); }

/* The Group: the ledger of figures is one rounded panel, its five rows
   ruled inside it, so each number has the panel's margin to its left */
body.pg-the-group .gp .fig-row {
  border: 1px solid var(--tile-line);
  border-radius: var(--r-l);
  background: var(--tile);
  padding: 8px 30px;
}
body.pg-the-group .gp .fig-row .fig,
body.pg-the-group .gp .fig-row .fig:first-child,
body.pg-the-group .gp .fig-row .fig:last-child {
  padding: 20px 0 22px 0;
  border: 0;
  border-bottom: 1px solid var(--tile-line);
  border-radius: 0;
  background: none;
}
body.pg-the-group .gp .fig-row .fig:last-child { border-bottom: 0; }
@media (max-width: 767px) {
  body.pg-the-group .gp .fig-row { padding: 4px 20px; }
  body.pg-the-group .gp .fig-row .fig,
  body.pg-the-group .gp .fig-row .fig:first-child,
  body.pg-the-group .gp .fig-row .fig:last-child { padding: 16px 0 18px 0; }
}

/* Hydro Utilities: its three figure tiles keep the tile's margin at every width */
body.pg-mining-hydro-utilities .fig-row .fig,
body.pg-mining-hydro-utilities .fig-row .fig:first-child,
body.pg-mining-hydro-utilities .fig-row .fig:last-child { padding: 26px 26px 28px 26px; border: 1px solid var(--tile-line); }
@media (max-width: 767px) {
  body.pg-mining-hydro-utilities .fig-row .fig,
  body.pg-mining-hydro-utilities .fig-row .fig:first-child,
  body.pg-mining-hydro-utilities .fig-row .fig:last-child { padding: 20px 18px 22px 18px; }
  /* two tiles across on a phone: the figure steps down so a long one clears the edge */
  .fig-row .fig-n { font-size: 34px; }
}

/* figures in two tiles across on a phone: a long figure may take a second
   line, and the longest ones step down, so nothing reaches the tile's edge */
@media (max-width: 767px) {
  .fig-row .fig-n { white-space: normal; line-height: 1.02; }
  .pg-civil-project .fig-row .fig-n,
  body.pg-civil-projects .cx .fig-row .fig-n { font-size: 26px; }
  body.pg-training-capability .fig-row .fig-n { font-size: 30px; }
}
@media (max-width: 400px) {
  .fig-row .fig-n { font-size: 30px; }
  .pg-civil-project .fig-row .fig-n,
  body.pg-civil-projects .cx .fig-row .fig-n { font-size: 24px; }
  body.pg-training-capability .fig-row .fig-n { font-size: 28px; }
}

/* mining projects: on a tablet the cards are narrow, so the figure column
   gives the words beside it more room */
@media (max-width: 1023px) {
  body.pg-mining-projects .pj-figs li { grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 14px; }
  body.pg-mining-projects .pj-figs .l { overflow-wrap: anywhere; }
}
