/* ------------------------------------------------------------------
   Carey Group v3: the shared stylesheet, loaded by every page.
   Tokens, browser surfaces, type primitives, the sticky header and its
   menu, the homepage's own sections, and the footer. Inner page
   components live beside it in pages.css. Extracted from the approved
   v3 homepage so the two can never drift apart.
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   Carey Group landing page, dev preview build v3.
   A polish pass on v2 (branch client-adjustments-v2, 15 Sept 2026):
   same content, same world, a tokenised system. See DESIGN.md at the
   repo root for the system and design-story.md for the brand world.
   Breakpoints: 1280 / 1200 / 1024 / 768 / 480
   ------------------------------------------------------------------ */

/* the two typefaces, served from this site rather than Google Fonts so the
   first paint does not wait on a second and third connection. Same files
   and subsets Google serves (Archivo with its width axis, Exo). Not
   preloaded: on a slow phone a preload held back the first paint. */
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/exo-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/exo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/exo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

/* how far first light has crossed the lake photograph */
@property --lit {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

:root {
  color-scheme: dark;

  /* colour */
  --ink: #0E0B0A;
  --ink-2: #120E0C;
  --surface: #17120F;
  --bone: #EFE9DF;
  --stone: #C9C1B4;
  --ash: #978D82;
  --gold: #C9A24A;
  --gold-dim: #8A7A55;
  --gold-line: #5A4A22;
  --rule: #2A231E;
  --rule-strong: #3A312B;
  --maroon: #782327;
  --maroon-deep: #5E1B1E;

  /* type */
  --display: "Exo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Exo 2", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-h2: clamp(34px, 3.89vw, 56px);
  --fs-h2-band: clamp(30px, 3.33vw, 48px);
  --fs-h3: clamp(19px, 1.53vw, 22px);

  /* space */
  --pad: 80px;
  --header-h: 88px;
  --section: 120px;
  --section-sm: 96px;
  --head-gap: 56px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --press: 160ms;
  --ui: 220ms;
}

/* Lenis: the page's height stays the document's own, a stopped glide holds
   the page, inner scrollers keep their overscroll, and the native smooth
   jump is switched off while Lenis eases the scroll itself */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html {
  background: var(--ink);
  scrollbar-color: var(--rule-strong) var(--ink);
  scroll-padding-top: var(--header-h);
  /* a jump link arrives by gliding to its section rather than cutting to
     it; the reduced-motion block at the foot of this file puts it back */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--gold); text-decoration: none; text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--bone); }
}

a, button { transition: color var(--press) ease, background-color var(--press) ease, border-color var(--press) ease; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* an industry acronym carries its full name: a quiet dotted rule says so */
/* an abbreviation spells itself out on hover; the pointer stays as it is */
abbr[title] { text-decoration: underline dotted var(--gold-dim); text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: inherit; }

/* ---------- the press: every pressable surface answers the finger ----------
   A 3% settle, gone in 160ms. Plain links inside paragraphs are left alone:
   the affordance belongs to the things that read as controls. */

.btn,
.link,
.nav-desktop a.nav-cta,
.nav-mobile a.nav-cta,
.burger,
.hero-toggle,
.faq-list summary {
  transition: color var(--press) ease, background-color var(--press) ease, border-color var(--press) ease,
              transform var(--press) var(--ease-out);
}
.btn:active,
.link:active,
.nav-desktop a.nav-cta:active,
.nav-mobile a.nav-cta:active,
.burger:active,
.hero-toggle:active,
.faq-list summary:active,
.badge:active {
  transform: scale(0.97);
}
/* a card whose whole face is one link is a button the size of a card, and a
   phone has no hover to lean on: without this a tap is answered by nothing
   until the page turns. A broad surface needs less scale than a button to
   read as pressed, so these give 1.5% where a button gives 3%. */
.svc,
.project {
  transition: transform var(--press) var(--ease-out);
}
.svc:active,
.project:active {
  transform: scale(0.985);
}

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

::selection { background: var(--gold); color: var(--ink); }

input, textarea, select, [contenteditable] { caret-color: var(--gold); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink); border-radius: 0; }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-line); }
::-webkit-scrollbar-corner { background: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
main:focus { outline: none; }

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 14px 18px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; outline-color: var(--bone); }
.skip, .skip:hover, .skip:focus { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page { max-width: 1440px; margin: 0 auto; background: var(--ink); }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }

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

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.body {
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--stone);
  margin: 0;
  text-wrap: pretty;
}
.body.sm { font-size: clamp(14px, 1.04vw, 15px); }
/* below 15px the light cut goes thin, so small copy steps up a weight */
.body.xs { font-size: clamp(13px, 0.97vw, 14px); font-weight: 400; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(12px, 0.9vw, 13px);
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 18px 28px;
  min-height: 52px;
}
.btn svg { flex: 0 0 auto; }
/* the arrow answers a keyboard as well as a pointer, so it is declared out
   here where focus can reach it; inside the hover query a tabbing visitor
   got nothing, though the menu has always moved its arrow on focus */
.btn svg, .link svg { transition: transform var(--ui) var(--ease-out); }
.btn:focus-visible svg, .link:focus-visible svg { transform: translateX(4px); }
/* hover is a mouse idea: guarded, so a tap never leaves a state stuck on */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--bone); color: var(--ink); }
  .btn:hover svg, .link:hover svg { transform: translateX(4px); }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(11px, 0.83vw, 12px);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--bone); border-color: var(--gold); }
}

.stat-n {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 3.89vw, 56px);
  line-height: 1;
  color: var(--bone);
  margin: 0;
  font-variant-numeric: lining-nums;
}
.stat-n .unit { font-size: clamp(16px, 1.94vw, 28px); color: var(--gold); }

.stat-l {
  font-size: clamp(11px, 0.83vw, 12px);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ash);
  margin: 8px 0 0 0;
  font-weight: 500;
}

.caption {
  font-size: clamp(11px, 0.83vw, 12px);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ash);
  margin: 0;
  font-weight: 500;
}

.photo { object-fit: cover; width: 100%; height: 100%; display: block; }

.note {
  color: var(--gold);
  background: #2A1E12;
  padding: 2px 6px;
  font-size: 11px;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  margin: 0;
  align-self: flex-start;
}

.gold { color: var(--gold); }


/* the Carey stripe: the three logo chevrons laid flat. Used once. */
.stripe {
  display: inline-block;
  flex: 0 0 auto;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--bone) 0 33.34%, var(--gold) 33.34% 66.67%, var(--maroon) 66.67% 100%);
}

