.page-home {
  --hm-cut: 8deg;
  --hm-gap: clamp(14px, 2.4vw, 24px);
  --hm-block-pad: clamp(44px, 7vw, 92px);
  display: block;
  background: var(--indigo-950);
  color: var(--paper-50);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-home .hm-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.page-home .hm-h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.3vw, 38px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.page-home .hm-text {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(247, 244, 239, 0.76);
  max-width: 40ch;
}

.page-home .hm-block {
  padding: var(--hm-block-pad) 0;
}

.page-home .hm-block--paper {
  background: var(--paper-50);
  color: var(--ink-900);
}

.page-home .hm-block--paper .hm-text {
  color: #4b5063;
}

.page-home .hm-block--paper .wk-eyebrow {
  color: var(--ember-700);
}

.page-home .hm-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--cyan-400);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 224, 208, 0.4);
  padding-bottom: 3px;
}

.page-home .hm-link:hover {
  color: var(--gold-400);
  border-bottom-color: var(--gold-400);
}

/* ---------- hero ---------- */
.page-home .hm-hero {
  position: relative;
  padding: clamp(24px, 5vw, 56px) 0 clamp(28px, 4vw, 52px);
  background:
    radial-gradient(120% 90% at 90% 0%, rgba(255, 122, 26, 0.22) 0%, transparent 58%),
    radial-gradient(90% 80% at 0% 100%, rgba(47, 224, 208, 0.13) 0%, transparent 62%),
    var(--indigo-950);
}

.page-home .hm-hero__grid {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 44px);
}

.page-home .hm-context {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist-400);
  margin: 0 0 18px;
}

.page-home .hm-context a {
  color: var(--cyan-400);
  text-decoration: none;
}

.page-home .hm-context a:hover {
  color: var(--gold-400);
}

.page-home .hm-context__sep {
  color: rgba(154, 163, 190, 0.5);
}

.page-home .hm-title {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.page-home .hm-lead {
  margin: 20px 0 0;
  max-width: 42ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: rgba(247, 244, 239, 0.8);
}

.page-home .hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hm-collage {
  margin-top: clamp(26px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hm-gap);
}

.page-home .hm-collage__media {
  grid-column: 1 / -1;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-home .hm-collage__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-home .hm-collage__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--paper-50);
  background: rgba(8, 12, 36, 0.72);
  border: 1px solid var(--line-dark);
  padding: 5px 10px;
}

.page-home .hm-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  background: var(--indigo-800);
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--cyan-400);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .hm-tile--ember {
  border-top-color: var(--ember-500);
  background: linear-gradient(160deg, rgba(255, 122, 26, 0.2), var(--indigo-800) 62%);
}

.page-home .hm-tile__k {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist-400);
}

.page-home .hm-tile__v {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper-50);
}

.page-home .hm-tile__slash,
.page-home .hm-tile__plus {
  font-size: 0.5em;
  color: var(--gold-400);
  vertical-align: 0.35em;
  margin-left: 2px;
}

.page-home .hm-tile__n {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(247, 244, 239, 0.6);
}

/* ---------- rail ---------- */
.page-home .hm-rail {
  border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, var(--indigo-800), rgba(20, 27, 69, 0.5));
  padding: 18px 18px 16px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .hm-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.page-home .hm-rail__title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--paper-50);
}

.page-home .hm-rail__badge {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--indigo-950);
  background: var(--gold-400);
  padding: 3px 8px;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.page-home .hm-rail__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ember-500) transparent;
}

.page-home .hm-rail__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: var(--row-dense);
  padding: 6px 0;
  border-bottom: 1px solid var(--line-dark);
}

.page-home .hm-rail__item:last-child {
  border-bottom: 0;
}

.page-home .hm-rail__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mist-400);
  background: rgba(154, 163, 190, 0.12);
  border-left: 2px solid rgba(154, 163, 190, 0.4);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.page-home .hm-rail__item.is-current .hm-rail__no {
  color: var(--indigo-950);
  background: var(--ember-500);
  border-left-color: var(--gold-400);
}

.page-home .hm-rail__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-home .hm-rail__body b {
  font-size: 14px;
  font-weight: 700;
  color: var(--paper-50);
}

.page-home .hm-rail__body i {
  font-style: normal;
  font-size: 12px;
  color: var(--mist-400);
}

.page-home .hm-rail__item.is-current .hm-rail__body i {
  color: var(--cyan-400);
}

