/* ═══════════════════════════════════════════════════════════════
   BUKA SPRL — MAIN STYLES
   Refined Earth Luxury — inspired by ekolana.com aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
  --ink: #12100E;
  /* warm deep black — primary bg */
  --fog: #1C1915;
  /* intermediate dark sections */
  --earth: #2A1F15;
  /* dark card background */
  --copper: #B5743A;
  /* refined copper accent */
  --copper-light: #D4956A;
  /* hover copper */
  --copper-pale: #E8C4A0;
  /* lightest copper tint */
  --sand: #F2EDE4;
  /* warm off-white — primary text */
  --stone: #E8E0D4;
  /* light sections bg */
  --moss: #3D5A3E;
  /* deep forest green */
  --moss-light: #4F7A52;
  /* moss hover */
  --text-main: #F2EDE4;
  --text-muted: #A09080;

  /* Legacy aliases (keep for compatibility) */
  --black: #12100E;
  --black-2: #1C1915;
  --anthracite: #2A1F15;
  --offwhite: #F2EDE4;
  --muted: #A09080;
  --green: #3D5A3E;

  --grad: linear-gradient(135deg, #B5743A 0%, #7A4E24 50%, #3D5A3E 100%);
  --grad-subtle: linear-gradient(135deg, rgba(181, 116, 58, 0.1) 0%, rgba(61, 90, 62, 0.07) 100%);
  --grad-warm: linear-gradient(135deg, #B5743A 0%, #D4956A 100%);

  --font-serif: 'Spectral', Georgia, serif;
  --font-sans: 'Epilogue', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
  --nav-h: 80px;
  --nav-h-sm: 52px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--copper);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out), opacity 0.2s;
  mix-blend-mode: normal;
}

.cursor-trail {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(181, 116, 58, 0.35);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}

@media (hover: none) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-trail {
    display: none;
  }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-warm);
  z-index: 10000;
  transition: width 0.1s linear;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--copper);
  animation: none;
}

.section-tag.is-visible::before {
  width: 28px;
  transition: width 0.6s var(--ease-out) 0.1s;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.18;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--copper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: background 0.25s var(--ease-out), transform 0.2s, box-shadow 0.25s;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  background: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(181, 116, 58, 0.3);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  border: 1px solid rgba(242, 237, 228, 0.15);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--copper);
  background: rgba(181, 116, 58, 0.07);
  color: var(--copper-light);
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: height 0.4s var(--ease-out),
    background 0.4s ease,
    border-color 0.35s,
    backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  height: var(--nav-h-sm);
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-color: rgba(181, 116, 58, 0.1);
}

.navbar.scrolled .logo-wrap {
  transform: scale(0.85);
  transform-origin: left center;
}

.navbar.scrolled .nav-link {
  font-size: 0.78rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}

/* Logo wrap for scale transition */
.logo-wrap {
  transition: transform 0.4s var(--ease-out);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s, font-size 0.4s var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--copper);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--sand);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 1px solid rgba(242, 237, 228, 0.1);
  border-radius: 2px;
  padding: 0.3rem 0.65rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.lang-toggle:hover {
  border-color: rgba(181, 116, 58, 0.35);
}

.lang-option {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.lang-option.active {
  color: var(--copper);
}

.lang-divider {
  color: rgba(242, 237, 228, 0.15);
  font-size: 0.68rem;
}

.lang-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 50%;
  background: var(--copper);
  transition: transform 0.28s var(--ease-out);
}

[data-lang="fr"] .lang-indicator {
  transform: translateX(100%);
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--copper);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--copper-light);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-main);
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(18, 16, 14, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem) 2rem;
  border-bottom: 1px solid rgba(181, 116, 58, 0.12);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  display: block;
  font-size: 1.15rem;
  font-family: var(--font-serif);
  font-weight: 400;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(242, 237, 228, 0.05);
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-link:hover {
  color: var(--text-main);
  padding-left: 0.5rem;
}

.mobile-cta {
  color: var(--copper) !important;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: #12100E;
  /* prevent body-ink from bleeding through on parallax */
}

/* Hero image background */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #1a0f00 0%, #2A1F15 40%, #100e0b 100%);
  will-change: transform;
}

.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(18, 16, 14, 0.80) 0%,
      rgba(18, 16, 14, 0.60) 50%,
      rgba(42, 31, 21, 0.72) 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    radial-gradient(ellipse 70% 55% at 65% 35%, rgba(122, 78, 36, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 15% 75%, rgba(100, 60, 20, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.5rem, 5vw, 3.5rem);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 2rem;
  opacity: 0;
}

.eyebrow-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--copper);
  opacity: 0.45;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

/* Parallax targets */
.hero-title-wrap {
  will-change: transform;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-accent {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(242, 237, 228, 0.65);
  margin-bottom: 1.25rem;
  max-width: 540px;
  opacity: 0;
  will-change: transform;
}

.hero-body {
  font-size: 1rem;
  color: rgba(242, 237, 228, 0.55);
  max-width: 500px;
  margin-bottom: 2.75rem;
  line-height: 1.8;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(242, 237, 228, 0.08);
  flex-shrink: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 5vw, 3.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  animation: scroll-fade 2.5s ease-in-out infinite;
  transition: opacity 0.4s;
}

.scroll-indicator-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--copper), transparent);
}

@keyframes scroll-fade {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.85;
  }
}

/* ══════════════════════════════════════════════════════════════
   PROMISE
══════════════════════════════════════════════════════════════ */
.promise {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--sand);
  position: relative;
}

.promise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 116, 58, 0.25), transparent);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(181, 116, 58, 0.12);
  border: 1px solid rgba(181, 116, 58, 0.12);
}

.promise-card {
  background: #fff;
  padding: 3rem 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}

.promise-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
  transform-origin: left;
}

.promise-card:hover {
  background: #F8F4EE;
}

.promise-card:hover::after {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.75rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(181, 116, 58, 0.2);
  letter-spacing: 0.1em;
}

.promise-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.promise-card p {
  font-size: 0.9rem;
  color: #3a2e22;
  line-height: 1.75;
  font-weight: 300;
}

/* ══════════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════════ */
.services {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: #EFEBE3;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 116, 58, 0.18), transparent);
}

.services-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.services-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.055;
  mix-blend-mode: luminosity;
}

.services-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(181, 116, 58, 0.025);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 1px;
  background: rgba(181, 116, 58, 0.1);
  position: relative;
  z-index: 1;
}

.service-card {
  background: #fff;
  padding: 2.75rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Slide-in from alternating sides — JS adds .slide-from-left / .slide-from-right */
.service-card.slide-from-left {
  opacity: 0;
  transform: translateX(-40px);
}

.service-card.slide-from-right {
  opacity: 0;
  transform: translateX(40px);
}

.service-card.slide-in {
  opacity: 1 !important;
  transform: translateX(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
  transform-origin: left;
}

.service-card:hover {
  background: #F5F0E8;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 36px;
  height: 36px;
  color: var(--copper);
  margin-bottom: 1.25rem;
  transition: transform 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(181, 116, 58, 0.3);
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.service-card>p {
  font-size: 0.87rem;
  color: #3a2e22;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.service-features li {
  font-size: 0.78rem;
  color: rgba(58, 46, 34, 0.65);
  padding-left: 0.85rem;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.45;
}

/* ══════════════════════════════════════════════════════════════
   MINERALS
══════════════════════════════════════════════════════════════ */
.minerals {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.minerals::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 116, 58, 0.25), transparent);
}

/* Minerals showcase image */
.minerals-showcase {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #1a0f00 0%, #3D2010 30%, #1a3020 70%, #12100E 100%);
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.minerals-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-out);
}

.minerals-showcase:hover img {
  transform: scale(1.03);
}

.minerals-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(18, 16, 14, 0.7) 0%,
      rgba(18, 16, 14, 0.1) 50%,
      rgba(18, 16, 14, 0.7) 100%);
  pointer-events: none;
}

.minerals-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding: 0 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .minerals-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .minerals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mineral-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.mineral-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.mineral-card:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* mineral-card__bg: always-on gradient per mineral */
.mineral-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #2A1F15, #12100E);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mineral-card:hover .mineral-card__bg {
  transform: scale(1.08);
}

/* Per-mineral backgrounds — always applied, no error class needed */
[data-mineral="copper"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%23521f0a' width='200' height='200'/%3E%3Cpolygon points='100,18 136,39 136,81 100,102 64,81 64,39' fill='none' stroke='%23C87941' stroke-width='1.5' opacity='0.55'/%3E%3Cpolygon points='100,40 120,51 120,74 100,85 80,74 80,51' fill='none' stroke='%23e8a060' stroke-width='1' opacity='0.4'/%3E%3Cpolygon points='100,140 128,156 128,188 100,204 72,188 72,156' fill='none' stroke='%23b55a25' stroke-width='1.2' opacity='0.35'/%3E%3Ccircle cx='100' cy='60' r='3.5' fill='%23C87941' opacity='0.7'/%3E%3Ccircle cx='160' cy='130' r='2.5' fill='%23e8a060' opacity='0.5'/%3E%3Ccircle cx='40' cy='150' r='2' fill='%23C87941' opacity='0.4'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #7a3010, #C87941, #8B4513);
}

