.page-home {
  --home-gap: 1.5rem;
  position: relative;
  background: var(--c-deep);
  color: var(--c-white);
}

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

.page-home .home-ticker {
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: .7rem 1.25rem;
  background: var(--c-deep);
  border-block: 2px solid var(--c-accent);
  overflow: hidden;
}

.page-home .home-ticker__brand {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--c-accent);
  white-space: nowrap;
}

.page-home .home-ticker__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.page-home .home-ticker__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: pagehome-ticker 30s linear infinite;
}

.page-home .home-ticker__viewport:hover .home-ticker__track,
.page-home .home-ticker__viewport:focus-within .home-ticker__track {
  animation-play-state: paused;
}

.page-home .home-ticker__item {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--c-white);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.page-home .home-ticker__item:hover,
.page-home .home-ticker__item:focus-visible {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  outline: none;
}

.page-home .home-ticker__more {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: .78rem;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  padding: .22rem .55rem;
  transition: background .18s ease, color .18s ease;
}

.page-home .home-ticker__more:hover {
  background: var(--c-accent);
  color: var(--c-deep);
}

@keyframes pagehome-ticker {
  to {
    transform: translateX(-50%);
  }
}

.page-home .hero {
  position: relative;
  display: grid;
  gap: var(--home-gap);
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.6rem;
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 42px, rgba(158, 212, 194, .05) 42px 44px);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 18rem;
  height: 18rem;
  background:
    radial-gradient(circle, rgba(212, 255, 0, .18) 0, transparent 62%),
    linear-gradient(135deg, var(--c-accent) 0 3px, transparent 3px) 0 0 / 30px 30px;
  transform: rotate(12deg);
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.page-home .hero__copy,
.page-home .hero__scores,
.page-home .hero__visual {
  position: relative;
  z-index: 1;
}

.page-home .hero__overline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .8rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.page-home .hero__overline::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--c-accent);
}

.page-home .hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.page-home .hero__lead {
  max-width: 56ch;
  margin: 0 0 1.4rem;
  font-size: clamp(.92rem, 1.4vw, 1.08rem);
  line-height: 1.75;
  color: var(--c-mist);
}

.page-home .hero__lead a {
  color: var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.page-home .hero__scores {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: rgba(5, 31, 23, .78);
  border: var(--border-thin) solid var(--c-outline);
  box-shadow: var(--shadow-card);
}

.page-home .hero__score {
  display: grid;
  gap: .65rem;
  padding: 1rem;
  background: var(--c-panel);
  border-left: var(--border-thick) solid var(--c-accent);
}

.page-home .hero__score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.page-home .hero__score-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--c-mist);
  letter-spacing: .04em;
}

.page-home .hero__score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
}

.page-home .hero__team {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
}

.page-home .hero__team:first-child {
  text-align: right;
}

.page-home .hero__team:last-child {
  text-align: left;
}

.page-home .hero__nums {
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  color: var(--c-accent);
  line-height: 1;
}

.page-home .hero__colon {
  color: var(--c-mist);
  font-size: .78em;
}

.page-home .hero__score-foot {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-mist);
}

.page-home .hero__metrics {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: .3rem 1rem;
  padding: .7rem .4rem .2rem;
}

.page-home .hero__metric-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--c-accent);
}

.page-home .hero__metric-num small {
  font-size: .62em;
  color: var(--c-mist);
}

.page-home .hero__metric-label {
  color: var(--c-mist);
  font-size: .8rem;
}

.page-home .hero__metric-line {
  height: 1px;
  background: var(--c-outline);
}

.page-home .hero__visual {
  position: relative;
  min-height: 320px;
  max-height: 540px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.8rem), 0 100%);
}

.page-home .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .hero__visual-tag {
  position: absolute;
  right: .85rem;
  bottom: 1.2rem;
  background: var(--c-deep);
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: .74rem;
  padding: .3rem .6rem;
}

.page-home .board {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.page-home .board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 32px, rgba(46, 125, 99, .12) 32px 34px);
  pointer-events: none;
}

.page-home .board__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: var(--border-thick) solid var(--c-outline);
}

.page-home .section-head__index {
  font-family: var(--font-mono);
  font-size: .92rem;
  color: var(--c-accent);
  flex: 0 0 auto;
}

.page-home .section-head__title {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.page-home .section-head__sub {
  margin: .35rem 0 0;
  max-width: 46ch;
  color: var(--c-mist);
  font-size: .88rem;
  line-height: 1.65;
}

.page-home .board__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--board-gap);
}

