/* ==========================================================================
   OUR WORK PAGE - page-specific styles
   Loaded after css/style.css. Reuses the site's design tokens (colours,
   type, spacing) defined in :root there, but every rule below is scoped
   to elements that only exist on work.html.
   ========================================================================== */

/* ==========================================================================
   UPCOMING ARTISTS HERO - big, full-viewport, auto-rotating
   ========================================================================== */

.upcoming-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--void);
}

.upcoming-hero__stage {
  position: absolute;
  inset: 0;
}

.upcoming-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
  z-index: 1;
}

.upcoming-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.upcoming-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.upcoming-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%);
  transform: scale(1.03);
}

.upcoming-hero__slide.is-active .upcoming-hero__media img {
  animation: upcomingHeroDrift 9s ease-out forwards;
}

@keyframes upcomingHeroDrift {
  from { transform: scale(1.09); }
  to { transform: scale(1.0); }
}

.upcoming-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,10,8,0.5) 0%, rgba(11,10,8,0.4) 35%, rgba(11,10,8,0.95) 100%);
}

.upcoming-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(7rem, 14vh, 10rem);
  max-width: 44em;
}

.upcoming-hero__badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid var(--clay);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
}

.upcoming-hero__title {
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.98;
  color: var(--bone);
}

.upcoming-hero__text {
  max-width: 30em;
}

.upcoming-hero__slide--cta .upcoming-hero__content {
  padding-bottom: clamp(6rem, 13vh, 9rem);
}

.upcoming-hero__controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(1.8rem, 3.5vh, 2.6rem);
}

.upcoming-hero__dots {
  display: flex;
  gap: 0.6rem;
}

.upcoming-hero__dot {
  width: 34px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.upcoming-hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--ember);
}

.upcoming-hero__dot.is-active::after {
  animation: upcomingHeroProgress var(--hero-interval, 6s) linear forwards;
}

@keyframes upcomingHeroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.upcoming-hero__scroll-cue {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}

@media (max-width: 760px) {
  .upcoming-hero__content { padding-bottom: 6.5rem; }
  .upcoming-hero__title { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .upcoming-hero__scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .upcoming-hero__slide.is-active .upcoming-hero__media img { animation: none; }
  .upcoming-hero__dot.is-active::after { animation: none; transform: scaleX(1); }
}

/* ---- Tour dates (writing that used to live on the hero posters) ---------- */

.tour-card {
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tour-card__city {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--bone);
  margin-top: 0.3rem;
}

.tour-card__text {
  max-width: 26em;
}

/* ---- Portfolio filter bar ------------------------------------------------ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.filter-btn:hover {
  border-color: var(--ember);
  color: var(--bone);
}

.filter-btn.is-active {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--void);
}

/* ---- Portfolio grid ------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.work-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.work-card.is-hidden {
  display: none;
}

.work-card__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}

.work-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.work-card:hover .work-card__frame img {
  transform: scale(1.06);
}

.work-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(11,10,8,0) 40%, rgba(11,10,8,0.92) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.work-card:hover .work-card__hover,
.work-card:focus-within .work-card__hover {
  opacity: 1;
}

.work-card__hover p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--bone);
  margin: 0;
}

.work-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.9rem;
}

.work-card__meta h3 {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.filter-empty {
  color: var(--smoke);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 3rem 0;
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .filter-bar { gap: 0.5rem; }
  .filter-btn { padding: 0.55rem 1rem; font-size: 0.66rem; }
}

/* ==========================================================================
   ARTIST CAROUSEL - single-slide showcase for past collaborations
   ========================================================================== */

.artist-carousel {
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.artist-carousel__stage {
  position: relative;
  min-height: 420px;
}

.artist-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.artist-slide.is-active {
  display: grid;
  animation: artistFadeIn 0.6s var(--ease-out);
}

@keyframes artistFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.artist-slide__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--charcoal);
}

.artist-slide__media video,
.artist-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-slide__copy .bracket {
  margin-bottom: 0.5rem;
  display: inline-block;
}

.artist-slide__name {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  margin-bottom: 1rem;
}

.artist-slide__text {
  color: var(--smoke);
  font-size: 1rem;
  max-width: 32em;
}

.artist-slide__tag {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}

.artist-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.artist-progress {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--smoke);
}

.artist-progress b { color: var(--bone); }

.artist-arrows {
  display: flex;
  gap: 0.7rem;
}

.artist-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.artist-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.artist-arrow:hover {
  border-color: var(--ember);
  background: var(--ember);
  color: var(--void);
}

.artist-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.4rem;
}

.artist-nav__item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.artist-nav__item:hover { color: var(--bone); }

.artist-nav__item.is-active {
  color: var(--bone);
  border-color: var(--ember);
}

@media (max-width: 760px) {
  .artist-slide { grid-template-columns: 1fr; }
  .artist-carousel__stage { min-height: unset; }
  .artist-slide__media { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   UPCOMING ARTISTS
   ========================================================================== */


