/*
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.7.7
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; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
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;
}
.section-dark .eyebrow { color: 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 { color: var(--copper-deep); }
.ink-soft { color: var(--ink-soft); }

/* =========================================================
   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.has-two-images { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: stretch; }
.about-grid .body-copy { font-size: 1.08rem; }
.about-grid .body-copy p + p { margin-top: 1.1em; }

.about-photo { position: relative; }
.about-photo-primary, .about-photo-secondary {
  display: block; width: 100%; padding: 0; margin: 0; border: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.about-photo-primary:hover, .about-photo-primary:focus-visible,
.about-photo-secondary:hover, .about-photo-secondary:focus-visible {
  box-shadow: var(--shadow-card-hover); transform: translateY(-3px);
}
.about-photo-primary img, .about-photo-secondary img {
  width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3;
  transition: transform 0.5s ease;
}
.about-photo-primary:hover img, .about-photo-secondary:hover img { transform: scale(1.06); }

/* Two-photo layout: a simple, evenly-aligned side-by-side pair rather
   than an overlapping collage — both photos share the same size and
   aspect ratio, so they always line up cleanly regardless of screen
   width, with no absolute-positioning offsets to get wrong. Stretched
   to match the text column's full height (via align-items: stretch,
   set above) rather than sitting at a short, fixed aspect ratio with
   empty space left underneath. */
.about-photo-collage {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: stretch; height: 100%; min-height: 320px;
}
.about-photo-collage .about-photo-primary,
.about-photo-collage .about-photo-secondary {
  height: 100%;
}
.about-photo-collage .about-photo-primary img,
.about-photo-collage .about-photo-secondary img {
  height: 100%; aspect-ratio: auto;
}

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .core-sample { display: none; }
  .about-grid.has-image { grid-template-columns: 1fr; }
  .about-photo-collage { margin-bottom: 1rem; height: auto; min-height: 0; }
  .about-photo-collage .about-photo-primary,
  .about-photo-collage .about-photo-secondary { height: auto; }
  .about-photo-collage .about-photo-primary img,
  .about-photo-collage .about-photo-secondary img { aspect-ratio: 4 / 3; height: auto; }
}

/* =========================================================
   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: 900px) { .mv-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@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: 1100px) { .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .focus-grid { grid-template-columns: 1fr; } }

/* =========================================================
   VALUES GRID
   ========================================================= */
.values-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 1.1rem;
}

.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;
  flex: 1 1 200px; max-width: 260px; /* 5 fit a wide row; wraps and re-centers gracefully below that */
}
.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;
}

@media (max-width: 480px) { .value-card { flex-basis: 100%; max-width: 360px; } }

/* =========================================================
   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; color: var(--copper-deep); }
.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: 1200px;
}

/* =========================================================
   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); }

/* =========================================================
   LEADERSHIP / KEY OFFICIALS
   ========================================================= */
.leadership-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.leadership-card {
  position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden;
  background: var(--paper); border: 1px solid rgba(20,32,47,0.08);
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.leadership-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); border-color: rgba(201,162,75,0.45); }
.leadership-card-media { position: relative; min-height: 250px; background: var(--accent-tint); overflow: hidden; }
.leadership-photo { width: 100%; height: 250px; margin: 0; border-radius: 0; object-fit: cover; display: block; box-shadow: none; transition: transform 0.55s ease; }
.leadership-card:hover .leadership-photo { transform: scale(1.035); }
.leadership-photo-fallback {
  display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cobalt), var(--basalt-soft));
  color: #fff; font-family: var(--font-display); font-size: 3rem; font-weight: 600;
}
.leadership-card-body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.35rem, 2.5vw, 1.8rem); }
.leadership-index { margin: 0 0 0.7rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--copper-deep); }
.leadership-name { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.12; color: var(--ink); margin-bottom: 0.35rem; }
.leadership-role { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 0.9rem; line-height: 1.45; }
.leadership-bio { font-family: var(--font-body); font-size: 0.94rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.25rem; }
.leadership-read-more {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; margin-top: auto;
  padding: 0.85rem 0 0; border: 0; border-top: 1px solid var(--quarry-dim); background: transparent;
  color: var(--cobalt); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: left;
}
.leadership-read-more span:last-child { font-family: var(--font-body); font-size: 1.1rem; transition: transform 0.2s ease; }
.leadership-read-more:hover, .leadership-read-more:focus-visible { color: var(--copper-deep); }
.leadership-read-more:hover span:last-child, .leadership-read-more:focus-visible span:last-child { transform: translate(3px, -3px); }

