.page-home {
  --home-x: 20px;
  --home-gap: 72px;
  --home-cut: 18px;
  display: block;
  background: var(--ink-void);
  color: var(--moon);
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .page-home {
    --home-x: 36px;
    --home-gap: 96px;
  }
}

@media (min-width: 1024px) {
  .page-home {
    --home-x: 48px;
    --home-gap: 128px;
  }
}

.page-home .section {
  padding-top: var(--home-gap);
  padding-bottom: var(--home-gap);
}

/* ---------- HERO ---------- */

.page-home .hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--top) + 56px) 0 56px;
  min-height: 84vh;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.page-home .hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  opacity: 0.42;
  filter: saturate(0.72) brightness(0.68);
}

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(130% 78% at 8% 92%, rgba(6, 13, 28, 0.4) 0%, rgba(6, 13, 28, 0.96) 64%),
    linear-gradient(180deg, rgba(6, 13, 28, 0.86) 0%, rgba(6, 13, 28, 0.5) 42%, rgba(6, 13, 28, 0.97) 100%);
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
}

.page-home .hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dust);
}

.page-home .hero__crumbs-code {
  padding: 3px 8px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.page-home .hero__eyebrow {
  margin: 0;
}

.page-home .hero__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 12vw, 118px);
  line-height: 0.94;
  letter-spacing: 0.02em;
}

.page-home .hero__title-main {
  display: block;
  color: var(--moon);
}

.page-home .hero__title-sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(19px, 4.4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-home .hero__lead {
  max-width: 40em;
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dust);
}

.page-home .hero__coords {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 44px 0 0;
  padding: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .page-home .hero__coords {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .coord-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px 24px;
  background: rgba(13, 26, 50, 0.72);
  backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease);
}

.page-home .coord-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.35s var(--ease);
}

.page-home .coord-item:hover,
.page-home .coord-item:focus-within {
  background: var(--ink-stand);
}

.page-home .coord-item:hover::before,
.page-home .coord-item:focus-within::before {
  height: 100%;
}

.page-home .coord-item__idx {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.page-home .coord-item__link {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--moon);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .coord-item__link:hover,
.page-home .coord-item__link:focus-visible {
  color: var(--gold);
  border-color: var(--gold-line);
}

.page-home .coord-item__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dust);
}

.page-home .coord-item__reveal {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  opacity: 0;
  transform: translateY(4px);
  transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.page-home .coord-item:hover .coord-item__reveal,
.page-home .coord-item:focus-within .coord-item__reveal {
  max-height: 60px;
  opacity: 1;
  transform: translateY(0);
}

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

@media (min-width: 1024px) {
  .page-home .hero__note {
    display: block;
    position: absolute;
    right: 0;
    top: 4px;
    margin: 0;
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.34em;
    color: var(--dust);
    opacity: 0.75;
  }
}

/* ---------- BOARD ---------- */

.page-home .board {
  background: linear-gradient(180deg, var(--ink-void) 0%, var(--ink-night) 55%, var(--ink-void) 100%);
}

.page-home .board__head {
  max-width: 46em;
}

.page-home .board__intro {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dust);
}

.page-home .board__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 46px;
}

@media (min-width: 1024px) {
  .page-home .board__layout {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 0.88fr);
    gap: 52px;
    align-items: start;
    margin-top: 60px;
  }
}

.page-home .board__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .page-home .board__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .match-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px 22px;
  background: var(--ink-night);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
  transition: background 0.28s var(--ease);
}

.page-home .match-card:hover {
  background: var(--ink-stand);
}

.page-home .match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .match-card__league {
  padding: 3px 9px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
}

.page-home .match-card__round {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dust);
}

.page-home .match-card__score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--moon);
}

.page-home .match-card__sep {
  font-size: 0.55em;
  color: var(--dust);
}

.page-home .match-card .micro-timeline {
  position: relative;
  height: 10px;
  margin: 2px 0 0;
}

