/* ==========================================================================
   CVR MINING — Corporate Information Page
   Design system + components + animations
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --gold-100: #fff4cf;
  --gold-200: #f6e2a2;
  --gold-300: #e8c465;
  --gold-400: #d9a83a;
  --gold-500: #bd8a20;
  --gold-600: #8a5f14;
  --gold-700: #5a3d0d;

  --ink-900: #070603;
  --ink-800: #0c0a07;
  --ink-700: #12100b;
  --ink-600: #191510;
  --ink-500: #241e16;

  --paper: #f4efe6;
  --text: #cdc6bb;
  --text-strong: #f2ede4;
  --muted: #8b8377;

  --line: rgba(217, 168, 58, .22);
  --line-soft: rgba(255, 255, 255, .07);

  --grad-gold: linear-gradient(135deg, #fff3c4 0%, #e2b542 38%, #b4831c 68%, #f0d178 100%);
  --grad-gold-flat: linear-gradient(135deg, #e8c465 0%, #bd8a20 100%);

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, .5);
  --shadow-gold: 0 18px 44px rgba(189, 138, 32, .28);

  --nav-h: 104px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --ff-display: 'Anton', 'Oswald', Impact, sans-serif;
  --ff-head: 'Oswald', 'Barlow Condensed', sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-script: 'Great Vibes', cursive;
}

/* ---------- 2. Base ---------- */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  background: var(--ink-900);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, .h-font { font-family: var(--ff-head); font-weight: 600; color: var(--text-strong); letter-spacing: .02em; }

a { text-decoration: none; color: var(--gold-300); transition: color .25s var(--ease); }
a:hover { color: var(--gold-200); }

img, svg { max-width: 100%; }

::selection { background: var(--gold-400); color: #1b1206; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-800); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-500), var(--gold-700)); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); }

/* ---------- 3. Utilities ---------- */
.txt-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.txt-muted { color: var(--muted); }
.bg-ink { background: var(--ink-900); }
.bg-ink-2 { background: var(--ink-800); }

.section { position: relative; padding: clamp(72px, 9vw, 130px) 0; }
.section-tight { padding: clamp(52px, 6vw, 84px) 0; }

.eyebrow {
  font-family: var(--ff-head);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-400);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}

.section-title {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 20px;
}
.section-title .thin { font-weight: 200; color: var(--text); display: block; }

.lead-txt { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }

.rule-gold { width: 62px; height: 3px; background: var(--grad-gold-flat); border-radius: 3px; }

.divider-line { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. Buttons ---------- */
.btn-cvr {
  --btn-bg: var(--grad-gold-flat);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-head); font-weight: 500;
  font-size: .84rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 3px; border: 0;
  color: #1c1305; background: var(--btn-bg);
  box-shadow: var(--shadow-gold);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s;
  will-change: transform;
}
.btn-cvr i { transition: transform .35s var(--ease); }
.btn-cvr::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-cvr:hover { color: #1c1305; transform: translateY(-3px); box-shadow: 0 22px 52px rgba(189, 138, 32, .42); }
.btn-cvr:hover::after { left: 130%; }
.btn-cvr:hover i { transform: translateX(5px); }

.btn-ghost {
  background: transparent; color: var(--text-strong);
  border: 1px solid rgba(255, 255, 255, .32); box-shadow: none;
}
.btn-ghost:hover { color: #1c1305; background: #fff; border-color: #fff; box-shadow: 0 18px 40px rgba(255, 255, 255, .16); }

.btn-outline-gold {
  background: transparent; color: var(--gold-300);
  border: 1px solid var(--gold-500); box-shadow: none;
}
.btn-outline-gold:hover { color: #1c1305; background: var(--grad-gold-flat); border-color: transparent; }

.btn-sm-cvr { padding: 11px 22px; font-size: .74rem; }

/* ---------- 5. Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--ink-900);
  transition: opacity .6s ease, visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pl-inner { text-align: center; }
.pl-mark { width: 230px; height: auto; margin: 0 auto; display: block; animation: plPulse 1.8s ease-in-out infinite; }
@keyframes plPulse { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- 6. Scroll progress ---------- */
#scrollbar-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad-gold); z-index: 1080;
  box-shadow: 0 0 14px rgba(217, 168, 58, .7);
}

/* ---------- 7. Navbar ---------- */
.cvr-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
  padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s, backdrop-filter .4s;
  background: linear-gradient(180deg, rgba(7, 6, 3, .82), rgba(7, 6, 3, 0));
}
.cvr-nav.scrolled {
  padding: 10px 0;
  background: rgba(8, 7, 4, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
  border-bottom: 1px solid var(--line);
}
.cvr-brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 112px; height: auto; display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .55));
  transition: width .35s var(--ease), filter .35s;
}
.cvr-brand:hover .logo-mark { filter: drop-shadow(0 6px 22px rgba(217, 168, 58, .45)); }
.cvr-nav.scrolled .logo-mark { width: 92px; }
.logo-mark-lg { width: 190px; }

