* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0e141b; color: #f0f0f0; font-family: 'Lato', Arial, sans-serif; min-height: 100vh; }
a { color: inherit; }

.hm-page a { text-decoration: none; }
.hm-page button { font-family: inherit; }

.hm-page {
  width: min(clamp(1564px, 81.5vw, 2000px), 100% - 3rem);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.hm-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 2.5rem; }
.hm-about { display: flex; align-items: center; gap: 1.5rem; }
.hm-mascot { flex-shrink: 0; width: 130px; height: auto; }
.hm-name { margin-bottom: 0.6rem; font-weight: 700; font-size: 2.5rem; line-height: 1.1; color: #cfd3eb; }
.hm-blurb { font-size: 1.08rem; line-height: 1.6; color: #c4c8da; }

.hm-links { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #222b38; }
.hm-link { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 1rem; }
.hm-link-art { grid-row: 1 / 3; width: 88px; height: 88px; border: 1px solid #222b38; border-radius: 12px; background-repeat: no-repeat; transition: border-color 0.2s; }
.hm-link:hover .hm-link-art { border-color: #7fa8d9; }
.hm-link-name { align-self: end; font-weight: 700; font-size: 1.15rem; color: #cfd3eb; }
.hm-link-text { align-self: start; margin-top: 0.25rem; font-size: 0.9rem; line-height: 1.5; color: #c4c8da; }

.hm-board { display: flex; flex-direction: column; min-width: 0; }
.hm-bulletin { position: relative; flex: 1; border: 1px solid #222b38; border-radius: 12px; overflow: hidden; background: #101114; }
.hm-board-track { position: absolute; inset: 0; }
.hm-slide { position: absolute; inset: 0; display: block; overflow: hidden; opacity: 0; transition: opacity 1.4s ease; }
.hm-slide.active { opacity: 1; z-index: 1; }
.hm-slide-bg { position: absolute; left: 0; top: 0; background-repeat: no-repeat; transform-origin: 0 0; will-change: transform; }
.hm-slide-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem 1.5rem 1.25rem; background: linear-gradient(to top, rgba(0,0,0,0.82), transparent); }
.hm-slide-cap { font-weight: 700; font-size: 1.55rem; line-height: 1.25; color: #fff; }
.hm-slide-credit { margin-top: 0.25rem; font-size: 0.88rem; color: #fff; }
.hm-board-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8d93a8; }
.hm-board-empty[hidden] { display: none; }

.hm-section { margin-top: 3rem; min-width: 0; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 0.65rem; margin-bottom: 1.1rem; border-bottom: 1px solid #222b38; }
.hm-head h2 { font-weight: 700; font-size: 1.5rem; color: #cfd3eb; }
.hm-head a { font-size: 0.9rem; color: #7fa8d9; white-space: nowrap; }
.hm-page .hm-head a:hover { text-decoration: underline; }

.hm-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.hm-art-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hm-story-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.hm-pic { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #101114; transition: filter 0.2s; }
a:hover > .hm-pic { filter: brightness(1.08); }
.hm-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; color: #e6e8f2; }
.hm-sub { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.82rem; color: #8d93a8; }
.hm-card { display: block; }
.hm-by { transition: color 0.2s; }
.hm-page .hm-by:hover { color: #7fa8d9; text-decoration: underline; }

.hm-art { min-width: 0; }
.hm-art .hm-pic { border-radius: 10px; }
.hm-art .hm-title { margin-top: 0.45rem; font-size: 0.95rem; }

.hm-char { min-width: 0; text-align: center; }
.hm-char .hm-pic { border: 1px solid #222b38; border-radius: 16px; transition: border-color 0.2s, filter 0.2s; }
.hm-char .hm-card:hover .hm-pic { border-color: #7fa8d9; }
.hm-char .hm-title { margin-top: 0.6rem; font-weight: 700; font-size: 1.12rem; color: #cfe0f5; }
.hm-char .hm-sub { margin-top: 0.1rem; }

.hm-story { min-width: 0; }
.hm-story .hm-pic { aspect-ratio: 2 / 3; border-radius: 10px; }
.hm-story .hm-title { margin-top: 0.45rem; font-size: 0.98rem; }

.hm-news-card { display: grid; grid-template-columns: minmax(0, 23%) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.hm-news-card .hm-pic { aspect-ratio: 1 / 1; border-radius: 12px; }
.hm-news-body { display: flex; flex-direction: column; min-width: 0; }
.hm-news-title { font-weight: 700; font-size: 1.8rem; line-height: 1.25; color: #cfd3eb; transition: color 0.2s; }
.hm-news-card:hover .hm-news-title { color: #fff; }
.hm-news-body .hm-sub { margin-top: 0.2rem; }
.hm-news-teaser { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; max-width: 90ch; margin-top: 1rem; font-size: 1.1rem; line-height: 1.65; white-space: pre-line; color: #c4c8da; }
.hm-news-more { margin-top: 1.1rem; font-weight: 700; font-size: 1.2rem; color: #7fa8d9; }
.hm-news-card:hover .hm-news-more { text-decoration: underline; }

.hm-people-wrap { position: relative; padding: 0 2.75rem; }
.hm-people { display: flex; overflow-x: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.hm-person { display: flex; flex: 0 0 calc(100% / 6); flex-direction: column; align-items: center; min-width: 0; padding: 0.75rem 0.75rem 0.5rem; text-align: center; scroll-snap-align: start; cursor: pointer; transition: background-color 0.2s; }
.hm-person + .hm-person { border-left: 1px solid #222b38; }
.hm-person:hover { background-color: rgba(255,255,255,0.04); }
.hm-person > a { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hm-face { width: 96px; height: 96px; margin-bottom: 0.6rem; border-radius: 50%; object-fit: cover; background: #101114; }
.hm-face--letter { display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, #7fa8d9, #d97a72); color: #fff; font-weight: 700; font-size: 2.2rem; }
.hm-person .hm-title { max-width: 100%; font-size: 1.02rem; }
.hm-person .hm-sub { max-width: 100%; }
.hm-counts { display: flex; justify-content: center; gap: 1.1rem; margin: 0.7rem 0 0.8rem; }
.hm-counts span { display: block; font-size: 0.75rem; color: #8d93a8; }
.hm-counts strong { display: block; font-size: 1rem; color: #e6e8f2; }
.hm-follow { padding: 0.4rem 1.1rem; border: 1px solid #7fa8d9; border-radius: 999px; background: none; color: #7fa8d9; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.hm-follow:hover { background: #7fa8d9; color: #0e141b; }
.hm-follow--following { border-color: #222b38; color: #8d93a8; }
.hm-arrow { position: absolute; top: 50%; transform: translateY(-50%); padding: 0 0.3rem; border: none; background: none; color: #fff; font-size: 3.2rem; line-height: 1; cursor: pointer; transition: color 0.2s; }
.hm-arrow:hover { color: #7fa8d9; }
.hm-arrow--prev { left: 0; }
.hm-arrow--next { right: 0; }

.hm-empty { color: #8d93a8; }

@media (max-width: 1100px) {
  .hm-intro { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .hm-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-link { grid-template-columns: 72px minmax(0, 1fr); align-content: start; }
  .hm-link-art { width: 72px; height: 72px; }
  .hm-bulletin { flex: none; aspect-ratio: 16 / 9; }
  .hm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-art-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-art-grid > :nth-child(n+13) { display: none; }
  .hm-story-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hm-person { flex-basis: calc(100% / 3); }
}

@media (max-width: 720px) {
  .hm-page { width: auto; margin: 0; padding: 1.25rem 0.9rem 1rem; }
  .hm-about { gap: 1rem; }
  .hm-mascot { width: 92px; }
  .hm-name { font-size: 1.7rem; }
  .hm-blurb { font-size: 0.95rem; }
  .hm-links { grid-template-columns: minmax(0, 1fr); }
  .hm-bulletin { margin: 0 -0.9rem; aspect-ratio: 4 / 3; border-width: 1px 0; border-radius: 0; }
  .hm-section { margin-top: 2rem; }
  .hm-news-card { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 0.85rem; }
  .hm-news-title { font-size: 1.05rem; }
  .hm-news-teaser { -webkit-line-clamp: 4; margin-top: 0.4rem; font-size: 0.88rem; line-height: 1.5; }
  .hm-news-more { margin-top: 0.5rem; font-size: 1.05rem; }
  .hm-head h2 { font-size: 1.25rem; }
  .hm-grid { display: flex; gap: 0.75rem; margin: 0 -0.9rem; padding: 0 0.9rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 0.9rem; scrollbar-width: none; }
  .hm-grid > * { flex: 0 0 40%; scroll-snap-align: start; }
  .hm-art-grid > :nth-child(n+13) { display: block; }
  .hm-slide-text { padding: 2.5rem 0.9rem 0.8rem; }
  .hm-slide-cap { font-size: 1.2rem; }
  .hm-people-wrap { margin: 0 -0.5rem; padding: 0 1.75rem; }
  .hm-person { flex-basis: 50%; padding: 0.75rem 0.4rem 0.5rem; }
  .hm-face { width: 76px; height: 76px; }
  .hm-counts { gap: 0.65rem; }
  .hm-counts span { font-size: 0.68rem; }
  .hm-arrow { font-size: 2.4rem; padding: 0 0.15rem; }
}