/* =========================================================
   KEY OFFICIAL — FULL BIO LIGHTBOX
   ========================================================= */
body.leadership-modal-open { overflow: hidden; }
.leadership-modal[hidden] { display: none !important; }
.leadership-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  isolation: isolate;
}
.leadership-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 15, 27, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.leadership-modal-panel {
  position: relative; z-index: 1;
  width: min(1080px, 100%); max-height: min(820px, calc(100vh - 3rem));
  overflow: hidden; background: var(--paper);
  border: 1px solid rgba(201,162,75,.35);
  border-radius: 18px;
  box-shadow: 0 35px 100px rgba(0,0,0,.38);
  animation: leadership-modal-in .25s ease both;
}
@keyframes leadership-modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.leadership-modal-close {
  position: absolute; z-index: 5; top: 1rem; right: 1rem;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(20,35,52,.18); border-radius: 50%;
  background: rgba(255,253,248,.96); color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
.leadership-modal-close:hover, .leadership-modal-close:focus-visible {
  background: var(--copper-tint); border-color: var(--copper); outline: 3px solid rgba(201,162,75,.2); outline-offset: 2px;
}
.leadership-modal-inner {
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  max-height: min(820px, calc(100vh - 3rem));
}
.leadership-modal-photo-wrap { min-height: 620px; background: var(--accent-tint); }
.leadership-modal-photo { width: 100%; height: 100%; min-height: 620px; object-fit: cover; display: block; }
.leadership-modal-content {
  padding: clamp(2.25rem, 5vw, 4.5rem);
  overflow-y: auto; max-height: min(820px, calc(100vh - 3rem));
  scrollbar-width: thin; scrollbar-color: var(--quarry-dim) transparent;
}
.leadership-modal-content .eyebrow { margin: 0 0 .85rem; }
.leadership-modal-content h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05; color: var(--ink); max-width: 16ch; margin: 0 0 .7rem;
}
.leadership-modal-role {
  font-family: var(--font-mono); font-size: .76rem; line-height: 1.55;
  letter-spacing: .09em; text-transform: uppercase; color: var(--copper-deep);
  margin: 0 0 1.75rem; max-width: 55ch;
}
.leadership-modal-bio {
  max-width: 68ch; color: var(--ink-soft);
  font-family: var(--font-body); font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.85;
}
.leadership-modal-bio p { margin: 0; }
.leadership-modal-bio p + p { margin-top: 1.2em; }
.leadership-modal-bio p:first-child::first-letter { font-size: 1.5em; font-weight: 600; }
@media (max-width: 760px) {
  .leadership-modal { padding: .75rem; }
  .leadership-modal-panel { max-height: calc(100vh - 1.5rem); border-radius: 14px; }
  .leadership-modal-inner { grid-template-columns: 1fr; max-height: calc(100vh - 1.5rem); overflow-y: auto; }
  .leadership-modal-photo-wrap { min-height: 250px; height: 250px; }
  .leadership-modal-photo { min-height: 250px; height: 250px; }
  .leadership-modal-content { max-height: none; padding: 2rem 1.35rem 2.75rem; }
  .leadership-modal-content h2 { font-size: 2rem; max-width: none; padding-right: 2rem; }
  .leadership-modal-close { top: .75rem; right: .75rem; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .leadership-modal-panel { animation: none; }
}

/* =========================================================
   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 p.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* 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;
  }
}

/* Refined Key Official biography reading treatment */
.leadership-modal-divider {
  width: 100%; height: 1px; margin: 1.35rem 0 1.15rem;
  background: linear-gradient(90deg, var(--copper), var(--quarry-dim), transparent);
}
.leadership-bio-label {
  margin: 0 0 .75rem;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt);
}
.leadership-modal-bio p {
  margin: 0; max-width: 68ch;
  text-wrap: pretty;
}
.leadership-modal-bio p + p { margin-top: 1.15em; }
.leadership-modal-end {
  margin: 2rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--quarry-dim);
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
@media (max-width: 760px) {
  .leadership-modal-content { padding-top: 1.6rem; }
  .leadership-modal-bio { font-size: 1rem; line-height: 1.78; }
  .leadership-modal-content h2 { font-size: clamp(1.8rem, 9vw, 2.4rem); line-height: 1.08; }
}


