/* Maestro — home page layout (page-specific only; shared components live in styles.css) */

/* ---------- 1 · hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--text-on-dark);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media picture, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
/* deeper page-specific shade on top of the shared wash so type stays legible */
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 21, 38, 0.42) 0%, rgba(11, 21, 38, 0.18) 40%, rgba(11, 21, 38, 0.66) 100%),
    linear-gradient(90deg, rgba(11, 21, 38, 0.45) 0%, rgba(11, 21, 38, 0.08) 60%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding-block: clamp(120px, 16vh, 200px) clamp(96px, 14vh, 160px);
}
.hero-kicker { color: var(--grey); }
.hero-kicker::before {
  content: ""; display: inline-block; width: 34px; height: 1px;
  background: var(--red); vertical-align: middle; margin-right: 0.9rem;
}
.hero-title {
  font-size: var(--fs-hero);
  color: var(--white);
  max-width: 10ch;
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
}
.hero-sub {
  max-width: 46ch;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-on-dark);
}
.hero-ctas {
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero-ctas .link-arrow { color: var(--white); }
.hero-annotation {
  position: absolute; left: var(--gutter); bottom: 26px; z-index: 1;
  color: var(--text-on-dark-soft);
}
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 1;
  color: var(--text-on-dark-soft);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 44px; background: var(--rule-dark);
  animation: scroll-pulse 2.4s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (max-width: 820px) {
  .hero-scroll { display: none; }
  .hero-annotation { right: var(--gutter); bottom: 18px; }
}

/* ---------- 3 · intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.intro-statement {
  grid-column: 1 / 8;
  font-size: var(--fs-h2);
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.intro-side {
  grid-column: 9 / 13;
  margin-top: clamp(0.5rem, 4vw, 4rem); /* offset start — asymmetry */
}
.intro-side p { color: var(--text-soft); max-width: 38ch; }
.intro-side .link-arrow { margin-top: 2rem; }
@media (max-width: 900px) {
  .intro-statement { grid-column: 1 / -1; }
  .intro-side { grid-column: 1 / -1; margin-top: 0.5rem; }
}

/* ---------- 4 · stats band ---------- */
.stats-lead {
  max-width: 44ch;
  color: var(--text-on-dark);
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-dark);
}
.stats-grid .stat {
  min-width: 0;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 2rem) 0.5rem;
  border-left: 1px solid var(--rule-dark);
}
/* fit grouped figures ("14,500") on one line inside a 4-col cell — sized so the
   longest figure + unit ("2,000 L/min") keeps clear air before the column divider */
.stats-grid .stat-num { font-size: clamp(2.4rem, 3.9vw, 3.4rem); white-space: nowrap; }
.stats-grid .stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-grid .stat:nth-child(n+3) { border-top: 1px solid var(--rule-dark); margin-top: 1.5rem; }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat { border-left: 0; padding-left: 0; }
  .stats-grid .stat:nth-child(n+2) { border-top: 1px solid var(--rule-dark); margin-top: 1.5rem; }
}

/* ---------- 5 · operations preview ---------- */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.ops-block--a { grid-column: 1 / 8; }
.ops-block--b { grid-column: 9 / 13; margin-top: clamp(3rem, 8vw, 8rem); } /* offset — asymmetry */
.ops-block .frame { aspect-ratio: 4 / 3; }
.ops-block--a .frame { aspect-ratio: 3 / 2; }
.ops-tag {
  margin-top: 1.5rem;
  color: var(--red);
  display: flex; align-items: center; gap: 0.7rem;
}
.ops-tag::before { content: ""; width: 8px; height: 8px; background: currentColor; flex: none; }
.ops-title {
  font-size: var(--fs-h3);
  margin-top: 0.9rem;
  color: var(--navy);
}
.ops-line {
  margin-top: 0.8rem;
  color: var(--text-soft);
  max-width: 44ch;
}
.ops-link {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) {
  .ops-block--a, .ops-block--b { grid-column: 1 / -1; margin-top: 0; }
  .ops-block--b { margin-top: 1rem; }
}

/* ---------- 6 · mining focus ---------- */
.mining-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.mining-text { grid-column: 1 / 6; }
.mining-title { font-size: var(--fs-h2); color: var(--navy); max-width: 12ch; }
.mining-text p { margin-top: clamp(1.25rem, 2.5vw, 2rem); color: var(--text-soft); max-width: 48ch; }
.mining-photo { grid-column: 6 / 13; aspect-ratio: 3 / 2; }
@media (max-width: 900px) {
  .mining-text, .mining-photo { grid-column: 1 / -1; }
  .mining-photo { margin-top: 1rem; }
}

/* ---------- 7 · CTA band ---------- */
.home-cta-line {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 46ch;
  color: var(--text-on-dark-soft);
}
.home-cta-mail { margin-top: 1.4rem; }
.home-cta-mail a { color: var(--text-on-dark-soft); border-bottom: 1px solid var(--rule-dark); padding-bottom: 3px; transition: color 0.25s ease, border-color 0.25s ease; }
.home-cta-mail a:hover { color: var(--white); border-color: var(--red); }