.page-home .bento {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--c-panel);
  border: var(--border-thin) solid var(--c-outline);
  border-top: var(--border-thick) solid var(--c-accent);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.page-home .bento::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2.6rem;
  height: 2.6rem;
  background: linear-gradient(135deg, transparent 50%, var(--c-deep) 50%);
  border-bottom: 1px solid var(--c-accent);
  pointer-events: none;
}

.page-home .bento__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.page-home .bento__index {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--c-mist);
}

.page-home .bento__title {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.page-home .bento__text {
  margin: 0;
  color: var(--c-mist);
  font-size: .9rem;
  line-height: 1.75;
}

.page-home .bento__note {
  margin: 0;
  color: var(--c-mist);
  font-size: .82rem;
  line-height: 1.6;
}

.page-home .speed-desk {
  display: grid;
  gap: .75rem;
  margin-top: .2rem;
}

.page-home .speed-desk__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .6rem;
  padding: .85rem .9rem;
  background: var(--c-deep);
  border-left: 3px solid var(--c-accent);
}

.page-home .speed-desk__team {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
}

.page-home .speed-desk__team:first-child {
  text-align: right;
}

.page-home .speed-desk__team:last-child {
  text-align: left;
}

.page-home .speed-desk__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--c-accent);
  white-space: nowrap;
}

.page-home .heat-layout {
  display: grid;
  gap: 1rem;
}

.page-home .heat {
  display: grid;
  gap: .4rem;
  font-size: .8rem;
}

.page-home .heat__row {
  display: grid;
  grid-template-columns: 3.1rem repeat(5, 1fr);
  gap: .3rem;
  align-items: center;
}

.page-home .heat__row--head {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--c-mist);
}

.page-home .heat__team {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .76rem;
  line-height: 1.3;
  color: var(--c-mist);
}

.page-home .heat__cell {
  position: relative;
  padding: .52rem .18rem;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .82rem;
  color: var(--c-white);
  border: 1px solid rgba(46, 125, 99, .55);
  background-color: rgba(18, 122, 91, .35);
  background-color: rgba(212, 255, 0, calc(.07 + var(--int, .3) * .5));
}

.page-home .heat__cell b {
  font-weight: 700;
}

.page-home .heat__tip {
  position: absolute;
  bottom: calc(100% + .45rem);
  left: 50%;
  z-index: 5;
  transform: translateX(-50%) translateY(4px);
  background: var(--c-deep);
  border: 1px solid var(--c-accent);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .35rem .5rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.page-home .heat__cell:hover .heat__tip,
.page-home .heat__cell:focus-within .heat__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.page-home .heat-side {
  display: grid;
  gap: .6rem;
  align-content: start;
}

.page-home .heat-side__figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: var(--border-thin) solid var(--c-outline);
}

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

.page-home .heat-side__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.5;
  color: var(--c-mist);
}

.page-home .heat-bars {
  display: grid;
  gap: .55rem;
  margin-top: .2rem;
}

.page-home .heat-bars__col {
  display: grid;
  grid-template-columns: 4.4rem 1fr 6.4rem;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
}

.page-home .heat-bars__team {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--c-white);
}

.page-home .heat-bars__bar {
  display: block;
  height: .6rem;
  background: rgba(158, 212, 194, .12);
}

.page-home .heat-bars__bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--c-data), var(--c-accent));
}

.page-home .heat-bars__val {
  font-family: var(--font-mono);
  color: var(--c-mist);
}

.page-home .bwin-demo {
  display: grid;
  gap: 1rem;
  padding: .9rem;
  background: var(--c-deep);
  border: 1px solid var(--c-outline);
}

.page-home .bwin-demo__list {
  display: grid;
  gap: .5rem;
  align-content: start;
}

.page-home .bwin-demo__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .4rem;
  align-items: center;
  font-size: .82rem;
  padding: .5rem .55rem;
  background: rgba(15, 76, 58, .6);
  border-left: 2px solid var(--c-accent);
}

.page-home .bwin-demo__row b {
  font-family: var(--font-mono);
  color: var(--c-accent);
  font-size: .9rem;
}

.page-home .bwin-demo__side {
  display: grid;
  gap: .65rem;
}

.page-home .bwin-demo__stand {
  border: 1px solid var(--c-outline);
  background: var(--c-panel);
}