/* Drop a file at assets/img/logo.png (or .jpg / .webp / .svg) and it replaces
   the drawn mark everywhere. Without one, the SVG lockup stays. */
.cvr-logo { display: block; line-height: 0; }
/* assets/img/logo.png is the logo. The drawn SVG only appears if it is missing,
   so the real mark is never preceded by a flash of the placeholder. */
.cvr-logo > svg { display: none; }
.cvr-logo.no-img > svg { display: block; }
.cvr-logo .logo-real { display: block; object-fit: contain; width: auto; height: 66px; }
.cvr-nav.scrolled .cvr-logo .logo-real { height: 54px; }
.cvr-logo .logo-mark-lg.logo-real { height: 104px; }
.cvr-logo .pl-mark.logo-real { height: 168px; margin: 0 auto; }

.cvr-menu { display: flex; align-items: center; gap: 6px; }
.cvr-link {
  position: relative;
  font-family: var(--ff-head); font-weight: 400;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72); padding: 10px 14px; display: block;
}
.cvr-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--grad-gold-flat); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.cvr-link:hover, .cvr-link.active { color: #fff; }
.cvr-link:hover::after, .cvr-link.active::after { transform: scaleX(1); }

.cvr-burger {
  width: 46px; height: 40px; border: 1px solid var(--line); background: transparent;
  border-radius: 3px; display: none; place-items: center; gap: 5px; flex-direction: column;
}
.cvr-burger span { width: 20px; height: 2px; background: var(--gold-300); transition: .3s var(--ease); display: block; }
.cvr-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cvr-burger.open span:nth-child(2) { opacity: 0; }
.cvr-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 1040;
  background: rgba(7, 6, 3, .97);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-panel.open { opacity: 1; visibility: visible; }
.mobile-panel a {
  font-family: var(--ff-head); font-size: 1.5rem; text-transform: uppercase;
  letter-spacing: .12em; color: #fff; padding: 10px 0;
  opacity: 0; transform: translateY(18px); transition: .5s var(--ease);
}
.mobile-panel.open a { opacity: 1; transform: none; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  padding-top: var(--nav-h);
}
.hero-layer {
  position: absolute; inset: -8% -4%;
  background-size: cover; background-position: center bottom;
  will-change: transform; z-index: -3;
}
.hero-layer.photo {
  background-image: url("../img/hero-bg.jpg");
  filter: saturate(1.14) contrast(1.05) brightness(.92);
}
.hero-rock {
  position: absolute; right: -2%; top: 17%; bottom: auto;
  width: min(45vw, 680px); height: min(50vh, 500px);
  object-fit: cover; z-index: -1; opacity: .95; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 60% 56% at 52% 50%, #000 38%, rgba(0,0,0,.6) 60%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 56% at 52% 50%, #000 38%, rgba(0,0,0,.6) 60%, transparent 78%);
  filter: saturate(1.25) contrast(1.06) drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
  animation: floatRock 9s ease-in-out infinite;
}
@keyframes floatRock { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(5, 4, 2, .93) 0%, rgba(6, 5, 3, .66) 32%, rgba(6, 5, 3, .12) 58%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--ink-900));
}
#hero-dust { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-content { position: relative; z-index: 3; }
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3.1rem, 8.6vw, 7.4rem);
  line-height: .92; letter-spacing: -.005em;
  text-transform: uppercase; color: #d6d2cb;
  margin: 0 0 26px;
}
.hero-title .l1 { display: block; }

