.page-home {
  --home-edge: clamp(20px, 4vw, 56px);
  --home-gap: clamp(28px, 5vw, 72px);
  background: var(--paper);
  color: var(--ink);
}

.page-home .home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--header-h, 72px));
  padding: 48px 0 64px;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-home .home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(6, 14, 26, 0.94) 0%, rgba(10, 22, 40, 0.82) 46%, rgba(244, 239, 230, 0.14) 100%);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: var(--home-gap);
  align-items: center;
}

.page-home .home-hero__pretitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-home .home-hero__pretitle::before {
  content: "";
  width: 2px;
  height: 18px;
  background: var(--orange);
}

.page-home .home-hero__title {
  max-width: 8.5em;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.page-home .home-hero__lead {
  max-width: 62ch;
  margin: 0;
  color: rgba(244, 239, 230, 0.86);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

.page-home .home-hero__lead span {
  color: var(--gold-light);
  font-weight: 600;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-home .home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 169, 97, 0.4);
}

.page-home .home-hero__stat {
  display: grid;
  gap: 4px;
}

.page-home .home-hero__stat strong {
  color: var(--gold-light);
  font-family: var(--font-num);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
}

.page-home .home-hero__stat span {
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.8rem;
}

.page-home .home-hero__side {
  position: relative;
  align-self: center;
  padding: 48px 20px 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-hero__side .note-vertical {
  position: absolute;
  top: 18px;
  left: 4px;
  color: var(--gold);
  font-weight: 600;
}

.page-home .home-ticker {
  max-width: 520px;
  margin-left: auto;
}

.page-home .home-ticker__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.14);
  color: var(--navy);
  font-weight: 700;
}

.page-home .home-ticker__freq {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.page-home .home-ticker__track {
  display: flex;
  gap: 12px;
  margin: 18px -8px 0;
  padding: 0 8px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.page-home .home-ticker__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
}

.page-home .live-score-card {
  position: relative;
  flex: 0 0 230px;
  padding: 16px;
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: var(--white);
  scroll-snap-align: start;
}

.page-home .live-score-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.page-home .live-score-card__league {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.page-home .live-score-card__teams {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 6px;
}

.page-home .live-score-card__team {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.page-home .live-score-card__team:first-child {
  text-align: right;
}

.page-home .live-score-card__score {
  min-width: 48px;
  padding: 2px 8px;
  background: var(--paper-deep);
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.page-home .live-score-card__stats {
  display: flex;
  gap: 12px;
  margin: 12px 0 0;
  padding: 10px 0 0;
  list-style: none;
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  color: var(--muted);
  font-size: 0.76rem;
}

.page-home .live-score-card__stats strong {
  color: var(--ink);
  font-family: var(--font-num);
}

.page-home .live-score-card__recent {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  right: 0;
  z-index: 3;
  padding: 10px 12px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .live-score-card:hover .live-score-card__recent,
.page-home .live-score-card:focus-within .live-score-card__recent {
  opacity: 1;
  transform: translateY(0);
}

.page-home .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(244, 239, 230, 0.65);
  font-size: 0.85rem;
}

.page-home .breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.page-home .breadcrumb a:hover {
  color: var(--orange);
}

.page-home .breadcrumb__sep {
  color: rgba(244, 239, 230, 0.4);
}

.page-home .home-section {
  position: relative;
  padding: clamp(56px, 9vw, 116px) 0;
}

.page-home .home-section--navy {
  background: var(--navy);
  color: var(--paper);
}

.page-home .home-section--paper {
  background: var(--paper);
  color: var(--ink);
}

.page-home .home-section--paper-deep {
  background: var(--paper-deep);
  color: var(--ink);
}

.page-home .home-section--navy-deep {
  background: var(--navy-deep);
  color: var(--paper);
}

.page-home .home-section__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.page-home .home-section__meta .note-vertical {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-home .home-section__meta .note-vertical--gold {
  color: var(--gold);
}

.page-home .home-section--navy .section-label,
.page-home .home-section--navy-deep .section-label {
  color: var(--gold-light);
}

.page-home .feature-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.page-home .feature-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
}

.page-home .feature-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-home .home-section--navy .feature-list li,
.page-home .home-section--navy-deep .feature-list li {
  color: rgba(244, 239, 230, 0.88);
}

.page-home .home-section--paper .feature-list li,
.page-home .home-section--paper-deep .feature-list li {
  color: var(--ink);
}

.page-home .home-lineup {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: var(--home-gap);
  align-items: center;
}

.page-home .home-lineup__copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
}

.page-home .home-lineup__lead {
  max-width: 54ch;
  margin: 0 0 18px;
  color: rgba(244, 239, 230, 0.82);
  line-height: 1.75;
}

.page-home .home-lineup__stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-home .formation-card {
  padding: 16px;
  border: 1px solid rgba(201, 169, 97, 0.28);
  background: rgba(10, 22, 40, 0.42);
}

.page-home .formation-card--away {
  border-color: rgba(244, 239, 230, 0.14);
  background: rgba(244, 239, 230, 0.06);
}

.page-home .formation-card__tag {
  margin-bottom: 12px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .home-lineup__pitch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  aspect-ratio: 3 / 4;
  padding: 10% 8%;
  border: 1px solid rgba(201, 169, 97, 0.2);
  background:
    linear-gradient(180deg, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0.04)),
    repeating-linear-gradient(180deg, transparent 0 24px, rgba(201, 169, 97, 0.16) 24px 25px);
}

.page-home .home-lineup__row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.page-home .home-lineup__row:last-child {
  justify-content: center;
}

.page-home .home-lineup__dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.page-home .formation-card--away .home-lineup__dot {
  background: var(--orange);
  color: var(--paper);
}

.page-home .home-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--home-gap);
  align-items: center;
}