.page-home .hm-rail__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 224, 208, 0.4);
  padding-bottom: 2px;
}

.page-home .hm-rail__more:hover {
  color: var(--gold-400);
  border-bottom-color: var(--gold-400);
}

/* ---------- scoreboard ---------- */
.page-home .hm-scores {
  position: relative;
  isolation: isolate;
  padding: clamp(38px, 6vw, 76px) 0;
  background: var(--indigo-800);
  clip-path: polygon(0 22px, 100% 0, 100% calc(100% - 22px), 0 100%);
}

.page-home .hm-scores__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-home .hm-scores__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.55) contrast(1.05);
}

.page-home .hm-scores__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(8, 12, 36, 0.95) 0%, rgba(20, 27, 69, 0.82) 58%, rgba(199, 67, 10, 0.36) 100%);
}

.page-home .hm-scores__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home .hm-scores__head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-home .hm-scores__hint {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
}

.page-home .hm-scores__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--ember-500) rgba(154, 163, 190, 0.18);
}

.page-home .hm-scores__scroller::-webkit-scrollbar {
  height: 6px;
}

.page-home .hm-scores__scroller::-webkit-scrollbar-track {
  background: rgba(154, 163, 190, 0.16);
}

.page-home .hm-scores__scroller::-webkit-scrollbar-thumb {
  background: var(--ember-500);
}

.page-home .hm-scores__scroller:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 4px;
}

.page-home .hm-scores__track {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px;
  display: flex;
  gap: 14px;
  min-width: max-content;
}

.page-home .hm-match {
  flex: 0 0 auto;
  width: 268px;
  scroll-snap-align: start;
  padding: 16px 18px 12px;
  background: rgba(8, 12, 36, 0.78);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--ember-500);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.page-home .hm-match--live {
  border-left-color: var(--cyan-400);
  background: rgba(8, 12, 36, 0.9);
}

.page-home .hm-match__meta {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist-400);
}

.page-home .hm-match__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 5px 0;
}

.page-home .hm-match__team {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper-50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .hm-match__score {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}

.page-home .hm-match--live .hm-match__score {
  color: var(--cyan-400);
}

.page-home .hm-match__foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-dark);
}

.page-home .hm-match .wk-chip--live {
  color: var(--cyan-400);
  border-color: rgba(47, 224, 208, 0.5);
}

/* ---------- season arc ---------- */
.page-home .hm-season__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.page-home .hm-season__figure {
  display: flex;
  justify-content: center;
}

.page-home .hm-arc {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.page-home .hm-arc__track {
  stroke: rgba(154, 163, 190, 0.26);
  stroke-width: 10;
}

.page-home .hm-arc__fill {
  stroke: var(--ember-500);
  stroke-width: 10;
}

.page-home .hm-arc__node {
  fill: var(--gold-400);
  stroke: var(--indigo-950);
  stroke-width: 3;
}

.page-home .hm-arc__value {
  fill: var(--paper-50);
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
}

.page-home .hm-arc__unit {
  fill: var(--mist-400);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.page-home .hm-season__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.page-home .hm-season__facts li {
  background: var(--indigo-950);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .hm-season__facts span {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--ember-500);
}

.page-home .hm-season__facts b {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mist-400);
}

/* ---------- home / away ---------- */
.page-home .hm-ha__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.4vw, 40px);
  align-items: start;
}

.page-home .hm-ha__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-200);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .hm-ha__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 7;
  object-fit: cover;
}

.page-home .hm-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 18px;
}

.page-home .hm-tab {
  appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  cursor: pointer;
  color: #4b5063;
  background: transparent;
  border: 1px solid var(--line-200);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: background-color 180ms ease, color 180ms ease;
}

.page-home .hm-tab:hover {
  color: var(--ink-900);
  background: rgba(255, 122, 26, 0.14);
}

.page-home .hm-tab[aria-selected="true"] {
  color: var(--paper-50);
  background: var(--ember-700);
  border-color: var(--ember-700);
}

.page-home .hm-tab:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

.page-home .hm-ha__panel[tabindex]:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 4px;
}

.page-home .hm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .hm-table__cap {
  caption-side: top;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6b7086;
  padding-bottom: 10px;
}

.page-home .hm-table th,
.page-home .hm-table td {
  padding: 12px 8px;
  text-align: right;
  border-bottom: 1px solid var(--line-200);
  white-space: nowrap;
}

