/* ------------------------------------------------------------------
   Carey Group v6: the finishing layer over v5. Loaded last on every page
   (first on the home page alone; rolled out site-wide on Vish's approval,
   6 Oct 2026). Nothing moves and no word changes. What v6 adds is light
   and depth: the flat night sections carry a low warm glow, as if the
   sun were just under the horizon; cards and tiles are lit from above
   and lift when pointed at; sections meet on a fading horizon line
   instead of a hard rule; every onward link ends in a round arrow; and
   a thin gold line under the header follows the page down.
   ------------------------------------------------------------------ */

:root {
  /* the lit surface: a breath of bone at the top, falling away */
  --lit: linear-gradient(180deg, rgba(239, 233, 223, 0.075) 0%, rgba(239, 233, 223, 0.03) 42%, rgba(239, 233, 223, 0.018) 100%);
  --lit-edge: rgba(239, 233, 223, 0.11);
  --lit-top: inset 0 1px 0 rgba(239, 233, 223, 0.12);
  --lift: 0 28px 56px -36px rgba(0, 0, 0, 0.95);
  --lift-high: 0 40px 72px -36px rgba(0, 0, 0, 1);
  /* the horizon line that fades out at both ends */
  --horizon-line: linear-gradient(90deg, rgba(201, 162, 74, 0) 0%, rgba(201, 162, 74, 0.5) 28%, rgba(239, 233, 223, 0.42) 50%, rgba(201, 162, 74, 0.5) 72%, rgba(201, 162, 74, 0) 100%);
  --grain: url("/assets/grain.png");
}

/* ---------- the page's progress, drawn under the header ---------- */

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body::before {
      content: "";
      position: fixed;
      z-index: 60;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      pointer-events: none;
      background: linear-gradient(90deg, rgba(201, 162, 74, 0.55), var(--gold));
      transform-origin: 0 50%;
      transform: scaleX(0);
      animation: v6-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes v6-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- buttons and onward links ---------- */

/* the main button is a pill of dark glass with a gold round arrow at its
   end (Vish's pick from four, 6 Oct 2026). Pointed at, or reached by the
   keyboard, the gold floods out from the arrow and fills the pill, and the
   words turn from bone to ink. The gold of the round arrow is drawn on the
   arrow itself, so it sits right wherever a page puts the arrow; the flood
   is a second layer that opens from the same end. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 54px;
  padding: 7px 7px 7px 26px;
  gap: 16px;
  justify-content: space-between;
  color: var(--bone);
  background: rgba(14, 11, 10, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1.25px rgba(239, 233, 223, 0.3), inset 0 1px 0 rgba(239, 233, 223, 0.2), 0 14px 26px -16px rgba(0, 0, 0, 0.75);
  transition: color 0.3s ease, transform var(--press) var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, #D6B463 0%, #C29A40 100%);
  clip-path: circle(0 at calc(100% - 27px) 50%);
  transition: clip-path 0.5s var(--ease-out);
}
.btn svg {
  box-sizing: content-box;
  padding: 14px 11px;
  border-radius: 999px;
  background-color: #CCA851;
  color: var(--ink);
  transition: transform 0.35s var(--ease-out), background-color 0.2s ease 0.1s;
}
/* A round corner on an arrow's own box also rounds the window the arrow is
   drawn through, and that was shaving the tip off the diagonal arrow (its
   point sits in the corner of the box) and the ends off the straight one.
   Every arrow in a round button or ring is drawn past that window. */
.btn svg,
.link svg { overflow: visible; }

/* the smaller square arrow on buttons that leave the site */
.btn svg[width="13"] { padding: 13.5px; }
/* a button with no arrow is the plain glass pill; its flood opens from the right edge */
.btn:not(:has(svg)) { padding: 15px 26px; justify-content: center; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: rgba(14, 11, 10, 0.42); color: var(--ink); }
  .btn:hover::before { clip-path: circle(150% at calc(100% - 27px) 50%); }
  .btn:hover svg { transform: translateX(2px); background-color: rgba(204, 168, 81, 0); }
}
.btn:focus-visible { color: var(--ink); }
.btn:focus-visible::before { clip-path: circle(150% at calc(100% - 27px) 50%); }
.btn:focus-visible svg { transform: translateX(2px); background-color: rgba(204, 168, 81, 0); }

/* the larger closing buttons keep the same build at their own size */
.exit-inner .btn,
body.pg-civil-fne .door-inner .btn { padding: 9px 9px 9px 32px; min-height: 60px; gap: 20px; }
.exit-inner .btn { box-shadow: inset 0 0 0 1.25px rgba(239, 233, 223, 0.3), inset 0 1px 0 rgba(239, 233, 223, 0.2), 0 18px 34px -18px rgba(0, 0, 0, 0.8); }
/* where a page stretches its button full width, the arrow still keeps the right end */
.exit-inner .btn,
body.pg-training-capability .gp-out .btn,
body.pg-training-projects .tp-out .btn { justify-content: space-between; }

