.page-home {
  --home-slab: #10211C;
  --home-slab-deep: #0C1A16;
  --home-rule: #22352E;
  --home-glow: rgba(37, 229, 166, 0.16);
}

/* ============ HERO ============ */
.page-home .home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 44px);
  padding-bottom: clamp(44px, 7vw, 92px);
}

.page-home .home-hero-copy {
  min-width: 0;
}

.page-home .home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 3vw, 26px);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .home-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turf);
  box-shadow: 0 0 0 4px var(--turf-soft);
}

.page-home .home-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 9vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--chalk);
}

.page-home .home-hero-lead {
  max-width: 46ch;
  margin: clamp(18px, 3vw, 26px) 0 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: var(--mist);
}

.page-home .home-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 40px);
  margin: clamp(26px, 4vw, 38px) 0 0;
  padding: clamp(18px, 3vw, 26px) 0 0;
  border-top: 1px solid var(--home-rule);
}

.page-home .home-metric {
  min-width: 96px;
}

.page-home .home-metric-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .home-metric-value {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
}

.page-home .home-metric-num {
  font-size: clamp(34px, 7vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--turf);
}

.page-home .home-metric-unit {
  font-size: 13px;
  color: var(--mist);
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 36px);
}

/* --- CSS pitch visual --- */
.page-home .home-pitch {
  position: relative;
  min-height: clamp(240px, 46vw, 460px);
  border: var(--edge) solid var(--home-rule);
  box-shadow: var(--shadow-hard);
  background: var(--home-slab-deep);
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-pitch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.5) contrast(1.05);
  z-index: 0;
}

.page-home .home-pitch-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(to right, rgba(37, 229, 166, 0.13) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(to bottom, rgba(37, 229, 166, 0.09) 0 1px, transparent 1px 54px),
    radial-gradient(circle at 50% 46%, var(--home-glow) 0%, transparent 62%);
}

.page-home .home-pitch-circle {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 40%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(37, 229, 166, 0.35);
  border-radius: 50%;
  z-index: 2;
}

.page-home .home-pitch-circle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--turf);
}

.page-home .home-pitch-box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  border-top: 1px solid rgba(255, 138, 61, 0.4);
  border-left: 1px solid rgba(255, 138, 61, 0.4);
  border-right: 1px solid rgba(255, 138, 61, 0.4);
  z-index: 2;
}

.page-home .home-pitch-box::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  top: 0;
  height: 52%;
  border: 1px solid rgba(255, 138, 61, 0.32);
  border-top: 0;
}

.page-home .home-pitch-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(10, 13, 12, 0.32) 0 2px,
    transparent 2px 5px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.page-home .home-pitch-node {
  position: absolute;
  width: 9px;
  height: 9px;
  z-index: 4;
  background: var(--turf);
  box-shadow: 0 0 0 5px rgba(37, 229, 166, 0.18);
}

.page-home .home-pitch-node--a {
  left: 24%;
  top: 32%;
}

.page-home .home-pitch-node--b {
  right: 22%;
  bottom: 34%;
  background: var(--ember);
  box-shadow: 0 0 0 5px rgba(255, 138, 61, 0.18);
}

.page-home .home-pitch-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  padding: 8px 14px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--turf);
}

/* ============ SHARED BLOCK RHYTHM ============ */
.page-home .home-block {
  padding: clamp(38px, 6.5vw, 84px) 0;
  border-top: 1px solid var(--home-rule);
}

.page-home .home-h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--chalk);
}

.page-home .home-lead {
  max-width: 62ch;
  margin: clamp(14px, 2.4vw, 20px) 0 0;
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.78;
  color: var(--mist);
}

/* ============ LATEST ROUND ============ */
.page-home .home-round {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.page-home .home-round-stats {
  list-style: none;
  margin: clamp(22px, 3.4vw, 32px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}

.page-home .home-round-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: var(--home-slab);
}

.page-home .home-round-key {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .home-round-val {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--chalk);
}

.page-home .home-round-val--warm { color: var(--ember); }
.page-home .home-round-val--cold { color: var(--cold); }
.page-home .home-round-val--hot  { color: var(--penalty); }

.page-home .home-round-unit {
  margin-left: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mist);
}

.page-home .home-stamp {
  margin: clamp(18px, 3vw, 24px) 0 0;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
  border-left: 2px solid var(--turf);
  padding-left: 10px;
}

.page-home .home-round-figure {
  position: relative;
  margin: 0;
  border: var(--edge) solid var(--home-rule);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--home-slab-deep);
}

.page-home .home-round-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  filter: saturate(0.45);
}

.page-home .home-round-figure figcaption {
  padding: 10px 14px;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  border-top: 1px solid var(--home-rule);
}

/* ============ HOME / AWAY ============ */
.page-home .home-ha {
  position: relative;
  border: var(--edge) solid var(--home-rule);
  box-shadow: var(--shadow-hard);
  background: var(--home-slab);
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-ha-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.4);
  z-index: 0;
}

.page-home .home-ha-inner {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 4vw, 48px);
}

.page-home .home-ha-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: clamp(18px, 3vw, 26px);
}

