/* ============================================================
   ZAMBEZI AURUM RESOURCES — site.css
   Tokens follow the KRH group system: Obsidian / Ivory / Platinum / Gold Vein
   Type: Cormorant Garamond (display) · Instrument Sans (body) · IBM Plex Mono (data)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #F6F2EA;           /* Ivory */
  --surface: #EEE8DC;
  --ink: #0E1116;          /* Obsidian */
  --ink-2: #444952;
  --ink-3: #6B675F;
  --rule: #D9D3C6;         /* Platinum, warmed */
  --rule-strong: #B9B2A4;
  --accent: #86652F;       /* Gold Vein, darkened for text on ivory */
  --accent-fill: #B08D57;  /* Gold Vein */
  --hero-bg: #0E1116;
  --hero-bg-2: #13171D;
  --hero-ink: #F3EEE4;
  --hero-ink-2: #B7B1A5;
  --hero-rule: #2B3038;
  --hero-accent: #C9A66B;
  --ok: #3F6B4E;

  --f-display: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --f-body: "Instrument Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, "SFMono-Regular", Menlo, monospace;

  --t-xs: 0.75rem; --t-sm: 0.875rem; --t-base: 1.0625rem; --t-md: 1.25rem; --t-lg: 1.625rem;
  --t-xl: clamp(2rem, 3.4vw, 2.875rem);
  --t-2xl: clamp(2.6rem, 5.6vw, 4.75rem);

  --gutter: clamp(18px, 4vw, 48px);
  --max: 1280px;
  --measure: 64ch;
  --section: clamp(72px, 9.5vw, 132px);
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--t-base); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); line-height: 1.15; }
h4 { font-family: var(--f-body); font-weight: 600; font-size: var(--t-base); margin: 0; }
p { margin: 0; max-width: var(--measure); }
em { font-style: italic; }
.lede { font-size: var(--t-md); line-height: 1.55; color: var(--ink-2); }
.eyebrow { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.mono { font-family: var(--f-mono); font-size: var(--t-sm); }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-sm); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.dark { background: var(--hero-bg); color: var(--hero-ink); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--hero-ink); }
.dark .lede, .dark .muted { color: var(--hero-ink-2); }
.dark .eyebrow { color: var(--hero-accent); }
.surface { background: var(--surface); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .6); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .lede { max-width: 56ch; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.dark .rule { background: var(--hero-rule); }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; font-size: var(--t-sm); font-weight: 600; text-decoration: none; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--bg); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); cursor: pointer; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-gold { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--ink); }
.btn-gold:hover { background: var(--hero-ink); border-color: var(--hero-ink); }
.dark .btn { background: var(--hero-accent); border-color: var(--hero-accent); color: var(--ink); }
.dark .btn:hover { background: var(--hero-ink); border-color: var(--hero-ink); }
.dark .btn-line { background: transparent; border-color: var(--hero-ink-2); color: var(--hero-ink); }
.dark .btn-line:hover { background: var(--hero-ink); color: var(--ink); border-color: var(--hero-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: var(--t-sm); color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
.text-link:hover { border-bottom-color: var(--accent-fill); }
.text-link .arrow { transition: transform .25s var(--ease); } .text-link:hover .arrow { transform: translateX(3px); }
.dark .text-link { color: var(--hero-ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img.mark { width: 46px; height: 46px; }
.brand .brand-text { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand-mark { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.brand-sub { display: flex; align-items: center; gap: 10px; font-family: var(--f-body); font-weight: 500; font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); }
.brand-sub i { flex: 1; height: 1px; background: var(--accent-fill); min-width: 40px; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 28px); }
.site-nav a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-fill); }
.site-nav a.nav-cta { border: 1px solid var(--ink); padding: 9px 16px; color: var(--ink); border-radius: 2px; }
.site-nav a.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; font: 500 var(--t-sm) var(--f-body); background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); padding: 9px 14px; cursor: pointer; border-radius: 2px; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding-block: 13px; border-bottom: 1px solid var(--rule); font-size: var(--t-base); white-space: normal; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--accent); }
  .site-nav a.nav-cta { margin-top: 14px; text-align: center; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; }
