.page-home {
  --home-cut: 20px;
  --home-line: rgba(216, 198, 164, 0.2);
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
}

.page-home .wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

.page-home p {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.75;
}

/* ---------- hero ---------- */
.page-home .hero {
  position: relative;
  padding: 34px 0 46px;
  border-bottom: 2px solid var(--home-line);
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(36, 71, 107, 0.55) 0%, rgba(10, 22, 36, 0) 62%),
    linear-gradient(180deg, #0B1B2C 0%, var(--ink) 74%);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(216, 198, 164, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(216, 198, 164, 0.07) 1px, transparent 1px);
  background-size: 68px 68px;
  pointer-events: none;
}

.page-home .hero__grid {
  position: relative;
  display: grid;
  gap: 32px;
}

.page-home .hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.page-home .hero__kicker .u-mono {
  color: var(--paper);
}

.page-home .hero h1 {
  font-size: clamp(38px, 10vw, 58px);
  font-weight: 800;
  text-transform: none;
  color: var(--paper);
  margin-bottom: 18px;
}

.page-home .hero__lede {
  max-width: 46ch;
  font-size: 16px;
  color: rgba(242, 232, 214, 0.82);
}

.page-home .hero__index {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.page-home .hero__index li {
  border-bottom: 1px solid var(--home-line);
}

.page-home .hero__index a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 2px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  transition: color 140ms var(--ease), padding-left 140ms var(--ease);
}

.page-home .hero__index a:hover,
.page-home .hero__index a:focus-visible {
  color: var(--gold);
  padding-left: 8px;
}

.page-home .hero__no {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- big screen panel ---------- */
.page-home .screen {
  position: relative;
  min-height: 360px;
  border: 2px solid var(--gold);
  background: var(--field);
  box-shadow: var(--shadow-hard);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
  overflow: hidden;
  isolation: isolate;
}

.page-home .screen__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  opacity: 0.42;
  filter: saturate(0.8) contrast(1.1);
  z-index: -1;
}

.page-home .screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 22, 36, 0.9) 8%, rgba(16, 42, 38, 0.86) 58%, rgba(10, 22, 36, 0.94) 100%);
  z-index: -1;
}

.page-home .screen__body {
  display: grid;
  gap: 18px;
  padding: 20px 18px 24px;
}

.page-home .screen__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-edge);
}

.page-home .screen__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-light);
}

.page-home .screen__anchor {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--home-line);
}

.page-home .screen__big {
  font-family: var(--font-mono);
  font-size: clamp(52px, 16vw, 78px);
  font-weight: 700;
  line-height: 0.86;
  color: var(--gold);
}

.page-home .screen__unit {
  font-size: 0.36em;
  color: var(--ember);
  margin-left: 0.1em;
}

.page-home .screen__anchor-label {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(242, 232, 214, 0.72);
  max-width: 24ch;
  padding-bottom: 6px;
}

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

.page-home .screen__stats .stat {
  padding: 10px 12px;
  border-left: 2px solid var(--teal);
  background: rgba(216, 198, 164, 0.06);
}

.page-home .screen__stats .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .screen__stats .stat__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.page-home .screen__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 54px;
  padding-top: 6px;
}

.page-home .bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, var(--gold) 0%, var(--teal) 100%);
  opacity: 0.9;
}

.page-home .bar--1 { height: 38%; }
.page-home .bar--2 { height: 62%; }
.page-home .bar--3 { height: 46%; }
.page-home .bar--4 { height: 84%; }
.page-home .bar--5 { height: 56%; }
.page-home .bar--6 { height: 72%; }
.page-home .bar--7 { height: 44%; }
.page-home .bar--8 { height: 92%; }

.page-home .screen__foot {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- chapters ---------- */
.page-home .chapter {
  padding: 52px 0;
  border-top: 1px solid var(--home-line);
}

.page-home .chapter-head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.page-home .chapter-head__num {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  width: max-content;
}

.page-home .chapter-head__title {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  color: var(--paper);
}

.page-home .chapter-head__lede {
  max-width: 62ch;
  font-size: 15px;
  color: rgba(242, 232, 214, 0.78);
}

/* ---------- follow list ---------- */
.page-home .follow {
  display: grid;
  gap: 26px;
}

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

.page-home .follow__figure img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .follow__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-left: 2px solid var(--steel);
}

.page-home .follow__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--home-line);
  background: linear-gradient(90deg, rgba(16, 42, 38, 0.7) 0%, rgba(10, 22, 36, 0) 88%);
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}

.page-home .follow__item:hover,
.page-home .follow__item:focus-within {
  background: linear-gradient(90deg, rgba(200, 162, 74, 0.16) 0%, rgba(10, 22, 36, 0) 92%);
  transform: translateX(4px);
}

.page-home .follow__idx {
  font-size: 12px;
  color: var(--gold);
}

.page-home .follow__name {
  font-size: 14px;
  color: var(--paper);
}