[data-mineral="cobalt"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%230a1535' width='200' height='200'/%3E%3Cpath d='M100,20 L130,70 L100,120 L70,70 Z' fill='none' stroke='%234a7abf' stroke-width='1.5' opacity='0.55'/%3E%3Cpath d='M100,45 L118,75 L100,105 L82,75 Z' fill='none' stroke='%2380b0f0' stroke-width='1' opacity='0.4'/%3E%3Cpath d='M40,130 L60,160 L40,190 L20,160 Z' fill='none' stroke='%234a7abf' stroke-width='1' opacity='0.3'/%3E%3Cpath d='M150,30 L165,55 L150,80 L135,55 Z' fill='none' stroke='%2380b0f0' stroke-width='1' opacity='0.35'/%3E%3Ccircle cx='100' cy='70' r='3' fill='%2380b0f0' opacity='0.6'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #0d1a4a, #1e3a7a, #2d4a8a);
}

[data-mineral="gold"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%23341e00' width='200' height='200'/%3E%3Ccircle cx='100' cy='90' r='55' fill='none' stroke='%23C8A800' stroke-width='1.5' opacity='0.4'/%3E%3Ccircle cx='100' cy='90' r='38' fill='none' stroke='%23e8c840' stroke-width='1' opacity='0.35'/%3E%3Ccircle cx='100' cy='90' r='20' fill='none' stroke='%23ffdd60' stroke-width='0.8' opacity='0.3'/%3E%3Cpolygon points='100,35 115,80 162,80 124,107 138,152 100,126 62,152 76,107 38,80 85,80' fill='none' stroke='%23C8A800' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='90' r='4' fill='%23ffdd60' opacity='0.7'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #5a4000, #a87c00, #C8A800);
}

[data-mineral="zinc"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%231e1e1e' width='200' height='200'/%3E%3Crect x='60' y='60' width='80' height='80' fill='none' stroke='%236b7280' stroke-width='1.5' opacity='0.5'/%3E%3Crect x='75' y='75' width='50' height='50' fill='none' stroke='%239ca3af' stroke-width='1' opacity='0.4'/%3E%3Crect x='90' y='90' width='20' height='20' fill='none' stroke='%23d1d5db' stroke-width='0.8' opacity='0.35'/%3E%3Crect x='20' y='20' width='40' height='40' fill='none' stroke='%236b7280' stroke-width='1' opacity='0.3'/%3E%3Crect x='140' y='140' width='40' height='40' fill='none' stroke='%236b7280' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='3' fill='%239ca3af' opacity='0.6'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #2a2a2a, #4a4a4a, #6b7280);
}

[data-mineral="cassiterite"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%231a0e07' width='200' height='200'/%3E%3Cpath d='M100,30 L140,60 L155,105 L130,148 L70,148 L45,105 L60,60 Z' fill='none' stroke='%237a5c48' stroke-width='1.5' opacity='0.5'/%3E%3Cpath d='M100,55 L124,73 L133,100 L116,127 L84,127 L67,100 L76,73 Z' fill='none' stroke='%23a07858' stroke-width='1' opacity='0.4'/%3E%3Ccircle cx='100' cy='100' r='15' fill='none' stroke='%23c09878' stroke-width='0.8' opacity='0.35'/%3E%3Ccircle cx='100' cy='100' r='3.5' fill='%23a07858' opacity='0.65'/%3E%3Ccircle cx='155' cy='50' r='2' fill='%237a5c48' opacity='0.4'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #2d1a10, #4a3728, #7a5c48);
}

[data-mineral="manganese"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%23100818' width='200' height='200'/%3E%3Cpolygon points='100,22 137,44 137,88 100,110 63,88 63,44' fill='none' stroke='%235a3a6b' stroke-width='1.5' opacity='0.5'/%3E%3Cpolygon points='100,47 120,59 120,82 100,94 80,82 80,59' fill='none' stroke='%238a5a9b' stroke-width='1' opacity='0.4'/%3E%3Cpolygon points='100,130 130,147 130,182 100,199 70,182 70,147' fill='none' stroke='%235a3a6b' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='68' r='3.5' fill='%238a5a9b' opacity='0.65'/%3E%3Ccircle cx='160' cy='35' r='2' fill='%235a3a6b' opacity='0.45'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #1a0f2a, #2d1f3d, #5a3a6b);
}

[data-mineral="coal"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%23050505' width='200' height='200'/%3E%3Cpath d='M30,80 L80,60 L130,75 L170,55 L170,90 L130,110 L80,95 L30,115 Z' fill='none' stroke='%23333' stroke-width='1.5' opacity='0.6'/%3E%3Cpath d='M20,110 L70,95 L120,108 L160,90 L160,120 L120,138 L70,125 L20,140 Z' fill='none' stroke='%23444' stroke-width='1' opacity='0.5'/%3E%3Cpath d='M30,140 L80,128 L130,140 L170,125 L170,155 L130,168 L80,156 L30,168 Z' fill='none' stroke='%23333' stroke-width='1' opacity='0.4'/%3E%3Ccircle cx='100' cy='100' r='3' fill='%23555' opacity='0.5'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #050505, #111111, #2d2d2d);
}

[data-mineral="silver"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%23252525' width='200' height='200'/%3E%3Ccircle cx='100' cy='100' r='65' fill='none' stroke='%23c0c0c0' stroke-width='1.5' opacity='0.35'/%3E%3Ccircle cx='100' cy='100' r='45' fill='none' stroke='%23d8d8d8' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='25' fill='none' stroke='%23e8e8e8' stroke-width='0.8' opacity='0.25'/%3E%3Cpath d='M100,35 L112,70 L148,70 L119,91 L130,127 L100,106 L70,127 L81,91 L52,70 L88,70 Z' fill='none' stroke='%23b0b0b0' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='3.5' fill='%23e0e0e0' opacity='0.6'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #3a3a3a, #7a7a7a, #c0c0c0);
}

[data-mineral="cadmium"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%230e1a0a' width='200' height='200'/%3E%3Cpath d='M100,25 L145,50 L145,100 L100,125 L55,100 L55,50 Z' fill='none' stroke='%233a7030' stroke-width='1.5' opacity='0.5'/%3E%3Cpath d='M100,50 L128,65 L128,95 L100,110 L72,95 L72,65 Z' fill='none' stroke='%2360a050' stroke-width='1' opacity='0.4'/%3E%3Ccircle cx='100' cy='150' r='30' fill='none' stroke='%233a7030' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='80' r='3.5' fill='%2360a050' opacity='0.65'/%3E%3Ccircle cx='50' cy='160' r='2' fill='%233a7030' opacity='0.4'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #1a2d15, #3a5530, #7aad6a);
}

[data-mineral="germanium"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%230a1018' width='200' height='200'/%3E%3Cpath d='M100,20 L130,50 L130,90 L100,120 L70,90 L70,50 Z' fill='none' stroke='%234a6b8a' stroke-width='1.5' opacity='0.5'/%3E%3Cpath d='M100,45 L118,62 L118,88 L100,105 L82,88 L82,62 Z' fill='none' stroke='%2370a0c8' stroke-width='1' opacity='0.4'/%3E%3Cpath d='M140,130 L165,155 L140,180 L115,155 Z' fill='none' stroke='%234a6b8a' stroke-width='1' opacity='0.35'/%3E%3Cpath d='M35,130 L55,155 L35,180 L15,155 Z' fill='none' stroke='%234a6b8a' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='70' r='3.5' fill='%2370a0c8' opacity='0.6'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #101820, #1e2f40, #4a6b8a);
}

[data-mineral="palladium"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%231a1a1a' width='200' height='200'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%23909090' stroke-width='1.5' opacity='0.4'/%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='%23b0b0b0' stroke-width='1' opacity='0.35'/%3E%3Cpath d='M100,40 L140,70 L140,130 L100,160 L60,130 L60,70 Z' fill='none' stroke='%23808080' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='3.5' fill='%23c0c0c0' opacity='0.65'/%3E%3Ccircle cx='155' cy='60' r='2' fill='%23909090' opacity='0.45'/%3E%3Ccircle cx='45' cy='140' r='2' fill='%23909090' opacity='0.4'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #2a2a2a, #5a5a5a, #a8a8a8);
}

[data-mineral="uranium"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%23091000' width='200' height='200'/%3E%3Ccircle cx='100' cy='100' r='55' fill='none' stroke='%234a7a00' stroke-width='1.5' opacity='0.45'/%3E%3Ccircle cx='100' cy='100' r='38' fill='none' stroke='%2370aa20' stroke-width='1' opacity='0.35'/%3E%3Ccircle cx='100' cy='100' r='20' fill='none' stroke='%2390cc40' stroke-width='0.8' opacity='0.3'/%3E%3Cpolygon points='100,22 137,44 137,88 100,110 63,88 63,44' fill='none' stroke='%234a7a00' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='4' fill='%2370aa20' opacity='0.7'/%3E%3Ccircle cx='60' cy='55' r='2' fill='%234a7a00' opacity='0.4'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #0a1500, #1a2d00, #4a7a00);
}

