.page-home .ph-cover {
  position: relative;
  overflow: hidden;
  background: var(--wc-ink);
  color: var(--wc-paper);
  padding: 44px 0 36px;
}

.page-home .ph-cover__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  opacity: .2;
  filter: grayscale(1) contrast(1.15);
  pointer-events: none;
}

.page-home .ph-cover__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(17, 17, 17, .97) 0%, rgba(17, 17, 17, .93) 44%, rgba(17, 17, 17, .6) 100%);
  pointer-events: none;
}

.page-home .ph-cover__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}

.page-home .ph-cover__ctx {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--wc-fs-num);
  letter-spacing: .14em;
  color: var(--wc-gold);
}

.page-home .ph-cover__ctx-dot {
  width: 12px;
  height: 1px;
  background: rgba(212, 160, 23, .6);
}

.page-home .ph-cover__title {
  position: relative;
  margin: 20px 0 0;
  padding-left: 20px;
  font-family: var(--wc-font-serif);
  font-size: var(--wc-fs-cover);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--wc-paper);
}

.page-home .ph-cover__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .08em;
  bottom: .08em;
  width: 5px;
  background: var(--wc-gold);
}

.page-home .ph-cover__lead {
  display: grid;
  gap: 12px;
  max-width: 48ch;
  margin-top: 24px;
  font-size: var(--wc-fs-body);
  line-height: 1.65;
  color: rgba(247, 245, 240, .84);
}

.page-home .ph-cover__lead p {
  margin: 0;
}

.page-home .ph-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-home .ph-cover__index {
  border-top: 1px solid rgba(212, 160, 23, .4);
  padding-top: 14px;
}

.page-home .ph-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.page-home .ph-index__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(247, 245, 240, .14);
  color: var(--wc-paper);
  font-size: var(--wc-fs-note);
  text-decoration: none;
  transition: color .18s var(--wc-ease), border-color .18s var(--wc-ease);
}

.page-home .ph-index__link .wc-mono {
  font-size: var(--wc-fs-num);
  letter-spacing: .1em;
  color: var(--wc-gold);
}

.page-home .ph-index__link:hover,
.page-home .ph-index__link:focus-visible {
  color: var(--wc-gold);
  border-bottom-color: var(--wc-gold);
}

.page-home .ph-version__row {
  display: grid;
  gap: 26px;
  align-items: start;
}

.page-home .ph-version__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid var(--wc-gold);
  background: var(--wc-gold-light);
  width: fit-content;
}

.page-home .ph-version__badge img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
}

.page-home .ph-version__badge-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--wc-gold-dark);
}

.page-home .ph-version__pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 4;
  width: min(300px, 78vw);
  margin: 0;
  padding: 12px 14px;
  background: var(--wc-ink);
  color: var(--wc-paper);
  border-left: 3px solid var(--wc-gold);
  font-size: var(--wc-fs-note);
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--wc-ease), transform .18s var(--wc-ease), visibility .18s var(--wc-ease);
}

.page-home .ph-version__badge:hover .ph-version__pop,
.page-home .ph-version__badge:focus .ph-version__pop,
.page-home .ph-version__badge:focus-within .ph-version__pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-home .ph-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .ph-flow__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(17, 17, 17, .16);
  background: rgba(255, 255, 255, .68);
  font-size: var(--wc-fs-note);
  line-height: 1.4;
  color: var(--wc-ink);
}

.page-home .ph-version__foot {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 17, 17, .12);
  font-size: var(--wc-fs-note);
  line-height: 1.7;
  color: var(--wc-slate);
}

.page-home .ph-inline-link {
  color: var(--wc-gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--wc-gold);
  padding-bottom: 1px;
}

.page-home .ph-inline-link:hover,
.page-home .ph-inline-link:focus-visible {
  color: var(--wc-seal);
  border-bottom-color: var(--wc-seal);
}

.page-home .ph-library__grid {
  display: grid;
  gap: 30px;
}

.page-home .ph-tabs .wc-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(17, 17, 17, .22);
}

