/* ============================================================
   TIX — Work / Portfolio Page CSS
   ============================================================ */

/* HERO */
.work-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--black)
}

.work-hero__title {
  font-family: var(--font-display);
  font-size: var(--display-lg);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .93;
  margin-bottom: 1.2rem
}

.work-hero__title em {
  font-family: var(--font-editorial);
  font-style: italic;
  color: rgba(86, 0, 0, 0.85)
}

.work-hero__sub {
  font-size: .88rem;
  color: var(--muted-2);
  letter-spacing: .04em
}

.work-hero__sub strong {
  color: var(--white);
  font-weight: 700
}

/* PREVIEW STRIP */
.work-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--border)
}

.work-strip__inner {
  display: flex;
  height: 160px
}

.work-strip__item {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  border-right: 1px solid var(--border)
}

.work-strip__item:last-child {
  border-right: none
}

.work-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* REPLACE: work strip preview images */
  transition: transform .7s var(--ease-out)
}

.work-strip__item:hover img {
  transform: scale(1.08)
}

.work-strip__item span {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  right: .5rem;
  font-family: var(--font-display);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  background: rgba(8, 8, 8, .6);
  padding: .28em .65em;
  border-radius: var(--radius-pill);
  text-align: center
}

/* FILTERS */
.work-filters {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap
}

.work-filters__label {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  flex-shrink: 0
}

.work-filters__btns {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap
}

.work-filter-btn {
  padding: .36em 1.0em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all .2s ease
}

.work-filter-btn:hover,
.work-filter-btn.active {
  background: var(--crimson);
  border-color: var(--crimson-mid);
  color: var(--white)
}

/* GALLERY HEADER */
.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.75rem
}

.gallery-header__left {
  display: flex;
  align-items: center;
  gap: 1rem
}

.gallery-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2)
}

.gallery-brand svg {
  width: 18px;
  height: 18px
}

.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.025em;
  color: var(--white)
}

.gallery-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease
}

.gallery-arrow:hover {
  border-color: var(--crimson-bright);
  color: var(--crimson-bright);
  background: rgba(139, 0, 0, .1)
}

.gallery-desc {
  font-size: .82rem;
  color: var(--muted-2);
  max-width: 36ch;
  line-height: 1.6;
  text-align: right;
  font-style: italic
}

/* GALLERY ROWS */
.gallery-row {
  display: flex;
  gap: .6rem;
  margin-bottom: .6rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .1rem
}

.gallery-row::-webkit-scrollbar {
  display: none
}

.gallery-row--wrap {
  flex-wrap: nowrap
}

.gallery-item {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  cursor: pointer
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* REPLACE: portfolio work images */
  transition: transform .6s var(--ease-out)
}

.gallery-item:hover img {
  transform: scale(1.06)
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 8, .75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  align-items: flex-end;
  padding: .75rem
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1
}

.gallery-item__label {
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white)
}

.gallery-item--sm {
  width: 140px;
  height: 180px
}

.gallery-item--md {
  width: 200px;
  height: 220px
}

.gallery-item--lg {
  width: 280px;
  height: 320px
}

.gallery-item--rect {
  width: 220px;
  height: 160px
}

/* CATEGORY SECTIONS */
.cat-section {
  margin-bottom: clamp(3rem, 6vw, 5rem)
}

.cat-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  gap: 1rem
}

.cat-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.025em
}

.cat-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--crimson-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson-bright);
  cursor: pointer;
  transition: background .2s ease
}

.cat-arrow:hover {
  background: var(--crimson)
}

.cat-sub {
  font-size: .75rem;
  color: var(--muted-2);
  font-style: italic;
  letter-spacing: .04em
}

/* NARRATIVE STRIP */
.narrative-strip {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--black-2);
  border-top: 1px solid var(--border)
}

.narrative-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem
}

.narrative-strip__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--surface-2)
}

.narrative-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* REPLACE: narrative strip images */
}

.narrative-strip__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  position: relative
}

.narrative-strip__headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: 1
}

.narrative-strip__sub {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .6rem;
  line-height: 1.6
}

/* RESPONSIVE */
@media(max-width:768px) {
  .work-strip__inner {
    height: 110px
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start
  }

  .gallery-desc {
    text-align: left
  }

  .narrative-strip__inner {
    grid-template-columns: 1fr
  }
}