/* =========================================================
   PROFESSIONAL RESPONSIVE CARD SYSTEM — v2.7.0
   Keeps every administrator-selected layout aligned and safe.
   ========================================================= */
.mv-grid,
.focus-grid,
.values-grid,
.stats-grid,
.offices-grid,
.gallery-grid,
.leadership-grid,
.testimonial-track {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.mv-card,
.focus-card,
.value-card,
.stat-card,
.office-card,
.gallery-item,
.leadership-card,
.testimonial-card {
  min-width: 0;
  height: 100%;
}

.mv-card,
.focus-card,
.value-card,
.office-card,
.leadership-card,
.testimonial-card {
  display: flex;
  flex-direction: column;
}

/* Content grows naturally instead of being clipped by an admin height choice. */
.mv-card,
.focus-card,
.value-card,
.stat-card,
.office-card,
.leadership-card,
.testimonial-card {
  overflow: visible;
}

.focus-card > div:last-child,
.mv-card > div:last-child,
.value-card > div:last-child,
.office-card > div:last-child {
  min-width: 0;
}

.focus-card h3,
.mv-card h3,
.value-name,
.office-card h3,
.leadership-name,
.testimonial-card blockquote {
  text-wrap: balance;
}

.focus-card p,
.mv-card p,
.value-line,
.value-detail,
.office-card dd,
.leadership-bio,
.testimonial-card blockquote {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Officials stay visually consistent even when cards-per-row changes. */
.leadership-card-media {
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  min-height: 0;
}
.leadership-photo,
.leadership-photo-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.leadership-card-body { min-width: 0; }
.leadership-role { min-height: 2.9em; }
.leadership-read-more { margin-top: auto; }

/* Gallery follows the selected column count instead of using irregular spanning tiles. */
.gallery-item { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-item:nth-child(6n+1) { grid-column: auto; grid-row: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 620px) {
  .leadership-role { min-height: 0; }
  .gallery-item { aspect-ratio: 4 / 3; }
}
\n\n/* =========================================================\n   KEY OFFICIAL BIO READING LAYOUT — v2.7.1\n   Wide, editorial biography view with graceful no-photo mode.\n   ========================================================= */\n.leadership-modal-panel {\n  width: min(1180px, 100%);\n}\n\n.leadership-modal-inner {\n  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);\n  min-height: min(700px, calc(100vh - 3rem));\n}\n\n.leadership-modal-photo-wrap {\n  position: relative;\n  min-width: 0;\n  min-height: 100%;\n  overflow: hidden;\n}\n\n.leadership-modal-photo {\n  width: 100%;\n  height: 100%;\n  min-height: 100%;\n  object-fit: cover;\n  object-position: center top;\n}\n\n.leadership-modal-content {\n  width: 100%;\n  min-width: 0;\n  padding: clamp(2.5rem, 4.5vw, 4.75rem);\n}\n\n.leadership-modal-content > * {\n  width: 100%;\n}\n\n.leadership-modal-content h2 {\n  max-width: 18ch;\n  margin-bottom: .75rem;\n  overflow-wrap: normal;\n  word-break: normal;\n  hyphens: none;\n  text-wrap: balance;\n}\n\n.leadership-modal-role {\n  max-width: 62ch;\n  margin-bottom: 1.6rem;\n}\n\n.leadership-modal-bio {\n  width: 100%;\n  max-width: 72ch;\n  font-size: clamp(1.02rem, .4vw + .94rem, 1.12rem);\n  line-height: 1.82;\n  letter-spacing: .002em;\n  color: var(--ink-soft);\n}\n\n.leadership-modal-bio p {\n  width: 100%;\n  max-width: none;\n  margin: 0;\n  text-align: left;\n  text-wrap: pretty;\n  overflow-wrap: break-word;\n  word-break: normal;\n  hyphens: auto;\n}\n\n.leadership-modal-bio p + p {\n  margin-top: 1.35em;\n}\n\n/* Do not enlarge the first letter: a biography should read like editorial copy. */\n.leadership-modal-bio p:first-child::first-letter {\n  font-size: inherit;\n  font-weight: inherit;\n}\n\n/* If no portrait is available, remove the empty media column completely. */\n.leadership-modal--no-photo .leadership-modal-panel {\n  width: min(920px, 100%);\n}\n\n.leadership-modal--no-photo .leadership-modal-inner {\n  display: block;\n  min-height: 0;\n}\n\n.leadership-modal--no-photo .leadership-modal-content {\n  max-width: 820px;\n  margin-inline: auto;\n  padding: clamp(3rem, 6vw, 5.25rem) clamp(1.5rem, 6vw, 5rem);\n}\n\n.leadership-modal--no-photo .leadership-modal-content h2 {\n  max-width: 20ch;\n}\n\n.leadership-modal--no-photo .leadership-modal-bio {\n  max-width: 70ch;\n}\n\n@media (max-width: 900px) {\n  .leadership-modal-inner {\n    grid-template-columns: minmax(240px, 32vw) minmax(0, 1fr);\n  }\n  .leadership-modal-content {\n    padding: clamp(2rem, 4vw, 3rem);\n  }\n}\n\n@media (max-width: 760px) {\n  .leadership-modal-panel {\n    width: 100%;\n    max-height: calc(100dvh - 1.5rem);\n  }\n  .leadership-modal-inner {\n    display: block;\n    min-height: 0;\n    max-height: calc(100dvh - 1.5rem);\n    overflow-y: auto;\n  }\n  .leadership-modal-photo-wrap {\n    height: clamp(220px, 42vh, 330px);\n    min-height: 0;\n  }\n  .leadership-modal-photo {\n    height: 100%;\n    min-height: 0;\n  }\n  .leadership-modal-content,\n  .leadership-modal--no-photo .leadership-modal-content {\n    max-width: none;\n    margin: 0;\n    padding: 2rem 1.35rem 2.75rem;\n  }\n  .leadership-modal-content h2,\n  .leadership-modal--no-photo .leadership-modal-content h2 {\n    max-width: calc(100% - 2.75rem);\n    font-size: clamp(2rem, 9vw, 2.75rem);\n    line-height: 1.04;\n  }\n  .leadership-modal-bio,\n  .leadership-modal--no-photo .leadership-modal-bio {\n    max-width: none;\n    font-size: 1rem;\n    line-height: 1.78;\n  }\n}\n

/* =========================================================
   KEY OFFICIAL BIO — COMPACT PORTRAIT HEADER v2.7.2
   The portrait is a small top-corner feature so biography
   copy keeps a comfortable full reading width.
   ========================================================= */
.leadership-modal-panel {
  width: min(980px, calc(100vw - 2rem));
}

.leadership-modal-inner,
.leadership-modal--no-photo .leadership-modal-inner {
  display: block;
  min-height: 0;
  max-height: min(88dvh, 860px);
  overflow-y: auto;
}

.leadership-modal-content,
.leadership-modal--no-photo .leadership-modal-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2.4rem, 5vw, 4.5rem);
}