/* Guard: tie the headline to the width of its own column, not to the viewport,
   so the longest line can never outgrow the column again. "Opportunities" in
   Anton measures 5.42x the font size, so the cap has to stay under 18.4cqw. */
@supports (container-type: inline-size) {
  .hero-content .col-lg-7 { container-type: inline-size; }
  .hero-title { font-size: clamp(3.1rem, min(8.6vw, 17.4cqw), 7.4rem); }
}
.hero-title .l1:first-child {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 26px rgba(189, 138, 32, .32));
}
.hero-sub {
  font-family: var(--ff-head); font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300);
  margin-bottom: 18px; padding-top: 22px; position: relative;
}
.hero-sub::before {
  content: ""; position: absolute; top: 0; left: 0; width: 74px; height: 2px; background: var(--grad-gold-flat);
}
.hero-desc { color: #b7b0a5; max-width: 46ch; margin-bottom: 34px; }

.hero-badge {
  position: absolute; top: calc(var(--nav-h) + 8px); right: 16px; z-index: 4;
  text-align: right; font-family: var(--ff-head);
}
.hero-badge .tz {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .3em; color: var(--gold-300); text-transform: uppercase;
}
.hero-badge .flag { width: 30px; height: 20px; border-radius: 2px; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.hero-badge p {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62); margin: 8px 0 0; line-height: 1.7;
}
.hero-script {
  position: absolute; right: 5%; bottom: 7%; z-index: 4;
  font-family: var(--ff-script);
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  color: var(--gold-200); transform: rotate(-6deg); line-height: 1.05;
  text-shadow: 0 6px 26px rgba(0, 0, 0, .6);
  opacity: 0; animation: scriptIn 1.4s 1.4s var(--ease) forwards;
}
@keyframes scriptIn { from { opacity: 0; transform: rotate(-6deg) translateY(24px); } to { opacity: 1; transform: rotate(-6deg) translateY(0); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-size: .62rem; letter-spacing: .34em;
  text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.scroll-hint .bar { width: 1px; height: 46px; background: linear-gradient(180deg, var(--gold-400), transparent); position: relative; overflow: hidden; }
.scroll-hint .bar::after {
  content: ""; position: absolute; top: -46px; left: 0; width: 100%; height: 46px;
  background: #fff; animation: scrollBar 2.1s var(--ease) infinite;
}
@keyframes scrollBar { 0% { top: -46px; } 60%, 100% { top: 46px; } }

/* ---------- 9. Pillars strip ---------- */
.pillars { background: linear-gradient(180deg, var(--ink-900), var(--ink-800)); border-block: 1px solid var(--line-soft); position: relative; }
.pillar { padding: 40px 22px; text-align: center; position: relative; height: 100%; transition: background .4s; }
.pillar + .pillar::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.pillar:hover { background: rgba(217, 168, 58, .04); }
.pillar .ic { font-size: 2rem; color: var(--gold-400); display: block; margin-bottom: 14px; transition: transform .45s var(--ease); }
.pillar:hover .ic { transform: translateY(-5px) scale(1.08); }
.pillar h3 {
  font-family: var(--ff-head); font-size: .95rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 6px;
}
.pillar p { font-size: .84rem; color: var(--muted); margin: 0; }

/* ---------- 10. Ticker ---------- */
.ticker {
  background: var(--ink-700); border-block: 1px solid var(--line);
  overflow: hidden; padding: 13px 0; position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink-700), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--ink-700), transparent); }
.ticker-track { display: flex; gap: 52px; width: max-content; animation: tick 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--ff-head); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.ticker-item b { color: var(--gold-300); font-weight: 500; }
.ticker-item i { color: var(--gold-500); font-size: .7rem; }

/* ---------- 11. Split / media ---------- */
.split-media {
  position: relative; min-height: 480px; height: 100%; overflow: hidden;
  background-size: cover; background-position: center;
}
.split-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,4,2,.28), rgba(5,4,2,.72));
}
.split-media .pin, .split-media .quote { position: absolute; z-index: 3; }
.split-media .pin {
  top: 26px; left: 26px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-head); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: rgba(7, 6, 3, .5); border: 1px solid var(--line);
  backdrop-filter: blur(6px); padding: 9px 16px; border-radius: 3px;
}
.split-media .pin i { color: var(--gold-400); }
.split-media .quote {
  left: 30px; right: 30px; bottom: 28px;
  font-family: var(--ff-head); font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: .08em; text-transform: uppercase; color: #fff; line-height: 1.4;
}
.split-body { padding: clamp(38px, 5vw, 74px); background: var(--ink-800); height: 100%; }

