.page-home {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-panel) 42%, var(--bg-deep) 110%);
  color: var(--slate-light);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home a {
  text-decoration: none;
}

.page-home .home-hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  box-shadow: inset 0 -1px 0 rgba(136, 146, 176, .12);
}

.page-home .hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    rgba(136, 146, 176, .05) 0 1px,
    transparent 1px 76px
  );
}

.page-home .hero-flow {
  position: absolute;
  right: -10%;
  top: 0;
  width: min(46vw, 640px);
  height: 100%;
  pointer-events: none;
  opacity: .75;
}

.page-home .flow-a {
  fill: none;
  stroke: rgba(57, 255, 20, .42);
  stroke-width: 2;
  stroke-dasharray: 8 10;
}

.page-home .flow-b {
  fill: none;
  stroke: rgba(255, 107, 53, .32);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
}

.page-home .flow-node {
  fill: var(--bg-deep);
  stroke: var(--neon);
  stroke-width: 2;
}

.page-home .hero-layout {
  position: relative;
  display: grid;
  gap: 28px;
}

.page-home .hero-kicker {
  display: inline-block;
  margin-bottom: 16px;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 6.4vw, 58px);
  line-height: 1.04;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 18px;
  max-width: 14ch;
}

.page-home .hero-line {
  display: block;
}

.page-home .hero-lead {
  color: var(--slate-light);
  font-size: 16px;
  line-height: 1.75;
  max-width: 58ch;
  margin: 0 0 22px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.page-home .hero-meta-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.page-home .hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  border-top: 1px solid rgba(136, 146, 176, .24);
  padding-top: 16px;
  margin-top: 4px;
}

.page-home .hero-index a {
  color: var(--slate);
  font-size: 13px;
  font-family: var(--font-data);
  letter-spacing: .02em;
  transition: color .2s ease;
}

.page-home .hero-index a:hover,
.page-home .hero-index a:focus-visible {
  color: var(--neon);
}

.page-home .hero-media {
  position: relative;
  margin: 0;
  background: var(--bg-panel);
  padding: 6px 6px 0;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 12% 100%, 0 100%);
  box-shadow: var(--shadow);
}

.page-home .hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(1.3) contrast(1.06);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 16% 100%, 0 100%);
}

.page-home .hero-media figcaption {
  color: var(--neon);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 10px 14px 12px;
}

.page-home .home-status,
.page-home .home-focus,
.page-home .home-maintenance {
  padding: clamp(44px, 7vw, 84px) 0;
}

.page-home .home-metrics,
.page-home .home-index {
  padding: clamp(44px, 7vw, 84px) 0;
}

.page-home .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 18px;
}

.page-home .home-section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 38px);
  line-height: 1.1;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
}

.page-home .section-index {
  color: var(--neon);
  font-family: var(--font-data);
  font-size: 13px;
}

.page-home .section-note {
  color: var(--slate);
  font-size: 13px;
  letter-spacing: .02em;
}

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

.page-home .status-card {
  padding: 20px 18px 18px;
  border-left: 3px solid var(--neon);
  background: rgba(17, 34, 64, .82);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform .25s ease, border-color .25s ease;
}

.page-home .status-card:hover {
  border-left-color: var(--orange);
  transform: translateY(-2px);
}

.page-home .status-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .status-code {
  color: var(--neon);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
}

.page-home .status-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
}

.page-home .status-note {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.page-home .status-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: 12px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.page-home .status-link:hover {
  color: var(--white);
  border-bottom-color: var(--neon);
}

.page-home .metrics-wrap {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-home .metrics-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(57, 255, 20, .18);
  padding: clamp(18px, 3vw, 34px);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

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

.page-home .metric-item {
  border-top: 1px solid rgba(136, 146, 176, .22);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .metric-num {
  font-family: var(--font-data);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: -1px;
}

.page-home .metric-label {
  font-size: 13px;
  color: var(--slate);
}

.page-home .metrics-chart {
  margin: 0;
}

.page-home .metrics-chart img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--bg-panel);
  border: 1px solid rgba(136, 146, 176, .16);
}

.page-home .metrics-chart figcaption {
  color: var(--slate);
  font-size: 13px;
  line-height: 1.6;
  padding-top: 10px;
}

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

.page-home .focus-lead {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
  max-width: 68ch;
  margin: 0 0 22px;
}

.page-home .focus-visual {
  margin: 0;
  position: relative;
  max-width: 600px;
}

.page-home .focus-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(1.2);
  border-bottom: 3px solid var(--neon);
}

