/*
Theme Name: Mountaintop Mining
Theme URI: https://mountaintopmining.com
Author: Mountaintop Mining Limited
Description: A single-page WordPress theme for Mountaintop Mining Limited, a critical minerals exploration and development company. Every section — hero, about, mission, vision, focus areas, values, offices, and contact — is edited live from Appearance → Customize. No page builder or extra plugin required.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mountaintop-mining
*/

/* =========================================================
   DESIGN TOKENS
   Palette named for the material world the company works in:
   drill cores, ore bodies, and the two minerals named in the
   brief (copper + cobalt).
   ========================================================= */
:root {
  --basalt: #14202f;         /* navy-tinted dark — used sparingly (footer, text) */
  --basalt-soft: #1e2d40;
  --paper: #fffdf8;          /* brightest cream — primary background */
  --quarry: #f8f1de;         /* warm sand — secondary light sections */
  --quarry-dim: #ecdfc0;     /* borders / hairlines on light */
  --accent-tint: #e9eef5;    /* pale navy wash — replaces old dark sections */
  --accent-tint-dim: #d7e1ee;
  --copper: #c9a24b;         /* logo gold/copper accent */
  --copper-deep: #886e33;
  --copper-tint: #faf3e2;
  --cobalt: #0b1f3a;         /* logo navy accent */
  --cobalt-deep: #081627;
  --lichen: #3f5d8a;         /* lighter navy, used sparingly for variety */
  --ink: #14202f;
  --ink-soft: #5c6470;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 12px;
  --radius-pill: 999px;

  /* Layered shadows: a tight contact shadow + a soft ambient one,
     used together for real depth instead of a single flat blur. */
  --shadow-card: 0 1px 2px rgba(36,31,25,0.06), 0 10px 28px rgba(36,31,25,0.07);
  --shadow-card-hover: 0 3px 8px rgba(36,31,25,0.09), 0 22px 46px rgba(36,31,25,0.13);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Subtle paper-grain texture over the whole site — decorative only,
   never blocks interaction, and skipped for reduced-motion/low-end
   preference via the opacity being static (no animation cost either way). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; line-height: 1.08; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--copper);
  display: inline-block;
}
.section-dark .eyebrow, .section-dark .eyebrow::before { color: var(--copper-deep); }
.section-dark .eyebrow::before { background: var(--copper-deep); }

/* =========================================================
   SIGNATURE ELEMENT: the core sample
   A vertical banded chip styled after a mineral drill-core
   sample, used in place of generic numbered badges wherever
   the design needs a marker.
   ========================================================= */
.core-sample {
  width: 14px;
  height: 56px;
  border-radius: 7px;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--copper) 0 8px,
    var(--copper-deep) 8px 13px,
    var(--cobalt) 13px 24px,
    var(--lichen) 24px 30px,
    var(--copper-deep) 30px 36px,
    var(--cobalt-deep) 36px 48px,
    var(--copper) 48px 56px
  );
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.core-sample.core-sample--sm { width: 8px; height: 32px; border-radius: 4px; }