/* ---------- 12. Assay ---------- */
.assay-highlight {
  display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--line); border-left: 3px solid var(--gold-400);
  background: linear-gradient(120deg, rgba(217, 168, 58, .11), rgba(217, 168, 58, .02));
  padding: 22px 26px; border-radius: 4px; margin: 26px 0 20px;
}
.assay-highlight .bars { font-size: 2.4rem; color: var(--gold-400); line-height: 1; }
.assay-highlight .val {
  font-family: var(--ff-head); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1;
  color: var(--gold-300);
}
.assay-highlight .lbl {
  font-family: var(--ff-head); font-size: .78rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted);
}

/* Certificate card */
.cert-wrap { perspective: 1400px; }
.cert {
  background: var(--paper); color: #2c2a26; border-radius: 4px;
  padding: 26px 24px 30px; box-shadow: var(--shadow-md);
  transform: rotate(3deg); transition: transform .6s var(--ease);
  position: relative; overflow: hidden;
}
.cert::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.014) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.cert-wrap:hover .cert { transform: rotate(0deg) translateY(-6px); }
.cert-head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #cbbf9f; padding-bottom: 12px; }
.cert-logo {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold-500);
  display: grid; place-items: center; font-family: var(--ff-head); font-weight: 600;
  color: var(--gold-600); font-size: 1.05rem;
}
.cert-head b { font-family: var(--ff-head); letter-spacing: .06em; font-size: 1rem; color: #1e1c19; display: block; }
.cert-head span { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: #7d766a; }
.cert h4 {
  font-family: var(--ff-head); font-size: .92rem; letter-spacing: .3em;
  text-transform: uppercase; color: #2c2a26; text-align: center; margin: 18px 0 14px;
}
.cert table { width: 100%; font-size: .84rem; }
.cert table th, .cert table td { padding: 8px 10px; border-bottom: 1px solid #ded4bb; }
.cert table th { font-family: var(--ff-head); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #4d4740; text-align: left; }
.cert table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: #1e1c19; }
.cert table tr.hl td, .cert table tr.hl th { background: rgba(217, 168, 58, .18); }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; }
.cert-sign { font-family: var(--ff-script); font-size: 1.5rem; color: #3b3630; line-height: 1; }
.cert-sign small { display: block; font-family: var(--ff-body); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: #857d70; margin-top: 4px; }
.cert-stamp {
  border: 2px solid #b8382f; color: #b8382f; border-radius: 3px;
  font-family: var(--ff-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; transform: rotate(-9deg); opacity: .82;
}

/* ---------- 13. Cards ---------- */
.card-cvr {
  position: relative; height: 100%; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line-soft); border-radius: 5px;
  padding: 32px 28px;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.card-cvr::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-gold-flat); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.card-cvr:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: var(--shadow-md); }
.card-cvr:hover::before { transform: scaleX(1); }
.card-cvr .ic-box {
  width: 54px; height: 54px; border-radius: 4px; display: grid; place-items: center;
  background: rgba(217, 168, 58, .1); border: 1px solid var(--line);
  color: var(--gold-300); font-size: 1.4rem; margin-bottom: 20px;
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.card-cvr:hover .ic-box { background: var(--grad-gold-flat); color: #1c1305; transform: rotate(-6deg); }
.card-cvr h3 { font-size: 1.06rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.card-cvr p { font-size: .9rem; color: var(--muted); margin: 0; }
.card-num {
  position: absolute; right: 16px; bottom: 4px;
  font-family: var(--ff-display); font-size: 4.2rem; line-height: 1;
  color: rgba(255, 255, 255, .035);
}

/* Feature mini (Tanzania band) */
.mini-feat { text-align: center; padding: 14px 6px; }
.mini-feat i { font-size: 1.75rem; color: var(--gold-300); display: block; margin-bottom: 10px; transition: transform .4s var(--ease); }
.mini-feat:hover i { transform: translateY(-4px); }
.mini-feat span {
  font-family: var(--ff-head); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; line-height: 1.5; display: block;
}

/* ---------- 14. Stats ---------- */
.stat { text-align: center; padding: 22px 10px; }
.stat .num {
  font-family: var(--ff-head); font-weight: 600; line-height: 1;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  font-family: var(--ff-head); font-size: .72rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); margin-top: 8px;
}

/* ---------- 15. Geology bars & tabs ---------- */
.geo-panel {
  background: linear-gradient(160deg, rgba(255,255,255,.04), transparent);
  border: 1px solid var(--line-soft); border-radius: 5px; padding: 30px 28px;
}
.bar-row + .bar-row { margin-top: 20px; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.bar-head b {
  font-family: var(--ff-head); font-weight: 500; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-strong);
}
.bar-head span { font-family: var(--ff-head); font-size: .82rem; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.bar-track { height: 7px; background: rgba(255, 255, 255, .07); border-radius: 20px; overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: 20px;
  background: var(--grad-gold-flat);
  transition: width 1.5s var(--ease);
  box-shadow: 0 0 14px rgba(217, 168, 58, .4);
}

.nav-cvr-tabs { border: 0; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.nav-cvr-tabs .nav-link {
  border: 1px solid var(--line-soft); border-radius: 3px; background: transparent;
  font-family: var(--ff-head); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 10px 20px; transition: .3s var(--ease);
}
.nav-cvr-tabs .nav-link:hover { color: var(--gold-200); border-color: var(--line); }
.nav-cvr-tabs .nav-link.active { background: var(--grad-gold-flat); color: #1c1305; border-color: transparent; }

/* Geological profile — reference photograph of an auriferous pit wall.
   The aspect-ratio keeps the whole frame visible (its stratum labels are baked
   into the image, so cropping would cut them off) instead of filling a fixed
   box. */
.geo-profile {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 602 / 1080; border-radius: 5px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.geo-profile img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.geo-profile:hover img { transform: scale(1.04); }

/* Framed photo */
.photo-frame {
  position: relative; border-radius: 5px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-frame:hover img { transform: scale(1.06); }
.photo-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 4, 2, .92));
  font-family: var(--ff-head); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: #fff;
}

/* ---------- 15b. Site slideshow (Our Mine) ---------- */
.split-media .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s var(--ease);
}
.split-media .slide.is-active { opacity: 1; }

.slide-dots {
  position: absolute; right: 26px; bottom: 30px; z-index: 4;
  display: flex; gap: 10px;
}
.slide-dots .dot {
  width: 34px; height: 34px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer;
}
.slide-dots .dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  transition: background .35s var(--ease), width .35s var(--ease), border-radius .35s;
}
.slide-dots .dot:hover::before { background: rgba(255, 255, 255, .7); }
.slide-dots .dot.is-active::before {
  width: 26px; border-radius: 20px; background: var(--grad-gold-flat);
}

/* ---------- 15c. Gallery ---------- */
.gal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gal-filters .gal-filter {
  font-family: var(--ff-head); font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line-soft); border-radius: 3px;
  padding: 9px 18px; transition: .3s var(--ease);
}
.gal-filters .gal-filter:hover { color: var(--gold-200); border-color: var(--line); }
.gal-filters .gal-filter.is-active {
  background: var(--grad-gold-flat); color: #1c1305; border-color: transparent;
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gal-wide { grid-column: span 2; }
.gal-tall { grid-row: span 2; }

.gal-item {
  position: relative; overflow: hidden; padding: 0;
  border: 1px solid var(--line-soft); border-radius: 4px;
  background: var(--ink-700); cursor: pointer;
  transition: border-color .4s var(--ease), transform .5s var(--ease), opacity .4s, box-shadow .4s;
}
.gal-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.1s var(--ease), filter .5s;
  filter: saturate(.85) brightness(.82);
}
.gal-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 4, 2, .88));
  opacity: 0; transition: opacity .45s var(--ease);
}
/* Expand cue drawn inline, so it does not depend on an icon webfont. */
.gal-item::before {
  content: ""; position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 3px;
  background-color: #e8c465;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1305' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 19px;
  opacity: 0; transform: scale(.6); transition: .4s var(--ease);
}
.gal-item:hover, .gal-item:focus-visible {
  border-color: var(--line); box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.08); filter: saturate(1) brightness(1); }
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }
.gal-item:hover::before, .gal-item:focus-visible::before { opacity: 1; transform: scale(1); }