.leadership-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.leadership-modal-identity {
  min-width: 0;
  align-self: center;
}

.leadership-modal-photo-wrap {
  width: clamp(120px, 15vw, 170px);
  height: clamp(150px, 19vw, 215px);
  min-width: 0;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--accent-tint);
  border: 1px solid var(--quarry-dim);
  box-shadow: 0 14px 34px rgba(20,32,47,.12);
}

.leadership-modal-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* Admin may place the compact portrait at either top corner. */
.leadership-modal-photo-left .leadership-modal-header {
  grid-template-columns: auto minmax(0, 1fr);
}
.leadership-modal-photo-left .leadership-modal-photo-wrap { grid-column: 1; grid-row: 1; }
.leadership-modal-photo-left .leadership-modal-identity { grid-column: 2; grid-row: 1; }
.leadership-modal-photo-right .leadership-modal-photo-wrap { grid-column: 2; grid-row: 1; }
.leadership-modal-photo-right .leadership-modal-identity { grid-column: 1; grid-row: 1; }

/* No image means no empty space at all. */
.leadership-modal--no-photo .leadership-modal-header {
  display: block;
}

.leadership-modal-content h2,
.leadership-modal--no-photo .leadership-modal-content h2 {
  max-width: 18ch;
  margin: .6rem 0 .55rem;
  padding-right: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.15rem);
  line-height: .98;
  text-wrap: balance;
}

