/* PT Tanra Power Resources — site styles
   Spacing uses the 8pt grid tokens (--s-*) from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--amber); color: var(--cta-ink); }

.mono { font-family: var(--mono); font-feature-settings: "tnum", "zero"; letter-spacing: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* focus: visible on every stop, 3px, teal reads >= 3:1 on both grounds */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.haul :focus-visible, .contact :focus-visible, .co-hero :focus-visible { outline-color: var(--amber); }

.skip {
  position: fixed; left: var(--gutter); top: var(--s-2); z-index: 200;
  padding: var(--s-3) var(--s-4); min-height: var(--tap);
  background: var(--amber); color: var(--cta-ink); font-weight: 600; border-radius: var(--radius-in);
  transform: translateY(-160%); transition: transform var(--t-fast) var(--ease);
}
.skip:focus-visible { transform: none; }

.wrap {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.section { padding-block: var(--section-y); position: relative; }

/* type roles */
.h-mega { font-size: var(--fs-mega); letter-spacing: -0.055em; line-height: 0.9; font-weight: 680; }
.h1 { font-size: var(--fs-h1); letter-spacing: -0.05em; line-height: 0.92; font-weight: 660; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.042em; line-height: 0.96; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.025em; line-height: 1.1; font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); max-width: 46ch; letter-spacing: -0.01em; }
.body { color: var(--ink-2); max-width: var(--readable); }
.label {
  font-family: var(--mono); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 500;
}
.accent { color: var(--accent); }

/* ---------- buttons: "haul" fill slides along the track, press answers on press ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--ink); --b-fill: var(--ink); --b-fill-fg: var(--ground); --b-line: var(--line-strong);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-5);
  border-radius: var(--radius-pill); border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform 100ms ease-out;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--b-fill);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t-mid) var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--b-fill-fg); border-color: var(--b-fill); }
.btn:active { transform: scale(0.97); transition-duration: 60ms; }
.btn .arr { width: 18px; height: 18px; flex: none; transition: transform var(--t-mid) var(--ease); }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(4px); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn--cta { --b-bg: var(--amber); --b-fg: var(--cta-ink); --b-line: var(--amber); --b-fill: var(--ink); --b-fill-fg: var(--ground); }
.btn--ghost-light { --b-fg: #fff; --b-line: rgba(255,255,255,0.42); --b-fill: #fff; --b-fill-fg: var(--navy-800); }
.btn--lg { min-height: 60px; padding: 0 var(--s-6); font-size: 1.0625rem; }
.btn--sm { min-height: var(--tap); padding: 0 var(--s-4); font-size: 0.9375rem; }

/* inline links: underline at rest, track sweeps on hover */
.link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.link:hover { text-decoration-color: currentColor; color: var(--accent); }

.arrow-link {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap);
  font-weight: 600; text-decoration: none; position: relative;
}
.arrow-link::after {
  content: ""; position: absolute; left: 0; right: 26px; bottom: 8px; height: 2px; background: currentColor;
  transform: scaleX(0.18); transform-origin: left; transition: transform var(--t-mid) var(--ease);
}
.arrow-link:hover::after, .arrow-link:focus-visible::after { transform: scaleX(1); }
.arrow-link svg { width: 18px; height: 18px; transition: transform var(--t-mid) var(--ease); }
.arrow-link:hover svg, .arrow-link:focus-visible svg { transform: translateX(5px); }

/* ---------- header (floating control layer: the only place with blur) ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.hdr.is-scrolled {
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-hidden { transform: translateY(-110%); }
.hdr__bar { height: var(--header-h); display: flex; align-items: center; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; min-height: var(--tap); margin-right: auto; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--plate); display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 1px var(--line);
}
.brand__mark img { width: 32px; height: 32px; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-weight: 700; letter-spacing: -0.02em; font-size: 0.98rem; }
.brand__name span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3);
  text-decoration: none; font-size: 0.9375rem; font-weight: 520; color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 10px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-mid) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"], .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav a.is-active::after { transform: scaleX(1); }

.tools { display: flex; align-items: center; gap: var(--s-2); }
.tool {
  min-width: var(--tap); height: var(--tap); padding: 0 var(--s-3); border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); font-family: var(--mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform 100ms ease-out;
}
.tool:hover { background: var(--ground-2); border-color: var(--line-strong); }
.tool:active { transform: scale(0.94); }
.tool svg { width: 18px; height: 18px; }
.tool .sun { display: none; }
:root[data-theme="dark"] .tool .sun { display: block; }
:root[data-theme="dark"] .tool .moon { display: none; }
.menu-btn { display: inline-flex; }

/* mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 99; background: var(--ground);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--s-5)) var(--gutter-r) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; flex-direction: column; gap: var(--s-5);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path var(--t-mid) var(--ease), visibility 0s linear var(--t-mid);
}
.sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--t-mid) var(--ease); }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  font-size: 1.9rem; font-weight: 620; letter-spacing: -0.035em; text-decoration: none; border-bottom: 1px solid var(--line);
}
.sheet nav a small { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; font-weight: 500; }
.sheet .btn { justify-content: center; }

@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 0; }
  .menu-btn { display: none; }
  .sheet { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--s-5)); padding-bottom: var(--s-7); }
.hero__grid { display: grid; gap: var(--s-6); align-items: end; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-5); }
.hero__kicker span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__kicker span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero__title { margin-left: -0.06em; }
.hero__title .ln { display: block; }
.hero__title .road-word { color: var(--accent); }
.hero__lead { margin-top: var(--s-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__media {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-800);
  max-height: 72vh;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.hero__media figcaption {
  position: absolute; left: var(--s-3); bottom: var(--s-3); right: var(--s-3);
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-2) var(--s-3); border-radius: var(--radius-in);
  background: rgba(6, 24, 43, 0.72); color: #eef3f8; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
}
.hero__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: var(--s-7);
  border-top: 1px solid var(--line-strong);
}
.hero__stats > div { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--line); }
.hero__stats > div:nth-child(odd) { padding-right: var(--s-3); }
.hero__stats > div:nth-child(even) { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.hero__stats dt { order: 2; }
.hero__stats dd { font-family: var(--mono); font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: var(--s-2); }
.hero__stats dd small { font-size: 0.45em; letter-spacing: 0; margin-left: 4px; color: var(--muted); }
.hero__stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hero__stats dt { font-size: 0.875rem; color: var(--muted); line-height: 1.35; }

@media (min-width: 744px) {
  .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__stats > div { border-left: 1px solid var(--line); padding: var(--s-5) var(--s-4) var(--s-4); border-bottom: 0; }
  .hero__stats > div:first-child { border-left: 0; padding-left: 0; }
  .hero__stats > div:nth-child(even), .hero__stats > div:nth-child(odd) { padding-left: var(--s-4); }
  .hero__stats > div:first-child { padding-left: 0; }
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-7)); }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); }
  .hero__media { aspect-ratio: 4 / 5; }
}

/* ---------- section heads ---------- */
.shead { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.shead .lead { max-width: 52ch; }
@media (min-width: 1024px) {
  .shead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--s-7); }
  .shead--stack { grid-template-columns: 1fr; }
}

