.page-home {
  --home-gap: clamp(18px, 3vw, 30px);
  --home-slab-top: #0D1730;
  display: block;
  background: var(--ink);
  color: var(--fog);
}

/* ---------------- Hero ---------------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6.4vw, 68px) 0 clamp(32px, 5.6vw, 60px);
  border-bottom: 1px solid var(--line);
}

.page-home .hero__slab {
  position: absolute;
  inset: -8% -16% auto -16%;
  height: 124%;
  z-index: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 0 94%);
  background: linear-gradient(148deg, var(--home-slab-top) 0%, var(--ink-1) 44%, var(--ink) 84%);
  pointer-events: none;
}

.page-home .hero__slab img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .36;
  mix-blend-mode: screen;
}

.page-home .hero__edge {
  position: absolute;
  z-index: 0;
  right: -12%;
  top: 2%;
  width: 54%;
  height: 80%;
  background: linear-gradient(160deg, rgba(43, 245, 208, .16), rgba(139, 92, 246, .22) 58%, rgba(76, 29, 149, .05));
  clip-path: polygon(24% 0, 100% 8%, 76% 100%, 0 82%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(13px, 2.2vw, 20px);
}

.page-home .hero .breadcrumb {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .hero .eyebrow {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
  margin: 0;
}

.page-home .hero h1 {
  margin: 0;
  max-width: 15em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(33px, 7.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--fog);
}

.page-home .hero h1 .hl {
  font-style: normal;
  color: var(--cyan);
  background: linear-gradient(transparent 66%, rgba(43, 245, 208, .2) 66%);
}

.page-home .hero .lede {
  margin: 0;
  max-width: 40ch;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .dossier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 4px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.page-home .dossier__cell {
  background: rgba(11, 20, 40, .88);
  padding: 13px 15px;
}

.page-home .dossier__cell--wide {
  grid-column: 1 / -1;
}

.page-home .dossier__label {
  margin: 0 0 5px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .dossier__value {
  margin: 0;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  color: var(--fog);
}

.page-home .dossier__value--live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

/* ---------------- Section rail ---------------- */
.page-home .section-rail {
  position: sticky;
  top: 0;
  z-index: 6;
  background: rgba(5, 10, 24, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.page-home .section-rail__inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 11px;
  padding-bottom: 11px;
  scrollbar-width: none;
}

.page-home .section-rail__inner::-webkit-scrollbar {
  display: none;
}

.page-home .section-rail .toc-link {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.page-home .section-rail .toc-link:hover {
  color: var(--fog);
  border-color: #2C4066;
}

.page-home .section-rail .toc-link.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(43, 245, 208, .1);
}

/* ---------------- Common section pieces ---------------- */
.page-home .section {
  position: relative;
  padding: clamp(44px, 8vw, 88px) 0;
}

.page-home .section-head {
  max-width: 46rem;
  margin-bottom: clamp(22px, 4vw, 38px);
}

.page-home .section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  padding-left: 12px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan);
  text-transform: uppercase;
}

.page-home .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--cyan);
  transition: width .25s ease;
}

.page-home .section-title.is-active::before {
  width: 6px;
}

.page-home .section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 4.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--fog);
}

