.home-featured-works-frame > .home-featured-works-frame__content {
  width: 100%;
}

.home-featured-works-frame__inner {
  width: 100%;
  align-items: stretch;
}

.home-featured-works--carousel {
  width: 100%;
  flex: 1 1 auto;
  align-self: stretch;
}

.home-featured-works--carousel > .content-shell,
.home-featured-works--carousel > .content-shell.content-shell--wide {
  width: min(90vw, 1440px);
  max-width: min(90vw, 1440px);
  margin-inline: auto;
}

.home-featured-works--carousel .home-featured-works__stage--carousel {
  min-height: auto;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
  padding-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.home-featured-works--carousel .home-featured-works__intro--carousel {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
  width: min(100%, 40rem);
  max-width: 100%;
}

.home-featured-works--carousel .work-carousel {
  position: relative;
  width: 100%;
  display: grid;
  --work-carousel-thumb-width: clamp(5rem, 12vw, 8rem);
  --work-carousel-thumb-height: clamp(7rem, 18vw, 11rem);
  --work-carousel-thumb-gap: clamp(0.55rem, 1.2vw, 0.9rem);
  --work-carousel-thumb-offset: clamp(0.75rem, 1.4vw, 1.1rem);
  outline: none;
}

.home-featured-works--carousel .work-carousel:focus-visible .work-carousel__controls {
  outline: 2px solid rgba(255, 248, 242, 0.55);
  outline-offset: 0.45rem;
}

.home-featured-works--carousel .work-carousel__viewport {
  position: relative;
  min-height: clamp(26rem, 52vw, 38rem);
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 6px);
}

.home-featured-works--carousel .work-carousel__slide {
  position: relative;
  min-height: inherit;
}

.home-featured-works--carousel .work-carousel__item {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--work-carousel-thumb-width);
  height: var(--work-carousel-thumb-height);
  transform: translate(0, -50%);
  border-radius: calc(var(--radius-lg) + 4px);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition:
    left 0.5s ease,
    width 0.5s ease,
    height 0.5s ease,
    opacity 0.5s ease,
    transform 0.5s ease,
    border-radius 0.5s ease,
    box-shadow 0.5s ease;
}

.home-featured-works--carousel .work-carousel__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 9, 8, 0.08) 0%, rgba(11, 9, 8, 0.2) 42%, rgba(11, 9, 8, 0.88) 100%);
}

.home-featured-works--carousel .work-carousel__item:nth-child(1),
.home-featured-works--carousel .work-carousel__item:only-child {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transition: all 0.5s;
  z-index: 2;
  pointer-events: auto;
}

.home-featured-works--carousel .work-carousel__item:nth-child(2) {
  z-index: 3;
  left: calc(100% - ((var(--work-carousel-thumb-width) * 2) + var(--work-carousel-thumb-gap) + var(--work-carousel-thumb-offset)));
}

.home-featured-works--carousel .work-carousel__item:nth-child(3) {
  z-index: 4;
  left: calc(100% - var(--work-carousel-thumb-width) - var(--work-carousel-thumb-offset));
}

.home-featured-works--carousel .work-carousel__item:nth-child(2),
.home-featured-works--carousel .work-carousel__item:nth-child(3) {
  top: 50%;
  width: var(--work-carousel-thumb-width);
  height: var(--work-carousel-thumb-height);
  transform: translate(0, -50%);
  border-radius: calc(var(--radius-lg) + 4px);
  pointer-events: none;
}

.home-featured-works--carousel .work-carousel__item:nth-child(n + 4) {
  left: calc(100% + var(--work-carousel-thumb-width) + var(--work-carousel-thumb-gap));
  opacity: 0;
  pointer-events: none;
}

.home-featured-works--carousel .work-carousel__content {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2.75rem);
  right: clamp(8rem, 18vw, 18rem);
  bottom: clamp(4.5rem, 7vw, 5.75rem);
  z-index: 1;
  display: none;
  max-width: min(34rem, 58%);
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border: 1px solid rgba(255, 248, 242, 0.12);
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(180deg, rgba(17, 14, 12, 0.48), rgba(17, 14, 12, 0.74));
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  text-align: left;
  color: var(--color-cream);
}

.home-featured-works--carousel .work-carousel__item:nth-child(1) .work-carousel__content,
.home-featured-works--carousel .work-carousel__item:only-child .work-carousel__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-featured-works--carousel .work-carousel__item:nth-child(1) .work-carousel__content > *,
.home-featured-works--carousel .work-carousel__item:only-child .work-carousel__content > * {
  opacity: 0;
  animation: work-carousel-reveal 0.75s ease forwards;
}

.home-featured-works--carousel .work-carousel__item:nth-child(1) .work-carousel__content > *:nth-child(2),
.home-featured-works--carousel .work-carousel__item:only-child .work-carousel__content > *:nth-child(2) {
  animation-delay: 0.12s;
}

