:root {
  --paper: #f6f3ea;
  --surface: #ffffff;
  --surface-soft: #fbfaf6;
  --gold: #c5a24b;
  --gold-dark: #8d6f24;
  --charcoal: #293033;
  --gray: #737c80;
  --line: #ded7c6;
  --green: #5f7661;
  --shadow: 0 18px 48px rgba(41, 48, 51, 0.1);
  --radius: 8px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 clamp(14px, 2vw, 28px);
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(222, 215, 198, 0.72);
  box-shadow: 0 8px 28px rgba(41, 48, 51, 0.06);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--charcoal);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
}

.brand img {
  display: block;
  width: 250px;
  height: 66px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 0.75vw, 13px);
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 44px;
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 66px;
}

.language-menu {
  position: relative;
  margin-left: auto;
}

.language-menu button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 26px 6px 13px;
  color: var(--charcoal);
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.language-menu button::after {
  position: absolute;
  top: 14px;
  right: 11px;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: none;
  min-width: 118px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.language-options a {
  display: block;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
}

.language-options a:hover {
  background: var(--surface-soft);
}

.language-menu:hover .language-options,
.language-menu:focus-within .language-options {
  display: block;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.section {
  padding: 50px 5vw;
}

.hero {
  position: relative;
  display: grid;
  min-height: 74vh;
  margin-top: 66px;
  padding-top: 0;
  padding-bottom: 0;
  align-items: stretch;
  overflow: hidden;
  color: var(--surface);
  margin-bottom: 0;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 27, 29, 0.78), rgba(22, 27, 29, 0.34) 50%, rgba(22, 27, 29, 0.12));
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 790px;
  min-height: 74vh;
  padding-top: 92px;
  padding-bottom: 62px;
}

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

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

h1 {
  max-width: 100%;
  margin-bottom: 22px;
  font-size: clamp(44px, 6.2vw, 86px);
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  display: grid;
  gap: 12px;
  letter-spacing: 0.08em;
  white-space: normal;
}

.hero h1 small {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(32px, 4.1vw, 58px);
  font-weight: 700;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
}

p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.8;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
}

.hero-actions,
.filter-group,
.tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.filter-group button,
.tab-group button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.filter-group button:hover,
.tab-group button:hover,
.media-tile:hover,
.media-tile:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--gold);
  color: #1f2224;
  background: linear-gradient(180deg, #d7b75c, var(--gold));
  box-shadow: 0 12px 26px rgba(141, 111, 36, 0.18);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
}

.gold-strip {
  padding: 6px 5vw;
  background: linear-gradient(90deg, #f1e8d4, #ebe1ca);
  border-bottom: 1px solid var(--line);
}

.gold-ticker {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 0.75fr 1.25fr;
  gap: 22px;
  align-items: center;
  width: min(900px, 100%);
  min-height: 46px;
  margin: 0 auto;
  padding: 0;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}

.gold-ticker span,
.gold-ticker small {
  display: block;
  color: var(--gray);
  font-size: 12px;
}

.gold-ticker strong {
  display: block;
  margin-top: 3px;
  color: var(--gold-dark);
  font-size: 16px;
}

.gold-link {
  display: inline-block;
}

.gold-link:hover strong {
  color: #b88913;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gold-ticker .ticker-time {
  font-size: 16px;
  white-space: nowrap;
}

.gold-ticker em {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-style: normal;
  font-weight: 700;
}

.gold-ticker small {
  grid-column: auto;
  line-height: 1.5;
}

.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(197, 162, 75, 0.08), rgba(95, 118, 97, 0.08)),
    repeating-linear-gradient(45deg, rgba(41, 48, 51, 0.035) 0 1px, transparent 1px 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.placeholder.large {
  min-height: 100%;
  border: 0;
  border-radius: 0;
}

.placeholder span,
.placeholder strong {
  position: relative;
  z-index: 1;
  display: block;
}

.placeholder span {
  color: var(--gold-dark);
  font-weight: 700;
}

.placeholder strong {
  max-width: 480px;
  margin-top: 10px;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.5;
}

.hero .placeholder span,
.hero .placeholder strong {
  display: none;
}

.page-hero {
  padding: 118px 5vw 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--charcoal);
}