/* ---------- header / nav ----------
   Sticky: the one still point while the imagery moves. Over the hero it is
   a soft gradient; once the page leaves the top a solid bar fades in under
   it, so the header never changes height and nothing below it jumps. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(14, 11, 10, 0.84) 0%, rgba(14, 11, 10, 0.5) 60%, rgba(14, 11, 10, 0) 100%);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 11, 10, 0.95);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transition: opacity var(--ui) ease;
}
.site-header.is-scrolled::before,
.site-header.menu-open::before { opacity: 1; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand .mark { --mh: 40px; }
.brand-div { width: 1px; height: 28px; background: var(--rule-strong); }
.brand-line {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--stone);
  white-space: nowrap;
}
.brand-line strong { font-weight: 700; color: var(--bone); }

.nav-desktop { display: flex; align-items: center; gap: 36px; }
.nav-desktop a {
  color: var(--bone);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
}
/* the plain links draw a hairline from the left on hover and focus */
.nav-desktop a:not(.nav-cta) { position: relative; padding: 10px 0; }
.nav-desktop a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--ui) var(--ease-out);
}
.nav-desktop a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
.nav-desktop a.nav-cta { border: 1px solid var(--gold); color: var(--gold); padding: 12px 20px; }
@media (hover: hover) and (pointer: fine) {
  .nav-desktop a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav-desktop a:hover { color: var(--bone); }
  .nav-desktop a.nav-cta:hover { color: var(--bone); border-color: var(--bone); }
}

.nav-mobile { display: none; align-items: center; gap: 12px; }
.nav-mobile a.nav-cta {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.01em;
  text-transform: none;
  border: 1px solid var(--gold);
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.burger {
  background: none;
  border: 0;
  padding: 12px 0 12px 8px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  color: var(--bone);
}
.burger svg { overflow: visible; }
@media (hover: hover) and (pointer: fine) {
  .burger:hover { color: var(--gold); }
  .nav-mobile a.nav-cta:hover { color: var(--bone); border-color: var(--bone); }
}
/* three lines fold into a cross, and back */
.burger line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--ui) var(--ease-out), opacity 120ms ease;
}
.burger[aria-expanded="true"] .l1 { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .l2 { opacity: 0; }
.burger[aria-expanded="true"] .l3 { transform: translateY(-7px) rotate(-45deg); }

/* the desktop panels and the phone sheet themselves live in nav.css */

/* ---------- the mark: box, full logo, and the three chevron docks ----------
   mark-box.png is the mark with the chevrons removed and always shows.
   logo.png sits on top as the docked state and crossfades out as the
   chevrons lift off. The .dock spans are invisible measurement targets
   sitting exactly where each chevron lives inside the 600 x 157 artwork. */

.mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  height: var(--mh, 40px);
  width: calc(var(--mh, 40px) * 600 / 157);
}
.mark img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}
.mark .mark-full { z-index: 1; }
.mark .dock {
  position: absolute;
  top: 0;
  height: 100%;
  width: 7.66667%;      /* 46 / 600 */
  display: block;
  pointer-events: none;
}
.mark .dock.d0 { left: 83%; }         /* 498 / 600 */
.mark .dock.d1 { left: 87.66667%; }   /* 526 / 600 */
.mark .dock.d2 { left: 92.33333%; }   /* 554 / 600 */

/* the flyers: three fixed chevrons driven entirely by scroll position */
.boom {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}
.boom img {
  display: block;
  width: 13px;      /* 40px tall at scale 1, the header mark height */
  height: 40px;
  max-width: none;
}
/* while the phone sheet is open the header, and the sheet, sit over the flyers
   (nav.css does the same for the desktop panels) */
.site-header.menu-open { z-index: 20; }

/* ---------- hero ----------
   One viewport tall, content anchored above the horizon line, so the
   headline sits in the same relation to the ground on a 13 inch laptop
   and a large monitor. Opens already lit: no brightness rise. */

.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  overflow: hidden;
  background: var(--ink);
  min-height: clamp(720px, 100svh, 1000px);
}
.hero-pin {
  position: relative;
  min-height: inherit;
  display: flex;
  flex-direction: column;
}
.hero-frame-main { position: absolute; inset: 0; }
.hero-frame-main > .hero-img,
.hero-frame-main > .hero-veil { position: absolute; inset: 0; }
/* while the frame is scaling on the stage, the footage sits two pixels
   inside the veils. The footage and the veils are separate layers and each
   softens its own edge, so with both on the same edge a hairline of
   unshaded footage shows down the frame's sides; held inside, the
   footage's edge is always under a full veil */
.hero-frame-main.is-moving > .hero-img { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
.hero-frame-main > .hero-img { object-position: 70% 50%; }
.hero-frame-side { display: none; }
.veil-a { background: linear-gradient(90deg, rgba(14,11,10,0.94) 0%, rgba(14,11,10,0.78) 38%, rgba(14,11,10,0.25) 70%, rgba(14,11,10,0.10) 100%); }
.veil-b { background: linear-gradient(180deg, rgba(14,11,10,0.55) 0%, rgba(14,11,10,0) 30%, rgba(14,11,10,0) 60%, rgba(14,11,10,1) 100%); }

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 36px; }

.hero-h1 {
  font-size: clamp(38px, 4.86vw, 70px);
  color: var(--bone);
  line-height: 0.98;
}
.hero-h1 br { display: none; }
.hero-h1 .gold { display: block; }

.hero-row { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 4px; }
.hero-lead { max-width: 520px; font-size: clamp(15px, 1.32vw, 19px); color: var(--bone); }
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-actions .link { color: var(--bone); border-color: var(--gold-dim); }
@media (hover: hover) and (pointer: fine) {
  .hero-actions .link:hover { color: var(--gold); border-color: var(--gold); }
}

.hero-foot { position: relative; z-index: 2; padding-bottom: 64px; }
.horizon {
  height: 1px;
  background: linear-gradient(90deg, rgba(201,162,74,0) 0%, rgba(201,162,74,0.9) 30%, rgba(201,162,74,0.9) 70%, rgba(201,162,74,0) 100%);
}

/* the pause control for the moving footage, resting on the horizon */
.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;
}
.hero-toggle[hidden] { display: none; }
.hero-toggle svg { display: block; }
.hero-toggle .i-play { display: none; }
.hero-toggle[data-state="paused"] .i-pause { display: none; }
.hero-toggle[data-state="paused"] .i-play { display: block; }
@media (hover: hover) and (pointer: fine) {
  .hero-toggle:hover { color: var(--gold); border-color: var(--gold); }
}