.page-home .match-card .micro-timeline__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 2px;
  background: linear-gradient(90deg, rgba(159, 176, 200, 0.22), var(--gold-line));
}

.page-home .match-card .micro-timeline__mark {
  position: absolute;
  top: 0;
  width: 2px;
  height: 10px;
  transform: translateX(-1px);
}

.page-home .match-card .micro-timeline__mark--sub {
  background: var(--bench);
}

.page-home .match-card .micro-timeline__mark--added {
  background: var(--stoppage);
  height: 14px;
  top: -2px;
}

.page-home .match-card__foot {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  color: var(--dust);
}

.page-home .match-card__stoppage {
  font-size: 17px;
  font-weight: 700;
  color: var(--stoppage);
  letter-spacing: 0.02em;
}

.page-home .board__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-home .board__figure {
  margin: 0;
}

.page-home .board__figure .figure__media {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-home .board__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(20, 40, 74, 0.42);
}

.page-home .board__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--dust);
}

.page-home .board__link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 210, 227, 0.4);
}

.page-home .board__link:hover,
.page-home .board__link:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold-line);
}

/* ---------- TREND ---------- */

.page-home .trend {
  position: relative;
  isolation: isolate;
  background: var(--ink-stand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-home .trend__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .trend__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.6) brightness(0.6);
}

.page-home .trend::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 40, 74, 0.94) 0%, rgba(6, 13, 28, 0.86) 60%, rgba(20, 40, 74, 0.94) 100%);
}

.page-home .trend__inner {
  position: relative;
  z-index: 1;
}

.page-home .trend__head {
  max-width: 46em;
}

.page-home .trend__intro {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dust);
}

.page-home .trend__scroll {
  margin-top: 48px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0 6px;
}

.page-home .trend__svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.page-home .trend__grid {
  stroke: rgba(159, 176, 200, 0.14);
  stroke-width: 1;
}

.page-home .trend__axis {
  font-family: var(--font-mono);
  font-size: 18px;
  fill: var(--dust);
}

.page-home .trend__line {
  fill: none;
  stroke: var(--stoppage);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .trend__area {
  stroke: none;
}

.page-home .trend__dot {
  fill: var(--ink-void);
  stroke: var(--stoppage);
  stroke-width: 3;
}

.page-home .trend__dot--end {
  fill: var(--stoppage);
  stroke: var(--gold-soft);
  stroke-width: 2;
}

.page-home .trend__xlabel {
  font-family: var(--font-mono);
  font-size: 19px;
  fill: var(--dust);
  text-anchor: middle;
}

.page-home .trend__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 768px) {
  .page-home .trend__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .trend__stat {
  padding: 22px 20px 24px;
  background: rgba(6, 13, 28, 0.72);
}

.page-home .trend__stat .stat {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.page-home .trend__stat .stat__value {
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 700;
  line-height: 1;
}

.page-home .trend__stat .stat__unit {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--dust);
}

.page-home .trend__stat .stat__label {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dust);
}

.page-home .trend__foot {
  max-width: 48em;
  margin: 32px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--dust);
}

.page-home .trend__link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 210, 227, 0.4);
}

.page-home .trend__link:hover,
.page-home .trend__link:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold-line);
}

/* ---------- ATLAS ---------- */

.page-home .atlas {
  background: var(--ink-void);
}

.page-home .atlas__head {
  max-width: 46em;
}

.page-home .atlas__intro {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dust);
}

.page-home .atlas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 48px;
}

@media (min-width: 900px) {
  .page-home .atlas__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 26px;
    align-items: start;
  }
}

.page-home .atlas-card {
  position: relative;
  padding: 26px 22px 28px;
  border: 1px solid var(--line);
  background: var(--ink-night);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .atlas-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
}

.page-home .atlas-card__tag {
  display: inline-block;
  margin: 0;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  border: 1px solid rgba(99, 210, 227, 0.35);
}

.page-home .atlas-card .h-sub {
  margin: 16px 0 0;
}

