:root {
  --ink: #101820;
  --coal: #172026;
  --deep: #0f1a1c;
  --paper: #f5f0e6;
  --mist: #e9f1ee;
  --copper: #c56a32;
  --gold: #e0b84b;
  --teal: #1d8a8a;
  --green: #5f7e43;
  --steel: #557083;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 70px rgba(12, 18, 18, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: rgba(197, 106, 50, 0.35);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(9, 14, 16, 0.68), rgba(9, 14, 16, 0));
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(15, 26, 28, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  padding-top: 12px;
  padding-bottom: 12px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, var(--copper), var(--gold) 52%, var(--teal));
  clip-path: polygon(50% 0, 100% 30%, 84% 100%, 16% 100%, 0 30%);
  flex: 0 0 auto;
}

.brand-mark span {
  position: absolute;
  inset: 10px 9px 8px;
  background: rgba(15, 26, 28, 0.88);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.brand-word {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  white-space: nowrap;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--white);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-action {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 28px;
  padding: 126px clamp(18px, 4vw, 56px) 54px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(8, 12, 14, 0.88) 0%, rgba(8, 12, 14, 0.54) 44%, rgba(8, 12, 14, 0.1) 76%),
    url("assets/minegolia-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    radial-gradient(circle at 74% 38%, rgba(224, 184, 75, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(7, 10, 11, 0.06), rgba(7, 10, 11, 0.74));
}

.hero-content {
  width: min(100%, 840px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 13vw, 10.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
}

.button.primary {
  color: #111718;
  background: linear-gradient(135deg, var(--gold), #f0d47a 44%, var(--copper));
  box-shadow: 0 16px 36px rgba(197, 106, 50, 0.28);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.button-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
}

.button-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
}

.portal-search {
  width: min(100%, 760px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(13, 23, 25, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.portal-search label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input,
.search-row button {
  min-height: 48px;
  border-radius: 8px;
}

.search-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 14px;
  outline: none;
}

.search-row input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.search-row button,
.search-filters button,
.model-controls button {
  border: 0;
  cursor: pointer;
}

.search-row button {
  padding: 0 20px;
  color: #111718;
  background: var(--gold);
  font-weight: 800;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.search-filters button,
.model-controls button {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
}

.search-filters button.active,
.model-controls button.active {
  color: #111718;
  background: var(--mist);
}

.hero-panel {
  align-self: end;
  display: grid;
  gap: 12px;
}

.metric {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(13, 23, 25, 0.7);
  backdrop-filter: blur(14px);
}

.metric strong {
  display: block;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--deep);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker div {
  min-height: 88px;
  padding: 18px clamp(16px, 3vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker span,
.ticker small {
  color: rgba(255, 255, 255, 0.62);
}

.ticker strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 1.42rem;
}

.ticker small {
  color: #8fd0a9;
  font-weight: 800;
}

.section {
  padding: clamp(72px, 10vw, 120px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 930px;
  margin-bottom: 34px;
}

.section-heading.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 24px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.intro {
  background:
    linear-gradient(180deg, rgba(245, 240, 230, 0.94), rgba(233, 241, 238, 0.92)),
    repeating-linear-gradient(90deg, rgba(16, 24, 32, 0.05) 0 1px, transparent 1px 96px);
}

.intro-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.service-grid article,
.data-room,
.timeline article,
.dashboard {
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 48px rgba(23, 32, 38, 0.08);
}

.intro-grid article {
  padding: 24px;
}

.intro-grid p,
.service-grid p,
.market-copy p,
.timeline p,
.cta p {
  color: rgba(16, 24, 32, 0.68);
  line-height: 1.65;
}

.mini-icon,
.service-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 18px;
  background: var(--copper);
  position: relative;
}

.mini-icon::before,
.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.86);
}

.mini-icon.supply {
  background: var(--copper);
}

.mini-icon.supply::before {
  left: 9px;
  right: 9px;
  bottom: 8px;
  height: 4px;
  box-shadow: 0 -7px 0 rgba(255, 255, 255, 0.72), 0 -14px 0 rgba(255, 255, 255, 0.52);
}

.mini-icon.data {
  background: var(--teal);
}

.mini-icon.data::before {
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: transparent;
}

.mini-icon.investor {
  background: var(--green);
}

.mini-icon.investor::before {
  width: 17px;
  height: 17px;
  left: 10px;
  top: 8px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.deposit-model {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(10, 17, 18, 0.94), rgba(17, 32, 34, 0.84) 42%, rgba(64, 38, 24, 0.76)),
    #0e181a;
  isolation: isolate;
}

.deposit-model::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1));
  pointer-events: none;
}

#ore-model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.model-overlay {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 36px));
  padding: clamp(84px, 13vw, 150px) 0 0 clamp(18px, 4vw, 56px);
}

.model-overlay h2 {
  text-wrap: balance;
}