.gal-item .gal-label {
  position: absolute; left: 16px; right: 56px; bottom: 14px; z-index: 3;
  text-align: left; transform: translateY(10px); opacity: 0;
  transition: .45s var(--ease);
}
.gal-item:hover .gal-label, .gal-item:focus-visible .gal-label { transform: none; opacity: 1; }
.gal-item .gal-label b {
  display: block; font-family: var(--ff-head); font-weight: 500;
  font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.gal-item .gal-label span {
  font-family: var(--ff-head); font-size: .64rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-300);
}

.gal-item.is-hidden { display: none; }
.gal-empty {
  text-align: center; color: var(--muted); padding: 40px 0 0;
  font-family: var(--ff-head); letter-spacing: .18em; text-transform: uppercase; font-size: .8rem;
}

/* ---------- 15d. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1090;
  background: rgba(4, 3, 2, .96);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 68px 20px 20px;
  opacity: 0; transition: opacity .3s ease;
}
.lightbox.is-open { opacity: 1; }
.lb-stage { margin: 0; max-width: min(1150px, 100%); text-align: center; }
.lb-stage img {
  max-width: 100%; max-height: 72vh; display: block; margin: 0 auto;
  border-radius: 4px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
  opacity: 0; transform: scale(.98); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.lightbox.is-ready .lb-stage img { opacity: 1; transform: none; }
.lb-cap { margin-top: 20px; }
.lb-cap b {
  display: block; font-family: var(--ff-head); font-weight: 500;
  font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.lb-cap span { display: block; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.lb-cap em {
  display: block; font-style: normal; margin-top: 10px;
  font-family: var(--ff-head); font-size: .72rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-400);
}
.lb-btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(12, 10, 7, .82);
  color: var(--gold-300); display: grid; place-items: center;
  font-size: 1.1rem; transition: .3s var(--ease);
}
.lb-btn:hover { background: var(--grad-gold-flat); color: #1c1305; border-color: transparent; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .gal-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
}
@media (max-width: 767.98px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .gal-wide { grid-column: span 2; }
  .gal-tall { grid-row: span 1; }
  .slide-dots { right: 50%; transform: translateX(50%); bottom: 16px; }
  .lightbox { padding: 62px 12px 12px; }
  .lb-btn { width: 44px; height: 44px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-stage img { max-height: 58vh; }
  /* No hover on touch: keep the caption and the cue permanently visible. */
  .gal-item::after, .gal-item .gal-label { opacity: 1; }
  .gal-item .gal-label { transform: none; }
  .gal-item::before { opacity: .9; transform: none; }
}
@media (max-width: 479.98px) {
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gal-wide { grid-column: span 1; }
}