.page-home .ph-tabs .wc-tab {
  appearance: none;
  border: 0;
  background: transparent;
  margin-bottom: -1px;
  padding: 11px 22px;
  font-family: var(--wc-font-sans);
  font-size: var(--wc-fs-body);
  font-weight: 700;
  color: var(--wc-gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .18s var(--wc-ease), border-color .18s var(--wc-ease);
}

.page-home .ph-tabs .wc-tab[aria-selected="true"] {
  color: var(--wc-ink);
  border-bottom-color: var(--wc-gold);
}

.page-home .ph-tabs .wc-tab:hover {
  color: var(--wc-ink);
}

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

.page-home .ph-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .ph-doc {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid rgba(17, 17, 17, .1);
}

.page-home .ph-doc__num {
  font-size: var(--wc-fs-num);
  letter-spacing: .06em;
  color: var(--wc-gold-dark);
}

.page-home .ph-doc__name {
  font-size: var(--wc-fs-body);
  font-weight: 600;
  line-height: 1.45;
  color: var(--wc-ink);
}

.page-home .ph-doc__meta {
  grid-column: 2;
  font-size: var(--wc-fs-note);
  color: var(--wc-slate);
}

.page-home .ph-tabs__foot {
  margin: 22px 0 0;
}

.page-home .ph-library__figure {
  margin: 0;
  border: 1px solid rgba(17, 17, 17, .16);
}

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

.page-home .ph-hub__board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--wc-ink);
  border-left: 1px solid var(--wc-ink);
}

.page-home .ph-hub__cell {
  display: grid;
  gap: 6px;
  padding: 22px 20px 24px;
  border-right: 1px solid var(--wc-ink);
  border-bottom: 1px solid var(--wc-ink);
  background: rgba(255, 255, 255, .6);
  color: var(--wc-ink);
  text-decoration: none;
  transition: background .18s var(--wc-ease);
}

.page-home .ph-hub__cell:hover,
.page-home .ph-hub__cell:focus-visible {
  background: var(--wc-gold-light);
}

.page-home .ph-hub__no {
  font-size: var(--wc-fs-num);
  letter-spacing: .12em;
  color: var(--wc-gold-dark);
}

.page-home .ph-hub__group {
  font-size: var(--wc-fs-note);
  letter-spacing: .1em;
  color: var(--wc-slate);
}

.page-home .ph-hub__entry {
  font-family: var(--wc-font-serif);
  font-size: var(--wc-fs-sub);
  font-weight: 700;
  line-height: 1.3;
}

.page-home .ph-hub__desc {
  font-size: var(--wc-fs-note);
  line-height: 1.6;
  color: var(--wc-charcoal);
}

.page-home .ph-revisit__figure {
  margin: 0 0 32px;
  border: 1px solid rgba(17, 17, 17, .16);
  background: var(--wc-paper);
}

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

.page-home .ph-axis {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .ph-axis::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 8px;
  bottom: 22px;
  width: 1px;
  background: rgba(17, 17, 17, .2);
}

.page-home .ph-axis__node {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 22px;
  padding-bottom: 26px;
}

.page-home .ph-axis__node:last-child {
  padding-bottom: 0;
}

.page-home .ph-axis__tick {
  font-size: var(--wc-fs-num);
  letter-spacing: .08em;
  color: var(--wc-slate);
  padding-top: 3px;
}

.page-home .ph-axis__dot {
  position: absolute;
  left: 70px;
  top: 5px;
  width: 11px;
  height: 11px;
  transform: translateX(-50%);
  background: var(--wc-gold);
  border: 2px solid var(--wc-sand);
}

.page-home .ph-axis__node--next .ph-axis__dot {
  background: var(--wc-sand);
  border-color: var(--wc-gold);
}

.page-home .ph-axis__body {
  display: grid;
  gap: 6px;
}

.page-home .ph-axis__title {
  margin: 0;
  font-family: var(--wc-font-serif);
  font-size: var(--wc-fs-sub);
  font-weight: 700;
  line-height: 1.3;
  color: var(--wc-ink);
}

.page-home .ph-axis__desc {
  margin: 0;
  font-size: var(--wc-fs-note);
  line-height: 1.65;
  color: var(--wc-charcoal);
}

.page-home .ph-tail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px solid var(--wc-ink);
  background: var(--wc-paper);
}

.page-home .ph-tail__text {
  margin: 0;
  font-size: var(--wc-fs-body);
  line-height: 1.6;
  color: var(--wc-ink);
}

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

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

@media (min-width: 900px) {
  .page-home .ph-cover {
    padding: 62px 0 46px;
  }

  .page-home .ph-cover__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(292px, .85fr);
    align-items: end;
    column-gap: 52px;
    row-gap: 40px;
  }

  .page-home .ph-cover__index {
    padding-bottom: 4px;
  }

  .page-home .ph-index__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .ph-version__row {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 40px;
  }

  .page-home .ph-library__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .ph-axis::before {
    left: 96px;
  }

  .page-home .ph-axis__node {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 28px;
  }

  .page-home .ph-axis__dot {
    left: 96px;
  }
}

@media (min-width: 1120px) {
  .page-home .ph-doc {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-version__pop,
  .page-home .ph-index__link,
  .page-home .ph-hub__cell,
  .page-home .ph-tabs .wc-tab {
    transition: none;
  }
}