.hero .contour { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.hero .contour svg { width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px); min-height: calc(100vh - 76px); min-height: calc(100dvh - 76px); }
.hero h1 { max-width: 14ch; color: var(--hero-ink); }
.hero .lede { max-width: 52ch; margin-top: 26px; color: var(--hero-ink-2); }
.hero .btn-row { margin-top: 36px; }
.hero .eyebrow { color: var(--hero-accent); }
.globe-wrap { position: relative; aspect-ratio: 1 / 1; width: min(100%, 560px); margin-inline: auto; }
.globe-wrap canvas { width: 100%; height: 100%; display: block; }
.globe-wrap .globe-cap { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--hero-ink-2); }
.coords { display: grid; gap: 0; border-top: 1px solid var(--hero-rule); margin: 0; }
.coords div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-block: 14px; border-bottom: 1px solid var(--hero-rule); }
.coords dt { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--hero-ink-2); }
.coords dd { margin: 0; font-family: var(--f-display); font-size: 1.3rem; grid-column: 1; color: var(--hero-ink); }
.coords .ll { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--hero-accent); font-variant-numeric: tabular-nums; }
.hero-coords { padding-block: 8px 64px; }
.hero-coords .coords { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hero-rule); }
.hero-coords .coords div { border-bottom: 0; padding-right: 24px; }
.hero-coords .coords div + div { border-left: 1px solid var(--hero-rule); padding-left: 24px; }

/* ---------- Page heads ---------- */
.page-head { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.page-head .contour { position: absolute; inset: 0; opacity: .4; pointer-events: none; }
.page-head .wrap { position: relative; padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.page-head h1 { max-width: 16ch; }
.page-head .lede { max-width: 56ch; margin-top: 24px; color: var(--hero-ink-2); }
.page-head .btn-row { margin-top: 36px; }
.page-head .eyebrow { color: var(--hero-accent); }
.page-head.with-photo { min-height: 62vh; display: grid; align-items: end; }
.page-head.with-photo .photo { position: absolute; inset: 0; }
.page-head.with-photo .photo img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-head.with-photo .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,.35) 0%, rgba(14,17,22,.55) 45%, rgba(14,17,22,.96) 100%); }
.crumbs { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--hero-ink-2); margin-bottom: 24px; display: flex; gap: 10px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--hero-accent); }

/* ---------- Commodity tiles (compact strip) ---------- */
.commodity-strip { border-bottom: 1px solid var(--rule); }
.commodity-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-block: 20px; }
.commodity-strip .label { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tile { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.tile .sym { width: 44px; height: 44px; border: 1px solid var(--rule-strong); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.35rem; position: relative; }
.tile .sym small { position: absolute; top: 3px; left: 5px; font-family: var(--f-mono); font-size: .55rem; color: var(--ink-3); }
.tile b { display: block; font-weight: 600; font-size: var(--t-sm); }
.tile span { display: block; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- Minerals showcase (dark, animated specimens) ---------- */
.minerals { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.minerals .wrap { position: relative; }
.mineral-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hero-rule); border: 1px solid var(--hero-rule); }
.mineral { position: relative; background: var(--hero-bg); min-height: 600px; padding: 32px 30px; display: flex; flex-direction: column; overflow: hidden; }
.mineral::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 110%, rgba(201,166,107,.22), transparent 60%); pointer-events: none; }
.mineral.cu::before { background: radial-gradient(ellipse at 50% 110%, rgba(64,140,110,.22), transparent 60%); }
.mineral.cm::before { background: radial-gradient(ellipse at 50% 110%, rgba(120,140,170,.2), transparent 60%); }
.mineral .sym { font-family: var(--f-display); font-size: 3.4rem; line-height: 1; color: var(--hero-accent); display: flex; align-items: baseline; gap: 10px; }
.mineral .sym small { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--hero-ink-2); letter-spacing: .12em; }
.mineral h3 { margin-top: 10px; font-size: 1.9rem; }
.mineral p { color: var(--hero-ink-2); font-size: var(--t-sm); margin-top: 10px; max-width: 30ch; position: relative; z-index: 1; }
.mineral .forms, .mineral .sym, .mineral h3 { position: relative; z-index: 1; }
.mineral .forms { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.mineral .forms span { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .08em; padding: 5px 9px; border: 1px solid var(--hero-rule); color: var(--hero-ink-2); }
.specimen { position: absolute; right: -6%; bottom: -8%; width: 78%; pointer-events: none; will-change: transform; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.specimen img { width: 100%; height: auto; }
.mineral.au .specimen { width: 88%; right: -12%; bottom: -14%; }
.mineral.cu .specimen { width: 50%; right: 8%; bottom: -6%; }
.mineral.cm .specimen { width: 62%; right: 2%; bottom: -8%; }
@keyframes floaty { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -14px, 0) rotate(-1.2deg); } 100% { transform: translate3d(0, 0, 0) rotate(0deg); } }
.specimen .float { animation: floaty 7s ease-in-out infinite; }
.mineral.cu .specimen .float { animation-duration: 8.5s; animation-delay: -2s; }
.mineral.cm .specimen .float { animation-duration: 9.5s; animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .specimen .float { animation: none; } }
.minerals .note { margin-top: 20px; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--hero-ink-2); letter-spacing: .06em; }