/* the quiet outlined button (Careers) stays as it was: no glass, no flood */
.btn.btn-quiet { -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.btn-quiet::before { display: none; }
.btn.btn-quiet:focus-visible { color: var(--bone); }

/* a button that cannot be used yet neither floods nor changes */
.btn[disabled]::before { display: none; }
.form .btn[disabled]:hover,
.btn[disabled]:hover,
.btn[disabled]:focus-visible { background: rgba(14, 11, 10, 0.42); color: var(--bone); }
.btn[disabled] svg { transform: none; background-color: #CCA851; }

@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn svg { transition: none; }
}

/* a section's way on (All projects, All news, Why Carey, Awards) ends in a
   round arrow that fills when the link is pointed at */
.projects-head .link svg,
.diff-foot .link svg,
.hist-head .hist-more svg,
.jbody .link svg {
  box-sizing: content-box;
  padding: 11px 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.25px var(--lit-edge);
  transition: transform var(--ui) var(--ease-out), background-color var(--ui) ease, color var(--ui) ease, box-shadow var(--ui) ease;
}
.projects-head .link,
.diff-foot .link,
.hist-head .hist-more,
.jbody .link { gap: 12px; }
@media (hover: hover) and (pointer: fine) {
  .projects-head .link:hover svg,
  .diff-foot .link:hover svg,
  .hist-head .hist-more:hover svg,
  .jbody .link:hover svg {
    background: var(--gold);
    color: var(--ink);
    box-shadow: inset 0 0 0 1.25px var(--gold);
    transform: translateX(3px);
  }
}

/* ---------- the night sections: low warm light and a fading horizon ---------- */

/* each flat section is lit from one side by a low glow, turn about, and
   opens on a horizon line that fades at both ends; the grain keeps the
   glow from banding */
.what,
.journey,
.projects,
.news,
.faq {
  position: relative;
  border-top: 0;
}
.what {
  background:
    var(--horizon-line) 50% 0 / min(1280px, 86%) 1px no-repeat,
    var(--grain),
    radial-gradient(52% 50% at 94% 44%, rgba(168, 78, 36, 0.09) 0%, rgba(168, 78, 36, 0) 70%),
    var(--ink);
}
.journey {
  background:
    var(--horizon-line) 50% 0 / min(1280px, 86%) 1px no-repeat,
    var(--grain),
    radial-gradient(46% 42% at 4% 50%, rgba(201, 162, 74, 0.045) 0%, rgba(201, 162, 74, 0) 70%),
    var(--ink);
}
.projects {
  background:
    var(--grain),
    radial-gradient(52% 48% at 96% 40%, rgba(168, 78, 36, 0.09) 0%, rgba(168, 78, 36, 0) 70%),
    radial-gradient(40% 34% at 2% 68%, rgba(201, 162, 74, 0.03) 0%, rgba(201, 162, 74, 0) 70%),
    var(--ink-2);
}
body.pg-home .news {
  background:
    var(--horizon-line) 50% 0 / min(1280px, 86%) 1px no-repeat,
    var(--grain),
    radial-gradient(48% 44% at 2% 46%, rgba(168, 78, 36, 0.08) 0%, rgba(168, 78, 36, 0) 70%),
    var(--ink);
}
.faq {
  background:
    var(--horizon-line) 50% 0 / min(1280px, 86%) 1px no-repeat,
    var(--grain),
    radial-gradient(48% 44% at 98% 52%, rgba(201, 162, 74, 0.04) 0%, rgba(201, 162, 74, 0) 70%),
    var(--ink);
}

/* the hero's own horizon glows a little, as light does just before sunrise */
.hero-foot .horizon { position: relative; }
.hero-foot .horizon::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 90px;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgba(201, 162, 74, 0.2) 0%, rgba(201, 162, 74, 0) 100%);
}

/* ---------- surfaces lit from above ---------- */

/* the four figures */
.proof-figs .proof-fig,
.proof-figs .proof-fig:first-child,
.proof-figs .proof-fig:last-child {
  background: var(--lit);
  border-color: var(--lit-edge);
  box-shadow: var(--lit-top), var(--lift);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.proof-cred { box-shadow: inset 0 0 0 1px var(--lit-edge), var(--lit-top); }

/* the three services */
.services .svc,
.services .svc:first-child,
.services .svc:last-child {
  background: var(--lit), #120E0C;
  border-color: var(--lit-edge);
  box-shadow: var(--lit-top), var(--lift);
  transition: transform 0.45s var(--ease-out), border-color var(--ui) ease, box-shadow 0.45s var(--ease-out);
}
/* the card's way on is a foot row: the word on the left, a round arrow on
   the right, under a hairline */
.svc .link {
  align-self: stretch;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--lit-edge);
  color: var(--bone);
}
.svc-copy { gap: 18px; }
.svc .link svg,
.project .project-more svg {
  box-sizing: content-box;
  padding: 12px 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.25px var(--lit-edge);
  transition: transform var(--ui) var(--ease-out), background-color var(--ui) ease, color var(--ui) ease, box-shadow var(--ui) ease;
}

/* each service photograph, and each door photograph on Careers, fades out
   over its last few rows, into the dark of its own frame. The photograph moves on its own layer when the card is
   pointed at or pressed, and without this a bright sliver of it could show
   under the shade at the foot of the frame. */
.svc-media,
.door-media { background: #120E0C; }
.svc-media img,
.door-media img {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 89%, rgba(0, 0, 0, 0) 96.5%);
  mask-image: linear-gradient(180deg, #000 0%, #000 89%, rgba(0, 0, 0, 0) 96.5%);
}

/* the fine strip along the foot of each Careers door photograph: when the
   card is pointed at, three small lights in the logo's own colours (bone,
   gold, maroon, the three chevrons) run along it from left to right, each
   with a short tail, then come round again. The home page's service cards
   do not carry them (Carey, 28 Oct). */
.door-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-96px);
  background:
    linear-gradient(90deg, rgba(239, 233, 223, 0) 0%, rgba(239, 233, 223, 0.95) 100%) 0 0 / 26px 100% no-repeat,
    linear-gradient(90deg, rgba(214, 180, 99, 0) 0%, #D6B463 100%) 34px 0 / 26px 100% no-repeat,
    linear-gradient(90deg, rgba(194, 69, 47, 0) 0%, #C2452F 100%) 68px 0 / 26px 100% no-repeat;
  filter: drop-shadow(0 -1px 3px rgba(214, 180, 99, 0.45));
  transition: opacity 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .door:hover .door-media::after {
    opacity: 1;
    animation: v6-lights 2.6s cubic-bezier(0.45, 0, 0.3, 1) infinite;
  }
}
@supports selector(:has(a)) {
  .door:has(.link:focus-visible) .door-media::after {
    opacity: 1;
    animation: v6-lights 2.6s cubic-bezier(0.45, 0, 0.3, 1) infinite;
  }
}
@keyframes v6-lights {
  0%   { transform: translateX(-96px); }
  82%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* project and news cards */
.project,
body.pg-home .news-lead {
  background: var(--lit), #15100E;
  border-color: var(--lit-edge);
  box-shadow: var(--lit-top), var(--lift);
  transition: transform 0.45s var(--ease-out), border-color var(--ui) ease, box-shadow 0.45s var(--ease-out);
}
.project::before { display: none; }
.project .project-more {
  align-self: stretch;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--lit-edge);
  color: var(--bone);
}
.project .txt { flex: 1 1 auto; }
/* Mining Projects: each card's list of figures already ends on a rule, so
   the way on does not draw a second one, and the round arrow stands clear
   of the rule above it */
body.pg-mining-projects .project .project-more { border-top: 0; padding-top: 16px; }

@media (hover: hover) and (pointer: fine) {
  .services .svc:hover,
  .project:hover,
  body.pg-home .news-lead:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 74, 0.42);
    box-shadow: var(--lit-top), var(--lift-high);
  }
  .svc:hover .link svg,
  .project:hover .project-more svg {
    background: var(--gold);
    color: var(--ink);
    box-shadow: inset 0 0 0 1.25px var(--gold);
    transform: translateX(3px);
  }
  .svc:hover .link,
  .project:hover .project-more { color: var(--gold); }
}
/* a press still answers on a phone, and wins over the hover lift */
.services .svc:active,
.project:active,
body.pg-home .news-lead:active { transform: scale(0.985); }