/* =========================================================
   SKIP LINK / ACCESSIBILITY
   ========================================================= */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--cobalt); color: #fff; padding: 0.75em 1.25em;
}
.skip-link:focus { left: var(--gutter); top: var(--gutter); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.is-scrolled {
  background: var(--paper);
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 var(--quarry-dim);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header-actions { display: flex; align-items: center; gap: 1.6rem; }
.header-cta { flex-shrink: 0; }
@media (min-width: 641px) { .site-nav-contact-link { display: none; } }
@media (max-width: 640px) { .header-cta { display: none; } }
.site-brand {
  display: flex; align-items: center; gap: 0.75rem; color: var(--ink);
  font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.02em;
  min-width: 0; /* allows the text below to truncate instead of forcing the header to overflow */
  flex-shrink: 1;
  text-decoration: none;
}
.site-brand-mark {
  height: 46px; width: 46px; flex-shrink: 0;
  object-fit: contain; object-position: left center;
  transition: height 0.25s ease, width 0.25s ease;
}
.site-header.is-scrolled .site-brand-mark { height: 36px; width: 36px; }
.site-brand-text {
  display: flex; flex-direction: column; min-width: 0; line-height: 1.25;
}
.site-brand-text strong {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 46vw;
}
.site-brand-text span {
  display: block; font-size: 0.66rem; color: var(--ink-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 560px) {
  .site-brand-mark { height: 38px; width: 38px; }
  .site-brand-text span { display: none; } /* tagline drops first on very narrow screens */
  .site-brand-text strong { font-size: 0.92rem; max-width: 38vw; }
}

.site-nav { flex-shrink: 0; }
.site-nav ul { display: flex; gap: 1.9rem; white-space: nowrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.85rem;
  font-family: var(--font-mono); letter-spacing: 0.03em;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { border-color: var(--copper); color: var(--copper-deep); }
.site-nav a.is-active-link { border-color: var(--copper); color: var(--copper-deep); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(36,31,25,0.25);
  color: var(--ink); width: 42px; height: 42px; border-radius: 50%;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.site-header.nav-open .nav-toggle span { background: transparent; }
.site-header.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); top: -6px; }
.site-header.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); top: 6px; }

@media (max-width: 980px) and (min-width: 781px) {
  .site-nav ul { gap: 1.1rem; }
  .site-nav a { font-size: 0.78rem; }
  .site-brand-text span { display: none; }
  .site-header-actions { gap: 1rem; }
  .header-cta { padding: 0.55em 1em; font-size: 0.68rem; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--basalt); padding: 6rem 2rem 2rem;
    transform: translateX(100%); transition: transform 0.35s ease;
  }
  .site-header.nav-open .site-nav { transform: translateX(0); }
  .site-nav ul { flex-direction: column; gap: 1.4rem; }
  .site-nav a { font-size: 1.05rem; color: #fdfaf3; }
  .site-nav a:hover, .site-nav a:focus-visible { color: var(--copper); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--paper) 0%, var(--quarry) 55%, var(--copper-tint) 100%);
  color: var(--ink);
  overflow: hidden;
  padding-top: 6rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.45;
}
.hero-bg-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,253,248,0.25) 0%, rgba(255,253,248,0.5) 45%, var(--quarry) 100%);
}

/* Slider */
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 0.58; }
.hero-slide-caption {
  position: absolute; left: var(--gutter); bottom: 1.6rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); background: rgba(255,253,248,0.75); padding: 0.4em 0.8em; border-radius: var(--radius-pill);
  opacity: 0; transition: opacity 0.6s ease;
}
.hero-slide.is-active .hero-slide-caption { opacity: 1; }

.hero-slider-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(36,31,25,0.2);
  background: rgba(255,253,248,0.75); color: var(--ink); font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-slider-arrow:hover, .hero-slider-arrow:focus-visible { background: var(--paper); border-color: var(--copper); }
.hero-slider-prev { left: var(--gutter); }
.hero-slider-next { right: var(--gutter); }
@media (max-width: 700px) { .hero-slider-arrow { display: none; } }

.hero-slider-dots {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 2; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.hero-slider-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(36,31,25,0.25); padding: 0; transition: background 0.2s ease, transform 0.2s ease;
}
.hero-slider-dot.is-active { background: var(--copper); transform: scale(1.3); }
.hero-slider-dot:hover { background: var(--copper-deep); }

.hero-strata {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.35;
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-inner .eyebrow { color: var(--copper-deep); }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  color: var(--ink);
  max-width: 14ch;
  text-shadow: 0 2px 20px rgba(255,253,248,0.85), 0 1px 3px rgba(255,253,248,0.9);
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 1.4rem;
  font-weight: 300;
  text-shadow: 0 2px 16px rgba(255,253,248,0.85);
}
.hero-cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-scroll-cue {
  position: absolute; right: var(--gutter); bottom: 2.4rem; z-index: 1;
  writing-mode: vertical-rl; color: var(--ink-soft); font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-scroll-cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--copper), transparent); }