/* ---------- group structure ---------- */
.group { background: var(--ground-2); }
.tree { position: relative; display: grid; gap: var(--s-4); }
.tree__lines { display: none; }
.node {
  position: relative; z-index: 1; display: grid; gap: var(--s-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4);
}
.node--root { grid-template-columns: auto 1fr; align-items: center; gap: var(--s-4); }
.plate {
  background: var(--plate); border-radius: var(--radius-in); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
  padding: var(--s-2) var(--s-3); height: 72px; box-shadow: inset 0 0 0 1px rgba(10,37,64,0.08);
}
.plate img { height: 100%; width: auto; object-fit: contain; }
.node > .plate { width: fit-content; max-width: 100%; }
.node--root .plate img { height: auto; width: 100%; }
.node--root .plate { width: 96px; height: 96px; padding: var(--s-2); }
.node h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; }
.node p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; }
.rails { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 var(--s-3);
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; font-weight: 600; text-transform: uppercase;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip--ni { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip--coal { color: var(--ink); }
.node .arrow-link { margin-top: auto; }
/* company cards: the profile link is a real button, full width at the foot of the card */
.node .node__go { margin-top: auto; width: 100%; justify-content: space-between; }
/* the hover fill takes each company's colour (same in light and dark) */
.node__go[href="tdj.html"] { --b-fill: #8a560c; --b-fill-fg: #ffffff; }
.node__go[href="dms.html"] { --b-fill: #0b4d2c; --b-fill-fg: #ffd800; }
.node__go[href="mbe.html"] { --b-fill: #c9a15a; --b-fill-fg: #111114; }
.commod { display: flex; gap: var(--s-3); }
.commod > div {
  flex: 1; border-radius: var(--radius-in); padding: var(--s-3) var(--s-4); font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between; min-height: var(--tap);
}
.commod .ni { background: #6fd3f0; color: #062038; }
.commod .coal { background: #111418; color: #f2f2f2; }
.commod small { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; opacity: 0.8; }
.tree__cos { display: grid; gap: var(--s-4); }

@media (min-width: 1024px) {
  .tree { grid-template-rows: auto auto auto; gap: 0; }
  .tree__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
  .tree__lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .tree__lines .flow { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 9; }
  .node--root { justify-self: center; width: min(520px, 100%); margin-bottom: var(--s-9); }
  .commod { justify-content: center; gap: var(--s-9); margin-block: var(--s-8); }
  .commod > div { flex: 0 0 300px; }
  .tree__cos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
}

/* ---------- haul road (signature) ---------- */
.haul { background: var(--stage); color: var(--stage-ink); --line: rgba(238,243,248,0.14); --muted: #9fb2c6; --ink-2: #cbd7e3; --accent: #35c2cf; }
.haul__pin { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + var(--s-4)); padding-bottom: var(--s-5); }
.haul__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); }
.haul__head h2 { max-width: 14ch; }
.counter { text-align: left; }
.counter__v { font-family: var(--mono); font-size: clamp(1.9rem, 4.6vw, 4.2rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.counter__v small { font-size: 0.4em; letter-spacing: 0; color: var(--amber); margin-left: 6px; }
.counter .label { display: block; margin-top: var(--s-2); }
.haul__stage { flex: 1; display: grid; gap: var(--s-4); margin-top: var(--s-5); min-height: 0; grid-template-rows: auto 1fr; }
.stations { position: relative; min-height: 168px; }
.station { position: absolute; inset: 0 0 auto 0; }
.station .label { color: var(--amber); }
.station h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin: var(--s-2) 0 var(--s-3); }
.station p { color: var(--ink-2); max-width: 44ch; }
.haul__map { position: relative; min-height: 0; }
.haul__map svg { width: 100%; height: 100%; overflow: visible; }
.map-portrait { display: block; }
.map-land { display: none; }
.haul__photo {
  display: none; position: relative; border-radius: var(--radius); overflow: hidden; background: #000;
}
.haul__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.haul__photo img.is-on { opacity: 1; }
.haul__photo figcaption {
  position: absolute; left: var(--s-2); bottom: var(--s-2); padding: 6px var(--s-3); border-radius: var(--radius-in);
  background: rgba(3,12,22,0.72); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
}
.steps { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.steps button {
  flex: 1; min-height: var(--tap); border-top: 2px solid rgba(238,243,248,0.18); text-align: left; padding-top: var(--s-2);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.steps button.is-on { color: #fff; border-top-color: var(--amber); }
.steps button:hover { color: #fff; }

/* map pieces */
.m-contour { fill: none; stroke: rgba(238,243,248,0.07); stroke-width: 1; }
.m-sea { fill: #0b3a5c; }
.m-wave { fill: none; stroke: rgba(111,211,240,0.22); stroke-width: 1.2; stroke-linecap: round; }
.m-pit { fill: none; stroke: rgba(193,128,31,0.55); stroke-width: 1.4; }
.m-pitfill { fill: rgba(140,86,40,0.28); }
.m-road-base { fill: none; stroke: rgba(238,243,248,0.1); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.m-road { fill: none; stroke: url(#roadGrad); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.m-road-p { fill: none; stroke: url(#roadGradP); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.m-lane { fill: none; stroke: rgba(238,243,248,0.4); stroke-width: 1.4; stroke-dasharray: 5 11; stroke-linecap: round; }
.m-jetty { fill: #8fa3b8; }
.m-barge { fill: #1d2c3c; stroke: #c1801f; stroke-width: 1.5; }
.m-ore { fill: #8c5628; }
.m-stop circle.o { fill: var(--stage); stroke: rgba(238,243,248,0.5); stroke-width: 2; transition: stroke var(--t-mid) var(--ease); }
.m-stop circle.i { fill: rgba(238,243,248,0.5); transition: fill var(--t-mid) var(--ease); }
.m-stop.is-on circle.o { stroke: var(--amber); }
.m-stop.is-on circle.i { fill: var(--amber); }
.m-stop text { fill: #dfe8f1; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }
.m-stop text.n { fill: var(--amber); font-size: 11px; }
.m-marker .glow { fill: rgba(245,176,0,0.2); }
.m-marker .bolt { fill: var(--amber); stroke: #3a2a00; stroke-width: 1; }

@media (min-width: 1024px) {
  .haul__head { align-items: end; }
  .counter { text-align: right; }
  .haul__stage {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: 1fr auto; gap: var(--s-4) var(--s-7);
  }
  .stations { grid-column: 1; grid-row: 1; min-height: 0; }
  .station { top: auto; bottom: 0; }
  .haul__map { grid-column: 2; grid-row: 1 / span 2; }
  .map-portrait { display: none; }
  .map-land { display: block; }
  .haul__photo { display: block; grid-column: 1; grid-row: 2; aspect-ratio: 16 / 9; max-height: 30vh; width: 100%; }
  .steps { grid-column: 1; }
}
/* static variant (reduced motion / no JS): every station readable, map fully drawn */
.haul.is-static .haul__pin { min-height: 0; }
.haul.is-static .stations { min-height: 0; display: grid; gap: var(--s-6); }
.haul.is-static .station { position: static; transform: none; }
.haul.is-static .haul__stage { grid-template-rows: auto; }
.haul.is-static .haul__map { min-height: 420px; }
.haul.is-static .steps { display: none; }
.haul.is-static .haul__photo img { opacity: 0; }
.haul.is-static .haul__photo img:first-of-type { opacity: 1; }

/* ---------- proof ---------- */
.records { border-top: 1px solid var(--line-strong); }
.records caption { text-align: left; }
.rec { width: 100%; border-collapse: collapse; }
.rec thead { display: none; }
.rec tr { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); position: relative; }
.rec td, .rec th { padding: 0; text-align: left; font-weight: inherit; }
.rec .c-name { grid-column: 1; font-size: 1.2rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1.2; }
.rec .c-vol { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-family: var(--mono); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.rec .c-vol small { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.rec .c-scope { grid-column: 1; color: var(--ink-2); font-size: 0.95rem; }
.rec .c-when, .rec .c-where { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.rec .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: var(--s-2); }
.rec .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 4px; transform-origin: left; }
.rec .bar i.alt { background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 12px); width: 100%; opacity: 0.8; }
.rec tfoot tr { border-bottom: 0; padding-top: var(--s-5); }
.rec tfoot .c-name { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); align-self: end; }
.rec tfoot .c-vol { font-size: clamp(1.6rem, 3.6vw, 2.8rem); letter-spacing: -0.05em; color: var(--accent); }
@media (min-width: 1024px) {
  .rec thead { display: table-header-group; }
  .rec thead tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--line-strong); }
  .rec thead th { font-family: var(--mono); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
  .rec tr { grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.6fr) minmax(0, 1.5fr) minmax(0, 1.7fr) minmax(0, 2fr); align-items: baseline; gap: var(--s-5); padding: var(--s-5) 0; }
  .rec .c-name, .rec .c-scope, .rec .c-when, .rec .c-where, .rec .c-vol { grid-column: auto; grid-row: auto; }
  .rec .c-when, .rec .c-where { font-size: 0.85rem; }
  .rec tbody tr::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform var(--t-mid) var(--ease);
  }
  .rec tbody tr:hover::after { transform: scaleX(1); }
  .rec .bar { grid-column: 1 / -1; }
}

.fleet { margin-top: var(--s-9); display: grid; gap: var(--s-6); }
.fleet__legend { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.fleet__legend span { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 0.9rem; color: var(--ink-2); }
.fleet__legend i { width: 14px; height: 14px; border-radius: 4px; }
.sw-tdj { background: #8a560c; }
.sw-dms { background: #119a6b; }
.sw-mbe { background: #2e5d8c; }
.fbars { display: grid; gap: var(--s-4); }
.fbar { display: grid; grid-template-columns: 7.5rem 1fr 3.5rem; align-items: center; gap: var(--s-3); }
.fbar dt { font-size: 0.95rem; font-weight: 560; letter-spacing: -0.01em; }
.fbar dt small { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); font-weight: 400; letter-spacing: 0.02em; }
.fbar__track { display: flex; height: 28px; border-radius: 6px; overflow: hidden; background: var(--line); }
.fbar__track span { display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: #fff; min-width: 0; transform-origin: left; }
.fbar__track .t { background: #8a560c; width: calc(var(--t) / 61 * 100%); }
.fbar__track .d { background: #0d7f58; width: calc(var(--d) / 61 * 100%); }
.fbar__track .m { background: #2e5d8c; width: calc(var(--m) / 61 * 100%); }
.fbar dd { font-family: var(--mono); font-size: 1.05rem; font-weight: 600; text-align: right; letter-spacing: -0.02em; }
.fleet__total { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.fleet__total b { font-family: var(--mono); font-size: clamp(3rem, 8vw, 6rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }
.note { font-size: 0.82rem; color: var(--muted); max-width: var(--readable); line-height: 1.45; }
@media (min-width: 1024px) {
  .fleet { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: start; }
  .fbar { grid-template-columns: 10rem 1fr 4rem; }
}

/* ---------- companies ---------- */
.cos { display: grid; gap: var(--s-4); }
.co {
  position: relative; display: grid; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; isolation: isolate;
}
.co__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.co__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.co:hover .co__img img { transform: scale(1.045); }
.co__body { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.co__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.co .plate { height: 56px; width: auto; max-width: 180px; }
.co h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.co p { color: var(--ink-2); max-width: 46ch; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-2); }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: 0.78rem; color: var(--muted); order: 2; }
.facts dd { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.co__go {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); font-weight: 600; margin-top: var(--s-2);
}
.co__go svg { width: 18px; height: 18px; transition: transform var(--t-mid) var(--ease); }
.co:hover .co__go svg, .co:focus-visible .co__go svg { transform: translateX(6px); }
.co::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--k, var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-mid) var(--ease);
}
.co:hover::after, .co:focus-visible::after { transform: scaleX(1); }
.co--tdj { --k: #c1801f; }
.co--dms { --k: #119a6b; }
.co--mbe { --k: #c9a15a; background: #0f1012; color: #f3efe6; border-color: #2a2a2e; }
.co--mbe p, .co--mbe .facts dt { color: #c9c4b8; }
.co--mbe .co__img { background: radial-gradient(120% 90% at 80% 10%, #3a3326 0%, #121214 60%); display: grid; place-items: center; }
.co--mbe .co__img .coal { font-family: var(--mono); font-size: clamp(3.5rem, 9vw, 7rem); letter-spacing: -0.06em; color: #c9a15a; font-weight: 600; line-height: 1; }
.co--mbe .co__img .coal span { display: block; font-size: 0.16em; letter-spacing: 0.2em; color: #a9a294; text-align: center; margin-top: var(--s-2); }
@media (min-width: 744px) {
  .cos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co--mbe { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .co--mbe .co__img { aspect-ratio: auto; min-height: 260px; }
}
@media (min-width: 1024px) {
  .cos { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .co--tdj .co__img { aspect-ratio: 16 / 9; }
  .co--dms .co__img { aspect-ratio: 4 / 3.3; }
}

/* ---------- values / vision ---------- */
.values { display: grid; gap: var(--s-8); }
.words { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.word { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.word b { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 660; letter-spacing: -0.055em; line-height: 0.95; }
.word span { color: var(--ink-2); max-width: 40ch; }
.vision blockquote { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2.2rem); line-height: 1.22; letter-spacing: -0.025em; font-weight: 520; max-width: 30ch; }
.vision blockquote::before { content: ""; display: block; width: 48px; height: 4px; background: var(--amber); border-radius: 4px; margin-bottom: var(--s-5); }
.missions { counter-reset: m; margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.missions li { position: relative; padding-left: var(--s-7); color: var(--ink-2); max-width: 60ch; }
.missions li::before { counter-increment: m; content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 0.1em; font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
@media (min-width: 1024px) {
  .values { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-8); align-items: start; }
}

/* ---------- photo band + contact ---------- */
.contact { position: relative; color: #f3f6f9; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -2; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,14,26,0.92) 0%, rgba(4,14,26,0.74) 45%, rgba(4,14,26,0.94) 100%); }
.contact .lead, .contact .body { color: #d4dee8; }
.contact .label { color: #a9bccf; }
.contact h2 { max-width: 13ch; }
.contact__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.cards { display: grid; gap: var(--s-3); margin-top: var(--s-8); }
.card {
  border: 1px solid rgba(238,243,248,0.18); border-radius: var(--radius); padding: var(--s-5);
  background: rgba(6,24,43,0.55); display: grid; gap: var(--s-2); align-content: start;
}
.card h3 { font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.2; }
.card a { display: inline-flex; align-items: center; min-height: var(--tap); word-break: break-word; }
.card address { font-style: normal; color: #d4dee8; }
@media (min-width: 744px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* contact cards: email + WhatsApp on top, the four offices below (2 x 2, one row on wide screens) */
@media (min-width: 1024px) { .cards.cards--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .cards.cards--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--6 > .card:nth-child(-n+2) { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: end; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- footer ---------- */
.ftr { padding: var(--s-7) 0 calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.ftr__grid { display: grid; gap: var(--s-6); }
.ftr nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.ftr nav a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; color: var(--ink-2); font-size: 0.95rem; }
.ftr nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
.ftr small { color: var(--muted); font-size: 0.82rem; line-height: 1.5; display: block; max-width: 70ch; }
@media (min-width: 1024px) { .ftr__grid { grid-template-columns: auto 1fr auto; align-items: center; } }

/* ---------- company pages ---------- */
.co-hero { position: relative; color: #f3f6f9; background: var(--navy-900); overflow: hidden; isolation: isolate; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--s-8)); padding-bottom: var(--s-8); }
.co-hero__bg { position: absolute; inset: 0; z-index: -2; }
.co-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.co-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,14,26,0.94) 0%, rgba(4,14,26,0.8) 50%, rgba(4,14,26,0.45) 100%); }
.co-hero .plate { width: fit-content; height: 72px; margin-bottom: var(--s-6); }
.co-hero .lead { color: #d4dee8; }
.co-hero .label { color: #b4c4d4; }
.co-hero .role { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); padding: 6px var(--s-3); border-radius: var(--radius-pill); background: var(--co); color: #fff; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
body[data-co="dms"] .co-hero .role { background: #ffd800; color: #0b2a17; }
body[data-co="mbe"] .co-hero .role { background: #c9a15a; color: #17130a; }
.co-hero h1 { max-width: 16ch; }
.crumbs { display: flex; gap: var(--s-2); align-items: center; margin-bottom: var(--s-5); font-family: var(--mono); font-size: 0.78rem; color: #b4c4d4; }
.crumbs a { min-height: var(--tap); display: inline-flex; align-items: center; color: #e6edf4; }
.kv { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.kv > div { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 0.9rem; color: var(--muted); }
.kv dd { font-family: var(--mono); font-weight: 560; letter-spacing: -0.01em; }
@media (min-width: 744px) { .kv > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; gap: var(--s-5); } }
.split { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; } }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); background: var(--surface); display: grid; gap: var(--s-3); align-content: start; }
.svc svg { width: 32px; height: 32px; color: var(--co); }
:root[data-theme="dark"] body[data-co="tdj"] .svc svg { color: #e0a34a; }
.svc b { font-size: 1.1rem; letter-spacing: -0.015em; }
.svc span { font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ph { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s-5); color: var(--ink-2); background: color-mix(in srgb, var(--amber) 8%, transparent); }
.ph .label { color: var(--ink-2); display: block; margin-bottom: var(--s-2); }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; align-content: center; gap: var(--s-5); padding-top: var(--header-h); }
.lost .h-mega { font-family: var(--mono); font-weight: 500; }

/* ---------- reveal states (only when JS + motion are available) ---------- */
html.has-motion [data-reveal] { opacity: 0; transform: translateY(24px); }
html.has-motion [data-reveal="fade"] { transform: none; }
html.has-motion .split-line { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* page curtain */
.curtain { position: fixed; inset: 0; z-index: 300; background: var(--navy-800); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
.curtain::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: clamp(120px, 14vw, 200px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .btn::before { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .hdr.is-scrolled { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__media figcaption, .haul__photo figcaption { background: #06182b; }
}

/* pinned stage is exactly one screen so the map row (1fr) always fits */
html.has-motion .haul:not(.is-static) .haul__pin { height: 100vh; height: 100svh; }
@media (max-width: 743.98px) {
  .commod small { display: none; }
  .haul__head h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .station h3 { font-size: 1.45rem; }
  .station p { font-size: 0.95rem; }
}

/* company hero: photo sits on the trailing side, copy on the leading side */
.co-hero { min-height: min(92svh, 860px); display: flex; align-items: flex-end; }
.co-hero > .wrap { position: relative; }
.co-hero__bg img { object-position: 50% 40%; }
.co-hero__bg--coal { display: grid; place-items: center end; padding-right: 6vw; background: radial-gradient(90% 80% at 85% 20%, #3a3326 0%, #111114 65%); }
.co-hero__bg--coal span { font-family: var(--mono); font-weight: 600; font-size: clamp(5rem, 18vw, 16rem); letter-spacing: -0.07em; color: rgba(201,161,90,0.16); line-height: 1; }
body[data-co="mbe"] .co-hero { background: #111114; }
body[data-co="mbe"] .co-hero::before { background: linear-gradient(90deg, rgba(17,17,20,0.96) 0%, rgba(17,17,20,0.75) 55%, rgba(17,17,20,0.2) 100%); }
.facts--hero { margin-top: var(--s-6); gap: var(--s-3) var(--s-7); }
.facts--hero dd { font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: #fff; font-weight: 500; letter-spacing: -0.04em; }
.facts--hero dt { color: #b4c4d4; }
@media (min-width: 1024px) {
  .co-hero__bg { left: 42%; }
  .co-hero::before { background: linear-gradient(90deg, rgba(4,14,26,1) 0%, rgba(4,14,26,0.96) 42%, rgba(4,14,26,0.55) 70%, rgba(4,14,26,0.25) 100%); }
  body[data-co="mbe"] .co-hero__bg { left: 0; }
}

/* header over a dark company hero: light ink until it frosts */
body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) { color: #f3f6f9; }
body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) .nav a { color: rgba(243,246,249,0.78); }
body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) .nav a:hover, body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) .nav a[aria-current="page"] { color: #fff; }
body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) .nav a::after { background: var(--amber); }
body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) .brand__name span { color: #b4c4d4; }
body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) .tool { border-color: rgba(243,246,249,0.3); }
body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) .tool:hover { background: rgba(243,246,249,0.12); }
@media (min-width: 1024px) { .split .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023.98px) {
  .co-hero::before { background: linear-gradient(180deg, rgba(4,14,26,0.6) 0%, rgba(4,14,26,0.9) 45%, rgba(4,14,26,0.97) 100%); }
}

/* full logo lockup (mark + wordmark, from the supplied artwork) */
.brand__logo { height: 40px; width: auto; display: block; }
.brand__logo.dk { display: none; }
:root[data-theme="dark"] .brand__logo.lt { display: none; }
:root[data-theme="dark"] .brand__logo.dk { display: block; }
body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) .brand__logo.lt { display: none; }
body[data-co]:not(.menu-open) .hdr:not(.is-scrolled) .brand__logo.dk { display: block; }
.ftr .brand__logo { height: 48px; }
@media (min-width: 1024px) { .brand__logo { height: 44px; } }
.node--root .plate { width: 112px; height: 112px; padding: var(--s-2); }

/* logos: white versions where the colour artwork would disappear on dark */
.plate img.dk { display: none; }
:root[data-theme="dark"] .plate { background: transparent; box-shadow: none; }
:root[data-theme="dark"] .plate img.lt { display: none; }
:root[data-theme="dark"] .plate img.dk { display: block; }
.co-hero .plate { background: transparent; box-shadow: none; padding-left: 0; }
.co-hero .plate img.lt { display: none; }
.co-hero .plate img.dk { display: block; }
:root[data-theme="dark"] .co--mbe .plate, .co-hero .plate:has(img[src*="mbe"]) { background: transparent; }

/* jury pass 1 fixes */
@media (min-width: 1024px) {
  .cos .co__img, .co--tdj .co__img, .co--dms .co__img { aspect-ratio: 16 / 10; }
}
.map-portrait .m-stop text { font-size: 17px; }
.map-portrait .m-stop text.n { font-size: 14px; }

/* figures: Geist with tabular digits instead of Geist Mono (owner preference) */
.num, .hero__stats dd, .counter__v, .rec .c-vol, .rec .c-when, .rec .c-where,
.fbar dd, .fbar__track span, .facts dd, .kv dd, .fleet__total b, .lost .h-mega {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.hero__stats dd, .counter__v, .fleet__total b, .rec tfoot .c-vol { font-weight: 620; letter-spacing: -0.045em; }
.facts dd { font-weight: 620; letter-spacing: -0.03em; }
.facts--hero dd { font-weight: 600; letter-spacing: -0.035em; }
.rec .c-vol { font-weight: 620; letter-spacing: -0.02em; }
.rec .c-vol small { font-family: var(--sans); letter-spacing: 0; }
.rec .c-when, .rec .c-where { font-size: 0.9rem; letter-spacing: 0; color: var(--ink-2); }
.kv dd { font-weight: 560; letter-spacing: -0.005em; }
.fbar dd { font-weight: 650; }

/* logos sit straight on the card: no plate outline or fill */
.plate { box-shadow: none !important; background: transparent !important; padding-left: 0; padding-right: 0; }

/* MBE now uses a real site photo like the other companies */
@media (min-width: 1024px) { body[data-co="mbe"] .co-hero__bg { left: 42%; } }
body[data-co="mbe"] .co-hero::before { background: linear-gradient(90deg, rgba(17,17,20,1) 0%, rgba(17,17,20,0.95) 42%, rgba(17,17,20,0.55) 70%, rgba(17,17,20,0.25) 100%); }
@media (max-width: 1023.98px) { body[data-co="mbe"] .co-hero::before { background: linear-gradient(180deg, rgba(17,17,20,0.6) 0%, rgba(17,17,20,0.9) 45%, rgba(17,17,20,0.97) 100%); } }
.co--mbe .co__img img { object-position: 50% 55%; }

/* ============ UX pass (Nov 2026) ============ */

/* group: company cards carry their own photo + facts (merged with the old companies section) */
.node--co { padding-top: 0; overflow: hidden; }
.node__img { margin: 0 calc(-1 * var(--s-4)); aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-800); }
.node__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.node--co:hover .node__img img { transform: scale(1.04); }
.node--co .plate { margin-top: var(--s-2); height: 56px; }
.node--co .facts { margin-top: 0; }
.node--co .facts dd { font-size: 1.1rem; }

/* track record: legend for the bars, no decorative hover line */
.rec tbody tr::after { display: none !important; }
.rec__key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-4); font-size: 0.875rem; color: var(--muted); }
.rec__key i { display: inline-block; width: 28px; height: 4px; border-radius: 4px; flex: none; }
.rec__key .k-bar { background: linear-gradient(90deg, var(--teal), var(--green)); }
.rec__key .k-dash { background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 12px); margin-left: var(--s-3); }

/* company pages: track-record summary instead of a repeated table */
.rec-sum { display: grid; gap: var(--s-5); }
.rec-sum__n { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 640; letter-spacing: -0.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: var(--s-4); }
.rec-sum__n span { font-size: 0.4em; letter-spacing: 0; color: var(--muted); }
@media (min-width: 1024px) { .rec-sum { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; } }

/* haul road: a cue that the section is driven by scrolling */
.haul__cue { display: inline-flex; align-items: center; gap: var(--s-2); width: 100%; margin-top: var(--s-1);
  font-size: 0.875rem; color: var(--amber); transition: opacity var(--t-mid) var(--ease); }
.haul__cue svg { width: 18px; height: 18px; animation: cue 1.6s var(--ease) infinite; }
.haul__cue.is-gone { opacity: 0; }
.haul.is-static .haul__cue { display: none; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .haul__cue svg { animation: none; } }

/* vision + values: compact two-column block */
.values { gap: var(--s-7); }
.vision blockquote { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.missions { margin-top: var(--s-5); gap: var(--s-2); }
.word { padding: var(--s-4) 0; gap: var(--s-1); }
.word b { font-size: clamp(1.75rem, 3vw, 2.6rem); }
@media (min-width: 1024px) { .word { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; gap: var(--s-5); } }

/* ---------- mobile ---------- */
@media (max-width: 1023.98px) {

  /* hero: photo first, then the headline */
  .hero__media { order: -1; aspect-ratio: 4 / 3; max-height: 44svh; }
  .hero__grid { gap: var(--s-5); }
  .hero { padding-bottom: var(--s-5); }
  .hero__stats { margin-top: var(--s-6); }
  .hero__cta { margin-top: var(--s-5); }

  /* haul road: the step photo returns as a strip */
  .station__thumb { display: block; float: right; width: 76px; height: 76px; margin: 0 0 var(--s-2) var(--s-3); border-radius: var(--radius-in); object-fit: cover; }
  .haul__cue { font-size: 0.8125rem; }

}
@media (max-width: 1023.98px) and (max-height: 700px) { .station__thumb { width: 56px; height: 56px; } }

.sheet__tools { display: flex; gap: var(--s-2); }
/* header: on narrow portrait phones only logo + menu (language and theme live in the menu);
   from 600px wide (landscape phones, tablets) the two toggles sit in the header again */
@media (max-width: 599.98px) { .hdr .tools [data-lang-toggle], .hdr .tools [data-theme-toggle] { display: none; } }
/* the menu sheet can always scroll, so its toggles and WhatsApp stay reachable on short screens */
.sheet { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* short screens (phones in landscape): a compact, two-column menu that fits without scrolling */
@media (max-width: 1023.98px) and (max-height: 600px) {
  .sheet { gap: var(--s-3); padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--s-2)); padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); }
  .sheet nav a { min-height: 48px; font-size: 1.35rem; }
  .sheet .btn--lg { min-height: 52px; }
}
@media (min-width: 600px) and (max-width: 1023.98px) and (max-height: 600px) {
  .sheet nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
  .sheet { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter-r), env(safe-area-inset-right, 0px)); }
}
.tool--wide { flex: 1; height: 48px; gap: var(--s-2); font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0; font-weight: 560; }
.tool--wide [data-lang-label] { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

/* ---------- laptop with a short screen ---------- */
@media (min-width: 1024px) and (max-height: 820px) {
  .haul__photo { display: none !important; }
  .haul__stage { grid-template-rows: 1fr auto; }
  .station h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
}

.station__thumb { display: none; }
@media (max-width: 1023.98px) { .station__thumb { display: block; } .haul.is-static .station__thumb { display: block; } }

.curtain.is-on::after { background-image: url("../assets/logos/tpr-mark-dark.webp"); }
.hero__media picture { display: contents; }

/* ---------- haul map: real sites (mine, haul road, main road, port) ---------- */
.m-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.m-land { fill: #183b31; }
.m-forest { fill: url(#mTrees); }
.m-sea { fill: url(#mSea); }
.m-wave { stroke: rgba(160,220,240,0.28); }
.m-clear { fill: #6e3f24; }
.m-bench { stroke: #c78c5c; stroke-width: 1; stroke-opacity: .55; }
.m-bench.b1 { fill: #7c4628; } .m-bench.b2 { fill: #8d522f; } .m-bench.b3 { fill: #9d5f37; } .m-bench.b4 { fill: #ab6b3f; }
.m-water { fill: #2d6b78; stroke: #4f97a4; stroke-width: .8; }
.m-pile { fill: url(#mPile); stroke: #5a361b; stroke-width: .6; }
.m-yard { fill: #8f7a5e; stroke: #b3a07f; stroke-width: 1; }
.m-pier { fill: #9aa3ad; stroke: #c9d0d6; stroke-width: 1; }
.m-hull { fill: url(#mHull); stroke: #c1801f; stroke-width: 1.4; }
.m-deck { fill: #2a2f36; }
.m-ore { fill: #8c5628; }
.m-tug { fill: #e9edf1; stroke: #b02b2b; stroke-width: 1.2; }
.m-tug-cab { fill: #24415c; }
.m-towline { fill: none; stroke: rgba(233,237,241,.6); stroke-width: .8; stroke-dasharray: 2 2; }
.m-haul { fill: none; stroke: #8a5634; stroke-width: 17; stroke-linecap: round; }
.m-haul-tex { fill: none; stroke: #a56b43; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 3 7; opacity: .7; }
.m-main-edge { fill: none; stroke: #e2d6bd; stroke-width: 23; stroke-linecap: round; }
.m-main { fill: none; stroke: #a99673; stroke-width: 19; stroke-linecap: round; }
.m-lane { stroke: rgba(250,246,236,.85); stroke-width: 1.4; stroke-dasharray: 7 9; }
.m-road, .m-road-p { stroke-width: 4; opacity: .95; }
.m-stop circle.o { fill: #10261f; }
.m-marker .glow { fill: rgba(245,176,0,0.22); stroke: rgba(245,176,0,0.55); stroke-width: 1.2; }
.map-portrait .m-haul { stroke-width: 14; } .map-portrait .m-haul-tex { stroke-width: 7; }
.map-portrait .m-main-edge { stroke-width: 19; } .map-portrait .m-main { stroke-width: 15; }
.m-stop text { paint-order: stroke; stroke: #0c211b; stroke-width: 3.5px; stroke-linejoin: round; }

/* ---------- phones: the step photo is a full-width panel with the copy over it ---------- */
@media (max-width: 1023.98px) {
  .haul:not(.is-static) .haul__pin { padding-top: calc(var(--header-h) + var(--s-2)); padding-bottom: var(--s-3); }
  .haul:not(.is-static) .haul__head h2 { font-size: 1.5rem; }
  .haul:not(.is-static) .counter__v { font-size: 1.75rem; }
  .haul:not(.is-static) .haul__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "media" "map" "steps";
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: var(--s-3); margin-top: var(--s-3);
  }
  .haul:not(.is-static) .haul__photo {
    grid-area: media; display: block; height: 36svh; aspect-ratio: auto; border-radius: 0;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter-r));
  }
  .haul:not(.is-static) .haul__photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(4,18,33,0.05) 0%, rgba(4,18,33,0.1) 30%, rgba(4,18,33,0.78) 68%, var(--stage) 100%);
  }
  .haul:not(.is-static) .haul__photo figcaption { display: none; }
  .haul:not(.is-static) .stations { grid-area: media; align-self: stretch; position: relative; z-index: 2; min-height: 0 !important; }
  .haul:not(.is-static) .station { top: auto; bottom: var(--s-2); }
  .haul:not(.is-static) .station h3 { font-size: 1.35rem; margin: var(--s-1) 0 var(--s-2); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
  .haul:not(.is-static) .station p { font-size: 0.9rem; line-height: 1.4; color: #e4ecf3; }
  .haul:not(.is-static) .station__thumb { display: none; }
  .haul:not(.is-static) .haul__map { grid-area: map; }
  .haul:not(.is-static) .steps { grid-area: steps; margin-top: 0; }
}
@media (max-width: 1023.98px) and (max-height: 720px) { .haul:not(.is-static) .haul__photo { height: 32svh; } .haul:not(.is-static) .station p { display: none; } }

/* one wide map for every screen; bigger machines need wider roads */
.map-land { display: block !important; }
.m-haul { stroke-width: 26; } .m-haul-tex { stroke-width: 13; }
.m-main-edge { stroke-width: 36; } .m-main { stroke-width: 31; }
.m-lane { stroke-width: 1.8; stroke-dasharray: 10 12; }
@media (max-width: 1023.98px) {
  .map-land .m-stop text { font-size: 24px; }
  .map-land .m-stop text.n { display: none; }
  .map-land .m-stop circle.o { r: 15; } .map-land .m-stop circle.i { r: 6; }
}
.m-haul-edge { fill: none; stroke: #c48a5c; stroke-width: 38; stroke-linecap: round; opacity: .55; }
.m-haul { stroke-width: 32; }
.m-haul-tex { stroke-width: 16; stroke-dasharray: 4 9; }
@media (max-width: 1023.98px) { .map-land [data-stop="1"] text:not(.n) { transform: translate(-40px, -4px); } }

/* ============ hero: night site, work lamp, live haul lane ============ */
.hero--site {
  --hero-bg: #06182b;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hero-bg); color: #f3f6f9;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--s-7));
  padding-bottom: var(--s-6);
}
.hero--site .hero__grid { display: block; position: relative; z-index: 2; }
.hero--site .hero__copy { max-width: 760px; }
.hero--site .hero__title { color: #fff; }
.hero--site .hero__title .road-word { color: var(--amber); }
.hero--site .hero__lead { color: #cfd9e3; max-width: 44ch; }
.hero__hint { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-5); font-size: 0.875rem; color: #9fb2c6; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245,176,0,.6); animation: hpulse 2s var(--ease) infinite; }
@keyframes hpulse { 0% { box-shadow: 0 0 0 0 rgba(245,176,0,.55); } 70% { box-shadow: 0 0 0 10px rgba(245,176,0,0); } 100% { box-shadow: 0 0 0 0 rgba(245,176,0,0); } }

/* photo bleeds off the right edge and fades into the night on the left */
.hero--site .hero__media {
  position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 62%;
  margin: 0; border-radius: 0; aspect-ratio: auto; max-height: none; background: var(--hero-bg); overflow: hidden;
}
.hero--site .hero__media picture { display: contents; }
.hero--site .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.hero--site .hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(90deg, var(--hero-bg) 0%, rgba(6,24,43,.82) 22%, rgba(6,24,43,.2) 55%, rgba(6,24,43,0) 100%),
    linear-gradient(180deg, rgba(6,24,43,.55) 0%, rgba(6,24,43,0) 22%, rgba(6,24,43,0) 62%, var(--hero-bg) 100%);
}
/* the work lamp: the site sits in the dark, the lamp lights where you point */
.hero__light {
  --lx: 62%; --ly: 42%;
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at var(--lx) var(--ly), rgba(255,206,110,.24) 0, rgba(255,206,110,.1) 80px, rgba(4,14,26,0) 150px, rgba(4,14,26,.55) 280px, rgba(4,14,26,.78) 480px);
  mix-blend-mode: normal;
}
.hero--site .hero__media figcaption { display: none; }

/* live haul lane */
.hero__lane { position: relative; z-index: 2; margin-top: var(--s-6); height: 96px; overflow: hidden; }
.hero__lane svg { display: block; width: 100%; height: 96px; }
.hl-ground { fill: #0d2a22; }
.hl-road-edge { fill: #b07a50; opacity: .45; }
.hl-road { fill: #7f4f2f; }
.hl-tracks { stroke: #a56b43; stroke-width: 14; stroke-dasharray: 4 9; opacity: .65; }
.hl-pile { fill: url(#mPile); }
.hl-stock { fill: url(#mPile); stroke: #4f2f17; stroke-width: .8; }
.hl-stock-top { fill: #b8804b; opacity: .7; }
.hl-sea { fill: url(#mSea); }
.hl-hull { fill: url(#mHull); stroke: #c1801f; stroke-width: 1.4; }
.hl-ore { fill: #8c5628; }

/* stats on the dark hero */
.hero--site .hero__stats { position: relative; z-index: 2; margin-top: var(--s-5); border-top-color: rgba(238,243,248,.24); }
.hero--site .hero__stats > div { border-color: rgba(238,243,248,.14) !important; }
.hero--site .hero__stats dd { color: #fff; }
.hero--site .hero__stats dd small { color: var(--amber); }
.hero--site .hero__stats dt { color: #9fb2c6; }

/* home header over the dark hero: light until it frosts */
body[data-page="home"] .hdr:not(.is-scrolled) .brand__logo.lt { display: none; }
body[data-page="home"] .hdr:not(.is-scrolled) .brand__logo.dk { display: block; }
body[data-page="home"].menu-open .hdr .brand__logo.dk { display: none; }
body[data-page="home"].menu-open .hdr .brand__logo.lt { display: block; }
:root[data-theme="dark"] body[data-page="home"].menu-open .hdr .brand__logo.lt { display: none; }
:root[data-theme="dark"] body[data-page="home"].menu-open .hdr .brand__logo.dk { display: block; }

@media (max-width: 1023.98px) {
  .hero--site { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 34svh); padding-bottom: var(--s-5); }
  .hero--site .hero__media { left: 0; width: 100%; bottom: auto; height: 58svh; max-height: none; order: 0; }
  .hero--site .hero__media::after { background: linear-gradient(180deg, rgba(6,24,43,.55) 0%, rgba(6,24,43,.05) 25%, rgba(6,24,43,.55) 65%, var(--hero-bg) 100%); }
  .hero--site .hero__lane { margin-top: var(--s-5); }
}
@media (prefers-reduced-motion: reduce) { .hero__dot { animation: none; } }

/* ---------- tighter vertical rhythm: no empty bands between sections ---------- */
:root { --section-y: 64px; }
@media (min-width: 744px) { :root { --section-y: 80px; } }
@media (min-width: 1366px) { :root { --section-y: 88px; } }
.shead { margin-bottom: var(--s-6); }
.fleet { margin-top: var(--s-8); }
.co-hero { min-height: min(84svh, 780px); }

/* footer continues the dark contact block instead of a light strip */
.ftr { background: var(--navy-900); color: #e6edf4; border-top: 1px solid rgba(238,243,248,.1); }
.ftr nav a { color: #c8d4e0; }
.ftr nav a:hover { color: #fff; }
.ftr small { color: #93a6ba; }
.ftr .brand__logo.lt { display: none !important; }
.ftr .brand__logo.dk { display: block !important; }
.ftr :focus-visible { outline-color: var(--amber); }

/* ---------- company heroes: fill the first screen, photo fades in with no hard edge ---------- */
.co-hero { min-height: 100vh; min-height: 100svh; }
@media (min-width: 1024px) {
  .co-hero__bg, body[data-co="mbe"] .co-hero__bg { left: 30%; }
  .co-hero__bg img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 52%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 52%);
  }
  .co-hero::before {
    background: linear-gradient(90deg, rgba(4,14,26,1) 0%, rgba(4,14,26,.94) 30%, rgba(4,14,26,.7) 52%, rgba(4,14,26,.4) 74%, rgba(4,14,26,.22) 100%);
  }
  body[data-co="mbe"] .co-hero::before {
    background: linear-gradient(90deg, rgba(17,17,20,1) 0%, rgba(17,17,20,.94) 30%, rgba(17,17,20,.7) 52%, rgba(17,17,20,.4) 74%, rgba(17,17,20,.22) 100%);
  }
}
/* bottom of every dark hero melts into its own ground, no seam */
.co-hero__bg img {
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.co-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,14,26,0) 0%, rgba(4,14,26,.85) 100%);
}
body[data-co="mbe"] .co-hero::after { background: linear-gradient(180deg, rgba(17,17,20,0) 0%, rgba(17,17,20,.85) 100%); }

/* home hero photo: soft left edge too */
@media (min-width: 1024px) {
  .hero--site .hero__media { width: 70%; }
  .hero--site .hero__media img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 16%, #000 46%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 16%, #000 46%);
  }
}

/* realistic haul lane: static ground layer + animated layer */
.hero__lane, .hero--site .hero__lane { height: 120px; background: #10291f; }
.hero__lane .hl-bg, .hero__lane .hl-fg { position: absolute; top: 0; left: 0; height: 120px; display: block; }

/* ---------- enquiry form (WhatsApp / email composer) ---------- */
.enq {
  display: grid; gap: var(--s-4); padding: var(--s-5);
  border: 1px solid rgba(238,243,248,.18); border-radius: var(--radius);
  background: rgba(6,24,43,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.enq__row { display: grid; gap: var(--s-4); }
@media (min-width: 560px) { .enq__row { grid-template-columns: 1fr 1fr; } }
.enq__f { display: grid; gap: var(--s-1); min-width: 0; }
.enq label, .enq legend { font-size: .8125rem; color: #b8c7d6; font-weight: 520; }
.enq input[type="text"], .enq textarea {
  width: 100%; min-height: var(--tap); padding: 10px var(--s-3); border-radius: var(--radius-in);
  border: 1px solid rgba(238,243,248,.22); background: rgba(3,12,22,.55); color: #f3f6f9;
  font: inherit; font-size: 1rem; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.enq textarea { resize: vertical; min-height: 64px; }
.enq input::placeholder, .enq textarea::placeholder { color: #7f93a8; }
.enq input:hover, .enq textarea:hover { border-color: rgba(238,243,248,.38); }
.enq input:focus-visible, .enq textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.enq [aria-invalid="true"] { border-color: #ff8a7a; }
.enq__chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.enq__chips legend { width: 100%; margin-bottom: var(--s-2); padding: 0; }
.enq__chips label { position: relative; display: inline-flex; color: #e6edf4; }
.enq__chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.enq__chips span {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4);
  border-radius: var(--radius-pill); border: 1px solid rgba(238,243,248,.26); font-size: .9375rem; font-weight: 560;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform 100ms ease-out;
}
.enq__chips span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .7; }
.enq__chips input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--cta-ink); }
.enq__chips input:checked + span::before { background: currentColor; opacity: 1; }
.enq__chips input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.enq__chips label:active span { transform: scale(.97); }
.enq__err { color: #ffb4a8; font-size: .875rem; }
.enq__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.enq__hint { font-size: .8125rem; color: #93a6ba; }
@media (max-width: 559.98px) { .enq { padding: var(--s-4); } .enq__actions .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-transparency: reduce) { .enq { background: #06182b; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (min-width: 1024px) { .contact__grid { align-items: start; } }
.contact .btn--cta { --b-fill: #ffffff; --b-fill-fg: var(--navy-800); }

/* MBE licence scope list */
.scope { display: grid; gap: 0; margin-top: var(--s-3); border-top: 1px solid var(--line-strong); }
.scope li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.scope b { font-weight: 600; letter-spacing: -.01em; }
.scope span { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; align-self: center; }

/* ============ operations map ============ */
.ops { background: var(--ground); }
.om { position: relative; border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid var(--line); }
.om-svg { display: block; width: 100%; height: auto; }
.om-grid { stroke: var(--line); stroke-width: 1; }
.om-deg { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.om-land { fill: color-mix(in srgb, var(--green) 22%, var(--ground-2)); stroke: color-mix(in srgb, var(--green) 55%, var(--ground)); stroke-width: 1.4; stroke-linejoin: round; }
.om-isle { stroke-width: 1; }
.om-name { fill: var(--ink-2); font-size: 15px; font-weight: 640; letter-spacing: -.01em; }
.om-sea { fill: var(--muted); font-size: 12px; font-style: italic; letter-spacing: .06em; }
.om-route { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 7; opacity: .5; transition: opacity var(--t-mid) var(--ease); }
.om-route.is-on { opacity: 1; stroke: var(--amber); stroke-width: 2.2; }
.om-pin {
  position: absolute; transform: translate(-50%, -50%); min-width: var(--tap); min-height: var(--tap);
  display: grid; place-items: center; z-index: 2;
}
.om-pin__dot {
  width: var(--s); height: var(--s); border-radius: 50%; background: rgba(245,176,0,.28); border: 2px solid var(--amber);
  box-shadow: 0 0 0 0 rgba(245,176,0,.5); transition: transform var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
  animation: ompulse 2.6s var(--ease) infinite;
}
.om-pin__dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--amber); }
.om-pin__lbl {
  position: absolute; left: 50%; top: calc(50% + var(--s) / 2 + 4px); transform: translateX(-50%); white-space: nowrap;
  padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font-size: .75rem; font-weight: 600;
}
.om-pin--office .om-pin__dot { background: var(--ink); border-color: var(--surface); animation: none; }
.om-pin--office .om-pin__dot::after { background: var(--surface); width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.om-pin:hover .om-pin__dot, .om-pin.is-on .om-pin__dot { transform: scale(1.12); background: rgba(245,176,0,.45); }
.om-pin.is-on .om-pin__lbl { background: var(--amber); color: var(--cta-ink); border-color: var(--amber); }
.om-pin:active .om-pin__dot { transform: scale(.94); }
@keyframes ompulse { 0% { box-shadow: 0 0 0 0 rgba(245,176,0,.45); } 70% { box-shadow: 0 0 0 16px rgba(245,176,0,0); } 100% { box-shadow: 0 0 0 0 rgba(245,176,0,0); } }
.om-card {
  position: absolute; z-index: 3; right: var(--s-4); bottom: var(--s-4); width: min(380px, calc(100% - 32px));
  padding: var(--s-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(6,24,43,.45); display: grid; gap: var(--s-2);
}
.om-row { display: flex; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.om-row b { display: block; font-size: .95rem; letter-spacing: -.01em; }
.om-row span { display: block; font-size: .8rem; color: var(--muted); }
.om-row em { font-style: normal; font-weight: 640; white-space: nowrap; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 743.98px) {
  .om-card { position: static; width: auto; margin: var(--s-3); box-shadow: none; }
  .om-pin__lbl { font-size: .6875rem; }
  .om-name { font-size: 18px; } .om-sea { display: none; } .om-deg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .om-pin__dot { animation: none; } }

/* ============ timeline ============ */
.tl { position: relative; margin-top: var(--s-7); }
.tl ol { display: grid; gap: var(--s-4); margin-top: var(--s-4); position: relative; }
/* dots sit above the line; only the text dims until the line reaches it */
.tl li { position: relative; z-index: 1; padding-left: var(--s-6); }
.tl li > * { opacity: .45; transition: opacity var(--t-mid) var(--ease); }
.tl li.is-on > * { opacity: 1; }
.tl li::before { content: ""; position: absolute; box-sizing: border-box; left: 5px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); border: 2px solid var(--line-strong); transition: background-color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease); }
.tl li.is-on::before { background: var(--amber); border-color: var(--amber); }
.tl time { display: block; font-weight: 640; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--accent); }
.tl b { display: block; font-weight: 560; margin-top: 2px; max-width: 46ch; }
.tl span { display: block; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.tl { --p: 0; }
.tl__bar { display: none; }
/* vertical line runs through the dot centres (x = 12px) */
.tl ol::before, .tl ol::after { content: ""; position: absolute; z-index: 0; left: 11px; top: 12px; bottom: var(--tl-end, 10px); width: 2px; background: var(--line); }
.tl ol::after { background: var(--amber); transform-origin: top; transform: scaleY(var(--p)); }
@media (min-width: 1024px) {
  .tl ol { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--s-3); padding-top: var(--s-6); }
  .tl li { padding-left: 0; }
  .tl li::before { left: 0; top: calc(-1 * var(--s-6) + 2px); }
  .tl b { font-size: .875rem; line-height: 1.35; }
  .tl ol::before, .tl ol::after { left: 0; right: 0; top: 8px; bottom: auto; width: auto; height: 2px; }
  .tl ol::after { transform-origin: left; transform: scaleX(var(--p)); }
}
.om-stage { position: relative; }

/* ============ gallery ============ */
.gal { background: var(--ground-2); }
.gal__grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 150px; }
.gal__grid li { position: relative; overflow: hidden; border-radius: var(--radius); isolation: isolate; clip-path: inset(0 round var(--radius)); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.gal__grid button { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
.gal__grid img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transition: transform 1.1s var(--ease), filter var(--t-mid) var(--ease); }
.gal__grid button:hover img { transform: scale(1.05); }
.gal__grid button span {
  position: absolute; left: var(--s-3); bottom: var(--s-3); padding: 4px var(--s-3); border-radius: var(--radius-pill);
  background: rgba(6,24,43,.72); color: #f3f6f9; font-size: .8125rem; font-weight: 560;
  transform: translateY(4px); opacity: .92; transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
}
.gal__grid button:hover span, .gal__grid button:focus-visible span { transform: none; opacity: 1; }
.gal__grid button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.g-a { grid-column: span 2; grid-row: span 3; } .g-b { grid-column: span 2; grid-row: span 2; } .g-c { grid-column: span 2; grid-row: span 3; }
.g-d { grid-column: span 2; grid-row: span 2; } .g-e { grid-column: span 2; grid-row: span 2; } .g-f { grid-column: span 4; grid-row: span 1; }
.g-g { grid-column: span 2; grid-row: span 2; } .g-h { grid-column: span 2; grid-row: span 2; } .g-i { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1023.98px) {
  .gal__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s-3);
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter-r)); padding: 0 var(--gutter-r) var(--s-2) var(--gutter);
    scroll-padding-left: var(--gutter); -webkit-overflow-scrolling: touch; }
  .gal__grid li { flex: 0 0 76%; height: 300px; scroll-snap-align: start; }
  .gal__grid img { inset: 0; height: 100%; }
}
/* lightbox */
.lb { position: fixed; inset: 0; z-index: 400; background: rgba(3,10,18,.94); display: grid; place-items: center;
  padding: calc(var(--s-8) + env(safe-area-inset-top, 0px)) max(var(--s-8), env(safe-area-inset-right, 0px)) calc(var(--s-8) + env(safe-area-inset-bottom, 0px)) max(var(--s-8), env(safe-area-inset-left, 0px)); }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: var(--s-3); justify-items: center; }
.lb__fig img { max-width: 100%; max-height: calc(100svh - 200px); width: auto; height: auto; border-radius: var(--radius-in); }
.lb__fig figcaption { display: flex; gap: var(--s-4); color: #e6edf4; font-size: .95rem; }
.lb__n { color: #93a6ba; font-variant-numeric: tabular-nums; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); transition: background-color var(--t-fast) var(--ease), transform 100ms ease-out; }
.lb__btn svg { width: 22px; height: 22px; }
.lb__btn:hover { background: rgba(255,255,255,.2); }
.lb__btn:active { transform: scale(.94); }
.lb__btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.lb__prev { left: max(var(--s-4), env(safe-area-inset-left, 0px)); top: 50%; margin-top: -26px; }
.lb__next { right: max(var(--s-4), env(safe-area-inset-right, 0px)); top: 50%; margin-top: -26px; }
.lb__close { right: max(var(--s-4), env(safe-area-inset-right, 0px)); top: calc(var(--s-4) + env(safe-area-inset-top, 0px)); }
@media (max-width: 743.98px) { .lb { padding-left: var(--s-3); padding-right: var(--s-3); } .lb__prev, .lb__next { top: auto; bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); margin: 0; } }
body.lb-open { overflow: hidden; }
.om-pin--end .om-pin__lbl { left: auto; right: 50%; transform: translateX(calc(var(--s) / 2)); }
.om-pin--start .om-pin__lbl { left: 50%; transform: translateX(calc(var(--s) / -2 - 4px)); }
.rec .c-vol small { white-space: normal; max-width: 22ch; margin-left: auto; }

/* realistic map: sea, shelf, relief, coast */
.om { background: #d4e9ee; }
.om-sea-0 { stop-color: #dcedf1; } .om-sea-1 { stop-color: #b9d8e1; }
.om-shelf path { fill: none; stroke: #eef8fa; stroke-linejoin: round; }
.om-land { fill: #b9d3a2; }
.om-relief { opacity: .55; mix-blend-mode: multiply; }
.om-coast path { fill: none; stroke: #6f9a73; stroke-width: .9; stroke-linejoin: round; }
.om-grid { stroke: rgba(10,37,64,.1); }
.om-sea { fill: #4d7a92; font-size: 11.5px; font-style: italic; letter-spacing: .08em; }
.om-name { fill: #2f4a3a; font-size: 16px; font-weight: 680; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.om-town { fill: #2b3a46; stroke: #fff; stroke-width: 1; }
.om-townl { fill: #2b3a46; font-size: 10.5px; font-weight: 560; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 3px; }
.om-sb1 { fill: #2b3a46; } .om-sb2 { fill: #fff; stroke: #2b3a46; stroke-width: 1; }
.om-north path { fill: #2b3a46; }
.om-route { stroke: #0b6f7d; opacity: .7; }
:root[data-theme="dark"] .om { background: #0b2a3c; }
:root[data-theme="dark"] .om-sea-0 { stop-color: #0f3448; } :root[data-theme="dark"] .om-sea-1 { stop-color: #082233; }
:root[data-theme="dark"] .om-shelf path { stroke: #1d5269; }
:root[data-theme="dark"] .om-land { fill: #3c5f45; }
:root[data-theme="dark"] .om-relief { opacity: .5; }
:root[data-theme="dark"] .om-coast path { stroke: #7fb08a; }
:root[data-theme="dark"] .om-grid { stroke: rgba(238,243,248,.08); }
:root[data-theme="dark"] .om-sea { fill: #7fa9bf; }
:root[data-theme="dark"] .om-name { fill: #d6e8d8; }
:root[data-theme="dark"] .om-town { fill: #e6edf4; stroke: #0b2a3c; }
:root[data-theme="dark"] .om-townl { fill: #e6edf4; stroke: rgba(8,34,51,.8); }
:root[data-theme="dark"] .om-sb1, :root[data-theme="dark"] .om-north path { fill: #e6edf4; }
:root[data-theme="dark"] .om-sb2 { fill: #0b2a3c; stroke: #e6edf4; }
:root[data-theme="dark"] .om-route { stroke: #5fd0dd; }
@media (max-width: 743.98px) { .om-townl, .om-scale, .om-north { display: none; } .om-name { font-size: 22px; } }

/* ---------- organizational structure: boards -> stem -> two divisions ----------
   Same language as the group tree + timeline: node cards, mono chips, a --line-strong track
   with the amber line drawn by the scroll (js/org.js). Once fully drawn the amber line keeps
   moving: light stripes flow down the stem, out along the bar and into each card, like the
   haul road's idle dash-flow. The commissioners' oversight link uses the tree's 3/9 accent dashes.
   Every line is a stack of background layers: [flow stripes, amber fill, grey track];
   fills are sized by --ps/--pb/--pd/--pk (default 1, so no-JS and reduced motion show the finished chart). */
@property --flow { syntax: "<length>"; inherits: true; initial-value: 0px; }
.org {
  --base: var(--line-strong); --hot: var(--amber); --g: var(--s-4); --rail: var(--s-5); --tick: calc(var(--s-4) + 0.72rem);
  --ps: 1; --pb: 1; --fp: 30px; --fc: transparent;
  display: grid; margin-top: var(--s-2);
}
.org.is-flow { --fc: color-mix(in srgb, #fff 70%, var(--hot)); }
@keyframes org-flow { from { --flow: 0px; } to { --flow: 30px; } }
:root.has-motion .org.is-flow.is-live { animation: org-flow 1.1s linear infinite; }
.org-home { margin-top: var(--s-9); display: grid; gap: var(--s-5); }
.org__boards { display: grid; gap: var(--s-4); }
.org__board, .org__div {
  --pd: 1; --pk: 1;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4);
  transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.org__bh { width: fit-content; margin-bottom: var(--s-4); }
.org__people { display: grid; gap: var(--s-3); }
.org__people li { display: grid; gap: 2px; }
.org__people b { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.org__people span { color: var(--ink-2); font-size: 0.95rem; }
.org__dh { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: var(--s-4); }
.org__roles { display: grid; gap: var(--s-3); }
.org__roles > li { display: grid; gap: var(--s-1); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.org__roles > li:first-child { padding-top: 0; border-top: 0; }
.org__names { display: grid; gap: 2px; }
.org__names li { font-weight: 560; color: var(--ink); line-height: 1.35; }
.org__div.is-on { border-color: color-mix(in srgb, var(--hot) 55%, var(--line)); }

/* stripe layers: a repeating gradient one period longer than the line, slid by --flow */
.org__stem, .org__div::before {
  --fy: repeating-linear-gradient(180deg, transparent 0, var(--fc) 7px, transparent 14px, transparent var(--fp));
}

/* stem out of Direksi (vertical, at the rail on phones, centred from 744px) */
.org__stem {
  --sx: calc(var(--rail) - 1px);
  min-height: var(--s-6);
  background:
    var(--fy) var(--sx) calc(var(--flow) - var(--fp)) / 2px calc(100% + var(--fp)) no-repeat,
    linear-gradient(var(--hot), var(--hot)) var(--sx) 0 / 2px calc(var(--ps) * 100%) no-repeat,
    linear-gradient(var(--base), var(--base)) var(--sx) 0 / 2px 100% no-repeat;
}

/* commissioners' oversight link: the tree's dashed flow, marching while on screen */
.org__board--boc::after {
  content: ""; position: absolute; left: calc(var(--rail) - 1px); top: 100%; width: 2px; height: var(--s-4);
  background: repeating-linear-gradient(180deg, var(--accent) 0 3px, transparent 3px 12px);
}
@keyframes org-march-y { to { background-position: 0 12px; } }
@keyframes org-march-x { to { background-position: 12px 0; } }
:root.has-motion .org.is-live .org__board--boc::after { animation: org-march-y 0.9s linear infinite; }

/* phone: a rail down the left, one segment per division (filled by --pd), a tick into each card (--pk) */
.org__divs { display: grid; gap: var(--g); padding-left: calc(var(--rail) + var(--s-4)); }
.org__div::before {
  content: ""; position: absolute; left: calc(-1 * var(--s-4) - 1px); top: 0; bottom: calc(-1px - var(--g)); width: 2px;
  background:
    var(--fy) 0 calc(var(--flow) - var(--fp)) / 2px calc(100% + var(--fp)) no-repeat,
    linear-gradient(var(--hot), var(--hot)) 0 0 / 2px calc(var(--pd) * 100%) no-repeat,
    linear-gradient(var(--base), var(--base)) 0 0 / 2px 100% no-repeat;
}
.org__div:last-child::before { bottom: auto; height: calc(var(--tick) + 1px); }
.org__div::after {
  content: ""; position: absolute; left: calc(-1 * var(--s-4)); top: var(--tick); width: var(--s-4); height: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0, var(--fc) 7px, transparent 14px, transparent var(--fp)) calc(var(--flow) - var(--fp)) 0 / calc(100% + var(--fp)) 2px no-repeat,
    linear-gradient(var(--hot), var(--hot)) 0 0 / calc(var(--pk) * 100%) 2px no-repeat,
    linear-gradient(var(--base), var(--base)) 0 0 / 100% 2px no-repeat;
}

@media (min-width: 744px) {
  .org { --g: var(--s-5); }
  .org__board, .org__div { padding: var(--s-5); }
  .org__boards { grid-template-columns: minmax(0, 1fr) minmax(0, 21rem) minmax(0, 1fr); column-gap: var(--s-6); align-items: stretch; }
  .org__board--bod { grid-column: 2; }
  .org__board--boc { grid-column: 1; justify-self: end; width: min(100%, 21rem); }
  .org__board--boc::after {
    left: 100%; top: calc(50% - 1px); width: var(--s-6); height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 12px);
  }
  :root.has-motion .org.is-live .org__board--boc::after { animation-name: org-march-x; }
  .org__stem { --sx: calc(50% - 1px); min-height: var(--s-7); }
  .org__divs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding-left: 0; padding-top: var(--s-5); position: relative; }
  /* split bar in two halves, each drawn and flowing outwards from the centre */
  .org__divs::before, .org__divs::after { content: ""; position: absolute; top: 0; height: 2px; }
  .org__divs::before {
    left: calc((100% - var(--g)) / 4); right: 50%;
    background:
      repeating-linear-gradient(90deg, transparent 0, var(--fc) 7px, transparent 14px, transparent var(--fp)) calc(0px - var(--flow)) 0 / calc(100% + var(--fp)) 2px no-repeat,
      linear-gradient(var(--hot), var(--hot)) 100% 0 / calc(var(--pb) * 100%) 2px no-repeat,
      linear-gradient(var(--base), var(--base)) 0 0 / 100% 2px no-repeat;
  }
  .org__divs::after {
    left: 50%; right: calc((100% - var(--g)) / 4);
    background:
      repeating-linear-gradient(90deg, transparent 0, var(--fc) 7px, transparent 14px, transparent var(--fp)) calc(var(--flow) - var(--fp)) 0 / calc(100% + var(--fp)) 2px no-repeat,
      linear-gradient(var(--hot), var(--hot)) 0 0 / calc(var(--pb) * 100%) 2px no-repeat,
      linear-gradient(var(--base), var(--base)) 0 0 / 100% 2px no-repeat;
  }
  .org__div::before, .org__div:last-child::before { left: calc(50% - 1px); top: calc(-1 * var(--s-5)); bottom: auto; height: var(--s-5); }
  .org__div::after { display: none; }
}
@media (min-width: 1024px) { .org { --g: var(--s-6); } }

/* ---------- XIX Design signature (vendor/xix-signature.js, badge v1.3 from aeroaswar/xixdesign) ----------
   Footer only, every page and size (owner, 29 Nov): the small XIX mark, "Designed by" / "Dirancang oleh"
   on hover or focus. Laptop: last column of the footer row, after the copyright. Phone: its own row. */
.sig-foot { display: inline-block; justify-self: start; margin: calc(-1 * var(--s-4)) 0 0 -6px; }
@media (min-width: 1024px) {
  .ftr__grid { grid-template-columns: auto 1fr auto auto; }
  .sig-foot { justify-self: end; margin: 0 -6px 0 0; }
}