/* the journey's screen sits in a fine ring with depth behind it */
.jscreen { box-shadow: 0 0 0 1px var(--lit-edge), var(--lift); }

/* the smaller news rows: each thumbnail sits in a fine ring */
body.pg-home .news-row img { box-shadow: 0 0 0 1px var(--lit-edge); }

/* questions: the round plus fills as its row is pointed at or opened */
.faq-plus { transition: background-color var(--ui) ease, box-shadow var(--ui) ease; }
.faq-plus::before, .faq-plus::after { transition: background-color var(--ui) ease, transform var(--ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .faq-list summary:hover .faq-plus { background: var(--gold); box-shadow: inset 0 0 0 1.25px var(--gold); }
  .faq-list summary:hover .faq-plus::before,
  .faq-list summary:hover .faq-plus::after { background: var(--ink); }
}
.faq-list details[open] .faq-plus { background: var(--gold); box-shadow: inset 0 0 0 1.25px var(--gold); }
.faq-list details[open] .faq-plus::before,
.faq-list details[open] .faq-plus::after { background: var(--ink); }

/* ---------- the closing band ---------- */

/* the maroon panel is lit from the right, where the button sits, and
   sits just off the page */
.cta-band {
  background:
    var(--grain),
    radial-gradient(70% 150% at 100% 50%, #A2322C 0%, rgba(162, 50, 44, 0) 62%),
    linear-gradient(120deg, #6A1E21 0%, var(--maroon) 55%, #86282A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 200, 0.16), inset 0 0 0 1px rgba(255, 220, 200, 0.05), 0 44px 80px -48px rgba(0, 0, 0, 0.95);
}
/* on the maroon the glass is a shade darker, so the button holds its edge */
.cta-band .btn { background: rgba(14, 11, 10, 0.5); }
@media (hover: hover) and (pointer: fine) {
  .cta-band .btn:hover { background: rgba(14, 11, 10, 0.5); }
}

/* ---------- the same finish on the inner pages ---------- */

/* figure tiles, certification marks, people tiles, doors and pathway
   tiles are lit from above, as the home page's four figures are */
.fig-row .fig,
.fig-row .fig:first-child,
.fig-row .fig:last-child,
.ct-cell,
.person-tile,
.doors .door,
body.pg-careers .path,
body.pg-training-projects .tp-plate,
body.pg-training-projects .gb,
body.pg-the-group .gp .fig-row {
  background: var(--lit);
  border-color: var(--lit-edge);
  box-shadow: var(--lit-top);
}
/* The Group's ledger is one panel: its rows stay plain inside it */
body.pg-the-group .gp .fig-row .fig { box-shadow: none; }

/* the tiles that are a way on lift under the pointer */
.doors .door,
body.pg-careers .path { transition: transform 0.45s var(--ease-out), border-color var(--ui) ease, box-shadow 0.45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .doors .door:hover,
  body.pg-careers .path:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 74, 0.42);
    box-shadow: var(--lit-top), var(--lift-high);
  }
}

/* the darker bands carry the same low light as the home page's sections */
.band.alt {
  background:
    var(--grain),
    radial-gradient(48% 46% at 96% 44%, rgba(168, 78, 36, 0.08) 0%, rgba(168, 78, 36, 0) 70%),
    var(--ink-2);
}

/* every card's and every section's way on ends in the round arrow */
.card .link svg,
.door .link svg,
.path .link svg,
.record-body .link svg,
.cc-more svg,
.cx-more svg,
.fx-more svg,
.pc-more svg,
.nl .link svg,
.ct-head .link svg,
.band-foot .link svg,
.lede-side .link svg,
.trust-more svg {
  box-sizing: content-box;
  padding: 10px 7px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.25px var(--lit-edge);
  transition: transform var(--ui) var(--ease-out), background-color var(--ui) ease, color var(--ui) ease, box-shadow var(--ui) ease;
}
.card .link svg[width="13"], .door .link svg[width="13"], .path .link svg[width="13"], .record-body .link svg[width="13"],
.cc-more svg[width="13"], .cx-more svg[width="13"], .fx-more svg[width="13"], .pc-more svg[width="13"],
.ct-head .link svg[width="13"], .band-foot .link svg[width="13"], .lede-side .link svg[width="13"], .trust-more svg[width="13"] { padding: 9.5px; }
.card .link, .door .link, .path .link, .record-body .link, .cc-more, .cx-more, .fx-more, .pc-more, .nl .link,
.ct-head .link, .band-foot .link, .lede-side .link, .trust-more { gap: 12px; }
/* A card's "View project" line is a picture of the way on, not a link of its
   own: the card's link covers the whole card. On hover its round arrow slides
   over (a transform), and a transformed element is drawn above the card's
   link, so a click on the arrow went nowhere. Clicks now pass through the
   line to the card's link (Vish, 18 Nov). */
span.pc-more, span.cc-more, span.fx-more, span.project-more { pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .card .link:hover svg, .card:hover .link svg,
  .door .link:hover svg, .door:hover .link svg,
  .path .link:hover svg, .path:hover .link svg,
  .record-body .link:hover svg,
  .cc:hover .cc-more svg, .cx:hover .cx-more svg, .fx:hover .fx-more svg, .pc:hover .pc-more svg,
  .nl:hover .link svg,
  .ct-head .link:hover svg, .band-foot .link:hover svg, .lede-side .link:hover svg, .trust-more:hover svg {
    background: var(--gold);
    color: var(--ink);
    box-shadow: inset 0 0 0 1.25px var(--gold);
  }
}

/* ---------- the timelapse names its pit ---------- */

.diff-cap {
  position: absolute;
  left: var(--pad);
  top: clamp(18px, 2.4vw, 34px);
  z-index: 1;
  margin: 0;
  color: var(--bone);
  text-shadow: 0 1px 8px rgba(14, 11, 10, 0.9);
}

/* ---------- awaiting Carey's OK ----------
   Projects added from Carey's decks and photos without Carey's own words
   carry this tag until Carey approves them; remove the tag on approval. */

.ok-flag {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  margin: 0 0 10px 0;
  padding: 4px 10px;
  border: 1px dashed var(--gold);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--gold);
  background: rgba(14, 11, 10, 0.6);
}