.page-home .bwin-demo__stdrow {
  display: grid;
  grid-template-columns: 1.6rem 1fr 2rem;
  gap: .4rem;
  align-items: center;
  padding: .48rem .6rem;
  font-size: .8rem;
  border-bottom: 1px dashed rgba(46, 125, 99, .45);
}

.page-home .bwin-demo__stdrow:last-child {
  border-bottom: none;
}

.page-home .bwin-demo__stdrow b {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--c-accent);
}

.page-home .bwin-demo__drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .7rem;
  background: var(--c-hover);
}

.page-home .bwin-demo__drawer-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--c-white);
}

.page-home .bwin-demo__drawer-dots {
  display: flex;
  gap: .3rem;
}

.page-home .bwin-demo__drawer-dots i {
  font-style: normal;
  font-weight: 700;
  font-size: .68rem;
  padding: .08rem .3rem;
  background: var(--c-accent);
  color: var(--c-deep);
}

.page-home .bwin-demo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.page-home .os-card {
  position: relative;
  width: 220px;
  height: 420px;
  margin: .4rem auto;
  perspective: 1200px;
  cursor: pointer;
}

.page-home .os-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .45s ease;
}

.page-home .os-card:hover .os-card__inner,
.page-home .os-card:focus .os-card__inner,
.page-home .os-card:focus-within .os-card__inner {
  transform: rotateY(180deg);
}

.page-home .os-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--c-outline);
  box-shadow: var(--shadow-card);
  background: var(--c-primary);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

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

.page-home .os-card__face--back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  background: var(--c-deep);
  border-top: 4px solid var(--c-accent);
}

.page-home .os-card__list {
  list-style: none;
  margin: 0;
  padding: 1.2rem;
  display: grid;
  gap: .85rem;
}

.page-home .os-card__list li {
  padding-left: .9rem;
  border-left: 2px solid var(--c-accent);
  font-size: .82rem;
  line-height: 1.55;
  color: var(--c-white);
}

.page-home .history-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .6rem;
}

.page-home .history-rail__card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  display: grid;
  gap: .45rem;
  padding: 1rem;
  background: var(--c-deep);
  border: var(--border-thin) solid var(--c-outline);
  transition: background .2s ease, border-color .2s ease;
}

.page-home .history-rail__card:hover,
.page-home .history-rail__card:focus-visible {
  background: var(--c-hover);
  border-color: var(--c-accent);
}

.page-home .history-rail__period {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-accent);
}

.page-home .history-rail__card strong {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
}

.page-home .history-rail__card span:last-child {
  color: var(--c-mist);
  font-size: .82rem;
  line-height: 1.55;
}

.page-home .history-media {
  margin: .8rem 0 0;
  border: var(--border-thin) solid var(--c-outline);
  overflow: hidden;
}

.page-home .history-media img {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .2rem;
}

@media (min-width: 640px) {
  .page-home .hero {
    grid-template-columns: repeat(12, 1fr);
    padding-top: 2.8rem;
  }

  .page-home .hero__copy {
    grid-column: span 7;
  }

  .page-home .hero__scores {
    grid-column: 8 / 13;
    align-self: start;
  }

  .page-home .hero__visual {
    grid-column: 1 / 13;
    grid-row: 2;
  }

  .page-home .heat-layout {
    grid-template-columns: 1fr 42%;
  }

  .page-home .bwin-demo {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
    padding: 3.4rem 1.5rem 3rem;
  }

  .page-home .hero__copy,
  .page-home .hero__scores,
  .page-home .hero__visual {
    grid-column: auto;
    grid-row: auto;
  }

  .page-home .hero__visual {
    min-height: 420px;
    max-height: none;
    align-self: stretch;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.6rem), 0 100%);
  }

  .page-home .board__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-areas:
      "scores scores scores scores scores heat heat heat heat heat heat heat"
      "bwin bwin bwin bwin bwin bwin os os os os os os"
      "history history history history history history history history history history history history";
  }

  .page-home .bento--scores {
    grid-area: scores;
  }

  .page-home .bento--heat {
    grid-area: heat;
  }

  .page-home .bento--bwin {
    grid-area: bwin;
  }

  .page-home .bento--os {
    grid-area: os;
  }

  .page-home .bento--history {
    grid-area: history;
  }

  .page-home .heat-layout {
    grid-template-columns: 1fr 190px;
  }

  .page-home .heat__row {
    grid-template-columns: 3.6rem repeat(5, 1fr);
  }

  .page-home .history-rail__card {
    flex-basis: 280px;
  }
}

.page-home {
  --int: transparent;
  --w: 1rem;
}