.leadership-modal-role {
  max-width: 60ch;
  margin: 0;
}

.leadership-modal-divider {
  margin: clamp(1.8rem, 3vw, 2.6rem) 0 1.25rem;
}

.leadership-modal-bio {
  width: 100%;
  max-width: 74ch;
  font-size: clamp(1.02rem, .35vw + .96rem, 1.12rem);
  line-height: 1.82;
}

.leadership-modal-bio p {
  max-width: 74ch;
}

@media (max-width: 700px) {
  .leadership-modal {
    padding: .5rem;
  }
  .leadership-modal-panel {
    width: 100%;
    max-height: calc(100dvh - 1rem);
    border-radius: 14px;
  }
  .leadership-modal-inner,
  .leadership-modal--no-photo .leadership-modal-inner {
    max-height: calc(100dvh - 1rem);
  }
  .leadership-modal-content,
  .leadership-modal--no-photo .leadership-modal-content {
    padding: 2rem 1.25rem 2.5rem;
  }
  .leadership-modal-header,
  .leadership-modal-photo-left .leadership-modal-header {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 1rem;
  }
  .leadership-modal-photo-left .leadership-modal-photo-wrap,
  .leadership-modal-photo-right .leadership-modal-photo-wrap {
    grid-column: 2;
    grid-row: 1;
  }
  .leadership-modal-photo-left .leadership-modal-identity,
  .leadership-modal-photo-right .leadership-modal-identity {
    grid-column: 1;
    grid-row: 1;
  }
  .leadership-modal-photo-wrap {
    width: 94px;
    height: 118px;
    border-radius: 10px;
  }
  .leadership-modal-content h2,
  .leadership-modal--no-photo .leadership-modal-content h2 {
    max-width: 100%;
    padding-right: 0;
    font-size: clamp(1.85rem, 8.5vw, 2.65rem);
    line-height: 1.02;
  }
  .leadership-modal-role {
    font-size: .68rem;
  }
  .leadership-modal-bio,
  .leadership-modal-bio p {
    max-width: none;
  }
}


/* =========================================================
   KEY OFFICIAL CARD MEDIA — FULL PORTRAIT + HOVER BIO v2.7.3
   Keep the entire uploaded portrait visible. On pointer hover or
   keyboard focus, reveal a concise profile overview without
   disturbing the equal-height card layout.
   ========================================================= */
.leadership-card-media {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  height: clamp(260px, 27vw, 340px);
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

/* `contain` prevents heads, shoulders and the edges of portraits from
   being cropped. The neutral backdrop also keeps different source
   image ratios looking intentional. */
.leadership-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  background: #fff;
  transform: none;
  transition: transform .45s ease, filter .35s ease;
}

.leadership-photo-fallback {
  width: 100%;
  height: 100%;
}

.leadership-card:hover .leadership-photo,
.leadership-card-media:focus-visible .leadership-photo {
  transform: scale(1.015);
}