/* ---------- mine-life stages held as photographs ----------
   Slides 01 and 04 are Carey's own photographs, not clips; each drifts in
   slowly while its stage is on, so it moves with the slides around it. The
   drift pauses while the section is out of view, as the clips do. */

.jx img.jshot[data-jclip] { transform-origin: 50% 55%; }
.jx img.jshot[data-jclip].is-on,
.jx img.jshot[data-jclip].is-under {
  animation: jdrift 9s cubic-bezier(0.25, 0.6, 0.3, 1) both;
  animation-play-state: paused;
}
.jx.is-seen img.jshot[data-jclip].is-on,
.jx.is-seen img.jshot[data-jclip].is-under { animation-play-state: running; }
@keyframes jdrift { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .jx img.jshot[data-jclip].is-on,
  .jx img.jshot[data-jclip].is-under { animation: none; }
}

/* ---------- client marks, a size up ----------
   Carey, 15 Oct: the client logos a little larger so they stand out, BHP and
   AngloGold Ashanti most of all. Each cap keeps its file's own proportions;
   AngloGold's fine-line lion and BHP take the biggest step. */

.client-logos { opacity: 0.92; }
.client-logos img.l-anglogold     { max-height: 66px; max-width: 103px; }
.client-logos img.l-bhp           { max-height: 40px; max-width: 105px; }
.client-logos img.l-lynas         { max-height: 50px; max-width: 98px; }
.client-logos img.l-fortescue     { max-height: 35px; max-width: 114px; }
.client-logos img.l-riotinto      { max-height: 30px; max-width: 146px; }
.client-logos img.l-mainroads     { max-height: 40px; max-width: 158px; }
.client-logos img.l-fremantle     { max-height: 42px; max-width: 150px; }
.client-logos img.l-defence       { max-height: 54px; max-width: 80px; }
.client-logos img.l-southernports { max-height: 38px; max-width: 85px; }
.client-logos img.l-sharkbay      { max-height: 36px; max-width: 87px; }
.client-logos img.l-cpb           { max-height: 32px; max-width: 154px; }
@media (max-width: 767px) {
  .client-logos img.l-anglogold     { max-height: 52px; max-width: 100%; }
  .client-logos img.l-bhp           { max-height: 31px; max-width: 100%; }
  .client-logos img.l-lynas         { max-height: 40px; max-width: 100%; }
  .client-logos img.l-fortescue     { max-height: 28px; max-width: 100%; }
  .client-logos img.l-riotinto      { max-height: 24px; max-width: 100%; }
  .client-logos img.l-mainroads     { max-height: 30px; max-width: 100%; }
  .client-logos img.l-fremantle     { max-height: 32px; max-width: 100%; }
  .client-logos img.l-defence       { max-height: 46px; max-width: 100%; }
  .client-logos img.l-southernports { max-height: 32px; max-width: 100%; }
  .client-logos img.l-sharkbay      { max-height: 28px; max-width: 100%; }
  .client-logos img.l-cpb           { max-height: 26px; max-width: 100%; }
}

/* ---------- the menu's Contact pill ----------
   Drawn as a 1.25px ring (an inset shadow) rather than a 1px border: on
   standard, non-Retina screens a 1px border breaks into steps around the
   rounded ends, while the ring stays smooth. The border stays, transparent,
   so the pill keeps its size. */

.nav-desktop a.nav-cta,
.nav-mobile a.nav-cta {
  border-color: transparent;
  box-shadow: inset 0 0 0 1.25px var(--gold);
  transition: color var(--press) ease, box-shadow var(--press) ease, transform var(--press) var(--ease-out);
}
/* on phones the Contact pill sits over the hero photograph, so it carries its
   own dark ground: gold on it stays above 4.5:1 even over a white sky
   (WCAG 1.4.3, i-241) */
