.page-home {
  --home-clip: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  --home-clip-sm: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --home-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  background: var(--bg-deep);
}

.page-home .home-hero {
  position: relative;
  padding: 28px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-home .home-hero-frame {
  position: relative;
  width: 100%;
  max-width: 1320px;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(18, 26, 36, 0.94), rgba(11, 15, 20, 0.84)), var(--bg-card);
  clip-path: var(--home-clip);
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
}

.page-home .home-hero-frame-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .home-hero-frame-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.55) 0%, rgba(11, 15, 20, 0.78) 100%);
}

.page-home .home-hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(198, 255, 0, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}

.page-home .home-hero-rule {
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(198, 255, 0, 0.24);
  pointer-events: none;
}

.page-home .home-hero-top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-home .home-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 26, 36, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-weak);
}

.page-home .home-hero-status .status-dot {
  background: var(--accent-green);
}

.page-home .home-hero-body {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 28px;
  margin-top: 40px;
  flex: 1;
}

.page-home .home-hero-heading {
  position: relative;
}

.page-home .home-hero-index {
  display: inline-block;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.9;
  color: rgba(198, 255, 0, 0.24);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.page-home .home-hero-heading .vertical-meta {
  display: inline-block;
  margin-left: 14px;
  color: var(--accent-green);
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.3em;
}

.page-home .home-hero-heading h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-main);
  max-width: 900px;
}

.page-home .home-hero-lead {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-weak);
  max-width: 560px;
}

.page-home .home-hero-navwrap {
  background: linear-gradient(135deg, rgba(26, 38, 52, 0.92), rgba(18, 26, 36, 0.88));
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-green);
  padding: 18px;
  clip-path: var(--home-clip-sm);
}

.page-home .home-hero-navlabel {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-hero-navlabel::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent-green);
  display: inline-block;
}

.page-home .home-hero-navlist {
  background: transparent;
  border: none;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.page-home .home-hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-hero-metrics {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.page-home .home-hero-metric {
  background: rgba(18, 26, 36, 0.88);
  border: 1px solid var(--line);
  padding: 12px 10px;
  text-align: center;
  clip-path: var(--home-clip-sm);
}

.page-home .home-hero-metric-num {
  display: block;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 38px);
  color: var(--accent-green);
  line-height: 1;
}

.page-home .home-hero-metric-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-weak);
}

.page-home .home-refresh {
  padding: 56px 16px 40px;
}

.page-home .home-refresh-header {
  margin-bottom: 32px;
}

.page-home .home-refresh-body {
  display: grid;
  gap: 24px;
}

.page-home .home-refresh-scale {
  position: relative;
  min-height: 210px;
  background: linear-gradient(to top, rgba(198, 255, 0, 0.06), transparent 60%);
  border-bottom: 1px solid var(--line);
  padding-top: 40px;
}

.page-home .home-refresh-axis {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 64px;
  border-bottom: 2px solid var(--accent-silver);
  padding: 0 4px;
}

.page-home .home-refresh-tick {
  position: relative;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-weak);
}

.page-home .home-refresh-tick::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 1px;
  height: 10px;
  background: var(--line);
}

.page-home .home-refresh-zones {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .home-refresh-zone {
  position: absolute;
  bottom: 12px;
  height: 92px;
  background: linear-gradient(180deg, rgba(198, 255, 0, 0.22), rgba(198, 255, 0, 0.04));
  border-top: 3px solid var(--accent-green);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--accent-green);
}

.page-home .home-refresh-zone-noon {
  left: 35%;
  width: 25%;
}

.page-home .home-refresh-zone-eve {
  left: 65%;
  width: 30%;
  border-top-color: var(--accent-blue);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.04));
  color: var(--accent-blue);
}

.page-home .home-refresh-copy {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-blue);
  padding: 22px;
  clip-path: var(--home-clip-sm);
}

.page-home .home-refresh-copy p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
}

.page-home .home-refresh-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-refresh-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-weak);
}

.page-home .home-refresh-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  transform: rotate(45deg);
}

.page-home .home-board {
  padding: 40px 16px 56px;
  background: linear-gradient(180deg, transparent, rgba(18, 26, 36, 0.5), transparent);
}

.page-home .home-board-header {
  margin-bottom: 20px;
}

.page-home .home-board-intro {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-weak);
}

.page-home .home-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-home .home-league-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  clip-path: var(--home-clip-sm);
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .home-league-card:hover {
  border-color: rgba(198, 255, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--home-card-shadow);
}

.page-home .home-league-card-feature {
  grid-column: span 2;
  min-height: 240px;
}

.page-home .home-league-card-wide {
  grid-column: span 2;
}

.page-home .home-league-card-cta {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(26, 38, 52, 0.9), rgba(18, 26, 36, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(0, 229, 255, 0.4);
}

.page-home .home-league-heat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transition: opacity 0.4s var(--ease);
}

.page-home .home-league-card:hover .home-league-heat,
.page-home .home-league-card:focus-within .home-league-heat {
  opacity: 0.16;
}

.page-home .home-league-content {
  position: relative;
  z-index: 1;
  padding: 14px;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(11, 15, 20, 0.88));
}

.page-home .home-league-index {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.page-home .home-league-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.page-home .home-league-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-green);
  background: rgba(198, 255, 0, 0.1);
  border: 1px solid rgba(198, 255, 0, 0.28);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

.page-home .home-league-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(11, 15, 20, 0.92);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  padding: 16px;
  text-align: center;
}

.page-home .home-league-card:hover .home-league-overlay,
.page-home .home-league-card:focus-within .home-league-overlay {
  opacity: 1;
}