.page-home .section-head .lede {
  margin: 0;
  max-width: 44ch;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------------- Filter / fixtures ---------------- */
.page-home .screen-grid {
  display: grid;
  gap: var(--home-gap);
}

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

.page-home .chip {
  appearance: none;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.page-home .chip:hover {
  color: var(--fog);
  border-color: #2C4066;
}

.page-home .chip.is-active,
.page-home .chip[aria-pressed="true"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 600;
}

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

.page-home .fixture {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.page-home .fixture:hover {
  background: rgba(16, 30, 60, .5);
}

.page-home .fixture[hidden] {
  display: none;
}

.page-home .fixture__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-data);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.page-home .fixture__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.page-home .fixture__league {
  font-size: 15px;
  font-weight: 600;
  color: var(--fog);
}

.page-home .fixture__round {
  font-size: 12px;
  color: var(--mist);
}

.page-home .fixture__day {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .screen-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--mist);
}

.page-home .screen-side {
  margin: 0;
}

.page-home .screen-cap,
.page-home .export-cap {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------------- Device handoff ---------------- */
.page-home .section--device {
  background: linear-gradient(180deg, rgba(11, 20, 40, .6), rgba(5, 10, 24, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .handoff {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 2.6vw, 26px);
}

.page-home .handoff__step {
  position: relative;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.page-home .handoff__num {
  position: absolute;
  top: 10px;
  left: 0;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--violet);
}

.page-home .handoff__step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--fog);
}

.page-home .handoff__step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------------- Records track ---------------- */
.page-home .section--records {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-home .records-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-home .records-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .17;
  mix-blend-mode: screen;
}

.page-home .section--records .container {
  position: relative;
  z-index: 1;
}

.page-home .track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.page-home .track__item {
  flex: 0 0 min(252px, 74vw);
  scroll-snap-align: start;
  padding: 18px 18px 22px;
  background: linear-gradient(180deg, rgba(16, 30, 60, .9), rgba(11, 20, 40, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  transition: border-color .25s ease, transform .25s ease;
}

.page-home .track__item:hover {
  border-color: rgba(43, 245, 208, .45);
  transform: translateY(-2px);
}

.page-home .track__idx {
  display: block;
  margin-bottom: 26px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-home .track__item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--fog);
}

.page-home .track__item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .track-hint {
  margin: 4px 0 22px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .records-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Export ---------------- */
.page-home .export-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .export-panel {
  margin-bottom: 10px;
  background: rgba(11, 20, 40, .62);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.page-home .export-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fog);
  cursor: pointer;
  list-style: none;
}

.page-home .export-panel summary::-webkit-details-marker {
  display: none;
}

.page-home .export-panel summary::after {
  content: "＋";
  font-family: var(--font-data);
  font-size: 15px;
  color: var(--cyan);
}

.page-home .export-panel[open] summary::after {
  content: "－";
}

.page-home .export-panel[open] summary {
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
}

.page-home .export-panel__body {
  padding: 14px 16px 18px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .export-panel__body p {
  margin: 0;
}

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

.page-home .export-list li {
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.page-home .export-list strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--fog);
}

.page-home .export-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-home .export-side {
  margin: 0;
}

/* ---------------- Rhythm ---------------- */
.page-home .section--rhythm {
  background: linear-gradient(180deg, rgba(16, 30, 60, .5), rgba(5, 10, 24, 0));
  border-top: 1px solid var(--line);
}

.page-home .rhythm {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-home .rhythm__row {
  display: grid;
  gap: 6px;
  padding: 16px clamp(14px, 2.4vw, 22px);
  background: var(--ink-1);
}

.page-home .rhythm__time {
  font-family: var(--font-data);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.page-home .rhythm__row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-home .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--ink-1);
}

.page-home .stat__value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1;
  color: var(--fog);
}

.page-home .stat__value--accent {
  background: var(--grad-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.page-home .rhythm-note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 52ch;
}

/* ---------------- Closing CTA ---------------- */
.page-home .cta__inner {
  padding: clamp(24px, 5vw, 48px);
  background: linear-gradient(130deg, rgba(139, 92, 246, .18), rgba(5, 10, 24, .92) 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.page-home .cta__inner h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--fog);
}

.page-home .cta__inner .lede {
  margin: 0 0 20px;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Back to top ---------------- */
.page-home .home-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(16px, 4vw, 36px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(16, 30, 60, .94);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-panel);
  transition: border-color .2s ease, color .2s ease;
}

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

.page-home .home-top__text {
  letter-spacing: .04em;
}

/* ---------------- Responsive ---------------- */
@media (min-width: 720px) {
  .page-home .dossier {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 620px;
  }

  .page-home .dossier__cell--wide {
    grid-column: auto;
  }

  .page-home .rhythm__row {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: baseline;
    gap: 24px;
  }

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

@media (min-width: 900px) {
  .page-home .screen-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    align-items: start;
    gap: clamp(28px, 4vw, 48px);
  }

  .page-home .export-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
    align-items: start;
    gap: clamp(28px, 4vw, 48px);
  }

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

  .page-home .screen-side {
    margin-top: 8px;
  }
}

@media (max-width: 559px) {
  .page-home .hero__edge {
    right: -30%;
    width: 86%;
    opacity: .7;
  }

  .page-home .track__item {
    flex-basis: min(228px, 78vw);
  }

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

  .page-home .home-top {
    padding: 11px 13px;
  }
}
