.tmt-category-showcase {
  --tmtcs-ink: #29261f;
  --tmtcs-paper: #f4efe5;
  --tmtcs-olive: #30352b;
  --tmtcs-gold: #d8b978;
  width: min(100%, 1360px);
  margin-inline: auto;
  padding: clamp(54px, 7vw, 96px) clamp(18px, 3vw, 42px);
  color: var(--tmtcs-ink);
}

.tmt-category-showcase__intro {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
  animation: tmtcs-rise-in .75s both;
}

.tmt-category-showcase__eyebrow {
  margin: 0 0 11px;
  color: #8b6c3f;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tmt-category-showcase__intro h2 {
  margin: 0;
  color: var(--tmtcs-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.tmt-category-showcase__intro h2::after {
  display: block;
  width: 48px;
  height: 2px;
  margin: 19px auto 0;
  background: #a9874c;
  content: "";
}

.tmt-category-showcase__subtitle {
  max-width: 58ch;
  margin: 16px auto 0;
  color: #6f6a5e;
  font-size: clamp(.92rem, 1.2vw, 1.03rem);
  line-height: 1.75;
}

.tmt-category-showcase__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(190px, 18vw, 260px));
  gap: clamp(12px, 1.35vw, 20px);
}

.tmt-category-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #37372e;
  box-shadow: 0 9px 26px rgba(38, 32, 23, .12);
  color: #fffaf0;
  isolation: isolate;
  text-decoration: none !important;
  transform: translateY(14px);
  animation: tmtcs-rise-in .75s ease forwards;
  transition: box-shadow .35s ease, transform .35s ease;
}

.tmt-category-card:nth-child(1) { grid-column: span 6; grid-row: span 2; animation-delay: .08s; }
.tmt-category-card:nth-child(2) { grid-column: span 3; animation-delay: .16s; }
.tmt-category-card:nth-child(3) { grid-column: span 3; animation-delay: .24s; }
.tmt-category-card:nth-child(4) { grid-column: span 3; animation-delay: .32s; }
.tmt-category-card:nth-child(5) { grid-column: span 3; animation-delay: .4s; }

.tmt-category-card__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s cubic-bezier(.2, .7, .2, 1), filter .45s ease;
}

.tmt-category-card__image--empty {
  background: radial-gradient(circle at 25% 18%, #8c805f, #424538 64%, #292b25);
}

.tmt-category-card__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 26, 22, .12) 0%, rgba(24, 26, 22, .04) 34%, rgba(24, 26, 22, .84) 100%);
  transition: background .35s ease;
}

.tmt-category-card__index {
  position: absolute;
  top: 17px;
  left: 17px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 250, 240, .48);
  border-radius: 2px;
  background: rgba(31, 33, 28, .38);
  color: #fffaf0;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.tmt-category-card__index span {
  color: rgba(255, 250, 240, .68);
  font-weight: 400;
}

.tmt-category-card__caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px 18px 16px 20px;
  border-left: 2px solid var(--tmtcs-gold);
  background: linear-gradient(100deg, rgba(30, 32, 27, .87), rgba(30, 32, 27, .55));
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
  backdrop-filter: blur(9px);
  transition: background .3s ease, padding .3s ease;
}

.tmt-category-card__meta {
  margin-bottom: 7px;
  color: #e4c68f;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tmt-category-card__name {
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.tmt-category-card__cta {
  display: flex;
  align-items: center;
  gap: 7px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(255, 250, 240, .9);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .13em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease, max-height .25s ease, margin .25s ease;
}

.tmt-category-card__cta span {
  color: var(--tmtcs-gold);
  font-size: .9rem;
}

.tmt-category-card--featured .tmt-category-card__caption {
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 23px 26px 22px 28px;
}

.tmt-category-card--featured .tmt-category-card__meta {
  font-size: .68rem;
}

.tmt-category-card--featured .tmt-category-card__name {
  max-width: 15ch;
  font-size: clamp(1.65rem, 2.4vw, 2.5rem);
}

.tmt-category-card:hover,
.tmt-category-card:focus-visible {
  box-shadow: 0 19px 42px rgba(38, 32, 23, .22);
  color: #fffaf0;
  transform: translateY(-4px);
}

.tmt-category-card:hover .tmt-category-card__image,
.tmt-category-card:focus-visible .tmt-category-card__image {
  filter: saturate(1.08);
  transform: scale(1.065);
}

.tmt-category-card:hover .tmt-category-card__caption,
.tmt-category-card:focus-visible .tmt-category-card__caption {
  background: linear-gradient(100deg, rgba(30, 32, 27, .92), rgba(30, 32, 27, .66));
}

.tmt-category-card:hover .tmt-category-card__cta,
.tmt-category-card:focus-visible .tmt-category-card__cta {
  max-height: 24px;
  margin-top: 10px;
  opacity: 1;
  transform: translateY(0);
}

.tmt-category-card:focus-visible {
  outline: 3px solid #d8b978;
  outline-offset: 3px;
}

@keyframes tmtcs-rise-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .tmt-category-showcase__grid {
    grid-template-rows: repeat(2, clamp(170px, 25vw, 225px));
    gap: 13px;
  }
}

@media (max-width: 600px) {
  .tmt-category-showcase {
    padding: 48px 16px;
  }

  .tmt-category-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 230px repeat(2, 168px);
    gap: 11px;
  }

  .tmt-category-card:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .tmt-category-card:nth-child(n + 2) {
    grid-column: span 1;
  }

  .tmt-category-card__index {
    top: 11px;
    left: 11px;
    padding: 6px 8px;
    font-size: .58rem;
  }

  .tmt-category-card__caption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 12px 12px 13px 13px;
  }

  .tmt-category-card__meta {
    margin-bottom: 5px;
    font-size: .5rem;
    letter-spacing: .11em;
  }

  .tmt-category-card__name {
    font-size: .95rem;
  }

  .tmt-category-card--featured .tmt-category-card__caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px 16px 16px 18px;
  }

  .tmt-category-card--featured .tmt-category-card__name {
    font-size: 1.55rem;
  }

  .tmt-category-card__cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tmt-category-showcase__intro,
  .tmt-category-card {
    animation: none;
    transform: none;
  }

  .tmt-category-card,
  .tmt-category-card * {
    transition-duration: .01ms !important;
  }
}