/* ---------- 16. Timeline ---------- */
.tl { position: relative; padding-left: 34px; }
.tl::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gold-400), rgba(217,168,58,.08));
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 5px; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid var(--gold-500); background: var(--ink-900);
  transition: .4s var(--ease);
}
.tl-item.done::before { background: var(--grad-gold-flat); border-color: transparent; box-shadow: 0 0 0 5px rgba(217,168,58,.14); }
.tl-item.current::before { animation: pulseDot 2s infinite; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(217, 168, 58, .55); }
  70% { box-shadow: 0 0 0 14px rgba(217, 168, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 168, 58, 0); }
}
.tl-item .ph {
  font-family: var(--ff-head); font-size: .68rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold-400); display: block; margin-bottom: 4px;
}
.tl-item h4 { font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.tl-item p { font-size: .88rem; color: var(--muted); margin: 0; }
.tag-status {
  display: inline-block; font-family: var(--ff-head); font-size: .6rem;
  letter-spacing: .18em; text-transform: uppercase; padding: 3px 10px;
  border-radius: 20px; border: 1px solid var(--line); color: var(--gold-300); margin-left: 8px;
}

/* ---------- 17. Accordion ---------- */
.accordion-cvr .accordion-item {
  background: transparent; border: 1px solid var(--line-soft);
  border-radius: 4px !important; margin-bottom: 12px; overflow: hidden;
}
.accordion-cvr .accordion-button {
  background: rgba(255, 255, 255, .025); color: var(--text-strong);
  font-family: var(--ff-head); font-size: .92rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 20px 22px; box-shadow: none;
}
.accordion-cvr .accordion-button:not(.collapsed) { background: rgba(217, 168, 58, .1); color: var(--gold-200); }
.accordion-cvr .accordion-button::after {
  filter: invert(76%) sepia(38%) saturate(700%) hue-rotate(2deg) brightness(95%);
}
.accordion-cvr .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-cvr .accordion-body { color: var(--muted); font-size: .92rem; padding: 4px 22px 22px; }

/* ---------- 18. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink-800); }
.cta-media {
  position: absolute; inset: 0;
  background: url("../img/cta-ore.jpg") center/cover no-repeat;
  opacity: .62; filter: saturate(1.15) contrast(1.05);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 26%, transparent 52%);
  mask-image: linear-gradient(90deg, #000 0%, #000 26%, transparent 52%);
}
.cta-map { position: relative; }
.cta-map img { filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.map-pin {
  position: absolute; left: 71.5%; top: 58%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-300); box-shadow: 0 0 18px var(--gold-400);
}
.map-pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--gold-400); animation: pinRipple 2.4s ease-out infinite;
}
@keyframes pinRipple { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
.map-label {
  position: absolute; left: calc(71.5% + 26px); top: calc(58% - 14px);
  font-family: var(--ff-head); font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-200); line-height: 1.5;
}

/* ---------- 19. Contact ---------- */
.contact-line { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.contact-line i { color: var(--gold-400); font-size: 1.15rem; margin-top: 3px; }
.contact-line b {
  display: block; font-family: var(--ff-head); font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.contact-line span { color: var(--text-strong); font-size: .95rem; }

.note-box {
  border: 1px solid var(--line); border-left: 3px solid var(--gold-400);
  background: rgba(217, 168, 58, .06); padding: 16px 18px; border-radius: 4px;
  font-size: .82rem; color: var(--muted);
}

/* ---------- 19b. Single point of contact ---------- */
.mail-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(150deg, rgba(217, 168, 58, .10), rgba(255, 255, 255, .02));
  padding: clamp(28px, 4vw, 48px);
}
.mail-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-gold-flat);
}
.mail-eyebrow {
  /* Block-level: the address belongs on its own line, not beside the label. */
  display: flex; width: fit-content; align-items: center; gap: 10px;
  font-family: var(--ff-head); font-size: .74rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-400);
}
.mail-address {
  display: block; width: fit-content; max-width: 100%;
  position: relative;
  margin: 14px 0 20px;
  font-family: var(--ff-head); font-weight: 500;
  font-size: clamp(1.5rem, 4.6vw, 2.5rem); line-height: 1.1;
  word-break: break-word;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mail-address::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--grad-gold-flat);
  -webkit-background-clip: border-box; background-clip: border-box;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.mail-address:hover::after, .mail-address:focus-visible::after { transform: scaleX(1); }