.page-home .focus-visual figcaption {
  color: var(--slate-light);
  font-family: var(--font-data);
  font-size: 12px;
  padding-top: 8px;
}

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

.page-home .home-match-card {
  height: 100%;
  background: var(--bg-panel);
  border: 1px solid rgba(136, 146, 176, .16);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .24s ease, background .24s ease;
}

.page-home .home-match-card:hover,
.page-home .home-match-card:focus-within {
  border-color: rgba(57, 255, 20, .55);
  background: rgba(17, 34, 64, .95);
}

.page-home .match-tag {
  color: var(--orange);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .05em;
}

.page-home .match-title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.35;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
}

.page-home .match-summary {
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease;
}

.page-home .home-match-card:hover .match-summary,
.page-home .home-match-card:focus-within .match-summary {
  max-height: 140px;
  opacity: 1;
}

.page-home .match-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: 12px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.page-home .match-link:hover {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.page-home .index-grid {
  display: grid;
  gap: 16px;
}

.page-home .index-panel {
  padding: 22px 20px;
  background: var(--bg-panel);
  border: 1px solid rgba(136, 146, 176, .14);
  display: flex;
  flex-direction: column;
}

.page-home .index-panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.page-home .index-panel p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
  margin: 0 0 16px;
}

.page-home .index-tags {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .index-tags li {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--slate-light);
  background: rgba(57, 255, 20, .07);
  border: 1px solid rgba(57, 255, 20, .16);
  padding: 5px 9px;
}

.page-home .venue-panel {
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid rgba(136, 146, 176, .14);
  display: flex;
  flex-direction: column;
}

.page-home .venue-panel img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 8% 100%, 0 100%);
}

.page-home .venue-panel figcaption {
  font-size: 12px;
  line-height: 1.65;
  color: var(--slate);
  padding: 14px 16px 16px;
}

.page-home .maintenance-wrap {
  display: grid;
  gap: 30px;
}

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

.page-home .maintenance-item {
  display: flex;
  gap: 14px;
  text-align: left;
}

.page-home .maintenance-mark {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--neon);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(57, 255, 20, .65);
}

.page-home .maintenance-item h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--white);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.page-home .maintenance-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--slate);
  margin: 0;
}

.page-home .maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .maintenance-graphic {
  background: var(--bg-panel);
  border: 1px solid rgba(57, 255, 20, .18);
  padding: 20px 18px 18px;
  position: relative;
  overflow: hidden;
}

.page-home .maintenance-svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .flow-main {
  fill: none;
  stroke: var(--neon);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 8;
}

.page-home .flow-alt {
  fill: none;
  stroke: rgba(255, 107, 53, .5);
  stroke-width: 1.5;
  stroke-dasharray: 3 8;
}

.page-home .node-main {
  fill: var(--bg-deep);
  stroke: var(--neon);
  stroke-width: 3;
}

.page-home .graphic-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-home .home-bridge {
  padding: clamp(44px, 7vw, 84px) 0;
  background: linear-gradient(90deg, rgba(57, 255, 20, .05), rgba(255, 107, 53, .04) 60%, rgba(0, 194, 255, .05));
  border-top: 1px solid rgba(57, 255, 20, .2);
}

.page-home .bridge-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.page-home .bridge-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate-light);
  max-width: 64ch;
  margin: 0;
}

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

@media (hover: none) {
  .page-home .match-summary {
    max-height: none;
    opacity: 1;
  }
}

@media (min-width: 720px) {
  .page-home .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .page-home .metrics-wrap {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .page-home .focus-wrap {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }

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

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

  .page-home .index-panel {
    grid-column: span 4;
  }

  .page-home .venue-panel {
    grid-column: span 4;
  }

  .page-home .maintenance-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .6fr);
    align-items: center;
  }

  .page-home .bridge-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1080px) {
  .page-home .hero-layout {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition: none !important;
    animation: none !important;
  }
}