.leadership-hover-bio {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 66%;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  color: #fff;
  background: linear-gradient(180deg, rgba(8,22,39,0) 0%, rgba(8,22,39,.88) 32%, rgba(8,22,39,.97) 100%);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

.leadership-card-media:hover .leadership-hover-bio,
.leadership-card-media:focus-visible .leadership-hover-bio {
  opacity: 1;
  transform: translateY(0);
}

.leadership-card-media:hover .leadership-photo,
.leadership-card-media:focus-visible .leadership-photo {
  filter: brightness(.78) saturate(.92);
}

.leadership-hover-label {
  margin-bottom: .55rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #f2cf7b;
}

.leadership-hover-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  font-family: var(--font-body);
  font-size: clamp(.88rem, 1.1vw, .98rem);
  line-height: 1.58;
  color: rgba(255,255,255,.96);
}

.leadership-hover-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.28);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

.leadership-card-media:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: -3px;
}

/* Preserve the informative body excerpt for touch devices; hover is
   treated as an enhancement rather than the only way to discover bio. */
@media (hover: none) {
  .leadership-hover-bio { display: none; }
  .leadership-card-media:hover .leadership-photo { filter: none; transform: none; }
}

@media (max-width: 760px) {
  .leadership-card-media { height: clamp(250px, 86vw, 380px); }
}

@media (prefers-reduced-motion: reduce) {
  .leadership-photo,
  .leadership-hover-bio { transition: none; }
}


/* =========================================================
   PROFESSIONAL VISUAL POLISH — v2.7.6
   Harmonises Key Officials with the global heading system, keeps
   portraits exactly the same visual size, and reduces typography,
   spacing and controls proportionally on smaller screens.
   ========================================================= */

/* Key Officials uses the same H2 treatment as every primary section. */
#leadership .section-head {
  max-width: 780px;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
#leadership .leadership-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, var(--mtm-h2-size, 43px));
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--copper-deep);
  margin: 0;
  text-wrap: balance;
}

/* Every official receives one identical media frame. The source image
   remains fully visible and is never stretched or cropped. */
.leadership-card-media {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  background: #fff;
}
.leadership-card-media .leadership-photo,
.leadership-card-media .leadership-photo-fallback {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto;
}
.leadership-card-media .leadership-photo {
  object-fit: contain !important;
  object-position: center center;
  background: #fff;
}

/* Keep identity/body alignment consistent even with long names or roles. */
.leadership-card-body {
  gap: 0;
}
.leadership-name {
  min-height: 2.25em;
  display: flex;
  align-items: flex-start;
}
.leadership-role {
  min-height: 2.9em;
}
.leadership-bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

/* Global responsive refinement. Admin-selected desktop sizes remain the
   source of truth, while smaller screens scale them down safely. */
@media (max-width: 820px) {
  :root {
    --section-y: clamp(3.25rem, 8vw, 5rem);
    --gutter: clamp(1.1rem, 4vw, 2rem);
  }
  body {
    font-size: clamp(14px, 2vw, calc(var(--mtm-body-size, 17px) * .94));
  }
  h1 {
    font-size: clamp(2.15rem, 8.5vw, calc(var(--mtm-h1-size, 72px) * .76));
  }
  h2,
  #leadership .leadership-section-title {
    font-size: clamp(1.75rem, 6vw, calc(var(--mtm-h2-size, 43px) * .84));
  }
  h3 {
    font-size: clamp(1.08rem, 3.6vw, calc(var(--mtm-h3-size, 25px) * .9));
  }
  .section-head {
    margin-bottom: clamp(1.6rem, 5vw, 2.4rem);
  }
  .mv-card,
  .focus-card,
  .value-card,
  .office-card,
  .leadership-card,
  .testimonial-card {
    border-radius: 12px;
  }
  .leadership-card-body {
    padding: clamp(1.15rem, 3.5vw, 1.5rem);
  }
  .leadership-name {
    font-size: clamp(1.12rem, 3.2vw, calc(var(--mtm-official-name-size, 25px) * .88));
  }
  .leadership-bio {
    font-size: clamp(.86rem, 2.1vw, calc(var(--mtm-official-bio-size, 15px) * .94));
  }
}