.page-home .home-ha-scroll {
  margin-top: clamp(16px, 2.6vw, 24px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .home-ha-table {
  min-width: 420px;
  border-top: 1px solid var(--home-rule);
}

.page-home .home-ha-head,
.page-home .home-ha-row {
  display: grid;
  grid-template-columns: minmax(96px, 1.4fr) 1fr 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--home-rule);
}

.page-home .home-ha-head {
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-home .home-ha-cell {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
}

.page-home .home-ha-cell--label {
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .home-ha-cell--home,
.page-home .home-ha-cell--away {
  font-size: clamp(22px, 4.2vw, 32px);
  font-weight: 700;
  line-height: 1.1;
}

.page-home .home-ha-cell--home { color: var(--turf); }
.page-home .home-ha-cell--away { color: var(--cold); }

.page-home .home-ha-head .home-ha-cell--home,
.page-home .home-ha-head .home-ha-cell--away {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .home-ha-head .home-ha-cell--home { color: var(--turf); }
.page-home .home-ha-head .home-ha-cell--away { color: var(--cold); }

.page-home .home-ha-unit {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mist);
}

.page-home .home-ha-note {
  margin: clamp(16px, 2.6vw, 22px) 0 0;
  font-size: 13px;
  color: var(--mist);
  padding-left: 10px;
  border-left: 2px solid var(--cold);
}

/* ============ DELIVERY ============ */
.page-home .home-deliver {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(24px, 4vw, 38px);
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}

.page-home .home-deliver-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 3.2vw, 30px);
  background: var(--home-slab);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}

.page-home .home-deliver-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--turf);
  transition: height 0.3s var(--ease);
}

.page-home .home-deliver-item:hover,
.page-home .home-deliver-item:focus-visible {
  background: var(--pitch-deep);
}

.page-home .home-deliver-item:hover::after,
.page-home .home-deliver-item:focus-visible::after {
  height: 100%;
}

.page-home .home-deliver-num {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-home .home-deliver-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 28px);
  letter-spacing: -0.005em;
  color: var(--chalk);
}

.page-home .home-deliver-for {
  margin: 0;
  font-size: 13px;
  color: var(--turf);
}

.page-home .home-deliver-get {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .home-deliver-go {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--chalk);
}

.page-home .home-deliver-go::after {
  content: " →";
  color: var(--turf);
}

/* ============ LEAGUES ============ */
.page-home .home-leagues {
  position: relative;
  border: var(--edge) solid var(--home-rule);
  box-shadow: var(--shadow-hard);
  background: var(--home-slab-deep);
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-leagues-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.35);
  z-index: 0;
}

.page-home .home-leagues-inner {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 4vw, 48px);
}

.page-home .home-league-track {
  display: flex;
  gap: 10px;
  margin-top: clamp(22px, 3.6vw, 32px);
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .home-league-track .league-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 12px 18px;
  background: rgba(10, 13, 12, 0.72);
  border: 1px solid var(--home-rule);
  color: var(--chalk);
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.page-home .home-league-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.page-home .home-league-meta {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .home-league-track .league-chip:hover,
.page-home .home-league-track .league-chip:focus-visible {
  border-color: var(--turf);
}

.page-home .home-league-track .league-chip[aria-pressed="true"] {
  background: var(--turf);
  border-color: var(--turf);
}

.page-home .home-league-track .league-chip[aria-pressed="true"] .home-league-name,
.page-home .home-league-track .league-chip[aria-pressed="true"] .home-league-meta {
  color: var(--ink);
}

.page-home .home-league-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(18px, 3vw, 26px);
  padding-top: clamp(16px, 2.4vw, 22px);
  border-top: 1px solid var(--home-rule);
}

.page-home .home-league-note {
  margin: 0;
  max-width: 56ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ============ TEMPERATURE LEGEND ============ */
.page-home .home-temp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(24px, 4vw, 36px);
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}

.page-home .home-temp-item {
  position: relative;
  padding: clamp(18px, 3vw, 26px);
  background: var(--home-slab);
}

.page-home .home-temp-swatch {
  display: block;
  width: 44px;
  height: 6px;
  margin-bottom: 14px;
}

.page-home .home-temp-item--ember   .home-temp-swatch { background: var(--ember); }
.page-home .home-temp-item--penalty .home-temp-swatch { background: var(--penalty); }
.page-home .home-temp-item--cold    .home-temp-swatch { background: var(--cold); }
.page-home .home-temp-item--turf    .home-temp-swatch { background: var(--turf); }

.page-home .home-temp-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--chalk);
}

.page-home .home-temp-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist);
}

/* ============ CTA ============ */
.page-home .home-block--cta {
  padding-bottom: clamp(52px, 8vw, 104px);
}

.page-home .home-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.page-home .home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3.4vw, 30px);
}

.page-home .home-cta-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}

.page-home .home-cta-fact {
  padding: 18px 16px;
  background: var(--pitch-deep);
}

.page-home .home-cta-fact dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .home-cta-fact dd {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4.4vw, 36px);
  font-weight: 700;
  line-height: 1;
  color: var(--chalk);
}

.page-home .home-cta-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--mist);
}

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

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

  .page-home .home-deliver-item--wide {
    grid-column: span 3;
  }

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

@media (min-width: 960px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: stretch;
  }

  .page-home .home-pitch {
    min-height: 100%;
  }

  .page-home .home-round {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }

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

  .page-home .home-deliver-item--wide {
    grid-column: span 1;
  }

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

  .page-home .home-cta {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

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

@media (min-width: 1200px) {
  .page-home .home-hero {
    gap: clamp(40px, 5vw, 72px);
  }

  .page-home .home-h2 {
    max-width: 22ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-deliver-item,
  .page-home .home-deliver-item::after,
  .page-home .home-league-track .league-chip {
    transition: none;
  }
}
