:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --line: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html,
body {
  margin: 0;
  padding: 0;
  background: white;
  /* fallback */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero-body {
  /* height: 100%; */
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: var(--text);
}

/* hero wrapper */
.hero {
  position: relative;
  min-height: 62vh;
  height: 62vh;

  display: flex;
  align-items: center;
  justify-content: center;

  isolation: isolate;

  /* background-image: url('../images/saving-lives-bg.webp'); */
  background-color: #7c7474;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.65) 35%,
      rgba(0, 0, 0, 0.45) 65%,
      rgba(0, 0, 0, 0.20) 100%);

  z-index: -1;
}


.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding: clamp(16px, 2vw, 24px);
}

.grid {
  display: flex;

  justify-content: center;
  gap: 10%;
  align-items: flex-start;
}

.hero-header {
  margin: 0 0 16px;
  padding-top: 5px;
  font-family: "Noto Sans", sans-serif;
  ;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
}

.rule {
  width: 70px;
  height: 3px;
  background: var(--line);
  box-shadow: var(--shadow);
  margin: 10px 0 0;
}

.copy {
  max-width: 40%;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.copy p {
  margin: 0 0 14px;
  color: #D9EAF5;
  font-size: 17px;
}

/* mobile stacking */
@media (max-width: 820px) {
  .grid {
    flex-direction: column;
    gap: 10%
  }

  .copy {
    max-width: 65ch;
  }

  .hero {
    min-height: 88vh;
  }
}

.highlight-text {
  color: #ffffff;
  font-weight: 500px;
}

@media (max-width: 1020px) {
  .hero-header {
    text-align: left;
  }

  .grid {
    padding: 30px;
    gap: 10%;
    display: flex;
    justify-content: left;
  }

  .copy {
    max-width: 65ch;
  }

  .hero {
    min-height: 88vh;
  }
}

.highlight-text {
  color: #ffffff;
  font-weight: 500px;
}

.hero {

  animation: fadeDown 1.2s ease-out forwards;
  animation-delay: 0.3s;
  /* optional delay for stagger */
}


/* respect reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .rule {
    animation: grow 1.4s ease-out both;
  }

  @keyframes grow {
    from {
      transform: scaleX(0);
      transform-origin: left;
    }

    to {
      transform: scaleX(1);
    }
  }
}

@keyframes fadeDown {
  0% {
    transform: translateY(-40px);
  }

  100% {
    transform: translateY(0);
  }
}