.page-home {
  --ph-gap: clamp(14px, 2vw, 22px);
  --ph-pad: clamp(46px, 7vw, 92px);
  color: var(--fog);
  background: var(--ink-900);
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

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

.page-home .hero {
  position: relative;
  padding-block: clamp(22px, 4vw, 44px) clamp(34px, 5vw, 60px);
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(79, 240, 200, .16), transparent 62%),
    radial-gradient(90% 80% at 4% 100%, rgba(167, 139, 250, .14), transparent 66%),
    var(--ink-900);
  overflow: hidden;
}

.page-home .hero::before,
.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .hero::before {
  background-image:
    linear-gradient(to right, rgba(79, 240, 200, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 240, 200, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(130% 95% at 28% 0%, #000 22%, transparent 76%);
  mask-image: radial-gradient(130% 95% at 28% 0%, #000 22%, transparent 76%);
}

.page-home .hero::after {
  background-image:
    linear-gradient(to right, rgba(79, 240, 200, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 240, 200, .07) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(100% 80% at 78% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(100% 80% at 78% 20%, #000 10%, transparent 70%);
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--ph-gap);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .hero__lead {
  padding: clamp(18px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(79, 240, 200, .10), rgba(255, 255, 255, .025) 58%);
  backdrop-filter: blur(10px);
}

.page-home .hero__lead .crumbs {
  margin-bottom: clamp(12px, 2vw, 20px);
  color: var(--slate);
}

.page-home .hero__lead .crumbs a {
  color: var(--slate);
  text-decoration: none;
}

.page-home .hero__lead .crumbs a:hover {
  color: var(--mint);
}

.page-home .hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(29px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: .015em;
  color: var(--fog);
  margin: 10px 0 16px;
}

.page-home .hero__lede {
  max-width: 56ch;
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  color: rgba(234, 242, 238, .82);
}

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

.page-home .hero__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  background: linear-gradient(160deg, var(--teal-900), var(--ink-800));
  min-height: 190px;
  aspect-ratio: 16 / 9;
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.page-home .hero__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(79, 240, 200, .09);
  box-shadow: inset 0 0 40px rgba(79, 240, 200, .10);
}

.page-home .hero__stat-k {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--slate);
}

.page-home .hero__stat-num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--mint);
}

.page-home .hero__stat-unit {
  margin-left: .24em;
  font-size: .3em;
  letter-spacing: .04em;
  color: var(--slate);
}

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

.page-home .hero__crest {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 122, 47, .32);
  background: linear-gradient(160deg, rgba(255, 122, 47, .12), rgba(255, 255, 255, .02));
}

.page-home .hero__crest-svg {
  width: 42px;
  height: 42px;
  color: var(--track);
  margin-bottom: 6px;
}

.page-home .hero__crest-k {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--track);
}

.page-home .hero__crest-v {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--fog);
}

.page-home .hero__crest-id {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--slate);
}

.page-home .hero__strip {
  position: sticky;
  bottom: clamp(10px, 2vw, 18px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px clamp(14px, 2.4vw, 22px);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 33, 28, .84);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
}

.page-home .hero__strip-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-900);
  background: var(--mint);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.page-home .hero__strip-text {
  margin: 0;
  flex: 1 1 200px;
  font-size: 14px;
  color: rgba(234, 242, 238, .84);
}

.page-home .hero__strip-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 240, 200, .45);
  padding-bottom: 1px;
  white-space: nowrap;
}

.page-home .hero__strip-link:hover {
  color: var(--fog);
  border-bottom-color: var(--fog);
}

/* ---------- CHAPTER SHELL ---------- */

.page-home .chapter {
  position: relative;
  padding-block: var(--ph-pad);
  border-top: 1px solid var(--line-soft);
}

.page-home .chapter--teal {
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--teal-900) 100%);
}

.page-home .chapter--indigo {
  background: linear-gradient(180deg, var(--teal-900) 0%, var(--indigo-900) 100%);
}

.page-home .chapter--wine {
  background: linear-gradient(180deg, var(--indigo-900) 0%, var(--wine-900) 100%);
}

