@layer pages {
  .home-showcase-section {
    width: 100%;
    margin-block-start: calc(0px - var(--space-01));
  }

  .home-showcase-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
  }

  .home-showcase-heading__copy {
    min-width: 0;
  }

  .home-showcase-title {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.2rem, 1.65vw, 1.55rem);
    line-height: 1.2;
  }

  .home-showcase-description {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
  }

  .home-showcase-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(12px, 1.2vw, 20px);
  }

  .home-showcase-card {
    position: relative;
    min-width: 0;
    scroll-snap-align: start;
  }

  .home-showcase-card__post-link {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
  }

  .home-showcase-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: rgb(0 0 0 / 24%);
  }

  .home-showcase-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 160ms ease, opacity 100ms ease;
  }

  .home-showcase-card__scrubber {
    position: absolute;
    right: auto;
    bottom: 62px;
    left: 50%;
    display: flex;
    width: min(72px, calc(100% - 20px));
    gap: 3px;
    height: 3px;
    pointer-events: none;
    transform: translateX(-50%);
  }

  .home-showcase-card__scrubber-segment {
    min-width: 0;
    flex: 1 1 0;
    border-radius: 999px;
    background: #8f8d99;
    box-shadow: 0 0 1px rgb(0 0 0 / 95%), 0 1px 3px rgb(0 0 0 / 70%);
  }

  .home-showcase-card__scrubber-segment.is-active {
    background: #fff;
  }

  .home-showcase-card__frame-count {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 999px;
    background: rgb(5 4 11 / 82%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
  }

  .home-showcase-card__frame-count svg {
    width: 14px;
    height: 14px;
  }

  .home-showcase-card__profile {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100% - 20px);
    min-height: 44px;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    transition: color 140ms ease;
  }

  .home-showcase-card__profile::before {
    position: absolute;
    z-index: 0;
    box-sizing: border-box;
    top: 7px;
    right: 0;
    left: 0;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #05040b;
    content: '';
    transition: background-color 140ms ease;
  }

  .home-showcase-card__profile:hover {
    color: #05040b;
  }

  .home-showcase-card__profile:hover .home-showcase-card__profile-handle,
  .home-showcase-card__profile:hover svg,
  .home-showcase-card__profile:focus-visible .home-showcase-card__profile-handle,
  .home-showcase-card__profile:focus-visible svg {
    color: #05040b;
  }

  .home-showcase-card__profile:hover::before {
    border: 1px solid transparent;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(110deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink)) border-box;
    box-shadow: 0 0 7px rgb(179 136 255 / 16%);
  }

  .home-showcase-card__profile:focus-visible::before {
    border: 1px solid transparent;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(110deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink)) border-box;
    box-shadow: 0 0 7px rgb(179 136 255 / 16%);
  }

  .home-showcase-card__profile svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: currentcolor;
  }

  .home-showcase-card__profile-handle {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-showcase-card__profile:focus-visible {
    z-index: 2;
    color: #05040b;
    outline: 3px solid var(--neon-purple-bright);
    outline-offset: 3px;
    border-radius: 999px;
  }

  .home-showcase-card__post-link:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid var(--neon-purple-bright);
    outline-offset: 3px;
    border-radius: 8px;
  }

  @media (hover: hover) and (pointer: fine) {
    .home-showcase-card__post-link:hover .home-showcase-card__image {
      transform: scale(1.025);
    }
  }

  @media (width <= 1024px) {
    .home-showcase-rail {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-showcase-card__media {
      aspect-ratio: 1 / 1;
    }
  }

  @media (width <= 767px) {
    .home-showcase-section {
      padding-block: 10px 12px;
    }

    .home-showcase-card__media {
      aspect-ratio: 4 / 5;
    }

    .home-showcase-heading {
      align-items: center;
      gap: 8px;
      margin: 0 0 14px;
    }

    .home-showcase-title {
      font-size: 1.15rem;
    }

    .home-showcase-description {
      max-width: 30ch;
      font-size: 0.8rem;
    }

    .home-showcase-rail {
      display: grid;
      grid-auto-columns: min(72vw, 250px);
      grid-auto-flow: column;
      grid-template-columns: none;
      gap: 14px;
      overflow-x: auto;
      overscroll-behavior-inline: contain;
      padding: 0 0 7px;
      scroll-padding-inline: 0;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      touch-action: auto;
      -webkit-overflow-scrolling: touch;
    }

    .home-showcase-rail::-webkit-scrollbar {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .home-showcase-card__image,
    .home-showcase-card__post-link:hover .home-showcase-card__image,
    .home-showcase-card__profile,
    .home-showcase-card__profile::before {
      transform: none;
      transition: none;
    }
  }
}