/* ---------- Gap trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.trio > div { padding: 28px 28px 28px 0; border-right: 1px solid var(--rule); }
.trio > div + div { padding-left: 28px; }
.trio > div:last-child { border-right: 0; }
.trio h3 { font-size: 1.4rem; margin-bottom: 10px; }
.trio p { font-size: var(--t-sm); color: var(--ink-2); }

/* ---------- Doors ---------- */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule-strong); background: var(--surface); }
.door { padding: clamp(28px, 3vw, 44px); border-right: 1px solid var(--rule-strong); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.door:last-child { border-right: 0; }
.door h3 { font-size: clamp(1.45rem, 1.9vw, 1.8rem); }
.door ul { display: grid; gap: 10px; margin-top: 4px; }
.door li { display: flex; gap: 12px; font-size: var(--t-sm); color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.door li::before { content: '—'; color: var(--accent); flex: none; }
.door .text-link { margin-top: auto; padding-top: 8px; }
.door.alt { background: var(--hero-bg); color: var(--hero-ink); border-color: var(--hero-bg); }
.door.alt h3 { color: var(--hero-ink); } .door.alt .eyebrow { color: var(--hero-accent); } .door.alt li { color: var(--hero-ink-2); border-color: var(--hero-rule); } .door.alt li::before { color: var(--hero-accent); } .door.alt .text-link { color: var(--hero-ink); }
.doors.two { grid-template-columns: 1fr 1fr; }

/* ---------- Capability index / photo bands ---------- */
.cap-index { border-top: 1px solid var(--rule-strong); }
.cap-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background .2s; }
.cap-row:hover { background: var(--surface); }
.cap-row .eyebrow { margin: 0; }
.cap-row h3 { font-size: 1.5rem; }
.cap-row p { font-size: var(--t-sm); color: var(--ink-2); }
.cap-row .arrow { font-size: 1.3rem; color: var(--accent); }
.bands { display: grid; gap: 1px; background: var(--hero-rule); }
.band { text-decoration: none; position: relative; min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; }
.band .photo { position: absolute; inset: 0; }
.band .photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); will-change: transform; }
.band:hover .photo img { transform: scale(1.0); }
.band .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,17,22,.92) 0%, rgba(14,17,22,.65) 40%, rgba(14,17,22,.15) 100%); }
.band .panel { position: relative; padding: clamp(28px, 4vw, 56px); max-width: 620px; }
.band .panel .eyebrow { color: var(--hero-accent); }
.band .panel h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--hero-ink); }
.band .panel p { margin-top: 14px; color: var(--hero-ink-2); }
.band .panel .text-link { margin-top: 20px; color: var(--hero-ink); }
.band.right { justify-items: end; }
.band.right .photo::after { background: linear-gradient(270deg, rgba(14,17,22,.92) 0%, rgba(14,17,22,.65) 40%, rgba(14,17,22,.15) 100%); }
.band .credit { position: absolute; right: 14px; bottom: 10px; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .06em; color: rgba(243,238,228,.45); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--rule-strong); }
.process > div { padding: 26px 24px 24px 0; border-right: 1px solid var(--rule); position: relative; }
.process > div + div { padding-left: 24px; }
.process > div:last-child { border-right: 0; }
.process > div::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.process h3 { font-size: 1.35rem; margin-bottom: 8px; }
.process p { font-size: var(--t-sm); color: var(--ink-2); }
.process.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dark .process { border-color: var(--hero-rule); } .dark .process > div { border-color: var(--hero-rule); } .dark .process > div::before { color: var(--hero-accent); } .dark .process p { color: var(--hero-ink-2); }