@media (max-width: 780px) { .hero-scroll-cue { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.95em 1.7em; border-radius: var(--radius-pill); text-decoration: none;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn::before {
  content: "\2192"; display: inline-block; order: 3; transition: transform 0.25s ease;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(3px); }
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  background-size: 220% 100%; background-position: 120% 0;
  transition: background-position 0.6s ease;
}
.btn:hover::after, .btn:focus-visible::after { background-position: -20% 0; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary { background: var(--copper); color: var(--ink); }
.btn-primary:hover { background: var(--copper-deep); color: #fffdf8; box-shadow: 0 10px 24px rgba(201,162,75,0.4); }
.btn-ghost { border-color: rgba(36,31,25,0.3); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.62em 1.2em; font-size: 0.72rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner-section {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--copper-deep) 0%, var(--cobalt) 55%, var(--cobalt-deep) 100%);
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-banner-section::before {
  content: ""; position: absolute; inset: 0; opacity: 0.15; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M0 26L26 0' stroke='%23ffffff' stroke-opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.cta-banner-inner {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.6rem;
}
.cta-banner-heading {
  color: #fffdf8; font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 30ch; margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.cta-banner-section .btn-primary { background: #fffdf8; color: var(--ink); }
.cta-banner-section .btn-primary:hover { background: #fff; color: var(--copper-deep); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
@media (max-width: 640px) { .cta-banner-inner { flex-direction: column; align-items: flex-start; } }

/* =========================================================
   SECTION SHELL
   ========================================================= */
section { padding: var(--section-y) 0; }

/* A faint diagonal hairline tile — echoes the hero's geological
   strata lines at a much lower volume, giving every section a bit of
   texture instead of a flat fill. Baked at low alpha directly in the
   SVG (rather than via CSS opacity) so it never affects text/content. */
.section-light, .section-dark, .section-paper {
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M0 26L26 0' stroke='%23241f19' stroke-opacity='0.04'/%3E%3C/svg%3E");
}
.section-light { background-color: var(--quarry); color: var(--ink); }
.section-dark { background-color: var(--accent-tint); color: var(--ink); }
.section-paper { background-color: var(--paper); color: var(--ink); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.ink-soft { color: var(--ink-soft); }

/* Sequential "— 01 / — 02 / ..." editorial numbering after each real
   section's eyebrow label. Scoped to .section-head so the hero's own
   eyebrow (which isn't wrapped in .section-head) is never counted. */
#main { counter-reset: mtm-section; }
.section-head .eyebrow::after {
  counter-increment: mtm-section;
  content: "\2014\00A0" counter(mtm-section, decimal-leading-zero);
  opacity: 0.55;
  font-weight: 500;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid; grid-template-columns: 90px 1fr; gap: 2.5rem;
  max-width: 900px;
}
.about-grid.has-image { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); max-width: none; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.about-grid .body-copy { font-size: 1.08rem; }
.about-grid .body-copy p + p { margin-top: 1.1em; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(36,31,25,0.12); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .core-sample { display: none; }
  .about-grid.has-image { grid-template-columns: 1fr; }
}

/* =========================================================
   MISSION / VISION
   ========================================================= */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.mv-card { background: var(--paper); border-top: 3px solid var(--copper); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3.2rem); box-shadow: var(--shadow-card); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.mv-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.mv-card:nth-child(2) { border-top-color: var(--cobalt); }
.mv-card h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.9rem; }
.mv-card p { color: var(--ink-soft); font-size: 1.02rem; }
.mv-card .core-sample { margin-bottom: 1.4rem; }
@media (max-width: 700px) { .mv-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FOCUS CARDS
   ========================================================= */
.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.focus-card {
  background: var(--paper); border: 1px solid var(--quarry-dim); border-radius: var(--radius);
  padding: 2rem; display: flex; gap: 1.3rem;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.focus-card:hover { border-color: var(--copper); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.focus-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.focus-card p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 700px) { .focus-grid { grid-template-columns: 1fr; } }

/* =========================================================
   VALUES GRID
   ========================================================= */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; align-items: stretch; }

.value-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card);
  border-top: 3px solid var(--copper);
  padding: 2rem 1.6rem; display: flex; flex-direction: column; text-align: left;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%; /* fills the stretched grid row so every card in a row matches height */
}
.value-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
/* Alternate copper/navy accent across the row, same pattern used on
   Mission/Vision and Office cards elsewhere on the site. */
.value-card:nth-child(2n) { border-top-color: var(--cobalt); }

.value-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-tint);
  color: var(--copper-deep); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; flex-shrink: 0;
}
.value-icon svg { width: 24px; height: 24px; }

.value-name {
  font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 0.6rem;
}
.value-line {
  font-size: 0.95rem; font-weight: 600; color: var(--ink); line-height: 1.4; margin: 0 0 0.7rem;
}
.value-detail {
  font-size: 0.87rem; line-height: 1.6; color: var(--ink-soft); margin: 0; flex-grow: 1;
}

/* Reflow in balanced steps (5 → 3 → 2 → 1) instead of jumping straight
   from 5 to 2 columns, which would leave the 5th card orphaned alone
   in its own row. */
@media (max-width: 1180px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

/* =========================================================
   BY THE NUMBERS (optional)
   ========================================================= */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.stat-card { text-align: left; }
.stat-card .core-sample { margin-bottom: 1.2rem; }
.stat-number { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; color: var(--copper-deep); line-height: 1; }
.stat-label { display: block; margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; gap: 2.4rem; } }

/* =========================================================
   WHY CRITICAL MINERALS (stat / statement band)
   ========================================================= */
.why-band { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-band .lede { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.35; }
.why-band .lede em { font-style: normal; color: var(--copper); }
@media (max-width: 760px) { .why-band { grid-template-columns: 1fr; } }

#why.has-bg-image {
  position: relative; background-size: cover; background-position: center;
  padding-top: clamp(5rem, 12vw, 9rem); padding-bottom: clamp(5rem, 12vw, 9rem);
}
.why-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,253,248,0.5) 0%, rgba(255,253,248,0.28) 45%, rgba(255,253,248,0.1) 100%);
}
#why.has-bg-image .container { position: relative; z-index: 1; }
#why.has-bg-image .section-head .eyebrow {
  background: rgba(255,253,248,0.85); padding: 0.3em 0.8em; border-radius: var(--radius-pill);
}
.why-band-card {
  background: var(--paper); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: 0 12px 40px rgba(36,31,25,0.14); max-width: 620px;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem;
}
.gallery-item {
  position: relative; border: none; padding: 0; margin: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1;
  background: var(--quarry); box-shadow: var(--shadow-card); transition: box-shadow 0.3s ease;
}
.gallery-item:hover, .gallery-item:focus-visible { box-shadow: var(--shadow-card-hover); }
.gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6em 0.8em;
  background: linear-gradient(0deg, rgba(36,31,25,0.75), transparent);
  color: #fdfaf3; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  text-align: left; opacity: 0; transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-item-caption, .gallery-item:focus-visible .gallery-item-caption { opacity: 1; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 1; }
}