.page-home .follow__num {
  font-size: 19px;
  font-weight: 700;
  color: var(--teal-light);
  white-space: nowrap;
}

.page-home .follow__unit {
  font-size: 11px;
  color: var(--slate);
  margin-left: 2px;
}

.page-home .follow__spark {
  grid-column: 2 / -1;
  width: 100%;
  height: 12px;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.page-home .follow__spark polyline {
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.page-home .follow__item:hover .follow__spark,
.page-home .follow__item:focus-within .follow__spark {
  opacity: 0.85;
}

.page-home .follow__note {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(242, 232, 214, 0.66);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

/* ---------- card types ---------- */
.page-home .cards {
  display: grid;
  gap: 16px;
}

.page-home .cards__item {
  padding: 20px 18px;
  background: var(--field);
  border: 1px solid var(--home-line);
  border-top: 3px solid var(--teal);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.page-home .cards__item--score {
  border-top-color: var(--ember);
  background: linear-gradient(150deg, rgba(228, 134, 59, 0.16) 0%, var(--field) 62%);
}

.page-home .cards__item--wide {
  border-top-color: var(--gold);
}

.page-home .cards__tag {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
}

.page-home .cards__text {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(242, 232, 214, 0.74);
}

/* ---------- views ---------- */
.page-home .views {
  display: grid;
  gap: 26px;
}

.page-home .views__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .views__list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 232, 214, 0.8);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .views__list .u-mono {
  color: var(--gold);
  font-size: 13px;
}

.page-home .views__link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 3px;
}

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

.page-home .views__figure {
  margin: 0;
  border: 2px solid var(--home-line);
}

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

.page-home .media-frame__caption {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--slate);
  background: rgba(16, 42, 38, 0.85);
}

/* ---------- paper library ---------- */
.page-home .chapter--paper {
  background: linear-gradient(180deg, var(--field) 0%, #0C1F1D 100%);
}

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

.page-home .library__card {
  display: block;
  padding: 22px 20px 18px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.page-home .library__card:hover,
.page-home .library__card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 rgba(0, 0, 0, 0.45);
}

.page-home .library__num {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--steel);
  margin-bottom: 10px;
}

.page-home .library__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-home .library__text {
  font-size: 13.5px;
  line-height: 1.78;
  color: #2C3A45;
  margin-bottom: 14px;
}

.page-home .library__go {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #A9561B;
}

/* ---------- register steps ---------- */
.page-home .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.page-home .steps__item {
  position: relative;
  padding: 20px 18px;
  background: rgba(16, 42, 38, 0.72);
  border: 1px solid var(--home-line);
  border-left: 4px solid var(--gold);
}

.page-home .steps__num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.page-home .steps__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
}

.page-home .steps__text {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(242, 232, 214, 0.74);
}

.page-home .register__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- network ---------- */
.page-home .network__figure {
  margin: 0 0 24px;
  position: relative;
  border: 2px solid var(--home-line);
}

.page-home .network__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

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

.page-home .network__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-home .network__stats .stat {
  padding: 14px 14px 16px;
  border-top: 2px solid var(--teal);
  background: rgba(216, 198, 164, 0.05);
}

.page-home .network__stats .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.1;
}

.page-home .network__stats .stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
}

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

.page-home .network__link {
  display: block;
  padding: 18px 18px 20px;
  text-decoration: none;
  color: var(--paper);
  background: var(--field);
  border: 1px solid var(--home-line);
  border-right: 4px solid var(--ember);
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.page-home .network__link:hover,
.page-home .network__link:focus-visible {
  background: #14312C;
  border-right-color: var(--gold);
}

.page-home .network__link h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold);
}

.page-home .network__link p {
  font-size: 13px;
  line-height: 1.78;
  color: rgba(242, 232, 214, 0.72);
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .page-home .wrap {
    padding: 0 28px;
  }

  .page-home .hero {
    padding: 44px 0 60px;
  }

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

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

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

  .page-home .cards__item--wide {
    grid-column: 1 / -1;
  }

  .page-home .follow {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
    gap: 30px;
  }

  .page-home .views {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 30px;
    align-items: center;
  }

  .page-home .library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .page-home .chapter-head {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
    margin-bottom: 34px;
  }

  .page-home .chapter-head__num {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: 15px;
    margin-top: 6px;
  }

  .page-home .chapter-head__title,
  .page-home .chapter-head__lede {
    grid-column: 2;
  }
}

@media (min-width: 1080px) {
  .page-home .hero h1 {
    font-size: 62px;
  }

  .page-home .hero__lede {
    font-size: 17px;
  }

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

  .page-home .screen__body {
    padding: 26px 26px 28px;
    gap: 20px;
  }

  .page-home .chapter {
    padding: 68px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .follow__item,
  .page-home .library__card,
  .page-home .network__link,
  .page-home .follow__spark,
  .page-home .hero__index a {
    transition: none;
  }

  .page-home .follow__item:hover,
  .page-home .library__card:hover {
    transform: none;
  }
}