/* ---------- Chain (provenance) ---------- */
.chain { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.chain > div { position: relative; padding: 22px 18px 20px; border: 1px solid var(--hero-rule); background: var(--hero-bg-2); }
.chain > div::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--hero-accent); font-size: 1rem; z-index: 1; }
.chain > div:last-child::after { display: none; }
.chain .k { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--hero-accent); display: block; margin-bottom: 10px; }
.chain b { display: block; font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; line-height: 1.1; }
.chain p { font-size: var(--t-xs); color: var(--hero-ink-2); margin-top: 8px; }
.controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hero-rule); margin-top: 40px; }
.controls > div { padding: 18px 18px 18px 0; border-right: 1px solid var(--hero-rule); }
.controls > div + div { padding-left: 18px; } .controls > div:last-child { border-right: 0; }
.controls b { display: block; font-weight: 600; font-size: var(--t-sm); }
.controls span { display: block; font-size: var(--t-xs); color: var(--hero-ink-2); margin-top: 4px; }

/* ---------- Split / band content ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split.eq { grid-template-columns: 1fr 1fr; }
.sticky { position: sticky; top: 104px; }
.photo-card { position: relative; overflow: hidden; border: 1px solid var(--rule); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .08em; color: var(--hero-ink); background: linear-gradient(0deg, rgba(14,17,22,.85), transparent); }
.statement { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.3; max-width: 28ch; }
.statement strong { font-weight: 600; }

/* ---------- Capability detail ---------- */
.cap-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 14px; border-bottom: 1px solid var(--rule); position: sticky; top: 76px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); z-index: 30; }
.cap-nav a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); padding-block: 4px; border-bottom: 1px solid transparent; }
.cap-nav a:hover { color: var(--ink); border-bottom-color: var(--accent-fill); }
.cap-detail { padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.cap-detail .sec-head { margin-bottom: 36px; }
.deflist { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.deflist li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 32px; padding-block: 16px; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); color: var(--ink-2); }
.deflist li strong { color: var(--ink); font-weight: 600; }
.for-partners { margin-top: 28px; padding: 18px 22px; border-left: 2px solid var(--accent-fill); background: var(--surface); }
.for-partners .eyebrow { margin-bottom: 6px; }
.for-partners p { font-size: var(--t-sm); }
.cap-photo { margin-top: 36px; }
.cap-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border: 1px solid var(--rule); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); }
td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 600; }
.dark th { color: var(--hero-ink-2); border-color: var(--hero-ink-2); } .dark td { color: var(--hero-ink-2); border-color: var(--hero-rule); } .dark td:first-child { color: var(--hero-ink); }
.table-wrap { overflow-x: auto; }

/* ---------- Grids of short items ---------- */
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.items > div { padding: 24px 24px 24px 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.items > div:nth-child(3n) { border-right: 0; }
.items > div:nth-child(3n+2), .items > div:nth-child(3n) { padding-left: 24px; }
.items h3 { font-size: 1.3rem; margin-bottom: 8px; }
.items p { font-size: var(--t-sm); color: var(--ink-2); }
.items.two { grid-template-columns: 1fr 1fr; }
.items.two > div:nth-child(3n) { border-right: 1px solid var(--rule); }
.items.two > div:nth-child(2n) { border-right: 0; padding-left: 24px; }
.items.two > div:nth-child(2n+1) { padding-left: 0; }
.items.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.items.four > div { padding-left: 24px; } .items.four > div:nth-child(4n+1) { padding-left: 0; } .items.four > div:nth-child(3n) { border-right: 1px solid var(--rule); } .items.four > div:nth-child(4n) { border-right: 0; }
.dark .items { border-color: var(--hero-rule); } .dark .items > div { border-color: var(--hero-rule); } .dark .items p { color: var(--hero-ink-2); }
.criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--rule-strong); }
.criteria > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); color: var(--ink-2); }
.criteria b { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; padding-top: 3px; }

/* ---------- Timeline ---------- */
.timeline { border-top: 1px solid var(--rule-strong); }
.timeline > div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.timeline b { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; padding-top: 4px; }
.timeline p { color: var(--ink-2); font-size: var(--t-sm); }

