:root {
  --navy-900: #0b1a2e;
  --navy-700: #16304f;
  --white: #ffffff;
  --muted: #d5dde8;
  --accent: #f2b705;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the inspector and the machine in frame as the viewport narrows. */
  object-position: 30% 40%;
  z-index: -2;
}

/* Darken the left side (where the text sits) while letting the sunset and
   the excavator read on the right. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 26, 46, 0.9) 0%, rgba(11, 26, 46, 0.65) 42%, rgba(11, 26, 46, 0) 72%),
    linear-gradient(0deg, rgba(11, 26, 46, 0.55) 0%, rgba(11, 26, 46, 0) 30%);
}

.hero__content {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: var(--space-5) clamp(1rem, 5vw, 4rem);
}

.hero__content > * { max-width: 36rem; }

.hero__eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lead {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(11, 26, 46, 0.55);
  font-weight: 600;
}

.hero__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 0.6rem rgba(242, 183, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 183, 5, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__dot { animation: none; }
}

/* On narrow screens the text covers most of the image, so darken evenly. */
@media (max-width: 40rem) {
  .hero { align-items: flex-end; }
  .hero__img { object-position: 22% 50%; }
  .hero__scrim {
    background: linear-gradient(0deg, rgba(11, 26, 46, 0.95) 0%, rgba(11, 26, 46, 0.75) 55%, rgba(11, 26, 46, 0.35) 100%);
  }
}

.foot {
  padding: var(--space-3) clamp(1rem, 5vw, 4rem);
  background: var(--navy-900);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.foot p { margin: 0; }