.page-hero p {
  max-width: 840px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.split-section .section-heading p {
  color: var(--charcoal);
}

.section-heading.compact {
  margin-bottom: 28px;
}

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

.intro-band {
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--surface);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: transparent;
  border: 0;
}

.about-metrics {
  margin-top: 28px;
}

.about-visual-grid {
  grid-template-columns: 1fr;
}

.company-timeline {
  position: relative;
  padding: 8px 0 4px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.company-timeline::before {
  display: none;
}

.timeline-track {
  position: relative;
  z-index: 0;
  min-height: 136px;
}

.timeline-item {
  position: absolute;
  top: var(--timeline-y);
  left: var(--timeline-x);
  z-index: 1;
  width: 18%;
  min-height: 82px;
  padding-top: 34px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateX(-50%);
}

.timeline-item::before {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(141, 111, 36, 0.32), 0 8px 18px rgba(141, 111, 36, 0.2);
  content: "";
  transform: translateX(-50%);
}

.timeline-item::after {
  position: absolute;
  top: 4px;
  left: calc(50% + 7px);
  z-index: 0;
  width: 115%;
  height: 30px;
  border-top: 2px solid rgba(141, 111, 36, 0.5);
  border-radius: 50% 50% 0 0;
  content: "";
  transform: rotate(var(--timeline-angle)) scaleY(var(--timeline-curve));
  transform-origin: left center;
}

.timeline-item:nth-child(1) {
  --timeline-angle: -6deg;
  --timeline-curve: 1;
  --timeline-x: 10%;
  --timeline-y: 42px;
}

.timeline-item:nth-child(2) {
  --timeline-angle: 5deg;
  --timeline-curve: -1;
  --timeline-x: 30%;
  --timeline-y: 6px;
}

.timeline-item:nth-child(3) {
  --timeline-angle: -4deg;
  --timeline-curve: 1;
  --timeline-x: 50%;
  --timeline-y: 28px;
}

.timeline-item:nth-child(4) {
  --timeline-angle: 6deg;
  --timeline-curve: -1;
  --timeline-x: 70%;
  --timeline-y: 6px;
}

.timeline-item:nth-child(5) {
  --timeline-x: 90%;
  --timeline-y: 42px;
}

.timeline-item:nth-child(5)::after {
  display: none;
}

.timeline-item time {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.timeline-item h3 {
  display: none;
}

.timeline-item p {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.metrics-grid article {
  min-height: 132px;
  padding: 22px;
  background: var(--surface-soft);
  border: 0;
}

.metrics-grid strong {
  display: block;
  margin-bottom: 14px;
  color: #bf8f12;
  font-size: 28px;
  font-weight: 800;
  text-shadow: 0 10px 24px rgba(191, 143, 18, 0.18);
}

.metrics-grid .count-number {
  color: #bf8f12;
  text-shadow: inherit;
  font-size: 1em;
}

.metrics-grid .metric-unit {
  display: inline-block;
  margin-left: 5px;
  color: #8d6f22;
  font-size: 0.78em;
  text-shadow: none;
  white-space: nowrap;
}

.metrics-grid .metric-plus {
  display: inline-block;
  margin-left: 4px;
  color: #bf8f12;
  font-size: 1em;
  text-shadow: inherit;
}

.metrics-grid .metric-plus + .metric-unit {
  margin-left: 7px;
}

.metrics-grid .metric-unit-cn {
  font-size: 0.7em;
}

.metrics-grid sup {
  color: #b88913;
}

.sub-filter-group {
  margin: -8px 0 24px;
}

.sub-filter-group[hidden] {
  display: none;
}

.metrics-grid .metric-copy {
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.6;
}

.split-section,
.project-section {
  background: var(--paper);
}

.content-grid {
  display: grid;
  gap: 32px;
}

.content-grid.two {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: stretch;
}

.placeholder.vertical {
  min-height: 360px;
}

.filter-group button.is-active,
.tab-group button.is-active {
  border-color: var(--gold);
  background: #f7f0dc;
}

.news-section,
.operations-section,
.contact-section {
  background: var(--surface);
}

.compact-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.filter-group button,
.tab-group button {
  color: var(--charcoal);
  background: var(--surface);
}

.news-section .section-heading {
  margin-bottom: 20px;
}

.news-section h2,
.split-section h2,
.operations-section h2 {
  margin-bottom: 18px;
  font-size: 34px;
}

.news-section .filter-group {
  gap: 10px;
}

.news-section .filter-group button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}

.news-list {
  max-width: 980px;
  border-top: 1px solid var(--line);
}

.news-archive-section .news-list {
  max-width: 1040px;
}

.news-archive-section .news-row {
  grid-template-columns: 128px 104px 82px minmax(0, 1fr) auto;
}

.news-row {
  display: grid;
  grid-template-columns: 128px 58px 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}

.news-row:hover {
  background: rgba(197, 162, 75, 0.045);
}

.news-thumb {
  min-height: 68px;
  aspect-ratio: 16 / 9;
  padding: 8px;
  border-radius: 4px;
}

.news-thumb span {
  font-size: 12px;
}

.news-thumb strong {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}

.news-thumb img,
.article-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.news-row.is-hidden,
.media-tile.is-hidden {
  display: none;
}

.news-row time {
  justify-self: center;
  color: var(--gold-dark);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.news-row span {
  color: var(--gray);
  font-size: 14px;
}

.news-row h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 400;
}

.news-row a {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
}

.section-more-link {
  display: block;
  width: fit-content;
  margin: 22px 0 0 auto;
  padding-bottom: 8px;
  color: var(--gold-dark);
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 800;
}

.section-more-link::after {
  content: " →";
}

.operation-more-link {
  margin: 18px 0 22px auto;
}

.back-home-link {
  margin: 28px auto 0 0;
}

.back-home-link::after {
  content: "";
}

.project-map-switch {
  position: relative;
  width: min(100%, 1120px);
  margin-right: auto;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(41, 48, 51, 0.08);
}

.map-controls {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 221, 206, 0.85);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(41, 48, 51, 0.1);
  backdrop-filter: blur(14px);
}

.map-controls button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
}