[data-mineral="platinum"] .mineral-card__bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%2310101a' width='200' height='200'/%3E%3Cpath d='M100,25 L145,55 L155,100 L130,142 L70,142 L45,100 L55,55 Z' fill='none' stroke='%238090b0' stroke-width='1.5' opacity='0.5'/%3E%3Cpath d='M100,50 L128,68 L135,100 L118,130 L82,130 L65,100 L72,68 Z' fill='none' stroke='%23a0b0d0' stroke-width='1' opacity='0.4'/%3E%3Ccircle cx='100' cy='95' r='20' fill='none' stroke='%23c0d0e8' stroke-width='0.8' opacity='0.3'/%3E%3Ccircle cx='100' cy='95' r='3.5' fill='%23b0c0e0' opacity='0.65'/%3E%3Ccircle cx='40' cy='50' r='2' fill='%238090b0' opacity='0.4'/%3E%3Ccircle cx='160' cy='150' r='2' fill='%238090b0' opacity='0.4'/%3E%3C/svg%3E") center/cover, linear-gradient(145deg, #1a1a2a, #4a4a5a, #9090b0);
}

.mineral-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem;
  background: linear-gradient(to top, rgba(18, 16, 14, 0.92) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.mineral-name {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sand);
  text-align: left;
  line-height: 1.2;
}

.mineral-symbol {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--copper);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.minerals-cta {
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   IMAGE PLACEHOLDERS (fallback while real images load)
══════════════════════════════════════════════════════════════ */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.img-placeholder--about {
  min-height: 420px;
  background: linear-gradient(135deg, #2A1F15 0%, #3D2810 40%, #1C3020 100%);
}

.gallery-ph--1 {
  min-height: 100%;
  background: linear-gradient(135deg, #3D2000 0%, #8B4513 50%, #1a3020 100%);
}

.gallery-ph--2 {
  min-height: 100%;
  background: linear-gradient(160deg, #001a0d 0%, #0d3320 50%, #2D6A4F 100%);
}

.gallery-ph--3 {
  min-height: 100%;
  background: linear-gradient(200deg, #2A1F15 0%, #5a3510 60%, #3D2800 100%);
}

.gallery-ph--4 {
  min-height: 100%;
  background: linear-gradient(110deg, #12100E 0%, #2A2520 50%, #3D3020 100%);
}

/* ══════════════════════════════════════════════════════════════
   MINERAL CARDS — IMAGE-BASED LAYOUT
══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
.about {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--stone);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 116, 58, 0.18), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--copper);
}

.about-mv {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mv-item h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.6rem;
}

.mv-item p {
  font-size: 0.9rem;
  color: #3a2e22;
  line-height: 1.8;
  font-weight: 300;
}

/* About image */
.about-image {
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 1.5px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease-out);
}

.about-image.is-revealed {
  clip-path: inset(0 0% 0 0);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.values-block,
.locations-block {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(181, 116, 58, 0.12);
  padding: 2rem;
  margin-bottom: 1.5px;
}

.block-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.5rem;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.value-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.values-list strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.values-list span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.locations-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.locations-list strong {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-main);
  margin-right: 0.4rem;
}

.locations-list span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
}

.location-flag {
  font-size: 1rem;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════════════ */
.gallery {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--ink);
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 116, 58, 0.25), transparent);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 3px;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--fog);
}

.gallery-item--span2-row {
  grid-row: span 2;
}

.gallery-item--span2-col {
  grid-column: span 2;
}

/* Clip-path reveal from bottom — JS adds .gallery-revealed */
.gallery-item.gallery-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s var(--ease-out);
}

.gallery-item.gallery-clip.gallery-revealed {
  clip-path: inset(0 0 0 0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s var(--ease-out), filter 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 16, 14, 0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  gap: 0.6rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.gallery-zoom-icon {
  width: 18px;
  height: 18px;
  color: var(--copper);
  flex-shrink: 0;
}

.gallery-zoom-icon svg {
  width: 100%;
  height: 100%;
}

/* Fallback gradient for missing images */
.gallery-item .gallery-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gallery-item img {
  position: relative;
  z-index: 1;
}

/* Placeholder divs inside gallery items */
.gallery-item .img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  z-index: 0;
}

.gallery-quote {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
}

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(18, 16, 14, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 3px;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--earth);
  border: 1px solid rgba(181, 116, 58, 0.2);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-close:hover {
  background: var(--fog);
  border-color: var(--copper);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42, 31, 21, 0.85);
  border: 1px solid rgba(181, 116, 58, 0.15);
  color: var(--text-main);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.2rem;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-nav:hover {
  background: var(--earth);
  border-color: var(--copper);
}

.lightbox-caption {
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
.contact {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 116, 58, 0.25), transparent);
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 5% 50%, rgba(61, 90, 62, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 95% 30%, rgba(122, 78, 36, 0.07) 0%, transparent 55%);
  pointer-events: none;
  overflow: hidden;
}

.contact-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.contact-lead {
  font-size: 0.95rem;
  color: #3a2e22;
  line-height: 1.8;
  margin-bottom: 2.75rem;
  max-width: 400px;
  font-weight: 300;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-details strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.35rem;
}

.contact-details a,
.contact-details span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 300;
}

.contact-details a:hover {
  color: var(--text-main);
}

.contact-form-wrap {
  background: var(--earth);
  border: 1px solid rgba(181, 116, 58, 0.08);
  padding: 2.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(242, 237, 228, 0.08);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-color: #1c1612;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A09080' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
  color: #F2EDE4;
  color-scheme: light;
}

.form-group select option {
  background: #1c1612;
  color: #F2EDE4;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--copper);
  background: rgba(181, 116, 58, 0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(160, 144, 128, 0.4);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c05050;
}

.form-error {
  font-size: 0.73rem;
  color: #c07070;
  min-height: 1rem;
}

.form-submit {
  display: flex;
  margin-top: 0.5rem;
}

.btn-submit {
  position: relative;
}

.btn-submit.loading span {
  opacity: 0.5;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(18, 16, 14, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(61, 90, 62, 0.15);
  border: 1px solid rgba(61, 90, 62, 0.3);
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-size: 0.88rem;
  color: #7dba95;
  margin-top: 1rem;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #7dba95;
}

.form-success[hidden] {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   STICKY SECTION LABELS
══════════════════════════════════════════════════════════════ */
.section-label {
  position: absolute;
  left: clamp(0.5rem, 1.5vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(160, 144, 128, 0.25);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.4s;
}

/* Show when section is intersecting */
.section-label.label-visible {
  color: rgba(160, 144, 128, 0.45);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(181, 116, 58, 0.08);
}

.footer-top {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}

.footer-flags {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
  font-size: 1.4rem;
  line-height: 1;
}

.footer-flags span {
  cursor: default;
}

.footer-divider-wrap {
  padding: 0 var(--space-lg);
}

.footer-divider-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), transparent);
  margin: 2rem 0 0;
  transition: width 1.2s var(--ease-out);
}

.footer-divider-line.line-drawn {
  width: 100%;
}

.footer-nav h4,
.footer-contact-info h4,
.footer-offices h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.25rem;
}

.footer-nav ul,
.footer-contact-info ul,
.footer-offices ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a,
.footer-contact-info a,
.footer-offices li {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 300;
}

.footer-nav a:hover,
.footer-contact-info a:hover {
  color: var(--text-main);
}

.footer-offices li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-offices strong {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.85rem;
}

.footer-offices .flag {
  font-size: 1rem;
  line-height: 1;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(242, 237, 228, 0.04);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy,
.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(160, 144, 128, 0.4);
  letter-spacing: 0.06em;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}
.footer-legal-links a {
  color: rgba(160, 144, 128, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--copper); }
.footer-legal-links span { color: rgba(160, 144, 128, 0.2); }

/* ══════════════════════════════════════════════════════════════
   LIGHT SECTION OVERRIDES
   Promise, Services, About, Contact use light backgrounds
══════════════════════════════════════════════════════════════ */
.promise .section-title,
.services .section-title,
.about .section-title,
.contact .section-title {
  color: var(--ink);
}

