.page-home {
  --home-rail-w: 340px;
  --home-gap: clamp(1rem, 2.5vw, 2rem);
  background-color: var(--clr-bg);
}

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

.page-home__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: var(--space-gutter);
  min-height: 100vh;
  align-content: center;
  color: var(--clr-paper);
  overflow: hidden;
}

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

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(10, 61, 42, 0.98) 0%, rgba(10, 61, 42, 0.84) 45%, rgba(10, 61, 42, 0.58) 100%);
}

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

.page-home .hero__breadcrumb {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  color: rgba(245, 240, 230, 0.78);
}

.page-home .hero__breadcrumb .breadcrumb__current {
  color: inherit;
}

.page-home .hero__statement {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.page-home .hero__kicker {
  font-family: var(--font-mono);
  color: var(--clr-cyan);
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.page-home .hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1.02;
  color: var(--clr-paper);
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.page-home .hero__title-sub {
  display: block;
  font-size: 0.38em;
  letter-spacing: 0.16em;
  color: var(--clr-gold);
  margin-top: 0.5rem;
}

.page-home .hero__lead {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.92);
  max-width: 34em;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.page-home .hero__records-card {
  position: relative;
  margin-block: 1rem 0;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(245, 240, 230, 0.1), rgba(245, 240, 230, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.6);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.28));
  color: var(--clr-paper);
  display: flex;
  flex-direction: column;
}

.page-home .card-tag {
  display: inline-block;
  padding: 0.25em 0.75em;
  background: var(--clr-alert);
  color: #f5f0e6;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.page-home .hero__card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
  color: var(--clr-paper);
}

.page-home .hero__card-text {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  color: rgba(245, 240, 230, 0.88);
}

.page-home .hero__mini-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 64px;
  margin: 0 0 1.25rem;
  flex: 1;
}

.page-home .hero__mini-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--clr-cyan), var(--clr-gold));
  opacity: 0.9;
}

.page-home .hero__card-link {
  font-family: var(--font-mono);
  color: var(--clr-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--clr-cyan);
  align-self: flex-start;
}

.page-home .hero__commute {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(212, 175, 55, 0.55);
  color: var(--clr-paper);
  text-decoration: none;
  margin-top: 0.5rem;
}

.page-home .hero__commute-icon {
  flex: none;
  display: grid;
  place-items: center;
}

.page-home .hero__commute-text strong {
  display: block;
  font-family: var(--font-display);
  color: var(--clr-gold);
}

.page-home .hero__commute-text small {
  font-family: var(--font-mono);
  color: rgba(245, 240, 230, 0.7);
  font-size: 0.8rem;
}

.page-home .hero__commute-arrow {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--clr-cyan);
}