.page-home .home-scoreboard__content h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
}

.page-home .home-scoreboard__lead {
  max-width: 58ch;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.page-home .home-scoreboard__chart svg {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 4px 0 18px;
  padding: 8px;
  border: 1px solid var(--gold);
  background: var(--paper-deep);
}

.page-home .home-scoreboard__media img,
.page-home .home-league__rank img,
.page-home .home-history__image img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-scoreboard__media img {
  border: 1px solid rgba(201, 169, 97, 0.6);
  box-shadow: var(--shadow);
}

.page-home .home-league {
  padding: clamp(28px, 5vw, 56px);
  background: var(--navy);
  color: var(--paper);
  clip-path: polygon(1.2% 0, 100% 0, 98.8% 100%, 0 100%);
}

.page-home .home-league__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.page-home .home-league__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.25;
}

.page-home .home-league__lead {
  max-width: 60ch;
  margin: 0;
  color: rgba(244, 239, 230, 0.78);
  line-height: 1.75;
}

.page-home .league-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 30px;
}

.page-home .league-switcher__item {
  padding: 9px 16px;
  border: 1px solid rgba(201, 169, 97, 0.36);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-home .league-switcher__item.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--paper);
}

.page-home .home-league__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 26px 0;
  border-top: 1px solid rgba(201, 169, 97, 0.22);
  border-bottom: 1px solid rgba(201, 169, 97, 0.22);
}

.page-home .league-stat-card {
  padding: 16px 14px;
  border-top: 2px solid var(--orange);
  background: rgba(10, 22, 40, 0.4);
}

.page-home .league-stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-light);
  font-family: var(--font-num);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}

.page-home .league-stat-card span {
  color: rgba(244, 239, 230, 0.76);
  font-size: 0.8rem;
}

.page-home .home-league__rank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

.page-home .home-league__rank h3 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 1.25rem;
}

.page-home .home-league__rank p {
  max-width: 52ch;
  margin: 0 0 18px;
  color: rgba(244, 239, 230, 0.8);
  line-height: 1.75;
}

.page-home .home-league__rank img {
  border: 1px solid rgba(201, 169, 97, 0.44);
  box-shadow: var(--shadow);
}

.page-home .home-history {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px 32px;
  align-items: start;
}

.page-home .home-history__head {
  grid-column: 1 / -1;
  max-width: 720px;
}

.page-home .home-history__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
}

.page-home .home-history__lead {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.page-home .home-history__image {
  max-width: 420px;
}

.page-home .home-history__image img {
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.page-home .home-history__cards {
  display: grid;
  gap: 16px;
  align-content: center;
}

.page-home .history-insight {
  padding: 20px 22px 20px 24px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.06);
}

.page-home .history-insight h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.page-home .history-insight p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-home .home-history > .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 12px;
}

.page-home .home-upgrade__head {
  max-width: 760px;
}

.page-home .home-upgrade__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
}

.page-home .home-upgrade__head p {
  max-width: 62ch;
  margin: 0;
  color: rgba(244, 239, 230, 0.8);
  line-height: 1.75;
}

.page-home .home-upgrade__timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 36px 0 32px;
}

.page-home .version-node {
  padding: 18px 14px;
  border-top: 2px solid var(--gold);
  background: rgba(244, 239, 230, 0.06);
}

.page-home .version-node__year {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-light);
  font-family: var(--font-num);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
}

.page-home .version-node__title {
  display: block;
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.8rem;
}

.page-home .home-upgrade__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 169, 97, 0.3);
}

.page-home .home-upgrade__bottom p {
  max-width: 720px;
  margin: 0;
  color: rgba(244, 239, 230, 0.8);
  line-height: 1.7;
}

@media (max-width: 960px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-home .home-hero__side {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    padding: 40px 20px 24px;
    clip-path: none;
  }

  .page-home .home-hero__side .note-vertical {
    position: static;
    display: block;
    margin-bottom: 6px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .page-home .home-lineup,
  .page-home .home-scoreboard,
  .page-home .home-league__rank,
  .page-home .home-history {
    grid-template-columns: 1fr;
  }

  .page-home .home-league {
    clip-path: none;
  }

  .page-home .home-league__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-upgrade__timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .page-home .home-hero {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .page-home .home-hero__inner {
    gap: 32px;
  }

  .page-home .home-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-home .home-hero__stats {
    gap: 20px;
  }

  .page-home .home-section {
    padding: 56px 0;
  }

  .page-home .home-section__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-home .home-lineup__stage {
    grid-template-columns: 1fr;
  }

  .page-home .home-scoreboard__media {
    order: -1;
  }

  .page-home .home-upgrade__timeline {
    grid-template-columns: 1fr;
  }

  .page-home .home-upgrade__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