.promise .section-title em,
.services .section-title em,
.about .section-title em,
.contact .section-title em {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promise .section-subtitle,
.services .section-subtitle,
.about .section-subtitle,
.contact .section-subtitle {
  color: #5a4a38;
}

.promise .section-label,
.services .section-label,
.about .section-label,
.contact .section-label {
  color: rgba(181, 116, 58, 0.3);
}

/* Contact text on light bg */
.contact .contact-details strong,
.contact .contact-details a,
.contact .contact-details span {
  color: var(--ink);
}

.contact .contact-details a:hover {
  color: var(--copper);
}

/* About section inner text */
.about .block-title {
  color: var(--copper);
}

.about .values-list li,
.about .locations-list li {
  color: #3a2e22;
}

.about .location-role {
  color: var(--copper);
}

/* Contact form on light bg */
.contact .contact-form-wrap {
  background: #fff;
  border: 1px solid rgba(181, 116, 58, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.contact label {
  color: var(--ink);
}

.contact input,
.contact select,
.contact textarea {
  background: var(--sand);
  border-color: rgba(181, 116, 58, 0.2);
  color: var(--ink);
}
.contact select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a3e22' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: rgba(90, 72, 52, 0.38);
}
.contact select.select-empty {
  color: rgba(90, 72, 52, 0.38);
}


/* ═══════════════════════════════════════════════════════════════
   AFRICA SILHOUETTE
   ═══════════════════════════════════════════════════════════════ */
.africa-silhouette {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 28vw, 420px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.africa-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(181, 116, 58, 0.12));
}

/* Katanga dot pulse handled by inline SVG <animate> elements */
.katanga-dot {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .africa-silhouette {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   IMG-GRADIENT FALLBACKS
   ═══════════════════════════════════════════════════════════════ */
.img-gradient {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.img-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(181, 116, 58, 0.15) 0%, transparent 60%);
}

.img-gradient--about {
  background: linear-gradient(145deg, #2A1F15 0%, #3d2810 35%, #1C1510 70%, #0f1a0a 100%);
  min-height: 480px;
}

.img-gradient--gallery1 {
  background: linear-gradient(160deg, #1a0f00 0%, #3D2010 45%, #1a2010 100%);
  min-height: 300px;
}

.img-gradient--gallery2 {
  background: linear-gradient(145deg, #2A1F15 0%, #0f1a0a 60%, #1a3020 100%);
  min-height: 300px;
}

.img-gradient--gallery3 {
  background: linear-gradient(135deg, #0f1a0a 0%, #2A1F15 50%, #3D2010 100%);
  min-height: 300px;
}

.img-gradient--gallery4 {
  background: linear-gradient(150deg, #3D2010 0%, #1a0f00 40%, #12100E 100%);
  min-height: 300px;
}

.img-gradient--contact {
  background: linear-gradient(135deg, #0d0a08 0%, #1a1008 40%, #1a1a10 80%, #0f100a 100%);
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.contact-bg .img-gradient--contact {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BUTTON CONTRAST (light sections)
   ═══════════════════════════════════════════════════════════════ */
#contact .btn-primary,
#promise .btn-primary {
  background: var(--ink);
  color: var(--sand);
  border: 1.5px solid transparent;
}

#contact .btn-primary:hover,
#promise .btn-primary:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

#hero .btn-primary {
  background: var(--copper);
  color: var(--sand);
}

/* Contact form submit — restore copper btn-primary (same as all other buttons) */
#contact .btn-primary.btn-submit-full {
  background: var(--copper);
  color: var(--ink);
  border: none;
}

#contact .btn-primary.btn-submit-full:hover {
  background: var(--copper-light);
  color: var(--ink);
  border: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(181, 116, 58, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION TEXT READABILITY
   ═══════════════════════════════════════════════════════════════ */
#about {
  color: var(--ink);
}

#about .section-title,
#about h3,
#about p {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}

#about .section-title em {
  color: var(--copper);
  -webkit-text-fill-color: var(--copper);
}

#about .value-desc,
#about .location-role,
#about .about-lead {
  color: #3a2e22 !important;
  -webkit-text-fill-color: #3a2e22;
}

#about .values-block,
#about .locations-block {
  background: #fff;
  border: 1px solid rgba(181, 116, 58, 0.2);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   ICON GEOMETRIC SHAPES
   ═══════════════════════════════════════════════════════════════ */
.contact-icon-shape {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(181, 116, 58, 0.1);
  border: 1px solid rgba(181, 116, 58, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.contact-info-item:hover .contact-icon-shape,
.contact-details li:hover .contact-icon-shape {
  background: rgba(181, 116, 58, 0.18);
  border-color: rgba(181, 116, 58, 0.5);
  transform: translateY(-2px);
}

.value-icon-shape {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(181, 116, 58, 0.1);
  border: 1px solid rgba(181, 116, 58, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.location-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(181, 116, 58, 0.08);
  border: 1px solid rgba(181, 116, 58, 0.2);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

/* ═══════════════════════════════════════════════════════════════
   ICON ENTRANCE ANIMATION
   ═══════════════════════════════════════════════════════════════ */
.icon-svg {
  opacity: 0;
  transform: scale(0.7) translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-svg.icon-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .icon-svg {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   V4 CORRECTIONS
   ═══════════════════════════════════════════════════════════════ */

/* ── ICON SVG: force fill:none to prevent filled-blob artifacts ── */
.icon-svg {
  fill: none !important;
}

.icon-svg path,
.icon-svg circle,
.icon-svg rect,
.icon-svg line,
.icon-svg polyline,
.icon-svg polygon,
.icon-svg ellipse {
  fill: none;
}

/* Explicit fill exceptions */
.icon-svg [data-filled="true"],
.icon-svg .icon-lock-dot,
.icon-svg .icon-pin-dot {
  fill: currentColor !important;
}

/* ── ABOUT SECTION — DEFINITIVE TEXT CONTRAST ── */
#about,
#about * {
  color: #12100E !important;
  -webkit-text-fill-color: #12100E !important;
}

#about .section-title em,
#about h2 em,
#about .section-title span.copper {
  color: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
}

#about .section-tag,
#about .section-tag * {
  color: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
}

#about .value-desc,
#about .about-lead,
#about p {
  color: #3a2e22 !important;
  -webkit-text-fill-color: #3a2e22 !important;
}

#about .text-muted,
#about [class*="muted"] {
  color: #6b5a4a !important;
  -webkit-text-fill-color: #6b5a4a !important;
}

/* Icons in about: keep copper stroke */
#about .icon-svg,
#about svg,
#about svg * {
  color: var(--copper) !important;
  stroke: var(--copper) !important;
  -webkit-text-fill-color: initial !important;
}

#about svg text {
  fill: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
}

/* Values block white card */
#about .values-block,
#about .locations-block {
  background: #fff !important;
  border: 1px solid rgba(181, 116, 58, 0.2) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05) !important;
}

/* ── CONTACT SECTION — FULL REBUILD STYLES ── */
#contact {
  background: var(--sand);
  padding: 6rem 0;
}

#contact * {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
}

#contact .section-title em {
  color: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
}

#contact .section-tag,
#contact .contact-info-label {
  color: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
}

#contact a {
  color: var(--ink) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#contact a:hover {
  color: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
}

#contact svg,
#contact svg * {
  color: var(--copper) !important;
  stroke: var(--copper) !important;
  -webkit-text-fill-color: initial !important;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-info-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-info-text a,
.contact-info-text span {
  font-size: 0.95rem;
  line-height: 1.6;
}

#formSuccess {
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid rgba(45, 106, 79, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
}

#formSuccess * {
  color: #2D6A4F !important;
  -webkit-text-fill-color: #2D6A4F !important;
}

/* ── PROMISE SECTION z-index: ensure it's above any hero overflow ── */
.promise {
  z-index: 2;
  position: relative;
}


/* ── CONTACT: ensure container shows above decorative bg ── */
.contact>.container {
  position: relative;
  z-index: 1;
}


/* ══════════════════════════════════════════════════════════════
   V4 FINAL — Appended styles
   ══════════════════════════════════════════════════════════════ */

/* ── HERO TITLE SIZE (1b) ──────────────────────────────────── */
.hero-title {
  font-size: clamp(3rem, 7vw, 6.5rem) !important;
  line-height: 1.05 !important;
}

@media (min-width: 1440px) {
  .hero-title {
    font-size: clamp(4rem, 6vw, 6rem) !important;
  }
}

/* ── ICON-SVG GLOBAL FIX (3) ─────────────────────────────── */
.icon-svg {
  fill: none !important;
  overflow: visible;
}

.icon-svg [data-filled="true"],
.icon-svg circle[r="2"],
.icon-svg circle[r="2.5"],
.icon-svg .icon-pin-dot {
  fill: currentColor !important;
}

/* ── ABOUT IMAGES GRID (7) ──────────────────────────────────── */
.about-images-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  height: 420px;
}