/* the hero stage. On a wide landscape window, and only for a visitor who
   welcomes motion, the script marks the homepage hero as staged. The
   section then runs taller than the window and the picture holds still
   inside it while the page scrolls: the headline sinks behind the horizon
   line, the footage draws in to the middle, and two portrait clips slide in
   from either edge until the three stand as one row. The move is given a
   window and two thirds of scroll to run in, so it reads as a glide and
   not a dash; the row then holds for the rest and the page carries on. Frames only ever move by transform, so a scroll frame
   never asks for layout. The pin clips its overflow rather than hiding it,
   because hidden would make it a scroll container and the pin would never
   stick, and the clip means a frame waiting off to one side can never make
   the page scroll sideways. On a window wider than the page the script
   widens that clip out to the window's edges, where the browser can, so the
   side frames travel in across the dark margin. Phones, portrait tablets,
   short windows, reduced motion and no script all keep the hero exactly as
   it stands above. */
.hero.is-staged {
  height: calc(100svh + 100svh);
  /* the proof band after it rises this far over the held row's empty ground */
  margin-bottom: calc(-1 * var(--stage-overlap, 0px));
  min-height: 0;
  overflow-x: visible;
  overflow-y: clip;
}
.hero.is-staged .hero-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  overflow: clip;
}
.hero.is-staged .hero-frame {
  transform-origin: 50% 50%;
  will-change: transform;
}
/* the headline block's own box ends on the horizon line, so clipping it
   there lets the sinking copy pass behind the horizon instead of over it */
.hero.is-staged .hero-inner { clip-path: inset(0); }
.hero.is-staged .hero-copy { will-change: transform, opacity; }
.hero.is-staged .hero-frame-side {
  display: block;
  position: absolute;
  overflow: hidden;
  background: var(--ink-2);
}
.hero-frame-side .hero-side { object-fit: cover; }
/* the three services, named under their frames once the row has landed,
   each centred on its frame: a short gold rule, the word, one line on what
   it means. Each is a link to that service. Off stage they do not exist;
   the What we do band below says the same thing in full. */
.hero-caps { display: none; }
.hero.is-staged .hero-caps { display: block; list-style: none; margin: 0; padding: 0; }
.hero.is-staged .hero-cap { position: absolute; opacity: 0; text-align: center; will-change: transform, opacity; }
.hero-cap a { display: inline-block; max-width: 100%; padding-top: 14px; color: var(--bone); position: relative; }
.hero-cap a::before { content: ""; position: absolute; left: 50%; top: 0; width: 32px; height: 2px; background: var(--gold); transform: translateX(-50%); transition: width 320ms cubic-bezier(0.32, 0.72, 0, 1); }
.hero-cap-k { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.1; letter-spacing: 0; text-transform: none; }
.hero-cap-t { display: block; margin-top: 6px; font-size: clamp(13px, 1vw, 15px); line-height: 1.4; color: var(--stone); text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
  .hero-cap a:hover { color: var(--gold); }
  .hero-cap a:hover::before { width: 56px; }
}
/* where the boomerangs fly, each lands over its name and stands in for the
   gold rule: the rule goes and the word gives the chevron a little room */
.hero.is-flocked .hero-cap a { padding-top: 24px; }
.hero.is-flocked .hero-cap a::before { content: none; }

/* ---------- the proof ----------
   The first thing under the hero is the case for trusting Carey, set like a
   specification sheet: who owns the business, how long it has worked, how
   big it runs, and the producers who keep it on site. One claim, four
   figures in ruled cells, then the client marks as the evidence for Tier 1.
   Where the hero is staged, the band rises over the held row of footage
   (the script sets how far) and its top edge is the horizon line, so the
   ground the headline sank behind is the ground the proof stands on. */

.proof {
  position: relative;
  z-index: 3;
  isolation: isolate;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
/* the salt crust in low light, held right down behind the figures */
.proof::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,14,12,0.98) 0%, rgba(18,14,12,0.92) 50%, rgba(18,14,12,0.74) 100%),
    url("/salt.webp") 70% 50% / cover no-repeat;
}
.hero.is-staged + .proof { border-top-color: transparent; }
.hero.is-staged + .proof::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,162,74,0) 0%, rgba(201,162,74,0.9) 30%, rgba(201,162,74,0.9) 70%, rgba(201,162,74,0) 100%);
}

.proof-inner {
  padding-top: var(--section-sm);
  padding-bottom: var(--section-sm);
  display: flex;
  flex-direction: column;
  gap: var(--head-gap);
}

/* the band opens on what Carey does, at scale, then who owns it: the
   headline, the fleet in one sentence, and the ownership claim set as the
   line the figures below go on to prove. The mark sits level with the
   headline, top right. */
.proof-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px 80px;
  align-items: start;
}
.proof-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.proof-head h2 { font-size: var(--fs-h2); text-wrap: balance; }
.proof-lead {
  margin: 0;
  max-width: 36em;
  font-size: clamp(16px, 1.32vw, 19px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--stone);
  text-wrap: pretty;
}
.proof-own {
  margin: 4px 0 0 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.3;
  color: var(--bone);
}
/* the ownership claim never splits at its hyphen where there is room to hold it */
@media (min-width: 768px) {
  .proof-head .nw { white-space: nowrap; }
}
.proof-cred {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  color: var(--stone);
  white-space: nowrap;
}
.proof-cred svg { flex: 0 0 auto; }

/* four ruled cells; the second is wider because Top 100 is the longest figure */
.proof-figs {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.proof-fig {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 32px 40px 32px;
  border-left: 1px solid var(--rule);
}
.proof-fig:first-child { border-left: 0; padding-left: 0; }
.proof-fig:last-child { padding-right: 0; }
.proof-n {
  order: -1;
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--bone);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
/* the unit: gold, and a little over half the figure */
.proof-n .u { font-size: 55%; color: var(--gold); margin-left: 0.04em; letter-spacing: 0; }
.proof-l {
  margin: 20px 0 0 0;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  color: var(--stone);
}
.proof-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;
}

/* the client marks sit on the sheet's last rule, so the row needs no rule of its own */
.proof-clients { display: flex; flex-direction: column; gap: 28px; }
.proof-clients .client-row { border-top: 0; padding-top: 0; }

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

