.demos-page {
  background: #f4f4f1;
}

.demos-page main {
  overflow: hidden;
}

.demos-hero {
  min-height: min(760px, 92svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .34fr);
  align-content: end;
  gap: 32px 7vw;
  padding: calc(var(--header-h) + 118px) var(--pad) clamp(68px, 8vw, 118px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 25%, #fff 0, transparent 32%),
    linear-gradient(rgba(16,16,16,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,16,16,.055) 1px, transparent 1px),
    #f4f4f1;
  background-size: auto, 64px 64px, 64px 64px, auto;
}

.demos-kicker {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 10px;
  letter-spacing: .16em;
}

.demos-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(78px, 12vw, 198px);
  font-weight: 400;
  line-height: .72;
  letter-spacing: -.065em;
}

.demos-lead {
  max-width: 420px;
  margin: 0 0 .5em;
  align-self: end;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
}

.demos-section {
  padding: clamp(84px, 10vw, 150px) var(--pad);
  background: #f8f8f6;
}

.demos-section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: end;
  gap: 22px;
  margin-bottom: clamp(50px, 7vw, 94px);
}

.demos-section-head p {
  margin: 0 0 13px;
  font-size: 11px;
}

.demos-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(60px, 8.5vw, 136px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.06em;
}

.demos-list {
  border-top: 1px solid var(--line);
}

.demo-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: clamp(112px, 11vw, 170px);
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background-color .75s var(--ease-soft), padding .75s var(--ease-soft);
}

.demo-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.055), transparent 68%);
  opacity: 0;
  transform: translateX(-5%);
  transition: opacity .65s ease, transform .85s var(--ease-soft);
}

.demo-row > * {
  position: relative;
  z-index: 1;
}

.demo-row:hover {
  padding-left: 14px;
  background: rgba(0,0,0,.025);
}

.demo-row:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.demo-number {
  color: #777;
  font-size: 11px;
}

.demo-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 82px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
}

.demo-open {
  width: clamp(50px, 5vw, 72px);
  height: clamp(50px, 5vw, 72px);
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 22px;
  transition: color .35s ease, background .35s ease, transform .55s var(--ease);
}

.demo-open.is-pending {
  opacity: .34;
  cursor: default;
}

.demo-open:not(.is-pending):hover,
.demo-open:not(.is-pending):focus-visible {
  color: #fff;
  background: #111;
  transform: rotate(45deg) scale(1.04);
}

.demos-examples {
  color: #f7f7f4;
  background: #1b1b1b;
}

.demos-examples .demos-list,
.demos-examples .demo-row {
  border-color: rgba(255,255,255,.2);
}

.demos-examples .demo-number {
  color: #999;
}

.demos-examples .demo-row::before {
  background: linear-gradient(90deg, rgba(255,255,255,.075), transparent 68%);
}

.demos-examples .demo-row:hover {
  background: rgba(255,255,255,.025);
}

.demos-examples .demo-open:not(.is-pending):hover,
.demos-examples .demo-open:not(.is-pending):focus-visible {
  color: #111;
  background: #fff;
}

@media (max-width: 720px) {
  .demos-hero {
    min-height: 720px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-top: calc(var(--header-h) + 92px);
  }

  .demos-hero h1 {
    font-size: clamp(68px, 20vw, 104px);
    line-height: .78;
  }

  .demos-lead {
    max-width: 340px;
  }

  .demos-section-head,
  .demo-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .demos-section-head h2 {
    grid-column: 2 / -1;
  }

  .demos-section-head p {
    grid-row: 1;
  }

  .demo-row {
    min-height: 112px;
    padding-right: 0;
  }

  .demo-row:hover {
    padding-left: 0;
  }

  .demo-row h3 {
    font-size: clamp(31px, 10vw, 48px);
  }

  .demo-open {
    width: 46px;
    height: 46px;
  }
}