.gallery-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28,24,19,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.2rem, 5vw, 4rem);
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox-figure { max-width: 1100px; max-height: 85vh; margin: 0; text-align: center; }
.gallery-lightbox-figure img { max-width: 100%; max-height: 78vh; border-radius: var(--radius); display: block; margin: 0 auto; }
.gallery-lightbox-figure figcaption { color: #e9e2d3; font-family: var(--font-mono); font-size: 0.85rem; margin-top: 1rem; }
.gallery-lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: none;
  color: #fdfaf3; font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.gallery-lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none;
  color: #fdfaf3; font-size: 3rem; line-height: 1; cursor: pointer; padding: 0.4em 0.6em;
}
.gallery-lightbox-prev { left: 0.5rem; }
.gallery-lightbox-next { right: 0.5rem; }
.gallery-lightbox-arrow:hover, .gallery-lightbox-close:hover { color: var(--copper); }

/* =========================================================
   KEY OFFICIALS / LEADERSHIP
   ========================================================= */
.leadership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; }
.leadership-card { text-align: left; }
.leadership-photo {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: flex;
  margin-bottom: 1.2rem; box-shadow: var(--shadow-card);
}
.leadership-photo-fallback {
  align-items: center; justify-content: center; background: var(--cobalt); color: #fff;
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 600;
}
.leadership-name { font-size: 1.1rem; margin-bottom: 0.2rem; }
.leadership-role { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--copper-deep); margin-bottom: 0.8rem; }
.leadership-bio { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-track {
  display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 0.5rem; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--quarry-dim) transparent;
}
.testimonial-card {
  flex: 0 0 clamp(280px, 34vw, 380px); scroll-snap-align: start;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 2rem; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
}
.testimonial-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink);
}
.testimonial-card figcaption { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-card figcaption img, .testimonial-avatar-fallback {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
}
.testimonial-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--cobalt); color: #fff; font-family: var(--font-display); font-weight: 600;
}
.testimonial-card figcaption strong { display: block; font-size: 0.92rem; color: var(--ink); }
.testimonial-role { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.15rem; }