.map-controls button.is-active {
  color: var(--charcoal);
  background: #f4eddc;
}

.map-controls button.is-active span {
  color: var(--gold-dark);
}

.map-display {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin-right: auto;
  margin-left: auto;
}

.map-panels {
  position: relative;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  min-height: 520px;
  padding: 92px 42px 42px;
}

.map-panel {
  display: none;
  height: 430px;
  margin: 0;
}

.map-panel.is-active {
  display: block;
}

.map-panel img,
.geology-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-panel figcaption,
.geology-track figcaption {
  display: none;
}

.geology-panel {
  position: relative;
  overflow: hidden;
}

.geology-track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 18px;
  height: 430px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.geology-track figure {
  height: 430px;
  margin: 0;
  scroll-snap-align: start;
}

.map-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(222, 215, 198, 0.9);
  border-radius: 50%;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(41, 48, 51, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.map-arrow.prev {
  left: 12px;
}

.map-arrow.next {
  right: 12px;
}

.operation-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  justify-items: center;
  justify-content: center;
  width: 100%;
}

.operation-switch {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.operation-controls {
  position: relative;
  top: auto;
  left: auto;
  z-index: 5;
  display: flex;
  gap: 26px;
  width: fit-content;
  margin-bottom: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.operation-controls button {
  position: relative;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0 0 8px;
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
}

.operation-controls button.is-active {
  color: var(--gold-dark);
  background: transparent;
}

.operation-controls button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.operation-controls button.is-active::after,
.operation-controls button:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.operation-switch .operation-stage {
  padding: 0;
}

.operation-media-block {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 684px;
  justify-self: center;
  justify-items: center;
}

.operation-gallery-wrap {
  position: relative;
  width: min(100%, 684px);
  max-width: 684px;
  margin: 0 auto;
  padding: 0 50px;
}

.operation-gallery {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(222, 215, 198, 0.9);
  border-radius: 50%;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(41, 48, 51, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-arrow.prev {
  left: 6px;
}

.gallery-arrow.next {
  right: 6px;
}

.operation-slide {
  scroll-snap-align: start;
}

.operation-image {
  min-height: auto;
  aspect-ratio: 4 / 3;
}

.operation-image.photo-slide {
  height: auto;
  max-height: none;
  width: 100%;
}

.photo-slide,
.photo-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(41, 48, 51, 0.08);
}

.photo-slide img,
.photo-tile img,
.modal-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slide figcaption,
.photo-tile span,
.photo-tile small {
  position: absolute;
  z-index: 2;
}

.photo-slide figcaption {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px;
  color: var(--surface);
  background: linear-gradient(180deg, transparent, rgba(20, 24, 26, 0.78));
}

.photo-slide figcaption span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.photo-slide figcaption strong {
  display: block;
  color: var(--surface);
  font-size: 15px;
}

.operation-video-slot {
  min-height: 150px;
  color: var(--charcoal);
}

.operation-video-slot span,
.operation-video-slot strong {
  display: block;
}

.operation-video-slot span {
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-weight: 700;
}

.operation-video-slot strong {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

.operation-copy {
  width: 100%;
  max-width: 980px;
  justify-self: center;
  padding: 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.operation-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.video-slot {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(246, 243, 234, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid var(--line);
  border-radius: 6px;
}

.video-slot.has-cover {
  display: grid;
  align-content: end;
  min-height: 168px;
  color: var(--surface);
  background: var(--charcoal);
}

.video-slot.has-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 24, 26, 0.08), rgba(20, 24, 26, 0.78));
  content: "";
}

.video-slot.has-cover::after {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  content: "▶";
  font-size: 13px;
  line-height: 1;
}

.video-slot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-slot span,
.video-slot strong {
  position: relative;
  z-index: 2;
  display: block;
}

.video-slot span {
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
}

.video-slot strong {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.45;
}

.video-slot.has-cover span {
  color: rgba(255, 255, 255, 0.82);
}

.video-slot.has-cover strong {
  color: var(--surface);
}

.video-slot-link {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.video-slot-link:hover {
  box-shadow: 0 14px 34px rgba(41, 48, 51, 0.12);
  transform: translateY(-2px);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 34, 36, 0.62);
}

.video-modal[hidden] {
  display: none;
}

.video-modal-box {
  position: relative;
  width: min(980px, 100%);
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-modal-box h3 {
  margin: 0 48px 14px 0;
  color: var(--charcoal);
  font-size: 20px;
}

.video-modal-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101416;
  border-radius: 6px;
}

.operation-copy ol {
  margin: 26px 0 0;
  padding-left: 22px;
  color: var(--charcoal);
  line-height: 2;
}

.inline-action {
  display: inline-block;
  margin-top: 0;
  padding-top: 13px;
  padding-bottom: 13px;
  width: fit-content;
}

.operation-media-block .inline-action {
  margin-top: 0;
  justify-self: end;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0 0 3px;
  color: var(--gold-dark);
  background: transparent;
  font-weight: 700;
}

.operation-media-block .inline-action::after {
  content: " →";
}

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

.media-page-section {
  background: var(--paper);
  padding-top: 118px;
}

.article-page {
  padding: 118px 5vw 64px;
  background: var(--paper);
}

.article-layout {
  max-width: 980px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--gold-dark);
  font-weight: 700;
}

.article-layout h1 {
  color: var(--charcoal);
  font-size: clamp(36px, 5vw, 62px);
}

.article-hero-image {
  min-height: 420px;
  margin: 34px 0;
}

.article-body {
  display: grid;
  gap: 22px;
  max-width: 760px;
  color: var(--charcoal);
}

.article-body :where(p, li, span, strong, em, div) {
  color: var(--charcoal);
}

.article-body h2 {
  margin-top: 10px;
  font-size: 28px;
}

.back-link {
  display: inline-block;
  margin-top: 34px;
  color: var(--gold-dark);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.media-grid.expanded {
  grid-template-columns: repeat(4, 1fr);
}

.media-tile {
  min-height: auto;
  aspect-ratio: 4 / 3;
  color: var(--charcoal);
  cursor: pointer;
}

.media-tile span {
  right: 18px;
  bottom: 44px;
  left: 18px;
  color: var(--surface);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.media-tile small {
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.media-tile::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 24, 26, 0.02) 35%, rgba(20, 24, 26, 0.76));
  content: "";
}

.media-grid.expanded .media-tile {
  min-height: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 34, 36, 0.56);
}

.modal[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: min(920px, 100%);
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: var(--gray);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.video-cover-placeholder {
  display: grid;
  place-items: center;
  position: static;
  width: 100%;
  height: 100%;
  min-height: 100%;
  color: var(--surface);
  background: linear-gradient(135deg, rgba(41, 48, 51, 0.9), rgba(95, 118, 97, 0.84));
  font-size: 22px;
  font-weight: 800;
}

.video-modal-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold-dark);
  border-bottom: 1px solid currentColor;
  font-size: 16px;
  font-weight: 800;
}

