:root {
  --blue: #1763a3;
  --navy: #124f86;
  --sky: #edf6fc;
}

.titlebar img {
  width: min(300px, 36vw);
  height: 88px;
  object-fit: cover;
  object-position: center 59%;
}

.titlebar {
  overflow: hidden;
}

.titlebar > div {
  min-width: 0;
  flex: 1;
}

.titlebar h1 {
  font-size: clamp(20px, 2.5vw, 34px);
  overflow-wrap: anywhere;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(14, 72, 121, .82), rgba(23, 99, 163, .2) 68%, transparent);
}

.ondemand {
  padding-block: 92px;
  background: #edf6fc;
}

.ondemand-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}

.ondemand h2 {
  margin: 8px 0 22px;
  color: var(--navy);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
}

.ondemand-grid > div > p:last-child {
  color: var(--muted);
  max-width: 680px;
}

.ondemand-card {
  padding: 36px;
  border-top: 6px solid var(--blue);
  background: white;
  box-shadow: 0 24px 50px rgba(18, 79, 134, .12);
}

.ondemand-card > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.ondemand-card h3 {
  margin: 18px 0 10px;
  color: var(--navy);
  font-size: 30px;
}

.ondemand-card p {
  color: var(--muted);
}

.ondemand-card .button {
  margin-top: 14px;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 780px) {
  .ondemand-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .titlebar img {
    width: min(220px, 42vw);
    height: 66px;
  }

  .titlebar {
    gap: 10px;
  }

  .titlebar h1 {
    font-size: clamp(16px, 3.7vw, 22px);
  }
}

@media (max-width: 520px) {
  .titlebar img {
    width: 190px;
    max-width: 52vw;
    height: 58px;
  }

  .titlebar h1 {
    font-size: 15px;
    line-height: 1.15;
  }

  .ondemand {
    padding-block: 64px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(14, 72, 121, .88), rgba(23, 99, 163, .18));
  }
}
