.page-home {
  --home-slant: 20deg;
  --home-gap: 40px;
  display: block;
}

/* ---------- Hero ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 0 56px;
  background: var(--ink-deep);
}

.page-home .hero__slash {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  z-index: -1;
  background:
    linear-gradient(200deg, rgba(198, 255, 61, .10), rgba(198, 255, 61, 0) 58%),
    linear-gradient(160deg, var(--ink-moss), var(--ink-deep));
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

@media (min-width: 900px) {
  .page-home .hero__slash {
    width: 62%;
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  }
}

.page-home .hero__grid {
  display: grid;
  gap: var(--home-gap);
  align-items: start;
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 56px;
  }
}

.page-home .hero__kicker {
  margin: 0 0 18px;
}

.page-home .hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(34px, 7.4vw, 68px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: .005em;
  color: var(--white);
  transform: skewX(-2.4deg);
  transform-origin: left bottom;
}

.page-home .hero__lede {
  max-width: 34em;
  margin: 0;
  color: var(--cool);
}

/* Scoreboard */

.page-home .scoreboard {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  background: var(--stone);
  overflow: hidden;
}

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

.page-home .scoreboard__cell {
  padding: 18px 20px 20px;
  background: linear-gradient(165deg, rgba(30, 58, 47, .92), rgba(16, 19, 18, .96));
}

.page-home .scoreboard__num {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(34px, 5.6vw, 50px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.page-home .scoreboard__unit {
  margin-left: 5px;
  font-size: .33em;
  letter-spacing: .06em;
  color: var(--orange);
}

.page-home .scoreboard__cap {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
}

/* Hero side */

.page-home .hero__side {
  display: grid;
  gap: 20px;
}

.page-home .hero__figure {
  margin: 0;
  clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-carbon);
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06);
}

.page-home .entry-set {
  display: grid;
  gap: 12px;
}

.page-home .entry-pill {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 15px 22px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
  background: rgba(16, 19, 18, .72);
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .22s ease, transform .22s ease;
}

.page-home .entry-pill::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120% 160% at 50% 50%, rgba(198, 255, 61, .26), rgba(198, 255, 61, 0) 68%);
  opacity: 0;
  transition: opacity .26s ease;
  pointer-events: none;
}

.page-home .entry-pill:hover,
.page-home .entry-pill:focus-visible {
  border-color: var(--lime);
  transform: translateY(-2px);
}

.page-home .entry-pill:hover::after,
.page-home .entry-pill:focus-visible::after {
  opacity: 1;
}

.page-home .entry-pill__k {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}

.page-home .entry-pill__v {
  position: relative;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
}

/* ---------- Layout with chapter index ---------- */

.page-home .home-layout {
  padding: 48px 0 84px;
}

.page-home .home-layout__inner {
  display: grid;
  gap: 32px;
}

@media (min-width: 1000px) {
  .page-home .home-layout__inner {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 58px;
    align-items: start;
  }
}

.page-home .chapter-index {
  position: static;
}

@media (min-width: 1000px) {
  .page-home .chapter-index {
    position: sticky;
    top: 112px;
    padding-top: 6px;
  }
}

.page-home .chapter-index__title {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}

.page-home .chapter-index__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  border-bottom: var(--line);
}

.page-home .chapter-index__list::-webkit-scrollbar {
  display: none;
}

.page-home .chapter-index__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stone);
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.page-home .chapter-index__list a .mono {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--stone);
  transition: color .2s ease;
}

.page-home .chapter-index__list a:hover,
.page-home .chapter-index__list a:focus-visible {
  color: var(--white);
  border-color: var(--lime);
}

.page-home .chapter-index__list a.is-active {
  color: var(--ink-deep);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-4px);
}

.page-home .chapter-index__list a.is-active .mono {
  color: rgba(11, 31, 24, .62);
}

@media (min-width: 1000px) {
  .page-home .chapter-index__list {
    display: grid;
    gap: 2px;
    overflow: visible;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .page-home .chapter-index__list a {
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 12px;
    white-space: normal;
  }

  .page-home .chapter-index__list a.is-active {
    background: rgba(198, 255, 61, .12);
    color: var(--lime);
    border-left-color: var(--lime);
    transform: translateY(-4px);
  }

  .page-home .chapter-index__list a.is-active .mono {
    color: var(--lime);
  }
}

/* ---------- Sections ---------- */

.page-home .home-secs {
  display: grid;
  gap: 72px;
}

.page-home .home-sec {
  scroll-margin-top: 116px;
  position: relative;
}

.page-home .home-sec__head {
  position: relative;
  margin-bottom: 26px;
  padding-bottom: 4px;
}

.page-home .home-sec__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.page-home .chapter-num {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--lime);
}

.page-home .home-sec__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 38px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: .008em;
  color: var(--white);
  transform: skewX(-1.8deg);
  transform-origin: left bottom;
}

.page-home .chapter-rule {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lime), rgba(198, 255, 61, 0));
}

.page-home .pitch-arc {
  position: absolute;
  right: 0;
  bottom: -12px;
  width: 110px;
  height: auto;
  color: var(--stone);
  opacity: .7;
  pointer-events: none;
}

.page-home .home-sec__body {
  max-width: 40em;
}

.page-home .home-sec__body p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--cool);
}

.page-home .home-sec__body p:last-child {
  margin-bottom: 0;
}

