.page-home {
  --hm-line: 1px solid var(--steel);
  --hm-card-bg: linear-gradient(160deg, rgba(11, 34, 57, 0.96), rgba(6, 20, 38, 0.96));
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .hm-inline-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 214, 232, 0.45);
}

.page-home .hm-inline-link:hover,
.page-home .hm-inline-link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

/* ---------- hero ---------- */
.page-home .hm-hero {
  position: relative;
  padding-top: clamp(22px, 5vw, 56px);
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(30, 90, 122, 0.4) 0%, transparent 62%),
    linear-gradient(158deg, #061426 0%, #08192b 46%, #0b2239 100%);
  border-bottom: var(--hair);
  overflow: hidden;
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(30, 90, 122, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 90, 122, 0.3) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 15%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 15%, transparent 92%);
  pointer-events: none;
}

.page-home .hm-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  padding-bottom: clamp(22px, 4vw, 44px);
  align-items: center;
}

.page-home .hm-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .hm-eyebrow .mono {
  padding: 3px 8px;
  border: 1px solid rgba(55, 214, 232, 0.5);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.page-home .hm-hero h1 {
  margin: 0.4em 0 0.45em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 8vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hm-hl {
  display: inline-block;
  padding-inline: 0.06em;
  background: linear-gradient(180deg, transparent 64%, rgba(255, 106, 42, 0.55) 64%);
}

.page-home .hm-lede {
  max-width: 54ch;
  color: var(--text-soft);
  font-size: clamp(15px, 2.1vw, 17.5px);
  line-height: 1.8;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.page-home .hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .hm-cert-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--orange);
  background: rgba(55, 214, 232, 0.07);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.page-home .hm-hero__media {
  position: relative;
  margin: 0;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  background: var(--blueprint);
  border: 1px solid rgba(55, 214, 232, 0.25);
}

.page-home .hm-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.page-home .hm-hero__stamp {
  position: absolute;
  left: 8%;
  bottom: 12%;
  padding: 5px 10px;
  background: var(--orange);
  color: #061426;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.page-home .hm-hero__facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  background: var(--steel);
  border-top: var(--hair);
}

.page-home .hm-hero__facts li {
  padding: 14px 16px;
  background: rgba(9, 27, 46, 0.94);
  color: var(--mist);
  font-size: 12.5px;
  line-height: 1.5;
}

.page-home .hm-hero__facts .mono {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-num);
  font-size: clamp(22px, 4.4vw, 30px);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
}

/* ---------- chapter index ---------- */
.page-home .hm-index {
  background: rgba(6, 20, 38, 0.94);
  border-bottom: var(--hair);
}

.page-home .hm-index__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .hm-index__label {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .hm-index ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--steel);
  color: var(--text-soft);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.page-home .hm-index a .mono {
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .hm-index a:hover,
.page-home .hm-index a:focus-visible {
  color: var(--paper);
  border-color: var(--cyan);
  background: rgba(55, 214, 232, 0.09);
}

/* ---------- section base ---------- */
.page-home .hm-sec {
  padding-block: clamp(36px, 6.5vw, 80px);
  scroll-margin-top: 16px;
}

.page-home .hm-sec .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--steel);
  margin-bottom: clamp(18px, 3vw, 30px);
}

.page-home .section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 4.6vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .section-head__meta {
  margin: 0;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.page-home .hm-sec__intro {
  max-width: 62ch;
  margin: 0 0 clamp(18px, 3vw, 30px);
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.8;
}

/* ---------- switch steps ---------- */
.page-home .hm-switch {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

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

.page-home .hm-step {
  display: grid;
  gap: 8px;
  padding: clamp(16px, 2.6vw, 24px);
  background: var(--hm-card-bg);
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.page-home .hm-step:hover {
  border-left-color: var(--cyan);
}

.page-home .hm-step__num {
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--orange);
}

.page-home .hm-step h3 {
  margin: 0;
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 800;
  color: var(--paper);
}

.page-home .hm-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.78;
}

.page-home .hm-switch__aside {
  display: grid;
  align-content: start;
  gap: 12px;
}

.page-home .hm-switch__media {
  margin: 0;
}

.page-home .hm-switch__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: var(--hm-line);
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}

.page-home .hm-switch__media figcaption {
  margin-top: 12px;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.7;
}

.page-home .hm-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-devices li {
  padding: 6px 10px;
  border: 1px solid var(--steel);
  background: rgba(55, 214, 232, 0.06);
  color: var(--text-soft);
  font-size: 12.5px;
}