.mail-note { color: var(--muted); font-size: .92rem; max-width: 50ch; margin-bottom: 28px; }

/* ---------- 20. Footer ---------- */
.footer { background: var(--ink-900); border-top: 1px solid var(--line-soft); padding: 56px 0 0; }
.footer h5 {
  font-family: var(--ff-head); font-size: .78rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-400); margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: var(--muted); font-size: .88rem; }
.footer ul a:hover { color: var(--gold-200); padding-left: 5px; }
.footer ul a { transition: color .3s, padding-left .3s var(--ease); display: inline-block; }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 44px; padding: 22px 0; }
.footer-bottom p { font-size: .8rem; color: #6d675e; margin: 0; }
.soc {
  width: 38px; height: 38px; border-radius: 3px; display: grid; place-items: center;
  border: 1px solid var(--line-soft); color: var(--muted); transition: .35s var(--ease);
}
.soc:hover { background: var(--grad-gold-flat); color: #1c1305; border-color: transparent; transform: translateY(-3px); }

/* ---------- 21. Back to top ---------- */
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 1030;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(12, 10, 7, .85); backdrop-filter: blur(8px);
  color: var(--gold-300); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: .4s var(--ease);
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { background: var(--grad-gold-flat); color: #1c1305; }

/* ---------- 22. Reveal animations ---------- */
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
[data-reveal="up"] { transform: translateY(42px); }
[data-reveal="down"] { transform: translateY(-34px); }
[data-reveal="left"] { transform: translateX(-52px); }
[data-reveal="right"] { transform: translateX(52px); }
[data-reveal="zoom"] { transform: scale(.9); }
[data-reveal="clip"] { clip-path: inset(0 100% 0 0); opacity: 1; transition: clip-path 1.1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .hero-script { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ticker-track, .hero-rock, .map-pin::after { animation: none !important; }
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1199.98px) {
  .hero-script { bottom: 10%; font-size: 2.2rem; }
  .cvr-menu { gap: 0; }
  .cvr-link { padding: 10px 8px; font-size: .71rem; letter-spacing: .07em; white-space: nowrap; }
}
@media (max-width: 991.98px) {
  :root { --nav-h: 84px; }
  .cvr-menu { display: none; }
  .cvr-burger { display: flex; }
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 60px) 90px; }
  .hero-rock { width: 96%; height: 38vh; right: -18%; top: auto; bottom: 4%; opacity: .38; }
  .cvr-nav .logo-mark { width: 92px; }
  .cvr-nav.scrolled .logo-mark { width: 80px; }
  .logo-mark-lg { width: 150px; }
  .cvr-nav .cvr-logo .logo-real { height: 50px; }
  .cvr-nav.scrolled .cvr-logo .logo-real { height: 42px; }
  .cvr-logo .logo-mark-lg.logo-real { height: 84px; }
  .hero-badge { display: none; }
  .hero-script { position: static; transform: rotate(-4deg); margin-top: 30px; display: inline-block; animation-delay: .6s; }
  .hero::before { background: linear-gradient(180deg, rgba(5,4,2,.88) 0%, rgba(5,4,2,.6) 45%, rgba(5,4,2,.45) 100%); }
  .pillar + .pillar::before { display: none; }
  .split-media { min-height: 340px; }
  .scroll-hint { display: none; }
}
@media (max-width: 767.98px) {
  .section { padding: 62px 0; }
  .cert { transform: none; }
  .assay-highlight { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* Full-bleed on a phone would make a portrait frame absurdly tall */
  .geo-profile { max-width: 300px; margin-inline: auto; }
  .cta-media { -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); opacity: .3; }
}
@media (max-width: 575.98px) {
  .hero-title { font-size: 2.85rem; }

  /* Full-width buttons: centre the LABEL on the real centre and pin the icon
     to the right edge, instead of letting the icon drag the text off-centre. */
  .btn-cvr {
    width: 100%; justify-content: center;
    position: relative; padding-inline: 46px;
  }
  .btn-cvr i {
    position: absolute; right: 22px; top: 50%;
    transform: translateY(-50%);
  }
  .btn-cvr:hover i { transform: translateY(-50%) translateX(4px); }

  /* Stat rows: 3 figures per line must survive a 320px screen */
  .stat { padding: 16px 4px; }
  .stat .num { font-size: clamp(1.3rem, 7vw, 2.1rem); }
  .stat .lbl { font-size: .58rem; letter-spacing: .1em; }

  .geo-profile { max-width: 280px; }

  /* 16px minimum stops iOS Safari zooming the page on focus */
  .form-cvr .form-control, .form-cvr .form-select { font-size: 16px; }

  .soc { width: 44px; height: 44px; }
  #toTop { right: 14px; bottom: 14px; }
}

/* Breathing room at the page edges once there is room for it */
@media (min-width: 576px) {
  .container-xxl { padding-inline: clamp(20px, 3.2vw, 44px); }
}

/* Notched phones: keep the fixed chrome out of the safe area */
@supports (padding: max(0px)) {
  .cvr-nav > .container-xxl {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  #toTop { bottom: max(14px, env(safe-area-inset-bottom)); }
}