.home-featured-works--carousel .work-carousel__item:nth-child(1) .work-carousel__content > *:nth-child(3),
.home-featured-works--carousel .work-carousel__item:only-child .work-carousel__content > *:nth-child(3) {
  animation-delay: 0.2s;
}

.home-featured-works--carousel .work-carousel__item:nth-child(1) .work-carousel__content > *:nth-child(4),
.home-featured-works--carousel .work-carousel__item:only-child .work-carousel__content > *:nth-child(4) {
  animation-delay: 0.28s;
}

.home-featured-works--carousel .work-carousel__item:nth-child(1) .work-carousel__content > *:nth-child(5),
.home-featured-works--carousel .work-carousel__item:only-child .work-carousel__content > *:nth-child(5) {
  animation-delay: 0.36s;
}

.home-featured-works--carousel .work-carousel__kicker {
  color: rgba(255, 248, 242, 0.82);
}

.home-featured-works--carousel .work-carousel__title,
.home-featured-works--carousel .work-carousel__title a {
  margin: 0;
  color: var(--color-cream);
  text-decoration: none;
}

.home-featured-works--carousel .work-carousel__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.home-featured-works--carousel .work-carousel__excerpt {
  max-width: 30rem;
  margin: 0;
  color: rgba(255, 248, 242, 0.84);
  font-size: 0.95rem;
  line-height: 1.5;
}

.home-featured-works--carousel .work-carousel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-featured-works--carousel .work-carousel__button {
  width: fit-content;
  min-height: 44px;
  padding: 0.8rem 1.2rem;
}

.home-featured-works--carousel .work-carousel__controls {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  transform: translateX(-50%);
}

.home-featured-works--carousel .work-carousel__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 248, 242, 0.18);
  border-radius: 999px;
  background: rgba(31, 27, 24, 0.88);
  color: var(--color-cream);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-featured-works--carousel .work-carousel__control:hover,
.home-featured-works--carousel .work-carousel__control:focus-visible {
  background: rgba(52, 45, 40, 0.96);
  border-color: rgba(255, 248, 242, 0.34);
  transform: scale(1.06);
}

.home-featured-works--carousel .work-carousel__control span {
  font-size: 1.7rem;
  line-height: 1;
}

@keyframes work-carousel-reveal {
  from {
    opacity: 0;
    transform: translateY(2rem);
    filter: blur(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 1100px) {
  .home-featured-works--carousel > .content-shell,
  .home-featured-works--carousel > .content-shell.content-shell--wide {
    width: min(90vw, 1200px);
    max-width: min(90vw, 1200px);
  }

  .home-featured-works--carousel .work-carousel {
    --work-carousel-thumb-width: clamp(4.75rem, 11vw, 7rem);
    --work-carousel-thumb-height: clamp(6.75rem, 16vw, 10rem);
  }

  .home-featured-works--carousel .work-carousel__content {
    right: clamp(6rem, 16vw, 12rem);
    max-width: min(32rem, 62%);
  }
}

@media (max-width: 780px) {
  .home-featured-works--carousel .home-featured-works__stage--carousel {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .home-featured-works--carousel .work-carousel {
    --work-carousel-thumb-width: clamp(4.25rem, 13vw, 5.75rem);
    --work-carousel-thumb-height: clamp(6rem, 18vw, 8rem);
    --work-carousel-thumb-gap: 0.5rem;
    --work-carousel-thumb-offset: 0.65rem;
  }

  .home-featured-works--carousel .work-carousel__viewport {
    min-height: clamp(24rem, 82vw, 31rem);
  }

  .home-featured-works--carousel .work-carousel__content {
    left: 1rem;
    right: 1rem;
    bottom: 4.1rem;
    max-width: none;
  }

  .home-featured-works--carousel .work-carousel__title {
    font-size: clamp(1.7rem, 8vw, 2.75rem);
  }

  .home-featured-works--carousel .work-carousel__excerpt {
    font-size: 0.9rem;
  }

  .home-featured-works--carousel .work-carousel__controls {
    bottom: 0.85rem;
  }

  .home-featured-works--carousel .work-carousel__control {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 560px) {
  .home-featured-works--carousel .work-carousel {
    --work-carousel-thumb-width: 3.75rem;
    --work-carousel-thumb-height: 5.5rem;
    --work-carousel-thumb-gap: 0.45rem;
    --work-carousel-thumb-offset: 0.55rem;
  }

  .home-featured-works--carousel .work-carousel__viewport {
    min-height: 28rem;
  }

  .home-featured-works--carousel .work-carousel__button {
    width: 100%;
  }

  .home-featured-works--carousel .work-carousel__excerpt {
    display: none;
  }
}