.page-home__rail {
  padding: var(--space-gutter);
  background: linear-gradient(180deg, #0d4a33, var(--clr-bg));
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.page-home .live-card {
  max-width: 340px;
  margin-inline: auto;
  padding: 1.25rem;
  background: rgba(8, 41, 29, 0.92);
  border: 1px solid var(--clr-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 12px 12px 0 rgba(0, 0, 0, 0.18);
}

.page-home .live-card__badge {
  font-family: var(--font-mono);
  color: var(--clr-cyan);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.page-home .live-card__title {
  font-family: var(--font-display);
  color: var(--clr-gold);
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.page-home .live-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .live-match {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(245, 240, 230, 0.12);
  font-family: var(--font-mono);
}

.page-home .live-match__state {
  flex: none;
  font-size: 0.66rem;
  color: rgba(245, 240, 230, 0.65);
  padding: 0.14rem 0.3rem;
  border: 1px solid rgba(245, 240, 230, 0.25);
  border-radius: 2px;
}

.page-home .live-match__state--live {
  color: #f5f0e6;
  border-color: var(--clr-alert);
  background: var(--clr-alert);
}

.page-home .live-match__team {
  flex: 1 1 0;
  font-size: 0.85rem;
  color: var(--clr-paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .live-match__team:last-of-type {
  text-align: right;
}

.page-home .live-match__score {
  flex: none;
  color: var(--clr-gold);
  font-size: 1rem;
  padding: 0.1rem 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}

.page-home .live-match--hot .live-match__score {
  animation: score-flash 1.4s ease-in-out infinite;
}

@keyframes score-flash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.page-home .live-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.page-home .live-card__link {
  font-family: var(--font-mono);
  color: var(--clr-cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: 0.85rem;
}

.page-home .live-card__meta {
  font-family: var(--font-mono);
  color: rgba(245, 240, 230, 0.55);
  font-size: 0.72rem;
}

.page-home .chapter {
  padding: clamp(3rem, 8vw, 5.5rem) var(--space-gutter);
  scroll-margin-top: 1rem;
}

.page-home .chapter__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.page-home .chapter__head {
  margin-bottom: 2rem;
}

.page-home .chapter__index {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  line-height: 0.9;
  font-weight: 700;
  color: var(--clr-gold);
  opacity: 0.92;
  margin-bottom: 0.75rem;
  text-shadow: 3px 3px 0 rgba(10, 61, 42, 0.2);
}

.page-home .chapter__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.page-home .chapter__lead {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 44em;
  margin: 0;
}

.page-home .chapter__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.page-home .chapter--records {
  background-color: var(--clr-paper);
  color: var(--clr-ink);
}

.page-home .chapter--records .chapter__title {
  color: var(--clr-bg);
}

.page-home .chapter--records .chapter__index {
  text-shadow: 3px 3px 0 rgba(212, 175, 55, 0.4);
}

.page-home .records-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.page-home .records-layout__figure {
  margin: 0;
  background: var(--clr-ink);
  border: 2px solid var(--clr-bg);
  box-shadow: 8px 8px 0 rgba(10, 61, 42, 0.18);
}

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

.page-home .records-layout__figure figcaption {
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--clr-paper);
  background: var(--clr-bg);
}

.page-home .records-layout__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.page-home .stat-block {
  border-left: 4px solid var(--clr-gold);
  background: #fffdf8;
  padding: 1rem;
  box-shadow: 4px 4px 0 rgba(10, 61, 42, 0.12);
}

.page-home .stat-block__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-alert);
  font-variant-numeric: tabular-nums;
}

.page-home .stat-block__label {
  display: block;
  font-size: 0.85rem;
  color: var(--clr-gray);
  margin-top: 0.25rem;
}

.page-home .bar-chart {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  align-items: end;
  border-block: 1px solid var(--clr-line);
}

.page-home .bar-chart__item {
  text-align: center;
  display: grid;
  gap: 0.5rem;
}

.page-home .bar-chart__round {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-gray);
}

.page-home .bar-chart__track {
  display: block;
  height: 90px;
  background: rgba(10, 61, 42, 0.08);
  position: relative;
  border-radius: 2px 2px 0 0;
  overflow: hidden;
}

.page-home .bar-chart__track i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--clr-gold), var(--clr-alert));
}

.page-home .bar-chart__score {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--clr-ink);
  font-variant-numeric: tabular-nums;
}

.page-home .chapter--live {
  background: linear-gradient(180deg, #e6dfd1 0%, var(--clr-paper) 100%);
  color: var(--clr-ink);
}

.page-home .chapter--live .chapter__title {
  color: var(--clr-bg);
}

.page-home .live-stats {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.page-home .live-stats__big {
  background: rgba(10, 61, 42, 0.08);
  border: 1px solid rgba(10, 61, 42, 0.18);
  padding: 1.25rem;
  box-shadow: 6px 6px 0 rgba(10, 61, 42, 0.14);
}

.page-home .live-stats__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  color: var(--clr-alert);
  font-variant-numeric: tabular-nums;
}

.page-home .live-stats__label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-gray);
  font-weight: 600;
}

.page-home .live-stats__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--clr-gray);
  margin: 0.5rem 0 0;
}

.page-home .chapter--commute {
  background-color: var(--clr-bg);
  color: var(--clr-paper);
}

.page-home .chapter--commute .chapter__title {
  color: var(--clr-gold);
}

.page-home .chapter--commute .chapter__lead {
  color: rgba(245, 240, 230, 0.85);
}

.page-home .commute-layout {
  display: grid;
  gap: 2rem;
}

.page-home .commute-layout__figure {
  margin: 0;
  position: relative;
  border: 2px solid var(--clr-gold);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.28);
}

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

