:root {
  --bg: #060606;
  --bg-soft: #111111;
  --panel: rgba(18, 18, 18, 0.82);
  --panel-strong: #131313;
  --text: #f6f2e8;
  --muted: #b6b0a4;
  --line: rgba(212, 170, 82, 0.22);
  --gold-1: #f8e7b0;
  --gold-2: #d6ad58;
  --gold-3: #8f6420;
  --glow: rgba(214, 173, 88, 0.35);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 173, 88, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(214, 173, 88, 0.12), transparent 24%),
    linear-gradient(180deg, #0b0b0b 0%, #050505 100%);
  min-height: 100vh;
}

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

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

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

.topbar {
  width: var(--container);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6, 6, 6, 0.88), rgba(6, 6, 6, 0.36));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-text-only .brand-copy strong {
  font-size: 1.05rem;
}

.brand-text-only .brand-copy span {
  letter-spacing: 0.28em;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(214, 173, 88, 0.18), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(214, 173, 88, 0.28);
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.brand-copy span {
  font-family: Georgia, "Times New Roman", serif;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.brand-copy span {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.72);
}

.nav a {
  color: #d8d0bf;
  font-size: 0.95rem;
  transition: color 420ms ease, transform 420ms ease;
}

.nav a.active {
  color: var(--gold-1);
}

.nav a:hover {
  color: var(--gold-1);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.85);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-2);
  margin: 0 auto 6px;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

.section {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 108px);
  padding: 72px 0 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 38px;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.88) 0%, rgba(4, 4, 4, 0.68) 42%, rgba(4, 4, 4, 0.8) 100%),
    url("assets/images/hero-mining.jpg") center/cover no-repeat;
  border: 1px solid rgba(214, 173, 88, 0.18);
  box-shadow: var(--shadow);
  z-index: 0;
}

.hero-water::before {
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.88) 0%, rgba(4, 4, 4, 0.68) 42%, rgba(4, 4, 4, 0.8) 100%),
    url("assets/images/water-hero.jpg") center/cover no-repeat;
}

.hero-dairy::before {
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.88) 0%, rgba(4, 4, 4, 0.68) 42%, rgba(4, 4, 4, 0.8) 100%),
    url("assets/images/dairy-hero.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 4% 6% auto;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 173, 88, 0.7), transparent);
  z-index: 0;
}

.hero-copy,
.hero-visual,
.panel,
.service-card,
.operations-media,
.operations-copy,
.stat-card,
.timeline-item,
.contact-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.77rem;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.1;
  max-width: none;
}

h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  line-height: 1.16;
}

h3 {
  font-size: 1.4rem;
}

.gold-text {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2) 42%, #fff3cd 60%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(214, 173, 88, 0.15);
}

.lead,
.panel p,
.service-card p,
.operations-copy p,
.timeline-item p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.lead {
  max-width: 58ch;
  margin: 24px 0 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 420ms ease, box-shadow 420ms ease, border-color 420ms ease;
  position: relative;
  overflow: hidden;
}

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

.button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 70%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 650ms ease;
}

.button:hover::after {
  left: 150%;
}

.button.primary {
  color: #101010;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 58%, #b67f25);
  box-shadow: 0 18px 40px rgba(214, 173, 88, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-card,
.panel,
.service-card,
.stat-card,
.timeline-item,
.contact-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.glass {
  padding: 26px;
}

.hero-card {
  display: grid;
  gap: 16px;
  transition: transform 480ms ease, border-color 480ms ease, box-shadow 480ms ease;
}

.hero-card:hover,
.panel:hover,
.service-card:hover,
.stat-card:hover,
.timeline-item:hover,
.photo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 173, 88, 0.45);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
}

.metric {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(214, 173, 88, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(214, 173, 88, 0.16);
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #c9b082;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 1.15rem;
}

.hero-backdrop {
  position: absolute;
  inset: 10% -5% auto auto;
  width: 44vw;
  height: 44vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(214, 173, 88, 0.26), rgba(214, 173, 88, 0.03) 34%, transparent 62%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 68%);
  filter: blur(18px);
  animation: floatPulse 7s ease-in-out infinite;
}

.about-grid,
.operations,
.contact {
  padding: 36px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 20px;
}

.panel {
  padding: 30px;
}

.panel-large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services,
.process {
  padding: 36px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 14ch;
}

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

.service-card {
  padding: 28px;
  min-height: 270px;
  overflow: hidden;
  transition: transform 480ms ease, border-color 480ms ease, box-shadow 480ms ease, background 480ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -55px auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(214, 173, 88, 0.18), transparent 70%);
}

.service-card:hover {
  background: linear-gradient(180deg, rgba(214, 173, 88, 0.09), rgba(255, 255, 255, 0.03));
}

.card-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 0.24em;
}

.operations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.photo-stack {
  position: relative;
  min-height: 650px;
}

.photo-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 520ms ease, border-color 520ms ease, box-shadow 520ms ease;
}

.photo-card img {
  height: 100%;
  object-fit: cover;
}

.photo-one {
  inset: 0 120px 220px 0;
}

.photo-two {
  inset: 125px 0 225px 190px;
  height: 300px;
}

.photo-three {
  inset: 340px 70px 0 40px;
  height: 260px;
}

.feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #e3dccf;
}

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

.stat-card {
  padding: 34px 28px;
}

.stat-number {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--gold-2);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--muted);
}

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

.timeline-item {
  padding: 28px;
  transition: transform 480ms ease, border-color 480ms ease, box-shadow 480ms ease;
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold-2);
  font-weight: 800;
  letter-spacing: 0.24em;
}

.contact {
  padding-bottom: 70px;
}

.contact-panel {
  padding: 40px;
  text-align: center;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -80px -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 173, 88, 0.28), transparent 68%);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.03);
  }
}

@keyframes slowDrift {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.photo-one,
.photo-three {
  animation: slowDrift 7s ease-in-out infinite;
}

.photo-two {
  animation: slowDrift 8s ease-in-out infinite reverse;
}

@media (max-width: 1080px) {
  .hero,
  .operations,
  .about-grid,
  .service-grid,
  .stats,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-backdrop {
    width: 90vw;
    height: 90vw;
    inset: 8% auto auto 10%;
  }

  .photo-stack {
    min-height: 680px;
  }

  .photo-one {
    inset: 0 80px 260px 0;
  }

  .photo-two {
    inset: 180px 0 240px 120px;
  }

  .photo-three {
    inset: 390px 60px 0 20px;
    height: 230px;
  }

  .panel-large {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 16px 0;
    align-items: start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-grid;
    place-content: center;
  }

  .nav {
    display: none;
    width: 100%;
    border-radius: 24px;
    padding: 18px;
    flex-direction: column;
    align-items: start;
    gap: 14px;
  }

  .nav.is-open {
    display: flex;
  }

  .hero,
  .about-grid,
  .services,
  .operations,
  .process,
  .contact {
    padding-top: 36px;
  }

  h1 {
    max-width: none;
  }

  .section-heading {
    display: block;
  }

  .photo-stack {
    min-height: 650px;
  }

  .photo-one {
    inset: 0 30px 330px 0;
  }

  .photo-two {
    inset: 175px 0 225px 85px;
    height: 210px;
  }

  .photo-three {
    inset: 380px 20px 0 20px;
    height: 210px;
  }

  .button {
    width: 100%;
  }

  .contact-panel,
  .panel,
  .service-card,
  .timeline-item,
  .stat-card {
    padding: 24px;
  }
}
