/* ============ selected works ============ */
.works-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--works-wrapper-gap);
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}
.works-wrapper .header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}
.works-wrapper .header { margin-left: 0; margin-bottom: 0; }
.works-wrapper .header-paragraph {
  max-width: none;
  margin-right: 0;
  white-space: nowrap;
}
.works-slider-container {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}
.works-swiper {
  width: 100%;
  overflow: hidden;
}
.works-nav-prev, .works-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: var(--c-white);
  border: 1px solid rgba(44, 45, 47, 0.08);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--c-ink);
  box-shadow: 0 4px 12px rgba(44, 45, 47, 0.05);
}
.works-nav-prev:hover, .works-nav-next:hover {
  background-color: var(--c-ink);
  color: var(--c-white);
  box-shadow: 0 8px 20px rgba(44, 45, 47, 0.15);
}
.works-nav-prev { left: 1rem; }
.works-nav-next { right: 1rem; }

.works-swiper .swiper-slide {
  height: auto;
}
.square-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.6rem;
}
.projects-background {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(44, 45, 47, 0.08);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.square-cards:hover .projects-background {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(44, 45, 47, 0.06);
}
.projects-background > img.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.square-cards:hover .projects-background img.image {
  transform: scale(1.04);
}
.projects-background > img.w-condition-invisible { display: none; }
.projects-background video {
  display: flex;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.project-button-wrapper {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center;
  mix-blend-mode: overlay;
}
.secondary-button {
  mix-blend-mode: overlay;
  position: relative;
  font-size: var(--fs-small);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--c-pill-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--c-near-white);
  text-transform: uppercase;
  opacity: 0;
}
.secondary-button > div { font-size: 0.75rem; font-weight: 500; line-height: 1; text-align: center; }
.square-projects-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.1rem 0.2rem 0;
}
.square-projects-content h2 { font-size: 0.95rem; line-height: 1.4; font-weight: 700; color: var(--c-ink); }
.square-projects-content .max-width-31em { width: 100%; }
.square-projects-content .t-regular { font-size: 0.825rem; line-height: 1.5; opacity: 0.65; }
.project-seo-meta {
  /* Visual card metadata is kept in HTML/JSON-LD for crawlers, but hidden from the design. */
  display: none !important;
}
.works-more-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }
@keyframes worksShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes worksFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
.works-more-btn {
  display: inline-block;
  padding: 1.25rem 3.5rem;
  background: linear-gradient(90deg, #0a0a0a 0%, #444444 50%, #0a0a0a 100%);
  background-size: 200% auto;
  color: var(--c-white);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  animation: worksShimmer 2.5s linear infinite, worksFloat 3s ease-in-out infinite;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.works-more-btn:hover {
  opacity: 0.95;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

@media screen and (max-width: 991px) {
  .works-wrapper .header-wrapper { gap: 2rem; }
  .works-wrapper .header { margin-bottom: 0; margin-left: 0; }
  .works-wrapper .header-paragraph { max-width: none; }
  .works-wrapper .header-paragraph { margin-right: 0; }
  .works-slider-container { padding: 0; }
  .works-nav-prev { left: 1rem; }
  .works-nav-next { right: 1rem; }
}
@media screen and (max-width: 767px) {
  .works-wrapper { gap: 4em; padding-top: 6em; padding-bottom: 6em; }
  .works-wrapper .header-wrapper { flex-direction: column; align-items: flex-start; }
  .square-cards { flex-direction: column; }
  .secondary-button { z-index: 2; width: 90px; height: 90px; opacity: 1; }
  .works-slider-container { padding: 0; }
  .works-nav-prev, .works-nav-next { display: none; }
}
@media screen and (max-width: 479px) {
  .works-wrapper .header-wrapper { gap: 1rem; }
  .works-slider-container { padding: 0; }
}