.what { padding-top: var(--section); padding-bottom: var(--section-sm); display: flex; flex-direction: column; gap: var(--head-gap); }
.what-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: end; }
.what-head .h { display: flex; flex-direction: column; gap: 22px; }
.what-head h2 { font-size: var(--fs-h2); }
.what-head p { max-width: 520px; }
/* the section's own line first, then the mining detail the hero now leaves out */
.what-copy { display: flex; flex-direction: column; gap: 16px; }
/* the commodities stand out in bone at the heaviest cut Exo 2 is loaded in */
.what-copy strong { font-weight: 500; color: var(--bone); }

/* the three things Carey sells. Full bleed panels, the name carried at
   display scale over a frame of that work, so they read as the offer
   rather than as three paragraphs. Each whole panel is the link. */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.svc { position: relative; display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.svc:first-child { border-left: 0; }
.svc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-media .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,11,10,0.15) 0%, rgba(14,11,10,0.1) 38%, rgba(14,11,10,0.88) 100%);
}
.svc 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);
}
.svc-copy { padding: 20px 28px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.svc-copy .body { font-size: 14px; font-weight: 400; }
.svc .link { align-self: flex-start; margin-top: auto; }
.svc .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 here */
.svc .link:active { transform: none; }
@supports selector(:has(a)) {
  .svc .link:focus-visible { outline: none; }
  .svc:has(.link:focus-visible) { outline: 2px solid var(--gold); outline-offset: -2px; }
}
@media (hover: hover) and (pointer: fine) {
  /* the picture leans in slowly and lets go quickly: sweeping across the row
     should not leave a trail of images still easing back behind the pointer */
  .svc-media img { transition: transform 300ms var(--ease-out); }
  .svc:hover .svc-media img { transform: scale(1.04); transition-duration: 600ms; }
  .svc:hover .link { color: var(--bone); border-color: var(--gold); }
  .svc:hover .link svg { transform: translateX(4px); }
}

/* ---------- clients ---------- */

/*
   300px + 80px gap at 1440; both taper below that so the logo row keeps as
   much of its artboard height as it can all the way to the 1199 breakpoint.
   The statement reads on two lines at 300px and hands the row 80px back.
*/
.client-row {
  display: grid;
  grid-template-columns: clamp(220px, 66.7vw - 580px, 300px) minmax(0, 1fr);
  gap: clamp(40px, 16.7vw - 160px, 80px);
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.client-statement {
  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);
  margin: 0;
}
/* one row, natural widths, evenly spread. 44px of air at 1440, tapering with
   the row so the marks keep their height rather than the gap keeping its
   width: below 1280 there is simply less room to spend. */
.client-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(28px, 6.67vw - 52px, 44px);
  opacity: 0.8;
}
/*
   Each mark is capped at its artboard height and the matching natural width,
   so it renders at the artboard size when there is room. Below that the row
   shrinks every mark by the same proportion: the height follows the width, so
   nothing is ever stretched and the row never wraps.
*/
.client-logos img {
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  justify-self: center;
}
.client-logos img.l-anglogold { max-height: 48px; max-width: 136px; }
.client-logos img.l-lynas     { max-height: 44px; max-width: 86px; }
.client-logos img.l-fortescue { max-height: 30px; max-width: 97px; }
.client-logos img.l-bhp       { max-height: 30px; max-width: 78px; }
.client-logos img.l-riotinto  { max-height: 26px; max-width: 126px; }
.client-logos img.l-mainroads { max-height: 34px; max-width: 134px; }
.client-logos img.l-fremantle { max-height: 36px; max-width: 129px; }
.client-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.client-also { color: var(--ash); max-width: 900px; }

/* ---------- the mine-life journey ----------
   One screen and five stages. The screen holds still beside the stages
   while they scroll past; as each stage reaches the reading line its clip
   is uncovered from the edge the page is travelling toward, the same
   shutter the menu uses, and plays once. The stage being read is lit, the
   rest step back, and the rail under the screen counts the five and jumps
   to any of them. Without the script the stages simply read in order
   beside the first clip. */

.journey { padding-top: var(--section); padding-bottom: var(--section); background: var(--ink); }
.journey-head { max-width: 900px; margin-bottom: var(--head-gap); }
.journey-head h2 { font-size: var(--fs-h2); }

.jx {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0 72px;
  align-items: start;
}

.jframe {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.jscreen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
}
.jshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  visibility: hidden;
}
.jshot.is-on,
.jshot.is-under { visibility: visible; }
.jshot.is-under { z-index: 1; }
.jshot.is-on { z-index: 2; }

/* the rail: five equal segments on one rule, the stages passed in gold dim,
   the stage being read in gold */
.jrail {
  list-style: none;
  margin: 18px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.jrail a {
  display: flex;
  align-items: flex-end;
  min-height: 44px;
  padding-bottom: 12px;
  position: relative;
  color: var(--ash);
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums lining-nums;
}
.jrail a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rule-strong);
  transition: background-color var(--ui) ease;
}
.jrail a.is-past::after { background: var(--gold-line); }
.jrail a[aria-current="step"] { color: var(--gold); }
.jrail a[aria-current="step"]::after { background: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .jrail a:hover { color: var(--bone); }
}

/* the stages: each tall enough to hold the screen for a moment */
.jsteps { list-style: none; margin: 0; padding: 0; }
.jstage {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 20px;
  align-items: start;
  /* tall stages keep their number and words together at the top */
  align-content: start;
  min-height: 46vh;
  padding: 32px 0 48px 0;
  border-top: 1px solid var(--rule);
}
.jstage:first-child { border-top: 0; padding-top: 0; }
.jstage:last-child { padding-bottom: 0; }
.jnum {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 0.9;
  color: var(--gold);
  margin: 0;
  font-variant-numeric: tabular-nums lining-nums;
}
.jbody { display: flex; flex-direction: column; gap: 14px; }
.jbody h3 { font-size: clamp(22px, 2.08vw, 30px); line-height: 1; }
.jbody .body { font-size: clamp(15px, 1.18vw, 17px); max-width: 520px; }
.jbody .link, .jbody .note { align-self: flex-start; margin-top: 4px; }

/* once the script is reading along, the stages not being read step back */
.jx.is-live .jstage { transition: opacity var(--ui) ease; }
/* the stages not being read step back, but stay readable: at this strength
   body copy keeps 6:1 on the ink, the gold links 4.5:1, and the small labels lift to stone */
.jx.is-live .jstage:not(.is-on) { opacity: 0.72; }
.jx.is-live .jstage:not(.is-on) .jnum { color: var(--ash); }
.jx.is-live .jstage:not(.is-on) .jfleet .k { color: var(--stone); }