/* =========================================================
   OFFICES / CONTACT
   ========================================================= */
.offices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1rem; }
.office-card { background: var(--paper); border-top: 3px solid var(--cobalt); border-radius: var(--radius); padding: 2.1rem; box-shadow: var(--shadow-card); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.office-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.office-card:nth-child(2) { border-top-color: var(--copper); }
.office-card .eyebrow { color: var(--copper-deep); }
.office-card h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 1rem; }
.office-card dl { margin: 0; }
.office-card dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1rem; }
.office-card dt:first-child { margin-top: 0; }
.office-card dd { margin: 0.25rem 0 0; color: var(--ink); }
.office-card a { text-decoration: none; border-bottom: 1px solid var(--quarry-dim); }
.office-whatsapp-link {
  display: inline-flex; align-items: center; margin-left: 0.7em;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em;
  color: var(--lichen); border-bottom-color: transparent !important;
}
.office-whatsapp-link:hover { color: var(--copper); }
.office-card a:hover { border-color: var(--copper); }
@media (max-width: 760px) { .offices-grid { grid-template-columns: 1fr; } }

.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 1.1rem; }
.contact-form label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--quarry-dim); background: var(--paper);
  padding: 0.85em 1em; font-family: var(--font-body); font-size: 1rem; border-radius: var(--radius);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--copper); }
.contact-form .form-notice { padding: 0.9em 1.1em; border-radius: var(--radius); font-size: 0.92rem; margin-bottom: 0.4rem; }
.contact-form .form-notice.success { background: #e6ecdf; color: #445536; }
.contact-form .form-notice.error { background: #f3ddd4; color: #7a3319; }
.contact-form input[type="text"].hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* CTA band */
.cta-band { text-align: left; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 16ch; }
.cta-band .btn { margin-top: 1.8rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--basalt); color: #a89f8d; padding: 2rem 0; font-size: 0.85rem; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: #ece7db; text-decoration: none; }
.site-footer a:hover { color: var(--copper); }

/* =========================================================
   REVEAL-ON-SCROLL (subtle, respects reduced motion)
   ========================================================= */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.reveal-pending.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  body::before,
  .site-header, .nav-toggle, .hero-slider-arrow, .hero-slider-dots, .hero-scroll-cue,
  .hero-strata, .btn, .gallery-lightbox, .site-footer a[href="#site-header"],
  .contact-form button, .testimonial-track { display: none !important; }

  body { background: #fff !important; color: #000 !important; }
  section, .hero, #why.has-bg-image { background: #fff !important; padding: 1.2rem 0 !important; }
  .why-scrim { display: none !important; }
  .hero { min-height: auto !important; }
  .container { max-width: 100% !important; }

  .office-card, .mv-card, .focus-card, .value-card, .gallery-item, .testimonial-card {
    box-shadow: none !important; border: 1px solid #ddd !important;
  }
}
