/* About polish layer: richer sitemap cards and profile-page finishing. */
.hm-about-hero__links {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.hm-about-map {
  counter-reset: about-map;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hm-about-map-card {
  counter-increment: about-map;
  position: relative;
  display: flex;
  min-height: 220px;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(230, 111, 91, 0.12), rgba(230, 111, 91, 0) 42%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hm-about-map-card::before {
  content: "0" counter(about-map);
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--text);
  font-family: var(--f-heading);
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 800;
  line-height: 0.85;
  opacity: 0.08;
}

.hm-about-map-card__eyebrow {
  position: absolute;
  top: 24px;
  left: 24px;
  max-width: calc(100% - 104px);
  color: var(--accent);
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hm-about-map-card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 92%;
  color: inherit;
  font-family: var(--f-heading-jp);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

.hm-about-map-card p {
  position: relative;
  z-index: 1;
  max-width: 32em;
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.76;
}

.hm-about-map-card__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 800;
}

.hm-about-map-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hm-about-map-card--primary {
  grid-row: span 2;
  min-height: 454px;
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.hm-about-map-card--primary::before {
  color: var(--bg);
  opacity: 0.14;
}

.hm-about-map-card--primary .hm-about-map-card__eyebrow,
.hm-about-map-card--primary p {
  color: rgba(255, 255, 255, 0.76);
}

.hm-about-map-card--primary strong {
  max-width: 10em;
  font-size: clamp(38px, 5vw, 58px);
}

.hm-about-map-card--primary:hover {
  background: #2a2c31;
  border-color: #2a2c31;
}

@media (min-width: 1101px) {
  .hm-about-map-card:last-child {
    grid-column: 1 / -1;
    min-height: 172px;
  }
}

.hm-about-profile__body .hm-about-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hm-about-profile__links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.hm-about-profile__links a:hover {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 1100px) {
  .hm-about-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-about-map-card--primary {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .hm-about-map {
    grid-template-columns: 1fr;
  }

  .hm-about-map-card,
  .hm-about-map-card--primary {
    min-height: 204px;
  }

  .hm-about-map-card strong,
  .hm-about-map-card--primary strong {
    font-size: clamp(26px, 9vw, 36px);
  }

  .hm-about-map-card__eyebrow {
    max-width: calc(100% - 86px);
  }
}