.jfleet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--rule); margin-top: 2px; }
.jfleet div { display: flex; flex-direction: column; gap: 5px; padding: 12px 0 4px 0; }
.jfleet .k { font-size: 11px; letter-spacing: 0.01em; text-transform: none; color: var(--ash); margin: 0; font-weight: 500; }
.jfleet .v { font-size: 13px; line-height: 1.35; font-weight: 400; color: var(--bone); margin: 0; }
.jnpi { font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--ash); margin: 0; max-width: 520px; }

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

.diff { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(56.29% - 120px); padding-bottom: var(--section); display: flex; flex-direction: column; gap: 44px; background: var(--ink); }
/* the one site, from above: the whole Sunrise Dam pit shown uncropped as a
   band across the top of the section, edge to edge, so its scale reads. It
   fades into the ground at its foot, and the heading starts on that fade. */
.diff-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  aspect-ratio: 16 / 9;
}
/* a day on site: a five-second film of the pit from dawn through the night
   shift and back, looping. It plays only while the section is in the window. */
.diff-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,11,10,0.7) 0%, rgba(14,11,10,0) 12%, rgba(14,11,10,0) 64%, rgba(14,11,10,0.86) 86%, rgba(14,11,10,1) 100%);
}
.diff-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.diff-head h2 { font-size: var(--fs-h2); }

/* the proof: one client, one site, three decades */
.diff-proof { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--gold-line); padding-left: 28px; }
/* thirty years, then the relationship that proves it */
.diff-years { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 4.44vw, 64px); line-height: 1; color: var(--bone); margin: 0 0 6px 0; font-variant-numeric: lining-nums; }
.diff-years > span:first-child { color: var(--gold); }
.diff-years .w { font-size: 45%; letter-spacing: 0.02em; color: var(--stone); }
.diff-proof .n { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.02; letter-spacing: -0.01em; color: var(--bone); margin: 0; }
.diff-proof .n span { color: var(--gold); }
.diff-proof .l { font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--stone); margin: 4px 0 0 0; max-width: 320px; }

.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.points .pt { position: relative; padding: 30px 32px 32px 32px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
/* a gold rule draws across the top of a habit under the pointer. It draws
   in over 220ms and retracts in 140: leaving is the quicker half, so a row
   clears crisply behind the pointer rather than fading out of step with it. */
.points .pt::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 140ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .points .pt:hover::before { transform: scaleX(1); transition-duration: var(--ui); }
  .points .pt:hover h3 { color: var(--gold); }
}
.points .pt:first-child { padding-left: 0; }
.points .pt:last-child { padding-right: 0; border-right: 0; }
.points h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; line-height: 1; color: var(--bone); transition: color var(--press) ease; }
.points p { font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--bone); margin: 0; }

.diff-foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.diff-foot p { font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--ash); margin: 0; max-width: 620px; }
.diff-foot .link { flex: 0 0 auto; }

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

.faq { padding-top: var(--section-sm); padding-bottom: var(--section-sm); display: flex; flex-direction: column; gap: 32px; background: var(--ink-2); }
.faq h2 { font-size: var(--fs-h2-band); }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: 18px;
  color: var(--bone);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }
.faq-list details[open] summary { color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .faq-list summary:hover { color: var(--gold); }
}

.faq-plus { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform var(--ui) var(--ease-out);
}
.faq-plus::before { left: 0; top: 8px; width: 16px; height: 1px; }
.faq-plus::after { top: 0; left: 8px; width: 1px; height: 16px; transform-origin: 50% 50%; }
.faq-list details[open] .faq-plus::after { transform: rotate(90deg); }

.faq-a { max-width: 760px; padding: 0 0 22px 0; margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; color: var(--stone); text-wrap: pretty; }

/* ---------- split feature blocks ---------- */

.split { display: grid; gap: 0; }
.split .media { position: relative; overflow: hidden; }
.split .media .veil { position: absolute; inset: 0; }

.mining { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); min-height: 720px; background: var(--ink-2); }
.mining .media .photo { object-position: 50% 60%; }
.mining .media .veil { background: linear-gradient(90deg, rgba(14,11,10,0) 60%, rgba(18,14,12,1) 100%); }
.mining .copy {
  padding: 96px var(--pad) 96px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}
.mining h2 { font-size: var(--fs-h2); }
.mining .link { align-self: flex-start; }

/* ---------- history ----------
   overflow: clip rather than hidden, so the band is not a scroll container
   and the first light timeline can follow the page. */

.history {
  position: relative;
  overflow: clip;
  background: var(--ink);
  min-height: 640px;
  display: flex;
  flex-direction: column;
  padding-top: 88px;
  padding-bottom: 32px;
}
.history > .hist-media { position: absolute; inset: 0; }
.hist-media .hist-img { position: absolute; inset: 0; object-position: 50% 45%; }
/* before the light: the same frame, held down */
.hist-media > .hist-img { filter: brightness(0.5) saturate(0.55); }
/* first light: the photograph as it stands, crossing the horizon from the
   left as the band scrolls through. A mask on the image only; the lake,
   its shoreline and every record stay exactly where they are. */
.hist-light {
  position: absolute;
  inset: 0;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 var(--lit), transparent calc(var(--lit) + 24%));
  mask-image: linear-gradient(90deg, #000 0%, #000 var(--lit), transparent calc(var(--lit) + 24%));
}
.hist-light::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201,162,74,0) 20%, rgba(214,150,80,0.26) 100%);
  mix-blend-mode: soft-light;
}
.history > .veil { position: absolute; left: 0; right: 0; }
.hist-veil-a { inset: 0; background: linear-gradient(90deg, rgba(14,11,10,0.96) 0%, rgba(14,11,10,0.86) 35%, rgba(14,11,10,0.45) 70%, rgba(14,11,10,0.12) 100%); }
.hist-veil-b { top: 0; height: 40%; background: linear-gradient(180deg, rgba(14,11,10,1) 0%, rgba(14,11,10,0) 100%); }
.hist-veil-c { top: 58%; bottom: 0; background: linear-gradient(180deg, rgba(14,11,10,0.2) 0%, rgba(14,11,10,0.94) 100%); }

.hist-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.hist-head .h { display: flex; flex-direction: column; gap: 22px; }
.hist-head h2 { font-size: var(--fs-h2); max-width: 960px; }
.hist-head .body { max-width: 520px; }