.nav-mobile a.nav-cta {
  background: rgba(14, 11, 10, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* phones: the breadcrumb's current page in the lighter grey, clear of 4.5:1
   over any hero veil (WCAG 1.4.3, i-241) */
@media (max-width: 767px) {
  .crumbs [aria-current="page"] { color: var(--stone); }
}
@media (hover: hover) and (pointer: fine) {
  .nav-desktop a.nav-cta:hover,
  .nav-mobile a.nav-cta:hover { border-color: transparent; box-shadow: inset 0 0 0 1.25px var(--bone); }
}

/* ---------- the other round controls, as rings ----------
   The same fix as the Contact pill. The round pause control and the footer
   badges move from a 1px border to a 1.25px ring (border kept, transparent,
   so nothing changes size); the buttons that were already rings are set at
   1.25px where each is defined. The pause control set as a word in an
   actions row keeps its underline. */

.hero-toggle,
.page-hero-foot .hero-toggle { border-color: transparent; box-shadow: inset 0 0 0 1.25px rgba(239, 233, 223, 0.28); }
.page-actions .hero-toggle { box-shadow: none; }
.badge { border-color: transparent; box-shadow: inset 0 0 0 1.25px var(--gold-dim); transition: box-shadow var(--press) ease, transform var(--press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hero-toggle:hover,
  .page-hero-foot .hero-toggle:hover { border-color: transparent; box-shadow: inset 0 0 0 1.25px var(--gold); }
  .page-actions .hero-toggle:hover { box-shadow: none; }
  .badge:hover { border-color: transparent; box-shadow: inset 0 0 0 1.25px var(--gold); }
}

/* ---------- the footer's small links ----------
   The base line's captions are faded to three quarters, which the links in
   it cannot afford at 13px over the painting: they read at full strength. */
.foot-base .foot-more .caption { opacity: 1; }

/* ---------- phones ---------- */

@media (max-width: 767px) {
  .what, .journey, body.pg-home .news, .faq { background-size: 88% 1px, auto, auto, auto; }
  .hero-foot .horizon::after { left: 6%; right: 6%; height: 60px; }
  .svc .link svg, .project .project-more svg { padding: 11px 8px; }

  /* the footer, shorter on a phone (Vish, 8 Nov 2026). The brand block
     draws its spacing in, and the link panel goes two across: Company and
     Services side by side, then Community across both columns, its four
     links two by two. Every link keeps its 44px of tap height. */
  .site-footer { gap: 16px; }
  .foot-grid { gap: 20px; }
  .foot-brand { gap: 16px; }
  .foot-desc { font-size: 15px; line-height: 1.5; }
  .foot-contact { gap: 0; }
  .foot-links { padding: 24px var(--pad); }
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .foot-col .caption { margin-bottom: 2px; }
  .foot-col a { font-size: 15px; line-height: 1.3; }
  .foot-inner > .foot-col:nth-of-type(3) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .foot-inner > .foot-col:nth-of-type(3) .caption { grid-column: 1 / -1; }
  .foot-base { gap: 4px; padding-top: 18px; }
  /* the small links row (Careers to Terms and conditions) needs two lines on
     a phone since Privacy policy joined it (23 Nov 2026). Laid out as a plain
     row of links with no dots, so no line ends on a stray dot. */
  .foot-more .caption { display: flex; flex-wrap: wrap; column-gap: 20px; }
  .foot-more .sep { display: none; }

  /* the seventeen horizons, on every page that carries them (Home and The
     Group), run down the page as one list on a rail: the year on the left,
     the record on the right, instead of a sideways row that shows two at a
     time. The script folds the list after the fourth and a button opens
     the rest; without it, all seventeen show. */
  .history .timeline {
    display: block;
    overflow: visible;
    margin: 0 var(--pad);
    padding-top: 24px;
    scroll-snap-type: none;
  }
  .history .timeline .item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 6px;
    align-items: start;
    padding: 0 0 24px 0;
    border-left: 0;
    background: none;
  }
  /* the rail between the year and the record, with a gold mark at each horizon */
  .history .timeline .item::before {
    content: "";
    position: absolute;
    left: 73.5px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--rule-strong);
  }
  .history .timeline .item:first-child::before { top: 9px; }
  .history .timeline .item::after {
    content: "";
    position: absolute;
    left: 70px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--ink);
  }
  .history .timeline .item.next::after { background: var(--ink); box-shadow: inset 0 0 0 1.25px var(--bone), 0 0 0 4px var(--ink); }
  .history .timeline .yr { grid-column: 1; grid-row: 1 / span 2; font-size: 24px; line-height: 1; }
  .history .timeline .yr.word { font-size: 16px; line-height: 1.15; }
  .history .timeline .caption { grid-column: 2; grid-row: 1; font-size: 12px; line-height: 18px; }
  .history .timeline .body,
  .history .timeline .item:nth-child(n) .body { grid-column: 2; grid-row: 2; font-size: 15px; line-height: 1.5; color: var(--stone); }
  .history .timeline .item.next .body { color: var(--bone); }
  .history .timeline.is-folded:not(.is-all) .item:nth-child(n+5) { display: none; }
  .history .timeline.is-folded:not(.is-all) .item:nth-child(4)::before { bottom: 24px; }
  .history .tl-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin: 0 var(--pad) 0 calc(var(--pad) + 86px);
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(14, 11, 10, 0.45);
    box-shadow: inset 0 0 0 1.25px rgba(239, 233, 223, 0.38);
    color: var(--bone);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 2;
    order: 5;
  }
  .history .tl-more svg { flex: 0 0 auto; color: var(--gold); transition: transform var(--ui) var(--ease-out); }
  .history .tl-more[aria-expanded="true"] svg { transform: rotate(180deg); }
  .history .tl-more:active { transform: scale(0.98); }
}
/* the horizons' fold button exists only on a phone */
.tl-more { display: none; }

/* ---------- The Group, and the About tabs, on a phone (Vish, 8 Nov 2026) ---------- */

@media (max-width: 767px) {
  /* the About section's four tabs fit across a phone, spread edge to edge,
     so none is cut off at the screen's edge; a narrower phone still swipes */
  .subnav[aria-label="About"] ul { gap: 0 16px; justify-content: space-between; }
  .subnav[aria-label="About"] a { font-size: 14px; }

  /* the opener's photograph band (set site wide below) frames the line of
     trucks and the crew walking past */
  body.pg-the-group .page-hero > .hero-img { object-position: 54% 62%; }

  /* the story: the opener a step smaller, the paragraphs closer together,
     and Carey's note on the group's businesses set off as a note, on a
     gold rule, so the story reads first and the detail after */
  body.pg-the-group .gp { gap: 32px; padding-top: 48px; padding-bottom: 40px; }
  body.pg-the-group .gp-lead { font-size: 20px; line-height: 1.45; }
  body.pg-the-group .gp-body { margin-top: 24px; padding-top: 24px; line-height: 1.65; }
  body.pg-the-group .gp-fit { margin-top: 28px; padding: 2px 0 2px 18px; border-top: 0; border-left: 2px solid var(--gold-line); }
  body.pg-the-group .gp-fit-h { margin-bottom: 10px; }
  body.pg-the-group .gp-fit p { font-size: 15px; line-height: 1.65; }

  /* the five standing facts as tiles, two across and the last across both,
     the figure over its label, as the home page's figures stand */
  body.pg-the-group .gp .fig-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  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 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 18px 18px 20px 18px;
    border: 0;
    border-radius: 16px;
    background: var(--lit);
    box-shadow: inset 0 0 0 1px var(--lit-edge), var(--lit-top);
  }
  body.pg-the-group .gp .fig-row .fig:last-child { grid-column: 1 / -1; }
  body.pg-the-group .gp .fig-n { font-size: 30px; white-space: nowrap; }
  body.pg-the-group .gp .fig-l { margin: 0; font-size: 14px; line-height: 1.35; }

  /* the horizons follow the facts without a wide empty gap */
  body.pg-the-group .history { padding-top: 48px; }

  /* the values sit closer under their heading, and the safety story
     follows them without a wide empty gap */
  body.pg-the-group .values { gap: 32px; padding-bottom: 44px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .services .svc, .project, body.pg-home .news-lead { transition: border-color var(--ui) ease, box-shadow var(--ui) ease; }
  .services .svc:hover, .project:hover, body.pg-home .news-lead:hover { transform: none; }
  .doors .door:hover, body.pg-careers .path:hover { transform: none; }
  /* the three lights rest at the left of the strip instead of running */
  .door:hover .door-media::after, .door:has(.link:focus-visible) .door-media::after { animation: none; transform: translateX(26px); }
}