.modal-box h3 {
  margin: 0;
}

.modal-box h3 img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

.modal-box h3 span {
  display: block;
  padding: 14px 4px 2px;
  color: var(--charcoal);
  font-size: 18px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--charcoal);
  background: var(--surface-soft);
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 430px);
  align-items: end;
  gap: 34px;
  padding: 30px 5vw 22px;
  color: var(--surface);
  background: var(--charcoal);
}

.site-footer span,
.site-footer p {
  margin: 0;
  color: inherit;
}

.footer-contact h2 {
  margin-bottom: 12px;
  color: var(--surface);
  font-size: 24px;
}

.footer-contact p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer > span {
  display: none;
}

@media (max-width: 980px) {
  .nav-row {
    gap: 12px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .brand img {
    width: 220px;
    height: 62px;
  }

  .language-menu button {
    padding-right: 24px;
    padding-left: 12px;
  }

  .hero-content {
    padding-bottom: 150px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .company-timeline {
    padding: 8px 0 4px;
  }

  .company-timeline::before {
    display: none;
  }

  .timeline-track {
    display: block;
    min-height: 136px;
    padding-left: 0;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    min-height: 82px;
    padding-top: 34px;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .media-grid.expanded {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid.two,
  .operation-stage,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .operation-media-block {
    max-width: 684px;
    margin: 0 auto;
  }

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

@media (max-width: 680px) {
  .section {
    padding: 44px 22px;
  }

  .site-header {
    padding: 0 22px;
  }

  .brand img {
    width: 188px;
    height: 54px;
  }

  .nav-row {
    min-height: 54px;
  }

  .hero {
    min-height: 100vh;
    margin-top: 54px;
  }

  .hero-content {
    min-height: 100vh;
    padding: 110px 0 110px;
  }

  .hero h1 {
    white-space: normal;
  }

  .hero h1 small {
    font-size: clamp(26px, 5.4vw, 40px);
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .gold-ticker {
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    padding: 14px 0;
  }

  .gold-ticker div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .metrics-grid,
  .news-row,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .company-timeline {
    padding: 8px 0 4px;
  }

  .company-timeline::before {
    display: none;
  }

  .timeline-track {
    padding-left: 0;
  }

  .timeline-item {
    width: 22%;
    padding-top: 34px;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    top: 0;
    left: 50%;
  }

  .timeline-item time {
    font-size: 14px;
  }

  .timeline-item h3 {
    display: none;
  }

  .timeline-item p {
    font-size: 10px;
  }

  .news-row {
    gap: 8px;
    align-items: start;
  }

  .news-thumb {
    min-height: 150px;
  }

  .map-controls {
    right: 14px;
    left: 14px;
    justify-content: center;
  }

  .map-panels {
    min-height: 420px;
    padding: 92px 18px 28px;
  }

  .map-panel {
    height: 300px;
  }

  .geology-track,
  .geology-track figure {
    height: 300px;
  }

  .operation-controls {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0 0 16px;
    overflow-x: auto;
    border-radius: 999px;
  }

  .operation-switch .operation-stage {
    padding: 0;
  }

  .operation-media-block {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  .operation-gallery-wrap {
    width: min(100%, 560px);
    padding: 0 36px;
  }

  .operation-video-grid {
    grid-template-columns: 1fr;
  }

  .map-controls button {
    flex: 1;
    padding-right: 12px;
    padding-left: 12px;
  }

  .media-tile:nth-child(1) {
    grid-column: span 1;
  }

  .media-grid.expanded {
    grid-template-columns: 1fr;
  }

  .media-grid.expanded .media-tile:nth-child(1),
  .media-grid.expanded .media-tile:nth-child(4),
  .media-grid.expanded .media-tile:nth-child(7) {
    grid-column: span 1;
  }

  .page-hero {
    padding: 110px 22px 52px;
  }

  .media-page-section,
  .article-page {
    padding-top: 108px;
  }

  .placeholder.map,
  .placeholder.vertical {
    min-height: 300px;
  }

  .operation-gallery {
    grid-auto-columns: 100%;
  }

  .site-footer {
    display: block;
    padding: 24px 22px 18px;
  }

  .site-footer span {
    display: block;
    margin-top: 8px;
  }
}

/* Codex final restore overrides */
.article-body, .article-body p { color: #1f2930; }
.back-link, .section-more-link, .back-home-link { text-decoration: underline; }

/* Media archive refinement */
.media-page-section {
  padding: 118px max(24px, 5vw) 72px;
}

.media-page-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.media-page-heading {
  margin-bottom: 28px;
}

.media-filter-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(177, 145, 86, 0.22);
  border-bottom: 1px solid rgba(177, 145, 86, 0.16);
}

.media-filter-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(116px, 1fr));
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(177, 145, 86, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(32, 43, 48, 0.06);
}

.media-filter-tab,
.media-subfilter-panel button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--charcoal);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.media-filter-tab {
  padding: 12px 28px;
  font-size: 17px;
}

.media-filter-tab.is-active {
  background: linear-gradient(180deg, #f7eed8, #e8d29a);
  color: #20292c;
  box-shadow: 0 8px 18px rgba(139, 100, 20, 0.14);
}

.media-subfilter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-subfilter-panel[hidden] {
  display: none;
}

.media-subfilter-panel button {
  padding: 10px 16px;
  border: 1px solid rgba(177, 145, 86, 0.22);
  background: rgba(255, 255, 255, 0.58);
  font-size: 15px;
}

.media-subfilter-panel button.is-active {
  border-color: rgba(185, 135, 8, 0.76);
  background: #fff7e1;
  color: #5f470f;
}

.media-page-inner .media-grid.expanded {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.media-page-inner .back-home-link {
  margin-top: 34px;
}

@media (max-width: 760px) {
  .media-page-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .media-filter-tabs {
    width: 100%;
  }

  .media-filter-tab {
    padding-right: 18px;
    padding-left: 18px;
  }

  .media-subfilter-panel {
    gap: 8px;
  }

  .media-subfilter-panel button {
    flex: 1 1 calc(50% - 8px);
    padding-right: 12px;
    padding-left: 12px;
  }
}
