.page-home {
  --home-pad: clamp(18px, 5vw, 56px);
  --home-section: clamp(64px, 11vw, 118px);
  background: var(--ink);
  color: var(--ivory);
  overflow: clip;
}

.page-home .home-hero {
  position: relative;
  padding: 18px 0 48px;
  background:
    radial-gradient(120% 90% at 82% 10%, rgba(0, 230, 184, .14), transparent 48%),
    radial-gradient(80% 70% at 8% 88%, rgba(255, 122, 26, .07), transparent 60%),
    var(--ink);
  isolation: isolate;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 230, 184, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 184, .075) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 82%);
}

.page-home .home-hero__context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-home .home-hero__context-note {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

.page-home .home-hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.page-home .home-hero__title {
  margin: 18px 0 22px;
  max-width: 10ch;
  font-family: var(--font-sans);
  font-size: clamp(3rem, 11.5vw, 7.4rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.page-home .home-hero__lede {
  max-width: 38rem;
  margin: 0;
  color: var(--mist);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.9;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 26px;
}

.page-home .home-hero__text-link {
  color: var(--mint);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 255, 228, .35);
  padding-bottom: 2px;
}

.page-home .home-hero__text-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .home-hero__filters {
  margin-top: 26px;
}

.page-home .home-hero__micro {
  margin: 20px 0 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
}

.page-home .home-score {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-deep);
}

.page-home .home-score__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-score__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .44;
  filter: saturate(.8) contrast(1.08);
}

.page-home .home-score__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 11, 8, .1), rgba(3, 11, 8, .94) 72%);
}

.page-home .home-score__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: clamp(18px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(3, 11, 8, .08), rgba(3, 11, 8, .66) 62%, rgba(3, 11, 8, .9));
}

.page-home .home-score__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-home .home-score__fixture {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
}

.page-home .home-score__numbers {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--ivory);
  line-height: .9;
}

.page-home .home-score__num {
  font-family: var(--font-mono);
  font-size: clamp(4.2rem, 18vw, 8.2rem);
  font-weight: 700;
  letter-spacing: -.08em;
  animation: home-flip .5s var(--ease) both;
}

.page-home .home-score__num--alt {
  color: var(--mint);
}

.page-home .home-score__dash {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
}

.page-home .home-score__meta {
  margin: 0;
  color: var(--ivory);
  font-size: .92rem;
  line-height: 1.6;
}

.page-home .home-score__sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-score__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--mist);
  font-size: .82rem;
}

.page-home .home-score__row strong {
  color: var(--ivory);
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-home .home-rail {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-rail__item {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(14, 51, 40, .9);
}

.page-home .home-rail__item:first-child {
  border-top: 0;
}

.page-home .home-rail__time {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

.page-home .home-rail__body {
  color: var(--mist);
  font-size: .82rem;
  line-height: 1.6;
}

.page-home .home-rail__body .tag {
  margin-right: 6px;
}

.page-home .section {
  padding-block: var(--home-section);
}

.page-home .home-section-title {
  margin: 8px 0 0;
  max-width: 16ch;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.page-home .section__head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 46px);
}

.page-home .section__head .lede {
  max-width: 44rem;
  margin: 0;
}

.page-home .home-paths {
  background: linear-gradient(180deg, var(--ink), var(--panel) 52%, var(--ink));
}

.page-home .home-paths__grid {
  gap: 16px;
}

.page-home .home-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 28, 21, .82);
}

.page-home .home-path--accent {
  border-color: rgba(0, 230, 184, .34);
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(0, 230, 184, .14), transparent 52%),
    var(--panel-2);
}

.page-home .home-path__num {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  opacity: .85;
}

.page-home .home-path__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.page-home .home-path__text {
  margin: 0;
  color: var(--mist);
  font-size: .95rem;
  line-height: 1.85;
}

.page-home .home-path__link {
  margin-top: auto;
  color: var(--mint);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

.page-home .home-path__link::after {
  content: " ↗";
  color: var(--cyan);
}

.page-home .home-path__link:hover {
  color: var(--cyan);
}

.page-home .home-editor__layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.page-home .home-editor__index {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.page-home .home-editor__index-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 14px 0;
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.page-home .home-editor__index-item:hover {
  color: var(--mint);
  border-bottom-color: rgba(0, 230, 184, .5);
}

.page-home .home-editor__index-num {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
}

.page-home .home-editor__index-item small {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.page-home .home-editor__cards {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.page-home .home-match {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.page-home .home-match__media {
  overflow: hidden;
  aspect-ratio: 900 / 560;
  background:
    linear-gradient(120deg, rgba(0, 230, 184, .18), transparent 55%),
    var(--panel-2);
}

.page-home .home-match__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-match__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3.5vw, 28px);
}

.page-home .home-match__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-match__title {
  margin: 0;
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.page-home .home-match__text {
  margin: 0;
  color: var(--mist);
  font-size: .95rem;
  line-height: 1.85;
}

.page-home .home-match__note {
  margin: 0;
  padding-left: 12px;
  color: var(--mint);
  font-size: .82rem;
  line-height: 1.7;
  border-left: 2px solid var(--cyan);
}

.page-home .home-match__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-home .home-match__stats {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .03em;
}

.page-home .home-match__foot a {
  color: var(--mint);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.page-home .home-match__foot a:hover {
  color: var(--cyan);
}

.page-home .home-data__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 230, 184, .24);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(0, 230, 184, .16), transparent 48%),
    linear-gradient(135deg, var(--panel-2), var(--ink) 72%);
}

.page-home .home-data__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-data__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
  filter: saturate(.8);
}

.page-home .home-data__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 11, 8, .92), rgba(3, 11, 8, .48) 64%, rgba(3, 11, 8, .82));
}

