* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #fff;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #212121;
  font-family: Lato, Roboto, Arial, sans-serif;
  background: #fff;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1 1 auto;
  min-height: 420px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)), url("assets/hero-thcas-aa.png");
  background-size: cover;
  background-position: center center;
  display: grid;
  place-items: center;
}

.hero-overlay {
  width: min(1120px, calc(100% - 48px));
  text-align: center;
}

h1 {
  margin: 0;
  color: #ffffff;
  font-family: Roboto, Arial, sans-serif;
  font-size: clamp(44px, 7vw, 90px);
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.links {
  flex: 0 0 auto;
  padding: 12px 24px 4px;
}

.profile-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(108px, 1fr));
  gap: 18px;
  align-items: center;
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 108px;
  padding: 6px;
  border-radius: 4px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.profile-card:hover,
.profile-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.profile-card img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.site-footer {
  flex: 0 0 auto;
  padding: 2px 24px 6px;
  text-align: center;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
}

.site-footer a {
  color: #000;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .profile-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 300px;
  }

  .links {
    padding: 12px 18px 6px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    height: 104px;
  }

  .profile-card img {
    width: 180px;
    height: 82px;
  }
}