/* thirty years and counting: counted up once when it first comes into view,
   held at 30+ for reduced motion and without the script */
.hist-count { display: flex; align-items: baseline; gap: 16px; margin-top: 4px; }
.hist-count .n {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--bone);
  margin: 0;
  font-variant-numeric: tabular-nums lining-nums;
}
.hist-count .l { color: var(--gold); }
/* the figure keeps its width while it counts, so the label never shifts */
.hist-num { display: inline-block; min-width: 2ch; text-align: right; }

.hist-spacer { flex: 1 1 auto; min-height: 32px; }

.hist-line {
  position: relative;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,162,74,0.15) 0%, rgba(239,233,223,0.95) 100%);
}

.timeline {
  position: relative;
  z-index: 2;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
}
/* each horizon is a band of light across one continuous horizon */
.timeline .item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 14px 26px 14px;
  border-left: 1px solid rgba(239,233,223,0.14);
  background: var(--band);
}
.timeline .item:first-child { border-left: 0; }
.timeline .item:nth-child(1) { --band: rgba(14,11,10,0.72); }
.timeline .item:nth-child(2) { --band: rgba(18,14,12,0.68); }
.timeline .item:nth-child(3) { --band: rgba(26,18,14,0.64); }
.timeline .item:nth-child(4) { --band: rgba(38,24,16,0.60); }
.timeline .item:nth-child(5) { --band: rgba(52,31,18,0.56); }
.timeline .item:nth-child(6) { --band: rgba(70,40,20,0.52); }
.timeline .item:nth-child(7) { --band: rgba(92,52,24,0.48); }
.timeline .item:nth-child(8) { --band: rgba(112,64,28,0.44); }
.timeline .item:nth-child(9) { --band: rgba(134,80,34,0.40); }
.timeline .item.next { border-left-color: rgba(239,233,223,0.4); }
.timeline .item.next .caption { color: var(--bone); }
.timeline .yr { font-size: 26px; font-weight: 300; color: var(--bone); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.timeline .yr.word { font-size: 17px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.timeline .caption { color: var(--gold); font-size: 11px; }
.timeline .body { font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--stone); }
.timeline .item.next .body { color: var(--bone); }

/* ---------- projects ---------- */

.projects { padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-direction: column; gap: var(--head-gap); background: var(--ink-2); }
.projects-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.projects-head .h { display: flex; flex-direction: column; gap: 22px; }
.projects-head h2 { font-size: var(--fs-h2); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
}
/* the title's link covers the whole card, so the card is one target */
.project-link { color: inherit; }
.project-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-link:focus-visible { outline: none; }
.project:has(.project-link:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.project .shot img { transition: transform 300ms var(--ease-out); }
.project::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--ui) var(--ease-out);
}
.project-more { align-self: flex-start; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .project:hover .shot img { transform: scale(1.04); transition-duration: 600ms; }
  .project:hover::before { transform: scaleX(1); transition-duration: 220ms; }
  .project:hover h3 { color: var(--gold); }
  .project:hover .project-more { color: var(--bone); border-color: var(--gold); }
  .project:hover .project-more svg { transform: translateX(4px); }
}
.project .shot { position: relative; height: 360px; overflow: hidden; background: var(--surface); }
/* keep the pit and the truck, lose the dark strip along the foot of the Sunrise Dam frame */
.project .shot img[src="/sunrisedam.jpg"] { height: calc(100% + 32px); object-position: 50% 0%; transform-origin: 50% 40%; }
.project .txt { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.project h3 { font-size: clamp(22px, 1.94vw, 28px); font-weight: 700; }
.project .caption { color: var(--gold); margin-top: -4px; }

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

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--maroon);
  padding: 72px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: var(--fs-h2-band); color: var(--bone); max-width: 620px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-mark { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); height: 260%; width: auto; opacity: 0.38; pointer-events: none; color: var(--maroon-deep); }
/* the three chevrons are thrown in from the left the first time the band
   comes into view: one after another, a touch past their mark, then home.
   The script only holds them back once it is ready to throw them, so
   without it, and under reduced motion, they simply stand in place. */
@media (prefers-reduced-motion: no-preference) {
  .cta-band.is-waiting .cta-mark path {
    opacity: 0;
    transform: translateX(-56px);
  }
  .cta-band.is-thrown .cta-mark path {
    opacity: 1;
    transform: none;
    transition: transform 900ms cubic-bezier(0.34, 1.36, 0.64, 1), opacity 260ms var(--ease-out);
  }
  .cta-band.is-thrown .cta-mark path:nth-child(2) { transition-delay: 120ms; }
  .cta-band.is-thrown .cta-mark path:nth-child(3) { transition-delay: 240ms; }
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 24px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
/* the hero's horizon motif returns as the footer's top rule, bled to both edges */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(201,162,74,0) 0%, rgba(201,162,74,0.9) 30%, rgba(201,162,74,0.9) 70%, rgba(201,162,74,0) 100%);
}

.foot-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 48px; }
.foot-brand { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; }
.foot-brand .mark { --mh: 36px; align-self: flex-start; }
.foot-desc {
  margin: 0;
  max-width: 360px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--bone);
  opacity: 0.8;
}
.foot-contact { display: flex; flex-direction: column; gap: 6px; }
.foot-contact span, .foot-contact a { font-size: 14px; line-height: 1.5; font-weight: 400; font-variant-numeric: lining-nums; }
.foot-contact span { color: var(--bone); opacity: 0.8; }
.foot-contact a { color: var(--gold); align-self: flex-start; }
@media (hover: hover) and (pointer: fine) {
  .foot-contact a:hover { color: var(--bone); }
}

/* the two credentials, drawn marks rather than supplied logos */
.foot-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gold-dim);
  padding: 10px 14px;
  transition: border-color var(--press) ease, transform var(--press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .badge:hover { border-color: var(--gold); }
}
.badge svg { flex: 0 0 auto; display: block; }
.badge .caption { color: var(--bone); letter-spacing: 0.01em; }

/* the panel: painting, link columns and base row. It bleeds to the right edge
   of the page on desktop, and to both edges on phones. */
.foot-links {
  position: relative;
  overflow: hidden;
  margin-right: calc(-1 * var(--pad));
  padding: 40px;
}
.foot-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

/* the painting: the reward for the return, revealed the moment the flyers dock */
.foot-paint {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}
.foot-paint img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}
.foot-scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 10, 0.82);
}
/* the second, narrow darkening: it sits only behind the text block, and lets
   the painting come up toward the base of the panel */