/* ==================================================================
   Phones, site wide (Vish, 8 and 9 Nov 2026). A page by page review of
   every page at 390 and 360 wide. Phone widths only: nothing here
   reaches a tablet or a desktop.
   ================================================================== */

@media (max-width: 767px) {
  /* rhythm: on a phone sections sit a step closer, so where two bands
     meet the page no longer opens a 128px empty strip */
  :root { --section: 52px; --section-sm: 44px; }

  /* the section openers and the civil project openers: the photograph is
     a clear band under the header, and the heading starts where the band
     fades into the ground. A photograph stretched behind the whole opener
     was zoomed so far that only sky or ceiling showed above a dark band. */
  .page-hero,
  .pg-civil-project .case-head { min-height: 0; }
  .page-hero > .hero-img,
  .pg-civil-project .case-head > .hero-img { bottom: auto; height: 330px; }
  .page-hero .veil-a,
  .pg-civil-project .case-head .veil-a { background: none; }
  .page-hero .veil-b,
  .pg-civil-project .case-head .veil-b {
    bottom: auto;
    height: 331px;
    background: linear-gradient(180deg, rgba(14,11,10,0.55) 0px, rgba(14,11,10,0.06) 92px, rgba(14,11,10,0.04) 200px, rgba(14,11,10,0.72) 278px, rgba(14,11,10,1) 330px);
  }
  .page-hero-inner { padding-top: 284px; }
  .pg-civil-project .case-head-inner { padding-top: 284px; }

  /* the record openers (news, the founder, leadership, awards, community
     programs): the header already takes its own space above them, so the
     breadcrumb sits close under it rather than 120px down an empty band */
  .record-head { padding-top: 36px; }
  /* a news story's long headline stays within three or four lines */
  .pg-news-article .record-head h1 { font-size: clamp(27px, 7.4vw, 30px); line-height: 1.08; }

  /* the section tabs wrap onto a second line instead of running off the
     edge half cut, so every tab is whole and in view */
  .subnav { padding-right: var(--pad); }
  .subnav ul,
  .subnav ul.more-l,
  .subnav ul.more-r,
  .subnav ul.more-l.more-r {
    flex-wrap: wrap;
    overflow: visible;
    padding-right: 0;
    gap: 0 22px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .subnav a { min-height: 44px; font-size: 14px; }
  /* a section of four or more long names (Civil, Community) sets its tabs
     two to a row, each name free to wrap within its half */
  .subnav:not([aria-label="About"]) ul:has(li:nth-child(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .subnav:not([aria-label="About"]) ul:has(li:nth-child(4)) a { white-space: normal; line-height: 1.25; padding: 8px 0; }

  /* a section opener's pause control rests on its photograph, top right
     under the header, clear of the heading */
  .page-hero-foot { position: static; }
  .page-hero-foot .hero-toggle { top: calc(var(--header-h) + 14px); bottom: auto; z-index: 3; }

  /* a grid of two never leaves its last card alone with an empty half
     beside it: an odd one out spans the row */
  .fig-row .fig:last-child:nth-child(odd):not(:first-child),
  .case-facts > .case-fact:last-child:nth-child(odd):not(:first-child),
  .ct-plate .ct-cell:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
  .cg img:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

  /* every link a thumb has to find gets 44px of height */
  main a.link { min-height: 44px; }
  .exit-reach a, .exit-alt a, .roles-ways a, .door-reach a, .trac-reach a,
  .spine .reach a, .na-more a, .form-foot a { display: inline-flex; align-items: center; min-height: 44px; }

  /* nothing anyone needs to read sits under 12px */
  /* (the page rules that set "Over" and "Up to" at 34% are named too, so
     the floor wins over them) */
  .fig-n .pre,
  .pg-civil-project .fig-n .pre,
  body.pg-civil-projects .fig-n .pre,
  body.pg-carey-group-training .hx .fig-n .pre,
  body.pg-indigenous-engagement .proof .fig-n .pre { font-size: max(12px, 0.34em); }
  .spec .v .pre { font-size: 12px; }
  .spec .v .u { font-size: max(12px, 0.42em); }

  /* stacked buttons are one pair: the same width, the same height, the
     words starting at the same inset */
  .page-actions .link,
  .page-actions .btn,
  .btn.btn-quiet { align-self: stretch; min-height: 54px; }
  .page-actions .link { padding: 7px 26px; justify-content: flex-start; }
  .btn.btn-quiet { padding: 7px 26px; justify-content: flex-start; }

  /* the client marks on the service pages: three across, the last row
     centred, every mark held to one optical size */
  .cl .client-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 0; }
  .cl .client-logos img { flex: 0 0 33.333%; box-sizing: border-box; padding: 0 10px; }
  .cl .client-logos img.l-bhp { max-height: 24px; }

  /* project cards: a wide photograph rather than a tall one, so a run of
     cards is not a run of screens */
  .cc-shot img { aspect-ratio: 16 / 9; }
}

/* ---------- phones, page by page (Vish, 9 Nov 2026) ---------- */

@media (max-width: 767px) {
  /* Mining project pages: Key outcomes hands over to the next band without
     a 140px empty strip */
  .band.alt.cw { padding-bottom: 32px; }
  .band.alt.cw + .band, .band.alt.cw + .projects { padding-top: 40px; }

  /* Mining, Projects: the figure prefixes ("Around", "Over") readable */
  body.pg-mining-projects .pj-figs .v .pre { font-size: 12px; }
  /* Mining, Capability: the fleet table's row names readable */
  body.pg-mining-capability .fleet-table th { font-size: 13px; }
  /* Hydro Utilities: the logo has room above the breadcrumb */
  body.pg-mining-hydro-utilities .hu-logo { margin-bottom: 14px; }

  /* Civil, Projects: the 31 projects as compact rows, the photograph on
     the left and the name on the right. Each row is the link to its own
     page, which carries the full description. The filter reads at size. */
  body.pg-civil-projects .pc {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    align-content: start;
    padding: 16px 0;
  }
  body.pg-civil-projects .pc > * { grid-column: 2; }
  body.pg-civil-projects .pc > .pc-shot { grid-column: 1; grid-row: 1 / span 4; margin: 0; align-self: start; }
  body.pg-civil-projects .pc-shot img,
  body.pg-civil-projects .pc-grid:not(.is-filtered) .pc.is-lead .pc-shot img { aspect-ratio: 1 / 1; }
  body.pg-civil-projects .pc-h,
  body.pg-civil-projects .pc-grid:not(.is-filtered) .pc.is-lead .pc-h { font-size: 17px; line-height: 1.15; }
  body.pg-civil-projects .pc > .body,
  body.pg-civil-projects .pc > .pc-more { display: none; }
  body.pg-civil-projects .nf-b { font-size: 14px; min-height: 44px; }
  body.pg-civil-projects .nf-n { font-size: 12px; }

  /* First Nation Engineering: the closing door reads on a veil that runs
     down the photograph, the button's words at button size, and the two
     ways to reach them stacked as two links */
  body.pg-civil-fne .fne-door > .door-veil { background: linear-gradient(180deg, rgba(14,11,10,0.6) 0%, rgba(14,11,10,0.84) 42%, rgba(14,11,10,0.95) 100%); }
  body.pg-civil-fne .door-inner { padding-top: 48px; padding-bottom: 52px; }
  body.pg-civil-fne .door-inner .btn { font-size: 15px; }
  body.pg-civil-fne .door-reach { flex-direction: column; align-items: flex-start; gap: 0; }
  body.pg-civil-fne .door-reach .sep { display: none; }
  body.pg-civil-fne .sh-h { font-size: 13px; }

  /* Training: the "Who leads it" rows close up under each name */
  ul.people:has(.pp-n) { row-gap: 0; }
  /* Training, Projects: each program's photographs two to a row */
  body.pg-training-projects .tpp-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  body.pg-training-projects .tpp-gal img { aspect-ratio: 1 / 1; }
  body.pg-training-projects .tpp-gal > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  body.pg-training-projects .tpp-gal > li:last-child:nth-child(odd) img { aspect-ratio: 2 / 1; }
  body.pg-training-projects .gb-by { font-size: 13px; }

  /* Indigenous Engagement: the four proof cards one to a row, so their
     lines are not five words deep; the five ways on as shorter cards */
  body.pg-indigenous-engagement .proof .fig-row { grid-template-columns: minmax(0, 1fr); }
  body.pg-indigenous-engagement .proof .fig-q { max-width: none; }
  body.pg-indigenous-engagement .ways .card-media img { aspect-ratio: 16 / 9; }

  /* Working with Traditional Owners: the closing statement at phone size */
  body.pg-working-with-traditional-owners .sign-line { font-size: 22px; line-height: 1.3; }

  /* WA Child Safety Services: the fact labels sit over their values */
  body.pg-wa-child-safety-services .duo .facts .fact { grid-template-columns: minmax(0, 1fr); gap: 6px; }

  /* Careers: the closing buttons keep their words on one line */
  body.pg-careers .cta-ways .btn { white-space: nowrap; font-size: 14px; }

  /* Leadership: a tier with one card over stands it centred under the
     pair above, as the founder stands centred at the top; the reader's
     photo, name and role stack in one column; the cue reads at size */
  body.pg-leadership .lr-t2 > :last-child:nth-child(odd),
  body.pg-leadership .lr-t3 > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  body.pg-leadership .lb-side { flex-direction: column; align-items: flex-start; }
  body.pg-leadership .lb-side .lb-name,
  body.pg-leadership .lb-side .lb-role { flex: 0 0 auto; }
  body.pg-leadership .lr-cue { font-size: 13px; }
  /* The Founder: the quote's attribution readable */
  body.pg-founder .quote-by { font-size: 13px; }

  /* news stories: pull quotes at reading size, fact labels readable, and
     the "Read more" sources as a list of whole links */
  body.pg-news-article .na-quote p { font-size: 18px; font-weight: 400; line-height: 1.45; }
  body.pg-news-article .na-facts dt { font-size: 13px; }
  body.pg-news-article .na-body > p.na-more { flex-direction: column; align-items: flex-start; gap: 0; }
  body.pg-news .nf-n { font-size: 13px; }
}

/* ---------- phones: centred odd cards, the section menu as a button (Vish, 9 Nov 2026) ---------- */

/* the section menu's button exists only on a phone */
.subnav-toggle { display: none; }

@media (max-width: 767px) {
  /* a figure card that runs across the row on its own sits centred in it,
     its figure and its words together */
  .fig-row .fig:last-child:nth-child(odd):not(:first-child),
  body.pg-the-group .gp .fig-row .fig:last-child { align-items: center; text-align: center; }

  /* the section's pages fold into one button that names the section and
     the page you are on; a tap opens the list. Without the script the
     tabs stay as they were. */
  .subnav.has-toggle { padding-top: 14px; padding-bottom: 14px; }
  .subnav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 56px;
    padding: 8px 20px;
    border: 0;
    border-radius: 14px;
    background: var(--lit), rgba(14, 11, 10, 0.6);
    box-shadow: inset 0 0 0 1.25px rgba(239, 233, 223, 0.22), var(--lit-top);
    color: var(--bone);
    font-family: var(--sans);
    text-align: left;
    cursor: pointer;
  }
  .subnav-toggle .st-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .subnav-toggle .st-k { font-size: 12px; line-height: 1.3; font-weight: 500; color: var(--gold); }
  .subnav-toggle .st-v { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--bone); }
  .subnav-toggle svg { flex: 0 0 auto; color: var(--gold); transition: transform var(--ui) var(--ease-out); }
  .subnav.is-open .subnav-toggle { box-shadow: inset 0 0 0 1.25px var(--gold-dim), var(--lit-top); }
  .subnav.is-open .subnav-toggle svg { transform: rotate(180deg); }
  .subnav-toggle:active { transform: scale(0.99); }

  .subnav.has-toggle:not(.is-open) ul,
  .subnav.has-toggle:not(.is-open) ul:has(li:nth-child(1)) { display: none; }
  .subnav.has-toggle.is-open ul,
  .subnav.has-toggle.is-open ul:has(li:nth-child(4)) {
    display: block;
    margin-top: 8px;
    padding: 4px 0;
    border-radius: 14px;
    background: var(--ink-2);
    box-shadow: inset 0 0 0 1px var(--tile-line);
  }
  .subnav.has-toggle.is-open li + li { border-top: 1px solid var(--rule); }
  .subnav.has-toggle.is-open a,
  .subnav.has-toggle.is-open ul:has(li:nth-child(4)) a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.3;
    white-space: normal;
    color: var(--stone);
    box-shadow: none;
  }
  .subnav.has-toggle.is-open a[aria-current] { color: var(--bone); font-weight: 600; }
  .subnav.has-toggle.is-open a[aria-current]::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
}