.page-home .atlas-card__num {
  margin: 16px 0 0;
  font-size: clamp(38px, 9vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-home .atlas-card__unit {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--dust);
}

.page-home .atlas-card__body {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--dust);
}

.page-home .atlas-card__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .atlas-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dust);
}

.page-home .atlas-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--bench);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.page-home .atlas-card--history {
  border-left: 3px solid var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  background: linear-gradient(160deg, var(--ink-stand) 0%, var(--ink-night) 70%);
}

.page-home .atlas-card__ribbon {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
}

.page-home .atlas-card__ribbon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-line), rgba(159, 176, 200, 0.12));
}

.page-home .atlas-card__ribbon-dot {
  position: relative;
  width: 9px;
  height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-home .atlas-card--split {
  border-top: 2px solid var(--cyan);
  background: linear-gradient(200deg, rgba(13, 26, 50, 0.95), var(--ink-night));
}

.page-home .atlas-card__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .atlas-card__col {
  padding: 14px 12px 16px;
  background: var(--ink-void);
}

.page-home .atlas-card__col--alt {
  background: rgba(47, 191, 113, 0.08);
}

.page-home .atlas-card__col-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--bench);
}

.page-home .atlas-card__col-text {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--dust);
}

/* ---------- ROUTINE ---------- */

.page-home .routine {
  background: linear-gradient(180deg, var(--ink-void) 0%, var(--ink-night) 100%);
  border-top: 1px solid var(--line);
}

.page-home .routine__head {
  max-width: 46em;
}

.page-home .routine__intro {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dust);
}

.page-home .routine__steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 48px 0 0;
  padding: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

@media (min-width: 1080px) {
  .page-home .routine__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .routine-step {
  position: relative;
  padding: 24px 20px 26px;
  background: var(--ink-night);
}

.page-home .routine-step::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--stoppage), rgba(226, 87, 43, 0));
  opacity: 0.6;
}

.page-home .routine-step__idx {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--stoppage);
}

.page-home .routine-step__title {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--moon);
}

.page-home .routine-step__text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--dust);
}

.page-home .routine__note {
  max-width: 48em;
  margin: 34px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--dust);
}

.page-home .routine__link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 210, 227, 0.4);
}

.page-home .routine__link:hover,
.page-home .routine__link:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold-line);
}

/* ---------- OUTRO ---------- */

.page-home .outro {
  position: relative;
  isolation: isolate;
  padding-top: var(--home-gap);
  padding-bottom: calc(var(--home-gap) + 16px);
  overflow: hidden;
  background: var(--ink-void);
}

.page-home .outro__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .outro__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(0.6) brightness(0.62);
}

.page-home .outro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(110% 70% at 50% 100%, rgba(6, 13, 28, 0.7) 0%, rgba(6, 13, 28, 0.97) 70%);
}

.page-home .outro__inner {
  position: relative;
  z-index: 1;
}

.page-home .outro__title {
  margin: 16px 0 0;
}

.page-home .outro__lead {
  max-width: 42em;
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dust);
}

.page-home .outro__route {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 44px 0 0;
  padding: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .page-home .outro__route {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .route-item {
  padding: 24px 20px 26px;
  background: rgba(13, 26, 50, 0.82);
  transition: background 0.28s var(--ease);
}

.page-home .route-item:hover {
  background: var(--ink-stand);
}

.page-home .route-item__idx {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-home .route-item__title {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.page-home .route-item__link {
  color: var(--moon);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .route-item__link:hover,
.page-home .route-item__link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.page-home .route-item__text {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--dust);
}

.page-home .outro__contact {
  max-width: 44em;
  margin: 32px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--dust);
}

.page-home .outro__link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 210, 227, 0.4);
}

.page-home .outro__link:hover,
.page-home .outro__link:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold-line);
}

/* ---------- REVEAL ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .atlas-card,
  .page-home .match-card,
  .page-home .coord-item,
  .page-home .route-item {
    transition: none;
  }
}
</main>