.page-home .home-league-overlay span {
  font-size: 13px;
  color: var(--text-main);
}

.page-home .home-league-more {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-green);
  padding-bottom: 2px;
}

.page-home .home-league-ctalink {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 150px;
  text-decoration: none;
  padding: 16px;
}

.page-home .home-league-cta-title {
  font-family: var(--font-data);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-blue);
}

.page-home .home-league-cta-text {
  font-size: 13px;
  color: var(--text-weak);
}

.page-home .home-board-legend {
  margin-top: 24px;
  justify-content: flex-start;
  gap: 18px;
}

.page-home .home-timeline {
  padding: 56px 16px;
}

.page-home .home-timeline-header {
  margin-bottom: 32px;
}

.page-home .home-timeline-wrap {
  display: grid;
  gap: 24px;
}

.page-home .home-timeline-visual {
  position: relative;
  overflow: hidden;
  clip-path: var(--home-clip-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

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

.page-home .home-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  border-left: 1px solid var(--line);
  margin-left: 10px;
}

.page-home .home-timeline-item {
  position: relative;
  margin: 0 0 16px;
  padding-left: 24px;
}

.page-home .home-timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 18px;
  width: 11px;
  height: 11px;
  background: var(--accent-green);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--bg-deep);
}

.page-home .home-timeline-item:nth-child(even)::before {
  background: var(--accent-blue);
}

.page-home .home-timeline-details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease);
}

.page-home .home-timeline-details[open] {
  border-color: rgba(198, 255, 0, 0.4);
}

.page-home .home-timeline-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  flex-wrap: wrap;
}

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

.page-home .home-timeline-summary:hover {
  color: var(--accent-green);
}

.page-home .home-timeline-index {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--accent-silver);
}

.page-home .home-timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
  min-width: 120px;
}

.page-home .home-timeline-tag {
  font-size: 12px;
  color: var(--accent-orange);
  border: 1px solid rgba(255, 138, 61, 0.4);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.page-home .home-timeline-body {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-weak);
}

.page-home .home-timeline-body p {
  margin: 0;
}

.page-home .home-wrapup {
  padding: 40px 16px 64px;
  position: relative;
}

.page-home .home-wrapup-header {
  margin-bottom: 28px;
}

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

.page-home .home-wrapup-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 24px 20px;
  clip-path: var(--home-clip-sm);
  border-left: 3px solid var(--accent-green);
}

.page-home .home-wrapup-card:nth-child(2) {
  border-left-color: var(--accent-blue);
}

.page-home .home-wrapup-card:nth-child(3) {
  border-left-color: var(--accent-orange);
}

.page-home .home-wrapup-num {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.page-home .home-wrapup-card:nth-child(2) .home-wrapup-num {
  color: var(--accent-blue);
}

.page-home .home-wrapup-card:nth-child(3) .home-wrapup-num {
  color: var(--accent-orange);
}

.page-home .home-wrapup-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
}

.page-home .home-wrapup-state {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--accent-silver);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}

.page-home .home-wrapup-card p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-weak);
}

.page-home .home-wrapup-visual {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  clip-path: var(--home-clip-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

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

.page-home .home-wrapup-link {
  margin-top: 24px;
}

@media (min-width: 640px) {
  .page-home .home-hero-frame {
    padding: 36px 32px 28px;
  }

  .page-home .home-hero-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-board-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .page-home .home-league-card-feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  .page-home .home-league-card-wide {
    grid-column: span 2;
  }

  .page-home .home-league-card-cta {
    grid-column: span 1;
  }

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

  .page-home .home-wrapup-img {
    height: 200px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    min-height: 680px;
    padding: 40px 24px;
  }

  .page-home .home-hero-frame {
    min-height: 620px;
  }

  .page-home .home-hero-body {
    grid-template-columns: 6fr 6fr;
    align-items: center;
    gap: 32px;
  }

  .page-home .home-hero-metrics {
    margin-top: 32px;
  }

  .page-home .home-refresh {
    padding: 72px 24px 56px;
  }

  .page-home .home-refresh-body {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 40px;
  }

  .page-home .home-refresh-scale {
    min-height: 260px;
  }

  .page-home .home-refresh-copy {
    padding: 28px;
  }

  .page-home .home-board {
    padding: 56px 24px 72px;
  }

  .page-home .home-board-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, minmax(96px, auto));
    gap: 16px;
  }

  .page-home .home-league-card {
    grid-column: span 2;
    min-height: 96px;
  }

  .page-home .home-league-card-feature {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 240px;
  }

  .page-home .home-league-card-wide {
    grid-column: span 4;
  }

  .page-home .home-league-card-cta {
    grid-column: span 4;
    min-height: 96px;
  }

  .page-home .home-league-content {
    padding: 18px;
  }

  .page-home .home-league-name {
    font-size: 18px;
  }

  .page-home .home-timeline {
    padding: 72px 24px;
  }

  .page-home .home-timeline-wrap {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 36px;
  }

  .page-home .home-timeline-img {
    min-height: 420px;
  }

  .page-home .home-timeline-list {
    margin-left: 12px;
  }

  .page-home .home-wrapup {
    padding: 56px 24px 80px;
  }

  .page-home .home-wrapup-card {
    padding: 32px 28px;
  }

  .page-home .home-wrapup-img {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero-mesh,
  .page-home .home-refresh-zone,
  .page-home .home-league-overlay {
    transition: none;
  }

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

  .page-home .home-league-overlay {
    opacity: 0;
  }
}