@media (max-width: 620px) {
  :root {
    --section-y: clamp(2.75rem, 11vw, 4rem);
    --gutter: clamp(1rem, 5vw, 1.35rem);
  }
  body {
    font-size: clamp(14px, 4vw, calc(var(--mtm-body-size, 17px) * .88));
    line-height: 1.58;
  }
  h1 {
    font-size: clamp(2rem, 11vw, calc(var(--mtm-h1-size, 72px) * .62));
    line-height: 1.02;
  }
  h2,
  #leadership .leadership-section-title {
    font-size: clamp(1.65rem, 8vw, calc(var(--mtm-h2-size, 43px) * .72));
    line-height: 1.06;
  }
  h3 {
    font-size: clamp(1.05rem, 5vw, calc(var(--mtm-h3-size, 25px) * .82));
  }
  .eyebrow {
    font-size: clamp(.62rem, 2.6vw, calc(var(--mtm-eyebrow-size, 12px) * .9));
    letter-spacing: .12em;
  }
  .btn,
  .btn-sm,
  .leadership-read-more {
    font-size: clamp(.64rem, 2.8vw, calc(var(--mtm-button-size, 12px) * .9));
  }
  .site-nav a {
    font-size: clamp(.72rem, 3vw, calc(var(--mtm-nav-size, 13px) * .92));
  }

  /* Admin-set card dimensions become fluid on phones instead of forcing
     desktop-sized boxes into a narrow viewport. */
  .mv-card,
  .focus-card,
  .value-card,
  .stat-card,
  .office-card,
  .gallery-item,
  .leadership-card,
  .testimonial-card {
    width: 100%;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .mv-card,
  .focus-card,
  .value-card,
  .office-card,
  .leadership-card,
  .testimonial-card {
    padding-top: 0;
  }
  .focus-card,
  .mv-card,
  .value-card,
  .office-card,
  .testimonial-card {
    padding: clamp(1.15rem, 5vw, 1.5rem);
  }
  .leadership-card {
    padding: 0;
  }
  .leadership-card-media {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
  }
  .leadership-card-body {
    padding: 1.15rem;
  }
  .leadership-name {
    min-height: 0;
    font-size: clamp(1.15rem, 5.6vw, calc(var(--mtm-official-name-size, 25px) * .8));
  }
  .leadership-role {
    min-height: 0;
    font-size: .66rem;
  }
  .leadership-bio {
    font-size: clamp(.86rem, 3.8vw, calc(var(--mtm-official-bio-size, 15px) * .9));
    line-height: 1.65;
    -webkit-line-clamp: 4;
  }
  .leadership-hover-bio {
    padding: 1rem;
  }
  .leadership-hover-text {
    font-size: .86rem;
    -webkit-line-clamp: 4;
  }

  /* Forms, navigation controls and content media also scale gracefully. */
  input,
  textarea,
  select,
  button {
    max-width: 100%;
  }
  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }
}

/* =========================================================
   KEY OFFICIAL FRONT-END PORTRAIT ALIGNMENT — v2.7.7
   All profile cards use one identical visible portrait canvas.
   The full uploaded image remains visible and is never stretched.
   ========================================================= */
#leadership .leadership-card-media {
  width: 100%;
  height: clamp(270px, 28vw, 340px) !important;
  min-height: clamp(270px, 28vw, 340px) !important;
  aspect-ratio: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

#leadership .leadership-card-media .leadership-photo,
#leadership .leadership-card-media .leadership-photo-fallback {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#leadership .leadership-card-media .leadership-photo {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
}

/* Keep the media area identical even when the admin changes the
   number of cards per row. Only the width of the grid column changes. */
#leadership .leadership-card {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 980px) {
  #leadership .leadership-card-media {
    height: clamp(250px, 38vw, 330px) !important;
    min-height: clamp(250px, 38vw, 330px) !important;
  }
}

@media (max-width: 620px) {
  #leadership .leadership-card-media {
    height: clamp(250px, 78vw, 360px) !important;
    min-height: clamp(250px, 78vw, 360px) !important;
  }
}