/* ---------- Contact routes ---------- */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route { padding: 26px; border: 1px solid var(--rule); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.route h3 { font-size: 1.4rem; }
.route p { font-size: var(--t-sm); color: var(--ink-2); }
.route .addr { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; font-family: var(--f-mono); font-size: var(--t-sm); }
.copy { font: 500 var(--t-xs) var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: transparent; border: 1px solid var(--rule-strong); padding: 5px 9px; cursor: pointer; border-radius: 2px; color: var(--ink-2); }
.copy:hover { border-color: var(--ink); color: var(--ink); }
.copy.done { color: var(--ok); border-color: var(--ok); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; background: #fff; border: 1px solid var(--rule-strong); border-radius: 2px; font-size: var(--t-sm); -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.field select { background: #fff 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' fill='none' stroke='%236B675F' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-fill); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); }
.check input { margin-top: 4px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--accent-fill); }
.check span a { color: inherit; }
.form-note { font-size: var(--t-xs); color: var(--ink-3); }
.form .btn { justify-self: start; }
.form-ok { display: none; padding: 18px 22px; border: 1px solid var(--ok); color: var(--ok); background: #F1F6F2; font-size: var(--t-sm); margin-top: 16px; }
.form-ok.show { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 2px; font-size: var(--t-sm); cursor: pointer; background: #fff; }
.chips input { accent-color: var(--accent-fill); }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal p { color: var(--ink-2); margin-top: 10px; }
.legal p + p { margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.cta-band h2 { max-width: 16ch; }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-bg); color: var(--hero-ink-2); padding: 72px 0 40px; border-top: 1px solid var(--hero-rule); }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--hero-rule); }
.site-footer .brand-mark { color: var(--hero-ink); } .site-footer .brand-sub { color: var(--hero-accent); } .site-footer .brand-sub i { background: var(--hero-accent); }
.site-footer .about { font-size: var(--t-sm); margin-top: 20px; max-width: 40ch; }
.site-footer h4 { font-family: var(--f-mono); font-weight: 500; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--hero-accent); margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; font-size: var(--t-sm); }
.site-footer li a { text-decoration: none; } .site-footer li a:hover { color: var(--hero-ink); }
.site-footer .bottom { padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: var(--t-xs); }
.site-footer .bottom a { text-decoration: none; } .site-footer .bottom a:hover { color: var(--hero-ink); }
.site-footer .legal-line { font-size: var(--t-xs); line-height: 1.6; margin-top: 24px; max-width: none; color: #7E8894; }
.site-footer .gold-rule { height: 3px; background: linear-gradient(90deg, #8A6A33, #D9BC7A 50%, #8A6A33); margin-bottom: 40px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain > div:nth-child(3)::after { display: none; }
  .controls { grid-template-columns: repeat(3, 1fr); }
  .controls > div:nth-child(3) { border-right: 0; } .controls > div:nth-child(4) { padding-left: 0; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .process > div { padding-left: 0 !important; padding-right: 24px; }
  .cap-row { grid-template-columns: 130px 1fr auto; }
  .cap-row p { grid-column: 1 / -1; }
  .items.four { grid-template-columns: repeat(2, 1fr); }
  .items.four > div { padding-left: 24px; } .items.four > div:nth-child(2n+1) { padding-left: 0; } .items.four > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .globe-wrap { width: min(100%, 440px); }
  .hero-coords .coords { grid-template-columns: 1fr; }
  .hero-coords .coords div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--hero-rule); }
  .sec-head, .split, .split.eq, .doors, .trio, .cta-band .wrap, .criteria, .routes, .form, .site-footer .top, .items.two, .mineral-grid { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .door { border-right: 0; border-bottom: 1px solid var(--rule-strong); } .door:last-child { border-bottom: 0; }
  .trio > div { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0 !important; } .trio > div:last-child { border-bottom: 0; }
  .items { grid-template-columns: 1fr; } .items > div { border-right: 0 !important; padding-left: 0 !important; }
  .items.two > div:nth-child(2n) { padding-left: 0; }
  .deflist li { grid-template-columns: 1fr; gap: 4px; }
  .timeline > div, .criteria > div { grid-template-columns: 1fr; gap: 6px; }
  .sticky { position: static; }
  .cap-nav { position: static; }
  .band { min-height: 440px; }
  .band .photo::after, .band.right .photo::after { background: linear-gradient(0deg, rgba(14,17,22,.95) 0%, rgba(14,17,22,.6) 50%, rgba(14,17,22,.2) 100%); }
  .mineral { min-height: 440px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .chain, .controls, .process { grid-template-columns: 1fr; }
  .chain > div::after { display: none; }
  .controls > div, .process > div { border-right: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--hero-rule); }
  .process > div { border-bottom-color: var(--rule); }
  .commodity-strip .wrap { gap: 16px 28px; }
  .brand-mark { font-size: 1.2rem; }
  .brand-sub { font-size: .5rem; }
  .site-footer .top { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 8px; }
}

/* Mineral cards on narrow screens: specimen sits below the copy */
@media (max-width: 900px) {
  .mineral { min-height: 0; padding-bottom: 240px; }
  .mineral .specimen, .mineral.au .specimen, .mineral.cu .specimen, .mineral.cm .specimen { width: auto; right: -2%; bottom: 0; max-width: 70%; transform: none !important; }
  .mineral .specimen img { max-height: 215px; width: auto; margin-left: auto; }
  .mineral .specimen .float { animation: none; }
  .mineral.au .specimen img { max-height: 200px; }
}

/* ---------- Capability photo tiles ---------- */
.cap-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cap-tile { position: relative; grid-column: span 2; min-height: 340px; display: flex; align-items: flex-end; text-decoration: none; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); border-radius: 2px; }
.cap-tile:nth-child(4), .cap-tile:nth-child(5) { grid-column: span 3; }
.cap-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transform: scale(1.03); transition: transform 1s var(--ease), opacity .6s var(--ease); }
.cap-tile:hover img { transform: scale(1); opacity: .9; }
.cap-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,17,22,.92) 0%, rgba(14,17,22,.45) 45%, rgba(14,17,22,.05) 100%); }
.cap-tile .txt { position: relative; z-index: 1; padding: 22px 22px 20px; }
.cap-tile .eyebrow { color: var(--hero-accent); margin-bottom: 8px; }
.cap-tile h3 { color: var(--hero-ink); font-size: 1.55rem; }
.cap-tile p { color: var(--hero-ink-2); font-size: var(--t-sm); margin-top: 8px; max-width: 34ch; }
@media (max-width: 900px) { .cap-tiles { grid-template-columns: 1fr 1fr; } .cap-tile, .cap-tile:nth-child(4), .cap-tile:nth-child(5) { grid-column: span 1; min-height: 280px; } }
@media (max-width: 600px) { .cap-tiles { grid-template-columns: 1fr; } }
.form-err { display: none; padding: 14px 18px; border: 1px solid #A23B2E; color: #A23B2E; background: #FBF1EF; font-size: var(--t-sm); margin-top: 14px; }
.form-err.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hero-note { margin-top: 20px; }
@media (max-width: 700px) { .table-wrap { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); } .table-wrap table { min-width: 640px; } }

