.page-home {
  --home-gutter: clamp(16px, 4vw, 32px);
  color: var(--white);
  background: var(--ink);
  overflow-x: hidden;
}

.page-home .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ HERO ============ */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 8vw, 96px) 0 clamp(48px, 8vw, 96px);
  background: var(--ink);
}

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

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 9, 20, 0.72) 0%, rgba(5, 9, 20, 0.84) 48%, #050914 100%),
    radial-gradient(80% 62% at 84% 6%, rgba(124, 92, 255, 0.42), transparent 62%),
    radial-gradient(70% 56% at 4% 94%, rgba(43, 227, 208, 0.26), transparent 60%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(rgba(241, 245, 255, 0.16) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.28;
}

.page-home .hero__pulse {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  z-index: 2;
  width: 100%;
  height: 72px;
  color: var(--cyan);
  opacity: 0.55;
  pointer-events: none;
}

.page-home .hero__pulse path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: home-pulse 6s linear infinite;
}

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

.page-home .hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}

.page-home .hero__context {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gray);
  text-transform: uppercase;
}

.page-home .hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 8.6vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 900;
  background: linear-gradient(96deg, var(--white) 22%, var(--cyan) 68%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-home .hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.8;
  color: rgba(241, 245, 255, 0.82);
}

.page-home .hero__lede--minor {
  color: var(--gray);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.page-home .hero__rail {
  margin: clamp(10px, 2vw, 20px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .path-rail__item {
  background: rgba(11, 18, 38, 0.82);
  backdrop-filter: blur(6px);
}

.page-home .path-rail__link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "idx title"
    "idx desc";
  gap: 3px 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
}

.page-home .path-rail__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home .path-rail__link:hover,
.page-home .path-rail__link:focus-visible {
  background: rgba(19, 28, 54, 0.92);
  outline: none;
}

.page-home .path-rail__link:hover::after,
.page-home .path-rail__link:focus-visible::after {
  width: 100%;
}

.page-home .path-rail__index {
  grid-area: idx;
  align-self: start;
  padding-top: 5px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .path-rail__title {
  grid-area: title;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .path-rail__desc {
  grid-area: desc;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--gray);
}

/* ============ SECTION BASE ============ */
.page-home .section {
  position: relative;
  isolation: isolate;
  padding: clamp(52px, 8vw, 104px) 0;
}

.page-home .section-index {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: uppercase;
}

.page-home .section-index--violet {
  color: var(--violet);
}

.page-home .section-index--orange {
  color: var(--orange);
}

.page-home .section__title {
  margin: 0;
  font-size: clamp(1.65rem, 4.2vw, 2.85rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 24ch;
}

.page-home .section__head {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .section__lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: clamp(0.94rem, 1.5vw, 1.02rem);
  line-height: 1.8;
  color: rgba(241, 245, 255, 0.74);
}

.page-home .prose {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(241, 245, 255, 0.78);
}

.page-home .note {
  margin-top: clamp(20px, 3vw, 30px);
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--gray);
  max-width: 62ch;
}

.page-home .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

/* ============ SCHEDULE ============ */
.page-home .schedule {
  background: var(--ink);
}

.page-home .schedule .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .tabs__btn {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 20px;
  color: var(--gray);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: var(--cut-shape);
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.page-home .tabs__btn:hover {
  color: var(--white);
  border-color: var(--cyan);
}

.page-home .tabs__btn[aria-selected="true"],
.page-home .tabs__btn[data-open] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .tabs__panel {
  display: none;
}

.page-home .tabs__panel[data-open] {
  display: block;
}

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

.page-home .fixture {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 14px;
  padding: 15px 18px;
  background: linear-gradient(112deg, rgba(43, 227, 208, 0.08), rgba(19, 28, 54, 0.92) 42%);
  clip-path: var(--cut-shape);
  transition: background 0.25s ease;
}

.page-home .fixture:hover {
  background: linear-gradient(112deg, rgba(43, 227, 208, 0.16), rgba(19, 28, 54, 0.98) 48%);
}

.page-home .fixture__time {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.page-home .fixture__match {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--white);
}

.page-home .fixture__vs {
  display: inline-block;
  margin: 0 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.08em;
}

.page-home .fixture__tag {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.page-home .fixture__alarm {
  grid-column: 2 / -1;
  grid-row: 2;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--gray);
}

/* ============ BRIEFING ============ */
.page-home .briefing {
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 2.2%, 100% 100%, 0 97.8%);
  padding-top: clamp(70px, 10vw, 130px);
  padding-bottom: clamp(70px, 10vw, 130px);
}

.page-home .briefing__text .btn-row {
  margin-top: 26px;
}

.page-home .briefing__figure {
  margin: 0;
}

.page-home .briefing__figure .media__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: var(--cut-shape);
  filter: saturate(0.92);
}

.page-home .media__caption {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--violet);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--gray);
}

.page-home .briefing__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.page-home .tag-row .tag {
  font-size: 0.76rem;
  padding: 5px 12px;
  letter-spacing: 0.04em;
}