.about-img-placeholder,
.about-img-placeholder-2 {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.about-img-placeholder {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='420'%3E%3Crect fill='%231a0f06' width='400' height='420'/%3E%3Cpath d='M0,280 Q80,240 160,260 Q240,280 320,255 Q360,243 400,250 L400,420 L0,420 Z' fill='%23321810' opacity='0.8'/%3E%3Cpath d='M0,320 Q100,295 200,310 Q300,325 400,300 L400,420 L0,420 Z' fill='%23241008' opacity='0.9'/%3E%3Ccircle cx='80' cy='180' r='45' fill='none' stroke='%23C87941' stroke-width='1' opacity='0.25'/%3E%3Cpolygon points='200,60 230,100 200,140 170,100' fill='none' stroke='%23b55a25' stroke-width='1.2' opacity='0.3'/%3E%3Ccircle cx='320' cy='130' r='30' fill='none' stroke='%23C87941' stroke-width='0.8' opacity='0.2'/%3E%3Ctext x='200' y='220' text-anchor='middle' font-family='Georgia,serif' font-size='11' fill='%23C87941' opacity='0.5' letter-spacing='3' font-style='italic'%3EKATANGA%3C/text%3E%3C/svg%3E") center/cover;
  height: 100%;
}

.about-img-placeholder-2 {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='420'%3E%3Crect fill='%230e1a0a' width='280' height='420'/%3E%3Cpath d='M0,180 Q60,160 120,175 Q180,190 220,168 Q250,155 280,162 L280,420 L0,420 Z' fill='%231a2d10' opacity='0.7'/%3E%3Cpath d='M0,240 Q70,218 140,232 Q200,245 280,225 L280,420 L0,420 Z' fill='%230f1f08' opacity='0.8'/%3E%3Cpolygon points='140,40 165,75 140,110 115,75' fill='none' stroke='%233a7030' stroke-width='1.5' opacity='0.4'/%3E%3Ccircle cx='60' cy='130' r='35' fill='none' stroke='%234a8040' stroke-width='1' opacity='0.3'/%3E%3Cpolygon points='220,90 240,115 220,140 200,115' fill='none' stroke='%233a7030' stroke-width='1' opacity='0.3'/%3E%3Ctext x='140' y='165' text-anchor='middle' font-family='Georgia,serif' font-size='10' fill='%234a8040' opacity='0.5' letter-spacing='2' font-style='italic'%3EINVESTISSEMENT%3C/text%3E%3C/svg%3E") center/cover;
  height: 100%;
}

@media (max-width: 768px) {
  .about-images-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .about-img-placeholder {
    height: 240px;
  }

  .about-img-placeholder-2 {
    height: 180px;
  }
}

/* ── GALLERY SVG DATA URI BACKGROUNDS (4) ──────────────────── */
.gallery-img-1 {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300'%3E%3Crect fill='%23140c04' width='400' height='300'/%3E%3Cpath d='M0,200 Q100,175 200,190 Q300,205 400,180 L400,300 L0,300 Z' fill='%232d1808' opacity='0.85'/%3E%3Cpolygon points='200,40 240,80 200,120 160,80' fill='none' stroke='%23C87941' stroke-width='1.5' opacity='0.45'/%3E%3Ccircle cx='200' cy='80' r='50' fill='none' stroke='%23b55a25' stroke-width='1' opacity='0.25'/%3E%3Ccircle cx='70' cy='140' r='35' fill='none' stroke='%23C87941' stroke-width='0.8' opacity='0.2'/%3E%3Ccircle cx='330' cy='120' r='28' fill='none' stroke='%23C87941' stroke-width='0.8' opacity='0.2'/%3E%3Ctext x='200' y='170' text-anchor='middle' font-family='Georgia,serif' font-size='12' fill='%23C87941' opacity='0.45' letter-spacing='4' font-style='italic'%3EOPÉRATIONS%3C/text%3E%3C/svg%3E") center/cover;
}

.gallery-img-2 {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300'%3E%3Crect fill='%230a1020' width='400' height='300'/%3E%3Cpath d='M0,210 Q80,185 160,200 Q240,215 320,192 Q360,181 400,188 L400,300 L0,300 Z' fill='%23101828' opacity='0.8'/%3E%3Cpath d='M200,30 L240,70 L240,130 L200,170 L160,130 L160,70 Z' fill='none' stroke='%234a7abf' stroke-width='1.5' opacity='0.45'/%3E%3Cpath d='M200,55 L224,75 L224,120 L200,140 L176,120 L176,75 Z' fill='none' stroke='%2380b0f0' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='80' cy='120' r='30' fill='none' stroke='%234a7abf' stroke-width='0.8' opacity='0.25'/%3E%3Ccircle cx='330' cy='100' r='25' fill='none' stroke='%234a7abf' stroke-width='0.8' opacity='0.2'/%3E%3Ctext x='200' y='185' text-anchor='middle' font-family='Georgia,serif' font-size='12' fill='%234a7abf' opacity='0.4' letter-spacing='4' font-style='italic'%3ELOGISTIQUE%3C/text%3E%3C/svg%3E") center/cover;
}

.gallery-img-3 {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300'%3E%3Crect fill='%2308130a' width='400' height='300'/%3E%3Cpath d='M0,195 Q100,172 200,185 Q300,198 400,175 L400,300 L0,300 Z' fill='%23102215' opacity='0.8'/%3E%3Ccircle cx='200' cy='110' r='55' fill='none' stroke='%232d6a40' stroke-width='1.5' opacity='0.4'/%3E%3Ccircle cx='200' cy='110' r='38' fill='none' stroke='%2350a060' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='200' cy='110' r='20' fill='none' stroke='%2370c080' stroke-width='0.8' opacity='0.25'/%3E%3Ccircle cx='70' cy='75' r='22' fill='none' stroke='%232d6a40' stroke-width='0.8' opacity='0.3'/%3E%3Ccircle cx='340' cy='90' r='18' fill='none' stroke='%232d6a40' stroke-width='0.8' opacity='0.25'/%3E%3Ctext x='200' y='168' text-anchor='middle' font-family='Georgia,serif' font-size='12' fill='%232d6a40' opacity='0.45' letter-spacing='4' font-style='italic'%3EPARTENARIATS%3C/text%3E%3C/svg%3E") center/cover;
}

.gallery-img-4 {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300'%3E%3Crect fill='%2318100a' width='400' height='300'/%3E%3Cpath d='M0,210 Q80,188 160,200 Q250,213 320,195 Q360,185 400,192 L400,300 L0,300 Z' fill='%23281808' opacity='0.8'/%3E%3Cpath d='M200,25 L250,60 L265,115 L235,165 L165,165 L135,115 L150,60 Z' fill='none' stroke='%23C87941' stroke-width='1.5' opacity='0.4'/%3E%3Cpath d='M200,55 L232,78 L242,118 L218,150 L182,150 L158,118 L168,78 Z' fill='none' stroke='%23e8a060' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='200' cy='105' r='22' fill='none' stroke='%23C87941' stroke-width='0.8' opacity='0.25'/%3E%3Ctext x='200' y='185' text-anchor='middle' font-family='Georgia,serif' font-size='12' fill='%23C87941' opacity='0.4' letter-spacing='4' font-style='italic'%3EEXPORTATION%3C/text%3E%3C/svg%3E") center/cover;
}

/* ── SUBMIT BUTTON CONTRAST (8) ────────────────────────────── */
#submitBtn,
.btn-submit,
button[type="submit"] {
  background: var(--copper) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--copper) !important;
}

#submitBtn:hover,
.btn-submit:hover,
button[type="submit"]:hover {
  background: #9a5c2a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ── GALLERY IMAGE BASE STYLES ──────────────────────────────── */
.gallery-img-1,
.gallery-img-2,
.gallery-img-3,
.gallery-img-4 {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   V5 FINAL STYLES — Appended
   ══════════════════════════════════════════════════════════════ */

/* ── TASK 1: TYPOGRAPHY — CORMORANT + DM SANS ───────────────── */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 300;
}

h2 {
  font-weight: 400;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-title {
  font-family: var(--font-serif) !important;
  font-weight: 300 !important;
}

.hero-title em {
  font-style: italic;
  font-weight: 300 !important;
}

.nav-link,
.btn-primary,
.btn-secondary,
label,
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
}

.section-tag,
.mineral-symbol,
.contact-info-label,
.stat-label,
.sticky-label {
  font-family: var(--font-mono);
}

.promise-card h3,
.service-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
}

/* ── TASK 2b: HERO TITLE — SHIMMER + WORD HOVER ─────────────── */
.hero-title {
  font-size: clamp(3.2rem, 6.5vw, 6rem) !important;
  line-height: 1.05 !important;
  cursor: default;
  transition: letter-spacing 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-word {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  will-change: transform;
}

.hero-title:hover .hero-word:nth-child(1) {
  transform: translateY(-4px) rotate(-1deg);
}

.hero-title:hover .hero-word:nth-child(2) {
  transform: translateY(-6px) rotate(0.5deg);
}

.hero-title:hover .hero-word:nth-child(3) {
  transform: translateY(-3px) rotate(1deg);
}

.hero-title:hover .hero-word:nth-child(4) {
  transform: translateY(-7px) rotate(-0.5deg);
}

.hero-title:hover .hero-word:nth-child(5) {
  transform: translateY(-4px) rotate(0.8deg);
}

@keyframes title-shimmer {
  0% {
    background-position: -300% center;
  }

  100% {
    background-position: 300% center;
  }
}

.hero-title .line-1 {
  display: block;
  background: linear-gradient(90deg, #F2EDE4 0%, #F2EDE4 35%, rgba(181, 116, 58, 0.95) 50%, #F2EDE4 65%, #F2EDE4 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 7s linear infinite;
}

.hero-title em,
.hero-title .title-accent {
  display: block;
  background: linear-gradient(90deg, #b5743a 0%, #d4956a 30%, #f5c88a 50%, #d4956a 70%, #b5743a 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 5s linear infinite reverse;
}

/* ── TASK 3: CURSOR — VISIBLE ON ALL BACKGROUNDS ────────────── */
#cursor {
  width: 10px !important;
  height: 10px !important;
  background: var(--copper) !important;
  border: none !important;
  border-radius: 50% !important;
  position: fixed !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  transform: translate(-50%, -50%) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  transition: width 0.2s, height 0.2s, background 0.2s !important;
}

#cursorTrail {
  width: 32px !important;
  height: 32px !important;
  background: transparent !important;
  border: 1.5px solid rgba(181, 116, 58, 0.5) !important;
  border-radius: 50% !important;
  position: fixed !important;
  pointer-events: none !important;
  z-index: 99998 !important;
  transform: translate(-50%, -50%) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

body.cursor-on-light #cursor {
  background: #12100E !important;
}

body.cursor-on-light #cursorTrail {
  border-color: rgba(18, 16, 14, 0.4) !important;
}

body.cursor-on-dark #cursor {
  background: rgba(181, 116, 58, 0.95) !important;
}

body.cursor-on-dark #cursorTrail {
  border-color: rgba(181, 116, 58, 0.45) !important;
}

/* ── TASK 4: SERVICE CARDS — 3D TILT ────────────────────────── */
.service-card {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: visible !important;
}

.services-grid {
  perspective: 1200px;
}