/* Contact: request-type selector, type-specific field groups, hero address */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule-strong); border-radius: 2px; padding: 0; margin: 0 0 6px; background: #fff; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--rule-strong); }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 13px 10px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: #F6F2EA; }
.seg input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--accent-fill); }
.type-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.type-fields[hidden], .guide[hidden] { display: none; }
.hero-addr { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-family: var(--f-mono); font-size: 1.05rem; }
.hero-addr a { color: var(--hero-ink); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.dark .copy { color: var(--hero-ink-2); border-color: var(--hero-rule); }
.dark .copy:hover { color: var(--hero-ink); border-color: var(--hero-ink); }
table.compact td, table.compact th { padding-block: 12px; font-size: var(--t-sm); }
table.compact td:last-child { color: var(--ink-3); font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .02em; }
@media (max-width: 700px) {
  .type-fields { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .seg label + label { border-left: 0; border-top: 1px solid var(--rule-strong); }
  .hero-addr { flex-wrap: wrap; }
}

/* v8 refinements */
p, li, dd { text-wrap: pretty; }
.btn:active { transform: translateY(1px); }
.chain-light > div { background: #fff; border-color: var(--rule); }
.chain-light .k { color: var(--accent); }
.chain-light b { color: var(--ink); }
.chain-light p { color: var(--ink-2); }
.deflist.on-dark, .deflist.on-dark li { border-color: var(--hero-rule); }
.deflist.on-dark li { color: var(--hero-ink-2); }
.deflist.on-dark li strong { color: var(--hero-ink); }
