/* =========================================================
   Roxound Engineering Management
   Light theme - airy, editorial, oversized type
   ========================================================= */
:root {
  --bg: #fcfbf9;
  --bg-alt: #f4f2ed;
  --panel: #ffffff;

  --ink: #101114;
  --muted: #5b616e;
  --faint: #8a909c;
  --border: #e7e3dc;
  --border-hi: #d3cdc2;

  --accent: #ee7f2d;
  --accent-ink: #a8541a; /* passes contrast for small text on light */
  --accent-wash: #fdf1e6;
  --live: #0f766e;

  --radius: 14px;
  --radius-lg: 24px;
  --maxw: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   Accessibility helpers
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-stuck {
  background: rgba(252, 251, 249, 0.85);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}

.brand:hover {
  opacity: 0.75;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.28s var(--ease);
}

.nav a:not(.nav-cta):hover {
  color: var(--ink);
}

.nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav a.is-active:not(.nav-cta)::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: #2a2c33;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Layout primitives
   ========================================================= */
.hero,
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 130px 32px;
}

section[id] {
  scroll-margin-top: 100px;
}

/* Full-bleed tinted band without extra markup */
.band {
  position: relative;
}

.band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50vw;
  right: -50vw;
  background: var(--bg-alt);
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(238, 127, 45, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(238, 127, 45, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(238, 127, 45, 0);
  }
}

.section-heading {
  max-width: 860px;
  margin-bottom: 64px;
}

.section-heading h2,
.hero-panel h2,
.cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  text-wrap: balance;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: 190px;
  padding-bottom: 90px;
  position: relative;
}

/* Full-bleed photographic backdrop.
   Diagonal scrim keeps the headline side near-opaque so dark type stays
   legible, while the machinery on the right reads through. The vertical
   pass dissolves the photo into the page colour so there is no hard edge. */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50vw;
  right: -50vw;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(
      103deg,
      rgba(252, 251, 249, 0.985) 0%,
      rgba(252, 251, 249, 0.95) 32%,
      rgba(252, 251, 249, 0.74) 56%,
      rgba(252, 251, 249, 0.44) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(252, 251, 249, 0.32) 0%,
      rgba(252, 251, 249, 0.06) 42%,
      rgba(252, 251, 249, 0.82) 86%,
      var(--bg) 100%
    ),
    url("hero-mining.jpg");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 64px;
  align-items: end;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.045em;
  margin: 0 0 30px;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #d9641a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--accent);
  color: #1a1005;
  box-shadow: 0 12px 30px rgba(238, 127, 45, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(238, 127, 45, 0.38);
}

.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border-hi);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}

/* Hero side panel */
.hero-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 20px 50px rgba(16, 17, 20, 0.06);
}

.hero-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 22px;
}

.panel-glow {
  display: none;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 15px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Stat strip */
.stat-strip {
  margin-top: 110px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  display: grid;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--faint);
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.about-copy {
  padding: 0;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 22px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.pillar-stack {
  display: grid;
  gap: 16px;
}

.pillar {
  position: relative;
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.pillar:hover {
  transform: translateX(5px);
  border-color: var(--border-hi);
  box-shadow: 0 14px 34px rgba(16, 17, 20, 0.06);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 10px;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* =========================================================
   Services
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service {
  position: relative;
  padding: 36px 32px 38px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.service:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 24px 50px rgba(16, 17, 20, 0.09);
}

.service-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 22px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.99rem;
}

/* =========================================================
   Interior page header (products.html)
   ========================================================= */
.page-hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 190px 32px 70px;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50vw;
  right: -50vw;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(
      100deg,
      rgba(252, 251, 249, 0.985) 0%,
      rgba(252, 251, 249, 0.94) 38%,
      rgba(252, 251, 249, 0.7) 68%,
      rgba(252, 251, 249, 0.5) 100%
    ),
    linear-gradient(to bottom, rgba(252, 251, 249, 0.3), var(--bg) 92%),
    url("hero-mining.jpg");
  background-size: cover;
  background-position: center 42%;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  max-width: 15ch;
  text-wrap: balance;
}

.breadcrumb {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--faint);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

/* =========================================================
   Products
   ========================================================= */
.section-lede {
  margin: 22px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
}

.product-group {
  margin-bottom: 72px;
}

.product-group:last-of-type {
  margin-bottom: 0;
}

.group-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.group-num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

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

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.product:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 24px 50px rgba(16, 17, 20, 0.09);
}

.product h4 {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

.product p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.97rem;
}

.specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}