/* ── TASK 5: MINERAL SHAPES ─────────────────────────────────── */
.mineral-card__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mineral-shape {
  position: absolute;
  opacity: 0.6;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.mineral-shape--hex {
  width: 55px;
  height: 55px;
  top: 12%;
  right: 10%;
  animation: float-hex 6s ease-in-out infinite;
}

.mineral-shape--diamond {
  width: 35px;
  height: 35px;
  top: 45%;
  left: 8%;
  animation: float-diamond 8s ease-in-out infinite 1s;
}

.mineral-shape--circle {
  width: 45px;
  height: 45px;
  bottom: 28%;
  right: 15%;
  animation: float-circle 7s ease-in-out infinite 2s;
}

.mineral-card:hover .mineral-shape--hex {
  transform: translateY(-6px) rotate(15deg);
  opacity: 0.9;
}

.mineral-card:hover .mineral-shape--diamond {
  transform: translateY(-4px) rotate(-10deg);
  opacity: 0.85;
}

.mineral-card:hover .mineral-shape--circle {
  transform: scale(1.12);
  opacity: 0.8;
}

@keyframes float-hex {

  0%,
  100% {
    transform: translateY(0) rotate(0deg)
  }

  50% {
    transform: translateY(-5px) rotate(5deg)
  }
}

@keyframes float-diamond {

  0%,
  100% {
    transform: translateY(0) rotate(0deg)
  }

  50% {
    transform: translateY(-4px) rotate(-8deg)
  }
}

@keyframes float-circle {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.06)
  }
}

.mineral-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.mineral-card__body {
  position: relative;
  z-index: 2;
}

.mineral-name {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.03em !important;
  color: rgba(242, 237, 228, 0.95) !important;
  -webkit-text-fill-color: rgba(242, 237, 228, 0.95) !important;
}

.mineral-symbol {
  font-family: 'DM Mono', monospace !important;
  font-size: 0.68rem !important;
  color: rgba(181, 116, 58, 0.85) !important;
  -webkit-text-fill-color: rgba(181, 116, 58, 0.85) !important;
}

/* ── TASK 7: HERO BACKGROUND ─────────────────────────────────── */
#hero {
  background-image:
    linear-gradient(160deg, rgba(18, 16, 14, 0.85) 0%, rgba(26, 20, 10, 0.75) 50%, rgba(18, 12, 6, 0.90) 100%);
  background-size: cover;
  background-position: center;
}

/* ── TASK 7: SERVICES SECTION BACKGROUND ────────────────────── */
#services {
  position: relative;
}

#gallery {
  position: relative;
}

#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1565514158740-064f34bd6cfd?w=1600&q=60&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ── TASK 7: ABOUT PHOTOS ────────────────────────────────────── */
.about-images-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  height: 420px;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.about-photo--1 {
  object-position: center 30%;
}

.about-photo--2 {
  object-position: center 20%;
}

@media (max-width: 768px) {
  .about-images-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .about-photo {
    height: 220px;
  }
}

/* ── TASK 7: GALLERY IMAGES ──────────────────────────────────── */
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ── TASK 8: CONTACT ICON SHAPES ─────────────────────────────── */
.contact-icon-shape {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 14px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  background: rgba(181, 116, 58, 0.1);
  border: 1px solid rgba(181, 116, 58, 0.25);
}

.contact-icon-shape svg {
  display: block !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* ── TASK 8: SUBMIT BUTTON ───────────────────────────────────── */
.btn-submit,
#submitBtn {
  background: var(--copper) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 2px solid var(--copper) !important;
  padding: 1rem 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}

.btn-submit span,
#submitBtn span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.btn-submit svg,
#submitBtn svg {
  stroke: #ffffff !important;
  flex-shrink: 0;
}

.btn-submit:hover,
#submitBtn:hover {
  background: transparent !important;
  color: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
  border-color: var(--copper) !important;
  transform: translateY(-2px);
}

.btn-submit:hover span,
#submitBtn:hover span {
  color: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
}

.btn-submit:hover svg,
#submitBtn:hover svg {
  stroke: var(--copper) !important;
}

/* ── TASK 9: GENERAL QUALITY FINISHES ────────────────────────── */
html {
  scroll-behavior: smooth;
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.promise-card {
  position: relative;
  overflow: hidden;
}

.promise-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(181, 116, 58, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.promise-card:hover::before {
  opacity: 1;
}

.navbar {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

footer {
  background: linear-gradient(180deg, #0f0c08 0%, #12100E 100%);
}

/* ── FLAG CSS (no external CDN) ────────────────────────────────── */
.flag-css {
  display: inline-block;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
  overflow: hidden;
}

.flag-fr {
  background: linear-gradient(to right, #002395 33.33%, #fff 33.33% 66.67%, #ED2939 66.67%);
}

.flag-ae {
  background: linear-gradient(to right, #EF3340 22%, #00732F 22% 44%, #fff 44% 78%, #000 78%);
}

.flag-cd {
  background: linear-gradient(135deg, #007FFF 45%, #CE1126 45%);
}

/* ══════════════════════════════════════════════════════════════
   V6 FINAL — Appended styles
   ══════════════════════════════════════════════════════════════ */

/* ── TASK 1: TYPOGRAPHY — SPECTRAL + EPILOGUE ───────────────── */
body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 600;
}

h2 {
  font-weight: 500;
}

h3 {
  font-weight: 500;
  font-size: 1.3rem;
}

.hero-title {
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
}

.hero-title em {
  font-style: italic;
  font-weight: 400 !important;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.service-card h3,
.promise-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
}

p,
li,
label,
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-sans);
  font-weight: 300;
}

.btn-primary,
.btn-secondary,
.btn-submit,
.btn-submit-wow {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ── TASK 2b: H1 VISIBILITY FIX ─────────────────────────────── */
.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem) !important;
  line-height: 1.08 !important;
  color: var(--sand) !important;
  -webkit-text-fill-color: var(--sand) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  animation: none !important;
}

.hero-title .line-1 {
  display: block;
  color: var(--sand) !important;
  -webkit-text-fill-color: var(--sand) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  animation: none !important;
}

.hero-title em,
.hero-title .title-accent {
  display: block;
  font-style: italic;
  font-weight: 400 !important;
  color: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  animation: none !important;
}

/* ── TASK 2c: REMOVE GREEN BAND / HERO OVERFLOW ─────────────── */
#hero {
  overflow: hidden !important;
}

#hero::after {
  display: none !important;
}

.hero::after {
  display: none !important;
}

/* ── TASK 3: SERVICE CARD TILT — CHILDREN DON'T MOVE ────────── */
.service-card {
  transform-style: preserve-3d;
}

.service-card * {
  transform: none !important;
  transition: color 0.3s, opacity 0.3s !important;
}

/* ── TASK 4: MINERALS SECTION ────────────────────────────────── */
.minerals-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  background: var(--ink);
}

.minerals-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.minerals-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  filter: saturate(0.7);
}

.minerals-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.7) 0%, rgba(18, 16, 14, 0.4) 40%, rgba(18, 16, 14, 0.6) 100%);
}

.minerals-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}

.minerals-header {
  margin-bottom: 4rem;
}

.minerals-lead {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 1rem;
  line-height: 1.7;
}

.minerals-showcase {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .minerals-showcase {
    grid-template-columns: 1fr;
  }
}

.mineral-featured {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 520px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}

.mineral-featured:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.mineral-featured__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(145deg, #7a3010, #C87941 40%, #8B4513 70%, #3a1005 100%);
}

.mineral-featured:hover .mineral-featured__bg {
  transform: scale(1.06);
}

.mineral-featured__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mineral-featured__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}

.mineral-featured__symbol {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(181, 116, 58, 0.8);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.35rem;
}

.mineral-featured__name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: #F2EDE4;
  margin: 0 0 0.5rem;
}

.mineral-featured__desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(242, 237, 228, 0.6);
  margin: 0;
}

.minerals-grid-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 1280px) {
  .minerals-grid-secondary {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .minerals-grid-secondary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.minerals-cta {
  margin-top: 3.5rem;
  text-align: center;
}

/* mineral-card inside minerals-section: reset for new layout */
.minerals-section .mineral-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.minerals-section .mineral-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.minerals-section .mineral-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.minerals-section .mineral-card:hover .mineral-card__bg {
  transform: scale(1.07);
}

.minerals-section .mineral-card__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.minerals-section .mineral-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* ── TASK 4: FLOATING SHAPES ─────────────────────────────────── */
.mshape {
  position: absolute;
  opacity: 0.7;
}

.mshape--hex {
  width: 60px;
  top: 10%;
  right: 8%;
  animation: float-a 7s ease-in-out infinite;
}

.mshape--diamond {
  width: 36px;
  top: 48%;
  left: 6%;
  animation: float-b 9s ease-in-out infinite 1.2s;
}

.mshape--circle {
  width: 48px;
  bottom: 25%;
  right: 12%;
  animation: float-c 8s ease-in-out infinite 2.4s;
}

.mshape--hex-sm {
  width: 32px;
  top: 12%;
  right: 10%;
  animation: float-a 6s ease-in-out infinite;
}

.mshape--dot {
  width: 18px;
  bottom: 30%;
  left: 8%;
  animation: float-b 7s ease-in-out infinite 0.8s;
}

@keyframes float-a {

  0%,
  100% {
    transform: translateY(0) rotate(0)
  }

  50% {
    transform: translateY(-6px) rotate(8deg)
  }
}

@keyframes float-b {

  0%,
  100% {
    transform: translateY(0) rotate(0)
  }

  50% {
    transform: translateY(-4px) rotate(-10deg)
  }
}

@keyframes float-c {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.08)
  }
}

.minerals-section .mineral-card:hover .mshape--hex-sm {
  transform: translateY(-5px) rotate(15deg);
  opacity: 1;
}

.minerals-section .mineral-card:hover .mshape--dot {
  transform: scale(1.2);
  opacity: 0.9;
}