.page-home .chapter__grid {
  display: grid;
  gap: clamp(22px, 3vw, 44px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.page-home .chapter__head {
  min-width: 0;
}

.page-home .chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(79, 240, 200, .5);
  margin-bottom: 14px;
}

.page-home .chapter__head .section-label {
  display: block;
  color: var(--mint);
}

.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 3.6vw, 42px);
  line-height: 1.16;
  letter-spacing: .01em;
  color: var(--fog);
  margin: 10px 0 0;
}

.page-home .chapter__body {
  min-width: 0;
}

.page-home .chapter__body > .prose {
  max-width: 64ch;
  color: rgba(234, 242, 238, .84);
  margin: 0 0 clamp(22px, 3vw, 34px);
}

.page-home .chapter__split {
  display: grid;
  gap: var(--ph-gap);
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(18px, 3vw, 30px);
}

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

.page-home .chapter__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}

.page-home .media__cap {
  color: var(--slate);
}

/* ---------- 01 DASHBOARD ---------- */

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

.page-home .dash__cell {
  padding: 16px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-top: 2px solid rgba(234, 242, 238, .16);
}

.page-home .dash__cell:nth-child(1) {
  border-top-color: var(--mint);
}

.page-home .dash__cell:nth-child(3) {
  border-top-color: var(--violet);
}

.page-home .dash__num {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--fog);
}

.page-home .dash__cell:nth-child(1) .dash__num {
  color: var(--mint);
}

.page-home .dash__label {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
}

/* ---------- FILTERS ---------- */

.page-home .filters {
  padding: clamp(16px, 2.4vw, 24px);
  position: relative;
}

.page-home .filters__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .filters__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .filters__pill {
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .04);
  font-size: 14px;
  color: var(--slate);
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  user-select: none;
}

.page-home .filters__pill:hover {
  color: var(--fog);
  border-color: rgba(79, 240, 200, .35);
}

.page-home #fh-league:checked ~ .filters__bar label[for="fh-league"],
.page-home #fh-date:checked ~ .filters__bar label[for="fh-date"],
.page-home #fh-team:checked ~ .filters__bar label[for="fh-team"] {
  color: var(--ink-900);
  background: var(--mint);
  border-color: var(--mint);
  font-weight: 600;
}

.page-home .filters__input:focus-visible ~ .filters__bar {
  outline: 2px solid var(--mint);
  outline-offset: 6px;
  border-radius: 999px;
}

.page-home .filters__panels {
  min-height: 108px;
}

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

.page-home #fh-league:checked ~ .filters__panels .filters__panel[data-f="league"],
.page-home #fh-date:checked ~ .filters__panels .filters__panel[data-f="date"],
.page-home #fh-team:checked ~ .filters__panels .filters__panel[data-f="team"] {
  display: block;
}

.page-home .filters__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fog);
}

.page-home .filters__panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(234, 242, 238, .78);
}

/* ---------- 02 DIMENSIONS ---------- */

.page-home .dims {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-home .dims__item {
  padding: 18px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .035);
}

.page-home .dims__title {
  margin: 12px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fog);
}

.page-home .dims__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(234, 242, 238, .76);
}

.page-home .compare,
.page-home .member {
  padding: clamp(16px, 2.4vw, 26px);
}

.page-home .compare__title,
.page-home .member__title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--fog);
}

.page-home .compare__text,
.page-home .member__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(234, 242, 238, .78);
}

.page-home .compare__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .compare__bar {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--mint), rgba(79, 240, 200, .22));
}

.page-home .compare__bar:nth-child(even) {
  background: linear-gradient(180deg, var(--violet), rgba(167, 139, 250, .2));
}

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

.page-home .member .tag {
  color: var(--violet);
  border-color: rgba(167, 139, 250, .4);
}

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

.page-home .member__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(234, 242, 238, .8);
}

.page-home .member__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
}

/* ---------- 03 STEPS ---------- */

.page-home .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--ph-gap);
}