.page-home .home-data__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  padding: clamp(22px, 5vw, 48px);
}

.page-home .home-data__copy {
  min-width: 0;
}

.page-home .home-data__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-data__figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid rgba(140, 255, 228, .18);
  border-radius: var(--radius-lg);
  background: rgba(3, 11, 8, .46);
  backdrop-filter: blur(4px);
}

.page-home .home-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.page-home .home-chart__grid {
  stroke: rgba(143, 179, 167, .2);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.page-home .home-chart__line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: home-line-draw 1.1s var(--ease) forwards;
}

.page-home .home-chart__line--alt {
  stroke: var(--orange);
  animation-delay: .18s;
}

.page-home .home-chart__label {
  fill: var(--mist);
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-home .home-chart__label--mint {
  fill: var(--mint);
}

.page-home .home-chart__label--orange {
  fill: var(--orange);
}

.page-home .home-data__caption {
  margin: 0;
  color: var(--mist);
  font-size: .82rem;
  line-height: 1.7;
}

.page-home .home-data__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-data__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mist);
  font-size: 11px;
}

.page-home .home-data__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
}

.page-home .home-data__legend-dot--orange {
  background: var(--orange);
}

.page-home .home-season {
  background: linear-gradient(180deg, var(--ink), rgba(7, 28, 21, .72), var(--ink));
}

.page-home .home-season__list {
  display: grid;
  gap: 14px;
}

.page-home .home-phase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.page-home .home-phase[data-filter-item="in"] {
  border-color: rgba(0, 230, 184, .3);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(0, 230, 184, .1), transparent 56%),
    var(--panel-2);
}

.page-home .home-phase[data-filter-item="post"] {
  background: linear-gradient(160deg, var(--panel), rgba(14, 51, 40, .5));
}

.page-home .home-phase__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .home-phase__step {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
}

.page-home .home-phase__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 900;
  line-height: 1.25;
}

.page-home .home-phase__text {
  margin: 0;
  color: var(--mist);
  font-size: .92rem;
  line-height: 1.85;
}

.page-home .home-phase__link {
  margin-top: auto;
  color: var(--mint);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.page-home .home-phase__link:hover {
  color: var(--cyan);
}

.page-home .home-brand__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-home .home-brand__media {
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 80% at 50% 100%, rgba(0, 230, 184, .18), transparent 58%),
    var(--panel-2);
}

.page-home .home-brand__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  opacity: .9;
}

.page-home .home-brand__copy {
  min-width: 0;
}

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

.page-home .home-brand__fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 14px 0 6px;
  border-top: 1px solid var(--line);
}

.page-home .home-brand__fact-value {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.page-home .home-brand__fact-label {
  color: var(--mist);
  font-size: 11px;
}

.page-home .home-brand__text {
  margin: 0 0 14px;
  color: var(--mist);
  font-size: .92rem;
  line-height: 1.85;
}

.page-home .home-brand__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
}

.page-home .home-brand__link {
  color: var(--mint);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 255, 228, .32);
  padding-bottom: 2px;
}

.page-home .home-brand__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

@keyframes home-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes home-flip {
  from {
    opacity: 0;
    transform: translateY(10px) rotateX(18deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@media (hover: hover) and (min-width: 720px) {
  .page-home .home-match__note {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-left-width: 0;
    transition:
      max-height .24s var(--ease),
      opacity .2s var(--ease),
      padding .2s var(--ease),
      border-left-width .2s var(--ease);
  }

  .page-home .home-match:hover .home-match__note,
  .page-home .home-match:focus-within .home-match__note {
    max-height: 90px;
    opacity: 1;
    padding-top: 0;
    padding-bottom: 0;
    border-left-width: 2px;
  }
}

@media (min-width: 720px) {
  .page-home .home-hero {
    padding: 26px 0 64px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: 1.06fr .94fr;
    gap: 34px;
  }

  .page-home .home-score {
    min-height: 470px;
  }

  .page-home .section__head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: end;
  }

  .page-home .home-paths__grid {
    gap: 18px;
  }

  .page-home .home-editor__layout {
    grid-template-columns: minmax(0, .36fr) minmax(0, 1fr);
    gap: 34px;
  }

  .page-home .home-editor__index {
    position: sticky;
    top: 100px;
  }

  .page-home .home-data__grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 34px;
  }

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

  .page-home .home-brand__grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 38px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 34px 0 80px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: 52px;
  }

  .page-home .home-score {
    min-height: 540px;
  }

  .page-home .home-hero__title {
    max-width: 9.5ch;
  }

  .page-home .home-editor__index-item {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 16px 0;
  }

  .page-home .home-editor__cards {
    gap: 22px;
  }

  .page-home .home-brand__media {
    min-height: 440px;
  }

  .page-home .home-brand__media img {
    min-height: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-chart__line,
  .page-home .home-score__num {
    animation: none;
  }

  .page-home .home-chart__line {
    stroke-dashoffset: 0;
  }

  .page-home .home-match__note {
    transition: none;
  }
}
</main>