.page-home .commute-layout__figure figcaption {
  padding: 0.75rem 1rem;
  background: rgba(10, 61, 42, 0.9);
  color: var(--clr-paper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.page-home .commute-layout__content .chapter__title {
  margin-top: 0.5rem;
}

.page-home .commute-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.page-home .commute-list li {
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.7;
}

.page-home .commute-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.6rem;
  height: 2px;
  background: var(--clr-gold);
}

.page-home .chapter--downloads {
  background-color: var(--clr-paper);
  color: var(--clr-ink);
  border-top: 4px solid var(--clr-gold);
}

.page-home .chapter--downloads .chapter__title {
  color: var(--clr-bg);
}

.page-home .chapter__head--with-icon {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

.page-home .download-icon {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(10, 61, 42, 0.2);
  padding: 0.5rem;
  background: #fffdf8;
  box-shadow: 6px 6px 0 rgba(10, 61, 42, 0.18);
}

.page-home .file-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.page-home .file-card {
  background-image: repeating-linear-gradient(90deg, rgba(212, 175, 55, 0.06) 0 2px, transparent 2px 4px), linear-gradient(180deg, #fffdf8, #f5f0e6);
  background-color: #fffdf8;
  border: 1px solid var(--clr-line);
  border-left: 6px solid var(--clr-alert);
  padding: 1.25rem;
  box-shadow: 6px 6px 0 rgba(10, 61, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-home .file-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 rgba(10, 61, 42, 0.16);
}

.page-home .file-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--clr-bg);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.page-home .file-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--clr-ink);
}

.page-home .file-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-gray);
}

.page-home .file-card__meta span {
  background: rgba(10, 61, 42, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.page-home .chapter--bookmark {
  background: linear-gradient(160deg, var(--clr-bg) 0%, #072418 100%);
  color: var(--clr-paper);
  border-top: 6px solid var(--clr-violet);
  box-shadow: inset 12px 0 0 var(--clr-violet);
}

.page-home .chapter--bookmark .chapter__title {
  color: var(--clr-gold);
}

.page-home .chapter--bookmark .chapter__lead {
  color: rgba(245, 240, 230, 0.86);
}

.page-home .bookmark-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: bookmark-step;
}

.page-home .bookmark-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(245, 240, 230, 0.04);
  border: 1px solid rgba(123, 47, 247, 0.4);
  padding: 1.25rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.page-home .bookmark-steps p {
  margin: 0;
}

.page-home .bookmark-steps strong {
  color: var(--clr-gold);
  display: block;
  margin-bottom: 0.25rem;
}

.page-home .bookmark-steps__num {
  flex: none;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--clr-violet);
  color: #fff;
  border-radius: 50%;
}

@media (min-width: 720px) {
  .page-home .records-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .records-layout__figure {
    grid-column: 1;
  }

  .page-home .records-layout__stats {
    grid-column: 2;
    grid-row: 1;
    align-content: center;
  }

  .page-home .bar-chart {
    grid-column: 1 / -1;
  }

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

  .page-home .live-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .bookmark-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .page-home__layout {
    grid-template-columns: minmax(0, 1fr) var(--home-rail-w);
    grid-template-areas:
      "hero rail"
      "records rail"
      "live rail"
      "commute rail"
      "downloads rail"
      "bookmark rail";
    column-gap: var(--home-gap);
    max-width: calc(var(--max-width) + var(--home-rail-w) + var(--home-gap));
    margin-inline: auto;
  }

  .page-home .hero {
    grid-area: hero;
    min-height: calc(100vh - 2rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "crumb crumb"
      "statement records"
      "commute records";
    align-items: stretch;
  }

  .page-home .hero__breadcrumb {
    grid-area: crumb;
  }

  .page-home .hero__statement {
    grid-area: statement;
    align-self: center;
  }

  .page-home .hero__records-card {
    grid-area: records;
    margin: 0;
    align-self: stretch;
  }

  .page-home .hero__commute {
    grid-area: commute;
    margin-top: 0;
  }

  .page-home .hero__vertical {
    display: block;
    position: absolute;
    right: 0.5rem;
    top: 1.5rem;
    z-index: 0;
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.7);
    opacity: 0.85;
    pointer-events: none;
  }

  .page-home .chapter--records {
    grid-area: records;
  }

  .page-home .chapter--live {
    grid-area: live;
  }

  .page-home .chapter--commute {
    grid-area: commute;
  }

  .page-home .chapter--downloads {
    grid-area: downloads;
  }

  .page-home .chapter--bookmark {
    grid-area: bookmark;
  }

  .page-home__rail {
    grid-area: rail;
    position: sticky;
    top: 1rem;
    align-self: start;
    height: calc(100vh - 2rem);
    overflow: auto;
    border-left: 1px solid rgba(212, 175, 55, 0.35);
    border-top: none;
    border-bottom: none;
  }

  .page-home .commute-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
  }

  .page-home .download-icon {
    position: absolute;
    right: 0;
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .live-match--hot .live-match__score {
    animation: none;
  }

  .page-home .file-card {
    transition: none;
  }
}
