
/* =========================================================
   BOLD CLAY STUDIOS — SELECTED WORKS
========================================================= */

.bc-works {
  --bc-wine: #541011;
  --bc-wine-dark: #450509;
  --bc-wine-light: #721a1b;
  --bc-gold: #be7c20;
  --bc-ivory: #fefcf8;
  --bc-cream: #f0e2d1;
  --bc-text: #29201d;
  --bc-muted: #847871;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0 42px;
  background: var(--bc-ivory);
  color: var(--bc-text);
  font-family: "DM Sans", Arial, sans-serif;
}

.bc-works *,
.bc-works *::before,
.bc-works *::after {
  box-sizing: border-box;
}

.bc-works a {
  color: inherit;
  text-decoration: none;
}

.bc-works button {
  font: inherit;
}

.bc-works-glow {
  position: absolute;
  z-index: -1;
  top: 10%;
  right: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(132, 37, 37, 0.075),
    transparent 70%
  );
}

.bc-works-container {
  width: min(1440px, calc(100% - 100px));
  margin-inline: auto;
}

/* HEADER */

.bc-works-header {
  margin-bottom: 44px;
}

.bc-works-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bc-wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.bc-works-eyebrow-line {
  width: 34px;
  height: 1px;
  background: var(--bc-gold);
}

.bc-works-eyebrow-index {
  margin-left: 5px;
  color: #a69a8e;
  font-weight: 500;
}

.bc-works-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 28px;
}

.bc-works-heading-copy {
  max-width: 780px;
}

.bc-works-title {
  margin: 0;
  color: var(--bc-wine-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 5.3vw, 76px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.bc-works-title > span {
  color: #9b7b65;
  font-style: italic;
}

.bc-works-description {
  max-width: 450px;
  margin: 22px 0 0;
  color: #746a63;
  font-size: 14px;
  line-height: 1.9;
}

.bc-works-heading-side {
  flex: 0 0 auto;
  min-width: 140px;
  padding-bottom: 7px;
  text-align: right;
}

.bc-works-count-label,
.bc-works-count-caption {
  display: block;
  color: var(--bc-muted);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.bc-works-count {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.bc-works-current {
  color: var(--bc-wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  line-height: 1;
}

.bc-works-count-divider {
  width: 35px;
  height: 1px;
  background: #d9c7b5;
}

.bc-works-total {
  color: #9e9287;
  font-size: 16px;
}

/* FILTERS */

.bc-works-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9dfd5;
}

.bc-work-filter {
  min-height: 39px;
  padding: 0 17px;
  border: 1px solid #e5d9cc;
  border-radius: 100px;
  background: transparent;
  color: #70645b;
  cursor: pointer;
  font-size: 11px !important;
  font-weight: 600;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.bc-work-filter:hover {
  border-color: var(--bc-wine);
  color: var(--bc-wine);
}

.bc-work-filter.is-active {
  border-color: var(--bc-wine);
  background: var(--bc-wine);
  color: #fffaf4;
}

.bc-work-filter:focus-visible,
.bc-works-arrow:focus-visible,
.bc-work-link:focus-visible,
.bc-work-image-link:focus-visible {
  outline: 2px solid var(--bc-gold);
  outline-offset: 4px;
}

/* SLIDER */

.bc-works-slider {
  position: relative;
  overflow: hidden;
  padding: 30px 0 32px;
  touch-action: pan-y;
}

.bc-works-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  will-change: transform;
  transition: transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bc-works-track.is-instant {
  transition: none !important;
}

/* Each card occupies the same track width.
   JS centers the active card in the viewport. */

.bc-work-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  opacity: 0.62;
  transform: scale(0.87);
  transform-origin: center center;
  transition:
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 600ms ease;
}

.bc-work-card.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.bc-work-card.is-side {
  opacity: 0.78;
  transform: scale(0.91);
}

.bc-work-card.is-hidden {
  display: none;
}

/* IMAGE */

.bc-work-image-link {
  display: block;
}

.bc-work-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.91 / 1;
  background: #e5d8c9;
  isolation: isolate;
}

.bc-work-image::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  content: "";
  pointer-events: none;
}

.bc-work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition:
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.7s ease;
}

.bc-work-card.is-active .bc-work-image img {
  transform: scale(1.04);
}

@media (hover: hover) {
  .bc-work-card:hover .bc-work-image img {
    transform: scale(1.09);
  }
}

.bc-work-image-shade {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 13, 11, 0.40) 0%,
    transparent 30%,
    transparent 48%,
    rgba(24, 13, 10, 0.73) 100%
  );
}

.bc-work-tags {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.bc-work-tags > span:first-child {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(35, 20, 17, 0.18);
  backdrop-filter: blur(8px);
}

.bc-work-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
}

.bc-work-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6b77d;
  box-shadow: 0 0 10px rgba(214, 183, 125, 0.6);
}

.bc-work-number {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 19px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 400;
  line-height: 1;
}

.bc-work-image-action {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.bc-work-image-action b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 400;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

@media (hover: hover) {
  .bc-work-card:hover .bc-work-image-action b {
    background: var(--bc-ivory);
    color: var(--bc-wine);
    transform: rotate(45deg);
  }
}

/* PROJECT INFORMATION */

.bc-work-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 19px 2px 5px;
  border-bottom: 1px solid #e6d9cc;
  min-height: 105px;
}

.bc-work-info-main {
  min-width: 0;
}

.bc-work-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #85776d;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.7;
}