/* ── TASK 5: GALLERY TRACK ───────────────────────────────────── */
.gallery-track {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 8px;
  padding: 2rem;
  max-width: 1400px;
  margin: 2rem auto 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1208;
}

.gallery-item--lg {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s;
  filter: brightness(0.85);
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1);
}

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-item__overlay {
  transform: translateY(0);
}

.gallery-item__label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: #F2EDE4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .gallery-track {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--lg,
  .gallery-item--wide {
    grid-row: span 1;
    grid-column: span 2;
    height: 220px;
  }

  .gallery-item {
    height: 180px;
  }
}

/* ── TASK 6: SUBMIT BUTTON WOW ───────────────────────────────── */
.btn-submit-wow {
  position: relative;
  width: 100%;
  padding: 1.1rem 2rem;
  border: 2px solid var(--copper);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.4s, color 0.4s;
}

.btn-submit-wow__bg {
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit-wow:hover .btn-submit-wow__bg {
  transform: translateX(0);
}

.btn-submit-wow__text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--copper);
  transition: color 0.3s;
}

.btn-submit-wow:hover .btn-submit-wow__text {
  color: #ffffff;
}

.btn-submit-wow__arrow {
  stroke: var(--copper);
  transition: stroke 0.3s, transform 0.3s;
}

.btn-submit-wow:hover .btn-submit-wow__arrow {
  stroke: #ffffff;
  transform: translateX(4px);
}

/* Override #contact * rule — button needs its own colors */
#contact .btn-submit-wow .btn-submit-wow__text {
  color: var(--copper) !important;
  -webkit-text-fill-color: var(--copper) !important;
}

#contact .btn-submit-wow:hover .btn-submit-wow__text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#contact .btn-submit-wow:hover .btn-submit-wow__arrow {
  stroke: #ffffff !important;
}

.btn-submit-wow.loading .btn-submit-wow__text {
  opacity: 0.6;
}

.btn-submit-wow.loading::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  margin-top: -7px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── TASK 7: CURSOR — MIX-BLEND-MODE EXCLUSION ───────────────── */
#cursor {
  width: 12px !important;
  height: 12px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 50% !important;
  position: fixed !important;
  pointer-events: none !important;
  z-index: 999999 !important;
  transform: translate(-50%, -50%) !important;
  mix-blend-mode: exclusion !important;
  transition: width 0.3s, height 0.3s !important;
  opacity: 1 !important;
}

#cursorTrail {
  width: 36px !important;
  height: 36px !important;
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 50% !important;
  position: fixed !important;
  pointer-events: none !important;
  z-index: 999998 !important;
  transform: translate(-50%, -50%) !important;
  mix-blend-mode: exclusion !important;
  opacity: 1 !important;
}

body.cursor-hover #cursor {
  width: 20px !important;
  height: 20px !important;
}

body.cursor-hover #cursorTrail {
  width: 50px !important;
  height: 50px !important;
}

/* ── TASK 8: ABOUT PHOTOS ────────────────────────────────────── */
.about-images-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.about-photo {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.about-photo--main,
.about-photo--1 {
  height: 440px;
  object-position: center 25%;
}

.about-photo--secondary,
.about-photo--2 {
  height: 440px;
  object-position: center 35%;
}

@media (max-width: 640px) {
  .about-images-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    height: 260px;
  }
}

/* ══════════════════════════════════════════════════════════════
   GALLERY MOSAIC — awwwards-style asymmetric grid
══════════════════════════════════════════════════════════════ */
.gallery-mosaic {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  grid-template-rows: 360px 280px;
  grid-template-areas:
    "a b c"
    "a d d";
  gap: 10px;
  padding: 2.5rem clamp(1.5rem, 5vw, 3.5rem);
  max-width: 1440px;
  margin: 2rem auto 0;
}

.gm-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: #1a1208;
  transition: opacity 0.5s;
}

.gm-item--a {
  grid-area: a;
}

.gm-item--b {
  grid-area: b;
}

.gm-item--c {
  grid-area: c;
}

.gm-item--d {
  grid-area: d;
}

.gm-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
  filter: brightness(0.78) saturate(0.85);
  will-change: transform;
}

/* Group hover: dim siblings, enlarge hovered */
.gallery-mosaic:hover .gm-item:not(:hover) {
  opacity: 0.55;
}

.gallery-mosaic:hover .gm-item:hover img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.1);
}

/* Numbered label overlay */
.gm-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 100%);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s;
}

.gm-item:hover .gm-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gm-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--copper);
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
  display: block;
}

.gm-label {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: #F2EDE4;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.gm-item--a .gm-label {
  font-size: 2rem;
}

.gm-sub {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(242, 237, 228, 0.6);
  margin: 0;
  letter-spacing: 0.04em;
}

/* Corner accent line */
.gm-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.gm-item:hover::before {
  width: 100%;
}

/* Responsive */
@media (max-width: 960px) {
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 220px 220px;
    grid-template-areas:
      "a a"
      "b c"
      "d d";
  }

  .gm-item--a .gm-label {
    font-size: 1.6rem;
  }
}

@media (max-width: 580px) {
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 280px 220px 220px 220px;
    grid-template-areas: "a" "b" "c" "d";
    gap: 8px;
  }

  .gm-overlay {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   MINERAL CARDS — Real photo layer + 3D floating shapes
══════════════════════════════════════════════════════════════ */
/* Featured mineral photo */
.mineral-featured__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: luminosity;
  opacity: 0.55;
  z-index: 1;
  transition: opacity 0.45s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.mineral-featured:hover .mineral-featured__photo {
  opacity: 0.8;
  transform: scale(1.06);
}

/* Secondary mineral card photo */
.minerals-section .mineral-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: luminosity;
  opacity: 0.45;
  z-index: 1;
  transition: opacity 0.4s, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.minerals-section .mineral-card:hover .mineral-card__photo {
  opacity: 0.72;
  transform: scale(1.09);
}

/* 3D depth on floating shapes */
.minerals-section .mineral-card {
  transform-style: preserve-3d;
}

.mineral-featured {
  transform-style: preserve-3d;
}

.minerals-section .mineral-card .mshape,
.mineral-featured .mshape {
  transform: translateZ(8px);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.minerals-section .mineral-card:hover .mshape,
.mineral-featured:hover .mshape {
  transform: translateZ(30px) scale(1.1);
  opacity: 1;
}

.minerals-section .mineral-card:hover .mshape--hex-sm {
  transform: translateZ(38px) rotate(22deg);
}

.minerals-section .mineral-card:hover .mshape--dot {
  transform: translateZ(22px) scale(1.3);
}

.mineral-featured:hover .mshape--hex {
  transform: translateZ(40px) rotate(12deg);
}

.mineral-featured:hover .mshape--diamond {
  transform: translateZ(28px) rotate(-18deg);
}

/* ══════════════════════════════════════════════════════════════
   HERO CHAR MAGNETIC — individual character spring repel
══════════════════════════════════════════════════════════════ */
.hero-char {
  display: inline-block;
  will-change: transform;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cursor light sweep on hero title */
#heroTitleWrap {
  --mx: 50%;
  --my: 50%;
  position: relative;
}

#heroTitleWrap::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle 180px at var(--mx) var(--my), rgba(181, 116, 58, 0.14) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
}

.hero:hover #heroTitleWrap::after {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   DRC SILHOUETTE — smooth tilt reset
══════════════════════════════════════════════════════════════ */
.africa-silhouette {
  transform-origin: center center;
}

/* ══════════════════════════════════════════════════════════════
   SESSION 3 — Targeted fixes
══════════════════════════════════════════════════════════════ */

/* ── HERO TITLE FONT — Epilogue 800 (bolder, modern) ─────── */
.hero-title,
.hero-title .line-1 {
  font-family: var(--font-sans) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

/* ── REMOVE CURSOR ILLUMINATION BEHIND H1 ─────────────────── */
#heroTitleWrap::after {
  display: none !important;
}

/* ── CONTACT SUBMIT BUTTON — full-width btn-primary ──────── */
.btn-submit-full {
  width: 100%;
  justify-content: center;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════════════
   MINERALS — Complete redesign (flat dark grid + featured banner)
══════════════════════════════════════════════════════════════ */

/* Override old layout */
.minerals-showcase {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 3px !important;
  grid-template-columns: unset !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

/* ── FEATURED COPPER BANNER ──────────────────────────────── */
.mfeatured {
  position: relative;
  background: linear-gradient(135deg, #1e0a02 0%, #5a2008 30%, #a05030 60%, #3a1205 100%);
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 220px;
  cursor: default;
}

/* Giant watermark symbol */
.mfeatured__symbol {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
  transition: color 0.6s, transform 0.6s;
}

.mfeatured:hover .mfeatured__symbol {
  color: rgba(255, 255, 255, 0.10);
  transform: translateY(-52%) scale(1.04);
}

.mfeatured__content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.mfeatured__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(242, 237, 228, 0.4);
}

.mfeatured__num {
  color: rgba(200, 121, 65, 0.6);
}

.mfeatured__cat {
  text-transform: uppercase;
}

.mfeatured__name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: #F2EDE4;
  margin: 0 0 0.7rem;
  line-height: 1;
}

.mfeatured__desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(242, 237, 228, 0.6);
  margin: 0 0 1.4rem;
  line-height: 1.65;
}

.mfeatured__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mtag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 121, 65, 0.8);
  background: rgba(200, 121, 65, 0.08);
  border: 1px solid rgba(200, 121, 65, 0.18);
  padding: 0.28rem 0.7rem;
  border-radius: 2px;
}