/* ---------- league directory ---------- */
.page-home .hm-league-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.page-home .hm-league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2.6vw, 22px);
  border: var(--hm-line);
  background: var(--hm-card-bg);
  box-shadow: 6px 6px 0 rgba(30, 90, 122, 0.14);
}

.page-home .hm-league-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.page-home .hm-league-card--live {
  background: linear-gradient(160deg, rgba(255, 106, 42, 0.16), rgba(6, 20, 38, 0.96) 62%);
}

.page-home .hm-league-card--live::before {
  border-top-color: var(--orange);
  border-left-color: var(--orange);
}

.page-home .hm-league-card__no {
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .hm-league-card h3 {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--paper);
}

.page-home .hm-league-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-league-card li {
  padding: 4px 8px;
  border: 1px solid var(--steel);
  color: var(--text-soft);
  font-size: 12.5px;
}

.page-home .hm-league-card p {
  margin: 0;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.72;
}

.page-home .hm-league-card a {
  margin-top: auto;
  align-self: flex-start;
  color: var(--cyan);
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 214, 232, 0.45);
}

.page-home .hm-league-card a:hover,
.page-home .hm-league-card a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

/* ---------- membership ---------- */
.page-home .hm-member {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.page-home .hm-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--steel);
  border: var(--hm-line);
}

.page-home .hm-tier {
  padding: clamp(14px, 2.2vw, 20px);
  background: rgba(10, 30, 51, 0.96);
}

.page-home .hm-tier--peak {
  background: linear-gradient(160deg, rgba(255, 106, 42, 0.2), rgba(10, 30, 51, 0.96) 62%);
}

.page-home .hm-tier__index {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .hm-tier h3 {
  margin: 0 0 6px;
  font-size: clamp(16px, 2.3vw, 19px);
  font-weight: 800;
  color: var(--paper);
}

.page-home .hm-tier p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.page-home .hm-member__media {
  margin: 0;
  border: var(--hm-line);
  background: var(--blueprint);
}

.page-home .hm-member__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .hm-member__cta {
  margin: 18px 0 0;
}

.page-home .hm-link-more {
  display: inline-block;
  color: var(--orange);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 42, 0.55);
}

.page-home .hm-link-more:hover,
.page-home .hm-link-more:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--cyan);
}

/* ---------- entries ---------- */
.page-home .hm-entries {
  display: grid;
  gap: 14px;
}

.page-home .hm-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.8vw, 26px);
  border: var(--hm-line);
  border-left: 3px solid var(--orange);
  background: var(--hm-card-bg);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .hm-entry:hover,
.page-home .hm-entry:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
  border-left-color: var(--orange);
}

.page-home .hm-entry h3 {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--paper);
}

.page-home .hm-entry p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .hm-entry__go {
  margin-top: auto;
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

/* ---------- trust ---------- */
.page-home .hm-trust {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.page-home .hm-trust__media {
  margin: 0;
  border: var(--hm-line);
  background: var(--blueprint);
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
}

.page-home .hm-trust__media img {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

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

.page-home .hm-trust__list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  background: rgba(10, 30, 51, 0.95);
}

.page-home .hm-trust__list b {
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .hm-trust__list span {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- closing band ---------- */
.page-home .hm-close {
  border-top: var(--hair);
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(255, 106, 42, 0.18) 0%, transparent 60%),
    linear-gradient(150deg, #0b2239 0%, #061426 100%);
}

.page-home .hm-close__inner {
  display: grid;
  gap: 18px;
  padding-block: clamp(32px, 6vw, 64px);
}

.page-home .hm-close__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 4.4vw, 38px);
  line-height: 1.18;
  color: var(--paper);
}

.page-home .hm-close__inner p {
  max-width: 56ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .hm-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .page-home .hm-hero__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .page-home .hm-index {
    position: sticky;
    top: 0;
    z-index: 15;
    backdrop-filter: blur(10px);
  }

  .page-home .hm-sec {
    scroll-margin-top: 84px;
  }

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

  .page-home .hm-member {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

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

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

  .page-home .hm-close__inner {
    grid-template-columns: minmax(0, 7fr) auto;
    align-items: center;
  }

  .page-home .hm-close__actions {
    justify-content: flex-end;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-entry,
  .page-home .hm-step,
  .page-home .hm-index a {
    transition: none;
  }

  .page-home .hm-entry:hover,
  .page-home .hm-entry:focus-visible {
    transform: none;
  }
}