.model-overlay p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  line-height: 1.7;
}

.model-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.model-legend {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 34px;
  z-index: 2;
  display: grid;
  gap: 10px;
  min-width: min(280px, calc(100% - 36px));
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 14, 15, 0.66);
  backdrop-filter: blur(16px);
}

.model-legend div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.legend-swatch {
  width: 24px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.legend-swatch.copper {
  background: var(--copper);
}

.legend-swatch.gold {
  background: var(--gold);
}

.legend-swatch.strata {
  background: linear-gradient(90deg, #745044, #9b7b5e, #5b6d77);
}

.services {
  background: var(--mist);
}

.text-link {
  color: var(--teal);
  font-weight: 800;
  white-space: nowrap;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article {
  padding: 22px;
}

.service-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-top strong {
  font-size: 1.08rem;
  line-height: 1.32;
}

.service-icon {
  margin: 0;
  flex: 0 0 auto;
}

.service-icon.tender {
  background: var(--copper);
}

.service-icon.tender::before {
  inset: 10px 9px;
  height: 4px;
  box-shadow: 0 7px 0 rgba(255, 255, 255, 0.72);
}

.service-icon.geology {
  background: var(--green);
}

.service-icon.geology::before {
  left: 8px;
  right: 8px;
  top: 10px;
  height: 3px;
  transform: rotate(-18deg);
  box-shadow: 0 8px 0 rgba(255, 255, 255, 0.65);
}

.service-icon.market {
  background: var(--teal);
}

.service-icon.market::before {
  left: 9px;
  bottom: 8px;
  width: 4px;
  height: 16px;
  box-shadow: 8px -5px 0 rgba(255, 255, 255, 0.72), 16px -1px 0 rgba(255, 255, 255, 0.58);
}

.service-icon.training {
  background: var(--steel);
}

.service-icon.training::before {
  left: 8px;
  top: 11px;
  width: 20px;
  height: 13px;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.service-icon.equipment {
  background: #84694f;
}

.service-icon.equipment::before {
  left: 7px;
  bottom: 9px;
  width: 20px;
  height: 8px;
}

.service-icon.equipment::after {
  left: 9px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 12px 0 0 rgba(255, 255, 255, 0.86);
}

.service-icon.esg {
  background: #4c785d;
}

.service-icon.esg::before {
  left: 11px;
  top: 8px;
  width: 14px;
  height: 20px;
  border-radius: 14px 14px 2px 14px;
  transform: rotate(32deg);
}

.service-grid a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 800;
}

.market-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding: clamp(72px, 10vw, 118px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.97), rgba(20, 48, 48, 0.94)),
    var(--coal);
  color: var(--white);
}

.market-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dash-header span {
  color: rgba(255, 255, 255, 0.68);
}

.bar-chart {
  height: clamp(190px, 26vw, 320px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: end;
  padding: 24px 0;
}

.bar-chart span {
  min-height: 22px;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--copper) 62%, var(--teal));
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

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

.dash-grid div {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.dash-grid small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.56);
}

.dash-grid strong {
  font-size: 0.94rem;
}

.investors {
  background:
    linear-gradient(180deg, rgba(245, 240, 230, 0.96), rgba(244, 247, 241, 0.98)),
    var(--paper);
}

.investor-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
}

.data-room {
  padding: 24px;
}

.room-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
}

.room-head span {
  color: rgba(16, 24, 32, 0.58);
}

.room-head strong {
  color: var(--teal);
}

.data-room ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.data-room li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  color: rgba(16, 24, 32, 0.78);
  line-height: 1.5;
}

.data-room li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
}

.data-room li span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 7px;
  height: 11px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(38deg);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 4px 20px;
  padding: 22px;
}

.timeline article strong {
  grid-row: span 2;
  color: var(--copper);
  font-size: 2rem;
  line-height: 1;
}

.timeline article span {
  font-weight: 850;
}

.timeline article p {
  margin-bottom: 0;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(58px, 9vw, 96px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(18, 28, 30, 0.98), rgba(49, 73, 54, 0.92)),
    var(--deep);
}

.cta h2 {
  max-width: 980px;
}

.cta p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: auto;
    padding-top: 112px;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro-grid,
  .service-grid,
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-band,
  .investor-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-word {
    font-size: 1rem;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 104px 16px 28px;
  }

  .hero-media {
    background-position: 62% center;
  }

  h1 {
    font-size: clamp(3.5rem, 19vw, 6rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row button {
    width: 100%;
  }

  .hero-panel,
  .ticker,
  .intro-grid,
  .service-grid,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .ticker div {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section-heading.row {
    display: block;
  }

  .deposit-model {
    min-height: 820px;
  }

  .model-overlay {
    width: calc(100% - 32px);
    padding: 72px 16px 0;
  }

  .model-overlay h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .model-legend {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .timeline article strong {
    grid-row: auto;
  }

  .cta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