/* ---------- phones: the second button ends in a ring arrow (V8, 11 Nov 2026) ----------
   Carey (Adrian Campana, via Sakhi, 11 Nov) asked why "Work with Carey" and
   "Register interest" had no round arrow when the button above them did.
   Vish's pick: a gold outline ring, so both read as buttons and the filled
   gold arrow still marks the main one. Phones only; drawn in CSS, so the
   desktop and tablet buttons are untouched. */
@media (max-width: 767px) {
  body.pg-home .hero-actions .link,
  .page-actions .link,
  .btn.btn-quiet {
    justify-content: space-between;
    gap: 16px;
    padding: 7px 7px 7px 26px;
  }
  body.pg-home .hero-actions .link::after,
  .page-actions .link::after,
  .btn.btn-quiet::after {
    content: "";
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.25px #CCA851;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='-1 -1 20 14' fill='none' stroke='%23CCA851' stroke-width='1.8'%3E%3Cpath d='M1 6h15M11 1l5 5-5 5'/%3E%3C/svg%3E") center / 20px 14px no-repeat;
  }
}

/* a year range as the figure (Indigenous Engagement, GNA Nimingarra,
   "2020–22"): one size and one colour, not a gold unit (V8, 11 Nov 2026).
   Where the figures stand four across, the range is drawn a size down so it
   fits its card like the others; the line keeps the full figure's height, so
   the labels below stay level across the row. */