.bc-work-location i {
  color: var(--bc-gold);
  font-style: normal;
}

.bc-work-location-icon {
  color: var(--bc-gold);
}

.bc-work-info h3 {
  margin: 9px 0 0;
  color: var(--bc-wine-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.bc-work-info h3 span {
  color: #9c7b65;
  font-style: italic;
}

.bc-work-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  color: var(--bc-wine);
  font-size: 10px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.bc-work-link-arrow {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #ddcbb9;
  border-radius: 50%;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.bc-work-link:hover .bc-work-link-arrow {
  border-color: var(--bc-wine);
  background: var(--bc-wine);
  color: white;
  transform: translateX(3px);
}

/* CONTROLS */

.bc-works-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}

.bc-works-progress {
  position: relative;
  width: min(240px, 35%);
  height: 2px;
  overflow: hidden;
  background: #e6d9cc;
}

.bc-works-progress-fill {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--bc-wine);
  transition: width 0.45s ease;
}

.bc-works-control-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bc-works-slide-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bc-works-slide-current {
  color: var(--bc-wine);
  font-weight: 700;
}

.bc-works-slide-slash,
.bc-works-slide-total {
  color: #a79a8d;
}

.bc-works-arrow {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid #dfd0c1;
  border-radius: 50%;
  background: transparent;
  color: var(--bc-wine);
  cursor: pointer;
  font-size: 20px;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.bc-works-arrow:hover {
  border-color: var(--bc-wine);
  background: var(--bc-wine);
  color: white;
}

.bc-works-arrow:active {
  transform: scale(0.93);
}

/* FOOTER LINE */

.bc-works-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  color: #93857a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.bc-works-bottom-line {
  flex: 1;
  height: 1px;
  background: #e7ddd3;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .bc-works {
    padding-top: 95px;
  }

  .bc-works-container {
    width: calc(100% - 48px);
  }

  .bc-works-track {
    gap: 14px;
  }

  .bc-work-card {
    flex-basis: calc((100% - 28px) / 3);
  }

  .bc-work-tags {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .bc-work-info {
    display: block;
    min-height: 125px;
  }

  .bc-work-link {
    margin-top: 12px;
  }
}

@media (max-width: 700px) {
  .bc-works {
    padding: 76px 0 30px;
  }

  .bc-works-container {
    width: calc(100% - 36px);
  }

  .bc-works-header {
    margin-bottom: 20px;
  }

  .bc-works-heading-row {
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
  }

  .bc-works-title {
    font-size: clamp(39px, 10vw, 57px);
    line-height: 1;
  }

  .bc-works-description {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.8;
  }

  .bc-works-heading-side {
    min-width: 65px;
    padding-top: 5px;
  }

  .bc-works-count-label,
  .bc-works-count-caption {
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .bc-works-current {
    font-size: 32px;
  }

  .bc-works-count {
    gap: 5px;
  }

  .bc-works-count-divider {
    width: 12px;
  }

  .bc-works-total {
    font-size: 12px;
  }

  .bc-works-filters {
    flex-wrap: nowrap;
    gap: 7px;
    margin-top: 24px;
    padding: 0 0 15px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bc-works-filters::-webkit-scrollbar {
    display: none;
  }

  .bc-work-filter {
    flex: 0 0 auto;
    min-height: 35px;
    padding: 0 12px;
    font-size: 10px !important;
  }

  .bc-works-slider {
    padding: 23px 0 22px;
  }

  .bc-works-track {
    gap: 12px;
  }

  .bc-work-card {
    flex-basis: 76%;
    opacity: 0.55;
    transform: scale(0.89);
  }

  .bc-work-card.is-active {
    opacity: 1;
    transform: scale(1);
  }

  .bc-work-card.is-side {
    opacity: 0.65;
    transform: scale(0.91);
  }

  .bc-work-image {
    aspect-ratio: 0.88 / 1;
  }

  .bc-work-tags {
    top: 12px;
    left: 10px;
    right: 10px;
    font-size: 7px;
  }

  .bc-work-tags > span:first-child {
    padding: 7px;
  }

  .bc-work-status {
    gap: 4px;
    font-size: 7px;
  }

  .bc-work-number {
    left: 13px;
    bottom: 17px;
    font-size: 47px;
  }

  .bc-work-image-action {
    right: 11px;
    bottom: 20px;
    gap: 5px;
    font-size: 7px;
  }

  .bc-work-image-action b {
    width: 27px;
    height: 27px;
  }

  .bc-work-info {
    min-height: 119px;
    padding-top: 15px;
  }

  .bc-work-location {
    font-size: 8px;
  }

  .bc-work-info h3 {
    font-size: 28px;
  }

  .bc-work-link {
    margin-top: 12px;
    font-size: 10px;
  }

  .bc-works-progress {
    width: 90px;
  }

  .bc-works-arrow {
    width: 37px;
    height: 37px;
  }

  .bc-works-control-right {
    gap: 7px;
  }

  .bc-works-slide-label {
    gap: 5px;
    margin-right: 4px;
  }

  .bc-works-bottom {
    gap: 10px;
    margin-top: 32px;
    font-size: 7px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 380px) {
  .bc-works-container {
    width: calc(100% - 28px);
  }

  .bc-works-heading-side {
    min-width: 58px;
  }

  .bc-works-title {
    font-size: 36px;
  }

  .bc-work-card {
    flex-basis: 83%;
  }

  .bc-works-bottom {
    font-size: 6px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .bc-works *,
  .bc-works *::before,
  .bc-works *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