.page-home .lnk {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.page-home .lnk:hover,
.page-home .lnk:focus-visible {
  color: var(--white);
}

/* Entry list */

.page-home .entry-list {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-home .entry-list li {
  display: grid;
  gap: 4px;
  padding: 15px 20px;
  background: var(--ink-deep);
}

@media (min-width: 620px) {
  .page-home .entry-list li {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
  }
}

.page-home .entry-list__k {
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: .02em;
}

.page-home .entry-list__v {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
}

/* Compare */

.page-home .compare {
  margin: 30px 0 26px;
}

.page-home .compare__col {
  padding: 22px 24px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(30, 58, 47, .78), rgba(16, 19, 18, .72));
}

.page-home .compare__h {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.page-home .compare__col p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--gray);
}

/* Table */

.page-home .table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  background: rgba(16, 19, 18, .55);
}

.page-home .data-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.page-home .data-table caption {
  padding: 16px 20px 4px;
  text-align: left;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--gray);
}

.page-home .data-table th,
.page-home .data-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid rgba(58, 70, 64, .7);
}

.page-home .data-table thead th {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  background: rgba(30, 58, 47, .55);
}

.page-home .data-table tbody th {
  font-weight: 600;
  color: var(--white);
}

.page-home .data-table td {
  color: var(--gray);
}

.page-home .data-table td.num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 17px;
  color: var(--orange);
}

.page-home .data-table tbody tr:hover {
  background: rgba(198, 255, 61, .07);
}

.page-home .data-table tbody tr:last-child th,
.page-home .data-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Split */

.page-home .split {
  display: grid;
  gap: 28px;
  margin-bottom: 34px;
}

@media (min-width: 860px) {
  .page-home .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 44px;
    align-items: center;
  }

  .page-home .split--reverse .split__text {
    order: 2;
  }

  .page-home .split--reverse .split__figure {
    order: 1;
  }

  .page-home .split--reverse {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  }
}

.page-home .split__text p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--cool);
}

.page-home .split__text p:last-child {
  margin-bottom: 0;
}

.page-home .split__figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stone);
  background: var(--ink-carbon);
}

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

.page-home .split__figure--tall img {
  aspect-ratio: 3 / 4;
}

.page-home .split__cap {
  padding: 12px 18px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
  border-top: 1px solid rgba(58, 70, 64, .7);
}

/* Segmented preview */

.page-home .segmented {
  margin-top: 8px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  background: rgba(30, 58, 47, .38);
  overflow: hidden;
}

.page-home .segmented__tabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid rgba(58, 70, 64, .8);
}

.page-home .segmented__tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  padding: 8px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.page-home .segmented__tab:hover,
.page-home .segmented__tab:focus-visible {
  color: var(--white);
  border-color: var(--stone);
}

.page-home .segmented__tab[aria-selected="true"] {
  color: var(--ink-deep);
  background: var(--lime);
}

.page-home .segmented__panel {
  padding: 22px 24px 24px;
}

.page-home .segmented__h {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.page-home .segmented__panel .entry-list {
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.page-home .segmented__panel .entry-list li {
  background: transparent;
  padding: 10px 0;
  border-bottom: 1px solid rgba(58, 70, 64, .6);
}

.page-home .segmented__panel .entry-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Rhythm grid */

.page-home .rhythm-grid {
  display: grid;
  gap: 1px;
  margin-top: 30px;
  background: var(--stone);
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

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

.page-home .rhythm-card {
  display: grid;
  gap: 6px;
  padding: 22px 20px 24px;
  background: var(--ink-deep);
}

.page-home .rhythm-card__k {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gray);
}

.page-home .rhythm-card__v {
  font-family: var(--font-data);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}

.page-home .rhythm-card__u {
  margin-left: 4px;
  font-size: .3em;
  letter-spacing: .04em;
  color: var(--gray);
}

.page-home .rhythm-card__n {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
}

/* Q&A */

.page-home .qa {
  display: grid;
  gap: 18px;
}

.page-home .qa__item {
  padding: 22px 24px;
  border: 1px solid var(--stone);
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(30, 58, 47, .42);
}

.page-home .qa__q {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
}

.page-home .qa__a {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

/* Closing */

.page-home .home-sec--closing {
  padding-bottom: 8px;
}

.page-home .closing__lead {
  max-width: 40em;
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--cool);
}

.page-home .closing__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.page-home .closing__acts .btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.page-home .closing__acts .btn:hover,
.page-home .closing__acts .btn:focus-visible {
  transform: translateY(-2px);
}

.page-home .closing__acts .btn--lime {
  background: var(--lime);
  color: var(--ink-deep);
  border: 1px solid var(--lime);
}

.page-home .closing__acts .btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--stone);
}

.page-home .closing__acts .btn--ghost:hover,
.page-home .closing__acts .btn--ghost:focus-visible {
  border-color: var(--cool);
}

.page-home .closing__contact {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink-deep);
}

.page-home .closing__contact-k {
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(11, 31, 24, .62);
}

.page-home .closing__contact-v {
  margin: 0;
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-deep);
  word-break: break-all;
}

.page-home .closing__contact .copy-btn {
  appearance: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-moss);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-moss);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.page-home .closing__contact .copy-btn:hover,
.page-home .closing__contact .copy-btn:focus-visible {
  background: var(--ink-moss);
  color: var(--cream);
}

.page-home .closing__contact .copy-btn.is-copied {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: var(--lime);
}

.page-home .closing__contact-n {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(11, 31, 24, .68);
}

.page-home .closing__band {
  margin: 36px 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stone);
}

.page-home .closing__band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  opacity: .72;
  filter: saturate(.85);
}

/* Reveal */

.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}

.page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-home .entry-pill,
  .page-home .chapter-index__list a,
  .page-home .closing__acts .btn {
    transition: none;
  }
}

/* Wide screens */

@media (min-width: 1200px) {
  .page-home .home-secs {
    gap: 88px;
  }

  .page-home .home-sec__body,
  .page-home .closing__lead,
  .page-home .split__text {
    max-width: 38em;
  }
}