/* ============ STANDINGS ============ */
.page-home .standings {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
}

.page-home .standings__rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 2px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 227, 208, 0.7) rgba(36, 48, 79, 0.6);
}

.page-home .standings__rail::-webkit-scrollbar {
  height: 4px;
}

.page-home .standings__rail::-webkit-scrollbar-track {
  background: rgba(36, 48, 79, 0.6);
}

.page-home .standings__rail::-webkit-scrollbar-thumb {
  background: var(--cyan);
}

.page-home .board {
  flex: 0 0 min(340px, 84vw);
  scroll-snap-align: start;
  align-self: start;
  padding: 18px 18px 20px;
  background: var(--panel);
  clip-path: var(--cut-shape);
  transition: transform 0.28s ease;
}

.page-home .board:hover {
  transform: translateY(-4px);
}

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

.page-home .board__league {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--white);
}

.page-home .board__round {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--violet);
}

.page-home .board__table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.page-home .board__table th {
  padding: 6px 4px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
}

.page-home .board__table td {
  padding: 9px 4px;
  color: rgba(241, 245, 255, 0.82);
  border-bottom: 1px solid rgba(36, 48, 79, 0.55);
}

.page-home .board__table tr:last-child td {
  border-bottom: none;
}

.page-home .board__pos {
  width: 34px;
}

.page-home .board__table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.page-home .board__team {
  color: var(--white);
  font-weight: 500;
}

.page-home .board__form {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gray);
  white-space: nowrap;
}

.page-home .board__table .is-lead {
  color: var(--orange);
  font-weight: 700;
}

.page-home .standings__more {
  margin-top: clamp(8px, 2vw, 20px);
}

/* ============ CITY ============ */
.page-home .city {
  background: var(--ink);
}

.page-home .city__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 52ch;
}

.page-home .city__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(241, 245, 255, 0.82);
}

.page-home .city__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--orange);
}

.page-home .city__figure {
  margin: 0;
}

.page-home .city__figure .media__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: var(--cut-shape);
}

/* ============ COMMUTE ============ */
.page-home .commute {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 18, 38, 0.94) 0%, rgba(5, 9, 20, 0.96) 100%),
    var(--ink-2);
}

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

.page-home .commute__inner {
  position: relative;
}

.page-home .commute__accordion {
  margin-top: clamp(24px, 4vw, 36px);
}

.page-home .accordion__item {
  border-top: 1px solid var(--line);
}

.page-home .accordion__item:last-child {
  border-bottom: 1px solid var(--line);
}

.page-home .accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 2px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  font-weight: 700;
  text-align: left;
  color: var(--white);
  cursor: pointer;
  transition: color 0.22s ease;
}

.page-home .accordion__trigger:hover,
.page-home .accordion__trigger:focus-visible {
  color: var(--cyan);
  outline: none;
}

.page-home .accordion__trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.page-home .accordion__item[data-open] .accordion__trigger::after {
  content: "–";
}

.page-home .accordion__panel p {
  margin: 0 0 20px;
  max-width: 58ch;
  font-size: 0.94rem;
  line-height: 1.8;
  color: rgba(241, 245, 255, 0.76);
}

/* ============ COLUMN PREVIEW ============ */
.page-home .column-preview {
  background: var(--ink-2);
}

.page-home .toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .toc__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .toc__index {
  grid-row: 1 / span 2;
  padding-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--violet);
}

.page-home .toc__title {
  margin: 0;
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--white);
}

.page-home .toc__desc {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray);
  max-width: 58ch;
}

.page-home .column-preview__more {
  margin-top: clamp(24px, 3vw, 34px);
}

/* ============ CLOSING ============ */
.page-home .closing {
  background: var(--ink);
  clip-path: polygon(0 2.4%, 100% 0, 100% 100%, 0 100%);
  padding-top: clamp(72px, 10vw, 128px);
}

.page-home .closing__grid {
  align-items: start;
}

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

.page-home .closing__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(11, 18, 38, 0.86);
}

.page-home .closing__fact dt {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.page-home .closing__fact dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
}

/* ============ RESPONSIVE ============ */
@media (min-width: 640px) {
  .page-home .hero__rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .fixture {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    padding: 17px 22px;
  }

  .page-home .fixture__time {
    font-size: 1.15rem;
  }
}

@media (min-width: 900px) {
  .page-home .hero__rail {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .hero__pulse {
    bottom: 4%;
  }

  .page-home .fixture {
    grid-template-columns: 92px minmax(0, 1fr) auto;
  }

  .page-home .fixture__time {
    font-size: 1.25rem;
  }

  .page-home .board {
    flex: 0 0 300px;
  }

  .page-home .toc__item {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 24px 0;
  }
}

@media (min-width: 1140px) {
  .page-home .board {
    flex: 1 1 0;
    min-width: 0;
  }

  .page-home .standings__rail {
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__pulse path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .page-home .path-rail__link::after,
  .page-home .board,
  .page-home .fixture,
  .page-home .accordion__trigger::after {
    transition: none;
  }

  .page-home .board:hover {
    transform: none;
  }
}