.specs li {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.also-available {
  margin: 56px 0 0;
  padding: 22px 26px;
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.97rem;
}

.also-available strong {
  color: var(--ink);
  font-weight: 600;
}

.reseller-note {
  margin: 64px 0 0;
  padding: 26px 30px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.reseller-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   Supplier blocks
   ========================================================= */
.supplier-block {
  margin-bottom: 120px;
}

.supplier-block:last-of-type {
  margin-bottom: 0;
}

.supplier-head {
  max-width: 800px;
  margin-bottom: 56px;
}

.supplier-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.supplier-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 18px;
}

.supplier-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

/* =========================================================
   Comparison table
   ========================================================= */
.table-wrap {
  overflow-x: auto;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.compare {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 15px 22px;
  text-align: left;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--border);
}

.compare thead th {
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare tbody th {
  font-weight: 500;
  color: var(--muted);
}

.compare td {
  color: var(--muted);
}

.compare td.win {
  color: var(--ink);
  font-weight: 600;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

/* =========================================================
   Case studies
   ========================================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.case {
  padding: 30px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(16, 17, 20, 0.09);
}

.case h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
}

.case .case-loc {
  margin: 0 0 20px;
  color: var(--faint);
  font-size: 0.88rem;
}

.case-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-results li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.case-results b {
  font-family: var(--font-display);
  color: var(--accent-ink);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* =========================================================
   Pull quote
   ========================================================= */
.quote {
  margin: 48px 0 0;
  padding: 40px 44px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: #fff;
}

.quote blockquote {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.quote figcaption {
  color: #b8bcc6;
  font-size: 0.9rem;
}

.quote figcaption strong {
  display: block;
  color: var(--accent);
  font-weight: 600;
}

/* Optional image slot - add <img class="product-shot"> as the first child */
.product-shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 22px;
  background: var(--bg-alt);
}

/* =========================================================
   Team
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.member {
  position: relative;
  padding: 28px 24px 30px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.member:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 24px 50px rgba(16, 17, 20, 0.09);
}

/* Initial monogram by default; swap the element for
   <img class="member-photo" ...> once real portraits exist. */
.member-photo {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(150deg, var(--accent-wash), var(--bg-alt));
  border: 1px solid var(--border);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-ink);
  transition: transform 0.35s var(--ease);
}

.member:hover .member-photo {
  transform: scale(1.05);
}

.member h2,
.member h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.member .role {
  margin: 0;
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.member-contact {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.member-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.25s var(--ease);
}

.member-contact svg {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.member-contact a:hover {
  color: var(--accent-ink);
}

/* =========================================================
   Projects
   ========================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project {
  position: relative;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.project:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 24px 50px rgba(16, 17, 20, 0.09);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.tag-live {
  color: var(--live);
  border-color: rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.08);
}

.tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
}

.project h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}

.project .client {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.project .period {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-ink);
}

/* =========================================================
   Contact - dark closing band for contrast
   ========================================================= */
.contact-section {
  padding-bottom: 140px;
}

.cta {
  position: relative;
  padding: 88px 56px;
  text-align: center;
  border-radius: 32px;
  background: var(--ink);
  overflow: hidden;
}

.cta .eyebrow {
  justify-content: center;
  color: var(--accent);
}

.cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 20px;
  color: #fff;
}

.cta-copy {
  max-width: 580px;
  margin: 0 auto;
  color: #b8bcc6;
  font-size: 1.08rem;
}

.cta .hero-actions {
  justify-content: center;
}

.cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.cta .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cta-glow {
  position: absolute;
  inset: auto 0 -180px 0;
  height: 360px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(238, 127, 45, 0.3), transparent 65%);
}

/* Contact detail rail inside the dark closing band */
.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 880px;
  margin: 52px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(238, 127, 45, 0.16);
  color: var(--accent);
}

.contact-ico svg {
  width: 19px;
  height: 19px;
}

.contact-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-item address,
.contact-item a {
  margin: 0;
  font-style: normal;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-item a {
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-item a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 32px 56px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-block;
  line-height: 0;
  transition: transform 0.3s var(--ease);
}

.footer-logo:hover {
  transform: translateY(-2px);
}

.footer-logo img {
  width: 250px;
  max-width: 64vw;
  height: auto;
}

.site-footer p {
  margin: 0;
  color: var(--faint);
  font-size: 0.9rem;
}

/* =========================================================
   Placeholder cards - a slot held open for content still to
   come. Drop the class once the real content is written in.
   ========================================================= */
.member.is-placeholder,
.product.is-placeholder {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-hi);
}

.member.is-placeholder:hover,
.product.is-placeholder:hover {
  transform: none;
  border-color: var(--border-hi);
  box-shadow: none;
}

.member.is-placeholder .member-photo {
  background: var(--bg-alt);
  border-style: dashed;
  color: var(--faint);
}

.member.is-placeholder:hover .member-photo {
  transform: none;
}

.member.is-placeholder h2,
.member.is-placeholder .role,
.product.is-placeholder h4,
.product.is-placeholder p {
  color: var(--faint);
}

.product.is-placeholder .specs {
  border-top-style: dashed;
}

.product.is-placeholder .specs li {
  background: transparent;
  border: 1px dashed var(--border-hi);
  color: var(--faint);
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  /* Narrow screens put text directly over the photo, so the scrim goes
     vertical and gets heavier, and the lighter file is used. */
  .hero::before {
    background-image:
      linear-gradient(
        to bottom,
        rgba(252, 251, 249, 0.95) 0%,
        rgba(252, 251, 249, 0.88) 40%,
        rgba(252, 251, 249, 0.94) 72%,
        var(--bg) 100%
      ),
      url("hero-mining-sm.jpg");
    background-position: center 30%;
  }

  .hero-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 44px;
  }

  .service-grid,
  .project-grid,
  .product-grid,
  .case-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-details {
    gap: 24px 20px;
  }

  .supplier-block {
    margin-bottom: 84px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    padding: 104px 32px 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 16px 4px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 22px;
    text-align: center;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero,
  .section {
    padding: 84px 22px;
  }

  .hero {
    padding-top: 140px;
  }

  .page-hero {
    padding: 132px 22px 52px;
  }

  .product-group {
    margin-bottom: 52px;
  }

  .group-title {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }

  .header-inner {
    padding: 14px 22px;
  }

  .service-grid,
  .project-grid,
  .product-grid,
  .case-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .quote {
    padding: 30px 26px;
  }

  .compare th,
  .compare td {
    padding: 13px 16px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .member-photo {
    width: 92px;
    height: 92px;
    font-size: 1.4rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 44px;
    padding-top: 32px;
  }

  .member-contact a {
    font-size: 0.8rem;
  }

  .stat-strip {
    margin-top: 72px;
    gap: 28px;
  }

  .cta {
    padding: 56px 26px;
    border-radius: 24px;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