.foot-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14,11,10,0.62) 0%, rgba(14,11,10,0.28) 100%);
}

.foot-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0; }
.foot-col .caption {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  text-shadow: 0 1px 2px rgba(14, 11, 10, 0.9);
}
.foot-col a {
  color: var(--bone);
  font-size: 15px;
  font-weight: 400;
  line-height: 2.1;
  text-shadow: 0 1px 2px rgba(14, 11, 10, 0.9);
}
@media (hover: hover) and (pointer: fine) {
  .foot-col a:hover { color: var(--gold); }
}
.foot-base { position: relative; z-index: 1; grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(239, 233, 223, 0.25); padding-top: 24px; }
.foot-base .caption { color: var(--bone); opacity: 0.75; text-shadow: 0 1px 2px rgba(14, 11, 10, 0.9); }

/* ---------- dev preview marker ---------- */

.foot-base .dev-note { color: var(--gold); opacity: 1; }

/* ==================================================================
   >= 1280px : the three explicit hero line breaks, held on one line
   ================================================================== */

@media (min-width: 1280px) {
  .hero-h1 { white-space: nowrap; }
  .hero-h1 br { display: inline; }
  .hero-h1 .gold { display: inline; }
}

/* headroom so the three held lines never run into the gutter */
@media (min-width: 1280px) and (max-width: 1379px) {
  .hero-h1 { font-size: clamp(38px, 4.55vw, 70px); }
}

@media (min-width: 1200px) {
  .display { line-height: 0.96; }
  .hero-h1 { line-height: 0.96; }
}

/* ==================================================================
   1024px to 1199px : intermediate desktop
   ================================================================== */