.page-home .steps__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: var(--glass);
  backdrop-filter: blur(8px);
}

.page-home .steps__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--mint);
}

.page-home .steps__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fog);
}

.page-home .steps__item p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(234, 242, 238, .78);
}

.page-home .steps__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 240, 200, .4);
  padding-bottom: 1px;
}

.page-home .steps__link:hover {
  color: var(--fog);
  border-bottom-color: var(--fog);
}

/* ---------- 04 CHANNELS ---------- */

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

.page-home .channels__item {
  padding: 16px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 122, 47, .26);
  background: linear-gradient(165deg, rgba(255, 122, 47, .10), rgba(255, 255, 255, .02));
}

.page-home .channels__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--track);
  margin-bottom: 8px;
}

.page-home .channels__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fog);
}

.page-home .channels__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(234, 242, 238, .76);
}

/* ---------- STRIP MEDIA ---------- */

.page-home .strip-media {
  padding-block: clamp(24px, 4vw, 48px);
  background: var(--wine-900);
  border-top: 1px solid var(--line-soft);
}

.page-home .strip-media .media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
}

.page-home .strip-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: .85;
}

/* ---------- 05 FEED ---------- */

.page-home .feed {
  list-style: none;
  margin: 0 0 clamp(20px, 3vw, 30px);
  padding: 0;
}

.page-home .feed__item {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px 4px;
  border-top: 1px solid var(--line-soft);
  transition: transform .3s var(--ease);
}

.page-home .feed__item:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .feed__item:hover {
  transform: translateX(4px);
}

.page-home .feed__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--fog);
}

.page-home .feed__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(234, 242, 238, .74);
  max-width: 62ch;
}

/* ---------- CLOSING ---------- */

.page-home .closing {
  padding-block: var(--ph-pad);
  background:
    radial-gradient(90% 70% at 8% 0%, rgba(79, 240, 200, .10), transparent 62%),
    var(--ink-900);
  border-top: 1px solid var(--line-soft);
}

.page-home .closing__inner {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
}

.page-home .certbar {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(16px, 2.4vw, 22px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.page-home .certbar__item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.page-home .certbar__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--slate);
}

.page-home .certbar__v {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fog);
  overflow-wrap: anywhere;
}

.page-home .closing__cta {
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 122, 47, .26);
  background: linear-gradient(150deg, rgba(255, 122, 47, .12), rgba(167, 139, 250, .08) 60%, rgba(255, 255, 255, .02));
}

.page-home .closing__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3.4vw, 38px);
  line-height: 1.2;
  color: var(--fog);
  margin: 0 0 14px;
}

.page-home .closing__text {
  max-width: 60ch;
  margin: 0 0 clamp(18px, 2.6vw, 24px);
  font-size: 15px;
  line-height: 1.78;
  color: rgba(234, 242, 238, .8);
}

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

/* ---------- RESPONSIVE ---------- */

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

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

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

  .page-home .chapter__split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .chapter__split--narrow {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "lead lead lead lead lead lead lead fig fig fig fig fig"
      "lead lead lead lead lead lead lead stat stat stat crest crest"
      "strip strip strip strip strip strip strip strip strip strip strip strip";
    align-items: stretch;
  }

  .page-home .hero__lead { grid-area: lead; }
  .page-home .hero__figure { grid-area: fig; min-height: 230px; aspect-ratio: auto; }
  .page-home .hero__stat { grid-area: stat; }
  .page-home .hero__crest { grid-area: crest; }
  .page-home .hero__strip { grid-area: strip; }
}

@media (min-width: 960px) {
  .page-home .chapter__grid {
    grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  }

  .page-home .chapter__head {
    position: sticky;
    top: calc(var(--topbar-h) + 28px);
  }

  .page-home .chapter__split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .page-home .chapter__split--narrow {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  }

  .page-home .closing__inner {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .feed__item,
  .page-home .filters__pill {
    transition: none;
  }

  .page-home .feed__item:hover {
    transform: none;
  }
}

.page-home {
  --h: 1rem;
}