@media (min-width: 1024px) {
  .fig-n .fig-range { font-size: 80%; }
}

/* ---------- phones: the Training pages' closing door (V8, 11 Nov 2026) ----------
   Vish: the end of the GTO page, around "Talk with our team", looked odd on a
   phone, and then the same on the Carey Training (RTO) page. The phone veil
   (90 to 96% black) hid each door's photo completely, and on GTO the short
   words left wide empty dark bands above and below them. On a phone every
   door (GTO, Carey Training, Training Projects) now fits its words, and its
   photo shows as a clear band at the top that fades into the dark behind the
   heading, the way the page heroes work on a phone. Phones only; desktop and
   tablet untouched. */
@media (max-width: 767px) {
  .exit { min-height: 0; }
  .exit > img { height: 300px; bottom: auto; }
  .exit-veil {
    background: linear-gradient(180deg, rgba(14, 11, 10, 0.08) 0%, rgba(14, 11, 10, 0.2) 170px, var(--ink-2) 300px);
  }
  .exit-inner { align-self: flex-start; padding-top: 262px; padding-bottom: 60px; }
  /* GTO's two staff stand at either side of a wide photo: centred, both fit
     the phone band (the page's own 70% 40% is set on the tag, so it needs
     !important to be overruled here, on phones only) */
  body.pg-carey-group-training .exit > img { object-position: 50% 40% !important; }
}

/* ---------- phones: the GTO "Our role" photo keeps the faces (V8, 11 Nov 2026) ----------
   Vish: the four faces were cut off at the top. On a phone the photo is a
   short band, so it is now cropped from the bottom, with a little sky left
   above the hard hats. Phones only. */
@media (max-width: 767px) {
  body.pg-carey-group-training .training-feature .media .photo { object-position: 50% 20%; }
}

/* ---------- phones: the Home hero's two buttons side by side (V8, 11 Nov 2026) ----------
   Vish's pick (option A of three; B, shorter stacked buttons, was tried
   live the same day and A kept): on a phone the pair no longer stretches
   across the screen one under the other. They share one row, half each: the
   main one solid gold, the second outlined, each with a small arrow after
   its words. Home only (Careers and Contact keep their stacked pair). Below
   360 px the two labels no longer fit side by side, so the pair stacks again. */
@media (min-width: 360px) and (max-width: 767px) {
  body.pg-home .hero-actions { flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
  body.pg-home .hero-actions .btn,
  body.pg-home .hero-actions .link {
    flex: 1 1 0;
    min-width: 0;
    align-self: auto;
    min-height: 54px;
    padding: 0 12px;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    white-space: nowrap;
  }
  body.pg-home .hero-actions .btn {
    background: linear-gradient(180deg, #D6B463 0%, #C29A40 100%);
    color: var(--ink);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.pg-home .hero-actions .btn::before { display: none; }
  body.pg-home .hero-actions .btn svg { width: 16px; height: 11px; padding: 0; background-color: transparent; }
  body.pg-home .hero-actions .link::after { width: 16px; height: 11px; box-shadow: none; background-size: 16px 11px; }
}

/* ---------- phones: links inside the legal pages' sentences (23 Nov 2026) ----------
   The privacy policy and the terms and conditions are long paragraphs with
   links in the middle of a sentence (the email address, phone numbers, the
   OAIC site). The site-wide 44px rule for prose links made every line that
   holds one taller than the rest. Links inside a sentence stay inline (the
   inline exception for target size), so the lines keep an even rhythm. */
@media (max-width: 767px) {
  .prose.legal a { display: inline; min-height: 0; }
}