@media (max-width: 1199px) {
  :root {
    --pad: 40px;
    --section: 88px;
    --section-sm: 72px;
    --head-gap: 44px;
  }

  .hero { min-height: clamp(680px, 100svh, 900px); }
  .hero-row { gap: 24px; }
  .hero-inner { padding-bottom: 56px; }
  .hero-foot { padding-bottom: 48px; }

  .proof-head { gap: 32px 48px; }
  .proof-fig { padding: 32px 24px 36px 24px; }

  .what-head { gap: 48px; }

  .svc h3 { left: 22px; right: 22px; bottom: 16px; }
  .svc-copy { padding: 16px 22px 22px 22px; }

  .client-row { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 40px; }
  .client-logos { gap: 16px; }

  .mining .copy { padding: 72px var(--pad) 72px 40px; }
  .mining { min-height: 0; }
  .mining .media { min-height: 480px; }

  .history { padding-top: 64px; }
  .timeline {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 190px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .timeline .item { scroll-snap-align: start; }
  .timeline:focus-visible { outline-offset: -2px; }

  .project .shot { height: 300px; }

  .jx { gap: 0 48px; }
  .diff { gap: 32px; padding-top: calc(56.29% - 64px); }
  .diff-head { gap: 44px; }
  .points .pt { padding: 24px; }
  .foot-grid { grid-template-columns: 1.4fr 3fr; gap: 32px; }
  .foot-inner { gap: 32px; }
}

/* ==================================================================
   below 1024px : the split blocks stack, image first
   ================================================================== */

@media (max-width: 1023px) {
  /* the seven desktop links stop fitting here, so the hamburger takes over */
  .nav-desktop { display: none; }
  .nav-mobile { display: flex; }

  /* the proof sheet: two by two, ruled between the columns and the rows */
  .proof-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-fig,
  .proof-fig:first-child,
  .proof-fig:last-child { padding: 28px 0 32px 0; border-left: 0; }
  .proof-fig:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .proof-fig:nth-child(n+3) { border-top: 1px solid var(--rule); }

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

  .mining .media { min-height: 0; height: 360px; }
  .mining .media .veil { background: linear-gradient(180deg, rgba(18,14,12,0) 55%, rgba(18,14,12,1) 100%); }

  .mining .copy { padding: 8px var(--pad) 64px var(--pad); gap: 24px; }

  .hist-head { flex-direction: column; align-items: flex-start; gap: 22px; }

  /* services become the stacked list from Mobile.dc.html */
  .services { grid-template-columns: minmax(0, 1fr); }
  .svc, .svc:first-child { border-left: 0; border-bottom: 1px solid var(--rule); }
  .svc:last-child { border-bottom: 0; }
  .svc-media { aspect-ratio: 16 / 9; }
  .svc .link { margin-top: 4px; min-height: 44px; }

  /* the journey stacks: the screen rides under the header, full width,
     and the stages scroll up beneath it */
  .jx { grid-template-columns: minmax(0, 1fr); }
  .jframe {
    top: var(--header-h);
    z-index: 2;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding: 12px var(--pad) 0 var(--pad);
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  .jscreen { aspect-ratio: 16 / 9; }
  .jrail { margin-top: 4px; }
  .jsteps { padding-top: 32px; }
  /* a rail jump lands the stage just under the riding screen */
  .jstage { min-height: 52vh; scroll-margin-top: calc(var(--header-h) + 56.25vw + 64px); }

  /* the four points: two up, then one */
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points .pt { padding: 24px; border-bottom: 1px solid var(--rule); }
  .points .pt:nth-child(2n) { padding-right: 0; border-right: 0; }
  .points .pt:nth-child(2n+1) { padding-left: 0; }
  .points .pt:nth-last-child(-n+2) { border-bottom: 0; }
  .diff-head { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
  .diff-proof { border-left: 0; border-top: 1px solid var(--gold-line); padding-left: 0; padding-top: 20px; }
  .diff-proof .l { max-width: none; }

  /* clients: statement above the 3 x 2 logo grid */
  .client-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  /* max-width 100% caps the cell, max-height caps the mark: aspect always kept */
  .client-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
  .client-logos img { max-width: 100%; }
  .client-logos img.l-anglogold { max-height: 40px; }
  .client-logos img.l-lynas     { max-height: 36px; }
  .client-logos img.l-fortescue { max-height: 24px; }
  .client-logos img.l-bhp       { max-height: 24px; }
  .client-logos img.l-riotinto  { max-height: 22px; }
  .client-logos img.l-mainroads { max-height: 26px; }
  .client-logos img.l-fremantle { max-height: 28px; }
}

/* ==================================================================
   below 768px : phone layout, per Mobile.dc.html
   ================================================================== */

@media (max-width: 767px) {
  :root {
    --pad: 20px;
    --header-h: 64px;
    --section: 64px;
    --section-sm: 56px;
    --head-gap: 28px;
  }

  .brand-div, .brand-line { display: none; }
  .brand .mark { --mh: 30px; }

  .hero { min-height: clamp(640px, 100svh, 860px); }
  .hero-frame-main > .hero-img { bottom: auto; height: 50%; object-position: 70% 50%; }
  .veil-a { background: none; }
  .veil-b { background: linear-gradient(180deg, rgba(14,11,10,0.7) 0%, rgba(14,11,10,0) 16%, rgba(14,11,10,0) 34%, rgba(14,11,10,0.9) 47%, rgba(14,11,10,1) 50%, rgba(14,11,10,1) 100%); }
  .hero-inner { padding-top: calc(var(--header-h) + 96px); padding-bottom: 48px; }
  .mining .media { height: 300px; }
  .hero-copy { gap: 22px; }
  .hero-row { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-lead { max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-actions .btn { align-self: stretch; }
  .hero-actions .link { align-self: flex-start; }
  .hero-foot { padding-bottom: 40px; }

  /* the sheet folds to two by two, the claim over its credential */
  .proof::after {
    background:
      linear-gradient(180deg, rgba(18,14,12,0.94) 0%, rgba(18,14,12,0.8) 100%),
      url("/salt.webp") 70% 50% / cover no-repeat;
  }
  .proof-head { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
  .proof-cred { white-space: normal; padding-top: 0; }
  .proof-n { font-size: 40px; }
  .proof-q { max-width: none; }
  .proof-l { font-size: 11px; letter-spacing: 0.01em; }

  .what-head { grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
  .what-head p { max-width: none; }

  .svc h3 { left: 20px; right: 20px; bottom: 16px; }
  .svc-copy { padding: 18px 20px 24px 20px; gap: 12px; }

  .client-statement { line-height: 1.2; }
  .client-also { font-size: 13px; font-weight: 400; }

  .mining .link,
  .hero-actions .link, .projects-head .link { min-height: 44px; }

  /* on a phone the lake leaves the back of the text and takes its own band
     between the heading and the records, at full strength, so first light
     is actually seen crossing it */
  .history { padding-top: 64px; padding-bottom: 48px; }
  .history > .veil, .hist-spacer { display: none; }
  .hist-head { order: 1; }
  .history > .hist-media { order: 2; position: relative; inset: auto; height: 260px; margin-top: 32px; }
  .history > .hist-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,10,0.9) 0%, rgba(14,11,10,0) 30%, rgba(14,11,10,0) 75%, rgba(14,11,10,0.6) 100%); }
  .hist-media .hist-img { object-position: 62% 50%; }
  .hist-line { order: 3; }
  .timeline { order: 4; }
  .hist-head .body { max-width: none; }
  .timeline { grid-auto-columns: 168px; }
  .timeline .item { padding: 16px 12px 22px 12px; gap: 6px; }
  .timeline .yr { font-size: 22px; }


  .jstage { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0 40px 0; min-height: 48vh; }
  .jstage:first-child { padding-top: 0; }
  .jnum { font-size: 28px; }
  .jbody .link { min-height: 44px; }
  .jfleet div { padding-right: 12px; }
  .jrail a { font-size: 11px; letter-spacing: 0; padding-bottom: 10px; }

  .diff { gap: 24px; }
  .diff { padding-top: calc(56.29% - 40px); }
  .points { grid-template-columns: minmax(0, 1fr); }
  .points .pt,
  .points .pt:nth-child(2n),
  .points .pt:nth-child(2n+1) { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .points .pt:last-child { border-bottom: 0; }
  .points .pt:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); padding-bottom: 22px; }
  .points .pt:last-child { border-bottom: 0; }
  .diff-foot { flex-direction: column; align-items: flex-start; gap: 22px; }
  .diff-foot .link { min-height: 44px; }

  .faq { gap: 22px; }
  .cta-band { padding: 48px var(--pad); gap: 28px; }
  .cta-band .btn { align-self: stretch; }
  .cta-mark { opacity: 0.28; right: -70px; }
  .faq-list summary { font-size: 16px; padding: 15px 0; min-height: 44px; gap: 16px; }
  .faq-a { padding: 0 0 20px 0; font-size: 14px; font-weight: 400; }

  .projects-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project .shot { height: 200px; }
  .project .txt { padding: 20px; gap: 10px; }
  .project-more { min-height: 44px; }

  .site-footer { padding-top: 20px; padding-bottom: 0; gap: 20px; }
  /* the brand stacks above; the panel goes full width, bleeding both edges */
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot-brand { padding-bottom: 0; }
  .foot-links {
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding: 24px;
  }
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .foot-col a { min-height: 44px; display: flex; align-items: center; }
  .foot-contact a,
  .foot-more a { min-height: 44px; display: inline-flex; align-items: center; }
  .foot-base { flex-direction: column; align-items: flex-start; gap: 12px; }

}

/* ==================================================================
   below 480px : keep 360px honest
   ================================================================== */

@media (max-width: 420px) {
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .foot-base .caption { text-wrap: balance; }
}

@media (max-width: 479px) {
  .hero-inner { padding-top: calc(var(--header-h) + 64px); }
  .client-logos { gap: 24px 16px; }
  .nav-mobile { gap: 8px; }
  .nav-mobile a.nav-cta { padding: 10px 12px; letter-spacing: 0.01em; }
}

/* ==================================================================
   motion: the authored moments, and only for visitors who want them
   ================================================================== */

@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }

  /* answers ease open where the browser can size to auto */
  .faq-list details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 240ms var(--ease-out), content-visibility 240ms allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* first light crosses the lake as the band scrolls through. Browsers without
   scroll timelines, and reduced motion, get the photograph fully lit. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hist-light {
      animation: first-light linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 62%;
    }
  }
}

@keyframes first-light {
  from { --lit: -24%; }
  to   { --lit: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  /* the press answer and the arrow are movement, so they stand down too */
  .btn:active,
  .link:active,
  .nav-desktop a.nav-cta:active,
  .nav-mobile a.nav-cta:active,
  .burger:active,
  .hero-toggle:active,
  .faq-list summary:active,
  .badge:active,
  .svc:active,
  .project:active { transform: none; }
  .btn:hover svg, .link:hover svg, .svc:hover .link svg { transform: none; }
  .btn:focus-visible svg, .link:focus-visible svg { transform: none; }
  .svc:hover .svc-media img { transform: none; }
  .project:hover .shot img, .project:hover .project-more svg { transform: none; }
}