/* Animated ambient orb */
.mfeatured__orb {
  position: absolute;
  width: min(500px, 60vw);
  height: min(500px, 60vw);
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 121, 65, 0.10) 0%, transparent 60%);
  animation: orb-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orb-pulse {

  0%,
  100% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.14);
  }
}

/* ── MINERALS GRID 4 × 3 ─────────────────────────────────── */
.minerals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0;
  margin-bottom: 0;
  width: 100%;
}

@media (max-width: 1024px) {
  .minerals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .minerals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .minerals-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ── MINERAL CARD — featured style, same as copper banner ── */
.mcard {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  cursor: pointer;
  background: #161210;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mcard:hover {
  transform: scale(1.04);
  z-index: 3;
}

/* Colored accent top line */
.mcard__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mcard:hover .mcard__accent {
  height: 3px;
}

/* Per-mineral accent colours */
.mcard[data-mineral="cobalt"] .mcard__accent {
  background: linear-gradient(90deg, #1a6aff, #0a3aaa);
}

.mcard[data-mineral="gold"] .mcard__accent {
  background: linear-gradient(90deg, #e8c050, #a07818);
}

.mcard[data-mineral="zinc"] .mcard__accent {
  background: linear-gradient(90deg, #50a850, #286028);
}

.mcard[data-mineral="cassiterite"] .mcard__accent {
  background: linear-gradient(90deg, #b0907a, #705040);
}

.mcard[data-mineral="manganese"] .mcard__accent {
  background: linear-gradient(90deg, #b860e0, #702090);
}

.mcard[data-mineral="coal"] .mcard__accent {
  background: linear-gradient(90deg, #686868, #303030);
}

.mcard[data-mineral="silver"] .mcard__accent {
  background: linear-gradient(90deg, #b0b8c8, #607080);
}

.mcard[data-mineral="cadmium"] .mcard__accent {
  background: linear-gradient(90deg, #e0c030, #907808);
}

.mcard[data-mineral="germanium"] .mcard__accent {
  background: linear-gradient(90deg, #6080e0, #2840a0);
}

.mcard[data-mineral="palladium"] .mcard__accent {
  background: linear-gradient(90deg, #80a0d0, #405870);
}

.mcard[data-mineral="uranium"] .mcard__accent {
  background: linear-gradient(90deg, #80d020, #406010);
}

.mcard[data-mineral="platinum"] .mcard__accent {
  background: linear-gradient(90deg, #a0aab8, #506070);
}

/* Per-mineral background tint */
.mcard[data-mineral="cobalt"] {
  background: linear-gradient(145deg, #0a1222, #1a3060);
}

.mcard[data-mineral="gold"] {
  background: linear-gradient(145deg, #1e1400, #4a3008);
}

.mcard[data-mineral="zinc"] {
  background: linear-gradient(145deg, #0e1a0e, #1e4018);
}

.mcard[data-mineral="cassiterite"] {
  background: linear-gradient(145deg, #181410, #3a2a1c);
}

.mcard[data-mineral="manganese"] {
  background: linear-gradient(145deg, #160a20, #381050);
}

.mcard[data-mineral="coal"] {
  background: linear-gradient(145deg, #101010, #242424);
}

.mcard[data-mineral="silver"] {
  background: linear-gradient(145deg, #101418, #242c34);
}

.mcard[data-mineral="cadmium"] {
  background: linear-gradient(145deg, #181400, #3a2c08);
}

.mcard[data-mineral="germanium"] {
  background: linear-gradient(145deg, #0a0e20, #18244a);
}

.mcard[data-mineral="palladium"] {
  background: linear-gradient(145deg, #0c1018, #1e2c3e);
}

.mcard[data-mineral="uranium"] {
  background: linear-gradient(145deg, #0c1408, #1c3010);
}

.mcard[data-mineral="platinum"] {
  background: linear-gradient(145deg, #101214, #222830);
}

/* Per-mineral hover box-shadow glow */
.mcard[data-mineral="cobalt"]:hover {
  box-shadow: 0 0 40px rgba(26, 106, 255, 0.18);
}

.mcard[data-mineral="gold"]:hover {
  box-shadow: 0 0 40px rgba(232, 192, 80, 0.18);
}

.mcard[data-mineral="zinc"]:hover {
  box-shadow: 0 0 40px rgba(80, 168, 80, 0.18);
}

.mcard[data-mineral="cassiterite"]:hover {
  box-shadow: 0 0 40px rgba(176, 144, 122, 0.18);
}

.mcard[data-mineral="manganese"]:hover {
  box-shadow: 0 0 40px rgba(184, 96, 224, 0.18);
}

.mcard[data-mineral="coal"]:hover {
  box-shadow: 0 0 40px rgba(104, 104, 104, 0.18);
}

.mcard[data-mineral="silver"]:hover {
  box-shadow: 0 0 40px rgba(176, 184, 200, 0.18);
}

.mcard[data-mineral="cadmium"]:hover {
  box-shadow: 0 0 40px rgba(224, 192, 48, 0.18);
}

.mcard[data-mineral="germanium"]:hover {
  box-shadow: 0 0 40px rgba(96, 128, 224, 0.18);
}

.mcard[data-mineral="palladium"]:hover {
  box-shadow: 0 0 40px rgba(128, 160, 208, 0.18);
}

.mcard[data-mineral="uranium"]:hover {
  box-shadow: 0 0 40px rgba(128, 208, 32, 0.18);
}

.mcard[data-mineral="platinum"]:hover {
  box-shadow: 0 0 40px rgba(160, 170, 184, 0.18);
}

/* Atomic number — top left */
.mcard__num {
  position: absolute;
  top: 0.7rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.06em;
  pointer-events: none;
  user-select: none;
}

/* Large chemical symbol watermark */
.mcard__symbol {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s;
}

.mcard:hover .mcard__symbol {
  transform: translate(-50%, -54%) scale(1.1);
  color: rgba(255, 255, 255, 0.15);
}

/* Content panel at bottom */
.mcard__bottom {
  position: relative;
  padding: 1.1rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  margin-top: auto;
}

.mcard__cat {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin: 0 0 0.2rem;
}

.mcard__name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(242, 237, 228, 0.92);
  margin: 0 0 0.35rem;
}

.mcard__desc {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

/* Animated scan line on hover */
.mcard::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  top: -100%;
  transition: top 0s;
  pointer-events: none;
}

.mcard:hover::after {
  animation: scan-sweep 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scan-sweep {
  from {
    top: -2%;
  }

  to {
    top: 102%;
  }
}

/* Responsive featured banner */
@media (max-width: 640px) {
  .mfeatured {
    min-height: 180px;
  }

  .mfeatured__symbol {
    font-size: 5rem;
  }
}
/* ══════════════════════════════════════════════════════════════
   MATERIALS SECTION
══════════════════════════════════════════════════════════════ */
.materials-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  background: var(--ink);
}

.materials-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.materials-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  filter: saturate(0.7);
}

.materials-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,16,14,0.72) 0%, rgba(18,16,14,0.42) 40%, rgba(18,16,14,0.62) 100%);
}

.materials-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}

.materials-header {
  margin-bottom: 3.5rem;
}

.materials-lead {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-top: 1rem;
  line-height: 1.7;
}

/* 3-column grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .materials-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA under grid */
.materials-cta {
  margin-top: 3rem;
  display: flex;
}

/* ── MATERIAL CARD ─────────────────────────────────────────── */
.matcard {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.45s cubic-bezier(0.16,1,0.3,1);
}

.matcard:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 28px 56px rgba(0,0,0,0.6);
  z-index: 2;
}

/* Photo layer */
.matcard__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.matcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.75s cubic-bezier(0.16,1,0.3,1);
}

.matcard:hover .matcard__img img {
  transform: scale(1.09);
}

/* Gradient overlay */
.matcard__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(12,9,6,0.93) 0%,
    rgba(12,9,6,0.52) 45%,
    rgba(12,9,6,0.12) 100%
  );
  transition: background 0.4s;
}

.matcard:hover .matcard__overlay {
  background: linear-gradient(
    to top,
    rgba(12,9,6,0.88) 0%,
    rgba(12,9,6,0.42) 50%,
    rgba(12,9,6,0.06) 100%
  );
}

/* Text content at bottom */
.matcard__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.75rem 1.6rem;
}

.matcard__cat {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.matcard__name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.55rem;
  line-height: 1.2;
}

.matcard__desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(242,237,228,0.62);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1),
              opacity 0.35s;
  opacity: 0;
}

.matcard:hover .matcard__desc,
.matcard:focus-visible .matcard__desc {
  max-height: 120px;
  opacity: 1;
}

/* Copper accent top bar */
.matcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper) 0%, rgba(181,116,58,0.35) 100%);
  z-index: 3;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.matcard:hover::before,
.matcard:focus-visible::before {
  transform: scaleX(1);
}

/* Light section overrides (same as minerals) */
.materials-section .section-title,
.materials-section .section-title em {
  color: var(--sand);
  -webkit-text-fill-color: var(--sand);
}

.materials-section .section-title em {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FORM CONDITIONAL SUB-FIELDS ───────────────────────────── */
.form-subfield[hidden] { display: none !important; }
.form-subfield:not([hidden]) {
  animation: subfield-in 0.28s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes subfield-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