.page-home .hm-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6b7086;
  border-bottom: 1px solid var(--ink-900);
}

.page-home .hm-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 700;
  color: var(--ink-900);
}

.page-home .hm-table tbody td {
  color: #3b4053;
}

.page-home .hm-table .hm-up {
  color: var(--ember-700);
  font-weight: 700;
}

.page-home .hm-table .hm-down {
  color: #2b6d68;
  font-weight: 700;
}

.page-home .hm-ha__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7086;
  padding-left: 14px;
  border-left: 3px solid var(--ember-500);
}

/* ---------- paths ---------- */
.page-home .hm-paths__head {
  margin-bottom: clamp(22px, 3vw, 36px);
}

.page-home .hm-paths__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
}

.page-home .hm-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 20px;
  text-decoration: none;
  background: var(--indigo-800);
  border: 1px solid var(--line-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: transform 260ms var(--ease-shot), border-color 260ms ease, background-color 260ms ease;
}

.page-home .hm-path:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 224, 208, 0.55);
  background: linear-gradient(150deg, rgba(255, 122, 26, 0.16), var(--indigo-800) 58%);
}

.page-home .hm-path:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
}

.page-home .hm-path__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo-950);
  background: var(--gold-400);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.page-home .hm-path__title {
  margin: 4px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
  color: var(--paper-50);
  letter-spacing: -0.01em;
}

.page-home .hm-path__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(247, 244, 239, 0.7);
  max-width: 46ch;
}

.page-home .hm-path__go {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-400);
  display: inline-flex;
  gap: 6px;
}

.page-home .hm-path:hover .hm-path__go {
  color: var(--gold-400);
}

.page-home .hm-path--wide {
  background: linear-gradient(140deg, rgba(255, 122, 26, 0.24), var(--indigo-800) 62%);
  border-color: rgba(255, 122, 26, 0.4);
}

/* ---------- foundation ---------- */
.page-home .hm-foundation__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.6vw, 44px);
  align-items: center;
}

.page-home .hm-foundation__stats {
  margin: 28px 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-200);
  border: 1px solid var(--line-200);
}

.page-home .hm-foundation__stats > div {
  background: var(--paper-50);
  padding: 14px 14px 16px;
}

.page-home .hm-foundation__stats dt {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #6b7086;
}

.page-home .hm-foundation__stats dd {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1;
  color: var(--ember-700);
}

.page-home .hm-plus {
  font-size: 0.55em;
  vertical-align: 0.4em;
}

.page-home .hm-foundation__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-200);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .hm-foundation__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

/* ---------- help ---------- */
.page-home .hm-help {
  background: linear-gradient(180deg, var(--indigo-950), #0b1130);
}

.page-home .hm-help__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.page-home .hm-help__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.page-home .hm-help__channels li {
  background: var(--indigo-950);
  padding: 18px 20px;
  display: grid;
  gap: 6px;
}

.page-home .hm-help__k {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan-400);
}

.page-home .hm-help__v {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(247, 244, 239, 0.86);
  word-break: break-word;
}

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .page-home .hm-scores__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .page-home .hm-foundation__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .hm-collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .hm-collage__media {
    grid-column: span 2;
    grid-row: span 2;
  }

  .page-home .hm-collage__media img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
  }

  .page-home .hm-paths__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-home .hm-path {
    grid-column: span 2;
  }

  .page-home .hm-path--wide {
    grid-column: span 4;
  }

  .page-home .hm-paths__grid > .hm-path:nth-child(3) {
    transform: translateY(var(--offset-a));
  }

  .page-home .hm-paths__grid > .hm-path:nth-child(3):hover {
    transform: translateY(calc(var(--offset-a) - 6px));
  }
}

@media (min-width: 900px) {
  .page-home .hm-season__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .hm-ha__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .hm-foundation__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .hm-help__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }
}

@media (min-width: 1040px) {
  .page-home .hm-hero__grid {
    grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
    align-items: start;
  }

  .page-home .hm-rail {
    position: sticky;
    top: 92px;
  }

  .page-home .hm-rail__list {
    max-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-path,
  .page-home .hm-tab {
    transition-duration: 150ms;
  }

  .page-home .hm-path:hover,
  .page-home .hm-paths__grid > .hm-path:nth-child(3):hover {
    transform: none;
  }
}
